1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for ThirdPartyGlpk 1.7.3. |
---|
4 | # |
---|
5 | # Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. |
---|
6 | # |
---|
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8 | # This configure script is free software; the Free Software Foundation |
---|
9 | # gives unlimited permission to copy, distribute and modify it. |
---|
10 | # |
---|
11 | # |
---|
12 | # Copyright 2007-2010 Stefan Vigerske and others. |
---|
13 | # All Rights Reserved. |
---|
14 | # This file is part of the open source package Coin which is distributed |
---|
15 | # under the 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='ThirdPartyGlpk' |
---|
431 | PACKAGE_TARNAME='thirdpartyglpk' |
---|
432 | PACKAGE_VERSION='1.7.3' |
---|
433 | PACKAGE_STRING='ThirdPartyGlpk 1.7.3' |
---|
434 | PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket' |
---|
435 | |
---|
436 | ac_unique_file="glpk/include/glpk.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 ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion GLPK_SVN_REV build build_cpu build_vendor build_os COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS glpkmajorver glpkminorver COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE GLPKDIR GLPK_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_PKG_CONFIG_set=${PKG_CONFIG+set} |
---|
953 | ac_env_PKG_CONFIG_value=$PKG_CONFIG |
---|
954 | ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} |
---|
955 | ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG |
---|
956 | ac_env_CPP_set=${CPP+set} |
---|
957 | ac_env_CPP_value=$CPP |
---|
958 | ac_cv_env_CPP_set=${CPP+set} |
---|
959 | ac_cv_env_CPP_value=$CPP |
---|
960 | ac_env_CXX_set=${CXX+set} |
---|
961 | ac_env_CXX_value=$CXX |
---|
962 | ac_cv_env_CXX_set=${CXX+set} |
---|
963 | ac_cv_env_CXX_value=$CXX |
---|
964 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
965 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
966 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
967 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
968 | ac_env_CXXCPP_set=${CXXCPP+set} |
---|
969 | ac_env_CXXCPP_value=$CXXCPP |
---|
970 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
---|
971 | ac_cv_env_CXXCPP_value=$CXXCPP |
---|
972 | ac_env_F77_set=${F77+set} |
---|
973 | ac_env_F77_value=$F77 |
---|
974 | ac_cv_env_F77_set=${F77+set} |
---|
975 | ac_cv_env_F77_value=$F77 |
---|
976 | ac_env_FFLAGS_set=${FFLAGS+set} |
---|
977 | ac_env_FFLAGS_value=$FFLAGS |
---|
978 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
---|
979 | ac_cv_env_FFLAGS_value=$FFLAGS |
---|
980 | |
---|
981 | # |
---|
982 | # Report the --help message. |
---|
983 | # |
---|
984 | if test "$ac_init_help" = "long"; then |
---|
985 | # Omit some internal or obsolete options to make the list less imposing. |
---|
986 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
987 | cat <<_ACEOF |
---|
988 | \`configure' configures ThirdPartyGlpk 1.7.3 to adapt to many kinds of systems. |
---|
989 | |
---|
990 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
991 | |
---|
992 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
993 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
994 | |
---|
995 | Defaults for the options are specified in brackets. |
---|
996 | |
---|
997 | Configuration: |
---|
998 | -h, --help display this help and exit |
---|
999 | --help=short display options specific to this package |
---|
1000 | --help=recursive display the short help of all the included packages |
---|
1001 | -V, --version display version information and exit |
---|
1002 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1003 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1004 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1005 | -n, --no-create do not create output files |
---|
1006 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1007 | |
---|
1008 | _ACEOF |
---|
1009 | |
---|
1010 | cat <<_ACEOF |
---|
1011 | Installation directories: |
---|
1012 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1013 | [$ac_default_prefix] |
---|
1014 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1015 | [PREFIX] |
---|
1016 | |
---|
1017 | By default, \`make install' will install all the files in |
---|
1018 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1019 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1020 | for instance \`--prefix=\$HOME'. |
---|
1021 | |
---|
1022 | For better control, use the options below. |
---|
1023 | |
---|
1024 | Fine tuning of the installation directories: |
---|
1025 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1026 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1027 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1028 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
1029 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1030 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1031 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1032 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1033 | --includedir=DIR C header files [PREFIX/include] |
---|
1034 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1035 | --infodir=DIR info documentation [PREFIX/info] |
---|
1036 | --mandir=DIR man documentation [PREFIX/man] |
---|
1037 | _ACEOF |
---|
1038 | |
---|
1039 | cat <<\_ACEOF |
---|
1040 | |
---|
1041 | Program names: |
---|
1042 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1043 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1044 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1045 | |
---|
1046 | System types: |
---|
1047 | --build=BUILD configure for building on BUILD [guessed] |
---|
1048 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1049 | _ACEOF |
---|
1050 | fi |
---|
1051 | |
---|
1052 | if test -n "$ac_init_help"; then |
---|
1053 | case $ac_init_help in |
---|
1054 | short | recursive ) echo "Configuration of ThirdPartyGlpk 1.7.3:";; |
---|
1055 | esac |
---|
1056 | cat <<\_ACEOF |
---|
1057 | |
---|
1058 | Optional Features: |
---|
1059 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1060 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1061 | --enable-debug compile all projects with debug options tests |
---|
1062 | --enable-debug-glpk compile this project (Glpk) with debug options |
---|
1063 | --enable-doscompile Under Cygwin, compile so that executables run under |
---|
1064 | DOS. Set to mingw to use gcc/g++/ld with |
---|
1065 | -mno-cygwin. Set to msvc to use cl/link (or |
---|
1066 | icl/link). Default when mentioned: mingw. Default |
---|
1067 | when not mentioned: disabled. |
---|
1068 | --enable-pkg-config use pkg-config if available (default is yes) |
---|
1069 | --enable-static[=PKGS] |
---|
1070 | build static libraries [default=no] |
---|
1071 | --disable-dependency-tracking speeds up one-time build |
---|
1072 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1073 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
1074 | (and sometimes confusing) to the casual installer |
---|
1075 | --enable-shared[=PKGS] |
---|
1076 | build shared libraries [default=yes] |
---|
1077 | --enable-fast-install[=PKGS] |
---|
1078 | optimize for fast installation [default=yes] |
---|
1079 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1080 | --enable-gnu-packages compile with GNU packages (disabled by default) |
---|
1081 | --enable-odbc enable MathProg ODBC support [default=auto] |
---|
1082 | --enable-mysql enable MathProg MySQL support [default=auto] |
---|
1083 | |
---|
1084 | Optional Packages: |
---|
1085 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1086 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1087 | --with-glpk-verbosity specify the debug verbosity level for project Glpk |
---|
1088 | --with-glpk-checklevel specify the sanity check level for project Glpk |
---|
1089 | --with-coin-instdir prefix of installation directory for precompiled |
---|
1090 | COIN packages |
---|
1091 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1092 | --with-pic try to use only PIC/non-PIC objects [default=use |
---|
1093 | both] |
---|
1094 | --with-tags[=TAGS] |
---|
1095 | include additional configurations [automatic] |
---|
1096 | |
---|
1097 | Some influential environment variables: |
---|
1098 | CDEFS Additional -D flags to be used when compiling C code. |
---|
1099 | ADD_CFLAGS Additional C compiler options |
---|
1100 | DBG_CFLAGS Debug C compiler options |
---|
1101 | OPT_CFLAGS Optimize C compiler options |
---|
1102 | CC C compiler command |
---|
1103 | CFLAGS C compiler flags |
---|
1104 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1105 | nonstandard directory <lib dir> |
---|
1106 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
1107 | headers in a nonstandard directory <include dir> |
---|
1108 | MPICC C MPI Compiler |
---|
1109 | PKG_CONFIG path to pkg-config utility |
---|
1110 | CPP C preprocessor |
---|
1111 | CXX C++ compiler command |
---|
1112 | CXXFLAGS C++ compiler flags |
---|
1113 | CXXCPP C++ preprocessor |
---|
1114 | F77 Fortran 77 compiler command |
---|
1115 | FFLAGS Fortran 77 compiler flags |
---|
1116 | |
---|
1117 | Use these variables to override the choices made by `configure' or to help |
---|
1118 | it to find libraries and programs with nonstandard names/locations. |
---|
1119 | |
---|
1120 | Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. |
---|
1121 | _ACEOF |
---|
1122 | fi |
---|
1123 | |
---|
1124 | if test "$ac_init_help" = "recursive"; then |
---|
1125 | # If there are subdirs, report their specific --help. |
---|
1126 | ac_popdir=`pwd` |
---|
1127 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1128 | test -d $ac_dir || continue |
---|
1129 | ac_builddir=. |
---|
1130 | |
---|
1131 | if test "$ac_dir" != .; then |
---|
1132 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1133 | # A "../" for each directory in $ac_dir_suffix. |
---|
1134 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
1135 | else |
---|
1136 | ac_dir_suffix= ac_top_builddir= |
---|
1137 | fi |
---|
1138 | |
---|
1139 | case $srcdir in |
---|
1140 | .) # No --srcdir option. We are building in place. |
---|
1141 | ac_srcdir=. |
---|
1142 | if test -z "$ac_top_builddir"; then |
---|
1143 | ac_top_srcdir=. |
---|
1144 | else |
---|
1145 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
1146 | fi ;; |
---|
1147 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
1148 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1149 | ac_top_srcdir=$srcdir ;; |
---|
1150 | *) # Relative path. |
---|
1151 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
1152 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
1153 | esac |
---|
1154 | |
---|
1155 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
1156 | # the directories may not exist. |
---|
1157 | case `pwd` in |
---|
1158 | .) ac_abs_builddir="$ac_dir";; |
---|
1159 | *) |
---|
1160 | case "$ac_dir" in |
---|
1161 | .) ac_abs_builddir=`pwd`;; |
---|
1162 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
1163 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
1164 | esac;; |
---|
1165 | esac |
---|
1166 | case $ac_abs_builddir in |
---|
1167 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1168 | *) |
---|
1169 | case ${ac_top_builddir}. in |
---|
1170 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
1171 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1172 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
1173 | esac;; |
---|
1174 | esac |
---|
1175 | case $ac_abs_builddir in |
---|
1176 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
1177 | *) |
---|
1178 | case $ac_srcdir in |
---|
1179 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
1180 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
1181 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
1182 | esac;; |
---|
1183 | esac |
---|
1184 | case $ac_abs_builddir in |
---|
1185 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1186 | *) |
---|
1187 | case $ac_top_srcdir in |
---|
1188 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
1189 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1190 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
1191 | esac;; |
---|
1192 | esac |
---|
1193 | |
---|
1194 | cd $ac_dir |
---|
1195 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
1196 | if test -f $ac_srcdir/configure.gnu; then |
---|
1197 | echo |
---|
1198 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
1199 | elif test -f $ac_srcdir/configure; then |
---|
1200 | echo |
---|
1201 | $SHELL $ac_srcdir/configure --help=recursive |
---|
1202 | elif test -f $ac_srcdir/configure.ac || |
---|
1203 | test -f $ac_srcdir/configure.in; then |
---|
1204 | echo |
---|
1205 | $ac_configure --help |
---|
1206 | else |
---|
1207 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1208 | fi |
---|
1209 | cd $ac_popdir |
---|
1210 | done |
---|
1211 | fi |
---|
1212 | |
---|
1213 | test -n "$ac_init_help" && exit 0 |
---|
1214 | if $ac_init_version; then |
---|
1215 | cat <<\_ACEOF |
---|
1216 | ThirdPartyGlpk configure 1.7.3 |
---|
1217 | generated by GNU Autoconf 2.59 |
---|
1218 | |
---|
1219 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
1220 | This configure script is free software; the Free Software Foundation |
---|
1221 | gives unlimited permission to copy, distribute and modify it. |
---|
1222 | |
---|
1223 | |
---|
1224 | Copyright 2007-2010 Stefan Vigerske and others. |
---|
1225 | All Rights Reserved. |
---|
1226 | This file is part of the open source package Coin which is distributed |
---|
1227 | under the Eclipse Public License. |
---|
1228 | _ACEOF |
---|
1229 | exit 0 |
---|
1230 | fi |
---|
1231 | exec 5>config.log |
---|
1232 | cat >&5 <<_ACEOF |
---|
1233 | This file contains any messages produced by compilers while |
---|
1234 | running configure, to aid debugging if configure makes a mistake. |
---|
1235 | |
---|
1236 | It was created by ThirdPartyGlpk $as_me 1.7.3, which was |
---|
1237 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1238 | |
---|
1239 | $ $0 $@ |
---|
1240 | |
---|
1241 | _ACEOF |
---|
1242 | { |
---|
1243 | cat <<_ASUNAME |
---|
1244 | ## --------- ## |
---|
1245 | ## Platform. ## |
---|
1246 | ## --------- ## |
---|
1247 | |
---|
1248 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1249 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1250 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1251 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1252 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1253 | |
---|
1254 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1255 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1256 | |
---|
1257 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1258 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1259 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1260 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1261 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1262 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1263 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1264 | |
---|
1265 | _ASUNAME |
---|
1266 | |
---|
1267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1268 | for as_dir in $PATH |
---|
1269 | do |
---|
1270 | IFS=$as_save_IFS |
---|
1271 | test -z "$as_dir" && as_dir=. |
---|
1272 | echo "PATH: $as_dir" |
---|
1273 | done |
---|
1274 | |
---|
1275 | } >&5 |
---|
1276 | |
---|
1277 | cat >&5 <<_ACEOF |
---|
1278 | |
---|
1279 | |
---|
1280 | ## ----------- ## |
---|
1281 | ## Core tests. ## |
---|
1282 | ## ----------- ## |
---|
1283 | |
---|
1284 | _ACEOF |
---|
1285 | |
---|
1286 | |
---|
1287 | # Keep a trace of the command line. |
---|
1288 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1289 | # Strip out --silent because we don't want to record it for future runs. |
---|
1290 | # Also quote any args containing shell meta-characters. |
---|
1291 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1292 | ac_configure_args= |
---|
1293 | ac_configure_args0= |
---|
1294 | ac_configure_args1= |
---|
1295 | ac_sep= |
---|
1296 | ac_must_keep_next=false |
---|
1297 | for ac_pass in 1 2 |
---|
1298 | do |
---|
1299 | for ac_arg |
---|
1300 | do |
---|
1301 | case $ac_arg in |
---|
1302 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1303 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1304 | | -silent | --silent | --silen | --sile | --sil) |
---|
1305 | continue ;; |
---|
1306 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1307 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1308 | esac |
---|
1309 | case $ac_pass in |
---|
1310 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1311 | 2) |
---|
1312 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1313 | if test $ac_must_keep_next = true; then |
---|
1314 | ac_must_keep_next=false # Got value, back to normal. |
---|
1315 | else |
---|
1316 | case $ac_arg in |
---|
1317 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1318 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1319 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1320 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1321 | case "$ac_configure_args0 " in |
---|
1322 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1323 | esac |
---|
1324 | ;; |
---|
1325 | -* ) ac_must_keep_next=true ;; |
---|
1326 | esac |
---|
1327 | fi |
---|
1328 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1329 | # Get rid of the leading space. |
---|
1330 | ac_sep=" " |
---|
1331 | ;; |
---|
1332 | esac |
---|
1333 | done |
---|
1334 | done |
---|
1335 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1336 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1337 | |
---|
1338 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1339 | # config.log. We remove comments because anyway the quotes in there |
---|
1340 | # would cause problems or look ugly. |
---|
1341 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1342 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1343 | trap 'exit_status=$? |
---|
1344 | # Save into config.log some information that might help in debugging. |
---|
1345 | { |
---|
1346 | echo |
---|
1347 | |
---|
1348 | cat <<\_ASBOX |
---|
1349 | ## ---------------- ## |
---|
1350 | ## Cache variables. ## |
---|
1351 | ## ---------------- ## |
---|
1352 | _ASBOX |
---|
1353 | echo |
---|
1354 | # The following way of writing the cache mishandles newlines in values, |
---|
1355 | { |
---|
1356 | (set) 2>&1 | |
---|
1357 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1358 | *ac_space=\ *) |
---|
1359 | sed -n \ |
---|
1360 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1361 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1362 | ;; |
---|
1363 | *) |
---|
1364 | sed -n \ |
---|
1365 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1366 | ;; |
---|
1367 | esac; |
---|
1368 | } |
---|
1369 | echo |
---|
1370 | |
---|
1371 | cat <<\_ASBOX |
---|
1372 | ## ----------------- ## |
---|
1373 | ## Output variables. ## |
---|
1374 | ## ----------------- ## |
---|
1375 | _ASBOX |
---|
1376 | echo |
---|
1377 | for ac_var in $ac_subst_vars |
---|
1378 | do |
---|
1379 | eval ac_val=$`echo $ac_var` |
---|
1380 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1381 | done | sort |
---|
1382 | echo |
---|
1383 | |
---|
1384 | if test -n "$ac_subst_files"; then |
---|
1385 | cat <<\_ASBOX |
---|
1386 | ## ------------- ## |
---|
1387 | ## Output files. ## |
---|
1388 | ## ------------- ## |
---|
1389 | _ASBOX |
---|
1390 | echo |
---|
1391 | for ac_var in $ac_subst_files |
---|
1392 | do |
---|
1393 | eval ac_val=$`echo $ac_var` |
---|
1394 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1395 | done | sort |
---|
1396 | echo |
---|
1397 | fi |
---|
1398 | |
---|
1399 | if test -s confdefs.h; then |
---|
1400 | cat <<\_ASBOX |
---|
1401 | ## ----------- ## |
---|
1402 | ## confdefs.h. ## |
---|
1403 | ## ----------- ## |
---|
1404 | _ASBOX |
---|
1405 | echo |
---|
1406 | sed "/^$/d" confdefs.h | sort |
---|
1407 | echo |
---|
1408 | fi |
---|
1409 | test "$ac_signal" != 0 && |
---|
1410 | echo "$as_me: caught signal $ac_signal" |
---|
1411 | echo "$as_me: exit $exit_status" |
---|
1412 | } >&5 |
---|
1413 | rm -f core *.core && |
---|
1414 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1415 | exit $exit_status |
---|
1416 | ' 0 |
---|
1417 | for ac_signal in 1 2 13 15; do |
---|
1418 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1419 | done |
---|
1420 | ac_signal=0 |
---|
1421 | |
---|
1422 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1423 | rm -rf conftest* confdefs.h |
---|
1424 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1425 | echo >confdefs.h |
---|
1426 | |
---|
1427 | # Predefined preprocessor variables. |
---|
1428 | |
---|
1429 | cat >>confdefs.h <<_ACEOF |
---|
1430 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1431 | _ACEOF |
---|
1432 | |
---|
1433 | |
---|
1434 | cat >>confdefs.h <<_ACEOF |
---|
1435 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1436 | _ACEOF |
---|
1437 | |
---|
1438 | |
---|
1439 | cat >>confdefs.h <<_ACEOF |
---|
1440 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1441 | _ACEOF |
---|
1442 | |
---|
1443 | |
---|
1444 | cat >>confdefs.h <<_ACEOF |
---|
1445 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1446 | _ACEOF |
---|
1447 | |
---|
1448 | |
---|
1449 | cat >>confdefs.h <<_ACEOF |
---|
1450 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1451 | _ACEOF |
---|
1452 | |
---|
1453 | |
---|
1454 | # Let the site file select an alternate cache file if it wants to. |
---|
1455 | # Prefer explicitly selected file to automatically selected ones. |
---|
1456 | if test -z "$CONFIG_SITE"; then |
---|
1457 | if test "x$prefix" != xNONE; then |
---|
1458 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1459 | else |
---|
1460 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1461 | fi |
---|
1462 | fi |
---|
1463 | for ac_site_file in $CONFIG_SITE; do |
---|
1464 | if test -r "$ac_site_file"; then |
---|
1465 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1466 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1467 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1468 | . "$ac_site_file" |
---|
1469 | fi |
---|
1470 | done |
---|
1471 | |
---|
1472 | if test -r "$cache_file"; then |
---|
1473 | # Some versions of bash will fail to source /dev/null (special |
---|
1474 | # files actually), so we avoid doing that. |
---|
1475 | if test -f "$cache_file"; then |
---|
1476 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1477 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1478 | case $cache_file in |
---|
1479 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1480 | *) . ./$cache_file;; |
---|
1481 | esac |
---|
1482 | fi |
---|
1483 | else |
---|
1484 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1485 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1486 | >$cache_file |
---|
1487 | fi |
---|
1488 | |
---|
1489 | # Check that the precious variables saved in the cache have kept the same |
---|
1490 | # value. |
---|
1491 | ac_cache_corrupted=false |
---|
1492 | for ac_var in `(set) 2>&1 | |
---|
1493 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1494 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1495 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1496 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1497 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1498 | case $ac_old_set,$ac_new_set in |
---|
1499 | set,) |
---|
1500 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1501 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1502 | ac_cache_corrupted=: ;; |
---|
1503 | ,set) |
---|
1504 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1505 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1506 | ac_cache_corrupted=: ;; |
---|
1507 | ,);; |
---|
1508 | *) |
---|
1509 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1510 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1511 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1512 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1513 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1514 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1515 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1516 | ac_cache_corrupted=: |
---|
1517 | fi;; |
---|
1518 | esac |
---|
1519 | # Pass precious variables to config.status. |
---|
1520 | if test "$ac_new_set" = set; then |
---|
1521 | case $ac_new_val in |
---|
1522 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1523 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1524 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1525 | esac |
---|
1526 | case " $ac_configure_args " in |
---|
1527 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1528 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1529 | esac |
---|
1530 | fi |
---|
1531 | done |
---|
1532 | if $ac_cache_corrupted; then |
---|
1533 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1534 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1535 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1536 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1537 | { (exit 1); exit 1; }; } |
---|
1538 | fi |
---|
1539 | |
---|
1540 | ac_ext=c |
---|
1541 | ac_cpp='$CPP $CPPFLAGS' |
---|
1542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1545 | |
---|
1546 | |
---|
1547 | |
---|
1548 | |
---|
1549 | |
---|
1550 | |
---|
1551 | |
---|
1552 | |
---|
1553 | |
---|
1554 | |
---|
1555 | |
---|
1556 | |
---|
1557 | |
---|
1558 | |
---|
1559 | |
---|
1560 | |
---|
1561 | |
---|
1562 | |
---|
1563 | |
---|
1564 | |
---|
1565 | |
---|
1566 | |
---|
1567 | |
---|
1568 | |
---|
1569 | |
---|
1570 | |
---|
1571 | |
---|
1572 | |
---|
1573 | |
---|
1574 | |
---|
1575 | # List one file in the package so that the configure script can test |
---|
1576 | # whether the package is actually there |
---|
1577 | |
---|
1578 | |
---|
1579 | # Where should everything be installed by default? Here, we want it |
---|
1580 | # to be installed directly in 'bin', 'lib', 'include' subdirectories |
---|
1581 | # of the directory where configure is run. The default would be |
---|
1582 | # /usr/local. |
---|
1583 | |
---|
1584 | |
---|
1585 | # Initialize the ADDLIBS variable |
---|
1586 | ADDLIBS="-lm $LIBS" |
---|
1587 | |
---|
1588 | |
---|
1589 | # Initialize the PCADDLIBS variable. |
---|
1590 | # This variable is used to setup library flags for the "Libs:" section in a .pc file. |
---|
1591 | # In certain cases, it may contain more flags than the ADDLIBS variable. |
---|
1592 | PCADDLIBS="" |
---|
1593 | |
---|
1594 | |
---|
1595 | # As backup, we make sure we don't loose an FLIBS if it has been set |
---|
1596 | # by the user |
---|
1597 | save_FLIBS="$FLIBS" |
---|
1598 | |
---|
1599 | # Initialize the FADDLIBS variable (which is to be used with a fortran |
---|
1600 | # compiler and will not include FLIBS) |
---|
1601 | FADDLIBS="$LIBS" |
---|
1602 | |
---|
1603 | |
---|
1604 | # A useful makefile conditional that is always false |
---|
1605 | |
---|
1606 | |
---|
1607 | if false; then |
---|
1608 | ALWAYS_FALSE_TRUE= |
---|
1609 | ALWAYS_FALSE_FALSE='#' |
---|
1610 | else |
---|
1611 | ALWAYS_FALSE_TRUE='#' |
---|
1612 | ALWAYS_FALSE_FALSE= |
---|
1613 | fi |
---|
1614 | |
---|
1615 | |
---|
1616 | # We set the following variable so that we know later in AC_COIN_FINALIZE |
---|
1617 | # that we are in a project main directory |
---|
1618 | coin_projectdir=yes |
---|
1619 | |
---|
1620 | # Set the project's version number |
---|
1621 | if test "xGlpk" != x; then |
---|
1622 | |
---|
1623 | cat >>confdefs.h <<_ACEOF |
---|
1624 | #define GLPK_VERSION "$PACKAGE_VERSION" |
---|
1625 | _ACEOF |
---|
1626 | |
---|
1627 | fi |
---|
1628 | |
---|
1629 | # Set the project's SVN revision number. The complicated sed expression |
---|
1630 | # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up |
---|
1631 | # as a single number. |
---|
1632 | # Extract the first word of "svnversion", so it can be a program name with args. |
---|
1633 | set dummy svnversion; ac_word=$2 |
---|
1634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1636 | if test "${ac_cv_prog_have_svnversion+set}" = set; then |
---|
1637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1638 | else |
---|
1639 | if test -n "$have_svnversion"; then |
---|
1640 | ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test. |
---|
1641 | else |
---|
1642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1643 | for as_dir in $PATH |
---|
1644 | do |
---|
1645 | IFS=$as_save_IFS |
---|
1646 | test -z "$as_dir" && as_dir=. |
---|
1647 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1649 | ac_cv_prog_have_svnversion="yes" |
---|
1650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1651 | break 2 |
---|
1652 | fi |
---|
1653 | done |
---|
1654 | done |
---|
1655 | |
---|
1656 | test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no" |
---|
1657 | fi |
---|
1658 | fi |
---|
1659 | have_svnversion=$ac_cv_prog_have_svnversion |
---|
1660 | if test -n "$have_svnversion"; then |
---|
1661 | echo "$as_me:$LINENO: result: $have_svnversion" >&5 |
---|
1662 | echo "${ECHO_T}$have_svnversion" >&6 |
---|
1663 | else |
---|
1664 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1665 | echo "${ECHO_T}no" >&6 |
---|
1666 | fi |
---|
1667 | |
---|
1668 | if test "x$have_svnversion" = xyes && test "xGlpk" != x; then |
---|
1669 | |
---|
1670 | svn_rev_tmp=`cd $srcdir/$coin_has_glpk ; svnversion` |
---|
1671 | GLPK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'` |
---|
1672 | if test $GLPK_SVN_REV != exported; then |
---|
1673 | |
---|
1674 | cat >>confdefs.h <<_ACEOF |
---|
1675 | #define GLPK_SVN_REV $GLPK_SVN_REV |
---|
1676 | _ACEOF |
---|
1677 | |
---|
1678 | fi |
---|
1679 | fi |
---|
1680 | |
---|
1681 | # Capture libtool library version, if given. |
---|
1682 | coin_libversion=8:3:7 |
---|
1683 | |
---|
1684 | |
---|
1685 | |
---|
1686 | ############################################################################# |
---|
1687 | # Standard build tool stuff # |
---|
1688 | ############################################################################# |
---|
1689 | |
---|
1690 | # Get the system type |
---|
1691 | ac_aux_dir= |
---|
1692 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1693 | if test -f $ac_dir/install-sh; then |
---|
1694 | ac_aux_dir=$ac_dir |
---|
1695 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1696 | break |
---|
1697 | elif test -f $ac_dir/install.sh; then |
---|
1698 | ac_aux_dir=$ac_dir |
---|
1699 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1700 | break |
---|
1701 | elif test -f $ac_dir/shtool; then |
---|
1702 | ac_aux_dir=$ac_dir |
---|
1703 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1704 | break |
---|
1705 | fi |
---|
1706 | done |
---|
1707 | if test -z "$ac_aux_dir"; then |
---|
1708 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1709 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1710 | { (exit 1); exit 1; }; } |
---|
1711 | fi |
---|
1712 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1713 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1714 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1715 | |
---|
1716 | # Make sure we can run config.sub. |
---|
1717 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1718 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1719 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1720 | { (exit 1); exit 1; }; } |
---|
1721 | |
---|
1722 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1723 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1724 | if test "${ac_cv_build+set}" = set; then |
---|
1725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1726 | else |
---|
1727 | ac_cv_build_alias=$build_alias |
---|
1728 | test -z "$ac_cv_build_alias" && |
---|
1729 | ac_cv_build_alias=`$ac_config_guess` |
---|
1730 | test -z "$ac_cv_build_alias" && |
---|
1731 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1732 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1733 | { (exit 1); exit 1; }; } |
---|
1734 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1735 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1736 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1737 | { (exit 1); exit 1; }; } |
---|
1738 | |
---|
1739 | fi |
---|
1740 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1741 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1742 | build=$ac_cv_build |
---|
1743 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1744 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1745 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1746 | |
---|
1747 | |
---|
1748 | |
---|
1749 | #turn off warnings and pedantic mode since it seem to make trouble on solaris platform |
---|
1750 | #and we couldn't fix it anyway |
---|
1751 | coin_skip_warn_cflags=yes |
---|
1752 | |
---|
1753 | # Check if user wants to produce debugging code |
---|
1754 | |
---|
1755 | echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 |
---|
1756 | echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 |
---|
1757 | |
---|
1758 | # Check whether --enable-debug or --disable-debug was given. |
---|
1759 | if test "${enable_debug+set}" = set; then |
---|
1760 | enableval="$enable_debug" |
---|
1761 | case "${enableval}" in |
---|
1762 | yes) coin_debug_compile=true |
---|
1763 | if test "${enable_shared+set}" = set; then :; else |
---|
1764 | enable_shared=no |
---|
1765 | fi |
---|
1766 | ;; |
---|
1767 | no) coin_debug_compile=false |
---|
1768 | ;; |
---|
1769 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 |
---|
1770 | echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} |
---|
1771 | { (exit 1); exit 1; }; } |
---|
1772 | ;; |
---|
1773 | esac |
---|
1774 | else |
---|
1775 | coin_debug_compile=false |
---|
1776 | fi; |
---|
1777 | |
---|
1778 | # Check whether --enable-debug-glpk or --disable-debug-glpk was given. |
---|
1779 | if test "${enable_debug_glpk+set}" = set; then |
---|
1780 | enableval="$enable_debug_glpk" |
---|
1781 | case "${enableval}" in |
---|
1782 | yes) coin_debug_compile=true |
---|
1783 | enable_shared=no |
---|
1784 | ;; |
---|
1785 | no) coin_debug_compile=false |
---|
1786 | ;; |
---|
1787 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-glpk" >&5 |
---|
1788 | echo "$as_me: error: bad value ${enableval} for --enable-debug-glpk" >&2;} |
---|
1789 | { (exit 1); exit 1; }; } |
---|
1790 | ;; |
---|
1791 | esac |
---|
1792 | else |
---|
1793 | : |
---|
1794 | fi; |
---|
1795 | |
---|
1796 | # m4_ifvaln([Glpk], |
---|
1797 | |
---|
1798 | if test $coin_debug_compile = true; then |
---|
1799 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1800 | echo "${ECHO_T}yes" >&6 |
---|
1801 | else |
---|
1802 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1803 | echo "${ECHO_T}no" >&6 |
---|
1804 | fi |
---|
1805 | |
---|
1806 | |
---|
1807 | # Check whether --with-glpk-verbosity or --without-glpk-verbosity was given. |
---|
1808 | if test "${with_glpk_verbosity+set}" = set; then |
---|
1809 | withval="$with_glpk_verbosity" |
---|
1810 | if test "$withval" = yes; then |
---|
1811 | withval=1 |
---|
1812 | fi |
---|
1813 | coin_glpk_verbosity=$withval |
---|
1814 | else |
---|
1815 | coin_glpk_verbosity=0 |
---|
1816 | fi; |
---|
1817 | |
---|
1818 | cat >>confdefs.h <<_ACEOF |
---|
1819 | #define COIN_GLPK_VERBOSITY $coin_glpk_verbosity |
---|
1820 | _ACEOF |
---|
1821 | |
---|
1822 | |
---|
1823 | |
---|
1824 | # Check whether --with-glpk-checklevel or --without-glpk-checklevel was given. |
---|
1825 | if test "${with_glpk_checklevel+set}" = set; then |
---|
1826 | withval="$with_glpk_checklevel" |
---|
1827 | if test "$withval" = yes; then |
---|
1828 | withval=1 |
---|
1829 | fi |
---|
1830 | coin_glpk_checklevel=$withval |
---|
1831 | else |
---|
1832 | coin_glpk_checklevel=0 |
---|
1833 | fi; |
---|
1834 | |
---|
1835 | cat >>confdefs.h <<_ACEOF |
---|
1836 | #define COIN_GLPK_CHECKLEVEL $coin_glpk_checklevel |
---|
1837 | _ACEOF |
---|
1838 | |
---|
1839 | |
---|
1840 | # We use the following variable to have a string with the upper case |
---|
1841 | # version of the project name |
---|
1842 | COIN_PRJCT=GLPK |
---|
1843 | |
---|
1844 | |
---|
1845 | # m4_ifvaln([Glpk], |
---|
1846 | |
---|
1847 | |
---|
1848 | |
---|
1849 | # Get the name of the C compiler |
---|
1850 | case $build in |
---|
1851 | *-mingw*) |
---|
1852 | if test "${LD+set}" = set; then :; else |
---|
1853 | LD=link |
---|
1854 | fi |
---|
1855 | ;; |
---|
1856 | esac |
---|
1857 | case $enable_doscompile in |
---|
1858 | msvc) |
---|
1859 | if test "x${LD+set}" = xset; then :; else |
---|
1860 | LD=link |
---|
1861 | fi |
---|
1862 | ;; |
---|
1863 | esac |
---|
1864 | |
---|
1865 | |
---|
1866 | # Check whether --enable-doscompile or --disable-doscompile was given. |
---|
1867 | if test "${enable_doscompile+set}" = set; then |
---|
1868 | enableval="$enable_doscompile" |
---|
1869 | if test "$enable_doscompile" != no; then |
---|
1870 | case $build in |
---|
1871 | *-cygwin* | *-mingw*) ;; |
---|
1872 | *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5 |
---|
1873 | echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;} |
---|
1874 | { (exit 1); exit 1; }; } ;; |
---|
1875 | esac |
---|
1876 | fi |
---|
1877 | else |
---|
1878 | enable_doscompile=no |
---|
1879 | fi; |
---|
1880 | case "$enable_doscompile" in |
---|
1881 | mingw) |
---|
1882 | case $build in |
---|
1883 | *-mingw*) enable_doscompile=no ;; |
---|
1884 | esac |
---|
1885 | ;; |
---|
1886 | msvc|no) ;; |
---|
1887 | yes) enable_doscompile=mingw ;; |
---|
1888 | *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile. |
---|
1889 | Try configure --help=recursive." >&5 |
---|
1890 | echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile. |
---|
1891 | Try configure --help=recursive." >&2;} |
---|
1892 | { (exit 1); exit 1; }; } |
---|
1893 | ;; |
---|
1894 | esac |
---|
1895 | if test "$enable_doscompile" != no ; then |
---|
1896 | { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5 |
---|
1897 | echo "$as_me: DOS compile style is: $enable_doscompile" >&6;} |
---|
1898 | fi |
---|
1899 | |
---|
1900 | |
---|
1901 | |
---|
1902 | |
---|
1903 | ac_ext=c |
---|
1904 | ac_cpp='$CPP $CPPFLAGS' |
---|
1905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1908 | |
---|
1909 | |
---|
1910 | # For consistency, we set the C compiler to the same value of the C++ |
---|
1911 | # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) |
---|
1912 | if test x"$CXX" != x; then |
---|
1913 | case "$CXX" in |
---|
1914 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
1915 | if test x"$CC" = x; then |
---|
1916 | CC="$CXX" |
---|
1917 | { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 |
---|
1918 | echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} |
---|
1919 | fi |
---|
1920 | ;; |
---|
1921 | esac |
---|
1922 | fi |
---|
1923 | |
---|
1924 | # add automake conditional so we can recognize cl compiler in makefile |
---|
1925 | coin_cc_is_cl=false |
---|
1926 | if test x"$CXX" != x; then |
---|
1927 | case "$CXX" in |
---|
1928 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
1929 | coin_cc_is_cl=true |
---|
1930 | ;; |
---|
1931 | esac |
---|
1932 | fi |
---|
1933 | |
---|
1934 | |
---|
1935 | if test $coin_cc_is_cl = true; then |
---|
1936 | COIN_CC_IS_CL_TRUE= |
---|
1937 | COIN_CC_IS_CL_FALSE='#' |
---|
1938 | else |
---|
1939 | COIN_CC_IS_CL_TRUE='#' |
---|
1940 | COIN_CC_IS_CL_FALSE= |
---|
1941 | fi |
---|
1942 | |
---|
1943 | |
---|
1944 | |
---|
1945 | |
---|
1946 | |
---|
1947 | |
---|
1948 | |
---|
1949 | coin_has_cc=yes |
---|
1950 | |
---|
1951 | save_cflags="$CFLAGS" |
---|
1952 | |
---|
1953 | # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. |
---|
1954 | # Depending on the user's PATH, when Studio/Workshop cc is not present we may |
---|
1955 | # find /usr/ucb/cc, which is almost certainly not a good choice for the C |
---|
1956 | # compiler. In this case, put cc after gcc. |
---|
1957 | |
---|
1958 | case $build in |
---|
1959 | *-cygwin* | *-mingw*) |
---|
1960 | if test "$enable_doscompile" = msvc ; then |
---|
1961 | comps="icl cl" |
---|
1962 | else |
---|
1963 | comps="gcc cl" |
---|
1964 | fi ;; |
---|
1965 | *-*-solaris*) |
---|
1966 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1967 | set dummy cc; ac_word=$2 |
---|
1968 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1969 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1970 | if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then |
---|
1971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1972 | else |
---|
1973 | if test -n "$sol_cc_compiler"; then |
---|
1974 | ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. |
---|
1975 | else |
---|
1976 | ac_prog_rejected=no |
---|
1977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1978 | for as_dir in $PATH |
---|
1979 | do |
---|
1980 | IFS=$as_save_IFS |
---|
1981 | test -z "$as_dir" && as_dir=. |
---|
1982 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1983 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1984 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
1985 | ac_prog_rejected=yes |
---|
1986 | continue |
---|
1987 | fi |
---|
1988 | ac_cv_prog_sol_cc_compiler="cc" |
---|
1989 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1990 | break 2 |
---|
1991 | fi |
---|
1992 | done |
---|
1993 | done |
---|
1994 | |
---|
1995 | if test $ac_prog_rejected = yes; then |
---|
1996 | # We found a bogon in the path, so make sure we never use it. |
---|
1997 | set dummy $ac_cv_prog_sol_cc_compiler |
---|
1998 | shift |
---|
1999 | if test $# != 0; then |
---|
2000 | # We chose a different compiler from the bogus one. |
---|
2001 | # However, it has the same basename, so the bogon will be chosen |
---|
2002 | # first if we set sol_cc_compiler to just the basename; use the full file name. |
---|
2003 | shift |
---|
2004 | ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" |
---|
2005 | fi |
---|
2006 | fi |
---|
2007 | fi |
---|
2008 | fi |
---|
2009 | sol_cc_compiler=$ac_cv_prog_sol_cc_compiler |
---|
2010 | if test -n "$sol_cc_compiler"; then |
---|
2011 | echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 |
---|
2012 | echo "${ECHO_T}$sol_cc_compiler" >&6 |
---|
2013 | else |
---|
2014 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2015 | echo "${ECHO_T}no" >&6 |
---|
2016 | fi |
---|
2017 | |
---|
2018 | if test "$sol_cc_compiler" = "cc" ; then |
---|
2019 | comps="cc xlc gcc pgcc icc" |
---|
2020 | else |
---|
2021 | comps="xlc gcc pgcc icc cc" |
---|
2022 | fi |
---|
2023 | ;; |
---|
2024 | *-linux-*) comps="xlc gcc cc pgcc icc" ;; |
---|
2025 | *) comps="xlc_r xlc cc gcc pgcc icc" ;; |
---|
2026 | esac |
---|
2027 | |
---|
2028 | # We delete the cached value, since the test might not have been |
---|
2029 | # performed with our choice of compilers earlier |
---|
2030 | $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } |
---|
2031 | # AC_MSG_NOTICE([C compiler candidates: $comps]) |
---|
2032 | ac_ext=c |
---|
2033 | ac_cpp='$CPP $CPPFLAGS' |
---|
2034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2037 | if test -n "$ac_tool_prefix"; then |
---|
2038 | for ac_prog in $comps |
---|
2039 | do |
---|
2040 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2041 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2042 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2043 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2044 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2046 | else |
---|
2047 | if test -n "$CC"; then |
---|
2048 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2049 | else |
---|
2050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2051 | for as_dir in $PATH |
---|
2052 | do |
---|
2053 | IFS=$as_save_IFS |
---|
2054 | test -z "$as_dir" && as_dir=. |
---|
2055 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2056 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2057 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2058 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2059 | break 2 |
---|
2060 | fi |
---|
2061 | done |
---|
2062 | done |
---|
2063 | |
---|
2064 | fi |
---|
2065 | fi |
---|
2066 | CC=$ac_cv_prog_CC |
---|
2067 | if test -n "$CC"; then |
---|
2068 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2069 | echo "${ECHO_T}$CC" >&6 |
---|
2070 | else |
---|
2071 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2072 | echo "${ECHO_T}no" >&6 |
---|
2073 | fi |
---|
2074 | |
---|
2075 | test -n "$CC" && break |
---|
2076 | done |
---|
2077 | fi |
---|
2078 | if test -z "$CC"; then |
---|
2079 | ac_ct_CC=$CC |
---|
2080 | for ac_prog in $comps |
---|
2081 | do |
---|
2082 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2083 | set dummy $ac_prog; ac_word=$2 |
---|
2084 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2086 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2088 | else |
---|
2089 | if test -n "$ac_ct_CC"; then |
---|
2090 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2091 | else |
---|
2092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2093 | for as_dir in $PATH |
---|
2094 | do |
---|
2095 | IFS=$as_save_IFS |
---|
2096 | test -z "$as_dir" && as_dir=. |
---|
2097 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2098 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2099 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2101 | break 2 |
---|
2102 | fi |
---|
2103 | done |
---|
2104 | done |
---|
2105 | |
---|
2106 | fi |
---|
2107 | fi |
---|
2108 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2109 | if test -n "$ac_ct_CC"; then |
---|
2110 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2111 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2112 | else |
---|
2113 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2114 | echo "${ECHO_T}no" >&6 |
---|
2115 | fi |
---|
2116 | |
---|
2117 | test -n "$ac_ct_CC" && break |
---|
2118 | done |
---|
2119 | |
---|
2120 | CC=$ac_ct_CC |
---|
2121 | fi |
---|
2122 | |
---|
2123 | |
---|
2124 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2125 | See \`config.log' for more details." >&5 |
---|
2126 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2127 | See \`config.log' for more details." >&2;} |
---|
2128 | { (exit 1); exit 1; }; } |
---|
2129 | |
---|
2130 | # Provide some information about the compiler. |
---|
2131 | echo "$as_me:$LINENO:" \ |
---|
2132 | "checking for C compiler version" >&5 |
---|
2133 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2134 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2135 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2136 | ac_status=$? |
---|
2137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2138 | (exit $ac_status); } |
---|
2139 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2140 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2141 | ac_status=$? |
---|
2142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2143 | (exit $ac_status); } |
---|
2144 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2145 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2146 | ac_status=$? |
---|
2147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2148 | (exit $ac_status); } |
---|
2149 | |
---|
2150 | cat >conftest.$ac_ext <<_ACEOF |
---|
2151 | /* confdefs.h. */ |
---|
2152 | _ACEOF |
---|
2153 | cat confdefs.h >>conftest.$ac_ext |
---|
2154 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2155 | /* end confdefs.h. */ |
---|
2156 | |
---|
2157 | int |
---|
2158 | main () |
---|
2159 | { |
---|
2160 | |
---|
2161 | ; |
---|
2162 | return 0; |
---|
2163 | } |
---|
2164 | _ACEOF |
---|
2165 | ac_clean_files_save=$ac_clean_files |
---|
2166 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2167 | # Try to create an executable without -o first, disregard a.out. |
---|
2168 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2169 | # of exeext. |
---|
2170 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2171 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
2172 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2173 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2174 | (eval $ac_link_default) 2>&5 |
---|
2175 | ac_status=$? |
---|
2176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2177 | (exit $ac_status); }; then |
---|
2178 | # Find the output, starting from the most likely. This scheme is |
---|
2179 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2180 | # resort. |
---|
2181 | |
---|
2182 | # Be careful to initialize this variable, since it used to be cached. |
---|
2183 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2184 | ac_cv_exeext= |
---|
2185 | # b.out is created by i960 compilers. |
---|
2186 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2187 | do |
---|
2188 | test -f "$ac_file" || continue |
---|
2189 | case $ac_file in |
---|
2190 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2191 | ;; |
---|
2192 | conftest.$ac_ext ) |
---|
2193 | # This is the source file. |
---|
2194 | ;; |
---|
2195 | [ab].out ) |
---|
2196 | # We found the default executable, but exeext='' is most |
---|
2197 | # certainly right. |
---|
2198 | break;; |
---|
2199 | *.* ) |
---|
2200 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2201 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2202 | # but it would be cool to find out if it's true. Does anybody |
---|
2203 | # maintain Libtool? --akim. |
---|
2204 | export ac_cv_exeext |
---|
2205 | break;; |
---|
2206 | * ) |
---|
2207 | break;; |
---|
2208 | esac |
---|
2209 | done |
---|
2210 | else |
---|
2211 | echo "$as_me: failed program was:" >&5 |
---|
2212 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2213 | |
---|
2214 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2215 | See \`config.log' for more details." >&5 |
---|
2216 | echo "$as_me: error: C compiler cannot create executables |
---|
2217 | See \`config.log' for more details." >&2;} |
---|
2218 | { (exit 77); exit 77; }; } |
---|
2219 | fi |
---|
2220 | |
---|
2221 | ac_exeext=$ac_cv_exeext |
---|
2222 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2223 | echo "${ECHO_T}$ac_file" >&6 |
---|
2224 | |
---|
2225 | # Check the compiler produces executables we can run. If not, either |
---|
2226 | # the compiler is broken, or we cross compile. |
---|
2227 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2228 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2229 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2230 | # If not cross compiling, check that we can run a simple program. |
---|
2231 | if test "$cross_compiling" != yes; then |
---|
2232 | if { ac_try='./$ac_file' |
---|
2233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2234 | (eval $ac_try) 2>&5 |
---|
2235 | ac_status=$? |
---|
2236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2237 | (exit $ac_status); }; }; then |
---|
2238 | cross_compiling=no |
---|
2239 | else |
---|
2240 | if test "$cross_compiling" = maybe; then |
---|
2241 | cross_compiling=yes |
---|
2242 | else |
---|
2243 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2244 | If you meant to cross compile, use \`--host'. |
---|
2245 | See \`config.log' for more details." >&5 |
---|
2246 | echo "$as_me: error: cannot run C compiled programs. |
---|
2247 | If you meant to cross compile, use \`--host'. |
---|
2248 | See \`config.log' for more details." >&2;} |
---|
2249 | { (exit 1); exit 1; }; } |
---|
2250 | fi |
---|
2251 | fi |
---|
2252 | fi |
---|
2253 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2254 | echo "${ECHO_T}yes" >&6 |
---|
2255 | |
---|
2256 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2257 | ac_clean_files=$ac_clean_files_save |
---|
2258 | # Check the compiler produces executables we can run. If not, either |
---|
2259 | # the compiler is broken, or we cross compile. |
---|
2260 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2261 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2262 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2263 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2264 | |
---|
2265 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2266 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2268 | (eval $ac_link) 2>&5 |
---|
2269 | ac_status=$? |
---|
2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2271 | (exit $ac_status); }; then |
---|
2272 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2273 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2274 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2275 | # `rm'. |
---|
2276 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2277 | test -f "$ac_file" || continue |
---|
2278 | case $ac_file in |
---|
2279 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2280 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2281 | export ac_cv_exeext |
---|
2282 | break;; |
---|
2283 | * ) break;; |
---|
2284 | esac |
---|
2285 | done |
---|
2286 | else |
---|
2287 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2288 | See \`config.log' for more details." >&5 |
---|
2289 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2290 | See \`config.log' for more details." >&2;} |
---|
2291 | { (exit 1); exit 1; }; } |
---|
2292 | fi |
---|
2293 | |
---|
2294 | rm -f conftest$ac_cv_exeext |
---|
2295 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2296 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2297 | |
---|
2298 | rm -f conftest.$ac_ext |
---|
2299 | EXEEXT=$ac_cv_exeext |
---|
2300 | ac_exeext=$EXEEXT |
---|
2301 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2302 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2303 | if test "${ac_cv_objext+set}" = set; then |
---|
2304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2305 | else |
---|
2306 | cat >conftest.$ac_ext <<_ACEOF |
---|
2307 | /* confdefs.h. */ |
---|
2308 | _ACEOF |
---|
2309 | cat confdefs.h >>conftest.$ac_ext |
---|
2310 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2311 | /* end confdefs.h. */ |
---|
2312 | |
---|
2313 | int |
---|
2314 | main () |
---|
2315 | { |
---|
2316 | |
---|
2317 | ; |
---|
2318 | return 0; |
---|
2319 | } |
---|
2320 | _ACEOF |
---|
2321 | rm -f conftest.o conftest.obj |
---|
2322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2323 | (eval $ac_compile) 2>&5 |
---|
2324 | ac_status=$? |
---|
2325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2326 | (exit $ac_status); }; then |
---|
2327 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2328 | case $ac_file in |
---|
2329 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2330 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2331 | break;; |
---|
2332 | esac |
---|
2333 | done |
---|
2334 | else |
---|
2335 | echo "$as_me: failed program was:" >&5 |
---|
2336 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2337 | |
---|
2338 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2339 | See \`config.log' for more details." >&5 |
---|
2340 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2341 | See \`config.log' for more details." >&2;} |
---|
2342 | { (exit 1); exit 1; }; } |
---|
2343 | fi |
---|
2344 | |
---|
2345 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2346 | fi |
---|
2347 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2348 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2349 | OBJEXT=$ac_cv_objext |
---|
2350 | ac_objext=$OBJEXT |
---|
2351 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2352 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2353 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2355 | else |
---|
2356 | cat >conftest.$ac_ext <<_ACEOF |
---|
2357 | /* confdefs.h. */ |
---|
2358 | _ACEOF |
---|
2359 | cat confdefs.h >>conftest.$ac_ext |
---|
2360 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2361 | /* end confdefs.h. */ |
---|
2362 | |
---|
2363 | int |
---|
2364 | main () |
---|
2365 | { |
---|
2366 | #ifndef __GNUC__ |
---|
2367 | choke me |
---|
2368 | #endif |
---|
2369 | |
---|
2370 | ; |
---|
2371 | return 0; |
---|
2372 | } |
---|
2373 | _ACEOF |
---|
2374 | rm -f conftest.$ac_objext |
---|
2375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2376 | (eval $ac_compile) 2>conftest.er1 |
---|
2377 | ac_status=$? |
---|
2378 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2379 | rm -f conftest.er1 |
---|
2380 | cat conftest.err >&5 |
---|
2381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2382 | (exit $ac_status); } && |
---|
2383 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2384 | || test ! -s conftest.err' |
---|
2385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2386 | (eval $ac_try) 2>&5 |
---|
2387 | ac_status=$? |
---|
2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2389 | (exit $ac_status); }; } && |
---|
2390 | { ac_try='test -s conftest.$ac_objext' |
---|
2391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2392 | (eval $ac_try) 2>&5 |
---|
2393 | ac_status=$? |
---|
2394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2395 | (exit $ac_status); }; }; then |
---|
2396 | ac_compiler_gnu=yes |
---|
2397 | else |
---|
2398 | echo "$as_me: failed program was:" >&5 |
---|
2399 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2400 | |
---|
2401 | ac_compiler_gnu=no |
---|
2402 | fi |
---|
2403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2404 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2405 | |
---|
2406 | fi |
---|
2407 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2408 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2409 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2410 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2411 | ac_save_CFLAGS=$CFLAGS |
---|
2412 | CFLAGS="-g" |
---|
2413 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2414 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2415 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2417 | else |
---|
2418 | cat >conftest.$ac_ext <<_ACEOF |
---|
2419 | /* confdefs.h. */ |
---|
2420 | _ACEOF |
---|
2421 | cat confdefs.h >>conftest.$ac_ext |
---|
2422 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2423 | /* end confdefs.h. */ |
---|
2424 | |
---|
2425 | int |
---|
2426 | main () |
---|
2427 | { |
---|
2428 | |
---|
2429 | ; |
---|
2430 | return 0; |
---|
2431 | } |
---|
2432 | _ACEOF |
---|
2433 | rm -f conftest.$ac_objext |
---|
2434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2435 | (eval $ac_compile) 2>conftest.er1 |
---|
2436 | ac_status=$? |
---|
2437 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2438 | rm -f conftest.er1 |
---|
2439 | cat conftest.err >&5 |
---|
2440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2441 | (exit $ac_status); } && |
---|
2442 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2443 | || test ! -s conftest.err' |
---|
2444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2445 | (eval $ac_try) 2>&5 |
---|
2446 | ac_status=$? |
---|
2447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2448 | (exit $ac_status); }; } && |
---|
2449 | { ac_try='test -s conftest.$ac_objext' |
---|
2450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2451 | (eval $ac_try) 2>&5 |
---|
2452 | ac_status=$? |
---|
2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2454 | (exit $ac_status); }; }; then |
---|
2455 | ac_cv_prog_cc_g=yes |
---|
2456 | else |
---|
2457 | echo "$as_me: failed program was:" >&5 |
---|
2458 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2459 | |
---|
2460 | ac_cv_prog_cc_g=no |
---|
2461 | fi |
---|
2462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2463 | fi |
---|
2464 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2465 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2466 | if test "$ac_test_CFLAGS" = set; then |
---|
2467 | CFLAGS=$ac_save_CFLAGS |
---|
2468 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2469 | if test "$GCC" = yes; then |
---|
2470 | CFLAGS="-g -O2" |
---|
2471 | else |
---|
2472 | CFLAGS="-g" |
---|
2473 | fi |
---|
2474 | else |
---|
2475 | if test "$GCC" = yes; then |
---|
2476 | CFLAGS="-O2" |
---|
2477 | else |
---|
2478 | CFLAGS= |
---|
2479 | fi |
---|
2480 | fi |
---|
2481 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2482 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2483 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2485 | else |
---|
2486 | ac_cv_prog_cc_stdc=no |
---|
2487 | ac_save_CC=$CC |
---|
2488 | cat >conftest.$ac_ext <<_ACEOF |
---|
2489 | /* confdefs.h. */ |
---|
2490 | _ACEOF |
---|
2491 | cat confdefs.h >>conftest.$ac_ext |
---|
2492 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2493 | /* end confdefs.h. */ |
---|
2494 | #include <stdarg.h> |
---|
2495 | #include <stdio.h> |
---|
2496 | #include <sys/types.h> |
---|
2497 | #include <sys/stat.h> |
---|
2498 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2499 | struct buf { int x; }; |
---|
2500 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2501 | static char *e (p, i) |
---|
2502 | char **p; |
---|
2503 | int i; |
---|
2504 | { |
---|
2505 | return p[i]; |
---|
2506 | } |
---|
2507 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2508 | { |
---|
2509 | char *s; |
---|
2510 | va_list v; |
---|
2511 | va_start (v,p); |
---|
2512 | s = g (p, va_arg (v,int)); |
---|
2513 | va_end (v); |
---|
2514 | return s; |
---|
2515 | } |
---|
2516 | |
---|
2517 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2518 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2519 | These don't provoke an error unfortunately, instead are silently treated |
---|
2520 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2521 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2522 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2523 | that's true only with -std1. */ |
---|
2524 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2525 | |
---|
2526 | int test (int i, double x); |
---|
2527 | struct s1 {int (*f) (int a);}; |
---|
2528 | struct s2 {int (*f) (double a);}; |
---|
2529 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2530 | int argc; |
---|
2531 | char **argv; |
---|
2532 | int |
---|
2533 | main () |
---|
2534 | { |
---|
2535 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2536 | ; |
---|
2537 | return 0; |
---|
2538 | } |
---|
2539 | _ACEOF |
---|
2540 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2541 | # breaks some systems' header files. |
---|
2542 | # AIX -qlanglvl=ansi |
---|
2543 | # Ultrix and OSF/1 -std1 |
---|
2544 | # HP-UX 10.20 and later -Ae |
---|
2545 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2546 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2547 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2548 | do |
---|
2549 | CC="$ac_save_CC $ac_arg" |
---|
2550 | rm -f conftest.$ac_objext |
---|
2551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2552 | (eval $ac_compile) 2>conftest.er1 |
---|
2553 | ac_status=$? |
---|
2554 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2555 | rm -f conftest.er1 |
---|
2556 | cat conftest.err >&5 |
---|
2557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2558 | (exit $ac_status); } && |
---|
2559 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2560 | || test ! -s conftest.err' |
---|
2561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2562 | (eval $ac_try) 2>&5 |
---|
2563 | ac_status=$? |
---|
2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2565 | (exit $ac_status); }; } && |
---|
2566 | { ac_try='test -s conftest.$ac_objext' |
---|
2567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2568 | (eval $ac_try) 2>&5 |
---|
2569 | ac_status=$? |
---|
2570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2571 | (exit $ac_status); }; }; then |
---|
2572 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2573 | break |
---|
2574 | else |
---|
2575 | echo "$as_me: failed program was:" >&5 |
---|
2576 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2577 | |
---|
2578 | fi |
---|
2579 | rm -f conftest.err conftest.$ac_objext |
---|
2580 | done |
---|
2581 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2582 | CC=$ac_save_CC |
---|
2583 | |
---|
2584 | fi |
---|
2585 | |
---|
2586 | case "x$ac_cv_prog_cc_stdc" in |
---|
2587 | x|xno) |
---|
2588 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2589 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2590 | *) |
---|
2591 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2592 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2593 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2594 | esac |
---|
2595 | |
---|
2596 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2597 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2598 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2599 | # the declaration of exit, since it's the most demanding environment. |
---|
2600 | cat >conftest.$ac_ext <<_ACEOF |
---|
2601 | #ifndef __cplusplus |
---|
2602 | choke me |
---|
2603 | #endif |
---|
2604 | _ACEOF |
---|
2605 | rm -f conftest.$ac_objext |
---|
2606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2607 | (eval $ac_compile) 2>conftest.er1 |
---|
2608 | ac_status=$? |
---|
2609 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2610 | rm -f conftest.er1 |
---|
2611 | cat conftest.err >&5 |
---|
2612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2613 | (exit $ac_status); } && |
---|
2614 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2615 | || test ! -s conftest.err' |
---|
2616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2617 | (eval $ac_try) 2>&5 |
---|
2618 | ac_status=$? |
---|
2619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2620 | (exit $ac_status); }; } && |
---|
2621 | { ac_try='test -s conftest.$ac_objext' |
---|
2622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2623 | (eval $ac_try) 2>&5 |
---|
2624 | ac_status=$? |
---|
2625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2626 | (exit $ac_status); }; }; then |
---|
2627 | for ac_declaration in \ |
---|
2628 | '' \ |
---|
2629 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2630 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2631 | 'extern "C" void exit (int) throw ();' \ |
---|
2632 | 'extern "C" void exit (int);' \ |
---|
2633 | 'void exit (int);' |
---|
2634 | do |
---|
2635 | cat >conftest.$ac_ext <<_ACEOF |
---|
2636 | /* confdefs.h. */ |
---|
2637 | _ACEOF |
---|
2638 | cat confdefs.h >>conftest.$ac_ext |
---|
2639 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2640 | /* end confdefs.h. */ |
---|
2641 | $ac_declaration |
---|
2642 | #include <stdlib.h> |
---|
2643 | int |
---|
2644 | main () |
---|
2645 | { |
---|
2646 | exit (42); |
---|
2647 | ; |
---|
2648 | return 0; |
---|
2649 | } |
---|
2650 | _ACEOF |
---|
2651 | rm -f conftest.$ac_objext |
---|
2652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2653 | (eval $ac_compile) 2>conftest.er1 |
---|
2654 | ac_status=$? |
---|
2655 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2656 | rm -f conftest.er1 |
---|
2657 | cat conftest.err >&5 |
---|
2658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2659 | (exit $ac_status); } && |
---|
2660 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2661 | || test ! -s conftest.err' |
---|
2662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2663 | (eval $ac_try) 2>&5 |
---|
2664 | ac_status=$? |
---|
2665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2666 | (exit $ac_status); }; } && |
---|
2667 | { ac_try='test -s conftest.$ac_objext' |
---|
2668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2669 | (eval $ac_try) 2>&5 |
---|
2670 | ac_status=$? |
---|
2671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2672 | (exit $ac_status); }; }; then |
---|
2673 | : |
---|
2674 | else |
---|
2675 | echo "$as_me: failed program was:" >&5 |
---|
2676 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2677 | |
---|
2678 | continue |
---|
2679 | fi |
---|
2680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2681 | cat >conftest.$ac_ext <<_ACEOF |
---|
2682 | /* confdefs.h. */ |
---|
2683 | _ACEOF |
---|
2684 | cat confdefs.h >>conftest.$ac_ext |
---|
2685 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2686 | /* end confdefs.h. */ |
---|
2687 | $ac_declaration |
---|
2688 | int |
---|
2689 | main () |
---|
2690 | { |
---|
2691 | exit (42); |
---|
2692 | ; |
---|
2693 | return 0; |
---|
2694 | } |
---|
2695 | _ACEOF |
---|
2696 | rm -f conftest.$ac_objext |
---|
2697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2698 | (eval $ac_compile) 2>conftest.er1 |
---|
2699 | ac_status=$? |
---|
2700 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2701 | rm -f conftest.er1 |
---|
2702 | cat conftest.err >&5 |
---|
2703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2704 | (exit $ac_status); } && |
---|
2705 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2706 | || test ! -s conftest.err' |
---|
2707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2708 | (eval $ac_try) 2>&5 |
---|
2709 | ac_status=$? |
---|
2710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2711 | (exit $ac_status); }; } && |
---|
2712 | { ac_try='test -s conftest.$ac_objext' |
---|
2713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2714 | (eval $ac_try) 2>&5 |
---|
2715 | ac_status=$? |
---|
2716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2717 | (exit $ac_status); }; }; then |
---|
2718 | break |
---|
2719 | else |
---|
2720 | echo "$as_me: failed program was:" >&5 |
---|
2721 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2722 | |
---|
2723 | fi |
---|
2724 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2725 | done |
---|
2726 | rm -f conftest* |
---|
2727 | if test -n "$ac_declaration"; then |
---|
2728 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2729 | echo $ac_declaration >>confdefs.h |
---|
2730 | echo '#endif' >>confdefs.h |
---|
2731 | fi |
---|
2732 | |
---|
2733 | else |
---|
2734 | echo "$as_me: failed program was:" >&5 |
---|
2735 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2736 | |
---|
2737 | fi |
---|
2738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2739 | ac_ext=c |
---|
2740 | ac_cpp='$CPP $CPPFLAGS' |
---|
2741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2744 | |
---|
2745 | if test -z "$CC" ; then |
---|
2746 | { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 |
---|
2747 | echo "$as_me: error: Failed to find a C compiler!" >&2;} |
---|
2748 | { (exit 1); exit 1; }; } |
---|
2749 | fi |
---|
2750 | # Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
---|
2751 | case "$CC" in |
---|
2752 | cl* | */cl* | CL* | */CL* ) |
---|
2753 | if test "$ac_cv_prog_cc_g" = yes ; then |
---|
2754 | ac_cv_prog_cc_g=no |
---|
2755 | { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
---|
2756 | echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
---|
2757 | fi ;; |
---|
2758 | esac |
---|
2759 | CFLAGS="$save_cflags" |
---|
2760 | |
---|
2761 | # Check if a project specific CFLAGS variable has been set |
---|
2762 | if test x$COIN_PRJCT != x; then |
---|
2763 | eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} |
---|
2764 | if test x$coin_tmp = xset; then |
---|
2765 | eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} |
---|
2766 | fi |
---|
2767 | fi |
---|
2768 | |
---|
2769 | if test x"$CFLAGS" = x; then |
---|
2770 | |
---|
2771 | coin_add_cflags= |
---|
2772 | coin_opt_cflags= |
---|
2773 | coin_dbg_cflags= |
---|
2774 | coin_warn_cflags= |
---|
2775 | |
---|
2776 | if test "$GCC" = "yes"; then |
---|
2777 | case "$CC" in |
---|
2778 | icc* | */icc*) |
---|
2779 | ;; |
---|
2780 | *) |
---|
2781 | coin_opt_cflags="-O3" |
---|
2782 | coin_add_cflags="-pipe" |
---|
2783 | coin_dbg_cflags="-g" |
---|
2784 | coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas" |
---|
2785 | case $build in |
---|
2786 | *-darwin*) |
---|
2787 | ;; |
---|
2788 | *) |
---|
2789 | coin_warn_cflags="-pedantic-errors $coin_warn_cflags" |
---|
2790 | ;; |
---|
2791 | esac |
---|
2792 | case $enable_doscompile in |
---|
2793 | mingw) |
---|
2794 | CFLAGS="-mno-cygwin" |
---|
2795 | cat >conftest.$ac_ext <<_ACEOF |
---|
2796 | /* confdefs.h. */ |
---|
2797 | _ACEOF |
---|
2798 | cat confdefs.h >>conftest.$ac_ext |
---|
2799 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2800 | /* end confdefs.h. */ |
---|
2801 | |
---|
2802 | int |
---|
2803 | main () |
---|
2804 | { |
---|
2805 | int i=0; i++; |
---|
2806 | ; |
---|
2807 | return 0; |
---|
2808 | } |
---|
2809 | _ACEOF |
---|
2810 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2812 | (eval $ac_link) 2>conftest.er1 |
---|
2813 | ac_status=$? |
---|
2814 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2815 | rm -f conftest.er1 |
---|
2816 | cat conftest.err >&5 |
---|
2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2818 | (exit $ac_status); } && |
---|
2819 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2820 | || test ! -s conftest.err' |
---|
2821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2822 | (eval $ac_try) 2>&5 |
---|
2823 | ac_status=$? |
---|
2824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2825 | (exit $ac_status); }; } && |
---|
2826 | { ac_try='test -s conftest$ac_exeext' |
---|
2827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2828 | (eval $ac_try) 2>&5 |
---|
2829 | ac_status=$? |
---|
2830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2831 | (exit $ac_status); }; }; then |
---|
2832 | coin_add_cflags="-mno-cygwin $coin_add_cflags" |
---|
2833 | else |
---|
2834 | echo "$as_me: failed program was:" >&5 |
---|
2835 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2836 | |
---|
2837 | fi |
---|
2838 | rm -f conftest.err conftest.$ac_objext \ |
---|
2839 | conftest$ac_exeext conftest.$ac_ext |
---|
2840 | CFLAGS= |
---|
2841 | ;; |
---|
2842 | esac |
---|
2843 | esac |
---|
2844 | fi |
---|
2845 | if test -z "$coin_opt_cflags"; then |
---|
2846 | case $build in |
---|
2847 | *-cygwin* | *-mingw*) |
---|
2848 | case "$CC" in |
---|
2849 | cl* | */cl* | CL* | */CL*) |
---|
2850 | coin_opt_cflags='-MT -O2' |
---|
2851 | coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' |
---|
2852 | coin_dbg_cflags='-MTd' |
---|
2853 | ;; |
---|
2854 | icl* | */icl* | ICL* | */ICL*) |
---|
2855 | coin_opt_cflags='-MT -Ox' |
---|
2856 | coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' |
---|
2857 | coin_dbg_cflags='-MTd -debug' |
---|
2858 | ;; |
---|
2859 | esac |
---|
2860 | ;; |
---|
2861 | *-linux-*) |
---|
2862 | case "$CC" in |
---|
2863 | icc* | */icc*) |
---|
2864 | coin_opt_cflags="-O3 -ip -mp1" |
---|
2865 | coin_add_cflags="" |
---|
2866 | coin_dbg_cflags="-g" |
---|
2867 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
2868 | CFLAGS= |
---|
2869 | cat >conftest.$ac_ext <<_ACEOF |
---|
2870 | /* confdefs.h. */ |
---|
2871 | _ACEOF |
---|
2872 | cat confdefs.h >>conftest.$ac_ext |
---|
2873 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2874 | /* end confdefs.h. */ |
---|
2875 | |
---|
2876 | int |
---|
2877 | main () |
---|
2878 | { |
---|
2879 | int i=0; i++; |
---|
2880 | ; |
---|
2881 | return 0; |
---|
2882 | } |
---|
2883 | _ACEOF |
---|
2884 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2886 | (eval $ac_link) 2>conftest.er1 |
---|
2887 | ac_status=$? |
---|
2888 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2889 | rm -f conftest.er1 |
---|
2890 | cat conftest.err >&5 |
---|
2891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2892 | (exit $ac_status); } && |
---|
2893 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2894 | || test ! -s conftest.err' |
---|
2895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2896 | (eval $ac_try) 2>&5 |
---|
2897 | ac_status=$? |
---|
2898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2899 | (exit $ac_status); }; } && |
---|
2900 | { ac_try='test -s conftest$ac_exeext' |
---|
2901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2902 | (eval $ac_try) 2>&5 |
---|
2903 | ac_status=$? |
---|
2904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2905 | (exit $ac_status); }; }; then |
---|
2906 | : |
---|
2907 | else |
---|
2908 | echo "$as_me: failed program was:" >&5 |
---|
2909 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2910 | |
---|
2911 | coin_add_cflags="-i_dynamic $coin_add_cflags" |
---|
2912 | fi |
---|
2913 | rm -f conftest.err conftest.$ac_objext \ |
---|
2914 | conftest$ac_exeext conftest.$ac_ext |
---|
2915 | ;; |
---|
2916 | pgcc* | */pgcc*) |
---|
2917 | coin_opt_cflags="-fast" |
---|
2918 | coin_add_cflags="-Kieee -pc 64" |
---|
2919 | coin_dbg_cflags="-g" |
---|
2920 | ;; |
---|
2921 | esac |
---|
2922 | ;; |
---|
2923 | *-ibm-*) |
---|
2924 | case "$CC" in |
---|
2925 | xlc* | */xlc* | mpxlc* | */mpxlc*) |
---|
2926 | coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
2927 | coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
---|
2928 | coin_dbg_cflags="-g" |
---|
2929 | ;; |
---|
2930 | esac |
---|
2931 | ;; |
---|
2932 | *-hp-*) |
---|
2933 | coin_opt_cflags="-O" |
---|
2934 | coin_add_cflags="-Ae" |
---|
2935 | coin_dbg_cflags="-g" |
---|
2936 | ;; |
---|
2937 | *-*-solaris*) |
---|
2938 | coin_opt_cflags="-xO4" |
---|
2939 | coin_dbg_cflags="-g" |
---|
2940 | ;; |
---|
2941 | *-sgi-*) |
---|
2942 | coin_opt_cflags="-O -OPT:Olimit=0" |
---|
2943 | coin_dbg_cflags="-g" |
---|
2944 | ;; |
---|
2945 | esac |
---|
2946 | fi |
---|
2947 | |
---|
2948 | if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then |
---|
2949 | coin_dbg_cflags="-g" |
---|
2950 | fi |
---|
2951 | |
---|
2952 | if test -z "$coin_opt_cflags"; then |
---|
2953 | # Try if -O option works if nothing else is set |
---|
2954 | CFLAGS="-O" |
---|
2955 | cat >conftest.$ac_ext <<_ACEOF |
---|
2956 | /* confdefs.h. */ |
---|
2957 | _ACEOF |
---|
2958 | cat confdefs.h >>conftest.$ac_ext |
---|
2959 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2960 | /* end confdefs.h. */ |
---|
2961 | |
---|
2962 | int |
---|
2963 | main () |
---|
2964 | { |
---|
2965 | int i=0; i++; |
---|
2966 | ; |
---|
2967 | return 0; |
---|
2968 | } |
---|
2969 | _ACEOF |
---|
2970 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2972 | (eval $ac_link) 2>conftest.er1 |
---|
2973 | ac_status=$? |
---|
2974 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2975 | rm -f conftest.er1 |
---|
2976 | cat conftest.err >&5 |
---|
2977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2978 | (exit $ac_status); } && |
---|
2979 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2980 | || test ! -s conftest.err' |
---|
2981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2982 | (eval $ac_try) 2>&5 |
---|
2983 | ac_status=$? |
---|
2984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2985 | (exit $ac_status); }; } && |
---|
2986 | { ac_try='test -s conftest$ac_exeext' |
---|
2987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2988 | (eval $ac_try) 2>&5 |
---|
2989 | ac_status=$? |
---|
2990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2991 | (exit $ac_status); }; }; then |
---|
2992 | coin_opt_cflags="-O" |
---|
2993 | else |
---|
2994 | echo "$as_me: failed program was:" >&5 |
---|
2995 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2996 | |
---|
2997 | fi |
---|
2998 | rm -f conftest.err conftest.$ac_objext \ |
---|
2999 | conftest$ac_exeext conftest.$ac_ext |
---|
3000 | fi |
---|
3001 | |
---|
3002 | # if PM doesn't want the warning messages, take them out |
---|
3003 | if test x"$coin_skip_warn_cflags" = xyes; then |
---|
3004 | coin_warn_cflags= |
---|
3005 | fi |
---|
3006 | |
---|
3007 | if test x${DBG_CFLAGS+set} != xset; then |
---|
3008 | DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" |
---|
3009 | fi |
---|
3010 | if test x${OPT_CFLAGS+set} != xset; then |
---|
3011 | OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" |
---|
3012 | fi |
---|
3013 | |
---|
3014 | DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3015 | OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3016 | |
---|
3017 | if test "$coin_debug_compile" = "true"; then |
---|
3018 | CFLAGS="$DBG_CFLAGS" |
---|
3019 | else |
---|
3020 | CFLAGS="$OPT_CFLAGS" |
---|
3021 | fi |
---|
3022 | else |
---|
3023 | CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3024 | if test x${DBG_CFLAGS+set} != xset; then |
---|
3025 | DBG_CFLAGS="$CFLAGS" |
---|
3026 | fi |
---|
3027 | if test x${OPT_CFLAGS+set} != xset; then |
---|
3028 | OPT_CFLAGS="$CFLAGS" |
---|
3029 | fi |
---|
3030 | fi |
---|
3031 | |
---|
3032 | # If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it. |
---|
3033 | |
---|
3034 | case "$CFLAGS" in |
---|
3035 | *-mno-cygwin*) |
---|
3036 | if test x${CPPFLAGS+set} != xset ; then |
---|
3037 | CPPFLAGS="-mno-cygwin" |
---|
3038 | else |
---|
3039 | case "$CPPFLAGS" in |
---|
3040 | *-mno-cygwin*) |
---|
3041 | ;; |
---|
3042 | *) |
---|
3043 | CPPFLAGS="$CPPFLAGS -mno-cygwin" |
---|
3044 | ;; |
---|
3045 | esac |
---|
3046 | fi ;; |
---|
3047 | esac |
---|
3048 | |
---|
3049 | # Try if CFLAGS works |
---|
3050 | save_CFLAGS="$CFLAGS" |
---|
3051 | cat >conftest.$ac_ext <<_ACEOF |
---|
3052 | /* confdefs.h. */ |
---|
3053 | _ACEOF |
---|
3054 | cat confdefs.h >>conftest.$ac_ext |
---|
3055 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3056 | /* end confdefs.h. */ |
---|
3057 | |
---|
3058 | int |
---|
3059 | main () |
---|
3060 | { |
---|
3061 | int i=0; i++; |
---|
3062 | ; |
---|
3063 | return 0; |
---|
3064 | } |
---|
3065 | _ACEOF |
---|
3066 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3067 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3068 | (eval $ac_link) 2>conftest.er1 |
---|
3069 | ac_status=$? |
---|
3070 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3071 | rm -f conftest.er1 |
---|
3072 | cat conftest.err >&5 |
---|
3073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3074 | (exit $ac_status); } && |
---|
3075 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3076 | || test ! -s conftest.err' |
---|
3077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3078 | (eval $ac_try) 2>&5 |
---|
3079 | ac_status=$? |
---|
3080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3081 | (exit $ac_status); }; } && |
---|
3082 | { ac_try='test -s conftest$ac_exeext' |
---|
3083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3084 | (eval $ac_try) 2>&5 |
---|
3085 | ac_status=$? |
---|
3086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3087 | (exit $ac_status); }; }; then |
---|
3088 | : |
---|
3089 | else |
---|
3090 | echo "$as_me: failed program was:" >&5 |
---|
3091 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3092 | |
---|
3093 | CFLAGS= |
---|
3094 | fi |
---|
3095 | rm -f conftest.err conftest.$ac_objext \ |
---|
3096 | conftest$ac_exeext conftest.$ac_ext |
---|
3097 | if test -z "$CFLAGS"; then |
---|
3098 | { 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 |
---|
3099 | 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;} |
---|
3100 | CFLAGS='-O' |
---|
3101 | cat >conftest.$ac_ext <<_ACEOF |
---|
3102 | /* confdefs.h. */ |
---|
3103 | _ACEOF |
---|
3104 | cat confdefs.h >>conftest.$ac_ext |
---|
3105 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3106 | /* end confdefs.h. */ |
---|
3107 | |
---|
3108 | int |
---|
3109 | main () |
---|
3110 | { |
---|
3111 | int i=0; i++; |
---|
3112 | ; |
---|
3113 | return 0; |
---|
3114 | } |
---|
3115 | _ACEOF |
---|
3116 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3118 | (eval $ac_link) 2>conftest.er1 |
---|
3119 | ac_status=$? |
---|
3120 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3121 | rm -f conftest.er1 |
---|
3122 | cat conftest.err >&5 |
---|
3123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3124 | (exit $ac_status); } && |
---|
3125 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3126 | || test ! -s conftest.err' |
---|
3127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3128 | (eval $ac_try) 2>&5 |
---|
3129 | ac_status=$? |
---|
3130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3131 | (exit $ac_status); }; } && |
---|
3132 | { ac_try='test -s conftest$ac_exeext' |
---|
3133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3134 | (eval $ac_try) 2>&5 |
---|
3135 | ac_status=$? |
---|
3136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3137 | (exit $ac_status); }; }; then |
---|
3138 | : |
---|
3139 | else |
---|
3140 | echo "$as_me: failed program was:" >&5 |
---|
3141 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3142 | |
---|
3143 | CFLAGS= |
---|
3144 | fi |
---|
3145 | rm -f conftest.err conftest.$ac_objext \ |
---|
3146 | conftest$ac_exeext conftest.$ac_ext |
---|
3147 | if test -z "$CFLAGS"; then |
---|
3148 | { 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 |
---|
3149 | 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;} |
---|
3150 | fi |
---|
3151 | fi |
---|
3152 | |
---|
3153 | { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 |
---|
3154 | echo "$as_me: C compiler options are: $CFLAGS" >&6;} |
---|
3155 | |
---|
3156 | |
---|
3157 | if test x"$MPICC" = x; then :; else |
---|
3158 | { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 |
---|
3159 | echo "$as_me: Will use MPI C compiler $MPICC" >&6;} |
---|
3160 | CC="$MPICC" |
---|
3161 | fi |
---|
3162 | |
---|
3163 | # Correct ADDLIBS initialization if we are using the MS compiler |
---|
3164 | case "$CC" in |
---|
3165 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
3166 | ADDLIBS= |
---|
3167 | case $build in |
---|
3168 | *-mingw*) |
---|
3169 | if test "${LD+set}" = set; then :; else |
---|
3170 | LD=link |
---|
3171 | fi |
---|
3172 | ;; |
---|
3173 | esac |
---|
3174 | case $enable_doscompile in |
---|
3175 | msvc) |
---|
3176 | if test "x${LD+set}" = xset; then :; else |
---|
3177 | LD=link |
---|
3178 | fi |
---|
3179 | ;; |
---|
3180 | esac |
---|
3181 | |
---|
3182 | ;; |
---|
3183 | esac |
---|
3184 | |
---|
3185 | ac_ext=c |
---|
3186 | ac_cpp='$CPP $CPPFLAGS' |
---|
3187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3190 | |
---|
3191 | |
---|
3192 | |
---|
3193 | # Check if pkg-config is available (to setup addlibs file) |
---|
3194 | |
---|
3195 | |
---|
3196 | # Check whether --enable-pkg-config or --disable-pkg-config was given. |
---|
3197 | if test "${enable_pkg_config+set}" = set; then |
---|
3198 | enableval="$enable_pkg_config" |
---|
3199 | use_pkgconfig="$enableval" |
---|
3200 | else |
---|
3201 | use_pkgconfig=yes |
---|
3202 | fi; |
---|
3203 | |
---|
3204 | if test $use_pkgconfig = yes ; then |
---|
3205 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
---|
3206 | if test -n "$ac_tool_prefix"; then |
---|
3207 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
---|
3208 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
---|
3209 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3211 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
3212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3213 | else |
---|
3214 | case $PKG_CONFIG in |
---|
3215 | [\\/]* | ?:[\\/]*) |
---|
3216 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
3217 | ;; |
---|
3218 | *) |
---|
3219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3220 | for as_dir in $PATH |
---|
3221 | do |
---|
3222 | IFS=$as_save_IFS |
---|
3223 | test -z "$as_dir" && as_dir=. |
---|
3224 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3225 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3226 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
3227 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3228 | break 2 |
---|
3229 | fi |
---|
3230 | done |
---|
3231 | done |
---|
3232 | |
---|
3233 | ;; |
---|
3234 | esac |
---|
3235 | fi |
---|
3236 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
3237 | |
---|
3238 | if test -n "$PKG_CONFIG"; then |
---|
3239 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
3240 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
3241 | else |
---|
3242 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3243 | echo "${ECHO_T}no" >&6 |
---|
3244 | fi |
---|
3245 | |
---|
3246 | fi |
---|
3247 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
---|
3248 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
---|
3249 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
3250 | set dummy pkg-config; ac_word=$2 |
---|
3251 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3253 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
---|
3254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3255 | else |
---|
3256 | case $ac_pt_PKG_CONFIG in |
---|
3257 | [\\/]* | ?:[\\/]*) |
---|
3258 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
---|
3259 | ;; |
---|
3260 | *) |
---|
3261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3262 | for as_dir in $PATH |
---|
3263 | do |
---|
3264 | IFS=$as_save_IFS |
---|
3265 | test -z "$as_dir" && as_dir=. |
---|
3266 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3267 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3268 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
3269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3270 | break 2 |
---|
3271 | fi |
---|
3272 | done |
---|
3273 | done |
---|
3274 | |
---|
3275 | ;; |
---|
3276 | esac |
---|
3277 | fi |
---|
3278 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
---|
3279 | |
---|
3280 | if test -n "$ac_pt_PKG_CONFIG"; then |
---|
3281 | echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
---|
3282 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 |
---|
3283 | else |
---|
3284 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3285 | echo "${ECHO_T}no" >&6 |
---|
3286 | fi |
---|
3287 | |
---|
3288 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
---|
3289 | else |
---|
3290 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
---|
3291 | fi |
---|
3292 | |
---|
3293 | fi |
---|
3294 | if test -n "$PKG_CONFIG"; then |
---|
3295 | _pkg_min_version=0.9.0 |
---|
3296 | echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
---|
3297 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 |
---|
3298 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
---|
3299 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3300 | echo "${ECHO_T}yes" >&6 |
---|
3301 | else |
---|
3302 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3303 | echo "${ECHO_T}no" >&6 |
---|
3304 | PKG_CONFIG="" |
---|
3305 | fi |
---|
3306 | fi |
---|
3307 | |
---|
3308 | # check if pkg-config supports the short-errors flag |
---|
3309 | if test -n "$PKG_CONFIG" && \ |
---|
3310 | $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
---|
3311 | pkg_short_errors=" --short-errors " |
---|
3312 | else |
---|
3313 | pkg_short_errors="" |
---|
3314 | fi |
---|
3315 | fi |
---|
3316 | |
---|
3317 | |
---|
3318 | |
---|
3319 | if test -n "$PKG_CONFIG"; then |
---|
3320 | COIN_HAS_PKGCONFIG_TRUE= |
---|
3321 | COIN_HAS_PKGCONFIG_FALSE='#' |
---|
3322 | else |
---|
3323 | COIN_HAS_PKGCONFIG_TRUE='#' |
---|
3324 | COIN_HAS_PKGCONFIG_FALSE= |
---|
3325 | fi |
---|
3326 | |
---|
3327 | |
---|
3328 | |
---|
3329 | # assemble pkg-config search path for installed projects |
---|
3330 | COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
---|
3331 | |
---|
3332 | # 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 |
---|
3333 | # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig, |
---|
3334 | # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}... |
---|
3335 | if test "x${prefix}" = xNONE ; then |
---|
3336 | COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
---|
3337 | else |
---|
3338 | COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
---|
3339 | fi |
---|
3340 | |
---|
3341 | |
---|
3342 | # Check whether --with-coin-instdir or --without-coin-instdir was given. |
---|
3343 | if test "${with_coin_instdir+set}" = set; then |
---|
3344 | withval="$with_coin_instdir" |
---|
3345 | if test -d "$withval"; then : ; else |
---|
3346 | { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5 |
---|
3347 | echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;} |
---|
3348 | { (exit 1); exit 1; }; } |
---|
3349 | fi |
---|
3350 | COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
---|
3351 | |
---|
3352 | fi; |
---|
3353 | |
---|
3354 | |
---|
3355 | |
---|
3356 | # assemble additional pkg-config search paths for uninstalled projects |
---|
3357 | if test x$coin_projectdir = xyes ; then |
---|
3358 | # if we are in a project setup, then in a classic setup, we want to find uninstalled projects |
---|
3359 | # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory |
---|
3360 | # unfortunately, if the user set prefix, then we do not know where the project base directory is located |
---|
3361 | # 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) |
---|
3362 | COIN_PKG_CONFIG_PATH_UNINSTALLED= |
---|
3363 | if test -e ../coin_subdirs.txt ; then |
---|
3364 | for i in `cat ../coin_subdirs.txt` ; do |
---|
3365 | if test -d ../$i ; then |
---|
3366 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
---|
3367 | fi |
---|
3368 | done |
---|
3369 | fi |
---|
3370 | |
---|
3371 | if test -e ../../coin_subdirs.txt ; then |
---|
3372 | for i in `cat ../../coin_subdirs.txt` ; do |
---|
3373 | if test -d ../../$i ; then |
---|
3374 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
---|
3375 | fi |
---|
3376 | done |
---|
3377 | fi |
---|
3378 | |
---|
3379 | |
---|
3380 | fi |
---|
3381 | |
---|
3382 | |
---|
3383 | |
---|
3384 | # Initialize automake |
---|
3385 | { |
---|
3386 | |
---|
3387 | |
---|
3388 | |
---|
3389 | # START |
---|
3390 | |
---|
3391 | # Test if force_shared has been set |
---|
3392 | if test "x" = xforce_shared; then |
---|
3393 | if test x$enable_shared = xno; then |
---|
3394 | { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 |
---|
3395 | echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} |
---|
3396 | { (exit 1); exit 1; }; } |
---|
3397 | fi |
---|
3398 | enable_shared=yes; |
---|
3399 | else |
---|
3400 | # On Cygwin and AIX, building DLLs doesn't work |
---|
3401 | case $build in |
---|
3402 | *-cygwin*) |
---|
3403 | coin_disable_shared=yes |
---|
3404 | platform=Cygwin |
---|
3405 | ;; |
---|
3406 | *-aix*) |
---|
3407 | coin_disable_shared=yes |
---|
3408 | platform=AIX |
---|
3409 | ;; |
---|
3410 | *-mingw*) |
---|
3411 | coin_disable_shared=yes |
---|
3412 | platform="Msys" |
---|
3413 | # case "$CXX" in |
---|
3414 | # cl*) |
---|
3415 | # coin_disable_shared=yes |
---|
3416 | # platform="Msys with cl" |
---|
3417 | # ;; |
---|
3418 | # esac |
---|
3419 | ;; |
---|
3420 | esac |
---|
3421 | fi |
---|
3422 | if test x"$coin_disable_shared" = xyes; then |
---|
3423 | if test x"$enable_shared" = xyes; then |
---|
3424 | { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5 |
---|
3425 | echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;} |
---|
3426 | fi |
---|
3427 | enable_shared=no |
---|
3428 | fi |
---|
3429 | # By default, we only want the shared objects to be compiled |
---|
3430 | # Check whether --enable-static or --disable-static was given. |
---|
3431 | if test "${enable_static+set}" = set; then |
---|
3432 | enableval="$enable_static" |
---|
3433 | p=${PACKAGE-default} |
---|
3434 | case $enableval in |
---|
3435 | yes) enable_static=yes ;; |
---|
3436 | no) enable_static=no ;; |
---|
3437 | *) |
---|
3438 | enable_static=no |
---|
3439 | # Look at the argument we got. We use all the common list separators. |
---|
3440 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
3441 | for pkg in $enableval; do |
---|
3442 | IFS="$lt_save_ifs" |
---|
3443 | if test "X$pkg" = "X$p"; then |
---|
3444 | enable_static=yes |
---|
3445 | fi |
---|
3446 | done |
---|
3447 | IFS="$lt_save_ifs" |
---|
3448 | ;; |
---|
3449 | esac |
---|
3450 | else |
---|
3451 | enable_static=no |
---|
3452 | fi; |
---|
3453 | |
---|
3454 | |
---|
3455 | |
---|
3456 | |
---|
3457 | # Initialize automake |
---|
3458 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3459 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3460 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3462 | else |
---|
3463 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3464 | then ac_cv_prog_egrep='grep -E' |
---|
3465 | else ac_cv_prog_egrep='egrep' |
---|
3466 | fi |
---|
3467 | fi |
---|
3468 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3469 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3470 | EGREP=$ac_cv_prog_egrep |
---|
3471 | |
---|
3472 | |
---|
3473 | am__api_version="1.9" |
---|
3474 | # Find a good install program. We prefer a C program (faster), |
---|
3475 | # so one script is as good as another. But avoid the broken or |
---|
3476 | # incompatible versions: |
---|
3477 | # SysV /etc/install, /usr/sbin/install |
---|
3478 | # SunOS /usr/etc/install |
---|
3479 | # IRIX /sbin/install |
---|
3480 | # AIX /bin/install |
---|
3481 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
3482 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
3483 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
3484 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
3485 | # OS/2's system install, which has a completely different semantic |
---|
3486 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
3487 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
3488 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
3489 | if test -z "$INSTALL"; then |
---|
3490 | if test "${ac_cv_path_install+set}" = set; then |
---|
3491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3492 | else |
---|
3493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3494 | for as_dir in $PATH |
---|
3495 | do |
---|
3496 | IFS=$as_save_IFS |
---|
3497 | test -z "$as_dir" && as_dir=. |
---|
3498 | # Account for people who put trailing slashes in PATH elements. |
---|
3499 | case $as_dir/ in |
---|
3500 | ./ | .// | /cC/* | \ |
---|
3501 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
3502 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
3503 | /usr/ucb/* ) ;; |
---|
3504 | *) |
---|
3505 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
3506 | # Don't use installbsd from OSF since it installs stuff as root |
---|
3507 | # by default. |
---|
3508 | for ac_prog in ginstall scoinst install; do |
---|
3509 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3510 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
3511 | if test $ac_prog = install && |
---|
3512 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3513 | # AIX install. It has an incompatible calling convention. |
---|
3514 | : |
---|
3515 | elif test $ac_prog = install && |
---|
3516 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3517 | # program-specific install script used by HP pwplus--don't use. |
---|
3518 | : |
---|
3519 | else |
---|
3520 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
3521 | break 3 |
---|
3522 | fi |
---|
3523 | fi |
---|
3524 | done |
---|
3525 | done |
---|
3526 | ;; |
---|
3527 | esac |
---|
3528 | done |
---|
3529 | |
---|
3530 | |
---|
3531 | fi |
---|
3532 | if test "${ac_cv_path_install+set}" = set; then |
---|
3533 | INSTALL=$ac_cv_path_install |
---|
3534 | else |
---|
3535 | # As a last resort, use the slow shell script. We don't cache a |
---|
3536 | # path for INSTALL within a source directory, because that will |
---|
3537 | # break other packages using the cache if that directory is |
---|
3538 | # removed, or if the path is relative. |
---|
3539 | INSTALL=$ac_install_sh |
---|
3540 | fi |
---|
3541 | fi |
---|
3542 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
3543 | echo "${ECHO_T}$INSTALL" >&6 |
---|
3544 | |
---|
3545 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
3546 | # It thinks the first close brace ends the variable substitution. |
---|
3547 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
3548 | |
---|
3549 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
3550 | |
---|
3551 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
3552 | |
---|
3553 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
3554 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
3555 | # Just in case |
---|
3556 | sleep 1 |
---|
3557 | echo timestamp > conftest.file |
---|
3558 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
3559 | # arguments. Must try -L first in case configure is actually a |
---|
3560 | # symlink; some systems play weird games with the mod time of symlinks |
---|
3561 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
3562 | # directory). |
---|
3563 | if ( |
---|
3564 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
3565 | if test "$*" = "X"; then |
---|
3566 | # -L didn't work. |
---|
3567 | set X `ls -t $srcdir/configure conftest.file` |
---|
3568 | fi |
---|
3569 | rm -f conftest.file |
---|
3570 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
3571 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
3572 | |
---|
3573 | # If neither matched, then we have a broken ls. This can happen |
---|
3574 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
3575 | # broken ls alias from the environment. This has actually |
---|
3576 | # happened. Such a system could not be considered "sane". |
---|
3577 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
3578 | alias in your environment" >&5 |
---|
3579 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
3580 | alias in your environment" >&2;} |
---|
3581 | { (exit 1); exit 1; }; } |
---|
3582 | fi |
---|
3583 | |
---|
3584 | test "$2" = conftest.file |
---|
3585 | ) |
---|
3586 | then |
---|
3587 | # Ok. |
---|
3588 | : |
---|
3589 | else |
---|
3590 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
3591 | Check your system clock" >&5 |
---|
3592 | echo "$as_me: error: newly created file is older than distributed files! |
---|
3593 | Check your system clock" >&2;} |
---|
3594 | { (exit 1); exit 1; }; } |
---|
3595 | fi |
---|
3596 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3597 | echo "${ECHO_T}yes" >&6 |
---|
3598 | test "$program_prefix" != NONE && |
---|
3599 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
3600 | # Use a double $ so make ignores it. |
---|
3601 | test "$program_suffix" != NONE && |
---|
3602 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
3603 | # Double any \ or $. echo might interpret backslashes. |
---|
3604 | # By default was `s,x,x', remove it if useless. |
---|
3605 | cat <<\_ACEOF >conftest.sed |
---|
3606 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
3607 | _ACEOF |
---|
3608 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
3609 | rm conftest.sed |
---|
3610 | |
---|
3611 | # expand $ac_aux_dir to an absolute path |
---|
3612 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
3613 | |
---|
3614 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
3615 | # Use eval to expand $SHELL |
---|
3616 | if eval "$MISSING --run true"; then |
---|
3617 | am_missing_run="$MISSING --run " |
---|
3618 | else |
---|
3619 | am_missing_run= |
---|
3620 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
3621 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
3622 | fi |
---|
3623 | |
---|
3624 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
3625 | # We used to keeping the `.' as first argument, in order to |
---|
3626 | # allow $(mkdir_p) to be used without argument. As in |
---|
3627 | # $(mkdir_p) $(somedir) |
---|
3628 | # where $(somedir) is conditionally defined. However this is wrong |
---|
3629 | # for two reasons: |
---|
3630 | # 1. if the package is installed by a user who cannot write `.' |
---|
3631 | # make install will fail, |
---|
3632 | # 2. the above comment should most certainly read |
---|
3633 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
3634 | # so it does not work when $(somedir) is undefined and |
---|
3635 | # $(DESTDIR) is not. |
---|
3636 | # To support the latter case, we have to write |
---|
3637 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
3638 | # so the `.' trick is pointless. |
---|
3639 | mkdir_p='mkdir -p --' |
---|
3640 | else |
---|
3641 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
3642 | # recognize any option. It will interpret all options as |
---|
3643 | # directories to create, and then abort because `.' already |
---|
3644 | # exists. |
---|
3645 | for d in ./-p ./--version; |
---|
3646 | do |
---|
3647 | test -d $d && rmdir $d |
---|
3648 | done |
---|
3649 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
3650 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
3651 | mkdir_p='$(mkinstalldirs)' |
---|
3652 | else |
---|
3653 | mkdir_p='$(install_sh) -d' |
---|
3654 | fi |
---|
3655 | fi |
---|
3656 | |
---|
3657 | for ac_prog in gawk mawk nawk awk |
---|
3658 | do |
---|
3659 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3660 | set dummy $ac_prog; ac_word=$2 |
---|
3661 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3662 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3663 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
3664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3665 | else |
---|
3666 | if test -n "$AWK"; then |
---|
3667 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
3668 | else |
---|
3669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3670 | for as_dir in $PATH |
---|
3671 | do |
---|
3672 | IFS=$as_save_IFS |
---|
3673 | test -z "$as_dir" && as_dir=. |
---|
3674 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3675 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3676 | ac_cv_prog_AWK="$ac_prog" |
---|
3677 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3678 | break 2 |
---|
3679 | fi |
---|
3680 | done |
---|
3681 | done |
---|
3682 | |
---|
3683 | fi |
---|
3684 | fi |
---|
3685 | AWK=$ac_cv_prog_AWK |
---|
3686 | if test -n "$AWK"; then |
---|
3687 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
3688 | echo "${ECHO_T}$AWK" >&6 |
---|
3689 | else |
---|
3690 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3691 | echo "${ECHO_T}no" >&6 |
---|
3692 | fi |
---|
3693 | |
---|
3694 | test -n "$AWK" && break |
---|
3695 | done |
---|
3696 | |
---|
3697 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
3698 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
3699 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
3700 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
3701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3702 | else |
---|
3703 | cat >conftest.make <<\_ACEOF |
---|
3704 | all: |
---|
3705 | @echo 'ac_maketemp="$(MAKE)"' |
---|
3706 | _ACEOF |
---|
3707 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
3708 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
3709 | if test -n "$ac_maketemp"; then |
---|
3710 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
3711 | else |
---|
3712 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
3713 | fi |
---|
3714 | rm -f conftest.make |
---|
3715 | fi |
---|
3716 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
3717 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3718 | echo "${ECHO_T}yes" >&6 |
---|
3719 | SET_MAKE= |
---|
3720 | else |
---|
3721 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3722 | echo "${ECHO_T}no" >&6 |
---|
3723 | SET_MAKE="MAKE=${MAKE-make}" |
---|
3724 | fi |
---|
3725 | |
---|
3726 | rm -rf .tst 2>/dev/null |
---|
3727 | mkdir .tst 2>/dev/null |
---|
3728 | if test -d .tst; then |
---|
3729 | am__leading_dot=. |
---|
3730 | else |
---|
3731 | am__leading_dot=_ |
---|
3732 | fi |
---|
3733 | rmdir .tst 2>/dev/null |
---|
3734 | |
---|
3735 | DEPDIR="${am__leading_dot}deps" |
---|
3736 | |
---|
3737 | ac_config_commands="$ac_config_commands depfiles" |
---|
3738 | |
---|
3739 | |
---|
3740 | am_make=${MAKE-make} |
---|
3741 | cat > confinc << 'END' |
---|
3742 | am__doit: |
---|
3743 | @echo done |
---|
3744 | .PHONY: am__doit |
---|
3745 | END |
---|
3746 | # If we don't find an include directive, just comment out the code. |
---|
3747 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
3748 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
3749 | am__include="#" |
---|
3750 | am__quote= |
---|
3751 | _am_result=none |
---|
3752 | # First try GNU make style include. |
---|
3753 | echo "include confinc" > confmf |
---|
3754 | # We grep out `Entering directory' and `Leaving directory' |
---|
3755 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
3756 | # In particular we don't look at `^make:' because GNU make might |
---|
3757 | # be invoked under some other name (usually "gmake"), in which |
---|
3758 | # case it prints its new name instead of `make'. |
---|
3759 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
3760 | am__include=include |
---|
3761 | am__quote= |
---|
3762 | _am_result=GNU |
---|
3763 | fi |
---|
3764 | # Now try BSD make style include. |
---|
3765 | if test "$am__include" = "#"; then |
---|
3766 | echo '.include "confinc"' > confmf |
---|
3767 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
3768 | am__include=.include |
---|
3769 | am__quote="\"" |
---|
3770 | _am_result=BSD |
---|
3771 | fi |
---|
3772 | fi |
---|
3773 | |
---|
3774 | |
---|
3775 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
3776 | echo "${ECHO_T}$_am_result" >&6 |
---|
3777 | rm -f confinc confmf |
---|
3778 | |
---|
3779 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
3780 | if test "${enable_dependency_tracking+set}" = set; then |
---|
3781 | enableval="$enable_dependency_tracking" |
---|
3782 | |
---|
3783 | fi; |
---|
3784 | if test "x$enable_dependency_tracking" != xno; then |
---|
3785 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3786 | AMDEPBACKSLASH='\' |
---|
3787 | fi |
---|
3788 | |
---|
3789 | |
---|
3790 | if test "x$enable_dependency_tracking" != xno; then |
---|
3791 | AMDEP_TRUE= |
---|
3792 | AMDEP_FALSE='#' |
---|
3793 | else |
---|
3794 | AMDEP_TRUE='#' |
---|
3795 | AMDEP_FALSE= |
---|
3796 | fi |
---|
3797 | |
---|
3798 | |
---|
3799 | |
---|
3800 | |
---|
3801 | |
---|
3802 | # AC_MSG_NOTICE([Beginning automake initialisation.]) |
---|
3803 | # Stuff for automake |
---|
3804 | # test to see if srcdir already configured |
---|
3805 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
3806 | test -f $srcdir/config.status; then |
---|
3807 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
3808 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
3809 | { (exit 1); exit 1; }; } |
---|
3810 | fi |
---|
3811 | |
---|
3812 | # test whether we have cygpath |
---|
3813 | if test -z "$CYGPATH_W"; then |
---|
3814 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
3815 | CYGPATH_W='cygpath -w' |
---|
3816 | else |
---|
3817 | CYGPATH_W=echo |
---|
3818 | fi |
---|
3819 | fi |
---|
3820 | |
---|
3821 | |
---|
3822 | # Define the identity of the package. |
---|
3823 | PACKAGE='thirdpartyglpk' |
---|
3824 | VERSION='1.7.3' |
---|
3825 | |
---|
3826 | |
---|
3827 | cat >>confdefs.h <<_ACEOF |
---|
3828 | #define PACKAGE "$PACKAGE" |
---|
3829 | _ACEOF |
---|
3830 | |
---|
3831 | |
---|
3832 | cat >>confdefs.h <<_ACEOF |
---|
3833 | #define VERSION "$VERSION" |
---|
3834 | _ACEOF |
---|
3835 | |
---|
3836 | # Some tools Automake needs. |
---|
3837 | |
---|
3838 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
3839 | |
---|
3840 | |
---|
3841 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
3842 | |
---|
3843 | |
---|
3844 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
3845 | |
---|
3846 | |
---|
3847 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
3848 | |
---|
3849 | |
---|
3850 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
3851 | |
---|
3852 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
3853 | |
---|
3854 | # Installed binaries are usually stripped using `strip' when the user |
---|
3855 | # run `make install-strip'. However `strip' might not be the right |
---|
3856 | # tool to use in cross-compilation environments, therefore Automake |
---|
3857 | # will honor the `STRIP' environment variable to overrule this program. |
---|
3858 | if test "$cross_compiling" != no; then |
---|
3859 | if test -n "$ac_tool_prefix"; then |
---|
3860 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
3861 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
3862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3864 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
3865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3866 | else |
---|
3867 | if test -n "$STRIP"; then |
---|
3868 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
3869 | else |
---|
3870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3871 | for as_dir in $PATH |
---|
3872 | do |
---|
3873 | IFS=$as_save_IFS |
---|
3874 | test -z "$as_dir" && as_dir=. |
---|
3875 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3876 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3877 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
3878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3879 | break 2 |
---|
3880 | fi |
---|
3881 | done |
---|
3882 | done |
---|
3883 | |
---|
3884 | fi |
---|
3885 | fi |
---|
3886 | STRIP=$ac_cv_prog_STRIP |
---|
3887 | if test -n "$STRIP"; then |
---|
3888 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
3889 | echo "${ECHO_T}$STRIP" >&6 |
---|
3890 | else |
---|
3891 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3892 | echo "${ECHO_T}no" >&6 |
---|
3893 | fi |
---|
3894 | |
---|
3895 | fi |
---|
3896 | if test -z "$ac_cv_prog_STRIP"; then |
---|
3897 | ac_ct_STRIP=$STRIP |
---|
3898 | # Extract the first word of "strip", so it can be a program name with args. |
---|
3899 | set dummy strip; ac_word=$2 |
---|
3900 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3902 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
3903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3904 | else |
---|
3905 | if test -n "$ac_ct_STRIP"; then |
---|
3906 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
3907 | else |
---|
3908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3909 | for as_dir in $PATH |
---|
3910 | do |
---|
3911 | IFS=$as_save_IFS |
---|
3912 | test -z "$as_dir" && as_dir=. |
---|
3913 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3914 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3915 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
3916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3917 | break 2 |
---|
3918 | fi |
---|
3919 | done |
---|
3920 | done |
---|
3921 | |
---|
3922 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
3923 | fi |
---|
3924 | fi |
---|
3925 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
3926 | if test -n "$ac_ct_STRIP"; then |
---|
3927 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
3928 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
3929 | else |
---|
3930 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3931 | echo "${ECHO_T}no" >&6 |
---|
3932 | fi |
---|
3933 | |
---|
3934 | STRIP=$ac_ct_STRIP |
---|
3935 | else |
---|
3936 | STRIP="$ac_cv_prog_STRIP" |
---|
3937 | fi |
---|
3938 | |
---|
3939 | fi |
---|
3940 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
3941 | |
---|
3942 | # We need awk for the "check" target. The system "awk" is bad on |
---|
3943 | # some platforms. |
---|
3944 | # Always define AMTAR for backward compatibility. |
---|
3945 | |
---|
3946 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
3947 | |
---|
3948 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
3949 | |
---|
3950 | |
---|
3951 | |
---|
3952 | |
---|
3953 | depcc="$CC" am_compiler_list= |
---|
3954 | |
---|
3955 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3956 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3957 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3959 | else |
---|
3960 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3961 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3962 | # making bogus files that we don't know about and never remove. For |
---|
3963 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3964 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3965 | # in D'. |
---|
3966 | mkdir conftest.dir |
---|
3967 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3968 | # using a relative directory. |
---|
3969 | cp "$am_depcomp" conftest.dir |
---|
3970 | cd conftest.dir |
---|
3971 | # We will build objects and dependencies in a subdirectory because |
---|
3972 | # it helps to detect inapplicable dependency modes. For instance |
---|
3973 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3974 | # side effect of compilation, but ICC will put the dependencies in |
---|
3975 | # the current directory while Tru64 will put them in the object |
---|
3976 | # directory. |
---|
3977 | mkdir sub |
---|
3978 | |
---|
3979 | am_cv_CC_dependencies_compiler_type=none |
---|
3980 | if test "$am_compiler_list" = ""; then |
---|
3981 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3982 | fi |
---|
3983 | for depmode in $am_compiler_list; do |
---|
3984 | # Setup a source with many dependencies, because some compilers |
---|
3985 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3986 | # we should not choose a depcomp mode which is confused by this. |
---|
3987 | # |
---|
3988 | # We need to recreate these files for each test, as the compiler may |
---|
3989 | # overwrite some of them when testing with obscure command lines. |
---|
3990 | # This happens at least with the AIX C compiler. |
---|
3991 | : > sub/conftest.c |
---|
3992 | for i in 1 2 3 4 5 6; do |
---|
3993 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3994 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3995 | # Solaris 8's {/usr,}/bin/sh. |
---|
3996 | touch sub/conftst$i.h |
---|
3997 | done |
---|
3998 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3999 | |
---|
4000 | case $depmode in |
---|
4001 | nosideeffect) |
---|
4002 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4003 | # only be used when explicitly requested |
---|
4004 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4005 | continue |
---|
4006 | else |
---|
4007 | break |
---|
4008 | fi |
---|
4009 | ;; |
---|
4010 | none) break ;; |
---|
4011 | esac |
---|
4012 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4013 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4014 | # handle `-M -o', and we need to detect this. |
---|
4015 | if depmode=$depmode \ |
---|
4016 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
4017 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4018 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
4019 | >/dev/null 2>conftest.err && |
---|
4020 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4021 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
4022 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4023 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4024 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4025 | # that says an option was ignored or not supported. |
---|
4026 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4027 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4028 | # The diagnosis changed in icc 8.0: |
---|
4029 | # icc: Command line remark: option '-MP' not supported |
---|
4030 | if (grep 'ignoring option' conftest.err || |
---|
4031 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4032 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4033 | break |
---|
4034 | fi |
---|
4035 | fi |
---|
4036 | done |
---|
4037 | |
---|
4038 | cd .. |
---|
4039 | rm -rf conftest.dir |
---|
4040 | else |
---|
4041 | am_cv_CC_dependencies_compiler_type=none |
---|
4042 | fi |
---|
4043 | |
---|
4044 | fi |
---|
4045 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4046 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
4047 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4048 | |
---|
4049 | |
---|
4050 | |
---|
4051 | if |
---|
4052 | test "x$enable_dependency_tracking" != xno \ |
---|
4053 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4054 | am__fastdepCC_TRUE= |
---|
4055 | am__fastdepCC_FALSE='#' |
---|
4056 | else |
---|
4057 | am__fastdepCC_TRUE='#' |
---|
4058 | am__fastdepCC_FALSE= |
---|
4059 | fi |
---|
4060 | |
---|
4061 | |
---|
4062 | |
---|
4063 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
4064 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
---|
4065 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
4066 | if test "${enable_maintainer_mode+set}" = set; then |
---|
4067 | enableval="$enable_maintainer_mode" |
---|
4068 | USE_MAINTAINER_MODE=$enableval |
---|
4069 | else |
---|
4070 | USE_MAINTAINER_MODE=no |
---|
4071 | fi; |
---|
4072 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
---|
4073 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
---|
4074 | |
---|
4075 | |
---|
4076 | if test $USE_MAINTAINER_MODE = yes; then |
---|
4077 | MAINTAINER_MODE_TRUE= |
---|
4078 | MAINTAINER_MODE_FALSE='#' |
---|
4079 | else |
---|
4080 | MAINTAINER_MODE_TRUE='#' |
---|
4081 | MAINTAINER_MODE_FALSE= |
---|
4082 | fi |
---|
4083 | |
---|
4084 | MAINT=$MAINTAINER_MODE_TRUE |
---|
4085 | |
---|
4086 | |
---|
4087 | |
---|
4088 | coin_have_externals=no |
---|
4089 | if test "$enable_maintainer_mode" = yes; then |
---|
4090 | |
---|
4091 | # If maintainer mode is chosen, we make sure that the correct versions |
---|
4092 | # of the tools are used, and that we know where libtool.m4 is (to |
---|
4093 | # recreate acinclude.m4) |
---|
4094 | |
---|
4095 | |
---|
4096 | LIBTOOLM4= |
---|
4097 | # Normally, $HOME |
---|
4098 | AUTOTOOLS_DFLT=$HOME |
---|
4099 | |
---|
4100 | echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 |
---|
4101 | echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 |
---|
4102 | if test "${ac_cv_use_correct_autotools+set}" = set; then |
---|
4103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4104 | else |
---|
4105 | ac_cv_use_correct_autotools=check |
---|
4106 | fi |
---|
4107 | echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 |
---|
4108 | echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 |
---|
4109 | |
---|
4110 | if test $ac_cv_use_correct_autotools = check; then |
---|
4111 | ac_cv_use_correct_autotools=yes |
---|
4112 | # Check if we have autoconf |
---|
4113 | # Extract the first word of "autoconf", so it can be a program name with args. |
---|
4114 | set dummy autoconf; ac_word=$2 |
---|
4115 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4116 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4117 | if test "${ac_cv_prog_have_autoconf+set}" = set; then |
---|
4118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4119 | else |
---|
4120 | if test -n "$have_autoconf"; then |
---|
4121 | ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. |
---|
4122 | else |
---|
4123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4124 | for as_dir in $PATH |
---|
4125 | do |
---|
4126 | IFS=$as_save_IFS |
---|
4127 | test -z "$as_dir" && as_dir=. |
---|
4128 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4129 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4130 | ac_cv_prog_have_autoconf="yes" |
---|
4131 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4132 | break 2 |
---|
4133 | fi |
---|
4134 | done |
---|
4135 | done |
---|
4136 | |
---|
4137 | test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" |
---|
4138 | fi |
---|
4139 | fi |
---|
4140 | have_autoconf=$ac_cv_prog_have_autoconf |
---|
4141 | if test -n "$have_autoconf"; then |
---|
4142 | echo "$as_me:$LINENO: result: $have_autoconf" >&5 |
---|
4143 | echo "${ECHO_T}$have_autoconf" >&6 |
---|
4144 | else |
---|
4145 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4146 | echo "${ECHO_T}no" >&6 |
---|
4147 | fi |
---|
4148 | |
---|
4149 | if test $have_autoconf = no; then |
---|
4150 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 |
---|
4151 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} |
---|
4152 | { (exit 1); exit 1; }; } |
---|
4153 | fi |
---|
4154 | |
---|
4155 | # Check whether autoconf is the correct version |
---|
4156 | correct_version='2.59' |
---|
4157 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
4158 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 |
---|
4159 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 |
---|
4160 | autoconf --version > confauto.out 2>&1 |
---|
4161 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
4162 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4163 | echo "${ECHO_T}yes" >&6 |
---|
4164 | else |
---|
4165 | rm -f confauto.out |
---|
4166 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4167 | echo "${ECHO_T}no" >&6 |
---|
4168 | { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 |
---|
4169 | echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} |
---|
4170 | { (exit 1); exit 1; }; } |
---|
4171 | fi |
---|
4172 | rm -f confauto.out |
---|
4173 | |
---|
4174 | # Check if the executable autoconf is picked up from the correct location |
---|
4175 | echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 |
---|
4176 | echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 |
---|
4177 | autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` |
---|
4178 | autoconf_dir=`cd $autoconf_dir; pwd` |
---|
4179 | if test x$AUTOTOOLS_DIR = x; then |
---|
4180 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
4181 | else |
---|
4182 | want_dir=$AUTOTOOLS_DIR/bin |
---|
4183 | fi |
---|
4184 | if test $autoconf_dir = `cd $want_dir; pwd`; then |
---|
4185 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4186 | echo "${ECHO_T}yes" >&6 |
---|
4187 | else |
---|
4188 | rm -f confauto.out |
---|
4189 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4190 | echo "${ECHO_T}no" >&6 |
---|
4191 | { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
4192 | echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
4193 | { (exit 1); exit 1; }; } |
---|
4194 | fi |
---|
4195 | |
---|
4196 | # Check if we have automake |
---|
4197 | # Extract the first word of "automake", so it can be a program name with args. |
---|
4198 | set dummy automake; ac_word=$2 |
---|
4199 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4201 | if test "${ac_cv_prog_have_automake+set}" = set; then |
---|
4202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4203 | else |
---|
4204 | if test -n "$have_automake"; then |
---|
4205 | ac_cv_prog_have_automake="$have_automake" # Let the user override the test. |
---|
4206 | else |
---|
4207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4208 | for as_dir in $PATH |
---|
4209 | do |
---|
4210 | IFS=$as_save_IFS |
---|
4211 | test -z "$as_dir" && as_dir=. |
---|
4212 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4213 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4214 | ac_cv_prog_have_automake="yes" |
---|
4215 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4216 | break 2 |
---|
4217 | fi |
---|
4218 | done |
---|
4219 | done |
---|
4220 | |
---|
4221 | test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" |
---|
4222 | fi |
---|
4223 | fi |
---|
4224 | have_automake=$ac_cv_prog_have_automake |
---|
4225 | if test -n "$have_automake"; then |
---|
4226 | echo "$as_me:$LINENO: result: $have_automake" >&5 |
---|
4227 | echo "${ECHO_T}$have_automake" >&6 |
---|
4228 | else |
---|
4229 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4230 | echo "${ECHO_T}no" >&6 |
---|
4231 | fi |
---|
4232 | |
---|
4233 | if test $have_automake = no; then |
---|
4234 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 |
---|
4235 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} |
---|
4236 | { (exit 1); exit 1; }; } |
---|
4237 | fi |
---|
4238 | |
---|
4239 | # Check whether automake is the correct version |
---|
4240 | correct_version='1.9.6' |
---|
4241 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
4242 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 |
---|
4243 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 |
---|
4244 | automake --version > confauto.out 2>&1 |
---|
4245 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
4246 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4247 | echo "${ECHO_T}yes" >&6 |
---|
4248 | else |
---|
4249 | rm -f confauto.out |
---|
4250 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4251 | echo "${ECHO_T}no" >&6 |
---|
4252 | { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 |
---|
4253 | echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} |
---|
4254 | { (exit 1); exit 1; }; } |
---|
4255 | fi |
---|
4256 | rm -f confauto.out |
---|
4257 | |
---|
4258 | # Check if the executable automake is picked up from the correct location |
---|
4259 | echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 |
---|
4260 | echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 |
---|
4261 | automake_dir=`which automake | sed -e 's=/automake=='` |
---|
4262 | automake_dir=`cd $automake_dir; pwd` |
---|
4263 | if test x$AUTOTOOLS_DIR = x; then |
---|
4264 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
4265 | else |
---|
4266 | want_dir=$AUTOTOOLS_DIR/bin |
---|
4267 | fi |
---|
4268 | if test $automake_dir = `cd $want_dir; pwd`; then |
---|
4269 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4270 | echo "${ECHO_T}yes" >&6 |
---|
4271 | else |
---|
4272 | rm -f confauto.out |
---|
4273 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4274 | echo "${ECHO_T}no" >&6 |
---|
4275 | { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
4276 | echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
4277 | { (exit 1); exit 1; }; } |
---|
4278 | fi |
---|
4279 | |
---|
4280 | # Check if this is the correct version of libtool (with escaped dots) |
---|
4281 | if test x$AUTOTOOLS_DIR = x; then |
---|
4282 | want_dir=$AUTOTOOLS_DFLT/share |
---|
4283 | else |
---|
4284 | want_dir=$AUTOTOOLS_DIR/share |
---|
4285 | fi |
---|
4286 | correct_version='1.5.22' |
---|
4287 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
4288 | if test -r $want_dir/libtool/ltmain.sh; then |
---|
4289 | have_ltmain=yes |
---|
4290 | : |
---|
4291 | else |
---|
4292 | have_ltmain=no |
---|
4293 | : |
---|
4294 | fi |
---|
4295 | |
---|
4296 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 |
---|
4297 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 |
---|
4298 | if test $have_ltmain = yes; then |
---|
4299 | if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then |
---|
4300 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4301 | echo "${ECHO_T}yes" >&6 |
---|
4302 | else |
---|
4303 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4304 | echo "${ECHO_T}no" >&6 |
---|
4305 | { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 |
---|
4306 | echo "$as_me: error: You don't have the correct version of libtool." >&2;} |
---|
4307 | { (exit 1); exit 1; }; } |
---|
4308 | fi |
---|
4309 | else |
---|
4310 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4311 | echo "${ECHO_T}no" >&6 |
---|
4312 | { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 |
---|
4313 | echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} |
---|
4314 | { (exit 1); exit 1; }; } |
---|
4315 | fi |
---|
4316 | fi |
---|
4317 | |
---|
4318 | # Check if we can find the libtool file |
---|
4319 | if test x$AUTOTOOLS_DIR = x; then |
---|
4320 | want_dir=$AUTOTOOLS_DFLT/share |
---|
4321 | else |
---|
4322 | want_dir=$AUTOTOOLS_DIR/share |
---|
4323 | fi |
---|
4324 | if test -r $want_dir/aclocal/libtool.m4; then |
---|
4325 | LIBTOOLM4="$want_dir/aclocal/libtool.m4" |
---|
4326 | : |
---|
4327 | else |
---|
4328 | { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 |
---|
4329 | echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} |
---|
4330 | { (exit 1); exit 1; }; } |
---|
4331 | : |
---|
4332 | fi |
---|
4333 | |
---|
4334 | |
---|
4335 | # Check if we have an Externals file |
---|
4336 | if test -r $srcdir/Externals; then |
---|
4337 | coin_have_externals=yes |
---|
4338 | fi |
---|
4339 | # Check if subversion is installed and understands https |
---|
4340 | # Extract the first word of "svn", so it can be a program name with args. |
---|
4341 | set dummy svn; ac_word=$2 |
---|
4342 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4343 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4344 | if test "${ac_cv_prog_have_svn+set}" = set; then |
---|
4345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4346 | else |
---|
4347 | if test -n "$have_svn"; then |
---|
4348 | ac_cv_prog_have_svn="$have_svn" # Let the user override the test. |
---|
4349 | else |
---|
4350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4351 | for as_dir in $PATH |
---|
4352 | do |
---|
4353 | IFS=$as_save_IFS |
---|
4354 | test -z "$as_dir" && as_dir=. |
---|
4355 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4356 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4357 | ac_cv_prog_have_svn="yes" |
---|
4358 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4359 | break 2 |
---|
4360 | fi |
---|
4361 | done |
---|
4362 | done |
---|
4363 | |
---|
4364 | test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" |
---|
4365 | fi |
---|
4366 | fi |
---|
4367 | have_svn=$ac_cv_prog_have_svn |
---|
4368 | if test -n "$have_svn"; then |
---|
4369 | echo "$as_me:$LINENO: result: $have_svn" >&5 |
---|
4370 | echo "${ECHO_T}$have_svn" >&6 |
---|
4371 | else |
---|
4372 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4373 | echo "${ECHO_T}no" >&6 |
---|
4374 | fi |
---|
4375 | |
---|
4376 | if test x$have_svn = xyes; then |
---|
4377 | echo "$as_me:$LINENO: checking whether svn understands https" >&5 |
---|
4378 | echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 |
---|
4379 | if test "${ac_cv_svn_understands_https+set}" = set; then |
---|
4380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4381 | else |
---|
4382 | svn --version > confauto.out 2>&1 |
---|
4383 | if $EGREP https confauto.out >/dev/null 2>&1; then |
---|
4384 | ac_cv_svn_understands_https=yes |
---|
4385 | else |
---|
4386 | ac_cv_svn_understands_https=no |
---|
4387 | have_svn=no |
---|
4388 | ac_cv_prog_have_svn=no |
---|
4389 | fi |
---|
4390 | rm -f confauto.out |
---|
4391 | fi |
---|
4392 | echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 |
---|
4393 | echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 |
---|
4394 | fi |
---|
4395 | |
---|
4396 | # Find the location of the BuildTools directory |
---|
4397 | BUILDTOOLSDIR= |
---|
4398 | if test -r $srcdir/BuildTools/coin.m4; then |
---|
4399 | BUILDTOOLSDIR=$srcdir/BuildTools |
---|
4400 | else |
---|
4401 | if test -r $srcdir/../BuildTools/coin.m4; then |
---|
4402 | BUILDTOOLSDIR=$srcdir/../BuildTools |
---|
4403 | else |
---|
4404 | if test -r $srcdir/../../BuildTools/coin.m4; then |
---|
4405 | BUILDTOOLSDIR=$srcdir/../../BuildTools |
---|
4406 | else |
---|
4407 | { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 |
---|
4408 | echo "$as_me: error: Cannot find the BuildTools directory" >&2;} |
---|
4409 | { (exit 1); exit 1; }; } |
---|
4410 | fi |
---|
4411 | fi |
---|
4412 | fi |
---|
4413 | |
---|
4414 | |
---|
4415 | # The following variable is set to the name of the directory where |
---|
4416 | # the autotool scripts are located |
---|
4417 | |
---|
4418 | AUX_DIR=$ac_aux_dir |
---|
4419 | fi |
---|
4420 | |
---|
4421 | # helpful variable for the base directory of this package |
---|
4422 | abs_source_dir=`cd $srcdir; pwd` |
---|
4423 | |
---|
4424 | |
---|
4425 | # Stuff for example Makefiles |
---|
4426 | if test x$prefix = xNONE; then |
---|
4427 | full_prefix=$ac_default_prefix |
---|
4428 | else |
---|
4429 | full_prefix=$prefix |
---|
4430 | fi |
---|
4431 | full_prefix=`cd $full_prefix ; pwd` |
---|
4432 | |
---|
4433 | abs_lib_dir=$full_prefix/lib/coin |
---|
4434 | |
---|
4435 | abs_include_dir=$full_prefix/include |
---|
4436 | |
---|
4437 | abs_bin_dir=$full_prefix/bin |
---|
4438 | |
---|
4439 | |
---|
4440 | |
---|
4441 | if test $coin_have_externals = yes && test x$have_svn = xyes; then |
---|
4442 | HAVE_EXTERNALS_TRUE= |
---|
4443 | HAVE_EXTERNALS_FALSE='#' |
---|
4444 | else |
---|
4445 | HAVE_EXTERNALS_TRUE='#' |
---|
4446 | HAVE_EXTERNALS_FALSE= |
---|
4447 | fi |
---|
4448 | |
---|
4449 | |
---|
4450 | # AC_MSG_NOTICE([End automake initialisation.]) |
---|
4451 | |
---|
4452 | |
---|
4453 | |
---|
4454 | LIBTOOL= |
---|
4455 | if test -r ../libtool; then |
---|
4456 | coin_config_dir=.. |
---|
4457 | LIBTOOL='$(SHELL) $(top_builddir)/../libtool' |
---|
4458 | fi |
---|
4459 | if test "x$LIBTOOL" = x; then |
---|
4460 | if test -r ../../libtool; then |
---|
4461 | coin_config_dir=../.. |
---|
4462 | LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' |
---|
4463 | fi |
---|
4464 | fi |
---|
4465 | |
---|
4466 | if test "x$LIBTOOL" = x; then |
---|
4467 | # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) |
---|
4468 | # Stuff for libtool |
---|
4469 | # Check whether --enable-shared or --disable-shared was given. |
---|
4470 | if test "${enable_shared+set}" = set; then |
---|
4471 | enableval="$enable_shared" |
---|
4472 | p=${PACKAGE-default} |
---|
4473 | case $enableval in |
---|
4474 | yes) enable_shared=yes ;; |
---|
4475 | no) enable_shared=no ;; |
---|
4476 | *) |
---|
4477 | enable_shared=no |
---|
4478 | # Look at the argument we got. We use all the common list separators. |
---|
4479 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4480 | for pkg in $enableval; do |
---|
4481 | IFS="$lt_save_ifs" |
---|
4482 | if test "X$pkg" = "X$p"; then |
---|
4483 | enable_shared=yes |
---|
4484 | fi |
---|
4485 | done |
---|
4486 | IFS="$lt_save_ifs" |
---|
4487 | ;; |
---|
4488 | esac |
---|
4489 | else |
---|
4490 | enable_shared=yes |
---|
4491 | fi; |
---|
4492 | |
---|
4493 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
4494 | if test "${enable_fast_install+set}" = set; then |
---|
4495 | enableval="$enable_fast_install" |
---|
4496 | p=${PACKAGE-default} |
---|
4497 | case $enableval in |
---|
4498 | yes) enable_fast_install=yes ;; |
---|
4499 | no) enable_fast_install=no ;; |
---|
4500 | *) |
---|
4501 | enable_fast_install=no |
---|
4502 | # Look at the argument we got. We use all the common list separators. |
---|
4503 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4504 | for pkg in $enableval; do |
---|
4505 | IFS="$lt_save_ifs" |
---|
4506 | if test "X$pkg" = "X$p"; then |
---|
4507 | enable_fast_install=yes |
---|
4508 | fi |
---|
4509 | done |
---|
4510 | IFS="$lt_save_ifs" |
---|
4511 | ;; |
---|
4512 | esac |
---|
4513 | else |
---|
4514 | enable_fast_install=yes |
---|
4515 | fi; |
---|
4516 | |
---|
4517 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
4518 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
4519 | if test "${ac_cv_host+set}" = set; then |
---|
4520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4521 | else |
---|
4522 | ac_cv_host_alias=$host_alias |
---|
4523 | test -z "$ac_cv_host_alias" && |
---|
4524 | ac_cv_host_alias=$ac_cv_build_alias |
---|
4525 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
4526 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
4527 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
4528 | { (exit 1); exit 1; }; } |
---|
4529 | |
---|
4530 | fi |
---|
4531 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
4532 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
4533 | host=$ac_cv_host |
---|
4534 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
4535 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
4536 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
4537 | |
---|
4538 | |
---|
4539 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
---|
4540 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
---|
4541 | if test "${lt_cv_path_SED+set}" = set; then |
---|
4542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4543 | else |
---|
4544 | # Loop through the user's path and test for sed and gsed. |
---|
4545 | # Then use that list of sed's as ones to test for truncation. |
---|
4546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4547 | for as_dir in $PATH |
---|
4548 | do |
---|
4549 | IFS=$as_save_IFS |
---|
4550 | test -z "$as_dir" && as_dir=. |
---|
4551 | for lt_ac_prog in sed gsed; do |
---|
4552 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4553 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
---|
4554 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
---|
4555 | fi |
---|
4556 | done |
---|
4557 | done |
---|
4558 | done |
---|
4559 | lt_ac_max=0 |
---|
4560 | lt_ac_count=0 |
---|
4561 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
---|
4562 | # along with /bin/sed that truncates output. |
---|
4563 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
---|
4564 | test ! -f $lt_ac_sed && continue |
---|
4565 | cat /dev/null > conftest.in |
---|
4566 | lt_ac_count=0 |
---|
4567 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
---|
4568 | # Check for GNU sed and select it if it is found. |
---|
4569 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
---|
4570 | lt_cv_path_SED=$lt_ac_sed |
---|
4571 | break |
---|
4572 | fi |
---|
4573 | while true; do |
---|
4574 | cat conftest.in conftest.in >conftest.tmp |
---|
4575 | mv conftest.tmp conftest.in |
---|
4576 | cp conftest.in conftest.nl |
---|
4577 | echo >>conftest.nl |
---|
4578 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
---|
4579 | cmp -s conftest.out conftest.nl || break |
---|
4580 | # 10000 chars as input seems more than enough |
---|
4581 | test $lt_ac_count -gt 10 && break |
---|
4582 | lt_ac_count=`expr $lt_ac_count + 1` |
---|
4583 | if test $lt_ac_count -gt $lt_ac_max; then |
---|
4584 | lt_ac_max=$lt_ac_count |
---|
4585 | lt_cv_path_SED=$lt_ac_sed |
---|
4586 | fi |
---|
4587 | done |
---|
4588 | done |
---|
4589 | |
---|
4590 | fi |
---|
4591 | |
---|
4592 | SED=$lt_cv_path_SED |
---|
4593 | echo "$as_me:$LINENO: result: $SED" >&5 |
---|
4594 | echo "${ECHO_T}$SED" >&6 |
---|
4595 | |
---|
4596 | |
---|
4597 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
4598 | if test "${with_gnu_ld+set}" = set; then |
---|
4599 | withval="$with_gnu_ld" |
---|
4600 | test "$withval" = no || with_gnu_ld=yes |
---|
4601 | else |
---|
4602 | with_gnu_ld=no |
---|
4603 | fi; |
---|
4604 | ac_prog=ld |
---|
4605 | if test "$GCC" = yes; then |
---|
4606 | # Check if gcc -print-prog-name=ld gives a path. |
---|
4607 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
4608 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
---|
4609 | case $host in |
---|
4610 | *-*-mingw*) |
---|
4611 | # gcc leaves a trailing carriage return which upsets mingw |
---|
4612 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
4613 | *) |
---|
4614 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
4615 | esac |
---|
4616 | case $ac_prog in |
---|
4617 | # Accept absolute paths. |
---|
4618 | [\\/]* | ?:[\\/]*) |
---|
4619 | re_direlt='/[^/][^/]*/\.\./' |
---|
4620 | # Canonicalize the pathname of ld |
---|
4621 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
4622 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
4623 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
4624 | done |
---|
4625 | test -z "$LD" && LD="$ac_prog" |
---|
4626 | ;; |
---|
4627 | "") |
---|
4628 | # If it fails, then pretend we aren't using GCC. |
---|
4629 | ac_prog=ld |
---|
4630 | ;; |
---|
4631 | *) |
---|
4632 | # If it is relative, then search for the first ld in PATH. |
---|
4633 | with_gnu_ld=unknown |
---|
4634 | ;; |
---|
4635 | esac |
---|
4636 | elif test "$with_gnu_ld" = yes; then |
---|
4637 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
4638 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
4639 | else |
---|
4640 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
4641 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
4642 | fi |
---|
4643 | if test "${lt_cv_path_LD+set}" = set; then |
---|
4644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4645 | else |
---|
4646 | if test -z "$LD"; then |
---|
4647 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
4648 | for ac_dir in $PATH; do |
---|
4649 | IFS="$lt_save_ifs" |
---|
4650 | test -z "$ac_dir" && ac_dir=. |
---|
4651 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
4652 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
4653 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
4654 | # but apparently some variants of GNU ld only accept -v. |
---|
4655 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
4656 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
4657 | *GNU* | *'with BFD'*) |
---|
4658 | test "$with_gnu_ld" != no && break |
---|
4659 | ;; |
---|
4660 | *) |
---|
4661 | test "$with_gnu_ld" != yes && break |
---|
4662 | ;; |
---|
4663 | esac |
---|
4664 | fi |
---|
4665 | done |
---|
4666 | IFS="$lt_save_ifs" |
---|
4667 | else |
---|
4668 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
4669 | fi |
---|
4670 | fi |
---|
4671 | |
---|
4672 | LD="$lt_cv_path_LD" |
---|
4673 | if test -n "$LD"; then |
---|
4674 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
4675 | echo "${ECHO_T}$LD" >&6 |
---|
4676 | else |
---|
4677 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4678 | echo "${ECHO_T}no" >&6 |
---|
4679 | fi |
---|
4680 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
4681 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
4682 | { (exit 1); exit 1; }; } |
---|
4683 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
4684 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
4685 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
4686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4687 | else |
---|
4688 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
4689 | case `$LD -v 2>&1 </dev/null` in |
---|
4690 | *GNU* | *'with BFD'*) |
---|
4691 | lt_cv_prog_gnu_ld=yes |
---|
4692 | ;; |
---|
4693 | *) |
---|
4694 | lt_cv_prog_gnu_ld=no |
---|
4695 | ;; |
---|
4696 | esac |
---|
4697 | fi |
---|
4698 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
4699 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
4700 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
4701 | |
---|
4702 | |
---|
4703 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
---|
4704 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
---|
4705 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
---|
4706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4707 | else |
---|
4708 | lt_cv_ld_reload_flag='-r' |
---|
4709 | fi |
---|
4710 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
---|
4711 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
---|
4712 | reload_flag=$lt_cv_ld_reload_flag |
---|
4713 | case $reload_flag in |
---|
4714 | "" | " "*) ;; |
---|
4715 | *) reload_flag=" $reload_flag" ;; |
---|
4716 | esac |
---|
4717 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
4718 | case $host_os in |
---|
4719 | darwin*) |
---|
4720 | if test "$GCC" = yes; then |
---|
4721 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
---|
4722 | else |
---|
4723 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
4724 | fi |
---|
4725 | ;; |
---|
4726 | esac |
---|
4727 | |
---|
4728 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
---|
4729 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
---|
4730 | if test "${lt_cv_path_NM+set}" = set; then |
---|
4731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4732 | else |
---|
4733 | if test -n "$NM"; then |
---|
4734 | # Let the user override the test. |
---|
4735 | lt_cv_path_NM="$NM" |
---|
4736 | else |
---|
4737 | lt_nm_to_check="${ac_tool_prefix}nm" |
---|
4738 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
---|
4739 | lt_nm_to_check="$lt_nm_to_check nm" |
---|
4740 | fi |
---|
4741 | for lt_tmp_nm in $lt_nm_to_check; do |
---|
4742 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
4743 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
---|
4744 | IFS="$lt_save_ifs" |
---|
4745 | test -z "$ac_dir" && ac_dir=. |
---|
4746 | tmp_nm="$ac_dir/$lt_tmp_nm" |
---|
4747 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
4748 | # Check to see if the nm accepts a BSD-compat flag. |
---|
4749 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
4750 | # nm: unknown option "B" ignored |
---|
4751 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
4752 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
4753 | */dev/null* | *'Invalid file or object type'*) |
---|
4754 | lt_cv_path_NM="$tmp_nm -B" |
---|
4755 | break |
---|
4756 | ;; |
---|
4757 | *) |
---|
4758 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
4759 | */dev/null*) |
---|
4760 | lt_cv_path_NM="$tmp_nm -p" |
---|
4761 | break |
---|
4762 | ;; |
---|
4763 | *) |
---|
4764 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
4765 | continue # so that we can try to find one that supports BSD flags |
---|
4766 | ;; |
---|
4767 | esac |
---|
4768 | ;; |
---|
4769 | esac |
---|
4770 | fi |
---|
4771 | done |
---|
4772 | IFS="$lt_save_ifs" |
---|
4773 | done |
---|
4774 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
4775 | fi |
---|
4776 | fi |
---|
4777 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
---|
4778 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
---|
4779 | NM="$lt_cv_path_NM" |
---|
4780 | |
---|
4781 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
4782 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
4783 | LN_S=$as_ln_s |
---|
4784 | if test "$LN_S" = "ln -s"; then |
---|
4785 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4786 | echo "${ECHO_T}yes" >&6 |
---|
4787 | else |
---|
4788 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
4789 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
4790 | fi |
---|
4791 | |
---|
4792 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
---|
4793 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
---|
4794 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
---|
4795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4796 | else |
---|
4797 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
4798 | lt_cv_file_magic_test_file= |
---|
4799 | lt_cv_deplibs_check_method='unknown' |
---|
4800 | # Need to set the preceding variable on all platforms that support |
---|
4801 | # interlibrary dependencies. |
---|
4802 | # 'none' -- dependencies not supported. |
---|
4803 | # `unknown' -- same as none, but documents that we really don't know. |
---|
4804 | # 'pass_all' -- all dependencies passed with no checks. |
---|
4805 | # 'test_compile' -- check by making test program. |
---|
4806 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
4807 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
4808 | # If you have `file' or equivalent on your system and you're not sure |
---|
4809 | # whether `pass_all' will *always* work, you probably want this one. |
---|
4810 | |
---|
4811 | case $host_os in |
---|
4812 | aix4* | aix5*) |
---|
4813 | lt_cv_deplibs_check_method=pass_all |
---|
4814 | ;; |
---|
4815 | |
---|
4816 | beos*) |
---|
4817 | lt_cv_deplibs_check_method=pass_all |
---|
4818 | ;; |
---|
4819 | |
---|
4820 | bsdi[45]*) |
---|
4821 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
4822 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
4823 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
4824 | ;; |
---|
4825 | |
---|
4826 | cygwin*) |
---|
4827 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
4828 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
4829 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
4830 | ;; |
---|
4831 | |
---|
4832 | mingw* | pw32*) |
---|
4833 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
4834 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
---|
4835 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
4836 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
4837 | ;; |
---|
4838 | |
---|
4839 | darwin* | rhapsody*) |
---|
4840 | lt_cv_deplibs_check_method=pass_all |
---|
4841 | ;; |
---|
4842 | |
---|
4843 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
4844 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
4845 | case $host_cpu in |
---|
4846 | i*86 ) |
---|
4847 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
4848 | # Let's accept both of them until this is cleared up. |
---|
4849 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
4850 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
4851 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
4852 | ;; |
---|
4853 | esac |
---|
4854 | else |
---|
4855 | lt_cv_deplibs_check_method=pass_all |
---|
4856 | fi |
---|
4857 | ;; |
---|
4858 | |
---|
4859 | gnu*) |
---|
4860 | lt_cv_deplibs_check_method=pass_all |
---|
4861 | ;; |
---|
4862 | |
---|
4863 | hpux10.20* | hpux11*) |
---|
4864 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
4865 | case $host_cpu in |
---|
4866 | ia64*) |
---|
4867 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
4868 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
4869 | ;; |
---|
4870 | hppa*64*) |
---|
4871 | 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]' |
---|
4872 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
4873 | ;; |
---|
4874 | *) |
---|
4875 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
4876 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
4877 | ;; |
---|
4878 | esac |
---|
4879 | ;; |
---|
4880 | |
---|
4881 | interix3*) |
---|
4882 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
---|
4883 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
---|
4884 | ;; |
---|
4885 | |
---|
4886 | irix5* | irix6* | nonstopux*) |
---|
4887 | case $LD in |
---|
4888 | *-32|*"-32 ") libmagic=32-bit;; |
---|
4889 | *-n32|*"-n32 ") libmagic=N32;; |
---|
4890 | *-64|*"-64 ") libmagic=64-bit;; |
---|
4891 | *) libmagic=never-match;; |
---|
4892 | esac |
---|
4893 | lt_cv_deplibs_check_method=pass_all |
---|
4894 | ;; |
---|
4895 | |
---|
4896 | # This must be Linux ELF. |
---|
4897 | linux*) |
---|
4898 | lt_cv_deplibs_check_method=pass_all |
---|
4899 | ;; |
---|
4900 | |
---|
4901 | netbsd*) |
---|
4902 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
4903 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
4904 | else |
---|
4905 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
4906 | fi |
---|
4907 | ;; |
---|
4908 | |
---|
4909 | newos6*) |
---|
4910 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
4911 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
4912 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
4913 | ;; |
---|
4914 | |
---|
4915 | nto-qnx*) |
---|
4916 | lt_cv_deplibs_check_method=unknown |
---|
4917 | ;; |
---|
4918 | |
---|
4919 | openbsd*) |
---|
4920 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
4921 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
4922 | else |
---|
4923 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
4924 | fi |
---|
4925 | ;; |
---|
4926 | |
---|
4927 | osf3* | osf4* | osf5*) |
---|
4928 | lt_cv_deplibs_check_method=pass_all |
---|
4929 | ;; |
---|
4930 | |
---|
4931 | solaris*) |
---|
4932 | lt_cv_deplibs_check_method=pass_all |
---|
4933 | ;; |
---|
4934 | |
---|
4935 | sysv4 | sysv4.3*) |
---|
4936 | case $host_vendor in |
---|
4937 | motorola) |
---|
4938 | 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]' |
---|
4939 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
4940 | ;; |
---|
4941 | ncr) |
---|
4942 | lt_cv_deplibs_check_method=pass_all |
---|
4943 | ;; |
---|
4944 | sequent) |
---|
4945 | lt_cv_file_magic_cmd='/bin/file' |
---|
4946 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
4947 | ;; |
---|
4948 | sni) |
---|
4949 | lt_cv_file_magic_cmd='/bin/file' |
---|
4950 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
4951 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
4952 | ;; |
---|
4953 | siemens) |
---|
4954 | lt_cv_deplibs_check_method=pass_all |
---|
4955 | ;; |
---|
4956 | pc) |
---|
4957 | lt_cv_deplibs_check_method=pass_all |
---|
4958 | ;; |
---|
4959 | esac |
---|
4960 | ;; |
---|
4961 | |
---|
4962 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
4963 | lt_cv_deplibs_check_method=pass_all |
---|
4964 | ;; |
---|
4965 | esac |
---|
4966 | |
---|
4967 | fi |
---|
4968 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
---|
4969 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
---|
4970 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
4971 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
4972 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
4973 | |
---|
4974 | |
---|
4975 | |
---|
4976 | |
---|
4977 | # If no C compiler was specified, use CC. |
---|
4978 | LTCC=${LTCC-"$CC"} |
---|
4979 | |
---|
4980 | # If no C compiler flags were specified, use CFLAGS. |
---|
4981 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
4982 | |
---|
4983 | # Allow CC to be a program name with arguments. |
---|
4984 | compiler=$CC |
---|
4985 | |
---|
4986 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
4987 | if test "${enable_libtool_lock+set}" = set; then |
---|
4988 | enableval="$enable_libtool_lock" |
---|
4989 | |
---|
4990 | fi; |
---|
4991 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
4992 | |
---|
4993 | # Some flags need to be propagated to the compiler or linker for good |
---|
4994 | # libtool support. |
---|
4995 | case $host in |
---|
4996 | ia64-*-hpux*) |
---|
4997 | # Find out which ABI we are using. |
---|
4998 | echo 'int i;' > conftest.$ac_ext |
---|
4999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5000 | (eval $ac_compile) 2>&5 |
---|
5001 | ac_status=$? |
---|
5002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5003 | (exit $ac_status); }; then |
---|
5004 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5005 | *ELF-32*) |
---|
5006 | HPUX_IA64_MODE="32" |
---|
5007 | ;; |
---|
5008 | *ELF-64*) |
---|
5009 | HPUX_IA64_MODE="64" |
---|
5010 | ;; |
---|
5011 | esac |
---|
5012 | fi |
---|
5013 | rm -rf conftest* |
---|
5014 | ;; |
---|
5015 | *-*-irix6*) |
---|
5016 | # Find out which ABI we are using. |
---|
5017 | echo '#line 5017 "configure"' > conftest.$ac_ext |
---|
5018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5019 | (eval $ac_compile) 2>&5 |
---|
5020 | ac_status=$? |
---|
5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5022 | (exit $ac_status); }; then |
---|
5023 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
5024 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5025 | *32-bit*) |
---|
5026 | LD="${LD-ld} -melf32bsmip" |
---|
5027 | ;; |
---|
5028 | *N32*) |
---|
5029 | LD="${LD-ld} -melf32bmipn32" |
---|
5030 | ;; |
---|
5031 | *64-bit*) |
---|
5032 | LD="${LD-ld} -melf64bmip" |
---|
5033 | ;; |
---|
5034 | esac |
---|
5035 | else |
---|
5036 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5037 | *32-bit*) |
---|
5038 | LD="${LD-ld} -32" |
---|
5039 | ;; |
---|
5040 | *N32*) |
---|
5041 | LD="${LD-ld} -n32" |
---|
5042 | ;; |
---|
5043 | *64-bit*) |
---|
5044 | LD="${LD-ld} -64" |
---|
5045 | ;; |
---|
5046 | esac |
---|
5047 | fi |
---|
5048 | fi |
---|
5049 | rm -rf conftest* |
---|
5050 | ;; |
---|
5051 | |
---|
5052 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
---|
5053 | # Find out which ABI we are using. |
---|
5054 | echo 'int i;' > conftest.$ac_ext |
---|
5055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5056 | (eval $ac_compile) 2>&5 |
---|
5057 | ac_status=$? |
---|
5058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5059 | (exit $ac_status); }; then |
---|
5060 | case `/usr/bin/file conftest.o` in |
---|
5061 | *32-bit*) |
---|
5062 | case $host in |
---|
5063 | x86_64-*linux*) |
---|
5064 | LD="${LD-ld} -m elf_i386" |
---|
5065 | ;; |
---|
5066 | ppc64-*linux*|powerpc64-*linux*) |
---|
5067 | LD="${LD-ld} -m elf32ppclinux" |
---|
5068 | ;; |
---|
5069 | s390x-*linux*) |
---|
5070 | LD="${LD-ld} -m elf_s390" |
---|
5071 | ;; |
---|
5072 | sparc64-*linux*) |
---|
5073 | LD="${LD-ld} -m elf32_sparc" |
---|
5074 | ;; |
---|
5075 | esac |
---|
5076 | ;; |
---|
5077 | *64-bit*) |
---|
5078 | case $host in |
---|
5079 | x86_64-*linux*) |
---|
5080 | LD="${LD-ld} -m elf_x86_64" |
---|
5081 | ;; |
---|
5082 | ppc*-*linux*|powerpc*-*linux*) |
---|
5083 | LD="${LD-ld} -m elf64ppc" |
---|
5084 | ;; |
---|
5085 | s390*-*linux*) |
---|
5086 | LD="${LD-ld} -m elf64_s390" |
---|
5087 | ;; |
---|
5088 | sparc*-*linux*) |
---|
5089 | LD="${LD-ld} -m elf64_sparc" |
---|
5090 | ;; |
---|
5091 | esac |
---|
5092 | ;; |
---|
5093 | esac |
---|
5094 | fi |
---|
5095 | rm -rf conftest* |
---|
5096 | ;; |
---|
5097 | |
---|
5098 | *-*-sco3.2v5*) |
---|
5099 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
5100 | SAVE_CFLAGS="$CFLAGS" |
---|
5101 | CFLAGS="$CFLAGS -belf" |
---|
5102 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
---|
5103 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
---|
5104 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
---|
5105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5106 | else |
---|
5107 | ac_ext=c |
---|
5108 | ac_cpp='$CPP $CPPFLAGS' |
---|
5109 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5110 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5111 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5112 | |
---|
5113 | cat >conftest.$ac_ext <<_ACEOF |
---|
5114 | /* confdefs.h. */ |
---|
5115 | _ACEOF |
---|
5116 | cat confdefs.h >>conftest.$ac_ext |
---|
5117 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5118 | /* end confdefs.h. */ |
---|
5119 | |
---|
5120 | int |
---|
5121 | main () |
---|
5122 | { |
---|
5123 | |
---|
5124 | ; |
---|
5125 | return 0; |
---|
5126 | } |
---|
5127 | _ACEOF |
---|
5128 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5130 | (eval $ac_link) 2>conftest.er1 |
---|
5131 | ac_status=$? |
---|
5132 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5133 | rm -f conftest.er1 |
---|
5134 | cat conftest.err >&5 |
---|
5135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5136 | (exit $ac_status); } && |
---|
5137 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5138 | || test ! -s conftest.err' |
---|
5139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5140 | (eval $ac_try) 2>&5 |
---|
5141 | ac_status=$? |
---|
5142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5143 | (exit $ac_status); }; } && |
---|
5144 | { ac_try='test -s conftest$ac_exeext' |
---|
5145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5146 | (eval $ac_try) 2>&5 |
---|
5147 | ac_status=$? |
---|
5148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5149 | (exit $ac_status); }; }; then |
---|
5150 | lt_cv_cc_needs_belf=yes |
---|
5151 | else |
---|
5152 | echo "$as_me: failed program was:" >&5 |
---|
5153 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5154 | |
---|
5155 | lt_cv_cc_needs_belf=no |
---|
5156 | fi |
---|
5157 | rm -f conftest.err conftest.$ac_objext \ |
---|
5158 | conftest$ac_exeext conftest.$ac_ext |
---|
5159 | ac_ext=c |
---|
5160 | ac_cpp='$CPP $CPPFLAGS' |
---|
5161 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5162 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5163 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5164 | |
---|
5165 | fi |
---|
5166 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
---|
5167 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
---|
5168 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
5169 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
5170 | CFLAGS="$SAVE_CFLAGS" |
---|
5171 | fi |
---|
5172 | ;; |
---|
5173 | sparc*-*solaris*) |
---|
5174 | # Find out which ABI we are using. |
---|
5175 | echo 'int i;' > conftest.$ac_ext |
---|
5176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5177 | (eval $ac_compile) 2>&5 |
---|
5178 | ac_status=$? |
---|
5179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5180 | (exit $ac_status); }; then |
---|
5181 | case `/usr/bin/file conftest.o` in |
---|
5182 | *64-bit*) |
---|
5183 | case $lt_cv_prog_gnu_ld in |
---|
5184 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
---|
5185 | *) LD="${LD-ld} -64" ;; |
---|
5186 | esac |
---|
5187 | ;; |
---|
5188 | esac |
---|
5189 | fi |
---|
5190 | rm -rf conftest* |
---|
5191 | ;; |
---|
5192 | |
---|
5193 | |
---|
5194 | esac |
---|
5195 | |
---|
5196 | need_locks="$enable_libtool_lock" |
---|
5197 | |
---|
5198 | |
---|
5199 | ac_ext=c |
---|
5200 | ac_cpp='$CPP $CPPFLAGS' |
---|
5201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5204 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
5205 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
5206 | # On Suns, sometimes $CPP names a directory. |
---|
5207 | if test -n "$CPP" && test -d "$CPP"; then |
---|
5208 | CPP= |
---|
5209 | fi |
---|
5210 | if test -z "$CPP"; then |
---|
5211 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
5212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5213 | else |
---|
5214 | # Double quotes because CPP needs to be expanded |
---|
5215 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
5216 | do |
---|
5217 | ac_preproc_ok=false |
---|
5218 | for ac_c_preproc_warn_flag in '' yes |
---|
5219 | do |
---|
5220 | # Use a header file that comes with gcc, so configuring glibc |
---|
5221 | # with a fresh cross-compiler works. |
---|
5222 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5223 | # <limits.h> exists even on freestanding compilers. |
---|
5224 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5225 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5226 | cat >conftest.$ac_ext <<_ACEOF |
---|
5227 | /* confdefs.h. */ |
---|
5228 | _ACEOF |
---|
5229 | cat confdefs.h >>conftest.$ac_ext |
---|
5230 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5231 | /* end confdefs.h. */ |
---|
5232 | #ifdef __STDC__ |
---|
5233 | # include <limits.h> |
---|
5234 | #else |
---|
5235 | # include <assert.h> |
---|
5236 | #endif |
---|
5237 | Syntax error |
---|
5238 | _ACEOF |
---|
5239 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5240 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5241 | ac_status=$? |
---|
5242 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5243 | rm -f conftest.er1 |
---|
5244 | cat conftest.err >&5 |
---|
5245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5246 | (exit $ac_status); } >/dev/null; then |
---|
5247 | if test -s conftest.err; then |
---|
5248 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5249 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5250 | else |
---|
5251 | ac_cpp_err= |
---|
5252 | fi |
---|
5253 | else |
---|
5254 | ac_cpp_err=yes |
---|
5255 | fi |
---|
5256 | if test -z "$ac_cpp_err"; then |
---|
5257 | : |
---|
5258 | else |
---|
5259 | echo "$as_me: failed program was:" >&5 |
---|
5260 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5261 | |
---|
5262 | # Broken: fails on valid input. |
---|
5263 | continue |
---|
5264 | fi |
---|
5265 | rm -f conftest.err conftest.$ac_ext |
---|
5266 | |
---|
5267 | # OK, works on sane cases. Now check whether non-existent headers |
---|
5268 | # can be detected and how. |
---|
5269 | cat >conftest.$ac_ext <<_ACEOF |
---|
5270 | /* confdefs.h. */ |
---|
5271 | _ACEOF |
---|
5272 | cat confdefs.h >>conftest.$ac_ext |
---|
5273 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5274 | /* end confdefs.h. */ |
---|
5275 | #include <ac_nonexistent.h> |
---|
5276 | _ACEOF |
---|
5277 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5278 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5279 | ac_status=$? |
---|
5280 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5281 | rm -f conftest.er1 |
---|
5282 | cat conftest.err >&5 |
---|
5283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5284 | (exit $ac_status); } >/dev/null; then |
---|
5285 | if test -s conftest.err; then |
---|
5286 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5287 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5288 | else |
---|
5289 | ac_cpp_err= |
---|
5290 | fi |
---|
5291 | else |
---|
5292 | ac_cpp_err=yes |
---|
5293 | fi |
---|
5294 | if test -z "$ac_cpp_err"; then |
---|
5295 | # Broken: success on invalid input. |
---|
5296 | continue |
---|
5297 | else |
---|
5298 | echo "$as_me: failed program was:" >&5 |
---|
5299 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5300 | |
---|
5301 | # Passes both tests. |
---|
5302 | ac_preproc_ok=: |
---|
5303 | break |
---|
5304 | fi |
---|
5305 | rm -f conftest.err conftest.$ac_ext |
---|
5306 | |
---|
5307 | done |
---|
5308 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5309 | rm -f conftest.err conftest.$ac_ext |
---|
5310 | if $ac_preproc_ok; then |
---|
5311 | break |
---|
5312 | fi |
---|
5313 | |
---|
5314 | done |
---|
5315 | ac_cv_prog_CPP=$CPP |
---|
5316 | |
---|
5317 | fi |
---|
5318 | CPP=$ac_cv_prog_CPP |
---|
5319 | else |
---|
5320 | ac_cv_prog_CPP=$CPP |
---|
5321 | fi |
---|
5322 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
5323 | echo "${ECHO_T}$CPP" >&6 |
---|
5324 | ac_preproc_ok=false |
---|
5325 | for ac_c_preproc_warn_flag in '' yes |
---|
5326 | do |
---|
5327 | # Use a header file that comes with gcc, so configuring glibc |
---|
5328 | # with a fresh cross-compiler works. |
---|
5329 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5330 | # <limits.h> exists even on freestanding compilers. |
---|
5331 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5332 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5333 | cat >conftest.$ac_ext <<_ACEOF |
---|
5334 | /* confdefs.h. */ |
---|
5335 | _ACEOF |
---|
5336 | cat confdefs.h >>conftest.$ac_ext |
---|
5337 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5338 | /* end confdefs.h. */ |
---|
5339 | #ifdef __STDC__ |
---|
5340 | # include <limits.h> |
---|
5341 | #else |
---|
5342 | # include <assert.h> |
---|
5343 | #endif |
---|
5344 | Syntax error |
---|
5345 | _ACEOF |
---|
5346 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5347 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5348 | ac_status=$? |
---|
5349 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5350 | rm -f conftest.er1 |
---|
5351 | cat conftest.err >&5 |
---|
5352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5353 | (exit $ac_status); } >/dev/null; then |
---|
5354 | if test -s conftest.err; then |
---|
5355 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5356 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5357 | else |
---|
5358 | ac_cpp_err= |
---|
5359 | fi |
---|
5360 | else |
---|
5361 | ac_cpp_err=yes |
---|
5362 | fi |
---|
5363 | if test -z "$ac_cpp_err"; then |
---|
5364 | : |
---|
5365 | else |
---|
5366 | echo "$as_me: failed program was:" >&5 |
---|
5367 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5368 | |
---|
5369 | # Broken: fails on valid input. |
---|
5370 | continue |
---|
5371 | fi |
---|
5372 | rm -f conftest.err conftest.$ac_ext |
---|
5373 | |
---|
5374 | # OK, works on sane cases. Now check whether non-existent headers |
---|
5375 | # can be detected and how. |
---|
5376 | cat >conftest.$ac_ext <<_ACEOF |
---|
5377 | /* confdefs.h. */ |
---|
5378 | _ACEOF |
---|
5379 | cat confdefs.h >>conftest.$ac_ext |
---|
5380 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5381 | /* end confdefs.h. */ |
---|
5382 | #include <ac_nonexistent.h> |
---|
5383 | _ACEOF |
---|
5384 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5385 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5386 | ac_status=$? |
---|
5387 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5388 | rm -f conftest.er1 |
---|
5389 | cat conftest.err >&5 |
---|
5390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5391 | (exit $ac_status); } >/dev/null; then |
---|
5392 | if test -s conftest.err; then |
---|
5393 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5394 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5395 | else |
---|
5396 | ac_cpp_err= |
---|
5397 | fi |
---|
5398 | else |
---|
5399 | ac_cpp_err=yes |
---|
5400 | fi |
---|
5401 | if test -z "$ac_cpp_err"; then |
---|
5402 | # Broken: success on invalid input. |
---|
5403 | continue |
---|
5404 | else |
---|
5405 | echo "$as_me: failed program was:" >&5 |
---|
5406 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5407 | |
---|
5408 | # Passes both tests. |
---|
5409 | ac_preproc_ok=: |
---|
5410 | break |
---|
5411 | fi |
---|
5412 | rm -f conftest.err conftest.$ac_ext |
---|
5413 | |
---|
5414 | done |
---|
5415 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5416 | rm -f conftest.err conftest.$ac_ext |
---|
5417 | if $ac_preproc_ok; then |
---|
5418 | : |
---|
5419 | else |
---|
5420 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
5421 | See \`config.log' for more details." >&5 |
---|
5422 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
5423 | See \`config.log' for more details." >&2;} |
---|
5424 | { (exit 1); exit 1; }; } |
---|
5425 | fi |
---|
5426 | |
---|
5427 | ac_ext=c |
---|
5428 | ac_cpp='$CPP $CPPFLAGS' |
---|
5429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5432 | |
---|
5433 | |
---|
5434 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
5435 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
5436 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
5437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5438 | else |
---|
5439 | cat >conftest.$ac_ext <<_ACEOF |
---|
5440 | /* confdefs.h. */ |
---|
5441 | _ACEOF |
---|
5442 | cat confdefs.h >>conftest.$ac_ext |
---|
5443 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5444 | /* end confdefs.h. */ |
---|
5445 | #include <stdlib.h> |
---|
5446 | #include <stdarg.h> |
---|
5447 | #include <string.h> |
---|
5448 | #include <float.h> |
---|
5449 | |
---|
5450 | int |
---|
5451 | main () |
---|
5452 | { |
---|
5453 | |
---|
5454 | ; |
---|
5455 | return 0; |
---|
5456 | } |
---|
5457 | _ACEOF |
---|
5458 | rm -f conftest.$ac_objext |
---|
5459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5460 | (eval $ac_compile) 2>conftest.er1 |
---|
5461 | ac_status=$? |
---|
5462 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5463 | rm -f conftest.er1 |
---|
5464 | cat conftest.err >&5 |
---|
5465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5466 | (exit $ac_status); } && |
---|
5467 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5468 | || test ! -s conftest.err' |
---|
5469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5470 | (eval $ac_try) 2>&5 |
---|
5471 | ac_status=$? |
---|
5472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5473 | (exit $ac_status); }; } && |
---|
5474 | { ac_try='test -s conftest.$ac_objext' |
---|
5475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5476 | (eval $ac_try) 2>&5 |
---|
5477 | ac_status=$? |
---|
5478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5479 | (exit $ac_status); }; }; then |
---|
5480 | ac_cv_header_stdc=yes |
---|
5481 | else |
---|
5482 | echo "$as_me: failed program was:" >&5 |
---|
5483 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5484 | |
---|
5485 | ac_cv_header_stdc=no |
---|
5486 | fi |
---|
5487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5488 | |
---|
5489 | if test $ac_cv_header_stdc = yes; then |
---|
5490 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5491 | cat >conftest.$ac_ext <<_ACEOF |
---|
5492 | /* confdefs.h. */ |
---|
5493 | _ACEOF |
---|
5494 | cat confdefs.h >>conftest.$ac_ext |
---|
5495 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5496 | /* end confdefs.h. */ |
---|
5497 | #include <string.h> |
---|
5498 | |
---|
5499 | _ACEOF |
---|
5500 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5501 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
5502 | : |
---|
5503 | else |
---|
5504 | ac_cv_header_stdc=no |
---|
5505 | fi |
---|
5506 | rm -f conftest* |
---|
5507 | |
---|
5508 | fi |
---|
5509 | |
---|
5510 | if test $ac_cv_header_stdc = yes; then |
---|
5511 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5512 | cat >conftest.$ac_ext <<_ACEOF |
---|
5513 | /* confdefs.h. */ |
---|
5514 | _ACEOF |
---|
5515 | cat confdefs.h >>conftest.$ac_ext |
---|
5516 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5517 | /* end confdefs.h. */ |
---|
5518 | #include <stdlib.h> |
---|
5519 | |
---|
5520 | _ACEOF |
---|
5521 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5522 | $EGREP "free" >/dev/null 2>&1; then |
---|
5523 | : |
---|
5524 | else |
---|
5525 | ac_cv_header_stdc=no |
---|
5526 | fi |
---|
5527 | rm -f conftest* |
---|
5528 | |
---|
5529 | fi |
---|
5530 | |
---|
5531 | if test $ac_cv_header_stdc = yes; then |
---|
5532 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5533 | if test "$cross_compiling" = yes; then |
---|
5534 | : |
---|
5535 | else |
---|
5536 | cat >conftest.$ac_ext <<_ACEOF |
---|
5537 | /* confdefs.h. */ |
---|
5538 | _ACEOF |
---|
5539 | cat confdefs.h >>conftest.$ac_ext |
---|
5540 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5541 | /* end confdefs.h. */ |
---|
5542 | #include <ctype.h> |
---|
5543 | #if ((' ' & 0x0FF) == 0x020) |
---|
5544 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5545 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5546 | #else |
---|
5547 | # define ISLOWER(c) \ |
---|
5548 | (('a' <= (c) && (c) <= 'i') \ |
---|
5549 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5550 | || ('s' <= (c) && (c) <= 'z')) |
---|
5551 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5552 | #endif |
---|
5553 | |
---|
5554 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5555 | int |
---|
5556 | main () |
---|
5557 | { |
---|
5558 | int i; |
---|
5559 | for (i = 0; i < 256; i++) |
---|
5560 | if (XOR (islower (i), ISLOWER (i)) |
---|
5561 | || toupper (i) != TOUPPER (i)) |
---|
5562 | exit(2); |
---|
5563 | exit (0); |
---|
5564 | } |
---|
5565 | _ACEOF |
---|
5566 | rm -f conftest$ac_exeext |
---|
5567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5568 | (eval $ac_link) 2>&5 |
---|
5569 | ac_status=$? |
---|
5570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5571 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5573 | (eval $ac_try) 2>&5 |
---|
5574 | ac_status=$? |
---|
5575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5576 | (exit $ac_status); }; }; then |
---|
5577 | : |
---|
5578 | else |
---|
5579 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5580 | echo "$as_me: failed program was:" >&5 |
---|
5581 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5582 | |
---|
5583 | ( exit $ac_status ) |
---|
5584 | ac_cv_header_stdc=no |
---|
5585 | fi |
---|
5586 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5587 | fi |
---|
5588 | fi |
---|
5589 | fi |
---|
5590 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
5591 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
5592 | if test $ac_cv_header_stdc = yes; then |
---|
5593 | |
---|
5594 | cat >>confdefs.h <<\_ACEOF |
---|
5595 | #define STDC_HEADERS 1 |
---|
5596 | _ACEOF |
---|
5597 | |
---|
5598 | fi |
---|
5599 | |
---|
5600 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
5601 | |
---|
5602 | |
---|
5603 | |
---|
5604 | |
---|
5605 | |
---|
5606 | |
---|
5607 | |
---|
5608 | |
---|
5609 | |
---|
5610 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
5611 | inttypes.h stdint.h unistd.h |
---|
5612 | do |
---|
5613 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5614 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5615 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5618 | else |
---|
5619 | cat >conftest.$ac_ext <<_ACEOF |
---|
5620 | /* confdefs.h. */ |
---|
5621 | _ACEOF |
---|
5622 | cat confdefs.h >>conftest.$ac_ext |
---|
5623 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5624 | /* end confdefs.h. */ |
---|
5625 | $ac_includes_default |
---|
5626 | |
---|
5627 | #include <$ac_header> |
---|
5628 | _ACEOF |
---|
5629 | rm -f conftest.$ac_objext |
---|
5630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5631 | (eval $ac_compile) 2>conftest.er1 |
---|
5632 | ac_status=$? |
---|
5633 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5634 | rm -f conftest.er1 |
---|
5635 | cat conftest.err >&5 |
---|
5636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5637 | (exit $ac_status); } && |
---|
5638 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5639 | || test ! -s conftest.err' |
---|
5640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5641 | (eval $ac_try) 2>&5 |
---|
5642 | ac_status=$? |
---|
5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5644 | (exit $ac_status); }; } && |
---|
5645 | { ac_try='test -s conftest.$ac_objext' |
---|
5646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5647 | (eval $ac_try) 2>&5 |
---|
5648 | ac_status=$? |
---|
5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5650 | (exit $ac_status); }; }; then |
---|
5651 | eval "$as_ac_Header=yes" |
---|
5652 | else |
---|
5653 | echo "$as_me: failed program was:" >&5 |
---|
5654 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5655 | |
---|
5656 | eval "$as_ac_Header=no" |
---|
5657 | fi |
---|
5658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5659 | fi |
---|
5660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5661 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5662 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5663 | cat >>confdefs.h <<_ACEOF |
---|
5664 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5665 | _ACEOF |
---|
5666 | |
---|
5667 | fi |
---|
5668 | |
---|
5669 | done |
---|
5670 | |
---|
5671 | |
---|
5672 | |
---|
5673 | for ac_header in dlfcn.h |
---|
5674 | do |
---|
5675 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5676 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5677 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5678 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5679 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5681 | fi |
---|
5682 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5683 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5684 | else |
---|
5685 | # Is the header compilable? |
---|
5686 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5687 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5688 | cat >conftest.$ac_ext <<_ACEOF |
---|
5689 | /* confdefs.h. */ |
---|
5690 | _ACEOF |
---|
5691 | cat confdefs.h >>conftest.$ac_ext |
---|
5692 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5693 | /* end confdefs.h. */ |
---|
5694 | $ac_includes_default |
---|
5695 | #include <$ac_header> |
---|
5696 | _ACEOF |
---|
5697 | rm -f conftest.$ac_objext |
---|
5698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5699 | (eval $ac_compile) 2>conftest.er1 |
---|
5700 | ac_status=$? |
---|
5701 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5702 | rm -f conftest.er1 |
---|
5703 | cat conftest.err >&5 |
---|
5704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5705 | (exit $ac_status); } && |
---|
5706 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5707 | || test ! -s conftest.err' |
---|
5708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5709 | (eval $ac_try) 2>&5 |
---|
5710 | ac_status=$? |
---|
5711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5712 | (exit $ac_status); }; } && |
---|
5713 | { ac_try='test -s conftest.$ac_objext' |
---|
5714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5715 | (eval $ac_try) 2>&5 |
---|
5716 | ac_status=$? |
---|
5717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5718 | (exit $ac_status); }; }; then |
---|
5719 | ac_header_compiler=yes |
---|
5720 | else |
---|
5721 | echo "$as_me: failed program was:" >&5 |
---|
5722 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5723 | |
---|
5724 | ac_header_compiler=no |
---|
5725 | fi |
---|
5726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5727 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5728 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5729 | |
---|
5730 | # Is the header present? |
---|
5731 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5732 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5733 | cat >conftest.$ac_ext <<_ACEOF |
---|
5734 | /* confdefs.h. */ |
---|
5735 | _ACEOF |
---|
5736 | cat confdefs.h >>conftest.$ac_ext |
---|
5737 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5738 | /* end confdefs.h. */ |
---|
5739 | #include <$ac_header> |
---|
5740 | _ACEOF |
---|
5741 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5742 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5743 | ac_status=$? |
---|
5744 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5745 | rm -f conftest.er1 |
---|
5746 | cat conftest.err >&5 |
---|
5747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5748 | (exit $ac_status); } >/dev/null; then |
---|
5749 | if test -s conftest.err; then |
---|
5750 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5751 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5752 | else |
---|
5753 | ac_cpp_err= |
---|
5754 | fi |
---|
5755 | else |
---|
5756 | ac_cpp_err=yes |
---|
5757 | fi |
---|
5758 | if test -z "$ac_cpp_err"; then |
---|
5759 | ac_header_preproc=yes |
---|
5760 | else |
---|
5761 | echo "$as_me: failed program was:" >&5 |
---|
5762 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5763 | |
---|
5764 | ac_header_preproc=no |
---|
5765 | fi |
---|
5766 | rm -f conftest.err conftest.$ac_ext |
---|
5767 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5768 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5769 | |
---|
5770 | # So? What about this header? |
---|
5771 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5772 | yes:no: ) |
---|
5773 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5774 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5775 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5776 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5777 | ac_header_preproc=yes |
---|
5778 | ;; |
---|
5779 | no:yes:* ) |
---|
5780 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5781 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5782 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5783 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5784 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5785 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5786 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5787 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5788 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5789 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5790 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5791 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5792 | ( |
---|
5793 | cat <<\_ASBOX |
---|
5794 | ## --------------------------------------------------------------- ## |
---|
5795 | ## Report this to http://projects.coin-or.org/BuildTools/newticket ## |
---|
5796 | ## --------------------------------------------------------------- ## |
---|
5797 | _ASBOX |
---|
5798 | ) | |
---|
5799 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5800 | ;; |
---|
5801 | esac |
---|
5802 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5803 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5804 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5806 | else |
---|
5807 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5808 | fi |
---|
5809 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5810 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5811 | |
---|
5812 | fi |
---|
5813 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5814 | cat >>confdefs.h <<_ACEOF |
---|
5815 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5816 | _ACEOF |
---|
5817 | |
---|
5818 | fi |
---|
5819 | |
---|
5820 | done |
---|
5821 | |
---|
5822 | ac_ext=cc |
---|
5823 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
5824 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5825 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5826 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
5827 | if test -n "$ac_tool_prefix"; then |
---|
5828 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
5829 | do |
---|
5830 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
5831 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
5832 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5834 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
5835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5836 | else |
---|
5837 | if test -n "$CXX"; then |
---|
5838 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
5839 | else |
---|
5840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5841 | for as_dir in $PATH |
---|
5842 | do |
---|
5843 | IFS=$as_save_IFS |
---|
5844 | test -z "$as_dir" && as_dir=. |
---|
5845 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5846 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5847 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
5848 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5849 | break 2 |
---|
5850 | fi |
---|
5851 | done |
---|
5852 | done |
---|
5853 | |
---|
5854 | fi |
---|
5855 | fi |
---|
5856 | CXX=$ac_cv_prog_CXX |
---|
5857 | if test -n "$CXX"; then |
---|
5858 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
5859 | echo "${ECHO_T}$CXX" >&6 |
---|
5860 | else |
---|
5861 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5862 | echo "${ECHO_T}no" >&6 |
---|
5863 | fi |
---|
5864 | |
---|
5865 | test -n "$CXX" && break |
---|
5866 | done |
---|
5867 | fi |
---|
5868 | if test -z "$CXX"; then |
---|
5869 | ac_ct_CXX=$CXX |
---|
5870 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
5871 | do |
---|
5872 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5873 | set dummy $ac_prog; ac_word=$2 |
---|
5874 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5876 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
5877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5878 | else |
---|
5879 | if test -n "$ac_ct_CXX"; then |
---|
5880 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
5881 | else |
---|
5882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5883 | for as_dir in $PATH |
---|
5884 | do |
---|
5885 | IFS=$as_save_IFS |
---|
5886 | test -z "$as_dir" && as_dir=. |
---|
5887 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5888 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5889 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
5890 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5891 | break 2 |
---|
5892 | fi |
---|
5893 | done |
---|
5894 | done |
---|
5895 | |
---|
5896 | fi |
---|
5897 | fi |
---|
5898 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
5899 | if test -n "$ac_ct_CXX"; then |
---|
5900 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
5901 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
5902 | else |
---|
5903 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5904 | echo "${ECHO_T}no" >&6 |
---|
5905 | fi |
---|
5906 | |
---|
5907 | test -n "$ac_ct_CXX" && break |
---|
5908 | done |
---|
5909 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
5910 | |
---|
5911 | CXX=$ac_ct_CXX |
---|
5912 | fi |
---|
5913 | |
---|
5914 | |
---|
5915 | # Provide some information about the compiler. |
---|
5916 | echo "$as_me:$LINENO:" \ |
---|
5917 | "checking for C++ compiler version" >&5 |
---|
5918 | ac_compiler=`set X $ac_compile; echo $2` |
---|
5919 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
5920 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
5921 | ac_status=$? |
---|
5922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5923 | (exit $ac_status); } |
---|
5924 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
5925 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
5926 | ac_status=$? |
---|
5927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5928 | (exit $ac_status); } |
---|
5929 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
5930 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
5931 | ac_status=$? |
---|
5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5933 | (exit $ac_status); } |
---|
5934 | |
---|
5935 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
5936 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
5937 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
5938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5939 | else |
---|
5940 | cat >conftest.$ac_ext <<_ACEOF |
---|
5941 | /* confdefs.h. */ |
---|
5942 | _ACEOF |
---|
5943 | cat confdefs.h >>conftest.$ac_ext |
---|
5944 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5945 | /* end confdefs.h. */ |
---|
5946 | |
---|
5947 | int |
---|
5948 | main () |
---|
5949 | { |
---|
5950 | #ifndef __GNUC__ |
---|
5951 | choke me |
---|
5952 | #endif |
---|
5953 | |
---|
5954 | ; |
---|
5955 | return 0; |
---|
5956 | } |
---|
5957 | _ACEOF |
---|
5958 | rm -f conftest.$ac_objext |
---|
5959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5960 | (eval $ac_compile) 2>conftest.er1 |
---|
5961 | ac_status=$? |
---|
5962 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5963 | rm -f conftest.er1 |
---|
5964 | cat conftest.err >&5 |
---|
5965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5966 | (exit $ac_status); } && |
---|
5967 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
5968 | || test ! -s conftest.err' |
---|
5969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5970 | (eval $ac_try) 2>&5 |
---|
5971 | ac_status=$? |
---|
5972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5973 | (exit $ac_status); }; } && |
---|
5974 | { ac_try='test -s conftest.$ac_objext' |
---|
5975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5976 | (eval $ac_try) 2>&5 |
---|
5977 | ac_status=$? |
---|
5978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5979 | (exit $ac_status); }; }; then |
---|
5980 | ac_compiler_gnu=yes |
---|
5981 | else |
---|
5982 | echo "$as_me: failed program was:" >&5 |
---|
5983 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5984 | |
---|
5985 | ac_compiler_gnu=no |
---|
5986 | fi |
---|
5987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5988 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
5989 | |
---|
5990 | fi |
---|
5991 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
5992 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
5993 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
5994 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
5995 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
5996 | CXXFLAGS="-g" |
---|
5997 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
5998 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
5999 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
6000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6001 | else |
---|
6002 | cat >conftest.$ac_ext <<_ACEOF |
---|
6003 | /* confdefs.h. */ |
---|
6004 | _ACEOF |
---|
6005 | cat confdefs.h >>conftest.$ac_ext |
---|
6006 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6007 | /* end confdefs.h. */ |
---|
6008 | |
---|
6009 | int |
---|
6010 | main () |
---|
6011 | { |
---|
6012 | |
---|
6013 | ; |
---|
6014 | return 0; |
---|
6015 | } |
---|
6016 | _ACEOF |
---|
6017 | rm -f conftest.$ac_objext |
---|
6018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6019 | (eval $ac_compile) 2>conftest.er1 |
---|
6020 | ac_status=$? |
---|
6021 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6022 | rm -f conftest.er1 |
---|
6023 | cat conftest.err >&5 |
---|
6024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6025 | (exit $ac_status); } && |
---|
6026 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
6027 | || test ! -s conftest.err' |
---|
6028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6029 | (eval $ac_try) 2>&5 |
---|
6030 | ac_status=$? |
---|
6031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6032 | (exit $ac_status); }; } && |
---|
6033 | { ac_try='test -s conftest.$ac_objext' |
---|
6034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6035 | (eval $ac_try) 2>&5 |
---|
6036 | ac_status=$? |
---|
6037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6038 | (exit $ac_status); }; }; then |
---|
6039 | ac_cv_prog_cxx_g=yes |
---|
6040 | else |
---|
6041 | echo "$as_me: failed program was:" >&5 |
---|
6042 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6043 | |
---|
6044 | ac_cv_prog_cxx_g=no |
---|
6045 | fi |
---|
6046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6047 | fi |
---|
6048 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
6049 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
6050 | if test "$ac_test_CXXFLAGS" = set; then |
---|
6051 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
6052 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
6053 | if test "$GXX" = yes; then |
---|
6054 | CXXFLAGS="-g -O2" |
---|
6055 | else |
---|
6056 | CXXFLAGS="-g" |
---|
6057 | fi |
---|
6058 | else |
---|
6059 | if test "$GXX" = yes; then |
---|
6060 | CXXFLAGS="-O2" |
---|
6061 | else |
---|
6062 | CXXFLAGS= |
---|
6063 | fi |
---|
6064 | fi |
---|
6065 | for ac_declaration in \ |
---|
6066 | '' \ |
---|
6067 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
6068 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
6069 | 'extern "C" void exit (int) throw ();' \ |
---|
6070 | 'extern "C" void exit (int);' \ |
---|
6071 | 'void exit (int);' |
---|
6072 | do |
---|
6073 | cat >conftest.$ac_ext <<_ACEOF |
---|
6074 | /* confdefs.h. */ |
---|
6075 | _ACEOF |
---|
6076 | cat confdefs.h >>conftest.$ac_ext |
---|
6077 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6078 | /* end confdefs.h. */ |
---|
6079 | $ac_declaration |
---|
6080 | #include <stdlib.h> |
---|
6081 | int |
---|
6082 | main () |
---|
6083 | { |
---|
6084 | exit (42); |
---|
6085 | ; |
---|
6086 | return 0; |
---|
6087 | } |
---|
6088 | _ACEOF |
---|
6089 | rm -f conftest.$ac_objext |
---|
6090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6091 | (eval $ac_compile) 2>conftest.er1 |
---|
6092 | ac_status=$? |
---|
6093 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6094 | rm -f conftest.er1 |
---|
6095 | cat conftest.err >&5 |
---|
6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6097 | (exit $ac_status); } && |
---|
6098 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
6099 | || test ! -s conftest.err' |
---|
6100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6101 | (eval $ac_try) 2>&5 |
---|
6102 | ac_status=$? |
---|
6103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6104 | (exit $ac_status); }; } && |
---|
6105 | { ac_try='test -s conftest.$ac_objext' |
---|
6106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6107 | (eval $ac_try) 2>&5 |
---|
6108 | ac_status=$? |
---|
6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6110 | (exit $ac_status); }; }; then |
---|
6111 | : |
---|
6112 | else |
---|
6113 | echo "$as_me: failed program was:" >&5 |
---|
6114 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6115 | |
---|
6116 | continue |
---|
6117 | fi |
---|
6118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6119 | cat >conftest.$ac_ext <<_ACEOF |
---|
6120 | /* confdefs.h. */ |
---|
6121 | _ACEOF |
---|
6122 | cat confdefs.h >>conftest.$ac_ext |
---|
6123 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6124 | /* end confdefs.h. */ |
---|
6125 | $ac_declaration |
---|
6126 | int |
---|
6127 | main () |
---|
6128 | { |
---|
6129 | exit (42); |
---|
6130 | ; |
---|
6131 | return 0; |
---|
6132 | } |
---|
6133 | _ACEOF |
---|
6134 | rm -f conftest.$ac_objext |
---|
6135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6136 | (eval $ac_compile) 2>conftest.er1 |
---|
6137 | ac_status=$? |
---|
6138 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6139 | rm -f conftest.er1 |
---|
6140 | cat conftest.err >&5 |
---|
6141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6142 | (exit $ac_status); } && |
---|
6143 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
6144 | || test ! -s conftest.err' |
---|
6145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6146 | (eval $ac_try) 2>&5 |
---|
6147 | ac_status=$? |
---|
6148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6149 | (exit $ac_status); }; } && |
---|
6150 | { ac_try='test -s conftest.$ac_objext' |
---|
6151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6152 | (eval $ac_try) 2>&5 |
---|
6153 | ac_status=$? |
---|
6154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6155 | (exit $ac_status); }; }; then |
---|
6156 | break |
---|
6157 | else |
---|
6158 | echo "$as_me: failed program was:" >&5 |
---|
6159 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6160 | |
---|
6161 | fi |
---|
6162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6163 | done |
---|
6164 | rm -f conftest* |
---|
6165 | if test -n "$ac_declaration"; then |
---|
6166 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
6167 | echo $ac_declaration >>confdefs.h |
---|
6168 | echo '#endif' >>confdefs.h |
---|
6169 | fi |
---|
6170 | |
---|
6171 | ac_ext=cc |
---|
6172 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6173 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6174 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6175 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6176 | |
---|
6177 | depcc="$CXX" am_compiler_list= |
---|
6178 | |
---|
6179 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
6180 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
6181 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
6182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6183 | else |
---|
6184 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
6185 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
6186 | # making bogus files that we don't know about and never remove. For |
---|
6187 | # instance it was reported that on HP-UX the gcc test will end up |
---|
6188 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
6189 | # in D'. |
---|
6190 | mkdir conftest.dir |
---|
6191 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
6192 | # using a relative directory. |
---|
6193 | cp "$am_depcomp" conftest.dir |
---|
6194 | cd conftest.dir |
---|
6195 | # We will build objects and dependencies in a subdirectory because |
---|
6196 | # it helps to detect inapplicable dependency modes. For instance |
---|
6197 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
6198 | # side effect of compilation, but ICC will put the dependencies in |
---|
6199 | # the current directory while Tru64 will put them in the object |
---|
6200 | # directory. |
---|
6201 | mkdir sub |
---|
6202 | |
---|
6203 | am_cv_CXX_dependencies_compiler_type=none |
---|
6204 | if test "$am_compiler_list" = ""; then |
---|
6205 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
6206 | fi |
---|
6207 | for depmode in $am_compiler_list; do |
---|
6208 | # Setup a source with many dependencies, because some compilers |
---|
6209 | # like to wrap large dependency lists on column 80 (with \), and |
---|
6210 | # we should not choose a depcomp mode which is confused by this. |
---|
6211 | # |
---|
6212 | # We need to recreate these files for each test, as the compiler may |
---|
6213 | # overwrite some of them when testing with obscure command lines. |
---|
6214 | # This happens at least with the AIX C compiler. |
---|
6215 | : > sub/conftest.c |
---|
6216 | for i in 1 2 3 4 5 6; do |
---|
6217 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
6218 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
6219 | # Solaris 8's {/usr,}/bin/sh. |
---|
6220 | touch sub/conftst$i.h |
---|
6221 | done |
---|
6222 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
6223 | |
---|
6224 | case $depmode in |
---|
6225 | nosideeffect) |
---|
6226 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
6227 | # only be used when explicitly requested |
---|
6228 | if test "x$enable_dependency_tracking" = xyes; then |
---|
6229 | continue |
---|
6230 | else |
---|
6231 | break |
---|
6232 | fi |
---|
6233 | ;; |
---|
6234 | none) break ;; |
---|
6235 | esac |
---|
6236 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
6237 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
6238 | # handle `-M -o', and we need to detect this. |
---|
6239 | if depmode=$depmode \ |
---|
6240 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
6241 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
6242 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
6243 | >/dev/null 2>conftest.err && |
---|
6244 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
6245 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
6246 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
6247 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
6248 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
6249 | # that says an option was ignored or not supported. |
---|
6250 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
6251 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
6252 | # The diagnosis changed in icc 8.0: |
---|
6253 | # icc: Command line remark: option '-MP' not supported |
---|
6254 | if (grep 'ignoring option' conftest.err || |
---|
6255 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
6256 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
6257 | break |
---|
6258 | fi |
---|
6259 | fi |
---|
6260 | done |
---|
6261 | |
---|
6262 | cd .. |
---|
6263 | rm -rf conftest.dir |
---|
6264 | else |
---|
6265 | am_cv_CXX_dependencies_compiler_type=none |
---|
6266 | fi |
---|
6267 | |
---|
6268 | fi |
---|
6269 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
6270 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
6271 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
6272 | |
---|
6273 | |
---|
6274 | |
---|
6275 | if |
---|
6276 | test "x$enable_dependency_tracking" != xno \ |
---|
6277 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
6278 | am__fastdepCXX_TRUE= |
---|
6279 | am__fastdepCXX_FALSE='#' |
---|
6280 | else |
---|
6281 | am__fastdepCXX_TRUE='#' |
---|
6282 | am__fastdepCXX_FALSE= |
---|
6283 | fi |
---|
6284 | |
---|
6285 | |
---|
6286 | |
---|
6287 | |
---|
6288 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
---|
6289 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
---|
6290 | (test "X$CXX" != "Xg++"))) ; then |
---|
6291 | ac_ext=cc |
---|
6292 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6293 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6294 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6295 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6296 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
---|
6297 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
---|
6298 | if test -z "$CXXCPP"; then |
---|
6299 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
---|
6300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6301 | else |
---|
6302 | # Double quotes because CXXCPP needs to be expanded |
---|
6303 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
6304 | do |
---|
6305 | ac_preproc_ok=false |
---|
6306 | for ac_cxx_preproc_warn_flag in '' yes |
---|
6307 | do |
---|
6308 | # Use a header file that comes with gcc, so configuring glibc |
---|
6309 | # with a fresh cross-compiler works. |
---|
6310 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6311 | # <limits.h> exists even on freestanding compilers. |
---|
6312 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6313 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6314 | cat >conftest.$ac_ext <<_ACEOF |
---|
6315 | /* confdefs.h. */ |
---|
6316 | _ACEOF |
---|
6317 | cat confdefs.h >>conftest.$ac_ext |
---|
6318 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6319 | /* end confdefs.h. */ |
---|
6320 | #ifdef __STDC__ |
---|
6321 | # include <limits.h> |
---|
6322 | #else |
---|
6323 | # include <assert.h> |
---|
6324 | #endif |
---|
6325 | Syntax error |
---|
6326 | _ACEOF |
---|
6327 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6328 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6329 | ac_status=$? |
---|
6330 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6331 | rm -f conftest.er1 |
---|
6332 | cat conftest.err >&5 |
---|
6333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6334 | (exit $ac_status); } >/dev/null; then |
---|
6335 | if test -s conftest.err; then |
---|
6336 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6337 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6338 | else |
---|
6339 | ac_cpp_err= |
---|
6340 | fi |
---|
6341 | else |
---|
6342 | ac_cpp_err=yes |
---|
6343 | fi |
---|
6344 | if test -z "$ac_cpp_err"; then |
---|
6345 | : |
---|
6346 | else |
---|
6347 | echo "$as_me: failed program was:" >&5 |
---|
6348 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6349 | |
---|
6350 | # Broken: fails on valid input. |
---|
6351 | continue |
---|
6352 | fi |
---|
6353 | rm -f conftest.err conftest.$ac_ext |
---|
6354 | |
---|
6355 | # OK, works on sane cases. Now check whether non-existent headers |
---|
6356 | # can be detected and how. |
---|
6357 | cat >conftest.$ac_ext <<_ACEOF |
---|
6358 | /* confdefs.h. */ |
---|
6359 | _ACEOF |
---|
6360 | cat confdefs.h >>conftest.$ac_ext |
---|
6361 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6362 | /* end confdefs.h. */ |
---|
6363 | #include <ac_nonexistent.h> |
---|
6364 | _ACEOF |
---|
6365 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6366 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6367 | ac_status=$? |
---|
6368 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6369 | rm -f conftest.er1 |
---|
6370 | cat conftest.err >&5 |
---|
6371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6372 | (exit $ac_status); } >/dev/null; then |
---|
6373 | if test -s conftest.err; then |
---|
6374 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6375 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6376 | else |
---|
6377 | ac_cpp_err= |
---|
6378 | fi |
---|
6379 | else |
---|
6380 | ac_cpp_err=yes |
---|
6381 | fi |
---|
6382 | if test -z "$ac_cpp_err"; then |
---|
6383 | # Broken: success on invalid input. |
---|
6384 | continue |
---|
6385 | else |
---|
6386 | echo "$as_me: failed program was:" >&5 |
---|
6387 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6388 | |
---|
6389 | # Passes both tests. |
---|
6390 | ac_preproc_ok=: |
---|
6391 | break |
---|
6392 | fi |
---|
6393 | rm -f conftest.err conftest.$ac_ext |
---|
6394 | |
---|
6395 | done |
---|
6396 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6397 | rm -f conftest.err conftest.$ac_ext |
---|
6398 | if $ac_preproc_ok; then |
---|
6399 | break |
---|
6400 | fi |
---|
6401 | |
---|
6402 | done |
---|
6403 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
6404 | |
---|
6405 | fi |
---|
6406 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
6407 | else |
---|
6408 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
6409 | fi |
---|
6410 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
---|
6411 | echo "${ECHO_T}$CXXCPP" >&6 |
---|
6412 | ac_preproc_ok=false |
---|
6413 | for ac_cxx_preproc_warn_flag in '' yes |
---|
6414 | do |
---|
6415 | # Use a header file that comes with gcc, so configuring glibc |
---|
6416 | # with a fresh cross-compiler works. |
---|
6417 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6418 | # <limits.h> exists even on freestanding compilers. |
---|
6419 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6420 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6421 | cat >conftest.$ac_ext <<_ACEOF |
---|
6422 | /* confdefs.h. */ |
---|
6423 | _ACEOF |
---|
6424 | cat confdefs.h >>conftest.$ac_ext |
---|
6425 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6426 | /* end confdefs.h. */ |
---|
6427 | #ifdef __STDC__ |
---|
6428 | # include <limits.h> |
---|
6429 | #else |
---|
6430 | # include <assert.h> |
---|
6431 | #endif |
---|
6432 | Syntax error |
---|
6433 | _ACEOF |
---|
6434 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6435 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6436 | ac_status=$? |
---|
6437 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6438 | rm -f conftest.er1 |
---|
6439 | cat conftest.err >&5 |
---|
6440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6441 | (exit $ac_status); } >/dev/null; then |
---|
6442 | if test -s conftest.err; then |
---|
6443 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6444 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6445 | else |
---|
6446 | ac_cpp_err= |
---|
6447 | fi |
---|
6448 | else |
---|
6449 | ac_cpp_err=yes |
---|
6450 | fi |
---|
6451 | if test -z "$ac_cpp_err"; then |
---|
6452 | : |
---|
6453 | else |
---|
6454 | echo "$as_me: failed program was:" >&5 |
---|
6455 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6456 | |
---|
6457 | # Broken: fails on valid input. |
---|
6458 | continue |
---|
6459 | fi |
---|
6460 | rm -f conftest.err conftest.$ac_ext |
---|
6461 | |
---|
6462 | # OK, works on sane cases. Now check whether non-existent headers |
---|
6463 | # can be detected and how. |
---|
6464 | cat >conftest.$ac_ext <<_ACEOF |
---|
6465 | /* confdefs.h. */ |
---|
6466 | _ACEOF |
---|
6467 | cat confdefs.h >>conftest.$ac_ext |
---|
6468 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6469 | /* end confdefs.h. */ |
---|
6470 | #include <ac_nonexistent.h> |
---|
6471 | _ACEOF |
---|
6472 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6473 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6474 | ac_status=$? |
---|
6475 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6476 | rm -f conftest.er1 |
---|
6477 | cat conftest.err >&5 |
---|
6478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6479 | (exit $ac_status); } >/dev/null; then |
---|
6480 | if test -s conftest.err; then |
---|
6481 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6482 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6483 | else |
---|
6484 | ac_cpp_err= |
---|
6485 | fi |
---|
6486 | else |
---|
6487 | ac_cpp_err=yes |
---|
6488 | fi |
---|
6489 | if test -z "$ac_cpp_err"; then |
---|
6490 | # Broken: success on invalid input. |
---|
6491 | continue |
---|
6492 | else |
---|
6493 | echo "$as_me: failed program was:" >&5 |
---|
6494 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6495 | |
---|
6496 | # Passes both tests. |
---|
6497 | ac_preproc_ok=: |
---|
6498 | break |
---|
6499 | fi |
---|
6500 | rm -f conftest.err conftest.$ac_ext |
---|
6501 | |
---|
6502 | done |
---|
6503 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6504 | rm -f conftest.err conftest.$ac_ext |
---|
6505 | if $ac_preproc_ok; then |
---|
6506 | : |
---|
6507 | else |
---|
6508 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
6509 | See \`config.log' for more details." >&5 |
---|
6510 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
6511 | See \`config.log' for more details." >&2;} |
---|
6512 | { (exit 1); exit 1; }; } |
---|
6513 | fi |
---|
6514 | |
---|
6515 | ac_ext=cc |
---|
6516 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6517 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6518 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6519 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6520 | |
---|
6521 | fi |
---|
6522 | |
---|
6523 | |
---|
6524 | ac_ext=f |
---|
6525 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6526 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6527 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6528 | if test -n "$ac_tool_prefix"; then |
---|
6529 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
---|
6530 | do |
---|
6531 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
6532 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
6533 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6535 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
6536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6537 | else |
---|
6538 | if test -n "$F77"; then |
---|
6539 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
6540 | else |
---|
6541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6542 | for as_dir in $PATH |
---|
6543 | do |
---|
6544 | IFS=$as_save_IFS |
---|
6545 | test -z "$as_dir" && as_dir=. |
---|
6546 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6547 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6548 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
6549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6550 | break 2 |
---|
6551 | fi |
---|
6552 | done |
---|
6553 | done |
---|
6554 | |
---|
6555 | fi |
---|
6556 | fi |
---|
6557 | F77=$ac_cv_prog_F77 |
---|
6558 | if test -n "$F77"; then |
---|
6559 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
6560 | echo "${ECHO_T}$F77" >&6 |
---|
6561 | else |
---|
6562 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6563 | echo "${ECHO_T}no" >&6 |
---|
6564 | fi |
---|
6565 | |
---|
6566 | test -n "$F77" && break |
---|
6567 | done |
---|
6568 | fi |
---|
6569 | if test -z "$F77"; then |
---|
6570 | ac_ct_F77=$F77 |
---|
6571 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
---|
6572 | do |
---|
6573 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6574 | set dummy $ac_prog; ac_word=$2 |
---|
6575 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6577 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
6578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6579 | else |
---|
6580 | if test -n "$ac_ct_F77"; then |
---|
6581 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
6582 | else |
---|
6583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6584 | for as_dir in $PATH |
---|
6585 | do |
---|
6586 | IFS=$as_save_IFS |
---|
6587 | test -z "$as_dir" && as_dir=. |
---|
6588 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6589 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6590 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
6591 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6592 | break 2 |
---|
6593 | fi |
---|
6594 | done |
---|
6595 | done |
---|
6596 | |
---|
6597 | fi |
---|
6598 | fi |
---|
6599 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
6600 | if test -n "$ac_ct_F77"; then |
---|
6601 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
6602 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
6603 | else |
---|
6604 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6605 | echo "${ECHO_T}no" >&6 |
---|
6606 | fi |
---|
6607 | |
---|
6608 | test -n "$ac_ct_F77" && break |
---|
6609 | done |
---|
6610 | |
---|
6611 | F77=$ac_ct_F77 |
---|
6612 | fi |
---|
6613 | |
---|
6614 | |
---|
6615 | # Provide some information about the compiler. |
---|
6616 | echo "$as_me:6616:" \ |
---|
6617 | "checking for Fortran 77 compiler version" >&5 |
---|
6618 | ac_compiler=`set X $ac_compile; echo $2` |
---|
6619 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
6620 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
6621 | ac_status=$? |
---|
6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6623 | (exit $ac_status); } |
---|
6624 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
6625 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
6626 | ac_status=$? |
---|
6627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6628 | (exit $ac_status); } |
---|
6629 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
6630 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
6631 | ac_status=$? |
---|
6632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6633 | (exit $ac_status); } |
---|
6634 | rm -f a.out |
---|
6635 | |
---|
6636 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
6637 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
6638 | ac_save_ext=$ac_ext |
---|
6639 | ac_ext=F |
---|
6640 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
6641 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
---|
6642 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
6643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6644 | else |
---|
6645 | cat >conftest.$ac_ext <<_ACEOF |
---|
6646 | program main |
---|
6647 | #ifndef __GNUC__ |
---|
6648 | choke me |
---|
6649 | #endif |
---|
6650 | |
---|
6651 | end |
---|
6652 | _ACEOF |
---|
6653 | rm -f conftest.$ac_objext |
---|
6654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6655 | (eval $ac_compile) 2>conftest.er1 |
---|
6656 | ac_status=$? |
---|
6657 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6658 | rm -f conftest.er1 |
---|
6659 | cat conftest.err >&5 |
---|
6660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6661 | (exit $ac_status); } && |
---|
6662 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
6663 | || test ! -s conftest.err' |
---|
6664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6665 | (eval $ac_try) 2>&5 |
---|
6666 | ac_status=$? |
---|
6667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6668 | (exit $ac_status); }; } && |
---|
6669 | { ac_try='test -s conftest.$ac_objext' |
---|
6670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6671 | (eval $ac_try) 2>&5 |
---|
6672 | ac_status=$? |
---|
6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6674 | (exit $ac_status); }; }; then |
---|
6675 | ac_compiler_gnu=yes |
---|
6676 | else |
---|
6677 | echo "$as_me: failed program was:" >&5 |
---|
6678 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6679 | |
---|
6680 | ac_compiler_gnu=no |
---|
6681 | fi |
---|
6682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6683 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
6684 | |
---|
6685 | fi |
---|
6686 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
6687 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
---|
6688 | ac_ext=$ac_save_ext |
---|
6689 | ac_test_FFLAGS=${FFLAGS+set} |
---|
6690 | ac_save_FFLAGS=$FFLAGS |
---|
6691 | FFLAGS= |
---|
6692 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
6693 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
---|
6694 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
6695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6696 | else |
---|
6697 | FFLAGS=-g |
---|
6698 | cat >conftest.$ac_ext <<_ACEOF |
---|
6699 | program main |
---|
6700 | |
---|
6701 | end |
---|
6702 | _ACEOF |
---|
6703 | rm -f conftest.$ac_objext |
---|
6704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6705 | (eval $ac_compile) 2>conftest.er1 |
---|
6706 | ac_status=$? |
---|
6707 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6708 | rm -f conftest.er1 |
---|
6709 | cat conftest.err >&5 |
---|
6710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6711 | (exit $ac_status); } && |
---|
6712 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
6713 | || test ! -s conftest.err' |
---|
6714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6715 | (eval $ac_try) 2>&5 |
---|
6716 | ac_status=$? |
---|
6717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6718 | (exit $ac_status); }; } && |
---|
6719 | { ac_try='test -s conftest.$ac_objext' |
---|
6720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6721 | (eval $ac_try) 2>&5 |
---|
6722 | ac_status=$? |
---|
6723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6724 | (exit $ac_status); }; }; then |
---|
6725 | ac_cv_prog_f77_g=yes |
---|
6726 | else |
---|
6727 | echo "$as_me: failed program was:" >&5 |
---|
6728 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6729 | |
---|
6730 | ac_cv_prog_f77_g=no |
---|
6731 | fi |
---|
6732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6733 | |
---|
6734 | fi |
---|
6735 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
6736 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
---|
6737 | if test "$ac_test_FFLAGS" = set; then |
---|
6738 | FFLAGS=$ac_save_FFLAGS |
---|
6739 | elif test $ac_cv_prog_f77_g = yes; then |
---|
6740 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
6741 | FFLAGS="-g -O2" |
---|
6742 | else |
---|
6743 | FFLAGS="-g" |
---|
6744 | fi |
---|
6745 | else |
---|
6746 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
6747 | FFLAGS="-O2" |
---|
6748 | else |
---|
6749 | FFLAGS= |
---|
6750 | fi |
---|
6751 | fi |
---|
6752 | |
---|
6753 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
6754 | ac_ext=c |
---|
6755 | ac_cpp='$CPP $CPPFLAGS' |
---|
6756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6759 | |
---|
6760 | |
---|
6761 | |
---|
6762 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
---|
6763 | |
---|
6764 | # find the maximum length of command line arguments |
---|
6765 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
---|
6766 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
---|
6767 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
---|
6768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6769 | else |
---|
6770 | i=0 |
---|
6771 | teststring="ABCD" |
---|
6772 | |
---|
6773 | case $build_os in |
---|
6774 | msdosdjgpp*) |
---|
6775 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
6776 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
6777 | # during glob expansion). Even if it were fixed, the result of this |
---|
6778 | # check would be larger than it should be. |
---|
6779 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
6780 | ;; |
---|
6781 | |
---|
6782 | gnu*) |
---|
6783 | # Under GNU Hurd, this test is not required because there is |
---|
6784 | # no limit to the length of command line arguments. |
---|
6785 | # Libtool will interpret -1 as no limit whatsoever |
---|
6786 | lt_cv_sys_max_cmd_len=-1; |
---|
6787 | ;; |
---|
6788 | |
---|
6789 | cygwin* | mingw*) |
---|
6790 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
6791 | # about 5 minutes as the teststring grows exponentially. |
---|
6792 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
6793 | # you end up with a "frozen" computer, even though with patience |
---|
6794 | # the test eventually succeeds (with a max line length of 256k). |
---|
6795 | # Instead, let's just punt: use the minimum linelength reported by |
---|
6796 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
6797 | lt_cv_sys_max_cmd_len=8192; |
---|
6798 | ;; |
---|
6799 | |
---|
6800 | amigaos*) |
---|
6801 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
6802 | # So we just punt and use a minimum line length of 8192. |
---|
6803 | lt_cv_sys_max_cmd_len=8192; |
---|
6804 | ;; |
---|
6805 | |
---|
6806 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
---|
6807 | # This has been around since 386BSD, at least. Likely further. |
---|
6808 | if test -x /sbin/sysctl; then |
---|
6809 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
---|
6810 | elif test -x /usr/sbin/sysctl; then |
---|
6811 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
---|
6812 | else |
---|
6813 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
---|
6814 | fi |
---|
6815 | # And add a safety zone |
---|
6816 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
6817 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
6818 | ;; |
---|
6819 | |
---|
6820 | interix*) |
---|
6821 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
---|
6822 | lt_cv_sys_max_cmd_len=196608 |
---|
6823 | ;; |
---|
6824 | |
---|
6825 | osf*) |
---|
6826 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
---|
6827 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
---|
6828 | # nice to cause kernel panics so lets avoid the loop below. |
---|
6829 | # First set a reasonable default. |
---|
6830 | lt_cv_sys_max_cmd_len=16384 |
---|
6831 | # |
---|
6832 | if test -x /sbin/sysconfig; then |
---|
6833 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
---|
6834 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
---|
6835 | esac |
---|
6836 | fi |
---|
6837 | ;; |
---|
6838 | sco3.2v5*) |
---|
6839 | lt_cv_sys_max_cmd_len=102400 |
---|
6840 | ;; |
---|
6841 | sysv5* | sco5v6* | sysv4.2uw2*) |
---|
6842 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
---|
6843 | if test -n "$kargmax"; then |
---|
6844 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
---|
6845 | else |
---|
6846 | lt_cv_sys_max_cmd_len=32768 |
---|
6847 | fi |
---|
6848 | ;; |
---|
6849 | *) |
---|
6850 | # If test is not a shell built-in, we'll probably end up computing a |
---|
6851 | # maximum length that is only half of the actual maximum length, but |
---|
6852 | # we can't tell. |
---|
6853 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
---|
6854 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
---|
6855 | = "XX$teststring") >/dev/null 2>&1 && |
---|
6856 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
---|
6857 | lt_cv_sys_max_cmd_len=$new_result && |
---|
6858 | test $i != 17 # 1/2 MB should be enough |
---|
6859 | do |
---|
6860 | i=`expr $i + 1` |
---|
6861 | teststring=$teststring$teststring |
---|
6862 | done |
---|
6863 | teststring= |
---|
6864 | # Add a significant safety factor because C++ compilers can tack on massive |
---|
6865 | # amounts of additional arguments before passing them to the linker. |
---|
6866 | # It appears as though 1/2 is a usable value. |
---|
6867 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
6868 | ;; |
---|
6869 | esac |
---|
6870 | |
---|
6871 | fi |
---|
6872 | |
---|
6873 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
6874 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
6875 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
---|
6876 | else |
---|
6877 | echo "$as_me:$LINENO: result: none" >&5 |
---|
6878 | echo "${ECHO_T}none" >&6 |
---|
6879 | fi |
---|
6880 | |
---|
6881 | |
---|
6882 | |
---|
6883 | |
---|
6884 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
6885 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
---|
6886 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
---|
6887 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
---|
6888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6889 | else |
---|
6890 | |
---|
6891 | # These are sane defaults that work on at least a few old systems. |
---|
6892 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
6893 | |
---|
6894 | # Character class describing NM global symbol codes. |
---|
6895 | symcode='[BCDEGRST]' |
---|
6896 | |
---|
6897 | # Regexp to match symbols that can be accessed directly from C. |
---|
6898 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
6899 | |
---|
6900 | # Transform an extracted symbol line into a proper C declaration |
---|
6901 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
---|
6902 | |
---|
6903 | # Transform an extracted symbol line into symbol name and symbol address |
---|
6904 | 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'" |
---|
6905 | |
---|
6906 | # Define system-specific variables. |
---|
6907 | case $host_os in |
---|
6908 | aix*) |
---|
6909 | symcode='[BCDT]' |
---|
6910 | ;; |
---|
6911 | cygwin* | mingw* | pw32*) |
---|
6912 | symcode='[ABCDGISTW]' |
---|
6913 | ;; |
---|
6914 | hpux*) # Its linker distinguishes data from code symbols |
---|
6915 | if test "$host_cpu" = ia64; then |
---|
6916 | symcode='[ABCDEGRST]' |
---|
6917 | fi |
---|
6918 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
6919 | 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'" |
---|
6920 | ;; |
---|
6921 | linux*) |
---|
6922 | if test "$host_cpu" = ia64; then |
---|
6923 | symcode='[ABCDGIRSTW]' |
---|
6924 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
6925 | 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'" |
---|
6926 | fi |
---|
6927 | ;; |
---|
6928 | irix* | nonstopux*) |
---|
6929 | symcode='[BCDEGRST]' |
---|
6930 | ;; |
---|
6931 | osf*) |
---|
6932 | symcode='[BCDEGQRST]' |
---|
6933 | ;; |
---|
6934 | solaris*) |
---|
6935 | symcode='[BDRT]' |
---|
6936 | ;; |
---|
6937 | sco3.2v5*) |
---|
6938 | symcode='[DT]' |
---|
6939 | ;; |
---|
6940 | sysv4.2uw2*) |
---|
6941 | symcode='[DT]' |
---|
6942 | ;; |
---|
6943 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
---|
6944 | symcode='[ABDT]' |
---|
6945 | ;; |
---|
6946 | sysv4) |
---|
6947 | symcode='[DFNSTU]' |
---|
6948 | ;; |
---|
6949 | esac |
---|
6950 | |
---|
6951 | # Handle CRLF in mingw tool chain |
---|
6952 | opt_cr= |
---|
6953 | case $build_os in |
---|
6954 | mingw*) |
---|
6955 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
6956 | ;; |
---|
6957 | esac |
---|
6958 | |
---|
6959 | # If we're using GNU nm, then use its standard symbol codes. |
---|
6960 | case `$NM -V 2>&1` in |
---|
6961 | *GNU* | *'with BFD'*) |
---|
6962 | symcode='[ABCDGIRSTW]' ;; |
---|
6963 | esac |
---|
6964 | |
---|
6965 | # Try without a prefix undercore, then with it. |
---|
6966 | for ac_symprfx in "" "_"; do |
---|
6967 | |
---|
6968 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
---|
6969 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
---|
6970 | |
---|
6971 | # Write the raw and C identifiers. |
---|
6972 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
---|
6973 | |
---|
6974 | # Check to see that the pipe works correctly. |
---|
6975 | pipe_works=no |
---|
6976 | |
---|
6977 | rm -f conftest* |
---|
6978 | cat > conftest.$ac_ext <<EOF |
---|
6979 | #ifdef __cplusplus |
---|
6980 | extern "C" { |
---|
6981 | #endif |
---|
6982 | char nm_test_var; |
---|
6983 | void nm_test_func(){} |
---|
6984 | #ifdef __cplusplus |
---|
6985 | } |
---|
6986 | #endif |
---|
6987 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
6988 | EOF |
---|
6989 | |
---|
6990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6991 | (eval $ac_compile) 2>&5 |
---|
6992 | ac_status=$? |
---|
6993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6994 | (exit $ac_status); }; then |
---|
6995 | # Now try to grab the symbols. |
---|
6996 | nlist=conftest.nm |
---|
6997 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
---|
6998 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
---|
6999 | ac_status=$? |
---|
7000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7001 | (exit $ac_status); } && test -s "$nlist"; then |
---|
7002 | # Try sorting and uniquifying the output. |
---|
7003 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
7004 | mv -f "$nlist"T "$nlist" |
---|
7005 | else |
---|
7006 | rm -f "$nlist"T |
---|
7007 | fi |
---|
7008 | |
---|
7009 | # Make sure that we snagged all the symbols we need. |
---|
7010 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
---|
7011 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
---|
7012 | cat <<EOF > conftest.$ac_ext |
---|
7013 | #ifdef __cplusplus |
---|
7014 | extern "C" { |
---|
7015 | #endif |
---|
7016 | |
---|
7017 | EOF |
---|
7018 | # Now generate the symbol file. |
---|
7019 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
---|
7020 | |
---|
7021 | cat <<EOF >> conftest.$ac_ext |
---|
7022 | #if defined (__STDC__) && __STDC__ |
---|
7023 | # define lt_ptr_t void * |
---|
7024 | #else |
---|
7025 | # define lt_ptr_t char * |
---|
7026 | # define const |
---|
7027 | #endif |
---|
7028 | |
---|
7029 | /* The mapping between symbol names and symbols. */ |
---|
7030 | const struct { |
---|
7031 | const char *name; |
---|
7032 | lt_ptr_t address; |
---|
7033 | } |
---|
7034 | lt_preloaded_symbols[] = |
---|
7035 | { |
---|
7036 | EOF |
---|
7037 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
---|
7038 | cat <<\EOF >> conftest.$ac_ext |
---|
7039 | {0, (lt_ptr_t) 0} |
---|
7040 | }; |
---|
7041 | |
---|
7042 | #ifdef __cplusplus |
---|
7043 | } |
---|
7044 | #endif |
---|
7045 | EOF |
---|
7046 | # Now try linking the two files. |
---|
7047 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
7048 | lt_save_LIBS="$LIBS" |
---|
7049 | lt_save_CFLAGS="$CFLAGS" |
---|
7050 | LIBS="conftstm.$ac_objext" |
---|
7051 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
7052 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7053 | (eval $ac_link) 2>&5 |
---|
7054 | ac_status=$? |
---|
7055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7056 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
---|
7057 | pipe_works=yes |
---|
7058 | fi |
---|
7059 | LIBS="$lt_save_LIBS" |
---|
7060 | CFLAGS="$lt_save_CFLAGS" |
---|
7061 | else |
---|
7062 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
7063 | fi |
---|
7064 | else |
---|
7065 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
7066 | fi |
---|
7067 | else |
---|
7068 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
7069 | fi |
---|
7070 | else |
---|
7071 | echo "$progname: failed program was:" >&5 |
---|
7072 | cat conftest.$ac_ext >&5 |
---|
7073 | fi |
---|
7074 | rm -f conftest* conftst* |
---|
7075 | |
---|
7076 | # Do not use the global_symbol_pipe unless it works. |
---|
7077 | if test "$pipe_works" = yes; then |
---|
7078 | break |
---|
7079 | else |
---|
7080 | lt_cv_sys_global_symbol_pipe= |
---|
7081 | fi |
---|
7082 | done |
---|
7083 | |
---|
7084 | fi |
---|
7085 | |
---|
7086 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
7087 | lt_cv_sys_global_symbol_to_cdecl= |
---|
7088 | fi |
---|
7089 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
7090 | echo "$as_me:$LINENO: result: failed" >&5 |
---|
7091 | echo "${ECHO_T}failed" >&6 |
---|
7092 | else |
---|
7093 | echo "$as_me:$LINENO: result: ok" >&5 |
---|
7094 | echo "${ECHO_T}ok" >&6 |
---|
7095 | fi |
---|
7096 | |
---|
7097 | echo "$as_me:$LINENO: checking for objdir" >&5 |
---|
7098 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
---|
7099 | if test "${lt_cv_objdir+set}" = set; then |
---|
7100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7101 | else |
---|
7102 | rm -f .libs 2>/dev/null |
---|
7103 | mkdir .libs 2>/dev/null |
---|
7104 | if test -d .libs; then |
---|
7105 | lt_cv_objdir=.libs |
---|
7106 | else |
---|
7107 | # MS-DOS does not allow filenames that begin with a dot. |
---|
7108 | lt_cv_objdir=_libs |
---|
7109 | fi |
---|
7110 | rmdir .libs 2>/dev/null |
---|
7111 | fi |
---|
7112 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
---|
7113 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
---|
7114 | objdir=$lt_cv_objdir |
---|
7115 | |
---|
7116 | |
---|
7117 | |
---|
7118 | |
---|
7119 | |
---|
7120 | case $host_os in |
---|
7121 | aix3*) |
---|
7122 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
7123 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
7124 | # vanish in a puff of smoke. |
---|
7125 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
7126 | COLLECT_NAMES= |
---|
7127 | export COLLECT_NAMES |
---|
7128 | fi |
---|
7129 | ;; |
---|
7130 | esac |
---|
7131 | |
---|
7132 | # Sed substitution that helps us do robust quoting. It backslashifies |
---|
7133 | # metacharacters that are still active within double-quoted strings. |
---|
7134 | Xsed='sed -e 1s/^X//' |
---|
7135 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
---|
7136 | |
---|
7137 | # Same as above, but do not quote variable references. |
---|
7138 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
---|
7139 | |
---|
7140 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
7141 | # double_quote_subst'ed string. |
---|
7142 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
7143 | |
---|
7144 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
7145 | no_glob_subst='s/\*/\\\*/g' |
---|
7146 | |
---|
7147 | # Constants: |
---|
7148 | rm="rm -f" |
---|
7149 | |
---|
7150 | # Global variables: |
---|
7151 | default_ofile=libtool |
---|
7152 | can_build_shared=yes |
---|
7153 | |
---|
7154 | # All known linkers require a `.a' archive for static linking (except MSVC, |
---|
7155 | # which needs '.lib'). |
---|
7156 | libext=a |
---|
7157 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
7158 | ofile="$default_ofile" |
---|
7159 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
7160 | |
---|
7161 | if test -n "$ac_tool_prefix"; then |
---|
7162 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
---|
7163 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
---|
7164 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7165 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7166 | if test "${ac_cv_prog_AR+set}" = set; then |
---|
7167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7168 | else |
---|
7169 | if test -n "$AR"; then |
---|
7170 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
7171 | else |
---|
7172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7173 | for as_dir in $PATH |
---|
7174 | do |
---|
7175 | IFS=$as_save_IFS |
---|
7176 | test -z "$as_dir" && as_dir=. |
---|
7177 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7178 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7179 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
---|
7180 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7181 | break 2 |
---|
7182 | fi |
---|
7183 | done |
---|
7184 | done |
---|
7185 | |
---|
7186 | fi |
---|
7187 | fi |
---|
7188 | AR=$ac_cv_prog_AR |
---|
7189 | if test -n "$AR"; then |
---|
7190 | echo "$as_me:$LINENO: result: $AR" >&5 |
---|
7191 | echo "${ECHO_T}$AR" >&6 |
---|
7192 | else |
---|
7193 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7194 | echo "${ECHO_T}no" >&6 |
---|
7195 | fi |
---|
7196 | |
---|
7197 | fi |
---|
7198 | if test -z "$ac_cv_prog_AR"; then |
---|
7199 | ac_ct_AR=$AR |
---|
7200 | # Extract the first word of "ar", so it can be a program name with args. |
---|
7201 | set dummy ar; ac_word=$2 |
---|
7202 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7203 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7204 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
---|
7205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7206 | else |
---|
7207 | if test -n "$ac_ct_AR"; then |
---|
7208 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
7209 | else |
---|
7210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7211 | for as_dir in $PATH |
---|
7212 | do |
---|
7213 | IFS=$as_save_IFS |
---|
7214 | test -z "$as_dir" && as_dir=. |
---|
7215 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7216 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7217 | ac_cv_prog_ac_ct_AR="ar" |
---|
7218 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7219 | break 2 |
---|
7220 | fi |
---|
7221 | done |
---|
7222 | done |
---|
7223 | |
---|
7224 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
---|
7225 | fi |
---|
7226 | fi |
---|
7227 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
7228 | if test -n "$ac_ct_AR"; then |
---|
7229 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
---|
7230 | echo "${ECHO_T}$ac_ct_AR" >&6 |
---|
7231 | else |
---|
7232 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7233 | echo "${ECHO_T}no" >&6 |
---|
7234 | fi |
---|
7235 | |
---|
7236 | AR=$ac_ct_AR |
---|
7237 | else |
---|
7238 | AR="$ac_cv_prog_AR" |
---|
7239 | fi |
---|
7240 | |
---|
7241 | if test -n "$ac_tool_prefix"; then |
---|
7242 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
7243 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
7244 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7245 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7246 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
7247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7248 | else |
---|
7249 | if test -n "$RANLIB"; then |
---|
7250 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
7251 | else |
---|
7252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7253 | for as_dir in $PATH |
---|
7254 | do |
---|
7255 | IFS=$as_save_IFS |
---|
7256 | test -z "$as_dir" && as_dir=. |
---|
7257 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7258 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7259 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
7260 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7261 | break 2 |
---|
7262 | fi |
---|
7263 | done |
---|
7264 | done |
---|
7265 | |
---|
7266 | fi |
---|
7267 | fi |
---|
7268 | RANLIB=$ac_cv_prog_RANLIB |
---|
7269 | if test -n "$RANLIB"; then |
---|
7270 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
7271 | echo "${ECHO_T}$RANLIB" >&6 |
---|
7272 | else |
---|
7273 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7274 | echo "${ECHO_T}no" >&6 |
---|
7275 | fi |
---|
7276 | |
---|
7277 | fi |
---|
7278 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
7279 | ac_ct_RANLIB=$RANLIB |
---|
7280 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
7281 | set dummy ranlib; ac_word=$2 |
---|
7282 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7284 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
7285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7286 | else |
---|
7287 | if test -n "$ac_ct_RANLIB"; then |
---|
7288 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
7289 | else |
---|
7290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7291 | for as_dir in $PATH |
---|
7292 | do |
---|
7293 | IFS=$as_save_IFS |
---|
7294 | test -z "$as_dir" && as_dir=. |
---|
7295 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7296 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7297 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
7298 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7299 | break 2 |
---|
7300 | fi |
---|
7301 | done |
---|
7302 | done |
---|
7303 | |
---|
7304 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
7305 | fi |
---|
7306 | fi |
---|
7307 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
7308 | if test -n "$ac_ct_RANLIB"; then |
---|
7309 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
7310 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
7311 | else |
---|
7312 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7313 | echo "${ECHO_T}no" >&6 |
---|
7314 | fi |
---|
7315 | |
---|
7316 | RANLIB=$ac_ct_RANLIB |
---|
7317 | else |
---|
7318 | RANLIB="$ac_cv_prog_RANLIB" |
---|
7319 | fi |
---|
7320 | |
---|
7321 | if test -n "$ac_tool_prefix"; then |
---|
7322 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
7323 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
7324 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7326 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
7327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7328 | else |
---|
7329 | if test -n "$STRIP"; then |
---|
7330 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
7331 | else |
---|
7332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7333 | for as_dir in $PATH |
---|
7334 | do |
---|
7335 | IFS=$as_save_IFS |
---|
7336 | test -z "$as_dir" && as_dir=. |
---|
7337 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7338 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7339 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
7340 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7341 | break 2 |
---|
7342 | fi |
---|
7343 | done |
---|
7344 | done |
---|
7345 | |
---|
7346 | fi |
---|
7347 | fi |
---|
7348 | STRIP=$ac_cv_prog_STRIP |
---|
7349 | if test -n "$STRIP"; then |
---|
7350 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
7351 | echo "${ECHO_T}$STRIP" >&6 |
---|
7352 | else |
---|
7353 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7354 | echo "${ECHO_T}no" >&6 |
---|
7355 | fi |
---|
7356 | |
---|
7357 | fi |
---|
7358 | if test -z "$ac_cv_prog_STRIP"; then |
---|
7359 | ac_ct_STRIP=$STRIP |
---|
7360 | # Extract the first word of "strip", so it can be a program name with args. |
---|
7361 | set dummy strip; ac_word=$2 |
---|
7362 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7363 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7364 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
7365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7366 | else |
---|
7367 | if test -n "$ac_ct_STRIP"; then |
---|
7368 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
7369 | else |
---|
7370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7371 | for as_dir in $PATH |
---|
7372 | do |
---|
7373 | IFS=$as_save_IFS |
---|
7374 | test -z "$as_dir" && as_dir=. |
---|
7375 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7376 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7377 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
7378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7379 | break 2 |
---|
7380 | fi |
---|
7381 | done |
---|
7382 | done |
---|
7383 | |
---|
7384 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
7385 | fi |
---|
7386 | fi |
---|
7387 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
7388 | if test -n "$ac_ct_STRIP"; then |
---|
7389 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
7390 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
7391 | else |
---|
7392 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7393 | echo "${ECHO_T}no" >&6 |
---|
7394 | fi |
---|
7395 | |
---|
7396 | STRIP=$ac_ct_STRIP |
---|
7397 | else |
---|
7398 | STRIP="$ac_cv_prog_STRIP" |
---|
7399 | fi |
---|
7400 | |
---|
7401 | |
---|
7402 | old_CC="$CC" |
---|
7403 | old_CFLAGS="$CFLAGS" |
---|
7404 | |
---|
7405 | # Set sane defaults for various variables |
---|
7406 | test -z "$AR" && AR=ar |
---|
7407 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
---|
7408 | test -z "$AS" && AS=as |
---|
7409 | test -z "$CC" && CC=cc |
---|
7410 | test -z "$LTCC" && LTCC=$CC |
---|
7411 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
---|
7412 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
7413 | test -z "$LD" && LD=ld |
---|
7414 | test -z "$LN_S" && LN_S="ln -s" |
---|
7415 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
7416 | test -z "$NM" && NM=nm |
---|
7417 | test -z "$SED" && SED=sed |
---|
7418 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
7419 | test -z "$RANLIB" && RANLIB=: |
---|
7420 | test -z "$STRIP" && STRIP=: |
---|
7421 | test -z "$ac_objext" && ac_objext=o |
---|
7422 | |
---|
7423 | # Determine commands to create old-style static archives. |
---|
7424 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
---|
7425 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
7426 | old_postuninstall_cmds= |
---|
7427 | |
---|
7428 | if test -n "$RANLIB"; then |
---|
7429 | case $host_os in |
---|
7430 | openbsd*) |
---|
7431 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
---|
7432 | ;; |
---|
7433 | *) |
---|
7434 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
---|
7435 | ;; |
---|
7436 | esac |
---|
7437 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
7438 | fi |
---|
7439 | |
---|
7440 | for cc_temp in $compiler""; do |
---|
7441 | case $cc_temp in |
---|
7442 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
7443 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
7444 | \-*) ;; |
---|
7445 | *) break;; |
---|
7446 | esac |
---|
7447 | done |
---|
7448 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
7449 | |
---|
7450 | |
---|
7451 | # Only perform the check for file, if the check method requires it |
---|
7452 | case $deplibs_check_method in |
---|
7453 | file_magic*) |
---|
7454 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
7455 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
---|
7456 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
---|
7457 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
7458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7459 | else |
---|
7460 | case $MAGIC_CMD in |
---|
7461 | [\\/*] | ?:[\\/]*) |
---|
7462 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
7463 | ;; |
---|
7464 | *) |
---|
7465 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
7466 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
7467 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
7468 | for ac_dir in $ac_dummy; do |
---|
7469 | IFS="$lt_save_ifs" |
---|
7470 | test -z "$ac_dir" && ac_dir=. |
---|
7471 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
7472 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
7473 | if test -n "$file_magic_test_file"; then |
---|
7474 | case $deplibs_check_method in |
---|
7475 | "file_magic "*) |
---|
7476 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
7477 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7478 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
7479 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
7480 | : |
---|
7481 | else |
---|
7482 | cat <<EOF 1>&2 |
---|
7483 | |
---|
7484 | *** Warning: the command libtool uses to detect shared libraries, |
---|
7485 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
7486 | *** The result is that libtool may fail to recognize shared libraries |
---|
7487 | *** as such. This will affect the creation of libtool libraries that |
---|
7488 | *** depend on shared libraries, but programs linked with such libtool |
---|
7489 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
7490 | *** may want to report the problem to your system manager and/or to |
---|
7491 | *** bug-libtool@gnu.org |
---|
7492 | |
---|
7493 | EOF |
---|
7494 | fi ;; |
---|
7495 | esac |
---|
7496 | fi |
---|
7497 | break |
---|
7498 | fi |
---|
7499 | done |
---|
7500 | IFS="$lt_save_ifs" |
---|
7501 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
7502 | ;; |
---|
7503 | esac |
---|
7504 | fi |
---|
7505 | |
---|
7506 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7507 | if test -n "$MAGIC_CMD"; then |
---|
7508 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
7509 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
7510 | else |
---|
7511 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7512 | echo "${ECHO_T}no" >&6 |
---|
7513 | fi |
---|
7514 | |
---|
7515 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
7516 | if test -n "$ac_tool_prefix"; then |
---|
7517 | echo "$as_me:$LINENO: checking for file" >&5 |
---|
7518 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
---|
7519 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
7520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7521 | else |
---|
7522 | case $MAGIC_CMD in |
---|
7523 | [\\/*] | ?:[\\/]*) |
---|
7524 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
7525 | ;; |
---|
7526 | *) |
---|
7527 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
7528 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
7529 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
7530 | for ac_dir in $ac_dummy; do |
---|
7531 | IFS="$lt_save_ifs" |
---|
7532 | test -z "$ac_dir" && ac_dir=. |
---|
7533 | if test -f $ac_dir/file; then |
---|
7534 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
7535 | if test -n "$file_magic_test_file"; then |
---|
7536 | case $deplibs_check_method in |
---|
7537 | "file_magic "*) |
---|
7538 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
7539 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7540 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
7541 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
7542 | : |
---|
7543 | else |
---|
7544 | cat <<EOF 1>&2 |
---|
7545 | |
---|
7546 | *** Warning: the command libtool uses to detect shared libraries, |
---|
7547 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
7548 | *** The result is that libtool may fail to recognize shared libraries |
---|
7549 | *** as such. This will affect the creation of libtool libraries that |
---|
7550 | *** depend on shared libraries, but programs linked with such libtool |
---|
7551 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
7552 | *** may want to report the problem to your system manager and/or to |
---|
7553 | *** bug-libtool@gnu.org |
---|
7554 | |
---|
7555 | EOF |
---|
7556 | fi ;; |
---|
7557 | esac |
---|
7558 | fi |
---|
7559 | break |
---|
7560 | fi |
---|
7561 | done |
---|
7562 | IFS="$lt_save_ifs" |
---|
7563 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
7564 | ;; |
---|
7565 | esac |
---|
7566 | fi |
---|
7567 | |
---|
7568 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7569 | if test -n "$MAGIC_CMD"; then |
---|
7570 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
7571 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
7572 | else |
---|
7573 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7574 | echo "${ECHO_T}no" >&6 |
---|
7575 | fi |
---|
7576 | |
---|
7577 | else |
---|
7578 | MAGIC_CMD=: |
---|
7579 | fi |
---|
7580 | fi |
---|
7581 | |
---|
7582 | fi |
---|
7583 | ;; |
---|
7584 | esac |
---|
7585 | |
---|
7586 | enable_dlopen=no |
---|
7587 | enable_win32_dll=no |
---|
7588 | |
---|
7589 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
7590 | if test "${enable_libtool_lock+set}" = set; then |
---|
7591 | enableval="$enable_libtool_lock" |
---|
7592 | |
---|
7593 | fi; |
---|
7594 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
7595 | |
---|
7596 | |
---|
7597 | # Check whether --with-pic or --without-pic was given. |
---|
7598 | if test "${with_pic+set}" = set; then |
---|
7599 | withval="$with_pic" |
---|
7600 | pic_mode="$withval" |
---|
7601 | else |
---|
7602 | pic_mode=default |
---|
7603 | fi; |
---|
7604 | test -z "$pic_mode" && pic_mode=default |
---|
7605 | |
---|
7606 | # Use C for the default configuration in the libtool script |
---|
7607 | tagname= |
---|
7608 | lt_save_CC="$CC" |
---|
7609 | ac_ext=c |
---|
7610 | ac_cpp='$CPP $CPPFLAGS' |
---|
7611 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7612 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7613 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7614 | |
---|
7615 | |
---|
7616 | # Source file extension for C test sources. |
---|
7617 | ac_ext=c |
---|
7618 | |
---|
7619 | # Object file extension for compiled C test sources. |
---|
7620 | objext=o |
---|
7621 | objext=$objext |
---|
7622 | |
---|
7623 | # Code to be used in simple compile tests |
---|
7624 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
7625 | |
---|
7626 | # Code to be used in simple link tests |
---|
7627 | lt_simple_link_test_code='int main(){return(0);}\n' |
---|
7628 | |
---|
7629 | |
---|
7630 | # If no C compiler was specified, use CC. |
---|
7631 | LTCC=${LTCC-"$CC"} |
---|
7632 | |
---|
7633 | # If no C compiler flags were specified, use CFLAGS. |
---|
7634 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
7635 | |
---|
7636 | # Allow CC to be a program name with arguments. |
---|
7637 | compiler=$CC |
---|
7638 | |
---|
7639 | |
---|
7640 | # save warnings/boilerplate of simple test code |
---|
7641 | ac_outfile=conftest.$ac_objext |
---|
7642 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
7643 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
7644 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
7645 | $rm conftest* |
---|
7646 | |
---|
7647 | ac_outfile=conftest.$ac_objext |
---|
7648 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
7649 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
7650 | _lt_linker_boilerplate=`cat conftest.err` |
---|
7651 | $rm conftest* |
---|
7652 | |
---|
7653 | |
---|
7654 | ## CAVEAT EMPTOR: |
---|
7655 | ## There is no encapsulation within the following macros, do not change |
---|
7656 | ## the running order or otherwise move them around unless you know exactly |
---|
7657 | ## what you are doing... |
---|
7658 | |
---|
7659 | lt_prog_compiler_no_builtin_flag= |
---|
7660 | |
---|
7661 | if test "$GCC" = yes; then |
---|
7662 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
---|
7663 | |
---|
7664 | |
---|
7665 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
7666 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
---|
7667 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
7668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7669 | else |
---|
7670 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
7671 | ac_outfile=conftest.$ac_objext |
---|
7672 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
7673 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
7674 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
7675 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
7676 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
7677 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
7678 | # The option is referenced via a variable to avoid confusing sed. |
---|
7679 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
7680 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
7681 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
7682 | -e 's:$: $lt_compiler_flag:'` |
---|
7683 | (eval echo "\"\$as_me:7683: $lt_compile\"" >&5) |
---|
7684 | (eval "$lt_compile" 2>conftest.err) |
---|
7685 | ac_status=$? |
---|
7686 | cat conftest.err >&5 |
---|
7687 | echo "$as_me:7687: \$? = $ac_status" >&5 |
---|
7688 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
7689 | # The compiler can only warn and ignore the option if not recognized |
---|
7690 | # So say no if there are warnings other than the usual output. |
---|
7691 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
7692 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
7693 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
7694 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
7695 | fi |
---|
7696 | fi |
---|
7697 | $rm conftest* |
---|
7698 | |
---|
7699 | fi |
---|
7700 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
7701 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
---|
7702 | |
---|
7703 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
7704 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
7705 | else |
---|
7706 | : |
---|
7707 | fi |
---|
7708 | |
---|
7709 | fi |
---|
7710 | |
---|
7711 | lt_prog_compiler_wl= |
---|
7712 | lt_prog_compiler_pic= |
---|
7713 | lt_prog_compiler_static= |
---|
7714 | |
---|
7715 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
7716 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
7717 | |
---|
7718 | if test "$GCC" = yes; then |
---|
7719 | lt_prog_compiler_wl='-Wl,' |
---|
7720 | lt_prog_compiler_static='-static' |
---|
7721 | |
---|
7722 | case $host_os in |
---|
7723 | aix*) |
---|
7724 | # All AIX code is PIC. |
---|
7725 | if test "$host_cpu" = ia64; then |
---|
7726 | # AIX 5 now supports IA64 processor |
---|
7727 | lt_prog_compiler_static='-Bstatic' |
---|
7728 | fi |
---|
7729 | ;; |
---|
7730 | |
---|
7731 | amigaos*) |
---|
7732 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
7733 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
7734 | # like `-m68040'. |
---|
7735 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
7736 | ;; |
---|
7737 | |
---|
7738 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
7739 | # PIC is the default for these OSes. |
---|
7740 | ;; |
---|
7741 | |
---|
7742 | mingw* | pw32* | os2*) |
---|
7743 | # This hack is so that the source file can tell whether it is being |
---|
7744 | # built for inclusion in a dll (and should export symbols for example). |
---|
7745 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
7746 | ;; |
---|
7747 | |
---|
7748 | darwin* | rhapsody*) |
---|
7749 | # PIC is the default on this platform |
---|
7750 | # Common symbols not allowed in MH_DYLIB files |
---|
7751 | lt_prog_compiler_pic='-fno-common' |
---|
7752 | ;; |
---|
7753 | |
---|
7754 | interix3*) |
---|
7755 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
7756 | # Instead, we relocate shared libraries at runtime. |
---|
7757 | ;; |
---|
7758 | |
---|
7759 | msdosdjgpp*) |
---|
7760 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
7761 | # on systems that don't support them. |
---|
7762 | lt_prog_compiler_can_build_shared=no |
---|
7763 | enable_shared=no |
---|
7764 | ;; |
---|
7765 | |
---|
7766 | sysv4*MP*) |
---|
7767 | if test -d /usr/nec; then |
---|
7768 | lt_prog_compiler_pic=-Kconform_pic |
---|
7769 | fi |
---|
7770 | ;; |
---|
7771 | |
---|
7772 | hpux*) |
---|
7773 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
7774 | # not for PA HP-UX. |
---|
7775 | case $host_cpu in |
---|
7776 | hppa*64*|ia64*) |
---|
7777 | # +Z the default |
---|
7778 | ;; |
---|
7779 | *) |
---|
7780 | lt_prog_compiler_pic='-fPIC' |
---|
7781 | ;; |
---|
7782 | esac |
---|
7783 | ;; |
---|
7784 | |
---|
7785 | *) |
---|
7786 | lt_prog_compiler_pic='-fPIC' |
---|
7787 | ;; |
---|
7788 | esac |
---|
7789 | else |
---|
7790 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
7791 | case $host_os in |
---|
7792 | aix*) |
---|
7793 | lt_prog_compiler_wl='-Wl,' |
---|
7794 | if test "$host_cpu" = ia64; then |
---|
7795 | # AIX 5 now supports IA64 processor |
---|
7796 | lt_prog_compiler_static='-Bstatic' |
---|
7797 | else |
---|
7798 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
7799 | fi |
---|
7800 | ;; |
---|
7801 | darwin*) |
---|
7802 | # PIC is the default on this platform |
---|
7803 | # Common symbols not allowed in MH_DYLIB files |
---|
7804 | case $cc_basename in |
---|
7805 | xlc*) |
---|
7806 | lt_prog_compiler_pic='-qnocommon' |
---|
7807 | lt_prog_compiler_wl='-Wl,' |
---|
7808 | ;; |
---|
7809 | esac |
---|
7810 | ;; |
---|
7811 | |
---|
7812 | mingw* | pw32* | os2*) |
---|
7813 | # This hack is so that the source file can tell whether it is being |
---|
7814 | # built for inclusion in a dll (and should export symbols for example). |
---|
7815 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
7816 | ;; |
---|
7817 | |
---|
7818 | hpux9* | hpux10* | hpux11*) |
---|
7819 | lt_prog_compiler_wl='-Wl,' |
---|
7820 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
7821 | # not for PA HP-UX. |
---|
7822 | case $host_cpu in |
---|
7823 | hppa*64*|ia64*) |
---|
7824 | # +Z the default |
---|
7825 | ;; |
---|
7826 | *) |
---|
7827 | lt_prog_compiler_pic='+Z' |
---|
7828 | ;; |
---|
7829 | esac |
---|
7830 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
7831 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
7832 | ;; |
---|
7833 | |
---|
7834 | irix5* | irix6* | nonstopux*) |
---|
7835 | lt_prog_compiler_wl='-Wl,' |
---|
7836 | # PIC (with -KPIC) is the default. |
---|
7837 | lt_prog_compiler_static='-non_shared' |
---|
7838 | ;; |
---|
7839 | |
---|
7840 | newsos6) |
---|
7841 | lt_prog_compiler_pic='-KPIC' |
---|
7842 | lt_prog_compiler_static='-Bstatic' |
---|
7843 | ;; |
---|
7844 | |
---|
7845 | linux*) |
---|
7846 | case $cc_basename in |
---|
7847 | icc* | ecc*) |
---|
7848 | lt_prog_compiler_wl='-Wl,' |
---|
7849 | lt_prog_compiler_pic='-KPIC' |
---|
7850 | lt_prog_compiler_static='-static' |
---|
7851 | ;; |
---|
7852 | pgcc* | pgf77* | pgf90* | pgf95*) |
---|
7853 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
7854 | # which looks to be a dead project) |
---|
7855 | lt_prog_compiler_wl='-Wl,' |
---|
7856 | lt_prog_compiler_pic='-fpic' |
---|
7857 | lt_prog_compiler_static='-Bstatic' |
---|
7858 | ;; |
---|
7859 | ccc*) |
---|
7860 | lt_prog_compiler_wl='-Wl,' |
---|
7861 | # All Alpha code is PIC. |
---|
7862 | lt_prog_compiler_static='-non_shared' |
---|
7863 | ;; |
---|
7864 | esac |
---|
7865 | ;; |
---|
7866 | |
---|
7867 | osf3* | osf4* | osf5*) |
---|
7868 | lt_prog_compiler_wl='-Wl,' |
---|
7869 | # All OSF/1 code is PIC. |
---|
7870 | lt_prog_compiler_static='-non_shared' |
---|
7871 | ;; |
---|
7872 | |
---|
7873 | solaris*) |
---|
7874 | lt_prog_compiler_pic='-KPIC' |
---|
7875 | lt_prog_compiler_static='-Bstatic' |
---|
7876 | case $cc_basename in |
---|
7877 | f77* | f90* | f95*) |
---|
7878 | lt_prog_compiler_wl='-Qoption ld ';; |
---|
7879 | *) |
---|
7880 | lt_prog_compiler_wl='-Wl,';; |
---|
7881 | esac |
---|
7882 | ;; |
---|
7883 | |
---|
7884 | sunos4*) |
---|
7885 | lt_prog_compiler_wl='-Qoption ld ' |
---|
7886 | lt_prog_compiler_pic='-PIC' |
---|
7887 | lt_prog_compiler_static='-Bstatic' |
---|
7888 | ;; |
---|
7889 | |
---|
7890 | sysv4 | sysv4.2uw2* | sysv4.3*) |
---|
7891 | lt_prog_compiler_wl='-Wl,' |
---|
7892 | lt_prog_compiler_pic='-KPIC' |
---|
7893 | lt_prog_compiler_static='-Bstatic' |
---|
7894 | ;; |
---|
7895 | |
---|
7896 | sysv4*MP*) |
---|
7897 | if test -d /usr/nec ;then |
---|
7898 | lt_prog_compiler_pic='-Kconform_pic' |
---|
7899 | lt_prog_compiler_static='-Bstatic' |
---|
7900 | fi |
---|
7901 | ;; |
---|
7902 | |
---|
7903 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
7904 | lt_prog_compiler_wl='-Wl,' |
---|
7905 | lt_prog_compiler_pic='-KPIC' |
---|
7906 | lt_prog_compiler_static='-Bstatic' |
---|
7907 | ;; |
---|
7908 | |
---|
7909 | unicos*) |
---|
7910 | lt_prog_compiler_wl='-Wl,' |
---|
7911 | lt_prog_compiler_can_build_shared=no |
---|
7912 | ;; |
---|
7913 | |
---|
7914 | uts4*) |
---|
7915 | lt_prog_compiler_pic='-pic' |
---|
7916 | lt_prog_compiler_static='-Bstatic' |
---|
7917 | ;; |
---|
7918 | |
---|
7919 | *) |
---|
7920 | lt_prog_compiler_can_build_shared=no |
---|
7921 | ;; |
---|
7922 | esac |
---|
7923 | fi |
---|
7924 | |
---|
7925 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
---|
7926 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
---|
7927 | |
---|
7928 | # |
---|
7929 | # Check to make sure the PIC flag actually works. |
---|
7930 | # |
---|
7931 | if test -n "$lt_prog_compiler_pic"; then |
---|
7932 | |
---|
7933 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
7934 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
---|
7935 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
---|
7936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7937 | else |
---|
7938 | lt_prog_compiler_pic_works=no |
---|
7939 | ac_outfile=conftest.$ac_objext |
---|
7940 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
7941 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
7942 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
7943 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
7944 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
7945 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
7946 | # The option is referenced via a variable to avoid confusing sed. |
---|
7947 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
7948 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
7949 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
7950 | -e 's:$: $lt_compiler_flag:'` |
---|
7951 | (eval echo "\"\$as_me:7951: $lt_compile\"" >&5) |
---|
7952 | (eval "$lt_compile" 2>conftest.err) |
---|
7953 | ac_status=$? |
---|
7954 | cat conftest.err >&5 |
---|
7955 | echo "$as_me:7955: \$? = $ac_status" >&5 |
---|
7956 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
7957 | # The compiler can only warn and ignore the option if not recognized |
---|
7958 | # So say no if there are warnings other than the usual output. |
---|
7959 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
7960 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
7961 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
7962 | lt_prog_compiler_pic_works=yes |
---|
7963 | fi |
---|
7964 | fi |
---|
7965 | $rm conftest* |
---|
7966 | |
---|
7967 | fi |
---|
7968 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
---|
7969 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
---|
7970 | |
---|
7971 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
---|
7972 | case $lt_prog_compiler_pic in |
---|
7973 | "" | " "*) ;; |
---|
7974 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
7975 | esac |
---|
7976 | else |
---|
7977 | lt_prog_compiler_pic= |
---|
7978 | lt_prog_compiler_can_build_shared=no |
---|
7979 | fi |
---|
7980 | |
---|
7981 | fi |
---|
7982 | case $host_os in |
---|
7983 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
7984 | *djgpp*) |
---|
7985 | lt_prog_compiler_pic= |
---|
7986 | ;; |
---|
7987 | *) |
---|
7988 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
7989 | ;; |
---|
7990 | esac |
---|
7991 | |
---|
7992 | # |
---|
7993 | # Check to make sure the static flag actually works. |
---|
7994 | # |
---|
7995 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
---|
7996 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
7997 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
---|
7998 | if test "${lt_prog_compiler_static_works+set}" = set; then |
---|
7999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8000 | else |
---|
8001 | lt_prog_compiler_static_works=no |
---|
8002 | save_LDFLAGS="$LDFLAGS" |
---|
8003 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
8004 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
8005 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
8006 | # The linker can only warn and ignore the option if not recognized |
---|
8007 | # So say no if there are warnings |
---|
8008 | if test -s conftest.err; then |
---|
8009 | # Append any errors to the config.log. |
---|
8010 | cat conftest.err 1>&5 |
---|
8011 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
---|
8012 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8013 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
8014 | lt_prog_compiler_static_works=yes |
---|
8015 | fi |
---|
8016 | else |
---|
8017 | lt_prog_compiler_static_works=yes |
---|
8018 | fi |
---|
8019 | fi |
---|
8020 | $rm conftest* |
---|
8021 | LDFLAGS="$save_LDFLAGS" |
---|
8022 | |
---|
8023 | fi |
---|
8024 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
---|
8025 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
---|
8026 | |
---|
8027 | if test x"$lt_prog_compiler_static_works" = xyes; then |
---|
8028 | : |
---|
8029 | else |
---|
8030 | lt_prog_compiler_static= |
---|
8031 | fi |
---|
8032 | |
---|
8033 | |
---|
8034 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
8035 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
8036 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
---|
8037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8038 | else |
---|
8039 | lt_cv_prog_compiler_c_o=no |
---|
8040 | $rm -r conftest 2>/dev/null |
---|
8041 | mkdir conftest |
---|
8042 | cd conftest |
---|
8043 | mkdir out |
---|
8044 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8045 | |
---|
8046 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
8047 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8048 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8049 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8050 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8051 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8052 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8053 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8054 | -e 's:$: $lt_compiler_flag:'` |
---|
8055 | (eval echo "\"\$as_me:8055: $lt_compile\"" >&5) |
---|
8056 | (eval "$lt_compile" 2>out/conftest.err) |
---|
8057 | ac_status=$? |
---|
8058 | cat out/conftest.err >&5 |
---|
8059 | echo "$as_me:8059: \$? = $ac_status" >&5 |
---|
8060 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
8061 | then |
---|
8062 | # The compiler can only warn and ignore the option if not recognized |
---|
8063 | # So say no if there are warnings |
---|
8064 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
---|
8065 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
8066 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
8067 | lt_cv_prog_compiler_c_o=yes |
---|
8068 | fi |
---|
8069 | fi |
---|
8070 | chmod u+w . 2>&5 |
---|
8071 | $rm conftest* |
---|
8072 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
8073 | # template instantiation |
---|
8074 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
8075 | $rm out/* && rmdir out |
---|
8076 | cd .. |
---|
8077 | rmdir conftest |
---|
8078 | $rm conftest* |
---|
8079 | |
---|
8080 | fi |
---|
8081 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
8082 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
---|
8083 | |
---|
8084 | |
---|
8085 | hard_links="nottested" |
---|
8086 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
8087 | # do not overwrite the value of need_locks provided by the user |
---|
8088 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
8089 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
8090 | hard_links=yes |
---|
8091 | $rm conftest* |
---|
8092 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8093 | touch conftest.a |
---|
8094 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
8095 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8096 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
8097 | echo "${ECHO_T}$hard_links" >&6 |
---|
8098 | if test "$hard_links" = no; then |
---|
8099 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
8100 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
8101 | need_locks=warn |
---|
8102 | fi |
---|
8103 | else |
---|
8104 | need_locks=no |
---|
8105 | fi |
---|
8106 | |
---|
8107 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
8108 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
8109 | |
---|
8110 | runpath_var= |
---|
8111 | allow_undefined_flag= |
---|
8112 | enable_shared_with_static_runtimes=no |
---|
8113 | archive_cmds= |
---|
8114 | archive_expsym_cmds= |
---|
8115 | old_archive_From_new_cmds= |
---|
8116 | old_archive_from_expsyms_cmds= |
---|
8117 | export_dynamic_flag_spec= |
---|
8118 | whole_archive_flag_spec= |
---|
8119 | thread_safe_flag_spec= |
---|
8120 | hardcode_libdir_flag_spec= |
---|
8121 | hardcode_libdir_flag_spec_ld= |
---|
8122 | hardcode_libdir_separator= |
---|
8123 | hardcode_direct=no |
---|
8124 | hardcode_minus_L=no |
---|
8125 | hardcode_shlibpath_var=unsupported |
---|
8126 | link_all_deplibs=unknown |
---|
8127 | hardcode_automatic=no |
---|
8128 | module_cmds= |
---|
8129 | module_expsym_cmds= |
---|
8130 | always_export_symbols=no |
---|
8131 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8132 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
8133 | # included in the symbol list |
---|
8134 | include_expsyms= |
---|
8135 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
8136 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
8137 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
8138 | # as well as any symbol that contains `d'. |
---|
8139 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
---|
8140 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
8141 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
8142 | # the symbol is explicitly referenced. Since portable code cannot |
---|
8143 | # rely on this symbol name, it's probably fine to never include it in |
---|
8144 | # preloaded symbol tables. |
---|
8145 | extract_expsyms_cmds= |
---|
8146 | # Just being paranoid about ensuring that cc_basename is set. |
---|
8147 | for cc_temp in $compiler""; do |
---|
8148 | case $cc_temp in |
---|
8149 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
8150 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
8151 | \-*) ;; |
---|
8152 | *) break;; |
---|
8153 | esac |
---|
8154 | done |
---|
8155 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
8156 | |
---|
8157 | case $host_os in |
---|
8158 | cygwin* | mingw* | pw32*) |
---|
8159 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
8160 | # When not using gcc, we currently assume that we are using |
---|
8161 | # Microsoft Visual C++. |
---|
8162 | if test "$GCC" != yes; then |
---|
8163 | with_gnu_ld=no |
---|
8164 | fi |
---|
8165 | ;; |
---|
8166 | interix*) |
---|
8167 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
---|
8168 | with_gnu_ld=yes |
---|
8169 | ;; |
---|
8170 | openbsd*) |
---|
8171 | with_gnu_ld=no |
---|
8172 | ;; |
---|
8173 | esac |
---|
8174 | |
---|
8175 | ld_shlibs=yes |
---|
8176 | if test "$with_gnu_ld" = yes; then |
---|
8177 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
8178 | wlarc='${wl}' |
---|
8179 | |
---|
8180 | # Set some defaults for GNU ld with shared library support. These |
---|
8181 | # are reset later if shared libraries are not supported. Putting them |
---|
8182 | # here allows them to be overridden if necessary. |
---|
8183 | runpath_var=LD_RUN_PATH |
---|
8184 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
---|
8185 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
8186 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
8187 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
8188 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
8189 | else |
---|
8190 | whole_archive_flag_spec= |
---|
8191 | fi |
---|
8192 | supports_anon_versioning=no |
---|
8193 | case `$LD -v 2>/dev/null` in |
---|
8194 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
8195 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
8196 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
8197 | *\ 2.11.*) ;; # other 2.11 versions |
---|
8198 | *) supports_anon_versioning=yes ;; |
---|
8199 | esac |
---|
8200 | |
---|
8201 | # See if GNU ld supports shared libraries. |
---|
8202 | case $host_os in |
---|
8203 | aix3* | aix4* | aix5*) |
---|
8204 | # On AIX/PPC, the GNU linker is very broken |
---|
8205 | if test "$host_cpu" != ia64; then |
---|
8206 | ld_shlibs=no |
---|
8207 | cat <<EOF 1>&2 |
---|
8208 | |
---|
8209 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
8210 | *** to be unable to reliably create shared libraries on AIX. |
---|
8211 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
8212 | *** really care for shared libraries, you may want to modify your PATH |
---|
8213 | *** so that a non-GNU linker is found, and then restart. |
---|
8214 | |
---|
8215 | EOF |
---|
8216 | fi |
---|
8217 | ;; |
---|
8218 | |
---|
8219 | amigaos*) |
---|
8220 | 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)' |
---|
8221 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8222 | hardcode_minus_L=yes |
---|
8223 | |
---|
8224 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
8225 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
8226 | # to version 4, is to share data among multiple programs linked |
---|
8227 | # with the same dynamic library. Since this doesn't match the |
---|
8228 | # behavior of shared libraries on other platforms, we can't use |
---|
8229 | # them. |
---|
8230 | ld_shlibs=no |
---|
8231 | ;; |
---|
8232 | |
---|
8233 | beos*) |
---|
8234 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8235 | allow_undefined_flag=unsupported |
---|
8236 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
8237 | # support --undefined. This deserves some investigation. FIXME |
---|
8238 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8239 | else |
---|
8240 | ld_shlibs=no |
---|
8241 | fi |
---|
8242 | ;; |
---|
8243 | |
---|
8244 | cygwin* | mingw* | pw32*) |
---|
8245 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
8246 | # as there is no search path for DLLs. |
---|
8247 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8248 | allow_undefined_flag=unsupported |
---|
8249 | always_export_symbols=no |
---|
8250 | enable_shared_with_static_runtimes=yes |
---|
8251 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8252 | |
---|
8253 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
8254 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
8255 | # If the export-symbols file already is a .def file (1st line |
---|
8256 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
8257 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
8258 | cp $export_symbols $output_objdir/$soname.def; |
---|
8259 | else |
---|
8260 | echo EXPORTS > $output_objdir/$soname.def; |
---|
8261 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
8262 | fi~ |
---|
8263 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
8264 | else |
---|
8265 | ld_shlibs=no |
---|
8266 | fi |
---|
8267 | ;; |
---|
8268 | |
---|
8269 | interix3*) |
---|
8270 | hardcode_direct=no |
---|
8271 | hardcode_shlibpath_var=no |
---|
8272 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
8273 | export_dynamic_flag_spec='${wl}-E' |
---|
8274 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
8275 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
8276 | # default) and relocated if they conflict, which is a slow very memory |
---|
8277 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
8278 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
8279 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
8280 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
8281 | 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' |
---|
8282 | ;; |
---|
8283 | |
---|
8284 | linux*) |
---|
8285 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8286 | tmp_addflag= |
---|
8287 | case $cc_basename,$host_cpu in |
---|
8288 | pgcc*) # Portland Group C compiler |
---|
8289 | 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' |
---|
8290 | tmp_addflag=' $pic_flag' |
---|
8291 | ;; |
---|
8292 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
---|
8293 | 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' |
---|
8294 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
8295 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
8296 | tmp_addflag=' -i_dynamic' ;; |
---|
8297 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
8298 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
8299 | ifc* | ifort*) # Intel Fortran compiler |
---|
8300 | tmp_addflag=' -nofor_main' ;; |
---|
8301 | esac |
---|
8302 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8303 | |
---|
8304 | if test $supports_anon_versioning = yes; then |
---|
8305 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
8306 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
8307 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
8308 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
8309 | fi |
---|
8310 | else |
---|
8311 | ld_shlibs=no |
---|
8312 | fi |
---|
8313 | ;; |
---|
8314 | |
---|
8315 | netbsd*) |
---|
8316 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
8317 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
8318 | wlarc= |
---|
8319 | else |
---|
8320 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8321 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8322 | fi |
---|
8323 | ;; |
---|
8324 | |
---|
8325 | solaris*) |
---|
8326 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
8327 | ld_shlibs=no |
---|
8328 | cat <<EOF 1>&2 |
---|
8329 | |
---|
8330 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
8331 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
8332 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
8333 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
8334 | *** your PATH or compiler configuration so that the native linker is |
---|
8335 | *** used, and then restart. |
---|
8336 | |
---|
8337 | EOF |
---|
8338 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8339 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8340 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8341 | else |
---|
8342 | ld_shlibs=no |
---|
8343 | fi |
---|
8344 | ;; |
---|
8345 | |
---|
8346 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
---|
8347 | case `$LD -v 2>&1` in |
---|
8348 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
---|
8349 | ld_shlibs=no |
---|
8350 | cat <<_LT_EOF 1>&2 |
---|
8351 | |
---|
8352 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
---|
8353 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
---|
8354 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
8355 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
---|
8356 | *** your PATH or compiler configuration so that the native linker is |
---|
8357 | *** used, and then restart. |
---|
8358 | |
---|
8359 | _LT_EOF |
---|
8360 | ;; |
---|
8361 | *) |
---|
8362 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8363 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
---|
8364 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
---|
8365 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
---|
8366 | else |
---|
8367 | ld_shlibs=no |
---|
8368 | fi |
---|
8369 | ;; |
---|
8370 | esac |
---|
8371 | ;; |
---|
8372 | |
---|
8373 | sunos4*) |
---|
8374 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8375 | wlarc= |
---|
8376 | hardcode_direct=yes |
---|
8377 | hardcode_shlibpath_var=no |
---|
8378 | ;; |
---|
8379 | |
---|
8380 | *) |
---|
8381 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8382 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8383 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8384 | else |
---|
8385 | ld_shlibs=no |
---|
8386 | fi |
---|
8387 | ;; |
---|
8388 | esac |
---|
8389 | |
---|
8390 | if test "$ld_shlibs" = no; then |
---|
8391 | runpath_var= |
---|
8392 | hardcode_libdir_flag_spec= |
---|
8393 | export_dynamic_flag_spec= |
---|
8394 | whole_archive_flag_spec= |
---|
8395 | fi |
---|
8396 | else |
---|
8397 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
8398 | case $host_os in |
---|
8399 | aix3*) |
---|
8400 | allow_undefined_flag=unsupported |
---|
8401 | always_export_symbols=yes |
---|
8402 | 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' |
---|
8403 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
8404 | # are no directories specified by -L. |
---|
8405 | hardcode_minus_L=yes |
---|
8406 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
---|
8407 | # Neither direct hardcoding nor static linking is supported with a |
---|
8408 | # broken collect2. |
---|
8409 | hardcode_direct=unsupported |
---|
8410 | fi |
---|
8411 | ;; |
---|
8412 | |
---|
8413 | aix4* | aix5*) |
---|
8414 | if test "$host_cpu" = ia64; then |
---|
8415 | # On IA64, the linker does run time linking by default, so we don't |
---|
8416 | # have to do anything special. |
---|
8417 | aix_use_runtimelinking=no |
---|
8418 | exp_sym_flag='-Bexport' |
---|
8419 | no_entry_flag="" |
---|
8420 | else |
---|
8421 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
8422 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
8423 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
8424 | 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' |
---|
8425 | else |
---|
8426 | 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' |
---|
8427 | fi |
---|
8428 | aix_use_runtimelinking=no |
---|
8429 | |
---|
8430 | # Test if we are trying to use run time linking or normal |
---|
8431 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
8432 | # need to do runtime linking. |
---|
8433 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
8434 | for ld_flag in $LDFLAGS; do |
---|
8435 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
8436 | aix_use_runtimelinking=yes |
---|
8437 | break |
---|
8438 | fi |
---|
8439 | done |
---|
8440 | ;; |
---|
8441 | esac |
---|
8442 | |
---|
8443 | exp_sym_flag='-bexport' |
---|
8444 | no_entry_flag='-bnoentry' |
---|
8445 | fi |
---|
8446 | |
---|
8447 | # When large executables or shared objects are built, AIX ld can |
---|
8448 | # have problems creating the table of contents. If linking a library |
---|
8449 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
8450 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
8451 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
8452 | |
---|
8453 | archive_cmds='' |
---|
8454 | hardcode_direct=yes |
---|
8455 | hardcode_libdir_separator=':' |
---|
8456 | link_all_deplibs=yes |
---|
8457 | |
---|
8458 | if test "$GCC" = yes; then |
---|
8459 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
8460 | # We only want to do this on AIX 4.2 and lower, the check |
---|
8461 | # below for broken collect2 doesn't work under 4.3+ |
---|
8462 | collect2name=`${CC} -print-prog-name=collect2` |
---|
8463 | if test -f "$collect2name" && \ |
---|
8464 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
8465 | then |
---|
8466 | # We have reworked collect2 |
---|
8467 | hardcode_direct=yes |
---|
8468 | else |
---|
8469 | # We have old collect2 |
---|
8470 | hardcode_direct=unsupported |
---|
8471 | # It fails to find uninstalled libraries when the uninstalled |
---|
8472 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
8473 | # to unsupported forces relinking |
---|
8474 | hardcode_minus_L=yes |
---|
8475 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8476 | hardcode_libdir_separator= |
---|
8477 | fi |
---|
8478 | ;; |
---|
8479 | esac |
---|
8480 | shared_flag='-shared' |
---|
8481 | if test "$aix_use_runtimelinking" = yes; then |
---|
8482 | shared_flag="$shared_flag "'${wl}-G' |
---|
8483 | fi |
---|
8484 | else |
---|
8485 | # not using gcc |
---|
8486 | if test "$host_cpu" = ia64; then |
---|
8487 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
8488 | # chokes on -Wl,-G. The following line is correct: |
---|
8489 | shared_flag='-G' |
---|
8490 | else |
---|
8491 | if test "$aix_use_runtimelinking" = yes; then |
---|
8492 | shared_flag='${wl}-G' |
---|
8493 | else |
---|
8494 | shared_flag='${wl}-bM:SRE' |
---|
8495 | fi |
---|
8496 | fi |
---|
8497 | fi |
---|
8498 | |
---|
8499 | # It seems that -bexpall does not export symbols beginning with |
---|
8500 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
8501 | always_export_symbols=yes |
---|
8502 | if test "$aix_use_runtimelinking" = yes; then |
---|
8503 | # Warning - without using the other runtime loading flags (-brtl), |
---|
8504 | # -berok will link without error, but may produce a broken library. |
---|
8505 | allow_undefined_flag='-berok' |
---|
8506 | # Determine the default libpath from the value encoded in an empty executable. |
---|
8507 | cat >conftest.$ac_ext <<_ACEOF |
---|
8508 | /* confdefs.h. */ |
---|
8509 | _ACEOF |
---|
8510 | cat confdefs.h >>conftest.$ac_ext |
---|
8511 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8512 | /* end confdefs.h. */ |
---|
8513 | |
---|
8514 | int |
---|
8515 | main () |
---|
8516 | { |
---|
8517 | |
---|
8518 | ; |
---|
8519 | return 0; |
---|
8520 | } |
---|
8521 | _ACEOF |
---|
8522 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8524 | (eval $ac_link) 2>conftest.er1 |
---|
8525 | ac_status=$? |
---|
8526 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8527 | rm -f conftest.er1 |
---|
8528 | cat conftest.err >&5 |
---|
8529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8530 | (exit $ac_status); } && |
---|
8531 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8532 | || test ! -s conftest.err' |
---|
8533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8534 | (eval $ac_try) 2>&5 |
---|
8535 | ac_status=$? |
---|
8536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8537 | (exit $ac_status); }; } && |
---|
8538 | { ac_try='test -s conftest$ac_exeext' |
---|
8539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8540 | (eval $ac_try) 2>&5 |
---|
8541 | ac_status=$? |
---|
8542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8543 | (exit $ac_status); }; }; then |
---|
8544 | |
---|
8545 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8546 | }'` |
---|
8547 | # Check for a 64-bit object if we didn't find anything. |
---|
8548 | 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; } |
---|
8549 | }'`; fi |
---|
8550 | else |
---|
8551 | echo "$as_me: failed program was:" >&5 |
---|
8552 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8553 | |
---|
8554 | fi |
---|
8555 | rm -f conftest.err conftest.$ac_objext \ |
---|
8556 | conftest$ac_exeext conftest.$ac_ext |
---|
8557 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
8558 | |
---|
8559 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
8560 | 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" |
---|
8561 | else |
---|
8562 | if test "$host_cpu" = ia64; then |
---|
8563 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
8564 | allow_undefined_flag="-z nodefs" |
---|
8565 | 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" |
---|
8566 | else |
---|
8567 | # Determine the default libpath from the value encoded in an empty executable. |
---|
8568 | cat >conftest.$ac_ext <<_ACEOF |
---|
8569 | /* confdefs.h. */ |
---|
8570 | _ACEOF |
---|
8571 | cat confdefs.h >>conftest.$ac_ext |
---|
8572 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8573 | /* end confdefs.h. */ |
---|
8574 | |
---|
8575 | int |
---|
8576 | main () |
---|
8577 | { |
---|
8578 | |
---|
8579 | ; |
---|
8580 | return 0; |
---|
8581 | } |
---|
8582 | _ACEOF |
---|
8583 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8585 | (eval $ac_link) 2>conftest.er1 |
---|
8586 | ac_status=$? |
---|
8587 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8588 | rm -f conftest.er1 |
---|
8589 | cat conftest.err >&5 |
---|
8590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8591 | (exit $ac_status); } && |
---|
8592 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8593 | || test ! -s conftest.err' |
---|
8594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8595 | (eval $ac_try) 2>&5 |
---|
8596 | ac_status=$? |
---|
8597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8598 | (exit $ac_status); }; } && |
---|
8599 | { ac_try='test -s conftest$ac_exeext' |
---|
8600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8601 | (eval $ac_try) 2>&5 |
---|
8602 | ac_status=$? |
---|
8603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8604 | (exit $ac_status); }; }; then |
---|
8605 | |
---|
8606 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8607 | }'` |
---|
8608 | # Check for a 64-bit object if we didn't find anything. |
---|
8609 | 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; } |
---|
8610 | }'`; fi |
---|
8611 | else |
---|
8612 | echo "$as_me: failed program was:" >&5 |
---|
8613 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8614 | |
---|
8615 | fi |
---|
8616 | rm -f conftest.err conftest.$ac_objext \ |
---|
8617 | conftest$ac_exeext conftest.$ac_ext |
---|
8618 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
8619 | |
---|
8620 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
8621 | # Warning - without using the other run time loading flags, |
---|
8622 | # -berok will link without error, but may produce a broken library. |
---|
8623 | no_undefined_flag=' ${wl}-bernotok' |
---|
8624 | allow_undefined_flag=' ${wl}-berok' |
---|
8625 | # Exported symbols can be pulled into shared objects from archives |
---|
8626 | whole_archive_flag_spec='$convenience' |
---|
8627 | archive_cmds_need_lc=yes |
---|
8628 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
8629 | 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' |
---|
8630 | fi |
---|
8631 | fi |
---|
8632 | ;; |
---|
8633 | |
---|
8634 | amigaos*) |
---|
8635 | 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)' |
---|
8636 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8637 | hardcode_minus_L=yes |
---|
8638 | # see comment about different semantics on the GNU ld section |
---|
8639 | ld_shlibs=no |
---|
8640 | ;; |
---|
8641 | |
---|
8642 | bsdi[45]*) |
---|
8643 | export_dynamic_flag_spec=-rdynamic |
---|
8644 | ;; |
---|
8645 | |
---|
8646 | cygwin* | mingw* | pw32*) |
---|
8647 | # When not using gcc, we currently assume that we are using |
---|
8648 | # Microsoft Visual C++. |
---|
8649 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
8650 | # no search path for DLLs. |
---|
8651 | hardcode_libdir_flag_spec=' ' |
---|
8652 | allow_undefined_flag=unsupported |
---|
8653 | # Tell ltmain to make .lib files, not .a files. |
---|
8654 | libext=lib |
---|
8655 | # Tell ltmain to make .dll files, not .so files. |
---|
8656 | shrext_cmds=".dll" |
---|
8657 | # FIXME: Setting linknames here is a bad hack. |
---|
8658 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
8659 | # The linker will automatically build a .lib file if we build a DLL. |
---|
8660 | old_archive_From_new_cmds='true' |
---|
8661 | # FIXME: Should let the user specify the lib program. |
---|
8662 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
8663 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
8664 | enable_shared_with_static_runtimes=yes |
---|
8665 | ;; |
---|
8666 | |
---|
8667 | darwin* | rhapsody*) |
---|
8668 | case $host_os in |
---|
8669 | rhapsody* | darwin1.[012]) |
---|
8670 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
---|
8671 | ;; |
---|
8672 | *) # Darwin 1.3 on |
---|
8673 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
8674 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
8675 | else |
---|
8676 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
8677 | 10.[012]) |
---|
8678 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
8679 | ;; |
---|
8680 | 10.*) |
---|
8681 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
---|
8682 | ;; |
---|
8683 | esac |
---|
8684 | fi |
---|
8685 | ;; |
---|
8686 | esac |
---|
8687 | archive_cmds_need_lc=no |
---|
8688 | hardcode_direct=no |
---|
8689 | hardcode_automatic=yes |
---|
8690 | hardcode_shlibpath_var=unsupported |
---|
8691 | whole_archive_flag_spec='' |
---|
8692 | link_all_deplibs=yes |
---|
8693 | if test "$GCC" = yes ; then |
---|
8694 | output_verbose_link_cmd='echo' |
---|
8695 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
8696 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
8697 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
8698 | 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}' |
---|
8699 | 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}' |
---|
8700 | else |
---|
8701 | case $cc_basename in |
---|
8702 | xlc*) |
---|
8703 | output_verbose_link_cmd='echo' |
---|
8704 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
8705 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
8706 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
8707 | 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}' |
---|
8708 | 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}' |
---|
8709 | ;; |
---|
8710 | *) |
---|
8711 | ld_shlibs=no |
---|
8712 | ;; |
---|
8713 | esac |
---|
8714 | fi |
---|
8715 | ;; |
---|
8716 | |
---|
8717 | dgux*) |
---|
8718 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8719 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8720 | hardcode_shlibpath_var=no |
---|
8721 | ;; |
---|
8722 | |
---|
8723 | freebsd1*) |
---|
8724 | ld_shlibs=no |
---|
8725 | ;; |
---|
8726 | |
---|
8727 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
8728 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
8729 | # does not break anything, and helps significantly (at the cost of a little |
---|
8730 | # extra space). |
---|
8731 | freebsd2.2*) |
---|
8732 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
8733 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8734 | hardcode_direct=yes |
---|
8735 | hardcode_shlibpath_var=no |
---|
8736 | ;; |
---|
8737 | |
---|
8738 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
8739 | freebsd2*) |
---|
8740 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8741 | hardcode_direct=yes |
---|
8742 | hardcode_minus_L=yes |
---|
8743 | hardcode_shlibpath_var=no |
---|
8744 | ;; |
---|
8745 | |
---|
8746 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
8747 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
8748 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
8749 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8750 | hardcode_direct=yes |
---|
8751 | hardcode_shlibpath_var=no |
---|
8752 | ;; |
---|
8753 | |
---|
8754 | hpux9*) |
---|
8755 | if test "$GCC" = yes; then |
---|
8756 | 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' |
---|
8757 | else |
---|
8758 | 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' |
---|
8759 | fi |
---|
8760 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8761 | hardcode_libdir_separator=: |
---|
8762 | hardcode_direct=yes |
---|
8763 | |
---|
8764 | # hardcode_minus_L: Not really in the search PATH, |
---|
8765 | # but as the default location of the library. |
---|
8766 | hardcode_minus_L=yes |
---|
8767 | export_dynamic_flag_spec='${wl}-E' |
---|
8768 | ;; |
---|
8769 | |
---|
8770 | hpux10*) |
---|
8771 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
8772 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
8773 | else |
---|
8774 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
8775 | fi |
---|
8776 | if test "$with_gnu_ld" = no; then |
---|
8777 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8778 | hardcode_libdir_separator=: |
---|
8779 | |
---|
8780 | hardcode_direct=yes |
---|
8781 | export_dynamic_flag_spec='${wl}-E' |
---|
8782 | |
---|
8783 | # hardcode_minus_L: Not really in the search PATH, |
---|
8784 | # but as the default location of the library. |
---|
8785 | hardcode_minus_L=yes |
---|
8786 | fi |
---|
8787 | ;; |
---|
8788 | |
---|
8789 | hpux11*) |
---|
8790 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
8791 | case $host_cpu in |
---|
8792 | hppa*64*) |
---|
8793 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8794 | ;; |
---|
8795 | ia64*) |
---|
8796 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
8797 | ;; |
---|
8798 | *) |
---|
8799 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
8800 | ;; |
---|
8801 | esac |
---|
8802 | else |
---|
8803 | case $host_cpu in |
---|
8804 | hppa*64*) |
---|
8805 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8806 | ;; |
---|
8807 | ia64*) |
---|
8808 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
8809 | ;; |
---|
8810 | *) |
---|
8811 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
8812 | ;; |
---|
8813 | esac |
---|
8814 | fi |
---|
8815 | if test "$with_gnu_ld" = no; then |
---|
8816 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8817 | hardcode_libdir_separator=: |
---|
8818 | |
---|
8819 | case $host_cpu in |
---|
8820 | hppa*64*|ia64*) |
---|
8821 | hardcode_libdir_flag_spec_ld='+b $libdir' |
---|
8822 | hardcode_direct=no |
---|
8823 | hardcode_shlibpath_var=no |
---|
8824 | ;; |
---|
8825 | *) |
---|
8826 | hardcode_direct=yes |
---|
8827 | export_dynamic_flag_spec='${wl}-E' |
---|
8828 | |
---|
8829 | # hardcode_minus_L: Not really in the search PATH, |
---|
8830 | # but as the default location of the library. |
---|
8831 | hardcode_minus_L=yes |
---|
8832 | ;; |
---|
8833 | esac |
---|
8834 | fi |
---|
8835 | ;; |
---|
8836 | |
---|
8837 | irix5* | irix6* | nonstopux*) |
---|
8838 | if test "$GCC" = yes; then |
---|
8839 | 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' |
---|
8840 | else |
---|
8841 | 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' |
---|
8842 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
---|
8843 | fi |
---|
8844 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8845 | hardcode_libdir_separator=: |
---|
8846 | link_all_deplibs=yes |
---|
8847 | ;; |
---|
8848 | |
---|
8849 | netbsd*) |
---|
8850 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
8851 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
8852 | else |
---|
8853 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
8854 | fi |
---|
8855 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8856 | hardcode_direct=yes |
---|
8857 | hardcode_shlibpath_var=no |
---|
8858 | ;; |
---|
8859 | |
---|
8860 | newsos6) |
---|
8861 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8862 | hardcode_direct=yes |
---|
8863 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8864 | hardcode_libdir_separator=: |
---|
8865 | hardcode_shlibpath_var=no |
---|
8866 | ;; |
---|
8867 | |
---|
8868 | openbsd*) |
---|
8869 | hardcode_direct=yes |
---|
8870 | hardcode_shlibpath_var=no |
---|
8871 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
8872 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
8873 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
8874 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
8875 | export_dynamic_flag_spec='${wl}-E' |
---|
8876 | else |
---|
8877 | case $host_os in |
---|
8878 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
8879 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8880 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8881 | ;; |
---|
8882 | *) |
---|
8883 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
8884 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
8885 | ;; |
---|
8886 | esac |
---|
8887 | fi |
---|
8888 | ;; |
---|
8889 | |
---|
8890 | os2*) |
---|
8891 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8892 | hardcode_minus_L=yes |
---|
8893 | allow_undefined_flag=unsupported |
---|
8894 | 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' |
---|
8895 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
8896 | ;; |
---|
8897 | |
---|
8898 | osf3*) |
---|
8899 | if test "$GCC" = yes; then |
---|
8900 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
8901 | 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' |
---|
8902 | else |
---|
8903 | allow_undefined_flag=' -expect_unresolved \*' |
---|
8904 | 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' |
---|
8905 | fi |
---|
8906 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8907 | hardcode_libdir_separator=: |
---|
8908 | ;; |
---|
8909 | |
---|
8910 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
8911 | if test "$GCC" = yes; then |
---|
8912 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
8913 | 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' |
---|
8914 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8915 | else |
---|
8916 | allow_undefined_flag=' -expect_unresolved \*' |
---|
8917 | 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' |
---|
8918 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
8919 | $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' |
---|
8920 | |
---|
8921 | # Both c and cxx compiler support -rpath directly |
---|
8922 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
8923 | fi |
---|
8924 | hardcode_libdir_separator=: |
---|
8925 | ;; |
---|
8926 | |
---|
8927 | solaris*) |
---|
8928 | no_undefined_flag=' -z text' |
---|
8929 | if test "$GCC" = yes; then |
---|
8930 | wlarc='${wl}' |
---|
8931 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8932 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
8933 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
8934 | else |
---|
8935 | wlarc='' |
---|
8936 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8937 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
8938 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
8939 | fi |
---|
8940 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8941 | hardcode_shlibpath_var=no |
---|
8942 | case $host_os in |
---|
8943 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
8944 | *) |
---|
8945 | # The compiler driver will combine linker options so we |
---|
8946 | # cannot just pass the convience library names through |
---|
8947 | # without $wl, iff we do not link with $LD. |
---|
8948 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
---|
8949 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
8950 | case $wlarc in |
---|
8951 | '') |
---|
8952 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
---|
8953 | *) |
---|
8954 | 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' ;; |
---|
8955 | esac ;; |
---|
8956 | esac |
---|
8957 | link_all_deplibs=yes |
---|
8958 | ;; |
---|
8959 | |
---|
8960 | sunos4*) |
---|
8961 | if test "x$host_vendor" = xsequent; then |
---|
8962 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
8963 | # files that make .init and .fini sections work. |
---|
8964 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8965 | else |
---|
8966 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
8967 | fi |
---|
8968 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8969 | hardcode_direct=yes |
---|
8970 | hardcode_minus_L=yes |
---|
8971 | hardcode_shlibpath_var=no |
---|
8972 | ;; |
---|
8973 | |
---|
8974 | sysv4) |
---|
8975 | case $host_vendor in |
---|
8976 | sni) |
---|
8977 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8978 | hardcode_direct=yes # is this really true??? |
---|
8979 | ;; |
---|
8980 | siemens) |
---|
8981 | ## LD is ld it makes a PLAMLIB |
---|
8982 | ## CC just makes a GrossModule. |
---|
8983 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
8984 | reload_cmds='$CC -r -o $output$reload_objs' |
---|
8985 | hardcode_direct=no |
---|
8986 | ;; |
---|
8987 | motorola) |
---|
8988 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8989 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
8990 | ;; |
---|
8991 | esac |
---|
8992 | runpath_var='LD_RUN_PATH' |
---|
8993 | hardcode_shlibpath_var=no |
---|
8994 | ;; |
---|
8995 | |
---|
8996 | sysv4.3*) |
---|
8997 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8998 | hardcode_shlibpath_var=no |
---|
8999 | export_dynamic_flag_spec='-Bexport' |
---|
9000 | ;; |
---|
9001 | |
---|
9002 | sysv4*MP*) |
---|
9003 | if test -d /usr/nec; then |
---|
9004 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9005 | hardcode_shlibpath_var=no |
---|
9006 | runpath_var=LD_RUN_PATH |
---|
9007 | hardcode_runpath_var=yes |
---|
9008 | ld_shlibs=yes |
---|
9009 | fi |
---|
9010 | ;; |
---|
9011 | |
---|
9012 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
---|
9013 | no_undefined_flag='${wl}-z,text' |
---|
9014 | archive_cmds_need_lc=no |
---|
9015 | hardcode_shlibpath_var=no |
---|
9016 | runpath_var='LD_RUN_PATH' |
---|
9017 | |
---|
9018 | if test "$GCC" = yes; then |
---|
9019 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9020 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9021 | else |
---|
9022 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9023 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9024 | fi |
---|
9025 | ;; |
---|
9026 | |
---|
9027 | sysv5* | sco3.2v5* | sco5v6*) |
---|
9028 | # Note: We can NOT use -z defs as we might desire, because we do not |
---|
9029 | # link with -lc, and that would cause any symbols used from libc to |
---|
9030 | # always be unresolved, which means just about no library would |
---|
9031 | # ever link correctly. If we're not using GNU ld we use -z text |
---|
9032 | # though, which does catch some bad symbols but isn't as heavy-handed |
---|
9033 | # as -z defs. |
---|
9034 | no_undefined_flag='${wl}-z,text' |
---|
9035 | allow_undefined_flag='${wl}-z,nodefs' |
---|
9036 | archive_cmds_need_lc=no |
---|
9037 | hardcode_shlibpath_var=no |
---|
9038 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
---|
9039 | hardcode_libdir_separator=':' |
---|
9040 | link_all_deplibs=yes |
---|
9041 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
9042 | runpath_var='LD_RUN_PATH' |
---|
9043 | |
---|
9044 | if test "$GCC" = yes; then |
---|
9045 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9046 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9047 | else |
---|
9048 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9049 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9050 | fi |
---|
9051 | ;; |
---|
9052 | |
---|
9053 | uts4*) |
---|
9054 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9055 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9056 | hardcode_shlibpath_var=no |
---|
9057 | ;; |
---|
9058 | |
---|
9059 | *) |
---|
9060 | ld_shlibs=no |
---|
9061 | ;; |
---|
9062 | esac |
---|
9063 | fi |
---|
9064 | |
---|
9065 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
---|
9066 | echo "${ECHO_T}$ld_shlibs" >&6 |
---|
9067 | test "$ld_shlibs" = no && can_build_shared=no |
---|
9068 | |
---|
9069 | # |
---|
9070 | # Do we need to explicitly link libc? |
---|
9071 | # |
---|
9072 | case "x$archive_cmds_need_lc" in |
---|
9073 | x|xyes) |
---|
9074 | # Assume -lc should be added |
---|
9075 | archive_cmds_need_lc=yes |
---|
9076 | |
---|
9077 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
9078 | case $archive_cmds in |
---|
9079 | *'~'*) |
---|
9080 | # FIXME: we may have to deal with multi-command sequences. |
---|
9081 | ;; |
---|
9082 | '$CC '*) |
---|
9083 | # Test whether the compiler implicitly links with -lc since on some |
---|
9084 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
9085 | # to ld, don't add -lc before -lgcc. |
---|
9086 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
9087 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
9088 | $rm conftest* |
---|
9089 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9090 | |
---|
9091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9092 | (eval $ac_compile) 2>&5 |
---|
9093 | ac_status=$? |
---|
9094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9095 | (exit $ac_status); } 2>conftest.err; then |
---|
9096 | soname=conftest |
---|
9097 | lib=conftest |
---|
9098 | libobjs=conftest.$ac_objext |
---|
9099 | deplibs= |
---|
9100 | wl=$lt_prog_compiler_wl |
---|
9101 | pic_flag=$lt_prog_compiler_pic |
---|
9102 | compiler_flags=-v |
---|
9103 | linker_flags=-v |
---|
9104 | verstring= |
---|
9105 | output_objdir=. |
---|
9106 | libname=conftest |
---|
9107 | lt_save_allow_undefined_flag=$allow_undefined_flag |
---|
9108 | allow_undefined_flag= |
---|
9109 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
9110 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
9111 | ac_status=$? |
---|
9112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9113 | (exit $ac_status); } |
---|
9114 | then |
---|
9115 | archive_cmds_need_lc=no |
---|
9116 | else |
---|
9117 | archive_cmds_need_lc=yes |
---|
9118 | fi |
---|
9119 | allow_undefined_flag=$lt_save_allow_undefined_flag |
---|
9120 | else |
---|
9121 | cat conftest.err 1>&5 |
---|
9122 | fi |
---|
9123 | $rm conftest* |
---|
9124 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
---|
9125 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
---|
9126 | ;; |
---|
9127 | esac |
---|
9128 | fi |
---|
9129 | ;; |
---|
9130 | esac |
---|
9131 | |
---|
9132 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
9133 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
9134 | library_names_spec= |
---|
9135 | libname_spec='lib$name' |
---|
9136 | soname_spec= |
---|
9137 | shrext_cmds=".so" |
---|
9138 | postinstall_cmds= |
---|
9139 | postuninstall_cmds= |
---|
9140 | finish_cmds= |
---|
9141 | finish_eval= |
---|
9142 | shlibpath_var= |
---|
9143 | shlibpath_overrides_runpath=unknown |
---|
9144 | version_type=none |
---|
9145 | dynamic_linker="$host_os ld.so" |
---|
9146 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
9147 | if test "$GCC" = yes; then |
---|
9148 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
9149 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
9150 | # if the path contains ";" then we assume it to be the separator |
---|
9151 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
9152 | # assumed that no part of a normal pathname contains ";" but that should |
---|
9153 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
9154 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
9155 | else |
---|
9156 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
9157 | fi |
---|
9158 | else |
---|
9159 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
9160 | fi |
---|
9161 | need_lib_prefix=unknown |
---|
9162 | hardcode_into_libs=no |
---|
9163 | |
---|
9164 | # when you set need_version to no, make sure it does not cause -set_version |
---|
9165 | # flags to be left without arguments |
---|
9166 | need_version=unknown |
---|
9167 | |
---|
9168 | case $host_os in |
---|
9169 | aix3*) |
---|
9170 | version_type=linux |
---|
9171 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
9172 | shlibpath_var=LIBPATH |
---|
9173 | |
---|
9174 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
9175 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9176 | ;; |
---|
9177 | |
---|
9178 | aix4* | aix5*) |
---|
9179 | version_type=linux |
---|
9180 | need_lib_prefix=no |
---|
9181 | need_version=no |
---|
9182 | hardcode_into_libs=yes |
---|
9183 | if test "$host_cpu" = ia64; then |
---|
9184 | # AIX 5 supports IA64 |
---|
9185 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
9186 | shlibpath_var=LD_LIBRARY_PATH |
---|
9187 | else |
---|
9188 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
9189 | # for dependence libraries. The import file would start with |
---|
9190 | # the line `#! .'. This would cause the generated library to |
---|
9191 | # depend on `.', always an invalid library. This was fixed in |
---|
9192 | # development snapshots of GCC prior to 3.0. |
---|
9193 | case $host_os in |
---|
9194 | aix4 | aix4.[01] | aix4.[01].*) |
---|
9195 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
9196 | echo ' yes ' |
---|
9197 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
9198 | : |
---|
9199 | else |
---|
9200 | can_build_shared=no |
---|
9201 | fi |
---|
9202 | ;; |
---|
9203 | esac |
---|
9204 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
9205 | # soname into executable. Probably we can add versioning support to |
---|
9206 | # collect2, so additional links can be useful in future. |
---|
9207 | if test "$aix_use_runtimelinking" = yes; then |
---|
9208 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
9209 | # instead of lib<name>.a to let people know that these are not |
---|
9210 | # typical AIX shared libraries. |
---|
9211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9212 | else |
---|
9213 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
9214 | # and later when we are not doing run time linking. |
---|
9215 | library_names_spec='${libname}${release}.a $libname.a' |
---|
9216 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9217 | fi |
---|
9218 | shlibpath_var=LIBPATH |
---|
9219 | fi |
---|
9220 | ;; |
---|
9221 | |
---|
9222 | amigaos*) |
---|
9223 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
9224 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
9225 | 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' |
---|
9226 | ;; |
---|
9227 | |
---|
9228 | beos*) |
---|
9229 | library_names_spec='${libname}${shared_ext}' |
---|
9230 | dynamic_linker="$host_os ld.so" |
---|
9231 | shlibpath_var=LIBRARY_PATH |
---|
9232 | ;; |
---|
9233 | |
---|
9234 | bsdi[45]*) |
---|
9235 | version_type=linux |
---|
9236 | need_version=no |
---|
9237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9238 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9239 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
9240 | shlibpath_var=LD_LIBRARY_PATH |
---|
9241 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
9242 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
9243 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
9244 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
9245 | # libtool to hard-code these into programs |
---|
9246 | ;; |
---|
9247 | |
---|
9248 | cygwin* | mingw* | pw32*) |
---|
9249 | version_type=windows |
---|
9250 | shrext_cmds=".dll" |
---|
9251 | need_version=no |
---|
9252 | need_lib_prefix=no |
---|
9253 | |
---|
9254 | case $GCC,$host_os in |
---|
9255 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
9256 | library_names_spec='$libname.dll.a' |
---|
9257 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
9258 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
9259 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
9260 | dldir=$destdir/`dirname \$dlpath`~ |
---|
9261 | test -d \$dldir || mkdir -p \$dldir~ |
---|
9262 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
9263 | chmod a+x \$dldir/$dlname' |
---|
9264 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
9265 | dlpath=$dir/\$dldll~ |
---|
9266 | $rm \$dlpath' |
---|
9267 | shlibpath_overrides_runpath=yes |
---|
9268 | |
---|
9269 | case $host_os in |
---|
9270 | cygwin*) |
---|
9271 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
9272 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9273 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
9274 | ;; |
---|
9275 | mingw*) |
---|
9276 | # MinGW DLLs use traditional 'lib' prefix |
---|
9277 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9278 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
9279 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
9280 | # It is most probably a Windows format PATH printed by |
---|
9281 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
9282 | # path with ; separators, and with drive letters. We can handle the |
---|
9283 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
9284 | # especially as we might pass files found there to a mingw objdump, |
---|
9285 | # which wouldn't understand a cygwinified path. Ahh. |
---|
9286 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
9287 | else |
---|
9288 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
9289 | fi |
---|
9290 | ;; |
---|
9291 | pw32*) |
---|
9292 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
9293 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9294 | ;; |
---|
9295 | esac |
---|
9296 | ;; |
---|
9297 | |
---|
9298 | *) |
---|
9299 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
9300 | ;; |
---|
9301 | esac |
---|
9302 | dynamic_linker='Win32 ld.exe' |
---|
9303 | # FIXME: first we should search . and the directory the executable is in |
---|
9304 | shlibpath_var=PATH |
---|
9305 | ;; |
---|
9306 | |
---|
9307 | darwin* | rhapsody*) |
---|
9308 | dynamic_linker="$host_os dyld" |
---|
9309 | version_type=darwin |
---|
9310 | need_lib_prefix=no |
---|
9311 | need_version=no |
---|
9312 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
9313 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
9314 | shlibpath_overrides_runpath=yes |
---|
9315 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
9316 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
9317 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
9318 | if test "$GCC" = yes; then |
---|
9319 | 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"` |
---|
9320 | else |
---|
9321 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
9322 | fi |
---|
9323 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
9324 | ;; |
---|
9325 | |
---|
9326 | dgux*) |
---|
9327 | version_type=linux |
---|
9328 | need_lib_prefix=no |
---|
9329 | need_version=no |
---|
9330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
9331 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9332 | shlibpath_var=LD_LIBRARY_PATH |
---|
9333 | ;; |
---|
9334 | |
---|
9335 | freebsd1*) |
---|
9336 | dynamic_linker=no |
---|
9337 | ;; |
---|
9338 | |
---|
9339 | kfreebsd*-gnu) |
---|
9340 | version_type=linux |
---|
9341 | need_lib_prefix=no |
---|
9342 | need_version=no |
---|
9343 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9344 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9345 | shlibpath_var=LD_LIBRARY_PATH |
---|
9346 | shlibpath_overrides_runpath=no |
---|
9347 | hardcode_into_libs=yes |
---|
9348 | dynamic_linker='GNU ld.so' |
---|
9349 | ;; |
---|
9350 | |
---|
9351 | freebsd* | dragonfly*) |
---|
9352 | # DragonFly does not have aout. When/if they implement a new |
---|
9353 | # versioning mechanism, adjust this. |
---|
9354 | if test -x /usr/bin/objformat; then |
---|
9355 | objformat=`/usr/bin/objformat` |
---|
9356 | else |
---|
9357 | case $host_os in |
---|
9358 | freebsd[123]*) objformat=aout ;; |
---|
9359 | *) objformat=elf ;; |
---|
9360 | esac |
---|
9361 | fi |
---|
9362 | version_type=freebsd-$objformat |
---|
9363 | case $version_type in |
---|
9364 | freebsd-elf*) |
---|
9365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9366 | need_version=no |
---|
9367 | need_lib_prefix=no |
---|
9368 | ;; |
---|
9369 | freebsd-*) |
---|
9370 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
9371 | need_version=yes |
---|
9372 | ;; |
---|
9373 | esac |
---|
9374 | shlibpath_var=LD_LIBRARY_PATH |
---|
9375 | case $host_os in |
---|
9376 | freebsd2*) |
---|
9377 | shlibpath_overrides_runpath=yes |
---|
9378 | ;; |
---|
9379 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
9380 | shlibpath_overrides_runpath=yes |
---|
9381 | hardcode_into_libs=yes |
---|
9382 | ;; |
---|
9383 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
---|
9384 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
---|
9385 | shlibpath_overrides_runpath=no |
---|
9386 | hardcode_into_libs=yes |
---|
9387 | ;; |
---|
9388 | freebsd*) # from 4.6 on |
---|
9389 | shlibpath_overrides_runpath=yes |
---|
9390 | hardcode_into_libs=yes |
---|
9391 | ;; |
---|
9392 | esac |
---|
9393 | ;; |
---|
9394 | |
---|
9395 | gnu*) |
---|
9396 | version_type=linux |
---|
9397 | need_lib_prefix=no |
---|
9398 | need_version=no |
---|
9399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
9400 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9401 | shlibpath_var=LD_LIBRARY_PATH |
---|
9402 | hardcode_into_libs=yes |
---|
9403 | ;; |
---|
9404 | |
---|
9405 | hpux9* | hpux10* | hpux11*) |
---|
9406 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
9407 | # link against other versions. |
---|
9408 | version_type=sunos |
---|
9409 | need_lib_prefix=no |
---|
9410 | need_version=no |
---|
9411 | case $host_cpu in |
---|
9412 | ia64*) |
---|
9413 | shrext_cmds='.so' |
---|
9414 | hardcode_into_libs=yes |
---|
9415 | dynamic_linker="$host_os dld.so" |
---|
9416 | shlibpath_var=LD_LIBRARY_PATH |
---|
9417 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
9418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9419 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9420 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
9421 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
9422 | else |
---|
9423 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
9424 | fi |
---|
9425 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
9426 | ;; |
---|
9427 | hppa*64*) |
---|
9428 | shrext_cmds='.sl' |
---|
9429 | hardcode_into_libs=yes |
---|
9430 | dynamic_linker="$host_os dld.sl" |
---|
9431 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
9432 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
9433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9434 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9435 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
9436 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
9437 | ;; |
---|
9438 | *) |
---|
9439 | shrext_cmds='.sl' |
---|
9440 | dynamic_linker="$host_os dld.sl" |
---|
9441 | shlibpath_var=SHLIB_PATH |
---|
9442 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
9443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9444 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9445 | ;; |
---|
9446 | esac |
---|
9447 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
9448 | postinstall_cmds='chmod 555 $lib' |
---|
9449 | ;; |
---|
9450 | |
---|
9451 | interix3*) |
---|
9452 | version_type=linux |
---|
9453 | need_lib_prefix=no |
---|
9454 | need_version=no |
---|
9455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9456 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9457 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
---|
9458 | shlibpath_var=LD_LIBRARY_PATH |
---|
9459 | shlibpath_overrides_runpath=no |
---|
9460 | hardcode_into_libs=yes |
---|
9461 | ;; |
---|
9462 | |
---|
9463 | irix5* | irix6* | nonstopux*) |
---|
9464 | case $host_os in |
---|
9465 | nonstopux*) version_type=nonstopux ;; |
---|
9466 | *) |
---|
9467 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
9468 | version_type=linux |
---|
9469 | else |
---|
9470 | version_type=irix |
---|
9471 | fi ;; |
---|
9472 | esac |
---|
9473 | need_lib_prefix=no |
---|
9474 | need_version=no |
---|
9475 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9477 | case $host_os in |
---|
9478 | irix5* | nonstopux*) |
---|
9479 | libsuff= shlibsuff= |
---|
9480 | ;; |
---|
9481 | *) |
---|
9482 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
9483 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
9484 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
9485 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
9486 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
9487 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
9488 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
9489 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
9490 | esac |
---|
9491 | ;; |
---|
9492 | esac |
---|
9493 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
9494 | shlibpath_overrides_runpath=no |
---|
9495 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
9496 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
9497 | hardcode_into_libs=yes |
---|
9498 | ;; |
---|
9499 | |
---|
9500 | # No shared lib support for Linux oldld, aout, or coff. |
---|
9501 | linux*oldld* | linux*aout* | linux*coff*) |
---|
9502 | dynamic_linker=no |
---|
9503 | ;; |
---|
9504 | |
---|
9505 | # This must be Linux ELF. |
---|
9506 | linux*) |
---|
9507 | version_type=linux |
---|
9508 | need_lib_prefix=no |
---|
9509 | need_version=no |
---|
9510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9511 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9512 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
9513 | shlibpath_var=LD_LIBRARY_PATH |
---|
9514 | shlibpath_overrides_runpath=no |
---|
9515 | # This implies no fast_install, which is unacceptable. |
---|
9516 | # Some rework will be needed to allow for fast_install |
---|
9517 | # before this can be enabled. |
---|
9518 | hardcode_into_libs=yes |
---|
9519 | |
---|
9520 | # Append ld.so.conf contents to the search path |
---|
9521 | if test -f /etc/ld.so.conf; then |
---|
9522 | 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' ' '` |
---|
9523 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
9524 | fi |
---|
9525 | |
---|
9526 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
9527 | # powerpc, because MkLinux only supported shared libraries with the |
---|
9528 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
9529 | # most powerpc-linux boxes support dynamic linking these days and |
---|
9530 | # people can always --disable-shared, the test was removed, and we |
---|
9531 | # assume the GNU/Linux dynamic linker is in use. |
---|
9532 | dynamic_linker='GNU/Linux ld.so' |
---|
9533 | ;; |
---|
9534 | |
---|
9535 | knetbsd*-gnu) |
---|
9536 | version_type=linux |
---|
9537 | need_lib_prefix=no |
---|
9538 | need_version=no |
---|
9539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9540 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9541 | shlibpath_var=LD_LIBRARY_PATH |
---|
9542 | shlibpath_overrides_runpath=no |
---|
9543 | hardcode_into_libs=yes |
---|
9544 | dynamic_linker='GNU ld.so' |
---|
9545 | ;; |
---|
9546 | |
---|
9547 | netbsd*) |
---|
9548 | version_type=sunos |
---|
9549 | need_lib_prefix=no |
---|
9550 | need_version=no |
---|
9551 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
9552 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9553 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
9554 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
9555 | else |
---|
9556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9557 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9558 | dynamic_linker='NetBSD ld.elf_so' |
---|
9559 | fi |
---|
9560 | shlibpath_var=LD_LIBRARY_PATH |
---|
9561 | shlibpath_overrides_runpath=yes |
---|
9562 | hardcode_into_libs=yes |
---|
9563 | ;; |
---|
9564 | |
---|
9565 | newsos6) |
---|
9566 | version_type=linux |
---|
9567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9568 | shlibpath_var=LD_LIBRARY_PATH |
---|
9569 | shlibpath_overrides_runpath=yes |
---|
9570 | ;; |
---|
9571 | |
---|
9572 | nto-qnx*) |
---|
9573 | version_type=linux |
---|
9574 | need_lib_prefix=no |
---|
9575 | need_version=no |
---|
9576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9577 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9578 | shlibpath_var=LD_LIBRARY_PATH |
---|
9579 | shlibpath_overrides_runpath=yes |
---|
9580 | ;; |
---|
9581 | |
---|
9582 | openbsd*) |
---|
9583 | version_type=sunos |
---|
9584 | sys_lib_dlsearch_path_spec="/usr/lib" |
---|
9585 | need_lib_prefix=no |
---|
9586 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
9587 | case $host_os in |
---|
9588 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
9589 | *) need_version=no ;; |
---|
9590 | esac |
---|
9591 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9592 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
9593 | shlibpath_var=LD_LIBRARY_PATH |
---|
9594 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
9595 | case $host_os in |
---|
9596 | openbsd2.[89] | openbsd2.[89].*) |
---|
9597 | shlibpath_overrides_runpath=no |
---|
9598 | ;; |
---|
9599 | *) |
---|
9600 | shlibpath_overrides_runpath=yes |
---|
9601 | ;; |
---|
9602 | esac |
---|
9603 | else |
---|
9604 | shlibpath_overrides_runpath=yes |
---|
9605 | fi |
---|
9606 | ;; |
---|
9607 | |
---|
9608 | os2*) |
---|
9609 | libname_spec='$name' |
---|
9610 | shrext_cmds=".dll" |
---|
9611 | need_lib_prefix=no |
---|
9612 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
9613 | dynamic_linker='OS/2 ld.exe' |
---|
9614 | shlibpath_var=LIBPATH |
---|
9615 | ;; |
---|
9616 | |
---|
9617 | osf3* | osf4* | osf5*) |
---|
9618 | version_type=osf |
---|
9619 | need_lib_prefix=no |
---|
9620 | need_version=no |
---|
9621 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9623 | shlibpath_var=LD_LIBRARY_PATH |
---|
9624 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
9625 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
9626 | ;; |
---|
9627 | |
---|
9628 | solaris*) |
---|
9629 | version_type=linux |
---|
9630 | need_lib_prefix=no |
---|
9631 | need_version=no |
---|
9632 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9633 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9634 | shlibpath_var=LD_LIBRARY_PATH |
---|
9635 | shlibpath_overrides_runpath=yes |
---|
9636 | hardcode_into_libs=yes |
---|
9637 | # ldd complains unless libraries are executable |
---|
9638 | postinstall_cmds='chmod +x $lib' |
---|
9639 | ;; |
---|
9640 | |
---|
9641 | sunos4*) |
---|
9642 | version_type=sunos |
---|
9643 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9644 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
9645 | shlibpath_var=LD_LIBRARY_PATH |
---|
9646 | shlibpath_overrides_runpath=yes |
---|
9647 | if test "$with_gnu_ld" = yes; then |
---|
9648 | need_lib_prefix=no |
---|
9649 | fi |
---|
9650 | need_version=yes |
---|
9651 | ;; |
---|
9652 | |
---|
9653 | sysv4 | sysv4.3*) |
---|
9654 | version_type=linux |
---|
9655 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9656 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9657 | shlibpath_var=LD_LIBRARY_PATH |
---|
9658 | case $host_vendor in |
---|
9659 | sni) |
---|
9660 | shlibpath_overrides_runpath=no |
---|
9661 | need_lib_prefix=no |
---|
9662 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
9663 | runpath_var=LD_RUN_PATH |
---|
9664 | ;; |
---|
9665 | siemens) |
---|
9666 | need_lib_prefix=no |
---|
9667 | ;; |
---|
9668 | motorola) |
---|
9669 | need_lib_prefix=no |
---|
9670 | need_version=no |
---|
9671 | shlibpath_overrides_runpath=no |
---|
9672 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
9673 | ;; |
---|
9674 | esac |
---|
9675 | ;; |
---|
9676 | |
---|
9677 | sysv4*MP*) |
---|
9678 | if test -d /usr/nec ;then |
---|
9679 | version_type=linux |
---|
9680 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
9681 | soname_spec='$libname${shared_ext}.$major' |
---|
9682 | shlibpath_var=LD_LIBRARY_PATH |
---|
9683 | fi |
---|
9684 | ;; |
---|
9685 | |
---|
9686 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
9687 | version_type=freebsd-elf |
---|
9688 | need_lib_prefix=no |
---|
9689 | need_version=no |
---|
9690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9691 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9692 | shlibpath_var=LD_LIBRARY_PATH |
---|
9693 | hardcode_into_libs=yes |
---|
9694 | if test "$with_gnu_ld" = yes; then |
---|
9695 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
---|
9696 | shlibpath_overrides_runpath=no |
---|
9697 | else |
---|
9698 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
---|
9699 | shlibpath_overrides_runpath=yes |
---|
9700 | case $host_os in |
---|
9701 | sco3.2v5*) |
---|
9702 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
---|
9703 | ;; |
---|
9704 | esac |
---|
9705 | fi |
---|
9706 | sys_lib_dlsearch_path_spec='/usr/lib' |
---|
9707 | ;; |
---|
9708 | |
---|
9709 | uts4*) |
---|
9710 | version_type=linux |
---|
9711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9712 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9713 | shlibpath_var=LD_LIBRARY_PATH |
---|
9714 | ;; |
---|
9715 | |
---|
9716 | *) |
---|
9717 | dynamic_linker=no |
---|
9718 | ;; |
---|
9719 | esac |
---|
9720 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
9721 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
9722 | test "$dynamic_linker" = no && can_build_shared=no |
---|
9723 | |
---|
9724 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
9725 | if test "$GCC" = yes; then |
---|
9726 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
9727 | fi |
---|
9728 | |
---|
9729 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
9730 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
9731 | hardcode_action= |
---|
9732 | if test -n "$hardcode_libdir_flag_spec" || \ |
---|
9733 | test -n "$runpath_var" || \ |
---|
9734 | test "X$hardcode_automatic" = "Xyes" ; then |
---|
9735 | |
---|
9736 | # We can hardcode non-existant directories. |
---|
9737 | if test "$hardcode_direct" != no && |
---|
9738 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
9739 | # have to relink, otherwise we might link with an installed library |
---|
9740 | # when we should be linking with a yet-to-be-installed one |
---|
9741 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
---|
9742 | test "$hardcode_minus_L" != no; then |
---|
9743 | # Linking always hardcodes the temporary library directory. |
---|
9744 | hardcode_action=relink |
---|
9745 | else |
---|
9746 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
9747 | hardcode_action=immediate |
---|
9748 | fi |
---|
9749 | else |
---|
9750 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
9751 | # directories. |
---|
9752 | hardcode_action=unsupported |
---|
9753 | fi |
---|
9754 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
---|
9755 | echo "${ECHO_T}$hardcode_action" >&6 |
---|
9756 | |
---|
9757 | if test "$hardcode_action" = relink; then |
---|
9758 | # Fast installation is not supported |
---|
9759 | enable_fast_install=no |
---|
9760 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
9761 | test "$enable_shared" = no; then |
---|
9762 | # Fast installation is not necessary |
---|
9763 | enable_fast_install=needless |
---|
9764 | fi |
---|
9765 | |
---|
9766 | striplib= |
---|
9767 | old_striplib= |
---|
9768 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
9769 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
9770 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
9771 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
9772 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
9773 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9774 | echo "${ECHO_T}yes" >&6 |
---|
9775 | else |
---|
9776 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
9777 | case $host_os in |
---|
9778 | darwin*) |
---|
9779 | if test -n "$STRIP" ; then |
---|
9780 | striplib="$STRIP -x" |
---|
9781 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9782 | echo "${ECHO_T}yes" >&6 |
---|
9783 | else |
---|
9784 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9785 | echo "${ECHO_T}no" >&6 |
---|
9786 | fi |
---|
9787 | ;; |
---|
9788 | *) |
---|
9789 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9790 | echo "${ECHO_T}no" >&6 |
---|
9791 | ;; |
---|
9792 | esac |
---|
9793 | fi |
---|
9794 | |
---|
9795 | if test "x$enable_dlopen" != xyes; then |
---|
9796 | enable_dlopen=unknown |
---|
9797 | enable_dlopen_self=unknown |
---|
9798 | enable_dlopen_self_static=unknown |
---|
9799 | else |
---|
9800 | lt_cv_dlopen=no |
---|
9801 | lt_cv_dlopen_libs= |
---|
9802 | |
---|
9803 | case $host_os in |
---|
9804 | beos*) |
---|
9805 | lt_cv_dlopen="load_add_on" |
---|
9806 | lt_cv_dlopen_libs= |
---|
9807 | lt_cv_dlopen_self=yes |
---|
9808 | ;; |
---|
9809 | |
---|
9810 | mingw* | pw32*) |
---|
9811 | lt_cv_dlopen="LoadLibrary" |
---|
9812 | lt_cv_dlopen_libs= |
---|
9813 | ;; |
---|
9814 | |
---|
9815 | cygwin*) |
---|
9816 | lt_cv_dlopen="dlopen" |
---|
9817 | lt_cv_dlopen_libs= |
---|
9818 | ;; |
---|
9819 | |
---|
9820 | darwin*) |
---|
9821 | # if libdl is installed we need to link against it |
---|
9822 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
9823 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
9824 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
9825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9826 | else |
---|
9827 | ac_check_lib_save_LIBS=$LIBS |
---|
9828 | LIBS="-ldl $LIBS" |
---|
9829 | cat >conftest.$ac_ext <<_ACEOF |
---|
9830 | /* confdefs.h. */ |
---|
9831 | _ACEOF |
---|
9832 | cat confdefs.h >>conftest.$ac_ext |
---|
9833 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9834 | /* end confdefs.h. */ |
---|
9835 | |
---|
9836 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9837 | #ifdef __cplusplus |
---|
9838 | extern "C" |
---|
9839 | #endif |
---|
9840 | /* We use char because int might match the return type of a gcc2 |
---|
9841 | builtin and then its argument prototype would still apply. */ |
---|
9842 | char dlopen (); |
---|
9843 | int |
---|
9844 | main () |
---|
9845 | { |
---|
9846 | dlopen (); |
---|
9847 | ; |
---|
9848 | return 0; |
---|
9849 | } |
---|
9850 | _ACEOF |
---|
9851 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9853 | (eval $ac_link) 2>conftest.er1 |
---|
9854 | ac_status=$? |
---|
9855 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9856 | rm -f conftest.er1 |
---|
9857 | cat conftest.err >&5 |
---|
9858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9859 | (exit $ac_status); } && |
---|
9860 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9861 | || test ! -s conftest.err' |
---|
9862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9863 | (eval $ac_try) 2>&5 |
---|
9864 | ac_status=$? |
---|
9865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9866 | (exit $ac_status); }; } && |
---|
9867 | { ac_try='test -s conftest$ac_exeext' |
---|
9868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9869 | (eval $ac_try) 2>&5 |
---|
9870 | ac_status=$? |
---|
9871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9872 | (exit $ac_status); }; }; then |
---|
9873 | ac_cv_lib_dl_dlopen=yes |
---|
9874 | else |
---|
9875 | echo "$as_me: failed program was:" >&5 |
---|
9876 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9877 | |
---|
9878 | ac_cv_lib_dl_dlopen=no |
---|
9879 | fi |
---|
9880 | rm -f conftest.err conftest.$ac_objext \ |
---|
9881 | conftest$ac_exeext conftest.$ac_ext |
---|
9882 | LIBS=$ac_check_lib_save_LIBS |
---|
9883 | fi |
---|
9884 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
9885 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
9886 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
9887 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
9888 | else |
---|
9889 | |
---|
9890 | lt_cv_dlopen="dyld" |
---|
9891 | lt_cv_dlopen_libs= |
---|
9892 | lt_cv_dlopen_self=yes |
---|
9893 | |
---|
9894 | fi |
---|
9895 | |
---|
9896 | ;; |
---|
9897 | |
---|
9898 | *) |
---|
9899 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
9900 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
9901 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
9902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9903 | else |
---|
9904 | cat >conftest.$ac_ext <<_ACEOF |
---|
9905 | /* confdefs.h. */ |
---|
9906 | _ACEOF |
---|
9907 | cat confdefs.h >>conftest.$ac_ext |
---|
9908 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9909 | /* end confdefs.h. */ |
---|
9910 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
9911 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
9912 | #define shl_load innocuous_shl_load |
---|
9913 | |
---|
9914 | /* System header to define __stub macros and hopefully few prototypes, |
---|
9915 | which can conflict with char shl_load (); below. |
---|
9916 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
9917 | <limits.h> exists even on freestanding compilers. */ |
---|
9918 | |
---|
9919 | #ifdef __STDC__ |
---|
9920 | # include <limits.h> |
---|
9921 | #else |
---|
9922 | # include <assert.h> |
---|
9923 | #endif |
---|
9924 | |
---|
9925 | #undef shl_load |
---|
9926 | |
---|
9927 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9928 | #ifdef __cplusplus |
---|
9929 | extern "C" |
---|
9930 | { |
---|
9931 | #endif |
---|
9932 | /* We use char because int might match the return type of a gcc2 |
---|
9933 | builtin and then its argument prototype would still apply. */ |
---|
9934 | char shl_load (); |
---|
9935 | /* The GNU C library defines this for functions which it implements |
---|
9936 | to always fail with ENOSYS. Some functions are actually named |
---|
9937 | something starting with __ and the normal name is an alias. */ |
---|
9938 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
9939 | choke me |
---|
9940 | #else |
---|
9941 | char (*f) () = shl_load; |
---|
9942 | #endif |
---|
9943 | #ifdef __cplusplus |
---|
9944 | } |
---|
9945 | #endif |
---|
9946 | |
---|
9947 | int |
---|
9948 | main () |
---|
9949 | { |
---|
9950 | return f != shl_load; |
---|
9951 | ; |
---|
9952 | return 0; |
---|
9953 | } |
---|
9954 | _ACEOF |
---|
9955 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9957 | (eval $ac_link) 2>conftest.er1 |
---|
9958 | ac_status=$? |
---|
9959 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9960 | rm -f conftest.er1 |
---|
9961 | cat conftest.err >&5 |
---|
9962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9963 | (exit $ac_status); } && |
---|
9964 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9965 | || test ! -s conftest.err' |
---|
9966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9967 | (eval $ac_try) 2>&5 |
---|
9968 | ac_status=$? |
---|
9969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9970 | (exit $ac_status); }; } && |
---|
9971 | { ac_try='test -s conftest$ac_exeext' |
---|
9972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9973 | (eval $ac_try) 2>&5 |
---|
9974 | ac_status=$? |
---|
9975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9976 | (exit $ac_status); }; }; then |
---|
9977 | ac_cv_func_shl_load=yes |
---|
9978 | else |
---|
9979 | echo "$as_me: failed program was:" >&5 |
---|
9980 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9981 | |
---|
9982 | ac_cv_func_shl_load=no |
---|
9983 | fi |
---|
9984 | rm -f conftest.err conftest.$ac_objext \ |
---|
9985 | conftest$ac_exeext conftest.$ac_ext |
---|
9986 | fi |
---|
9987 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
9988 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
9989 | if test $ac_cv_func_shl_load = yes; then |
---|
9990 | lt_cv_dlopen="shl_load" |
---|
9991 | else |
---|
9992 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
9993 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
9994 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
9995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9996 | else |
---|
9997 | ac_check_lib_save_LIBS=$LIBS |
---|
9998 | LIBS="-ldld $LIBS" |
---|
9999 | cat >conftest.$ac_ext <<_ACEOF |
---|
10000 | /* confdefs.h. */ |
---|
10001 | _ACEOF |
---|
10002 | cat confdefs.h >>conftest.$ac_ext |
---|
10003 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10004 | /* end confdefs.h. */ |
---|
10005 | |
---|
10006 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10007 | #ifdef __cplusplus |
---|
10008 | extern "C" |
---|
10009 | #endif |
---|
10010 | /* We use char because int might match the return type of a gcc2 |
---|
10011 | builtin and then its argument prototype would still apply. */ |
---|
10012 | char shl_load (); |
---|
10013 | int |
---|
10014 | main () |
---|
10015 | { |
---|
10016 | shl_load (); |
---|
10017 | ; |
---|
10018 | return 0; |
---|
10019 | } |
---|
10020 | _ACEOF |
---|
10021 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10023 | (eval $ac_link) 2>conftest.er1 |
---|
10024 | ac_status=$? |
---|
10025 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10026 | rm -f conftest.er1 |
---|
10027 | cat conftest.err >&5 |
---|
10028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10029 | (exit $ac_status); } && |
---|
10030 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10031 | || test ! -s conftest.err' |
---|
10032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10033 | (eval $ac_try) 2>&5 |
---|
10034 | ac_status=$? |
---|
10035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10036 | (exit $ac_status); }; } && |
---|
10037 | { ac_try='test -s conftest$ac_exeext' |
---|
10038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10039 | (eval $ac_try) 2>&5 |
---|
10040 | ac_status=$? |
---|
10041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10042 | (exit $ac_status); }; }; then |
---|
10043 | ac_cv_lib_dld_shl_load=yes |
---|
10044 | else |
---|
10045 | echo "$as_me: failed program was:" >&5 |
---|
10046 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10047 | |
---|
10048 | ac_cv_lib_dld_shl_load=no |
---|
10049 | fi |
---|
10050 | rm -f conftest.err conftest.$ac_objext \ |
---|
10051 | conftest$ac_exeext conftest.$ac_ext |
---|
10052 | LIBS=$ac_check_lib_save_LIBS |
---|
10053 | fi |
---|
10054 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
10055 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
10056 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
10057 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
10058 | else |
---|
10059 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
10060 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
10061 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
10062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10063 | else |
---|
10064 | cat >conftest.$ac_ext <<_ACEOF |
---|
10065 | /* confdefs.h. */ |
---|
10066 | _ACEOF |
---|
10067 | cat confdefs.h >>conftest.$ac_ext |
---|
10068 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10069 | /* end confdefs.h. */ |
---|
10070 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
10071 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10072 | #define dlopen innocuous_dlopen |
---|
10073 | |
---|
10074 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10075 | which can conflict with char dlopen (); below. |
---|
10076 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10077 | <limits.h> exists even on freestanding compilers. */ |
---|
10078 | |
---|
10079 | #ifdef __STDC__ |
---|
10080 | # include <limits.h> |
---|
10081 | #else |
---|
10082 | # include <assert.h> |
---|
10083 | #endif |
---|
10084 | |
---|
10085 | #undef dlopen |
---|
10086 | |
---|
10087 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10088 | #ifdef __cplusplus |
---|
10089 | extern "C" |
---|
10090 | { |
---|
10091 | #endif |
---|
10092 | /* We use char because int might match the return type of a gcc2 |
---|
10093 | builtin and then its argument prototype would still apply. */ |
---|
10094 | char dlopen (); |
---|
10095 | /* The GNU C library defines this for functions which it implements |
---|
10096 | to always fail with ENOSYS. Some functions are actually named |
---|
10097 | something starting with __ and the normal name is an alias. */ |
---|
10098 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
10099 | choke me |
---|
10100 | #else |
---|
10101 | char (*f) () = dlopen; |
---|
10102 | #endif |
---|
10103 | #ifdef __cplusplus |
---|
10104 | } |
---|
10105 | #endif |
---|
10106 | |
---|
10107 | int |
---|
10108 | main () |
---|
10109 | { |
---|
10110 | return f != dlopen; |
---|
10111 | ; |
---|
10112 | return 0; |
---|
10113 | } |
---|
10114 | _ACEOF |
---|
10115 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10117 | (eval $ac_link) 2>conftest.er1 |
---|
10118 | ac_status=$? |
---|
10119 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10120 | rm -f conftest.er1 |
---|
10121 | cat conftest.err >&5 |
---|
10122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10123 | (exit $ac_status); } && |
---|
10124 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10125 | || test ! -s conftest.err' |
---|
10126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10127 | (eval $ac_try) 2>&5 |
---|
10128 | ac_status=$? |
---|
10129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10130 | (exit $ac_status); }; } && |
---|
10131 | { ac_try='test -s conftest$ac_exeext' |
---|
10132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10133 | (eval $ac_try) 2>&5 |
---|
10134 | ac_status=$? |
---|
10135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10136 | (exit $ac_status); }; }; then |
---|
10137 | ac_cv_func_dlopen=yes |
---|
10138 | else |
---|
10139 | echo "$as_me: failed program was:" >&5 |
---|
10140 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10141 | |
---|
10142 | ac_cv_func_dlopen=no |
---|
10143 | fi |
---|
10144 | rm -f conftest.err conftest.$ac_objext \ |
---|
10145 | conftest$ac_exeext conftest.$ac_ext |
---|
10146 | fi |
---|
10147 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
10148 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
---|
10149 | if test $ac_cv_func_dlopen = yes; then |
---|
10150 | lt_cv_dlopen="dlopen" |
---|
10151 | else |
---|
10152 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
10153 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
10154 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
10155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10156 | else |
---|
10157 | ac_check_lib_save_LIBS=$LIBS |
---|
10158 | LIBS="-ldl $LIBS" |
---|
10159 | cat >conftest.$ac_ext <<_ACEOF |
---|
10160 | /* confdefs.h. */ |
---|
10161 | _ACEOF |
---|
10162 | cat confdefs.h >>conftest.$ac_ext |
---|
10163 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10164 | /* end confdefs.h. */ |
---|
10165 | |
---|
10166 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10167 | #ifdef __cplusplus |
---|
10168 | extern "C" |
---|
10169 | #endif |
---|
10170 | /* We use char because int might match the return type of a gcc2 |
---|
10171 | builtin and then its argument prototype would still apply. */ |
---|
10172 | char dlopen (); |
---|
10173 | int |
---|
10174 | main () |
---|
10175 | { |
---|
10176 | dlopen (); |
---|
10177 | ; |
---|
10178 | return 0; |
---|
10179 | } |
---|
10180 | _ACEOF |
---|
10181 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10183 | (eval $ac_link) 2>conftest.er1 |
---|
10184 | ac_status=$? |
---|
10185 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10186 | rm -f conftest.er1 |
---|
10187 | cat conftest.err >&5 |
---|
10188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10189 | (exit $ac_status); } && |
---|
10190 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10191 | || test ! -s conftest.err' |
---|
10192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10193 | (eval $ac_try) 2>&5 |
---|
10194 | ac_status=$? |
---|
10195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10196 | (exit $ac_status); }; } && |
---|
10197 | { ac_try='test -s conftest$ac_exeext' |
---|
10198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10199 | (eval $ac_try) 2>&5 |
---|
10200 | ac_status=$? |
---|
10201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10202 | (exit $ac_status); }; }; then |
---|
10203 | ac_cv_lib_dl_dlopen=yes |
---|
10204 | else |
---|
10205 | echo "$as_me: failed program was:" >&5 |
---|
10206 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10207 | |
---|
10208 | ac_cv_lib_dl_dlopen=no |
---|
10209 | fi |
---|
10210 | rm -f conftest.err conftest.$ac_objext \ |
---|
10211 | conftest$ac_exeext conftest.$ac_ext |
---|
10212 | LIBS=$ac_check_lib_save_LIBS |
---|
10213 | fi |
---|
10214 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
10215 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
10216 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
10217 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
10218 | else |
---|
10219 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
10220 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
---|
10221 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
10222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10223 | else |
---|
10224 | ac_check_lib_save_LIBS=$LIBS |
---|
10225 | LIBS="-lsvld $LIBS" |
---|
10226 | cat >conftest.$ac_ext <<_ACEOF |
---|
10227 | /* confdefs.h. */ |
---|
10228 | _ACEOF |
---|
10229 | cat confdefs.h >>conftest.$ac_ext |
---|
10230 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10231 | /* end confdefs.h. */ |
---|
10232 | |
---|
10233 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10234 | #ifdef __cplusplus |
---|
10235 | extern "C" |
---|
10236 | #endif |
---|
10237 | /* We use char because int might match the return type of a gcc2 |
---|
10238 | builtin and then its argument prototype would still apply. */ |
---|
10239 | char dlopen (); |
---|
10240 | int |
---|
10241 | main () |
---|
10242 | { |
---|
10243 | dlopen (); |
---|
10244 | ; |
---|
10245 | return 0; |
---|
10246 | } |
---|
10247 | _ACEOF |
---|
10248 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10250 | (eval $ac_link) 2>conftest.er1 |
---|
10251 | ac_status=$? |
---|
10252 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10253 | rm -f conftest.er1 |
---|
10254 | cat conftest.err >&5 |
---|
10255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10256 | (exit $ac_status); } && |
---|
10257 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10258 | || test ! -s conftest.err' |
---|
10259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10260 | (eval $ac_try) 2>&5 |
---|
10261 | ac_status=$? |
---|
10262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10263 | (exit $ac_status); }; } && |
---|
10264 | { ac_try='test -s conftest$ac_exeext' |
---|
10265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10266 | (eval $ac_try) 2>&5 |
---|
10267 | ac_status=$? |
---|
10268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10269 | (exit $ac_status); }; }; then |
---|
10270 | ac_cv_lib_svld_dlopen=yes |
---|
10271 | else |
---|
10272 | echo "$as_me: failed program was:" >&5 |
---|
10273 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10274 | |
---|
10275 | ac_cv_lib_svld_dlopen=no |
---|
10276 | fi |
---|
10277 | rm -f conftest.err conftest.$ac_objext \ |
---|
10278 | conftest$ac_exeext conftest.$ac_ext |
---|
10279 | LIBS=$ac_check_lib_save_LIBS |
---|
10280 | fi |
---|
10281 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
10282 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
---|
10283 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
10284 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
10285 | else |
---|
10286 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
10287 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
---|
10288 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
10289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10290 | else |
---|
10291 | ac_check_lib_save_LIBS=$LIBS |
---|
10292 | LIBS="-ldld $LIBS" |
---|
10293 | cat >conftest.$ac_ext <<_ACEOF |
---|
10294 | /* confdefs.h. */ |
---|
10295 | _ACEOF |
---|
10296 | cat confdefs.h >>conftest.$ac_ext |
---|
10297 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10298 | /* end confdefs.h. */ |
---|
10299 | |
---|
10300 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10301 | #ifdef __cplusplus |
---|
10302 | extern "C" |
---|
10303 | #endif |
---|
10304 | /* We use char because int might match the return type of a gcc2 |
---|
10305 | builtin and then its argument prototype would still apply. */ |
---|
10306 | char dld_link (); |
---|
10307 | int |
---|
10308 | main () |
---|
10309 | { |
---|
10310 | dld_link (); |
---|
10311 | ; |
---|
10312 | return 0; |
---|
10313 | } |
---|
10314 | _ACEOF |
---|
10315 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10317 | (eval $ac_link) 2>conftest.er1 |
---|
10318 | ac_status=$? |
---|
10319 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10320 | rm -f conftest.er1 |
---|
10321 | cat conftest.err >&5 |
---|
10322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10323 | (exit $ac_status); } && |
---|
10324 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10325 | || test ! -s conftest.err' |
---|
10326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10327 | (eval $ac_try) 2>&5 |
---|
10328 | ac_status=$? |
---|
10329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10330 | (exit $ac_status); }; } && |
---|
10331 | { ac_try='test -s conftest$ac_exeext' |
---|
10332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10333 | (eval $ac_try) 2>&5 |
---|
10334 | ac_status=$? |
---|
10335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10336 | (exit $ac_status); }; }; then |
---|
10337 | ac_cv_lib_dld_dld_link=yes |
---|
10338 | else |
---|
10339 | echo "$as_me: failed program was:" >&5 |
---|
10340 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10341 | |
---|
10342 | ac_cv_lib_dld_dld_link=no |
---|
10343 | fi |
---|
10344 | rm -f conftest.err conftest.$ac_objext \ |
---|
10345 | conftest$ac_exeext conftest.$ac_ext |
---|
10346 | LIBS=$ac_check_lib_save_LIBS |
---|
10347 | fi |
---|
10348 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
10349 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
---|
10350 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
10351 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
10352 | fi |
---|
10353 | |
---|
10354 | |
---|
10355 | fi |
---|
10356 | |
---|
10357 | |
---|
10358 | fi |
---|
10359 | |
---|
10360 | |
---|
10361 | fi |
---|
10362 | |
---|
10363 | |
---|
10364 | fi |
---|
10365 | |
---|
10366 | |
---|
10367 | fi |
---|
10368 | |
---|
10369 | ;; |
---|
10370 | esac |
---|
10371 | |
---|
10372 | if test "x$lt_cv_dlopen" != xno; then |
---|
10373 | enable_dlopen=yes |
---|
10374 | else |
---|
10375 | enable_dlopen=no |
---|
10376 | fi |
---|
10377 | |
---|
10378 | case $lt_cv_dlopen in |
---|
10379 | dlopen) |
---|
10380 | save_CPPFLAGS="$CPPFLAGS" |
---|
10381 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
10382 | |
---|
10383 | save_LDFLAGS="$LDFLAGS" |
---|
10384 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
10385 | |
---|
10386 | save_LIBS="$LIBS" |
---|
10387 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
10388 | |
---|
10389 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
10390 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
---|
10391 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
10392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10393 | else |
---|
10394 | if test "$cross_compiling" = yes; then : |
---|
10395 | lt_cv_dlopen_self=cross |
---|
10396 | else |
---|
10397 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
10398 | lt_status=$lt_dlunknown |
---|
10399 | cat > conftest.$ac_ext <<EOF |
---|
10400 | #line 10400 "configure" |
---|
10401 | #include "confdefs.h" |
---|
10402 | |
---|
10403 | #if HAVE_DLFCN_H |
---|
10404 | #include <dlfcn.h> |
---|
10405 | #endif |
---|
10406 | |
---|
10407 | #include <stdio.h> |
---|
10408 | |
---|
10409 | #ifdef RTLD_GLOBAL |
---|
10410 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
10411 | #else |
---|
10412 | # ifdef DL_GLOBAL |
---|
10413 | # define LT_DLGLOBAL DL_GLOBAL |
---|
10414 | # else |
---|
10415 | # define LT_DLGLOBAL 0 |
---|
10416 | # endif |
---|
10417 | #endif |
---|
10418 | |
---|
10419 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
10420 | find out it does not work in some platform. */ |
---|
10421 | #ifndef LT_DLLAZY_OR_NOW |
---|
10422 | # ifdef RTLD_LAZY |
---|
10423 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
10424 | # else |
---|
10425 | # ifdef DL_LAZY |
---|
10426 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
10427 | # else |
---|
10428 | # ifdef RTLD_NOW |
---|
10429 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
10430 | # else |
---|
10431 | # ifdef DL_NOW |
---|
10432 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
10433 | # else |
---|
10434 | # define LT_DLLAZY_OR_NOW 0 |
---|
10435 | # endif |
---|
10436 | # endif |
---|
10437 | # endif |
---|
10438 | # endif |
---|
10439 | #endif |
---|
10440 | |
---|
10441 | #ifdef __cplusplus |
---|
10442 | extern "C" void exit (int); |
---|
10443 | #endif |
---|
10444 | |
---|
10445 | void fnord() { int i=42;} |
---|
10446 | int main () |
---|
10447 | { |
---|
10448 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
10449 | int status = $lt_dlunknown; |
---|
10450 | |
---|
10451 | if (self) |
---|
10452 | { |
---|
10453 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
10454 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
10455 | /* dlclose (self); */ |
---|
10456 | } |
---|
10457 | else |
---|
10458 | puts (dlerror ()); |
---|
10459 | |
---|
10460 | exit (status); |
---|
10461 | } |
---|
10462 | EOF |
---|
10463 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10464 | (eval $ac_link) 2>&5 |
---|
10465 | ac_status=$? |
---|
10466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10467 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
10468 | (./conftest; exit; ) >&5 2>/dev/null |
---|
10469 | lt_status=$? |
---|
10470 | case x$lt_status in |
---|
10471 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
10472 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
10473 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
---|
10474 | esac |
---|
10475 | else : |
---|
10476 | # compilation failed |
---|
10477 | lt_cv_dlopen_self=no |
---|
10478 | fi |
---|
10479 | fi |
---|
10480 | rm -fr conftest* |
---|
10481 | |
---|
10482 | |
---|
10483 | fi |
---|
10484 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
10485 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
---|
10486 | |
---|
10487 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
10488 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
---|
10489 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
10490 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
---|
10491 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
10492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10493 | else |
---|
10494 | if test "$cross_compiling" = yes; then : |
---|
10495 | lt_cv_dlopen_self_static=cross |
---|
10496 | else |
---|
10497 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
10498 | lt_status=$lt_dlunknown |
---|
10499 | cat > conftest.$ac_ext <<EOF |
---|
10500 | #line 10500 "configure" |
---|
10501 | #include "confdefs.h" |
---|
10502 | |
---|
10503 | #if HAVE_DLFCN_H |
---|
10504 | #include <dlfcn.h> |
---|
10505 | #endif |
---|
10506 | |
---|
10507 | #include <stdio.h> |
---|
10508 | |
---|
10509 | #ifdef RTLD_GLOBAL |
---|
10510 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
10511 | #else |
---|
10512 | # ifdef DL_GLOBAL |
---|
10513 | # define LT_DLGLOBAL DL_GLOBAL |
---|
10514 | # else |
---|
10515 | # define LT_DLGLOBAL 0 |
---|
10516 | # endif |
---|
10517 | #endif |
---|
10518 | |
---|
10519 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
10520 | find out it does not work in some platform. */ |
---|
10521 | #ifndef LT_DLLAZY_OR_NOW |
---|
10522 | # ifdef RTLD_LAZY |
---|
10523 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
10524 | # else |
---|
10525 | # ifdef DL_LAZY |
---|
10526 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
10527 | # else |
---|
10528 | # ifdef RTLD_NOW |
---|
10529 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
10530 | # else |
---|
10531 | # ifdef DL_NOW |
---|
10532 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
10533 | # else |
---|
10534 | # define LT_DLLAZY_OR_NOW 0 |
---|
10535 | # endif |
---|
10536 | # endif |
---|
10537 | # endif |
---|
10538 | # endif |
---|
10539 | #endif |
---|
10540 | |
---|
10541 | #ifdef __cplusplus |
---|
10542 | extern "C" void exit (int); |
---|
10543 | #endif |
---|
10544 | |
---|
10545 | void fnord() { int i=42;} |
---|
10546 | int main () |
---|
10547 | { |
---|
10548 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
10549 | int status = $lt_dlunknown; |
---|
10550 | |
---|
10551 | if (self) |
---|
10552 | { |
---|
10553 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
10554 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
10555 | /* dlclose (self); */ |
---|
10556 | } |
---|
10557 | else |
---|
10558 | puts (dlerror ()); |
---|
10559 | |
---|
10560 | exit (status); |
---|
10561 | } |
---|
10562 | EOF |
---|
10563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10564 | (eval $ac_link) 2>&5 |
---|
10565 | ac_status=$? |
---|
10566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10567 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
10568 | (./conftest; exit; ) >&5 2>/dev/null |
---|
10569 | lt_status=$? |
---|
10570 | case x$lt_status in |
---|
10571 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
10572 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
10573 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
10574 | esac |
---|
10575 | else : |
---|
10576 | # compilation failed |
---|
10577 | lt_cv_dlopen_self_static=no |
---|
10578 | fi |
---|
10579 | fi |
---|
10580 | rm -fr conftest* |
---|
10581 | |
---|
10582 | |
---|
10583 | fi |
---|
10584 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
10585 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
---|
10586 | fi |
---|
10587 | |
---|
10588 | CPPFLAGS="$save_CPPFLAGS" |
---|
10589 | LDFLAGS="$save_LDFLAGS" |
---|
10590 | LIBS="$save_LIBS" |
---|
10591 | ;; |
---|
10592 | esac |
---|
10593 | |
---|
10594 | case $lt_cv_dlopen_self in |
---|
10595 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
10596 | *) enable_dlopen_self=unknown ;; |
---|
10597 | esac |
---|
10598 | |
---|
10599 | case $lt_cv_dlopen_self_static in |
---|
10600 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
10601 | *) enable_dlopen_self_static=unknown ;; |
---|
10602 | esac |
---|
10603 | fi |
---|
10604 | |
---|
10605 | |
---|
10606 | # Report which library types will actually be built |
---|
10607 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
---|
10608 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
---|
10609 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
---|
10610 | echo "${ECHO_T}$can_build_shared" >&6 |
---|
10611 | |
---|
10612 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
---|
10613 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
---|
10614 | test "$can_build_shared" = "no" && enable_shared=no |
---|
10615 | |
---|
10616 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
10617 | # are all built from PIC. |
---|
10618 | case $host_os in |
---|
10619 | aix3*) |
---|
10620 | test "$enable_shared" = yes && enable_static=no |
---|
10621 | if test -n "$RANLIB"; then |
---|
10622 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
10623 | postinstall_cmds='$RANLIB $lib' |
---|
10624 | fi |
---|
10625 | ;; |
---|
10626 | |
---|
10627 | aix4* | aix5*) |
---|
10628 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
---|
10629 | test "$enable_shared" = yes && enable_static=no |
---|
10630 | fi |
---|
10631 | ;; |
---|
10632 | esac |
---|
10633 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
---|
10634 | echo "${ECHO_T}$enable_shared" >&6 |
---|
10635 | |
---|
10636 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
---|
10637 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
---|
10638 | # Make sure either enable_shared or enable_static is yes. |
---|
10639 | test "$enable_shared" = yes || enable_static=yes |
---|
10640 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
---|
10641 | echo "${ECHO_T}$enable_static" >&6 |
---|
10642 | |
---|
10643 | # The else clause should only fire when bootstrapping the |
---|
10644 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
10645 | # with your package, and you will get complaints that there are |
---|
10646 | # no rules to generate ltmain.sh. |
---|
10647 | if test -f "$ltmain"; then |
---|
10648 | # See if we are running on zsh, and set the options which allow our commands through |
---|
10649 | # without removal of \ escapes. |
---|
10650 | if test -n "${ZSH_VERSION+set}" ; then |
---|
10651 | setopt NO_GLOB_SUBST |
---|
10652 | fi |
---|
10653 | # Now quote all the things that may contain metacharacters while being |
---|
10654 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
10655 | # variables and quote the copies for generation of the libtool script. |
---|
10656 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
---|
10657 | SED SHELL STRIP \ |
---|
10658 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
10659 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
10660 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
10661 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
10662 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
10663 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
10664 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
10665 | compiler \ |
---|
10666 | CC \ |
---|
10667 | LD \ |
---|
10668 | lt_prog_compiler_wl \ |
---|
10669 | lt_prog_compiler_pic \ |
---|
10670 | lt_prog_compiler_static \ |
---|
10671 | lt_prog_compiler_no_builtin_flag \ |
---|
10672 | export_dynamic_flag_spec \ |
---|
10673 | thread_safe_flag_spec \ |
---|
10674 | whole_archive_flag_spec \ |
---|
10675 | enable_shared_with_static_runtimes \ |
---|
10676 | old_archive_cmds \ |
---|
10677 | old_archive_from_new_cmds \ |
---|
10678 | predep_objects \ |
---|
10679 | postdep_objects \ |
---|
10680 | predeps \ |
---|
10681 | postdeps \ |
---|
10682 | compiler_lib_search_path \ |
---|
10683 | archive_cmds \ |
---|
10684 | archive_expsym_cmds \ |
---|
10685 | postinstall_cmds \ |
---|
10686 | postuninstall_cmds \ |
---|
10687 | old_archive_from_expsyms_cmds \ |
---|
10688 | allow_undefined_flag \ |
---|
10689 | no_undefined_flag \ |
---|
10690 | export_symbols_cmds \ |
---|
10691 | hardcode_libdir_flag_spec \ |
---|
10692 | hardcode_libdir_flag_spec_ld \ |
---|
10693 | hardcode_libdir_separator \ |
---|
10694 | hardcode_automatic \ |
---|
10695 | module_cmds \ |
---|
10696 | module_expsym_cmds \ |
---|
10697 | lt_cv_prog_compiler_c_o \ |
---|
10698 | exclude_expsyms \ |
---|
10699 | include_expsyms; do |
---|
10700 | |
---|
10701 | case $var in |
---|
10702 | old_archive_cmds | \ |
---|
10703 | old_archive_from_new_cmds | \ |
---|
10704 | archive_cmds | \ |
---|
10705 | archive_expsym_cmds | \ |
---|
10706 | module_cmds | \ |
---|
10707 | module_expsym_cmds | \ |
---|
10708 | old_archive_from_expsyms_cmds | \ |
---|
10709 | export_symbols_cmds | \ |
---|
10710 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
10711 | postinstall_cmds | postuninstall_cmds | \ |
---|
10712 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
10713 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
10714 | # Double-quote double-evaled strings. |
---|
10715 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
10716 | ;; |
---|
10717 | *) |
---|
10718 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
10719 | ;; |
---|
10720 | esac |
---|
10721 | done |
---|
10722 | |
---|
10723 | case $lt_echo in |
---|
10724 | *'\$0 --fallback-echo"') |
---|
10725 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
10726 | ;; |
---|
10727 | esac |
---|
10728 | |
---|
10729 | cfgfile="${ofile}T" |
---|
10730 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
---|
10731 | $rm -f "$cfgfile" |
---|
10732 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
---|
10733 | echo "$as_me: creating $ofile" >&6;} |
---|
10734 | |
---|
10735 | cat <<__EOF__ >> "$cfgfile" |
---|
10736 | #! $SHELL |
---|
10737 | |
---|
10738 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
---|
10739 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
---|
10740 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
---|
10741 | # |
---|
10742 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
---|
10743 | # Free Software Foundation, Inc. |
---|
10744 | # |
---|
10745 | # This file is part of GNU Libtool: |
---|
10746 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
---|
10747 | # |
---|
10748 | # This program is free software; you can redistribute it and/or modify |
---|
10749 | # it under the terms of the GNU General Public License as published by |
---|
10750 | # the Free Software Foundation; either version 2 of the License, or |
---|
10751 | # (at your option) any later version. |
---|
10752 | # |
---|
10753 | # This program is distributed in the hope that it will be useful, but |
---|
10754 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
10755 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
10756 | # General Public License for more details. |
---|
10757 | # |
---|
10758 | # You should have received a copy of the GNU General Public License |
---|
10759 | # along with this program; if not, write to the Free Software |
---|
10760 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
10761 | # |
---|
10762 | # As a special exception to the GNU General Public License, if you |
---|
10763 | # distribute this file as part of a program that contains a |
---|
10764 | # configuration script generated by Autoconf, you may include it under |
---|
10765 | # the same distribution terms that you use for the rest of that program. |
---|
10766 | |
---|
10767 | # A sed program that does not truncate output. |
---|
10768 | SED=$lt_SED |
---|
10769 | |
---|
10770 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
---|
10771 | Xsed="$SED -e 1s/^X//" |
---|
10772 | |
---|
10773 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
10774 | # if CDPATH is set. |
---|
10775 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
10776 | |
---|
10777 | # The names of the tagged configurations supported by this script. |
---|
10778 | available_tags= |
---|
10779 | |
---|
10780 | # ### BEGIN LIBTOOL CONFIG |
---|
10781 | |
---|
10782 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
|
---|