1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for ThirdPartyLapack 1.4. |
---|
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 2006 International Business Machines 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='ThirdPartyLapack' |
---|
431 | PACKAGE_TARNAME='thirdpartylapack' |
---|
432 | PACKAGE_VERSION='1.4' |
---|
433 | PACKAGE_STRING='ThirdPartyLapack 1.4' |
---|
434 | PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket' |
---|
435 | |
---|
436 | ac_unique_file="LAPACK/SRC/dlarf.f" |
---|
437 | ac_default_prefix=`pwd` |
---|
438 | # Factoring default headers for most tests. |
---|
439 | ac_includes_default="\ |
---|
440 | #include <stdio.h> |
---|
441 | #if HAVE_SYS_TYPES_H |
---|
442 | # include <sys/types.h> |
---|
443 | #endif |
---|
444 | #if HAVE_SYS_STAT_H |
---|
445 | # include <sys/stat.h> |
---|
446 | #endif |
---|
447 | #if STDC_HEADERS |
---|
448 | # include <stdlib.h> |
---|
449 | # include <stddef.h> |
---|
450 | #else |
---|
451 | # if HAVE_STDLIB_H |
---|
452 | # include <stdlib.h> |
---|
453 | # endif |
---|
454 | #endif |
---|
455 | #if HAVE_STRING_H |
---|
456 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
457 | # include <memory.h> |
---|
458 | # endif |
---|
459 | # include <string.h> |
---|
460 | #endif |
---|
461 | #if HAVE_STRINGS_H |
---|
462 | # include <strings.h> |
---|
463 | #endif |
---|
464 | #if HAVE_INTTYPES_H |
---|
465 | # include <inttypes.h> |
---|
466 | #else |
---|
467 | # if HAVE_STDINT_H |
---|
468 | # include <stdint.h> |
---|
469 | # endif |
---|
470 | #endif |
---|
471 | #if HAVE_UNISTD_H |
---|
472 | # include <unistd.h> |
---|
473 | #endif" |
---|
474 | |
---|
475 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion LAPACK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED LAPACKLIB_CFLAGS LAPACKLIB_LIBS LAPACKLIB_PCLIBS LAPACKLIB_PCREQUIRES LAPACKLIB_DEPENDENCIES LAPACKLIB_CFLAGS_INSTALLED LAPACKLIB_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE DLAMCH_FFLAGS EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS 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_ADD_FFLAGS_set=${ADD_FFLAGS+set} |
---|
953 | ac_env_ADD_FFLAGS_value=$ADD_FFLAGS |
---|
954 | ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} |
---|
955 | ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS |
---|
956 | ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} |
---|
957 | ac_env_DBG_FFLAGS_value=$DBG_FFLAGS |
---|
958 | ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} |
---|
959 | ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS |
---|
960 | ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} |
---|
961 | ac_env_OPT_FFLAGS_value=$OPT_FFLAGS |
---|
962 | ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} |
---|
963 | ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS |
---|
964 | ac_env_F77_set=${F77+set} |
---|
965 | ac_env_F77_value=$F77 |
---|
966 | ac_cv_env_F77_set=${F77+set} |
---|
967 | ac_cv_env_F77_value=$F77 |
---|
968 | ac_env_FFLAGS_set=${FFLAGS+set} |
---|
969 | ac_env_FFLAGS_value=$FFLAGS |
---|
970 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
---|
971 | ac_cv_env_FFLAGS_value=$FFLAGS |
---|
972 | ac_env_MPIF77_set=${MPIF77+set} |
---|
973 | ac_env_MPIF77_value=$MPIF77 |
---|
974 | ac_cv_env_MPIF77_set=${MPIF77+set} |
---|
975 | ac_cv_env_MPIF77_value=$MPIF77 |
---|
976 | ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} |
---|
977 | ac_env_PKG_CONFIG_value=$PKG_CONFIG |
---|
978 | ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} |
---|
979 | ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG |
---|
980 | ac_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set} |
---|
981 | ac_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS |
---|
982 | ac_cv_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set} |
---|
983 | ac_cv_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS |
---|
984 | ac_env_CPP_set=${CPP+set} |
---|
985 | ac_env_CPP_value=$CPP |
---|
986 | ac_cv_env_CPP_set=${CPP+set} |
---|
987 | ac_cv_env_CPP_value=$CPP |
---|
988 | ac_env_CXX_set=${CXX+set} |
---|
989 | ac_env_CXX_value=$CXX |
---|
990 | ac_cv_env_CXX_set=${CXX+set} |
---|
991 | ac_cv_env_CXX_value=$CXX |
---|
992 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
993 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
994 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
995 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
996 | ac_env_CXXCPP_set=${CXXCPP+set} |
---|
997 | ac_env_CXXCPP_value=$CXXCPP |
---|
998 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
---|
999 | ac_cv_env_CXXCPP_value=$CXXCPP |
---|
1000 | |
---|
1001 | # |
---|
1002 | # Report the --help message. |
---|
1003 | # |
---|
1004 | if test "$ac_init_help" = "long"; then |
---|
1005 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1006 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1007 | cat <<_ACEOF |
---|
1008 | \`configure' configures ThirdPartyLapack 1.4 to adapt to many kinds of systems. |
---|
1009 | |
---|
1010 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1011 | |
---|
1012 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1013 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1014 | |
---|
1015 | Defaults for the options are specified in brackets. |
---|
1016 | |
---|
1017 | Configuration: |
---|
1018 | -h, --help display this help and exit |
---|
1019 | --help=short display options specific to this package |
---|
1020 | --help=recursive display the short help of all the included packages |
---|
1021 | -V, --version display version information and exit |
---|
1022 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1023 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1024 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1025 | -n, --no-create do not create output files |
---|
1026 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1027 | |
---|
1028 | _ACEOF |
---|
1029 | |
---|
1030 | cat <<_ACEOF |
---|
1031 | Installation directories: |
---|
1032 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1033 | [$ac_default_prefix] |
---|
1034 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1035 | [PREFIX] |
---|
1036 | |
---|
1037 | By default, \`make install' will install all the files in |
---|
1038 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1039 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1040 | for instance \`--prefix=\$HOME'. |
---|
1041 | |
---|
1042 | For better control, use the options below. |
---|
1043 | |
---|
1044 | Fine tuning of the installation directories: |
---|
1045 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1046 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1047 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1048 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
1049 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1050 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1051 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1052 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1053 | --includedir=DIR C header files [PREFIX/include] |
---|
1054 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1055 | --infodir=DIR info documentation [PREFIX/info] |
---|
1056 | --mandir=DIR man documentation [PREFIX/man] |
---|
1057 | _ACEOF |
---|
1058 | |
---|
1059 | cat <<\_ACEOF |
---|
1060 | |
---|
1061 | Program names: |
---|
1062 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1063 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1064 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1065 | |
---|
1066 | System types: |
---|
1067 | --build=BUILD configure for building on BUILD [guessed] |
---|
1068 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1069 | _ACEOF |
---|
1070 | fi |
---|
1071 | |
---|
1072 | if test -n "$ac_init_help"; then |
---|
1073 | case $ac_init_help in |
---|
1074 | short | recursive ) echo "Configuration of ThirdPartyLapack 1.4:";; |
---|
1075 | esac |
---|
1076 | cat <<\_ACEOF |
---|
1077 | |
---|
1078 | Optional Features: |
---|
1079 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1080 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1081 | --enable-debug compile all projects with debug options tests |
---|
1082 | (implies --disable-shared) |
---|
1083 | --enable-debug-lapack compile project Lapack with debug compiler flags |
---|
1084 | |
---|
1085 | --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin. |
---|
1086 | --disable-pkg-config disable use of pkg-config (if available) |
---|
1087 | --disable-interpackage-dependencies |
---|
1088 | disables deduction of Makefile dependencies from |
---|
1089 | package linker flags |
---|
1090 | --enable-static[=PKGS] |
---|
1091 | build static libraries [default=no] |
---|
1092 | --disable-dependency-tracking speeds up one-time build |
---|
1093 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1094 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
1095 | (and sometimes confusing) to the casual installer |
---|
1096 | --enable-shared[=PKGS] |
---|
1097 | build shared libraries [default=yes] |
---|
1098 | --enable-fast-install[=PKGS] |
---|
1099 | optimize for fast installation [default=yes] |
---|
1100 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1101 | |
---|
1102 | Optional Packages: |
---|
1103 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1104 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1105 | --with-lapack-verbosity specify the debug verbosity level for project Lapack |
---|
1106 | --with-lapack-checklevel |
---|
1107 | specify the sanity check level for project Lapack |
---|
1108 | --with-blas specify BLAS library (or BUILD to enforce use of |
---|
1109 | ThirdParty/Blas) |
---|
1110 | |
---|
1111 | --with-coin-instdir prefix of installation directory for precompiled |
---|
1112 | COIN packages |
---|
1113 | --with-blas-lib linker flags for using package Blas |
---|
1114 | --with-blas-incdir directory with header files for using package Blas |
---|
1115 | --with-blas-datadir directory with data files for using package Blas |
---|
1116 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1117 | --with-pic try to use only PIC/non-PIC objects [default=use |
---|
1118 | both] |
---|
1119 | --with-tags[=TAGS] |
---|
1120 | include additional configurations [automatic] |
---|
1121 | |
---|
1122 | Some influential environment variables: |
---|
1123 | CDEFS Additional -D flags to be used when compiling C code. |
---|
1124 | ADD_CFLAGS Additional C compiler options |
---|
1125 | DBG_CFLAGS Debug C compiler options |
---|
1126 | OPT_CFLAGS Optimize C compiler options |
---|
1127 | CC C compiler command |
---|
1128 | CFLAGS C compiler flags |
---|
1129 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1130 | nonstandard directory <lib dir> |
---|
1131 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
1132 | headers in a nonstandard directory <include dir> |
---|
1133 | MPICC C MPI Compiler |
---|
1134 | ADD_FFLAGS Additional Fortran compiler options |
---|
1135 | DBG_FFLAGS Debug Fortran compiler options |
---|
1136 | OPT_FFLAGS Optimize Fortran compiler options |
---|
1137 | F77 Fortran 77 compiler command |
---|
1138 | FFLAGS Fortran 77 compiler flags |
---|
1139 | MPIF77 Fortran MPI Compiler |
---|
1140 | PKG_CONFIG path to pkg-config utility |
---|
1141 | DLAMCH_FFLAGS |
---|
1142 | Fortran compiler options for DLAMCH.F |
---|
1143 | CPP C preprocessor |
---|
1144 | CXX C++ compiler command |
---|
1145 | CXXFLAGS C++ compiler flags |
---|
1146 | CXXCPP C++ preprocessor |
---|
1147 | |
---|
1148 | Use these variables to override the choices made by `configure' or to help |
---|
1149 | it to find libraries and programs with nonstandard names/locations. |
---|
1150 | |
---|
1151 | Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. |
---|
1152 | _ACEOF |
---|
1153 | fi |
---|
1154 | |
---|
1155 | if test "$ac_init_help" = "recursive"; then |
---|
1156 | # If there are subdirs, report their specific --help. |
---|
1157 | ac_popdir=`pwd` |
---|
1158 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1159 | test -d $ac_dir || continue |
---|
1160 | ac_builddir=. |
---|
1161 | |
---|
1162 | if test "$ac_dir" != .; then |
---|
1163 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1164 | # A "../" for each directory in $ac_dir_suffix. |
---|
1165 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
1166 | else |
---|
1167 | ac_dir_suffix= ac_top_builddir= |
---|
1168 | fi |
---|
1169 | |
---|
1170 | case $srcdir in |
---|
1171 | .) # No --srcdir option. We are building in place. |
---|
1172 | ac_srcdir=. |
---|
1173 | if test -z "$ac_top_builddir"; then |
---|
1174 | ac_top_srcdir=. |
---|
1175 | else |
---|
1176 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
1177 | fi ;; |
---|
1178 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
1179 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1180 | ac_top_srcdir=$srcdir ;; |
---|
1181 | *) # Relative path. |
---|
1182 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
1183 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
1184 | esac |
---|
1185 | |
---|
1186 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
1187 | # the directories may not exist. |
---|
1188 | case `pwd` in |
---|
1189 | .) ac_abs_builddir="$ac_dir";; |
---|
1190 | *) |
---|
1191 | case "$ac_dir" in |
---|
1192 | .) ac_abs_builddir=`pwd`;; |
---|
1193 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
1194 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
1195 | esac;; |
---|
1196 | esac |
---|
1197 | case $ac_abs_builddir in |
---|
1198 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1199 | *) |
---|
1200 | case ${ac_top_builddir}. in |
---|
1201 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
1202 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1203 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
1204 | esac;; |
---|
1205 | esac |
---|
1206 | case $ac_abs_builddir in |
---|
1207 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
1208 | *) |
---|
1209 | case $ac_srcdir in |
---|
1210 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
1211 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
1212 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
1213 | esac;; |
---|
1214 | esac |
---|
1215 | case $ac_abs_builddir in |
---|
1216 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1217 | *) |
---|
1218 | case $ac_top_srcdir in |
---|
1219 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
1220 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1221 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
1222 | esac;; |
---|
1223 | esac |
---|
1224 | |
---|
1225 | cd $ac_dir |
---|
1226 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
1227 | if test -f $ac_srcdir/configure.gnu; then |
---|
1228 | echo |
---|
1229 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
1230 | elif test -f $ac_srcdir/configure; then |
---|
1231 | echo |
---|
1232 | $SHELL $ac_srcdir/configure --help=recursive |
---|
1233 | elif test -f $ac_srcdir/configure.ac || |
---|
1234 | test -f $ac_srcdir/configure.in; then |
---|
1235 | echo |
---|
1236 | $ac_configure --help |
---|
1237 | else |
---|
1238 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1239 | fi |
---|
1240 | cd $ac_popdir |
---|
1241 | done |
---|
1242 | fi |
---|
1243 | |
---|
1244 | test -n "$ac_init_help" && exit 0 |
---|
1245 | if $ac_init_version; then |
---|
1246 | cat <<\_ACEOF |
---|
1247 | ThirdPartyLapack configure 1.4 |
---|
1248 | generated by GNU Autoconf 2.59 |
---|
1249 | |
---|
1250 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
1251 | This configure script is free software; the Free Software Foundation |
---|
1252 | gives unlimited permission to copy, distribute and modify it. |
---|
1253 | |
---|
1254 | |
---|
1255 | Copyright 2006 International Business Machines and others. |
---|
1256 | All Rights Reserved. |
---|
1257 | This file is part of the open source package Coin which is distributed |
---|
1258 | under the Eclipse Public License. |
---|
1259 | _ACEOF |
---|
1260 | exit 0 |
---|
1261 | fi |
---|
1262 | exec 5>config.log |
---|
1263 | cat >&5 <<_ACEOF |
---|
1264 | This file contains any messages produced by compilers while |
---|
1265 | running configure, to aid debugging if configure makes a mistake. |
---|
1266 | |
---|
1267 | It was created by ThirdPartyLapack $as_me 1.4, which was |
---|
1268 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1269 | |
---|
1270 | $ $0 $@ |
---|
1271 | |
---|
1272 | _ACEOF |
---|
1273 | { |
---|
1274 | cat <<_ASUNAME |
---|
1275 | ## --------- ## |
---|
1276 | ## Platform. ## |
---|
1277 | ## --------- ## |
---|
1278 | |
---|
1279 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1280 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1281 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1282 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1283 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1284 | |
---|
1285 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1286 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1287 | |
---|
1288 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1289 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1290 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1291 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1292 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1293 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1294 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1295 | |
---|
1296 | _ASUNAME |
---|
1297 | |
---|
1298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1299 | for as_dir in $PATH |
---|
1300 | do |
---|
1301 | IFS=$as_save_IFS |
---|
1302 | test -z "$as_dir" && as_dir=. |
---|
1303 | echo "PATH: $as_dir" |
---|
1304 | done |
---|
1305 | |
---|
1306 | } >&5 |
---|
1307 | |
---|
1308 | cat >&5 <<_ACEOF |
---|
1309 | |
---|
1310 | |
---|
1311 | ## ----------- ## |
---|
1312 | ## Core tests. ## |
---|
1313 | ## ----------- ## |
---|
1314 | |
---|
1315 | _ACEOF |
---|
1316 | |
---|
1317 | |
---|
1318 | # Keep a trace of the command line. |
---|
1319 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1320 | # Strip out --silent because we don't want to record it for future runs. |
---|
1321 | # Also quote any args containing shell meta-characters. |
---|
1322 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1323 | ac_configure_args= |
---|
1324 | ac_configure_args0= |
---|
1325 | ac_configure_args1= |
---|
1326 | ac_sep= |
---|
1327 | ac_must_keep_next=false |
---|
1328 | for ac_pass in 1 2 |
---|
1329 | do |
---|
1330 | for ac_arg |
---|
1331 | do |
---|
1332 | case $ac_arg in |
---|
1333 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1334 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1335 | | -silent | --silent | --silen | --sile | --sil) |
---|
1336 | continue ;; |
---|
1337 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1338 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1339 | esac |
---|
1340 | case $ac_pass in |
---|
1341 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1342 | 2) |
---|
1343 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1344 | if test $ac_must_keep_next = true; then |
---|
1345 | ac_must_keep_next=false # Got value, back to normal. |
---|
1346 | else |
---|
1347 | case $ac_arg in |
---|
1348 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1349 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1350 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1351 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1352 | case "$ac_configure_args0 " in |
---|
1353 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1354 | esac |
---|
1355 | ;; |
---|
1356 | -* ) ac_must_keep_next=true ;; |
---|
1357 | esac |
---|
1358 | fi |
---|
1359 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1360 | # Get rid of the leading space. |
---|
1361 | ac_sep=" " |
---|
1362 | ;; |
---|
1363 | esac |
---|
1364 | done |
---|
1365 | done |
---|
1366 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1367 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1368 | |
---|
1369 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1370 | # config.log. We remove comments because anyway the quotes in there |
---|
1371 | # would cause problems or look ugly. |
---|
1372 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1373 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1374 | trap 'exit_status=$? |
---|
1375 | # Save into config.log some information that might help in debugging. |
---|
1376 | { |
---|
1377 | echo |
---|
1378 | |
---|
1379 | cat <<\_ASBOX |
---|
1380 | ## ---------------- ## |
---|
1381 | ## Cache variables. ## |
---|
1382 | ## ---------------- ## |
---|
1383 | _ASBOX |
---|
1384 | echo |
---|
1385 | # The following way of writing the cache mishandles newlines in values, |
---|
1386 | { |
---|
1387 | (set) 2>&1 | |
---|
1388 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1389 | *ac_space=\ *) |
---|
1390 | sed -n \ |
---|
1391 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1392 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1393 | ;; |
---|
1394 | *) |
---|
1395 | sed -n \ |
---|
1396 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1397 | ;; |
---|
1398 | esac; |
---|
1399 | } |
---|
1400 | echo |
---|
1401 | |
---|
1402 | cat <<\_ASBOX |
---|
1403 | ## ----------------- ## |
---|
1404 | ## Output variables. ## |
---|
1405 | ## ----------------- ## |
---|
1406 | _ASBOX |
---|
1407 | echo |
---|
1408 | for ac_var in $ac_subst_vars |
---|
1409 | do |
---|
1410 | eval ac_val=$`echo $ac_var` |
---|
1411 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1412 | done | sort |
---|
1413 | echo |
---|
1414 | |
---|
1415 | if test -n "$ac_subst_files"; then |
---|
1416 | cat <<\_ASBOX |
---|
1417 | ## ------------- ## |
---|
1418 | ## Output files. ## |
---|
1419 | ## ------------- ## |
---|
1420 | _ASBOX |
---|
1421 | echo |
---|
1422 | for ac_var in $ac_subst_files |
---|
1423 | do |
---|
1424 | eval ac_val=$`echo $ac_var` |
---|
1425 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1426 | done | sort |
---|
1427 | echo |
---|
1428 | fi |
---|
1429 | |
---|
1430 | if test -s confdefs.h; then |
---|
1431 | cat <<\_ASBOX |
---|
1432 | ## ----------- ## |
---|
1433 | ## confdefs.h. ## |
---|
1434 | ## ----------- ## |
---|
1435 | _ASBOX |
---|
1436 | echo |
---|
1437 | sed "/^$/d" confdefs.h | sort |
---|
1438 | echo |
---|
1439 | fi |
---|
1440 | test "$ac_signal" != 0 && |
---|
1441 | echo "$as_me: caught signal $ac_signal" |
---|
1442 | echo "$as_me: exit $exit_status" |
---|
1443 | } >&5 |
---|
1444 | rm -f core *.core && |
---|
1445 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1446 | exit $exit_status |
---|
1447 | ' 0 |
---|
1448 | for ac_signal in 1 2 13 15; do |
---|
1449 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1450 | done |
---|
1451 | ac_signal=0 |
---|
1452 | |
---|
1453 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1454 | rm -rf conftest* confdefs.h |
---|
1455 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1456 | echo >confdefs.h |
---|
1457 | |
---|
1458 | # Predefined preprocessor variables. |
---|
1459 | |
---|
1460 | cat >>confdefs.h <<_ACEOF |
---|
1461 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1462 | _ACEOF |
---|
1463 | |
---|
1464 | |
---|
1465 | cat >>confdefs.h <<_ACEOF |
---|
1466 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1467 | _ACEOF |
---|
1468 | |
---|
1469 | |
---|
1470 | cat >>confdefs.h <<_ACEOF |
---|
1471 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1472 | _ACEOF |
---|
1473 | |
---|
1474 | |
---|
1475 | cat >>confdefs.h <<_ACEOF |
---|
1476 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1477 | _ACEOF |
---|
1478 | |
---|
1479 | |
---|
1480 | cat >>confdefs.h <<_ACEOF |
---|
1481 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1482 | _ACEOF |
---|
1483 | |
---|
1484 | |
---|
1485 | # Let the site file select an alternate cache file if it wants to. |
---|
1486 | # Prefer explicitly selected file to automatically selected ones. |
---|
1487 | if test -z "$CONFIG_SITE"; then |
---|
1488 | if test "x$prefix" != xNONE; then |
---|
1489 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1490 | else |
---|
1491 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1492 | fi |
---|
1493 | fi |
---|
1494 | for ac_site_file in $CONFIG_SITE; do |
---|
1495 | if test -r "$ac_site_file"; then |
---|
1496 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1497 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1498 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1499 | . "$ac_site_file" |
---|
1500 | fi |
---|
1501 | done |
---|
1502 | |
---|
1503 | if test -r "$cache_file"; then |
---|
1504 | # Some versions of bash will fail to source /dev/null (special |
---|
1505 | # files actually), so we avoid doing that. |
---|
1506 | if test -f "$cache_file"; then |
---|
1507 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1508 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1509 | case $cache_file in |
---|
1510 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1511 | *) . ./$cache_file;; |
---|
1512 | esac |
---|
1513 | fi |
---|
1514 | else |
---|
1515 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1516 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1517 | >$cache_file |
---|
1518 | fi |
---|
1519 | |
---|
1520 | # Check that the precious variables saved in the cache have kept the same |
---|
1521 | # value. |
---|
1522 | ac_cache_corrupted=false |
---|
1523 | for ac_var in `(set) 2>&1 | |
---|
1524 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1525 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1526 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1527 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1528 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1529 | case $ac_old_set,$ac_new_set in |
---|
1530 | set,) |
---|
1531 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1532 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1533 | ac_cache_corrupted=: ;; |
---|
1534 | ,set) |
---|
1535 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1536 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1537 | ac_cache_corrupted=: ;; |
---|
1538 | ,);; |
---|
1539 | *) |
---|
1540 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1541 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1542 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1543 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1544 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1545 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1546 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1547 | ac_cache_corrupted=: |
---|
1548 | fi;; |
---|
1549 | esac |
---|
1550 | # Pass precious variables to config.status. |
---|
1551 | if test "$ac_new_set" = set; then |
---|
1552 | case $ac_new_val in |
---|
1553 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1554 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1555 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1556 | esac |
---|
1557 | case " $ac_configure_args " in |
---|
1558 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1559 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1560 | esac |
---|
1561 | fi |
---|
1562 | done |
---|
1563 | if $ac_cache_corrupted; then |
---|
1564 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1565 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1566 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1567 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1568 | { (exit 1); exit 1; }; } |
---|
1569 | fi |
---|
1570 | |
---|
1571 | ac_ext=c |
---|
1572 | ac_cpp='$CPP $CPPFLAGS' |
---|
1573 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1574 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1575 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1576 | |
---|
1577 | |
---|
1578 | |
---|
1579 | |
---|
1580 | |
---|
1581 | |
---|
1582 | |
---|
1583 | |
---|
1584 | |
---|
1585 | |
---|
1586 | |
---|
1587 | |
---|
1588 | |
---|
1589 | |
---|
1590 | |
---|
1591 | |
---|
1592 | |
---|
1593 | |
---|
1594 | |
---|
1595 | |
---|
1596 | |
---|
1597 | |
---|
1598 | |
---|
1599 | |
---|
1600 | |
---|
1601 | |
---|
1602 | |
---|
1603 | |
---|
1604 | |
---|
1605 | |
---|
1606 | # List one file in the package so that the configure script can test |
---|
1607 | # whether the package is actually there |
---|
1608 | |
---|
1609 | |
---|
1610 | # Where should everything be installed by default? Here, we want it |
---|
1611 | # to be installed directly in 'bin', 'lib', 'include' subdirectories |
---|
1612 | # of the directory where configure is run. The default would be |
---|
1613 | # /usr/local. |
---|
1614 | |
---|
1615 | |
---|
1616 | |
---|
1617 | # As backup, we make sure we don't loose an FLIBS if it has been set |
---|
1618 | # by the user |
---|
1619 | save_FLIBS="$FLIBS" |
---|
1620 | |
---|
1621 | # A useful makefile conditional that is always false |
---|
1622 | |
---|
1623 | |
---|
1624 | if false; then |
---|
1625 | ALWAYS_FALSE_TRUE= |
---|
1626 | ALWAYS_FALSE_FALSE='#' |
---|
1627 | else |
---|
1628 | ALWAYS_FALSE_TRUE='#' |
---|
1629 | ALWAYS_FALSE_FALSE= |
---|
1630 | fi |
---|
1631 | |
---|
1632 | |
---|
1633 | # We set the following variable so that we know later in AC_COIN_FINALIZE |
---|
1634 | # that we are in a project main directory |
---|
1635 | coin_projectdir=yes |
---|
1636 | |
---|
1637 | # Set the project's version numbers |
---|
1638 | |
---|
1639 | |
---|
1640 | cat >>confdefs.h <<_ACEOF |
---|
1641 | #define LAPACK_VERSION "$PACKAGE_VERSION" |
---|
1642 | _ACEOF |
---|
1643 | |
---|
1644 | |
---|
1645 | coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'` |
---|
1646 | coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'` |
---|
1647 | coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'` |
---|
1648 | if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi |
---|
1649 | if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi |
---|
1650 | if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi |
---|
1651 | |
---|
1652 | cat >>confdefs.h <<_ACEOF |
---|
1653 | #define LAPACK_VERSION_MAJOR $coin_majorver |
---|
1654 | _ACEOF |
---|
1655 | |
---|
1656 | |
---|
1657 | cat >>confdefs.h <<_ACEOF |
---|
1658 | #define LAPACK_VERSION_MINOR $coin_minorver |
---|
1659 | _ACEOF |
---|
1660 | |
---|
1661 | |
---|
1662 | cat >>confdefs.h <<_ACEOF |
---|
1663 | #define LAPACK_VERSION_RELEASE $coin_releasever |
---|
1664 | _ACEOF |
---|
1665 | |
---|
1666 | |
---|
1667 | # We use the following variable to have a string with the upper case |
---|
1668 | # version of the project name |
---|
1669 | COIN_PRJCT=LAPACK |
---|
1670 | |
---|
1671 | # Set the project's SVN revision number. The complicated sed expression |
---|
1672 | # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up |
---|
1673 | # as a single number. |
---|
1674 | # Extract the first word of "svnversion", so it can be a program name with args. |
---|
1675 | set dummy svnversion; ac_word=$2 |
---|
1676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1678 | if test "${ac_cv_prog_have_svnversion+set}" = set; then |
---|
1679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1680 | else |
---|
1681 | if test -n "$have_svnversion"; then |
---|
1682 | ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test. |
---|
1683 | else |
---|
1684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1685 | for as_dir in $PATH |
---|
1686 | do |
---|
1687 | IFS=$as_save_IFS |
---|
1688 | test -z "$as_dir" && as_dir=. |
---|
1689 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1690 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1691 | ac_cv_prog_have_svnversion="yes" |
---|
1692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1693 | break 2 |
---|
1694 | fi |
---|
1695 | done |
---|
1696 | done |
---|
1697 | |
---|
1698 | test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no" |
---|
1699 | fi |
---|
1700 | fi |
---|
1701 | have_svnversion=$ac_cv_prog_have_svnversion |
---|
1702 | if test -n "$have_svnversion"; then |
---|
1703 | echo "$as_me:$LINENO: result: $have_svnversion" >&5 |
---|
1704 | echo "${ECHO_T}$have_svnversion" >&6 |
---|
1705 | else |
---|
1706 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1707 | echo "${ECHO_T}no" >&6 |
---|
1708 | fi |
---|
1709 | |
---|
1710 | if test "x$have_svnversion" = xyes; then |
---|
1711 | |
---|
1712 | svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null` |
---|
1713 | if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then |
---|
1714 | LAPACK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'` |
---|
1715 | |
---|
1716 | cat >>confdefs.h <<_ACEOF |
---|
1717 | #define LAPACK_SVN_REV $LAPACK_SVN_REV |
---|
1718 | _ACEOF |
---|
1719 | |
---|
1720 | fi |
---|
1721 | fi |
---|
1722 | |
---|
1723 | |
---|
1724 | |
---|
1725 | # Capture libtool library version, if given. |
---|
1726 | |
---|
1727 | |
---|
1728 | |
---|
1729 | |
---|
1730 | ############################################################################# |
---|
1731 | # Standard build tool stuff # |
---|
1732 | ############################################################################# |
---|
1733 | |
---|
1734 | # Get the system type |
---|
1735 | ac_aux_dir= |
---|
1736 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1737 | if test -f $ac_dir/install-sh; then |
---|
1738 | ac_aux_dir=$ac_dir |
---|
1739 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1740 | break |
---|
1741 | elif test -f $ac_dir/install.sh; then |
---|
1742 | ac_aux_dir=$ac_dir |
---|
1743 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1744 | break |
---|
1745 | elif test -f $ac_dir/shtool; then |
---|
1746 | ac_aux_dir=$ac_dir |
---|
1747 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1748 | break |
---|
1749 | fi |
---|
1750 | done |
---|
1751 | if test -z "$ac_aux_dir"; then |
---|
1752 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1753 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1754 | { (exit 1); exit 1; }; } |
---|
1755 | fi |
---|
1756 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1757 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1758 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1759 | |
---|
1760 | # Make sure we can run config.sub. |
---|
1761 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1762 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1763 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1764 | { (exit 1); exit 1; }; } |
---|
1765 | |
---|
1766 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1767 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1768 | if test "${ac_cv_build+set}" = set; then |
---|
1769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1770 | else |
---|
1771 | ac_cv_build_alias=$build_alias |
---|
1772 | test -z "$ac_cv_build_alias" && |
---|
1773 | ac_cv_build_alias=`$ac_config_guess` |
---|
1774 | test -z "$ac_cv_build_alias" && |
---|
1775 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1776 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1777 | { (exit 1); exit 1; }; } |
---|
1778 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1779 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1780 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1781 | { (exit 1); exit 1; }; } |
---|
1782 | |
---|
1783 | fi |
---|
1784 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1785 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1786 | build=$ac_cv_build |
---|
1787 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1788 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1789 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1790 | |
---|
1791 | |
---|
1792 | |
---|
1793 | #turn off warnings and pedantic mode since they could make trouble on some platforms, |
---|
1794 | #and we couldn't fix them anyway |
---|
1795 | coin_skip_warn_fflags=yes |
---|
1796 | |
---|
1797 | # Check if user wants to produce debugging code |
---|
1798 | |
---|
1799 | echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 |
---|
1800 | echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 |
---|
1801 | |
---|
1802 | # Check whether --enable-debug or --disable-debug was given. |
---|
1803 | if test "${enable_debug+set}" = set; then |
---|
1804 | enableval="$enable_debug" |
---|
1805 | case "${enableval}" in |
---|
1806 | yes) coin_debug_compile=true |
---|
1807 | if test "${enable_shared+set}" = set; then :; else |
---|
1808 | enable_shared=no |
---|
1809 | fi |
---|
1810 | ;; |
---|
1811 | no) coin_debug_compile=false |
---|
1812 | ;; |
---|
1813 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 |
---|
1814 | echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} |
---|
1815 | { (exit 1); exit 1; }; } |
---|
1816 | ;; |
---|
1817 | esac |
---|
1818 | else |
---|
1819 | coin_debug_compile=false |
---|
1820 | fi; |
---|
1821 | |
---|
1822 | # Check whether --enable-debug-lapack or --disable-debug-lapack was given. |
---|
1823 | if test "${enable_debug_lapack+set}" = set; then |
---|
1824 | enableval="$enable_debug_lapack" |
---|
1825 | case "${enableval}" in |
---|
1826 | yes) coin_debug_compile=true |
---|
1827 | ;; |
---|
1828 | no) coin_debug_compile=false |
---|
1829 | ;; |
---|
1830 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5 |
---|
1831 | echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;} |
---|
1832 | { (exit 1); exit 1; }; } |
---|
1833 | ;; |
---|
1834 | esac |
---|
1835 | else |
---|
1836 | : |
---|
1837 | fi; |
---|
1838 | |
---|
1839 | # m4_ifvaln([Lapack], |
---|
1840 | |
---|
1841 | if test $coin_debug_compile = true; then |
---|
1842 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1843 | echo "${ECHO_T}yes" >&6 |
---|
1844 | else |
---|
1845 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1846 | echo "${ECHO_T}no" >&6 |
---|
1847 | fi |
---|
1848 | |
---|
1849 | |
---|
1850 | # Check whether --with-lapack-verbosity or --without-lapack-verbosity was given. |
---|
1851 | if test "${with_lapack_verbosity+set}" = set; then |
---|
1852 | withval="$with_lapack_verbosity" |
---|
1853 | if test "$withval" = yes; then |
---|
1854 | withval=1 |
---|
1855 | fi |
---|
1856 | coin_lapack_verbosity=$withval |
---|
1857 | else |
---|
1858 | coin_lapack_verbosity=0 |
---|
1859 | fi; |
---|
1860 | |
---|
1861 | cat >>confdefs.h <<_ACEOF |
---|
1862 | #define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity |
---|
1863 | _ACEOF |
---|
1864 | |
---|
1865 | |
---|
1866 | |
---|
1867 | # Check whether --with-lapack-checklevel or --without-lapack-checklevel was given. |
---|
1868 | if test "${with_lapack_checklevel+set}" = set; then |
---|
1869 | withval="$with_lapack_checklevel" |
---|
1870 | if test "$withval" = yes; then |
---|
1871 | withval=1 |
---|
1872 | fi |
---|
1873 | coin_lapack_checklevel=$withval |
---|
1874 | else |
---|
1875 | coin_lapack_checklevel=0 |
---|
1876 | fi; |
---|
1877 | |
---|
1878 | cat >>confdefs.h <<_ACEOF |
---|
1879 | #define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel |
---|
1880 | _ACEOF |
---|
1881 | |
---|
1882 | |
---|
1883 | # m4_ifvaln([Lapack], |
---|
1884 | |
---|
1885 | |
---|
1886 | |
---|
1887 | # Get the name of the Fortran compiler and appropriate compiler options |
---|
1888 | |
---|
1889 | |
---|
1890 | # for backward compatibility |
---|
1891 | # Check whether --enable-doscompile or --disable-doscompile was given. |
---|
1892 | if test "${enable_doscompile+set}" = set; then |
---|
1893 | enableval="$enable_doscompile" |
---|
1894 | enable_doscompile=$enableval |
---|
1895 | else |
---|
1896 | enable_doscompile=no |
---|
1897 | fi; |
---|
1898 | |
---|
1899 | # Check whether --enable-msvc or --disable-msvc was given. |
---|
1900 | if test "${enable_msvc+set}" = set; then |
---|
1901 | enableval="$enable_msvc" |
---|
1902 | enable_msvc=$enableval |
---|
1903 | else |
---|
1904 | enable_msvc=no |
---|
1905 | if test "$enable_doscompile" = msvc ; then |
---|
1906 | enable_msvc=yes |
---|
1907 | elif test "$enable_doscompile" != no ; then |
---|
1908 | { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5 |
---|
1909 | echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;} |
---|
1910 | { (exit 1); exit 1; }; } |
---|
1911 | fi |
---|
1912 | |
---|
1913 | fi; |
---|
1914 | |
---|
1915 | if test "$enable_msvc" = MD; then |
---|
1916 | enable_shared=yes |
---|
1917 | enable_msvc=yes |
---|
1918 | fi |
---|
1919 | |
---|
1920 | if test "$enable_msvc" = yes; then |
---|
1921 | case $build in |
---|
1922 | *-cygwin* | *-mingw*) ;; |
---|
1923 | *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5 |
---|
1924 | echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;} |
---|
1925 | { (exit 1); exit 1; }; } ;; |
---|
1926 | esac |
---|
1927 | fi |
---|
1928 | |
---|
1929 | |
---|
1930 | case $build in |
---|
1931 | *-mingw*) |
---|
1932 | if test "${LD+set}" = set; then :; else |
---|
1933 | LD=link |
---|
1934 | fi |
---|
1935 | ;; |
---|
1936 | esac |
---|
1937 | if test $enable_msvc = yes ; then |
---|
1938 | if test "x${LD+set}" = xset; then :; else |
---|
1939 | LD=link |
---|
1940 | fi |
---|
1941 | fi |
---|
1942 | |
---|
1943 | |
---|
1944 | |
---|
1945 | |
---|
1946 | ac_ext=c |
---|
1947 | ac_cpp='$CPP $CPPFLAGS' |
---|
1948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1951 | |
---|
1952 | |
---|
1953 | # For consistency, we set the C compiler to the same value of the C++ |
---|
1954 | # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) |
---|
1955 | if test x"$CXX" != x; then |
---|
1956 | case "$CXX" in |
---|
1957 | clang* ) ;; |
---|
1958 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
1959 | if test x"$CC" = x; then |
---|
1960 | CC="$CXX" |
---|
1961 | { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 |
---|
1962 | echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} |
---|
1963 | fi |
---|
1964 | ;; |
---|
1965 | esac |
---|
1966 | fi |
---|
1967 | |
---|
1968 | |
---|
1969 | |
---|
1970 | |
---|
1971 | |
---|
1972 | |
---|
1973 | coin_has_cc=yes |
---|
1974 | |
---|
1975 | save_cflags="$CFLAGS" |
---|
1976 | |
---|
1977 | # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. |
---|
1978 | # Depending on the user's PATH, when Studio/Workshop cc is not present we may |
---|
1979 | # find /usr/ucb/cc, which is almost certainly not a good choice for the C |
---|
1980 | # compiler. In this case, put cc after gcc. |
---|
1981 | |
---|
1982 | case $build in |
---|
1983 | *-cygwin* | *-mingw*) |
---|
1984 | if test "$enable_msvc" = yes ; then |
---|
1985 | comps="icl cl gcc" |
---|
1986 | else |
---|
1987 | comps="gcc icl cl" |
---|
1988 | fi ;; |
---|
1989 | *-*-solaris*) |
---|
1990 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1991 | set dummy cc; ac_word=$2 |
---|
1992 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1994 | if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then |
---|
1995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1996 | else |
---|
1997 | if test -n "$sol_cc_compiler"; then |
---|
1998 | ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. |
---|
1999 | else |
---|
2000 | ac_prog_rejected=no |
---|
2001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2002 | for as_dir in $PATH |
---|
2003 | do |
---|
2004 | IFS=$as_save_IFS |
---|
2005 | test -z "$as_dir" && as_dir=. |
---|
2006 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2007 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2008 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2009 | ac_prog_rejected=yes |
---|
2010 | continue |
---|
2011 | fi |
---|
2012 | ac_cv_prog_sol_cc_compiler="cc" |
---|
2013 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2014 | break 2 |
---|
2015 | fi |
---|
2016 | done |
---|
2017 | done |
---|
2018 | |
---|
2019 | if test $ac_prog_rejected = yes; then |
---|
2020 | # We found a bogon in the path, so make sure we never use it. |
---|
2021 | set dummy $ac_cv_prog_sol_cc_compiler |
---|
2022 | shift |
---|
2023 | if test $# != 0; then |
---|
2024 | # We chose a different compiler from the bogus one. |
---|
2025 | # However, it has the same basename, so the bogon will be chosen |
---|
2026 | # first if we set sol_cc_compiler to just the basename; use the full file name. |
---|
2027 | shift |
---|
2028 | ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" |
---|
2029 | fi |
---|
2030 | fi |
---|
2031 | fi |
---|
2032 | fi |
---|
2033 | sol_cc_compiler=$ac_cv_prog_sol_cc_compiler |
---|
2034 | if test -n "$sol_cc_compiler"; then |
---|
2035 | echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 |
---|
2036 | echo "${ECHO_T}$sol_cc_compiler" >&6 |
---|
2037 | else |
---|
2038 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2039 | echo "${ECHO_T}no" >&6 |
---|
2040 | fi |
---|
2041 | |
---|
2042 | if test "$sol_cc_compiler" = "cc" ; then |
---|
2043 | comps="cc xlc gcc pgcc icc" |
---|
2044 | else |
---|
2045 | comps="xlc gcc pgcc icc cc" |
---|
2046 | fi |
---|
2047 | ;; |
---|
2048 | *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;; |
---|
2049 | *-linux-*) comps="xlc gcc cc pgcc icc" ;; |
---|
2050 | *) comps="xlc_r xlc cc gcc pgcc icc" ;; |
---|
2051 | esac |
---|
2052 | |
---|
2053 | # We delete the cached value, since the test might not have been |
---|
2054 | # performed with our choice of compilers earlier |
---|
2055 | $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } |
---|
2056 | # AC_MSG_NOTICE([C compiler candidates: $comps]) |
---|
2057 | ac_ext=c |
---|
2058 | ac_cpp='$CPP $CPPFLAGS' |
---|
2059 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2060 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2061 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2062 | if test -n "$ac_tool_prefix"; then |
---|
2063 | for ac_prog in $comps |
---|
2064 | do |
---|
2065 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2066 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2069 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2071 | else |
---|
2072 | if test -n "$CC"; then |
---|
2073 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2074 | else |
---|
2075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2076 | for as_dir in $PATH |
---|
2077 | do |
---|
2078 | IFS=$as_save_IFS |
---|
2079 | test -z "$as_dir" && as_dir=. |
---|
2080 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2082 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2084 | break 2 |
---|
2085 | fi |
---|
2086 | done |
---|
2087 | done |
---|
2088 | |
---|
2089 | fi |
---|
2090 | fi |
---|
2091 | CC=$ac_cv_prog_CC |
---|
2092 | if test -n "$CC"; then |
---|
2093 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2094 | echo "${ECHO_T}$CC" >&6 |
---|
2095 | else |
---|
2096 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2097 | echo "${ECHO_T}no" >&6 |
---|
2098 | fi |
---|
2099 | |
---|
2100 | test -n "$CC" && break |
---|
2101 | done |
---|
2102 | fi |
---|
2103 | if test -z "$CC"; then |
---|
2104 | ac_ct_CC=$CC |
---|
2105 | for ac_prog in $comps |
---|
2106 | do |
---|
2107 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2108 | set dummy $ac_prog; ac_word=$2 |
---|
2109 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2111 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2113 | else |
---|
2114 | if test -n "$ac_ct_CC"; then |
---|
2115 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2116 | else |
---|
2117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2118 | for as_dir in $PATH |
---|
2119 | do |
---|
2120 | IFS=$as_save_IFS |
---|
2121 | test -z "$as_dir" && as_dir=. |
---|
2122 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2123 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2124 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2125 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2126 | break 2 |
---|
2127 | fi |
---|
2128 | done |
---|
2129 | done |
---|
2130 | |
---|
2131 | fi |
---|
2132 | fi |
---|
2133 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2134 | if test -n "$ac_ct_CC"; then |
---|
2135 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2136 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2137 | else |
---|
2138 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2139 | echo "${ECHO_T}no" >&6 |
---|
2140 | fi |
---|
2141 | |
---|
2142 | test -n "$ac_ct_CC" && break |
---|
2143 | done |
---|
2144 | |
---|
2145 | CC=$ac_ct_CC |
---|
2146 | fi |
---|
2147 | |
---|
2148 | |
---|
2149 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2150 | See \`config.log' for more details." >&5 |
---|
2151 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2152 | See \`config.log' for more details." >&2;} |
---|
2153 | { (exit 1); exit 1; }; } |
---|
2154 | |
---|
2155 | # Provide some information about the compiler. |
---|
2156 | echo "$as_me:$LINENO:" \ |
---|
2157 | "checking for C compiler version" >&5 |
---|
2158 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2159 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2160 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2161 | ac_status=$? |
---|
2162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2163 | (exit $ac_status); } |
---|
2164 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2165 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2166 | ac_status=$? |
---|
2167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2168 | (exit $ac_status); } |
---|
2169 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2170 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2171 | ac_status=$? |
---|
2172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2173 | (exit $ac_status); } |
---|
2174 | |
---|
2175 | cat >conftest.$ac_ext <<_ACEOF |
---|
2176 | /* confdefs.h. */ |
---|
2177 | _ACEOF |
---|
2178 | cat confdefs.h >>conftest.$ac_ext |
---|
2179 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2180 | /* end confdefs.h. */ |
---|
2181 | |
---|
2182 | int |
---|
2183 | main () |
---|
2184 | { |
---|
2185 | |
---|
2186 | ; |
---|
2187 | return 0; |
---|
2188 | } |
---|
2189 | _ACEOF |
---|
2190 | ac_clean_files_save=$ac_clean_files |
---|
2191 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2192 | # Try to create an executable without -o first, disregard a.out. |
---|
2193 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2194 | # of exeext. |
---|
2195 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2196 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
2197 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2198 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2199 | (eval $ac_link_default) 2>&5 |
---|
2200 | ac_status=$? |
---|
2201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2202 | (exit $ac_status); }; then |
---|
2203 | # Find the output, starting from the most likely. This scheme is |
---|
2204 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2205 | # resort. |
---|
2206 | |
---|
2207 | # Be careful to initialize this variable, since it used to be cached. |
---|
2208 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2209 | ac_cv_exeext= |
---|
2210 | # b.out is created by i960 compilers. |
---|
2211 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2212 | do |
---|
2213 | test -f "$ac_file" || continue |
---|
2214 | case $ac_file in |
---|
2215 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2216 | ;; |
---|
2217 | conftest.$ac_ext ) |
---|
2218 | # This is the source file. |
---|
2219 | ;; |
---|
2220 | [ab].out ) |
---|
2221 | # We found the default executable, but exeext='' is most |
---|
2222 | # certainly right. |
---|
2223 | break;; |
---|
2224 | *.* ) |
---|
2225 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2226 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2227 | # but it would be cool to find out if it's true. Does anybody |
---|
2228 | # maintain Libtool? --akim. |
---|
2229 | export ac_cv_exeext |
---|
2230 | break;; |
---|
2231 | * ) |
---|
2232 | break;; |
---|
2233 | esac |
---|
2234 | done |
---|
2235 | else |
---|
2236 | echo "$as_me: failed program was:" >&5 |
---|
2237 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2238 | |
---|
2239 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2240 | See \`config.log' for more details." >&5 |
---|
2241 | echo "$as_me: error: C compiler cannot create executables |
---|
2242 | See \`config.log' for more details." >&2;} |
---|
2243 | { (exit 77); exit 77; }; } |
---|
2244 | fi |
---|
2245 | |
---|
2246 | ac_exeext=$ac_cv_exeext |
---|
2247 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2248 | echo "${ECHO_T}$ac_file" >&6 |
---|
2249 | |
---|
2250 | # Check the compiler produces executables we can run. If not, either |
---|
2251 | # the compiler is broken, or we cross compile. |
---|
2252 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2253 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2254 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2255 | # If not cross compiling, check that we can run a simple program. |
---|
2256 | if test "$cross_compiling" != yes; then |
---|
2257 | if { ac_try='./$ac_file' |
---|
2258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2259 | (eval $ac_try) 2>&5 |
---|
2260 | ac_status=$? |
---|
2261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2262 | (exit $ac_status); }; }; then |
---|
2263 | cross_compiling=no |
---|
2264 | else |
---|
2265 | if test "$cross_compiling" = maybe; then |
---|
2266 | cross_compiling=yes |
---|
2267 | else |
---|
2268 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2269 | If you meant to cross compile, use \`--host'. |
---|
2270 | See \`config.log' for more details." >&5 |
---|
2271 | echo "$as_me: error: cannot run C compiled programs. |
---|
2272 | If you meant to cross compile, use \`--host'. |
---|
2273 | See \`config.log' for more details." >&2;} |
---|
2274 | { (exit 1); exit 1; }; } |
---|
2275 | fi |
---|
2276 | fi |
---|
2277 | fi |
---|
2278 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2279 | echo "${ECHO_T}yes" >&6 |
---|
2280 | |
---|
2281 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2282 | ac_clean_files=$ac_clean_files_save |
---|
2283 | # Check the compiler produces executables we can run. If not, either |
---|
2284 | # the compiler is broken, or we cross compile. |
---|
2285 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2286 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2287 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2288 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2289 | |
---|
2290 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2291 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2293 | (eval $ac_link) 2>&5 |
---|
2294 | ac_status=$? |
---|
2295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2296 | (exit $ac_status); }; then |
---|
2297 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2298 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2299 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2300 | # `rm'. |
---|
2301 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2302 | test -f "$ac_file" || continue |
---|
2303 | case $ac_file in |
---|
2304 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2305 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2306 | export ac_cv_exeext |
---|
2307 | break;; |
---|
2308 | * ) break;; |
---|
2309 | esac |
---|
2310 | done |
---|
2311 | else |
---|
2312 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2313 | See \`config.log' for more details." >&5 |
---|
2314 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2315 | See \`config.log' for more details." >&2;} |
---|
2316 | { (exit 1); exit 1; }; } |
---|
2317 | fi |
---|
2318 | |
---|
2319 | rm -f conftest$ac_cv_exeext |
---|
2320 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2321 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2322 | |
---|
2323 | rm -f conftest.$ac_ext |
---|
2324 | EXEEXT=$ac_cv_exeext |
---|
2325 | ac_exeext=$EXEEXT |
---|
2326 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2327 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2328 | if test "${ac_cv_objext+set}" = set; then |
---|
2329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2330 | else |
---|
2331 | cat >conftest.$ac_ext <<_ACEOF |
---|
2332 | /* confdefs.h. */ |
---|
2333 | _ACEOF |
---|
2334 | cat confdefs.h >>conftest.$ac_ext |
---|
2335 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2336 | /* end confdefs.h. */ |
---|
2337 | |
---|
2338 | int |
---|
2339 | main () |
---|
2340 | { |
---|
2341 | |
---|
2342 | ; |
---|
2343 | return 0; |
---|
2344 | } |
---|
2345 | _ACEOF |
---|
2346 | rm -f conftest.o conftest.obj |
---|
2347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2348 | (eval $ac_compile) 2>&5 |
---|
2349 | ac_status=$? |
---|
2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2351 | (exit $ac_status); }; then |
---|
2352 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2353 | case $ac_file in |
---|
2354 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2355 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2356 | break;; |
---|
2357 | esac |
---|
2358 | done |
---|
2359 | else |
---|
2360 | echo "$as_me: failed program was:" >&5 |
---|
2361 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2362 | |
---|
2363 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2364 | See \`config.log' for more details." >&5 |
---|
2365 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2366 | See \`config.log' for more details." >&2;} |
---|
2367 | { (exit 1); exit 1; }; } |
---|
2368 | fi |
---|
2369 | |
---|
2370 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2371 | fi |
---|
2372 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2373 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2374 | OBJEXT=$ac_cv_objext |
---|
2375 | ac_objext=$OBJEXT |
---|
2376 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2377 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2378 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2380 | else |
---|
2381 | cat >conftest.$ac_ext <<_ACEOF |
---|
2382 | /* confdefs.h. */ |
---|
2383 | _ACEOF |
---|
2384 | cat confdefs.h >>conftest.$ac_ext |
---|
2385 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2386 | /* end confdefs.h. */ |
---|
2387 | |
---|
2388 | int |
---|
2389 | main () |
---|
2390 | { |
---|
2391 | #ifndef __GNUC__ |
---|
2392 | choke me |
---|
2393 | #endif |
---|
2394 | |
---|
2395 | ; |
---|
2396 | return 0; |
---|
2397 | } |
---|
2398 | _ACEOF |
---|
2399 | rm -f conftest.$ac_objext |
---|
2400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2401 | (eval $ac_compile) 2>conftest.er1 |
---|
2402 | ac_status=$? |
---|
2403 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2404 | rm -f conftest.er1 |
---|
2405 | cat conftest.err >&5 |
---|
2406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2407 | (exit $ac_status); } && |
---|
2408 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2409 | || test ! -s conftest.err' |
---|
2410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2411 | (eval $ac_try) 2>&5 |
---|
2412 | ac_status=$? |
---|
2413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2414 | (exit $ac_status); }; } && |
---|
2415 | { ac_try='test -s conftest.$ac_objext' |
---|
2416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2417 | (eval $ac_try) 2>&5 |
---|
2418 | ac_status=$? |
---|
2419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2420 | (exit $ac_status); }; }; then |
---|
2421 | ac_compiler_gnu=yes |
---|
2422 | else |
---|
2423 | echo "$as_me: failed program was:" >&5 |
---|
2424 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2425 | |
---|
2426 | ac_compiler_gnu=no |
---|
2427 | fi |
---|
2428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2429 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2430 | |
---|
2431 | fi |
---|
2432 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2433 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2434 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2435 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2436 | ac_save_CFLAGS=$CFLAGS |
---|
2437 | CFLAGS="-g" |
---|
2438 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2439 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2440 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2442 | else |
---|
2443 | cat >conftest.$ac_ext <<_ACEOF |
---|
2444 | /* confdefs.h. */ |
---|
2445 | _ACEOF |
---|
2446 | cat confdefs.h >>conftest.$ac_ext |
---|
2447 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2448 | /* end confdefs.h. */ |
---|
2449 | |
---|
2450 | int |
---|
2451 | main () |
---|
2452 | { |
---|
2453 | |
---|
2454 | ; |
---|
2455 | return 0; |
---|
2456 | } |
---|
2457 | _ACEOF |
---|
2458 | rm -f conftest.$ac_objext |
---|
2459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2460 | (eval $ac_compile) 2>conftest.er1 |
---|
2461 | ac_status=$? |
---|
2462 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2463 | rm -f conftest.er1 |
---|
2464 | cat conftest.err >&5 |
---|
2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2466 | (exit $ac_status); } && |
---|
2467 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2468 | || test ! -s conftest.err' |
---|
2469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2470 | (eval $ac_try) 2>&5 |
---|
2471 | ac_status=$? |
---|
2472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2473 | (exit $ac_status); }; } && |
---|
2474 | { ac_try='test -s conftest.$ac_objext' |
---|
2475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2476 | (eval $ac_try) 2>&5 |
---|
2477 | ac_status=$? |
---|
2478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2479 | (exit $ac_status); }; }; then |
---|
2480 | ac_cv_prog_cc_g=yes |
---|
2481 | else |
---|
2482 | echo "$as_me: failed program was:" >&5 |
---|
2483 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2484 | |
---|
2485 | ac_cv_prog_cc_g=no |
---|
2486 | fi |
---|
2487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2488 | fi |
---|
2489 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2490 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2491 | if test "$ac_test_CFLAGS" = set; then |
---|
2492 | CFLAGS=$ac_save_CFLAGS |
---|
2493 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2494 | if test "$GCC" = yes; then |
---|
2495 | CFLAGS="-g -O2" |
---|
2496 | else |
---|
2497 | CFLAGS="-g" |
---|
2498 | fi |
---|
2499 | else |
---|
2500 | if test "$GCC" = yes; then |
---|
2501 | CFLAGS="-O2" |
---|
2502 | else |
---|
2503 | CFLAGS= |
---|
2504 | fi |
---|
2505 | fi |
---|
2506 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2507 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2508 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2510 | else |
---|
2511 | ac_cv_prog_cc_stdc=no |
---|
2512 | ac_save_CC=$CC |
---|
2513 | cat >conftest.$ac_ext <<_ACEOF |
---|
2514 | /* confdefs.h. */ |
---|
2515 | _ACEOF |
---|
2516 | cat confdefs.h >>conftest.$ac_ext |
---|
2517 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2518 | /* end confdefs.h. */ |
---|
2519 | #include <stdarg.h> |
---|
2520 | #include <stdio.h> |
---|
2521 | #include <sys/types.h> |
---|
2522 | #include <sys/stat.h> |
---|
2523 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2524 | struct buf { int x; }; |
---|
2525 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2526 | static char *e (p, i) |
---|
2527 | char **p; |
---|
2528 | int i; |
---|
2529 | { |
---|
2530 | return p[i]; |
---|
2531 | } |
---|
2532 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2533 | { |
---|
2534 | char *s; |
---|
2535 | va_list v; |
---|
2536 | va_start (v,p); |
---|
2537 | s = g (p, va_arg (v,int)); |
---|
2538 | va_end (v); |
---|
2539 | return s; |
---|
2540 | } |
---|
2541 | |
---|
2542 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2543 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2544 | These don't provoke an error unfortunately, instead are silently treated |
---|
2545 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2546 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2547 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2548 | that's true only with -std1. */ |
---|
2549 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2550 | |
---|
2551 | int test (int i, double x); |
---|
2552 | struct s1 {int (*f) (int a);}; |
---|
2553 | struct s2 {int (*f) (double a);}; |
---|
2554 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2555 | int argc; |
---|
2556 | char **argv; |
---|
2557 | int |
---|
2558 | main () |
---|
2559 | { |
---|
2560 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2561 | ; |
---|
2562 | return 0; |
---|
2563 | } |
---|
2564 | _ACEOF |
---|
2565 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2566 | # breaks some systems' header files. |
---|
2567 | # AIX -qlanglvl=ansi |
---|
2568 | # Ultrix and OSF/1 -std1 |
---|
2569 | # HP-UX 10.20 and later -Ae |
---|
2570 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2571 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2572 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2573 | do |
---|
2574 | CC="$ac_save_CC $ac_arg" |
---|
2575 | rm -f conftest.$ac_objext |
---|
2576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2577 | (eval $ac_compile) 2>conftest.er1 |
---|
2578 | ac_status=$? |
---|
2579 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2580 | rm -f conftest.er1 |
---|
2581 | cat conftest.err >&5 |
---|
2582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2583 | (exit $ac_status); } && |
---|
2584 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2585 | || test ! -s conftest.err' |
---|
2586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2587 | (eval $ac_try) 2>&5 |
---|
2588 | ac_status=$? |
---|
2589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2590 | (exit $ac_status); }; } && |
---|
2591 | { ac_try='test -s conftest.$ac_objext' |
---|
2592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2593 | (eval $ac_try) 2>&5 |
---|
2594 | ac_status=$? |
---|
2595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2596 | (exit $ac_status); }; }; then |
---|
2597 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2598 | break |
---|
2599 | else |
---|
2600 | echo "$as_me: failed program was:" >&5 |
---|
2601 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2602 | |
---|
2603 | fi |
---|
2604 | rm -f conftest.err conftest.$ac_objext |
---|
2605 | done |
---|
2606 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2607 | CC=$ac_save_CC |
---|
2608 | |
---|
2609 | fi |
---|
2610 | |
---|
2611 | case "x$ac_cv_prog_cc_stdc" in |
---|
2612 | x|xno) |
---|
2613 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2614 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2615 | *) |
---|
2616 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2617 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2618 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2619 | esac |
---|
2620 | |
---|
2621 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2622 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2623 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2624 | # the declaration of exit, since it's the most demanding environment. |
---|
2625 | cat >conftest.$ac_ext <<_ACEOF |
---|
2626 | #ifndef __cplusplus |
---|
2627 | choke me |
---|
2628 | #endif |
---|
2629 | _ACEOF |
---|
2630 | rm -f conftest.$ac_objext |
---|
2631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2632 | (eval $ac_compile) 2>conftest.er1 |
---|
2633 | ac_status=$? |
---|
2634 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2635 | rm -f conftest.er1 |
---|
2636 | cat conftest.err >&5 |
---|
2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2638 | (exit $ac_status); } && |
---|
2639 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2640 | || test ! -s conftest.err' |
---|
2641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2642 | (eval $ac_try) 2>&5 |
---|
2643 | ac_status=$? |
---|
2644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2645 | (exit $ac_status); }; } && |
---|
2646 | { ac_try='test -s conftest.$ac_objext' |
---|
2647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2648 | (eval $ac_try) 2>&5 |
---|
2649 | ac_status=$? |
---|
2650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2651 | (exit $ac_status); }; }; then |
---|
2652 | for ac_declaration in \ |
---|
2653 | '' \ |
---|
2654 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2655 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2656 | 'extern "C" void exit (int) throw ();' \ |
---|
2657 | 'extern "C" void exit (int);' \ |
---|
2658 | 'void exit (int);' |
---|
2659 | do |
---|
2660 | cat >conftest.$ac_ext <<_ACEOF |
---|
2661 | /* confdefs.h. */ |
---|
2662 | _ACEOF |
---|
2663 | cat confdefs.h >>conftest.$ac_ext |
---|
2664 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2665 | /* end confdefs.h. */ |
---|
2666 | $ac_declaration |
---|
2667 | #include <stdlib.h> |
---|
2668 | int |
---|
2669 | main () |
---|
2670 | { |
---|
2671 | exit (42); |
---|
2672 | ; |
---|
2673 | return 0; |
---|
2674 | } |
---|
2675 | _ACEOF |
---|
2676 | rm -f conftest.$ac_objext |
---|
2677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2678 | (eval $ac_compile) 2>conftest.er1 |
---|
2679 | ac_status=$? |
---|
2680 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2681 | rm -f conftest.er1 |
---|
2682 | cat conftest.err >&5 |
---|
2683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2684 | (exit $ac_status); } && |
---|
2685 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2686 | || test ! -s conftest.err' |
---|
2687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2688 | (eval $ac_try) 2>&5 |
---|
2689 | ac_status=$? |
---|
2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2691 | (exit $ac_status); }; } && |
---|
2692 | { ac_try='test -s conftest.$ac_objext' |
---|
2693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2694 | (eval $ac_try) 2>&5 |
---|
2695 | ac_status=$? |
---|
2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2697 | (exit $ac_status); }; }; then |
---|
2698 | : |
---|
2699 | else |
---|
2700 | echo "$as_me: failed program was:" >&5 |
---|
2701 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2702 | |
---|
2703 | continue |
---|
2704 | fi |
---|
2705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2706 | cat >conftest.$ac_ext <<_ACEOF |
---|
2707 | /* confdefs.h. */ |
---|
2708 | _ACEOF |
---|
2709 | cat confdefs.h >>conftest.$ac_ext |
---|
2710 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2711 | /* end confdefs.h. */ |
---|
2712 | $ac_declaration |
---|
2713 | int |
---|
2714 | main () |
---|
2715 | { |
---|
2716 | exit (42); |
---|
2717 | ; |
---|
2718 | return 0; |
---|
2719 | } |
---|
2720 | _ACEOF |
---|
2721 | rm -f conftest.$ac_objext |
---|
2722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2723 | (eval $ac_compile) 2>conftest.er1 |
---|
2724 | ac_status=$? |
---|
2725 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2726 | rm -f conftest.er1 |
---|
2727 | cat conftest.err >&5 |
---|
2728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2729 | (exit $ac_status); } && |
---|
2730 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2731 | || test ! -s conftest.err' |
---|
2732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2733 | (eval $ac_try) 2>&5 |
---|
2734 | ac_status=$? |
---|
2735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2736 | (exit $ac_status); }; } && |
---|
2737 | { ac_try='test -s conftest.$ac_objext' |
---|
2738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2739 | (eval $ac_try) 2>&5 |
---|
2740 | ac_status=$? |
---|
2741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2742 | (exit $ac_status); }; }; then |
---|
2743 | break |
---|
2744 | else |
---|
2745 | echo "$as_me: failed program was:" >&5 |
---|
2746 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2747 | |
---|
2748 | fi |
---|
2749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2750 | done |
---|
2751 | rm -f conftest* |
---|
2752 | if test -n "$ac_declaration"; then |
---|
2753 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2754 | echo $ac_declaration >>confdefs.h |
---|
2755 | echo '#endif' >>confdefs.h |
---|
2756 | fi |
---|
2757 | |
---|
2758 | else |
---|
2759 | echo "$as_me: failed program was:" >&5 |
---|
2760 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2761 | |
---|
2762 | fi |
---|
2763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2764 | ac_ext=c |
---|
2765 | ac_cpp='$CPP $CPPFLAGS' |
---|
2766 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2767 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2768 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2769 | |
---|
2770 | if test -z "$CC" ; then |
---|
2771 | { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 |
---|
2772 | echo "$as_me: error: Failed to find a C compiler!" >&2;} |
---|
2773 | { (exit 1); exit 1; }; } |
---|
2774 | fi |
---|
2775 | # Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
---|
2776 | case "$CC" in |
---|
2777 | clang* ) ;; |
---|
2778 | cl* | */cl* | CL* | */CL* ) |
---|
2779 | if test "$ac_cv_prog_cc_g" = yes ; then |
---|
2780 | ac_cv_prog_cc_g=no |
---|
2781 | { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
---|
2782 | echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
---|
2783 | fi ;; |
---|
2784 | * ) |
---|
2785 | if test x"$CYGPATH_W" = x ; then |
---|
2786 | CYGPATH_W=echo |
---|
2787 | fi |
---|
2788 | ;; |
---|
2789 | esac |
---|
2790 | CFLAGS="$save_cflags" |
---|
2791 | |
---|
2792 | # add automake conditional so we can recognize cl compiler in makefile |
---|
2793 | coin_cc_is_cl=false |
---|
2794 | case "$CC" in |
---|
2795 | clang* ) ;; |
---|
2796 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
2797 | coin_cc_is_cl=true |
---|
2798 | ;; |
---|
2799 | esac |
---|
2800 | |
---|
2801 | |
---|
2802 | if test $coin_cc_is_cl = true; then |
---|
2803 | COIN_CC_IS_CL_TRUE= |
---|
2804 | COIN_CC_IS_CL_FALSE='#' |
---|
2805 | else |
---|
2806 | COIN_CC_IS_CL_TRUE='#' |
---|
2807 | COIN_CC_IS_CL_FALSE= |
---|
2808 | fi |
---|
2809 | |
---|
2810 | |
---|
2811 | # Check if a project specific CFLAGS variable has been set |
---|
2812 | if test x$COIN_PRJCT != x; then |
---|
2813 | eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} |
---|
2814 | if test x$coin_tmp = xset; then |
---|
2815 | eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} |
---|
2816 | fi |
---|
2817 | fi |
---|
2818 | |
---|
2819 | if test x"$CFLAGS" = x; then |
---|
2820 | |
---|
2821 | coin_add_cflags= |
---|
2822 | coin_opt_cflags= |
---|
2823 | coin_dbg_cflags= |
---|
2824 | coin_warn_cflags= |
---|
2825 | |
---|
2826 | if test "$GCC" = "yes"; then |
---|
2827 | case "$CC" in |
---|
2828 | icc* | */icc*) |
---|
2829 | ;; |
---|
2830 | *) |
---|
2831 | coin_opt_cflags="-O3" |
---|
2832 | coin_add_cflags="-pipe" |
---|
2833 | coin_dbg_cflags="-g -O0" |
---|
2834 | coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long" |
---|
2835 | case $build in |
---|
2836 | *-darwin*) |
---|
2837 | ;; |
---|
2838 | *) |
---|
2839 | coin_warn_cflags="-pedantic-errors $coin_warn_cflags" |
---|
2840 | ;; |
---|
2841 | esac |
---|
2842 | esac |
---|
2843 | fi |
---|
2844 | if test -z "$coin_opt_cflags"; then |
---|
2845 | case $build in |
---|
2846 | *-cygwin* | *-mingw*) |
---|
2847 | case "$CC" in |
---|
2848 | clang* ) ;; |
---|
2849 | cl* | */cl* | CL* | */CL*) |
---|
2850 | if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
---|
2851 | coin_opt_cflags='-MD -O2' |
---|
2852 | coin_dbg_cflags='-MDd' |
---|
2853 | else |
---|
2854 | coin_opt_cflags='-MT -O2' |
---|
2855 | coin_dbg_cflags='-MTd' |
---|
2856 | fi |
---|
2857 | coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' |
---|
2858 | ;; |
---|
2859 | icl* | */icl* | ICL* | */ICL*) |
---|
2860 | if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
---|
2861 | coin_opt_cflags='-MD -Ox' |
---|
2862 | coin_dbg_cflags='-MDd -debug' |
---|
2863 | else |
---|
2864 | coin_opt_cflags='-MT -Ox' |
---|
2865 | coin_dbg_cflags='-MTd -debug' |
---|
2866 | fi |
---|
2867 | coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' |
---|
2868 | ;; |
---|
2869 | esac |
---|
2870 | ;; |
---|
2871 | *-linux-*) |
---|
2872 | case "$CC" in |
---|
2873 | icc* | */icc*) |
---|
2874 | coin_opt_cflags="-O3 -ip -mp1" |
---|
2875 | coin_add_cflags="" |
---|
2876 | coin_dbg_cflags="-g" |
---|
2877 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
2878 | CFLAGS= |
---|
2879 | cat >conftest.$ac_ext <<_ACEOF |
---|
2880 | /* confdefs.h. */ |
---|
2881 | _ACEOF |
---|
2882 | cat confdefs.h >>conftest.$ac_ext |
---|
2883 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2884 | /* end confdefs.h. */ |
---|
2885 | |
---|
2886 | int |
---|
2887 | main () |
---|
2888 | { |
---|
2889 | int i=0; i++; |
---|
2890 | ; |
---|
2891 | return 0; |
---|
2892 | } |
---|
2893 | _ACEOF |
---|
2894 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2896 | (eval $ac_link) 2>conftest.er1 |
---|
2897 | ac_status=$? |
---|
2898 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2899 | rm -f conftest.er1 |
---|
2900 | cat conftest.err >&5 |
---|
2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2902 | (exit $ac_status); } && |
---|
2903 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2904 | || test ! -s conftest.err' |
---|
2905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2906 | (eval $ac_try) 2>&5 |
---|
2907 | ac_status=$? |
---|
2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2909 | (exit $ac_status); }; } && |
---|
2910 | { ac_try='test -s conftest$ac_exeext' |
---|
2911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2912 | (eval $ac_try) 2>&5 |
---|
2913 | ac_status=$? |
---|
2914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2915 | (exit $ac_status); }; }; then |
---|
2916 | : |
---|
2917 | else |
---|
2918 | echo "$as_me: failed program was:" >&5 |
---|
2919 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2920 | |
---|
2921 | coin_add_cflags="-i_dynamic $coin_add_cflags" |
---|
2922 | fi |
---|
2923 | rm -f conftest.err conftest.$ac_objext \ |
---|
2924 | conftest$ac_exeext conftest.$ac_ext |
---|
2925 | ;; |
---|
2926 | pgcc* | */pgcc*) |
---|
2927 | coin_opt_cflags="-fast" |
---|
2928 | coin_add_cflags="-Kieee -pc 64" |
---|
2929 | coin_dbg_cflags="-g" |
---|
2930 | ;; |
---|
2931 | esac |
---|
2932 | ;; |
---|
2933 | *-ibm-*) |
---|
2934 | case "$CC" in |
---|
2935 | xlc* | */xlc* | mpxlc* | */mpxlc*) |
---|
2936 | coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
2937 | coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
---|
2938 | coin_dbg_cflags="-g" |
---|
2939 | ;; |
---|
2940 | esac |
---|
2941 | ;; |
---|
2942 | *-hp-*) |
---|
2943 | coin_opt_cflags="-O" |
---|
2944 | coin_add_cflags="-Ae" |
---|
2945 | coin_dbg_cflags="-g" |
---|
2946 | ;; |
---|
2947 | *-*-solaris*) |
---|
2948 | coin_opt_cflags="-xO4" |
---|
2949 | coin_dbg_cflags="-g" |
---|
2950 | ;; |
---|
2951 | *-sgi-*) |
---|
2952 | coin_opt_cflags="-O -OPT:Olimit=0" |
---|
2953 | coin_dbg_cflags="-g" |
---|
2954 | ;; |
---|
2955 | esac |
---|
2956 | fi |
---|
2957 | |
---|
2958 | if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then |
---|
2959 | coin_dbg_cflags="-g" |
---|
2960 | fi |
---|
2961 | |
---|
2962 | if test -z "$coin_opt_cflags"; then |
---|
2963 | # Try if -O option works if nothing else is set |
---|
2964 | CFLAGS="-O" |
---|
2965 | cat >conftest.$ac_ext <<_ACEOF |
---|
2966 | /* confdefs.h. */ |
---|
2967 | _ACEOF |
---|
2968 | cat confdefs.h >>conftest.$ac_ext |
---|
2969 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2970 | /* end confdefs.h. */ |
---|
2971 | |
---|
2972 | int |
---|
2973 | main () |
---|
2974 | { |
---|
2975 | int i=0; i++; |
---|
2976 | ; |
---|
2977 | return 0; |
---|
2978 | } |
---|
2979 | _ACEOF |
---|
2980 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2982 | (eval $ac_link) 2>conftest.er1 |
---|
2983 | ac_status=$? |
---|
2984 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2985 | rm -f conftest.er1 |
---|
2986 | cat conftest.err >&5 |
---|
2987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2988 | (exit $ac_status); } && |
---|
2989 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2990 | || test ! -s conftest.err' |
---|
2991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2992 | (eval $ac_try) 2>&5 |
---|
2993 | ac_status=$? |
---|
2994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2995 | (exit $ac_status); }; } && |
---|
2996 | { ac_try='test -s conftest$ac_exeext' |
---|
2997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2998 | (eval $ac_try) 2>&5 |
---|
2999 | ac_status=$? |
---|
3000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3001 | (exit $ac_status); }; }; then |
---|
3002 | coin_opt_cflags="-O" |
---|
3003 | else |
---|
3004 | echo "$as_me: failed program was:" >&5 |
---|
3005 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3006 | |
---|
3007 | fi |
---|
3008 | rm -f conftest.err conftest.$ac_objext \ |
---|
3009 | conftest$ac_exeext conftest.$ac_ext |
---|
3010 | fi |
---|
3011 | |
---|
3012 | # if PM doesn't want the warning messages, take them out |
---|
3013 | if test x"$coin_skip_warn_cflags" = xyes; then |
---|
3014 | coin_warn_cflags= |
---|
3015 | fi |
---|
3016 | |
---|
3017 | if test x${DBG_CFLAGS+set} != xset; then |
---|
3018 | DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" |
---|
3019 | fi |
---|
3020 | if test x${OPT_CFLAGS+set} != xset; then |
---|
3021 | OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" |
---|
3022 | fi |
---|
3023 | |
---|
3024 | DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3025 | OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3026 | |
---|
3027 | if test "$coin_debug_compile" = "true"; then |
---|
3028 | CFLAGS="$DBG_CFLAGS" |
---|
3029 | else |
---|
3030 | CFLAGS="$OPT_CFLAGS" |
---|
3031 | fi |
---|
3032 | else |
---|
3033 | CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" |
---|
3034 | if test x${DBG_CFLAGS+set} != xset; then |
---|
3035 | DBG_CFLAGS="$CFLAGS" |
---|
3036 | fi |
---|
3037 | if test x${OPT_CFLAGS+set} != xset; then |
---|
3038 | OPT_CFLAGS="$CFLAGS" |
---|
3039 | fi |
---|
3040 | fi |
---|
3041 | |
---|
3042 | # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include |
---|
3043 | if test x$COIN_PRJCT != x; then |
---|
3044 | CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD" |
---|
3045 | fi |
---|
3046 | |
---|
3047 | # Try if CFLAGS works |
---|
3048 | save_CFLAGS="$CFLAGS" |
---|
3049 | cat >conftest.$ac_ext <<_ACEOF |
---|
3050 | /* confdefs.h. */ |
---|
3051 | _ACEOF |
---|
3052 | cat confdefs.h >>conftest.$ac_ext |
---|
3053 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3054 | /* end confdefs.h. */ |
---|
3055 | |
---|
3056 | int |
---|
3057 | main () |
---|
3058 | { |
---|
3059 | int i=0; i++; |
---|
3060 | ; |
---|
3061 | return 0; |
---|
3062 | } |
---|
3063 | _ACEOF |
---|
3064 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3066 | (eval $ac_link) 2>conftest.er1 |
---|
3067 | ac_status=$? |
---|
3068 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3069 | rm -f conftest.er1 |
---|
3070 | cat conftest.err >&5 |
---|
3071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3072 | (exit $ac_status); } && |
---|
3073 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3074 | || test ! -s conftest.err' |
---|
3075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3076 | (eval $ac_try) 2>&5 |
---|
3077 | ac_status=$? |
---|
3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3079 | (exit $ac_status); }; } && |
---|
3080 | { ac_try='test -s conftest$ac_exeext' |
---|
3081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3082 | (eval $ac_try) 2>&5 |
---|
3083 | ac_status=$? |
---|
3084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3085 | (exit $ac_status); }; }; then |
---|
3086 | : |
---|
3087 | else |
---|
3088 | echo "$as_me: failed program was:" >&5 |
---|
3089 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3090 | |
---|
3091 | CFLAGS= |
---|
3092 | fi |
---|
3093 | rm -f conftest.err conftest.$ac_objext \ |
---|
3094 | conftest$ac_exeext conftest.$ac_ext |
---|
3095 | if test -z "$CFLAGS"; then |
---|
3096 | { 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 |
---|
3097 | 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;} |
---|
3098 | CFLAGS='-O' |
---|
3099 | cat >conftest.$ac_ext <<_ACEOF |
---|
3100 | /* confdefs.h. */ |
---|
3101 | _ACEOF |
---|
3102 | cat confdefs.h >>conftest.$ac_ext |
---|
3103 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3104 | /* end confdefs.h. */ |
---|
3105 | |
---|
3106 | int |
---|
3107 | main () |
---|
3108 | { |
---|
3109 | int i=0; i++; |
---|
3110 | ; |
---|
3111 | return 0; |
---|
3112 | } |
---|
3113 | _ACEOF |
---|
3114 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3116 | (eval $ac_link) 2>conftest.er1 |
---|
3117 | ac_status=$? |
---|
3118 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3119 | rm -f conftest.er1 |
---|
3120 | cat conftest.err >&5 |
---|
3121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3122 | (exit $ac_status); } && |
---|
3123 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3124 | || test ! -s conftest.err' |
---|
3125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3126 | (eval $ac_try) 2>&5 |
---|
3127 | ac_status=$? |
---|
3128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3129 | (exit $ac_status); }; } && |
---|
3130 | { ac_try='test -s conftest$ac_exeext' |
---|
3131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3132 | (eval $ac_try) 2>&5 |
---|
3133 | ac_status=$? |
---|
3134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3135 | (exit $ac_status); }; }; then |
---|
3136 | : |
---|
3137 | else |
---|
3138 | echo "$as_me: failed program was:" >&5 |
---|
3139 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3140 | |
---|
3141 | CFLAGS= |
---|
3142 | fi |
---|
3143 | rm -f conftest.err conftest.$ac_objext \ |
---|
3144 | conftest$ac_exeext conftest.$ac_ext |
---|
3145 | if test -z "$CFLAGS"; then |
---|
3146 | { 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 |
---|
3147 | 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;} |
---|
3148 | fi |
---|
3149 | fi |
---|
3150 | |
---|
3151 | { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 |
---|
3152 | echo "$as_me: C compiler options are: $CFLAGS" >&6;} |
---|
3153 | |
---|
3154 | |
---|
3155 | if test x"$MPICC" = x; then :; else |
---|
3156 | { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 |
---|
3157 | echo "$as_me: Will use MPI C compiler $MPICC" >&6;} |
---|
3158 | CC="$MPICC" |
---|
3159 | fi |
---|
3160 | |
---|
3161 | # Correct the LD variable if we are using the MS or Intel-windows compiler |
---|
3162 | case "$CC" in |
---|
3163 | clang* ) ;; |
---|
3164 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
3165 | |
---|
3166 | case $build in |
---|
3167 | *-mingw*) |
---|
3168 | if test "${LD+set}" = set; then :; else |
---|
3169 | LD=link |
---|
3170 | fi |
---|
3171 | ;; |
---|
3172 | esac |
---|
3173 | if test $enable_msvc = yes ; then |
---|
3174 | if test "x${LD+set}" = xset; then :; else |
---|
3175 | LD=link |
---|
3176 | fi |
---|
3177 | fi |
---|
3178 | |
---|
3179 | ;; |
---|
3180 | esac |
---|
3181 | |
---|
3182 | ac_ext=c |
---|
3183 | ac_cpp='$CPP $CPPFLAGS' |
---|
3184 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3185 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3186 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3187 | |
---|
3188 | |
---|
3189 | case $build in |
---|
3190 | *-cygwin* | *-mingw*) |
---|
3191 | if test "$enable_msvc" = yes ; then |
---|
3192 | coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77" |
---|
3193 | else |
---|
3194 | coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c" |
---|
3195 | fi ;; |
---|
3196 | *-*-solaris*) |
---|
3197 | coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;; |
---|
3198 | *-linux-gnu*) |
---|
3199 | coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;; |
---|
3200 | *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;; |
---|
3201 | esac |
---|
3202 | |
---|
3203 | |
---|
3204 | |
---|
3205 | |
---|
3206 | |
---|
3207 | |
---|
3208 | ac_ext=f |
---|
3209 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3210 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3211 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3212 | |
---|
3213 | |
---|
3214 | |
---|
3215 | |
---|
3216 | |
---|
3217 | |
---|
3218 | coin_has_f77=yes |
---|
3219 | |
---|
3220 | save_fflags="$FFLAGS" |
---|
3221 | |
---|
3222 | # We delete the cached value, since the test might not have been |
---|
3223 | # performed with our choice of compilers earlier |
---|
3224 | $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; } |
---|
3225 | |
---|
3226 | # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use |
---|
3227 | # coin_f77_comps to see if there's a program that matches one of the names. |
---|
3228 | # If there's no such program, F77 = unavailable. If we match the name, |
---|
3229 | # feed AC_PROG_F77 the same search list, just to be sure it's a functioning |
---|
3230 | # compiler. |
---|
3231 | # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps]) |
---|
3232 | |
---|
3233 | |
---|
3234 | { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5 |
---|
3235 | echo "$as_me: Trying to determine Fortran compiler name" >&6;} |
---|
3236 | if test -n "$ac_tool_prefix"; then |
---|
3237 | for ac_prog in $coin_f77_comps |
---|
3238 | do |
---|
3239 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3240 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3241 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3243 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
3244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3245 | else |
---|
3246 | if test -n "$F77"; then |
---|
3247 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3248 | else |
---|
3249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3250 | for as_dir in $PATH |
---|
3251 | do |
---|
3252 | IFS=$as_save_IFS |
---|
3253 | test -z "$as_dir" && as_dir=. |
---|
3254 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3255 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3256 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
3257 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3258 | break 2 |
---|
3259 | fi |
---|
3260 | done |
---|
3261 | done |
---|
3262 | |
---|
3263 | fi |
---|
3264 | fi |
---|
3265 | F77=$ac_cv_prog_F77 |
---|
3266 | if test -n "$F77"; then |
---|
3267 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
3268 | echo "${ECHO_T}$F77" >&6 |
---|
3269 | else |
---|
3270 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3271 | echo "${ECHO_T}no" >&6 |
---|
3272 | fi |
---|
3273 | |
---|
3274 | test -n "$F77" && break |
---|
3275 | done |
---|
3276 | fi |
---|
3277 | if test -z "$F77"; then |
---|
3278 | ac_ct_F77=$F77 |
---|
3279 | for ac_prog in $coin_f77_comps |
---|
3280 | do |
---|
3281 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3282 | set dummy $ac_prog; ac_word=$2 |
---|
3283 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3285 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
3286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3287 | else |
---|
3288 | if test -n "$ac_ct_F77"; then |
---|
3289 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
3290 | else |
---|
3291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3292 | for as_dir in $PATH |
---|
3293 | do |
---|
3294 | IFS=$as_save_IFS |
---|
3295 | test -z "$as_dir" && as_dir=. |
---|
3296 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3297 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3298 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
3299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3300 | break 2 |
---|
3301 | fi |
---|
3302 | done |
---|
3303 | done |
---|
3304 | |
---|
3305 | fi |
---|
3306 | fi |
---|
3307 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
3308 | if test -n "$ac_ct_F77"; then |
---|
3309 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
3310 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
3311 | else |
---|
3312 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3313 | echo "${ECHO_T}no" >&6 |
---|
3314 | fi |
---|
3315 | |
---|
3316 | test -n "$ac_ct_F77" && break |
---|
3317 | done |
---|
3318 | test -n "$ac_ct_F77" || ac_ct_F77="unavailable" |
---|
3319 | |
---|
3320 | F77=$ac_ct_F77 |
---|
3321 | fi |
---|
3322 | |
---|
3323 | |
---|
3324 | if test "$F77" != "unavailable" ; then |
---|
3325 | ac_ext=f |
---|
3326 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3327 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3328 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3329 | if test -n "$ac_tool_prefix"; then |
---|
3330 | for ac_prog in $coin_f77_comps |
---|
3331 | do |
---|
3332 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3333 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3334 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3336 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
3337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3338 | else |
---|
3339 | if test -n "$F77"; then |
---|
3340 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3341 | else |
---|
3342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3343 | for as_dir in $PATH |
---|
3344 | do |
---|
3345 | IFS=$as_save_IFS |
---|
3346 | test -z "$as_dir" && as_dir=. |
---|
3347 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3348 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3349 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
3350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3351 | break 2 |
---|
3352 | fi |
---|
3353 | done |
---|
3354 | done |
---|
3355 | |
---|
3356 | fi |
---|
3357 | fi |
---|
3358 | F77=$ac_cv_prog_F77 |
---|
3359 | if test -n "$F77"; then |
---|
3360 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
3361 | echo "${ECHO_T}$F77" >&6 |
---|
3362 | else |
---|
3363 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3364 | echo "${ECHO_T}no" >&6 |
---|
3365 | fi |
---|
3366 | |
---|
3367 | test -n "$F77" && break |
---|
3368 | done |
---|
3369 | fi |
---|
3370 | if test -z "$F77"; then |
---|
3371 | ac_ct_F77=$F77 |
---|
3372 | for ac_prog in $coin_f77_comps |
---|
3373 | do |
---|
3374 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3375 | set dummy $ac_prog; ac_word=$2 |
---|
3376 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3378 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
3379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3380 | else |
---|
3381 | if test -n "$ac_ct_F77"; then |
---|
3382 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
3383 | else |
---|
3384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3385 | for as_dir in $PATH |
---|
3386 | do |
---|
3387 | IFS=$as_save_IFS |
---|
3388 | test -z "$as_dir" && as_dir=. |
---|
3389 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3390 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3391 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
3392 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3393 | break 2 |
---|
3394 | fi |
---|
3395 | done |
---|
3396 | done |
---|
3397 | |
---|
3398 | fi |
---|
3399 | fi |
---|
3400 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
3401 | if test -n "$ac_ct_F77"; then |
---|
3402 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
3403 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
3404 | else |
---|
3405 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3406 | echo "${ECHO_T}no" >&6 |
---|
3407 | fi |
---|
3408 | |
---|
3409 | test -n "$ac_ct_F77" && break |
---|
3410 | done |
---|
3411 | |
---|
3412 | F77=$ac_ct_F77 |
---|
3413 | fi |
---|
3414 | |
---|
3415 | |
---|
3416 | # Provide some information about the compiler. |
---|
3417 | echo "$as_me:3417:" \ |
---|
3418 | "checking for Fortran 77 compiler version" >&5 |
---|
3419 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3420 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
3421 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
3422 | ac_status=$? |
---|
3423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3424 | (exit $ac_status); } |
---|
3425 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
3426 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
3427 | ac_status=$? |
---|
3428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3429 | (exit $ac_status); } |
---|
3430 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3431 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3432 | ac_status=$? |
---|
3433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3434 | (exit $ac_status); } |
---|
3435 | rm -f a.out |
---|
3436 | |
---|
3437 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
3438 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
3439 | ac_save_ext=$ac_ext |
---|
3440 | ac_ext=F |
---|
3441 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
3442 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
---|
3443 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
3444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3445 | else |
---|
3446 | cat >conftest.$ac_ext <<_ACEOF |
---|
3447 | program main |
---|
3448 | #ifndef __GNUC__ |
---|
3449 | choke me |
---|
3450 | #endif |
---|
3451 | |
---|
3452 | end |
---|
3453 | _ACEOF |
---|
3454 | rm -f conftest.$ac_objext |
---|
3455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3456 | (eval $ac_compile) 2>conftest.er1 |
---|
3457 | ac_status=$? |
---|
3458 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3459 | rm -f conftest.er1 |
---|
3460 | cat conftest.err >&5 |
---|
3461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3462 | (exit $ac_status); } && |
---|
3463 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3464 | || test ! -s conftest.err' |
---|
3465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3466 | (eval $ac_try) 2>&5 |
---|
3467 | ac_status=$? |
---|
3468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3469 | (exit $ac_status); }; } && |
---|
3470 | { ac_try='test -s conftest.$ac_objext' |
---|
3471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3472 | (eval $ac_try) 2>&5 |
---|
3473 | ac_status=$? |
---|
3474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3475 | (exit $ac_status); }; }; then |
---|
3476 | ac_compiler_gnu=yes |
---|
3477 | else |
---|
3478 | echo "$as_me: failed program was:" >&5 |
---|
3479 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3480 | |
---|
3481 | ac_compiler_gnu=no |
---|
3482 | fi |
---|
3483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3484 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
3485 | |
---|
3486 | fi |
---|
3487 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
3488 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
---|
3489 | ac_ext=$ac_save_ext |
---|
3490 | ac_test_FFLAGS=${FFLAGS+set} |
---|
3491 | ac_save_FFLAGS=$FFLAGS |
---|
3492 | FFLAGS= |
---|
3493 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
3494 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
---|
3495 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
3496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3497 | else |
---|
3498 | FFLAGS=-g |
---|
3499 | cat >conftest.$ac_ext <<_ACEOF |
---|
3500 | program main |
---|
3501 | |
---|
3502 | end |
---|
3503 | _ACEOF |
---|
3504 | rm -f conftest.$ac_objext |
---|
3505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3506 | (eval $ac_compile) 2>conftest.er1 |
---|
3507 | ac_status=$? |
---|
3508 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3509 | rm -f conftest.er1 |
---|
3510 | cat conftest.err >&5 |
---|
3511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3512 | (exit $ac_status); } && |
---|
3513 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3514 | || test ! -s conftest.err' |
---|
3515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3516 | (eval $ac_try) 2>&5 |
---|
3517 | ac_status=$? |
---|
3518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3519 | (exit $ac_status); }; } && |
---|
3520 | { ac_try='test -s conftest.$ac_objext' |
---|
3521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3522 | (eval $ac_try) 2>&5 |
---|
3523 | ac_status=$? |
---|
3524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3525 | (exit $ac_status); }; }; then |
---|
3526 | ac_cv_prog_f77_g=yes |
---|
3527 | else |
---|
3528 | echo "$as_me: failed program was:" >&5 |
---|
3529 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3530 | |
---|
3531 | ac_cv_prog_f77_g=no |
---|
3532 | fi |
---|
3533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3534 | |
---|
3535 | fi |
---|
3536 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
3537 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
---|
3538 | if test "$ac_test_FFLAGS" = set; then |
---|
3539 | FFLAGS=$ac_save_FFLAGS |
---|
3540 | elif test $ac_cv_prog_f77_g = yes; then |
---|
3541 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
3542 | FFLAGS="-g -O2" |
---|
3543 | else |
---|
3544 | FFLAGS="-g" |
---|
3545 | fi |
---|
3546 | else |
---|
3547 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
3548 | FFLAGS="-O2" |
---|
3549 | else |
---|
3550 | FFLAGS= |
---|
3551 | fi |
---|
3552 | fi |
---|
3553 | |
---|
3554 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
3555 | ac_ext=f |
---|
3556 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3557 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3558 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3559 | |
---|
3560 | else |
---|
3561 | { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5 |
---|
3562 | echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;} |
---|
3563 | fi |
---|
3564 | |
---|
3565 | FFLAGS="$save_fflags" |
---|
3566 | |
---|
3567 | # Check if a project specific FFLAGS variable has been set |
---|
3568 | if test x$COIN_PRJCT != x; then |
---|
3569 | eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set} |
---|
3570 | if test x$coin_tmp = xset; then |
---|
3571 | eval FFLAGS=\${${COIN_PRJCT}_FFLAGS} |
---|
3572 | fi |
---|
3573 | fi |
---|
3574 | |
---|
3575 | if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then |
---|
3576 | |
---|
3577 | coin_add_fflags= |
---|
3578 | coin_opt_fflags= |
---|
3579 | coin_dbg_fflags= |
---|
3580 | coin_warn_fflags= |
---|
3581 | |
---|
3582 | if test "$G77" = "yes"; then |
---|
3583 | coin_opt_fflags="-O3" |
---|
3584 | coin_add_fflags="-pipe" |
---|
3585 | coin_dbg_fflags="-g -O0" |
---|
3586 | else |
---|
3587 | case $build in |
---|
3588 | *-cygwin* | *-mingw*) |
---|
3589 | case $F77 in |
---|
3590 | ifort* | */ifort* | IFORT* | */IFORT* ) |
---|
3591 | if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
---|
3592 | coin_opt_fflags='-MD -O3' |
---|
3593 | coin_dbg_fflags='-MDd -debug' |
---|
3594 | else |
---|
3595 | coin_opt_fflags='-MT -O3' |
---|
3596 | coin_dbg_fflags='-MTd -debug' |
---|
3597 | fi |
---|
3598 | coin_add_fflags='-fpp -nologo' |
---|
3599 | ;; |
---|
3600 | compile_f2c*) |
---|
3601 | if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
---|
3602 | coin_opt_fflags='-MD -O2' |
---|
3603 | coin_dbg_fflags='-MDd' |
---|
3604 | else |
---|
3605 | coin_opt_fflags='-MT -O2' |
---|
3606 | coin_dbg_fflags='-MTd' |
---|
3607 | fi |
---|
3608 | coin_add_fflags='-nologo -wd4996' |
---|
3609 | ;; |
---|
3610 | esac |
---|
3611 | ;; |
---|
3612 | *-linux-*) |
---|
3613 | case $F77 in |
---|
3614 | ifc* | */ifc* | ifort* | */ifort*) |
---|
3615 | coin_opt_fflags="-O3 -ip" |
---|
3616 | coin_add_fflags="-cm -w90 -w95" |
---|
3617 | coin_dbg_fflags="-g -CA -CB -CS" |
---|
3618 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
3619 | FFLAGS= |
---|
3620 | cat >conftest.$ac_ext <<_ACEOF |
---|
3621 | program main |
---|
3622 | write(*,*) 'Hello world' |
---|
3623 | end |
---|
3624 | _ACEOF |
---|
3625 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3627 | (eval $ac_link) 2>conftest.er1 |
---|
3628 | ac_status=$? |
---|
3629 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3630 | rm -f conftest.er1 |
---|
3631 | cat conftest.err >&5 |
---|
3632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3633 | (exit $ac_status); } && |
---|
3634 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3635 | || test ! -s conftest.err' |
---|
3636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3637 | (eval $ac_try) 2>&5 |
---|
3638 | ac_status=$? |
---|
3639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3640 | (exit $ac_status); }; } && |
---|
3641 | { ac_try='test -s conftest$ac_exeext' |
---|
3642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3643 | (eval $ac_try) 2>&5 |
---|
3644 | ac_status=$? |
---|
3645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3646 | (exit $ac_status); }; }; then |
---|
3647 | : |
---|
3648 | else |
---|
3649 | echo "$as_me: failed program was:" >&5 |
---|
3650 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3651 | |
---|
3652 | coin_add_fflags="-i_dynamic $coin_add_fflags" |
---|
3653 | fi |
---|
3654 | rm -f conftest.err conftest.$ac_objext \ |
---|
3655 | conftest$ac_exeext conftest.$ac_ext |
---|
3656 | ;; |
---|
3657 | pgf77* | */pgf77* | pgf90* | */pgf90*) |
---|
3658 | coin_opt_fflags="-fast" |
---|
3659 | coin_add_fflags="-Kieee -pc 64" |
---|
3660 | coin_dbg_fflags="-g" |
---|
3661 | ;; |
---|
3662 | esac |
---|
3663 | ;; |
---|
3664 | *-ibm-*) |
---|
3665 | case "$F77" in |
---|
3666 | xlf* | */xlf* | mpxlf* | */mpxlf* ) |
---|
3667 | coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
3668 | coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
---|
3669 | coin_dbg_fflags="-g -C" |
---|
3670 | ;; |
---|
3671 | esac |
---|
3672 | ;; |
---|
3673 | *-hp-*) |
---|
3674 | coin_opt_fflags="+O3" |
---|
3675 | coin_add_fflags="+U77" |
---|
3676 | coin_dbg_fflags="-C -g" |
---|
3677 | ;; |
---|
3678 | *-*-solaris*) |
---|
3679 | coin_opt_fflags="-O4" |
---|
3680 | coin_dbg_fflags="-g" |
---|
3681 | ;; |
---|
3682 | *-sgi-*) |
---|
3683 | coin_opt_fflags="-O5 -OPT:Olimit=0" |
---|
3684 | coin_dbg_fflags="-g" |
---|
3685 | ;; |
---|
3686 | esac |
---|
3687 | fi |
---|
3688 | |
---|
3689 | if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then |
---|
3690 | coin_dbg_fflags="-g" |
---|
3691 | fi |
---|
3692 | |
---|
3693 | if test -z "$coin_opt_fflags"; then |
---|
3694 | # Try if -O option works if nothing else is set |
---|
3695 | FFLAGS=-O |
---|
3696 | cat >conftest.$ac_ext <<_ACEOF |
---|
3697 | program main |
---|
3698 | integer i |
---|
3699 | end |
---|
3700 | _ACEOF |
---|
3701 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3703 | (eval $ac_link) 2>conftest.er1 |
---|
3704 | ac_status=$? |
---|
3705 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3706 | rm -f conftest.er1 |
---|
3707 | cat conftest.err >&5 |
---|
3708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3709 | (exit $ac_status); } && |
---|
3710 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3711 | || test ! -s conftest.err' |
---|
3712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3713 | (eval $ac_try) 2>&5 |
---|
3714 | ac_status=$? |
---|
3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3716 | (exit $ac_status); }; } && |
---|
3717 | { ac_try='test -s conftest$ac_exeext' |
---|
3718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3719 | (eval $ac_try) 2>&5 |
---|
3720 | ac_status=$? |
---|
3721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3722 | (exit $ac_status); }; }; then |
---|
3723 | coin_opt_fflags="-O" |
---|
3724 | else |
---|
3725 | echo "$as_me: failed program was:" >&5 |
---|
3726 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3727 | |
---|
3728 | fi |
---|
3729 | rm -f conftest.err conftest.$ac_objext \ |
---|
3730 | conftest$ac_exeext conftest.$ac_ext |
---|
3731 | fi |
---|
3732 | |
---|
3733 | # if PM doesn't want the warning messages, take them out |
---|
3734 | if test x"$coin_skip_warn_fflags" = xyes; then |
---|
3735 | coin_warn_fflags= |
---|
3736 | fi |
---|
3737 | |
---|
3738 | if test x${DBG_FFLAGS+set} != xset; then |
---|
3739 | DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags" |
---|
3740 | fi |
---|
3741 | if test x${OPT_FFLAGS+set} != xset; then |
---|
3742 | OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags" |
---|
3743 | fi |
---|
3744 | |
---|
3745 | DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS" |
---|
3746 | OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS" |
---|
3747 | |
---|
3748 | if test "$coin_debug_compile" = "true"; then |
---|
3749 | FFLAGS="$DBG_FFLAGS" |
---|
3750 | else |
---|
3751 | FFLAGS="$OPT_FFLAGS" |
---|
3752 | fi |
---|
3753 | else |
---|
3754 | FFLAGS="$FFLAGS $ADD_FFLAGS" |
---|
3755 | if test x${DBG_FFLAGS+set} != xset; then |
---|
3756 | DBG_FFLAGS="$FFLAGS" |
---|
3757 | fi |
---|
3758 | if test x${OPT_FFLAGS+set} != xset; then |
---|
3759 | OPT_FFLAGS="$FFLAGS" |
---|
3760 | fi |
---|
3761 | fi |
---|
3762 | |
---|
3763 | # Try if FFLAGS works |
---|
3764 | if test "$F77" != "unavailable" ; then |
---|
3765 | cat >conftest.$ac_ext <<_ACEOF |
---|
3766 | program main |
---|
3767 | integer i |
---|
3768 | end |
---|
3769 | _ACEOF |
---|
3770 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3772 | (eval $ac_link) 2>conftest.er1 |
---|
3773 | ac_status=$? |
---|
3774 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3775 | rm -f conftest.er1 |
---|
3776 | cat conftest.err >&5 |
---|
3777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3778 | (exit $ac_status); } && |
---|
3779 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3780 | || test ! -s conftest.err' |
---|
3781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3782 | (eval $ac_try) 2>&5 |
---|
3783 | ac_status=$? |
---|
3784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3785 | (exit $ac_status); }; } && |
---|
3786 | { ac_try='test -s conftest$ac_exeext' |
---|
3787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3788 | (eval $ac_try) 2>&5 |
---|
3789 | ac_status=$? |
---|
3790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3791 | (exit $ac_status); }; }; then |
---|
3792 | : |
---|
3793 | else |
---|
3794 | echo "$as_me: failed program was:" >&5 |
---|
3795 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3796 | |
---|
3797 | FFLAGS= |
---|
3798 | fi |
---|
3799 | rm -f conftest.err conftest.$ac_objext \ |
---|
3800 | conftest$ac_exeext conftest.$ac_ext |
---|
3801 | if test -z "$FFLAGS"; then |
---|
3802 | { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&5 |
---|
3803 | echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&2;} |
---|
3804 | FFLAGS='-O' |
---|
3805 | cat >conftest.$ac_ext <<_ACEOF |
---|
3806 | program main |
---|
3807 | integer i |
---|
3808 | end |
---|
3809 | _ACEOF |
---|
3810 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3812 | (eval $ac_link) 2>conftest.er1 |
---|
3813 | ac_status=$? |
---|
3814 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3815 | rm -f conftest.er1 |
---|
3816 | cat conftest.err >&5 |
---|
3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3818 | (exit $ac_status); } && |
---|
3819 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3820 | || test ! -s conftest.err' |
---|
3821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3822 | (eval $ac_try) 2>&5 |
---|
3823 | ac_status=$? |
---|
3824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3825 | (exit $ac_status); }; } && |
---|
3826 | { ac_try='test -s conftest$ac_exeext' |
---|
3827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3828 | (eval $ac_try) 2>&5 |
---|
3829 | ac_status=$? |
---|
3830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3831 | (exit $ac_status); }; }; then |
---|
3832 | : |
---|
3833 | else |
---|
3834 | echo "$as_me: failed program was:" >&5 |
---|
3835 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3836 | |
---|
3837 | FFLAGS= |
---|
3838 | fi |
---|
3839 | rm -f conftest.err conftest.$ac_objext \ |
---|
3840 | conftest$ac_exeext conftest.$ac_ext |
---|
3841 | if test -z "$FFLAGS"; then |
---|
3842 | { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5 |
---|
3843 | echo "$as_me: WARNING: This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;} |
---|
3844 | fi |
---|
3845 | fi |
---|
3846 | fi |
---|
3847 | |
---|
3848 | { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5 |
---|
3849 | echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;} |
---|
3850 | |
---|
3851 | |
---|
3852 | if test x"$MPIF77" = x; then :; else |
---|
3853 | { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5 |
---|
3854 | echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;} |
---|
3855 | F77="$MPIF77" |
---|
3856 | fi |
---|
3857 | |
---|
3858 | # correct the LD variable if we use the intel fortran compiler in windows |
---|
3859 | case "$F77" in |
---|
3860 | ifort* | */ifort* | IFORT* | */IFORT*) |
---|
3861 | |
---|
3862 | case $build in |
---|
3863 | *-mingw*) |
---|
3864 | if test "${LD+set}" = set; then :; else |
---|
3865 | LD=link |
---|
3866 | fi |
---|
3867 | ;; |
---|
3868 | esac |
---|
3869 | if test $enable_msvc = yes ; then |
---|
3870 | if test "x${LD+set}" = xset; then :; else |
---|
3871 | LD=link |
---|
3872 | fi |
---|
3873 | fi |
---|
3874 | |
---|
3875 | ;; |
---|
3876 | esac |
---|
3877 | |
---|
3878 | ac_ext=c |
---|
3879 | ac_cpp='$CPP $CPPFLAGS' |
---|
3880 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3881 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3882 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3883 | |
---|
3884 | |
---|
3885 | |
---|
3886 | # Get the linker flags (FLIBS) that are required for linking against this library |
---|
3887 | |
---|
3888 | # get FLIBS |
---|
3889 | ac_ext=f |
---|
3890 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3891 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3892 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3893 | echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5 |
---|
3894 | echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6 |
---|
3895 | if test "${ac_cv_prog_f77_v+set}" = set; then |
---|
3896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3897 | else |
---|
3898 | cat >conftest.$ac_ext <<_ACEOF |
---|
3899 | program main |
---|
3900 | |
---|
3901 | end |
---|
3902 | _ACEOF |
---|
3903 | rm -f conftest.$ac_objext |
---|
3904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3905 | (eval $ac_compile) 2>conftest.er1 |
---|
3906 | ac_status=$? |
---|
3907 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3908 | rm -f conftest.er1 |
---|
3909 | cat conftest.err >&5 |
---|
3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3911 | (exit $ac_status); } && |
---|
3912 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3913 | || test ! -s conftest.err' |
---|
3914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3915 | (eval $ac_try) 2>&5 |
---|
3916 | ac_status=$? |
---|
3917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3918 | (exit $ac_status); }; } && |
---|
3919 | { ac_try='test -s conftest.$ac_objext' |
---|
3920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3921 | (eval $ac_try) 2>&5 |
---|
3922 | ac_status=$? |
---|
3923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3924 | (exit $ac_status); }; }; then |
---|
3925 | ac_cv_prog_f77_v= |
---|
3926 | # Try some options frequently used verbose output |
---|
3927 | for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
---|
3928 | cat >conftest.$ac_ext <<_ACEOF |
---|
3929 | program main |
---|
3930 | |
---|
3931 | end |
---|
3932 | _ACEOF |
---|
3933 | |
---|
3934 | # Compile and link our simple test program by passing a flag (argument |
---|
3935 | # 1 to this macro) to the Fortran compiler in order to get |
---|
3936 | # "verbose" output that we can then parse for the Fortran linker |
---|
3937 | # flags. |
---|
3938 | ac_save_FFLAGS=$FFLAGS |
---|
3939 | FFLAGS="$FFLAGS $ac_verb" |
---|
3940 | (eval echo $as_me:3940: \"$ac_link\") >&5 |
---|
3941 | ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
---|
3942 | echo "$ac_f77_v_output" >&5 |
---|
3943 | FFLAGS=$ac_save_FFLAGS |
---|
3944 | |
---|
3945 | rm -f conftest* |
---|
3946 | |
---|
3947 | # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
---|
3948 | # /foo, /bar, and /baz are search directories for the Fortran linker. |
---|
3949 | # Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
---|
3950 | ac_f77_v_output="`echo $ac_f77_v_output | |
---|
3951 | grep 'LPATH is:' | |
---|
3952 | sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" |
---|
3953 | |
---|
3954 | case $ac_f77_v_output in |
---|
3955 | # If we are using xlf then replace all the commas with spaces. |
---|
3956 | *xlfentry*) |
---|
3957 | ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; |
---|
3958 | |
---|
3959 | # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
---|
3960 | # $LIBS confuse us, and the libraries appear later in the output anyway). |
---|
3961 | *mGLOB_options_string*) |
---|
3962 | ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; |
---|
3963 | |
---|
3964 | # If we are using Cray Fortran then delete quotes. |
---|
3965 | # Use "\"" instead of '"' for font-lock-mode. |
---|
3966 | # FIXME: a more general fix for quoted arguments with spaces? |
---|
3967 | *cft90*) |
---|
3968 | ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; |
---|
3969 | esac |
---|
3970 | |
---|
3971 | |
---|
3972 | # look for -l* and *.a constructs in the output |
---|
3973 | for ac_arg in $ac_f77_v_output; do |
---|
3974 | case $ac_arg in |
---|
3975 | [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
---|
3976 | ac_cv_prog_f77_v=$ac_verb |
---|
3977 | break 2 ;; |
---|
3978 | esac |
---|
3979 | done |
---|
3980 | done |
---|
3981 | if test -z "$ac_cv_prog_f77_v"; then |
---|
3982 | { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5 |
---|
3983 | echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} |
---|
3984 | fi |
---|
3985 | else |
---|
3986 | echo "$as_me: failed program was:" >&5 |
---|
3987 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3988 | |
---|
3989 | { echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
---|
3990 | echo "$as_me: WARNING: compilation failed" >&2;} |
---|
3991 | fi |
---|
3992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3993 | |
---|
3994 | fi |
---|
3995 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5 |
---|
3996 | echo "${ECHO_T}$ac_cv_prog_f77_v" >&6 |
---|
3997 | echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5 |
---|
3998 | echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6 |
---|
3999 | if test "${ac_cv_f77_libs+set}" = set; then |
---|
4000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4001 | else |
---|
4002 | if test "x$FLIBS" != "x"; then |
---|
4003 | ac_cv_f77_libs="$FLIBS" # Let the user override the test. |
---|
4004 | else |
---|
4005 | |
---|
4006 | cat >conftest.$ac_ext <<_ACEOF |
---|
4007 | program main |
---|
4008 | |
---|
4009 | end |
---|
4010 | _ACEOF |
---|
4011 | |
---|
4012 | # Compile and link our simple test program by passing a flag (argument |
---|
4013 | # 1 to this macro) to the Fortran compiler in order to get |
---|
4014 | # "verbose" output that we can then parse for the Fortran linker |
---|
4015 | # flags. |
---|
4016 | ac_save_FFLAGS=$FFLAGS |
---|
4017 | FFLAGS="$FFLAGS $ac_cv_prog_f77_v" |
---|
4018 | (eval echo $as_me:4018: \"$ac_link\") >&5 |
---|
4019 | ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
---|
4020 | echo "$ac_f77_v_output" >&5 |
---|
4021 | FFLAGS=$ac_save_FFLAGS |
---|
4022 | |
---|
4023 | rm -f conftest* |
---|
4024 | |
---|
4025 | # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
---|
4026 | # /foo, /bar, and /baz are search directories for the Fortran linker. |
---|
4027 | # Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
---|
4028 | ac_f77_v_output="`echo $ac_f77_v_output | |
---|
4029 | grep 'LPATH is:' | |
---|
4030 | sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" |
---|
4031 | |
---|
4032 | case $ac_f77_v_output in |
---|
4033 | # If we are using xlf then replace all the commas with spaces. |
---|
4034 | *xlfentry*) |
---|
4035 | ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; |
---|
4036 | |
---|
4037 | # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
---|
4038 | # $LIBS confuse us, and the libraries appear later in the output anyway). |
---|
4039 | *mGLOB_options_string*) |
---|
4040 | ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; |
---|
4041 | |
---|
4042 | # If we are using Cray Fortran then delete quotes. |
---|
4043 | # Use "\"" instead of '"' for font-lock-mode. |
---|
4044 | # FIXME: a more general fix for quoted arguments with spaces? |
---|
4045 | *cft90*) |
---|
4046 | ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; |
---|
4047 | esac |
---|
4048 | |
---|
4049 | |
---|
4050 | |
---|
4051 | ac_cv_f77_libs= |
---|
4052 | |
---|
4053 | # Save positional arguments (if any) |
---|
4054 | ac_save_positional="$@" |
---|
4055 | |
---|
4056 | set X $ac_f77_v_output |
---|
4057 | while test $# != 1; do |
---|
4058 | shift |
---|
4059 | ac_arg=$1 |
---|
4060 | case $ac_arg in |
---|
4061 | [\\/]*.a | ?:[\\/]*.a) |
---|
4062 | ac_exists=false |
---|
4063 | for ac_i in $ac_cv_f77_libs; do |
---|
4064 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4065 | ac_exists=true |
---|
4066 | break |
---|
4067 | fi |
---|
4068 | done |
---|
4069 | |
---|
4070 | if test x"$ac_exists" = xtrue; then |
---|
4071 | : |
---|
4072 | else |
---|
4073 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
---|
4074 | fi |
---|
4075 | |
---|
4076 | ;; |
---|
4077 | -bI:*) |
---|
4078 | ac_exists=false |
---|
4079 | for ac_i in $ac_cv_f77_libs; do |
---|
4080 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4081 | ac_exists=true |
---|
4082 | break |
---|
4083 | fi |
---|
4084 | done |
---|
4085 | |
---|
4086 | if test x"$ac_exists" = xtrue; then |
---|
4087 | : |
---|
4088 | else |
---|
4089 | if test "$ac_compiler_gnu" = yes; then |
---|
4090 | for ac_link_opt in $ac_arg; do |
---|
4091 | ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" |
---|
4092 | done |
---|
4093 | else |
---|
4094 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
---|
4095 | fi |
---|
4096 | fi |
---|
4097 | |
---|
4098 | ;; |
---|
4099 | # Ignore these flags. |
---|
4100 | -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*) |
---|
4101 | ;; |
---|
4102 | -lkernel32) |
---|
4103 | test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
---|
4104 | ;; |
---|
4105 | -[LRuY]) |
---|
4106 | # These flags, when seen by themselves, take an argument. |
---|
4107 | # We remove the space between option and argument and re-iterate |
---|
4108 | # unless we find an empty arg or a new option (starting with -) |
---|
4109 | case $2 in |
---|
4110 | "" | -*);; |
---|
4111 | *) |
---|
4112 | ac_arg="$ac_arg$2" |
---|
4113 | shift; shift |
---|
4114 | set X $ac_arg "$@" |
---|
4115 | ;; |
---|
4116 | esac |
---|
4117 | ;; |
---|
4118 | -YP,*) |
---|
4119 | for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
---|
4120 | ac_exists=false |
---|
4121 | for ac_i in $ac_cv_f77_libs; do |
---|
4122 | if test x"$ac_j" = x"$ac_i"; then |
---|
4123 | ac_exists=true |
---|
4124 | break |
---|
4125 | fi |
---|
4126 | done |
---|
4127 | |
---|
4128 | if test x"$ac_exists" = xtrue; then |
---|
4129 | : |
---|
4130 | else |
---|
4131 | ac_arg="$ac_arg $ac_j" |
---|
4132 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" |
---|
4133 | fi |
---|
4134 | |
---|
4135 | done |
---|
4136 | ;; |
---|
4137 | -[lLR]*) |
---|
4138 | ac_exists=false |
---|
4139 | for ac_i in $ac_cv_f77_libs; do |
---|
4140 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4141 | ac_exists=true |
---|
4142 | break |
---|
4143 | fi |
---|
4144 | done |
---|
4145 | |
---|
4146 | if test x"$ac_exists" = xtrue; then |
---|
4147 | : |
---|
4148 | else |
---|
4149 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" |
---|
4150 | fi |
---|
4151 | |
---|
4152 | ;; |
---|
4153 | # Ignore everything else. |
---|
4154 | esac |
---|
4155 | done |
---|
4156 | # restore positional arguments |
---|
4157 | set X $ac_save_positional; shift |
---|
4158 | |
---|
4159 | # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
---|
4160 | # then we insist that the "run path" must be an absolute path (i.e. it |
---|
4161 | # must begin with a "/"). |
---|
4162 | case `(uname -sr) 2>/dev/null` in |
---|
4163 | "SunOS 5"*) |
---|
4164 | ac_ld_run_path=`echo $ac_f77_v_output | |
---|
4165 | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
---|
4166 | test "x$ac_ld_run_path" != x && |
---|
4167 | if test "$ac_compiler_gnu" = yes; then |
---|
4168 | for ac_link_opt in $ac_ld_run_path; do |
---|
4169 | ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" |
---|
4170 | done |
---|
4171 | else |
---|
4172 | ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" |
---|
4173 | fi |
---|
4174 | ;; |
---|
4175 | esac |
---|
4176 | fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" |
---|
4177 | |
---|
4178 | fi |
---|
4179 | echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5 |
---|
4180 | echo "${ECHO_T}$ac_cv_f77_libs" >&6 |
---|
4181 | FLIBS="$ac_cv_f77_libs" |
---|
4182 | |
---|
4183 | |
---|
4184 | ac_ext=c |
---|
4185 | ac_cpp='$CPP $CPPFLAGS' |
---|
4186 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4187 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4188 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4189 | |
---|
4190 | orig_FLIBS="$FLIBS" |
---|
4191 | |
---|
4192 | # If FLIBS has been set by the user, we just restore its value here |
---|
4193 | if test x"$save_FLIBS" != x; then |
---|
4194 | FLIBS="$save_FLIBS" |
---|
4195 | else |
---|
4196 | # This is to correct a missing exclusion in autoconf 2.59 |
---|
4197 | if test x"$FLIBS" != x; then |
---|
4198 | my_flibs= |
---|
4199 | for flag in $FLIBS; do |
---|
4200 | case $flag in |
---|
4201 | -lcrt*.o) ;; |
---|
4202 | -lcygwin) ;; |
---|
4203 | -lgcc*) ;; |
---|
4204 | *) my_flibs="$my_flibs $flag" ;; |
---|
4205 | esac |
---|
4206 | done |
---|
4207 | FLIBS="$my_flibs" |
---|
4208 | fi |
---|
4209 | |
---|
4210 | case $build in |
---|
4211 | # The following is a fix to define FLIBS for ifort on Windows |
---|
4212 | # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly. |
---|
4213 | # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables. |
---|
4214 | # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line. |
---|
4215 | # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8. |
---|
4216 | # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now. |
---|
4217 | *-cygwin* | *-mingw*) |
---|
4218 | case "$F77" in |
---|
4219 | # ifort* | */ifort* | IFORT* | */IFORT*) |
---|
4220 | # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib" |
---|
4221 | # if "$coin_debug_compile" = true ; then |
---|
4222 | # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib" |
---|
4223 | # else |
---|
4224 | # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib" |
---|
4225 | # fi |
---|
4226 | # ;; |
---|
4227 | compile_f2c*) |
---|
4228 | FLIBS=`$F77 -FLIBS` ;; |
---|
4229 | esac;; |
---|
4230 | *-hp-*) |
---|
4231 | FLIBS="$FLIBS -lm";; |
---|
4232 | *-ibm-*) |
---|
4233 | FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;; |
---|
4234 | *-linux-*) |
---|
4235 | case "$F77" in |
---|
4236 | pgf77* | */pgf77* | pgf90* | */pgf90*) |
---|
4237 | # ask linker to go through the archives multiple times |
---|
4238 | # (the Fortran compiler seems to do that automatically...) |
---|
4239 | FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;; |
---|
4240 | esac |
---|
4241 | esac |
---|
4242 | ac_cv_f77_libs="$FLIBS" |
---|
4243 | fi |
---|
4244 | |
---|
4245 | if test "x$orig_FLIBS" != "x$FLIBS" ; then |
---|
4246 | { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5 |
---|
4247 | echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;} |
---|
4248 | fi |
---|
4249 | |
---|
4250 | ac_ext=f |
---|
4251 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4252 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4253 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4254 | |
---|
4255 | echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5 |
---|
4256 | echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6 |
---|
4257 | if test "${ac_cv_f77_dummy_main+set}" = set; then |
---|
4258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4259 | else |
---|
4260 | ac_f77_dm_save_LIBS=$LIBS |
---|
4261 | LIBS="$LIBS $FLIBS" |
---|
4262 | ac_fortran_dm_var=F77_DUMMY_MAIN |
---|
4263 | ac_ext=c |
---|
4264 | ac_cpp='$CPP $CPPFLAGS' |
---|
4265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4268 | |
---|
4269 | # First, try linking without a dummy main: |
---|
4270 | cat >conftest.$ac_ext <<_ACEOF |
---|
4271 | /* confdefs.h. */ |
---|
4272 | _ACEOF |
---|
4273 | cat confdefs.h >>conftest.$ac_ext |
---|
4274 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4275 | /* end confdefs.h. */ |
---|
4276 | |
---|
4277 | #ifdef F77_DUMMY_MAIN |
---|
4278 | |
---|
4279 | # ifdef __cplusplus |
---|
4280 | extern "C" |
---|
4281 | # endif |
---|
4282 | int F77_DUMMY_MAIN() { return 1; } |
---|
4283 | |
---|
4284 | #endif |
---|
4285 | int |
---|
4286 | main () |
---|
4287 | { |
---|
4288 | |
---|
4289 | ; |
---|
4290 | return 0; |
---|
4291 | } |
---|
4292 | _ACEOF |
---|
4293 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4295 | (eval $ac_link) 2>conftest.er1 |
---|
4296 | ac_status=$? |
---|
4297 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4298 | rm -f conftest.er1 |
---|
4299 | cat conftest.err >&5 |
---|
4300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4301 | (exit $ac_status); } && |
---|
4302 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4303 | || test ! -s conftest.err' |
---|
4304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4305 | (eval $ac_try) 2>&5 |
---|
4306 | ac_status=$? |
---|
4307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4308 | (exit $ac_status); }; } && |
---|
4309 | { ac_try='test -s conftest$ac_exeext' |
---|
4310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4311 | (eval $ac_try) 2>&5 |
---|
4312 | ac_status=$? |
---|
4313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4314 | (exit $ac_status); }; }; then |
---|
4315 | ac_cv_fortran_dummy_main=none |
---|
4316 | else |
---|
4317 | echo "$as_me: failed program was:" >&5 |
---|
4318 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4319 | |
---|
4320 | ac_cv_fortran_dummy_main=unknown |
---|
4321 | fi |
---|
4322 | rm -f conftest.err conftest.$ac_objext \ |
---|
4323 | conftest$ac_exeext conftest.$ac_ext |
---|
4324 | |
---|
4325 | if test $ac_cv_fortran_dummy_main = unknown; then |
---|
4326 | for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do |
---|
4327 | cat >conftest.$ac_ext <<_ACEOF |
---|
4328 | /* confdefs.h. */ |
---|
4329 | _ACEOF |
---|
4330 | cat confdefs.h >>conftest.$ac_ext |
---|
4331 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4332 | /* end confdefs.h. */ |
---|
4333 | #define $ac_fortran_dm_var $ac_func |
---|
4334 | #ifdef F77_DUMMY_MAIN |
---|
4335 | |
---|
4336 | # ifdef __cplusplus |
---|
4337 | extern "C" |
---|
4338 | # endif |
---|
4339 | int F77_DUMMY_MAIN() { return 1; } |
---|
4340 | |
---|
4341 | #endif |
---|
4342 | int |
---|
4343 | main () |
---|
4344 | { |
---|
4345 | |
---|
4346 | ; |
---|
4347 | return 0; |
---|
4348 | } |
---|
4349 | _ACEOF |
---|
4350 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4352 | (eval $ac_link) 2>conftest.er1 |
---|
4353 | ac_status=$? |
---|
4354 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4355 | rm -f conftest.er1 |
---|
4356 | cat conftest.err >&5 |
---|
4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4358 | (exit $ac_status); } && |
---|
4359 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4360 | || test ! -s conftest.err' |
---|
4361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4362 | (eval $ac_try) 2>&5 |
---|
4363 | ac_status=$? |
---|
4364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4365 | (exit $ac_status); }; } && |
---|
4366 | { ac_try='test -s conftest$ac_exeext' |
---|
4367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4368 | (eval $ac_try) 2>&5 |
---|
4369 | ac_status=$? |
---|
4370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4371 | (exit $ac_status); }; }; then |
---|
4372 | ac_cv_fortran_dummy_main=$ac_func; break |
---|
4373 | else |
---|
4374 | echo "$as_me: failed program was:" >&5 |
---|
4375 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4376 | |
---|
4377 | fi |
---|
4378 | rm -f conftest.err conftest.$ac_objext \ |
---|
4379 | conftest$ac_exeext conftest.$ac_ext |
---|
4380 | done |
---|
4381 | fi |
---|
4382 | ac_ext=f |
---|
4383 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4384 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4385 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4386 | ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main |
---|
4387 | rm -f conftest* |
---|
4388 | LIBS=$ac_f77_dm_save_LIBS |
---|
4389 | |
---|
4390 | fi |
---|
4391 | echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5 |
---|
4392 | echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6 |
---|
4393 | F77_DUMMY_MAIN=$ac_cv_f77_dummy_main |
---|
4394 | if test "$F77_DUMMY_MAIN" != unknown; then |
---|
4395 | if test $F77_DUMMY_MAIN != none; then |
---|
4396 | |
---|
4397 | cat >>confdefs.h <<_ACEOF |
---|
4398 | #define F77_DUMMY_MAIN $F77_DUMMY_MAIN |
---|
4399 | _ACEOF |
---|
4400 | |
---|
4401 | if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then |
---|
4402 | |
---|
4403 | cat >>confdefs.h <<\_ACEOF |
---|
4404 | #define FC_DUMMY_MAIN_EQ_F77 1 |
---|
4405 | _ACEOF |
---|
4406 | |
---|
4407 | fi |
---|
4408 | fi |
---|
4409 | else |
---|
4410 | { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails |
---|
4411 | See \`config.log' for more details." >&5 |
---|
4412 | echo "$as_me: error: linking to Fortran libraries from C fails |
---|
4413 | See \`config.log' for more details." >&2;} |
---|
4414 | { (exit 1); exit 1; }; } |
---|
4415 | fi |
---|
4416 | |
---|
4417 | |
---|
4418 | ac_ext=f |
---|
4419 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4420 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4421 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4422 | |
---|
4423 | ac_ext=f |
---|
4424 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4425 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4426 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4427 | echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5 |
---|
4428 | echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6 |
---|
4429 | if test "${ac_cv_f77_mangling+set}" = set; then |
---|
4430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4431 | else |
---|
4432 | cat >conftest.$ac_ext <<_ACEOF |
---|
4433 | subroutine foobar() |
---|
4434 | return |
---|
4435 | end |
---|
4436 | subroutine foo_bar() |
---|
4437 | return |
---|
4438 | end |
---|
4439 | _ACEOF |
---|
4440 | rm -f conftest.$ac_objext |
---|
4441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4442 | (eval $ac_compile) 2>conftest.er1 |
---|
4443 | ac_status=$? |
---|
4444 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4445 | rm -f conftest.er1 |
---|
4446 | cat conftest.err >&5 |
---|
4447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4448 | (exit $ac_status); } && |
---|
4449 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
4450 | || test ! -s conftest.err' |
---|
4451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4452 | (eval $ac_try) 2>&5 |
---|
4453 | ac_status=$? |
---|
4454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4455 | (exit $ac_status); }; } && |
---|
4456 | { ac_try='test -s conftest.$ac_objext' |
---|
4457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4458 | (eval $ac_try) 2>&5 |
---|
4459 | ac_status=$? |
---|
4460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4461 | (exit $ac_status); }; }; then |
---|
4462 | mv conftest.$ac_objext cfortran_test.$ac_objext |
---|
4463 | |
---|
4464 | ac_save_LIBS=$LIBS |
---|
4465 | LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" |
---|
4466 | |
---|
4467 | ac_ext=c |
---|
4468 | ac_cpp='$CPP $CPPFLAGS' |
---|
4469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4472 | ac_success=no |
---|
4473 | for ac_foobar in foobar FOOBAR; do |
---|
4474 | for ac_underscore in "" "_"; do |
---|
4475 | ac_func="$ac_foobar$ac_underscore" |
---|
4476 | cat >conftest.$ac_ext <<_ACEOF |
---|
4477 | /* confdefs.h. */ |
---|
4478 | _ACEOF |
---|
4479 | cat confdefs.h >>conftest.$ac_ext |
---|
4480 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4481 | /* end confdefs.h. */ |
---|
4482 | |
---|
4483 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4484 | #ifdef __cplusplus |
---|
4485 | extern "C" |
---|
4486 | #endif |
---|
4487 | /* We use char because int might match the return type of a gcc2 |
---|
4488 | builtin and then its argument prototype would still apply. */ |
---|
4489 | char $ac_func (); |
---|
4490 | #ifdef F77_DUMMY_MAIN |
---|
4491 | |
---|
4492 | # ifdef __cplusplus |
---|
4493 | extern "C" |
---|
4494 | # endif |
---|
4495 | int F77_DUMMY_MAIN() { return 1; } |
---|
4496 | |
---|
4497 | #endif |
---|
4498 | int |
---|
4499 | main () |
---|
4500 | { |
---|
4501 | $ac_func (); |
---|
4502 | ; |
---|
4503 | return 0; |
---|
4504 | } |
---|
4505 | _ACEOF |
---|
4506 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4508 | (eval $ac_link) 2>conftest.er1 |
---|
4509 | ac_status=$? |
---|
4510 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4511 | rm -f conftest.er1 |
---|
4512 | cat conftest.err >&5 |
---|
4513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4514 | (exit $ac_status); } && |
---|
4515 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4516 | || test ! -s conftest.err' |
---|
4517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4518 | (eval $ac_try) 2>&5 |
---|
4519 | ac_status=$? |
---|
4520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4521 | (exit $ac_status); }; } && |
---|
4522 | { ac_try='test -s conftest$ac_exeext' |
---|
4523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4524 | (eval $ac_try) 2>&5 |
---|
4525 | ac_status=$? |
---|
4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4527 | (exit $ac_status); }; }; then |
---|
4528 | ac_success=yes; break 2 |
---|
4529 | else |
---|
4530 | echo "$as_me: failed program was:" >&5 |
---|
4531 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4532 | |
---|
4533 | fi |
---|
4534 | rm -f conftest.err conftest.$ac_objext \ |
---|
4535 | conftest$ac_exeext conftest.$ac_ext |
---|
4536 | done |
---|
4537 | done |
---|
4538 | ac_ext=f |
---|
4539 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4540 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4541 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4542 | |
---|
4543 | if test "$ac_success" = "yes"; then |
---|
4544 | case $ac_foobar in |
---|
4545 | foobar) |
---|
4546 | ac_case=lower |
---|
4547 | ac_foo_bar=foo_bar |
---|
4548 | ;; |
---|
4549 | FOOBAR) |
---|
4550 | ac_case=upper |
---|
4551 | ac_foo_bar=FOO_BAR |
---|
4552 | ;; |
---|
4553 | esac |
---|
4554 | |
---|
4555 | ac_ext=c |
---|
4556 | ac_cpp='$CPP $CPPFLAGS' |
---|
4557 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4558 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4559 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4560 | ac_success_extra=no |
---|
4561 | for ac_extra in "" "_"; do |
---|
4562 | ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
---|
4563 | cat >conftest.$ac_ext <<_ACEOF |
---|
4564 | /* confdefs.h. */ |
---|
4565 | _ACEOF |
---|
4566 | cat confdefs.h >>conftest.$ac_ext |
---|
4567 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4568 | /* end confdefs.h. */ |
---|
4569 | |
---|
4570 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4571 | #ifdef __cplusplus |
---|
4572 | extern "C" |
---|
4573 | #endif |
---|
4574 | /* We use char because int might match the return type of a gcc2 |
---|
4575 | builtin and then its argument prototype would still apply. */ |
---|
4576 | char $ac_func (); |
---|
4577 | #ifdef F77_DUMMY_MAIN |
---|
4578 | |
---|
4579 | # ifdef __cplusplus |
---|
4580 | extern "C" |
---|
4581 | # endif |
---|
4582 | int F77_DUMMY_MAIN() { return 1; } |
---|
4583 | |
---|
4584 | #endif |
---|
4585 | int |
---|
4586 | main () |
---|
4587 | { |
---|
4588 | $ac_func (); |
---|
4589 | ; |
---|
4590 | return 0; |
---|
4591 | } |
---|
4592 | _ACEOF |
---|
4593 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4595 | (eval $ac_link) 2>conftest.er1 |
---|
4596 | ac_status=$? |
---|
4597 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4598 | rm -f conftest.er1 |
---|
4599 | cat conftest.err >&5 |
---|
4600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4601 | (exit $ac_status); } && |
---|
4602 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4603 | || test ! -s conftest.err' |
---|
4604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4605 | (eval $ac_try) 2>&5 |
---|
4606 | ac_status=$? |
---|
4607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4608 | (exit $ac_status); }; } && |
---|
4609 | { ac_try='test -s conftest$ac_exeext' |
---|
4610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4611 | (eval $ac_try) 2>&5 |
---|
4612 | ac_status=$? |
---|
4613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4614 | (exit $ac_status); }; }; then |
---|
4615 | ac_success_extra=yes; break |
---|
4616 | else |
---|
4617 | echo "$as_me: failed program was:" >&5 |
---|
4618 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4619 | |
---|
4620 | fi |
---|
4621 | rm -f conftest.err conftest.$ac_objext \ |
---|
4622 | conftest$ac_exeext conftest.$ac_ext |
---|
4623 | done |
---|
4624 | ac_ext=f |
---|
4625 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4626 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4627 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4628 | |
---|
4629 | if test "$ac_success_extra" = "yes"; then |
---|
4630 | ac_cv_f77_mangling="$ac_case case" |
---|
4631 | if test -z "$ac_underscore"; then |
---|
4632 | ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" |
---|
4633 | else |
---|
4634 | ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" |
---|
4635 | fi |
---|
4636 | if test -z "$ac_extra"; then |
---|
4637 | ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" |
---|
4638 | else |
---|
4639 | ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" |
---|
4640 | fi |
---|
4641 | else |
---|
4642 | ac_cv_f77_mangling="unknown" |
---|
4643 | fi |
---|
4644 | else |
---|
4645 | ac_cv_f77_mangling="unknown" |
---|
4646 | fi |
---|
4647 | |
---|
4648 | LIBS=$ac_save_LIBS |
---|
4649 | rm -f cfortran_test* conftest* |
---|
4650 | else |
---|
4651 | echo "$as_me: failed program was:" >&5 |
---|
4652 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4653 | |
---|
4654 | { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program |
---|
4655 | See \`config.log' for more details." >&5 |
---|
4656 | echo "$as_me: error: cannot compile a simple Fortran program |
---|
4657 | See \`config.log' for more details." >&2;} |
---|
4658 | { (exit 1); exit 1; }; } |
---|
4659 | fi |
---|
4660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4661 | |
---|
4662 | fi |
---|
4663 | echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5 |
---|
4664 | echo "${ECHO_T}$ac_cv_f77_mangling" >&6 |
---|
4665 | |
---|
4666 | ac_ext=f |
---|
4667 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4668 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4669 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4670 | |
---|
4671 | |
---|
4672 | ac_ext=f |
---|
4673 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4674 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4675 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4676 | |
---|
4677 | ac_ext=f |
---|
4678 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4679 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4680 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4681 | |
---|
4682 | |
---|
4683 | case $ac_cv_f77_mangling in |
---|
4684 | "lower case, no underscore, no extra underscore") |
---|
4685 | cat >>confdefs.h <<\_ACEOF |
---|
4686 | #define F77_FUNC(name,NAME) name |
---|
4687 | _ACEOF |
---|
4688 | |
---|
4689 | cat >>confdefs.h <<\_ACEOF |
---|
4690 | #define F77_FUNC_(name,NAME) name |
---|
4691 | _ACEOF |
---|
4692 | ;; |
---|
4693 | "lower case, no underscore, extra underscore") |
---|
4694 | cat >>confdefs.h <<\_ACEOF |
---|
4695 | #define F77_FUNC(name,NAME) name |
---|
4696 | _ACEOF |
---|
4697 | |
---|
4698 | cat >>confdefs.h <<\_ACEOF |
---|
4699 | #define F77_FUNC_(name,NAME) name ## _ |
---|
4700 | _ACEOF |
---|
4701 | ;; |
---|
4702 | "lower case, underscore, no extra underscore") |
---|
4703 | cat >>confdefs.h <<\_ACEOF |
---|
4704 | #define F77_FUNC(name,NAME) name ## _ |
---|
4705 | _ACEOF |
---|
4706 | |
---|
4707 | cat >>confdefs.h <<\_ACEOF |
---|
4708 | #define F77_FUNC_(name,NAME) name ## _ |
---|
4709 | _ACEOF |
---|
4710 | ;; |
---|
4711 | "lower case, underscore, extra underscore") |
---|
4712 | cat >>confdefs.h <<\_ACEOF |
---|
4713 | #define F77_FUNC(name,NAME) name ## _ |
---|
4714 | _ACEOF |
---|
4715 | |
---|
4716 | cat >>confdefs.h <<\_ACEOF |
---|
4717 | #define F77_FUNC_(name,NAME) name ## __ |
---|
4718 | _ACEOF |
---|
4719 | ;; |
---|
4720 | "upper case, no underscore, no extra underscore") |
---|
4721 | cat >>confdefs.h <<\_ACEOF |
---|
4722 | #define F77_FUNC(name,NAME) NAME |
---|
4723 | _ACEOF |
---|
4724 | |
---|
4725 | cat >>confdefs.h <<\_ACEOF |
---|
4726 | #define F77_FUNC_(name,NAME) NAME |
---|
4727 | _ACEOF |
---|
4728 | ;; |
---|
4729 | "upper case, no underscore, extra underscore") |
---|
4730 | cat >>confdefs.h <<\_ACEOF |
---|
4731 | #define F77_FUNC(name,NAME) NAME |
---|
4732 | _ACEOF |
---|
4733 | |
---|
4734 | cat >>confdefs.h <<\_ACEOF |
---|
4735 | #define F77_FUNC_(name,NAME) NAME ## _ |
---|
4736 | _ACEOF |
---|
4737 | ;; |
---|
4738 | "upper case, underscore, no extra underscore") |
---|
4739 | cat >>confdefs.h <<\_ACEOF |
---|
4740 | #define F77_FUNC(name,NAME) NAME ## _ |
---|
4741 | _ACEOF |
---|
4742 | |
---|
4743 | cat >>confdefs.h <<\_ACEOF |
---|
4744 | #define F77_FUNC_(name,NAME) NAME ## _ |
---|
4745 | _ACEOF |
---|
4746 | ;; |
---|
4747 | "upper case, underscore, extra underscore") |
---|
4748 | cat >>confdefs.h <<\_ACEOF |
---|
4749 | #define F77_FUNC(name,NAME) NAME ## _ |
---|
4750 | _ACEOF |
---|
4751 | |
---|
4752 | cat >>confdefs.h <<\_ACEOF |
---|
4753 | #define F77_FUNC_(name,NAME) NAME ## __ |
---|
4754 | _ACEOF |
---|
4755 | ;; |
---|
4756 | *) |
---|
4757 | { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5 |
---|
4758 | echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} |
---|
4759 | ;; |
---|
4760 | esac |
---|
4761 | |
---|
4762 | ac_ext=f |
---|
4763 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4764 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4765 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4766 | |
---|
4767 | ac_ext=c |
---|
4768 | ac_cpp='$CPP $CPPFLAGS' |
---|
4769 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4770 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4771 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4772 | |
---|
4773 | |
---|
4774 | |
---|
4775 | |
---|
4776 | # Check for Blas |
---|
4777 | |
---|
4778 | |
---|
4779 | # Check whether --enable-pkg-config or --disable-pkg-config was given. |
---|
4780 | if test "${enable_pkg_config+set}" = set; then |
---|
4781 | enableval="$enable_pkg_config" |
---|
4782 | use_pkgconfig="$enableval" |
---|
4783 | else |
---|
4784 | if test x$coin_cc_is_cl = xtrue; then |
---|
4785 | use_pkgconfig=no |
---|
4786 | else |
---|
4787 | use_pkgconfig=yes |
---|
4788 | fi |
---|
4789 | fi; |
---|
4790 | |
---|
4791 | if test $use_pkgconfig = yes ; then |
---|
4792 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
---|
4793 | if test -n "$ac_tool_prefix"; then |
---|
4794 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
---|
4795 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
---|
4796 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4797 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4798 | if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then |
---|
4799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4800 | else |
---|
4801 | if test -n "$PKG_CONFIG"; then |
---|
4802 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
---|
4803 | else |
---|
4804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4805 | for as_dir in $PATH |
---|
4806 | do |
---|
4807 | IFS=$as_save_IFS |
---|
4808 | test -z "$as_dir" && as_dir=. |
---|
4809 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4810 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4811 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
---|
4812 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4813 | break 2 |
---|
4814 | fi |
---|
4815 | done |
---|
4816 | done |
---|
4817 | |
---|
4818 | fi |
---|
4819 | fi |
---|
4820 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
---|
4821 | if test -n "$PKG_CONFIG"; then |
---|
4822 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
4823 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
4824 | else |
---|
4825 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4826 | echo "${ECHO_T}no" >&6 |
---|
4827 | fi |
---|
4828 | |
---|
4829 | fi |
---|
4830 | if test -z "$ac_cv_prog_PKG_CONFIG"; then |
---|
4831 | ac_ct_PKG_CONFIG=$PKG_CONFIG |
---|
4832 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
4833 | set dummy pkg-config; ac_word=$2 |
---|
4834 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4835 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4836 | if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then |
---|
4837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4838 | else |
---|
4839 | if test -n "$ac_ct_PKG_CONFIG"; then |
---|
4840 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. |
---|
4841 | else |
---|
4842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4843 | for as_dir in $PATH |
---|
4844 | do |
---|
4845 | IFS=$as_save_IFS |
---|
4846 | test -z "$as_dir" && as_dir=. |
---|
4847 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4848 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4849 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
---|
4850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4851 | break 2 |
---|
4852 | fi |
---|
4853 | done |
---|
4854 | done |
---|
4855 | |
---|
4856 | fi |
---|
4857 | fi |
---|
4858 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG |
---|
4859 | if test -n "$ac_ct_PKG_CONFIG"; then |
---|
4860 | echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5 |
---|
4861 | echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6 |
---|
4862 | else |
---|
4863 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4864 | echo "${ECHO_T}no" >&6 |
---|
4865 | fi |
---|
4866 | |
---|
4867 | PKG_CONFIG=$ac_ct_PKG_CONFIG |
---|
4868 | else |
---|
4869 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" |
---|
4870 | fi |
---|
4871 | |
---|
4872 | fi |
---|
4873 | if test -n "$PKG_CONFIG"; then |
---|
4874 | _pkg_min_version=0.16.0 |
---|
4875 | echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
---|
4876 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 |
---|
4877 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
---|
4878 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4879 | echo "${ECHO_T}yes" >&6 |
---|
4880 | else |
---|
4881 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4882 | echo "${ECHO_T}no" >&6 |
---|
4883 | PKG_CONFIG="" |
---|
4884 | fi |
---|
4885 | fi |
---|
4886 | |
---|
4887 | # check if pkg-config supports the short-errors flag |
---|
4888 | if test -n "$PKG_CONFIG" && \ |
---|
4889 | $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
---|
4890 | pkg_short_errors=" --short-errors " |
---|
4891 | else |
---|
4892 | pkg_short_errors="" |
---|
4893 | fi |
---|
4894 | fi |
---|
4895 | |
---|
4896 | |
---|
4897 | |
---|
4898 | if test -n "$PKG_CONFIG"; then |
---|
4899 | COIN_HAS_PKGCONFIG_TRUE= |
---|
4900 | COIN_HAS_PKGCONFIG_FALSE='#' |
---|
4901 | else |
---|
4902 | COIN_HAS_PKGCONFIG_TRUE='#' |
---|
4903 | COIN_HAS_PKGCONFIG_FALSE= |
---|
4904 | fi |
---|
4905 | |
---|
4906 | |
---|
4907 | |
---|
4908 | # assemble pkg-config search path for installed projects |
---|
4909 | COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
---|
4910 | |
---|
4911 | # 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 |
---|
4912 | # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig, |
---|
4913 | # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}... |
---|
4914 | if test "x${prefix}" = xNONE ; then |
---|
4915 | COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
---|
4916 | else |
---|
4917 | COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
---|
4918 | fi |
---|
4919 | |
---|
4920 | |
---|
4921 | # Check whether --with-coin-instdir or --without-coin-instdir was given. |
---|
4922 | if test "${with_coin_instdir+set}" = set; then |
---|
4923 | withval="$with_coin_instdir" |
---|
4924 | if test -d "$withval"; then : ; else |
---|
4925 | { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5 |
---|
4926 | echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;} |
---|
4927 | { (exit 1); exit 1; }; } |
---|
4928 | fi |
---|
4929 | COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
---|
4930 | |
---|
4931 | fi; |
---|
4932 | |
---|
4933 | |
---|
4934 | |
---|
4935 | # assemble additional pkg-config search paths for uninstalled projects |
---|
4936 | if test x$coin_projectdir = xyes ; then |
---|
4937 | # if we are in a project setup, then in a classic setup, we want to find uninstalled projects |
---|
4938 | # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory |
---|
4939 | # unfortunately, if the user set prefix, then we do not know where the project base directory is located |
---|
4940 | # 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) |
---|
4941 | COIN_PKG_CONFIG_PATH_UNINSTALLED= |
---|
4942 | if test -f ../coin_subdirs.txt ; then |
---|
4943 | for i in `cat ../coin_subdirs.txt` ; do |
---|
4944 | if test -d ../$i ; then |
---|
4945 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
---|
4946 | fi |
---|
4947 | if test -d ../$i/pkgconfig ; then |
---|
4948 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
---|
4949 | fi |
---|
4950 | done |
---|
4951 | fi |
---|
4952 | |
---|
4953 | if test -f ../../coin_subdirs.txt ; then |
---|
4954 | for i in `cat ../../coin_subdirs.txt` ; do |
---|
4955 | if test -d ../../$i ; then |
---|
4956 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
---|
4957 | fi |
---|
4958 | if test -d ../../$i/pkgconfig ; then |
---|
4959 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
---|
4960 | fi |
---|
4961 | done |
---|
4962 | fi |
---|
4963 | |
---|
4964 | |
---|
4965 | fi |
---|
4966 | |
---|
4967 | if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then |
---|
4968 | { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5 |
---|
4969 | echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;} |
---|
4970 | fi |
---|
4971 | |
---|
4972 | |
---|
4973 | |
---|
4974 | |
---|
4975 | # Check whether --with-blas or --without-blas was given. |
---|
4976 | if test "${with_blas+set}" = set; then |
---|
4977 | withval="$with_blas" |
---|
4978 | use_blas="$withval" |
---|
4979 | else |
---|
4980 | use_blas= |
---|
4981 | fi; |
---|
4982 | |
---|
4983 | # if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE |
---|
4984 | # preference |
---|
4985 | |
---|
4986 | # Check whether --with-blas-lib or --without-blas-lib was given. |
---|
4987 | if test "${with_blas_lib+set}" = set; then |
---|
4988 | withval="$with_blas_lib" |
---|
4989 | use_blas=BUILD |
---|
4990 | fi; |
---|
4991 | |
---|
4992 | # Check if user supplied option makes sense |
---|
4993 | if test x"$use_blas" != x; then |
---|
4994 | if test "$use_blas" = "BUILD"; then |
---|
4995 | # we come to this later |
---|
4996 | : |
---|
4997 | elif test "$use_blas" != "no"; then |
---|
4998 | echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5 |
---|
4999 | echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6 |
---|
5000 | coin_need_flibs=no |
---|
5001 | coin_save_LIBS="$LIBS" |
---|
5002 | LIBS="$use_blas $LIBS" |
---|
5003 | case $ac_ext in |
---|
5004 | f) |
---|
5005 | cat >conftest.$ac_ext <<_ACEOF |
---|
5006 | /* confdefs.h. */ |
---|
5007 | _ACEOF |
---|
5008 | cat confdefs.h >>conftest.$ac_ext |
---|
5009 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5010 | /* end confdefs.h. */ |
---|
5011 | |
---|
5012 | #ifdef F77_DUMMY_MAIN |
---|
5013 | |
---|
5014 | # ifdef __cplusplus |
---|
5015 | extern "C" |
---|
5016 | # endif |
---|
5017 | int F77_DUMMY_MAIN() { return 1; } |
---|
5018 | |
---|
5019 | #endif |
---|
5020 | int |
---|
5021 | main () |
---|
5022 | { |
---|
5023 | call daxpy |
---|
5024 | ; |
---|
5025 | return 0; |
---|
5026 | } |
---|
5027 | _ACEOF |
---|
5028 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5030 | (eval $ac_link) 2>conftest.er1 |
---|
5031 | ac_status=$? |
---|
5032 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5033 | rm -f conftest.er1 |
---|
5034 | cat conftest.err >&5 |
---|
5035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5036 | (exit $ac_status); } && |
---|
5037 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5038 | || test ! -s conftest.err' |
---|
5039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5040 | (eval $ac_try) 2>&5 |
---|
5041 | ac_status=$? |
---|
5042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5043 | (exit $ac_status); }; } && |
---|
5044 | { ac_try='test -s conftest$ac_exeext' |
---|
5045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5046 | (eval $ac_try) 2>&5 |
---|
5047 | ac_status=$? |
---|
5048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5049 | (exit $ac_status); }; }; then |
---|
5050 | if test $coin_need_flibs = yes ; then |
---|
5051 | use_blas="$use_blas $FLIBS" |
---|
5052 | fi |
---|
5053 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5054 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5055 | else |
---|
5056 | echo "$as_me: failed program was:" >&5 |
---|
5057 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5058 | |
---|
5059 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5060 | echo "${ECHO_T}no" >&6 |
---|
5061 | { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 |
---|
5062 | echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} |
---|
5063 | { (exit 1); exit 1; }; } |
---|
5064 | fi |
---|
5065 | rm -f conftest.err conftest.$ac_objext \ |
---|
5066 | conftest$ac_exeext conftest.$ac_ext |
---|
5067 | ;; |
---|
5068 | c) |
---|
5069 | ac_ext=f |
---|
5070 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
5071 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5072 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
5073 | case $ac_cv_f77_mangling in |
---|
5074 | upper*) ac_val="DAXPY" ;; |
---|
5075 | lower*) ac_val="daxpy" ;; |
---|
5076 | *) ac_val="unknown" ;; |
---|
5077 | esac |
---|
5078 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
5079 | |
---|
5080 | cfuncdaxpy="$ac_val" |
---|
5081 | |
---|
5082 | ac_ext=c |
---|
5083 | ac_cpp='$CPP $CPPFLAGS' |
---|
5084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5087 | |
---|
5088 | if test x"$coin_need_flibs" = xyes; then |
---|
5089 | flink_try=no; |
---|
5090 | else |
---|
5091 | cat >conftest.$ac_ext <<_ACEOF |
---|
5092 | /* confdefs.h. */ |
---|
5093 | _ACEOF |
---|
5094 | cat confdefs.h >>conftest.$ac_ext |
---|
5095 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5096 | /* end confdefs.h. */ |
---|
5097 | void $cfuncdaxpy(); |
---|
5098 | #ifdef F77_DUMMY_MAIN |
---|
5099 | |
---|
5100 | # ifdef __cplusplus |
---|
5101 | extern "C" |
---|
5102 | # endif |
---|
5103 | int F77_DUMMY_MAIN() { return 1; } |
---|
5104 | |
---|
5105 | #endif |
---|
5106 | int |
---|
5107 | main () |
---|
5108 | { |
---|
5109 | $cfuncdaxpy() |
---|
5110 | ; |
---|
5111 | return 0; |
---|
5112 | } |
---|
5113 | _ACEOF |
---|
5114 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5116 | (eval $ac_link) 2>conftest.er1 |
---|
5117 | ac_status=$? |
---|
5118 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5119 | rm -f conftest.er1 |
---|
5120 | cat conftest.err >&5 |
---|
5121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5122 | (exit $ac_status); } && |
---|
5123 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5124 | || test ! -s conftest.err' |
---|
5125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5126 | (eval $ac_try) 2>&5 |
---|
5127 | ac_status=$? |
---|
5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5129 | (exit $ac_status); }; } && |
---|
5130 | { ac_try='test -s conftest$ac_exeext' |
---|
5131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5132 | (eval $ac_try) 2>&5 |
---|
5133 | ac_status=$? |
---|
5134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5135 | (exit $ac_status); }; }; then |
---|
5136 | flink_try=yes |
---|
5137 | else |
---|
5138 | echo "$as_me: failed program was:" >&5 |
---|
5139 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5140 | |
---|
5141 | flink_try=no |
---|
5142 | fi |
---|
5143 | rm -f conftest.err conftest.$ac_objext \ |
---|
5144 | conftest$ac_exeext conftest.$ac_ext |
---|
5145 | fi |
---|
5146 | if test $flink_try = yes; then |
---|
5147 | if test $coin_need_flibs = yes ; then |
---|
5148 | use_blas="$use_blas $FLIBS" |
---|
5149 | fi |
---|
5150 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5151 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5152 | else |
---|
5153 | if test x"$FLIBS" != x; then |
---|
5154 | flink_save_libs="$LIBS" |
---|
5155 | LIBS="$LIBS $FLIBS" |
---|
5156 | cat >conftest.$ac_ext <<_ACEOF |
---|
5157 | /* confdefs.h. */ |
---|
5158 | _ACEOF |
---|
5159 | cat confdefs.h >>conftest.$ac_ext |
---|
5160 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5161 | /* end confdefs.h. */ |
---|
5162 | void $cfuncdaxpy(); |
---|
5163 | #ifdef F77_DUMMY_MAIN |
---|
5164 | |
---|
5165 | # ifdef __cplusplus |
---|
5166 | extern "C" |
---|
5167 | # endif |
---|
5168 | int F77_DUMMY_MAIN() { return 1; } |
---|
5169 | |
---|
5170 | #endif |
---|
5171 | int |
---|
5172 | main () |
---|
5173 | { |
---|
5174 | $cfuncdaxpy() |
---|
5175 | ; |
---|
5176 | return 0; |
---|
5177 | } |
---|
5178 | _ACEOF |
---|
5179 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5181 | (eval $ac_link) 2>conftest.er1 |
---|
5182 | ac_status=$? |
---|
5183 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5184 | rm -f conftest.er1 |
---|
5185 | cat conftest.err >&5 |
---|
5186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5187 | (exit $ac_status); } && |
---|
5188 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5189 | || test ! -s conftest.err' |
---|
5190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5191 | (eval $ac_try) 2>&5 |
---|
5192 | ac_status=$? |
---|
5193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5194 | (exit $ac_status); }; } && |
---|
5195 | { ac_try='test -s conftest$ac_exeext' |
---|
5196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5197 | (eval $ac_try) 2>&5 |
---|
5198 | ac_status=$? |
---|
5199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5200 | (exit $ac_status); }; }; then |
---|
5201 | LIBS="$flink_save_libs" |
---|
5202 | coin_need_flibs=yes |
---|
5203 | if test $coin_need_flibs = yes ; then |
---|
5204 | use_blas="$use_blas $FLIBS" |
---|
5205 | fi |
---|
5206 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5207 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5208 | |
---|
5209 | else |
---|
5210 | echo "$as_me: failed program was:" >&5 |
---|
5211 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5212 | |
---|
5213 | LIBS="$flink_save_libs" |
---|
5214 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5215 | echo "${ECHO_T}no" >&6 |
---|
5216 | { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 |
---|
5217 | echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} |
---|
5218 | { (exit 1); exit 1; }; } |
---|
5219 | fi |
---|
5220 | rm -f conftest.err conftest.$ac_objext \ |
---|
5221 | conftest$ac_exeext conftest.$ac_ext |
---|
5222 | else |
---|
5223 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5224 | echo "${ECHO_T}no" >&6 |
---|
5225 | { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 |
---|
5226 | echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} |
---|
5227 | { (exit 1); exit 1; }; } |
---|
5228 | fi |
---|
5229 | fi |
---|
5230 | ;; |
---|
5231 | cc|cpp) |
---|
5232 | ac_ext=f |
---|
5233 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
5234 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5235 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
5236 | case $ac_cv_f77_mangling in |
---|
5237 | upper*) ac_val="DAXPY" ;; |
---|
5238 | lower*) ac_val="daxpy" ;; |
---|
5239 | *) ac_val="unknown" ;; |
---|
5240 | esac |
---|
5241 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
5242 | |
---|
5243 | cfuncdaxpy="$ac_val" |
---|
5244 | |
---|
5245 | ac_ext=c |
---|
5246 | ac_cpp='$CPP $CPPFLAGS' |
---|
5247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5250 | |
---|
5251 | if test x"$coin_need_flibs" = xyes; then |
---|
5252 | flink_try=no; |
---|
5253 | else |
---|
5254 | cat >conftest.$ac_ext <<_ACEOF |
---|
5255 | /* confdefs.h. */ |
---|
5256 | _ACEOF |
---|
5257 | cat confdefs.h >>conftest.$ac_ext |
---|
5258 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5259 | /* end confdefs.h. */ |
---|
5260 | extern "C" {void $cfuncdaxpy();} |
---|
5261 | #ifdef F77_DUMMY_MAIN |
---|
5262 | |
---|
5263 | # ifdef __cplusplus |
---|
5264 | extern "C" |
---|
5265 | # endif |
---|
5266 | int F77_DUMMY_MAIN() { return 1; } |
---|
5267 | |
---|
5268 | #endif |
---|
5269 | int |
---|
5270 | main () |
---|
5271 | { |
---|
5272 | $cfuncdaxpy() |
---|
5273 | ; |
---|
5274 | return 0; |
---|
5275 | } |
---|
5276 | _ACEOF |
---|
5277 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5279 | (eval $ac_link) 2>conftest.er1 |
---|
5280 | ac_status=$? |
---|
5281 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5282 | rm -f conftest.er1 |
---|
5283 | cat conftest.err >&5 |
---|
5284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5285 | (exit $ac_status); } && |
---|
5286 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5287 | || test ! -s conftest.err' |
---|
5288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5289 | (eval $ac_try) 2>&5 |
---|
5290 | ac_status=$? |
---|
5291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5292 | (exit $ac_status); }; } && |
---|
5293 | { ac_try='test -s conftest$ac_exeext' |
---|
5294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5295 | (eval $ac_try) 2>&5 |
---|
5296 | ac_status=$? |
---|
5297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5298 | (exit $ac_status); }; }; then |
---|
5299 | flink_try=yes |
---|
5300 | else |
---|
5301 | echo "$as_me: failed program was:" >&5 |
---|
5302 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5303 | |
---|
5304 | flink_try=no |
---|
5305 | fi |
---|
5306 | rm -f conftest.err conftest.$ac_objext \ |
---|
5307 | conftest$ac_exeext conftest.$ac_ext |
---|
5308 | fi |
---|
5309 | if test $flink_try = yes; then |
---|
5310 | if test $coin_need_flibs = yes ; then |
---|
5311 | use_blas="$use_blas $FLIBS" |
---|
5312 | fi |
---|
5313 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5314 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5315 | else |
---|
5316 | if test x"$FLIBS" != x; then |
---|
5317 | flink_save_libs="$LIBS" |
---|
5318 | LIBS="$LIBS $FLIBS" |
---|
5319 | cat >conftest.$ac_ext <<_ACEOF |
---|
5320 | /* confdefs.h. */ |
---|
5321 | _ACEOF |
---|
5322 | cat confdefs.h >>conftest.$ac_ext |
---|
5323 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5324 | /* end confdefs.h. */ |
---|
5325 | extern "C" {void $cfuncdaxpy();} |
---|
5326 | #ifdef F77_DUMMY_MAIN |
---|
5327 | |
---|
5328 | # ifdef __cplusplus |
---|
5329 | extern "C" |
---|
5330 | # endif |
---|
5331 | int F77_DUMMY_MAIN() { return 1; } |
---|
5332 | |
---|
5333 | #endif |
---|
5334 | int |
---|
5335 | main () |
---|
5336 | { |
---|
5337 | $cfuncdaxpy() |
---|
5338 | ; |
---|
5339 | return 0; |
---|
5340 | } |
---|
5341 | _ACEOF |
---|
5342 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5344 | (eval $ac_link) 2>conftest.er1 |
---|
5345 | ac_status=$? |
---|
5346 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5347 | rm -f conftest.er1 |
---|
5348 | cat conftest.err >&5 |
---|
5349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5350 | (exit $ac_status); } && |
---|
5351 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5352 | || test ! -s conftest.err' |
---|
5353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5354 | (eval $ac_try) 2>&5 |
---|
5355 | ac_status=$? |
---|
5356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5357 | (exit $ac_status); }; } && |
---|
5358 | { ac_try='test -s conftest$ac_exeext' |
---|
5359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5360 | (eval $ac_try) 2>&5 |
---|
5361 | ac_status=$? |
---|
5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5363 | (exit $ac_status); }; }; then |
---|
5364 | LIBS="$flink_save_libs" |
---|
5365 | coin_need_flibs=yes |
---|
5366 | if test $coin_need_flibs = yes ; then |
---|
5367 | use_blas="$use_blas $FLIBS" |
---|
5368 | fi |
---|
5369 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5370 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5371 | |
---|
5372 | else |
---|
5373 | echo "$as_me: failed program was:" >&5 |
---|
5374 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5375 | |
---|
5376 | LIBS="$flink_save_libs" |
---|
5377 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5378 | echo "${ECHO_T}no" >&6 |
---|
5379 | { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 |
---|
5380 | echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} |
---|
5381 | { (exit 1); exit 1; }; } |
---|
5382 | fi |
---|
5383 | rm -f conftest.err conftest.$ac_objext \ |
---|
5384 | conftest$ac_exeext conftest.$ac_ext |
---|
5385 | else |
---|
5386 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5387 | echo "${ECHO_T}no" >&6 |
---|
5388 | { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 |
---|
5389 | echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} |
---|
5390 | { (exit 1); exit 1; }; } |
---|
5391 | fi |
---|
5392 | fi |
---|
5393 | ;; |
---|
5394 | esac |
---|
5395 | |
---|
5396 | LIBS="$coin_save_LIBS" |
---|
5397 | fi |
---|
5398 | else |
---|
5399 | # Try to autodetect the library for blas based on build system |
---|
5400 | #AC_MSG_CHECKING([default locations for BLAS]) |
---|
5401 | case $build in |
---|
5402 | *-sgi-*) |
---|
5403 | echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5 |
---|
5404 | echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6 |
---|
5405 | coin_need_flibs=no |
---|
5406 | coin_save_LIBS="$LIBS" |
---|
5407 | LIBS="-lcomplib.sgimath $LIBS" |
---|
5408 | case $ac_ext in |
---|
5409 | f) |
---|
5410 | cat >conftest.$ac_ext <<_ACEOF |
---|
5411 | /* confdefs.h. */ |
---|
5412 | _ACEOF |
---|
5413 | cat confdefs.h >>conftest.$ac_ext |
---|
5414 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5415 | /* end confdefs.h. */ |
---|
5416 | |
---|
5417 | #ifdef F77_DUMMY_MAIN |
---|
5418 | |
---|
5419 | # ifdef __cplusplus |
---|
5420 | extern "C" |
---|
5421 | # endif |
---|
5422 | int F77_DUMMY_MAIN() { return 1; } |
---|
5423 | |
---|
5424 | #endif |
---|
5425 | int |
---|
5426 | main () |
---|
5427 | { |
---|
5428 | call daxpy |
---|
5429 | ; |
---|
5430 | return 0; |
---|
5431 | } |
---|
5432 | _ACEOF |
---|
5433 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5435 | (eval $ac_link) 2>conftest.er1 |
---|
5436 | ac_status=$? |
---|
5437 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5438 | rm -f conftest.er1 |
---|
5439 | cat conftest.err >&5 |
---|
5440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5441 | (exit $ac_status); } && |
---|
5442 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5443 | || test ! -s conftest.err' |
---|
5444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5445 | (eval $ac_try) 2>&5 |
---|
5446 | ac_status=$? |
---|
5447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5448 | (exit $ac_status); }; } && |
---|
5449 | { ac_try='test -s conftest$ac_exeext' |
---|
5450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5451 | (eval $ac_try) 2>&5 |
---|
5452 | ac_status=$? |
---|
5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5454 | (exit $ac_status); }; }; then |
---|
5455 | use_blas="-lcomplib.sgimath" |
---|
5456 | if test $coin_need_flibs = yes ; then |
---|
5457 | use_blas="$use_blas $FLIBS" |
---|
5458 | fi |
---|
5459 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5460 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5461 | |
---|
5462 | else |
---|
5463 | echo "$as_me: failed program was:" >&5 |
---|
5464 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5465 | |
---|
5466 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5467 | echo "${ECHO_T}no" >&6 |
---|
5468 | fi |
---|
5469 | rm -f conftest.err conftest.$ac_objext \ |
---|
5470 | conftest$ac_exeext conftest.$ac_ext |
---|
5471 | ;; |
---|
5472 | c) |
---|
5473 | ac_ext=f |
---|
5474 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
5475 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5476 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
5477 | case $ac_cv_f77_mangling in |
---|
5478 | upper*) ac_val="DAXPY" ;; |
---|
5479 | lower*) ac_val="daxpy" ;; |
---|
5480 | *) ac_val="unknown" ;; |
---|
5481 | esac |
---|
5482 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
5483 | |
---|
5484 | cfuncdaxpy="$ac_val" |
---|
5485 | |
---|
5486 | ac_ext=c |
---|
5487 | ac_cpp='$CPP $CPPFLAGS' |
---|
5488 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5489 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5490 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5491 | |
---|
5492 | if test x"$coin_need_flibs" = xyes; then |
---|
5493 | flink_try=no; |
---|
5494 | else |
---|
5495 | cat >conftest.$ac_ext <<_ACEOF |
---|
5496 | /* confdefs.h. */ |
---|
5497 | _ACEOF |
---|
5498 | cat confdefs.h >>conftest.$ac_ext |
---|
5499 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5500 | /* end confdefs.h. */ |
---|
5501 | void $cfuncdaxpy(); |
---|
5502 | #ifdef F77_DUMMY_MAIN |
---|
5503 | |
---|
5504 | # ifdef __cplusplus |
---|
5505 | extern "C" |
---|
5506 | # endif |
---|
5507 | int F77_DUMMY_MAIN() { return 1; } |
---|
5508 | |
---|
5509 | #endif |
---|
5510 | int |
---|
5511 | main () |
---|
5512 | { |
---|
5513 | $cfuncdaxpy() |
---|
5514 | ; |
---|
5515 | return 0; |
---|
5516 | } |
---|
5517 | _ACEOF |
---|
5518 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5520 | (eval $ac_link) 2>conftest.er1 |
---|
5521 | ac_status=$? |
---|
5522 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5523 | rm -f conftest.er1 |
---|
5524 | cat conftest.err >&5 |
---|
5525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5526 | (exit $ac_status); } && |
---|
5527 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5528 | || test ! -s conftest.err' |
---|
5529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5530 | (eval $ac_try) 2>&5 |
---|
5531 | ac_status=$? |
---|
5532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5533 | (exit $ac_status); }; } && |
---|
5534 | { ac_try='test -s conftest$ac_exeext' |
---|
5535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5536 | (eval $ac_try) 2>&5 |
---|
5537 | ac_status=$? |
---|
5538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5539 | (exit $ac_status); }; }; then |
---|
5540 | flink_try=yes |
---|
5541 | else |
---|
5542 | echo "$as_me: failed program was:" >&5 |
---|
5543 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5544 | |
---|
5545 | flink_try=no |
---|
5546 | fi |
---|
5547 | rm -f conftest.err conftest.$ac_objext \ |
---|
5548 | conftest$ac_exeext conftest.$ac_ext |
---|
5549 | fi |
---|
5550 | if test $flink_try = yes; then |
---|
5551 | use_blas="-lcomplib.sgimath" |
---|
5552 | if test $coin_need_flibs = yes ; then |
---|
5553 | use_blas="$use_blas $FLIBS" |
---|
5554 | fi |
---|
5555 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5556 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5557 | |
---|
5558 | else |
---|
5559 | if test x"$FLIBS" != x; then |
---|
5560 | flink_save_libs="$LIBS" |
---|
5561 | LIBS="$LIBS $FLIBS" |
---|
5562 | cat >conftest.$ac_ext <<_ACEOF |
---|
5563 | /* confdefs.h. */ |
---|
5564 | _ACEOF |
---|
5565 | cat confdefs.h >>conftest.$ac_ext |
---|
5566 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5567 | /* end confdefs.h. */ |
---|
5568 | void $cfuncdaxpy(); |
---|
5569 | #ifdef F77_DUMMY_MAIN |
---|
5570 | |
---|
5571 | # ifdef __cplusplus |
---|
5572 | extern "C" |
---|
5573 | # endif |
---|
5574 | int F77_DUMMY_MAIN() { return 1; } |
---|
5575 | |
---|
5576 | #endif |
---|
5577 | int |
---|
5578 | main () |
---|
5579 | { |
---|
5580 | $cfuncdaxpy() |
---|
5581 | ; |
---|
5582 | return 0; |
---|
5583 | } |
---|
5584 | _ACEOF |
---|
5585 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5587 | (eval $ac_link) 2>conftest.er1 |
---|
5588 | ac_status=$? |
---|
5589 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5590 | rm -f conftest.er1 |
---|
5591 | cat conftest.err >&5 |
---|
5592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5593 | (exit $ac_status); } && |
---|
5594 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5595 | || test ! -s conftest.err' |
---|
5596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5597 | (eval $ac_try) 2>&5 |
---|
5598 | ac_status=$? |
---|
5599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5600 | (exit $ac_status); }; } && |
---|
5601 | { ac_try='test -s conftest$ac_exeext' |
---|
5602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5603 | (eval $ac_try) 2>&5 |
---|
5604 | ac_status=$? |
---|
5605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5606 | (exit $ac_status); }; }; then |
---|
5607 | LIBS="$flink_save_libs" |
---|
5608 | coin_need_flibs=yes |
---|
5609 | use_blas="-lcomplib.sgimath" |
---|
5610 | if test $coin_need_flibs = yes ; then |
---|
5611 | use_blas="$use_blas $FLIBS" |
---|
5612 | fi |
---|
5613 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5614 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5615 | |
---|
5616 | |
---|
5617 | else |
---|
5618 | echo "$as_me: failed program was:" >&5 |
---|
5619 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5620 | |
---|
5621 | LIBS="$flink_save_libs" |
---|
5622 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5623 | echo "${ECHO_T}no" >&6 |
---|
5624 | fi |
---|
5625 | rm -f conftest.err conftest.$ac_objext \ |
---|
5626 | conftest$ac_exeext conftest.$ac_ext |
---|
5627 | else |
---|
5628 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5629 | echo "${ECHO_T}no" >&6 |
---|
5630 | fi |
---|
5631 | fi |
---|
5632 | ;; |
---|
5633 | cc|cpp) |
---|
5634 | ac_ext=f |
---|
5635 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
5636 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5637 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
5638 | case $ac_cv_f77_mangling in |
---|
5639 | upper*) ac_val="DAXPY" ;; |
---|
5640 | lower*) ac_val="daxpy" ;; |
---|
5641 | *) ac_val="unknown" ;; |
---|
5642 | esac |
---|
5643 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
5644 | |
---|
5645 | cfuncdaxpy="$ac_val" |
---|
5646 | |
---|
5647 | ac_ext=c |
---|
5648 | ac_cpp='$CPP $CPPFLAGS' |
---|
5649 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5650 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5651 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5652 | |
---|
5653 | if test x"$coin_need_flibs" = xyes; then |
---|
5654 | flink_try=no; |
---|
5655 | else |
---|
5656 | cat >conftest.$ac_ext <<_ACEOF |
---|
5657 | /* confdefs.h. */ |
---|
5658 | _ACEOF |
---|
5659 | cat confdefs.h >>conftest.$ac_ext |
---|
5660 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5661 | /* end confdefs.h. */ |
---|
5662 | extern "C" {void $cfuncdaxpy();} |
---|
5663 | #ifdef F77_DUMMY_MAIN |
---|
5664 | |
---|
5665 | # ifdef __cplusplus |
---|
5666 | extern "C" |
---|
5667 | # endif |
---|
5668 | int F77_DUMMY_MAIN() { return 1; } |
---|
5669 | |
---|
5670 | #endif |
---|
5671 | int |
---|
5672 | main () |
---|
5673 | { |
---|
5674 | $cfuncdaxpy() |
---|
5675 | ; |
---|
5676 | return 0; |
---|
5677 | } |
---|
5678 | _ACEOF |
---|
5679 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5681 | (eval $ac_link) 2>conftest.er1 |
---|
5682 | ac_status=$? |
---|
5683 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5684 | rm -f conftest.er1 |
---|
5685 | cat conftest.err >&5 |
---|
5686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5687 | (exit $ac_status); } && |
---|
5688 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5689 | || test ! -s conftest.err' |
---|
5690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5691 | (eval $ac_try) 2>&5 |
---|
5692 | ac_status=$? |
---|
5693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5694 | (exit $ac_status); }; } && |
---|
5695 | { ac_try='test -s conftest$ac_exeext' |
---|
5696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5697 | (eval $ac_try) 2>&5 |
---|
5698 | ac_status=$? |
---|
5699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5700 | (exit $ac_status); }; }; then |
---|
5701 | flink_try=yes |
---|
5702 | else |
---|
5703 | echo "$as_me: failed program was:" >&5 |
---|
5704 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5705 | |
---|
5706 | flink_try=no |
---|
5707 | fi |
---|
5708 | rm -f conftest.err conftest.$ac_objext \ |
---|
5709 | conftest$ac_exeext conftest.$ac_ext |
---|
5710 | fi |
---|
5711 | if test $flink_try = yes; then |
---|
5712 | use_blas="-lcomplib.sgimath" |
---|
5713 | if test $coin_need_flibs = yes ; then |
---|
5714 | use_blas="$use_blas $FLIBS" |
---|
5715 | fi |
---|
5716 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5717 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5718 | |
---|
5719 | else |
---|
5720 | if test x"$FLIBS" != x; then |
---|
5721 | flink_save_libs="$LIBS" |
---|
5722 | LIBS="$LIBS $FLIBS" |
---|
5723 | cat >conftest.$ac_ext <<_ACEOF |
---|
5724 | /* confdefs.h. */ |
---|
5725 | _ACEOF |
---|
5726 | cat confdefs.h >>conftest.$ac_ext |
---|
5727 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5728 | /* end confdefs.h. */ |
---|
5729 | extern "C" {void $cfuncdaxpy();} |
---|
5730 | #ifdef F77_DUMMY_MAIN |
---|
5731 | |
---|
5732 | # ifdef __cplusplus |
---|
5733 | extern "C" |
---|
5734 | # endif |
---|
5735 | int F77_DUMMY_MAIN() { return 1; } |
---|
5736 | |
---|
5737 | #endif |
---|
5738 | int |
---|
5739 | main () |
---|
5740 | { |
---|
5741 | $cfuncdaxpy() |
---|
5742 | ; |
---|
5743 | return 0; |
---|
5744 | } |
---|
5745 | _ACEOF |
---|
5746 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5748 | (eval $ac_link) 2>conftest.er1 |
---|
5749 | ac_status=$? |
---|
5750 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5751 | rm -f conftest.er1 |
---|
5752 | cat conftest.err >&5 |
---|
5753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5754 | (exit $ac_status); } && |
---|
5755 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5756 | || test ! -s conftest.err' |
---|
5757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5758 | (eval $ac_try) 2>&5 |
---|
5759 | ac_status=$? |
---|
5760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5761 | (exit $ac_status); }; } && |
---|
5762 | { ac_try='test -s conftest$ac_exeext' |
---|
5763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5764 | (eval $ac_try) 2>&5 |
---|
5765 | ac_status=$? |
---|
5766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5767 | (exit $ac_status); }; }; then |
---|
5768 | LIBS="$flink_save_libs" |
---|
5769 | coin_need_flibs=yes |
---|
5770 | use_blas="-lcomplib.sgimath" |
---|
5771 | if test $coin_need_flibs = yes ; then |
---|
5772 | use_blas="$use_blas $FLIBS" |
---|
5773 | fi |
---|
5774 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5775 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5776 | |
---|
5777 | |
---|
5778 | else |
---|
5779 | echo "$as_me: failed program was:" >&5 |
---|
5780 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5781 | |
---|
5782 | LIBS="$flink_save_libs" |
---|
5783 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5784 | echo "${ECHO_T}no" >&6 |
---|
5785 | fi |
---|
5786 | rm -f conftest.err conftest.$ac_objext \ |
---|
5787 | conftest$ac_exeext conftest.$ac_ext |
---|
5788 | else |
---|
5789 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5790 | echo "${ECHO_T}no" >&6 |
---|
5791 | fi |
---|
5792 | fi |
---|
5793 | ;; |
---|
5794 | esac |
---|
5795 | |
---|
5796 | LIBS="$coin_save_LIBS" |
---|
5797 | ;; |
---|
5798 | |
---|
5799 | # Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio |
---|
5800 | # cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't |
---|
5801 | # recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims |
---|
5802 | # that CC and cc will understand -library in Studio 13. The main extra |
---|
5803 | # function of -xlic_lib and -library is to arrange for the Fortran run-time |
---|
5804 | # libraries to be linked for C++ and C. We can arrange that explicitly. |
---|
5805 | *-*-solaris*) |
---|
5806 | echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5 |
---|
5807 | echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6 |
---|
5808 | coin_need_flibs=no |
---|
5809 | coin_save_LIBS="$LIBS" |
---|
5810 | LIBS="-lsunperf $FLIBS $LIBS" |
---|
5811 | case $ac_ext in |
---|
5812 | f) |
---|
5813 | cat >conftest.$ac_ext <<_ACEOF |
---|
5814 | /* confdefs.h. */ |
---|
5815 | _ACEOF |
---|
5816 | cat confdefs.h >>conftest.$ac_ext |
---|
5817 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5818 | /* end confdefs.h. */ |
---|
5819 | |
---|
5820 | #ifdef F77_DUMMY_MAIN |
---|
5821 | |
---|
5822 | # ifdef __cplusplus |
---|
5823 | extern "C" |
---|
5824 | # endif |
---|
5825 | int F77_DUMMY_MAIN() { return 1; } |
---|
5826 | |
---|
5827 | #endif |
---|
5828 | int |
---|
5829 | main () |
---|
5830 | { |
---|
5831 | call daxpy |
---|
5832 | ; |
---|
5833 | return 0; |
---|
5834 | } |
---|
5835 | _ACEOF |
---|
5836 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5838 | (eval $ac_link) 2>conftest.er1 |
---|
5839 | ac_status=$? |
---|
5840 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5841 | rm -f conftest.er1 |
---|
5842 | cat conftest.err >&5 |
---|
5843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5844 | (exit $ac_status); } && |
---|
5845 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5846 | || test ! -s conftest.err' |
---|
5847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5848 | (eval $ac_try) 2>&5 |
---|
5849 | ac_status=$? |
---|
5850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5851 | (exit $ac_status); }; } && |
---|
5852 | { ac_try='test -s conftest$ac_exeext' |
---|
5853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5854 | (eval $ac_try) 2>&5 |
---|
5855 | ac_status=$? |
---|
5856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5857 | (exit $ac_status); }; }; then |
---|
5858 | use_blas='-lsunperf' |
---|
5859 | if test $coin_need_flibs = yes ; then |
---|
5860 | use_blas="$use_blas $FLIBS" |
---|
5861 | fi |
---|
5862 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5863 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5864 | |
---|
5865 | else |
---|
5866 | echo "$as_me: failed program was:" >&5 |
---|
5867 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5868 | |
---|
5869 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5870 | echo "${ECHO_T}no" >&6 |
---|
5871 | fi |
---|
5872 | rm -f conftest.err conftest.$ac_objext \ |
---|
5873 | conftest$ac_exeext conftest.$ac_ext |
---|
5874 | ;; |
---|
5875 | c) |
---|
5876 | ac_ext=f |
---|
5877 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
5878 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5879 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
5880 | case $ac_cv_f77_mangling in |
---|
5881 | upper*) ac_val="DAXPY" ;; |
---|
5882 | lower*) ac_val="daxpy" ;; |
---|
5883 | *) ac_val="unknown" ;; |
---|
5884 | esac |
---|
5885 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
5886 | |
---|
5887 | cfuncdaxpy="$ac_val" |
---|
5888 | |
---|
5889 | ac_ext=c |
---|
5890 | ac_cpp='$CPP $CPPFLAGS' |
---|
5891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5894 | |
---|
5895 | if test x"$coin_need_flibs" = xyes; then |
---|
5896 | flink_try=no; |
---|
5897 | else |
---|
5898 | cat >conftest.$ac_ext <<_ACEOF |
---|
5899 | /* confdefs.h. */ |
---|
5900 | _ACEOF |
---|
5901 | cat confdefs.h >>conftest.$ac_ext |
---|
5902 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5903 | /* end confdefs.h. */ |
---|
5904 | void $cfuncdaxpy(); |
---|
5905 | #ifdef F77_DUMMY_MAIN |
---|
5906 | |
---|
5907 | # ifdef __cplusplus |
---|
5908 | extern "C" |
---|
5909 | # endif |
---|
5910 | int F77_DUMMY_MAIN() { return 1; } |
---|
5911 | |
---|
5912 | #endif |
---|
5913 | int |
---|
5914 | main () |
---|
5915 | { |
---|
5916 | $cfuncdaxpy() |
---|
5917 | ; |
---|
5918 | return 0; |
---|
5919 | } |
---|
5920 | _ACEOF |
---|
5921 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5923 | (eval $ac_link) 2>conftest.er1 |
---|
5924 | ac_status=$? |
---|
5925 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5926 | rm -f conftest.er1 |
---|
5927 | cat conftest.err >&5 |
---|
5928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5929 | (exit $ac_status); } && |
---|
5930 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5931 | || test ! -s conftest.err' |
---|
5932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5933 | (eval $ac_try) 2>&5 |
---|
5934 | ac_status=$? |
---|
5935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5936 | (exit $ac_status); }; } && |
---|
5937 | { ac_try='test -s conftest$ac_exeext' |
---|
5938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5939 | (eval $ac_try) 2>&5 |
---|
5940 | ac_status=$? |
---|
5941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5942 | (exit $ac_status); }; }; then |
---|
5943 | flink_try=yes |
---|
5944 | else |
---|
5945 | echo "$as_me: failed program was:" >&5 |
---|
5946 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5947 | |
---|
5948 | flink_try=no |
---|
5949 | fi |
---|
5950 | rm -f conftest.err conftest.$ac_objext \ |
---|
5951 | conftest$ac_exeext conftest.$ac_ext |
---|
5952 | fi |
---|
5953 | if test $flink_try = yes; then |
---|
5954 | use_blas='-lsunperf' |
---|
5955 | if test $coin_need_flibs = yes ; then |
---|
5956 | use_blas="$use_blas $FLIBS" |
---|
5957 | fi |
---|
5958 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
5959 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
5960 | |
---|
5961 | else |
---|
5962 | if test x"$FLIBS" != x; then |
---|
5963 | flink_save_libs="$LIBS" |
---|
5964 | LIBS="$LIBS $FLIBS" |
---|
5965 | cat >conftest.$ac_ext <<_ACEOF |
---|
5966 | /* confdefs.h. */ |
---|
5967 | _ACEOF |
---|
5968 | cat confdefs.h >>conftest.$ac_ext |
---|
5969 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5970 | /* end confdefs.h. */ |
---|
5971 | void $cfuncdaxpy(); |
---|
5972 | #ifdef F77_DUMMY_MAIN |
---|
5973 | |
---|
5974 | # ifdef __cplusplus |
---|
5975 | extern "C" |
---|
5976 | # endif |
---|
5977 | int F77_DUMMY_MAIN() { return 1; } |
---|
5978 | |
---|
5979 | #endif |
---|
5980 | int |
---|
5981 | main () |
---|
5982 | { |
---|
5983 | $cfuncdaxpy() |
---|
5984 | ; |
---|
5985 | return 0; |
---|
5986 | } |
---|
5987 | _ACEOF |
---|
5988 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5990 | (eval $ac_link) 2>conftest.er1 |
---|
5991 | ac_status=$? |
---|
5992 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5993 | rm -f conftest.er1 |
---|
5994 | cat conftest.err >&5 |
---|
5995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5996 | (exit $ac_status); } && |
---|
5997 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5998 | || test ! -s conftest.err' |
---|
5999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6000 | (eval $ac_try) 2>&5 |
---|
6001 | ac_status=$? |
---|
6002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6003 | (exit $ac_status); }; } && |
---|
6004 | { ac_try='test -s conftest$ac_exeext' |
---|
6005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6006 | (eval $ac_try) 2>&5 |
---|
6007 | ac_status=$? |
---|
6008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6009 | (exit $ac_status); }; }; then |
---|
6010 | LIBS="$flink_save_libs" |
---|
6011 | coin_need_flibs=yes |
---|
6012 | use_blas='-lsunperf' |
---|
6013 | if test $coin_need_flibs = yes ; then |
---|
6014 | use_blas="$use_blas $FLIBS" |
---|
6015 | fi |
---|
6016 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6017 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6018 | |
---|
6019 | |
---|
6020 | else |
---|
6021 | echo "$as_me: failed program was:" >&5 |
---|
6022 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6023 | |
---|
6024 | LIBS="$flink_save_libs" |
---|
6025 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6026 | echo "${ECHO_T}no" >&6 |
---|
6027 | fi |
---|
6028 | rm -f conftest.err conftest.$ac_objext \ |
---|
6029 | conftest$ac_exeext conftest.$ac_ext |
---|
6030 | else |
---|
6031 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6032 | echo "${ECHO_T}no" >&6 |
---|
6033 | fi |
---|
6034 | fi |
---|
6035 | ;; |
---|
6036 | cc|cpp) |
---|
6037 | ac_ext=f |
---|
6038 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6039 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6040 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6041 | case $ac_cv_f77_mangling in |
---|
6042 | upper*) ac_val="DAXPY" ;; |
---|
6043 | lower*) ac_val="daxpy" ;; |
---|
6044 | *) ac_val="unknown" ;; |
---|
6045 | esac |
---|
6046 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
6047 | |
---|
6048 | cfuncdaxpy="$ac_val" |
---|
6049 | |
---|
6050 | ac_ext=c |
---|
6051 | ac_cpp='$CPP $CPPFLAGS' |
---|
6052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6055 | |
---|
6056 | if test x"$coin_need_flibs" = xyes; then |
---|
6057 | flink_try=no; |
---|
6058 | else |
---|
6059 | cat >conftest.$ac_ext <<_ACEOF |
---|
6060 | /* confdefs.h. */ |
---|
6061 | _ACEOF |
---|
6062 | cat confdefs.h >>conftest.$ac_ext |
---|
6063 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6064 | /* end confdefs.h. */ |
---|
6065 | extern "C" {void $cfuncdaxpy();} |
---|
6066 | #ifdef F77_DUMMY_MAIN |
---|
6067 | |
---|
6068 | # ifdef __cplusplus |
---|
6069 | extern "C" |
---|
6070 | # endif |
---|
6071 | int F77_DUMMY_MAIN() { return 1; } |
---|
6072 | |
---|
6073 | #endif |
---|
6074 | int |
---|
6075 | main () |
---|
6076 | { |
---|
6077 | $cfuncdaxpy() |
---|
6078 | ; |
---|
6079 | return 0; |
---|
6080 | } |
---|
6081 | _ACEOF |
---|
6082 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6084 | (eval $ac_link) 2>conftest.er1 |
---|
6085 | ac_status=$? |
---|
6086 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6087 | rm -f conftest.er1 |
---|
6088 | cat conftest.err >&5 |
---|
6089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6090 | (exit $ac_status); } && |
---|
6091 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6092 | || test ! -s conftest.err' |
---|
6093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6094 | (eval $ac_try) 2>&5 |
---|
6095 | ac_status=$? |
---|
6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6097 | (exit $ac_status); }; } && |
---|
6098 | { ac_try='test -s conftest$ac_exeext' |
---|
6099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6100 | (eval $ac_try) 2>&5 |
---|
6101 | ac_status=$? |
---|
6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6103 | (exit $ac_status); }; }; then |
---|
6104 | flink_try=yes |
---|
6105 | else |
---|
6106 | echo "$as_me: failed program was:" >&5 |
---|
6107 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6108 | |
---|
6109 | flink_try=no |
---|
6110 | fi |
---|
6111 | rm -f conftest.err conftest.$ac_objext \ |
---|
6112 | conftest$ac_exeext conftest.$ac_ext |
---|
6113 | fi |
---|
6114 | if test $flink_try = yes; then |
---|
6115 | use_blas='-lsunperf' |
---|
6116 | if test $coin_need_flibs = yes ; then |
---|
6117 | use_blas="$use_blas $FLIBS" |
---|
6118 | fi |
---|
6119 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6120 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6121 | |
---|
6122 | else |
---|
6123 | if test x"$FLIBS" != x; then |
---|
6124 | flink_save_libs="$LIBS" |
---|
6125 | LIBS="$LIBS $FLIBS" |
---|
6126 | cat >conftest.$ac_ext <<_ACEOF |
---|
6127 | /* confdefs.h. */ |
---|
6128 | _ACEOF |
---|
6129 | cat confdefs.h >>conftest.$ac_ext |
---|
6130 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6131 | /* end confdefs.h. */ |
---|
6132 | extern "C" {void $cfuncdaxpy();} |
---|
6133 | #ifdef F77_DUMMY_MAIN |
---|
6134 | |
---|
6135 | # ifdef __cplusplus |
---|
6136 | extern "C" |
---|
6137 | # endif |
---|
6138 | int F77_DUMMY_MAIN() { return 1; } |
---|
6139 | |
---|
6140 | #endif |
---|
6141 | int |
---|
6142 | main () |
---|
6143 | { |
---|
6144 | $cfuncdaxpy() |
---|
6145 | ; |
---|
6146 | return 0; |
---|
6147 | } |
---|
6148 | _ACEOF |
---|
6149 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6151 | (eval $ac_link) 2>conftest.er1 |
---|
6152 | ac_status=$? |
---|
6153 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6154 | rm -f conftest.er1 |
---|
6155 | cat conftest.err >&5 |
---|
6156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6157 | (exit $ac_status); } && |
---|
6158 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6159 | || test ! -s conftest.err' |
---|
6160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6161 | (eval $ac_try) 2>&5 |
---|
6162 | ac_status=$? |
---|
6163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6164 | (exit $ac_status); }; } && |
---|
6165 | { ac_try='test -s conftest$ac_exeext' |
---|
6166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6167 | (eval $ac_try) 2>&5 |
---|
6168 | ac_status=$? |
---|
6169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6170 | (exit $ac_status); }; }; then |
---|
6171 | LIBS="$flink_save_libs" |
---|
6172 | coin_need_flibs=yes |
---|
6173 | use_blas='-lsunperf' |
---|
6174 | if test $coin_need_flibs = yes ; then |
---|
6175 | use_blas="$use_blas $FLIBS" |
---|
6176 | fi |
---|
6177 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6178 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6179 | |
---|
6180 | |
---|
6181 | else |
---|
6182 | echo "$as_me: failed program was:" >&5 |
---|
6183 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6184 | |
---|
6185 | LIBS="$flink_save_libs" |
---|
6186 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6187 | echo "${ECHO_T}no" >&6 |
---|
6188 | fi |
---|
6189 | rm -f conftest.err conftest.$ac_objext \ |
---|
6190 | conftest$ac_exeext conftest.$ac_ext |
---|
6191 | else |
---|
6192 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6193 | echo "${ECHO_T}no" >&6 |
---|
6194 | fi |
---|
6195 | fi |
---|
6196 | ;; |
---|
6197 | esac |
---|
6198 | |
---|
6199 | LIBS="$coin_save_LIBS" |
---|
6200 | ;; |
---|
6201 | |
---|
6202 | *-cygwin* | *-mingw*) |
---|
6203 | case "$CC" in |
---|
6204 | clang* ) ;; |
---|
6205 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
6206 | coin_save_LIBS="$LIBS" |
---|
6207 | echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5 |
---|
6208 | echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6 |
---|
6209 | LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS" |
---|
6210 | case $ac_ext in |
---|
6211 | f) |
---|
6212 | cat >conftest.$ac_ext <<_ACEOF |
---|
6213 | /* confdefs.h. */ |
---|
6214 | _ACEOF |
---|
6215 | cat confdefs.h >>conftest.$ac_ext |
---|
6216 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6217 | /* end confdefs.h. */ |
---|
6218 | |
---|
6219 | #ifdef F77_DUMMY_MAIN |
---|
6220 | |
---|
6221 | # ifdef __cplusplus |
---|
6222 | extern "C" |
---|
6223 | # endif |
---|
6224 | int F77_DUMMY_MAIN() { return 1; } |
---|
6225 | |
---|
6226 | #endif |
---|
6227 | int |
---|
6228 | main () |
---|
6229 | { |
---|
6230 | call daxpy |
---|
6231 | ; |
---|
6232 | return 0; |
---|
6233 | } |
---|
6234 | _ACEOF |
---|
6235 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6237 | (eval $ac_link) 2>conftest.er1 |
---|
6238 | ac_status=$? |
---|
6239 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6240 | rm -f conftest.er1 |
---|
6241 | cat conftest.err >&5 |
---|
6242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6243 | (exit $ac_status); } && |
---|
6244 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6245 | || test ! -s conftest.err' |
---|
6246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6247 | (eval $ac_try) 2>&5 |
---|
6248 | ac_status=$? |
---|
6249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6250 | (exit $ac_status); }; } && |
---|
6251 | { ac_try='test -s conftest$ac_exeext' |
---|
6252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6253 | (eval $ac_try) 2>&5 |
---|
6254 | ac_status=$? |
---|
6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6256 | (exit $ac_status); }; }; then |
---|
6257 | use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' |
---|
6258 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6259 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6260 | |
---|
6261 | else |
---|
6262 | echo "$as_me: failed program was:" >&5 |
---|
6263 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6264 | |
---|
6265 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6266 | echo "${ECHO_T}no" >&6 |
---|
6267 | fi |
---|
6268 | rm -f conftest.err conftest.$ac_objext \ |
---|
6269 | conftest$ac_exeext conftest.$ac_ext |
---|
6270 | ;; |
---|
6271 | c) |
---|
6272 | ac_ext=f |
---|
6273 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6274 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6275 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6276 | case $ac_cv_f77_mangling in |
---|
6277 | upper*) ac_val="DAXPY" ;; |
---|
6278 | lower*) ac_val="daxpy" ;; |
---|
6279 | *) ac_val="unknown" ;; |
---|
6280 | esac |
---|
6281 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
6282 | |
---|
6283 | cfuncdaxpy="$ac_val" |
---|
6284 | |
---|
6285 | ac_ext=c |
---|
6286 | ac_cpp='$CPP $CPPFLAGS' |
---|
6287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6290 | |
---|
6291 | if test x"$coin_need_flibs" = xyes; then |
---|
6292 | flink_try=no; |
---|
6293 | else |
---|
6294 | cat >conftest.$ac_ext <<_ACEOF |
---|
6295 | /* confdefs.h. */ |
---|
6296 | _ACEOF |
---|
6297 | cat confdefs.h >>conftest.$ac_ext |
---|
6298 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6299 | /* end confdefs.h. */ |
---|
6300 | void $cfuncdaxpy(); |
---|
6301 | #ifdef F77_DUMMY_MAIN |
---|
6302 | |
---|
6303 | # ifdef __cplusplus |
---|
6304 | extern "C" |
---|
6305 | # endif |
---|
6306 | int F77_DUMMY_MAIN() { return 1; } |
---|
6307 | |
---|
6308 | #endif |
---|
6309 | int |
---|
6310 | main () |
---|
6311 | { |
---|
6312 | $cfuncdaxpy() |
---|
6313 | ; |
---|
6314 | return 0; |
---|
6315 | } |
---|
6316 | _ACEOF |
---|
6317 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6319 | (eval $ac_link) 2>conftest.er1 |
---|
6320 | ac_status=$? |
---|
6321 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6322 | rm -f conftest.er1 |
---|
6323 | cat conftest.err >&5 |
---|
6324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6325 | (exit $ac_status); } && |
---|
6326 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6327 | || test ! -s conftest.err' |
---|
6328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6329 | (eval $ac_try) 2>&5 |
---|
6330 | ac_status=$? |
---|
6331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6332 | (exit $ac_status); }; } && |
---|
6333 | { ac_try='test -s conftest$ac_exeext' |
---|
6334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6335 | (eval $ac_try) 2>&5 |
---|
6336 | ac_status=$? |
---|
6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6338 | (exit $ac_status); }; }; then |
---|
6339 | flink_try=yes |
---|
6340 | else |
---|
6341 | echo "$as_me: failed program was:" >&5 |
---|
6342 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6343 | |
---|
6344 | flink_try=no |
---|
6345 | fi |
---|
6346 | rm -f conftest.err conftest.$ac_objext \ |
---|
6347 | conftest$ac_exeext conftest.$ac_ext |
---|
6348 | fi |
---|
6349 | if test $flink_try = yes; then |
---|
6350 | use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' |
---|
6351 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6352 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6353 | |
---|
6354 | else |
---|
6355 | if test x"$FLIBS" != x; then |
---|
6356 | flink_save_libs="$LIBS" |
---|
6357 | LIBS="$LIBS $FLIBS" |
---|
6358 | cat >conftest.$ac_ext <<_ACEOF |
---|
6359 | /* confdefs.h. */ |
---|
6360 | _ACEOF |
---|
6361 | cat confdefs.h >>conftest.$ac_ext |
---|
6362 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6363 | /* end confdefs.h. */ |
---|
6364 | void $cfuncdaxpy(); |
---|
6365 | #ifdef F77_DUMMY_MAIN |
---|
6366 | |
---|
6367 | # ifdef __cplusplus |
---|
6368 | extern "C" |
---|
6369 | # endif |
---|
6370 | int F77_DUMMY_MAIN() { return 1; } |
---|
6371 | |
---|
6372 | #endif |
---|
6373 | int |
---|
6374 | main () |
---|
6375 | { |
---|
6376 | $cfuncdaxpy() |
---|
6377 | ; |
---|
6378 | return 0; |
---|
6379 | } |
---|
6380 | _ACEOF |
---|
6381 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6383 | (eval $ac_link) 2>conftest.er1 |
---|
6384 | ac_status=$? |
---|
6385 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6386 | rm -f conftest.er1 |
---|
6387 | cat conftest.err >&5 |
---|
6388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6389 | (exit $ac_status); } && |
---|
6390 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6391 | || test ! -s conftest.err' |
---|
6392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6393 | (eval $ac_try) 2>&5 |
---|
6394 | ac_status=$? |
---|
6395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6396 | (exit $ac_status); }; } && |
---|
6397 | { ac_try='test -s conftest$ac_exeext' |
---|
6398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6399 | (eval $ac_try) 2>&5 |
---|
6400 | ac_status=$? |
---|
6401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6402 | (exit $ac_status); }; }; then |
---|
6403 | LIBS="$flink_save_libs" |
---|
6404 | coin_need_flibs=yes |
---|
6405 | use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' |
---|
6406 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6407 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6408 | |
---|
6409 | |
---|
6410 | else |
---|
6411 | echo "$as_me: failed program was:" >&5 |
---|
6412 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6413 | |
---|
6414 | LIBS="$flink_save_libs" |
---|
6415 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6416 | echo "${ECHO_T}no" >&6 |
---|
6417 | fi |
---|
6418 | rm -f conftest.err conftest.$ac_objext \ |
---|
6419 | conftest$ac_exeext conftest.$ac_ext |
---|
6420 | else |
---|
6421 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6422 | echo "${ECHO_T}no" >&6 |
---|
6423 | fi |
---|
6424 | fi |
---|
6425 | ;; |
---|
6426 | cc|cpp) |
---|
6427 | ac_ext=f |
---|
6428 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6429 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6430 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6431 | case $ac_cv_f77_mangling in |
---|
6432 | upper*) ac_val="DAXPY" ;; |
---|
6433 | lower*) ac_val="daxpy" ;; |
---|
6434 | *) ac_val="unknown" ;; |
---|
6435 | esac |
---|
6436 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
6437 | |
---|
6438 | cfuncdaxpy="$ac_val" |
---|
6439 | |
---|
6440 | ac_ext=c |
---|
6441 | ac_cpp='$CPP $CPPFLAGS' |
---|
6442 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6443 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6444 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6445 | |
---|
6446 | if test x"$coin_need_flibs" = xyes; then |
---|
6447 | flink_try=no; |
---|
6448 | else |
---|
6449 | cat >conftest.$ac_ext <<_ACEOF |
---|
6450 | /* confdefs.h. */ |
---|
6451 | _ACEOF |
---|
6452 | cat confdefs.h >>conftest.$ac_ext |
---|
6453 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6454 | /* end confdefs.h. */ |
---|
6455 | extern "C" {void $cfuncdaxpy();} |
---|
6456 | #ifdef F77_DUMMY_MAIN |
---|
6457 | |
---|
6458 | # ifdef __cplusplus |
---|
6459 | extern "C" |
---|
6460 | # endif |
---|
6461 | int F77_DUMMY_MAIN() { return 1; } |
---|
6462 | |
---|
6463 | #endif |
---|
6464 | int |
---|
6465 | main () |
---|
6466 | { |
---|
6467 | $cfuncdaxpy() |
---|
6468 | ; |
---|
6469 | return 0; |
---|
6470 | } |
---|
6471 | _ACEOF |
---|
6472 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6474 | (eval $ac_link) 2>conftest.er1 |
---|
6475 | ac_status=$? |
---|
6476 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6477 | rm -f conftest.er1 |
---|
6478 | cat conftest.err >&5 |
---|
6479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6480 | (exit $ac_status); } && |
---|
6481 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6482 | || test ! -s conftest.err' |
---|
6483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6484 | (eval $ac_try) 2>&5 |
---|
6485 | ac_status=$? |
---|
6486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6487 | (exit $ac_status); }; } && |
---|
6488 | { ac_try='test -s conftest$ac_exeext' |
---|
6489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6490 | (eval $ac_try) 2>&5 |
---|
6491 | ac_status=$? |
---|
6492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6493 | (exit $ac_status); }; }; then |
---|
6494 | flink_try=yes |
---|
6495 | else |
---|
6496 | echo "$as_me: failed program was:" >&5 |
---|
6497 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6498 | |
---|
6499 | flink_try=no |
---|
6500 | fi |
---|
6501 | rm -f conftest.err conftest.$ac_objext \ |
---|
6502 | conftest$ac_exeext conftest.$ac_ext |
---|
6503 | fi |
---|
6504 | if test $flink_try = yes; then |
---|
6505 | use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' |
---|
6506 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6507 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6508 | |
---|
6509 | else |
---|
6510 | if test x"$FLIBS" != x; then |
---|
6511 | flink_save_libs="$LIBS" |
---|
6512 | LIBS="$LIBS $FLIBS" |
---|
6513 | cat >conftest.$ac_ext <<_ACEOF |
---|
6514 | /* confdefs.h. */ |
---|
6515 | _ACEOF |
---|
6516 | cat confdefs.h >>conftest.$ac_ext |
---|
6517 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6518 | /* end confdefs.h. */ |
---|
6519 | extern "C" {void $cfuncdaxpy();} |
---|
6520 | #ifdef F77_DUMMY_MAIN |
---|
6521 | |
---|
6522 | # ifdef __cplusplus |
---|
6523 | extern "C" |
---|
6524 | # endif |
---|
6525 | int F77_DUMMY_MAIN() { return 1; } |
---|
6526 | |
---|
6527 | #endif |
---|
6528 | int |
---|
6529 | main () |
---|
6530 | { |
---|
6531 | $cfuncdaxpy() |
---|
6532 | ; |
---|
6533 | return 0; |
---|
6534 | } |
---|
6535 | _ACEOF |
---|
6536 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6538 | (eval $ac_link) 2>conftest.er1 |
---|
6539 | ac_status=$? |
---|
6540 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6541 | rm -f conftest.er1 |
---|
6542 | cat conftest.err >&5 |
---|
6543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6544 | (exit $ac_status); } && |
---|
6545 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6546 | || test ! -s conftest.err' |
---|
6547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6548 | (eval $ac_try) 2>&5 |
---|
6549 | ac_status=$? |
---|
6550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6551 | (exit $ac_status); }; } && |
---|
6552 | { ac_try='test -s conftest$ac_exeext' |
---|
6553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6554 | (eval $ac_try) 2>&5 |
---|
6555 | ac_status=$? |
---|
6556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6557 | (exit $ac_status); }; }; then |
---|
6558 | LIBS="$flink_save_libs" |
---|
6559 | coin_need_flibs=yes |
---|
6560 | use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' |
---|
6561 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6562 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6563 | |
---|
6564 | |
---|
6565 | else |
---|
6566 | echo "$as_me: failed program was:" >&5 |
---|
6567 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6568 | |
---|
6569 | LIBS="$flink_save_libs" |
---|
6570 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6571 | echo "${ECHO_T}no" >&6 |
---|
6572 | fi |
---|
6573 | rm -f conftest.err conftest.$ac_objext \ |
---|
6574 | conftest$ac_exeext conftest.$ac_ext |
---|
6575 | else |
---|
6576 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6577 | echo "${ECHO_T}no" >&6 |
---|
6578 | fi |
---|
6579 | fi |
---|
6580 | ;; |
---|
6581 | esac |
---|
6582 | |
---|
6583 | LIBS="$coin_save_LIBS" |
---|
6584 | |
---|
6585 | if test "x$use_blas" = x ; then |
---|
6586 | echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5 |
---|
6587 | echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6 |
---|
6588 | LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS" |
---|
6589 | case $ac_ext in |
---|
6590 | f) |
---|
6591 | cat >conftest.$ac_ext <<_ACEOF |
---|
6592 | /* confdefs.h. */ |
---|
6593 | _ACEOF |
---|
6594 | cat confdefs.h >>conftest.$ac_ext |
---|
6595 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6596 | /* end confdefs.h. */ |
---|
6597 | |
---|
6598 | #ifdef F77_DUMMY_MAIN |
---|
6599 | |
---|
6600 | # ifdef __cplusplus |
---|
6601 | extern "C" |
---|
6602 | # endif |
---|
6603 | int F77_DUMMY_MAIN() { return 1; } |
---|
6604 | |
---|
6605 | #endif |
---|
6606 | int |
---|
6607 | main () |
---|
6608 | { |
---|
6609 | call daxpy |
---|
6610 | ; |
---|
6611 | return 0; |
---|
6612 | } |
---|
6613 | _ACEOF |
---|
6614 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6616 | (eval $ac_link) 2>conftest.er1 |
---|
6617 | ac_status=$? |
---|
6618 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6619 | rm -f conftest.er1 |
---|
6620 | cat conftest.err >&5 |
---|
6621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6622 | (exit $ac_status); } && |
---|
6623 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6624 | || test ! -s conftest.err' |
---|
6625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6626 | (eval $ac_try) 2>&5 |
---|
6627 | ac_status=$? |
---|
6628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6629 | (exit $ac_status); }; } && |
---|
6630 | { ac_try='test -s conftest$ac_exeext' |
---|
6631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6632 | (eval $ac_try) 2>&5 |
---|
6633 | ac_status=$? |
---|
6634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6635 | (exit $ac_status); }; }; then |
---|
6636 | use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib' |
---|
6637 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6638 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6639 | |
---|
6640 | else |
---|
6641 | echo "$as_me: failed program was:" >&5 |
---|
6642 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6643 | |
---|
6644 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6645 | echo "${ECHO_T}no" >&6 |
---|
6646 | fi |
---|
6647 | rm -f conftest.err conftest.$ac_objext \ |
---|
6648 | conftest$ac_exeext conftest.$ac_ext |
---|
6649 | ;; |
---|
6650 | c) |
---|
6651 | ac_ext=f |
---|
6652 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6653 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6654 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6655 | case $ac_cv_f77_mangling in |
---|
6656 | upper*) ac_val="DAXPY" ;; |
---|
6657 | lower*) ac_val="daxpy" ;; |
---|
6658 | *) ac_val="unknown" ;; |
---|
6659 | esac |
---|
6660 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
6661 | |
---|
6662 | cfuncdaxpy="$ac_val" |
---|
6663 | |
---|
6664 | ac_ext=c |
---|
6665 | ac_cpp='$CPP $CPPFLAGS' |
---|
6666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6669 | |
---|
6670 | if test x"$coin_need_flibs" = xyes; then |
---|
6671 | flink_try=no; |
---|
6672 | else |
---|
6673 | cat >conftest.$ac_ext <<_ACEOF |
---|
6674 | /* confdefs.h. */ |
---|
6675 | _ACEOF |
---|
6676 | cat confdefs.h >>conftest.$ac_ext |
---|
6677 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6678 | /* end confdefs.h. */ |
---|
6679 | void $cfuncdaxpy(); |
---|
6680 | #ifdef F77_DUMMY_MAIN |
---|
6681 | |
---|
6682 | # ifdef __cplusplus |
---|
6683 | extern "C" |
---|
6684 | # endif |
---|
6685 | int F77_DUMMY_MAIN() { return 1; } |
---|
6686 | |
---|
6687 | #endif |
---|
6688 | int |
---|
6689 | main () |
---|
6690 | { |
---|
6691 | $cfuncdaxpy() |
---|
6692 | ; |
---|
6693 | return 0; |
---|
6694 | } |
---|
6695 | _ACEOF |
---|
6696 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6698 | (eval $ac_link) 2>conftest.er1 |
---|
6699 | ac_status=$? |
---|
6700 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6701 | rm -f conftest.er1 |
---|
6702 | cat conftest.err >&5 |
---|
6703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6704 | (exit $ac_status); } && |
---|
6705 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6706 | || test ! -s conftest.err' |
---|
6707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6708 | (eval $ac_try) 2>&5 |
---|
6709 | ac_status=$? |
---|
6710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6711 | (exit $ac_status); }; } && |
---|
6712 | { ac_try='test -s conftest$ac_exeext' |
---|
6713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6714 | (eval $ac_try) 2>&5 |
---|
6715 | ac_status=$? |
---|
6716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6717 | (exit $ac_status); }; }; then |
---|
6718 | flink_try=yes |
---|
6719 | else |
---|
6720 | echo "$as_me: failed program was:" >&5 |
---|
6721 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6722 | |
---|
6723 | flink_try=no |
---|
6724 | fi |
---|
6725 | rm -f conftest.err conftest.$ac_objext \ |
---|
6726 | conftest$ac_exeext conftest.$ac_ext |
---|
6727 | fi |
---|
6728 | if test $flink_try = yes; then |
---|
6729 | use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib' |
---|
6730 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6731 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6732 | |
---|
6733 | else |
---|
6734 | if test x"$FLIBS" != x; then |
---|
6735 | flink_save_libs="$LIBS" |
---|
6736 | LIBS="$LIBS $FLIBS" |
---|
6737 | cat >conftest.$ac_ext <<_ACEOF |
---|
6738 | /* confdefs.h. */ |
---|
6739 | _ACEOF |
---|
6740 | cat confdefs.h >>conftest.$ac_ext |
---|
6741 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6742 | /* end confdefs.h. */ |
---|
6743 | void $cfuncdaxpy(); |
---|
6744 | #ifdef F77_DUMMY_MAIN |
---|
6745 | |
---|
6746 | # ifdef __cplusplus |
---|
6747 | extern "C" |
---|
6748 | # endif |
---|
6749 | int F77_DUMMY_MAIN() { return 1; } |
---|
6750 | |
---|
6751 | #endif |
---|
6752 | int |
---|
6753 | main () |
---|
6754 | { |
---|
6755 | $cfuncdaxpy() |
---|
6756 | ; |
---|
6757 | return 0; |
---|
6758 | } |
---|
6759 | _ACEOF |
---|
6760 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6762 | (eval $ac_link) 2>conftest.er1 |
---|
6763 | ac_status=$? |
---|
6764 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6765 | rm -f conftest.er1 |
---|
6766 | cat conftest.err >&5 |
---|
6767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6768 | (exit $ac_status); } && |
---|
6769 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6770 | || test ! -s conftest.err' |
---|
6771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6772 | (eval $ac_try) 2>&5 |
---|
6773 | ac_status=$? |
---|
6774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6775 | (exit $ac_status); }; } && |
---|
6776 | { ac_try='test -s conftest$ac_exeext' |
---|
6777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6778 | (eval $ac_try) 2>&5 |
---|
6779 | ac_status=$? |
---|
6780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6781 | (exit $ac_status); }; }; then |
---|
6782 | LIBS="$flink_save_libs" |
---|
6783 | coin_need_flibs=yes |
---|
6784 | use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib' |
---|
6785 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6786 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6787 | |
---|
6788 | |
---|
6789 | else |
---|
6790 | echo "$as_me: failed program was:" >&5 |
---|
6791 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6792 | |
---|
6793 | LIBS="$flink_save_libs" |
---|
6794 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6795 | echo "${ECHO_T}no" >&6 |
---|
6796 | fi |
---|
6797 | rm -f conftest.err conftest.$ac_objext \ |
---|
6798 | conftest$ac_exeext conftest.$ac_ext |
---|
6799 | else |
---|
6800 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6801 | echo "${ECHO_T}no" >&6 |
---|
6802 | fi |
---|
6803 | fi |
---|
6804 | ;; |
---|
6805 | cc|cpp) |
---|
6806 | ac_ext=f |
---|
6807 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6808 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6809 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6810 | case $ac_cv_f77_mangling in |
---|
6811 | upper*) ac_val="DAXPY" ;; |
---|
6812 | lower*) ac_val="daxpy" ;; |
---|
6813 | *) ac_val="unknown" ;; |
---|
6814 | esac |
---|
6815 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
6816 | |
---|
6817 | cfuncdaxpy="$ac_val" |
---|
6818 | |
---|
6819 | ac_ext=c |
---|
6820 | ac_cpp='$CPP $CPPFLAGS' |
---|
6821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6824 | |
---|
6825 | if test x"$coin_need_flibs" = xyes; then |
---|
6826 | flink_try=no; |
---|
6827 | else |
---|
6828 | cat >conftest.$ac_ext <<_ACEOF |
---|
6829 | /* confdefs.h. */ |
---|
6830 | _ACEOF |
---|
6831 | cat confdefs.h >>conftest.$ac_ext |
---|
6832 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6833 | /* end confdefs.h. */ |
---|
6834 | extern "C" {void $cfuncdaxpy();} |
---|
6835 | #ifdef F77_DUMMY_MAIN |
---|
6836 | |
---|
6837 | # ifdef __cplusplus |
---|
6838 | extern "C" |
---|
6839 | # endif |
---|
6840 | int F77_DUMMY_MAIN() { return 1; } |
---|
6841 | |
---|
6842 | #endif |
---|
6843 | int |
---|
6844 | main () |
---|
6845 | { |
---|
6846 | $cfuncdaxpy() |
---|
6847 | ; |
---|
6848 | return 0; |
---|
6849 | } |
---|
6850 | _ACEOF |
---|
6851 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6853 | (eval $ac_link) 2>conftest.er1 |
---|
6854 | ac_status=$? |
---|
6855 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6856 | rm -f conftest.er1 |
---|
6857 | cat conftest.err >&5 |
---|
6858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6859 | (exit $ac_status); } && |
---|
6860 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6861 | || test ! -s conftest.err' |
---|
6862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6863 | (eval $ac_try) 2>&5 |
---|
6864 | ac_status=$? |
---|
6865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6866 | (exit $ac_status); }; } && |
---|
6867 | { ac_try='test -s conftest$ac_exeext' |
---|
6868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6869 | (eval $ac_try) 2>&5 |
---|
6870 | ac_status=$? |
---|
6871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6872 | (exit $ac_status); }; }; then |
---|
6873 | flink_try=yes |
---|
6874 | else |
---|
6875 | echo "$as_me: failed program was:" >&5 |
---|
6876 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6877 | |
---|
6878 | flink_try=no |
---|
6879 | fi |
---|
6880 | rm -f conftest.err conftest.$ac_objext \ |
---|
6881 | conftest$ac_exeext conftest.$ac_ext |
---|
6882 | fi |
---|
6883 | if test $flink_try = yes; then |
---|
6884 | use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib' |
---|
6885 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6886 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6887 | |
---|
6888 | else |
---|
6889 | if test x"$FLIBS" != x; then |
---|
6890 | flink_save_libs="$LIBS" |
---|
6891 | LIBS="$LIBS $FLIBS" |
---|
6892 | cat >conftest.$ac_ext <<_ACEOF |
---|
6893 | /* confdefs.h. */ |
---|
6894 | _ACEOF |
---|
6895 | cat confdefs.h >>conftest.$ac_ext |
---|
6896 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6897 | /* end confdefs.h. */ |
---|
6898 | extern "C" {void $cfuncdaxpy();} |
---|
6899 | #ifdef F77_DUMMY_MAIN |
---|
6900 | |
---|
6901 | # ifdef __cplusplus |
---|
6902 | extern "C" |
---|
6903 | # endif |
---|
6904 | int F77_DUMMY_MAIN() { return 1; } |
---|
6905 | |
---|
6906 | #endif |
---|
6907 | int |
---|
6908 | main () |
---|
6909 | { |
---|
6910 | $cfuncdaxpy() |
---|
6911 | ; |
---|
6912 | return 0; |
---|
6913 | } |
---|
6914 | _ACEOF |
---|
6915 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6917 | (eval $ac_link) 2>conftest.er1 |
---|
6918 | ac_status=$? |
---|
6919 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6920 | rm -f conftest.er1 |
---|
6921 | cat conftest.err >&5 |
---|
6922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6923 | (exit $ac_status); } && |
---|
6924 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6925 | || test ! -s conftest.err' |
---|
6926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6927 | (eval $ac_try) 2>&5 |
---|
6928 | ac_status=$? |
---|
6929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6930 | (exit $ac_status); }; } && |
---|
6931 | { ac_try='test -s conftest$ac_exeext' |
---|
6932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6933 | (eval $ac_try) 2>&5 |
---|
6934 | ac_status=$? |
---|
6935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6936 | (exit $ac_status); }; }; then |
---|
6937 | LIBS="$flink_save_libs" |
---|
6938 | coin_need_flibs=yes |
---|
6939 | use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib' |
---|
6940 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
6941 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
6942 | |
---|
6943 | |
---|
6944 | else |
---|
6945 | echo "$as_me: failed program was:" >&5 |
---|
6946 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6947 | |
---|
6948 | LIBS="$flink_save_libs" |
---|
6949 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6950 | echo "${ECHO_T}no" >&6 |
---|
6951 | fi |
---|
6952 | rm -f conftest.err conftest.$ac_objext \ |
---|
6953 | conftest$ac_exeext conftest.$ac_ext |
---|
6954 | else |
---|
6955 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6956 | echo "${ECHO_T}no" >&6 |
---|
6957 | fi |
---|
6958 | fi |
---|
6959 | ;; |
---|
6960 | esac |
---|
6961 | |
---|
6962 | LIBS="$coin_save_LIBS" |
---|
6963 | fi |
---|
6964 | ;; |
---|
6965 | esac |
---|
6966 | ;; |
---|
6967 | |
---|
6968 | *-darwin*) |
---|
6969 | echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5 |
---|
6970 | echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6 |
---|
6971 | coin_need_flibs=no |
---|
6972 | coin_save_LIBS="$LIBS" |
---|
6973 | LIBS="-framework vecLib $LIBS" |
---|
6974 | case $ac_ext in |
---|
6975 | f) |
---|
6976 | cat >conftest.$ac_ext <<_ACEOF |
---|
6977 | /* confdefs.h. */ |
---|
6978 | _ACEOF |
---|
6979 | cat confdefs.h >>conftest.$ac_ext |
---|
6980 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6981 | /* end confdefs.h. */ |
---|
6982 | |
---|
6983 | #ifdef F77_DUMMY_MAIN |
---|
6984 | |
---|
6985 | # ifdef __cplusplus |
---|
6986 | extern "C" |
---|
6987 | # endif |
---|
6988 | int F77_DUMMY_MAIN() { return 1; } |
---|
6989 | |
---|
6990 | #endif |
---|
6991 | int |
---|
6992 | main () |
---|
6993 | { |
---|
6994 | call daxpy |
---|
6995 | ; |
---|
6996 | return 0; |
---|
6997 | } |
---|
6998 | _ACEOF |
---|
6999 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7001 | (eval $ac_link) 2>conftest.er1 |
---|
7002 | ac_status=$? |
---|
7003 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7004 | rm -f conftest.er1 |
---|
7005 | cat conftest.err >&5 |
---|
7006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7007 | (exit $ac_status); } && |
---|
7008 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7009 | || test ! -s conftest.err' |
---|
7010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7011 | (eval $ac_try) 2>&5 |
---|
7012 | ac_status=$? |
---|
7013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7014 | (exit $ac_status); }; } && |
---|
7015 | { ac_try='test -s conftest$ac_exeext' |
---|
7016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7017 | (eval $ac_try) 2>&5 |
---|
7018 | ac_status=$? |
---|
7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7020 | (exit $ac_status); }; }; then |
---|
7021 | use_blas='-framework vecLib' |
---|
7022 | if test $coin_need_flibs = yes ; then |
---|
7023 | use_blas="$use_blas $FLIBS" |
---|
7024 | fi |
---|
7025 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7026 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7027 | |
---|
7028 | else |
---|
7029 | echo "$as_me: failed program was:" >&5 |
---|
7030 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7031 | |
---|
7032 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7033 | echo "${ECHO_T}no" >&6 |
---|
7034 | fi |
---|
7035 | rm -f conftest.err conftest.$ac_objext \ |
---|
7036 | conftest$ac_exeext conftest.$ac_ext |
---|
7037 | ;; |
---|
7038 | c) |
---|
7039 | ac_ext=f |
---|
7040 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
7041 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7042 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
7043 | case $ac_cv_f77_mangling in |
---|
7044 | upper*) ac_val="DAXPY" ;; |
---|
7045 | lower*) ac_val="daxpy" ;; |
---|
7046 | *) ac_val="unknown" ;; |
---|
7047 | esac |
---|
7048 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
7049 | |
---|
7050 | cfuncdaxpy="$ac_val" |
---|
7051 | |
---|
7052 | ac_ext=c |
---|
7053 | ac_cpp='$CPP $CPPFLAGS' |
---|
7054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7057 | |
---|
7058 | if test x"$coin_need_flibs" = xyes; then |
---|
7059 | flink_try=no; |
---|
7060 | else |
---|
7061 | cat >conftest.$ac_ext <<_ACEOF |
---|
7062 | /* confdefs.h. */ |
---|
7063 | _ACEOF |
---|
7064 | cat confdefs.h >>conftest.$ac_ext |
---|
7065 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7066 | /* end confdefs.h. */ |
---|
7067 | void $cfuncdaxpy(); |
---|
7068 | #ifdef F77_DUMMY_MAIN |
---|
7069 | |
---|
7070 | # ifdef __cplusplus |
---|
7071 | extern "C" |
---|
7072 | # endif |
---|
7073 | int F77_DUMMY_MAIN() { return 1; } |
---|
7074 | |
---|
7075 | #endif |
---|
7076 | int |
---|
7077 | main () |
---|
7078 | { |
---|
7079 | $cfuncdaxpy() |
---|
7080 | ; |
---|
7081 | return 0; |
---|
7082 | } |
---|
7083 | _ACEOF |
---|
7084 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7086 | (eval $ac_link) 2>conftest.er1 |
---|
7087 | ac_status=$? |
---|
7088 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7089 | rm -f conftest.er1 |
---|
7090 | cat conftest.err >&5 |
---|
7091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7092 | (exit $ac_status); } && |
---|
7093 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7094 | || test ! -s conftest.err' |
---|
7095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7096 | (eval $ac_try) 2>&5 |
---|
7097 | ac_status=$? |
---|
7098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7099 | (exit $ac_status); }; } && |
---|
7100 | { ac_try='test -s conftest$ac_exeext' |
---|
7101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7102 | (eval $ac_try) 2>&5 |
---|
7103 | ac_status=$? |
---|
7104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7105 | (exit $ac_status); }; }; then |
---|
7106 | flink_try=yes |
---|
7107 | else |
---|
7108 | echo "$as_me: failed program was:" >&5 |
---|
7109 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7110 | |
---|
7111 | flink_try=no |
---|
7112 | fi |
---|
7113 | rm -f conftest.err conftest.$ac_objext \ |
---|
7114 | conftest$ac_exeext conftest.$ac_ext |
---|
7115 | fi |
---|
7116 | if test $flink_try = yes; then |
---|
7117 | use_blas='-framework vecLib' |
---|
7118 | if test $coin_need_flibs = yes ; then |
---|
7119 | use_blas="$use_blas $FLIBS" |
---|
7120 | fi |
---|
7121 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7122 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7123 | |
---|
7124 | else |
---|
7125 | if test x"$FLIBS" != x; then |
---|
7126 | flink_save_libs="$LIBS" |
---|
7127 | LIBS="$LIBS $FLIBS" |
---|
7128 | cat >conftest.$ac_ext <<_ACEOF |
---|
7129 | /* confdefs.h. */ |
---|
7130 | _ACEOF |
---|
7131 | cat confdefs.h >>conftest.$ac_ext |
---|
7132 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7133 | /* end confdefs.h. */ |
---|
7134 | void $cfuncdaxpy(); |
---|
7135 | #ifdef F77_DUMMY_MAIN |
---|
7136 | |
---|
7137 | # ifdef __cplusplus |
---|
7138 | extern "C" |
---|
7139 | # endif |
---|
7140 | int F77_DUMMY_MAIN() { return 1; } |
---|
7141 | |
---|
7142 | #endif |
---|
7143 | int |
---|
7144 | main () |
---|
7145 | { |
---|
7146 | $cfuncdaxpy() |
---|
7147 | ; |
---|
7148 | return 0; |
---|
7149 | } |
---|
7150 | _ACEOF |
---|
7151 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7153 | (eval $ac_link) 2>conftest.er1 |
---|
7154 | ac_status=$? |
---|
7155 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7156 | rm -f conftest.er1 |
---|
7157 | cat conftest.err >&5 |
---|
7158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7159 | (exit $ac_status); } && |
---|
7160 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7161 | || test ! -s conftest.err' |
---|
7162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7163 | (eval $ac_try) 2>&5 |
---|
7164 | ac_status=$? |
---|
7165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7166 | (exit $ac_status); }; } && |
---|
7167 | { ac_try='test -s conftest$ac_exeext' |
---|
7168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7169 | (eval $ac_try) 2>&5 |
---|
7170 | ac_status=$? |
---|
7171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7172 | (exit $ac_status); }; }; then |
---|
7173 | LIBS="$flink_save_libs" |
---|
7174 | coin_need_flibs=yes |
---|
7175 | use_blas='-framework vecLib' |
---|
7176 | if test $coin_need_flibs = yes ; then |
---|
7177 | use_blas="$use_blas $FLIBS" |
---|
7178 | fi |
---|
7179 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7180 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7181 | |
---|
7182 | |
---|
7183 | else |
---|
7184 | echo "$as_me: failed program was:" >&5 |
---|
7185 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7186 | |
---|
7187 | LIBS="$flink_save_libs" |
---|
7188 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7189 | echo "${ECHO_T}no" >&6 |
---|
7190 | fi |
---|
7191 | rm -f conftest.err conftest.$ac_objext \ |
---|
7192 | conftest$ac_exeext conftest.$ac_ext |
---|
7193 | else |
---|
7194 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7195 | echo "${ECHO_T}no" >&6 |
---|
7196 | fi |
---|
7197 | fi |
---|
7198 | ;; |
---|
7199 | cc|cpp) |
---|
7200 | ac_ext=f |
---|
7201 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
7202 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7203 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
7204 | case $ac_cv_f77_mangling in |
---|
7205 | upper*) ac_val="DAXPY" ;; |
---|
7206 | lower*) ac_val="daxpy" ;; |
---|
7207 | *) ac_val="unknown" ;; |
---|
7208 | esac |
---|
7209 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
7210 | |
---|
7211 | cfuncdaxpy="$ac_val" |
---|
7212 | |
---|
7213 | ac_ext=c |
---|
7214 | ac_cpp='$CPP $CPPFLAGS' |
---|
7215 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7216 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7217 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7218 | |
---|
7219 | if test x"$coin_need_flibs" = xyes; then |
---|
7220 | flink_try=no; |
---|
7221 | else |
---|
7222 | cat >conftest.$ac_ext <<_ACEOF |
---|
7223 | /* confdefs.h. */ |
---|
7224 | _ACEOF |
---|
7225 | cat confdefs.h >>conftest.$ac_ext |
---|
7226 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7227 | /* end confdefs.h. */ |
---|
7228 | extern "C" {void $cfuncdaxpy();} |
---|
7229 | #ifdef F77_DUMMY_MAIN |
---|
7230 | |
---|
7231 | # ifdef __cplusplus |
---|
7232 | extern "C" |
---|
7233 | # endif |
---|
7234 | int F77_DUMMY_MAIN() { return 1; } |
---|
7235 | |
---|
7236 | #endif |
---|
7237 | int |
---|
7238 | main () |
---|
7239 | { |
---|
7240 | $cfuncdaxpy() |
---|
7241 | ; |
---|
7242 | return 0; |
---|
7243 | } |
---|
7244 | _ACEOF |
---|
7245 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7247 | (eval $ac_link) 2>conftest.er1 |
---|
7248 | ac_status=$? |
---|
7249 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7250 | rm -f conftest.er1 |
---|
7251 | cat conftest.err >&5 |
---|
7252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7253 | (exit $ac_status); } && |
---|
7254 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7255 | || test ! -s conftest.err' |
---|
7256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7257 | (eval $ac_try) 2>&5 |
---|
7258 | ac_status=$? |
---|
7259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7260 | (exit $ac_status); }; } && |
---|
7261 | { ac_try='test -s conftest$ac_exeext' |
---|
7262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7263 | (eval $ac_try) 2>&5 |
---|
7264 | ac_status=$? |
---|
7265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7266 | (exit $ac_status); }; }; then |
---|
7267 | flink_try=yes |
---|
7268 | else |
---|
7269 | echo "$as_me: failed program was:" >&5 |
---|
7270 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7271 | |
---|
7272 | flink_try=no |
---|
7273 | fi |
---|
7274 | rm -f conftest.err conftest.$ac_objext \ |
---|
7275 | conftest$ac_exeext conftest.$ac_ext |
---|
7276 | fi |
---|
7277 | if test $flink_try = yes; then |
---|
7278 | use_blas='-framework vecLib' |
---|
7279 | if test $coin_need_flibs = yes ; then |
---|
7280 | use_blas="$use_blas $FLIBS" |
---|
7281 | fi |
---|
7282 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7283 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7284 | |
---|
7285 | else |
---|
7286 | if test x"$FLIBS" != x; then |
---|
7287 | flink_save_libs="$LIBS" |
---|
7288 | LIBS="$LIBS $FLIBS" |
---|
7289 | cat >conftest.$ac_ext <<_ACEOF |
---|
7290 | /* confdefs.h. */ |
---|
7291 | _ACEOF |
---|
7292 | cat confdefs.h >>conftest.$ac_ext |
---|
7293 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7294 | /* end confdefs.h. */ |
---|
7295 | extern "C" {void $cfuncdaxpy();} |
---|
7296 | #ifdef F77_DUMMY_MAIN |
---|
7297 | |
---|
7298 | # ifdef __cplusplus |
---|
7299 | extern "C" |
---|
7300 | # endif |
---|
7301 | int F77_DUMMY_MAIN() { return 1; } |
---|
7302 | |
---|
7303 | #endif |
---|
7304 | int |
---|
7305 | main () |
---|
7306 | { |
---|
7307 | $cfuncdaxpy() |
---|
7308 | ; |
---|
7309 | return 0; |
---|
7310 | } |
---|
7311 | _ACEOF |
---|
7312 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7314 | (eval $ac_link) 2>conftest.er1 |
---|
7315 | ac_status=$? |
---|
7316 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7317 | rm -f conftest.er1 |
---|
7318 | cat conftest.err >&5 |
---|
7319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7320 | (exit $ac_status); } && |
---|
7321 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7322 | || test ! -s conftest.err' |
---|
7323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7324 | (eval $ac_try) 2>&5 |
---|
7325 | ac_status=$? |
---|
7326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7327 | (exit $ac_status); }; } && |
---|
7328 | { ac_try='test -s conftest$ac_exeext' |
---|
7329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7330 | (eval $ac_try) 2>&5 |
---|
7331 | ac_status=$? |
---|
7332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7333 | (exit $ac_status); }; }; then |
---|
7334 | LIBS="$flink_save_libs" |
---|
7335 | coin_need_flibs=yes |
---|
7336 | use_blas='-framework vecLib' |
---|
7337 | if test $coin_need_flibs = yes ; then |
---|
7338 | use_blas="$use_blas $FLIBS" |
---|
7339 | fi |
---|
7340 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7341 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7342 | |
---|
7343 | |
---|
7344 | else |
---|
7345 | echo "$as_me: failed program was:" >&5 |
---|
7346 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7347 | |
---|
7348 | LIBS="$flink_save_libs" |
---|
7349 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7350 | echo "${ECHO_T}no" >&6 |
---|
7351 | fi |
---|
7352 | rm -f conftest.err conftest.$ac_objext \ |
---|
7353 | conftest$ac_exeext conftest.$ac_ext |
---|
7354 | else |
---|
7355 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7356 | echo "${ECHO_T}no" >&6 |
---|
7357 | fi |
---|
7358 | fi |
---|
7359 | ;; |
---|
7360 | esac |
---|
7361 | |
---|
7362 | LIBS="$coin_save_LIBS" |
---|
7363 | ;; |
---|
7364 | esac |
---|
7365 | |
---|
7366 | if test -z "$use_blas" ; then |
---|
7367 | echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5 |
---|
7368 | echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6 |
---|
7369 | coin_need_flibs=no |
---|
7370 | coin_save_LIBS="$LIBS" |
---|
7371 | LIBS="-lblas $LIBS" |
---|
7372 | case $ac_ext in |
---|
7373 | f) |
---|
7374 | cat >conftest.$ac_ext <<_ACEOF |
---|
7375 | /* confdefs.h. */ |
---|
7376 | _ACEOF |
---|
7377 | cat confdefs.h >>conftest.$ac_ext |
---|
7378 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7379 | /* end confdefs.h. */ |
---|
7380 | |
---|
7381 | #ifdef F77_DUMMY_MAIN |
---|
7382 | |
---|
7383 | # ifdef __cplusplus |
---|
7384 | extern "C" |
---|
7385 | # endif |
---|
7386 | int F77_DUMMY_MAIN() { return 1; } |
---|
7387 | |
---|
7388 | #endif |
---|
7389 | int |
---|
7390 | main () |
---|
7391 | { |
---|
7392 | call daxpy |
---|
7393 | ; |
---|
7394 | return 0; |
---|
7395 | } |
---|
7396 | _ACEOF |
---|
7397 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7399 | (eval $ac_link) 2>conftest.er1 |
---|
7400 | ac_status=$? |
---|
7401 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7402 | rm -f conftest.er1 |
---|
7403 | cat conftest.err >&5 |
---|
7404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7405 | (exit $ac_status); } && |
---|
7406 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7407 | || test ! -s conftest.err' |
---|
7408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7409 | (eval $ac_try) 2>&5 |
---|
7410 | ac_status=$? |
---|
7411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7412 | (exit $ac_status); }; } && |
---|
7413 | { ac_try='test -s conftest$ac_exeext' |
---|
7414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7415 | (eval $ac_try) 2>&5 |
---|
7416 | ac_status=$? |
---|
7417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7418 | (exit $ac_status); }; }; then |
---|
7419 | use_blas='-lblas' |
---|
7420 | if test $coin_need_flibs = yes ; then |
---|
7421 | use_blas="$use_blas $FLIBS" |
---|
7422 | fi |
---|
7423 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7424 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7425 | |
---|
7426 | else |
---|
7427 | echo "$as_me: failed program was:" >&5 |
---|
7428 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7429 | |
---|
7430 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7431 | echo "${ECHO_T}no" >&6 |
---|
7432 | fi |
---|
7433 | rm -f conftest.err conftest.$ac_objext \ |
---|
7434 | conftest$ac_exeext conftest.$ac_ext |
---|
7435 | ;; |
---|
7436 | c) |
---|
7437 | ac_ext=f |
---|
7438 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
7439 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7440 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
7441 | case $ac_cv_f77_mangling in |
---|
7442 | upper*) ac_val="DAXPY" ;; |
---|
7443 | lower*) ac_val="daxpy" ;; |
---|
7444 | *) ac_val="unknown" ;; |
---|
7445 | esac |
---|
7446 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
7447 | |
---|
7448 | cfuncdaxpy="$ac_val" |
---|
7449 | |
---|
7450 | ac_ext=c |
---|
7451 | ac_cpp='$CPP $CPPFLAGS' |
---|
7452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7455 | |
---|
7456 | if test x"$coin_need_flibs" = xyes; then |
---|
7457 | flink_try=no; |
---|
7458 | else |
---|
7459 | cat >conftest.$ac_ext <<_ACEOF |
---|
7460 | /* confdefs.h. */ |
---|
7461 | _ACEOF |
---|
7462 | cat confdefs.h >>conftest.$ac_ext |
---|
7463 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7464 | /* end confdefs.h. */ |
---|
7465 | void $cfuncdaxpy(); |
---|
7466 | #ifdef F77_DUMMY_MAIN |
---|
7467 | |
---|
7468 | # ifdef __cplusplus |
---|
7469 | extern "C" |
---|
7470 | # endif |
---|
7471 | int F77_DUMMY_MAIN() { return 1; } |
---|
7472 | |
---|
7473 | #endif |
---|
7474 | int |
---|
7475 | main () |
---|
7476 | { |
---|
7477 | $cfuncdaxpy() |
---|
7478 | ; |
---|
7479 | return 0; |
---|
7480 | } |
---|
7481 | _ACEOF |
---|
7482 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7484 | (eval $ac_link) 2>conftest.er1 |
---|
7485 | ac_status=$? |
---|
7486 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7487 | rm -f conftest.er1 |
---|
7488 | cat conftest.err >&5 |
---|
7489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7490 | (exit $ac_status); } && |
---|
7491 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7492 | || test ! -s conftest.err' |
---|
7493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7494 | (eval $ac_try) 2>&5 |
---|
7495 | ac_status=$? |
---|
7496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7497 | (exit $ac_status); }; } && |
---|
7498 | { ac_try='test -s conftest$ac_exeext' |
---|
7499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7500 | (eval $ac_try) 2>&5 |
---|
7501 | ac_status=$? |
---|
7502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7503 | (exit $ac_status); }; }; then |
---|
7504 | flink_try=yes |
---|
7505 | else |
---|
7506 | echo "$as_me: failed program was:" >&5 |
---|
7507 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7508 | |
---|
7509 | flink_try=no |
---|
7510 | fi |
---|
7511 | rm -f conftest.err conftest.$ac_objext \ |
---|
7512 | conftest$ac_exeext conftest.$ac_ext |
---|
7513 | fi |
---|
7514 | if test $flink_try = yes; then |
---|
7515 | use_blas='-lblas' |
---|
7516 | if test $coin_need_flibs = yes ; then |
---|
7517 | use_blas="$use_blas $FLIBS" |
---|
7518 | fi |
---|
7519 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7520 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7521 | |
---|
7522 | else |
---|
7523 | if test x"$FLIBS" != x; then |
---|
7524 | flink_save_libs="$LIBS" |
---|
7525 | LIBS="$LIBS $FLIBS" |
---|
7526 | cat >conftest.$ac_ext <<_ACEOF |
---|
7527 | /* confdefs.h. */ |
---|
7528 | _ACEOF |
---|
7529 | cat confdefs.h >>conftest.$ac_ext |
---|
7530 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7531 | /* end confdefs.h. */ |
---|
7532 | void $cfuncdaxpy(); |
---|
7533 | #ifdef F77_DUMMY_MAIN |
---|
7534 | |
---|
7535 | # ifdef __cplusplus |
---|
7536 | extern "C" |
---|
7537 | # endif |
---|
7538 | int F77_DUMMY_MAIN() { return 1; } |
---|
7539 | |
---|
7540 | #endif |
---|
7541 | int |
---|
7542 | main () |
---|
7543 | { |
---|
7544 | $cfuncdaxpy() |
---|
7545 | ; |
---|
7546 | return 0; |
---|
7547 | } |
---|
7548 | _ACEOF |
---|
7549 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7551 | (eval $ac_link) 2>conftest.er1 |
---|
7552 | ac_status=$? |
---|
7553 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7554 | rm -f conftest.er1 |
---|
7555 | cat conftest.err >&5 |
---|
7556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7557 | (exit $ac_status); } && |
---|
7558 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7559 | || test ! -s conftest.err' |
---|
7560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7561 | (eval $ac_try) 2>&5 |
---|
7562 | ac_status=$? |
---|
7563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7564 | (exit $ac_status); }; } && |
---|
7565 | { ac_try='test -s conftest$ac_exeext' |
---|
7566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7567 | (eval $ac_try) 2>&5 |
---|
7568 | ac_status=$? |
---|
7569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7570 | (exit $ac_status); }; }; then |
---|
7571 | LIBS="$flink_save_libs" |
---|
7572 | coin_need_flibs=yes |
---|
7573 | use_blas='-lblas' |
---|
7574 | if test $coin_need_flibs = yes ; then |
---|
7575 | use_blas="$use_blas $FLIBS" |
---|
7576 | fi |
---|
7577 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7578 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7579 | |
---|
7580 | |
---|
7581 | else |
---|
7582 | echo "$as_me: failed program was:" >&5 |
---|
7583 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7584 | |
---|
7585 | LIBS="$flink_save_libs" |
---|
7586 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7587 | echo "${ECHO_T}no" >&6 |
---|
7588 | fi |
---|
7589 | rm -f conftest.err conftest.$ac_objext \ |
---|
7590 | conftest$ac_exeext conftest.$ac_ext |
---|
7591 | else |
---|
7592 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7593 | echo "${ECHO_T}no" >&6 |
---|
7594 | fi |
---|
7595 | fi |
---|
7596 | ;; |
---|
7597 | cc|cpp) |
---|
7598 | ac_ext=f |
---|
7599 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
7600 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7601 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
7602 | case $ac_cv_f77_mangling in |
---|
7603 | upper*) ac_val="DAXPY" ;; |
---|
7604 | lower*) ac_val="daxpy" ;; |
---|
7605 | *) ac_val="unknown" ;; |
---|
7606 | esac |
---|
7607 | case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac |
---|
7608 | |
---|
7609 | cfuncdaxpy="$ac_val" |
---|
7610 | |
---|
7611 | ac_ext=c |
---|
7612 | ac_cpp='$CPP $CPPFLAGS' |
---|
7613 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7614 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7615 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7616 | |
---|
7617 | if test x"$coin_need_flibs" = xyes; then |
---|
7618 | flink_try=no; |
---|
7619 | else |
---|
7620 | cat >conftest.$ac_ext <<_ACEOF |
---|
7621 | /* confdefs.h. */ |
---|
7622 | _ACEOF |
---|
7623 | cat confdefs.h >>conftest.$ac_ext |
---|
7624 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7625 | /* end confdefs.h. */ |
---|
7626 | extern "C" {void $cfuncdaxpy();} |
---|
7627 | #ifdef F77_DUMMY_MAIN |
---|
7628 | |
---|
7629 | # ifdef __cplusplus |
---|
7630 | extern "C" |
---|
7631 | # endif |
---|
7632 | int F77_DUMMY_MAIN() { return 1; } |
---|
7633 | |
---|
7634 | #endif |
---|
7635 | int |
---|
7636 | main () |
---|
7637 | { |
---|
7638 | $cfuncdaxpy() |
---|
7639 | ; |
---|
7640 | return 0; |
---|
7641 | } |
---|
7642 | _ACEOF |
---|
7643 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7645 | (eval $ac_link) 2>conftest.er1 |
---|
7646 | ac_status=$? |
---|
7647 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7648 | rm -f conftest.er1 |
---|
7649 | cat conftest.err >&5 |
---|
7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7651 | (exit $ac_status); } && |
---|
7652 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7653 | || test ! -s conftest.err' |
---|
7654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7655 | (eval $ac_try) 2>&5 |
---|
7656 | ac_status=$? |
---|
7657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7658 | (exit $ac_status); }; } && |
---|
7659 | { ac_try='test -s conftest$ac_exeext' |
---|
7660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7661 | (eval $ac_try) 2>&5 |
---|
7662 | ac_status=$? |
---|
7663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7664 | (exit $ac_status); }; }; then |
---|
7665 | flink_try=yes |
---|
7666 | else |
---|
7667 | echo "$as_me: failed program was:" >&5 |
---|
7668 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7669 | |
---|
7670 | flink_try=no |
---|
7671 | fi |
---|
7672 | rm -f conftest.err conftest.$ac_objext \ |
---|
7673 | conftest$ac_exeext conftest.$ac_ext |
---|
7674 | fi |
---|
7675 | if test $flink_try = yes; then |
---|
7676 | use_blas='-lblas' |
---|
7677 | if test $coin_need_flibs = yes ; then |
---|
7678 | use_blas="$use_blas $FLIBS" |
---|
7679 | fi |
---|
7680 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7681 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7682 | |
---|
7683 | else |
---|
7684 | if test x"$FLIBS" != x; then |
---|
7685 | flink_save_libs="$LIBS" |
---|
7686 | LIBS="$LIBS $FLIBS" |
---|
7687 | cat >conftest.$ac_ext <<_ACEOF |
---|
7688 | /* confdefs.h. */ |
---|
7689 | _ACEOF |
---|
7690 | cat confdefs.h >>conftest.$ac_ext |
---|
7691 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7692 | /* end confdefs.h. */ |
---|
7693 | extern "C" {void $cfuncdaxpy();} |
---|
7694 | #ifdef F77_DUMMY_MAIN |
---|
7695 | |
---|
7696 | # ifdef __cplusplus |
---|
7697 | extern "C" |
---|
7698 | # endif |
---|
7699 | int F77_DUMMY_MAIN() { return 1; } |
---|
7700 | |
---|
7701 | #endif |
---|
7702 | int |
---|
7703 | main () |
---|
7704 | { |
---|
7705 | $cfuncdaxpy() |
---|
7706 | ; |
---|
7707 | return 0; |
---|
7708 | } |
---|
7709 | _ACEOF |
---|
7710 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7712 | (eval $ac_link) 2>conftest.er1 |
---|
7713 | ac_status=$? |
---|
7714 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7715 | rm -f conftest.er1 |
---|
7716 | cat conftest.err >&5 |
---|
7717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7718 | (exit $ac_status); } && |
---|
7719 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7720 | || test ! -s conftest.err' |
---|
7721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7722 | (eval $ac_try) 2>&5 |
---|
7723 | ac_status=$? |
---|
7724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7725 | (exit $ac_status); }; } && |
---|
7726 | { ac_try='test -s conftest$ac_exeext' |
---|
7727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7728 | (eval $ac_try) 2>&5 |
---|
7729 | ac_status=$? |
---|
7730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7731 | (exit $ac_status); }; }; then |
---|
7732 | LIBS="$flink_save_libs" |
---|
7733 | coin_need_flibs=yes |
---|
7734 | use_blas='-lblas' |
---|
7735 | if test $coin_need_flibs = yes ; then |
---|
7736 | use_blas="$use_blas $FLIBS" |
---|
7737 | fi |
---|
7738 | echo "$as_me:$LINENO: result: yes: $use_blas" >&5 |
---|
7739 | echo "${ECHO_T}yes: $use_blas" >&6 |
---|
7740 | |
---|
7741 | |
---|
7742 | else |
---|
7743 | echo "$as_me: failed program was:" >&5 |
---|
7744 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7745 | |
---|
7746 | LIBS="$flink_save_libs" |
---|
7747 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7748 | echo "${ECHO_T}no" >&6 |
---|
7749 | fi |
---|
7750 | rm -f conftest.err conftest.$ac_objext \ |
---|
7751 | conftest$ac_exeext conftest.$ac_ext |
---|
7752 | else |
---|
7753 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7754 | echo "${ECHO_T}no" >&6 |
---|
7755 | fi |
---|
7756 | fi |
---|
7757 | ;; |
---|
7758 | esac |
---|
7759 | |
---|
7760 | LIBS="$coin_save_LIBS" |
---|
7761 | fi |
---|
7762 | |
---|
7763 | # If we have no other ideas, consider building BLAS. |
---|
7764 | if test -z "$use_blas" ; then |
---|
7765 | use_blas=BUILD |
---|
7766 | fi |
---|
7767 | fi |
---|
7768 | |
---|
7769 | if test "x$use_blas" = xBUILD ; then |
---|
7770 | |
---|
7771 | echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5 |
---|
7772 | echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6 |
---|
7773 | |
---|
7774 | coin_has_blas=notGiven |
---|
7775 | |
---|
7776 | # check if user wants to skip package in any case |
---|
7777 | if test x"$COIN_SKIP_PROJECTS" != x; then |
---|
7778 | for dir in $COIN_SKIP_PROJECTS; do |
---|
7779 | if test $dir = "Blas"; then |
---|
7780 | coin_has_blas=skipping |
---|
7781 | fi |
---|
7782 | done |
---|
7783 | fi |
---|
7784 | |
---|
7785 | if test "$coin_has_blas" != skipping; then |
---|
7786 | |
---|
7787 | # Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given. |
---|
7788 | if test "${with_blas+set}" = set; then |
---|
7789 | withval="$with_blas" |
---|
7790 | if test "$withval" = no ; then |
---|
7791 | coin_has_blas=skipping |
---|
7792 | fi |
---|
7793 | |
---|
7794 | fi; |
---|
7795 | fi |
---|
7796 | |
---|
7797 | BLAS_LIBS= |
---|
7798 | BLAS_CFLAGS= |
---|
7799 | BLAS_DATA= |
---|
7800 | BLAS_DEPENDENCIES= |
---|
7801 | BLAS_PCLIBS= |
---|
7802 | BLAS_PCREQUIRES= |
---|
7803 | BLAS_DATA= |
---|
7804 | |
---|
7805 | |
---|
7806 | |
---|
7807 | |
---|
7808 | |
---|
7809 | |
---|
7810 | |
---|
7811 | |
---|
7812 | |
---|
7813 | |
---|
7814 | |
---|
7815 | |
---|
7816 | |
---|
7817 | |
---|
7818 | |
---|
7819 | |
---|
7820 | |
---|
7821 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
---|
7822 | if test $coin_has_blas != skipping; then |
---|
7823 | |
---|
7824 | # Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given. |
---|
7825 | if test "${with_blas_lib+set}" = set; then |
---|
7826 | withval="$with_blas_lib" |
---|
7827 | if test "$withval" = no ; then |
---|
7828 | coin_has_blas=skipping |
---|
7829 | else |
---|
7830 | coin_has_blas=yes |
---|
7831 | BLAS_LIBS="$withval" |
---|
7832 | BLAS_PCLIBS="$withval" |
---|
7833 | |
---|
7834 | LAPACKLIB_PCLIBS="$withval $LAPACKLIB_PCLIBS" |
---|
7835 | LAPACKLIB_LIBS="$withval $LAPACKLIB_LIBS" |
---|
7836 | |
---|
7837 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
---|
7838 | if test -z "$PKG_CONFIG" ; then |
---|
7839 | BLAS_LIBS_INSTALLED="$withval" |
---|
7840 | LAPACKLIB_LIBS_INSTALLED="$withval $LAPACKLIB_LIBS_INSTALLED" |
---|
7841 | fi |
---|
7842 | fi |
---|
7843 | |
---|
7844 | fi; |
---|
7845 | fi |
---|
7846 | |
---|
7847 | if test $coin_has_blas != skipping; then |
---|
7848 | |
---|
7849 | # Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given. |
---|
7850 | if test "${with_blas_incdir+set}" = set; then |
---|
7851 | withval="$with_blas_incdir" |
---|
7852 | if test "$withval" = no ; then |
---|
7853 | coin_has_blas=skipping |
---|
7854 | else |
---|
7855 | coin_has_blas=yes |
---|
7856 | BLAS_CFLAGS="-I`${CYGPATH_W} $withval`" |
---|
7857 | LAPACKLIB_CFLAGS="-I`${CYGPATH_W} $withval` $LAPACKLIB_CFLAGS" |
---|
7858 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
---|
7859 | if test -z "$PKG_CONFIG" ; then |
---|
7860 | BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS" |
---|
7861 | LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $LAPACKLIB_CFLAGS_INSTALLED" |
---|
7862 | fi |
---|
7863 | fi |
---|
7864 | |
---|
7865 | fi; |
---|
7866 | fi |
---|
7867 | |
---|
7868 | if test $coin_has_blas != skipping; then |
---|
7869 | |
---|
7870 | # Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given. |
---|
7871 | if test "${with_blas_datadir+set}" = set; then |
---|
7872 | withval="$with_blas_datadir" |
---|
7873 | if test "$withval" = no ; then |
---|
7874 | coin_has_blas=skipping |
---|
7875 | else |
---|
7876 | coin_has_blas=yes |
---|
7877 | BLAS_DATA="$withval" |
---|
7878 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
---|
7879 | if test -z "$PKG_CONFIG" ; then |
---|
7880 | BLAS_DATA_INSTALLED="$withval" |
---|
7881 | fi |
---|
7882 | fi |
---|
7883 | |
---|
7884 | fi; |
---|
7885 | fi |
---|
7886 | |
---|
7887 | if test $coin_has_blas = notGiven; then |
---|
7888 | if test -n "$PKG_CONFIG" ; then |
---|
7889 | # set search path for pkg-config |
---|
7890 | # need to export variable to be sure that the following pkg-config gets these values |
---|
7891 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
---|
7892 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
---|
7893 | export PKG_CONFIG_PATH |
---|
7894 | |
---|
7895 | # let pkg-config do it's magic |
---|
7896 | |
---|
7897 | |
---|
7898 | |
---|
7899 | if test -n "$PKG_CONFIG" ; then |
---|
7900 | if $PKG_CONFIG --exists "coinblas"; then |
---|
7901 | BLAS_VERSIONS=`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '` |
---|
7902 | cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null` |
---|
7903 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
---|
7904 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
---|
7905 | # but only do this if is not trivial |
---|
7906 | if test "$CYGPATH_W" != "echo" ; then |
---|
7907 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
---|
7908 | cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
---|
7909 | fi |
---|
7910 | BLAS_CFLAGS="$cflags" |
---|
7911 | BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null` |
---|
7912 | BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null` |
---|
7913 | coin_has_blas=yes |
---|
7914 | echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5 |
---|
7915 | echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6 |
---|
7916 | |
---|
7917 | # adjust linker flags for (i)cl compiler |
---|
7918 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
---|
7919 | if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ; |
---|
7920 | then |
---|
7921 | BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
---|
7922 | fi |
---|
7923 | BLAS_PCREQUIRES="coinblas" |
---|
7924 | |
---|
7925 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in LapackLib |
---|
7926 | |
---|
7927 | LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES" |
---|
7928 | LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS" |
---|
7929 | LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS" |
---|
7930 | |
---|
7931 | |
---|
7932 | |
---|
7933 | else |
---|
7934 | BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"` |
---|
7935 | coin_has_blas=notGiven |
---|
7936 | echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5 |
---|
7937 | echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6 |
---|
7938 | |
---|
7939 | fi |
---|
7940 | else |
---|
7941 | { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5 |
---|
7942 | echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;} |
---|
7943 | { (exit 1); exit 1; }; } |
---|
7944 | fi |
---|
7945 | |
---|
7946 | |
---|
7947 | |
---|
7948 | |
---|
7949 | # reset PKG_CONFIG_PATH variable |
---|
7950 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
---|
7951 | export PKG_CONFIG_PATH |
---|
7952 | |
---|
7953 | else |
---|
7954 | echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
---|
7955 | echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
---|
7956 | |
---|
7957 | echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5 |
---|
7958 | echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6 |
---|
7959 | |
---|
7960 | coin_has_blas=notGiven |
---|
7961 | BLAS_LIBS= |
---|
7962 | BLAS_LIBS_INSTALLED= |
---|
7963 | BLAS_CFLAGS= |
---|
7964 | BLAS_CFLAGS_INSTALLED= |
---|
7965 | BLAS_DATA= |
---|
7966 | BLAS_DATA_INSTALLED= |
---|
7967 | BLAS_PCLIBS= |
---|
7968 | BLAS_PCREQUIRES= |
---|
7969 | |
---|
7970 | # initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
---|
7971 | projtoprocess="coinblas" |
---|
7972 | |
---|
7973 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
---|
7974 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
---|
7975 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
---|
7976 | # also, we setup the DATA variable |
---|
7977 | allproj="" |
---|
7978 | allpcfiles="" |
---|
7979 | allpcifiles="" |
---|
7980 | while test "x$projtoprocess" != x ; do |
---|
7981 | |
---|
7982 | for proj in $projtoprocess ; do |
---|
7983 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
---|
7984 | pcfile="" |
---|
7985 | save_IFS="$IFS" |
---|
7986 | IFS=":" |
---|
7987 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
---|
7988 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
---|
7989 | if test -r "$dir/${proj}-uninstalled.pc" ; then |
---|
7990 | pcfile="$dir/$proj-uninstalled.pc" |
---|
7991 | if test -r "$dir/${proj}.pc" ; then |
---|
7992 | pcifile="$dir/${proj}.pc" |
---|
7993 | else |
---|
7994 | { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
---|
7995 | echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
---|
7996 | pcifile= |
---|
7997 | fi |
---|
7998 | break |
---|
7999 | fi |
---|
8000 | done |
---|
8001 | IFS="$save_IFS" |
---|
8002 | |
---|
8003 | if test "x$pcfile" != x ; then |
---|
8004 | # read dependencies from $pcfile and filter it |
---|
8005 | projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
---|
8006 | |
---|
8007 | # add projrequires to the front of the list of projects that have to be processed next |
---|
8008 | # at the same time, remove $proj from this list |
---|
8009 | projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"` |
---|
8010 | |
---|
8011 | # read DATA from $pcfile, if _DATA is still empty |
---|
8012 | if test "x$BLAS_DATA" = x ; then |
---|
8013 | projdatadir= |
---|
8014 | pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
---|
8015 | eval `sh -c "$pcfilemod"` |
---|
8016 | BLAS_DATA="$projdatadir" |
---|
8017 | fi |
---|
8018 | |
---|
8019 | allproj="$allproj $proj" |
---|
8020 | allpcfiles="$pcfile:$allpcfiles" |
---|
8021 | |
---|
8022 | else |
---|
8023 | echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
---|
8024 | echo "${ECHO_T}no, dependency $proj not available" >&6 |
---|
8025 | allproj=fail |
---|
8026 | break 2 |
---|
8027 | fi |
---|
8028 | |
---|
8029 | if test "x$pcifile" != x ; then |
---|
8030 | allpcifiles="$pcifile:$allpcifiles" |
---|
8031 | |
---|
8032 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
---|
8033 | if test "x$BLAS_DATA_INSTALLED" = x ; then |
---|
8034 | projdatadir= |
---|
8035 | pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
---|
8036 | eval `sh -c "$pcifilemod"` |
---|
8037 | if test "${CYGPATH_W}" != "echo"; then |
---|
8038 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
---|
8039 | fi |
---|
8040 | BLAS_DATA_INSTALLED="$projdatadir" |
---|
8041 | fi |
---|
8042 | |
---|
8043 | fi |
---|
8044 | |
---|
8045 | break |
---|
8046 | done |
---|
8047 | |
---|
8048 | # remove spaces on begin of $projtoprocess |
---|
8049 | projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'` |
---|
8050 | |
---|
8051 | done |
---|
8052 | |
---|
8053 | if test "$allproj" != fail ; then |
---|
8054 | |
---|
8055 | # now go through the list of .pc files and assemble compiler and linker flags |
---|
8056 | # important is here to obey the reverse order that has been setup before, |
---|
8057 | # since then libraries that are required by several others should be after these other libraries |
---|
8058 | pcfilesprocessed="" |
---|
8059 | |
---|
8060 | save_IFS="$IFS" |
---|
8061 | IFS=":" |
---|
8062 | for pcfile in $allpcfiles ; do |
---|
8063 | |
---|
8064 | # if $pcfile has been processed already, skip this round |
---|
8065 | if test "x$pcfilesprocessed" != x ; then |
---|
8066 | for pcfiledone in $pcfilesprocessed ; do |
---|
8067 | if test "$pcfiledone" = "$pcfile" ; then |
---|
8068 | continue 2 |
---|
8069 | fi |
---|
8070 | done |
---|
8071 | fi |
---|
8072 | |
---|
8073 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
---|
8074 | # replace "Libs:" by "echo projlibs=" |
---|
8075 | # replace "Cflags:" by "echo projcflags=" |
---|
8076 | # remove every line starting with <some word>: |
---|
8077 | pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile` |
---|
8078 | |
---|
8079 | # set projcflags and projlibs variables by running $pcfilemod |
---|
8080 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
---|
8081 | projcflags= |
---|
8082 | projlibs= |
---|
8083 | IFS="$save_IFS" |
---|
8084 | eval `sh -c "$pcfilemod"` |
---|
8085 | IFS=":" |
---|
8086 | |
---|
8087 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
---|
8088 | if test "${CYGPATH_W}" != "echo"; then |
---|
8089 | projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
---|
8090 | fi |
---|
8091 | BLAS_CFLAGS="$projcflags $BLAS_CFLAGS" |
---|
8092 | |
---|
8093 | # set LIBS variable |
---|
8094 | BLAS_LIBS="$projlibs $BLAS_LIBS" |
---|
8095 | |
---|
8096 | # remember that we have processed $pcfile |
---|
8097 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
---|
8098 | |
---|
8099 | done |
---|
8100 | IFS="$save_IFS" |
---|
8101 | |
---|
8102 | |
---|
8103 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
---|
8104 | # important is here again to obey the reverse order that has been setup before, |
---|
8105 | # since then libraries that are required by several others should be after these other libraries |
---|
8106 | pcfilesprocessed="" |
---|
8107 | |
---|
8108 | save_IFS="$IFS" |
---|
8109 | IFS=":" |
---|
8110 | for pcfile in $allpcifiles ; do |
---|
8111 | |
---|
8112 | # if $pcfile has been processed already, skip this round |
---|
8113 | if test "x$pcfilesprocessed" != x ; then |
---|
8114 | for pcfiledone in $pcfilesprocessed ; do |
---|
8115 | if test "$pcfiledone" = "$pcfile" ; then |
---|
8116 | continue 2 |
---|
8117 | fi |
---|
8118 | done |
---|
8119 | fi |
---|
8120 | |
---|
8121 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
---|
8122 | # replace "Libs:" by "echo projlibs=" |
---|
8123 | # replace "Cflags:" by "echo projcflags=" |
---|
8124 | # remove every line starting with <some word>: |
---|
8125 | pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile` |
---|
8126 | |
---|
8127 | # set projcflags and projlibs variables by running $pcfilemod |
---|
8128 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
---|
8129 | projcflags= |
---|
8130 | projlibs= |
---|
8131 | IFS="$save_IFS" |
---|
8132 | eval `sh -c "$pcfilemod"` |
---|
8133 | IFS=":" |
---|
8134 | |
---|
8135 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
---|
8136 | if test "${CYGPATH_W}" != "echo"; then |
---|
8137 | projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
---|
8138 | fi |
---|
8139 | BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED" |
---|
8140 | |
---|
8141 | # set LIBS variable |
---|
8142 | BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED" |
---|
8143 | |
---|
8144 | # remember that we have processed $pcfile |
---|
8145 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
---|
8146 | |
---|
8147 | done |
---|
8148 | IFS="$save_IFS" |
---|
8149 | |
---|
8150 | |
---|
8151 | # finish up |
---|
8152 | coin_has_blas=yes |
---|
8153 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
8154 | echo "${ECHO_T}yes" >&6 |
---|
8155 | |
---|
8156 | cat >>confdefs.h <<\_ACEOF |
---|
8157 | #define COIN_HAS_BLAS 1 |
---|
8158 | _ACEOF |
---|
8159 | |
---|
8160 | |
---|
8161 | # adjust linker flags for (i)cl compiler |
---|
8162 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
---|
8163 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
---|
8164 | # everything of the form "-lname" by "libname.lib", and |
---|
8165 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
---|
8166 | if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ; |
---|
8167 | then |
---|
8168 | BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
---|
8169 | BLAS_LIBS_INSTALLED=`echo " $BLAS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
---|
8170 | fi |
---|
8171 | |
---|
8172 | BLAS_PCREQUIRES="coinblas" |
---|
8173 | |
---|
8174 | LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES" |
---|
8175 | LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS" |
---|
8176 | LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS" |
---|
8177 | LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $LAPACKLIB_CFLAGS_INSTALLED" |
---|
8178 | LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $LAPACKLIB_LIBS_INSTALLED" |
---|
8179 | |
---|
8180 | |
---|
8181 | fi |
---|
8182 | |
---|
8183 | |
---|
8184 | |
---|
8185 | if test $coin_has_blas != notGiven && |
---|
8186 | test $coin_has_blas != skipping; then |
---|
8187 | COIN_HAS_BLAS_TRUE= |
---|
8188 | COIN_HAS_BLAS_FALSE='#' |
---|
8189 | else |
---|
8190 | COIN_HAS_BLAS_TRUE='#' |
---|
8191 | COIN_HAS_BLAS_FALSE= |
---|
8192 | fi |
---|
8193 | |
---|
8194 | |
---|
8195 | |
---|
8196 | fi |
---|
8197 | |
---|
8198 | else |
---|
8199 | echo "$as_me:$LINENO: result: $coin_has_blas" >&5 |
---|
8200 | echo "${ECHO_T}$coin_has_blas" >&6 |
---|
8201 | fi |
---|
8202 | |
---|
8203 | if test $coin_has_blas != skipping && |
---|
8204 | test $coin_has_blas != notGiven ; then |
---|
8205 | |
---|
8206 | cat >>confdefs.h <<\_ACEOF |
---|
8207 | #define COIN_HAS_BLAS 1 |
---|
8208 | _ACEOF |
---|
8209 | |
---|
8210 | |
---|
8211 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
---|
8212 | if test "${enable_interpackage_dependencies+set}" = set; then |
---|
8213 | enableval="$enable_interpackage_dependencies" |
---|
8214 | |
---|
8215 | else |
---|
8216 | enable_interpackage_dependencies=yes |
---|
8217 | fi; |
---|
8218 | |
---|
8219 | if test $enable_interpackage_dependencies = yes ; then |
---|
8220 | # construct dependencies variables from LIBS variables |
---|
8221 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
---|
8222 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
---|
8223 | # then remove everything of the form -xxx |
---|
8224 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
---|
8225 | BLAS_DEPENDENCIES=`echo " $BLAS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
---|
8226 | |
---|
8227 | LAPACKLIB_DEPENDENCIES=`echo " $LAPACKLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
---|
8228 | |
---|
8229 | fi |
---|
8230 | |
---|
8231 | if test 1 = 0 ; then #change this test to enable a bit of debugging output |
---|
8232 | if test -n "$BLAS_CFLAGS" ; then |
---|
8233 | { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5 |
---|
8234 | echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;} |
---|
8235 | fi |
---|
8236 | if test -n "$BLAS_LIBS" ; then |
---|
8237 | { echo "$as_me:$LINENO: Blas LIBS are $BLAS_LIBS" >&5 |
---|
8238 | echo "$as_me: Blas LIBS are $BLAS_LIBS" >&6;} |
---|
8239 | fi |
---|
8240 | if test -n "$BLAS_DEPENDENCIES" ; then |
---|
8241 | { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5 |
---|
8242 | echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;} |
---|
8243 | fi |
---|
8244 | if test -n "$BLAS_DATA" ; then |
---|
8245 | { echo "$as_me:$LINENO: Blas DATA is $BLAS_DATA" >&5 |
---|
8246 | echo "$as_me: Blas DATA is $BLAS_DATA" >&6;} |
---|
8247 | fi |
---|
8248 | if test -n "$BLAS_PCLIBS" ; then |
---|
8249 | { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5 |
---|
8250 | echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;} |
---|
8251 | fi |
---|
8252 | if test -n "$BLAS_PCREQUIRES" ; then |
---|
8253 | { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5 |
---|
8254 | echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;} |
---|
8255 | fi |
---|
8256 | |
---|
8257 | { echo "$as_me:$LINENO: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&5 |
---|
8258 | echo "$as_me: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&6;} |
---|
8259 | { echo "$as_me:$LINENO: LapackLib LIBS are $LAPACKLIB_LIBS" >&5 |
---|
8260 | echo "$as_me: LapackLib LIBS are $LAPACKLIB_LIBS" >&6;} |
---|
8261 | { echo "$as_me:$LINENO: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&5 |
---|
8262 | echo "$as_me: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&6;} |
---|
8263 | |
---|
8264 | fi |
---|
8265 | fi |
---|
8266 | |
---|
8267 | # Define the Makefile conditional |
---|
8268 | |
---|
8269 | |
---|
8270 | if test $coin_has_blas != notGiven && |
---|
8271 | test $coin_has_blas != skipping; then |
---|
8272 | COIN_HAS_BLAS_TRUE= |
---|
8273 | COIN_HAS_BLAS_FALSE='#' |
---|
8274 | else |
---|
8275 | COIN_HAS_BLAS_TRUE='#' |
---|
8276 | COIN_HAS_BLAS_FALSE= |
---|
8277 | fi |
---|
8278 | |
---|
8279 | |
---|
8280 | |
---|
8281 | |
---|
8282 | elif test "x$use_blas" != x && test "$use_blas" != no; then |
---|
8283 | coin_has_blas=yes |
---|
8284 | |
---|
8285 | |
---|
8286 | if test 0 = 0; then |
---|
8287 | COIN_HAS_BLAS_TRUE= |
---|
8288 | COIN_HAS_BLAS_FALSE='#' |
---|
8289 | else |
---|
8290 | COIN_HAS_BLAS_TRUE='#' |
---|
8291 | COIN_HAS_BLAS_FALSE= |
---|
8292 | fi |
---|
8293 | |
---|
8294 | |
---|
8295 | cat >>confdefs.h <<\_ACEOF |
---|
8296 | #define COIN_HAS_BLAS 1 |
---|
8297 | _ACEOF |
---|
8298 | |
---|
8299 | BLAS_LIBS="$use_blas" |
---|
8300 | BLAS_CFLAGS= |
---|
8301 | BLAS_DATA= |
---|
8302 | |
---|
8303 | |
---|
8304 | |
---|
8305 | |
---|
8306 | LAPACKLIB_PCLIBS="$BLAS_LIBS $LAPACKLIB_PCLIBS" |
---|
8307 | LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS" |
---|
8308 | LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS $LAPACKLIB_LIBS_INSTALLED" |
---|
8309 | |
---|
8310 | |
---|
8311 | else |
---|
8312 | coin_has_blas=no |
---|
8313 | |
---|
8314 | |
---|
8315 | if test 0 = 1; then |
---|
8316 | COIN_HAS_BLAS_TRUE= |
---|
8317 | COIN_HAS_BLAS_FALSE='#' |
---|
8318 | else |
---|
8319 | COIN_HAS_BLAS_TRUE='#' |
---|
8320 | COIN_HAS_BLAS_FALSE= |
---|
8321 | fi |
---|
8322 | |
---|
8323 | fi |
---|
8324 | |
---|
8325 | |
---|
8326 | |
---|
8327 | |
---|
8328 | |
---|
8329 | |
---|
8330 | |
---|
8331 | |
---|
8332 | if test $coin_has_blas != yes; then |
---|
8333 | { { echo "$as_me:$LINENO: error: Required package BLAS not found." >&5 |
---|
8334 | echo "$as_me: error: Required package BLAS not found." >&2;} |
---|
8335 | { (exit 1); exit 1; }; } |
---|
8336 | fi |
---|
8337 | |
---|
8338 | # FLIBS will be needed to link against this library, so add them to LAPACKLIB_PCLIBS |
---|
8339 | LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS" |
---|
8340 | |
---|
8341 | # Take care that optimization is disbled for DLAMCH.F |
---|
8342 | |
---|
8343 | if test "x$DLAMCH_FFLAGS" = x ; then |
---|
8344 | #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present) |
---|
8345 | case $F77 in |
---|
8346 | ifort* | */ifort* | IFORT* | */IFORT* ) |
---|
8347 | case $build in |
---|
8348 | *-cygwin* | *-mingw*) |
---|
8349 | DLAMCH_FFLAGS="$FFLAGS -Od" |
---|
8350 | ;; |
---|
8351 | *) |
---|
8352 | DLAMCH_FFLAGS="$FFLAGS -O0" |
---|
8353 | ;; |
---|
8354 | esac |
---|
8355 | ;; |
---|
8356 | compile_f2c*) |
---|
8357 | case "$CC" in |
---|
8358 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
8359 | DLAMCH_FFLAGS="$FFLAGS -Od" |
---|
8360 | ;; |
---|
8361 | *) |
---|
8362 | DLAMCH_FFLAGS="$FFLAGS -O0" |
---|
8363 | ;; |
---|
8364 | esac |
---|
8365 | ;; |
---|
8366 | *) |
---|
8367 | DLAMCH_FFLAGS="$FFLAGS -O0" |
---|
8368 | ;; |
---|
8369 | esac |
---|
8370 | fi |
---|
8371 | |
---|
8372 | |
---|
8373 | # Initialize autotools |
---|
8374 | { |
---|
8375 | |
---|
8376 | |
---|
8377 | |
---|
8378 | # START |
---|
8379 | |
---|
8380 | coin_disable_shared=no |
---|
8381 | # Test if force_shared has been set |
---|
8382 | if test "x" = xforce_shared; then |
---|
8383 | if test x$enable_shared = xno; then |
---|
8384 | { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 |
---|
8385 | echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} |
---|
8386 | { (exit 1); exit 1; }; } |
---|
8387 | fi |
---|
8388 | enable_shared=yes; |
---|
8389 | else |
---|
8390 | # On Cygwin and AIX, building DLLs doesn't work |
---|
8391 | case $build in |
---|
8392 | *-cygwin* | *-mingw*) |
---|
8393 | coin_disable_shared=yes |
---|
8394 | if test x"$enable_shared" = xyes; then |
---|
8395 | case "$CC" in |
---|
8396 | clang* ) |
---|
8397 | { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5 |
---|
8398 | echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;} |
---|
8399 | ;; |
---|
8400 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
8401 | { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5 |
---|
8402 | echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;} |
---|
8403 | ;; |
---|
8404 | *gcc*) |
---|
8405 | if test x"$enable_dependency_linking" = xyes; then |
---|
8406 | coin_disable_shared=no |
---|
8407 | else |
---|
8408 | { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5 |
---|
8409 | echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;} |
---|
8410 | fi |
---|
8411 | ;; |
---|
8412 | *) |
---|
8413 | { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5 |
---|
8414 | echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;} |
---|
8415 | ;; |
---|
8416 | esac |
---|
8417 | fi |
---|
8418 | ;; |
---|
8419 | *-aix*) |
---|
8420 | coin_disable_shared=yes |
---|
8421 | platform=AIX |
---|
8422 | if test x"$enable_shared" = xyes; then |
---|
8423 | { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5 |
---|
8424 | echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;} |
---|
8425 | fi |
---|
8426 | ;; |
---|
8427 | esac |
---|
8428 | fi |
---|
8429 | if test x"$coin_disable_shared" = xyes; then |
---|
8430 | if test x"$enable_shared" = xyes; then |
---|
8431 | : |
---|
8432 | else |
---|
8433 | # we don't disable shared, because it was not selected anyway |
---|
8434 | coin_disable_shared=no |
---|
8435 | fi |
---|
8436 | enable_shared=no |
---|
8437 | fi |
---|
8438 | # By default, we only want the shared objects to be compiled |
---|
8439 | # Check whether --enable-static or --disable-static was given. |
---|
8440 | if test "${enable_static+set}" = set; then |
---|
8441 | enableval="$enable_static" |
---|
8442 | p=${PACKAGE-default} |
---|
8443 | case $enableval in |
---|
8444 | yes) enable_static=yes ;; |
---|
8445 | no) enable_static=no ;; |
---|
8446 | *) |
---|
8447 | enable_static=no |
---|
8448 | # Look at the argument we got. We use all the common list separators. |
---|
8449 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
8450 | for pkg in $enableval; do |
---|
8451 | IFS="$lt_save_ifs" |
---|
8452 | if test "X$pkg" = "X$p"; then |
---|
8453 | enable_static=yes |
---|
8454 | fi |
---|
8455 | done |
---|
8456 | IFS="$lt_save_ifs" |
---|
8457 | ;; |
---|
8458 | esac |
---|
8459 | else |
---|
8460 | enable_static=no |
---|
8461 | fi; |
---|
8462 | |
---|
8463 | |
---|
8464 | |
---|
8465 | |
---|
8466 | # Initialize automake |
---|
8467 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
8468 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
8469 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
8470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8471 | else |
---|
8472 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
8473 | then ac_cv_prog_egrep='grep -E' |
---|
8474 | else ac_cv_prog_egrep='egrep' |
---|
8475 | fi |
---|
8476 | fi |
---|
8477 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
8478 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
8479 | EGREP=$ac_cv_prog_egrep |
---|
8480 | |
---|
8481 | |
---|
8482 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
8483 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
8484 | LN_S=$as_ln_s |
---|
8485 | if test "$LN_S" = "ln -s"; then |
---|
8486 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
8487 | echo "${ECHO_T}yes" >&6 |
---|
8488 | else |
---|
8489 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
8490 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
8491 | fi |
---|
8492 | |
---|
8493 | am__api_version="1.9" |
---|
8494 | # Find a good install program. We prefer a C program (faster), |
---|
8495 | # so one script is as good as another. But avoid the broken or |
---|
8496 | # incompatible versions: |
---|
8497 | # SysV /etc/install, /usr/sbin/install |
---|
8498 | # SunOS /usr/etc/install |
---|
8499 | # IRIX /sbin/install |
---|
8500 | # AIX /bin/install |
---|
8501 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
8502 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
8503 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
8504 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
8505 | # OS/2's system install, which has a completely different semantic |
---|
8506 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
8507 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
8508 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
8509 | if test -z "$INSTALL"; then |
---|
8510 | if test "${ac_cv_path_install+set}" = set; then |
---|
8511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8512 | else |
---|
8513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8514 | for as_dir in $PATH |
---|
8515 | do |
---|
8516 | IFS=$as_save_IFS |
---|
8517 | test -z "$as_dir" && as_dir=. |
---|
8518 | # Account for people who put trailing slashes in PATH elements. |
---|
8519 | case $as_dir/ in |
---|
8520 | ./ | .// | /cC/* | \ |
---|
8521 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
8522 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
8523 | /usr/ucb/* ) ;; |
---|
8524 | *) |
---|
8525 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
8526 | # Don't use installbsd from OSF since it installs stuff as root |
---|
8527 | # by default. |
---|
8528 | for ac_prog in ginstall scoinst install; do |
---|
8529 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8530 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
8531 | if test $ac_prog = install && |
---|
8532 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
8533 | # AIX install. It has an incompatible calling convention. |
---|
8534 | : |
---|
8535 | elif test $ac_prog = install && |
---|
8536 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
8537 | # program-specific install script used by HP pwplus--don't use. |
---|
8538 | : |
---|
8539 | else |
---|
8540 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
8541 | break 3 |
---|
8542 | fi |
---|
8543 | fi |
---|
8544 | done |
---|
8545 | done |
---|
8546 | ;; |
---|
8547 | esac |
---|
8548 | done |
---|
8549 | |
---|
8550 | |
---|
8551 | fi |
---|
8552 | if test "${ac_cv_path_install+set}" = set; then |
---|
8553 | INSTALL=$ac_cv_path_install |
---|
8554 | else |
---|
8555 | # As a last resort, use the slow shell script. We don't cache a |
---|
8556 | # path for INSTALL within a source directory, because that will |
---|
8557 | # break other packages using the cache if that directory is |
---|
8558 | # removed, or if the path is relative. |
---|
8559 | INSTALL=$ac_install_sh |
---|
8560 | fi |
---|
8561 | fi |
---|
8562 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
8563 | echo "${ECHO_T}$INSTALL" >&6 |
---|
8564 | |
---|
8565 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
8566 | # It thinks the first close brace ends the variable substitution. |
---|
8567 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
8568 | |
---|
8569 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
8570 | |
---|
8571 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
8572 | |
---|
8573 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
8574 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
8575 | # Just in case |
---|
8576 | sleep 1 |
---|
8577 | echo timestamp > conftest.file |
---|
8578 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
8579 | # arguments. Must try -L first in case configure is actually a |
---|
8580 | # symlink; some systems play weird games with the mod time of symlinks |
---|
8581 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
8582 | # directory). |
---|
8583 | if ( |
---|
8584 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
8585 | if test "$*" = "X"; then |
---|
8586 | # -L didn't work. |
---|
8587 | set X `ls -t $srcdir/configure conftest.file` |
---|
8588 | fi |
---|
8589 | rm -f conftest.file |
---|
8590 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
8591 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
8592 | |
---|
8593 | # If neither matched, then we have a broken ls. This can happen |
---|
8594 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
8595 | # broken ls alias from the environment. This has actually |
---|
8596 | # happened. Such a system could not be considered "sane". |
---|
8597 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
8598 | alias in your environment" >&5 |
---|
8599 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
8600 | alias in your environment" >&2;} |
---|
8601 | { (exit 1); exit 1; }; } |
---|
8602 | fi |
---|
8603 | |
---|
8604 | test "$2" = conftest.file |
---|
8605 | ) |
---|
8606 | then |
---|
8607 | # Ok. |
---|
8608 | : |
---|
8609 | else |
---|
8610 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
8611 | Check your system clock" >&5 |
---|
8612 | echo "$as_me: error: newly created file is older than distributed files! |
---|
8613 | Check your system clock" >&2;} |
---|
8614 | { (exit 1); exit 1; }; } |
---|
8615 | fi |
---|
8616 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
8617 | echo "${ECHO_T}yes" >&6 |
---|
8618 | test "$program_prefix" != NONE && |
---|
8619 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
8620 | # Use a double $ so make ignores it. |
---|
8621 | test "$program_suffix" != NONE && |
---|
8622 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
8623 | # Double any \ or $. echo might interpret backslashes. |
---|
8624 | # By default was `s,x,x', remove it if useless. |
---|
8625 | cat <<\_ACEOF >conftest.sed |
---|
8626 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
8627 | _ACEOF |
---|
8628 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
8629 | rm conftest.sed |
---|
8630 | |
---|
8631 | # expand $ac_aux_dir to an absolute path |
---|
8632 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
8633 | |
---|
8634 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
8635 | # Use eval to expand $SHELL |
---|
8636 | if eval "$MISSING --run true"; then |
---|
8637 | am_missing_run="$MISSING --run " |
---|
8638 | else |
---|
8639 | am_missing_run= |
---|
8640 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
8641 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
8642 | fi |
---|
8643 | |
---|
8644 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
8645 | # We used to keeping the `.' as first argument, in order to |
---|
8646 | # allow $(mkdir_p) to be used without argument. As in |
---|
8647 | # $(mkdir_p) $(somedir) |
---|
8648 | # where $(somedir) is conditionally defined. However this is wrong |
---|
8649 | # for two reasons: |
---|
8650 | # 1. if the package is installed by a user who cannot write `.' |
---|
8651 | # make install will fail, |
---|
8652 | # 2. the above comment should most certainly read |
---|
8653 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
8654 | # so it does not work when $(somedir) is undefined and |
---|
8655 | # $(DESTDIR) is not. |
---|
8656 | # To support the latter case, we have to write |
---|
8657 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
8658 | # so the `.' trick is pointless. |
---|
8659 | mkdir_p='mkdir -p --' |
---|
8660 | else |
---|
8661 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
8662 | # recognize any option. It will interpret all options as |
---|
8663 | # directories to create, and then abort because `.' already |
---|
8664 | # exists. |
---|
8665 | for d in ./-p ./--version; |
---|
8666 | do |
---|
8667 | test -d $d && rmdir $d |
---|
8668 | done |
---|
8669 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
8670 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
8671 | mkdir_p='$(mkinstalldirs)' |
---|
8672 | else |
---|
8673 | mkdir_p='$(install_sh) -d' |
---|
8674 | fi |
---|
8675 | fi |
---|
8676 | |
---|
8677 | for ac_prog in gawk mawk nawk awk |
---|
8678 | do |
---|
8679 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
8680 | set dummy $ac_prog; ac_word=$2 |
---|
8681 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
8682 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
8683 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
8684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8685 | else |
---|
8686 | if test -n "$AWK"; then |
---|
8687 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
8688 | else |
---|
8689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8690 | for as_dir in $PATH |
---|
8691 | do |
---|
8692 | IFS=$as_save_IFS |
---|
8693 | test -z "$as_dir" && as_dir=. |
---|
8694 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8695 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8696 | ac_cv_prog_AWK="$ac_prog" |
---|
8697 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8698 | break 2 |
---|
8699 | fi |
---|
8700 | done |
---|
8701 | done |
---|
8702 | |
---|
8703 | fi |
---|
8704 | fi |
---|
8705 | AWK=$ac_cv_prog_AWK |
---|
8706 | if test -n "$AWK"; then |
---|
8707 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
8708 | echo "${ECHO_T}$AWK" >&6 |
---|
8709 | else |
---|
8710 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8711 | echo "${ECHO_T}no" >&6 |
---|
8712 | fi |
---|
8713 | |
---|
8714 | test -n "$AWK" && break |
---|
8715 | done |
---|
8716 | |
---|
8717 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
8718 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
8719 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
8720 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
8721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8722 | else |
---|
8723 | cat >conftest.make <<\_ACEOF |
---|
8724 | all: |
---|
8725 | @echo 'ac_maketemp="$(MAKE)"' |
---|
8726 | _ACEOF |
---|
8727 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
8728 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
8729 | if test -n "$ac_maketemp"; then |
---|
8730 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
8731 | else |
---|
8732 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
8733 | fi |
---|
8734 | rm -f conftest.make |
---|
8735 | fi |
---|
8736 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
8737 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
8738 | echo "${ECHO_T}yes" >&6 |
---|
8739 | SET_MAKE= |
---|
8740 | else |
---|
8741 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8742 | echo "${ECHO_T}no" >&6 |
---|
8743 | SET_MAKE="MAKE=${MAKE-make}" |
---|
8744 | fi |
---|
8745 | |
---|
8746 | rm -rf .tst 2>/dev/null |
---|
8747 | mkdir .tst 2>/dev/null |
---|
8748 | if test -d .tst; then |
---|
8749 | am__leading_dot=. |
---|
8750 | else |
---|
8751 | am__leading_dot=_ |
---|
8752 | fi |
---|
8753 | rmdir .tst 2>/dev/null |
---|
8754 | |
---|
8755 | DEPDIR="${am__leading_dot}deps" |
---|
8756 | |
---|
8757 | ac_config_commands="$ac_config_commands depfiles" |
---|
8758 | |
---|
8759 | |
---|
8760 | am_make=${MAKE-make} |
---|
8761 | cat > confinc << 'END' |
---|
8762 | am__doit: |
---|
8763 | @echo done |
---|
8764 | .PHONY: am__doit |
---|
8765 | END |
---|
8766 | # If we don't find an include directive, just comment out the code. |
---|
8767 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
8768 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
8769 | am__include="#" |
---|
8770 | am__quote= |
---|
8771 | _am_result=none |
---|
8772 | # First try GNU make style include. |
---|
8773 | echo "include confinc" > confmf |
---|
8774 | # We grep out `Entering directory' and `Leaving directory' |
---|
8775 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
8776 | # In particular we don't look at `^make:' because GNU make might |
---|
8777 | # be invoked under some other name (usually "gmake"), in which |
---|
8778 | # case it prints its new name instead of `make'. |
---|
8779 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
8780 | am__include=include |
---|
8781 | am__quote= |
---|
8782 | _am_result=GNU |
---|
8783 | fi |
---|
8784 | # Now try BSD make style include. |
---|
8785 | if test "$am__include" = "#"; then |
---|
8786 | echo '.include "confinc"' > confmf |
---|
8787 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
8788 | am__include=.include |
---|
8789 | am__quote="\"" |
---|
8790 | _am_result=BSD |
---|
8791 | fi |
---|
8792 | fi |
---|
8793 | |
---|
8794 | |
---|
8795 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
8796 | echo "${ECHO_T}$_am_result" >&6 |
---|
8797 | rm -f confinc confmf |
---|
8798 | |
---|
8799 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
8800 | if test "${enable_dependency_tracking+set}" = set; then |
---|
8801 | enableval="$enable_dependency_tracking" |
---|
8802 | |
---|
8803 | fi; |
---|
8804 | if test "x$enable_dependency_tracking" != xno; then |
---|
8805 | am_depcomp="$ac_aux_dir/depcomp" |
---|
8806 | AMDEPBACKSLASH='\' |
---|
8807 | fi |
---|
8808 | |
---|
8809 | |
---|
8810 | if test "x$enable_dependency_tracking" != xno; then |
---|
8811 | AMDEP_TRUE= |
---|
8812 | AMDEP_FALSE='#' |
---|
8813 | else |
---|
8814 | AMDEP_TRUE='#' |
---|
8815 | AMDEP_FALSE= |
---|
8816 | fi |
---|
8817 | |
---|
8818 | |
---|
8819 | |
---|
8820 | |
---|
8821 | |
---|
8822 | |
---|
8823 | # AC_MSG_NOTICE([Beginning automake initialisation.]) |
---|
8824 | # Stuff for automake |
---|
8825 | # test to see if srcdir already configured |
---|
8826 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
8827 | test -f $srcdir/config.status; then |
---|
8828 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
8829 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
8830 | { (exit 1); exit 1; }; } |
---|
8831 | fi |
---|
8832 | |
---|
8833 | # test whether we have cygpath |
---|
8834 | if test -z "$CYGPATH_W"; then |
---|
8835 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
8836 | CYGPATH_W='cygpath -w' |
---|
8837 | else |
---|
8838 | CYGPATH_W=echo |
---|
8839 | fi |
---|
8840 | fi |
---|
8841 | |
---|
8842 | |
---|
8843 | # Define the identity of the package. |
---|
8844 | PACKAGE='thirdpartylapack' |
---|
8845 | VERSION='1.4' |
---|
8846 | |
---|
8847 | |
---|
8848 | cat >>confdefs.h <<_ACEOF |
---|
8849 | #define PACKAGE "$PACKAGE" |
---|
8850 | _ACEOF |
---|
8851 | |
---|
8852 | |
---|
8853 | cat >>confdefs.h <<_ACEOF |
---|
8854 | #define VERSION "$VERSION" |
---|
8855 | _ACEOF |
---|
8856 | |
---|
8857 | # Some tools Automake needs. |
---|
8858 | |
---|
8859 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
8860 | |
---|
8861 | |
---|
8862 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
8863 | |
---|
8864 | |
---|
8865 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
8866 | |
---|
8867 | |
---|
8868 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
8869 | |
---|
8870 | |
---|
8871 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
8872 | |
---|
8873 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
8874 | |
---|
8875 | # Installed binaries are usually stripped using `strip' when the user |
---|
8876 | # run `make install-strip'. However `strip' might not be the right |
---|
8877 | # tool to use in cross-compilation environments, therefore Automake |
---|
8878 | # will honor the `STRIP' environment variable to overrule this program. |
---|
8879 | if test "$cross_compiling" != no; then |
---|
8880 | if test -n "$ac_tool_prefix"; then |
---|
8881 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
8882 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
8883 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
8884 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
8885 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
8886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8887 | else |
---|
8888 | if test -n "$STRIP"; then |
---|
8889 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
8890 | else |
---|
8891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8892 | for as_dir in $PATH |
---|
8893 | do |
---|
8894 | IFS=$as_save_IFS |
---|
8895 | test -z "$as_dir" && as_dir=. |
---|
8896 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8897 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8898 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
8899 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8900 | break 2 |
---|
8901 | fi |
---|
8902 | done |
---|
8903 | done |
---|
8904 | |
---|
8905 | fi |
---|
8906 | fi |
---|
8907 | STRIP=$ac_cv_prog_STRIP |
---|
8908 | if test -n "$STRIP"; then |
---|
8909 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
8910 | echo "${ECHO_T}$STRIP" >&6 |
---|
8911 | else |
---|
8912 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8913 | echo "${ECHO_T}no" >&6 |
---|
8914 | fi |
---|
8915 | |
---|
8916 | fi |
---|
8917 | if test -z "$ac_cv_prog_STRIP"; then |
---|
8918 | ac_ct_STRIP=$STRIP |
---|
8919 | # Extract the first word of "strip", so it can be a program name with args. |
---|
8920 | set dummy strip; ac_word=$2 |
---|
8921 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
8922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
8923 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
8924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8925 | else |
---|
8926 | if test -n "$ac_ct_STRIP"; then |
---|
8927 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
8928 | else |
---|
8929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8930 | for as_dir in $PATH |
---|
8931 | do |
---|
8932 | IFS=$as_save_IFS |
---|
8933 | test -z "$as_dir" && as_dir=. |
---|
8934 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8935 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8936 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
8937 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8938 | break 2 |
---|
8939 | fi |
---|
8940 | done |
---|
8941 | done |
---|
8942 | |
---|
8943 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
8944 | fi |
---|
8945 | fi |
---|
8946 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
8947 | if test -n "$ac_ct_STRIP"; then |
---|
8948 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
8949 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
8950 | else |
---|
8951 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8952 | echo "${ECHO_T}no" >&6 |
---|
8953 | fi |
---|
8954 | |
---|
8955 | STRIP=$ac_ct_STRIP |
---|
8956 | else |
---|
8957 | STRIP="$ac_cv_prog_STRIP" |
---|
8958 | fi |
---|
8959 | |
---|
8960 | fi |
---|
8961 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
8962 | |
---|
8963 | # We need awk for the "check" target. The system "awk" is bad on |
---|
8964 | # some platforms. |
---|
8965 | # Always define AMTAR for backward compatibility. |
---|
8966 | |
---|
8967 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
8968 | |
---|
8969 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
8970 | |
---|
8971 | |
---|
8972 | |
---|
8973 | |
---|
8974 | depcc="$CC" am_compiler_list= |
---|
8975 | |
---|
8976 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
8977 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
8978 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
8979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8980 | else |
---|
8981 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
8982 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
8983 | # making bogus files that we don't know about and never remove. For |
---|
8984 | # instance it was reported that on HP-UX the gcc test will end up |
---|
8985 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
8986 | # in D'. |
---|
8987 | mkdir conftest.dir |
---|
8988 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
8989 | # using a relative directory. |
---|
8990 | cp "$am_depcomp" conftest.dir |
---|
8991 | cd conftest.dir |
---|
8992 | # We will build objects and dependencies in a subdirectory because |
---|
8993 | # it helps to detect inapplicable dependency modes. For instance |
---|
8994 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
8995 | # side effect of compilation, but ICC will put the dependencies in |
---|
8996 | # the current directory while Tru64 will put them in the object |
---|
8997 | # directory. |
---|
8998 | mkdir sub |
---|
8999 | |
---|
9000 | am_cv_CC_dependencies_compiler_type=none |
---|
9001 | if test "$am_compiler_list" = ""; then |
---|
9002 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
9003 | fi |
---|
9004 | for depmode in $am_compiler_list; do |
---|
9005 | # Setup a source with many dependencies, because some compilers |
---|
9006 | # like to wrap large dependency lists on column 80 (with \), and |
---|
9007 | # we should not choose a depcomp mode which is confused by this. |
---|
9008 | # |
---|
9009 | # We need to recreate these files for each test, as the compiler may |
---|
9010 | # overwrite some of them when testing with obscure command lines. |
---|
9011 | # This happens at least with the AIX C compiler. |
---|
9012 | : > sub/conftest.c |
---|
9013 | for i in 1 2 3 4 5 6; do |
---|
9014 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
9015 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
9016 | # Solaris 8's {/usr,}/bin/sh. |
---|
9017 | touch sub/conftst$i.h |
---|
9018 | done |
---|
9019 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
9020 | |
---|
9021 | case $depmode in |
---|
9022 | nosideeffect) |
---|
9023 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
9024 | # only be used when explicitly requested |
---|
9025 | if test "x$enable_dependency_tracking" = xyes; then |
---|
9026 | continue |
---|
9027 | else |
---|
9028 | break |
---|
9029 | fi |
---|
9030 | ;; |
---|
9031 | none) break ;; |
---|
9032 | esac |
---|
9033 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
9034 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
9035 | # handle `-M -o', and we need to detect this. |
---|
9036 | if depmode=$depmode \ |
---|
9037 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
9038 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
9039 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
9040 | >/dev/null 2>conftest.err && |
---|
9041 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
9042 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
9043 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
9044 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
9045 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
9046 | # that says an option was ignored or not supported. |
---|
9047 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
9048 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
9049 | # The diagnosis changed in icc 8.0: |
---|
9050 | # icc: Command line remark: option '-MP' not supported |
---|
9051 | if (grep 'ignoring option' conftest.err || |
---|
9052 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
9053 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
9054 | break |
---|
9055 | fi |
---|
9056 | fi |
---|
9057 | done |
---|
9058 | |
---|
9059 | cd .. |
---|
9060 | rm -rf conftest.dir |
---|
9061 | else |
---|
9062 | am_cv_CC_dependencies_compiler_type=none |
---|
9063 | fi |
---|
9064 | |
---|
9065 | fi |
---|
9066 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
9067 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
9068 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
9069 | |
---|
9070 | |
---|
9071 | |
---|
9072 | if |
---|
9073 | test "x$enable_dependency_tracking" != xno \ |
---|
9074 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
9075 | am__fastdepCC_TRUE= |
---|
9076 | am__fastdepCC_FALSE='#' |
---|
9077 | else |
---|
9078 | am__fastdepCC_TRUE='#' |
---|
9079 | am__fastdepCC_FALSE= |
---|
9080 | fi |
---|
9081 | |
---|
9082 | |
---|
9083 | |
---|
9084 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
9085 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
---|
9086 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
9087 | if test "${enable_maintainer_mode+set}" = set; then |
---|
9088 | enableval="$enable_maintainer_mode" |
---|
9089 | USE_MAINTAINER_MODE=$enableval |
---|
9090 | else |
---|
9091 | USE_MAINTAINER_MODE=no |
---|
9092 | fi; |
---|
9093 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
---|
9094 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
---|
9095 | |
---|
9096 | |
---|
9097 | if test $USE_MAINTAINER_MODE = yes; then |
---|
9098 | MAINTAINER_MODE_TRUE= |
---|
9099 | MAINTAINER_MODE_FALSE='#' |
---|
9100 | else |
---|
9101 | MAINTAINER_MODE_TRUE='#' |
---|
9102 | MAINTAINER_MODE_FALSE= |
---|
9103 | fi |
---|
9104 | |
---|
9105 | MAINT=$MAINTAINER_MODE_TRUE |
---|
9106 | |
---|
9107 | |
---|
9108 | |
---|
9109 | coin_have_externals=no |
---|
9110 | if test "$enable_maintainer_mode" = yes; then |
---|
9111 | |
---|
9112 | # If maintainer mode is chosen, we make sure that the correct versions |
---|
9113 | # of the tools are used, and that we know where libtool.m4 is (to |
---|
9114 | # recreate acinclude.m4) |
---|
9115 | |
---|
9116 | |
---|
9117 | LIBTOOLM4= |
---|
9118 | # Normally, $HOME |
---|
9119 | AUTOTOOLS_DFLT=$HOME |
---|
9120 | |
---|
9121 | echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 |
---|
9122 | echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 |
---|
9123 | if test "${ac_cv_use_correct_autotools+set}" = set; then |
---|
9124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9125 | else |
---|
9126 | ac_cv_use_correct_autotools=check |
---|
9127 | fi |
---|
9128 | echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 |
---|
9129 | echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 |
---|
9130 | |
---|
9131 | if test $ac_cv_use_correct_autotools = check; then |
---|
9132 | ac_cv_use_correct_autotools=yes |
---|
9133 | # Check if we have autoconf |
---|
9134 | # Extract the first word of "autoconf", so it can be a program name with args. |
---|
9135 | set dummy autoconf; ac_word=$2 |
---|
9136 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
9137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
9138 | if test "${ac_cv_prog_have_autoconf+set}" = set; then |
---|
9139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9140 | else |
---|
9141 | if test -n "$have_autoconf"; then |
---|
9142 | ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. |
---|
9143 | else |
---|
9144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9145 | for as_dir in $PATH |
---|
9146 | do |
---|
9147 | IFS=$as_save_IFS |
---|
9148 | test -z "$as_dir" && as_dir=. |
---|
9149 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
9150 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
9151 | ac_cv_prog_have_autoconf="yes" |
---|
9152 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
9153 | break 2 |
---|
9154 | fi |
---|
9155 | done |
---|
9156 | done |
---|
9157 | |
---|
9158 | test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" |
---|
9159 | fi |
---|
9160 | fi |
---|
9161 | have_autoconf=$ac_cv_prog_have_autoconf |
---|
9162 | if test -n "$have_autoconf"; then |
---|
9163 | echo "$as_me:$LINENO: result: $have_autoconf" >&5 |
---|
9164 | echo "${ECHO_T}$have_autoconf" >&6 |
---|
9165 | else |
---|
9166 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9167 | echo "${ECHO_T}no" >&6 |
---|
9168 | fi |
---|
9169 | |
---|
9170 | if test $have_autoconf = no; then |
---|
9171 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 |
---|
9172 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} |
---|
9173 | { (exit 1); exit 1; }; } |
---|
9174 | fi |
---|
9175 | |
---|
9176 | # Check whether autoconf is the correct version |
---|
9177 | correct_version='2.59' |
---|
9178 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
9179 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 |
---|
9180 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 |
---|
9181 | autoconf --version > confauto.out 2>&1 |
---|
9182 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
9183 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9184 | echo "${ECHO_T}yes" >&6 |
---|
9185 | else |
---|
9186 | rm -f confauto.out |
---|
9187 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9188 | echo "${ECHO_T}no" >&6 |
---|
9189 | { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 |
---|
9190 | echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} |
---|
9191 | { (exit 1); exit 1; }; } |
---|
9192 | fi |
---|
9193 | rm -f confauto.out |
---|
9194 | |
---|
9195 | # Check if the executable autoconf is picked up from the correct location |
---|
9196 | echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 |
---|
9197 | echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 |
---|
9198 | autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` |
---|
9199 | autoconf_dir=`cd $autoconf_dir; pwd` |
---|
9200 | if test x$AUTOTOOLS_DIR = x; then |
---|
9201 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
9202 | else |
---|
9203 | want_dir=$AUTOTOOLS_DIR/bin |
---|
9204 | fi |
---|
9205 | if test $autoconf_dir = `cd $want_dir; pwd`; then |
---|
9206 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9207 | echo "${ECHO_T}yes" >&6 |
---|
9208 | else |
---|
9209 | rm -f confauto.out |
---|
9210 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9211 | echo "${ECHO_T}no" >&6 |
---|
9212 | { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
9213 | echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
9214 | { (exit 1); exit 1; }; } |
---|
9215 | fi |
---|
9216 | |
---|
9217 | # Check if we have automake |
---|
9218 | # Extract the first word of "automake", so it can be a program name with args. |
---|
9219 | set dummy automake; ac_word=$2 |
---|
9220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
9221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
9222 | if test "${ac_cv_prog_have_automake+set}" = set; then |
---|
9223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9224 | else |
---|
9225 | if test -n "$have_automake"; then |
---|
9226 | ac_cv_prog_have_automake="$have_automake" # Let the user override the test. |
---|
9227 | else |
---|
9228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9229 | for as_dir in $PATH |
---|
9230 | do |
---|
9231 | IFS=$as_save_IFS |
---|
9232 | test -z "$as_dir" && as_dir=. |
---|
9233 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
9234 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
9235 | ac_cv_prog_have_automake="yes" |
---|
9236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
9237 | break 2 |
---|
9238 | fi |
---|
9239 | done |
---|
9240 | done |
---|
9241 | |
---|
9242 | test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" |
---|
9243 | fi |
---|
9244 | fi |
---|
9245 | have_automake=$ac_cv_prog_have_automake |
---|
9246 | if test -n "$have_automake"; then |
---|
9247 | echo "$as_me:$LINENO: result: $have_automake" >&5 |
---|
9248 | echo "${ECHO_T}$have_automake" >&6 |
---|
9249 | else |
---|
9250 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9251 | echo "${ECHO_T}no" >&6 |
---|
9252 | fi |
---|
9253 | |
---|
9254 | if test $have_automake = no; then |
---|
9255 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 |
---|
9256 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} |
---|
9257 | { (exit 1); exit 1; }; } |
---|
9258 | fi |
---|
9259 | |
---|
9260 | # Check whether automake is the correct version |
---|
9261 | correct_version='1.9.6' |
---|
9262 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
9263 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 |
---|
9264 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 |
---|
9265 | automake --version > confauto.out 2>&1 |
---|
9266 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
9267 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9268 | echo "${ECHO_T}yes" >&6 |
---|
9269 | else |
---|
9270 | rm -f confauto.out |
---|
9271 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9272 | echo "${ECHO_T}no" >&6 |
---|
9273 | { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 |
---|
9274 | echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} |
---|
9275 | { (exit 1); exit 1; }; } |
---|
9276 | fi |
---|
9277 | rm -f confauto.out |
---|
9278 | |
---|
9279 | # Check if the executable automake is picked up from the correct location |
---|
9280 | echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 |
---|
9281 | echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 |
---|
9282 | automake_dir=`which automake | sed -e 's=/automake=='` |
---|
9283 | automake_dir=`cd $automake_dir; pwd` |
---|
9284 | if test x$AUTOTOOLS_DIR = x; then |
---|
9285 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
9286 | else |
---|
9287 | want_dir=$AUTOTOOLS_DIR/bin |
---|
9288 | fi |
---|
9289 | if test $automake_dir = `cd $want_dir; pwd`; then |
---|
9290 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9291 | echo "${ECHO_T}yes" >&6 |
---|
9292 | else |
---|
9293 | rm -f confauto.out |
---|
9294 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9295 | echo "${ECHO_T}no" >&6 |
---|
9296 | { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
9297 | echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
9298 | { (exit 1); exit 1; }; } |
---|
9299 | fi |
---|
9300 | |
---|
9301 | # Check if this is the correct version of libtool (with escaped dots) |
---|
9302 | if test x$AUTOTOOLS_DIR = x; then |
---|
9303 | want_dir=$AUTOTOOLS_DFLT/share |
---|
9304 | else |
---|
9305 | want_dir=$AUTOTOOLS_DIR/share |
---|
9306 | fi |
---|
9307 | correct_version='1.5.22' |
---|
9308 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
9309 | if test -r $want_dir/libtool/ltmain.sh; then |
---|
9310 | have_ltmain=yes |
---|
9311 | : |
---|
9312 | else |
---|
9313 | have_ltmain=no |
---|
9314 | : |
---|
9315 | fi |
---|
9316 | |
---|
9317 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 |
---|
9318 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 |
---|
9319 | if test $have_ltmain = yes; then |
---|
9320 | if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then |
---|
9321 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9322 | echo "${ECHO_T}yes" >&6 |
---|
9323 | else |
---|
9324 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9325 | echo "${ECHO_T}no" >&6 |
---|
9326 | { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 |
---|
9327 | echo "$as_me: error: You don't have the correct version of libtool." >&2;} |
---|
9328 | { (exit 1); exit 1; }; } |
---|
9329 | fi |
---|
9330 | else |
---|
9331 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9332 | echo "${ECHO_T}no" >&6 |
---|
9333 | { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 |
---|
9334 | echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} |
---|
9335 | { (exit 1); exit 1; }; } |
---|
9336 | fi |
---|
9337 | fi |
---|
9338 | |
---|
9339 | # Check if we can find the libtool file |
---|
9340 | if test x$AUTOTOOLS_DIR = x; then |
---|
9341 | want_dir=$AUTOTOOLS_DFLT/share |
---|
9342 | else |
---|
9343 | want_dir=$AUTOTOOLS_DIR/share |
---|
9344 | fi |
---|
9345 | if test -r $want_dir/aclocal/libtool.m4; then |
---|
9346 | LIBTOOLM4="$want_dir/aclocal/libtool.m4" |
---|
9347 | : |
---|
9348 | else |
---|
9349 | { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 |
---|
9350 | echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} |
---|
9351 | { (exit 1); exit 1; }; } |
---|
9352 | : |
---|
9353 | fi |
---|
9354 | |
---|
9355 | |
---|
9356 | # Check if we have an Dependencies file |
---|
9357 | if test -r $srcdir/Dependencies; then |
---|
9358 | coin_have_externals=yes |
---|
9359 | fi |
---|
9360 | # Check if subversion is installed and understands https |
---|
9361 | # Extract the first word of "svn", so it can be a program name with args. |
---|
9362 | set dummy svn; ac_word=$2 |
---|
9363 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
9364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
9365 | if test "${ac_cv_prog_have_svn+set}" = set; then |
---|
9366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9367 | else |
---|
9368 | if test -n "$have_svn"; then |
---|
9369 | ac_cv_prog_have_svn="$have_svn" # Let the user override the test. |
---|
9370 | else |
---|
9371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9372 | for as_dir in $PATH |
---|
9373 | do |
---|
9374 | IFS=$as_save_IFS |
---|
9375 | test -z "$as_dir" && as_dir=. |
---|
9376 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
9377 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
9378 | ac_cv_prog_have_svn="yes" |
---|
9379 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
9380 | break 2 |
---|
9381 | fi |
---|
9382 | done |
---|
9383 | done |
---|
9384 | |
---|
9385 | test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" |
---|
9386 | fi |
---|
9387 | fi |
---|
9388 | have_svn=$ac_cv_prog_have_svn |
---|
9389 | if test -n "$have_svn"; then |
---|
9390 | echo "$as_me:$LINENO: result: $have_svn" >&5 |
---|
9391 | echo "${ECHO_T}$have_svn" >&6 |
---|
9392 | else |
---|
9393 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9394 | echo "${ECHO_T}no" >&6 |
---|
9395 | fi |
---|
9396 | |
---|
9397 | if test x$have_svn = xyes; then |
---|
9398 | echo "$as_me:$LINENO: checking whether svn understands https" >&5 |
---|
9399 | echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 |
---|
9400 | if test "${ac_cv_svn_understands_https+set}" = set; then |
---|
9401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9402 | else |
---|
9403 | svn --version > confauto.out 2>&1 |
---|
9404 | if $EGREP https confauto.out >/dev/null 2>&1; then |
---|
9405 | ac_cv_svn_understands_https=yes |
---|
9406 | else |
---|
9407 | ac_cv_svn_understands_https=no |
---|
9408 | have_svn=no |
---|
9409 | ac_cv_prog_have_svn=no |
---|
9410 | fi |
---|
9411 | rm -f confauto.out |
---|
9412 | fi |
---|
9413 | echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 |
---|
9414 | echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 |
---|
9415 | fi |
---|
9416 | |
---|
9417 | # Find the location of the BuildTools directory |
---|
9418 | BUILDTOOLSDIR= |
---|
9419 | if test -r $srcdir/BuildTools/coin.m4; then |
---|
9420 | BUILDTOOLSDIR=$srcdir/BuildTools |
---|
9421 | else |
---|
9422 | if test -r $srcdir/../BuildTools/coin.m4; then |
---|
9423 | BUILDTOOLSDIR=$srcdir/../BuildTools |
---|
9424 | else |
---|
9425 | if test -r $srcdir/../../BuildTools/coin.m4; then |
---|
9426 | BUILDTOOLSDIR=$srcdir/../../BuildTools |
---|
9427 | else |
---|
9428 | { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 |
---|
9429 | echo "$as_me: error: Cannot find the BuildTools directory" >&2;} |
---|
9430 | { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; } |
---|
9431 | fi |
---|
9432 | fi |
---|
9433 | fi |
---|
9434 | |
---|
9435 | |
---|
9436 | # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools |
---|
9437 | if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then |
---|
9438 | $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools" |
---|
9439 | fi |
---|
9440 | |
---|
9441 | # The following variable is set to the name of the directory where |
---|
9442 | # the autotool scripts are located |
---|
9443 | |
---|
9444 | AUX_DIR=$ac_aux_dir |
---|
9445 | fi |
---|
9446 | |
---|
9447 | # helpful variable for the base directory of this package |
---|
9448 | abs_source_dir=`cd $srcdir; pwd` |
---|
9449 | |
---|
9450 | |
---|
9451 | # Stuff for example Makefiles |
---|
9452 | if test x$prefix = xNONE; then |
---|
9453 | full_prefix=$ac_default_prefix |
---|
9454 | else |
---|
9455 | full_prefix=$prefix |
---|
9456 | fi |
---|
9457 | full_prefix=`cd $full_prefix ; pwd` |
---|
9458 | |
---|
9459 | abs_lib_dir=$full_prefix/lib |
---|
9460 | |
---|
9461 | abs_include_dir=$full_prefix/include |
---|
9462 | |
---|
9463 | abs_bin_dir=$full_prefix/bin |
---|
9464 | |
---|
9465 | |
---|
9466 | |
---|
9467 | if test $coin_have_externals = yes && test x$have_svn = xyes; then |
---|
9468 | HAVE_EXTERNALS_TRUE= |
---|
9469 | HAVE_EXTERNALS_FALSE='#' |
---|
9470 | else |
---|
9471 | HAVE_EXTERNALS_TRUE='#' |
---|
9472 | HAVE_EXTERNALS_FALSE= |
---|
9473 | fi |
---|
9474 | |
---|
9475 | |
---|
9476 | # AC_MSG_NOTICE([End automake initialisation.]) |
---|
9477 | |
---|
9478 | |
---|
9479 | |
---|
9480 | LIBTOOL= |
---|
9481 | if test -f ../libtool; then |
---|
9482 | coin_config_dir=.. |
---|
9483 | LIBTOOL='$(SHELL) $(top_builddir)/../libtool' |
---|
9484 | fi |
---|
9485 | if test "x$LIBTOOL" = x; then |
---|
9486 | if test -f ../../libtool; then |
---|
9487 | coin_config_dir=../.. |
---|
9488 | LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' |
---|
9489 | fi |
---|
9490 | fi |
---|
9491 | |
---|
9492 | if test "x$LIBTOOL" = x; then |
---|
9493 | # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) |
---|
9494 | # Stuff for libtool |
---|
9495 | # Check whether --enable-shared or --disable-shared was given. |
---|
9496 | if test "${enable_shared+set}" = set; then |
---|
9497 | enableval="$enable_shared" |
---|
9498 | p=${PACKAGE-default} |
---|
9499 | case $enableval in |
---|
9500 | yes) enable_shared=yes ;; |
---|
9501 | no) enable_shared=no ;; |
---|
9502 | *) |
---|
9503 | enable_shared=no |
---|
9504 | # Look at the argument we got. We use all the common list separators. |
---|
9505 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
9506 | for pkg in $enableval; do |
---|
9507 | IFS="$lt_save_ifs" |
---|
9508 | if test "X$pkg" = "X$p"; then |
---|
9509 | enable_shared=yes |
---|
9510 | fi |
---|
9511 | done |
---|
9512 | IFS="$lt_save_ifs" |
---|
9513 | ;; |
---|
9514 | esac |
---|
9515 | else |
---|
9516 | enable_shared=yes |
---|
9517 | fi; |
---|
9518 | |
---|
9519 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
9520 | if test "${enable_fast_install+set}" = set; then |
---|
9521 | enableval="$enable_fast_install" |
---|
9522 | p=${PACKAGE-default} |
---|
9523 | case $enableval in |
---|
9524 | yes) enable_fast_install=yes ;; |
---|
9525 | no) enable_fast_install=no ;; |
---|
9526 | *) |
---|
9527 | enable_fast_install=no |
---|
9528 | # Look at the argument we got. We use all the common list separators. |
---|
9529 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
9530 | for pkg in $enableval; do |
---|
9531 | IFS="$lt_save_ifs" |
---|
9532 | if test "X$pkg" = "X$p"; then |
---|
9533 | enable_fast_install=yes |
---|
9534 | fi |
---|
9535 | done |
---|
9536 | IFS="$lt_save_ifs" |
---|
9537 | ;; |
---|
9538 | esac |
---|
9539 | else |
---|
9540 | enable_fast_install=yes |
---|
9541 | fi; |
---|
9542 | |
---|
9543 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
9544 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
9545 | if test "${ac_cv_host+set}" = set; then |
---|
9546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9547 | else |
---|
9548 | ac_cv_host_alias=$host_alias |
---|
9549 | test -z "$ac_cv_host_alias" && |
---|
9550 | ac_cv_host_alias=$ac_cv_build_alias |
---|
9551 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
9552 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
9553 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
9554 | { (exit 1); exit 1; }; } |
---|
9555 | |
---|
9556 | fi |
---|
9557 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
9558 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
9559 | host=$ac_cv_host |
---|
9560 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
9561 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
9562 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
9563 | |
---|
9564 | |
---|
9565 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
---|
9566 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
---|
9567 | if test "${lt_cv_path_SED+set}" = set; then |
---|
9568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9569 | else |
---|
9570 | # Loop through the user's path and test for sed and gsed. |
---|
9571 | # Then use that list of sed's as ones to test for truncation. |
---|
9572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9573 | for as_dir in $PATH |
---|
9574 | do |
---|
9575 | IFS=$as_save_IFS |
---|
9576 | test -z "$as_dir" && as_dir=. |
---|
9577 | for lt_ac_prog in sed gsed; do |
---|
9578 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
9579 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
---|
9580 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
---|
9581 | fi |
---|
9582 | done |
---|
9583 | done |
---|
9584 | done |
---|
9585 | lt_ac_max=0 |
---|
9586 | lt_ac_count=0 |
---|
9587 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
---|
9588 | # along with /bin/sed that truncates output. |
---|
9589 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
---|
9590 | test ! -f $lt_ac_sed && continue |
---|
9591 | cat /dev/null > conftest.in |
---|
9592 | lt_ac_count=0 |
---|
9593 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
---|
9594 | # Check for GNU sed and select it if it is found. |
---|
9595 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
---|
9596 | lt_cv_path_SED=$lt_ac_sed |
---|
9597 | break |
---|
9598 | fi |
---|
9599 | while true; do |
---|
9600 | cat conftest.in conftest.in >conftest.tmp |
---|
9601 | mv conftest.tmp conftest.in |
---|
9602 | cp conftest.in conftest.nl |
---|
9603 | echo >>conftest.nl |
---|
9604 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
---|
9605 | cmp -s conftest.out conftest.nl || break |
---|
9606 | # 10000 chars as input seems more than enough |
---|
9607 | test $lt_ac_count -gt 10 && break |
---|
9608 | lt_ac_count=`expr $lt_ac_count + 1` |
---|
9609 | if test $lt_ac_count -gt $lt_ac_max; then |
---|
9610 | lt_ac_max=$lt_ac_count |
---|
9611 | lt_cv_path_SED=$lt_ac_sed |
---|
9612 | fi |
---|
9613 | done |
---|
9614 | done |
---|
9615 | |
---|
9616 | fi |
---|
9617 | |
---|
9618 | SED=$lt_cv_path_SED |
---|
9619 | echo "$as_me:$LINENO: result: $SED" >&5 |
---|
9620 | echo "${ECHO_T}$SED" >&6 |
---|
9621 | |
---|
9622 | |
---|
9623 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
9624 | if test "${with_gnu_ld+set}" = set; then |
---|
9625 | withval="$with_gnu_ld" |
---|
9626 | test "$withval" = no || with_gnu_ld=yes |
---|
9627 | else |
---|
9628 | with_gnu_ld=no |
---|
9629 | fi; |
---|
9630 | ac_prog=ld |
---|
9631 | if test "$GCC" = yes; then |
---|
9632 | # Check if gcc -print-prog-name=ld gives a path. |
---|
9633 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
9634 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
---|
9635 | case $host in |
---|
9636 | *-*-mingw*) |
---|
9637 | # gcc leaves a trailing carriage return which upsets mingw |
---|
9638 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
9639 | *) |
---|
9640 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
9641 | esac |
---|
9642 | case $ac_prog in |
---|
9643 | # Accept absolute paths. |
---|
9644 | [\\/]* | ?:[\\/]*) |
---|
9645 | re_direlt='/[^/][^/]*/\.\./' |
---|
9646 | # Canonicalize the pathname of ld |
---|
9647 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
9648 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
9649 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
9650 | done |
---|
9651 | test -z "$LD" && LD="$ac_prog" |
---|
9652 | ;; |
---|
9653 | "") |
---|
9654 | # If it fails, then pretend we aren't using GCC. |
---|
9655 | ac_prog=ld |
---|
9656 | ;; |
---|
9657 | *) |
---|
9658 | # If it is relative, then search for the first ld in PATH. |
---|
9659 | with_gnu_ld=unknown |
---|
9660 | ;; |
---|
9661 | esac |
---|
9662 | elif test "$with_gnu_ld" = yes; then |
---|
9663 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
9664 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
9665 | else |
---|
9666 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
9667 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
9668 | fi |
---|
9669 | if test "${lt_cv_path_LD+set}" = set; then |
---|
9670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9671 | else |
---|
9672 | if test -z "$LD"; then |
---|
9673 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
9674 | for ac_dir in $PATH; do |
---|
9675 | IFS="$lt_save_ifs" |
---|
9676 | test -z "$ac_dir" && ac_dir=. |
---|
9677 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
9678 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
9679 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
9680 | # but apparently some variants of GNU ld only accept -v. |
---|
9681 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
9682 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
9683 | *GNU* | *'with BFD'*) |
---|
9684 | test "$with_gnu_ld" != no && break |
---|
9685 | ;; |
---|
9686 | *) |
---|
9687 | test "$with_gnu_ld" != yes && break |
---|
9688 | ;; |
---|
9689 | esac |
---|
9690 | fi |
---|
9691 | done |
---|
9692 | IFS="$lt_save_ifs" |
---|
9693 | else |
---|
9694 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
9695 | fi |
---|
9696 | fi |
---|
9697 | |
---|
9698 | LD="$lt_cv_path_LD" |
---|
9699 | if test -n "$LD"; then |
---|
9700 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
9701 | echo "${ECHO_T}$LD" >&6 |
---|
9702 | else |
---|
9703 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9704 | echo "${ECHO_T}no" >&6 |
---|
9705 | fi |
---|
9706 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
9707 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
9708 | { (exit 1); exit 1; }; } |
---|
9709 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
9710 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
9711 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
9712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9713 | else |
---|
9714 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
9715 | case `$LD -v 2>&1 </dev/null` in |
---|
9716 | *GNU* | *'with BFD'*) |
---|
9717 | lt_cv_prog_gnu_ld=yes |
---|
9718 | ;; |
---|
9719 | *) |
---|
9720 | lt_cv_prog_gnu_ld=no |
---|
9721 | ;; |
---|
9722 | esac |
---|
9723 | fi |
---|
9724 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
9725 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
9726 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
9727 | |
---|
9728 | |
---|
9729 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
---|
9730 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
---|
9731 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
---|
9732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9733 | else |
---|
9734 | lt_cv_ld_reload_flag='-r' |
---|
9735 | fi |
---|
9736 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
---|
9737 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
---|
9738 | reload_flag=$lt_cv_ld_reload_flag |
---|
9739 | case $reload_flag in |
---|
9740 | "" | " "*) ;; |
---|
9741 | *) reload_flag=" $reload_flag" ;; |
---|
9742 | esac |
---|
9743 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
9744 | case $host_os in |
---|
9745 | darwin*) |
---|
9746 | if test "$GCC" = yes; then |
---|
9747 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
---|
9748 | else |
---|
9749 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
9750 | fi |
---|
9751 | ;; |
---|
9752 | esac |
---|
9753 | |
---|
9754 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
---|
9755 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
---|
9756 | if test "${lt_cv_path_NM+set}" = set; then |
---|
9757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9758 | else |
---|
9759 | if test -n "$NM"; then |
---|
9760 | # Let the user override the test. |
---|
9761 | lt_cv_path_NM="$NM" |
---|
9762 | else |
---|
9763 | lt_nm_to_check="${ac_tool_prefix}nm" |
---|
9764 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
---|
9765 | lt_nm_to_check="$lt_nm_to_check nm" |
---|
9766 | fi |
---|
9767 | for lt_tmp_nm in $lt_nm_to_check; do |
---|
9768 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
9769 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
---|
9770 | IFS="$lt_save_ifs" |
---|
9771 | test -z "$ac_dir" && ac_dir=. |
---|
9772 | tmp_nm="$ac_dir/$lt_tmp_nm" |
---|
9773 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
9774 | # Check to see if the nm accepts a BSD-compat flag. |
---|
9775 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
9776 | # nm: unknown option "B" ignored |
---|
9777 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
9778 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
9779 | */dev/null* | *'Invalid file or object type'*) |
---|
9780 | lt_cv_path_NM="$tmp_nm -B" |
---|
9781 | break |
---|
9782 | ;; |
---|
9783 | *) |
---|
9784 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
9785 | */dev/null*) |
---|
9786 | lt_cv_path_NM="$tmp_nm -p" |
---|
9787 | break |
---|
9788 | ;; |
---|
9789 | *) |
---|
9790 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
9791 | continue # so that we can try to find one that supports BSD flags |
---|
9792 | ;; |
---|
9793 | esac |
---|
9794 | ;; |
---|
9795 | esac |
---|
9796 | fi |
---|
9797 | done |
---|
9798 | IFS="$lt_save_ifs" |
---|
9799 | done |
---|
9800 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
9801 | fi |
---|
9802 | fi |
---|
9803 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
---|
9804 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
---|
9805 | NM="$lt_cv_path_NM" |
---|
9806 | |
---|
9807 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
---|
9808 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
---|
9809 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
---|
9810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9811 | else |
---|
9812 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
9813 | lt_cv_file_magic_test_file= |
---|
9814 | lt_cv_deplibs_check_method='unknown' |
---|
9815 | # Need to set the preceding variable on all platforms that support |
---|
9816 | # interlibrary dependencies. |
---|
9817 | # 'none' -- dependencies not supported. |
---|
9818 | # `unknown' -- same as none, but documents that we really don't know. |
---|
9819 | # 'pass_all' -- all dependencies passed with no checks. |
---|
9820 | # 'test_compile' -- check by making test program. |
---|
9821 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
9822 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
9823 | # If you have `file' or equivalent on your system and you're not sure |
---|
9824 | # whether `pass_all' will *always* work, you probably want this one. |
---|
9825 | |
---|
9826 | case $host_os in |
---|
9827 | aix4* | aix5*) |
---|
9828 | lt_cv_deplibs_check_method=pass_all |
---|
9829 | ;; |
---|
9830 | |
---|
9831 | beos*) |
---|
9832 | lt_cv_deplibs_check_method=pass_all |
---|
9833 | ;; |
---|
9834 | |
---|
9835 | bsdi[45]*) |
---|
9836 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
9837 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
9838 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
9839 | ;; |
---|
9840 | |
---|
9841 | cygwin*) |
---|
9842 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
9843 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
9844 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
9845 | ;; |
---|
9846 | |
---|
9847 | mingw* | pw32*) |
---|
9848 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
9849 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
---|
9850 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
9851 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
9852 | ;; |
---|
9853 | |
---|
9854 | darwin* | rhapsody*) |
---|
9855 | lt_cv_deplibs_check_method=pass_all |
---|
9856 | ;; |
---|
9857 | |
---|
9858 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
9859 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
9860 | case $host_cpu in |
---|
9861 | i*86 ) |
---|
9862 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
9863 | # Let's accept both of them until this is cleared up. |
---|
9864 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
9865 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
9866 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
9867 | ;; |
---|
9868 | esac |
---|
9869 | else |
---|
9870 | lt_cv_deplibs_check_method=pass_all |
---|
9871 | fi |
---|
9872 | ;; |
---|
9873 | |
---|
9874 | gnu*) |
---|
9875 | lt_cv_deplibs_check_method=pass_all |
---|
9876 | ;; |
---|
9877 | |
---|
9878 | hpux10.20* | hpux11*) |
---|
9879 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
9880 | case $host_cpu in |
---|
9881 | ia64*) |
---|
9882 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
9883 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
9884 | ;; |
---|
9885 | hppa*64*) |
---|
9886 | 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]' |
---|
9887 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
9888 | ;; |
---|
9889 | *) |
---|
9890 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
9891 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
9892 | ;; |
---|
9893 | esac |
---|
9894 | ;; |
---|
9895 | |
---|
9896 | interix3*) |
---|
9897 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
---|
9898 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
---|
9899 | ;; |
---|
9900 | |
---|
9901 | irix5* | irix6* | nonstopux*) |
---|
9902 | case $LD in |
---|
9903 | *-32|*"-32 ") libmagic=32-bit;; |
---|
9904 | *-n32|*"-n32 ") libmagic=N32;; |
---|
9905 | *-64|*"-64 ") libmagic=64-bit;; |
---|
9906 | *) libmagic=never-match;; |
---|
9907 | esac |
---|
9908 | lt_cv_deplibs_check_method=pass_all |
---|
9909 | ;; |
---|
9910 | |
---|
9911 | # This must be Linux ELF. |
---|
9912 | linux*) |
---|
9913 | lt_cv_deplibs_check_method=pass_all |
---|
9914 | ;; |
---|
9915 | |
---|
9916 | netbsd*) |
---|
9917 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
9918 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
9919 | else |
---|
9920 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
9921 | fi |
---|
9922 | ;; |
---|
9923 | |
---|
9924 | newos6*) |
---|
9925 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
9926 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
9927 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
9928 | ;; |
---|
9929 | |
---|
9930 | nto-qnx*) |
---|
9931 | lt_cv_deplibs_check_method=unknown |
---|
9932 | ;; |
---|
9933 | |
---|
9934 | openbsd*) |
---|
9935 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
9936 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
9937 | else |
---|
9938 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
9939 | fi |
---|
9940 | ;; |
---|
9941 | |
---|
9942 | osf3* | osf4* | osf5*) |
---|
9943 | lt_cv_deplibs_check_method=pass_all |
---|
9944 | ;; |
---|
9945 | |
---|
9946 | solaris*) |
---|
9947 | lt_cv_deplibs_check_method=pass_all |
---|
9948 | ;; |
---|
9949 | |
---|
9950 | sysv4 | sysv4.3*) |
---|
9951 | case $host_vendor in |
---|
9952 | motorola) |
---|
9953 | 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]' |
---|
9954 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
9955 | ;; |
---|
9956 | ncr) |
---|
9957 | lt_cv_deplibs_check_method=pass_all |
---|
9958 | ;; |
---|
9959 | sequent) |
---|
9960 | lt_cv_file_magic_cmd='/bin/file' |
---|
9961 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
9962 | ;; |
---|
9963 | sni) |
---|
9964 | lt_cv_file_magic_cmd='/bin/file' |
---|
9965 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
9966 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
9967 | ;; |
---|
9968 | siemens) |
---|
9969 | lt_cv_deplibs_check_method=pass_all |
---|
9970 | ;; |
---|
9971 | pc) |
---|
9972 | lt_cv_deplibs_check_method=pass_all |
---|
9973 | ;; |
---|
9974 | esac |
---|
9975 | ;; |
---|
9976 | |
---|
9977 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
9978 | lt_cv_deplibs_check_method=pass_all |
---|
9979 | ;; |
---|
9980 | esac |
---|
9981 | |
---|
9982 | fi |
---|
9983 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
---|
9984 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
---|
9985 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
9986 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
9987 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
9988 | |
---|
9989 | |
---|
9990 | |
---|
9991 | |
---|
9992 | # If no C compiler was specified, use CC. |
---|
9993 | LTCC=${LTCC-"$CC"} |
---|
9994 | |
---|
9995 | # If no C compiler flags were specified, use CFLAGS. |
---|
9996 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
9997 | |
---|
9998 | # Allow CC to be a program name with arguments. |
---|
9999 | compiler=$CC |
---|
10000 | |
---|
10001 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
10002 | if test "${enable_libtool_lock+set}" = set; then |
---|
10003 | enableval="$enable_libtool_lock" |
---|
10004 | |
---|
10005 | fi; |
---|
10006 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
10007 | |
---|
10008 | # Some flags need to be propagated to the compiler or linker for good |
---|
10009 | # libtool support. |
---|
10010 | case $host in |
---|
10011 | ia64-*-hpux*) |
---|
10012 | # Find out which ABI we are using. |
---|
10013 | echo 'int i;' > conftest.$ac_ext |
---|
10014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10015 | (eval $ac_compile) 2>&5 |
---|
10016 | ac_status=$? |
---|
10017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10018 | (exit $ac_status); }; then |
---|
10019 | case `/usr/bin/file conftest.$ac_objext` in |
---|
10020 | *ELF-32*) |
---|
10021 | HPUX_IA64_MODE="32" |
---|
10022 | ;; |
---|
10023 | *ELF-64*) |
---|
10024 | HPUX_IA64_MODE="64" |
---|
10025 | ;; |
---|
10026 | esac |
---|
10027 | fi |
---|
10028 | rm -rf conftest* |
---|
10029 | ;; |
---|
10030 | *-*-irix6*) |
---|
10031 | # Find out which ABI we are using. |
---|
10032 | echo '#line 10032 "configure"' > conftest.$ac_ext |
---|
10033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10034 | (eval $ac_compile) 2>&5 |
---|
10035 | ac_status=$? |
---|
10036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10037 | (exit $ac_status); }; then |
---|
10038 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
10039 | case `/usr/bin/file conftest.$ac_objext` in |
---|
10040 | *32-bit*) |
---|
10041 | LD="${LD-ld} -melf32bsmip" |
---|
10042 | ;; |
---|
10043 | *N32*) |
---|
10044 | LD="${LD-ld} -melf32bmipn32" |
---|
10045 | ;; |
---|
10046 | *64-bit*) |
---|
10047 | LD="${LD-ld} -melf64bmip" |
---|
10048 | ;; |
---|
10049 | esac |
---|
10050 | else |
---|
10051 | case `/usr/bin/file conftest.$ac_objext` in |
---|
10052 | *32-bit*) |
---|
10053 | LD="${LD-ld} -32" |
---|
10054 | ;; |
---|
10055 | *N32*) |
---|
10056 | LD="${LD-ld} -n32" |
---|
10057 | ;; |
---|
10058 | *64-bit*) |
---|
10059 | LD="${LD-ld} -64" |
---|
10060 | ;; |
---|
10061 | esac |
---|
10062 | fi |
---|
10063 | fi |
---|
10064 | rm -rf conftest* |
---|
10065 | ;; |
---|
10066 | |
---|
10067 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
---|
10068 | # Find out which ABI we are using. |
---|
10069 | echo 'int i;' > conftest.$ac_ext |
---|
10070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10071 | (eval $ac_compile) 2>&5 |
---|
10072 | ac_status=$? |
---|
10073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10074 | (exit $ac_status); }; then |
---|
10075 | case `/usr/bin/file conftest.o` in |
---|
10076 | *32-bit*) |
---|
10077 | case $host in |
---|
10078 | x86_64-*linux*) |
---|
10079 | LD="${LD-ld} -m elf_i386" |
---|
10080 | ;; |
---|
10081 | ppc64-*linux*|powerpc64-*linux*) |
---|
10082 | LD="${LD-ld} -m elf32ppclinux" |
---|
10083 | ;; |
---|
10084 | s390x-*linux*) |
---|
10085 | LD="${LD-ld} -m elf_s390" |
---|
10086 | ;; |
---|
10087 | sparc64-*linux*) |
---|
10088 | LD="${LD-ld} -m elf32_sparc" |
---|
10089 | ;; |
---|
10090 | esac |
---|
10091 | ;; |
---|
10092 | *64-bit*) |
---|
10093 | case $host in |
---|
10094 | x86_64-*linux*) |
---|
10095 | LD="${LD-ld} -m elf_x86_64" |
---|
10096 | ;; |
---|
10097 | ppc*-*linux*|powerpc*-*linux*) |
---|
10098 | LD="${LD-ld} -m elf64ppc" |
---|
10099 | ;; |
---|
10100 | s390*-*linux*) |
---|
10101 | LD="${LD-ld} -m elf64_s390" |
---|
10102 | ;; |
---|
10103 | sparc*-*linux*) |
---|
10104 | LD="${LD-ld} -m elf64_sparc" |
---|
10105 | ;; |
---|
10106 | esac |
---|
10107 | ;; |
---|
10108 | esac |
---|
10109 | fi |
---|
10110 | rm -rf conftest* |
---|
10111 | ;; |
---|
10112 | |
---|
10113 | *-*-sco3.2v5*) |
---|
10114 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
10115 | SAVE_CFLAGS="$CFLAGS" |
---|
10116 | CFLAGS="$CFLAGS -belf" |
---|
10117 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
---|
10118 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
---|
10119 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
---|
10120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10121 | else |
---|
10122 | ac_ext=c |
---|
10123 | ac_cpp='$CPP $CPPFLAGS' |
---|
10124 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
10125 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
10126 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
10127 | |
---|
10128 | cat >conftest.$ac_ext <<_ACEOF |
---|
10129 | /* confdefs.h. */ |
---|
10130 | _ACEOF |
---|
10131 | cat confdefs.h >>conftest.$ac_ext |
---|
10132 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10133 | /* end confdefs.h. */ |
---|
10134 | |
---|
10135 | #ifdef F77_DUMMY_MAIN |
---|
10136 | |
---|
10137 | # ifdef __cplusplus |
---|
10138 | extern "C" |
---|
10139 | # endif |
---|
10140 | int F77_DUMMY_MAIN() { return 1; } |
---|
10141 | |
---|
10142 | #endif |
---|
10143 | int |
---|
10144 | main () |
---|
10145 | { |
---|
10146 | |
---|
10147 | ; |
---|
10148 | return 0; |
---|
10149 | } |
---|
10150 | _ACEOF |
---|
10151 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10153 | (eval $ac_link) 2>conftest.er1 |
---|
10154 | ac_status=$? |
---|
10155 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10156 | rm -f conftest.er1 |
---|
10157 | cat conftest.err >&5 |
---|
10158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10159 | (exit $ac_status); } && |
---|
10160 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10161 | || test ! -s conftest.err' |
---|
10162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10163 | (eval $ac_try) 2>&5 |
---|
10164 | ac_status=$? |
---|
10165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10166 | (exit $ac_status); }; } && |
---|
10167 | { ac_try='test -s conftest$ac_exeext' |
---|
10168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10169 | (eval $ac_try) 2>&5 |
---|
10170 | ac_status=$? |
---|
10171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10172 | (exit $ac_status); }; }; then |
---|
10173 | lt_cv_cc_needs_belf=yes |
---|
10174 | else |
---|
10175 | echo "$as_me: failed program was:" >&5 |
---|
10176 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10177 | |
---|
10178 | lt_cv_cc_needs_belf=no |
---|
10179 | fi |
---|
10180 | rm -f conftest.err conftest.$ac_objext \ |
---|
10181 | conftest$ac_exeext conftest.$ac_ext |
---|
10182 | ac_ext=c |
---|
10183 | ac_cpp='$CPP $CPPFLAGS' |
---|
10184 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
10185 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
10186 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
10187 | |
---|
10188 | fi |
---|
10189 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
---|
10190 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
---|
10191 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
10192 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
10193 | CFLAGS="$SAVE_CFLAGS" |
---|
10194 | fi |
---|
10195 | ;; |
---|
10196 | sparc*-*solaris*) |
---|
10197 | # Find out which ABI we are using. |
---|
10198 | echo 'int i;' > conftest.$ac_ext |
---|
10199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10200 | (eval $ac_compile) 2>&5 |
---|
10201 | ac_status=$? |
---|
10202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10203 | (exit $ac_status); }; then |
---|
10204 | case `/usr/bin/file conftest.o` in |
---|
10205 | *64-bit*) |
---|
10206 | case $lt_cv_prog_gnu_ld in |
---|
10207 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
---|
10208 | *) LD="${LD-ld} -64" ;; |
---|
10209 | esac |
---|
10210 | ;; |
---|
10211 | esac |
---|
10212 | fi |
---|
10213 | rm -rf conftest* |
---|
10214 | ;; |
---|
10215 | |
---|
10216 | |
---|
10217 | esac |
---|
10218 | |
---|
10219 | need_locks="$enable_libtool_lock" |
---|
10220 | |
---|
10221 | |
---|
10222 | ac_ext=c |
---|
10223 | ac_cpp='$CPP $CPPFLAGS' |
---|
10224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
10225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
10226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
10227 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
10228 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
10229 | # On Suns, sometimes $CPP names a directory. |
---|
10230 | if test -n "$CPP" && test -d "$CPP"; then |
---|
10231 | CPP= |
---|
10232 | fi |
---|
10233 | if test -z "$CPP"; then |
---|
10234 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
10235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10236 | else |
---|
10237 | # Double quotes because CPP needs to be expanded |
---|
10238 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
10239 | do |
---|
10240 | ac_preproc_ok=false |
---|
10241 | for ac_c_preproc_warn_flag in '' yes |
---|
10242 | do |
---|
10243 | # Use a header file that comes with gcc, so configuring glibc |
---|
10244 | # with a fresh cross-compiler works. |
---|
10245 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10246 | # <limits.h> exists even on freestanding compilers. |
---|
10247 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
10248 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
10249 | cat >conftest.$ac_ext <<_ACEOF |
---|
10250 | /* confdefs.h. */ |
---|
10251 | _ACEOF |
---|
10252 | cat confdefs.h >>conftest.$ac_ext |
---|
10253 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10254 | /* end confdefs.h. */ |
---|
10255 | #ifdef __STDC__ |
---|
10256 | # include <limits.h> |
---|
10257 | #else |
---|
10258 | # include <assert.h> |
---|
10259 | #endif |
---|
10260 | Syntax error |
---|
10261 | _ACEOF |
---|
10262 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10263 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10264 | ac_status=$? |
---|
10265 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10266 | rm -f conftest.er1 |
---|
10267 | cat conftest.err >&5 |
---|
10268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10269 | (exit $ac_status); } >/dev/null; then |
---|
10270 | if test -s conftest.err; then |
---|
10271 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10272 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10273 | else |
---|
10274 | ac_cpp_err= |
---|
10275 | fi |
---|
10276 | else |
---|
10277 | ac_cpp_err=yes |
---|
10278 | fi |
---|
10279 | if test -z "$ac_cpp_err"; then |
---|
10280 | : |
---|
10281 | else |
---|
10282 | echo "$as_me: failed program was:" >&5 |
---|
10283 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10284 | |
---|
10285 | # Broken: fails on valid input. |
---|
10286 | continue |
---|
10287 | fi |
---|
10288 | rm -f conftest.err conftest.$ac_ext |
---|
10289 | |
---|
10290 | # OK, works on sane cases. Now check whether non-existent headers |
---|
10291 | # can be detected and how. |
---|
10292 | cat >conftest.$ac_ext <<_ACEOF |
---|
10293 | /* confdefs.h. */ |
---|
10294 | _ACEOF |
---|
10295 | cat confdefs.h >>conftest.$ac_ext |
---|
10296 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10297 | /* end confdefs.h. */ |
---|
10298 | #include <ac_nonexistent.h> |
---|
10299 | _ACEOF |
---|
10300 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10301 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10302 | ac_status=$? |
---|
10303 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10304 | rm -f conftest.er1 |
---|
10305 | cat conftest.err >&5 |
---|
10306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10307 | (exit $ac_status); } >/dev/null; then |
---|
10308 | if test -s conftest.err; then |
---|
10309 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10310 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10311 | else |
---|
10312 | ac_cpp_err= |
---|
10313 | fi |
---|
10314 | else |
---|
10315 | ac_cpp_err=yes |
---|
10316 | fi |
---|
10317 | if test -z "$ac_cpp_err"; then |
---|
10318 | # Broken: success on invalid input. |
---|
10319 | continue |
---|
10320 | else |
---|
10321 | echo "$as_me: failed program was:" >&5 |
---|
10322 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10323 | |
---|
10324 | # Passes both tests. |
---|
10325 | ac_preproc_ok=: |
---|
10326 | break |
---|
10327 | fi |
---|
10328 | rm -f conftest.err conftest.$ac_ext |
---|
10329 | |
---|
10330 | done |
---|
10331 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
10332 | rm -f conftest.err conftest.$ac_ext |
---|
10333 | if $ac_preproc_ok; then |
---|
10334 | break |
---|
10335 | fi |
---|
10336 | |
---|
10337 | done |
---|
10338 | ac_cv_prog_CPP=$CPP |
---|
10339 | |
---|
10340 | fi |
---|
10341 | CPP=$ac_cv_prog_CPP |
---|
10342 | else |
---|
10343 | ac_cv_prog_CPP=$CPP |
---|
10344 | fi |
---|
10345 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
10346 | echo "${ECHO_T}$CPP" >&6 |
---|
10347 | ac_preproc_ok=false |
---|
10348 | for ac_c_preproc_warn_flag in '' yes |
---|
10349 | do |
---|
10350 | # Use a header file that comes with gcc, so configuring glibc |
---|
10351 | # with a fresh cross-compiler works. |
---|
10352 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10353 | # <limits.h> exists even on freestanding compilers. |
---|
10354 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
10355 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
10356 | cat >conftest.$ac_ext <<_ACEOF |
---|
10357 | /* confdefs.h. */ |
---|
10358 | _ACEOF |
---|
10359 | cat confdefs.h >>conftest.$ac_ext |
---|
10360 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10361 | /* end confdefs.h. */ |
---|
10362 | #ifdef __STDC__ |
---|
10363 | # include <limits.h> |
---|
10364 | #else |
---|
10365 | # include <assert.h> |
---|
10366 | #endif |
---|
10367 | Syntax error |
---|
10368 | _ACEOF |
---|
10369 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10370 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10371 | ac_status=$? |
---|
10372 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10373 | rm -f conftest.er1 |
---|
10374 | cat conftest.err >&5 |
---|
10375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10376 | (exit $ac_status); } >/dev/null; then |
---|
10377 | if test -s conftest.err; then |
---|
10378 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10379 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10380 | else |
---|
10381 | ac_cpp_err= |
---|
10382 | fi |
---|
10383 | else |
---|
10384 | ac_cpp_err=yes |
---|
10385 | fi |
---|
10386 | if test -z "$ac_cpp_err"; then |
---|
10387 | : |
---|
10388 | else |
---|
10389 | echo "$as_me: failed program was:" >&5 |
---|
10390 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10391 | |
---|
10392 | # Broken: fails on valid input. |
---|
10393 | continue |
---|
10394 | fi |
---|
10395 | rm -f conftest.err conftest.$ac_ext |
---|
10396 | |
---|
10397 | # OK, works on sane cases. Now check whether non-existent headers |
---|
10398 | # can be detected and how. |
---|
10399 | cat >conftest.$ac_ext <<_ACEOF |
---|
10400 | /* confdefs.h. */ |
---|
10401 | _ACEOF |
---|
10402 | cat confdefs.h >>conftest.$ac_ext |
---|
10403 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10404 | /* end confdefs.h. */ |
---|
10405 | #include <ac_nonexistent.h> |
---|
10406 | _ACEOF |
---|
10407 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10408 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10409 | ac_status=$? |
---|
10410 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10411 | rm -f conftest.er1 |
---|
10412 | cat conftest.err >&5 |
---|
10413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10414 | (exit $ac_status); } >/dev/null; then |
---|
10415 | if test -s conftest.err; then |
---|
10416 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10417 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10418 | else |
---|
10419 | ac_cpp_err= |
---|
10420 | fi |
---|
10421 | else |
---|
10422 | ac_cpp_err=yes |
---|
10423 | fi |
---|
10424 | if test -z "$ac_cpp_err"; then |
---|
10425 | # Broken: success on invalid input. |
---|
10426 | continue |
---|
10427 | else |
---|
10428 | echo "$as_me: failed program was:" >&5 |
---|
10429 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10430 | |
---|
10431 | # Passes both tests. |
---|
10432 | ac_preproc_ok=: |
---|
10433 | break |
---|
10434 | fi |
---|
10435 | rm -f conftest.err conftest.$ac_ext |
---|
10436 | |
---|
10437 | done |
---|
10438 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
10439 | rm -f conftest.err conftest.$ac_ext |
---|
10440 | if $ac_preproc_ok; then |
---|
10441 | : |
---|
10442 | else |
---|
10443 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
10444 | See \`config.log' for more details." >&5 |
---|
10445 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
10446 | See \`config.log' for more details." >&2;} |
---|
10447 | { (exit 1); exit 1; }; } |
---|
10448 | fi |
---|
10449 | |
---|
10450 | ac_ext=c |
---|
10451 | ac_cpp='$CPP $CPPFLAGS' |
---|
10452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
10453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
10454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
10455 | |
---|
10456 | |
---|
10457 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
10458 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
10459 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
10460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10461 | else |
---|
10462 | cat >conftest.$ac_ext <<_ACEOF |
---|
10463 | /* confdefs.h. */ |
---|
10464 | _ACEOF |
---|
10465 | cat confdefs.h >>conftest.$ac_ext |
---|
10466 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10467 | /* end confdefs.h. */ |
---|
10468 | #include <stdlib.h> |
---|
10469 | #include <stdarg.h> |
---|
10470 | #include <string.h> |
---|
10471 | #include <float.h> |
---|
10472 | |
---|
10473 | #ifdef F77_DUMMY_MAIN |
---|
10474 | |
---|
10475 | # ifdef __cplusplus |
---|
10476 | extern "C" |
---|
10477 | # endif |
---|
10478 | int F77_DUMMY_MAIN() { return 1; } |
---|
10479 | |
---|
10480 | #endif |
---|
10481 | int |
---|
10482 | main () |
---|
10483 | { |
---|
10484 | |
---|
10485 | ; |
---|
10486 | return 0; |
---|
10487 | } |
---|
10488 | _ACEOF |
---|
10489 | rm -f conftest.$ac_objext |
---|
10490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10491 | (eval $ac_compile) 2>conftest.er1 |
---|
10492 | ac_status=$? |
---|
10493 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10494 | rm -f conftest.er1 |
---|
10495 | cat conftest.err >&5 |
---|
10496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10497 | (exit $ac_status); } && |
---|
10498 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10499 | || test ! -s conftest.err' |
---|
10500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10501 | (eval $ac_try) 2>&5 |
---|
10502 | ac_status=$? |
---|
10503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10504 | (exit $ac_status); }; } && |
---|
10505 | { ac_try='test -s conftest.$ac_objext' |
---|
10506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10507 | (eval $ac_try) 2>&5 |
---|
10508 | ac_status=$? |
---|
10509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10510 | (exit $ac_status); }; }; then |
---|
10511 | ac_cv_header_stdc=yes |
---|
10512 | else |
---|
10513 | echo "$as_me: failed program was:" >&5 |
---|
10514 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10515 | |
---|
10516 | ac_cv_header_stdc=no |
---|
10517 | fi |
---|
10518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10519 | |
---|
10520 | if test $ac_cv_header_stdc = yes; then |
---|
10521 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
10522 | cat >conftest.$ac_ext <<_ACEOF |
---|
10523 | /* confdefs.h. */ |
---|
10524 | _ACEOF |
---|
10525 | cat confdefs.h >>conftest.$ac_ext |
---|
10526 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10527 | /* end confdefs.h. */ |
---|
10528 | #include <string.h> |
---|
10529 | |
---|
10530 | _ACEOF |
---|
10531 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
10532 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
10533 | : |
---|
10534 | else |
---|
10535 | ac_cv_header_stdc=no |
---|
10536 | fi |
---|
10537 | rm -f conftest* |
---|
10538 | |
---|
10539 | fi |
---|
10540 | |
---|
10541 | if test $ac_cv_header_stdc = yes; then |
---|
10542 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
10543 | cat >conftest.$ac_ext <<_ACEOF |
---|
10544 | /* confdefs.h. */ |
---|
10545 | _ACEOF |
---|
10546 | cat confdefs.h >>conftest.$ac_ext |
---|
10547 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10548 | /* end confdefs.h. */ |
---|
10549 | #include <stdlib.h> |
---|
10550 | |
---|
10551 | _ACEOF |
---|
10552 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
10553 | $EGREP "free" >/dev/null 2>&1; then |
---|
10554 | : |
---|
10555 | else |
---|
10556 | ac_cv_header_stdc=no |
---|
10557 | fi |
---|
10558 | rm -f conftest* |
---|
10559 | |
---|
10560 | fi |
---|
10561 | |
---|
10562 | if test $ac_cv_header_stdc = yes; then |
---|
10563 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
10564 | if test "$cross_compiling" = yes; then |
---|
10565 | : |
---|
10566 | else |
---|
10567 | cat >conftest.$ac_ext <<_ACEOF |
---|
10568 | /* confdefs.h. */ |
---|
10569 | _ACEOF |
---|
10570 | cat confdefs.h >>conftest.$ac_ext |
---|
10571 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10572 | /* end confdefs.h. */ |
---|
10573 | #include <ctype.h> |
---|
10574 | #if ((' ' & 0x0FF) == 0x020) |
---|
10575 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
10576 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
10577 | #else |
---|
10578 | # define ISLOWER(c) \ |
---|
10579 | (('a' <= (c) && (c) <= 'i') \ |
---|
10580 | || ('j' <= (c) && (c) <= 'r') \ |
---|
10581 | || ('s' <= (c) && (c) <= 'z')) |
---|
10582 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
10583 | #endif |
---|
10584 | |
---|
10585 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
10586 | int |
---|
10587 | main () |
---|
10588 | { |
---|
10589 | int i; |
---|
10590 | for (i = 0; i < 256; i++) |
---|
10591 | if (XOR (islower (i), ISLOWER (i)) |
---|
10592 | || toupper (i) != TOUPPER (i)) |
---|
10593 | exit(2); |
---|
10594 | exit (0); |
---|
10595 | } |
---|
10596 | _ACEOF |
---|
10597 | rm -f conftest$ac_exeext |
---|
10598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10599 | (eval $ac_link) 2>&5 |
---|
10600 | ac_status=$? |
---|
10601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10602 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
10603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10604 | (eval $ac_try) 2>&5 |
---|
10605 | ac_status=$? |
---|
10606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10607 | (exit $ac_status); }; }; then |
---|
10608 | : |
---|
10609 | else |
---|
10610 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
10611 | echo "$as_me: failed program was:" >&5 |
---|
10612 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10613 | |
---|
10614 | ( exit $ac_status ) |
---|
10615 | ac_cv_header_stdc=no |
---|
10616 | fi |
---|
10617 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
10618 | fi |
---|
10619 | fi |
---|
10620 | fi |
---|
10621 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
10622 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
10623 | if test $ac_cv_header_stdc = yes; then |
---|
10624 | |
---|
10625 | cat >>confdefs.h <<\_ACEOF |
---|
10626 | #define STDC_HEADERS 1 |
---|
10627 | _ACEOF |
---|
10628 | |
---|
10629 | fi |
---|
10630 | |
---|
10631 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
10632 | |
---|
10633 | |
---|
10634 | |
---|
10635 | |
---|
10636 | |
---|
10637 | |
---|
10638 | |
---|
10639 | |
---|
10640 | |
---|
10641 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
10642 | inttypes.h stdint.h unistd.h |
---|
10643 | do |
---|
10644 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
10645 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10646 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10649 | else |
---|
10650 | cat >conftest.$ac_ext <<_ACEOF |
---|
10651 | /* confdefs.h. */ |
---|
10652 | _ACEOF |
---|
10653 | cat confdefs.h >>conftest.$ac_ext |
---|
10654 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10655 | /* end confdefs.h. */ |
---|
10656 | $ac_includes_default |
---|
10657 | |
---|
10658 | #include <$ac_header> |
---|
10659 | _ACEOF |
---|
10660 | rm -f conftest.$ac_objext |
---|
10661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10662 | (eval $ac_compile) 2>conftest.er1 |
---|
10663 | ac_status=$? |
---|
10664 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10665 | rm -f conftest.er1 |
---|
10666 | cat conftest.err >&5 |
---|
10667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10668 | (exit $ac_status); } && |
---|
10669 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10670 | || test ! -s conftest.err' |
---|
10671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10672 | (eval $ac_try) 2>&5 |
---|
10673 | ac_status=$? |
---|
10674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10675 | (exit $ac_status); }; } && |
---|
10676 | { ac_try='test -s conftest.$ac_objext' |
---|
10677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10678 | (eval $ac_try) 2>&5 |
---|
10679 | ac_status=$? |
---|
10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10681 | (exit $ac_status); }; }; then |
---|
10682 | eval "$as_ac_Header=yes" |
---|
10683 | else |
---|
10684 | echo "$as_me: failed program was:" >&5 |
---|
10685 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10686 | |
---|
10687 | eval "$as_ac_Header=no" |
---|
10688 | fi |
---|
10689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10690 | fi |
---|
10691 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10692 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10693 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
10694 | cat >>confdefs.h <<_ACEOF |
---|
10695 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
10696 | _ACEOF |
---|
10697 | |
---|
10698 | fi |
---|
10699 | |
---|
10700 | done |
---|
10701 | |
---|
10702 | |
---|
10703 | |
---|
10704 | for ac_header in dlfcn.h |
---|
10705 | do |
---|
10706 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
10707 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10708 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10710 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10712 | fi |
---|
10713 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10714 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10715 | else |
---|
10716 | # Is the header compilable? |
---|
10717 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
10718 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
10719 | cat >conftest.$ac_ext <<_ACEOF |
---|
10720 | /* confdefs.h. */ |
---|
10721 | _ACEOF |
---|
10722 | cat confdefs.h >>conftest.$ac_ext |
---|
10723 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10724 | /* end confdefs.h. */ |
---|
10725 | $ac_includes_default |
---|
10726 | #include <$ac_header> |
---|
10727 | _ACEOF |
---|
10728 | rm -f conftest.$ac_objext |
---|
10729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10730 | (eval $ac_compile) 2>conftest.er1 |
---|
10731 | ac_status=$? |
---|
10732 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10733 | rm -f conftest.er1 |
---|
10734 | cat conftest.err >&5 |
---|
10735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10736 | (exit $ac_status); } && |
---|
10737 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10738 | || test ! -s conftest.err' |
---|
10739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10740 | (eval $ac_try) 2>&5 |
---|
10741 | ac_status=$? |
---|
10742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10743 | (exit $ac_status); }; } && |
---|
10744 | { ac_try='test -s conftest.$ac_objext' |
---|
10745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10746 | (eval $ac_try) 2>&5 |
---|
10747 | ac_status=$? |
---|
10748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10749 | (exit $ac_status); }; }; then |
---|
10750 | ac_header_compiler=yes |
---|
10751 | else |
---|
10752 | echo "$as_me: failed program was:" >&5 |
---|
10753 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10754 | |
---|
10755 | ac_header_compiler=no |
---|
10756 | fi |
---|
10757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10758 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
10759 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
10760 | |
---|
10761 | # Is the header present? |
---|
10762 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
10763 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
10764 | cat >conftest.$ac_ext <<_ACEOF |
---|
10765 | /* confdefs.h. */ |
---|
10766 | _ACEOF |
---|
10767 | cat confdefs.h >>conftest.$ac_ext |
---|
10768 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10769 | /* end confdefs.h. */ |
---|
10770 | #include <$ac_header> |
---|
10771 | _ACEOF |
---|
10772 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10773 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10774 | ac_status=$? |
---|
10775 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10776 | rm -f conftest.er1 |
---|
10777 | cat conftest.err >&5 |
---|
10778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10779 | (exit $ac_status); } >/dev/null; then |
---|
10780 | if test -s conftest.err; then |
---|
10781 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10782 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10783 | else |
---|
10784 | ac_cpp_err= |
---|
10785 | fi |
---|
10786 | else |
---|
10787 | ac_cpp_err=yes |
---|
10788 | fi |
---|
10789 | if test -z "$ac_cpp_err"; then |
---|
10790 | ac_header_preproc=yes |
---|
10791 | else |
---|
10792 | echo "$as_me: failed program was:" >&5 |
---|
10793 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10794 | |
---|
10795 | ac_header_preproc=no |
---|
10796 | fi |
---|
10797 | rm -f conftest.err conftest.$ac_ext |
---|
10798 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
10799 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
10800 | |
---|
10801 | # So? What about this header? |
---|
10802 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
10803 | yes:no: ) |
---|
10804 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
10805 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
10806 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
10807 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
10808 | ac_header_preproc=yes |
---|
10809 | ;; |
---|
10810 | no:yes:* ) |
---|
10811 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
10812 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
10813 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
10814 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
10815 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
10816 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
10817 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
10818 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
10819 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
10820 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
10821 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
10822 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
10823 | ( |
---|
10824 | cat <<\_ASBOX |
---|
10825 | ## --------------------------------------------------------------- ## |
---|
10826 | ## Report this to http://projects.coin-or.org/BuildTools/newticket ## |
---|
10827 | ## --------------------------------------------------------------- ## |
---|
10828 | _ASBOX |
---|
10829 | ) | |
---|
10830 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
10831 | ;; |
---|
10832 | esac |
---|
10833 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10834 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10835 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10837 | else |
---|
10838 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
10839 | fi |
---|
10840 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10841 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10842 | |
---|
10843 | fi |
---|
10844 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
10845 | cat >>confdefs.h <<_ACEOF |
---|
10846 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
10847 | _ACEOF |
---|
10848 | |
---|
10849 | fi |
---|
10850 | |
---|
10851 | done |
---|
10852 | |
---|
10853 | ac_ext=cc |
---|
10854 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
10855 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
10856 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
10857 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
10858 | if test -n "$ac_tool_prefix"; then |
---|
10859 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
10860 | do |
---|
10861 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
10862 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
10863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
10864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
10865 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
10866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10867 | else |
---|
10868 | if test -n "$CXX"; then |
---|
10869 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
10870 | else |
---|
10871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
10872 | for as_dir in $PATH |
---|
10873 | do |
---|
10874 | IFS=$as_save_IFS |
---|
10875 | test -z "$as_dir" && as_dir=. |
---|
10876 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
10877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
10878 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
10879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
10880 | break 2 |
---|
10881 | fi |
---|
10882 | done |
---|
10883 | done |
---|
10884 | |
---|
10885 | fi |
---|
10886 | fi |
---|
10887 | CXX=$ac_cv_prog_CXX |
---|
10888 | if test -n "$CXX"; then |
---|
10889 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
10890 | echo "${ECHO_T}$CXX" >&6 |
---|
10891 | else |
---|
10892 | echo "$as_me:$LINENO: result: no" >&5 |
---|
10893 | echo "${ECHO_T}no" >&6 |
---|
10894 | fi |
---|
10895 | |
---|
10896 | test -n "$CXX" && break |
---|
10897 | done |
---|
10898 | fi |
---|
10899 | if test -z "$CXX"; then |
---|
10900 | ac_ct_CXX=$CXX |
---|
10901 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
10902 | do |
---|
10903 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
10904 | set dummy $ac_prog; ac_word=$2 |
---|
10905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
10906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
10907 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
10908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10909 | else |
---|
10910 | if test -n "$ac_ct_CXX"; then |
---|
10911 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
10912 | else |
---|
10913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
10914 | for as_dir in $PATH |
---|
10915 | do |
---|
10916 | IFS=$as_save_IFS |
---|
10917 | test -z "$as_dir" && as_dir=. |
---|
10918 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
10919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
10920 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
10921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
10922 | break 2 |
---|
10923 | fi |
---|
10924 | done |
---|
10925 | done |
---|
10926 | |
---|
10927 | fi |
---|
10928 | fi |
---|
10929 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
10930 | if test -n "$ac_ct_CXX"; then |
---|
10931 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
10932 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
10933 | else |
---|
10934 | echo "$as_me:$LINENO: result: no" >&5 |
---|
10935 | echo "${ECHO_T}no" >&6 |
---|
10936 | fi |
---|
10937 | |
---|
10938 | test -n "$ac_ct_CXX" && break |
---|
10939 | done |
---|
10940 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
10941 | |
---|
10942 | CXX=$ac_ct_CXX |
---|
10943 | fi |
---|
10944 | |
---|
10945 | |
---|
10946 | # Provide some information about the compiler. |
---|
10947 | echo "$as_me:$LINENO:" \ |
---|
10948 | "checking for C++ compiler version" >&5 |
---|
10949 | ac_compiler=`set X $ac_compile; echo $2` |
---|
10950 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
10951 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
10952 | ac_status=$? |
---|
10953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10954 | (exit $ac_status); } |
---|
10955 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
10956 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
10957 | ac_status=$? |
---|
10958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10959 | (exit $ac_status); } |
---|
10960 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
10961 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
10962 | ac_status=$? |
---|
10963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10964 | (exit $ac_status); } |
---|
10965 | |
---|
10966 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
10967 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
10968 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
10969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10970 | else |
---|
10971 | cat >conftest.$ac_ext <<_ACEOF |
---|
10972 | /* confdefs.h. */ |
---|
10973 | _ACEOF |
---|
10974 | cat confdefs.h >>c |
---|