1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for ThirdPartySoplex trunk. |
---|
4 | # |
---|
5 | # Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. |
---|
6 | # |
---|
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8 | # This configure script is free software; the Free Software Foundation |
---|
9 | # gives unlimited permission to copy, distribute and modify it. |
---|
10 | # |
---|
11 | # |
---|
12 | # Copyright 2010,2011 Stefan Vigerske and others. |
---|
13 | # All Rights Reserved. |
---|
14 | # This file is part of the open source package COIN-OR which is distributed |
---|
15 | # under the Eclipse Public License. |
---|
16 | ## --------------------- ## |
---|
17 | ## M4sh Initialization. ## |
---|
18 | ## --------------------- ## |
---|
19 | |
---|
20 | # Be Bourne compatible |
---|
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
22 | emulate sh |
---|
23 | NULLCMD=: |
---|
24 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
25 | # is contrary to our usage. Disable this feature. |
---|
26 | alias -g '${1+"$@"}'='"$@"' |
---|
27 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
28 | set -o posix |
---|
29 | fi |
---|
30 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
31 | |
---|
32 | # Support unset when possible. |
---|
33 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
34 | as_unset=unset |
---|
35 | else |
---|
36 | as_unset=false |
---|
37 | fi |
---|
38 | |
---|
39 | |
---|
40 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
41 | $as_unset ENV MAIL MAILPATH |
---|
42 | PS1='$ ' |
---|
43 | PS2='> ' |
---|
44 | PS4='+ ' |
---|
45 | |
---|
46 | # NLS nuisances. |
---|
47 | for as_var in \ |
---|
48 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
49 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
50 | LC_TELEPHONE LC_TIME |
---|
51 | do |
---|
52 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
53 | eval $as_var=C; export $as_var |
---|
54 | else |
---|
55 | $as_unset $as_var |
---|
56 | fi |
---|
57 | done |
---|
58 | |
---|
59 | # Required to use basename. |
---|
60 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
61 | as_expr=expr |
---|
62 | else |
---|
63 | as_expr=false |
---|
64 | fi |
---|
65 | |
---|
66 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
67 | as_basename=basename |
---|
68 | else |
---|
69 | as_basename=false |
---|
70 | fi |
---|
71 | |
---|
72 | |
---|
73 | # Name of the executable. |
---|
74 | as_me=`$as_basename "$0" || |
---|
75 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
76 | X"$0" : 'X\(//\)$' \| \ |
---|
77 | X"$0" : 'X\(/\)$' \| \ |
---|
78 | . : '\(.\)' 2>/dev/null || |
---|
79 | echo X/"$0" | |
---|
80 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
81 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
82 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
83 | s/.*/./; q'` |
---|
84 | |
---|
85 | |
---|
86 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
87 | # Avoid depending upon Character Ranges. |
---|
88 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
89 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
90 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
91 | as_cr_digits='0123456789' |
---|
92 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
93 | |
---|
94 | # The user is always right. |
---|
95 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
96 | echo "#! /bin/sh" >conf$$.sh |
---|
97 | echo "exit 0" >>conf$$.sh |
---|
98 | chmod +x conf$$.sh |
---|
99 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
100 | PATH_SEPARATOR=';' |
---|
101 | else |
---|
102 | PATH_SEPARATOR=: |
---|
103 | fi |
---|
104 | rm -f conf$$.sh |
---|
105 | fi |
---|
106 | |
---|
107 | |
---|
108 | as_lineno_1=$LINENO |
---|
109 | as_lineno_2=$LINENO |
---|
110 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
111 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
112 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
113 | # Find who we are. Look in the path if we contain no path at all |
---|
114 | # relative or not. |
---|
115 | case $0 in |
---|
116 | *[\\/]* ) as_myself=$0 ;; |
---|
117 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
118 | for as_dir in $PATH |
---|
119 | do |
---|
120 | IFS=$as_save_IFS |
---|
121 | test -z "$as_dir" && as_dir=. |
---|
122 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
123 | done |
---|
124 | |
---|
125 | ;; |
---|
126 | esac |
---|
127 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
128 | # in which case we are not to be found in the path. |
---|
129 | if test "x$as_myself" = x; then |
---|
130 | as_myself=$0 |
---|
131 | fi |
---|
132 | if test ! -f "$as_myself"; then |
---|
133 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
134 | { (exit 1); exit 1; }; } |
---|
135 | fi |
---|
136 | case $CONFIG_SHELL in |
---|
137 | '') |
---|
138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
139 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
140 | do |
---|
141 | IFS=$as_save_IFS |
---|
142 | test -z "$as_dir" && as_dir=. |
---|
143 | for as_base in sh bash ksh sh5; do |
---|
144 | case $as_dir in |
---|
145 | /*) |
---|
146 | if ("$as_dir/$as_base" -c ' |
---|
147 | as_lineno_1=$LINENO |
---|
148 | as_lineno_2=$LINENO |
---|
149 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
150 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
151 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
152 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
153 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
154 | CONFIG_SHELL=$as_dir/$as_base |
---|
155 | export CONFIG_SHELL |
---|
156 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
157 | fi;; |
---|
158 | esac |
---|
159 | done |
---|
160 | done |
---|
161 | ;; |
---|
162 | esac |
---|
163 | |
---|
164 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
165 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
166 | # line-number line before each line; the second 'sed' does the real |
---|
167 | # work. The second script uses 'N' to pair each line-number line |
---|
168 | # with the numbered line, and appends trailing '-' during |
---|
169 | # substitution so that $LINENO is not a special case at line end. |
---|
170 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
171 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
172 | sed '=' <$as_myself | |
---|
173 | sed ' |
---|
174 | N |
---|
175 | s,$,-, |
---|
176 | : loop |
---|
177 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
178 | t loop |
---|
179 | s,-$,, |
---|
180 | s,^['$as_cr_digits']*\n,, |
---|
181 | ' >$as_me.lineno && |
---|
182 | chmod +x $as_me.lineno || |
---|
183 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
184 | { (exit 1); exit 1; }; } |
---|
185 | |
---|
186 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
187 | # (the dirname of $[0] is not the place where we might find the |
---|
188 | # original and so on. Autoconf is especially sensible to this). |
---|
189 | . ./$as_me.lineno |
---|
190 | # Exit status is that of the last command. |
---|
191 | exit |
---|
192 | } |
---|
193 | |
---|
194 | |
---|
195 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
196 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
197 | ' ECHO_T=' ' ;; |
---|
198 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
199 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
200 | esac |
---|
201 | |
---|
202 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
203 | as_expr=expr |
---|
204 | else |
---|
205 | as_expr=false |
---|
206 | fi |
---|
207 | |
---|
208 | rm -f conf$$ conf$$.exe conf$$.file |
---|
209 | echo >conf$$.file |
---|
210 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
211 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
212 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
213 | if test -f conf$$.exe; then |
---|
214 | # Don't use ln at all; we don't have any links |
---|
215 | as_ln_s='cp -p' |
---|
216 | else |
---|
217 | as_ln_s='ln -s' |
---|
218 | fi |
---|
219 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
220 | as_ln_s=ln |
---|
221 | else |
---|
222 | as_ln_s='cp -p' |
---|
223 | fi |
---|
224 | rm -f conf$$ conf$$.exe conf$$.file |
---|
225 | |
---|
226 | if mkdir -p . 2>/dev/null; then |
---|
227 | as_mkdir_p=: |
---|
228 | else |
---|
229 | test -d ./-p && rmdir ./-p |
---|
230 | as_mkdir_p=false |
---|
231 | fi |
---|
232 | |
---|
233 | as_executable_p="test -f" |
---|
234 | |
---|
235 | # Sed expression to map a string onto a valid CPP name. |
---|
236 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
237 | |
---|
238 | # Sed expression to map a string onto a valid variable name. |
---|
239 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
240 | |
---|
241 | |
---|
242 | # IFS |
---|
243 | # We need space, tab and new line, in precisely that order. |
---|
244 | as_nl=' |
---|
245 | ' |
---|
246 | IFS=" $as_nl" |
---|
247 | |
---|
248 | # CDPATH. |
---|
249 | $as_unset CDPATH |
---|
250 | |
---|
251 | |
---|
252 | |
---|
253 | # Check that we are running under the correct shell. |
---|
254 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
255 | |
---|
256 | case X$ECHO in |
---|
257 | X*--fallback-echo) |
---|
258 | # Remove one level of quotation (which was required for Make). |
---|
259 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
---|
260 | ;; |
---|
261 | esac |
---|
262 | |
---|
263 | echo=${ECHO-echo} |
---|
264 | if test "X$1" = X--no-reexec; then |
---|
265 | # Discard the --no-reexec flag, and continue. |
---|
266 | shift |
---|
267 | elif test "X$1" = X--fallback-echo; then |
---|
268 | # Avoid inline document here, it may be left over |
---|
269 | : |
---|
270 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
---|
271 | # Yippee, $echo works! |
---|
272 | : |
---|
273 | else |
---|
274 | # Restart under the correct shell. |
---|
275 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
---|
276 | fi |
---|
277 | |
---|
278 | if test "X$1" = X--fallback-echo; then |
---|
279 | # used as fallback echo |
---|
280 | shift |
---|
281 | cat <<EOF |
---|
282 | $* |
---|
283 | EOF |
---|
284 | exit 0 |
---|
285 | fi |
---|
286 | |
---|
287 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
288 | # if CDPATH is set. |
---|
289 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
290 | |
---|
291 | if test -z "$ECHO"; then |
---|
292 | if test "X${echo_test_string+set}" != Xset; then |
---|
293 | # find a string as large as possible, as long as the shell can cope with it |
---|
294 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
---|
295 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
---|
296 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
---|
297 | echo_test_string=`eval $cmd` && |
---|
298 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
---|
299 | then |
---|
300 | break |
---|
301 | fi |
---|
302 | done |
---|
303 | fi |
---|
304 | |
---|
305 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
306 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
307 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
308 | : |
---|
309 | else |
---|
310 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
---|
311 | # backslashes. This makes it impossible to quote backslashes using |
---|
312 | # echo "$something" | sed 's/\\/\\\\/g' |
---|
313 | # |
---|
314 | # So, first we look for a working echo in the user's PATH. |
---|
315 | |
---|
316 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
317 | for dir in $PATH /usr/ucb; do |
---|
318 | IFS="$lt_save_ifs" |
---|
319 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
---|
320 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
---|
321 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
---|
322 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
323 | echo="$dir/echo" |
---|
324 | break |
---|
325 | fi |
---|
326 | done |
---|
327 | IFS="$lt_save_ifs" |
---|
328 | |
---|
329 | if test "X$echo" = Xecho; then |
---|
330 | # We didn't find a better echo, so look for alternatives. |
---|
331 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
---|
332 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
---|
333 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
334 | # This shell has a builtin print -r that does the trick. |
---|
335 | echo='print -r' |
---|
336 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
---|
337 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
---|
338 | # If we have ksh, try running configure again with it. |
---|
339 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
---|
340 | export ORIGINAL_CONFIG_SHELL |
---|
341 | CONFIG_SHELL=/bin/ksh |
---|
342 | export CONFIG_SHELL |
---|
343 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
---|
344 | else |
---|
345 | # Try using printf. |
---|
346 | echo='printf %s\n' |
---|
347 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
348 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
349 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
350 | # Cool, printf works |
---|
351 | : |
---|
352 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
353 | test "X$echo_testing_string" = 'X\t' && |
---|
354 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
355 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
356 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
---|
357 | export CONFIG_SHELL |
---|
358 | SHELL="$CONFIG_SHELL" |
---|
359 | export SHELL |
---|
360 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
361 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
362 | test "X$echo_testing_string" = 'X\t' && |
---|
363 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
364 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
365 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
366 | else |
---|
367 | # maybe with a smaller string... |
---|
368 | prev=: |
---|
369 | |
---|
370 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
---|
371 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
---|
372 | then |
---|
373 | break |
---|
374 | fi |
---|
375 | prev="$cmd" |
---|
376 | done |
---|
377 | |
---|
378 | if test "$prev" != 'sed 50q "$0"'; then |
---|
379 | echo_test_string=`eval $prev` |
---|
380 | export echo_test_string |
---|
381 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
---|
382 | else |
---|
383 | # Oops. We lost completely, so just stick with echo. |
---|
384 | echo=echo |
---|
385 | fi |
---|
386 | fi |
---|
387 | fi |
---|
388 | fi |
---|
389 | fi |
---|
390 | fi |
---|
391 | |
---|
392 | # Copy echo and quote the copy suitably for passing to libtool from |
---|
393 | # the Makefile, instead of quoting the original, which is used later. |
---|
394 | ECHO=$echo |
---|
395 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
---|
396 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
---|
397 | fi |
---|
398 | |
---|
399 | |
---|
400 | |
---|
401 | |
---|
402 | tagnames=${tagnames+${tagnames},}CXX |
---|
403 | |
---|
404 | tagnames=${tagnames+${tagnames},}F77 |
---|
405 | |
---|
406 | # Name of the host. |
---|
407 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
408 | # so uname gets run too. |
---|
409 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
410 | |
---|
411 | exec 6>&1 |
---|
412 | |
---|
413 | # |
---|
414 | # Initializations. |
---|
415 | # |
---|
416 | ac_default_prefix=/usr/local |
---|
417 | ac_config_libobj_dir=. |
---|
418 | cross_compiling=no |
---|
419 | subdirs= |
---|
420 | MFLAGS= |
---|
421 | MAKEFLAGS= |
---|
422 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
423 | |
---|
424 | # Maximum number of lines to put in a shell here document. |
---|
425 | # This variable seems obsolete. It should probably be removed, and |
---|
426 | # only ac_max_sed_lines should be used. |
---|
427 | : ${ac_max_here_lines=38} |
---|
428 | |
---|
429 | # Identity of this package. |
---|
430 | PACKAGE_NAME='ThirdPartySoplex' |
---|
431 | PACKAGE_TARNAME='thirdpartysoplex' |
---|
432 | PACKAGE_VERSION='trunk' |
---|
433 | PACKAGE_STRING='ThirdPartySoplex trunk' |
---|
434 | PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket' |
---|
435 | |
---|
436 | ac_unique_file="soplex/src/soplex.h" |
---|
437 | ac_default_prefix=`pwd` |
---|
438 | # Factoring default headers for most tests. |
---|
439 | ac_includes_default="\ |
---|
440 | #include <stdio.h> |
---|
441 | #if HAVE_SYS_TYPES_H |
---|
442 | # include <sys/types.h> |
---|
443 | #endif |
---|
444 | #if HAVE_SYS_STAT_H |
---|
445 | # include <sys/stat.h> |
---|
446 | #endif |
---|
447 | #if STDC_HEADERS |
---|
448 | # include <stdlib.h> |
---|
449 | # include <stddef.h> |
---|
450 | #else |
---|
451 | # if HAVE_STDLIB_H |
---|
452 | # include <stdlib.h> |
---|
453 | # endif |
---|
454 | #endif |
---|
455 | #if HAVE_STRING_H |
---|
456 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
457 | # include <memory.h> |
---|
458 | # endif |
---|
459 | # include <string.h> |
---|
460 | #endif |
---|
461 | #if HAVE_STRINGS_H |
---|
462 | # include <strings.h> |
---|
463 | #endif |
---|
464 | #if HAVE_INTTYPES_H |
---|
465 | # include <inttypes.h> |
---|
466 | #else |
---|
467 | # if HAVE_STDINT_H |
---|
468 | # include <stdint.h> |
---|
469 | # endif |
---|
470 | #endif |
---|
471 | #if HAVE_UNISTD_H |
---|
472 | # include <unistd.h> |
---|
473 | #endif" |
---|
474 | |
---|
475 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion SOPLEX_SVN_REV 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 COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S 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 ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE SOPLEX_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS' |
---|
476 | ac_subst_files='' |
---|
477 | |
---|
478 | # Initialize some variables set by options. |
---|
479 | ac_init_help= |
---|
480 | ac_init_version=false |
---|
481 | # The variables have the same names as the options, with |
---|
482 | # dashes changed to underlines. |
---|
483 | cache_file=/dev/null |
---|
484 | exec_prefix=NONE |
---|
485 | no_create= |
---|
486 | no_recursion= |
---|
487 | prefix=NONE |
---|
488 | program_prefix=NONE |
---|
489 | program_suffix=NONE |
---|
490 | program_transform_name=s,x,x, |
---|
491 | silent= |
---|
492 | site= |
---|
493 | srcdir= |
---|
494 | verbose= |
---|
495 | x_includes=NONE |
---|
496 | x_libraries=NONE |
---|
497 | |
---|
498 | # Installation directory options. |
---|
499 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
500 | # and all the variables that are supposed to be based on exec_prefix |
---|
501 | # by default will actually change. |
---|
502 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
503 | bindir='${exec_prefix}/bin' |
---|
504 | sbindir='${exec_prefix}/sbin' |
---|
505 | libexecdir='${exec_prefix}/libexec' |
---|
506 | datadir='${prefix}/share' |
---|
507 | sysconfdir='${prefix}/etc' |
---|
508 | sharedstatedir='${prefix}/com' |
---|
509 | localstatedir='${prefix}/var' |
---|
510 | libdir='${exec_prefix}/lib' |
---|
511 | includedir='${prefix}/include' |
---|
512 | oldincludedir='/usr/include' |
---|
513 | infodir='${prefix}/info' |
---|
514 | mandir='${prefix}/man' |
---|
515 | |
---|
516 | ac_prev= |
---|
517 | for ac_option |
---|
518 | do |
---|
519 | # If the previous option needs an argument, assign it. |
---|
520 | if test -n "$ac_prev"; then |
---|
521 | eval "$ac_prev=\$ac_option" |
---|
522 | ac_prev= |
---|
523 | continue |
---|
524 | fi |
---|
525 | |
---|
526 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
527 | |
---|
528 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
529 | |
---|
530 | case $ac_option in |
---|
531 | |
---|
532 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
533 | ac_prev=bindir ;; |
---|
534 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
535 | bindir=$ac_optarg ;; |
---|
536 | |
---|
537 | -build | --build | --buil | --bui | --bu) |
---|
538 | ac_prev=build_alias ;; |
---|
539 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
540 | build_alias=$ac_optarg ;; |
---|
541 | |
---|
542 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
543 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
544 | ac_prev=cache_file ;; |
---|
545 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
546 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
547 | cache_file=$ac_optarg ;; |
---|
548 | |
---|
549 | --config-cache | -C) |
---|
550 | cache_file=config.cache ;; |
---|
551 | |
---|
552 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
553 | ac_prev=datadir ;; |
---|
554 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
555 | | --da=*) |
---|
556 | datadir=$ac_optarg ;; |
---|
557 | |
---|
558 | -disable-* | --disable-*) |
---|
559 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
560 | # Reject names that are not valid shell variable names. |
---|
561 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
562 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
563 | { (exit 1); exit 1; }; } |
---|
564 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
565 | eval "enable_$ac_feature=no" ;; |
---|
566 | |
---|
567 | -enable-* | --enable-*) |
---|
568 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
569 | # Reject names that are not valid shell variable names. |
---|
570 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
571 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
572 | { (exit 1); exit 1; }; } |
---|
573 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
574 | case $ac_option in |
---|
575 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
576 | *) ac_optarg=yes ;; |
---|
577 | esac |
---|
578 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
579 | |
---|
580 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
581 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
582 | | --exec | --exe | --ex) |
---|
583 | ac_prev=exec_prefix ;; |
---|
584 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
585 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
586 | | --exec=* | --exe=* | --ex=*) |
---|
587 | exec_prefix=$ac_optarg ;; |
---|
588 | |
---|
589 | -gas | --gas | --ga | --g) |
---|
590 | # Obsolete; use --with-gas. |
---|
591 | with_gas=yes ;; |
---|
592 | |
---|
593 | -help | --help | --hel | --he | -h) |
---|
594 | ac_init_help=long ;; |
---|
595 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
596 | ac_init_help=recursive ;; |
---|
597 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
598 | ac_init_help=short ;; |
---|
599 | |
---|
600 | -host | --host | --hos | --ho) |
---|
601 | ac_prev=host_alias ;; |
---|
602 | -host=* | --host=* | --hos=* | --ho=*) |
---|
603 | host_alias=$ac_optarg ;; |
---|
604 | |
---|
605 | -includedir | --includedir | --includedi | --included | --include \ |
---|
606 | | --includ | --inclu | --incl | --inc) |
---|
607 | ac_prev=includedir ;; |
---|
608 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
609 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
610 | includedir=$ac_optarg ;; |
---|
611 | |
---|
612 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
613 | ac_prev=infodir ;; |
---|
614 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
615 | infodir=$ac_optarg ;; |
---|
616 | |
---|
617 | -libdir | --libdir | --libdi | --libd) |
---|
618 | ac_prev=libdir ;; |
---|
619 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
620 | libdir=$ac_optarg ;; |
---|
621 | |
---|
622 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
623 | | --libexe | --libex | --libe) |
---|
624 | ac_prev=libexecdir ;; |
---|
625 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
626 | | --libexe=* | --libex=* | --libe=*) |
---|
627 | libexecdir=$ac_optarg ;; |
---|
628 | |
---|
629 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
630 | | --localstate | --localstat | --localsta | --localst \ |
---|
631 | | --locals | --local | --loca | --loc | --lo) |
---|
632 | ac_prev=localstatedir ;; |
---|
633 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
634 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
635 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
636 | localstatedir=$ac_optarg ;; |
---|
637 | |
---|
638 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
639 | ac_prev=mandir ;; |
---|
640 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
641 | mandir=$ac_optarg ;; |
---|
642 | |
---|
643 | -nfp | --nfp | --nf) |
---|
644 | # Obsolete; use --without-fp. |
---|
645 | with_fp=no ;; |
---|
646 | |
---|
647 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
648 | | --no-cr | --no-c | -n) |
---|
649 | no_create=yes ;; |
---|
650 | |
---|
651 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
652 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
653 | no_recursion=yes ;; |
---|
654 | |
---|
655 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
656 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
657 | | --oldin | --oldi | --old | --ol | --o) |
---|
658 | ac_prev=oldincludedir ;; |
---|
659 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
660 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
661 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
662 | oldincludedir=$ac_optarg ;; |
---|
663 | |
---|
664 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
665 | ac_prev=prefix ;; |
---|
666 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
667 | prefix=$ac_optarg ;; |
---|
668 | |
---|
669 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
670 | | --program-pre | --program-pr | --program-p) |
---|
671 | ac_prev=program_prefix ;; |
---|
672 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
673 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
674 | program_prefix=$ac_optarg ;; |
---|
675 | |
---|
676 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
677 | | --program-suf | --program-su | --program-s) |
---|
678 | ac_prev=program_suffix ;; |
---|
679 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
680 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
681 | program_suffix=$ac_optarg ;; |
---|
682 | |
---|
683 | -program-transform-name | --program-transform-name \ |
---|
684 | | --program-transform-nam | --program-transform-na \ |
---|
685 | | --program-transform-n | --program-transform- \ |
---|
686 | | --program-transform | --program-transfor \ |
---|
687 | | --program-transfo | --program-transf \ |
---|
688 | | --program-trans | --program-tran \ |
---|
689 | | --progr-tra | --program-tr | --program-t) |
---|
690 | ac_prev=program_transform_name ;; |
---|
691 | -program-transform-name=* | --program-transform-name=* \ |
---|
692 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
693 | | --program-transform-n=* | --program-transform-=* \ |
---|
694 | | --program-transform=* | --program-transfor=* \ |
---|
695 | | --program-transfo=* | --program-transf=* \ |
---|
696 | | --program-trans=* | --program-tran=* \ |
---|
697 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
698 | program_transform_name=$ac_optarg ;; |
---|
699 | |
---|
700 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
701 | | -silent | --silent | --silen | --sile | --sil) |
---|
702 | silent=yes ;; |
---|
703 | |
---|
704 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
705 | ac_prev=sbindir ;; |
---|
706 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
707 | | --sbi=* | --sb=*) |
---|
708 | sbindir=$ac_optarg ;; |
---|
709 | |
---|
710 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
711 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
712 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
713 | | --sha | --sh) |
---|
714 | ac_prev=sharedstatedir ;; |
---|
715 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
716 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
717 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
718 | | --sha=* | --sh=*) |
---|
719 | sharedstatedir=$ac_optarg ;; |
---|
720 | |
---|
721 | -site | --site | --sit) |
---|
722 | ac_prev=site ;; |
---|
723 | -site=* | --site=* | --sit=*) |
---|
724 | site=$ac_optarg ;; |
---|
725 | |
---|
726 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
727 | ac_prev=srcdir ;; |
---|
728 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
729 | srcdir=$ac_optarg ;; |
---|
730 | |
---|
731 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
732 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
733 | ac_prev=sysconfdir ;; |
---|
734 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
735 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
736 | sysconfdir=$ac_optarg ;; |
---|
737 | |
---|
738 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
739 | ac_prev=target_alias ;; |
---|
740 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
741 | target_alias=$ac_optarg ;; |
---|
742 | |
---|
743 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
744 | verbose=yes ;; |
---|
745 | |
---|
746 | -version | --version | --versio | --versi | --vers | -V) |
---|
747 | ac_init_version=: ;; |
---|
748 | |
---|
749 | -with-* | --with-*) |
---|
750 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
751 | # Reject names that are not valid shell variable names. |
---|
752 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
753 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
754 | { (exit 1); exit 1; }; } |
---|
755 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
756 | case $ac_option in |
---|
757 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
758 | *) ac_optarg=yes ;; |
---|
759 | esac |
---|
760 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
761 | |
---|
762 | -without-* | --without-*) |
---|
763 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
764 | # Reject names that are not valid shell variable names. |
---|
765 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
766 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
767 | { (exit 1); exit 1; }; } |
---|
768 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
769 | eval "with_$ac_package=no" ;; |
---|
770 | |
---|
771 | --x) |
---|
772 | # Obsolete; use --with-x. |
---|
773 | with_x=yes ;; |
---|
774 | |
---|
775 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
776 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
777 | ac_prev=x_includes ;; |
---|
778 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
779 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
780 | x_includes=$ac_optarg ;; |
---|
781 | |
---|
782 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
783 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
784 | ac_prev=x_libraries ;; |
---|
785 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
786 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
787 | x_libraries=$ac_optarg ;; |
---|
788 | |
---|
789 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
790 | Try \`$0 --help' for more information." >&2 |
---|
791 | { (exit 1); exit 1; }; } |
---|
792 | ;; |
---|
793 | |
---|
794 | *=*) |
---|
795 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
796 | # Reject names that are not valid shell variable names. |
---|
797 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
798 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
799 | { (exit 1); exit 1; }; } |
---|
800 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
801 | eval "$ac_envvar='$ac_optarg'" |
---|
802 | export $ac_envvar ;; |
---|
803 | |
---|
804 | *) |
---|
805 | # FIXME: should be removed in autoconf 3.0. |
---|
806 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
807 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
808 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
809 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
810 | ;; |
---|
811 | |
---|
812 | esac |
---|
813 | done |
---|
814 | |
---|
815 | if test -n "$ac_prev"; then |
---|
816 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
817 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
818 | { (exit 1); exit 1; }; } |
---|
819 | fi |
---|
820 | |
---|
821 | # Be sure to have absolute paths. |
---|
822 | for ac_var in exec_prefix prefix |
---|
823 | do |
---|
824 | eval ac_val=$`echo $ac_var` |
---|
825 | case $ac_val in |
---|
826 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
827 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
828 | { (exit 1); exit 1; }; };; |
---|
829 | esac |
---|
830 | done |
---|
831 | |
---|
832 | # Be sure to have absolute paths. |
---|
833 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
834 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
835 | do |
---|
836 | eval ac_val=$`echo $ac_var` |
---|
837 | case $ac_val in |
---|
838 | [\\/$]* | ?:[\\/]* ) ;; |
---|
839 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
840 | { (exit 1); exit 1; }; };; |
---|
841 | esac |
---|
842 | done |
---|
843 | |
---|
844 | # There might be people who depend on the old broken behavior: `$host' |
---|
845 | # used to hold the argument of --host etc. |
---|
846 | # FIXME: To remove some day. |
---|
847 | build=$build_alias |
---|
848 | host=$host_alias |
---|
849 | target=$target_alias |
---|
850 | |
---|
851 | # FIXME: To remove some day. |
---|
852 | if test "x$host_alias" != x; then |
---|
853 | if test "x$build_alias" = x; then |
---|
854 | cross_compiling=maybe |
---|
855 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
856 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
857 | elif test "x$build_alias" != "x$host_alias"; then |
---|
858 | cross_compiling=yes |
---|
859 | fi |
---|
860 | fi |
---|
861 | |
---|
862 | ac_tool_prefix= |
---|
863 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
864 | |
---|
865 | test "$silent" = yes && exec 6>/dev/null |
---|
866 | |
---|
867 | |
---|
868 | # Find the source files, if location was not specified. |
---|
869 | if test -z "$srcdir"; then |
---|
870 | ac_srcdir_defaulted=yes |
---|
871 | # Try the directory containing this script, then its parent. |
---|
872 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
873 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
874 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
875 | X"$0" : 'X\(//\)$' \| \ |
---|
876 | X"$0" : 'X\(/\)' \| \ |
---|
877 | . : '\(.\)' 2>/dev/null || |
---|
878 | echo X"$0" | |
---|
879 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
880 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
881 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
882 | /^X\(\/\).*/{ s//\1/; q; } |
---|
883 | s/.*/./; q'` |
---|
884 | srcdir=$ac_confdir |
---|
885 | if test ! -r $srcdir/$ac_unique_file; then |
---|
886 | srcdir=.. |
---|
887 | fi |
---|
888 | else |
---|
889 | ac_srcdir_defaulted=no |
---|
890 | fi |
---|
891 | if test ! -r $srcdir/$ac_unique_file; then |
---|
892 | if test "$ac_srcdir_defaulted" = yes; then |
---|
893 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
894 | { (exit 1); exit 1; }; } |
---|
895 | else |
---|
896 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
897 | { (exit 1); exit 1; }; } |
---|
898 | fi |
---|
899 | fi |
---|
900 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
901 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
902 | { (exit 1); exit 1; }; } |
---|
903 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
904 | ac_env_build_alias_set=${build_alias+set} |
---|
905 | ac_env_build_alias_value=$build_alias |
---|
906 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
907 | ac_cv_env_build_alias_value=$build_alias |
---|
908 | ac_env_host_alias_set=${host_alias+set} |
---|
909 | ac_env_host_alias_value=$host_alias |
---|
910 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
911 | ac_cv_env_host_alias_value=$host_alias |
---|
912 | ac_env_target_alias_set=${target_alias+set} |
---|
913 | ac_env_target_alias_value=$target_alias |
---|
914 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
915 | ac_cv_env_target_alias_value=$target_alias |
---|
916 | ac_env_CDEFS_set=${CDEFS+set} |
---|
917 | ac_env_CDEFS_value=$CDEFS |
---|
918 | ac_cv_env_CDEFS_set=${CDEFS+set} |
---|
919 | ac_cv_env_CDEFS_value=$CDEFS |
---|
920 | ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} |
---|
921 | ac_env_ADD_CFLAGS_value=$ADD_CFLAGS |
---|
922 | ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} |
---|
923 | ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS |
---|
924 | ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} |
---|
925 | ac_env_DBG_CFLAGS_value=$DBG_CFLAGS |
---|
926 | ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} |
---|
927 | ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS |
---|
928 | ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} |
---|
929 | ac_env_OPT_CFLAGS_value=$OPT_CFLAGS |
---|
930 | ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} |
---|
931 | ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS |
---|
932 | ac_env_CC_set=${CC+set} |
---|
933 | ac_env_CC_value=$CC |
---|
934 | ac_cv_env_CC_set=${CC+set} |
---|
935 | ac_cv_env_CC_value=$CC |
---|
936 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
937 | ac_env_CFLAGS_value=$CFLAGS |
---|
938 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
939 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
940 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
941 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
942 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
943 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
944 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
945 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
946 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
947 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
948 | ac_env_MPICC_set=${MPICC+set} |
---|
949 | ac_env_MPICC_value=$MPICC |
---|
950 | ac_cv_env_MPICC_set=${MPICC+set} |
---|
951 | ac_cv_env_MPICC_value=$MPICC |
---|
952 | ac_env_CXXDEFS_set=${CXXDEFS+set} |
---|
953 | ac_env_CXXDEFS_value=$CXXDEFS |
---|
954 | ac_cv_env_CXXDEFS_set=${CXXDEFS+set} |
---|
955 | ac_cv_env_CXXDEFS_value=$CXXDEFS |
---|
956 | ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} |
---|
957 | ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS |
---|
958 | ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} |
---|
959 | ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS |
---|
960 | ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} |
---|
961 | ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS |
---|
962 | ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} |
---|
963 | ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS |
---|
964 | ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} |
---|
965 | ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS |
---|
966 | ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} |
---|
967 | ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS |
---|
968 | ac_env_CXX_set=${CXX+set} |
---|
969 | ac_env_CXX_value=$CXX |
---|
970 | ac_cv_env_CXX_set=${CXX+set} |
---|
971 | ac_cv_env_CXX_value=$CXX |
---|
972 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
973 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
974 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
975 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
976 | ac_env_MPICXX_set=${MPICXX+set} |
---|
977 | ac_env_MPICXX_value=$MPICXX |
---|
978 | ac_cv_env_MPICXX_set=${MPICXX+set} |
---|
979 | ac_cv_env_MPICXX_value=$MPICXX |
---|
980 | ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} |
---|
981 | ac_env_PKG_CONFIG_value=$PKG_CONFIG |
---|
982 | ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} |
---|
983 | ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG |
---|
984 | ac_env_CPP_set=${CPP+set} |
---|
985 | ac_env_CPP_value=$CPP |
---|
986 | ac_cv_env_CPP_set=${CPP+set} |
---|
987 | ac_cv_env_CPP_value=$CPP |
---|
988 | ac_env_CXXCPP_set=${CXXCPP+set} |
---|
989 | ac_env_CXXCPP_value=$CXXCPP |
---|
990 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
---|
991 | ac_cv_env_CXXCPP_value=$CXXCPP |
---|
992 | ac_env_F77_set=${F77+set} |
---|
993 | ac_env_F77_value=$F77 |
---|
994 | ac_cv_env_F77_set=${F77+set} |
---|
995 | ac_cv_env_F77_value=$F77 |
---|
996 | ac_env_FFLAGS_set=${FFLAGS+set} |
---|
997 | ac_env_FFLAGS_value=$FFLAGS |
---|
998 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
---|
999 | ac_cv_env_FFLAGS_value=$FFLAGS |
---|
1000 | |
---|
1001 | # |
---|
1002 | # Report the --help message. |
---|
1003 | # |
---|
1004 | if test "$ac_init_help" = "long"; then |
---|
1005 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1006 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1007 | cat <<_ACEOF |
---|
1008 | \`configure' configures ThirdPartySoplex trunk to adapt to many kinds of systems. |
---|
1009 | |
---|
1010 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1011 | |
---|
1012 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1013 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1014 | |
---|
1015 | Defaults for the options are specified in brackets. |
---|
1016 | |
---|
1017 | Configuration: |
---|
1018 | -h, --help display this help and exit |
---|
1019 | --help=short display options specific to this package |
---|
1020 | --help=recursive display the short help of all the included packages |
---|
1021 | -V, --version display version information and exit |
---|
1022 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1023 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1024 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1025 | -n, --no-create do not create output files |
---|
1026 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1027 | |
---|
1028 | _ACEOF |
---|
1029 | |
---|
1030 | cat <<_ACEOF |
---|
1031 | Installation directories: |
---|
1032 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1033 | [$ac_default_prefix] |
---|
1034 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1035 | [PREFIX] |
---|
1036 | |
---|
1037 | By default, \`make install' will install all the files in |
---|
1038 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1039 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1040 | for instance \`--prefix=\$HOME'. |
---|
1041 | |
---|
1042 | For better control, use the options below. |
---|
1043 | |
---|
1044 | Fine tuning of the installation directories: |
---|
1045 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1046 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1047 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1048 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
1049 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1050 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1051 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1052 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1053 | --includedir=DIR C header files [PREFIX/include] |
---|
1054 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1055 | --infodir=DIR info documentation [PREFIX/info] |
---|
1056 | --mandir=DIR man documentation [PREFIX/man] |
---|
1057 | _ACEOF |
---|
1058 | |
---|
1059 | cat <<\_ACEOF |
---|
1060 | |
---|
1061 | Program names: |
---|
1062 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1063 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1064 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1065 | |
---|
1066 | System types: |
---|
1067 | --build=BUILD configure for building on BUILD [guessed] |
---|
1068 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1069 | _ACEOF |
---|
1070 | fi |
---|
1071 | |
---|
1072 | if test -n "$ac_init_help"; then |
---|
1073 | case $ac_init_help in |
---|
1074 | short | recursive ) echo "Configuration of ThirdPartySoplex trunk:";; |
---|
1075 | esac |
---|
1076 | cat <<\_ACEOF |
---|
1077 | |
---|
1078 | Optional Features: |
---|
1079 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1080 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1081 | --enable-debug compile all projects with debug options tests |
---|
1082 | (implies --disable-shared) |
---|
1083 | --enable-debug-soplex compile project SoPlex with debug compiler flags |
---|
1084 | --enable-doscompile Under Cygwin, compile so that executables run under |
---|
1085 | DOS. Set to mingw to use gcc/g++/ld with |
---|
1086 | -mno-cygwin. Set to msvc to use cl/link (or |
---|
1087 | icl/link). Default when mentioned: mingw. Default |
---|
1088 | when not mentioned: disabled. |
---|
1089 | --disable-pkg-config disable use of pkg-config (if available) |
---|
1090 | --enable-static[=PKGS] |
---|
1091 | build static libraries [default=no] |
---|
1092 | --disable-dependency-tracking speeds up one-time build |
---|
1093 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1094 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
1095 | (and sometimes confusing) to the casual installer |
---|
1096 | --enable-shared[=PKGS] |
---|
1097 | build shared libraries [default=yes] |
---|
1098 | --enable-fast-install[=PKGS] |
---|
1099 | optimize for fast installation [default=yes] |
---|
1100 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1101 | --disable-zlib do not compile with compression library zlib |
---|
1102 | |
---|
1103 | Optional Packages: |
---|
1104 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1105 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1106 | --with-soplex-verbosity specify the debug verbosity level for project SoPlex |
---|
1107 | --with-soplex-checklevel |
---|
1108 | specify the sanity check level for project SoPlex |
---|
1109 | --with-coin-instdir prefix of installation directory for precompiled |
---|
1110 | COIN packages |
---|
1111 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1112 | --with-pic try to use only PIC/non-PIC objects [default=use |
---|
1113 | both] |
---|
1114 | --with-tags[=TAGS] |
---|
1115 | include additional configurations [automatic] |
---|
1116 | |
---|
1117 | Some influential environment variables: |
---|
1118 | CDEFS Additional -D flags to be used when compiling C code. |
---|
1119 | ADD_CFLAGS Additional C compiler options |
---|
1120 | DBG_CFLAGS Debug C compiler options |
---|
1121 | OPT_CFLAGS Optimize C compiler options |
---|
1122 | CC C compiler command |
---|
1123 | CFLAGS C compiler flags |
---|
1124 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1125 | nonstandard directory <lib dir> |
---|
1126 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
1127 | headers in a nonstandard directory <include dir> |
---|
1128 | MPICC C MPI Compiler |
---|
1129 | CXXDEFS Additional -D flags to be used when compiling C++ code. |
---|
1130 | ADD_CXXFLAGS |
---|
1131 | Additional C++ compiler options |
---|
1132 | DBG_CXXFLAGS |
---|
1133 | Debug C++ compiler options |
---|
1134 | OPT_CXXFLAGS |
---|
1135 | Optimize C++ compiler options |
---|
1136 | CXX C++ compiler command |
---|
1137 | CXXFLAGS C++ compiler flags |
---|
1138 | MPICXX C++ MPI Compiler |
---|
1139 | PKG_CONFIG path to pkg-config utility |
---|
1140 | CPP C preprocessor |
---|
1141 | CXXCPP C++ preprocessor |
---|
1142 | F77 Fortran 77 compiler command |
---|
1143 | FFLAGS Fortran 77 compiler flags |
---|
1144 | |
---|
1145 | Use these variables to override the choices made by `configure' or to help |
---|
1146 | it to find libraries and programs with nonstandard names/locations. |
---|
1147 | |
---|
1148 | Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. |
---|
1149 | _ACEOF |
---|
1150 | fi |
---|
1151 | |
---|
1152 | if test "$ac_init_help" = "recursive"; then |
---|
1153 | # If there are subdirs, report their specific --help. |
---|
1154 | ac_popdir=`pwd` |
---|
1155 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1156 | test -d $ac_dir || continue |
---|
1157 | ac_builddir=. |
---|
1158 | |
---|
1159 | if test "$ac_dir" != .; then |
---|
1160 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1161 | # A "../" for each directory in $ac_dir_suffix. |
---|
1162 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
1163 | else |
---|
1164 | ac_dir_suffix= ac_top_builddir= |
---|
1165 | fi |
---|
1166 | |
---|
1167 | case $srcdir in |
---|
1168 | .) # No --srcdir option. We are building in place. |
---|
1169 | ac_srcdir=. |
---|
1170 | if test -z "$ac_top_builddir"; then |
---|
1171 | ac_top_srcdir=. |
---|
1172 | else |
---|
1173 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
1174 | fi ;; |
---|
1175 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
1176 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1177 | ac_top_srcdir=$srcdir ;; |
---|
1178 | *) # Relative path. |
---|
1179 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
1180 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
1181 | esac |
---|
1182 | |
---|
1183 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
1184 | # the directories may not exist. |
---|
1185 | case `pwd` in |
---|
1186 | .) ac_abs_builddir="$ac_dir";; |
---|
1187 | *) |
---|
1188 | case "$ac_dir" in |
---|
1189 | .) ac_abs_builddir=`pwd`;; |
---|
1190 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
1191 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
1192 | esac;; |
---|
1193 | esac |
---|
1194 | case $ac_abs_builddir in |
---|
1195 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1196 | *) |
---|
1197 | case ${ac_top_builddir}. in |
---|
1198 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
1199 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1200 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
1201 | esac;; |
---|
1202 | esac |
---|
1203 | case $ac_abs_builddir in |
---|
1204 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
1205 | *) |
---|
1206 | case $ac_srcdir in |
---|
1207 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
1208 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
1209 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
1210 | esac;; |
---|
1211 | esac |
---|
1212 | case $ac_abs_builddir in |
---|
1213 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1214 | *) |
---|
1215 | case $ac_top_srcdir in |
---|
1216 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
1217 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1218 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
1219 | esac;; |
---|
1220 | esac |
---|
1221 | |
---|
1222 | cd $ac_dir |
---|
1223 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
1224 | if test -f $ac_srcdir/configure.gnu; then |
---|
1225 | echo |
---|
1226 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
1227 | elif test -f $ac_srcdir/configure; then |
---|
1228 | echo |
---|
1229 | $SHELL $ac_srcdir/configure --help=recursive |
---|
1230 | elif test -f $ac_srcdir/configure.ac || |
---|
1231 | test -f $ac_srcdir/configure.in; then |
---|
1232 | echo |
---|
1233 | $ac_configure --help |
---|
1234 | else |
---|
1235 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1236 | fi |
---|
1237 | cd $ac_popdir |
---|
1238 | done |
---|
1239 | fi |
---|
1240 | |
---|
1241 | test -n "$ac_init_help" && exit 0 |
---|
1242 | if $ac_init_version; then |
---|
1243 | cat <<\_ACEOF |
---|
1244 | ThirdPartySoplex configure trunk |
---|
1245 | generated by GNU Autoconf 2.59 |
---|
1246 | |
---|
1247 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
1248 | This configure script is free software; the Free Software Foundation |
---|
1249 | gives unlimited permission to copy, distribute and modify it. |
---|
1250 | |
---|
1251 | |
---|
1252 | Copyright 2010,2011 Stefan Vigerske and others. |
---|
1253 | All Rights Reserved. |
---|
1254 | This file is part of the open source package COIN-OR which is distributed |
---|
1255 | under the Eclipse Public License. |
---|
1256 | _ACEOF |
---|
1257 | exit 0 |
---|
1258 | fi |
---|
1259 | exec 5>config.log |
---|
1260 | cat >&5 <<_ACEOF |
---|
1261 | This file contains any messages produced by compilers while |
---|
1262 | running configure, to aid debugging if configure makes a mistake. |
---|
1263 | |
---|
1264 | It was created by ThirdPartySoplex $as_me trunk, which was |
---|
1265 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1266 | |
---|
1267 | $ $0 $@ |
---|
1268 | |
---|
1269 | _ACEOF |
---|
1270 | { |
---|
1271 | cat <<_ASUNAME |
---|
1272 | ## --------- ## |
---|
1273 | ## Platform. ## |
---|
1274 | ## --------- ## |
---|
1275 | |
---|
1276 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1277 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1278 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1279 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1280 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1281 | |
---|
1282 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1283 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1284 | |
---|
1285 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1286 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1287 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1288 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1289 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1290 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1291 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1292 | |
---|
1293 | _ASUNAME |
---|
1294 | |
---|
1295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1296 | for as_dir in $PATH |
---|
1297 | do |
---|
1298 | IFS=$as_save_IFS |
---|
1299 | test -z "$as_dir" && as_dir=. |
---|
1300 | echo "PATH: $as_dir" |
---|
1301 | done |
---|
1302 | |
---|
1303 | } >&5 |
---|
1304 | |
---|
1305 | cat >&5 <<_ACEOF |
---|
1306 | |
---|
1307 | |
---|
1308 | ## ----------- ## |
---|
1309 | ## Core tests. ## |
---|
1310 | ## ----------- ## |
---|
1311 | |
---|
1312 | _ACEOF |
---|
1313 | |
---|
1314 | |
---|
1315 | # Keep a trace of the command line. |
---|
1316 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1317 | # Strip out --silent because we don't want to record it for future runs. |
---|
1318 | # Also quote any args containing shell meta-characters. |
---|
1319 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1320 | ac_configure_args= |
---|
1321 | ac_configure_args0= |
---|
1322 | ac_configure_args1= |
---|
1323 | ac_sep= |
---|
1324 | ac_must_keep_next=false |
---|
1325 | for ac_pass in 1 2 |
---|
1326 | do |
---|
1327 | for ac_arg |
---|
1328 | do |
---|
1329 | case $ac_arg in |
---|
1330 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1331 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1332 | | -silent | --silent | --silen | --sile | --sil) |
---|
1333 | continue ;; |
---|
1334 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1335 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1336 | esac |
---|
1337 | case $ac_pass in |
---|
1338 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1339 | 2) |
---|
1340 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1341 | if test $ac_must_keep_next = true; then |
---|
1342 | ac_must_keep_next=false # Got value, back to normal. |
---|
1343 | else |
---|
1344 | case $ac_arg in |
---|
1345 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1346 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1347 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1348 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1349 | case "$ac_configure_args0 " in |
---|
1350 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1351 | esac |
---|
1352 | ;; |
---|
1353 | -* ) ac_must_keep_next=true ;; |
---|
1354 | esac |
---|
1355 | fi |
---|
1356 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1357 | # Get rid of the leading space. |
---|
1358 | ac_sep=" " |
---|
1359 | ;; |
---|
1360 | esac |
---|
1361 | done |
---|
1362 | done |
---|
1363 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1364 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1365 | |
---|
1366 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1367 | # config.log. We remove comments because anyway the quotes in there |
---|
1368 | # would cause problems or look ugly. |
---|
1369 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1370 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1371 | trap 'exit_status=$? |
---|
1372 | # Save into config.log some information that might help in debugging. |
---|
1373 | { |
---|
1374 | echo |
---|
1375 | |
---|
1376 | cat <<\_ASBOX |
---|
1377 | ## ---------------- ## |
---|
1378 | ## Cache variables. ## |
---|
1379 | ## ---------------- ## |
---|
1380 | _ASBOX |
---|
1381 | echo |
---|
1382 | # The following way of writing the cache mishandles newlines in values, |
---|
1383 | { |
---|
1384 | (set) 2>&1 | |
---|
1385 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1386 | *ac_space=\ *) |
---|
1387 | sed -n \ |
---|
1388 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1389 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1390 | ;; |
---|
1391 | *) |
---|
1392 | sed -n \ |
---|
1393 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1394 | ;; |
---|
1395 | esac; |
---|
1396 | } |
---|
1397 | echo |
---|
1398 | |
---|
1399 | cat <<\_ASBOX |
---|
1400 | ## ----------------- ## |
---|
1401 | ## Output variables. ## |
---|
1402 | ## ----------------- ## |
---|
1403 | _ASBOX |
---|
1404 | echo |
---|
1405 | for ac_var in $ac_subst_vars |
---|
1406 | do |
---|
1407 | eval ac_val=$`echo $ac_var` |
---|
1408 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1409 | done | sort |
---|
1410 | echo |
---|
1411 | |
---|
1412 | if test -n "$ac_subst_files"; then |
---|
1413 | cat <<\_ASBOX |
---|
1414 | ## ------------- ## |
---|
1415 | ## Output files. ## |
---|
1416 | ## ------------- ## |
---|
1417 | _ASBOX |
---|
1418 | echo |
---|
1419 | for ac_var in $ac_subst_files |
---|
1420 | do |
---|
1421 | eval ac_val=$`echo $ac_var` |
---|
1422 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1423 | done | sort |
---|
1424 | echo |
---|
1425 | fi |
---|
1426 | |
---|
1427 | if test -s confdefs.h; then |
---|
1428 | cat <<\_ASBOX |
---|
1429 | ## ----------- ## |
---|
1430 | ## confdefs.h. ## |
---|
1431 | ## ----------- ## |
---|
1432 | _ASBOX |
---|
1433 | echo |
---|
1434 | sed "/^$/d" confdefs.h | sort |
---|
1435 | echo |
---|
1436 | fi |
---|
1437 | test "$ac_signal" != 0 && |
---|
1438 | echo "$as_me: caught signal $ac_signal" |
---|
1439 | echo "$as_me: exit $exit_status" |
---|
1440 | } >&5 |
---|
1441 | rm -f core *.core && |
---|
1442 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1443 | exit $exit_status |
---|
1444 | ' 0 |
---|
1445 | for ac_signal in 1 2 13 15; do |
---|
1446 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1447 | done |
---|
1448 | ac_signal=0 |
---|
1449 | |
---|
1450 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1451 | rm -rf conftest* confdefs.h |
---|
1452 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1453 | echo >confdefs.h |
---|
1454 | |
---|
1455 | # Predefined preprocessor variables. |
---|
1456 | |
---|
1457 | cat >>confdefs.h <<_ACEOF |
---|
1458 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1459 | _ACEOF |
---|
1460 | |
---|
1461 | |
---|
1462 | cat >>confdefs.h <<_ACEOF |
---|
1463 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1464 | _ACEOF |
---|
1465 | |
---|
1466 | |
---|
1467 | cat >>confdefs.h <<_ACEOF |
---|
1468 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1469 | _ACEOF |
---|
1470 | |
---|
1471 | |
---|
1472 | cat >>confdefs.h <<_ACEOF |
---|
1473 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1474 | _ACEOF |
---|
1475 | |
---|
1476 | |
---|
1477 | cat >>confdefs.h <<_ACEOF |
---|
1478 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1479 | _ACEOF |
---|
1480 | |
---|
1481 | |
---|
1482 | # Let the site file select an alternate cache file if it wants to. |
---|
1483 | # Prefer explicitly selected file to automatically selected ones. |
---|
1484 | if test -z "$CONFIG_SITE"; then |
---|
1485 | if test "x$prefix" != xNONE; then |
---|
1486 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1487 | else |
---|
1488 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1489 | fi |
---|
1490 | fi |
---|
1491 | for ac_site_file in $CONFIG_SITE; do |
---|
1492 | if test -r "$ac_site_file"; then |
---|
1493 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1494 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1495 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1496 | . "$ac_site_file" |
---|
1497 | fi |
---|
1498 | done |
---|
1499 | |
---|
1500 | if test -r "$cache_file"; then |
---|
1501 | # Some versions of bash will fail to source /dev/null (special |
---|
1502 | # files actually), so we avoid doing that. |
---|
1503 | if test -f "$cache_file"; then |
---|
1504 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1505 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1506 | case $cache_file in |
---|
1507 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1508 | *) . ./$cache_file;; |
---|
1509 | esac |
---|
1510 | fi |
---|
1511 | else |
---|
1512 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1513 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1514 | >$cache_file |
---|
1515 | fi |
---|
1516 | |
---|
1517 | # Check that the precious variables saved in the cache have kept the same |
---|
1518 | # value. |
---|
1519 | ac_cache_corrupted=false |
---|
1520 | for ac_var in `(set) 2>&1 | |
---|
1521 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1522 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1523 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1524 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1525 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1526 | case $ac_old_set,$ac_new_set in |
---|
1527 | set,) |
---|
1528 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1529 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1530 | ac_cache_corrupted=: ;; |
---|
1531 | ,set) |
---|
1532 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1533 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1534 | ac_cache_corrupted=: ;; |
---|
1535 | ,);; |
---|
1536 | *) |
---|
1537 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1538 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1539 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1540 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1541 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1542 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1543 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1544 | ac_cache_corrupted=: |
---|
1545 | fi;; |
---|
1546 | esac |
---|
1547 | # Pass precious variables to config.status. |
---|
1548 | if test "$ac_new_set" = set; then |
---|
1549 | case $ac_new_val in |
---|
1550 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1551 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1552 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1553 | esac |
---|
1554 | case " $ac_configure_args " in |
---|
1555 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1556 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1557 | esac |
---|
1558 | fi |
---|
1559 | done |
---|
1560 | if $ac_cache_corrupted; then |
---|
1561 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1562 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1563 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1564 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1565 | { (exit 1); exit 1; }; } |
---|
1566 | fi |
---|
1567 | |
---|
1568 | ac_ext=c |
---|
1569 | ac_cpp='$CPP $CPPFLAGS' |
---|
1570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1573 | |
---|
1574 | |
---|
1575 | |
---|
1576 | |
---|
1577 | |
---|
1578 | |
---|
1579 | |
---|
1580 | |
---|
1581 | |
---|
1582 | |
---|
1583 | |
---|
1584 | |
---|
1585 | |
---|
1586 | |
---|
1587 | |
---|
1588 | |
---|
1589 | |
---|
1590 | |
---|
1591 | |
---|
1592 | |
---|
1593 | |
---|
1594 | |
---|
1595 | |
---|
1596 | |
---|
1597 | |
---|
1598 | |
---|
1599 | |
---|
1600 | |
---|
1601 | |
---|
1602 | |
---|
1603 | # List one file in the package so that the configure script can test |
---|
1604 | # whether the package is actually there |
---|
1605 | |
---|
1606 | |
---|
1607 | # Where should everything be installed by default? Here, we want it |
---|
1608 | # to be installed directly in 'bin', 'lib', 'include' subdirectories |
---|
1609 | # of the directory where configure is run. The default would be |
---|
1610 | # /usr/local. |
---|
1611 | |
---|
1612 | |
---|
1613 | |
---|
1614 | # As backup, we make sure we don't loose an FLIBS if it has been set |
---|
1615 | # by the user |
---|
1616 | save_FLIBS="$FLIBS" |
---|
1617 | |
---|
1618 | # A useful makefile conditional that is always false |
---|
1619 | |
---|
1620 | |
---|
1621 | if false; then |
---|
1622 | ALWAYS_FALSE_TRUE= |
---|
1623 | ALWAYS_FALSE_FALSE='#' |
---|
1624 | else |
---|
1625 | ALWAYS_FALSE_TRUE='#' |
---|
1626 | ALWAYS_FALSE_FALSE= |
---|
1627 | fi |
---|
1628 | |
---|
1629 | |
---|
1630 | # We set the following variable so that we know later in AC_COIN_FINALIZE |
---|
1631 | # that we are in a project main directory |
---|
1632 | coin_projectdir=yes |
---|
1633 | |
---|
1634 | # Set the project's version numbers |
---|
1635 | |
---|
1636 | |
---|
1637 | cat >>confdefs.h <<_ACEOF |
---|
1638 | #define SOPLEX_VERSION "$PACKAGE_VERSION" |
---|
1639 | _ACEOF |
---|
1640 | |
---|
1641 | |
---|
1642 | coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'` |
---|
1643 | coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'` |
---|
1644 | coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'` |
---|
1645 | if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi |
---|
1646 | if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi |
---|
1647 | if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi |
---|
1648 | |
---|
1649 | cat >>confdefs.h <<_ACEOF |
---|
1650 | #define SOPLEX_VERSION_MAJOR $coin_majorver |
---|
1651 | _ACEOF |
---|
1652 | |
---|
1653 | |
---|
1654 | cat >>confdefs.h <<_ACEOF |
---|
1655 | #define SOPLEX_VERSION_MINOR $coin_minorver |
---|
1656 | _ACEOF |
---|
1657 | |
---|
1658 | |
---|
1659 | cat >>confdefs.h <<_ACEOF |
---|
1660 | #define SOPLEX_VERSION_RELEASE $coin_releasever |
---|
1661 | _ACEOF |
---|
1662 | |
---|
1663 | |
---|
1664 | # We use the following variable to have a string with the upper case |
---|
1665 | # version of the project name |
---|
1666 | COIN_PRJCT=SOPLEX |
---|
1667 | |
---|
1668 | # Set the project's SVN revision number. The complicated sed expression |
---|
1669 | # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up |
---|
1670 | # as a single number. |
---|
1671 | # Extract the first word of "svnversion", so it can be a program name with args. |
---|
1672 | set dummy svnversion; ac_word=$2 |
---|
1673 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1675 | if test "${ac_cv_prog_have_svnversion+set}" = set; then |
---|
1676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1677 | else |
---|
1678 | if test -n "$have_svnversion"; then |
---|
1679 | ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test. |
---|
1680 | else |
---|
1681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1682 | for as_dir in $PATH |
---|
1683 | do |
---|
1684 | IFS=$as_save_IFS |
---|
1685 | test -z "$as_dir" && as_dir=. |
---|
1686 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1687 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1688 | ac_cv_prog_have_svnversion="yes" |
---|
1689 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1690 | break 2 |
---|
1691 | fi |
---|
1692 | done |
---|
1693 | done |
---|
1694 | |
---|
1695 | test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no" |
---|
1696 | fi |
---|
1697 | fi |
---|
1698 | have_svnversion=$ac_cv_prog_have_svnversion |
---|
1699 | if test -n "$have_svnversion"; then |
---|
1700 | echo "$as_me:$LINENO: result: $have_svnversion" >&5 |
---|
1701 | echo "${ECHO_T}$have_svnversion" >&6 |
---|
1702 | else |
---|
1703 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1704 | echo "${ECHO_T}no" >&6 |
---|
1705 | fi |
---|
1706 | |
---|
1707 | if test "x$have_svnversion" = xyes; then |
---|
1708 | |
---|
1709 | svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null` |
---|
1710 | if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then |
---|
1711 | SOPLEX_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'` |
---|
1712 | |
---|
1713 | cat >>confdefs.h <<_ACEOF |
---|
1714 | #define SOPLEX_SVN_REV $SOPLEX_SVN_REV |
---|
1715 | _ACEOF |
---|
1716 | |
---|
1717 | fi |
---|
1718 | fi |
---|
1719 | |
---|
1720 | |
---|
1721 | |
---|
1722 | # Capture libtool library version, if given. |
---|
1723 | |
---|
1724 | |
---|
1725 | |
---|
1726 | |
---|
1727 | ############################################################################# |
---|
1728 | # Standard build tool stuff # |
---|
1729 | ############################################################################# |
---|
1730 | |
---|
1731 | # Get the system type |
---|
1732 | ac_aux_dir= |
---|
1733 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1734 | if test -f $ac_dir/install-sh; then |
---|
1735 | ac_aux_dir=$ac_dir |
---|
1736 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1737 | break |
---|
1738 | elif test -f $ac_dir/install.sh; then |
---|
1739 | ac_aux_dir=$ac_dir |
---|
1740 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1741 | break |
---|
1742 | elif test -f $ac_dir/shtool; then |
---|
1743 | ac_aux_dir=$ac_dir |
---|
1744 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1745 | break |
---|
1746 | fi |
---|
1747 | done |
---|
1748 | if test -z "$ac_aux_dir"; then |
---|
1749 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1750 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1751 | { (exit 1); exit 1; }; } |
---|
1752 | fi |
---|
1753 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1754 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1755 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1756 | |
---|
1757 | # Make sure we can run config.sub. |
---|
1758 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1759 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1760 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1761 | { (exit 1); exit 1; }; } |
---|
1762 | |
---|
1763 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1764 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1765 | if test "${ac_cv_build+set}" = set; then |
---|
1766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1767 | else |
---|
1768 | ac_cv_build_alias=$build_alias |
---|
1769 | test -z "$ac_cv_build_alias" && |
---|
1770 | ac_cv_build_alias=`$ac_config_guess` |
---|
1771 | test -z "$ac_cv_build_alias" && |
---|
1772 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1773 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1774 | { (exit 1); exit 1; }; } |
---|
1775 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1776 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1777 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1778 | { (exit 1); exit 1; }; } |
---|
1779 | |
---|
1780 | fi |
---|
1781 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1782 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1783 | build=$ac_cv_build |
---|
1784 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1785 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1786 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1787 | |
---|
1788 | |
---|
1789 | |
---|
1790 | # Check if user wants to produce debugging code |
---|
1791 | |
---|
1792 | echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 |
---|
1793 | echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 |
---|
1794 | |
---|
1795 | # Check whether --enable-debug or --disable-debug was given. |
---|
1796 | if test "${enable_debug+set}" = set; then |
---|
1797 | enableval="$enable_debug" |
---|
1798 | case "${enableval}" in |
---|
1799 | yes) coin_debug_compile=true |
---|
1800 | if test "${enable_shared+set}" = set; then :; else |
---|
1801 | enable_shared=no |
---|
1802 | fi |
---|
1803 | ;; |
---|
1804 | no) coin_debug_compile=false |
---|
1805 | ;; |
---|
1806 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 |
---|
1807 | echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} |
---|
1808 | { (exit 1); exit 1; }; } |
---|
1809 | ;; |
---|
1810 | esac |
---|
1811 | else |
---|
1812 | coin_debug_compile=false |
---|
1813 | fi; |
---|
1814 | |
---|
1815 | # Check whether --enable-debug-soplex or --disable-debug-soplex was given. |
---|
1816 | if test "${enable_debug_soplex+set}" = set; then |
---|
1817 | enableval="$enable_debug_soplex" |
---|
1818 | case "${enableval}" in |
---|
1819 | yes) coin_debug_compile=true |
---|
1820 | ;; |
---|
1821 | no) coin_debug_compile=false |
---|
1822 | ;; |
---|
1823 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-soplex" >&5 |
---|
1824 | echo "$as_me: error: bad value ${enableval} for --enable-debug-soplex" >&2;} |
---|
1825 | { (exit 1); exit 1; }; } |
---|
1826 | ;; |
---|
1827 | esac |
---|
1828 | else |
---|
1829 | : |
---|
1830 | fi; |
---|
1831 | |
---|
1832 | # m4_ifvaln([SoPlex], |
---|
1833 | |
---|
1834 | if test $coin_debug_compile = true; then |
---|
1835 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1836 | echo "${ECHO_T}yes" >&6 |
---|
1837 | else |
---|
1838 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1839 | echo "${ECHO_T}no" >&6 |
---|
1840 | fi |
---|
1841 | |
---|
1842 | |
---|
1843 | # Check whether --with-soplex-verbosity or --without-soplex-verbosity was given. |
---|
1844 | if test "${with_soplex_verbosity+set}" = set; then |
---|
1845 | withval="$with_soplex_verbosity" |
---|
1846 | if test "$withval" = yes; then |
---|
1847 | withval=1 |
---|
1848 | fi |
---|
1849 | coin_soplex_verbosity=$withval |
---|
1850 | else |
---|
1851 | coin_soplex_verbosity=0 |
---|
1852 | fi; |
---|
1853 | |
---|
1854 | cat >>confdefs.h <<_ACEOF |
---|
1855 | #define COIN_SOPLEX_VERBOSITY $coin_soplex_verbosity |
---|
1856 | _ACEOF |
---|
1857 | |
---|
1858 | |
---|
1859 | |
---|
1860 | # Check whether --with-soplex-checklevel or --without-soplex-checklevel was given. |
---|
1861 | if test "${with_soplex_checklevel+set}" = set; then |
---|
1862 | withval="$with_soplex_checklevel" |
---|
1863 | if test "$withval" = yes; then |
---|
1864 | withval=1 |
---|
1865 | fi |
---|
1866 | coin_soplex_checklevel=$withval |
---|
1867 | else |
---|
1868 | coin_soplex_checklevel=0 |
---|
1869 | fi; |
---|
1870 | |
---|
1871 | cat >>confdefs.h <<_ACEOF |
---|
1872 | #define COIN_SOPLEX_CHECKLEVEL $coin_soplex_checklevel |
---|
1873 | _ACEOF |
---|
1874 | |
---|
1875 | |
---|
1876 | # m4_ifvaln([SoPlex], |
---|
1877 | |
---|
1878 | |
---|
1879 | |
---|
1880 | # Get the name of the C compiler and appropriate compiler options |
---|
1881 | case $build in |
---|
1882 | *-mingw*) |
---|
1883 | if test "${LD+set}" = set; then :; else |
---|
1884 | LD=link |
---|
1885 | fi |
---|
1886 | ;; |
---|
1887 | esac |
---|
1888 | case $enable_doscompile in |
---|
1889 | msvc) |
---|
1890 | if test "x${LD+set}" = xset; then :; else |
---|
1891 | LD=link |
---|
1892 | fi |
---|
1893 | ;; |
---|
1894 | esac |
---|
1895 | |
---|
1896 | |
---|
1897 | # Check whether --enable-doscompile or --disable-doscompile was given. |
---|
1898 | if test "${enable_doscompile+set}" = set; then |
---|
1899 | enableval="$enable_doscompile" |
---|
1900 | if test "$enable_doscompile" != no; then |
---|
1901 | case $build in |
---|
1902 | *-cygwin* | *-mingw*) ;; |
---|
1903 | *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5 |
---|
1904 | echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;} |
---|
1905 | { (exit 1); exit 1; }; } ;; |
---|
1906 | esac |
---|
1907 | fi |
---|
1908 | else |
---|
1909 | enable_doscompile=no |
---|
1910 | fi; |
---|
1911 | case "$enable_doscompile" in |
---|
1912 | mingw) |
---|
1913 | case $build in |
---|
1914 | *-mingw*) enable_doscompile=no ;; |
---|
1915 | esac |
---|
1916 | ;; |
---|
1917 | msvc|no) ;; |
---|
1918 | yes) enable_doscompile=mingw ;; |
---|
1919 | *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile. |
---|
1920 | Try configure --help=recursive." >&5 |
---|
1921 | echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile. |
---|
1922 | Try configure --help=recursive." >&2;} |
---|
1923 | { (exit 1); exit 1; }; } |
---|
1924 | ;; |
---|
1925 | esac |
---|
1926 | if test "$enable_doscompile" != no ; then |
---|
1927 | { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5 |
---|
1928 | echo "$as_me: DOS compile style is: $enable_doscompile" >&6;} |
---|
1929 | fi |
---|
1930 | |
---|
1931 | |
---|
1932 | |
---|
1933 | |
---|
1934 | ac_ext=c |
---|
1935 | ac_cpp='$CPP $CPPFLAGS' |
---|
1936 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1937 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1938 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1939 | |
---|
1940 | |
---|
1941 | # For consistency, we set the C compiler to the same value of the C++ |
---|
1942 | # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) |
---|
1943 | if test x"$CXX" != x; then |
---|
1944 | case "$CXX" in |
---|
1945 | clang* ) ;; |
---|
1946 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
1947 | if test x"$CC" = x; then |
---|
1948 | CC="$CXX" |
---|
1949 | { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 |
---|
1950 | echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} |
---|
1951 | fi |
---|
1952 | ;; |
---|
1953 | esac |
---|
1954 | fi |
---|
1955 | |
---|
1956 | |
---|
1957 | |
---|
1958 | |
---|
1959 | |
---|
1960 | |
---|
1961 | coin_has_cc=yes |
---|
1962 | |
---|
1963 | save_cflags="$CFLAGS" |
---|
1964 | |
---|
1965 | # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. |
---|
1966 | # Depending on the user's PATH, when Studio/Workshop cc is not present we may |
---|
1967 | # find /usr/ucb/cc, which is almost certainly not a good choice for the C |
---|
1968 | # compiler. In this case, put cc after gcc. |
---|
1969 | |
---|
1970 | case $build in |
---|
1971 | *-cygwin* | *-mingw*) |
---|
1972 | if test "$enable_doscompile" = msvc ; then |
---|
1973 | comps="icl cl" |
---|
1974 | else |
---|
1975 | comps="gcc cl" |
---|
1976 | fi ;; |
---|
1977 | *-*-solaris*) |
---|
1978 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1979 | set dummy cc; ac_word=$2 |
---|
1980 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1981 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1982 | if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then |
---|
1983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1984 | else |
---|
1985 | if test -n "$sol_cc_compiler"; then |
---|
1986 | ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. |
---|
1987 | else |
---|
1988 | ac_prog_rejected=no |
---|
1989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1990 | for as_dir in $PATH |
---|
1991 | do |
---|
1992 | IFS=$as_save_IFS |
---|
1993 | test -z "$as_dir" && as_dir=. |
---|
1994 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1995 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1996 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
1997 | ac_prog_rejected=yes |
---|
1998 | continue |
---|
1999 | fi |
---|
2000 | ac_cv_prog_sol_cc_compiler="cc" |
---|
2001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2002 | break 2 |
---|
2003 | fi |
---|
2004 | done |
---|
2005 | done |
---|
2006 | |
---|
2007 | if test $ac_prog_rejected = yes; then |
---|
2008 | # We found a bogon in the path, so make sure we never use it. |
---|
2009 | set dummy $ac_cv_prog_sol_cc_compiler |
---|
2010 | shift |
---|
2011 | if test $# != 0; then |
---|
2012 | # We chose a different compiler from the bogus one. |
---|
2013 | # However, it has the same basename, so the bogon will be chosen |
---|
2014 | # first if we set sol_cc_compiler to just the basename; use the full file name. |
---|
2015 | shift |
---|
2016 | ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" |
---|
2017 | fi |
---|
2018 | fi |
---|
2019 | fi |
---|
2020 | fi |
---|
2021 | sol_cc_compiler=$ac_cv_prog_sol_cc_compiler |
---|
2022 | if test -n "$sol_cc_compiler"; then |
---|
2023 | echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 |
---|
2024 | echo "${ECHO_T}$sol_cc_compiler" >&6 |
---|
2025 | else |
---|
2026 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2027 | echo "${ECHO_T}no" >&6 |
---|
2028 | fi |
---|
2029 | |
---|
2030 | if test "$sol_cc_compiler" = "cc" ; then |
---|
2031 | comps="cc xlc gcc pgcc icc" |
---|
2032 | else |
---|
2033 | comps="xlc gcc pgcc icc cc" |
---|
2034 | fi |
---|
2035 | ;; |
---|
2036 | *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;; |
---|
2037 | *-linux-*) comps="xlc gcc cc pgcc icc" ;; |
---|
2038 | *) comps="xlc_r xlc cc gcc pgcc icc" ;; |
---|
2039 | esac |
---|
2040 | |
---|
2041 | # We delete the cached value, since the test might not have been |
---|
2042 | # performed with our choice of compilers earlier |
---|
2043 | $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } |
---|
2044 | # AC_MSG_NOTICE([C compiler candidates: $comps]) |
---|
2045 | ac_ext=c |
---|
2046 | ac_cpp='$CPP $CPPFLAGS' |
---|
2047 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2048 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2049 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2050 | if test -n "$ac_tool_prefix"; then |
---|
2051 | for ac_prog in $comps |
---|
2052 | do |
---|
2053 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2054 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2057 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2059 | else |
---|
2060 | if test -n "$CC"; then |
---|
2061 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2062 | else |
---|
2063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2064 | for as_dir in $PATH |
---|
2065 | do |
---|
2066 | IFS=$as_save_IFS |
---|
2067 | test -z "$as_dir" && as_dir=. |
---|
2068 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2070 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2072 | break 2 |
---|
2073 | fi |
---|
2074 | done |
---|
2075 | done |
---|
2076 | |
---|
2077 | fi |
---|
2078 | fi |
---|
2079 | CC=$ac_cv_prog_CC |
---|
2080 | if test -n "$CC"; then |
---|
2081 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2082 | echo "${ECHO_T}$CC" >&6 |
---|
2083 | else |
---|
2084 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2085 | echo "${ECHO_T}no" >&6 |
---|
2086 | fi |
---|
2087 | |
---|
2088 | test -n "$CC" && break |
---|
2089 | done |
---|
2090 | fi |
---|
2091 | if test -z "$CC"; then |
---|
2092 | ac_ct_CC=$CC |
---|
2093 | for ac_prog in $comps |
---|
2094 | do |
---|
2095 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2096 | set dummy $ac_prog; ac_word=$2 |
---|
2097 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2099 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2101 | else |
---|
2102 | if test -n "$ac_ct_CC"; then |
---|
2103 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2104 | else |
---|
2105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2106 | for as_dir in $PATH |
---|
2107 | do |
---|
2108 | IFS=$as_save_IFS |
---|
2109 | test -z "$as_dir" && as_dir=. |
---|
2110 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2111 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2112 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2114 | break 2 |
---|
2115 | fi |
---|
2116 | done |
---|
2117 | done |
---|
2118 | |
---|
2119 | fi |
---|
2120 | fi |
---|
2121 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2122 | if test -n "$ac_ct_CC"; then |
---|
2123 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2124 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2125 | else |
---|
2126 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2127 | echo "${ECHO_T}no" >&6 |
---|
2128 | fi |
---|
2129 | |
---|
2130 | test -n "$ac_ct_CC" && break |
---|
2131 | done |
---|
2132 | |
---|
2133 | CC=$ac_ct_CC |
---|
2134 | fi |
---|
2135 | |
---|
2136 | |
---|
2137 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2138 | See \`config.log' for more details." >&5 |
---|
2139 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2140 | See \`config.log' for more details." >&2;} |
---|
2141 | { (exit 1); exit 1; }; } |
---|
2142 | |
---|
2143 | # Provide some information about the compiler. |
---|
2144 | echo "$as_me:$LINENO:" \ |
---|
2145 | "checking for C compiler version" >&5 |
---|
2146 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2147 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2148 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2149 | ac_status=$? |
---|
2150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2151 | (exit $ac_status); } |
---|
2152 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2153 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2154 | ac_status=$? |
---|
2155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2156 | (exit $ac_status); } |
---|
2157 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2158 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2159 | ac_status=$? |
---|
2160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2161 | (exit $ac_status); } |
---|
2162 | |
---|
2163 | cat >conftest.$ac_ext <<_ACEOF |
---|
2164 | /* confdefs.h. */ |
---|
2165 | _ACEOF |
---|
2166 | cat confdefs.h >>conftest.$ac_ext |
---|
2167 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2168 | /* end confdefs.h. */ |
---|
2169 | |
---|
2170 | int |
---|
2171 | main () |
---|
2172 | { |
---|
2173 | |
---|
2174 | ; |
---|
2175 | return 0; |
---|
2176 | } |
---|
2177 | _ACEOF |
---|
2178 | ac_clean_files_save=$ac_clean_files |
---|
2179 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2180 | # Try to create an executable without -o first, disregard a.out. |
---|
2181 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2182 | # of exeext. |
---|
2183 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2184 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
2185 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2186 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2187 | (eval $ac_link_default) 2>&5 |
---|
2188 | ac_status=$? |
---|
2189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2190 | (exit $ac_status); }; then |
---|
2191 | # Find the output, starting from the most likely. This scheme is |
---|
2192 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2193 | # resort. |
---|
2194 | |
---|
2195 | # Be careful to initialize this variable, since it used to be cached. |
---|
2196 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2197 | ac_cv_exeext= |
---|
2198 | # b.out is created by i960 compilers. |
---|
2199 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2200 | do |
---|
2201 | test -f "$ac_file" || continue |
---|
2202 | case $ac_file in |
---|
2203 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2204 | ;; |
---|
2205 | conftest.$ac_ext ) |
---|
2206 | # This is the source file. |
---|
2207 | ;; |
---|
2208 | [ab].out ) |
---|
2209 | # We found the default executable, but exeext='' is most |
---|
2210 | # certainly right. |
---|
2211 | break;; |
---|
2212 | *.* ) |
---|
2213 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2214 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2215 | # but it would be cool to find out if it's true. Does anybody |
---|
2216 | # maintain Libtool? --akim. |
---|
2217 | export ac_cv_exeext |
---|
2218 | break;; |
---|
2219 | * ) |
---|
2220 | break;; |
---|
2221 | esac |
---|
2222 | done |
---|
2223 | else |
---|
2224 | echo "$as_me: failed program was:" >&5 |
---|
2225 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2226 | |
---|
2227 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2228 | See \`config.log' for more details." >&5 |
---|
2229 | echo "$as_me: error: C compiler cannot create executables |
---|
2230 | See \`config.log' for more details." >&2;} |
---|
2231 | { (exit 77); exit 77; }; } |
---|
2232 | fi |
---|
2233 | |
---|
2234 | ac_exeext=$ac_cv_exeext |
---|
2235 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2236 | echo "${ECHO_T}$ac_file" >&6 |
---|
2237 | |
---|
2238 | # Check the compiler produces executables we can run. If not, either |
---|
2239 | # the compiler is broken, or we cross compile. |
---|
2240 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2241 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2242 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2243 | # If not cross compiling, check that we can run a simple program. |
---|
2244 | if test "$cross_compiling" != yes; then |
---|
2245 | if { ac_try='./$ac_file' |
---|
2246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2247 | (eval $ac_try) 2>&5 |
---|
2248 | ac_status=$? |
---|
2249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2250 | (exit $ac_status); }; }; then |
---|
2251 | cross_compiling=no |
---|
2252 | else |
---|
2253 | if test "$cross_compiling" = maybe; then |
---|
2254 | cross_compiling=yes |
---|
2255 | else |
---|
2256 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2257 | If you meant to cross compile, use \`--host'. |
---|
2258 | See \`config.log' for more details." >&5 |
---|
2259 | echo "$as_me: error: cannot run C compiled programs. |
---|
2260 | If you meant to cross compile, use \`--host'. |
---|
2261 | See \`config.log' for more details." >&2;} |
---|
2262 | { (exit 1); exit 1; }; } |
---|
2263 | fi |
---|
2264 | fi |
---|
2265 | fi |
---|
2266 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2267 | echo "${ECHO_T}yes" >&6 |
---|
2268 | |
---|
2269 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2270 | ac_clean_files=$ac_clean_files_save |
---|
2271 | # Check the compiler produces executables we can run. If not, either |
---|
2272 | # the compiler is broken, or we cross compile. |
---|
2273 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2274 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2275 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2276 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2277 | |
---|
2278 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2279 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2281 | (eval $ac_link) 2>&5 |
---|
2282 | ac_status=$? |
---|
2283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2284 | (exit $ac_status); }; then |
---|
2285 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2286 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2287 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2288 | # `rm'. |
---|
2289 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2290 | test -f "$ac_file" || continue |
---|
2291 | case $ac_file in |
---|
2292 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2293 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2294 | export ac_cv_exeext |
---|
2295 | break;; |
---|
2296 | * ) break;; |
---|
2297 | esac |
---|
2298 | done |
---|
2299 | else |
---|
2300 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2301 | See \`config.log' for more details." >&5 |
---|
2302 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2303 | See \`config.log' for more details." >&2;} |
---|
2304 | { (exit 1); exit 1; }; } |
---|
2305 | fi |
---|
2306 | |
---|
2307 | rm -f conftest$ac_cv_exeext |
---|
2308 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2309 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2310 | |
---|
2311 | rm -f conftest.$ac_ext |
---|
2312 | EXEEXT=$ac_cv_exeext |
---|
2313 | ac_exeext=$EXEEXT |
---|
2314 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2315 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2316 | if test "${ac_cv_objext+set}" = set; then |
---|
2317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2318 | else |
---|
2319 | cat >conftest.$ac_ext <<_ACEOF |
---|
2320 | /* confdefs.h. */ |
---|
2321 | _ACEOF |
---|
2322 | cat confdefs.h >>conftest.$ac_ext |
---|
2323 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2324 | /* end confdefs.h. */ |
---|
2325 | |
---|
2326 | int |
---|
2327 | main () |
---|
2328 | { |
---|
2329 | |
---|
2330 | ; |
---|
2331 | return 0; |
---|
2332 | } |
---|
2333 | _ACEOF |
---|
2334 | rm -f conftest.o conftest.obj |
---|
2335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2336 | (eval $ac_compile) 2>&5 |
---|
2337 | ac_status=$? |
---|
2338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2339 | (exit $ac_status); }; then |
---|
2340 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2341 | case $ac_file in |
---|
2342 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2343 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2344 | break;; |
---|
2345 | esac |
---|
2346 | done |
---|
2347 | else |
---|
2348 | echo "$as_me: failed program was:" >&5 |
---|
2349 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2350 | |
---|
2351 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2352 | See \`config.log' for more details." >&5 |
---|
2353 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2354 | See \`config.log' for more details." >&2;} |
---|
2355 | { (exit 1); exit 1; }; } |
---|
2356 | fi |
---|
2357 | |
---|
2358 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2359 | fi |
---|
2360 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2361 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2362 | OBJEXT=$ac_cv_objext |
---|
2363 | ac_objext=$OBJEXT |
---|
2364 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2365 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2366 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2368 | else |
---|
2369 | cat >conftest.$ac_ext <<_ACEOF |
---|
2370 | /* confdefs.h. */ |
---|
2371 | _ACEOF |
---|
2372 | cat confdefs.h >>conftest.$ac_ext |
---|
2373 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2374 | /* end confdefs.h. */ |
---|
2375 | |
---|
2376 | int |
---|
2377 | main () |
---|
2378 | { |
---|
2379 | #ifndef __GNUC__ |
---|
2380 | choke me |
---|
2381 | #endif |
---|
2382 | |
---|
2383 | ; |
---|
2384 | return 0; |
---|
2385 | } |
---|
2386 | _ACEOF |
---|
2387 | rm -f conftest.$ac_objext |
---|
2388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2389 | (eval $ac_compile) 2>conftest.er1 |
---|
2390 | ac_status=$? |
---|
2391 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2392 | rm -f conftest.er1 |
---|
2393 | cat conftest.err >&5 |
---|
2394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2395 | (exit $ac_status); } && |
---|
2396 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2397 | || test ! -s conftest.err' |
---|
2398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2399 | (eval $ac_try) 2>&5 |
---|
2400 | ac_status=$? |
---|
2401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2402 | (exit $ac_status); }; } && |
---|
2403 | { ac_try='test -s conftest.$ac_objext' |
---|
2404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2405 | (eval $ac_try) 2>&5 |
---|
2406 | ac_status=$? |
---|
2407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2408 | (exit $ac_status); }; }; then |
---|
2409 | ac_compiler_gnu=yes |
---|
2410 | else |
---|
2411 | echo "$as_me: failed program was:" >&5 |
---|
2412 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2413 | |
---|
2414 | ac_compiler_gnu=no |
---|
2415 | fi |
---|
2416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2417 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2418 | |
---|
2419 | fi |
---|
2420 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2421 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2422 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2423 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2424 | ac_save_CFLAGS=$CFLAGS |
---|
2425 | CFLAGS="-g" |
---|
2426 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2427 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2428 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2430 | else |
---|
2431 | cat >conftest.$ac_ext <<_ACEOF |
---|
2432 | /* confdefs.h. */ |
---|
2433 | _ACEOF |
---|
2434 | cat confdefs.h >>conftest.$ac_ext |
---|
2435 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2436 | /* end confdefs.h. */ |
---|
2437 | |
---|
2438 | int |
---|
2439 | main () |
---|
2440 | { |
---|
2441 | |
---|
2442 | ; |
---|
2443 | return 0; |
---|
2444 | } |
---|
2445 | _ACEOF |
---|
2446 | rm -f conftest.$ac_objext |
---|
2447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2448 | (eval $ac_compile) 2>conftest.er1 |
---|
2449 | ac_status=$? |
---|
2450 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2451 | rm -f conftest.er1 |
---|
2452 | cat conftest.err >&5 |
---|
2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2454 | (exit $ac_status); } && |
---|
2455 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2456 | || test ! -s conftest.err' |
---|
2457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2458 | (eval $ac_try) 2>&5 |
---|
2459 | ac_status=$? |
---|
2460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2461 | (exit $ac_status); }; } && |
---|
2462 | { ac_try='test -s conftest.$ac_objext' |
---|
2463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2464 | (eval $ac_try) 2>&5 |
---|
2465 | ac_status=$? |
---|
2466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2467 | (exit $ac_status); }; }; then |
---|
2468 | ac_cv_prog_cc_g=yes |
---|
2469 | else |
---|
2470 | echo "$as_me: failed program was:" >&5 |
---|
2471 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2472 | |
---|
2473 | ac_cv_prog_cc_g=no |
---|
2474 | fi |
---|
2475 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2476 | fi |
---|
2477 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2478 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2479 | if test "$ac_test_CFLAGS" = set; then |
---|
2480 | CFLAGS=$ac_save_CFLAGS |
---|
2481 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2482 | if test "$GCC" = yes; then |
---|
2483 | CFLAGS="-g -O2" |
---|
2484 | else |
---|
2485 | CFLAGS="-g" |
---|
2486 | fi |
---|
2487 | else |
---|
2488 | if test "$GCC" = yes; then |
---|
2489 | CFLAGS="-O2" |
---|
2490 | else |
---|
2491 | CFLAGS= |
---|
2492 | fi |
---|
2493 | fi |
---|
2494 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2495 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2496 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2498 | else |
---|
2499 | ac_cv_prog_cc_stdc=no |
---|
2500 | ac_save_CC=$CC |
---|
2501 | cat >conftest.$ac_ext <<_ACEOF |
---|
2502 | /* confdefs.h. */ |
---|
2503 | _ACEOF |
---|
2504 | cat confdefs.h >>conftest.$ac_ext |
---|
2505 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2506 | /* end confdefs.h. */ |
---|
2507 | #include <stdarg.h> |
---|
2508 | #include <stdio.h> |
---|
2509 | #include <sys/types.h> |
---|
2510 | #include <sys/stat.h> |
---|
2511 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2512 | struct buf { int x; }; |
---|
2513 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2514 | static char *e (p, i) |
---|
2515 | char **p; |
---|
2516 | int i; |
---|
2517 | { |
---|
2518 | return p[i]; |
---|
2519 | } |
---|
2520 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2521 | { |
---|
2522 | char *s; |
---|
2523 | va_list v; |
---|
2524 | va_start (v,p); |
---|
2525 | s = g (p, va_arg (v,int)); |
---|
2526 | va_end (v); |
---|
2527 | return s; |
---|
2528 | } |
---|
2529 | |
---|
2530 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2531 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2532 | These don't provoke an error unfortunately, instead are silently treated |
---|
2533 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2534 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2535 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2536 | that's true only with -std1. */ |
---|
2537 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2538 | |
---|
2539 | int test (int i, double x); |
---|
2540 | struct s1 {int (*f) (int a);}; |
---|
2541 | struct s2 {int (*f) (double a);}; |
---|
2542 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2543 | int argc; |
---|
2544 | char **argv; |
---|
2545 | int |
---|
2546 | main () |
---|
2547 | { |
---|
2548 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2549 | ; |
---|
2550 | return 0; |
---|
2551 | } |
---|
2552 | _ACEOF |
---|
2553 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2554 | # breaks some systems' header files. |
---|
2555 | # AIX -qlanglvl=ansi |
---|
2556 | # Ultrix and OSF/1 -std1 |
---|
2557 | # HP-UX 10.20 and later -Ae |
---|
2558 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2559 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2560 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2561 | do |
---|
2562 | CC="$ac_save_CC $ac_arg" |
---|
2563 | rm -f conftest.$ac_objext |
---|
2564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2565 | (eval $ac_compile) 2>conftest.er1 |
---|
2566 | ac_status=$? |
---|
2567 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2568 | rm -f conftest.er1 |
---|
2569 | cat conftest.err >&5 |
---|
2570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2571 | (exit $ac_status); } && |
---|
2572 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2573 | || test ! -s conftest.err' |
---|
2574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2575 | (eval $ac_try) 2>&5 |
---|
2576 | ac_status=$? |
---|
2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2578 | (exit $ac_status); }; } && |
---|
2579 | { ac_try='test -s conftest.$ac_objext' |
---|
2580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2581 | (eval $ac_try) 2>&5 |
---|
2582 | ac_status=$? |
---|
2583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2584 | (exit $ac_status); }; }; then |
---|
2585 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2586 | break |
---|
2587 | else |
---|
2588 | echo "$as_me: failed program was:" >&5 |
---|
2589 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2590 | |
---|
2591 | fi |
---|
2592 | rm -f conftest.err conftest.$ac_objext |
---|
2593 | done |
---|
2594 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2595 | CC=$ac_save_CC |
---|
2596 | |
---|
2597 | fi |
---|
2598 | |
---|
2599 | case "x$ac_cv_prog_cc_stdc" in |
---|
2600 | x|xno) |
---|
2601 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2602 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2603 | *) |
---|
2604 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2605 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2606 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2607 | esac |
---|
2608 | |
---|
2609 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2610 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2611 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2612 | # the declaration of exit, since it's the most demanding environment. |
---|
2613 | cat >conftest.$ac_ext <<_ACEOF |
---|
2614 | #ifndef __cplusplus |
---|
2615 | choke me |
---|
2616 | #endif |
---|
2617 | _ACEOF |
---|
2618 | rm -f conftest.$ac_objext |
---|
2619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2620 | (eval $ac_compile) 2>conftest.er1 |
---|
2621 | ac_status=$? |
---|
2622 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2623 | rm -f conftest.er1 |
---|
2624 | cat conftest.err >&5 |
---|
2625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2626 | (exit $ac_status); } && |
---|
2627 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2628 | || test ! -s conftest.err' |
---|
2629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2630 | (eval $ac_try) 2>&5 |
---|
2631 | ac_status=$? |
---|
2632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2633 | (exit $ac_status); }; } && |
---|
2634 | { ac_try='test -s conftest.$ac_objext' |
---|
2635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2636 | (eval $ac_try) 2>&5 |
---|
2637 | ac_status=$? |
---|
2638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2639 | (exit $ac_status); }; }; then |
---|
2640 | for ac_declaration in \ |
---|
2641 | '' \ |
---|
2642 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2643 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2644 | 'extern "C" void exit (int) throw ();' \ |
---|
2645 | 'extern "C" void exit (int);' \ |
---|
2646 | 'void exit (int);' |
---|
2647 | do |
---|
2648 | cat >conftest.$ac_ext <<_ACEOF |
---|
2649 | /* confdefs.h. */ |
---|
2650 | _ACEOF |
---|
2651 | cat confdefs.h >>conftest.$ac_ext |
---|
2652 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2653 | /* end confdefs.h. */ |
---|
2654 | $ac_declaration |
---|
2655 | #include <stdlib.h> |
---|
2656 | int |
---|
2657 | main () |
---|
2658 | { |
---|
2659 | exit (42); |
---|
2660 | ; |
---|
2661 | return 0; |
---|
2662 | } |
---|
2663 | _ACEOF |
---|
2664 | rm -f conftest.$ac_objext |
---|
2665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2666 | (eval $ac_compile) 2>conftest.er1 |
---|
2667 | ac_status=$? |
---|
2668 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2669 | rm -f conftest.er1 |
---|
2670 | cat conftest.err >&5 |
---|
2671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2672 | (exit $ac_status); } && |
---|
2673 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2674 | || test ! -s conftest.err' |
---|
2675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2676 | (eval $ac_try) 2>&5 |
---|
2677 | ac_status=$? |
---|
2678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2679 | (exit $ac_status); }; } && |
---|
2680 | { ac_try='test -s conftest.$ac_objext' |
---|
2681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2682 | (eval $ac_try) 2>&5 |
---|
2683 | ac_status=$? |
---|
2684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2685 | (exit $ac_status); }; }; then |
---|
2686 | : |
---|
2687 | else |
---|
2688 | echo "$as_me: failed program was:" >&5 |
---|
2689 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2690 | |
---|
2691 | continue |
---|
2692 | fi |
---|
2693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2694 | cat >conftest.$ac_ext <<_ACEOF |
---|
2695 | /* confdefs.h. */ |
---|
2696 | _ACEOF |
---|
2697 | cat confdefs.h >>conftest.$ac_ext |
---|
2698 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2699 | /* end confdefs.h. */ |
---|
2700 | $ac_declaration |
---|
2701 | int |
---|
2702 | main () |
---|
2703 | { |
---|
2704 | exit (42); |
---|
2705 | ; |
---|
2706 | return 0; |
---|
2707 | } |
---|
2708 | _ACEOF |
---|
2709 | rm -f conftest.$ac_objext |
---|
2710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2711 | (eval $ac_compile) 2>conftest.er1 |
---|
2712 | ac_status=$? |
---|
2713 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2714 | rm -f conftest.er1 |
---|
2715 | cat conftest.err >&5 |
---|
2716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2717 | (exit $ac_status); } && |
---|
2718 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2719 | || test ! -s conftest.err' |
---|
2720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2721 | (eval $ac_try) 2>&5 |
---|
2722 | ac_status=$? |
---|
2723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2724 | (exit $ac_status); }; } && |
---|
2725 | { ac_try='test -s conftest.$ac_objext' |
---|
2726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2727 | (eval $ac_try) 2>&5 |
---|
2728 | ac_status=$? |
---|
2729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2730 | (exit $ac_status); }; }; then |
---|
2731 | break |
---|
2732 | else |
---|
2733 | echo "$as_me: failed program was:" >&5 |
---|
2734 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2735 | |
---|
2736 | fi |
---|
2737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2738 | done |
---|
2739 | rm -f conftest* |
---|
2740 | if test -n "$ac_declaration"; then |
---|
2741 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2742 | echo $ac_declaration >>confdefs.h |
---|
2743 | echo '#endif' >>confdefs.h |
---|
2744 | fi |
---|
2745 | |
---|
2746 | else |
---|
2747 | echo "$as_me: failed program was:" >&5 |
---|
2748 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2749 | |
---|
2750 | fi |
---|
2751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2752 | ac_ext=c |
---|
2753 | ac_cpp='$CPP $CPPFLAGS' |
---|
2754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2757 | |
---|
2758 | if test -z "$CC" ; then |
---|
2759 | { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 |
---|
2760 | echo "$as_me: error: Failed to find a C compiler!" >&2;} |
---|
2761 | { (exit 1); exit 1; }; } |
---|
2762 | fi |
---|
2763 | # Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
---|
2764 | case "$CC" in |
---|
2765 | clang* ) ;; |
---|
2766 | cl* | */cl* | CL* | */CL* ) |
---|
2767 | if test "$ac_cv_prog_cc_g" = yes ; then |
---|
2768 | ac_cv_prog_cc_g=no |
---|
2769 | { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
---|
2770 | echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
---|
2771 | fi ;; |
---|
2772 | esac |
---|
2773 | CFLAGS="$save_cflags" |
---|
2774 | |
---|
2775 | # add automake conditional so we can recognize cl compiler in makefile |
---|
2776 | coin_cc_is_cl=false |
---|
2777 | case "$CC" in |
---|
2778 | clang* ) ;; |
---|
2779 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
2780 | coin_cc_is_cl=true |
---|
2781 | ;; |
---|
2782 | esac |
---|
2783 | |
---|
2784 | |
---|
2785 | if test $coin_cc_is_cl = true; then |
---|
2786 | COIN_CC_IS_CL_TRUE= |
---|
2787 | COIN_CC_IS_CL_FALSE='#' |
---|
2788 | else |
---|
2789 | COIN_CC_IS_CL_TRUE='#' |
---|
2790 | COIN_CC_IS_CL_FALSE= |
---|
2791 | fi |
---|
2792 | |
---|
2793 | |
---|
2794 | # Check if a project specific CFLAGS variable has been set |
---|
2795 | if test x$COIN_PRJCT != x; then |
---|
2796 | eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} |
---|
2797 | if test x$coin_tmp = xset; then |
---|
2798 | eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} |
---|
2799 | fi |
---|
2800 | fi |
---|
2801 | |
---|
2802 | if test x"$CFLAGS" = x; then |
---|
2803 | |
---|
2804 | coin_add_cflags= |
---|
2805 | coin_opt_cflags= |
---|
2806 | coin_dbg_cflags= |
---|
2807 | coin_warn_cflags= |
---|
2808 | |
---|
2809 | if test "$GCC" = "yes"; then |
---|
2810 | case "$CC" in |
---|
2811 | icc* | */icc*) |
---|
2812 | ;; |
---|
2813 | *) |
---|
2814 | coin_opt_cflags="-O3" |
---|
2815 | coin_add_cflags="-pipe" |
---|
2816 | coin_dbg_cflags="-g -O0" |
---|
2817 | coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long" |
---|
2818 | case $build in |
---|
2819 | *-darwin*) |
---|
2820 | ;; |
---|
2821 | *) |
---|
2822 | coin_warn_cflags="-pedantic-errors $coin_warn_cflags" |
---|
2823 | ;; |
---|
2824 | esac |
---|
2825 | case $enable_doscompile in |
---|
2826 | mingw) |
---|
2827 | CFLAGS="-mno-cygwin" |
---|
2828 | cat >conftest.$ac_ext <<_ACEOF |
---|
2829 | /* confdefs.h. */ |
---|
2830 | _ACEOF |
---|
2831 | cat confdefs.h >>conftest.$ac_ext |
---|
2832 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2833 | /* end confdefs.h. */ |
---|
2834 | |
---|
2835 | int |
---|
2836 | main () |
---|
2837 | { |
---|
2838 | int i=0; i++; |
---|
2839 | ; |
---|
2840 | return 0; |
---|
2841 | } |
---|
2842 | _ACEOF |
---|
2843 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2845 | (eval $ac_link) 2>conftest.er1 |
---|
2846 | ac_status=$? |
---|
2847 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2848 | rm -f conftest.er1 |
---|
2849 | cat conftest.err >&5 |
---|
2850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2851 | (exit $ac_status); } && |
---|
2852 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2853 | || test ! -s conftest.err' |
---|
2854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2855 | (eval $ac_try) 2>&5 |
---|
2856 | ac_status=$? |
---|
2857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2858 | (exit $ac_status); }; } && |
---|
2859 | { ac_try='test -s conftest$ac_exeext' |
---|
2860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2861 | (eval $ac_try) 2>&5 |
---|
2862 | ac_status=$? |
---|
2863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2864 | (exit $ac_status); }; }; then |
---|
2865 | coin_add_cflags="-mno-cygwin $coin_add_cflags" |
---|
2866 | else |
---|
2867 | echo "$as_me: failed program was:" >&5 |
---|
2868 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2869 | |
---|
2870 | fi |
---|
2871 | rm -f conftest.err conftest.$ac_objext \ |
---|
2872 | conftest$ac_exeext conftest.$ac_ext |
---|
2873 | CFLAGS= |
---|
2874 | ;; |
---|
2875 | esac |
---|
2876 | esac |
---|
2877 | fi |
---|
2878 | if test -z "$coin_opt_cflags"; then |
---|
2879 | case $build in |
---|
2880 | *-cygwin* | *-mingw*) |
---|
2881 | case "$CC" in |
---|
2882 | clang* ) ;; |
---|
2883 | cl* | */cl* | CL* | */CL*) |
---|
2884 | coin_opt_cflags='-MT -O2' |
---|
2885 | coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' |
---|
2886 | coin_dbg_cflags='-MTd' |
---|
2887 | ;; |
---|
2888 | icl* | */icl* | ICL* | */ICL*) |
---|
2889 | coin_opt_cflags='-MT -Ox' |
---|
2890 | coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' |
---|
2891 | coin_dbg_cflags='-MTd -debug' |
---|
2892 | ;; |
---|
2893 | esac |
---|
2894 | ;; |
---|
2895 | *-linux-*) |
---|
2896 | case "$CC" in |
---|
2897 | icc* | */icc*) |
---|
2898 | coin_opt_cflags="-O3 -ip -mp1" |
---|
2899 | coin_add_cflags="" |
---|
2900 | coin_dbg_cflags="-g" |
---|
2901 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
2902 | CFLAGS= |
---|
2903 | cat >conftest.$ac_ext <<_ACEOF |
---|
2904 | /* confdefs.h. */ |
---|
2905 | _ACEOF |
---|
2906 | cat confdefs.h >>conftest.$ac_ext |
---|
2907 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2908 | /* end confdefs.h. */ |
---|
2909 | |
---|
2910 | int |
---|
2911 | main () |
---|
2912 | { |
---|
2913 | int i=0; i++; |
---|
2914 | ; |
---|
2915 | return 0; |
---|
2916 | } |
---|
2917 | _ACEOF |
---|
2918 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2920 | (eval $ac_link) 2>conftest.er1 |
---|
2921 | ac_status=$? |
---|
2922 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2923 | rm -f conftest.er1 |
---|
2924 | cat conftest.err >&5 |
---|
2925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2926 | (exit $ac_status); } && |
---|
2927 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2928 | || test ! -s conftest.err' |
---|
2929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2930 | (eval $ac_try) 2>&5 |
---|
2931 | ac_status=$? |
---|
2932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2933 | (exit $ac_status); }; } && |
---|
2934 | { ac_try='test -s conftest$ac_exeext' |
---|
2935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2936 | (eval $ac_try) 2>&5 |
---|
2937 | ac_status=$? |
---|
2938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2939 | (exit $ac_status); }; }; then |
---|
2940 | : |
---|
2941 | else |
---|
2942 | echo "$as_me: failed program was:" >&5 |
---|
2943 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2944 | |
---|
2945 | coin_add_cflags="-i_dynamic $coin_add_cflags" |
---|
2946 | fi |
---|
2947 | rm -f conftest.err conftest.$ac_objext \ |
---|
2948 | conftest$ac_exeext conftest.$ac_ext |
---|
2949 | ;; |
---|
2950 | pgcc* | */pgcc*) |
---|
2951 | coin_opt_cflags="-fast" |
---|
2952 | coin_add_cflags="-Kieee -pc 64" |
---|
2953 | coin_dbg_cflags="-g" |
---|
2954 | ;; |
---|
2955 | esac |
---|
2956 | ;; |
---|
2957 | *-ibm-*) |
---|
2958 | case "$CC" in |
---|
2959 | xlc* | */xlc* | mpxlc* | */mpxlc*) |
---|
2960 | coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
2961 | coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
---|
2962 | coin_dbg_cflags="-g" |
---|
2963 | ;; |
---|
2964 | esac |
---|
2965 | ;; |
---|
2966 | *-hp-*) |
---|
2967 | coin_opt_cflags="-O" |
---|
2968 | coin_add_cflags="-Ae" |
---|
2969 | coin_dbg_cflags="-g" |
---|
2970 | ;; |
---|
2971 | *-*-solaris*) |
---|
2972 | coin_opt_cflags="-xO4" |
---|
2973 | coin_dbg_cflags="-g" |
---|
2974 | ;; |
---|
2975 | *-sgi-*) |
---|
2976 | coin_opt_cflags="-O -OPT:Olimit=0" |
---|
2977 | coin_dbg_cflags="-g" |
---|
2978 | ;; |
---|
2979 | esac |
---|
2980 | fi |
---|
2981 | |
---|
2982 | if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then |
---|
2983 | coin_dbg_cflags="-g" |
---|
2984 | fi |
---|
2985 | |
---|
2986 | if test -z "$coin_opt_cflags"; then |
---|
2987 | # Try if -O option works if nothing else is set |
---|
2988 | CFLAGS="-O" |
---|
2989 | cat >conftest.$ac_ext <<_ACEOF |
---|
2990 | /* confdefs.h. */ |
---|
2991 | _ACEOF |
---|
2992 | cat confdefs.h >>conftest.$ac_ext |
---|
2993 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2994 | /* end confdefs.h. */ |
---|
2995 | |
---|
2996 | int |
---|
2997 | main () |
---|
2998 | { |
---|
2999 | int i=0; i++; |
---|
3000 | ; |
---|
3001 | return 0; |
---|
3002 | } |
---|
3003 | _ACEOF |
---|
3004 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3006 | (eval $ac_link) 2>conftest.er1 |
---|
3007 | ac_status=$? |
---|
3008 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3009 | rm -f conftest.er1 |
---|
3010 | cat conftest.err >&5 |
---|
3011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3012 | (exit $ac_status); } && |
---|
3013 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3014 | || test ! -s conftest.err' |
---|
3015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3016 | (eval $ac_try) 2>&5 |
---|
3017 | ac_status=$? |
---|
3018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3019 | (exit $ac_status); }; } && |
---|
3020 | { ac_try='test -s conftest$ac_exeext' |
---|
3021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3022 | (eval $ac_try) 2>&5 |
---|
3023 | ac_status=$? |
---|
3024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3025 | (exit $ac_status); }; }; then |
---|
3026 | coin_opt_cflags="-O" |
---|
3027 | else |
---|
3028 | echo "$as_me: failed program was:" >&5 |
---|
3029 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3030 | |
---|
3031 | fi |
---|
3032 | rm -f conftest.err conftest.$ac_objext \ |
---|
3033 | conftest$ac_exeext conftest.$ac_ext |
---|
3034 | fi |
---|
3035 | |
---|
3036 | # if PM doesn't want the warning messages, take them out |
---|
3037 | if test x"$coin_skip_warn_cflags" = xyes; then |
---|
3038 | coin_warn_cflags= |
---|
3039 | fi |
---|
3040 | |
---|
3041 | if test x${DBG_CFLAGS+set} != xset; then |
---|
3042 | DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" |
---|
3043 | fi |
---|
3044 | if test x${OPT_CFLAGS+set} != xset; then |
---|
3045 | OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" |
---|
3046 | fi |
---|
3047 | |
---|
3048 | DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3049 | OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3050 | |
---|
3051 | if test "$coin_debug_compile" = "true"; then |
---|
3052 | CFLAGS="$DBG_CFLAGS" |
---|
3053 | else |
---|
3054 | CFLAGS="$OPT_CFLAGS" |
---|
3055 | fi |
---|
3056 | else |
---|
3057 | CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3058 | if test x${DBG_CFLAGS+set} != xset; then |
---|
3059 | DBG_CFLAGS="$CFLAGS" |
---|
3060 | fi |
---|
3061 | if test x${OPT_CFLAGS+set} != xset; then |
---|
3062 | OPT_CFLAGS="$CFLAGS" |
---|
3063 | fi |
---|
3064 | fi |
---|
3065 | |
---|
3066 | # If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it. |
---|
3067 | |
---|
3068 | case "$CFLAGS" in |
---|
3069 | *-mno-cygwin*) |
---|
3070 | if test x${CPPFLAGS+set} != xset ; then |
---|
3071 | CPPFLAGS="-mno-cygwin" |
---|
3072 | else |
---|
3073 | case "$CPPFLAGS" in |
---|
3074 | *-mno-cygwin*) |
---|
3075 | ;; |
---|
3076 | *) |
---|
3077 | CPPFLAGS="$CPPFLAGS -mno-cygwin" |
---|
3078 | ;; |
---|
3079 | esac |
---|
3080 | fi ;; |
---|
3081 | esac |
---|
3082 | |
---|
3083 | # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include |
---|
3084 | if test x$COIN_PRJCT != x; then |
---|
3085 | CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD" |
---|
3086 | fi |
---|
3087 | |
---|
3088 | # Try if CFLAGS works |
---|
3089 | save_CFLAGS="$CFLAGS" |
---|
3090 | cat >conftest.$ac_ext <<_ACEOF |
---|
3091 | /* confdefs.h. */ |
---|
3092 | _ACEOF |
---|
3093 | cat confdefs.h >>conftest.$ac_ext |
---|
3094 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3095 | /* end confdefs.h. */ |
---|
3096 | |
---|
3097 | int |
---|
3098 | main () |
---|
3099 | { |
---|
3100 | int i=0; i++; |
---|
3101 | ; |
---|
3102 | return 0; |
---|
3103 | } |
---|
3104 | _ACEOF |
---|
3105 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3107 | (eval $ac_link) 2>conftest.er1 |
---|
3108 | ac_status=$? |
---|
3109 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3110 | rm -f conftest.er1 |
---|
3111 | cat conftest.err >&5 |
---|
3112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3113 | (exit $ac_status); } && |
---|
3114 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3115 | || test ! -s conftest.err' |
---|
3116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3117 | (eval $ac_try) 2>&5 |
---|
3118 | ac_status=$? |
---|
3119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3120 | (exit $ac_status); }; } && |
---|
3121 | { ac_try='test -s conftest$ac_exeext' |
---|
3122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3123 | (eval $ac_try) 2>&5 |
---|
3124 | ac_status=$? |
---|
3125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3126 | (exit $ac_status); }; }; then |
---|
3127 | : |
---|
3128 | else |
---|
3129 | echo "$as_me: failed program was:" >&5 |
---|
3130 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3131 | |
---|
3132 | CFLAGS= |
---|
3133 | fi |
---|
3134 | rm -f conftest.err conftest.$ac_objext \ |
---|
3135 | conftest$ac_exeext conftest.$ac_ext |
---|
3136 | if test -z "$CFLAGS"; then |
---|
3137 | { 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 |
---|
3138 | 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;} |
---|
3139 | CFLAGS='-O' |
---|
3140 | cat >conftest.$ac_ext <<_ACEOF |
---|
3141 | /* confdefs.h. */ |
---|
3142 | _ACEOF |
---|
3143 | cat confdefs.h >>conftest.$ac_ext |
---|
3144 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3145 | /* end confdefs.h. */ |
---|
3146 | |
---|
3147 | int |
---|
3148 | main () |
---|
3149 | { |
---|
3150 | int i=0; i++; |
---|
3151 | ; |
---|
3152 | return 0; |
---|
3153 | } |
---|
3154 | _ACEOF |
---|
3155 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3157 | (eval $ac_link) 2>conftest.er1 |
---|
3158 | ac_status=$? |
---|
3159 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3160 | rm -f conftest.er1 |
---|
3161 | cat conftest.err >&5 |
---|
3162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3163 | (exit $ac_status); } && |
---|
3164 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3165 | || test ! -s conftest.err' |
---|
3166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3167 | (eval $ac_try) 2>&5 |
---|
3168 | ac_status=$? |
---|
3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3170 | (exit $ac_status); }; } && |
---|
3171 | { ac_try='test -s conftest$ac_exeext' |
---|
3172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3173 | (eval $ac_try) 2>&5 |
---|
3174 | ac_status=$? |
---|
3175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3176 | (exit $ac_status); }; }; then |
---|
3177 | : |
---|
3178 | else |
---|
3179 | echo "$as_me: failed program was:" >&5 |
---|
3180 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3181 | |
---|
3182 | CFLAGS= |
---|
3183 | fi |
---|
3184 | rm -f conftest.err conftest.$ac_objext \ |
---|
3185 | conftest$ac_exeext conftest.$ac_ext |
---|
3186 | if test -z "$CFLAGS"; then |
---|
3187 | { 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 |
---|
3188 | 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;} |
---|
3189 | fi |
---|
3190 | fi |
---|
3191 | |
---|
3192 | { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 |
---|
3193 | echo "$as_me: C compiler options are: $CFLAGS" >&6;} |
---|
3194 | |
---|
3195 | |
---|
3196 | if test x"$MPICC" = x; then :; else |
---|
3197 | { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 |
---|
3198 | echo "$as_me: Will use MPI C compiler $MPICC" >&6;} |
---|
3199 | CC="$MPICC" |
---|
3200 | fi |
---|
3201 | |
---|
3202 | # Correct the LD variable if we are using the MS or Intel-windows compiler |
---|
3203 | case "$CC" in |
---|
3204 | clang* ) ;; |
---|
3205 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
3206 | case $build in |
---|
3207 | *-mingw*) |
---|
3208 | if test "${LD+set}" = set; then :; else |
---|
3209 | LD=link |
---|
3210 | fi |
---|
3211 | ;; |
---|
3212 | esac |
---|
3213 | case $enable_doscompile in |
---|
3214 | msvc) |
---|
3215 | if test "x${LD+set}" = xset; then :; else |
---|
3216 | LD=link |
---|
3217 | fi |
---|
3218 | ;; |
---|
3219 | esac |
---|
3220 | |
---|
3221 | ;; |
---|
3222 | esac |
---|
3223 | |
---|
3224 | ac_ext=c |
---|
3225 | ac_cpp='$CPP $CPPFLAGS' |
---|
3226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3229 | |
---|
3230 | |
---|
3231 | |
---|
3232 | # Get the name of the C++ compiler and appropriate compiler options |
---|
3233 | |
---|
3234 | #Let's try if that overcomes configuration problem with VC++ 6.0 |
---|
3235 | |
---|
3236 | ac_ext=cc |
---|
3237 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3238 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3239 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3240 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3241 | |
---|
3242 | |
---|
3243 | |
---|
3244 | |
---|
3245 | |
---|
3246 | |
---|
3247 | |
---|
3248 | coin_has_cxx=yes |
---|
3249 | |
---|
3250 | save_cxxflags="$CXXFLAGS" |
---|
3251 | # For *-*-solaris*, promote Studio/Workshop compiler to front of list. |
---|
3252 | case $build in |
---|
3253 | *-cygwin* | *-mingw*) |
---|
3254 | if test "$enable_doscompile" = msvc ; then |
---|
3255 | comps="icl cl" |
---|
3256 | else |
---|
3257 | comps="g++ cl" |
---|
3258 | fi ;; |
---|
3259 | *-*-solaris*) |
---|
3260 | comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; |
---|
3261 | *-darwin*) comps="g++ c++ CC" ;; |
---|
3262 | *-linux-gnu*) |
---|
3263 | comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;; |
---|
3264 | *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; |
---|
3265 | esac |
---|
3266 | |
---|
3267 | # We delete the cached value, since the test might not have been |
---|
3268 | # performed with our choice of compilers earlier |
---|
3269 | $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; } |
---|
3270 | # AC_MSG_NOTICE([C++ compiler candidates: $comps]) |
---|
3271 | ac_ext=cc |
---|
3272 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3273 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3274 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3275 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3276 | if test -n "$ac_tool_prefix"; then |
---|
3277 | for ac_prog in $CCC $comps |
---|
3278 | do |
---|
3279 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3280 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3281 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3283 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
3284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3285 | else |
---|
3286 | if test -n "$CXX"; then |
---|
3287 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3288 | else |
---|
3289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3290 | for as_dir in $PATH |
---|
3291 | do |
---|
3292 | IFS=$as_save_IFS |
---|
3293 | test -z "$as_dir" && as_dir=. |
---|
3294 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3295 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3296 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3298 | break 2 |
---|
3299 | fi |
---|
3300 | done |
---|
3301 | done |
---|
3302 | |
---|
3303 | fi |
---|
3304 | fi |
---|
3305 | CXX=$ac_cv_prog_CXX |
---|
3306 | if test -n "$CXX"; then |
---|
3307 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
3308 | echo "${ECHO_T}$CXX" >&6 |
---|
3309 | else |
---|
3310 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3311 | echo "${ECHO_T}no" >&6 |
---|
3312 | fi |
---|
3313 | |
---|
3314 | test -n "$CXX" && break |
---|
3315 | done |
---|
3316 | fi |
---|
3317 | if test -z "$CXX"; then |
---|
3318 | ac_ct_CXX=$CXX |
---|
3319 | for ac_prog in $CCC $comps |
---|
3320 | do |
---|
3321 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3322 | set dummy $ac_prog; ac_word=$2 |
---|
3323 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3324 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3325 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
3326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3327 | else |
---|
3328 | if test -n "$ac_ct_CXX"; then |
---|
3329 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3330 | else |
---|
3331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3332 | for as_dir in $PATH |
---|
3333 | do |
---|
3334 | IFS=$as_save_IFS |
---|
3335 | test -z "$as_dir" && as_dir=. |
---|
3336 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3337 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3338 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3339 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3340 | break 2 |
---|
3341 | fi |
---|
3342 | done |
---|
3343 | done |
---|
3344 | |
---|
3345 | fi |
---|
3346 | fi |
---|
3347 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3348 | if test -n "$ac_ct_CXX"; then |
---|
3349 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
3350 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
3351 | else |
---|
3352 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3353 | echo "${ECHO_T}no" >&6 |
---|
3354 | fi |
---|
3355 | |
---|
3356 | test -n "$ac_ct_CXX" && break |
---|
3357 | done |
---|
3358 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
3359 | |
---|
3360 | CXX=$ac_ct_CXX |
---|
3361 | fi |
---|
3362 | |
---|
3363 | |
---|
3364 | # Provide some information about the compiler. |
---|
3365 | echo "$as_me:$LINENO:" \ |
---|
3366 | "checking for C++ compiler version" >&5 |
---|
3367 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3368 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
3369 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
3370 | ac_status=$? |
---|
3371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3372 | (exit $ac_status); } |
---|
3373 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
3374 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
3375 | ac_status=$? |
---|
3376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3377 | (exit $ac_status); } |
---|
3378 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3379 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3380 | ac_status=$? |
---|
3381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3382 | (exit $ac_status); } |
---|
3383 | |
---|
3384 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
3385 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
3386 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
3387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3388 | else |
---|
3389 | cat >conftest.$ac_ext <<_ACEOF |
---|
3390 | /* confdefs.h. */ |
---|
3391 | _ACEOF |
---|
3392 | cat confdefs.h >>conftest.$ac_ext |
---|
3393 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3394 | /* end confdefs.h. */ |
---|
3395 | |
---|
3396 | int |
---|
3397 | main () |
---|
3398 | { |
---|
3399 | #ifndef __GNUC__ |
---|
3400 | choke me |
---|
3401 | #endif |
---|
3402 | |
---|
3403 | ; |
---|
3404 | return 0; |
---|
3405 | } |
---|
3406 | _ACEOF |
---|
3407 | rm -f conftest.$ac_objext |
---|
3408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3409 | (eval $ac_compile) 2>conftest.er1 |
---|
3410 | ac_status=$? |
---|
3411 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3412 | rm -f conftest.er1 |
---|
3413 | cat conftest.err >&5 |
---|
3414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3415 | (exit $ac_status); } && |
---|
3416 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3417 | || test ! -s conftest.err' |
---|
3418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3419 | (eval $ac_try) 2>&5 |
---|
3420 | ac_status=$? |
---|
3421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3422 | (exit $ac_status); }; } && |
---|
3423 | { ac_try='test -s conftest.$ac_objext' |
---|
3424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3425 | (eval $ac_try) 2>&5 |
---|
3426 | ac_status=$? |
---|
3427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3428 | (exit $ac_status); }; }; then |
---|
3429 | ac_compiler_gnu=yes |
---|
3430 | else |
---|
3431 | echo "$as_me: failed program was:" >&5 |
---|
3432 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3433 | |
---|
3434 | ac_compiler_gnu=no |
---|
3435 | fi |
---|
3436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3437 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3438 | |
---|
3439 | fi |
---|
3440 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3441 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
3442 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
3443 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3444 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3445 | CXXFLAGS="-g" |
---|
3446 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
3447 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
3448 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
3449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3450 | else |
---|
3451 | cat >conftest.$ac_ext <<_ACEOF |
---|
3452 | /* confdefs.h. */ |
---|
3453 | _ACEOF |
---|
3454 | cat confdefs.h >>conftest.$ac_ext |
---|
3455 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3456 | /* end confdefs.h. */ |
---|
3457 | |
---|
3458 | int |
---|
3459 | main () |
---|
3460 | { |
---|
3461 | |
---|
3462 | ; |
---|
3463 | return 0; |
---|
3464 | } |
---|
3465 | _ACEOF |
---|
3466 | rm -f conftest.$ac_objext |
---|
3467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3468 | (eval $ac_compile) 2>conftest.er1 |
---|
3469 | ac_status=$? |
---|
3470 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3471 | rm -f conftest.er1 |
---|
3472 | cat conftest.err >&5 |
---|
3473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3474 | (exit $ac_status); } && |
---|
3475 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3476 | || test ! -s conftest.err' |
---|
3477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3478 | (eval $ac_try) 2>&5 |
---|
3479 | ac_status=$? |
---|
3480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3481 | (exit $ac_status); }; } && |
---|
3482 | { ac_try='test -s conftest.$ac_objext' |
---|
3483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3484 | (eval $ac_try) 2>&5 |
---|
3485 | ac_status=$? |
---|
3486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3487 | (exit $ac_status); }; }; then |
---|
3488 | ac_cv_prog_cxx_g=yes |
---|
3489 | else |
---|
3490 | echo "$as_me: failed program was:" >&5 |
---|
3491 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3492 | |
---|
3493 | ac_cv_prog_cxx_g=no |
---|
3494 | fi |
---|
3495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3496 | fi |
---|
3497 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
3498 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
3499 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3500 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3501 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3502 | if test "$GXX" = yes; then |
---|
3503 | CXXFLAGS="-g -O2" |
---|
3504 | else |
---|
3505 | CXXFLAGS="-g" |
---|
3506 | fi |
---|
3507 | else |
---|
3508 | if test "$GXX" = yes; then |
---|
3509 | CXXFLAGS="-O2" |
---|
3510 | else |
---|
3511 | CXXFLAGS= |
---|
3512 | fi |
---|
3513 | fi |
---|
3514 | for ac_declaration in \ |
---|
3515 | '' \ |
---|
3516 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3517 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3518 | 'extern "C" void exit (int) throw ();' \ |
---|
3519 | 'extern "C" void exit (int);' \ |
---|
3520 | 'void exit (int);' |
---|
3521 | do |
---|
3522 | cat >conftest.$ac_ext <<_ACEOF |
---|
3523 | /* confdefs.h. */ |
---|
3524 | _ACEOF |
---|
3525 | cat confdefs.h >>conftest.$ac_ext |
---|
3526 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3527 | /* end confdefs.h. */ |
---|
3528 | $ac_declaration |
---|
3529 | #include <stdlib.h> |
---|
3530 | int |
---|
3531 | main () |
---|
3532 | { |
---|
3533 | exit (42); |
---|
3534 | ; |
---|
3535 | return 0; |
---|
3536 | } |
---|
3537 | _ACEOF |
---|
3538 | rm -f conftest.$ac_objext |
---|
3539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3540 | (eval $ac_compile) 2>conftest.er1 |
---|
3541 | ac_status=$? |
---|
3542 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3543 | rm -f conftest.er1 |
---|
3544 | cat conftest.err >&5 |
---|
3545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3546 | (exit $ac_status); } && |
---|
3547 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3548 | || test ! -s conftest.err' |
---|
3549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3550 | (eval $ac_try) 2>&5 |
---|
3551 | ac_status=$? |
---|
3552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3553 | (exit $ac_status); }; } && |
---|
3554 | { ac_try='test -s conftest.$ac_objext' |
---|
3555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3556 | (eval $ac_try) 2>&5 |
---|
3557 | ac_status=$? |
---|
3558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3559 | (exit $ac_status); }; }; then |
---|
3560 | : |
---|
3561 | else |
---|
3562 | echo "$as_me: failed program was:" >&5 |
---|
3563 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3564 | |
---|
3565 | continue |
---|
3566 | fi |
---|
3567 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3568 | cat >conftest.$ac_ext <<_ACEOF |
---|
3569 | /* confdefs.h. */ |
---|
3570 | _ACEOF |
---|
3571 | cat confdefs.h >>conftest.$ac_ext |
---|
3572 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3573 | /* end confdefs.h. */ |
---|
3574 | $ac_declaration |
---|
3575 | int |
---|
3576 | main () |
---|
3577 | { |
---|
3578 | exit (42); |
---|
3579 | ; |
---|
3580 | return 0; |
---|
3581 | } |
---|
3582 | _ACEOF |
---|
3583 | rm -f conftest.$ac_objext |
---|
3584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3585 | (eval $ac_compile) 2>conftest.er1 |
---|
3586 | ac_status=$? |
---|
3587 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3588 | rm -f conftest.er1 |
---|
3589 | cat conftest.err >&5 |
---|
3590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3591 | (exit $ac_status); } && |
---|
3592 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3593 | || test ! -s conftest.err' |
---|
3594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3595 | (eval $ac_try) 2>&5 |
---|
3596 | ac_status=$? |
---|
3597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3598 | (exit $ac_status); }; } && |
---|
3599 | { ac_try='test -s conftest.$ac_objext' |
---|
3600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3601 | (eval $ac_try) 2>&5 |
---|
3602 | ac_status=$? |
---|
3603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3604 | (exit $ac_status); }; }; then |
---|
3605 | break |
---|
3606 | else |
---|
3607 | echo "$as_me: failed program was:" >&5 |
---|
3608 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3609 | |
---|
3610 | fi |
---|
3611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3612 | done |
---|
3613 | rm -f conftest* |
---|
3614 | if test -n "$ac_declaration"; then |
---|
3615 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3616 | echo $ac_declaration >>confdefs.h |
---|
3617 | echo '#endif' >>confdefs.h |
---|
3618 | fi |
---|
3619 | |
---|
3620 | ac_ext=cc |
---|
3621 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3622 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3623 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3624 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3625 | |
---|
3626 | |
---|
3627 | #AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler |
---|
3628 | #thus, we test here whether $CXX is actually working |
---|
3629 | ac_ext=cc |
---|
3630 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3631 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3632 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3633 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3634 | |
---|
3635 | echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5 |
---|
3636 | echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6; |
---|
3637 | cat >conftest.$ac_ext <<_ACEOF |
---|
3638 | /* confdefs.h. */ |
---|
3639 | _ACEOF |
---|
3640 | cat confdefs.h >>conftest.$ac_ext |
---|
3641 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3642 | /* end confdefs.h. */ |
---|
3643 | |
---|
3644 | int |
---|
3645 | main () |
---|
3646 | { |
---|
3647 | int i=0; |
---|
3648 | ; |
---|
3649 | return 0; |
---|
3650 | } |
---|
3651 | _ACEOF |
---|
3652 | rm -f conftest.$ac_objext |
---|
3653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3654 | (eval $ac_compile) 2>conftest.er1 |
---|
3655 | ac_status=$? |
---|
3656 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3657 | rm -f conftest.er1 |
---|
3658 | cat conftest.err >&5 |
---|
3659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3660 | (exit $ac_status); } && |
---|
3661 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3662 | || test ! -s conftest.err' |
---|
3663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3664 | (eval $ac_try) 2>&5 |
---|
3665 | ac_status=$? |
---|
3666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3667 | (exit $ac_status); }; } && |
---|
3668 | { ac_try='test -s conftest.$ac_objext' |
---|
3669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3670 | (eval $ac_try) 2>&5 |
---|
3671 | ac_status=$? |
---|
3672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3673 | (exit $ac_status); }; }; then |
---|
3674 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3675 | echo "${ECHO_T}yes" >&6 |
---|
3676 | else |
---|
3677 | echo "$as_me: failed program was:" >&5 |
---|
3678 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3679 | |
---|
3680 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3681 | echo "${ECHO_T}no" >&6 |
---|
3682 | { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5 |
---|
3683 | echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;} |
---|
3684 | { (exit 1); exit 1; }; } |
---|
3685 | |
---|
3686 | fi |
---|
3687 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3688 | ac_ext=cc |
---|
3689 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3690 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3691 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3692 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3693 | |
---|
3694 | |
---|
3695 | coin_cxx_is_cl=false |
---|
3696 | # It seems that we need to cleanup something here for the Windows |
---|
3697 | case "$CXX" in |
---|
3698 | clang* ) ;; |
---|
3699 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
3700 | sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh |
---|
3701 | mv confdefs.hh confdefs.h |
---|
3702 | coin_cxx_is_cl=true |
---|
3703 | ;; |
---|
3704 | esac |
---|
3705 | |
---|
3706 | # add automake conditional so we can recognize cl compiler in makefile |
---|
3707 | |
---|
3708 | |
---|
3709 | if test $coin_cxx_is_cl = true; then |
---|
3710 | COIN_CXX_IS_CL_TRUE= |
---|
3711 | COIN_CXX_IS_CL_FALSE='#' |
---|
3712 | else |
---|
3713 | COIN_CXX_IS_CL_TRUE='#' |
---|
3714 | COIN_CXX_IS_CL_FALSE= |
---|
3715 | fi |
---|
3716 | |
---|
3717 | |
---|
3718 | # Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
---|
3719 | case "$CXX" in |
---|
3720 | clang* ) ;; |
---|
3721 | cl* | */cl* | CL* | */CL* ) |
---|
3722 | if test "$ac_cv_prog_cxx_g" = yes ; then |
---|
3723 | ac_cv_prog_cxx_g=no |
---|
3724 | { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
---|
3725 | echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
---|
3726 | fi ;; |
---|
3727 | esac |
---|
3728 | CXXFLAGS="$save_cxxflags" |
---|
3729 | |
---|
3730 | # Check if a project specific CXXFLAGS variable has been set |
---|
3731 | if test x$COIN_PRJCT != x; then |
---|
3732 | eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set} |
---|
3733 | if test x$coin_tmp = xset; then |
---|
3734 | eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS} |
---|
3735 | fi |
---|
3736 | fi |
---|
3737 | |
---|
3738 | if test x"$CXXFLAGS" = x; then |
---|
3739 | |
---|
3740 | # ToDo decide whether we want -DNDEBUG for optimization |
---|
3741 | coin_add_cxxflags= |
---|
3742 | coin_opt_cxxflags= |
---|
3743 | coin_dbg_cxxflags= |
---|
3744 | coin_warn_cxxflags= |
---|
3745 | |
---|
3746 | if test "$GXX" = "yes"; then |
---|
3747 | case "$CXX" in |
---|
3748 | icpc* | */icpc*) |
---|
3749 | ;; |
---|
3750 | *) |
---|
3751 | # ToDo decide about unroll-loops |
---|
3752 | coin_opt_cxxflags="-O3" |
---|
3753 | coin_add_cxxflags="-pipe" |
---|
3754 | coin_dbg_cxxflags="-g -O0" |
---|
3755 | coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long" |
---|
3756 | case $build in |
---|
3757 | *-darwin*) |
---|
3758 | ;; |
---|
3759 | *) |
---|
3760 | coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags" |
---|
3761 | ;; |
---|
3762 | esac |
---|
3763 | |
---|
3764 | case $enable_doscompile in |
---|
3765 | mingw) |
---|
3766 | CXXFLAGS="-mno-cygwin" |
---|
3767 | cat >conftest.$ac_ext <<_ACEOF |
---|
3768 | /* confdefs.h. */ |
---|
3769 | _ACEOF |
---|
3770 | cat confdefs.h >>conftest.$ac_ext |
---|
3771 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3772 | /* end confdefs.h. */ |
---|
3773 | |
---|
3774 | int |
---|
3775 | main () |
---|
3776 | { |
---|
3777 | int i=0; i++; |
---|
3778 | ; |
---|
3779 | return 0; |
---|
3780 | } |
---|
3781 | _ACEOF |
---|
3782 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3784 | (eval $ac_link) 2>conftest.er1 |
---|
3785 | ac_status=$? |
---|
3786 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3787 | rm -f conftest.er1 |
---|
3788 | cat conftest.err >&5 |
---|
3789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3790 | (exit $ac_status); } && |
---|
3791 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3792 | || test ! -s conftest.err' |
---|
3793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3794 | (eval $ac_try) 2>&5 |
---|
3795 | ac_status=$? |
---|
3796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3797 | (exit $ac_status); }; } && |
---|
3798 | { ac_try='test -s conftest$ac_exeext' |
---|
3799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3800 | (eval $ac_try) 2>&5 |
---|
3801 | ac_status=$? |
---|
3802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3803 | (exit $ac_status); }; }; then |
---|
3804 | coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags" |
---|
3805 | else |
---|
3806 | echo "$as_me: failed program was:" >&5 |
---|
3807 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3808 | |
---|
3809 | fi |
---|
3810 | rm -f conftest.err conftest.$ac_objext \ |
---|
3811 | conftest$ac_exeext conftest.$ac_ext |
---|
3812 | CXXFLAGS= |
---|
3813 | ;; |
---|
3814 | esac |
---|
3815 | esac |
---|
3816 | fi |
---|
3817 | |
---|
3818 | # Note that we do not need to cover GCC in the following tests. |
---|
3819 | |
---|
3820 | if test -z "$coin_opt_cxxflags"; then |
---|
3821 | case $build in |
---|
3822 | *-cygwin* | *-mingw*) |
---|
3823 | case "$CXX" in |
---|
3824 | clang* ) ;; |
---|
3825 | cl* | */cl* | CL* | */CL*) |
---|
3826 | # The MT and MTd options are mutually exclusive |
---|
3827 | coin_opt_cxxflags='-MT -O2' |
---|
3828 | coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE' |
---|
3829 | coin_dbg_cxxflags='-MTd' |
---|
3830 | ;; |
---|
3831 | icl* | */icl* | ICL* | */ICL*) |
---|
3832 | # The MT and MTd options are mutually exclusive |
---|
3833 | coin_opt_cxxflags='-MT -Ox' |
---|
3834 | coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE' |
---|
3835 | coin_dbg_cxxflags='-MTd -debug' |
---|
3836 | ;; |
---|
3837 | esac |
---|
3838 | ;; |
---|
3839 | *-linux-*) |
---|
3840 | case "$CXX" in |
---|
3841 | icpc* | */icpc*) |
---|
3842 | coin_opt_cxxflags="-O3 -ip -mp1" |
---|
3843 | coin_add_cxxflags="" |
---|
3844 | coin_dbg_cxxflags="-g" |
---|
3845 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
3846 | CXXFLAGS= |
---|
3847 | cat >conftest.$ac_ext <<_ACEOF |
---|
3848 | /* confdefs.h. */ |
---|
3849 | _ACEOF |
---|
3850 | cat confdefs.h >>conftest.$ac_ext |
---|
3851 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3852 | /* end confdefs.h. */ |
---|
3853 | |
---|
3854 | int |
---|
3855 | main () |
---|
3856 | { |
---|
3857 | int i=0; i++; |
---|
3858 | ; |
---|
3859 | return 0; |
---|
3860 | } |
---|
3861 | _ACEOF |
---|
3862 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3864 | (eval $ac_link) 2>conftest.er1 |
---|
3865 | ac_status=$? |
---|
3866 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3867 | rm -f conftest.er1 |
---|
3868 | cat conftest.err >&5 |
---|
3869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3870 | (exit $ac_status); } && |
---|
3871 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3872 | || test ! -s conftest.err' |
---|
3873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3874 | (eval $ac_try) 2>&5 |
---|
3875 | ac_status=$? |
---|
3876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3877 | (exit $ac_status); }; } && |
---|
3878 | { ac_try='test -s conftest$ac_exeext' |
---|
3879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3880 | (eval $ac_try) 2>&5 |
---|
3881 | ac_status=$? |
---|
3882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3883 | (exit $ac_status); }; }; then |
---|
3884 | : |
---|
3885 | else |
---|
3886 | echo "$as_me: failed program was:" >&5 |
---|
3887 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3888 | |
---|
3889 | coin_add_cxxflags="-i_dynamic $coin_add_cxxflags" |
---|
3890 | fi |
---|
3891 | rm -f conftest.err conftest.$ac_objext \ |
---|
3892 | conftest$ac_exeext conftest.$ac_ext |
---|
3893 | ;; |
---|
3894 | pgCC* | */pgCC*) |
---|
3895 | coin_opt_cxxflags="-fast" |
---|
3896 | coin_add_cxxflags="-Kieee -pc 64" |
---|
3897 | coin_dbg_cxxflags="-g" |
---|
3898 | ;; |
---|
3899 | esac |
---|
3900 | ;; |
---|
3901 | *-ibm-*) |
---|
3902 | case "$CXX" in |
---|
3903 | xlC* | */xlC* | mpxlC* | */mpxlC*) |
---|
3904 | coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
3905 | coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++" |
---|
3906 | coin_dbg_cxxflags="-g" |
---|
3907 | ;; |
---|
3908 | esac |
---|
3909 | ;; |
---|
3910 | *-hp-*) |
---|
3911 | case "$CXX" in |
---|
3912 | aCC* | */aCC* ) |
---|
3913 | coin_opt_cxxflags="-O" |
---|
3914 | coin_add_cxxflags="-AA" |
---|
3915 | coin_dbg_cxxflags="-g" |
---|
3916 | ;; |
---|
3917 | esac |
---|
3918 | ;; |
---|
3919 | *-*-solaris*) |
---|
3920 | coin_opt_cxxflags="-O4" |
---|
3921 | coin_dbg_cxxflags="-g" |
---|
3922 | ;; |
---|
3923 | esac |
---|
3924 | fi |
---|
3925 | |
---|
3926 | # Generic flag settings. If these don't work, add a case above. |
---|
3927 | |
---|
3928 | if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then |
---|
3929 | coin_dbg_cxxflags="-g" |
---|
3930 | fi |
---|
3931 | |
---|
3932 | if test -z "$coin_opt_cxxflags"; then |
---|
3933 | # Try if -O option works if nothing else is set |
---|
3934 | CXXFLAGS=-O |
---|
3935 | cat >conftest.$ac_ext <<_ACEOF |
---|
3936 | /* confdefs.h. */ |
---|
3937 | _ACEOF |
---|
3938 | cat confdefs.h >>conftest.$ac_ext |
---|
3939 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3940 | /* end confdefs.h. */ |
---|
3941 | |
---|
3942 | int |
---|
3943 | main () |
---|
3944 | { |
---|
3945 | int i=0; i++; |
---|
3946 | ; |
---|
3947 | return 0; |
---|
3948 | } |
---|
3949 | _ACEOF |
---|
3950 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3952 | (eval $ac_link) 2>conftest.er1 |
---|
3953 | ac_status=$? |
---|
3954 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3955 | rm -f conftest.er1 |
---|
3956 | cat conftest.err >&5 |
---|
3957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3958 | (exit $ac_status); } && |
---|
3959 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3960 | || test ! -s conftest.err' |
---|
3961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3962 | (eval $ac_try) 2>&5 |
---|
3963 | ac_status=$? |
---|
3964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3965 | (exit $ac_status); }; } && |
---|
3966 | { ac_try='test -s conftest$ac_exeext' |
---|
3967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3968 | (eval $ac_try) 2>&5 |
---|
3969 | ac_status=$? |
---|
3970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3971 | (exit $ac_status); }; }; then |
---|
3972 | coin_opt_cxxflags="-O" |
---|
3973 | else |
---|
3974 | echo "$as_me: failed program was:" >&5 |
---|
3975 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3976 | |
---|
3977 | fi |
---|
3978 | rm -f conftest.err conftest.$ac_objext \ |
---|
3979 | conftest$ac_exeext conftest.$ac_ext |
---|
3980 | fi |
---|
3981 | |
---|
3982 | # if PM doesn't want the warning messages, take them out |
---|
3983 | if test x"$coin_skip_warn_cxxflags" = xyes; then |
---|
3984 | coin_warn_cxxflags= |
---|
3985 | fi |
---|
3986 | |
---|
3987 | # Do final setup of flags based on values determined above. |
---|
3988 | |
---|
3989 | if test x${DBG_CXXFLAGS+set} != xset; then |
---|
3990 | DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags" |
---|
3991 | fi |
---|
3992 | if test x${OPT_CXXFLAGS+set} != xset; then |
---|
3993 | OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags" |
---|
3994 | fi |
---|
3995 | |
---|
3996 | DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" |
---|
3997 | OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" |
---|
3998 | |
---|
3999 | if test "$coin_debug_compile" = "true"; then |
---|
4000 | CXXFLAGS="$DBG_CXXFLAGS" |
---|
4001 | else |
---|
4002 | CXXFLAGS="$OPT_CXXFLAGS" |
---|
4003 | fi |
---|
4004 | |
---|
4005 | # Handle the case where CXXFLAGS was set externally. |
---|
4006 | else |
---|
4007 | CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" |
---|
4008 | if test x${DBG_CXXFLAGS+set} != xset; then |
---|
4009 | DBG_CXXFLAGS="$CXXFLAGS" |
---|
4010 | fi |
---|
4011 | if test x${OPT_CXXFLAGS+set} != xset; then |
---|
4012 | OPT_CXXFLAGS="$CXXFLAGS" |
---|
4013 | fi |
---|
4014 | fi |
---|
4015 | |
---|
4016 | # If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it. |
---|
4017 | |
---|
4018 | case "$CXXFLAGS" in |
---|
4019 | *-mno-cygwin*) |
---|
4020 | if test x${CPPFLAGS+set} != xset ; then |
---|
4021 | CPPFLAGS="-mno-cygwin" |
---|
4022 | else |
---|
4023 | case "$CPPFLAGS" in |
---|
4024 | *-mno-cygwin*) |
---|
4025 | ;; |
---|
4026 | *) |
---|
4027 | CPPFLAGS="$CPPFLAGS -mno-cygwin" |
---|
4028 | ;; |
---|
4029 | esac |
---|
4030 | fi ;; |
---|
4031 | esac |
---|
4032 | |
---|
4033 | # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include |
---|
4034 | if test x$COIN_PRJCT != x; then |
---|
4035 | CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD" |
---|
4036 | fi |
---|
4037 | |
---|
4038 | # Try if CXXFLAGS works |
---|
4039 | save_CXXFLAGS="$CXXFLAGS" |
---|
4040 | cat >conftest.$ac_ext <<_ACEOF |
---|
4041 | /* confdefs.h. */ |
---|
4042 | _ACEOF |
---|
4043 | cat confdefs.h >>conftest.$ac_ext |
---|
4044 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4045 | /* end confdefs.h. */ |
---|
4046 | |
---|
4047 | int |
---|
4048 | main () |
---|
4049 | { |
---|
4050 | int i=0; i++; |
---|
4051 | ; |
---|
4052 | return 0; |
---|
4053 | } |
---|
4054 | _ACEOF |
---|
4055 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4057 | (eval $ac_link) 2>conftest.er1 |
---|
4058 | ac_status=$? |
---|
4059 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4060 | rm -f conftest.er1 |
---|
4061 | cat conftest.err >&5 |
---|
4062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4063 | (exit $ac_status); } && |
---|
4064 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
4065 | || test ! -s conftest.err' |
---|
4066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4067 | (eval $ac_try) 2>&5 |
---|
4068 | ac_status=$? |
---|
4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4070 | (exit $ac_status); }; } && |
---|
4071 | { ac_try='test -s conftest$ac_exeext' |
---|
4072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4073 | (eval $ac_try) 2>&5 |
---|
4074 | ac_status=$? |
---|
4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4076 | (exit $ac_status); }; }; then |
---|
4077 | : |
---|
4078 | else |
---|
4079 | echo "$as_me: failed program was:" >&5 |
---|
4080 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4081 | |
---|
4082 | CXXFLAGS= |
---|
4083 | fi |
---|
4084 | rm -f conftest.err conftest.$ac_objext \ |
---|
4085 | conftest$ac_exeext conftest.$ac_ext |
---|
4086 | if test -z "$CXXFLAGS"; then |
---|
4087 | { 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 |
---|
4088 | 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;} |
---|
4089 | CXXFLAGS='-O' |
---|
4090 | cat >conftest.$ac_ext <<_ACEOF |
---|
4091 | /* confdefs.h. */ |
---|
4092 | _ACEOF |
---|
4093 | cat confdefs.h >>conftest.$ac_ext |
---|
4094 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4095 | /* end confdefs.h. */ |
---|
4096 | |
---|
4097 | int |
---|
4098 | main () |
---|
4099 | { |
---|
4100 | int i=0; i++; |
---|
4101 | ; |
---|
4102 | return 0; |
---|
4103 | } |
---|
4104 | _ACEOF |
---|
4105 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4107 | (eval $ac_link) 2>conftest.er1 |
---|
4108 | ac_status=$? |
---|
4109 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4110 | rm -f conftest.er1 |
---|
4111 | cat conftest.err >&5 |
---|
4112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4113 | (exit $ac_status); } && |
---|
4114 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
4115 | || test ! -s conftest.err' |
---|
4116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4117 | (eval $ac_try) 2>&5 |
---|
4118 | ac_status=$? |
---|
4119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4120 | (exit $ac_status); }; } && |
---|
4121 | { ac_try='test -s conftest$ac_exeext' |
---|
4122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4123 | (eval $ac_try) 2>&5 |
---|
4124 | ac_status=$? |
---|
4125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4126 | (exit $ac_status); }; }; then |
---|
4127 | : |
---|
4128 | else |
---|
4129 | echo "$as_me: failed program was:" >&5 |
---|
4130 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4131 | |
---|
4132 | CXXFLAGS= |
---|
4133 | fi |
---|
4134 | rm -f conftest.err conftest.$ac_objext \ |
---|
4135 | conftest$ac_exeext conftest.$ac_ext |
---|
4136 | if test -z "$CXXFLAGS"; then |
---|
4137 | { 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 |
---|
4138 | 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;} |
---|
4139 | fi |
---|
4140 | fi |
---|
4141 | |
---|
4142 | { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5 |
---|
4143 | echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;} |
---|
4144 | |
---|
4145 | |
---|
4146 | if test x"$MPICXX" = x; then :; else |
---|
4147 | { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5 |
---|
4148 | echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;} |
---|
4149 | CXX="$MPICXX" |
---|
4150 | fi |
---|
4151 | |
---|
4152 | # correct the LD variable in a mingw build with MS or intel compiler |
---|
4153 | case "$CXX" in |
---|
4154 | clang* ) ;; |
---|
4155 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
4156 | case $build in |
---|
4157 | *-mingw*) |
---|
4158 | if test "${LD+set}" = set; then :; else |
---|
4159 | LD=link |
---|
4160 | fi |
---|
4161 | ;; |
---|
4162 | esac |
---|
4163 | case $enable_doscompile in |
---|
4164 | msvc) |
---|
4165 | if test "x${LD+set}" = xset; then :; else |
---|
4166 | LD=link |
---|
4167 | fi |
---|
4168 | ;; |
---|
4169 | esac |
---|
4170 | |
---|
4171 | ;; |
---|
4172 | esac |
---|
4173 | |
---|
4174 | ac_ext=c |
---|
4175 | ac_cpp='$CPP $CPPFLAGS' |
---|
4176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4179 | |
---|
4180 | |
---|
4181 | |
---|
4182 | # Check if pkg-config is available (to setup addlibs file) |
---|
4183 | |
---|
4184 | |
---|
4185 | # Check whether --enable-pkg-config or --disable-pkg-config was given. |
---|
4186 | if test "${enable_pkg_config+set}" = set; then |
---|
4187 | enableval="$enable_pkg_config" |
---|
4188 | use_pkgconfig="$enableval" |
---|
4189 | else |
---|
4190 | use_pkgconfig=yes |
---|
4191 | fi; |
---|
4192 | |
---|
4193 | if test $use_pkgconfig = yes ; then |
---|
4194 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
---|
4195 | if test -n "$ac_tool_prefix"; then |
---|
4196 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
---|
4197 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
---|
4198 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4200 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
4201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4202 | else |
---|
4203 | case $PKG_CONFIG in |
---|
4204 | [\\/]* | ?:[\\/]*) |
---|
4205 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
4206 | ;; |
---|
4207 | *) |
---|
4208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4209 | for as_dir in $PATH |
---|
4210 | do |
---|
4211 | IFS=$as_save_IFS |
---|
4212 | test -z "$as_dir" && as_dir=. |
---|
4213 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4214 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4215 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
4216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4217 | break 2 |
---|
4218 | fi |
---|
4219 | done |
---|
4220 | done |
---|
4221 | |
---|
4222 | ;; |
---|
4223 | esac |
---|
4224 | fi |
---|
4225 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
4226 | |
---|
4227 | if test -n "$PKG_CONFIG"; then |
---|
4228 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
4229 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
4230 | else |
---|
4231 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4232 | echo "${ECHO_T}no" >&6 |
---|
4233 | fi |
---|
4234 | |
---|
4235 | fi |
---|
4236 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
---|
4237 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
---|
4238 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
4239 | set dummy pkg-config; ac_word=$2 |
---|
4240 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4241 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4242 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
---|
4243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4244 | else |
---|
4245 | case $ac_pt_PKG_CONFIG in |
---|
4246 | [\\/]* | ?:[\\/]*) |
---|
4247 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
---|
4248 | ;; |
---|
4249 | *) |
---|
4250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4251 | for as_dir in $PATH |
---|
4252 | do |
---|
4253 | IFS=$as_save_IFS |
---|
4254 | test -z "$as_dir" && as_dir=. |
---|
4255 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4256 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4257 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
4258 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4259 | break 2 |
---|
4260 | fi |
---|
4261 | done |
---|
4262 | done |
---|
4263 | |
---|
4264 | ;; |
---|
4265 | esac |
---|
4266 | fi |
---|
4267 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
---|
4268 | |
---|
4269 | if test -n "$ac_pt_PKG_CONFIG"; then |
---|
4270 | echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
---|
4271 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 |
---|
4272 | else |
---|
4273 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4274 | echo "${ECHO_T}no" >&6 |
---|
4275 | fi |
---|
4276 | |
---|
4277 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
---|
4278 | else |
---|
4279 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
---|
4280 | fi |
---|
4281 | |
---|
4282 | fi |
---|
4283 | if test -n "$PKG_CONFIG"; then |
---|
4284 | _pkg_min_version=0.16.0 |
---|
4285 | echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
---|
4286 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 |
---|
4287 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
---|
4288 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4289 | echo "${ECHO_T}yes" >&6 |
---|
4290 | else |
---|
4291 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4292 | echo "${ECHO_T}no" >&6 |
---|
4293 | PKG_CONFIG="" |
---|
4294 | fi |
---|
4295 | fi |
---|
4296 | |
---|
4297 | # check if pkg-config supports the short-errors flag |
---|
4298 | if test -n "$PKG_CONFIG" && \ |
---|
4299 | $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
---|
4300 | pkg_short_errors=" --short-errors " |
---|
4301 | else |
---|
4302 | pkg_short_errors="" |
---|
4303 | fi |
---|
4304 | fi |
---|
4305 | |
---|
4306 | |
---|
4307 | |
---|
4308 | if test -n "$PKG_CONFIG"; then |
---|
4309 | COIN_HAS_PKGCONFIG_TRUE= |
---|
4310 | COIN_HAS_PKGCONFIG_FALSE='#' |
---|
4311 | else |
---|
4312 | COIN_HAS_PKGCONFIG_TRUE='#' |
---|
4313 | COIN_HAS_PKGCONFIG_FALSE= |
---|
4314 | fi |
---|
4315 | |
---|
4316 | |
---|
4317 | |
---|
4318 | # assemble pkg-config search path for installed projects |
---|
4319 | COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
---|
4320 | |
---|
4321 | # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there |
---|
4322 | # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig, |
---|
4323 | # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}... |
---|
4324 | if test "x${prefix}" = xNONE ; then |
---|
4325 | COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
---|
4326 | else |
---|
4327 | COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
---|
4328 | fi |
---|
4329 | |
---|
4330 | |
---|
4331 | # Check whether --with-coin-instdir or --without-coin-instdir was given. |
---|
4332 | if test "${with_coin_instdir+set}" = set; then |
---|
4333 | withval="$with_coin_instdir" |
---|
4334 | if test -d "$withval"; then : ; else |
---|
4335 | { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5 |
---|
4336 | echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;} |
---|
4337 | { (exit 1); exit 1; }; } |
---|
4338 | fi |
---|
4339 | COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
---|
4340 | |
---|
4341 | fi; |
---|
4342 | |
---|
4343 | |
---|
4344 | |
---|
4345 | # assemble additional pkg-config search paths for uninstalled projects |
---|
4346 | if test x$coin_projectdir = xyes ; then |
---|
4347 | # if we are in a project setup, then in a classic setup, we want to find uninstalled projects |
---|
4348 | # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory |
---|
4349 | # unfortunately, if the user set prefix, then we do not know where the project base directory is located |
---|
4350 | # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data) |
---|
4351 | COIN_PKG_CONFIG_PATH_UNINSTALLED= |
---|
4352 | if test -e ../coin_subdirs.txt ; then |
---|
4353 | for i in `cat ../coin_subdirs.txt` ; do |
---|
4354 | if test -d ../$i ; then |
---|
4355 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
---|
4356 | fi |
---|
4357 | if test -d ../$i/pkgconfig ; then |
---|
4358 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
---|
4359 | fi |
---|
4360 | done |
---|
4361 | fi |
---|
4362 | |
---|
4363 | if test -e ../../coin_subdirs.txt ; then |
---|
4364 | for i in `cat ../../coin_subdirs.txt` ; do |
---|
4365 | if test -d ../../$i ; then |
---|
4366 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
---|
4367 | fi |
---|
4368 | if test -d ../../$i/pkgconfig ; then |
---|
4369 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
---|
4370 | fi |
---|
4371 | done |
---|
4372 | fi |
---|
4373 | |
---|
4374 | |
---|
4375 | fi |
---|
4376 | |
---|
4377 | if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then |
---|
4378 | { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5 |
---|
4379 | echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;} |
---|
4380 | fi |
---|
4381 | |
---|
4382 | |
---|
4383 | |
---|
4384 | # Initialize automake |
---|
4385 | { |
---|
4386 | |
---|
4387 | |
---|
4388 | |
---|
4389 | # START |
---|
4390 | |
---|
4391 | # Test if force_shared has been set |
---|
4392 | if test "x" = xforce_shared; then |
---|
4393 | if test x$enable_shared = xno; then |
---|
4394 | { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 |
---|
4395 | echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} |
---|
4396 | { (exit 1); exit 1; }; } |
---|
4397 | fi |
---|
4398 | enable_shared=yes; |
---|
4399 | else |
---|
4400 | # On Cygwin and AIX, building DLLs doesn't work |
---|
4401 | case $build in |
---|
4402 | *-cygwin*) |
---|
4403 | coin_disable_shared=yes |
---|
4404 | platform=Cygwin |
---|
4405 | ;; |
---|
4406 | *-aix*) |
---|
4407 | coin_disable_shared=yes |
---|
4408 | platform=AIX |
---|
4409 | ;; |
---|
4410 | *-mingw*) |
---|
4411 | coin_disable_shared=yes |
---|
4412 | platform="Msys" |
---|
4413 | # case "$CXX" in |
---|
4414 | # cl*) |
---|
4415 | # coin_disable_shared=yes |
---|
4416 | # platform="Msys with cl" |
---|
4417 | # ;; |
---|
4418 | # esac |
---|
4419 | ;; |
---|
4420 | esac |
---|
4421 | fi |
---|
4422 | if test x"$coin_disable_shared" = xyes; then |
---|
4423 | if test x"$enable_shared" = xyes; then |
---|
4424 | { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5 |
---|
4425 | echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;} |
---|
4426 | fi |
---|
4427 | enable_shared=no |
---|
4428 | fi |
---|
4429 | # By default, we only want the shared objects to be compiled |
---|
4430 | # Check whether --enable-static or --disable-static was given. |
---|
4431 | if test "${enable_static+set}" = set; then |
---|
4432 | enableval="$enable_static" |
---|
4433 | p=${PACKAGE-default} |
---|
4434 | case $enableval in |
---|
4435 | yes) enable_static=yes ;; |
---|
4436 | no) enable_static=no ;; |
---|
4437 | *) |
---|
4438 | enable_static=no |
---|
4439 | # Look at the argument we got. We use all the common list separators. |
---|
4440 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4441 | for pkg in $enableval; do |
---|
4442 | IFS="$lt_save_ifs" |
---|
4443 | if test "X$pkg" = "X$p"; then |
---|
4444 | enable_static=yes |
---|
4445 | fi |
---|
4446 | done |
---|
4447 | IFS="$lt_save_ifs" |
---|
4448 | ;; |
---|
4449 | esac |
---|
4450 | else |
---|
4451 | enable_static=no |
---|
4452 | fi; |
---|
4453 | |
---|
4454 | |
---|
4455 | |
---|
4456 | |
---|
4457 | # Initialize automake |
---|
4458 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
4459 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
4460 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
4461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4462 | else |
---|
4463 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
4464 | then ac_cv_prog_egrep='grep -E' |
---|
4465 | else ac_cv_prog_egrep='egrep' |
---|
4466 | fi |
---|
4467 | fi |
---|
4468 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
4469 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
4470 | EGREP=$ac_cv_prog_egrep |
---|
4471 | |
---|
4472 | |
---|
4473 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
4474 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
4475 | LN_S=$as_ln_s |
---|
4476 | if test "$LN_S" = "ln -s"; then |
---|
4477 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4478 | echo "${ECHO_T}yes" >&6 |
---|
4479 | else |
---|
4480 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
4481 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
4482 | fi |
---|
4483 | |
---|
4484 | am__api_version="1.9" |
---|
4485 | # Find a good install program. We prefer a C program (faster), |
---|
4486 | # so one script is as good as another. But avoid the broken or |
---|
4487 | # incompatible versions: |
---|
4488 | # SysV /etc/install, /usr/sbin/install |
---|
4489 | # SunOS /usr/etc/install |
---|
4490 | # IRIX /sbin/install |
---|
4491 | # AIX /bin/install |
---|
4492 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
4493 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
4494 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
4495 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
4496 | # OS/2's system install, which has a completely different semantic |
---|
4497 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
4498 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
4499 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
4500 | if test -z "$INSTALL"; then |
---|
4501 | if test "${ac_cv_path_install+set}" = set; then |
---|
4502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4503 | else |
---|
4504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4505 | for as_dir in $PATH |
---|
4506 | do |
---|
4507 | IFS=$as_save_IFS |
---|
4508 | test -z "$as_dir" && as_dir=. |
---|
4509 | # Account for people who put trailing slashes in PATH elements. |
---|
4510 | case $as_dir/ in |
---|
4511 | ./ | .// | /cC/* | \ |
---|
4512 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
4513 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
4514 | /usr/ucb/* ) ;; |
---|
4515 | *) |
---|
4516 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
4517 | # Don't use installbsd from OSF since it installs stuff as root |
---|
4518 | # by default. |
---|
4519 | for ac_prog in ginstall scoinst install; do |
---|
4520 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4521 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
4522 | if test $ac_prog = install && |
---|
4523 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
4524 | # AIX install. It has an incompatible calling convention. |
---|
4525 | : |
---|
4526 | elif test $ac_prog = install && |
---|
4527 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
4528 | # program-specific install script used by HP pwplus--don't use. |
---|
4529 | : |
---|
4530 | else |
---|
4531 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
4532 | break 3 |
---|
4533 | fi |
---|
4534 | fi |
---|
4535 | done |
---|
4536 | done |
---|
4537 | ;; |
---|
4538 | esac |
---|
4539 | done |
---|
4540 | |
---|
4541 | |
---|
4542 | fi |
---|
4543 | if test "${ac_cv_path_install+set}" = set; then |
---|
4544 | INSTALL=$ac_cv_path_install |
---|
4545 | else |
---|
4546 | # As a last resort, use the slow shell script. We don't cache a |
---|
4547 | # path for INSTALL within a source directory, because that will |
---|
4548 | # break other packages using the cache if that directory is |
---|
4549 | # removed, or if the path is relative. |
---|
4550 | INSTALL=$ac_install_sh |
---|
4551 | fi |
---|
4552 | fi |
---|
4553 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
4554 | echo "${ECHO_T}$INSTALL" >&6 |
---|
4555 | |
---|
4556 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
4557 | # It thinks the first close brace ends the variable substitution. |
---|
4558 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
4559 | |
---|
4560 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
4561 | |
---|
4562 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
4563 | |
---|
4564 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
4565 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
4566 | # Just in case |
---|
4567 | sleep 1 |
---|
4568 | echo timestamp > conftest.file |
---|
4569 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
4570 | # arguments. Must try -L first in case configure is actually a |
---|
4571 | # symlink; some systems play weird games with the mod time of symlinks |
---|
4572 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
4573 | # directory). |
---|
4574 | if ( |
---|
4575 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
4576 | if test "$*" = "X"; then |
---|
4577 | # -L didn't work. |
---|
4578 | set X `ls -t $srcdir/configure conftest.file` |
---|
4579 | fi |
---|
4580 | rm -f conftest.file |
---|
4581 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
4582 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
4583 | |
---|
4584 | # If neither matched, then we have a broken ls. This can happen |
---|
4585 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
4586 | # broken ls alias from the environment. This has actually |
---|
4587 | # happened. Such a system could not be considered "sane". |
---|
4588 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
4589 | alias in your environment" >&5 |
---|
4590 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
4591 | alias in your environment" >&2;} |
---|
4592 | { (exit 1); exit 1; }; } |
---|
4593 | fi |
---|
4594 | |
---|
4595 | test "$2" = conftest.file |
---|
4596 | ) |
---|
4597 | then |
---|
4598 | # Ok. |
---|
4599 | : |
---|
4600 | else |
---|
4601 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
4602 | Check your system clock" >&5 |
---|
4603 | echo "$as_me: error: newly created file is older than distributed files! |
---|
4604 | Check your system clock" >&2;} |
---|
4605 | { (exit 1); exit 1; }; } |
---|
4606 | fi |
---|
4607 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4608 | echo "${ECHO_T}yes" >&6 |
---|
4609 | test "$program_prefix" != NONE && |
---|
4610 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
4611 | # Use a double $ so make ignores it. |
---|
4612 | test "$program_suffix" != NONE && |
---|
4613 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
4614 | # Double any \ or $. echo might interpret backslashes. |
---|
4615 | # By default was `s,x,x', remove it if useless. |
---|
4616 | cat <<\_ACEOF >conftest.sed |
---|
4617 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
4618 | _ACEOF |
---|
4619 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
4620 | rm conftest.sed |
---|
4621 | |
---|
4622 | # expand $ac_aux_dir to an absolute path |
---|
4623 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
4624 | |
---|
4625 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
4626 | # Use eval to expand $SHELL |
---|
4627 | if eval "$MISSING --run true"; then |
---|
4628 | am_missing_run="$MISSING --run " |
---|
4629 | else |
---|
4630 | am_missing_run= |
---|
4631 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
4632 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
4633 | fi |
---|
4634 | |
---|
4635 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
4636 | # We used to keeping the `.' as first argument, in order to |
---|
4637 | # allow $(mkdir_p) to be used without argument. As in |
---|
4638 | # $(mkdir_p) $(somedir) |
---|
4639 | # where $(somedir) is conditionally defined. However this is wrong |
---|
4640 | # for two reasons: |
---|
4641 | # 1. if the package is installed by a user who cannot write `.' |
---|
4642 | # make install will fail, |
---|
4643 | # 2. the above comment should most certainly read |
---|
4644 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
4645 | # so it does not work when $(somedir) is undefined and |
---|
4646 | # $(DESTDIR) is not. |
---|
4647 | # To support the latter case, we have to write |
---|
4648 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
4649 | # so the `.' trick is pointless. |
---|
4650 | mkdir_p='mkdir -p --' |
---|
4651 | else |
---|
4652 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
4653 | # recognize any option. It will interpret all options as |
---|
4654 | # directories to create, and then abort because `.' already |
---|
4655 | # exists. |
---|
4656 | for d in ./-p ./--version; |
---|
4657 | do |
---|
4658 | test -d $d && rmdir $d |
---|
4659 | done |
---|
4660 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
4661 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
4662 | mkdir_p='$(mkinstalldirs)' |
---|
4663 | else |
---|
4664 | mkdir_p='$(install_sh) -d' |
---|
4665 | fi |
---|
4666 | fi |
---|
4667 | |
---|
4668 | for ac_prog in gawk mawk nawk awk |
---|
4669 | do |
---|
4670 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4671 | set dummy $ac_prog; ac_word=$2 |
---|
4672 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4674 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
4675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4676 | else |
---|
4677 | if test -n "$AWK"; then |
---|
4678 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
4679 | else |
---|
4680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4681 | for as_dir in $PATH |
---|
4682 | do |
---|
4683 | IFS=$as_save_IFS |
---|
4684 | test -z "$as_dir" && as_dir=. |
---|
4685 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4686 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4687 | ac_cv_prog_AWK="$ac_prog" |
---|
4688 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4689 | break 2 |
---|
4690 | fi |
---|
4691 | done |
---|
4692 | done |
---|
4693 | |
---|
4694 | fi |
---|
4695 | fi |
---|
4696 | AWK=$ac_cv_prog_AWK |
---|
4697 | if test -n "$AWK"; then |
---|
4698 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
4699 | echo "${ECHO_T}$AWK" >&6 |
---|
4700 | else |
---|
4701 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4702 | echo "${ECHO_T}no" >&6 |
---|
4703 | fi |
---|
4704 | |
---|
4705 | test -n "$AWK" && break |
---|
4706 | done |
---|
4707 | |
---|
4708 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
4709 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
4710 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
4711 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
4712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4713 | else |
---|
4714 | cat >conftest.make <<\_ACEOF |
---|
4715 | all: |
---|
4716 | @echo 'ac_maketemp="$(MAKE)"' |
---|
4717 | _ACEOF |
---|
4718 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
4719 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
4720 | if test -n "$ac_maketemp"; then |
---|
4721 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
4722 | else |
---|
4723 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
4724 | fi |
---|
4725 | rm -f conftest.make |
---|
4726 | fi |
---|
4727 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
4728 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4729 | echo "${ECHO_T}yes" >&6 |
---|
4730 | SET_MAKE= |
---|
4731 | else |
---|
4732 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4733 | echo "${ECHO_T}no" >&6 |
---|
4734 | SET_MAKE="MAKE=${MAKE-make}" |
---|
4735 | fi |
---|
4736 | |
---|
4737 | rm -rf .tst 2>/dev/null |
---|
4738 | mkdir .tst 2>/dev/null |
---|
4739 | if test -d .tst; then |
---|
4740 | am__leading_dot=. |
---|
4741 | else |
---|
4742 | am__leading_dot=_ |
---|
4743 | fi |
---|
4744 | rmdir .tst 2>/dev/null |
---|
4745 | |
---|
4746 | DEPDIR="${am__leading_dot}deps" |
---|
4747 | |
---|
4748 | ac_config_commands="$ac_config_commands depfiles" |
---|
4749 | |
---|
4750 | |
---|
4751 | am_make=${MAKE-make} |
---|
4752 | cat > confinc << 'END' |
---|
4753 | am__doit: |
---|
4754 | @echo done |
---|
4755 | .PHONY: am__doit |
---|
4756 | END |
---|
4757 | # If we don't find an include directive, just comment out the code. |
---|
4758 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
4759 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
4760 | am__include="#" |
---|
4761 | am__quote= |
---|
4762 | _am_result=none |
---|
4763 | # First try GNU make style include. |
---|
4764 | echo "include confinc" > confmf |
---|
4765 | # We grep out `Entering directory' and `Leaving directory' |
---|
4766 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
4767 | # In particular we don't look at `^make:' because GNU make might |
---|
4768 | # be invoked under some other name (usually "gmake"), in which |
---|
4769 | # case it prints its new name instead of `make'. |
---|
4770 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
4771 | am__include=include |
---|
4772 | am__quote= |
---|
4773 | _am_result=GNU |
---|
4774 | fi |
---|
4775 | # Now try BSD make style include. |
---|
4776 | if test "$am__include" = "#"; then |
---|
4777 | echo '.include "confinc"' > confmf |
---|
4778 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
4779 | am__include=.include |
---|
4780 | am__quote="\"" |
---|
4781 | _am_result=BSD |
---|
4782 | fi |
---|
4783 | fi |
---|
4784 | |
---|
4785 | |
---|
4786 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
4787 | echo "${ECHO_T}$_am_result" >&6 |
---|
4788 | rm -f confinc confmf |
---|
4789 | |
---|
4790 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
4791 | if test "${enable_dependency_tracking+set}" = set; then |
---|
4792 | enableval="$enable_dependency_tracking" |
---|
4793 | |
---|
4794 | fi; |
---|
4795 | if test "x$enable_dependency_tracking" != xno; then |
---|
4796 | am_depcomp="$ac_aux_dir/depcomp" |
---|
4797 | AMDEPBACKSLASH='\' |
---|
4798 | fi |
---|
4799 | |
---|
4800 | |
---|
4801 | if test "x$enable_dependency_tracking" != xno; then |
---|
4802 | AMDEP_TRUE= |
---|
4803 | AMDEP_FALSE='#' |
---|
4804 | else |
---|
4805 | AMDEP_TRUE='#' |
---|
4806 | AMDEP_FALSE= |
---|
4807 | fi |
---|
4808 | |
---|
4809 | |
---|
4810 | |
---|
4811 | |
---|
4812 | |
---|
4813 | |
---|
4814 | # AC_MSG_NOTICE([Beginning automake initialisation.]) |
---|
4815 | # Stuff for automake |
---|
4816 | # test to see if srcdir already configured |
---|
4817 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
4818 | test -f $srcdir/config.status; then |
---|
4819 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
4820 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
4821 | { (exit 1); exit 1; }; } |
---|
4822 | fi |
---|
4823 | |
---|
4824 | # test whether we have cygpath |
---|
4825 | if test -z "$CYGPATH_W"; then |
---|
4826 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
4827 | CYGPATH_W='cygpath -w' |
---|
4828 | else |
---|
4829 | CYGPATH_W=echo |
---|
4830 | fi |
---|
4831 | fi |
---|
4832 | |
---|
4833 | |
---|
4834 | # Define the identity of the package. |
---|
4835 | PACKAGE='thirdpartysoplex' |
---|
4836 | VERSION='trunk' |
---|
4837 | |
---|
4838 | |
---|
4839 | cat >>confdefs.h <<_ACEOF |
---|
4840 | #define PACKAGE "$PACKAGE" |
---|
4841 | _ACEOF |
---|
4842 | |
---|
4843 | |
---|
4844 | cat >>confdefs.h <<_ACEOF |
---|
4845 | #define VERSION "$VERSION" |
---|
4846 | _ACEOF |
---|
4847 | |
---|
4848 | # Some tools Automake needs. |
---|
4849 | |
---|
4850 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
4851 | |
---|
4852 | |
---|
4853 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
4854 | |
---|
4855 | |
---|
4856 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
4857 | |
---|
4858 | |
---|
4859 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
4860 | |
---|
4861 | |
---|
4862 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
4863 | |
---|
4864 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
4865 | |
---|
4866 | # Installed binaries are usually stripped using `strip' when the user |
---|
4867 | # run `make install-strip'. However `strip' might not be the right |
---|
4868 | # tool to use in cross-compilation environments, therefore Automake |
---|
4869 | # will honor the `STRIP' environment variable to overrule this program. |
---|
4870 | if test "$cross_compiling" != no; then |
---|
4871 | if test -n "$ac_tool_prefix"; then |
---|
4872 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
4873 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
4874 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4876 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
4877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4878 | else |
---|
4879 | if test -n "$STRIP"; then |
---|
4880 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
4881 | else |
---|
4882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4883 | for as_dir in $PATH |
---|
4884 | do |
---|
4885 | IFS=$as_save_IFS |
---|
4886 | test -z "$as_dir" && as_dir=. |
---|
4887 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4888 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4889 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
4890 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4891 | break 2 |
---|
4892 | fi |
---|
4893 | done |
---|
4894 | done |
---|
4895 | |
---|
4896 | fi |
---|
4897 | fi |
---|
4898 | STRIP=$ac_cv_prog_STRIP |
---|
4899 | if test -n "$STRIP"; then |
---|
4900 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
4901 | echo "${ECHO_T}$STRIP" >&6 |
---|
4902 | else |
---|
4903 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4904 | echo "${ECHO_T}no" >&6 |
---|
4905 | fi |
---|
4906 | |
---|
4907 | fi |
---|
4908 | if test -z "$ac_cv_prog_STRIP"; then |
---|
4909 | ac_ct_STRIP=$STRIP |
---|
4910 | # Extract the first word of "strip", so it can be a program name with args. |
---|
4911 | set dummy strip; ac_word=$2 |
---|
4912 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4914 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
4915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4916 | else |
---|
4917 | if test -n "$ac_ct_STRIP"; then |
---|
4918 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
4919 | else |
---|
4920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4921 | for as_dir in $PATH |
---|
4922 | do |
---|
4923 | IFS=$as_save_IFS |
---|
4924 | test -z "$as_dir" && as_dir=. |
---|
4925 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4926 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4927 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
4928 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4929 | break 2 |
---|
4930 | fi |
---|
4931 | done |
---|
4932 | done |
---|
4933 | |
---|
4934 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
4935 | fi |
---|
4936 | fi |
---|
4937 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
4938 | if test -n "$ac_ct_STRIP"; then |
---|
4939 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
4940 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
4941 | else |
---|
4942 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4943 | echo "${ECHO_T}no" >&6 |
---|
4944 | fi |
---|
4945 | |
---|
4946 | STRIP=$ac_ct_STRIP |
---|
4947 | else |
---|
4948 | STRIP="$ac_cv_prog_STRIP" |
---|
4949 | fi |
---|
4950 | |
---|
4951 | fi |
---|
4952 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
4953 | |
---|
4954 | # We need awk for the "check" target. The system "awk" is bad on |
---|
4955 | # some platforms. |
---|
4956 | # Always define AMTAR for backward compatibility. |
---|
4957 | |
---|
4958 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
4959 | |
---|
4960 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
4961 | |
---|
4962 | |
---|
4963 | |
---|
4964 | |
---|
4965 | depcc="$CC" am_compiler_list= |
---|
4966 | |
---|
4967 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
4968 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
4969 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
4970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4971 | else |
---|
4972 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4973 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4974 | # making bogus files that we don't know about and never remove. For |
---|
4975 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4976 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
4977 | # in D'. |
---|
4978 | mkdir conftest.dir |
---|
4979 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4980 | # using a relative directory. |
---|
4981 | cp "$am_depcomp" conftest.dir |
---|
4982 | cd conftest.dir |
---|
4983 | # We will build objects and dependencies in a subdirectory because |
---|
4984 | # it helps to detect inapplicable dependency modes. For instance |
---|
4985 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4986 | # side effect of compilation, but ICC will put the dependencies in |
---|
4987 | # the current directory while Tru64 will put them in the object |
---|
4988 | # directory. |
---|
4989 | mkdir sub |
---|
4990 | |
---|
4991 | am_cv_CC_dependencies_compiler_type=none |
---|
4992 | if test "$am_compiler_list" = ""; then |
---|
4993 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4994 | fi |
---|
4995 | for depmode in $am_compiler_list; do |
---|
4996 | # Setup a source with many dependencies, because some compilers |
---|
4997 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4998 | # we should not choose a depcomp mode which is confused by this. |
---|
4999 | # |
---|
5000 | # We need to recreate these files for each test, as the compiler may |
---|
5001 | # overwrite some of them when testing with obscure command lines. |
---|
5002 | # This happens at least with the AIX C compiler. |
---|
5003 | : > sub/conftest.c |
---|
5004 | for i in 1 2 3 4 5 6; do |
---|
5005 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
5006 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
5007 | # Solaris 8's {/usr,}/bin/sh. |
---|
5008 | touch sub/conftst$i.h |
---|
5009 | done |
---|
5010 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
5011 | |
---|
5012 | case $depmode in |
---|
5013 | nosideeffect) |
---|
5014 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
5015 | # only be used when explicitly requested |
---|
5016 | if test "x$enable_dependency_tracking" = xyes; then |
---|
5017 | continue |
---|
5018 | else |
---|
5019 | break |
---|
5020 | fi |
---|
5021 | ;; |
---|
5022 | none) break ;; |
---|
5023 | esac |
---|
5024 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
5025 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
5026 | # handle `-M -o', and we need to detect this. |
---|
5027 | if depmode=$depmode \ |
---|
5028 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
5029 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
5030 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
5031 | >/dev/null 2>conftest.err && |
---|
5032 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
5033 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
5034 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
5035 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
5036 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
5037 | # that says an option was ignored or not supported. |
---|
5038 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
5039 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
5040 | # The diagnosis changed in icc 8.0: |
---|
5041 | # icc: Command line remark: option '-MP' not supported |
---|
5042 | if (grep 'ignoring option' conftest.err || |
---|
5043 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
5044 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
5045 | break |
---|
5046 | fi |
---|
5047 | fi |
---|
5048 | done |
---|
5049 | |
---|
5050 | cd .. |
---|
5051 | rm -rf conftest.dir |
---|
5052 | else |
---|
5053 | am_cv_CC_dependencies_compiler_type=none |
---|
5054 | fi |
---|
5055 | |
---|
5056 | fi |
---|
5057 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
5058 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
5059 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
5060 | |
---|
5061 | |
---|
5062 | |
---|
5063 | if |
---|
5064 | test "x$enable_dependency_tracking" != xno \ |
---|
5065 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
5066 | am__fastdepCC_TRUE= |
---|
5067 | am__fastdepCC_FALSE='#' |
---|
5068 | else |
---|
5069 | am__fastdepCC_TRUE='#' |
---|
5070 | am__fastdepCC_FALSE= |
---|
5071 | fi |
---|
5072 | |
---|
5073 | |
---|
5074 | depcc="$CXX" am_compiler_list= |
---|
5075 | |
---|
5076 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
5077 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
5078 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
5079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5080 | else |
---|
5081 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
5082 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
5083 | # making bogus files that we don't know about and never remove. For |
---|
5084 | # instance it was reported that on HP-UX the gcc test will end up |
---|
5085 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
5086 | # in D'. |
---|
5087 | mkdir conftest.dir |
---|
5088 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
5089 | # using a relative directory. |
---|
5090 | cp "$am_depcomp" conftest.dir |
---|
5091 | cd conftest.dir |
---|
5092 | # We will build objects and dependencies in a subdirectory because |
---|
5093 | # it helps to detect inapplicable dependency modes. For instance |
---|
5094 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
5095 | # side effect of compilation, but ICC will put the dependencies in |
---|
5096 | # the current directory while Tru64 will put them in the object |
---|
5097 | # directory. |
---|
5098 | mkdir sub |
---|
5099 | |
---|
5100 | am_cv_CXX_dependencies_compiler_type=none |
---|
5101 | if test "$am_compiler_list" = ""; then |
---|
5102 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
5103 | fi |
---|
5104 | for depmode in $am_compiler_list; do |
---|
5105 | # Setup a source with many dependencies, because some compilers |
---|
5106 | # like to wrap large dependency lists on column 80 (with \), and |
---|
5107 | # we should not choose a depcomp mode which is confused by this. |
---|
5108 | # |
---|
5109 | # We need to recreate these files for each test, as the compiler may |
---|
5110 | # overwrite some of them when testing with obscure command lines. |
---|
5111 | # This happens at least with the AIX C compiler. |
---|
5112 | : > sub/conftest.c |
---|
5113 | for i in 1 2 3 4 5 6; do |
---|
5114 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
5115 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
5116 | # Solaris 8's {/usr,}/bin/sh. |
---|
5117 | touch sub/conftst$i.h |
---|
5118 | done |
---|
5119 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
5120 | |
---|
5121 | case $depmode in |
---|
5122 | nosideeffect) |
---|
5123 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
5124 | # only be used when explicitly requested |
---|
5125 | if test "x$enable_dependency_tracking" = xyes; then |
---|
5126 | continue |
---|
5127 | else |
---|
5128 | break |
---|
5129 | fi |
---|
5130 | ;; |
---|
5131 | none) break ;; |
---|
5132 | esac |
---|
5133 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
5134 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
5135 | # handle `-M -o', and we need to detect this. |
---|
5136 | if depmode=$depmode \ |
---|
5137 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
5138 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
5139 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
5140 | >/dev/null 2>conftest.err && |
---|
5141 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
5142 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
5143 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
5144 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
5145 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
5146 | # that says an option was ignored or not supported. |
---|
5147 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
5148 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
5149 | # The diagnosis changed in icc 8.0: |
---|
5150 | # icc: Command line remark: option '-MP' not supported |
---|
5151 | if (grep 'ignoring option' conftest.err || |
---|
5152 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
5153 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
5154 | break |
---|
5155 | fi |
---|
5156 | fi |
---|
5157 | done |
---|
5158 | |
---|
5159 | cd .. |
---|
5160 | rm -rf conftest.dir |
---|
5161 | else |
---|
5162 | am_cv_CXX_dependencies_compiler_type=none |
---|
5163 | fi |
---|
5164 | |
---|
5165 | fi |
---|
5166 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
5167 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
5168 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
5169 | |
---|
5170 | |
---|
5171 | |
---|
5172 | if |
---|
5173 | test "x$enable_dependency_tracking" != xno \ |
---|
5174 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
5175 | am__fastdepCXX_TRUE= |
---|
5176 | am__fastdepCXX_FALSE='#' |
---|
5177 | else |
---|
5178 | am__fastdepCXX_TRUE='#' |
---|
5179 | am__fastdepCXX_FALSE= |
---|
5180 | fi |
---|
5181 | |
---|
5182 | |
---|
5183 | |
---|
5184 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
5185 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
---|
5186 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
5187 | if test "${enable_maintainer_mode+set}" = set; then |
---|
5188 | enableval="$enable_maintainer_mode" |
---|
5189 | USE_MAINTAINER_MODE=$enableval |
---|
5190 | else |
---|
5191 | USE_MAINTAINER_MODE=no |
---|
5192 | fi; |
---|
5193 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
---|
5194 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
---|
5195 | |
---|
5196 | |
---|
5197 | if test $USE_MAINTAINER_MODE = yes; then |
---|
5198 | MAINTAINER_MODE_TRUE= |
---|
5199 | MAINTAINER_MODE_FALSE='#' |
---|
5200 | else |
---|
5201 | MAINTAINER_MODE_TRUE='#' |
---|
5202 | MAINTAINER_MODE_FALSE= |
---|
5203 | fi |
---|
5204 | |
---|
5205 | MAINT=$MAINTAINER_MODE_TRUE |
---|
5206 | |
---|
5207 | |
---|
5208 | |
---|
5209 | coin_have_externals=no |
---|
5210 | if test "$enable_maintainer_mode" = yes; then |
---|
5211 | |
---|
5212 | # If maintainer mode is chosen, we make sure that the correct versions |
---|
5213 | # of the tools are used, and that we know where libtool.m4 is (to |
---|
5214 | # recreate acinclude.m4) |
---|
5215 | |
---|
5216 | |
---|
5217 | LIBTOOLM4= |
---|
5218 | # Normally, $HOME |
---|
5219 | AUTOTOOLS_DFLT=$HOME |
---|
5220 | |
---|
5221 | echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 |
---|
5222 | echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 |
---|
5223 | if test "${ac_cv_use_correct_autotools+set}" = set; then |
---|
5224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5225 | else |
---|
5226 | ac_cv_use_correct_autotools=check |
---|
5227 | fi |
---|
5228 | echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 |
---|
5229 | echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 |
---|
5230 | |
---|
5231 | if test $ac_cv_use_correct_autotools = check; then |
---|
5232 | ac_cv_use_correct_autotools=yes |
---|
5233 | # Check if we have autoconf |
---|
5234 | # Extract the first word of "autoconf", so it can be a program name with args. |
---|
5235 | set dummy autoconf; ac_word=$2 |
---|
5236 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5237 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5238 | if test "${ac_cv_prog_have_autoconf+set}" = set; then |
---|
5239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5240 | else |
---|
5241 | if test -n "$have_autoconf"; then |
---|
5242 | ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. |
---|
5243 | else |
---|
5244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5245 | for as_dir in $PATH |
---|
5246 | do |
---|
5247 | IFS=$as_save_IFS |
---|
5248 | test -z "$as_dir" && as_dir=. |
---|
5249 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5250 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5251 | ac_cv_prog_have_autoconf="yes" |
---|
5252 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5253 | break 2 |
---|
5254 | fi |
---|
5255 | done |
---|
5256 | done |
---|
5257 | |
---|
5258 | test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" |
---|
5259 | fi |
---|
5260 | fi |
---|
5261 | have_autoconf=$ac_cv_prog_have_autoconf |
---|
5262 | if test -n "$have_autoconf"; then |
---|
5263 | echo "$as_me:$LINENO: result: $have_autoconf" >&5 |
---|
5264 | echo "${ECHO_T}$have_autoconf" >&6 |
---|
5265 | else |
---|
5266 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5267 | echo "${ECHO_T}no" >&6 |
---|
5268 | fi |
---|
5269 | |
---|
5270 | if test $have_autoconf = no; then |
---|
5271 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 |
---|
5272 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} |
---|
5273 | { (exit 1); exit 1; }; } |
---|
5274 | fi |
---|
5275 | |
---|
5276 | # Check whether autoconf is the correct version |
---|
5277 | correct_version='2.59' |
---|
5278 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
5279 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 |
---|
5280 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 |
---|
5281 | autoconf --version > confauto.out 2>&1 |
---|
5282 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
5283 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5284 | echo "${ECHO_T}yes" >&6 |
---|
5285 | else |
---|
5286 | rm -f confauto.out |
---|
5287 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5288 | echo "${ECHO_T}no" >&6 |
---|
5289 | { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 |
---|
5290 | echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} |
---|
5291 | { (exit 1); exit 1; }; } |
---|
5292 | fi |
---|
5293 | rm -f confauto.out |
---|
5294 | |
---|
5295 | # Check if the executable autoconf is picked up from the correct location |
---|
5296 | echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 |
---|
5297 | echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 |
---|
5298 | autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` |
---|
5299 | autoconf_dir=`cd $autoconf_dir; pwd` |
---|
5300 | if test x$AUTOTOOLS_DIR = x; then |
---|
5301 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
5302 | else |
---|
5303 | want_dir=$AUTOTOOLS_DIR/bin |
---|
5304 | fi |
---|
5305 | if test $autoconf_dir = `cd $want_dir; pwd`; then |
---|
5306 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5307 | echo "${ECHO_T}yes" >&6 |
---|
5308 | else |
---|
5309 | rm -f confauto.out |
---|
5310 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5311 | echo "${ECHO_T}no" >&6 |
---|
5312 | { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
5313 | echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
5314 | { (exit 1); exit 1; }; } |
---|
5315 | fi |
---|
5316 | |
---|
5317 | # Check if we have automake |
---|
5318 | # Extract the first word of "automake", so it can be a program name with args. |
---|
5319 | set dummy automake; ac_word=$2 |
---|
5320 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5321 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5322 | if test "${ac_cv_prog_have_automake+set}" = set; then |
---|
5323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5324 | else |
---|
5325 | if test -n "$have_automake"; then |
---|
5326 | ac_cv_prog_have_automake="$have_automake" # Let the user override the test. |
---|
5327 | else |
---|
5328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5329 | for as_dir in $PATH |
---|
5330 | do |
---|
5331 | IFS=$as_save_IFS |
---|
5332 | test -z "$as_dir" && as_dir=. |
---|
5333 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5334 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5335 | ac_cv_prog_have_automake="yes" |
---|
5336 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5337 | break 2 |
---|
5338 | fi |
---|
5339 | done |
---|
5340 | done |
---|
5341 | |
---|
5342 | test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" |
---|
5343 | fi |
---|
5344 | fi |
---|
5345 | have_automake=$ac_cv_prog_have_automake |
---|
5346 | if test -n "$have_automake"; then |
---|
5347 | echo "$as_me:$LINENO: result: $have_automake" >&5 |
---|
5348 | echo "${ECHO_T}$have_automake" >&6 |
---|
5349 | else |
---|
5350 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5351 | echo "${ECHO_T}no" >&6 |
---|
5352 | fi |
---|
5353 | |
---|
5354 | if test $have_automake = no; then |
---|
5355 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 |
---|
5356 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} |
---|
5357 | { (exit 1); exit 1; }; } |
---|
5358 | fi |
---|
5359 | |
---|
5360 | # Check whether automake is the correct version |
---|
5361 | correct_version='1.9.6' |
---|
5362 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
5363 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 |
---|
5364 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 |
---|
5365 | automake --version > confauto.out 2>&1 |
---|
5366 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
5367 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5368 | echo "${ECHO_T}yes" >&6 |
---|
5369 | else |
---|
5370 | rm -f confauto.out |
---|
5371 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5372 | echo "${ECHO_T}no" >&6 |
---|
5373 | { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 |
---|
5374 | echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} |
---|
5375 | { (exit 1); exit 1; }; } |
---|
5376 | fi |
---|
5377 | rm -f confauto.out |
---|
5378 | |
---|
5379 | # Check if the executable automake is picked up from the correct location |
---|
5380 | echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 |
---|
5381 | echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 |
---|
5382 | automake_dir=`which automake | sed -e 's=/automake=='` |
---|
5383 | automake_dir=`cd $automake_dir; pwd` |
---|
5384 | if test x$AUTOTOOLS_DIR = x; then |
---|
5385 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
5386 | else |
---|
5387 | want_dir=$AUTOTOOLS_DIR/bin |
---|
5388 | fi |
---|
5389 | if test $automake_dir = `cd $want_dir; pwd`; then |
---|
5390 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5391 | echo "${ECHO_T}yes" >&6 |
---|
5392 | else |
---|
5393 | rm -f confauto.out |
---|
5394 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5395 | echo "${ECHO_T}no" >&6 |
---|
5396 | { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
5397 | echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
5398 | { (exit 1); exit 1; }; } |
---|
5399 | fi |
---|
5400 | |
---|
5401 | # Check if this is the correct version of libtool (with escaped dots) |
---|
5402 | if test x$AUTOTOOLS_DIR = x; then |
---|
5403 | want_dir=$AUTOTOOLS_DFLT/share |
---|
5404 | else |
---|
5405 | want_dir=$AUTOTOOLS_DIR/share |
---|
5406 | fi |
---|
5407 | correct_version='1.5.22' |
---|
5408 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
5409 | if test -r $want_dir/libtool/ltmain.sh; then |
---|
5410 | have_ltmain=yes |
---|
5411 | : |
---|
5412 | else |
---|
5413 | have_ltmain=no |
---|
5414 | : |
---|
5415 | fi |
---|
5416 | |
---|
5417 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 |
---|
5418 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 |
---|
5419 | if test $have_ltmain = yes; then |
---|
5420 | if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then |
---|
5421 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5422 | echo "${ECHO_T}yes" >&6 |
---|
5423 | else |
---|
5424 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5425 | echo "${ECHO_T}no" >&6 |
---|
5426 | { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 |
---|
5427 | echo "$as_me: error: You don't have the correct version of libtool." >&2;} |
---|
5428 | { (exit 1); exit 1; }; } |
---|
5429 | fi |
---|
5430 | else |
---|
5431 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5432 | echo "${ECHO_T}no" >&6 |
---|
5433 | { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 |
---|
5434 | echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} |
---|
5435 | { (exit 1); exit 1; }; } |
---|
5436 | fi |
---|
5437 | fi |
---|
5438 | |
---|
5439 | # Check if we can find the libtool file |
---|
5440 | if test x$AUTOTOOLS_DIR = x; then |
---|
5441 | want_dir=$AUTOTOOLS_DFLT/share |
---|
5442 | else |
---|
5443 | want_dir=$AUTOTOOLS_DIR/share |
---|
5444 | fi |
---|
5445 | if test -r $want_dir/aclocal/libtool.m4; then |
---|
5446 | LIBTOOLM4="$want_dir/aclocal/libtool.m4" |
---|
5447 | : |
---|
5448 | else |
---|
5449 | { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 |
---|
5450 | echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} |
---|
5451 | { (exit 1); exit 1; }; } |
---|
5452 | : |
---|
5453 | fi |
---|
5454 | |
---|
5455 | |
---|
5456 | # Check if we have an Dependencies file |
---|
5457 | if test -r $srcdir/Dependencies; then |
---|
5458 | coin_have_externals=yes |
---|
5459 | fi |
---|
5460 | # Check if subversion is installed and understands https |
---|
5461 | # Extract the first word of "svn", so it can be a program name with args. |
---|
5462 | set dummy svn; ac_word=$2 |
---|
5463 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5465 | if test "${ac_cv_prog_have_svn+set}" = set; then |
---|
5466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5467 | else |
---|
5468 | if test -n "$have_svn"; then |
---|
5469 | ac_cv_prog_have_svn="$have_svn" # Let the user override the test. |
---|
5470 | else |
---|
5471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5472 | for as_dir in $PATH |
---|
5473 | do |
---|
5474 | IFS=$as_save_IFS |
---|
5475 | test -z "$as_dir" && as_dir=. |
---|
5476 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5477 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5478 | ac_cv_prog_have_svn="yes" |
---|
5479 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5480 | break 2 |
---|
5481 | fi |
---|
5482 | done |
---|
5483 | done |
---|
5484 | |
---|
5485 | test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" |
---|
5486 | fi |
---|
5487 | fi |
---|
5488 | have_svn=$ac_cv_prog_have_svn |
---|
5489 | if test -n "$have_svn"; then |
---|
5490 | echo "$as_me:$LINENO: result: $have_svn" >&5 |
---|
5491 | echo "${ECHO_T}$have_svn" >&6 |
---|
5492 | else |
---|
5493 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5494 | echo "${ECHO_T}no" >&6 |
---|
5495 | fi |
---|
5496 | |
---|
5497 | if test x$have_svn = xyes; then |
---|
5498 | echo "$as_me:$LINENO: checking whether svn understands https" >&5 |
---|
5499 | echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 |
---|
5500 | if test "${ac_cv_svn_understands_https+set}" = set; then |
---|
5501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5502 | else |
---|
5503 | svn --version > confauto.out 2>&1 |
---|
5504 | if $EGREP https confauto.out >/dev/null 2>&1; then |
---|
5505 | ac_cv_svn_understands_https=yes |
---|
5506 | else |
---|
5507 | ac_cv_svn_understands_https=no |
---|
5508 | have_svn=no |
---|
5509 | ac_cv_prog_have_svn=no |
---|
5510 | fi |
---|
5511 | rm -f confauto.out |
---|
5512 | fi |
---|
5513 | echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 |
---|
5514 | echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 |
---|
5515 | fi |
---|
5516 | |
---|
5517 | # Find the location of the BuildTools directory |
---|
5518 | BUILDTOOLSDIR= |
---|
5519 | if test -r $srcdir/BuildTools/coin.m4; then |
---|
5520 | BUILDTOOLSDIR=$srcdir/BuildTools |
---|
5521 | else |
---|
5522 | if test -r $srcdir/../BuildTools/coin.m4; then |
---|
5523 | BUILDTOOLSDIR=$srcdir/../BuildTools |
---|
5524 | else |
---|
5525 | if test -r $srcdir/../../BuildTools/coin.m4; then |
---|
5526 | BUILDTOOLSDIR=$srcdir/../../BuildTools |
---|
5527 | else |
---|
5528 | { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 |
---|
5529 | echo "$as_me: error: Cannot find the BuildTools directory" >&2;} |
---|
5530 | { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; } |
---|
5531 | fi |
---|
5532 | fi |
---|
5533 | fi |
---|
5534 | |
---|
5535 | |
---|
5536 | # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools |
---|
5537 | if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then |
---|
5538 | $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools" |
---|
5539 | fi |
---|
5540 | |
---|
5541 | # The following variable is set to the name of the directory where |
---|
5542 | # the autotool scripts are located |
---|
5543 | |
---|
5544 | AUX_DIR=$ac_aux_dir |
---|
5545 | fi |
---|
5546 | |
---|
5547 | # helpful variable for the base directory of this package |
---|
5548 | abs_source_dir=`cd $srcdir; pwd` |
---|
5549 | |
---|
5550 | |
---|
5551 | # Stuff for example Makefiles |
---|
5552 | if test x$prefix = xNONE; then |
---|
5553 | full_prefix=$ac_default_prefix |
---|
5554 | else |
---|
5555 | full_prefix=$prefix |
---|
5556 | fi |
---|
5557 | full_prefix=`cd $full_prefix ; pwd` |
---|
5558 | |
---|
5559 | abs_lib_dir=$full_prefix/lib |
---|
5560 | |
---|
5561 | abs_include_dir=$full_prefix/include |
---|
5562 | |
---|
5563 | abs_bin_dir=$full_prefix/bin |
---|
5564 | |
---|
5565 | |
---|
5566 | |
---|
5567 | if test $coin_have_externals = yes && test x$have_svn = xyes; then |
---|
5568 | HAVE_EXTERNALS_TRUE= |
---|
5569 | HAVE_EXTERNALS_FALSE='#' |
---|
5570 | else |
---|
5571 | HAVE_EXTERNALS_TRUE='#' |
---|
5572 | HAVE_EXTERNALS_FALSE= |
---|
5573 | fi |
---|
5574 | |
---|
5575 | |
---|
5576 | # AC_MSG_NOTICE([End automake initialisation.]) |
---|
5577 | |
---|
5578 | |
---|
5579 | |
---|
5580 | LIBTOOL= |
---|
5581 | if test -r ../libtool; then |
---|
5582 | coin_config_dir=.. |
---|
5583 | LIBTOOL='$(SHELL) $(top_builddir)/../libtool' |
---|
5584 | fi |
---|
5585 | if test "x$LIBTOOL" = x; then |
---|
5586 | if test -r ../../libtool; then |
---|
5587 | coin_config_dir=../.. |
---|
5588 | LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' |
---|
5589 | fi |
---|
5590 | fi |
---|
5591 | |
---|
5592 | if test "x$LIBTOOL" = x; then |
---|
5593 | # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) |
---|
5594 | # Stuff for libtool |
---|
5595 | # Check whether --enable-shared or --disable-shared was given. |
---|
5596 | if test "${enable_shared+set}" = set; then |
---|
5597 | enableval="$enable_shared" |
---|
5598 | p=${PACKAGE-default} |
---|
5599 | case $enableval in |
---|
5600 | yes) enable_shared=yes ;; |
---|
5601 | no) enable_shared=no ;; |
---|
5602 | *) |
---|
5603 | enable_shared=no |
---|
5604 | # Look at the argument we got. We use all the common list separators. |
---|
5605 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
5606 | for pkg in $enableval; do |
---|
5607 | IFS="$lt_save_ifs" |
---|
5608 | if test "X$pkg" = "X$p"; then |
---|
5609 | enable_shared=yes |
---|
5610 | fi |
---|
5611 | done |
---|
5612 | IFS="$lt_save_ifs" |
---|
5613 | ;; |
---|
5614 | esac |
---|
5615 | else |
---|
5616 | enable_shared=yes |
---|
5617 | fi; |
---|
5618 | |
---|
5619 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
5620 | if test "${enable_fast_install+set}" = set; then |
---|
5621 | enableval="$enable_fast_install" |
---|
5622 | p=${PACKAGE-default} |
---|
5623 | case $enableval in |
---|
5624 | yes) enable_fast_install=yes ;; |
---|
5625 | no) enable_fast_install=no ;; |
---|
5626 | *) |
---|
5627 | enable_fast_install=no |
---|
5628 | # Look at the argument we got. We use all the common list separators. |
---|
5629 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
5630 | for pkg in $enableval; do |
---|
5631 | IFS="$lt_save_ifs" |
---|
5632 | if test "X$pkg" = "X$p"; then |
---|
5633 | enable_fast_install=yes |
---|
5634 | fi |
---|
5635 | done |
---|
5636 | IFS="$lt_save_ifs" |
---|
5637 | ;; |
---|
5638 | esac |
---|
5639 | else |
---|
5640 | enable_fast_install=yes |
---|
5641 | fi; |
---|
5642 | |
---|
5643 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
5644 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
5645 | if test "${ac_cv_host+set}" = set; then |
---|
5646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5647 | else |
---|
5648 | ac_cv_host_alias=$host_alias |
---|
5649 | test -z "$ac_cv_host_alias" && |
---|
5650 | ac_cv_host_alias=$ac_cv_build_alias |
---|
5651 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
5652 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
5653 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
5654 | { (exit 1); exit 1; }; } |
---|
5655 | |
---|
5656 | fi |
---|
5657 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
5658 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
5659 | host=$ac_cv_host |
---|
5660 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
5661 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
5662 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
5663 | |
---|
5664 | |
---|
5665 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
---|
5666 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
---|
5667 | if test "${lt_cv_path_SED+set}" = set; then |
---|
5668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5669 | else |
---|
5670 | # Loop through the user's path and test for sed and gsed. |
---|
5671 | # Then use that list of sed's as ones to test for truncation. |
---|
5672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5673 | for as_dir in $PATH |
---|
5674 | do |
---|
5675 | IFS=$as_save_IFS |
---|
5676 | test -z "$as_dir" && as_dir=. |
---|
5677 | for lt_ac_prog in sed gsed; do |
---|
5678 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5679 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
---|
5680 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
---|
5681 | fi |
---|
5682 | done |
---|
5683 | done |
---|
5684 | done |
---|
5685 | lt_ac_max=0 |
---|
5686 | lt_ac_count=0 |
---|
5687 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
---|
5688 | # along with /bin/sed that truncates output. |
---|
5689 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
---|
5690 | test ! -f $lt_ac_sed && continue |
---|
5691 | cat /dev/null > conftest.in |
---|
5692 | lt_ac_count=0 |
---|
5693 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
---|
5694 | # Check for GNU sed and select it if it is found. |
---|
5695 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
---|
5696 | lt_cv_path_SED=$lt_ac_sed |
---|
5697 | break |
---|
5698 | fi |
---|
5699 | while true; do |
---|
5700 | cat conftest.in conftest.in >conftest.tmp |
---|
5701 | mv conftest.tmp conftest.in |
---|
5702 | cp conftest.in conftest.nl |
---|
5703 | echo >>conftest.nl |
---|
5704 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
---|
5705 | cmp -s conftest.out conftest.nl || break |
---|
5706 | # 10000 chars as input seems more than enough |
---|
5707 | test $lt_ac_count -gt 10 && break |
---|
5708 | lt_ac_count=`expr $lt_ac_count + 1` |
---|
5709 | if test $lt_ac_count -gt $lt_ac_max; then |
---|
5710 | lt_ac_max=$lt_ac_count |
---|
5711 | lt_cv_path_SED=$lt_ac_sed |
---|
5712 | fi |
---|
5713 | done |
---|
5714 | done |
---|
5715 | |
---|
5716 | fi |
---|
5717 | |
---|
5718 | SED=$lt_cv_path_SED |
---|
5719 | echo "$as_me:$LINENO: result: $SED" >&5 |
---|
5720 | echo "${ECHO_T}$SED" >&6 |
---|
5721 | |
---|
5722 | |
---|
5723 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
5724 | if test "${with_gnu_ld+set}" = set; then |
---|
5725 | withval="$with_gnu_ld" |
---|
5726 | test "$withval" = no || with_gnu_ld=yes |
---|
5727 | else |
---|
5728 | with_gnu_ld=no |
---|
5729 | fi; |
---|
5730 | ac_prog=ld |
---|
5731 | if test "$GCC" = yes; then |
---|
5732 | # Check if gcc -print-prog-name=ld gives a path. |
---|
5733 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
5734 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
---|
5735 | case $host in |
---|
5736 | *-*-mingw*) |
---|
5737 | # gcc leaves a trailing carriage return which upsets mingw |
---|
5738 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
5739 | *) |
---|
5740 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
5741 | esac |
---|
5742 | case $ac_prog in |
---|
5743 | # Accept absolute paths. |
---|
5744 | [\\/]* | ?:[\\/]*) |
---|
5745 | re_direlt='/[^/][^/]*/\.\./' |
---|
5746 | # Canonicalize the pathname of ld |
---|
5747 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
5748 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
5749 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
5750 | done |
---|
5751 | test -z "$LD" && LD="$ac_prog" |
---|
5752 | ;; |
---|
5753 | "") |
---|
5754 | # If it fails, then pretend we aren't using GCC. |
---|
5755 | ac_prog=ld |
---|
5756 | ;; |
---|
5757 | *) |
---|
5758 | # If it is relative, then search for the first ld in PATH. |
---|
5759 | with_gnu_ld=unknown |
---|
5760 | ;; |
---|
5761 | esac |
---|
5762 | elif test "$with_gnu_ld" = yes; then |
---|
5763 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
5764 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
5765 | else |
---|
5766 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
5767 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
5768 | fi |
---|
5769 | if test "${lt_cv_path_LD+set}" = set; then |
---|
5770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5771 | else |
---|
5772 | if test -z "$LD"; then |
---|
5773 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
5774 | for ac_dir in $PATH; do |
---|
5775 | IFS="$lt_save_ifs" |
---|
5776 | test -z "$ac_dir" && ac_dir=. |
---|
5777 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
5778 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
5779 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
5780 | # but apparently some variants of GNU ld only accept -v. |
---|
5781 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
5782 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
5783 | *GNU* | *'with BFD'*) |
---|
5784 | test "$with_gnu_ld" != no && break |
---|
5785 | ;; |
---|
5786 | *) |
---|
5787 | test "$with_gnu_ld" != yes && break |
---|
5788 | ;; |
---|
5789 | esac |
---|
5790 | fi |
---|
5791 | done |
---|
5792 | IFS="$lt_save_ifs" |
---|
5793 | else |
---|
5794 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
5795 | fi |
---|
5796 | fi |
---|
5797 | |
---|
5798 | LD="$lt_cv_path_LD" |
---|
5799 | if test -n "$LD"; then |
---|
5800 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
5801 | echo "${ECHO_T}$LD" >&6 |
---|
5802 | else |
---|
5803 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5804 | echo "${ECHO_T}no" >&6 |
---|
5805 | fi |
---|
5806 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
5807 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
5808 | { (exit 1); exit 1; }; } |
---|
5809 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
5810 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
5811 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
5812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5813 | else |
---|
5814 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
5815 | case `$LD -v 2>&1 </dev/null` in |
---|
5816 | *GNU* | *'with BFD'*) |
---|
5817 | lt_cv_prog_gnu_ld=yes |
---|
5818 | ;; |
---|
5819 | *) |
---|
5820 | lt_cv_prog_gnu_ld=no |
---|
5821 | ;; |
---|
5822 | esac |
---|
5823 | fi |
---|
5824 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
5825 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
5826 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
5827 | |
---|
5828 | |
---|
5829 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
---|
5830 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
---|
5831 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
---|
5832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5833 | else |
---|
5834 | lt_cv_ld_reload_flag='-r' |
---|
5835 | fi |
---|
5836 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
---|
5837 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
---|
5838 | reload_flag=$lt_cv_ld_reload_flag |
---|
5839 | case $reload_flag in |
---|
5840 | "" | " "*) ;; |
---|
5841 | *) reload_flag=" $reload_flag" ;; |
---|
5842 | esac |
---|
5843 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
5844 | case $host_os in |
---|
5845 | darwin*) |
---|
5846 | if test "$GCC" = yes; then |
---|
5847 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
---|
5848 | else |
---|
5849 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
5850 | fi |
---|
5851 | ;; |
---|
5852 | esac |
---|
5853 | |
---|
5854 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
---|
5855 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
---|
5856 | if test "${lt_cv_path_NM+set}" = set; then |
---|
5857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5858 | else |
---|
5859 | if test -n "$NM"; then |
---|
5860 | # Let the user override the test. |
---|
5861 | lt_cv_path_NM="$NM" |
---|
5862 | else |
---|
5863 | lt_nm_to_check="${ac_tool_prefix}nm" |
---|
5864 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
---|
5865 | lt_nm_to_check="$lt_nm_to_check nm" |
---|
5866 | fi |
---|
5867 | for lt_tmp_nm in $lt_nm_to_check; do |
---|
5868 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
5869 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
---|
5870 | IFS="$lt_save_ifs" |
---|
5871 | test -z "$ac_dir" && ac_dir=. |
---|
5872 | tmp_nm="$ac_dir/$lt_tmp_nm" |
---|
5873 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
5874 | # Check to see if the nm accepts a BSD-compat flag. |
---|
5875 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
5876 | # nm: unknown option "B" ignored |
---|
5877 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
5878 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
5879 | */dev/null* | *'Invalid file or object type'*) |
---|
5880 | lt_cv_path_NM="$tmp_nm -B" |
---|
5881 | break |
---|
5882 | ;; |
---|
5883 | *) |
---|
5884 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
5885 | */dev/null*) |
---|
5886 | lt_cv_path_NM="$tmp_nm -p" |
---|
5887 | break |
---|
5888 | ;; |
---|
5889 | *) |
---|
5890 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
5891 | continue # so that we can try to find one that supports BSD flags |
---|
5892 | ;; |
---|
5893 | esac |
---|
5894 | ;; |
---|
5895 | esac |
---|
5896 | fi |
---|
5897 | done |
---|
5898 | IFS="$lt_save_ifs" |
---|
5899 | done |
---|
5900 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
5901 | fi |
---|
5902 | fi |
---|
5903 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
---|
5904 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
---|
5905 | NM="$lt_cv_path_NM" |
---|
5906 | |
---|
5907 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
---|
5908 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
---|
5909 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
---|
5910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5911 | else |
---|
5912 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
5913 | lt_cv_file_magic_test_file= |
---|
5914 | lt_cv_deplibs_check_method='unknown' |
---|
5915 | # Need to set the preceding variable on all platforms that support |
---|
5916 | # interlibrary dependencies. |
---|
5917 | # 'none' -- dependencies not supported. |
---|
5918 | # `unknown' -- same as none, but documents that we really don't know. |
---|
5919 | # 'pass_all' -- all dependencies passed with no checks. |
---|
5920 | # 'test_compile' -- check by making test program. |
---|
5921 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
5922 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
5923 | # If you have `file' or equivalent on your system and you're not sure |
---|
5924 | # whether `pass_all' will *always* work, you probably want this one. |
---|
5925 | |
---|
5926 | case $host_os in |
---|
5927 | aix4* | aix5*) |
---|
5928 | lt_cv_deplibs_check_method=pass_all |
---|
5929 | ;; |
---|
5930 | |
---|
5931 | beos*) |
---|
5932 | lt_cv_deplibs_check_method=pass_all |
---|
5933 | ;; |
---|
5934 | |
---|
5935 | bsdi[45]*) |
---|
5936 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
5937 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
5938 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
5939 | ;; |
---|
5940 | |
---|
5941 | cygwin*) |
---|
5942 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
5943 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
5944 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
5945 | ;; |
---|
5946 | |
---|
5947 | mingw* | pw32*) |
---|
5948 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
5949 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
---|
5950 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
5951 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
5952 | ;; |
---|
5953 | |
---|
5954 | darwin* | rhapsody*) |
---|
5955 | lt_cv_deplibs_check_method=pass_all |
---|
5956 | ;; |
---|
5957 | |
---|
5958 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
5959 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
5960 | case $host_cpu in |
---|
5961 | i*86 ) |
---|
5962 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
5963 | # Let's accept both of them until this is cleared up. |
---|
5964 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
5965 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5966 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
5967 | ;; |
---|
5968 | esac |
---|
5969 | else |
---|
5970 | lt_cv_deplibs_check_method=pass_all |
---|
5971 | fi |
---|
5972 | ;; |
---|
5973 | |
---|
5974 | gnu*) |
---|
5975 | lt_cv_deplibs_check_method=pass_all |
---|
5976 | ;; |
---|
5977 | |
---|
5978 | hpux10.20* | hpux11*) |
---|
5979 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5980 | case $host_cpu in |
---|
5981 | ia64*) |
---|
5982 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
5983 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
5984 | ;; |
---|
5985 | hppa*64*) |
---|
5986 | 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]' |
---|
5987 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
5988 | ;; |
---|
5989 | *) |
---|
5990 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
5991 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
5992 | ;; |
---|
5993 | esac |
---|
5994 | ;; |
---|
5995 | |
---|
5996 | interix3*) |
---|
5997 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
---|
5998 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
---|
5999 | ;; |
---|
6000 | |
---|
6001 | irix5* | irix6* | nonstopux*) |
---|
6002 | case $LD in |
---|
6003 | *-32|*"-32 ") libmagic=32-bit;; |
---|
6004 | *-n32|*"-n32 ") libmagic=N32;; |
---|
6005 | *-64|*"-64 ") libmagic=64-bit;; |
---|
6006 | *) libmagic=never-match;; |
---|
6007 | esac |
---|
6008 | lt_cv_deplibs_check_method=pass_all |
---|
6009 | ;; |
---|
6010 | |
---|
6011 | # This must be Linux ELF. |
---|
6012 | linux*) |
---|
6013 | lt_cv_deplibs_check_method=pass_all |
---|
6014 | ;; |
---|
6015 | |
---|
6016 | netbsd*) |
---|
6017 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
6018 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
6019 | else |
---|
6020 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
6021 | fi |
---|
6022 | ;; |
---|
6023 | |
---|
6024 | newos6*) |
---|
6025 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
6026 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
6027 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
6028 | ;; |
---|
6029 | |
---|
6030 | nto-qnx*) |
---|
6031 | lt_cv_deplibs_check_method=unknown |
---|
6032 | ;; |
---|
6033 | |
---|
6034 | openbsd*) |
---|
6035 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
6036 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
6037 | else |
---|
6038 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
6039 | fi |
---|
6040 | ;; |
---|
6041 | |
---|
6042 | osf3* | osf4* | osf5*) |
---|
6043 | lt_cv_deplibs_check_method=pass_all |
---|
6044 | ;; |
---|
6045 | |
---|
6046 | solaris*) |
---|
6047 | lt_cv_deplibs_check_method=pass_all |
---|
6048 | ;; |
---|
6049 | |
---|
6050 | sysv4 | sysv4.3*) |
---|
6051 | case $host_vendor in |
---|
6052 | motorola) |
---|
6053 | 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]' |
---|
6054 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
6055 | ;; |
---|
6056 | ncr) |
---|
6057 | lt_cv_deplibs_check_method=pass_all |
---|
6058 | ;; |
---|
6059 | sequent) |
---|
6060 | lt_cv_file_magic_cmd='/bin/file' |
---|
6061 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
6062 | ;; |
---|
6063 | sni) |
---|
6064 | lt_cv_file_magic_cmd='/bin/file' |
---|
6065 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
6066 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
6067 | ;; |
---|
6068 | siemens) |
---|
6069 | lt_cv_deplibs_check_method=pass_all |
---|
6070 | ;; |
---|
6071 | pc) |
---|
6072 | lt_cv_deplibs_check_method=pass_all |
---|
6073 | ;; |
---|
6074 | esac |
---|
6075 | ;; |
---|
6076 | |
---|
6077 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
6078 | lt_cv_deplibs_check_method=pass_all |
---|
6079 | ;; |
---|
6080 | esac |
---|
6081 | |
---|
6082 | fi |
---|
6083 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
---|
6084 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
---|
6085 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
6086 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
6087 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
6088 | |
---|
6089 | |
---|
6090 | |
---|
6091 | |
---|
6092 | # If no C compiler was specified, use CC. |
---|
6093 | LTCC=${LTCC-"$CC"} |
---|
6094 | |
---|
6095 | # If no C compiler flags were specified, use CFLAGS. |
---|
6096 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
6097 | |
---|
6098 | # Allow CC to be a program name with arguments. |
---|
6099 | compiler=$CC |
---|
6100 | |
---|
6101 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
6102 | if test "${enable_libtool_lock+set}" = set; then |
---|
6103 | enableval="$enable_libtool_lock" |
---|
6104 | |
---|
6105 | fi; |
---|
6106 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
6107 | |
---|
6108 | # Some flags need to be propagated to the compiler or linker for good |
---|
6109 | # libtool support. |
---|
6110 | case $host in |
---|
6111 | ia64-*-hpux*) |
---|
6112 | # Find out which ABI we are using. |
---|
6113 | echo 'int i;' > conftest.$ac_ext |
---|
6114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6115 | (eval $ac_compile) 2>&5 |
---|
6116 | ac_status=$? |
---|
6117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6118 | (exit $ac_status); }; then |
---|
6119 | case `/usr/bin/file conftest.$ac_objext` in |
---|
6120 | *ELF-32*) |
---|
6121 | HPUX_IA64_MODE="32" |
---|
6122 | ;; |
---|
6123 | *ELF-64*) |
---|
6124 | HPUX_IA64_MODE="64" |
---|
6125 | ;; |
---|
6126 | esac |
---|
6127 | fi |
---|
6128 | rm -rf conftest* |
---|
6129 | ;; |
---|
6130 | *-*-irix6*) |
---|
6131 | # Find out which ABI we are using. |
---|
6132 | echo '#line 6132 "configure"' > conftest.$ac_ext |
---|
6133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6134 | (eval $ac_compile) 2>&5 |
---|
6135 | ac_status=$? |
---|
6136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6137 | (exit $ac_status); }; then |
---|
6138 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
6139 | case `/usr/bin/file conftest.$ac_objext` in |
---|
6140 | *32-bit*) |
---|
6141 | LD="${LD-ld} -melf32bsmip" |
---|
6142 | ;; |
---|
6143 | *N32*) |
---|
6144 | LD="${LD-ld} -melf32bmipn32" |
---|
6145 | ;; |
---|
6146 | *64-bit*) |
---|
6147 | LD="${LD-ld} -melf64bmip" |
---|
6148 | ;; |
---|
6149 | esac |
---|
6150 | else |
---|
6151 | case `/usr/bin/file conftest.$ac_objext` in |
---|
6152 | *32-bit*) |
---|
6153 | LD="${LD-ld} -32" |
---|
6154 | ;; |
---|
6155 | *N32*) |
---|
6156 | LD="${LD-ld} -n32" |
---|
6157 | ;; |
---|
6158 | *64-bit*) |
---|
6159 | LD="${LD-ld} -64" |
---|
6160 | ;; |
---|
6161 | esac |
---|
6162 | fi |
---|
6163 | fi |
---|
6164 | rm -rf conftest* |
---|
6165 | ;; |
---|
6166 | |
---|
6167 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
---|
6168 | # Find out which ABI we are using. |
---|
6169 | echo 'int i;' > conftest.$ac_ext |
---|
6170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6171 | (eval $ac_compile) 2>&5 |
---|
6172 | ac_status=$? |
---|
6173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6174 | (exit $ac_status); }; then |
---|
6175 | case `/usr/bin/file conftest.o` in |
---|
6176 | *32-bit*) |
---|
6177 | case $host in |
---|
6178 | x86_64-*linux*) |
---|
6179 | LD="${LD-ld} -m elf_i386" |
---|
6180 | ;; |
---|
6181 | ppc64-*linux*|powerpc64-*linux*) |
---|
6182 | LD="${LD-ld} -m elf32ppclinux" |
---|
6183 | ;; |
---|
6184 | s390x-*linux*) |
---|
6185 | LD="${LD-ld} -m elf_s390" |
---|
6186 | ;; |
---|
6187 | sparc64-*linux*) |
---|
6188 | LD="${LD-ld} -m elf32_sparc" |
---|
6189 | ;; |
---|
6190 | esac |
---|
6191 | ;; |
---|
6192 | *64-bit*) |
---|
6193 | case $host in |
---|
6194 | x86_64-*linux*) |
---|
6195 | LD="${LD-ld} -m elf_x86_64" |
---|
6196 | ;; |
---|
6197 | ppc*-*linux*|powerpc*-*linux*) |
---|
6198 | LD="${LD-ld} -m elf64ppc" |
---|
6199 | ;; |
---|
6200 | s390*-*linux*) |
---|
6201 | LD="${LD-ld} -m elf64_s390" |
---|
6202 | ;; |
---|
6203 | sparc*-*linux*) |
---|
6204 | LD="${LD-ld} -m elf64_sparc" |
---|
6205 | ;; |
---|
6206 | esac |
---|
6207 | ;; |
---|
6208 | esac |
---|
6209 | fi |
---|
6210 | rm -rf conftest* |
---|
6211 | ;; |
---|
6212 | |
---|
6213 | *-*-sco3.2v5*) |
---|
6214 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
6215 | SAVE_CFLAGS="$CFLAGS" |
---|
6216 | CFLAGS="$CFLAGS -belf" |
---|
6217 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
---|
6218 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
---|
6219 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
---|
6220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6221 | else |
---|
6222 | ac_ext=c |
---|
6223 | ac_cpp='$CPP $CPPFLAGS' |
---|
6224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6227 | |
---|
6228 | cat >conftest.$ac_ext <<_ACEOF |
---|
6229 | /* confdefs.h. */ |
---|
6230 | _ACEOF |
---|
6231 | cat confdefs.h >>conftest.$ac_ext |
---|
6232 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6233 | /* end confdefs.h. */ |
---|
6234 | |
---|
6235 | int |
---|
6236 | main () |
---|
6237 | { |
---|
6238 | |
---|
6239 | ; |
---|
6240 | return 0; |
---|
6241 | } |
---|
6242 | _ACEOF |
---|
6243 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6245 | (eval $ac_link) 2>conftest.er1 |
---|
6246 | ac_status=$? |
---|
6247 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6248 | rm -f conftest.er1 |
---|
6249 | cat conftest.err >&5 |
---|
6250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6251 | (exit $ac_status); } && |
---|
6252 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6253 | || test ! -s conftest.err' |
---|
6254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6255 | (eval $ac_try) 2>&5 |
---|
6256 | ac_status=$? |
---|
6257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6258 | (exit $ac_status); }; } && |
---|
6259 | { ac_try='test -s conftest$ac_exeext' |
---|
6260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6261 | (eval $ac_try) 2>&5 |
---|
6262 | ac_status=$? |
---|
6263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6264 | (exit $ac_status); }; }; then |
---|
6265 | lt_cv_cc_needs_belf=yes |
---|
6266 | else |
---|
6267 | echo "$as_me: failed program was:" >&5 |
---|
6268 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6269 | |
---|
6270 | lt_cv_cc_needs_belf=no |
---|
6271 | fi |
---|
6272 | rm -f conftest.err conftest.$ac_objext \ |
---|
6273 | conftest$ac_exeext conftest.$ac_ext |
---|
6274 | ac_ext=c |
---|
6275 | ac_cpp='$CPP $CPPFLAGS' |
---|
6276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6279 | |
---|
6280 | fi |
---|
6281 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
---|
6282 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
---|
6283 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
6284 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
6285 | CFLAGS="$SAVE_CFLAGS" |
---|
6286 | fi |
---|
6287 | ;; |
---|
6288 | sparc*-*solaris*) |
---|
6289 | # Find out which ABI we are using. |
---|
6290 | echo 'int i;' > conftest.$ac_ext |
---|
6291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6292 | (eval $ac_compile) 2>&5 |
---|
6293 | ac_status=$? |
---|
6294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6295 | (exit $ac_status); }; then |
---|
6296 | case `/usr/bin/file conftest.o` in |
---|
6297 | *64-bit*) |
---|
6298 | case $lt_cv_prog_gnu_ld in |
---|
6299 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
---|
6300 | *) LD="${LD-ld} -64" ;; |
---|
6301 | esac |
---|
6302 | ;; |
---|
6303 | esac |
---|
6304 | fi |
---|
6305 | rm -rf conftest* |
---|
6306 | ;; |
---|
6307 | |
---|
6308 | |
---|
6309 | esac |
---|
6310 | |
---|
6311 | need_locks="$enable_libtool_lock" |
---|
6312 | |
---|
6313 | |
---|
6314 | ac_ext=c |
---|
6315 | ac_cpp='$CPP $CPPFLAGS' |
---|
6316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6319 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
6320 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
6321 | # On Suns, sometimes $CPP names a directory. |
---|
6322 | if test -n "$CPP" && test -d "$CPP"; then |
---|
6323 | CPP= |
---|
6324 | fi |
---|
6325 | if test -z "$CPP"; then |
---|
6326 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
6327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6328 | else |
---|
6329 | # Double quotes because CPP needs to be expanded |
---|
6330 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
6331 | do |
---|
6332 | ac_preproc_ok=false |
---|
6333 | for ac_c_preproc_warn_flag in '' yes |
---|
6334 | do |
---|
6335 | # Use a header file that comes with gcc, so configuring glibc |
---|
6336 | # with a fresh cross-compiler works. |
---|
6337 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6338 | # <limits.h> exists even on freestanding compilers. |
---|
6339 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6340 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6341 | cat >conftest.$ac_ext <<_ACEOF |
---|
6342 | /* confdefs.h. */ |
---|
6343 | _ACEOF |
---|
6344 | cat confdefs.h >>conftest.$ac_ext |
---|
6345 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6346 | /* end confdefs.h. */ |
---|
6347 | #ifdef __STDC__ |
---|
6348 | # include <limits.h> |
---|
6349 | #else |
---|
6350 | # include <assert.h> |
---|
6351 | #endif |
---|
6352 | Syntax error |
---|
6353 | _ACEOF |
---|
6354 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6355 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6356 | ac_status=$? |
---|
6357 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6358 | rm -f conftest.er1 |
---|
6359 | cat conftest.err >&5 |
---|
6360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6361 | (exit $ac_status); } >/dev/null; then |
---|
6362 | if test -s conftest.err; then |
---|
6363 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6364 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6365 | else |
---|
6366 | ac_cpp_err= |
---|
6367 | fi |
---|
6368 | else |
---|
6369 | ac_cpp_err=yes |
---|
6370 | fi |
---|
6371 | if test -z "$ac_cpp_err"; then |
---|
6372 | : |
---|
6373 | else |
---|
6374 | echo "$as_me: failed program was:" >&5 |
---|
6375 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6376 | |
---|
6377 | # Broken: fails on valid input. |
---|
6378 | continue |
---|
6379 | fi |
---|
6380 | rm -f conftest.err conftest.$ac_ext |
---|
6381 | |
---|
6382 | # OK, works on sane cases. Now check whether non-existent headers |
---|
6383 | # can be detected and how. |
---|
6384 | cat >conftest.$ac_ext <<_ACEOF |
---|
6385 | /* confdefs.h. */ |
---|
6386 | _ACEOF |
---|
6387 | cat confdefs.h >>conftest.$ac_ext |
---|
6388 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6389 | /* end confdefs.h. */ |
---|
6390 | #include <ac_nonexistent.h> |
---|
6391 | _ACEOF |
---|
6392 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6393 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6394 | ac_status=$? |
---|
6395 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6396 | rm -f conftest.er1 |
---|
6397 | cat conftest.err >&5 |
---|
6398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6399 | (exit $ac_status); } >/dev/null; then |
---|
6400 | if test -s conftest.err; then |
---|
6401 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6402 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6403 | else |
---|
6404 | ac_cpp_err= |
---|
6405 | fi |
---|
6406 | else |
---|
6407 | ac_cpp_err=yes |
---|
6408 | fi |
---|
6409 | if test -z "$ac_cpp_err"; then |
---|
6410 | # Broken: success on invalid input. |
---|
6411 | continue |
---|
6412 | else |
---|
6413 | echo "$as_me: failed program was:" >&5 |
---|
6414 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6415 | |
---|
6416 | # Passes both tests. |
---|
6417 | ac_preproc_ok=: |
---|
6418 | break |
---|
6419 | fi |
---|
6420 | rm -f conftest.err conftest.$ac_ext |
---|
6421 | |
---|
6422 | done |
---|
6423 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6424 | rm -f conftest.err conftest.$ac_ext |
---|
6425 | if $ac_preproc_ok; then |
---|
6426 | break |
---|
6427 | fi |
---|
6428 | |
---|
6429 | done |
---|
6430 | ac_cv_prog_CPP=$CPP |
---|
6431 | |
---|
6432 | fi |
---|
6433 | CPP=$ac_cv_prog_CPP |
---|
6434 | else |
---|
6435 | ac_cv_prog_CPP=$CPP |
---|
6436 | fi |
---|
6437 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
6438 | echo "${ECHO_T}$CPP" >&6 |
---|
6439 | ac_preproc_ok=false |
---|
6440 | for ac_c_preproc_warn_flag in '' yes |
---|
6441 | do |
---|
6442 | # Use a header file that comes with gcc, so configuring glibc |
---|
6443 | # with a fresh cross-compiler works. |
---|
6444 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6445 | # <limits.h> exists even on freestanding compilers. |
---|
6446 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6447 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6448 | cat >conftest.$ac_ext <<_ACEOF |
---|
6449 | /* confdefs.h. */ |
---|
6450 | _ACEOF |
---|
6451 | cat confdefs.h >>conftest.$ac_ext |
---|
6452 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6453 | /* end confdefs.h. */ |
---|
6454 | #ifdef __STDC__ |
---|
6455 | # include <limits.h> |
---|
6456 | #else |
---|
6457 | # include <assert.h> |
---|
6458 | #endif |
---|
6459 | Syntax error |
---|
6460 | _ACEOF |
---|
6461 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6462 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6463 | ac_status=$? |
---|
6464 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6465 | rm -f conftest.er1 |
---|
6466 | cat conftest.err >&5 |
---|
6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6468 | (exit $ac_status); } >/dev/null; then |
---|
6469 | if test -s conftest.err; then |
---|
6470 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6471 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6472 | else |
---|
6473 | ac_cpp_err= |
---|
6474 | fi |
---|
6475 | else |
---|
6476 | ac_cpp_err=yes |
---|
6477 | fi |
---|
6478 | if test -z "$ac_cpp_err"; then |
---|
6479 | : |
---|
6480 | else |
---|
6481 | echo "$as_me: failed program was:" >&5 |
---|
6482 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6483 | |
---|
6484 | # Broken: fails on valid input. |
---|
6485 | continue |
---|
6486 | fi |
---|
6487 | rm -f conftest.err conftest.$ac_ext |
---|
6488 | |
---|
6489 | # OK, works on sane cases. Now check whether non-existent headers |
---|
6490 | # can be detected and how. |
---|
6491 | cat >conftest.$ac_ext <<_ACEOF |
---|
6492 | /* confdefs.h. */ |
---|
6493 | _ACEOF |
---|
6494 | cat confdefs.h >>conftest.$ac_ext |
---|
6495 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6496 | /* end confdefs.h. */ |
---|
6497 | #include <ac_nonexistent.h> |
---|
6498 | _ACEOF |
---|
6499 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6500 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6501 | ac_status=$? |
---|
6502 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6503 | rm -f conftest.er1 |
---|
6504 | cat conftest.err >&5 |
---|
6505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6506 | (exit $ac_status); } >/dev/null; then |
---|
6507 | if test -s conftest.err; then |
---|
6508 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6509 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6510 | else |
---|
6511 | ac_cpp_err= |
---|
6512 | fi |
---|
6513 | else |
---|
6514 | ac_cpp_err=yes |
---|
6515 | fi |
---|
6516 | if test -z "$ac_cpp_err"; then |
---|
6517 | # Broken: success on invalid input. |
---|
6518 | continue |
---|
6519 | else |
---|
6520 | echo "$as_me: failed program was:" >&5 |
---|
6521 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6522 | |
---|
6523 | # Passes both tests. |
---|
6524 | ac_preproc_ok=: |
---|
6525 | break |
---|
6526 | fi |
---|
6527 | rm -f conftest.err conftest.$ac_ext |
---|
6528 | |
---|
6529 | done |
---|
6530 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6531 | rm -f conftest.err conftest.$ac_ext |
---|
6532 | if $ac_preproc_ok; then |
---|
6533 | : |
---|
6534 | else |
---|
6535 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
6536 | See \`config.log' for more details." >&5 |
---|
6537 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
6538 | See \`config.log' for more details." >&2;} |
---|
6539 | { (exit 1); exit 1; }; } |
---|
6540 | fi |
---|
6541 | |
---|
6542 | ac_ext=c |
---|
6543 | ac_cpp='$CPP $CPPFLAGS' |
---|
6544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6547 | |
---|
6548 | |
---|
6549 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
6550 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
6551 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
6552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6553 | else |
---|
6554 | cat >conftest.$ac_ext <<_ACEOF |
---|
6555 | /* confdefs.h. */ |
---|
6556 | _ACEOF |
---|
6557 | cat confdefs.h >>conftest.$ac_ext |
---|
6558 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6559 | /* end confdefs.h. */ |
---|
6560 | #include <stdlib.h> |
---|
6561 | #include <stdarg.h> |
---|
6562 | #include <string.h> |
---|
6563 | #include <float.h> |
---|
6564 | |
---|
6565 | int |
---|
6566 | main () |
---|
6567 | { |
---|
6568 | |
---|
6569 | ; |
---|
6570 | return 0; |
---|
6571 | } |
---|
6572 | _ACEOF |
---|
6573 | rm -f conftest.$ac_objext |
---|
6574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6575 | (eval $ac_compile) 2>conftest.er1 |
---|
6576 | ac_status=$? |
---|
6577 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6578 | rm -f conftest.er1 |
---|
6579 | cat conftest.err >&5 |
---|
6580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6581 | (exit $ac_status); } && |
---|
6582 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6583 | || test ! -s conftest.err' |
---|
6584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6585 | (eval $ac_try) 2>&5 |
---|
6586 | ac_status=$? |
---|
6587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6588 | (exit $ac_status); }; } && |
---|
6589 | { ac_try='test -s conftest.$ac_objext' |
---|
6590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6591 | (eval $ac_try) 2>&5 |
---|
6592 | ac_status=$? |
---|
6593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6594 | (exit $ac_status); }; }; then |
---|
6595 | ac_cv_header_stdc=yes |
---|
6596 | else |
---|
6597 | echo "$as_me: failed program was:" >&5 |
---|
6598 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6599 | |
---|
6600 | ac_cv_header_stdc=no |
---|
6601 | fi |
---|
6602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6603 | |
---|
6604 | if test $ac_cv_header_stdc = yes; then |
---|
6605 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
6606 | cat >conftest.$ac_ext <<_ACEOF |
---|
6607 | /* confdefs.h. */ |
---|
6608 | _ACEOF |
---|
6609 | cat confdefs.h >>conftest.$ac_ext |
---|
6610 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6611 | /* end confdefs.h. */ |
---|
6612 | #include <string.h> |
---|
6613 | |
---|
6614 | _ACEOF |
---|
6615 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6616 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
6617 | : |
---|
6618 | else |
---|
6619 | ac_cv_header_stdc=no |
---|
6620 | fi |
---|
6621 | rm -f conftest* |
---|
6622 | |
---|
6623 | fi |
---|
6624 | |
---|
6625 | if test $ac_cv_header_stdc = yes; then |
---|
6626 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
6627 | cat >conftest.$ac_ext <<_ACEOF |
---|
6628 | /* confdefs.h. */ |
---|
6629 | _ACEOF |
---|
6630 | cat confdefs.h >>conftest.$ac_ext |
---|
6631 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6632 | /* end confdefs.h. */ |
---|
6633 | #include <stdlib.h> |
---|
6634 | |
---|
6635 | _ACEOF |
---|
6636 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6637 | $EGREP "free" >/dev/null 2>&1; then |
---|
6638 | : |
---|
6639 | else |
---|
6640 | ac_cv_header_stdc=no |
---|
6641 | fi |
---|
6642 | rm -f conftest* |
---|
6643 | |
---|
6644 | fi |
---|
6645 | |
---|
6646 | if test $ac_cv_header_stdc = yes; then |
---|
6647 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
6648 | if test "$cross_compiling" = yes; then |
---|
6649 | : |
---|
6650 | else |
---|
6651 | cat >conftest.$ac_ext <<_ACEOF |
---|
6652 | /* confdefs.h. */ |
---|
6653 | _ACEOF |
---|
6654 | cat confdefs.h >>conftest.$ac_ext |
---|
6655 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6656 | /* end confdefs.h. */ |
---|
6657 | #include <ctype.h> |
---|
6658 | #if ((' ' & 0x0FF) == 0x020) |
---|
6659 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
6660 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
6661 | #else |
---|
6662 | # define ISLOWER(c) \ |
---|
6663 | (('a' <= (c) && (c) <= 'i') \ |
---|
6664 | || ('j' <= (c) && (c) <= 'r') \ |
---|
6665 | || ('s' <= (c) && (c) <= 'z')) |
---|
6666 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
6667 | #endif |
---|
6668 | |
---|
6669 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
6670 | int |
---|
6671 | main () |
---|
6672 | { |
---|
6673 | int i; |
---|
6674 | for (i = 0; i < 256; i++) |
---|
6675 | if (XOR (islower (i), ISLOWER (i)) |
---|
6676 | || toupper (i) != TOUPPER (i)) |
---|
6677 | exit(2); |
---|
6678 | exit (0); |
---|
6679 | } |
---|
6680 | _ACEOF |
---|
6681 | rm -f conftest$ac_exeext |
---|
6682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6683 | (eval $ac_link) 2>&5 |
---|
6684 | ac_status=$? |
---|
6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6686 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6688 | (eval $ac_try) 2>&5 |
---|
6689 | ac_status=$? |
---|
6690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6691 | (exit $ac_status); }; }; then |
---|
6692 | : |
---|
6693 | else |
---|
6694 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6695 | echo "$as_me: failed program was:" >&5 |
---|
6696 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6697 | |
---|
6698 | ( exit $ac_status ) |
---|
6699 | ac_cv_header_stdc=no |
---|
6700 | fi |
---|
6701 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6702 | fi |
---|
6703 | fi |
---|
6704 | fi |
---|
6705 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
6706 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
6707 | if test $ac_cv_header_stdc = yes; then |
---|
6708 | |
---|
6709 | cat >>confdefs.h <<\_ACEOF |
---|
6710 | #define STDC_HEADERS 1 |
---|
6711 | _ACEOF |
---|
6712 | |
---|
6713 | fi |
---|
6714 | |
---|
6715 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
6716 | |
---|
6717 | |
---|
6718 | |
---|
6719 | |
---|
6720 | |
---|
6721 | |
---|
6722 | |
---|
6723 | |
---|
6724 | |
---|
6725 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
6726 | inttypes.h stdint.h unistd.h |
---|
6727 | do |
---|
6728 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6729 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6730 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6731 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6733 | else |
---|
6734 | cat >conftest.$ac_ext <<_ACEOF |
---|
6735 | /* confdefs.h. */ |
---|
6736 | _ACEOF |
---|
6737 | cat confdefs.h >>conftest.$ac_ext |
---|
6738 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6739 | /* end confdefs.h. */ |
---|
6740 | $ac_includes_default |
---|
6741 | |
---|
6742 | #include <$ac_header> |
---|
6743 | _ACEOF |
---|
6744 | rm -f conftest.$ac_objext |
---|
6745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6746 | (eval $ac_compile) 2>conftest.er1 |
---|
6747 | ac_status=$? |
---|
6748 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6749 | rm -f conftest.er1 |
---|
6750 | cat conftest.err >&5 |
---|
6751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6752 | (exit $ac_status); } && |
---|
6753 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6754 | || test ! -s conftest.err' |
---|
6755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6756 | (eval $ac_try) 2>&5 |
---|
6757 | ac_status=$? |
---|
6758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6759 | (exit $ac_status); }; } && |
---|
6760 | { ac_try='test -s conftest.$ac_objext' |
---|
6761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6762 | (eval $ac_try) 2>&5 |
---|
6763 | ac_status=$? |
---|
6764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6765 | (exit $ac_status); }; }; then |
---|
6766 | eval "$as_ac_Header=yes" |
---|
6767 | else |
---|
6768 | echo "$as_me: failed program was:" >&5 |
---|
6769 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6770 | |
---|
6771 | eval "$as_ac_Header=no" |
---|
6772 | fi |
---|
6773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6774 | fi |
---|
6775 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6776 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6777 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6778 | cat >>confdefs.h <<_ACEOF |
---|
6779 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6780 | _ACEOF |
---|
6781 | |
---|
6782 | fi |
---|
6783 | |
---|
6784 | done |
---|
6785 | |
---|
6786 | |
---|
6787 | |
---|
6788 | for ac_header in dlfcn.h |
---|
6789 | do |
---|
6790 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6791 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6792 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6793 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6796 | fi |
---|
6797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6798 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6799 | else |
---|
6800 | # Is the header compilable? |
---|
6801 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6802 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6803 | cat >conftest.$ac_ext <<_ACEOF |
---|
6804 | /* confdefs.h. */ |
---|
6805 | _ACEOF |
---|
6806 | cat confdefs.h >>conftest.$ac_ext |
---|
6807 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6808 | /* end confdefs.h. */ |
---|
6809 | $ac_includes_default |
---|
6810 | #include <$ac_header> |
---|
6811 | _ACEOF |
---|
6812 | rm -f conftest.$ac_objext |
---|
6813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6814 | (eval $ac_compile) 2>conftest.er1 |
---|
6815 | ac_status=$? |
---|
6816 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6817 | rm -f conftest.er1 |
---|
6818 | cat conftest.err >&5 |
---|
6819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6820 | (exit $ac_status); } && |
---|
6821 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6822 | || test ! -s conftest.err' |
---|
6823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6824 | (eval $ac_try) 2>&5 |
---|
6825 | ac_status=$? |
---|
6826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6827 | (exit $ac_status); }; } && |
---|
6828 | { ac_try='test -s conftest.$ac_objext' |
---|
6829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6830 | (eval $ac_try) 2>&5 |
---|
6831 | ac_status=$? |
---|
6832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6833 | (exit $ac_status); }; }; then |
---|
6834 | ac_header_compiler=yes |
---|
6835 | else |
---|
6836 | echo "$as_me: failed program was:" >&5 |
---|
6837 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6838 | |
---|
6839 | ac_header_compiler=no |
---|
6840 | fi |
---|
6841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6842 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6843 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6844 | |
---|
6845 | # Is the header present? |
---|
6846 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6847 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6848 | cat >conftest.$ac_ext <<_ACEOF |
---|
6849 | /* confdefs.h. */ |
---|
6850 | _ACEOF |
---|
6851 | cat confdefs.h >>conftest.$ac_ext |
---|
6852 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6853 | /* end confdefs.h. */ |
---|
6854 | #include <$ac_header> |
---|
6855 | _ACEOF |
---|
6856 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6857 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6858 | ac_status=$? |
---|
6859 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6860 | rm -f conftest.er1 |
---|
6861 | cat conftest.err >&5 |
---|
6862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6863 | (exit $ac_status); } >/dev/null; then |
---|
6864 | if test -s conftest.err; then |
---|
6865 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6866 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6867 | else |
---|
6868 | ac_cpp_err= |
---|
6869 | fi |
---|
6870 | else |
---|
6871 | ac_cpp_err=yes |
---|
6872 | fi |
---|
6873 | if test -z "$ac_cpp_err"; then |
---|
6874 | ac_header_preproc=yes |
---|
6875 | else |
---|
6876 | echo "$as_me: failed program was:" >&5 |
---|
6877 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6878 | |
---|
6879 | ac_header_preproc=no |
---|
6880 | fi |
---|
6881 | rm -f conftest.err conftest.$ac_ext |
---|
6882 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6883 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6884 | |
---|
6885 | # So? What about this header? |
---|
6886 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6887 | yes:no: ) |
---|
6888 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6889 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6891 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6892 | ac_header_preproc=yes |
---|
6893 | ;; |
---|
6894 | no:yes:* ) |
---|
6895 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6896 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6897 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6898 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6899 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6900 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6901 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6902 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6903 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6904 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6905 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6906 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6907 | ( |
---|
6908 | cat <<\_ASBOX |
---|
6909 | ## --------------------------------------------------------------- ## |
---|
6910 | ## Report this to http://projects.coin-or.org/BuildTools/newticket ## |
---|
6911 | ## --------------------------------------------------------------- ## |
---|
6912 | _ASBOX |
---|
6913 | ) | |
---|
6914 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6915 | ;; |
---|
6916 | esac |
---|
6917 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6918 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6919 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6921 | else |
---|
6922 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6923 | fi |
---|
6924 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6925 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6926 | |
---|
6927 | fi |
---|
6928 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6929 | cat >>confdefs.h <<_ACEOF |
---|
6930 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6931 | _ACEOF |
---|
6932 | |
---|
6933 | fi |
---|
6934 | |
---|
6935 | done |
---|
6936 | |
---|
6937 | |
---|
6938 | |
---|
6939 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
---|
6940 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
---|
6941 | (test "X$CXX" != "Xg++"))) ; then |
---|
6942 | ac_ext=cc |
---|
6943 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6944 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6945 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6946 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6947 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
---|
6948 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
---|
6949 | if test -z "$CXXCPP"; then |
---|
6950 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
---|
6951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6952 | else |
---|
6953 | # Double quotes because CXXCPP needs to be expanded |
---|
6954 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
6955 | do |
---|
6956 | ac_preproc_ok=false |
---|
6957 | for ac_cxx_preproc_warn_flag in '' yes |
---|
6958 | do |
---|
6959 | # Use a header file that comes with gcc, so configuring glibc |
---|
6960 | # with a fresh cross-compiler works. |
---|
6961 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6962 | # <limits.h> exists even on freestanding compilers. |
---|
6963 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6964 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6965 | cat >conftest.$ac_ext <<_ACEOF |
---|
6966 | /* confdefs.h. */ |
---|
6967 | _ACEOF |
---|
6968 | cat confdefs.h >>conftest.$ac_ext |
---|
6969 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6970 | /* end confdefs.h. */ |
---|
6971 | #ifdef __STDC__ |
---|
6972 | # include <limits.h> |
---|
6973 | #else |
---|
6974 | # include <assert.h> |
---|
6975 | #endif |
---|
6976 | Syntax error |
---|
6977 | _ACEOF |
---|
6978 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6979 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6980 | ac_status=$? |
---|
6981 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6982 | rm -f conftest.er1 |
---|
6983 | cat conftest.err >&5 |
---|
6984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6985 | (exit $ac_status); } >/dev/null; then |
---|
6986 | if test -s conftest.err; then |
---|
6987 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6988 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6989 | else |
---|
6990 | ac_cpp_err= |
---|
6991 | fi |
---|
6992 | else |
---|
6993 | ac_cpp_err=yes |
---|
6994 | fi |
---|
6995 | if test -z "$ac_cpp_err"; then |
---|
6996 | : |
---|
6997 | else |
---|
6998 | echo "$as_me: failed program was:" >&5 |
---|
6999 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7000 | |
---|
7001 | # Broken: fails on valid input. |
---|
7002 | continue |
---|
7003 | fi |
---|
7004 | rm -f conftest.err conftest.$ac_ext |
---|
7005 | |
---|
7006 | # OK, works on sane cases. Now check whether non-existent headers |
---|
7007 | # can be detected and how. |
---|
7008 | cat >conftest.$ac_ext <<_ACEOF |
---|
7009 | /* confdefs.h. */ |
---|
7010 | _ACEOF |
---|
7011 | cat confdefs.h >>conftest.$ac_ext |
---|
7012 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7013 | /* end confdefs.h. */ |
---|
7014 | #include <ac_nonexistent.h> |
---|
7015 | _ACEOF |
---|
7016 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7017 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7018 | ac_status=$? |
---|
7019 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7020 | rm -f conftest.er1 |
---|
7021 | cat conftest.err >&5 |
---|
7022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7023 | (exit $ac_status); } >/dev/null; then |
---|
7024 | if test -s conftest.err; then |
---|
7025 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
7026 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
7027 | else |
---|
7028 | ac_cpp_err= |
---|
7029 | fi |
---|
7030 | else |
---|
7031 | ac_cpp_err=yes |
---|
7032 | fi |
---|
7033 | if test -z "$ac_cpp_err"; then |
---|
7034 | # Broken: success on invalid input. |
---|
7035 | continue |
---|
7036 | else |
---|
7037 | echo "$as_me: failed program was:" >&5 |
---|
7038 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7039 | |
---|
7040 | # Passes both tests. |
---|
7041 | ac_preproc_ok=: |
---|
7042 | break |
---|
7043 | fi |
---|
7044 | rm -f conftest.err conftest.$ac_ext |
---|
7045 | |
---|
7046 | done |
---|
7047 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
7048 | rm -f conftest.err conftest.$ac_ext |
---|
7049 | if $ac_preproc_ok; then |
---|
7050 | break |
---|
7051 | fi |
---|
7052 | |
---|
7053 | done |
---|
7054 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
7055 | |
---|
7056 | fi |
---|
7057 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
7058 | else |
---|
7059 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
7060 | fi |
---|
7061 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
---|
7062 | echo "${ECHO_T}$CXXCPP" >&6 |
---|
7063 | ac_preproc_ok=false |
---|
7064 | for ac_cxx_preproc_warn_flag in '' yes |
---|
7065 | do |
---|
7066 | # Use a header file that comes with gcc, so configuring glibc |
---|
7067 | # with a fresh cross-compiler works. |
---|
7068 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
7069 | # <limits.h> exists even on freestanding compilers. |
---|
7070 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
7071 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
7072 | cat >conftest.$ac_ext <<_ACEOF |
---|
7073 | /* confdefs.h. */ |
---|
7074 | _ACEOF |
---|
7075 | cat confdefs.h >>conftest.$ac_ext |
---|
7076 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7077 | /* end confdefs.h. */ |
---|
7078 | #ifdef __STDC__ |
---|
7079 | # include <limits.h> |
---|
7080 | #else |
---|
7081 | # include <assert.h> |
---|
7082 | #endif |
---|
7083 | Syntax error |
---|
7084 | _ACEOF |
---|
7085 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7086 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7087 | ac_status=$? |
---|
7088 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7089 | rm -f conftest.er1 |
---|
7090 | cat conftest.err >&5 |
---|
7091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7092 | (exit $ac_status); } >/dev/null; then |
---|
7093 | if test -s conftest.err; then |
---|
7094 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
7095 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
7096 | else |
---|
7097 | ac_cpp_err= |
---|
7098 | fi |
---|
7099 | else |
---|
7100 | ac_cpp_err=yes |
---|
7101 | fi |
---|
7102 | if test -z "$ac_cpp_err"; then |
---|
7103 | : |
---|
7104 | else |
---|
7105 | echo "$as_me: failed program was:" >&5 |
---|
7106 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7107 | |
---|
7108 | # Broken: fails on valid input. |
---|
7109 | continue |
---|
7110 | fi |
---|
7111 | rm -f conftest.err conftest.$ac_ext |
---|
7112 | |
---|
7113 | # OK, works on sane cases. Now check whether non-existent headers |
---|
7114 | # can be detected and how. |
---|
7115 | cat >conftest.$ac_ext <<_ACEOF |
---|
7116 | /* confdefs.h. */ |
---|
7117 | _ACEOF |
---|
7118 | cat confdefs.h >>conftest.$ac_ext |
---|
7119 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7120 | /* end confdefs.h. */ |
---|
7121 | #include <ac_nonexistent.h> |
---|
7122 | _ACEOF |
---|
7123 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7124 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7125 | ac_status=$? |
---|
7126 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7127 | rm -f conftest.er1 |
---|
7128 | cat conftest.err >&5 |
---|
7129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7130 | (exit $ac_status); } >/dev/null; then |
---|
7131 | if test -s conftest.err; then |
---|
7132 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
7133 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
7134 | else |
---|
7135 | ac_cpp_err= |
---|
7136 | fi |
---|
7137 | else |
---|
7138 | ac_cpp_err=yes |
---|
7139 | fi |
---|
7140 | if test -z "$ac_cpp_err"; then |
---|
7141 | # Broken: success on invalid input. |
---|
7142 | continue |
---|
7143 | else |
---|
7144 | echo "$as_me: failed program was:" >&5 |
---|
7145 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7146 | |
---|
7147 | # Passes both tests. |
---|
7148 | ac_preproc_ok=: |
---|
7149 | break |
---|
7150 | fi |
---|
7151 | rm -f conftest.err conftest.$ac_ext |
---|
7152 | |
---|
7153 | done |
---|
7154 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
7155 | rm -f conftest.err conftest.$ac_ext |
---|
7156 | if $ac_preproc_ok; then |
---|
7157 | : |
---|
7158 | else |
---|
7159 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
7160 | See \`config.log' for more details." >&5 |
---|
7161 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
7162 | See \`config.log' for more details." >&2;} |
---|
7163 | { (exit 1); exit 1; }; } |
---|
7164 | fi |
---|
7165 | |
---|
7166 | ac_ext=cc |
---|
7167 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
7168 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7169 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7170 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
7171 | |
---|
7172 | fi |
---|
7173 | |
---|
7174 | ac_ext=f |
---|
7175 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
7176 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7177 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
7178 | if test -n "$ac_tool_prefix"; then |
---|
7179 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
---|
7180 | do |
---|
7181 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
7182 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
7183 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7185 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
7186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7187 | else |
---|
7188 | if test -n "$F77"; then |
---|
7189 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
7190 | else |
---|
7191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7192 | for as_dir in $PATH |
---|
7193 | do |
---|
7194 | IFS=$as_save_IFS |
---|
7195 | test -z "$as_dir" && as_dir=. |
---|
7196 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7197 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7198 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
7199 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7200 | break 2 |
---|
7201 | fi |
---|
7202 | done |
---|
7203 | done |
---|
7204 | |
---|
7205 | fi |
---|
7206 | fi |
---|
7207 | F77=$ac_cv_prog_F77 |
---|
7208 | if test -n "$F77"; then |
---|
7209 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
7210 | echo "${ECHO_T}$F77" >&6 |
---|
7211 | else |
---|
7212 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7213 | echo "${ECHO_T}no" >&6 |
---|
7214 | fi |
---|
7215 | |
---|
7216 | test -n "$F77" && break |
---|
7217 | done |
---|
7218 | fi |
---|
7219 | if test -z "$F77"; then |
---|
7220 | ac_ct_F77=$F77 |
---|
7221 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
---|
7222 | do |
---|
7223 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
7224 | set dummy $ac_prog; ac_word=$2 |
---|
7225 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7227 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
7228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7229 | else |
---|
7230 | if test -n "$ac_ct_F77"; then |
---|
7231 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
7232 | else |
---|
7233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7234 | for as_dir in $PATH |
---|
7235 | do |
---|
7236 | IFS=$as_save_IFS |
---|
7237 | test -z "$as_dir" && as_dir=. |
---|
7238 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7239 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7240 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
7241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7242 | break 2 |
---|
7243 | fi |
---|
7244 | done |
---|
7245 | done |
---|
7246 | |
---|
7247 | fi |
---|
7248 | fi |
---|
7249 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
7250 | if test -n "$ac_ct_F77"; then |
---|
7251 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
7252 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
7253 | else |
---|
7254 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7255 | echo "${ECHO_T}no" >&6 |
---|
7256 | fi |
---|
7257 | |
---|
7258 | test -n "$ac_ct_F77" && break |
---|
7259 | done |
---|
7260 | |
---|
7261 | F77=$ac_ct_F77 |
---|
7262 | fi |
---|
7263 | |
---|
7264 | |
---|
7265 | # Provide some information about the compiler. |
---|
7266 | echo "$as_me:7266:" \ |
---|
7267 | "checking for Fortran 77 compiler version" >&5 |
---|
7268 | ac_compiler=`set X $ac_compile; echo $2` |
---|
7269 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
7270 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
7271 | ac_status=$? |
---|
7272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7273 | (exit $ac_status); } |
---|
7274 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
7275 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
7276 | ac_status=$? |
---|
7277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7278 | (exit $ac_status); } |
---|
7279 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
7280 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
7281 | ac_status=$? |
---|
7282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7283 | (exit $ac_status); } |
---|
7284 | rm -f a.out |
---|
7285 | |
---|
7286 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
7287 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
7288 | ac_save_ext=$ac_ext |
---|
7289 | ac_ext=F |
---|
7290 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
7291 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
---|
7292 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
7293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7294 | else |
---|
7295 | cat >conftest.$ac_ext <<_ACEOF |
---|
7296 | program main |
---|
7297 | #ifndef __GNUC__ |
---|
7298 | choke me |
---|
7299 | #endif |
---|
7300 | |
---|
7301 | end |
---|
7302 | _ACEOF |
---|
7303 | rm -f conftest.$ac_objext |
---|
7304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7305 | (eval $ac_compile) 2>conftest.er1 |
---|
7306 | ac_status=$? |
---|
7307 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7308 | rm -f conftest.er1 |
---|
7309 | cat conftest.err >&5 |
---|
7310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7311 | (exit $ac_status); } && |
---|
7312 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
7313 | || test ! -s conftest.err' |
---|
7314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7315 | (eval $ac_try) 2>&5 |
---|
7316 | ac_status=$? |
---|
7317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7318 | (exit $ac_status); }; } && |
---|
7319 | { ac_try='test -s conftest.$ac_objext' |
---|
7320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7321 | (eval $ac_try) 2>&5 |
---|
7322 | ac_status=$? |
---|
7323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7324 | (exit $ac_status); }; }; then |
---|
7325 | ac_compiler_gnu=yes |
---|
7326 | else |
---|
7327 | echo "$as_me: failed program was:" >&5 |
---|
7328 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7329 | |
---|
7330 | ac_compiler_gnu=no |
---|
7331 | fi |
---|
7332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7333 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
7334 | |
---|
7335 | fi |
---|
7336 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
7337 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
---|
7338 | ac_ext=$ac_save_ext |
---|
7339 | ac_test_FFLAGS=${FFLAGS+set} |
---|
7340 | ac_save_FFLAGS=$FFLAGS |
---|
7341 | FFLAGS= |
---|
7342 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
7343 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
---|
7344 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
7345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7346 | else |
---|
7347 | FFLAGS=-g |
---|
7348 | cat >conftest.$ac_ext <<_ACEOF |
---|
7349 | program main |
---|
7350 | |
---|
7351 | end |
---|
7352 | _ACEOF |
---|
7353 | rm -f conftest.$ac_objext |
---|
7354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7355 | (eval $ac_compile) 2>conftest.er1 |
---|
7356 | ac_status=$? |
---|
7357 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7358 | rm -f conftest.er1 |
---|
7359 | cat conftest.err >&5 |
---|
7360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7361 | (exit $ac_status); } && |
---|
7362 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
7363 | || test ! -s conftest.err' |
---|
7364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7365 | (eval $ac_try) 2>&5 |
---|
7366 | ac_status=$? |
---|
7367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7368 | (exit $ac_status); }; } && |
---|
7369 | { ac_try='test -s conftest.$ac_objext' |
---|
7370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7371 | (eval $ac_try) 2>&5 |
---|
7372 | ac_status=$? |
---|
7373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7374 | (exit $ac_status); }; }; then |
---|
7375 | ac_cv_prog_f77_g=yes |
---|
7376 | else |
---|
7377 | echo "$as_me: failed program was:" >&5 |
---|
7378 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7379 | |
---|
7380 | ac_cv_prog_f77_g=no |
---|
7381 | fi |
---|
7382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7383 | |
---|
7384 | fi |
---|
7385 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
7386 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
---|
7387 | if test "$ac_test_FFLAGS" = set; then |
---|
7388 | FFLAGS=$ac_save_FFLAGS |
---|
7389 | elif test $ac_cv_prog_f77_g = yes; then |
---|
7390 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
7391 | FFLAGS="-g -O2" |
---|
7392 | else |
---|
7393 | FFLAGS="-g" |
---|
7394 | fi |
---|
7395 | else |
---|
7396 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
7397 | FFLAGS="-O2" |
---|
7398 | else |
---|
7399 | FFLAGS= |
---|
7400 | fi |
---|
7401 | fi |
---|
7402 | |
---|
7403 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
7404 | ac_ext=c |
---|
7405 | ac_cpp='$CPP $CPPFLAGS' |
---|
7406 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7407 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7408 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7409 | |
---|
7410 | |
---|
7411 | |
---|
7412 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
---|
7413 | |
---|
7414 | # find the maximum length of command line arguments |
---|
7415 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
---|
7416 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
---|
7417 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
---|
7418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7419 | else |
---|
7420 | i=0 |
---|
7421 | teststring="ABCD" |
---|
7422 | |
---|
7423 | case $build_os in |
---|
7424 | msdosdjgpp*) |
---|
7425 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
7426 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
7427 | # during glob expansion). Even if it were fixed, the result of this |
---|
7428 | # check would be larger than it should be. |
---|
7429 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
7430 | ;; |
---|
7431 | |
---|
7432 | gnu*) |
---|
7433 | # Under GNU Hurd, this test is not required because there is |
---|
7434 | # no limit to the length of command line arguments. |
---|
7435 | # Libtool will interpret -1 as no limit whatsoever |
---|
7436 | lt_cv_sys_max_cmd_len=-1; |
---|
7437 | ;; |
---|
7438 | |
---|
7439 | cygwin* | mingw*) |
---|
7440 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
7441 | # about 5 minutes as the teststring grows exponentially. |
---|
7442 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
7443 | # you end up with a "frozen" computer, even though with patience |
---|
7444 | # the test eventually succeeds (with a max line length of 256k). |
---|
7445 | # Instead, let's just punt: use the minimum linelength reported by |
---|
7446 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
7447 | lt_cv_sys_max_cmd_len=8192; |
---|
7448 | ;; |
---|
7449 | |
---|
7450 | amigaos*) |
---|
7451 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
7452 | # So we just punt and use a minimum line length of 8192. |
---|
7453 | lt_cv_sys_max_cmd_len=8192; |
---|
7454 | ;; |
---|
7455 | |
---|
7456 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
---|
7457 | # This has been around since 386BSD, at least. Likely further. |
---|
7458 | if test -x /sbin/sysctl; then |
---|
7459 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
---|
7460 | elif test -x /usr/sbin/sysctl; then |
---|
7461 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
---|
7462 | else |
---|
7463 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
---|
7464 | fi |
---|
7465 | # And add a safety zone |
---|
7466 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
7467 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
7468 | ;; |
---|
7469 | |
---|
7470 | interix*) |
---|
7471 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
---|
7472 | lt_cv_sys_max_cmd_len=196608 |
---|
7473 | ;; |
---|
7474 | |
---|
7475 | osf*) |
---|
7476 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
---|
7477 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
---|
7478 | # nice to cause kernel panics so lets avoid the loop below. |
---|
7479 | # First set a reasonable default. |
---|
7480 | lt_cv_sys_max_cmd_len=16384 |
---|
7481 | # |
---|
7482 | if test -x /sbin/sysconfig; then |
---|
7483 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
---|
7484 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
---|
7485 | esac |
---|
7486 | fi |
---|
7487 | ;; |
---|
7488 | sco3.2v5*) |
---|
7489 | lt_cv_sys_max_cmd_len=102400 |
---|
7490 | ;; |
---|
7491 | sysv5* | sco5v6* | sysv4.2uw2*) |
---|
7492 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
---|
7493 | if test -n "$kargmax"; then |
---|
7494 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
---|
7495 | else |
---|
7496 | lt_cv_sys_max_cmd_len=32768 |
---|
7497 | fi |
---|
7498 | ;; |
---|
7499 | *) |
---|
7500 | # If test is not a shell built-in, we'll probably end up computing a |
---|
7501 | # maximum length that is only half of the actual maximum length, but |
---|
7502 | # we can't tell. |
---|
7503 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
---|
7504 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
---|
7505 | = "XX$teststring") >/dev/null 2>&1 && |
---|
7506 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
---|
7507 | lt_cv_sys_max_cmd_len=$new_result && |
---|
7508 | test $i != 17 # 1/2 MB should be enough |
---|
7509 | do |
---|
7510 | i=`expr $i + 1` |
---|
7511 | teststring=$teststring$teststring |
---|
7512 | done |
---|
7513 | teststring= |
---|
7514 | # Add a significant safety factor because C++ compilers can tack on massive |
---|
7515 | # amounts of additional arguments before passing them to the linker. |
---|
7516 | # It appears as though 1/2 is a usable value. |
---|
7517 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
7518 | ;; |
---|
7519 | esac |
---|
7520 | |
---|
7521 | fi |
---|
7522 | |
---|
7523 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
7524 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
7525 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
---|
7526 | else |
---|
7527 | echo "$as_me:$LINENO: result: none" >&5 |
---|
7528 | echo "${ECHO_T}none" >&6 |
---|
7529 | fi |
---|
7530 | |
---|
7531 | |
---|
7532 | |
---|
7533 | |
---|
7534 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
7535 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
---|
7536 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
---|
7537 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
---|
7538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7539 | else |
---|
7540 | |
---|
7541 | # These are sane defaults that work on at least a few old systems. |
---|
7542 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
7543 | |
---|
7544 | # Character class describing NM global symbol codes. |
---|
7545 | symcode='[BCDEGRST]' |
---|
7546 | |
---|
7547 | # Regexp to match symbols that can be accessed directly from C. |
---|
7548 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
7549 | |
---|
7550 | # Transform an extracted symbol line into a proper C declaration |
---|
7551 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
---|
7552 | |
---|
7553 | # Transform an extracted symbol line into symbol name and symbol address |
---|
7554 | 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'" |
---|
7555 | |
---|
7556 | # Define system-specific variables. |
---|
7557 | case $host_os in |
---|
7558 | aix*) |
---|
7559 | symcode='[BCDT]' |
---|
7560 | ;; |
---|
7561 | cygwin* | mingw* | pw32*) |
---|
7562 | symcode='[ABCDGISTW]' |
---|
7563 | ;; |
---|
7564 | hpux*) # Its linker distinguishes data from code symbols |
---|
7565 | if test "$host_cpu" = ia64; then |
---|
7566 | symcode='[ABCDEGRST]' |
---|
7567 | fi |
---|
7568 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
7569 | 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'" |
---|
7570 | ;; |
---|
7571 | linux*) |
---|
7572 | if test "$host_cpu" = ia64; then |
---|
7573 | symcode='[ABCDGIRSTW]' |
---|
7574 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
7575 | 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'" |
---|
7576 | fi |
---|
7577 | ;; |
---|
7578 | irix* | nonstopux*) |
---|
7579 | symcode='[BCDEGRST]' |
---|
7580 | ;; |
---|
7581 | osf*) |
---|
7582 | symcode='[BCDEGQRST]' |
---|
7583 | ;; |
---|
7584 | solaris*) |
---|
7585 | symcode='[BDRT]' |
---|
7586 | ;; |
---|
7587 | sco3.2v5*) |
---|
7588 | symcode='[DT]' |
---|
7589 | ;; |
---|
7590 | sysv4.2uw2*) |
---|
7591 | symcode='[DT]' |
---|
7592 | ;; |
---|
7593 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
---|
7594 | symcode='[ABDT]' |
---|
7595 | ;; |
---|
7596 | sysv4) |
---|
7597 | symcode='[DFNSTU]' |
---|
7598 | ;; |
---|
7599 | esac |
---|
7600 | |
---|
7601 | # Handle CRLF in mingw tool chain |
---|
7602 | opt_cr= |
---|
7603 | case $build_os in |
---|
7604 | mingw*) |
---|
7605 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
7606 | ;; |
---|
7607 | esac |
---|
7608 | |
---|
7609 | # If we're using GNU nm, then use its standard symbol codes. |
---|
7610 | case `$NM -V 2>&1` in |
---|
7611 | *GNU* | *'with BFD'*) |
---|
7612 | symcode='[ABCDGIRSTW]' ;; |
---|
7613 | esac |
---|
7614 | |
---|
7615 | # Try without a prefix undercore, then with it. |
---|
7616 | for ac_symprfx in "" "_"; do |
---|
7617 | |
---|
7618 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
---|
7619 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
---|
7620 | |
---|
7621 | # Write the raw and C identifiers. |
---|
7622 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
---|
7623 | |
---|
7624 | # Check to see that the pipe works correctly. |
---|
7625 | pipe_works=no |
---|
7626 | |
---|
7627 | rm -f conftest* |
---|
7628 | cat > conftest.$ac_ext <<EOF |
---|
7629 | #ifdef __cplusplus |
---|
7630 | extern "C" { |
---|
7631 | #endif |
---|
7632 | char nm_test_var; |
---|
7633 | void nm_test_func(){} |
---|
7634 | #ifdef __cplusplus |
---|
7635 | } |
---|
7636 | #endif |
---|
7637 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
7638 | EOF |
---|
7639 | |
---|
7640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7641 | (eval $ac_compile) 2>&5 |
---|
7642 | ac_status=$? |
---|
7643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7644 | (exit $ac_status); }; then |
---|
7645 | # Now try to grab the symbols. |
---|
7646 | nlist=conftest.nm |
---|
7647 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
---|
7648 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
---|
7649 | ac_status=$? |
---|
7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7651 | (exit $ac_status); } && test -s "$nlist"; then |
---|
7652 | # Try sorting and uniquifying the output. |
---|
7653 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
7654 | mv -f "$nlist"T "$nlist" |
---|
7655 | else |
---|
7656 | rm -f "$nlist"T |
---|
7657 | fi |
---|
7658 | |
---|
7659 | # Make sure that we snagged all the symbols we need. |
---|
7660 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
---|
7661 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
---|
7662 | cat <<EOF > conftest.$ac_ext |
---|
7663 | #ifdef __cplusplus |
---|
7664 | extern "C" { |
---|
7665 | #endif |
---|
7666 | |
---|
7667 | EOF |
---|
7668 | # Now generate the symbol file. |
---|
7669 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
---|
7670 | |
---|
7671 | cat <<EOF >> conftest.$ac_ext |
---|
7672 | #if defined (__STDC__) && __STDC__ |
---|
7673 | # define lt_ptr_t void * |
---|
7674 | #else |
---|
7675 | # define lt_ptr_t char * |
---|
7676 | # define const |
---|
7677 | #endif |
---|
7678 | |
---|
7679 | /* The mapping between symbol names and symbols. */ |
---|
7680 | const struct { |
---|
7681 | const char *name; |
---|
7682 | lt_ptr_t address; |
---|
7683 | } |
---|
7684 | lt_preloaded_symbols[] = |
---|
7685 | { |
---|
7686 | EOF |
---|
7687 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
---|
7688 | cat <<\EOF >> conftest.$ac_ext |
---|
7689 | {0, (lt_ptr_t) 0} |
---|
7690 | }; |
---|
7691 | |
---|
7692 | #ifdef __cplusplus |
---|
7693 | } |
---|
7694 | #endif |
---|
7695 | EOF |
---|
7696 | # Now try linking the two files. |
---|
7697 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
7698 | lt_save_LIBS="$LIBS" |
---|
7699 | lt_save_CFLAGS="$CFLAGS" |
---|
7700 | LIBS="conftstm.$ac_objext" |
---|
7701 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
7702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7703 | (eval $ac_link) 2>&5 |
---|
7704 | ac_status=$? |
---|
7705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7706 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
---|
7707 | pipe_works=yes |
---|
7708 | fi |
---|
7709 | LIBS="$lt_save_LIBS" |
---|
7710 | CFLAGS="$lt_save_CFLAGS" |
---|
7711 | else |
---|
7712 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
7713 | fi |
---|
7714 | else |
---|
7715 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
7716 | fi |
---|
7717 | else |
---|
7718 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
7719 | fi |
---|
7720 | else |
---|
7721 | echo "$progname: failed program was:" >&5 |
---|
7722 | cat conftest.$ac_ext >&5 |
---|
7723 | fi |
---|
7724 | rm -f conftest* conftst* |
---|
7725 | |
---|
7726 | # Do not use the global_symbol_pipe unless it works. |
---|
7727 | if test "$pipe_works" = yes; then |
---|
7728 | break |
---|
7729 | else |
---|
7730 | lt_cv_sys_global_symbol_pipe= |
---|
7731 | fi |
---|
7732 | done |
---|
7733 | |
---|
7734 | fi |
---|
7735 | |
---|
7736 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
7737 | lt_cv_sys_global_symbol_to_cdecl= |
---|
7738 | fi |
---|
7739 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
7740 | echo "$as_me:$LINENO: result: failed" >&5 |
---|
7741 | echo "${ECHO_T}failed" >&6 |
---|
7742 | else |
---|
7743 | echo "$as_me:$LINENO: result: ok" >&5 |
---|
7744 | echo "${ECHO_T}ok" >&6 |
---|
7745 | fi |
---|
7746 | |
---|
7747 | echo "$as_me:$LINENO: checking for objdir" >&5 |
---|
7748 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
---|
7749 | if test "${lt_cv_objdir+set}" = set; then |
---|
7750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7751 | else |
---|
7752 | rm -f .libs 2>/dev/null |
---|
7753 | mkdir .libs 2>/dev/null |
---|
7754 | if test -d .libs; then |
---|
7755 | lt_cv_objdir=.libs |
---|
7756 | else |
---|
7757 | # MS-DOS does not allow filenames that begin with a dot. |
---|
7758 | lt_cv_objdir=_libs |
---|
7759 | fi |
---|
7760 | rmdir .libs 2>/dev/null |
---|
7761 | fi |
---|
7762 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
---|
7763 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
---|
7764 | objdir=$lt_cv_objdir |
---|
7765 | |
---|
7766 | |
---|
7767 | |
---|
7768 | |
---|
7769 | |
---|
7770 | case $host_os in |
---|
7771 | aix3*) |
---|
7772 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
7773 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
7774 | # vanish in a puff of smoke. |
---|
7775 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
7776 | COLLECT_NAMES= |
---|
7777 | export COLLECT_NAMES |
---|
7778 | fi |
---|
7779 | ;; |
---|
7780 | esac |
---|
7781 | |
---|
7782 | # Sed substitution that helps us do robust quoting. It backslashifies |
---|
7783 | # metacharacters that are still active within double-quoted strings. |
---|
7784 | Xsed='sed -e 1s/^X//' |
---|
7785 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
---|
7786 | |
---|
7787 | # Same as above, but do not quote variable references. |
---|
7788 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
---|
7789 | |
---|
7790 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
7791 | # double_quote_subst'ed string. |
---|
7792 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
7793 | |
---|
7794 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
7795 | no_glob_subst='s/\*/\\\*/g' |
---|
7796 | |
---|
7797 | # Constants: |
---|
7798 | rm="rm -f" |
---|
7799 | |
---|
7800 | # Global variables: |
---|
7801 | default_ofile=libtool |
---|
7802 | can_build_shared=yes |
---|
7803 | |
---|
7804 | # All known linkers require a `.a' archive for static linking (except MSVC, |
---|
7805 | # which needs '.lib'). |
---|
7806 | libext=a |
---|
7807 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
7808 | ofile="$default_ofile" |
---|
7809 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
7810 | |
---|
7811 | if test -n "$ac_tool_prefix"; then |
---|
7812 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
---|
7813 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
---|
7814 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7815 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7816 | if test "${ac_cv_prog_AR+set}" = set; then |
---|
7817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7818 | else |
---|
7819 | if test -n "$AR"; then |
---|
7820 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
7821 | else |
---|
7822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7823 | for as_dir in $PATH |
---|
7824 | do |
---|
7825 | IFS=$as_save_IFS |
---|
7826 | test -z "$as_dir" && as_dir=. |
---|
7827 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7828 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7829 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
---|
7830 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7831 | break 2 |
---|
7832 | fi |
---|
7833 | done |
---|
7834 | done |
---|
7835 | |
---|
7836 | fi |
---|
7837 | fi |
---|
7838 | AR=$ac_cv_prog_AR |
---|
7839 | if test -n "$AR"; then |
---|
7840 | echo "$as_me:$LINENO: result: $AR" >&5 |
---|
7841 | echo "${ECHO_T}$AR" >&6 |
---|
7842 | else |
---|
7843 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7844 | echo "${ECHO_T}no" >&6 |
---|
7845 | fi |
---|
7846 | |
---|
7847 | fi |
---|
7848 | if test -z "$ac_cv_prog_AR"; then |
---|
7849 | ac_ct_AR=$AR |
---|
7850 | # Extract the first word of "ar", so it can be a program name with args. |
---|
7851 | set dummy ar; ac_word=$2 |
---|
7852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7854 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
---|
7855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7856 | else |
---|
7857 | if test -n "$ac_ct_AR"; then |
---|
7858 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
7859 | else |
---|
7860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7861 | for as_dir in $PATH |
---|
7862 | do |
---|
7863 | IFS=$as_save_IFS |
---|
7864 | test -z "$as_dir" && as_dir=. |
---|
7865 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7867 | ac_cv_prog_ac_ct_AR="ar" |
---|
7868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7869 | break 2 |
---|
7870 | fi |
---|
7871 | done |
---|
7872 | done |
---|
7873 | |
---|
7874 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
---|
7875 | fi |
---|
7876 | fi |
---|
7877 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
7878 | if test -n "$ac_ct_AR"; then |
---|
7879 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
---|
7880 | echo "${ECHO_T}$ac_ct_AR" >&6 |
---|
7881 | else |
---|
7882 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7883 | echo "${ECHO_T}no" >&6 |
---|
7884 | fi |
---|
7885 | |
---|
7886 | AR=$ac_ct_AR |
---|
7887 | else |
---|
7888 | AR="$ac_cv_prog_AR" |
---|
7889 | fi |
---|
7890 | |
---|
7891 | if test -n "$ac_tool_prefix"; then |
---|
7892 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
7893 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
7894 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7896 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
7897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7898 | else |
---|
7899 | if test -n "$RANLIB"; then |
---|
7900 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
7901 | else |
---|
7902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7903 | for as_dir in $PATH |
---|
7904 | do |
---|
7905 | IFS=$as_save_IFS |
---|
7906 | test -z "$as_dir" && as_dir=. |
---|
7907 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7908 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7909 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
7910 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7911 | break 2 |
---|
7912 | fi |
---|
7913 | done |
---|
7914 | done |
---|
7915 | |
---|
7916 | fi |
---|
7917 | fi |
---|
7918 | RANLIB=$ac_cv_prog_RANLIB |
---|
7919 | if test -n "$RANLIB"; then |
---|
7920 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
7921 | echo "${ECHO_T}$RANLIB" >&6 |
---|
7922 | else |
---|
7923 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7924 | echo "${ECHO_T}no" >&6 |
---|
7925 | fi |
---|
7926 | |
---|
7927 | fi |
---|
7928 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
7929 | ac_ct_RANLIB=$RANLIB |
---|
7930 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
7931 | set dummy ranlib; ac_word=$2 |
---|
7932 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7934 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
7935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7936 | else |
---|
7937 | if test -n "$ac_ct_RANLIB"; then |
---|
7938 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
7939 | else |
---|
7940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7941 | for as_dir in $PATH |
---|
7942 | do |
---|
7943 | IFS=$as_save_IFS |
---|
7944 | test -z "$as_dir" && as_dir=. |
---|
7945 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7946 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7947 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
7948 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7949 | break 2 |
---|
7950 | fi |
---|
7951 | done |
---|
7952 | done |
---|
7953 | |
---|
7954 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
7955 | fi |
---|
7956 | fi |
---|
7957 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
7958 | if test -n "$ac_ct_RANLIB"; then |
---|
7959 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
7960 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
7961 | else |
---|
7962 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7963 | echo "${ECHO_T}no" >&6 |
---|
7964 | fi |
---|
7965 | |
---|
7966 | RANLIB=$ac_ct_RANLIB |
---|
7967 | else |
---|
7968 | RANLIB="$ac_cv_prog_RANLIB" |
---|
7969 | fi |
---|
7970 | |
---|
7971 | if test -n "$ac_tool_prefix"; then |
---|
7972 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
7973 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
7974 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7976 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
7977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7978 | else |
---|
7979 | if test -n "$STRIP"; then |
---|
7980 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
7981 | else |
---|
7982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7983 | for as_dir in $PATH |
---|
7984 | do |
---|
7985 | IFS=$as_save_IFS |
---|
7986 | test -z "$as_dir" && as_dir=. |
---|
7987 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7988 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7989 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
7990 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7991 | break 2 |
---|
7992 | fi |
---|
7993 | done |
---|
7994 | done |
---|
7995 | |
---|
7996 | fi |
---|
7997 | fi |
---|
7998 | STRIP=$ac_cv_prog_STRIP |
---|
7999 | if test -n "$STRIP"; then |
---|
8000 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
8001 | echo "${ECHO_T}$STRIP" >&6 |
---|
8002 | else |
---|
8003 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8004 | echo "${ECHO_T}no" >&6 |
---|
8005 | fi |
---|
8006 | |
---|
8007 | fi |
---|
8008 | if test -z "$ac_cv_prog_STRIP"; then |
---|
8009 | ac_ct_STRIP=$STRIP |
---|
8010 | # Extract the first word of "strip", so it can be a program name with args. |
---|
8011 | set dummy strip; ac_word=$2 |
---|
8012 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
8013 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
8014 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
8015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8016 | else |
---|
8017 | if test -n "$ac_ct_STRIP"; then |
---|
8018 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
8019 | else |
---|
8020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8021 | for as_dir in $PATH |
---|
8022 | do |
---|
8023 | IFS=$as_save_IFS |
---|
8024 | test -z "$as_dir" && as_dir=. |
---|
8025 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8026 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8027 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
8028 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8029 | break 2 |
---|
8030 | fi |
---|
8031 | done |
---|
8032 | done |
---|
8033 | |
---|
8034 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
8035 | fi |
---|
8036 | fi |
---|
8037 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
8038 | if test -n "$ac_ct_STRIP"; then |
---|
8039 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
8040 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
8041 | else |
---|
8042 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8043 | echo "${ECHO_T}no" >&6 |
---|
8044 | fi |
---|
8045 | |
---|
8046 | STRIP=$ac_ct_STRIP |
---|
8047 | else |
---|
8048 | STRIP="$ac_cv_prog_STRIP" |
---|
8049 | fi |
---|
8050 | |
---|
8051 | |
---|
8052 | old_CC="$CC" |
---|
8053 | old_CFLAGS="$CFLAGS" |
---|
8054 | |
---|
8055 | # Set sane defaults for various variables |
---|
8056 | test -z "$AR" && AR=ar |
---|
8057 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
---|
8058 | test -z "$AS" && AS=as |
---|
8059 | test -z "$CC" && CC=cc |
---|
8060 | test -z "$LTCC" && LTCC=$CC |
---|
8061 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
---|
8062 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
8063 | test -z "$LD" && LD=ld |
---|
8064 | test -z "$LN_S" && LN_S="ln -s" |
---|
8065 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
8066 | test -z "$NM" && NM=nm |
---|
8067 | test -z "$SED" && SED=sed |
---|
8068 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
8069 | test -z "$RANLIB" && RANLIB=: |
---|
8070 | test -z "$STRIP" && STRIP=: |
---|
8071 | test -z "$ac_objext" && ac_objext=o |
---|
8072 | |
---|
8073 | # Determine commands to create old-style static archives. |
---|
8074 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
---|
8075 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
8076 | old_postuninstall_cmds= |
---|
8077 | |
---|
8078 | if test -n "$RANLIB"; then |
---|
8079 | case $host_os in |
---|
8080 | openbsd*) |
---|
8081 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
---|
8082 | ;; |
---|
8083 | *) |
---|
8084 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
---|
8085 | ;; |
---|
8086 | esac |
---|
8087 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
8088 | fi |
---|
8089 | |
---|
8090 | for cc_temp in $compiler""; do |
---|
8091 | case $cc_temp in |
---|
8092 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
8093 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
8094 | \-*) ;; |
---|
8095 | *) break;; |
---|
8096 | esac |
---|
8097 | done |
---|
8098 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
8099 | |
---|
8100 | |
---|
8101 | # Only perform the check for file, if the check method requires it |
---|
8102 | case $deplibs_check_method in |
---|
8103 | file_magic*) |
---|
8104 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
8105 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
---|
8106 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
---|
8107 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
8108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8109 | else |
---|
8110 | case $MAGIC_CMD in |
---|
8111 | [\\/*] | ?:[\\/]*) |
---|
8112 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
8113 | ;; |
---|
8114 | *) |
---|
8115 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
8116 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
8117 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
8118 | for ac_dir in $ac_dummy; do |
---|
8119 | IFS="$lt_save_ifs" |
---|
8120 | test -z "$ac_dir" && ac_dir=. |
---|
8121 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
8122 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
8123 | if test -n "$file_magic_test_file"; then |
---|
8124 | case $deplibs_check_method in |
---|
8125 | "file_magic "*) |
---|
8126 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
8127 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
8128 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
8129 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
8130 | : |
---|
8131 | else |
---|
8132 | cat <<EOF 1>&2 |
---|
8133 | |
---|
8134 | *** Warning: the command libtool uses to detect shared libraries, |
---|
8135 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
8136 | *** The result is that libtool may fail to recognize shared libraries |
---|
8137 | *** as such. This will affect the creation of libtool libraries that |
---|
8138 | *** depend on shared libraries, but programs linked with such libtool |
---|
8139 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
8140 | *** may want to report the problem to your system manager and/or to |
---|
8141 | *** bug-libtool@gnu.org |
---|
8142 | |
---|
8143 | EOF |
---|
8144 | fi ;; |
---|
8145 | esac |
---|
8146 | fi |
---|
8147 | break |
---|
8148 | fi |
---|
8149 | done |
---|
8150 | IFS="$lt_save_ifs" |
---|
8151 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
8152 | ;; |
---|
8153 | esac |
---|
8154 | fi |
---|
8155 | |
---|
8156 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
8157 | if test -n "$MAGIC_CMD"; then |
---|
8158 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
8159 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
8160 | else |
---|
8161 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8162 | echo "${ECHO_T}no" >&6 |
---|
8163 | fi |
---|
8164 | |
---|
8165 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
8166 | if test -n "$ac_tool_prefix"; then |
---|
8167 | echo "$as_me:$LINENO: checking for file" >&5 |
---|
8168 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
---|
8169 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
8170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8171 | else |
---|
8172 | case $MAGIC_CMD in |
---|
8173 | [\\/*] | ?:[\\/]*) |
---|
8174 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
8175 | ;; |
---|
8176 | *) |
---|
8177 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
8178 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
8179 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
8180 | for ac_dir in $ac_dummy; do |
---|
8181 | IFS="$lt_save_ifs" |
---|
8182 | test -z "$ac_dir" && ac_dir=. |
---|
8183 | if test -f $ac_dir/file; then |
---|
8184 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
8185 | if test -n "$file_magic_test_file"; then |
---|
8186 | case $deplibs_check_method in |
---|
8187 | "file_magic "*) |
---|
8188 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
8189 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
8190 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
8191 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
8192 | : |
---|
8193 | else |
---|
8194 | cat <<EOF 1>&2 |
---|
8195 | |
---|
8196 | *** Warning: the command libtool uses to detect shared libraries, |
---|
8197 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
8198 | *** The result is that libtool may fail to recognize shared libraries |
---|
8199 | *** as such. This will affect the creation of libtool libraries that |
---|
8200 | *** depend on shared libraries, but programs linked with such libtool |
---|
8201 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
8202 | *** may want to report the problem to your system manager and/or to |
---|
8203 | *** bug-libtool@gnu.org |
---|
8204 | |
---|
8205 | EOF |
---|
8206 | fi ;; |
---|
8207 | esac |
---|
8208 | fi |
---|
8209 | break |
---|
8210 | fi |
---|
8211 | done |
---|
8212 | IFS="$lt_save_ifs" |
---|
8213 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
8214 | ;; |
---|
8215 | esac |
---|
8216 | fi |
---|
8217 | |
---|
8218 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
8219 | if test -n "$MAGIC_CMD"; then |
---|
8220 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
8221 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
8222 | else |
---|
8223 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8224 | echo "${ECHO_T}no" >&6 |
---|
8225 | fi |
---|
8226 | |
---|
8227 | else |
---|
8228 | MAGIC_CMD=: |
---|
8229 | fi |
---|
8230 | fi |
---|
8231 | |
---|
8232 | fi |
---|
8233 | ;; |
---|
8234 | esac |
---|
8235 | |
---|
8236 | enable_dlopen=no |
---|
8237 | enable_win32_dll=no |
---|
8238 | |
---|
8239 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
8240 | if test "${enable_libtool_lock+set}" = set; then |
---|
8241 | enableval="$enable_libtool_lock" |
---|
8242 | |
---|
8243 | fi; |
---|
8244 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
8245 | |
---|
8246 | |
---|
8247 | # Check whether --with-pic or --without-pic was given. |
---|
8248 | if test "${with_pic+set}" = set; then |
---|
8249 | withval="$with_pic" |
---|
8250 | pic_mode="$withval" |
---|
8251 | else |
---|
8252 | pic_mode=default |
---|
8253 | fi; |
---|
8254 | test -z "$pic_mode" && pic_mode=default |
---|
8255 | |
---|
8256 | # Use C for the default configuration in the libtool script |
---|
8257 | tagname= |
---|
8258 | lt_save_CC="$CC" |
---|
8259 | ac_ext=c |
---|
8260 | ac_cpp='$CPP $CPPFLAGS' |
---|
8261 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
8262 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
8263 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
8264 | |
---|
8265 | |
---|
8266 | # Source file extension for C test sources. |
---|
8267 | ac_ext=c |
---|
8268 | |
---|
8269 | # Object file extension for compiled C test sources. |
---|
8270 | objext=o |
---|
8271 | objext=$objext |
---|
8272 | |
---|
8273 | # Code to be used in simple compile tests |
---|
8274 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
8275 | |
---|
8276 | # Code to be used in simple link tests |
---|
8277 | lt_simple_link_test_code='int main(){return(0);}\n' |
---|
8278 | |
---|
8279 | |
---|
8280 | # If no C compiler was specified, use CC. |
---|
8281 | LTCC=${LTCC-"$CC"} |
---|
8282 | |
---|
8283 | # If no C compiler flags were specified, use CFLAGS. |
---|
8284 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
8285 | |
---|
8286 | # Allow CC to be a program name with arguments. |
---|
8287 | compiler=$CC |
---|
8288 | |
---|
8289 | |
---|
8290 | # save warnings/boilerplate of simple test code |
---|
8291 | ac_outfile=conftest.$ac_objext |
---|
8292 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
8293 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
8294 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
8295 | $rm conftest* |
---|
8296 | |
---|
8297 | ac_outfile=conftest.$ac_objext |
---|
8298 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
8299 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
8300 | _lt_linker_boilerplate=`cat conftest.err` |
---|
8301 | $rm conftest* |
---|
8302 | |
---|
8303 | |
---|
8304 | ## CAVEAT EMPTOR: |
---|
8305 | ## There is no encapsulation within the following macros, do not change |
---|
8306 | ## the running order or otherwise move them around unless you know exactly |
---|
8307 | ## what you are doing... |
---|
8308 | |
---|
8309 | lt_prog_compiler_no_builtin_flag= |
---|
8310 | |
---|
8311 | if test "$GCC" = yes; then |
---|
8312 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
---|
8313 | |
---|
8314 | |
---|
8315 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
8316 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
---|
8317 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
8318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8319 | else |
---|
8320 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
8321 | ac_outfile=conftest.$ac_objext |
---|
8322 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8323 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
8324 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8325 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8326 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8327 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8328 | # The option is referenced via a variable to avoid confusing sed. |
---|
8329 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8330 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8331 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8332 | -e 's:$: $lt_compiler_flag:'` |
---|
8333 | (eval echo "\"\$as_me:8333: $lt_compile\"" >&5) |
---|
8334 | (eval "$lt_compile" 2>conftest.err) |
---|
8335 | ac_status=$? |
---|
8336 | cat conftest.err >&5 |
---|
8337 | echo "$as_me:8337: \$? = $ac_status" >&5 |
---|
8338 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
8339 | # The compiler can only warn and ignore the option if not recognized |
---|
8340 | # So say no if there are warnings other than the usual output. |
---|
8341 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
8342 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8343 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
8344 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
8345 | fi |
---|
8346 | fi |
---|
8347 | $rm conftest* |
---|
8348 | |
---|
8349 | fi |
---|
8350 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
8351 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
---|
8352 | |
---|
8353 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
8354 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
8355 | else |
---|
8356 | : |
---|
8357 | fi |
---|
8358 | |
---|
8359 | fi |
---|
8360 | |
---|
8361 | lt_prog_compiler_wl= |
---|
8362 | lt_prog_compiler_pic= |
---|
8363 | lt_prog_compiler_static= |
---|
8364 | |
---|
8365 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
8366 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
8367 | |
---|
8368 | if test "$GCC" = yes; then |
---|
8369 | lt_prog_compiler_wl='-Wl,' |
---|
8370 | lt_prog_compiler_static='-static' |
---|
8371 | |
---|
8372 | case $host_os in |
---|
8373 | aix*) |
---|
8374 | # All AIX code is PIC. |
---|
8375 | if test "$host_cpu" = ia64; then |
---|
8376 | # AIX 5 now supports IA64 processor |
---|
8377 | lt_prog_compiler_static='-Bstatic' |
---|
8378 | fi |
---|
8379 | ;; |
---|
8380 | |
---|
8381 | amigaos*) |
---|
8382 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
8383 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
8384 | # like `-m68040'. |
---|
8385 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
8386 | ;; |
---|
8387 | |
---|
8388 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
8389 | # PIC is the default for these OSes. |
---|
8390 | ;; |
---|
8391 | |
---|
8392 | mingw* | pw32* | os2*) |
---|
8393 | # This hack is so that the source file can tell whether it is being |
---|
8394 | # built for inclusion in a dll (and should export symbols for example). |
---|
8395 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
8396 | ;; |
---|
8397 | |
---|
8398 | darwin* | rhapsody*) |
---|
8399 | # PIC is the default on this platform |
---|
8400 | # Common symbols not allowed in MH_DYLIB files |
---|
8401 | lt_prog_compiler_pic='-fno-common' |
---|
8402 | ;; |
---|
8403 | |
---|
8404 | interix3*) |
---|
8405 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
8406 | # Instead, we relocate shared libraries at runtime. |
---|
8407 | ;; |
---|
8408 | |
---|
8409 | msdosdjgpp*) |
---|
8410 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
8411 | # on systems that don't support them. |
---|
8412 | lt_prog_compiler_can_build_shared=no |
---|
8413 | enable_shared=no |
---|
8414 | ;; |
---|
8415 | |
---|
8416 | sysv4*MP*) |
---|
8417 | if test -d /usr/nec; then |
---|
8418 | lt_prog_compiler_pic=-Kconform_pic |
---|
8419 | fi |
---|
8420 | ;; |
---|
8421 | |
---|
8422 | hpux*) |
---|
8423 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
8424 | # not for PA HP-UX. |
---|
8425 | case $host_cpu in |
---|
8426 | hppa*64*|ia64*) |
---|
8427 | # +Z the default |
---|
8428 | ;; |
---|
8429 | *) |
---|
8430 | lt_prog_compiler_pic='-fPIC' |
---|
8431 | ;; |
---|
8432 | esac |
---|
8433 | ;; |
---|
8434 | |
---|
8435 | *) |
---|
8436 | lt_prog_compiler_pic='-fPIC' |
---|
8437 | ;; |
---|
8438 | esac |
---|
8439 | else |
---|
8440 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
8441 | case $host_os in |
---|
8442 | aix*) |
---|
8443 | lt_prog_compiler_wl='-Wl,' |
---|
8444 | if test "$host_cpu" = ia64; then |
---|
8445 | # AIX 5 now supports IA64 processor |
---|
8446 | lt_prog_compiler_static='-Bstatic' |
---|
8447 | else |
---|
8448 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
8449 | fi |
---|
8450 | ;; |
---|
8451 | darwin*) |
---|
8452 | # PIC is the default on this platform |
---|
8453 | # Common symbols not allowed in MH_DYLIB files |
---|
8454 | case $cc_basename in |
---|
8455 | xlc*) |
---|
8456 | lt_prog_compiler_pic='-qnocommon' |
---|
8457 | lt_prog_compiler_wl='-Wl,' |
---|
8458 | ;; |
---|
8459 | esac |
---|
8460 | ;; |
---|
8461 | |
---|
8462 | mingw* | pw32* | os2*) |
---|
8463 | # This hack is so that the source file can tell whether it is being |
---|
8464 | # built for inclusion in a dll (and should export symbols for example). |
---|
8465 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
8466 | ;; |
---|
8467 | |
---|
8468 | hpux9* | hpux10* | hpux11*) |
---|
8469 | lt_prog_compiler_wl='-Wl,' |
---|
8470 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
8471 | # not for PA HP-UX. |
---|
8472 | case $host_cpu in |
---|
8473 | hppa*64*|ia64*) |
---|
8474 | # +Z the default |
---|
8475 | ;; |
---|
8476 | *) |
---|
8477 | lt_prog_compiler_pic='+Z' |
---|
8478 | ;; |
---|
8479 | esac |
---|
8480 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
8481 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
8482 | ;; |
---|
8483 | |
---|
8484 | irix5* | irix6* | nonstopux*) |
---|
8485 | lt_prog_compiler_wl='-Wl,' |
---|
8486 | # PIC (with -KPIC) is the default. |
---|
8487 | lt_prog_compiler_static='-non_shared' |
---|
8488 | ;; |
---|
8489 | |
---|
8490 | newsos6) |
---|
8491 | lt_prog_compiler_pic='-KPIC' |
---|
8492 | lt_prog_compiler_static='-Bstatic' |
---|
8493 | ;; |
---|
8494 | |
---|
8495 | linux*) |
---|
8496 | case $cc_basename in |
---|
8497 | icc* | ecc*) |
---|
8498 | lt_prog_compiler_wl='-Wl,' |
---|
8499 | lt_prog_compiler_pic='-KPIC' |
---|
8500 | lt_prog_compiler_static='-static' |
---|
8501 | ;; |
---|
8502 | pgcc* | pgf77* | pgf90* | pgf95*) |
---|
8503 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
8504 | # which looks to be a dead project) |
---|
8505 | lt_prog_compiler_wl='-Wl,' |
---|
8506 | lt_prog_compiler_pic='-fpic' |
---|
8507 | lt_prog_compiler_static='-Bstatic' |
---|
8508 | ;; |
---|
8509 | ccc*) |
---|
8510 | lt_prog_compiler_wl='-Wl,' |
---|
8511 | # All Alpha code is PIC. |
---|
8512 | lt_prog_compiler_static='-non_shared' |
---|
8513 | ;; |
---|
8514 | esac |
---|
8515 | ;; |
---|
8516 | |
---|
8517 | osf3* | osf4* | osf5*) |
---|
8518 | lt_prog_compiler_wl='-Wl,' |
---|
8519 | # All OSF/1 code is PIC. |
---|
8520 | lt_prog_compiler_static='-non_shared' |
---|
8521 | ;; |
---|
8522 | |
---|
8523 | solaris*) |
---|
8524 | lt_prog_compiler_pic='-KPIC' |
---|
8525 | lt_prog_compiler_static='-Bstatic' |
---|
8526 | case $cc_basename in |
---|
8527 | f77* | f90* | f95*) |
---|
8528 | lt_prog_compiler_wl='-Qoption ld ';; |
---|
8529 | *) |
---|
8530 | lt_prog_compiler_wl='-Wl,';; |
---|
8531 | esac |
---|
8532 | ;; |
---|
8533 | |
---|
8534 | sunos4*) |
---|
8535 | lt_prog_compiler_wl='-Qoption ld ' |
---|
8536 | lt_prog_compiler_pic='-PIC' |
---|
8537 | lt_prog_compiler_static='-Bstatic' |
---|
8538 | ;; |
---|
8539 | |
---|
8540 | sysv4 | sysv4.2uw2* | sysv4.3*) |
---|
8541 | lt_prog_compiler_wl='-Wl,' |
---|
8542 | lt_prog_compiler_pic='-KPIC' |
---|
8543 | lt_prog_compiler_static='-Bstatic' |
---|
8544 | ;; |
---|
8545 | |
---|
8546 | sysv4*MP*) |
---|
8547 | if test -d /usr/nec ;then |
---|
8548 | lt_prog_compiler_pic='-Kconform_pic' |
---|
8549 | lt_prog_compiler_static='-Bstatic' |
---|
8550 | fi |
---|
8551 | ;; |
---|
8552 | |
---|
8553 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
8554 | lt_prog_compiler_wl='-Wl,' |
---|
8555 | lt_prog_compiler_pic='-KPIC' |
---|
8556 | lt_prog_compiler_static='-Bstatic' |
---|
8557 | ;; |
---|
8558 | |
---|
8559 | unicos*) |
---|
8560 | lt_prog_compiler_wl='-Wl,' |
---|
8561 | lt_prog_compiler_can_build_shared=no |
---|
8562 | ;; |
---|
8563 | |
---|
8564 | uts4*) |
---|
8565 | lt_prog_compiler_pic='-pic' |
---|
8566 | lt_prog_compiler_static='-Bstatic' |
---|
8567 | ;; |
---|
8568 | |
---|
8569 | *) |
---|
8570 | lt_prog_compiler_can_build_shared=no |
---|
8571 | ;; |
---|
8572 | esac |
---|
8573 | fi |
---|
8574 | |
---|
8575 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
---|
8576 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
---|
8577 | |
---|
8578 | # |
---|
8579 | # Check to make sure the PIC flag actually works. |
---|
8580 | # |
---|
8581 | if test -n "$lt_prog_compiler_pic"; then |
---|
8582 | |
---|
8583 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
8584 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
---|
8585 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
---|
8586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8587 | else |
---|
8588 | lt_prog_compiler_pic_works=no |
---|
8589 | ac_outfile=conftest.$ac_objext |
---|
8590 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8591 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
8592 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8593 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8594 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8595 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8596 | # The option is referenced via a variable to avoid confusing sed. |
---|
8597 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8598 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8599 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8600 | -e 's:$: $lt_compiler_flag:'` |
---|
8601 | (eval echo "\"\$as_me:8601: $lt_compile\"" >&5) |
---|
8602 | (eval "$lt_compile" 2>conftest.err) |
---|
8603 | ac_status=$? |
---|
8604 | cat conftest.err >&5 |
---|
8605 | echo "$as_me:8605: \$? = $ac_status" >&5 |
---|
8606 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
8607 | # The compiler can only warn and ignore the option if not recognized |
---|
8608 | # So say no if there are warnings other than the usual output. |
---|
8609 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
8610 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8611 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
8612 | lt_prog_compiler_pic_works=yes |
---|
8613 | fi |
---|
8614 | fi |
---|
8615 | $rm conftest* |
---|
8616 | |
---|
8617 | fi |
---|
8618 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
---|
8619 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
---|
8620 | |
---|
8621 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
---|
8622 | case $lt_prog_compiler_pic in |
---|
8623 | "" | " "*) ;; |
---|
8624 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
8625 | esac |
---|
8626 | else |
---|
8627 | lt_prog_compiler_pic= |
---|
8628 | lt_prog_compiler_can_build_shared=no |
---|
8629 | fi |
---|
8630 | |
---|
8631 | fi |
---|
8632 | case $host_os in |
---|
8633 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
8634 | *djgpp*) |
---|
8635 | lt_prog_compiler_pic= |
---|
8636 | ;; |
---|
8637 | *) |
---|
8638 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
8639 | ;; |
---|
8640 | esac |
---|
8641 | |
---|
8642 | # |
---|
8643 | # Check to make sure the static flag actually works. |
---|
8644 | # |
---|
8645 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
---|
8646 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
8647 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
---|
8648 | if test "${lt_prog_compiler_static_works+set}" = set; then |
---|
8649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8650 | else |
---|
8651 | lt_prog_compiler_static_works=no |
---|
8652 | save_LDFLAGS="$LDFLAGS" |
---|
8653 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
8654 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
8655 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
8656 | # The linker can only warn and ignore the option if not recognized |
---|
8657 | # So say no if there are warnings |
---|
8658 | if test -s conftest.err; then |
---|
8659 | # Append any errors to the config.log. |
---|
8660 | cat conftest.err 1>&5 |
---|
8661 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
---|
8662 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8663 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
8664 | lt_prog_compiler_static_works=yes |
---|
8665 | fi |
---|
8666 | else |
---|
8667 | lt_prog_compiler_static_works=yes |
---|
8668 | fi |
---|
8669 | fi |
---|
8670 | $rm conftest* |
---|
8671 | LDFLAGS="$save_LDFLAGS" |
---|
8672 | |
---|
8673 | fi |
---|
8674 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
---|
8675 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
---|
8676 | |
---|
8677 | if test x"$lt_prog_compiler_static_works" = xyes; then |
---|
8678 | : |
---|
8679 | else |
---|
8680 | lt_prog_compiler_static= |
---|
8681 | fi |
---|
8682 | |
---|
8683 | |
---|
8684 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
8685 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
8686 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
---|
8687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8688 | else |
---|
8689 | lt_cv_prog_compiler_c_o=no |
---|
8690 | $rm -r conftest 2>/dev/null |
---|
8691 | mkdir conftest |
---|
8692 | cd conftest |
---|
8693 | mkdir out |
---|
8694 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8695 | |
---|
8696 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
8697 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8698 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8699 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8700 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8701 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8702 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8703 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8704 | -e 's:$: $lt_compiler_flag:'` |
---|
8705 | (eval echo "\"\$as_me:8705: $lt_compile\"" >&5) |
---|
8706 | (eval "$lt_compile" 2>out/conftest.err) |
---|
8707 | ac_status=$? |
---|
8708 | cat out/conftest.err >&5 |
---|
8709 | echo "$as_me:8709: \$? = $ac_status" >&5 |
---|
8710 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
8711 | then |
---|
8712 | # The compiler can only warn and ignore the option if not recognized |
---|
8713 | # So say no if there are warnings |
---|
8714 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
---|
8715 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
8716 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
8717 | lt_cv_prog_compiler_c_o=yes |
---|
8718 | fi |
---|
8719 | fi |
---|
8720 | chmod u+w . 2>&5 |
---|
8721 | $rm conftest* |
---|
8722 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
8723 | # template instantiation |
---|
8724 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
8725 | $rm out/* && rmdir out |
---|
8726 | cd .. |
---|
8727 | rmdir conftest |
---|
8728 | $rm conftest* |
---|
8729 | |
---|
8730 | fi |
---|
8731 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
8732 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
---|
8733 | |
---|
8734 | |
---|
8735 | hard_links="nottested" |
---|
8736 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
8737 | # do not overwrite the value of need_locks provided by the user |
---|
8738 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
8739 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
8740 | hard_links=yes |
---|
8741 | $rm conftest* |
---|
8742 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8743 | touch conftest.a |
---|
8744 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
8745 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8746 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
8747 | echo "${ECHO_T}$hard_links" >&6 |
---|
8748 | if test "$hard_links" = no; then |
---|
8749 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
8750 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
8751 | need_locks=warn |
---|
8752 | fi |
---|
8753 | else |
---|
8754 | need_locks=no |
---|
8755 | fi |
---|
8756 | |
---|
8757 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
8758 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
8759 | |
---|
8760 | runpath_var= |
---|
8761 | allow_undefined_flag= |
---|
8762 | enable_shared_with_static_runtimes=no |
---|
8763 | archive_cmds= |
---|
8764 | archive_expsym_cmds= |
---|
8765 | old_archive_From_new_cmds= |
---|
8766 | old_archive_from_expsyms_cmds= |
---|
8767 | export_dynamic_flag_spec= |
---|
8768 | whole_archive_flag_spec= |
---|
8769 | thread_safe_flag_spec= |
---|
8770 | hardcode_libdir_flag_spec= |
---|
8771 | hardcode_libdir_flag_spec_ld= |
---|
8772 | hardcode_libdir_separator= |
---|
8773 | hardcode_direct=no |
---|
8774 | hardcode_minus_L=no |
---|
8775 | hardcode_shlibpath_var=unsupported |
---|
8776 | link_all_deplibs=unknown |
---|
8777 | hardcode_automatic=no |
---|
8778 | module_cmds= |
---|
8779 | module_expsym_cmds= |
---|
8780 | always_export_symbols=no |
---|
8781 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8782 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
8783 | # included in the symbol list |
---|
8784 | include_expsyms= |
---|
8785 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
8786 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
8787 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
8788 | # as well as any symbol that contains `d'. |
---|
8789 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
---|
8790 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
8791 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
8792 | # the symbol is explicitly referenced. Since portable code cannot |
---|
8793 | # rely on this symbol name, it's probably fine to never include it in |
---|
8794 | # preloaded symbol tables. |
---|
8795 | extract_expsyms_cmds= |
---|
8796 | # Just being paranoid about ensuring that cc_basename is set. |
---|
8797 | for cc_temp in $compiler""; do |
---|
8798 | case $cc_temp in |
---|
8799 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
8800 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
8801 | \-*) ;; |
---|
8802 | *) break;; |
---|
8803 | esac |
---|
8804 | done |
---|
8805 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
8806 | |
---|
8807 | case $host_os in |
---|
8808 | cygwin* | mingw* | pw32*) |
---|
8809 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
8810 | # When not using gcc, we currently assume that we are using |
---|
8811 | # Microsoft Visual C++. |
---|
8812 | if test "$GCC" != yes; then |
---|
8813 | with_gnu_ld=no |
---|
8814 | fi |
---|
8815 | ;; |
---|
8816 | interix*) |
---|
8817 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
---|
8818 | with_gnu_ld=yes |
---|
8819 | ;; |
---|
8820 | openbsd*) |
---|
8821 | with_gnu_ld=no |
---|
8822 | ;; |
---|
8823 | esac |
---|
8824 | |
---|
8825 | ld_shlibs=yes |
---|
8826 | if test "$with_gnu_ld" = yes; then |
---|
8827 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
8828 | wlarc='${wl}' |
---|
8829 | |
---|
8830 | # Set some defaults for GNU ld with shared library support. These |
---|
8831 | # are reset later if shared libraries are not supported. Putting them |
---|
8832 | # here allows them to be overridden if necessary. |
---|
8833 | runpath_var=LD_RUN_PATH |
---|
8834 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
---|
8835 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
8836 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
8837 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
8838 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
8839 | else |
---|
8840 | whole_archive_flag_spec= |
---|
8841 | fi |
---|
8842 | supports_anon_versioning=no |
---|
8843 | case `$LD -v 2>/dev/null` in |
---|
8844 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
8845 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
8846 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
8847 | *\ 2.11.*) ;; # other 2.11 versions |
---|
8848 | *) supports_anon_versioning=yes ;; |
---|
8849 | esac |
---|
8850 | |
---|
8851 | # See if GNU ld supports shared libraries. |
---|
8852 | case $host_os in |
---|
8853 | aix3* | aix4* | aix5*) |
---|
8854 | # On AIX/PPC, the GNU linker is very broken |
---|
8855 | if test "$host_cpu" != ia64; then |
---|
8856 | ld_shlibs=no |
---|
8857 | cat <<EOF 1>&2 |
---|
8858 | |
---|
8859 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
8860 | *** to be unable to reliably create shared libraries on AIX. |
---|
8861 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
8862 | *** really care for shared libraries, you may want to modify your PATH |
---|
8863 | *** so that a non-GNU linker is found, and then restart. |
---|
8864 | |
---|
8865 | EOF |
---|
8866 | fi |
---|
8867 | ;; |
---|
8868 | |
---|
8869 | amigaos*) |
---|
8870 | 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)' |
---|
8871 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8872 | hardcode_minus_L=yes |
---|
8873 | |
---|
8874 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
8875 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
8876 | # to version 4, is to share data among multiple programs linked |
---|
8877 | # with the same dynamic library. Since this doesn't match the |
---|
8878 | # behavior of shared libraries on other platforms, we can't use |
---|
8879 | # them. |
---|
8880 | ld_shlibs=no |
---|
8881 | ;; |
---|
8882 | |
---|
8883 | beos*) |
---|
8884 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8885 | allow_undefined_flag=unsupported |
---|
8886 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
8887 | # support --undefined. This deserves some investigation. FIXME |
---|
8888 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8889 | else |
---|
8890 | ld_shlibs=no |
---|
8891 | fi |
---|
8892 | ;; |
---|
8893 | |
---|
8894 | cygwin* | mingw* | pw32*) |
---|
8895 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
8896 | # as there is no search path for DLLs. |
---|
8897 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8898 | allow_undefined_flag=unsupported |
---|
8899 | always_export_symbols=no |
---|
8900 | enable_shared_with_static_runtimes=yes |
---|
8901 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8902 | |
---|
8903 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
8904 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
8905 | # If the export-symbols file already is a .def file (1st line |
---|
8906 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
8907 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
8908 | cp $export_symbols $output_objdir/$soname.def; |
---|
8909 | else |
---|
8910 | echo EXPORTS > $output_objdir/$soname.def; |
---|
8911 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
8912 | fi~ |
---|
8913 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
8914 | else |
---|
8915 | ld_shlibs=no |
---|
8916 | fi |
---|
8917 | ;; |
---|
8918 | |
---|
8919 | interix3*) |
---|
8920 | hardcode_direct=no |
---|
8921 | hardcode_shlibpath_var=no |
---|
8922 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
8923 | export_dynamic_flag_spec='${wl}-E' |
---|
8924 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
8925 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
8926 | # default) and relocated if they conflict, which is a slow very memory |
---|
8927 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
8928 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
8929 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
8930 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
8931 | 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' |
---|
8932 | ;; |
---|
8933 | |
---|
8934 | linux*) |
---|
8935 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8936 | tmp_addflag= |
---|
8937 | case $cc_basename,$host_cpu in |
---|
8938 | pgcc*) # Portland Group C compiler |
---|
8939 | 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' |
---|
8940 | tmp_addflag=' $pic_flag' |
---|
8941 | ;; |
---|
8942 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
---|
8943 | 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' |
---|
8944 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
8945 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
8946 | tmp_addflag=' -i_dynamic' ;; |
---|
8947 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
8948 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
8949 | ifc* | ifort*) # Intel Fortran compiler |
---|
8950 | tmp_addflag=' -nofor_main' ;; |
---|
8951 | esac |
---|
8952 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8953 | |
---|
8954 | if test $supports_anon_versioning = yes; then |
---|
8955 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
8956 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
8957 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
8958 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
8959 | fi |
---|
8960 | else |
---|
8961 | ld_shlibs=no |
---|
8962 | fi |
---|
8963 | ;; |
---|
8964 | |
---|
8965 | netbsd*) |
---|
8966 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
8967 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
8968 | wlarc= |
---|
8969 | else |
---|
8970 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8971 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8972 | fi |
---|
8973 | ;; |
---|
8974 | |
---|
8975 | solaris*) |
---|
8976 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
8977 | ld_shlibs=no |
---|
8978 | cat <<EOF 1>&2 |
---|
8979 | |
---|
8980 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
8981 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
8982 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
8983 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
8984 | *** your PATH or compiler configuration so that the native linker is |
---|
8985 | *** used, and then restart. |
---|
8986 | |
---|
8987 | EOF |
---|
8988 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8989 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8990 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8991 | else |
---|
8992 | ld_shlibs=no |
---|
8993 | fi |
---|
8994 | ;; |
---|
8995 | |
---|
8996 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
---|
8997 | case `$LD -v 2>&1` in |
---|
8998 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
---|
8999 | ld_shlibs=no |
---|
9000 | cat <<_LT_EOF 1>&2 |
---|
9001 | |
---|
9002 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
---|
9003 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
---|
9004 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
9005 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
---|
9006 | *** your PATH or compiler configuration so that the native linker is |
---|
9007 | *** used, and then restart. |
---|
9008 | |
---|
9009 | _LT_EOF |
---|
9010 | ;; |
---|
9011 | *) |
---|
9012 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
9013 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
---|
9014 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
---|
9015 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
---|
9016 | else |
---|
9017 | ld_shlibs=no |
---|
9018 | fi |
---|
9019 | ;; |
---|
9020 | esac |
---|
9021 | ;; |
---|
9022 | |
---|
9023 | sunos4*) |
---|
9024 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
9025 | wlarc= |
---|
9026 | hardcode_direct=yes |
---|
9027 | hardcode_shlibpath_var=no |
---|
9028 | ;; |
---|
9029 | |
---|
9030 | *) |
---|
9031 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
9032 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9033 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
9034 | else |
---|
9035 | ld_shlibs=no |
---|
9036 | fi |
---|
9037 | ;; |
---|
9038 | esac |
---|
9039 | |
---|
9040 | if test "$ld_shlibs" = no; then |
---|
9041 | runpath_var= |
---|
9042 | hardcode_libdir_flag_spec= |
---|
9043 | export_dynamic_flag_spec= |
---|
9044 | whole_archive_flag_spec= |
---|
9045 | fi |
---|
9046 | else |
---|
9047 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
9048 | case $host_os in |
---|
9049 | aix3*) |
---|
9050 | allow_undefined_flag=unsupported |
---|
9051 | always_export_symbols=yes |
---|
9052 | 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' |
---|
9053 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
9054 | # are no directories specified by -L. |
---|
9055 | hardcode_minus_L=yes |
---|
9056 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
---|
9057 | # Neither direct hardcoding nor static linking is supported with a |
---|
9058 | # broken collect2. |
---|
9059 | hardcode_direct=unsupported |
---|
9060 | fi |
---|
9061 | ;; |
---|
9062 | |
---|
9063 | aix4* | aix5*) |
---|
9064 | if test "$host_cpu" = ia64; then |
---|
9065 | # On IA64, the linker does run time linking by default, so we don't |
---|
9066 | # have to do anything special. |
---|
9067 | aix_use_runtimelinking=no |
---|
9068 | exp_sym_flag='-Bexport' |
---|
9069 | no_entry_flag="" |
---|
9070 | else |
---|
9071 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
9072 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
9073 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
9074 | 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' |
---|
9075 | else |
---|
9076 | 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' |
---|
9077 | fi |
---|
9078 | aix_use_runtimelinking=no |
---|
9079 | |
---|
9080 | # Test if we are trying to use run time linking or normal |
---|
9081 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
9082 | # need to do runtime linking. |
---|
9083 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
9084 | for ld_flag in $LDFLAGS; do |
---|
9085 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
9086 | aix_use_runtimelinking=yes |
---|
9087 | break |
---|
9088 | fi |
---|
9089 | done |
---|
9090 | ;; |
---|
9091 | esac |
---|
9092 | |
---|
9093 | exp_sym_flag='-bexport' |
---|
9094 | no_entry_flag='-bnoentry' |
---|
9095 | fi |
---|
9096 | |
---|
9097 | # When large executables or shared objects are built, AIX ld can |
---|
9098 | # have problems creating the table of contents. If linking a library |
---|
9099 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
9100 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
9101 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
9102 | |
---|
9103 | archive_cmds='' |
---|
9104 | hardcode_direct=yes |
---|
9105 | hardcode_libdir_separator=':' |
---|
9106 | link_all_deplibs=yes |
---|
9107 | |
---|
9108 | if test "$GCC" = yes; then |
---|
9109 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
9110 | # We only want to do this on AIX 4.2 and lower, the check |
---|
9111 | # below for broken collect2 doesn't work under 4.3+ |
---|
9112 | collect2name=`${CC} -print-prog-name=collect2` |
---|
9113 | if test -f "$collect2name" && \ |
---|
9114 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
9115 | then |
---|
9116 | # We have reworked collect2 |
---|
9117 | hardcode_direct=yes |
---|
9118 | else |
---|
9119 | # We have old collect2 |
---|
9120 | hardcode_direct=unsupported |
---|
9121 | # It fails to find uninstalled libraries when the uninstalled |
---|
9122 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
9123 | # to unsupported forces relinking |
---|
9124 | hardcode_minus_L=yes |
---|
9125 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9126 | hardcode_libdir_separator= |
---|
9127 | fi |
---|
9128 | ;; |
---|
9129 | esac |
---|
9130 | shared_flag='-shared' |
---|
9131 | if test "$aix_use_runtimelinking" = yes; then |
---|
9132 | shared_flag="$shared_flag "'${wl}-G' |
---|
9133 | fi |
---|
9134 | else |
---|
9135 | # not using gcc |
---|
9136 | if test "$host_cpu" = ia64; then |
---|
9137 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
9138 | # chokes on -Wl,-G. The following line is correct: |
---|
9139 | shared_flag='-G' |
---|
9140 | else |
---|
9141 | if test "$aix_use_runtimelinking" = yes; then |
---|
9142 | shared_flag='${wl}-G' |
---|
9143 | else |
---|
9144 | shared_flag='${wl}-bM:SRE' |
---|
9145 | fi |
---|
9146 | fi |
---|
9147 | fi |
---|
9148 | |
---|
9149 | # It seems that -bexpall does not export symbols beginning with |
---|
9150 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
9151 | always_export_symbols=yes |
---|
9152 | if test "$aix_use_runtimelinking" = yes; then |
---|
9153 | # Warning - without using the other runtime loading flags (-brtl), |
---|
9154 | # -berok will link without error, but may produce a broken library. |
---|
9155 | allow_undefined_flag='-berok' |
---|
9156 | # Determine the default libpath from the value encoded in an empty executable. |
---|
9157 | cat >conftest.$ac_ext <<_ACEOF |
---|
9158 | /* confdefs.h. */ |
---|
9159 | _ACEOF |
---|
9160 | cat confdefs.h >>conftest.$ac_ext |
---|
9161 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9162 | /* end confdefs.h. */ |
---|
9163 | |
---|
9164 | int |
---|
9165 | main () |
---|
9166 | { |
---|
9167 | |
---|
9168 | ; |
---|
9169 | return 0; |
---|
9170 | } |
---|
9171 | _ACEOF |
---|
9172 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9174 | (eval $ac_link) 2>conftest.er1 |
---|
9175 | ac_status=$? |
---|
9176 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9177 | rm -f conftest.er1 |
---|
9178 | cat conftest.err >&5 |
---|
9179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9180 | (exit $ac_status); } && |
---|
9181 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9182 | || test ! -s conftest.err' |
---|
9183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9184 | (eval $ac_try) 2>&5 |
---|
9185 | ac_status=$? |
---|
9186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9187 | (exit $ac_status); }; } && |
---|
9188 | { ac_try='test -s conftest$ac_exeext' |
---|
9189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9190 | (eval $ac_try) 2>&5 |
---|
9191 | ac_status=$? |
---|
9192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9193 | (exit $ac_status); }; }; then |
---|
9194 | |
---|
9195 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
9196 | }'` |
---|
9197 | # Check for a 64-bit object if we didn't find anything. |
---|
9198 | 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; } |
---|
9199 | }'`; fi |
---|
9200 | else |
---|
9201 | echo "$as_me: failed program was:" >&5 |
---|
9202 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9203 | |
---|
9204 | fi |
---|
9205 | rm -f conftest.err conftest.$ac_objext \ |
---|
9206 | conftest$ac_exeext conftest.$ac_ext |
---|
9207 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
9208 | |
---|
9209 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
9210 | 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" |
---|
9211 | else |
---|
9212 | if test "$host_cpu" = ia64; then |
---|
9213 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
9214 | allow_undefined_flag="-z nodefs" |
---|
9215 | 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" |
---|
9216 | else |
---|
9217 | # Determine the default libpath from the value encoded in an empty executable. |
---|
9218 | cat >conftest.$ac_ext <<_ACEOF |
---|
9219 | /* confdefs.h. */ |
---|
9220 | _ACEOF |
---|
9221 | cat confdefs.h >>conftest.$ac_ext |
---|
9222 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9223 | /* end confdefs.h. */ |
---|
9224 | |
---|
9225 | int |
---|
9226 | main () |
---|
9227 | { |
---|
9228 | |
---|
9229 | ; |
---|
9230 | return 0; |
---|
9231 | } |
---|
9232 | _ACEOF |
---|
9233 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9235 | (eval $ac_link) 2>conftest.er1 |
---|
9236 | ac_status=$? |
---|
9237 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9238 | rm -f conftest.er1 |
---|
9239 | cat conftest.err >&5 |
---|
9240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9241 | (exit $ac_status); } && |
---|
9242 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9243 | || test ! -s conftest.err' |
---|
9244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9245 | (eval $ac_try) 2>&5 |
---|
9246 | ac_status=$? |
---|
9247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9248 | (exit $ac_status); }; } && |
---|
9249 | { ac_try='test -s conftest$ac_exeext' |
---|
9250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9251 | (eval $ac_try) 2>&5 |
---|
9252 | ac_status=$? |
---|
9253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9254 | (exit $ac_status); }; }; then |
---|
9255 | |
---|
9256 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
9257 | }'` |
---|
9258 | # Check for a 64-bit object if we didn't find anything. |
---|
9259 | 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; } |
---|
9260 | }'`; fi |
---|
9261 | else |
---|
9262 | echo "$as_me: failed program was:" >&5 |
---|
9263 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9264 | |
---|
9265 | fi |
---|
9266 | rm -f conftest.err conftest.$ac_objext \ |
---|
9267 | conftest$ac_exeext conftest.$ac_ext |
---|
9268 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
9269 | |
---|
9270 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
9271 | # Warning - without using the other run time loading flags, |
---|
9272 | # -berok will link without error, but may produce a broken library. |
---|
9273 | no_undefined_flag=' ${wl}-bernotok' |
---|
9274 | allow_undefined_flag=' ${wl}-berok' |
---|
9275 | # Exported symbols can be pulled into shared objects from archives |
---|
9276 | whole_archive_flag_spec='$convenience' |
---|
9277 | archive_cmds_need_lc=yes |
---|
9278 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
9279 | 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' |
---|
9280 | fi |
---|
9281 | fi |
---|
9282 | ;; |
---|
9283 | |
---|
9284 | amigaos*) |
---|
9285 | 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)' |
---|
9286 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9287 | hardcode_minus_L=yes |
---|
9288 | # see comment about different semantics on the GNU ld section |
---|
9289 | ld_shlibs=no |
---|
9290 | ;; |
---|
9291 | |
---|
9292 | bsdi[45]*) |
---|
9293 | export_dynamic_flag_spec=-rdynamic |
---|
9294 | ;; |
---|
9295 | |
---|
9296 | cygwin* | mingw* | pw32*) |
---|
9297 | # When not using gcc, we currently assume that we are using |
---|
9298 | # Microsoft Visual C++. |
---|
9299 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
9300 | # no search path for DLLs. |
---|
9301 | hardcode_libdir_flag_spec=' ' |
---|
9302 | allow_undefined_flag=unsupported |
---|
9303 | # Tell ltmain to make .lib files, not .a files. |
---|
9304 | libext=lib |
---|
9305 | # Tell ltmain to make .dll files, not .so files. |
---|
9306 | shrext_cmds=".dll" |
---|
9307 | # FIXME: Setting linknames here is a bad hack. |
---|
9308 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
9309 | # The linker will automatically build a .lib file if we build a DLL. |
---|
9310 | old_archive_From_new_cmds='true' |
---|
9311 | # FIXME: Should let the user specify the lib program. |
---|
9312 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
9313 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
9314 | enable_shared_with_static_runtimes=yes |
---|
9315 | ;; |
---|
9316 | |
---|
9317 | darwin* | rhapsody*) |
---|
9318 | case $host_os in |
---|
9319 | rhapsody* | darwin1.[012]) |
---|
9320 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
---|
9321 | ;; |
---|
9322 | *) # Darwin 1.3 on |
---|
9323 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
9324 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
9325 | else |
---|
9326 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
9327 | 10.[012]) |
---|
9328 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
9329 | ;; |
---|
9330 | 10.*) |
---|
9331 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
---|
9332 | ;; |
---|
9333 | esac |
---|
9334 | fi |
---|
9335 | ;; |
---|
9336 | esac |
---|
9337 | archive_cmds_need_lc=no |
---|
9338 | hardcode_direct=no |
---|
9339 | hardcode_automatic=yes |
---|
9340 | hardcode_shlibpath_var=unsupported |
---|
9341 | whole_archive_flag_spec='' |
---|
9342 | link_all_deplibs=yes |
---|
9343 | if test "$GCC" = yes ; then |
---|
9344 | output_verbose_link_cmd='echo' |
---|
9345 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
9346 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
9347 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
9348 | 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}' |
---|
9349 | 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}' |
---|
9350 | else |
---|
9351 | case $cc_basename in |
---|
9352 | xlc*) |
---|
9353 | output_verbose_link_cmd='echo' |
---|
9354 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
9355 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
9356 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
9357 | 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}' |
---|
9358 | 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}' |
---|
9359 | ;; |
---|
9360 | *) |
---|
9361 | ld_shlibs=no |
---|
9362 | ;; |
---|
9363 | esac |
---|
9364 | fi |
---|
9365 | ;; |
---|
9366 | |
---|
9367 | dgux*) |
---|
9368 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9369 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9370 | hardcode_shlibpath_var=no |
---|
9371 | ;; |
---|
9372 | |
---|
9373 | freebsd1*) |
---|
9374 | ld_shlibs=no |
---|
9375 | ;; |
---|
9376 | |
---|
9377 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
9378 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
9379 | # does not break anything, and helps significantly (at the cost of a little |
---|
9380 | # extra space). |
---|
9381 | freebsd2.2*) |
---|
9382 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
9383 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9384 | hardcode_direct=yes |
---|
9385 | hardcode_shlibpath_var=no |
---|
9386 | ;; |
---|
9387 | |
---|
9388 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
9389 | freebsd2*) |
---|
9390 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
9391 | hardcode_direct=yes |
---|
9392 | hardcode_minus_L=yes |
---|
9393 | hardcode_shlibpath_var=no |
---|
9394 | ;; |
---|
9395 | |
---|
9396 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
9397 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
9398 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
9399 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9400 | hardcode_direct=yes |
---|
9401 | hardcode_shlibpath_var=no |
---|
9402 | ;; |
---|
9403 | |
---|
9404 | hpux9*) |
---|
9405 | if test "$GCC" = yes; then |
---|
9406 | 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' |
---|
9407 | else |
---|
9408 | 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' |
---|
9409 | fi |
---|
9410 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
9411 | hardcode_libdir_separator=: |
---|
9412 | hardcode_direct=yes |
---|
9413 | |
---|
9414 | # hardcode_minus_L: Not really in the search PATH, |
---|
9415 | # but as the default location of the library. |
---|
9416 | hardcode_minus_L=yes |
---|
9417 | export_dynamic_flag_spec='${wl}-E' |
---|
9418 | ;; |
---|
9419 | |
---|
9420 | hpux10*) |
---|
9421 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
9422 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
9423 | else |
---|
9424 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
9425 | fi |
---|
9426 | if test "$with_gnu_ld" = no; then |
---|
9427 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
9428 | hardcode_libdir_separator=: |
---|
9429 | |
---|
9430 | hardcode_direct=yes |
---|
9431 | export_dynamic_flag_spec='${wl}-E' |
---|
9432 | |
---|
9433 | # hardcode_minus_L: Not really in the search PATH, |
---|
9434 | # but as the default location of the library. |
---|
9435 | hardcode_minus_L=yes |
---|
9436 | fi |
---|
9437 | ;; |
---|
9438 | |
---|
9439 | hpux11*) |
---|
9440 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
9441 | case $host_cpu in |
---|
9442 | hppa*64*) |
---|
9443 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9444 | ;; |
---|
9445 | ia64*) |
---|
9446 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
9447 | ;; |
---|
9448 | *) |
---|
9449 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
9450 | ;; |
---|
9451 | esac |
---|
9452 | else |
---|
9453 | case $host_cpu in |
---|
9454 | hppa*64*) |
---|
9455 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9456 | ;; |
---|
9457 | ia64*) |
---|
9458 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
9459 | ;; |
---|
9460 | *) |
---|
9461 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
9462 | ;; |
---|
9463 | esac |
---|
9464 | fi |
---|
9465 | if test "$with_gnu_ld" = no; then |
---|
9466 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
9467 | hardcode_libdir_separator=: |
---|
9468 | |
---|
9469 | case $host_cpu in |
---|
9470 | hppa*64*|ia64*) |
---|
9471 | hardcode_libdir_flag_spec_ld='+b $libdir' |
---|
9472 | hardcode_direct=no |
---|
9473 | hardcode_shlibpath_var=no |
---|
9474 | ;; |
---|
9475 | *) |
---|
9476 | hardcode_direct=yes |
---|
9477 | export_dynamic_flag_spec='${wl}-E' |
---|
9478 | |
---|
9479 | # hardcode_minus_L: Not really in the search PATH, |
---|
9480 | # but as the default location of the library. |
---|
9481 | hardcode_minus_L=yes |
---|
9482 | ;; |
---|
9483 | esac |
---|
9484 | fi |
---|
9485 | ;; |
---|
9486 | |
---|
9487 | irix5* | irix6* | nonstopux*) |
---|
9488 | if test "$GCC" = yes; then |
---|
9489 | 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' |
---|
9490 | else |
---|
9491 | 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' |
---|
9492 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
---|
9493 | fi |
---|
9494 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9495 | hardcode_libdir_separator=: |
---|
9496 | link_all_deplibs=yes |
---|
9497 | ;; |
---|
9498 | |
---|
9499 | netbsd*) |
---|
9500 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
9501 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
9502 | else |
---|
9503 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
9504 | fi |
---|
9505 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9506 | hardcode_direct=yes |
---|
9507 | hardcode_shlibpath_var=no |
---|
9508 | ;; |
---|
9509 | |
---|
9510 | newsos6) |
---|
9511 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9512 | hardcode_direct=yes |
---|
9513 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9514 | hardcode_libdir_separator=: |
---|
9515 | hardcode_shlibpath_var=no |
---|
9516 | ;; |
---|
9517 | |
---|
9518 | openbsd*) |
---|
9519 | hardcode_direct=yes |
---|
9520 | hardcode_shlibpath_var=no |
---|
9521 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
9522 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
9523 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
9524 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
9525 | export_dynamic_flag_spec='${wl}-E' |
---|
9526 | else |
---|
9527 | case $host_os in |
---|
9528 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
9529 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
9530 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9531 | ;; |
---|
9532 | *) |
---|
9533 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
9534 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
9535 | ;; |
---|
9536 | esac |
---|
9537 | fi |
---|
9538 | ;; |
---|
9539 | |
---|
9540 | os2*) |
---|
9541 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9542 | hardcode_minus_L=yes |
---|
9543 | allow_undefined_flag=unsupported |
---|
9544 | 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' |
---|
9545 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
9546 | ;; |
---|
9547 | |
---|
9548 | osf3*) |
---|
9549 | if test "$GCC" = yes; then |
---|
9550 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
9551 | 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' |
---|
9552 | else |
---|
9553 | allow_undefined_flag=' -expect_unresolved \*' |
---|
9554 | 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' |
---|
9555 | fi |
---|
9556 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9557 | hardcode_libdir_separator=: |
---|
9558 | ;; |
---|
9559 | |
---|
9560 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
9561 | if test "$GCC" = yes; then |
---|
9562 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
9563 | 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' |
---|
9564 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9565 | else |
---|
9566 | allow_undefined_flag=' -expect_unresolved \*' |
---|
9567 | 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' |
---|
9568 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
9569 | $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' |
---|
9570 | |
---|
9571 | # Both c and cxx compiler support -rpath directly |
---|
9572 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
9573 | fi |
---|
9574 | hardcode_libdir_separator=: |
---|
9575 | ;; |
---|
9576 | |
---|
9577 | solaris*) |
---|
9578 | no_undefined_flag=' -z text' |
---|
9579 | if test "$GCC" = yes; then |
---|
9580 | wlarc='${wl}' |
---|
9581 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9582 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
9583 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
9584 | else |
---|
9585 | wlarc='' |
---|
9586 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9587 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
9588 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
9589 | fi |
---|
9590 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9591 | hardcode_shlibpath_var=no |
---|
9592 | case $host_os in |
---|
9593 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
9594 | *) |
---|
9595 | # The compiler driver will combine linker options so we |
---|
9596 | # cannot just pass the convience library names through |
---|
9597 | # without $wl, iff we do not link with $LD. |
---|
9598 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
---|
9599 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
9600 | case $wlarc in |
---|
9601 | '') |
---|
9602 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
---|
9603 | *) |
---|
9604 | 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' ;; |
---|
9605 | esac ;; |
---|
9606 | esac |
---|
9607 | link_all_deplibs=yes |
---|
9608 | ;; |
---|
9609 | |
---|
9610 | sunos4*) |
---|
9611 | if test "x$host_vendor" = xsequent; then |
---|
9612 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
9613 | # files that make .init and .fini sections work. |
---|
9614 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9615 | else |
---|
9616 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
9617 | fi |
---|
9618 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9619 | hardcode_direct=yes |
---|
9620 | hardcode_minus_L=yes |
---|
9621 | hardcode_shlibpath_var=no |
---|
9622 | ;; |
---|
9623 | |
---|
9624 | sysv4) |
---|
9625 | case $host_vendor in |
---|
9626 | sni) |
---|
9627 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9628 | hardcode_direct=yes # is this really true??? |
---|
9629 | ;; |
---|
9630 | siemens) |
---|
9631 | ## LD is ld it makes a PLAMLIB |
---|
9632 | ## CC just makes a GrossModule. |
---|
9633 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
9634 | reload_cmds='$CC -r -o $output$reload_objs' |
---|
9635 | hardcode_direct=no |
---|
9636 | ;; |
---|
9637 | motorola) |
---|
9638 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9639 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
9640 | ;; |
---|
9641 | esac |
---|
9642 | runpath_var='LD_RUN_PATH' |
---|
9643 | hardcode_shlibpath_var=no |
---|
9644 | ;; |
---|
9645 | |
---|
9646 | sysv4.3*) |
---|
9647 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9648 | hardcode_shlibpath_var=no |
---|
9649 | export_dynamic_flag_spec='-Bexport' |
---|
9650 | ;; |
---|
9651 | |
---|
9652 | sysv4*MP*) |
---|
9653 | if test -d /usr/nec; then |
---|
9654 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9655 | hardcode_shlibpath_var=no |
---|
9656 | runpath_var=LD_RUN_PATH |
---|
9657 | hardcode_runpath_var=yes |
---|
9658 | ld_shlibs=yes |
---|
9659 | fi |
---|
9660 | ;; |
---|
9661 | |
---|
9662 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
---|
9663 | no_undefined_flag='${wl}-z,text' |
---|
9664 | archive_cmds_need_lc=no |
---|
9665 | hardcode_shlibpath_var=no |
---|
9666 | runpath_var='LD_RUN_PATH' |
---|
9667 | |
---|
9668 | if test "$GCC" = yes; then |
---|
9669 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9670 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9671 | else |
---|
9672 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9673 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9674 | fi |
---|
9675 | ;; |
---|
9676 | |
---|
9677 | sysv5* | sco3.2v5* | sco5v6*) |
---|
9678 | # Note: We can NOT use -z defs as we might desire, because we do not |
---|
9679 | # link with -lc, and that would cause any symbols used from libc to |
---|
9680 | # always be unresolved, which means just about no library would |
---|
9681 | # ever link correctly. If we're not using GNU ld we use -z text |
---|
9682 | # though, which does catch some bad symbols but isn't as heavy-handed |
---|
9683 | # as -z defs. |
---|
9684 | no_undefined_flag='${wl}-z,text' |
---|
9685 | allow_undefined_flag='${wl}-z,nodefs' |
---|
9686 | archive_cmds_need_lc=no |
---|
9687 | hardcode_shlibpath_var=no |
---|
9688 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
---|
9689 | hardcode_libdir_separator=':' |
---|
9690 | link_all_deplibs=yes |
---|
9691 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
9692 | runpath_var='LD_RUN_PATH' |
---|
9693 | |
---|
9694 | if test "$GCC" = yes; then |
---|
9695 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9696 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9697 | else |
---|
9698 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9699 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9700 | fi |
---|
9701 | ;; |
---|
9702 | |
---|
9703 | uts4*) |
---|
9704 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9705 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9706 | hardcode_shlibpath_var=no |
---|
9707 | ;; |
---|
9708 | |
---|
9709 | *) |
---|
9710 | ld_shlibs=no |
---|
9711 | ;; |
---|
9712 | esac |
---|
9713 | fi |
---|
9714 | |
---|
9715 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
---|
9716 | echo "${ECHO_T}$ld_shlibs" >&6 |
---|
9717 | test "$ld_shlibs" = no && can_build_shared=no |
---|
9718 | |
---|
9719 | # |
---|
9720 | # Do we need to explicitly link libc? |
---|
9721 | # |
---|
9722 | case "x$archive_cmds_need_lc" in |
---|
9723 | x|xyes) |
---|
9724 | # Assume -lc should be added |
---|
9725 | archive_cmds_need_lc=yes |
---|
9726 | |
---|
9727 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
9728 | case $archive_cmds in |
---|
9729 | *'~'*) |
---|
9730 | # FIXME: we may have to deal with multi-command sequences. |
---|
9731 | ;; |
---|
9732 | '$CC '*) |
---|
9733 | # Test whether the compiler implicitly links with -lc since on some |
---|
9734 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
9735 | # to ld, don't add -lc before -lgcc. |
---|
9736 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
9737 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
9738 | $rm conftest* |
---|
9739 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9740 | |
---|
9741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9742 | (eval $ac_compile) 2>&5 |
---|
9743 | ac_status=$? |
---|
9744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9745 | (exit $ac_status); } 2>conftest.err; then |
---|
9746 | soname=conftest |
---|
9747 | lib=conftest |
---|
9748 | libobjs=conftest.$ac_objext |
---|
9749 | deplibs= |
---|
9750 | wl=$lt_prog_compiler_wl |
---|
9751 | pic_flag=$lt_prog_compiler_pic |
---|
9752 | compiler_flags=-v |
---|
9753 | linker_flags=-v |
---|
9754 | verstring= |
---|
9755 | output_objdir=. |
---|
9756 | libname=conftest |
---|
9757 | lt_save_allow_undefined_flag=$allow_undefined_flag |
---|
9758 | allow_undefined_flag= |
---|
9759 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
9760 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
9761 | ac_status=$? |
---|
9762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9763 | (exit $ac_status); } |
---|
9764 | then |
---|
9765 | archive_cmds_need_lc=no |
---|
9766 | else |
---|
9767 | archive_cmds_need_lc=yes |
---|
9768 | fi |
---|
9769 | allow_undefined_flag=$lt_save_allow_undefined_flag |
---|
9770 | else |
---|
9771 | cat conftest.err 1>&5 |
---|
9772 | fi |
---|
9773 | $rm conftest* |
---|
9774 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
---|
9775 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
---|
9776 | ;; |
---|
9777 | esac |
---|
9778 | fi |
---|
9779 | ;; |
---|
9780 | esac |
---|
9781 | |
---|
9782 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
9783 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
9784 | library_names_spec= |
---|
9785 | libname_spec='lib$name' |
---|
9786 | soname_spec= |
---|
9787 | shrext_cmds=".so" |
---|
9788 | postinstall_cmds= |
---|
9789 | postuninstall_cmds= |
---|
9790 | finish_cmds= |
---|
9791 | finish_eval= |
---|
9792 | shlibpath_var= |
---|
9793 | shlibpath_overrides_runpath=unknown |
---|
9794 | version_type=none |
---|
9795 | dynamic_linker="$host_os ld.so" |
---|
9796 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
9797 | if test "$GCC" = yes; then |
---|
9798 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
9799 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
9800 | # if the path contains ";" then we assume it to be the separator |
---|
9801 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
9802 | # assumed that no part of a normal pathname contains ";" but that should |
---|
9803 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
9804 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
9805 | else |
---|
9806 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
9807 | fi |
---|
9808 | else |
---|
9809 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
9810 | fi |
---|
9811 | need_lib_prefix=unknown |
---|
9812 | hardcode_into_libs=no |
---|
9813 | |
---|
9814 | # when you set need_version to no, make sure it does not cause -set_version |
---|
9815 | # flags to be left without arguments |
---|
9816 | need_version=unknown |
---|
9817 | |
---|
9818 | case $host_os in |
---|
9819 | aix3*) |
---|
9820 | version_type=linux |
---|
9821 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
9822 | shlibpath_var=LIBPATH |
---|
9823 | |
---|
9824 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
9825 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9826 | ;; |
---|
9827 | |
---|
9828 | aix4* | aix5*) |
---|
9829 | version_type=linux |
---|
9830 | need_lib_prefix=no |
---|
9831 | need_version=no |
---|
9832 | hardcode_into_libs=yes |
---|
9833 | if test "$host_cpu" = ia64; then |
---|
9834 | # AIX 5 supports IA64 |
---|
9835 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
9836 | shlibpath_var=LD_LIBRARY_PATH |
---|
9837 | else |
---|
9838 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
9839 | # for dependence libraries. The import file would start with |
---|
9840 | # the line `#! .'. This would cause the generated library to |
---|
9841 | # depend on `.', always an invalid library. This was fixed in |
---|
9842 | # development snapshots of GCC prior to 3.0. |
---|
9843 | case $host_os in |
---|
9844 | aix4 | aix4.[01] | aix4.[01].*) |
---|
9845 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
9846 | echo ' yes ' |
---|
9847 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
9848 | : |
---|
9849 | else |
---|
9850 | can_build_shared=no |
---|
9851 | fi |
---|
9852 | ;; |
---|
9853 | esac |
---|
9854 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
9855 | # soname into executable. Probably we can add versioning support to |
---|
9856 | # collect2, so additional links can be useful in future. |
---|
9857 | if test "$aix_use_runtimelinking" = yes; then |
---|
9858 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
9859 | # instead of lib<name>.a to let people know that these are not |
---|
9860 | # typical AIX shared libraries. |
---|
9861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9862 | else |
---|
9863 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
9864 | # and later when we are not doing run time linking. |
---|
9865 | library_names_spec='${libname}${release}.a $libname.a' |
---|
9866 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9867 | fi |
---|
9868 | shlibpath_var=LIBPATH |
---|
9869 | fi |
---|
9870 | ;; |
---|
9871 | |
---|
9872 | amigaos*) |
---|
9873 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
9874 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
9875 | 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' |
---|
9876 | ;; |
---|
9877 | |
---|
9878 | beos*) |
---|
9879 | library_names_spec='${libname}${shared_ext}' |
---|
9880 | dynamic_linker="$host_os ld.so" |
---|
9881 | shlibpath_var=LIBRARY_PATH |
---|
9882 | ;; |
---|
9883 | |
---|
9884 | bsdi[45]*) |
---|
9885 | version_type=linux |
---|
9886 | need_version=no |
---|
9887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9888 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9889 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
9890 | shlibpath_var=LD_LIBRARY_PATH |
---|
9891 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
9892 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
9893 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
9894 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
9895 | # libtool to hard-code these into programs |
---|
9896 | ;; |
---|
9897 | |
---|
9898 | cygwin* | mingw* | pw32*) |
---|
9899 | version_type=windows |
---|
9900 | shrext_cmds=".dll" |
---|
9901 | need_version=no |
---|
9902 | need_lib_prefix=no |
---|
9903 | |
---|
9904 | case $GCC,$host_os in |
---|
9905 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
9906 | library_names_spec='$libname.dll.a' |
---|
9907 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
9908 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
9909 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
9910 | dldir=$destdir/`dirname \$dlpath`~ |
---|
9911 | test -d \$dldir || mkdir -p \$dldir~ |
---|
9912 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
9913 | chmod a+x \$dldir/$dlname' |
---|
9914 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
9915 | dlpath=$dir/\$dldll~ |
---|
9916 | $rm \$dlpath' |
---|
9917 | shlibpath_overrides_runpath=yes |
---|
9918 | |
---|
9919 | case $host_os in |
---|
9920 | cygwin*) |
---|
9921 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
9922 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9923 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
9924 | ;; |
---|
9925 | mingw*) |
---|
9926 | # MinGW DLLs use traditional 'lib' prefix |
---|
9927 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9928 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
9929 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
9930 | # It is most probably a Windows format PATH printed by |
---|
9931 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
9932 | # path with ; separators, and with drive letters. We can handle the |
---|
9933 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
9934 | # especially as we might pass files found there to a mingw objdump, |
---|
9935 | # which wouldn't understand a cygwinified path. Ahh. |
---|
9936 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
9937 | else |
---|
9938 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
9939 | fi |
---|
9940 | ;; |
---|
9941 | pw32*) |
---|
9942 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
9943 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9944 | ;; |
---|
9945 | esac |
---|
9946 | ;; |
---|
9947 | |
---|
9948 | *) |
---|
9949 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
9950 | ;; |
---|
9951 | esac |
---|
9952 | dynamic_linker='Win32 ld.exe' |
---|
9953 | # FIXME: first we should search . and the directory the executable is in |
---|
9954 | shlibpath_var=PATH |
---|
9955 | ;; |
---|
9956 | |
---|
9957 | darwin* | rhapsody*) |
---|
9958 | dynamic_linker="$host_os dyld" |
---|
9959 | version_type=darwin |
---|
9960 | need_lib_prefix=no |
---|
9961 | need_version=no |
---|
9962 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
9963 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
9964 | shlibpath_overrides_runpath=yes |
---|
9965 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
9966 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
9967 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
9968 | if test "$GCC" = yes; then |
---|
9969 | 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"` |
---|
9970 | else |
---|
9971 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
9972 | fi |
---|
9973 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
9974 | ;; |
---|
9975 | |
---|
9976 | dgux*) |
---|
9977 | version_type=linux |
---|
9978 | need_lib_prefix=no |
---|
9979 | need_version=no |
---|
9980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
9981 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9982 | shlibpath_var=LD_LIBRARY_PATH |
---|
9983 | ;; |
---|
9984 | |
---|
9985 | freebsd1*) |
---|
9986 | dynamic_linker=no |
---|
9987 | ;; |
---|
9988 | |
---|
9989 | kfreebsd*-gnu) |
---|
9990 | version_type=linux |
---|
9991 | need_lib_prefix=no |
---|
9992 | need_version=no |
---|
9993 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9994 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9995 | shlibpath_var=LD_LIBRARY_PATH |
---|
9996 | shlibpath_overrides_runpath=no |
---|
9997 | hardcode_into_libs=yes |
---|
9998 | dynamic_linker='GNU ld.so' |
---|
9999 | ;; |
---|
10000 | |
---|
10001 | freebsd* | dragonfly*) |
---|
10002 | # DragonFly does not have aout. When/if they implement a new |
---|
10003 | # versioning mechanism, adjust this. |
---|
10004 | if test -x /usr/bin/objformat; then |
---|
10005 | objformat=`/usr/bin/objformat` |
---|
10006 | else |
---|
10007 | case $host_os in |
---|
10008 | freebsd[123]*) objformat=aout ;; |
---|
10009 | *) objformat=elf ;; |
---|
10010 | esac |
---|
10011 | fi |
---|
10012 | version_type=freebsd-$objformat |
---|
10013 | case $version_type in |
---|
10014 | freebsd-elf*) |
---|
10015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
10016 | need_version=no |
---|
10017 | need_lib_prefix=no |
---|
10018 | ;; |
---|
10019 | freebsd-*) |
---|
10020 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
10021 | need_version=yes |
---|
10022 | ;; |
---|
10023 | esac |
---|
10024 | shlibpath_var=LD_LIBRARY_PATH |
---|
10025 | case $host_os in |
---|
10026 | freebsd2*) |
---|
10027 | shlibpath_overrides_runpath=yes |
---|
10028 | ;; |
---|
10029 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
10030 | shlibpath_overrides_runpath=yes |
---|
10031 | hardcode_into_libs=yes |
---|
10032 | ;; |
---|
10033 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
---|
10034 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
---|
10035 | shlibpath_overrides_runpath=no |
---|
10036 | hardcode_into_libs=yes |
---|
10037 | ;; |
---|
10038 | freebsd*) # from 4.6 on |
---|
10039 | shlibpath_overrides_runpath=yes |
---|
10040 | hardcode_into_libs=yes |
---|
10041 | ;; |
---|
10042 | esac |
---|
10043 | ;; |
---|
10044 | |
---|
10045 | gnu*) |
---|
10046 | version_type=linux |
---|
10047 | need_lib_prefix=no |
---|
10048 | need_version=no |
---|
10049 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
10050 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10051 | shlibpath_var=LD_LIBRARY_PATH |
---|
10052 | hardcode_into_libs=yes |
---|
10053 | ;; |
---|
10054 | |
---|
10055 | hpux9* | hpux10* | hpux11*) |
---|
10056 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
10057 | # link against other versions. |
---|
10058 | version_type=sunos |
---|
10059 | need_lib_prefix=no |
---|
10060 | need_version=no |
---|
10061 | case $host_cpu in |
---|
10062 | ia64*) |
---|
10063 | shrext_cmds='.so' |
---|
10064 | hardcode_into_libs=yes |
---|
10065 | dynamic_linker="$host_os dld.so" |
---|
10066 | shlibpath_var=LD_LIBRARY_PATH |
---|
10067 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
10068 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10069 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10070 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
10071 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
10072 | else |
---|
10073 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
10074 | fi |
---|
10075 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
10076 | ;; |
---|
10077 | hppa*64*) |
---|
10078 | shrext_cmds='.sl' |
---|
10079 | hardcode_into_libs=yes |
---|
10080 | dynamic_linker="$host_os dld.sl" |
---|
10081 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
10082 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
10083 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10084 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10085 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
10086 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
10087 | ;; |
---|
10088 | *) |
---|
10089 | shrext_cmds='.sl' |
---|
10090 | dynamic_linker="$host_os dld.sl" |
---|
10091 | shlibpath_var=SHLIB_PATH |
---|
10092 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
10093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10094 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10095 | ;; |
---|
10096 | esac |
---|
10097 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
10098 | postinstall_cmds='chmod 555 $lib' |
---|
10099 | ;; |
---|
10100 | |
---|
10101 | interix3*) |
---|
10102 | version_type=linux |
---|
10103 | need_lib_prefix=no |
---|
10104 | need_version=no |
---|
10105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
10106 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10107 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
---|
10108 | shlibpath_var=LD_LIBRARY_PATH |
---|
10109 | shlibpath_overrides_runpath=no |
---|
10110 | hardcode_into_libs=yes |
---|
10111 | ;; |
---|
10112 | |
---|
10113 | irix5* | irix6* | nonstopux*) |
---|
10114 | case $host_os in |
---|
10115 | nonstopux*) version_type=nonstopux ;; |
---|
10116 | *) |
---|
10117 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
10118 | version_type=linux |
---|
10119 | else |
---|
10120 | version_type=irix |
---|
10121 | fi ;; |
---|
10122 | esac |
---|
10123 | need_lib_prefix=no |
---|
10124 | need_version=no |
---|
10125 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
10127 | case $host_os in |
---|
10128 | irix5* | nonstopux*) |
---|
10129 | libsuff= shlibsuff= |
---|
10130 | ;; |
---|
10131 | *) |
---|
10132 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
10133 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
10134 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
10135 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
10136 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
10137 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
10138 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
10139 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
10140 | esac |
---|
10141 | ;; |
---|
10142 | esac |
---|
10143 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
10144 | shlibpath_overrides_runpath=no |
---|
10145 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
10146 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
10147 | hardcode_into_libs=yes |
---|
10148 | ;; |
---|
10149 | |
---|
10150 | # No shared lib support for Linux oldld, aout, or coff. |
---|
10151 | linux*oldld* | linux*aout* | linux*coff*) |
---|
10152 | dynamic_linker=no |
---|
10153 | ;; |
---|
10154 | |
---|
10155 | # This must be Linux ELF. |
---|
10156 | linux*) |
---|
10157 | version_type=linux |
---|
10158 | need_lib_prefix=no |
---|
10159 | need_version=no |
---|
10160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10161 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10162 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
10163 | shlibpath_var=LD_LIBRARY_PATH |
---|
10164 | shlibpath_overrides_runpath=no |
---|
10165 | # This implies no fast_install, which is unacceptable. |
---|
10166 | # Some rework will be needed to allow for fast_install |
---|
10167 | # before this can be enabled. |
---|
10168 | hardcode_into_libs=yes |
---|
10169 | |
---|
10170 | # Append ld.so.conf contents to the search path |
---|
10171 | if test -f /etc/ld.so.conf; then |
---|
10172 | 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' ' '` |
---|
10173 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
10174 | fi |
---|
10175 | |
---|
10176 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
10177 | # powerpc, because MkLinux only supported shared libraries with the |
---|
10178 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
10179 | # most powerpc-linux boxes support dynamic linking these days and |
---|
10180 | # people can always --disable-shared, the test was removed, and we |
---|
10181 | # assume the GNU/Linux dynamic linker is in use. |
---|
10182 | dynamic_linker='GNU/Linux ld.so' |
---|
10183 | ;; |
---|
10184 | |
---|
10185 | knetbsd*-gnu) |
---|
10186 | version_type=linux |
---|
10187 | need_lib_prefix=no |
---|
10188 | need_version=no |
---|
10189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
10190 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10191 | shlibpath_var=LD_LIBRARY_PATH |
---|
10192 | shlibpath_overrides_runpath=no |
---|
10193 | hardcode_into_libs=yes |
---|
10194 | dynamic_linker='GNU ld.so' |
---|
10195 | ;; |
---|
10196 | |
---|
10197 | netbsd*) |
---|
10198 | version_type=sunos |
---|
10199 | need_lib_prefix=no |
---|
10200 | need_version=no |
---|
10201 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
10202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
10203 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
10204 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
10205 | else |
---|
10206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
10207 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10208 | dynamic_linker='NetBSD ld.elf_so' |
---|
10209 | fi |
---|
10210 | shlibpath_var=LD_LIBRARY_PATH |
---|
10211 | shlibpath_overrides_runpath=yes |
---|
10212 | hardcode_into_libs=yes |
---|
10213 | ;; |
---|
10214 | |
---|
10215 | newsos6) |
---|
10216 | version_type=linux |
---|
10217 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10218 | shlibpath_var=LD_LIBRARY_PATH |
---|
10219 | shlibpath_overrides_runpath=yes |
---|
10220 | ;; |
---|
10221 | |
---|
10222 | nto-qnx*) |
---|
10223 | version_type=linux |
---|
10224 | need_lib_prefix=no |
---|
10225 | need_version=no |
---|
10226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10227 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10228 | shlibpath_var=LD_LIBRARY_PATH |
---|
10229 | shlibpath_overrides_runpath=yes |
---|
10230 | ;; |
---|
10231 | |
---|
10232 | openbsd*) |
---|
10233 | version_type=sunos |
---|
10234 | sys_lib_dlsearch_path_spec="/usr/lib" |
---|
10235 | need_lib_prefix=no |
---|
10236 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
10237 | case $host_os in |
---|
10238 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
10239 | *) need_version=no ;; |
---|
10240 | esac |
---|
10241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
10242 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
10243 | shlibpath_var=LD_LIBRARY_PATH |
---|
10244 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
10245 | case $host_os in |
---|
10246 | openbsd2.[89] | openbsd2.[89].*) |
---|
10247 | shlibpath_overrides_runpath=no |
---|
10248 | ;; |
---|
10249 | *) |
---|
10250 | shlibpath_overrides_runpath=yes |
---|
10251 | ;; |
---|
10252 | esac |
---|
10253 | else |
---|
10254 | shlibpath_overrides_runpath=yes |
---|
10255 | fi |
---|
10256 | ;; |
---|
10257 | |
---|
10258 | os2*) |
---|
10259 | libname_spec='$name' |
---|
10260 | shrext_cmds=".dll" |
---|
10261 | need_lib_prefix=no |
---|
10262 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
10263 | dynamic_linker='OS/2 ld.exe' |
---|
10264 | shlibpath_var=LIBPATH |
---|
10265 | ;; |
---|
10266 | |
---|
10267 | osf3* | osf4* | osf5*) |
---|
10268 | version_type=osf |
---|
10269 | need_lib_prefix=no |
---|
10270 | need_version=no |
---|
10271 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10273 | shlibpath_var=LD_LIBRARY_PATH |
---|
10274 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
10275 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
10276 | ;; |
---|
10277 | |
---|
10278 | solaris*) |
---|
10279 | version_type=linux |
---|
10280 | need_lib_prefix=no |
---|
10281 | need_version=no |
---|
10282 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10283 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10284 | shlibpath_var=LD_LIBRARY_PATH |
---|
10285 | shlibpath_overrides_runpath=yes |
---|
10286 | hardcode_into_libs=yes |
---|
10287 | # ldd complains unless libraries are executable |
---|
10288 | postinstall_cmds='chmod +x $lib' |
---|
10289 | ;; |
---|
10290 | |
---|
10291 | sunos4*) |
---|
10292 | version_type=sunos |
---|
10293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
10294 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
10295 | shlibpath_var=LD_LIBRARY_PATH |
---|
10296 | shlibpath_overrides_runpath=yes |
---|
10297 | if test "$with_gnu_ld" = yes; then |
---|
10298 | need_lib_prefix=no |
---|
10299 | fi |
---|
10300 | need_version=yes |
---|
10301 | ;; |
---|
10302 | |
---|
10303 | sysv4 | sysv4.3*) |
---|
10304 | version_type=linux |
---|
10305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10306 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10307 | shlibpath_var=LD_LIBRARY_PATH |
---|
10308 | case $host_vendor in |
---|
10309 | sni) |
---|
10310 | shlibpath_overrides_runpath=no |
---|
10311 | need_lib_prefix=no |
---|
10312 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
10313 | runpath_var=LD_RUN_PATH |
---|
10314 | ;; |
---|
10315 | siemens) |
---|
10316 | need_lib_prefix=no |
---|
10317 | ;; |
---|
10318 | motorola) |
---|
10319 | need_lib_prefix=no |
---|
10320 | need_version=no |
---|
10321 | shlibpath_overrides_runpath=no |
---|
10322 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
10323 | ;; |
---|
10324 | esac |
---|
10325 | ;; |
---|
10326 | |
---|
10327 | sysv4*MP*) |
---|
10328 | if test -d /usr/nec ;then |
---|
10329 | version_type=linux |
---|
10330 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
10331 | soname_spec='$libname${shared_ext}.$major' |
---|
10332 | shlibpath_var=LD_LIBRARY_PATH |
---|
10333 | fi |
---|
10334 | ;; |
---|
10335 | |
---|
10336 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
10337 | version_type=freebsd-elf |
---|
10338 | need_lib_prefix=no |
---|
10339 | need_version=no |
---|
10340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
10341 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10342 | shlibpath_var=LD_LIBRARY_PATH |
---|
10343 | hardcode_into_libs=yes |
---|
10344 | if test "$with_gnu_ld" = yes; then |
---|
10345 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
---|
10346 | shlibpath_overrides_runpath=no |
---|
10347 | else |
---|
10348 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
---|
10349 | shlibpath_overrides_runpath=yes |
---|
10350 | case $host_os in |
---|
10351 | sco3.2v5*) |
---|
10352 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
---|
10353 | ;; |
---|
10354 | esac |
---|
10355 | fi |
---|
10356 | sys_lib_dlsearch_path_spec='/usr/lib' |
---|
10357 | ;; |
---|
10358 | |
---|
10359 | uts4*) |
---|
10360 | version_type=linux |
---|
10361 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10362 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10363 | shlibpath_var=LD_LIBRARY_PATH |
---|
10364 | ;; |
---|
10365 | |
---|
10366 | *) |
---|
10367 | dynamic_linker=no |
---|
10368 | ;; |
---|
10369 | esac |
---|
10370 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
10371 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
10372 | test "$dynamic_linker" = no && can_build_shared=no |
---|
10373 | |
---|
10374 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
10375 | if test "$GCC" = yes; then |
---|
10376 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
10377 | fi |
---|
10378 | |
---|
10379 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
10380 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
10381 | hardcode_action= |
---|
10382 | if test -n "$hardcode_libdir_flag_spec" || \ |
---|
10383 | test -n "$runpath_var" || \ |
---|
10384 | test "X$hardcode_automatic" = "Xyes" ; then |
---|
10385 | |
---|
10386 | # We can hardcode non-existant directories. |
---|
10387 | if test "$hardcode_direct" != no && |
---|
10388 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
10389 | # have to relink, otherwise we might link with an installed library |
---|
10390 | # when we should be linking with a yet-to-be-installed one |
---|
10391 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
---|
10392 | test "$hardcode_minus_L" != no; then |
---|
10393 | # Linking always hardcodes the temporary library directory. |
---|
10394 | hardcode_action=relink |
---|
10395 | else |
---|
10396 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
10397 | hardcode_action=immediate |
---|
10398 | fi |
---|
10399 | else |
---|
10400 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
10401 | # directories. |
---|
10402 | hardcode_action=unsupported |
---|
10403 | fi |
---|
10404 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
---|
10405 | echo "${ECHO_T}$hardcode_action" >&6 |
---|
10406 | |
---|
10407 | if test "$hardcode_action" = relink; then |
---|
10408 | # Fast installation is not supported |
---|
10409 | enable_fast_install=no |
---|
10410 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
10411 | test "$enable_shared" = no; then |
---|
10412 | # Fast installation is not necessary |
---|
10413 | enable_fast_install=needless |
---|
10414 | fi |
---|
10415 | |
---|
10416 | striplib= |
---|
10417 | old_striplib= |
---|
10418 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
10419 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
10420 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
10421 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
10422 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
10423 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
10424 | echo "${ECHO_T}yes" >&6 |
---|
10425 | else |
---|
10426 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
10427 | case $host_os in |
---|
10428 | darwin*) |
---|
10429 | if test -n "$STRIP" ; then |
---|
10430 | striplib="$STRIP -x" |
---|
10431 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
10432 | echo "${ECHO_T}yes" >&6 |
---|
10433 | else |
---|
10434 | echo "$as_me:$LINENO: result: no" >&5 |
---|
10435 | echo "${ECHO_T}no" >&6 |
---|
10436 | fi |
---|
10437 | ;; |
---|
10438 | *) |
---|
10439 | echo "$as_me:$LINENO: result: no" >&5 |
---|
10440 | echo "${ECHO_T}no" >&6 |
---|
10441 | ;; |
---|
10442 | esac |
---|
10443 | fi |
---|
10444 | |
---|
10445 | if test "x$enable_dlopen" != xyes; then |
---|
10446 | enable_dlopen=unknown |
---|
10447 | enable_dlopen_self=unknown |
---|
10448 | enable_dlopen_self_static=unknown |
---|
10449 | else |
---|
10450 | lt_cv_dlopen=no |
---|
10451 | lt_cv_dlopen_libs= |
---|
10452 | |
---|
10453 | case $host_os in |
---|
10454 | beos*) |
---|
10455 | lt_cv_dlopen="load_add_on" |
---|
10456 | lt_cv_dlopen_libs= |
---|
10457 | lt_cv_dlopen_self=yes |
---|
10458 | ;; |
---|
10459 | |
---|
10460 | mingw* | pw32*) |
---|
10461 | lt_cv_dlopen="LoadLibrary" |
---|
10462 | lt_cv_dlopen_libs= |
---|
10463 | ;; |
---|
10464 | |
---|
10465 | cygwin*) |
---|
10466 | lt_cv_dlopen="dlopen" |
---|
10467 | lt_cv_dlopen_libs= |
---|
10468 | ;; |
---|
10469 | |
---|
10470 | darwin*) |
---|
10471 | # if libdl is installed we need to link against it |
---|
10472 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
10473 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
10474 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
10475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10476 | else |
---|
10477 | ac_check_lib_save_LIBS=$LIBS |
---|
10478 | LIBS="-ldl $LIBS" |
---|
10479 | cat >conftest.$ac_ext <<_ACEOF |
---|
10480 | /* confdefs.h. */ |
---|
10481 | _ACEOF |
---|
10482 | cat confdefs.h >>conftest.$ac_ext |
---|
10483 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10484 | /* end confdefs.h. */ |
---|
10485 | |
---|
10486 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10487 | #ifdef __cplusplus |
---|
10488 | extern "C" |
---|
10489 | #endif |
---|
10490 | /* We use char because int might match the return type of a gcc2 |
---|
10491 | builtin and then its argument prototype would still apply. */ |
---|
10492 | char dlopen (); |
---|
10493 | int |
---|
10494 | main () |
---|
10495 | { |
---|
10496 | dlopen (); |
---|
10497 | ; |
---|
10498 | return 0; |
---|
10499 | } |
---|
10500 | _ACEOF |
---|
10501 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10503 | (eval $ac_link) 2>conftest.er1 |
---|
10504 | ac_status=$? |
---|
10505 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10506 | rm -f conftest.er1 |
---|
10507 | cat conftest.err >&5 |
---|
10508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10509 | (exit $ac_status); } && |
---|
10510 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10511 | || test ! -s conftest.err' |
---|
10512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10513 | (eval $ac_try) 2>&5 |
---|
10514 | ac_status=$? |
---|
10515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10516 | (exit $ac_status); }; } && |
---|
10517 | { ac_try='test -s conftest$ac_exeext' |
---|
10518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10519 | (eval $ac_try) 2>&5 |
---|
10520 | ac_status=$? |
---|
10521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10522 | (exit $ac_status); }; }; then |
---|
10523 | ac_cv_lib_dl_dlopen=yes |
---|
10524 | else |
---|
10525 | echo "$as_me: failed program was:" >&5 |
---|
10526 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10527 | |
---|
10528 | ac_cv_lib_dl_dlopen=no |
---|
10529 | fi |
---|
10530 | rm -f conftest.err conftest.$ac_objext \ |
---|
10531 | conftest$ac_exeext conftest.$ac_ext |
---|
10532 | LIBS=$ac_check_lib_save_LIBS |
---|
10533 | fi |
---|
10534 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
10535 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
10536 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
10537 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
10538 | else |
---|
10539 | |
---|
10540 | lt_cv_dlopen="dyld" |
---|
10541 | lt_cv_dlopen_libs= |
---|
10542 | lt_cv_dlopen_self=yes |
---|
10543 | |
---|
10544 | fi |
---|
10545 | |
---|
10546 | ;; |
---|
10547 | |
---|
10548 | *) |
---|
10549 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
10550 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
10551 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
10552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10553 | else |
---|
10554 | cat >conftest.$ac_ext <<_ACEOF |
---|
10555 | /* confdefs.h. */ |
---|
10556 | _ACEOF |
---|
10557 | cat confdefs.h >>conftest.$ac_ext |
---|
10558 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10559 | /* end confdefs.h. */ |
---|
10560 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
10561 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10562 | #define shl_load innocuous_shl_load |
---|
10563 | |
---|
10564 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10565 | which can conflict with char shl_load (); below. |
---|
10566 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10567 | <limits.h> exists even on freestanding compilers. */ |
---|
10568 | |
---|
10569 | #ifdef __STDC__ |
---|
10570 | # include <limits.h> |
---|
10571 | #else |
---|
10572 | # include <assert.h> |
---|
10573 | #endif |
---|
10574 | |
---|
10575 | #undef shl_load |
---|
10576 | |
---|
10577 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10578 | #ifdef __cplusplus |
---|
10579 | extern "C" |
---|
10580 | { |
---|
10581 | #endif |
---|
10582 | /* We use char because int might match the return type of a gcc2 |
---|
10583 | builtin and then its argument prototype would still apply. */ |
---|
10584 | char shl_load (); |
---|
10585 | /* The GNU C library defines this for functions which it implements |
---|
10586 | to always fail with ENOSYS. Some functions are actually named |
---|
10587 | something starting with __ and the normal name is an alias. */ |
---|
10588 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
10589 | choke me |
---|
10590 | #else |
---|
10591 | char (*f) () = shl_load; |
---|
10592 | #endif |
---|
10593 | #ifdef __cplusplus |
---|
10594 | } |
---|
10595 | #endif |
---|
10596 | |
---|
10597 | int |
---|
10598 | main () |
---|
10599 | { |
---|
10600 | return f != shl_load; |
---|
10601 | ; |
---|
10602 | return 0; |
---|
10603 | } |
---|
10604 | _ACEOF |
---|
10605 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10607 | (eval $ac_link) 2>conftest.er1 |
---|
10608 | ac_status=$? |
---|
10609 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10610 | rm -f conftest.er1 |
---|
10611 | cat conftest.err >&5 |
---|
10612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10613 | (exit $ac_status); } && |
---|
10614 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10615 | || test ! -s conftest.err' |
---|
10616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10617 | (eval $ac_try) 2>&5 |
---|
10618 | ac_status=$? |
---|
10619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10620 | (exit $ac_status); }; } && |
---|
10621 | { ac_try='test -s conftest$ac_exeext' |
---|
10622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10623 | (eval $ac_try) 2>&5 |
---|
10624 | ac_status=$? |
---|
10625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10626 | (exit $ac_status); }; }; then |
---|
10627 | ac_cv_func_shl_load=yes |
---|
10628 | else |
---|
10629 | echo "$as_me: failed program was:" >&5 |
---|
10630 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10631 | |
---|
10632 | ac_cv_func_shl_load=no |
---|
10633 | fi |
---|
10634 | rm -f conftest.err conftest.$ac_objext \ |
---|
10635 | conftest$ac_exeext conftest.$ac_ext |
---|
10636 | fi |
---|
10637 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
10638 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
10639 | if test $ac_cv_func_shl_load = yes; then |
---|
10640 | lt_cv_dlopen="shl_load" |
---|
10641 | else |
---|
10642 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
10643 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
10644 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
10645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10646 | else |
---|
10647 | ac_check_lib_save_LIBS=$LIBS |
---|
10648 | LIBS="-ldld $LIBS" |
---|
10649 | cat >conftest.$ac_ext <<_ACEOF |
---|
10650 | /* confdefs.h. */ |
---|
10651 | _ACEOF |
---|
10652 | cat confdefs.h >>conftest.$ac_ext |
---|
10653 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10654 | /* end confdefs.h. */ |
---|
10655 | |
---|
10656 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10657 | #ifdef __cplusplus |
---|
10658 | extern "C" |
---|
10659 | #endif |
---|
10660 | /* We use char because int might match the return type of a gcc2 |
---|
10661 | builtin and then its argument prototype would still apply. */ |
---|
10662 | char shl_load (); |
---|
10663 | int |
---|
10664 | main () |
---|
10665 | { |
---|
10666 | shl_load (); |
---|
10667 | ; |
---|
10668 | return 0; |
---|
10669 | } |
---|
10670 | _ACEOF |
---|
10671 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10673 | (eval $ac_link) 2>conftest.er1 |
---|
10674 | ac_status=$? |
---|
10675 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10676 | rm -f conftest.er1 |
---|
10677 | cat conftest.err >&5 |
---|
10678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10679 | (exit $ac_status); } && |
---|
10680 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10681 | || test ! -s conftest.err' |
---|
10682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10683 | (eval $ac_try) 2>&5 |
---|
10684 | ac_status=$? |
---|
10685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10686 | (exit $ac_status); }; } && |
---|
10687 | { ac_try='test -s conftest$ac_exeext' |
---|
10688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10689 | (eval $ac_try) 2>&5 |
---|
10690 | ac_status=$? |
---|
10691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10692 | (exit $ac_status); }; }; then |
---|
10693 | ac_cv_lib_dld_shl_load=yes |
---|
10694 | else |
---|
10695 | echo "$as_me: failed program was:" >&5 |
---|
10696 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10697 | |
---|
10698 | ac_cv_lib_dld_shl_load=no |
---|
10699 | fi |
---|
10700 | rm -f conftest.err conftest.$ac_objext \ |
---|
10701 | conftest$ac_exeext conftest.$ac_ext |
---|
10702 | LIBS=$ac_check_lib_save_LIBS |
---|
10703 | fi |
---|
10704 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
10705 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
10706 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
10707 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
10708 | else |
---|
10709 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
10710 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
10711 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
10712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10713 | else |
---|
10714 | cat >conftest.$ac_ext <<_ACEOF |
---|
10715 | /* confdefs.h. */ |
---|
10716 | _ACEOF |
---|
10717 | cat confdefs.h >>conftest.$ac_ext |
---|
10718 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10719 | /* end confdefs.h. */ |
---|
10720 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
10721 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10722 | #define dlopen innocuous_dlopen |
---|
10723 | |
---|
10724 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10725 | which can conflict with char dlopen (); below. |
---|
10726 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10727 | <limits.h> exists even on freestanding compilers. */ |
---|
10728 | |
---|
10729 | #ifdef __STDC__ |
---|
10730 | # include <limits.h> |
---|
10731 | #else |
---|
10732 | # include <assert.h> |
---|
10733 | #endif |
---|
10734 | |
---|
10735 | #undef dlopen |
---|
10736 | |
---|
10737 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10738 | #ifdef __cplusplus |
---|
10739 | extern "C" |
---|
10740 | { |
---|
10741 | #endif |
---|
10742 | /* We use char because int might match the return type of a gcc2 |
---|
10743 | builtin and then its argument prototype would still apply. */ |
---|
10744 | char dlopen (); |
---|
10745 | /* The GNU C library defines this for functions which it implements |
---|
10746 | to always fail with ENOSYS. Some functions are actually named |
---|
10747 | something starting with __ and the normal name is an alias. */ |
---|
10748 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
10749 | choke me |
---|
10750 | #else |
---|
10751 | char (*f) () = dlopen; |
---|
10752 | #endif |
---|
10753 | #ifdef __cplusplus |
---|
10754 | } |
---|
10755 | #endif |
---|
10756 | |
---|
10757 | int |
---|
10758 | main () |
---|
10759 | { |
---|
10760 | return f != dlopen; |
---|
10761 | ; |
---|
10762 | return 0; |
---|
10763 | } |
---|
10764 | _ACEOF |
---|
10765 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10767 | (eval $ac_link) 2>conftest.er1 |
---|
10768 | ac_status=$? |
---|
10769 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10770 | rm -f conftest.er1 |
---|
10771 | cat conftest.err >&5 |
---|
|