Debian Codegraph @

Clp/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Clp 1.17.10.
4 #
5 # Report bugs to <[email protected]>.
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='Clp'
431 PACKAGE_TARNAME='clp'
432 PACKAGE_VERSION='1.17.10'
433 PACKAGE_STRING='Clp 1.17.10'
434 PACKAGE_BUGREPORT='[email protected]'
435
436 ac_unique_file="src/ClpSimplex.cpp"
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 build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CLP_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag dos2unix RPATH_FLAGS LT_LDFLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED CLPLIB_CFLAGS CLPLIB_LIBS CLPLIB_PCLIBS CLPLIB_PCREQUIRES CLPLIB_DEPENDENCIES CLPLIB_CFLAGS_INSTALLED CLPLIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED OSICLPLIB_CFLAGS OSICLPLIB_LIBS OSICLPLIB_PCLIBS OSICLPLIB_PCREQUIRES OSICLPLIB_DEPENDENCIES OSICLPLIB_CFLAGS_INSTALLED OSICLPLIB_LIBS_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE COIN_HAS_ABC_TRUE COIN_HAS_ABC_FALSE AMDINCDIR AMDLIB COIN_HAS_AMD_TRUE COIN_HAS_AMD_FALSE CHOLMODINCDIR CHOLMODLIB COIN_HAS_CHOLMOD_TRUE COIN_HAS_CHOLMOD_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE MUMPS_LIBS MUMPS_CFLAGS MUMPS_DATA MUMPS_DEPENDENCIES MUMPS_LIBS_INSTALLED MUMPS_CFLAGS_INSTALLED MUMPS_DATA_INSTALLED COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS MPIF77 FLIBS BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_HAS_WSMP_TRUE COIN_HAS_WSMP_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476 ac_subst_files=''
477
478 # Initialize some variables set by options.
479 ac_init_help=
480 ac_init_version=false
481 # The variables have the same names as the options, with
482 # dashes changed to underlines.
483 cache_file=/dev/null
484 exec_prefix=NONE
485 no_create=
486 no_recursion=
487 prefix=NONE
488 program_prefix=NONE
489 program_suffix=NONE
490 program_transform_name=s,x,x,
491 silent=
492 site=
493 srcdir=
494 verbose=
495 x_includes=NONE
496 x_libraries=NONE
497
498 # Installation directory options.
499 # These are left unexpanded so users can "make install exec_prefix=/foo"
500 # and all the variables that are supposed to be based on exec_prefix
501 # by default will actually change.
502 # Use braces instead of parens because sh, perl, etc. also accept them.
503 bindir='${exec_prefix}/bin'
504 sbindir='${exec_prefix}/sbin'
505 libexecdir='${exec_prefix}/libexec'
506 datadir='${prefix}/share'
507 sysconfdir='${prefix}/etc'
508 sharedstatedir='${prefix}/com'
509 localstatedir='${prefix}/var'
510 libdir='${exec_prefix}/lib'
511 includedir='${prefix}/include'
512 oldincludedir='/usr/include'
513 infodir='${prefix}/info'
514 mandir='${prefix}/man'
515
516 ac_prev=
517 for ac_option
518 do
519 # If the previous option needs an argument, assign it.
520 if test -n "$ac_prev"; then
521 eval "$ac_prev=\$ac_option"
522 ac_prev=
523 continue
524 fi
525
526 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528 # Accept the important Cygnus configure options, so we can diagnose typos.
529
530 case $ac_option in
531
532 -bindir | --bindir | --bindi | --bind | --bin | --bi)
533 ac_prev=bindir ;;
534 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535 bindir=$ac_optarg ;;
536
537 -build | --build | --buil | --bui | --bu)
538 ac_prev=build_alias ;;
539 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540 build_alias=$ac_optarg ;;
541
542 -cache-file | --cache-file | --cache-fil | --cache-fi \
543 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544 ac_prev=cache_file ;;
545 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547 cache_file=$ac_optarg ;;
548
549 --config-cache | -C)
550 cache_file=config.cache ;;
551
552 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553 ac_prev=datadir ;;
554 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555 | --da=*)
556 datadir=$ac_optarg ;;
557
558 -disable-* | --disable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 eval "enable_$ac_feature=no" ;;
566
567 -enable-* | --enable-*)
568 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569 # Reject names that are not valid shell variable names.
570 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572 { (exit 1); exit 1; }; }
573 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574 case $ac_option in
575 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576 *) ac_optarg=yes ;;
577 esac
578 eval "enable_$ac_feature='$ac_optarg'" ;;
579
580 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582 | --exec | --exe | --ex)
583 ac_prev=exec_prefix ;;
584 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586 | --exec=* | --exe=* | --ex=*)
587 exec_prefix=$ac_optarg ;;
588
589 -gas | --gas | --ga | --g)
590 # Obsolete; use --with-gas.
591 with_gas=yes ;;
592
593 -help | --help | --hel | --he | -h)
594 ac_init_help=long ;;
595 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596 ac_init_help=recursive ;;
597 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598 ac_init_help=short ;;
599
600 -host | --host | --hos | --ho)
601 ac_prev=host_alias ;;
602 -host=* | --host=* | --hos=* | --ho=*)
603 host_alias=$ac_optarg ;;
604
605 -includedir | --includedir | --includedi | --included | --include \
606 | --includ | --inclu | --incl | --inc)
607 ac_prev=includedir ;;
608 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609 | --includ=* | --inclu=* | --incl=* | --inc=*)
610 includedir=$ac_optarg ;;
611
612 -infodir | --infodir | --infodi | --infod | --info | --inf)
613 ac_prev=infodir ;;
614 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615 infodir=$ac_optarg ;;
616
617 -libdir | --libdir | --libdi | --libd)
618 ac_prev=libdir ;;
619 -libdir=* | --libdir=* | --libdi=* | --libd=*)
620 libdir=$ac_optarg ;;
621
622 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623 | --libexe | --libex | --libe)
624 ac_prev=libexecdir ;;
625 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626 | --libexe=* | --libex=* | --libe=*)
627 libexecdir=$ac_optarg ;;
628
629 -localstatedir | --localstatedir | --localstatedi | --localstated \
630 | --localstate | --localstat | --localsta | --localst \
631 | --locals | --local | --loca | --loc | --lo)
632 ac_prev=localstatedir ;;
633 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636 localstatedir=$ac_optarg ;;
637
638 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639 ac_prev=mandir ;;
640 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641 mandir=$ac_optarg ;;
642
643 -nfp | --nfp | --nf)
644 # Obsolete; use --without-fp.
645 with_fp=no ;;
646
647 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648 | --no-cr | --no-c | -n)
649 no_create=yes ;;
650
651 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653 no_recursion=yes ;;
654
655 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657 | --oldin | --oldi | --old | --ol | --o)
658 ac_prev=oldincludedir ;;
659 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662 oldincludedir=$ac_optarg ;;
663
664 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665 ac_prev=prefix ;;
666 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667 prefix=$ac_optarg ;;
668
669 -program-prefix | --program-prefix | --program-prefi | --program-pref \
670 | --program-pre | --program-pr | --program-p)
671 ac_prev=program_prefix ;;
672 -program-prefix=* | --program-prefix=* | --program-prefi=* \
673 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674 program_prefix=$ac_optarg ;;
675
676 -program-suffix | --program-suffix | --program-suffi | --program-suff \
677 | --program-suf | --program-su | --program-s)
678 ac_prev=program_suffix ;;
679 -program-suffix=* | --program-suffix=* | --program-suffi=* \
680 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681 program_suffix=$ac_optarg ;;
682
683 -program-transform-name | --program-transform-name \
684 | --program-transform-nam | --program-transform-na \
685 | --program-transform-n | --program-transform- \
686 | --program-transform | --program-transfor \
687 | --program-transfo | --program-transf \
688 | --program-trans | --program-tran \
689 | --progr-tra | --program-tr | --program-t)
690 ac_prev=program_transform_name ;;
691 -program-transform-name=* | --program-transform-name=* \
692 | --program-transform-nam=* | --program-transform-na=* \
693 | --program-transform-n=* | --program-transform-=* \
694 | --program-transform=* | --program-transfor=* \
695 | --program-transfo=* | --program-transf=* \
696 | --program-trans=* | --program-tran=* \
697 | --progr-tra=* | --program-tr=* | --program-t=*)
698 program_transform_name=$ac_optarg ;;
699
700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701 | -silent | --silent | --silen | --sile | --sil)
702 silent=yes ;;
703
704 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705 ac_prev=sbindir ;;
706 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707 | --sbi=* | --sb=*)
708 sbindir=$ac_optarg ;;
709
710 -sharedstatedir | --sharedstatedir | --sharedstatedi \
711 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712 | --sharedst | --shareds | --shared | --share | --shar \
713 | --sha | --sh)
714 ac_prev=sharedstatedir ;;
715 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718 | --sha=* | --sh=*)
719 sharedstatedir=$ac_optarg ;;
720
721 -site | --site | --sit)
722 ac_prev=site ;;
723 -site=* | --site=* | --sit=*)
724 site=$ac_optarg ;;
725
726 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727 ac_prev=srcdir ;;
728 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729 srcdir=$ac_optarg ;;
730
731 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732 | --syscon | --sysco | --sysc | --sys | --sy)
733 ac_prev=sysconfdir ;;
734 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736 sysconfdir=$ac_optarg ;;
737
738 -target | --target | --targe | --targ | --tar | --ta | --t)
739 ac_prev=target_alias ;;
740 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741 target_alias=$ac_optarg ;;
742
743 -v | -verbose | --verbose | --verbos | --verbo | --verb)
744 verbose=yes ;;
745
746 -version | --version | --versio | --versi | --vers | -V)
747 ac_init_version=: ;;
748
749 -with-* | --with-*)
750 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package| sed 's/-/_/g'`
756 case $ac_option in
757 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758 *) ac_optarg=yes ;;
759 esac
760 eval "with_$ac_package='$ac_optarg'" ;;
761
762 -without-* | --without-*)
763 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764 # Reject names that are not valid shell variable names.
765 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766 { echo "$as_me: error: invalid package name: $ac_package" >&2
767 { (exit 1); exit 1; }; }
768 ac_package=`echo $ac_package | sed 's/-/_/g'`
769 eval "with_$ac_package=no" ;;
770
771 --x)
772 # Obsolete; use --with-x.
773 with_x=yes ;;
774
775 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776 | --x-incl | --x-inc | --x-in | --x-i)
777 ac_prev=x_includes ;;
778 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780 x_includes=$ac_optarg ;;
781
782 -x-libraries | --x-libraries | --x-librarie | --x-librari \
783 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784 ac_prev=x_libraries ;;
785 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787 x_libraries=$ac_optarg ;;
788
789 -*) { echo "$as_me: error: unrecognized option: $ac_option
790 Try \`$0 --help' for more information." >&2
791 { (exit 1); exit 1; }; }
792 ;;
793
794 *=*)
795 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796 # Reject names that are not valid shell variable names.
797 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799 { (exit 1); exit 1; }; }
800 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801 eval "$ac_envvar='$ac_optarg'"
802 export $ac_envvar ;;
803
804 *)
805 # FIXME: should be removed in autoconf 3.0.
806 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 ;;
811
812 esac
813 done
814
815 if test -n "$ac_prev"; then
816 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817 { echo "$as_me: error: missing argument to $ac_option" >&2
818 { (exit 1); exit 1; }; }
819 fi
820
821 # Be sure to have absolute paths.
822 for ac_var in exec_prefix prefix
823 do
824 eval ac_val=$`echo $ac_var`
825 case $ac_val in
826 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828 { (exit 1); exit 1; }; };;
829 esac
830 done
831
832 # Be sure to have absolute paths.
833 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834 localstatedir libdir includedir oldincludedir infodir mandir
835 do
836 eval ac_val=$`echo $ac_var`
837 case $ac_val in
838 [\\/$]* | ?:[\\/]* ) ;;
839 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840 { (exit 1); exit 1; }; };;
841 esac
842 done
843
844 # There might be people who depend on the old broken behavior: `$host'
845 # used to hold the argument of --host etc.
846 # FIXME: To remove some day.
847 build=$build_alias
848 host=$host_alias
849 target=$target_alias
850
851 # FIXME: To remove some day.
852 if test "x$host_alias" != x; then
853 if test "x$build_alias" = x; then
854 cross_compiling=maybe
855 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856 If a cross compiler is detected then cross compile mode will be used." >&2
857 elif test "x$build_alias" != "x$host_alias"; then
858 cross_compiling=yes
859 fi
860 fi
861
862 ac_tool_prefix=
863 test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865 test "$silent" = yes && exec 6>/dev/null
866
867
868 # Find the source files, if location was not specified.
869 if test -z "$srcdir"; then
870 ac_srcdir_defaulted=yes
871 # Try the directory containing this script, then its parent.
872 ac_confdir=`(dirname "$0") 2>/dev/null ||
873 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874 X"$0" : 'X\(//\)[^/]' \| \
875 X"$0" : 'X\(//\)$' \| \
876 X"$0" : 'X\(/\)' \| \
877 . : '\(.\)' 2>/dev/null ||
878 echo X"$0" |
879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881 /^X\(\/\/\)$/{ s//\1/; q; }
882 /^X\(\/\).*/{ s//\1/; q; }
883 s/.*/./; q'`
884 srcdir=$ac_confdir
885 if test ! -r $srcdir/$ac_unique_file; then
886 srcdir=..
887 fi
888 else
889 ac_srcdir_defaulted=no
890 fi
891 if test ! -r $srcdir/$ac_unique_file; then
892 if test "$ac_srcdir_defaulted" = yes; then
893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894 { (exit 1); exit 1; }; }
895 else
896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897 { (exit 1); exit 1; }; }
898 fi
899 fi
900 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902 { (exit 1); exit 1; }; }
903 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904 ac_env_build_alias_set=${build_alias+set}
905 ac_env_build_alias_value=$build_alias
906 ac_cv_env_build_alias_set=${build_alias+set}
907 ac_cv_env_build_alias_value=$build_alias
908 ac_env_host_alias_set=${host_alias+set}
909 ac_env_host_alias_value=$host_alias
910 ac_cv_env_host_alias_set=${host_alias+set}
911 ac_cv_env_host_alias_value=$host_alias
912 ac_env_target_alias_set=${target_alias+set}
913 ac_env_target_alias_value=$target_alias
914 ac_cv_env_target_alias_set=${target_alias+set}
915 ac_cv_env_target_alias_value=$target_alias
916 ac_env_CDEFS_set=${CDEFS+set}
917 ac_env_CDEFS_value=$CDEFS
918 ac_cv_env_CDEFS_set=${CDEFS+set}
919 ac_cv_env_CDEFS_value=$CDEFS
920 ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921 ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922 ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923 ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924 ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925 ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926 ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927 ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928 ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929 ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930 ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931 ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932 ac_env_CC_set=${CC+set}
933 ac_env_CC_value=$CC
934 ac_cv_env_CC_set=${CC+set}
935 ac_cv_env_CC_value=$CC
936 ac_env_CFLAGS_set=${CFLAGS+set}
937 ac_env_CFLAGS_value=$CFLAGS
938 ac_cv_env_CFLAGS_set=${CFLAGS+set}
939 ac_cv_env_CFLAGS_value=$CFLAGS
940 ac_env_LDFLAGS_set=${LDFLAGS+set}
941 ac_env_LDFLAGS_value=$LDFLAGS
942 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943 ac_cv_env_LDFLAGS_value=$LDFLAGS
944 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945 ac_env_CPPFLAGS_value=$CPPFLAGS
946 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948 ac_env_MPICC_set=${MPICC+set}
949 ac_env_MPICC_value=$MPICC
950 ac_cv_env_MPICC_set=${MPICC+set}
951 ac_cv_env_MPICC_value=$MPICC
952 ac_env_CXXDEFS_set=${CXXDEFS+set}
953 ac_env_CXXDEFS_value=$CXXDEFS
954 ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955 ac_cv_env_CXXDEFS_value=$CXXDEFS
956 ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957 ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958 ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959 ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960 ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961 ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962 ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963 ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964 ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965 ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966 ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967 ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968 ac_env_CXX_set=${CXX+set}
969 ac_env_CXX_value=$CXX
970 ac_cv_env_CXX_set=${CXX+set}
971 ac_cv_env_CXX_value=$CXX
972 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973 ac_env_CXXFLAGS_value=$CXXFLAGS
974 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976 ac_env_MPICXX_set=${MPICXX+set}
977 ac_env_MPICXX_value=$MPICXX
978 ac_cv_env_MPICXX_set=${MPICXX+set}
979 ac_cv_env_MPICXX_value=$MPICXX
980 ac_env_CPP_set=${CPP+set}
981 ac_env_CPP_value=$CPP
982 ac_cv_env_CPP_set=${CPP+set}
983 ac_cv_env_CPP_value=$CPP
984 ac_env_CXXCPP_set=${CXXCPP+set}
985 ac_env_CXXCPP_value=$CXXCPP
986 ac_cv_env_CXXCPP_set=${CXXCPP+set}
987 ac_cv_env_CXXCPP_value=$CXXCPP
988 ac_env_F77_set=${F77+set}
989 ac_env_F77_value=$F77
990 ac_cv_env_F77_set=${F77+set}
991 ac_cv_env_F77_value=$F77
992 ac_env_FFLAGS_set=${FFLAGS+set}
993 ac_env_FFLAGS_value=$FFLAGS
994 ac_cv_env_FFLAGS_set=${FFLAGS+set}
995 ac_cv_env_FFLAGS_value=$FFLAGS
996 ac_env_LT_LDFLAGS_set=${LT_LDFLAGS+set}
997 ac_env_LT_LDFLAGS_value=$LT_LDFLAGS
998 ac_cv_env_LT_LDFLAGS_set=${LT_LDFLAGS+set}
999 ac_cv_env_LT_LDFLAGS_value=$LT_LDFLAGS
1000 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1001 ac_env_PKG_CONFIG_value=$PKG_CONFIG
1002 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1003 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1004 ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1005 ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
1006 ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1007 ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1008 ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1009 ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1010 ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1011 ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1012 ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1013 ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1014 ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1015 ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1016 ac_env_MPIF77_set=${MPIF77+set}
1017 ac_env_MPIF77_value=$MPIF77
1018 ac_cv_env_MPIF77_set=${MPIF77+set}
1019 ac_cv_env_MPIF77_value=$MPIF77
1020
1021 #
1022 # Report the --help message.
1023 #
1024 if test "$ac_init_help" = "long"; then
1025 # Omit some internal or obsolete options to make the list less imposing.
1026 # This message is too long to be a string in the A/UX 3.1 sh.
1027 cat <<_ACEOF
1028 \`configure' configures Clp 1.17.10 to adapt to many kinds of systems.
1029
1030 Usage: $0 [OPTION]... [VAR=VALUE]...
1031
1032 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1033 VAR=VALUE. See below for descriptions of some of the useful variables.
1034
1035 Defaults for the options are specified in brackets.
1036
1037 Configuration:
1038 -h, --help display this help and exit
1039 --help=short display options specific to this package
1040 --help=recursive display the short help of all the included packages
1041 -V, --version display version information and exit
1042 -q, --quiet, --silent do not print \`checking...' messages
1043 --cache-file=FILE cache test results in FILE [disabled]
1044 -C, --config-cache alias for \`--cache-file=config.cache'
1045 -n, --no-create do not create output files
1046 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1047
1048 _ACEOF
1049
1050 cat <<_ACEOF
1051 Installation directories:
1052 --prefix=PREFIX install architecture-independent files in PREFIX
1053 [$ac_default_prefix]
1054 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1055 [PREFIX]
1056
1057 By default, \`make install' will install all the files in
1058 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1059 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1060 for instance \`--prefix=\$HOME'.
1061
1062 For better control, use the options below.
1063
1064 Fine tuning of the installation directories:
1065 --bindir=DIR user executables [EPREFIX/bin]
1066 --sbindir=DIR system admin executables [EPREFIX/sbin]
1067 --libexecdir=DIR program executables [EPREFIX/libexec]
1068 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1069 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1070 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1071 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1072 --libdir=DIR object code libraries [EPREFIX/lib]
1073 --includedir=DIR C header files [PREFIX/include]
1074 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1075 --infodir=DIR info documentation [PREFIX/info]
1076 --mandir=DIR man documentation [PREFIX/man]
1077 _ACEOF
1078
1079 cat <<\_ACEOF
1080
1081 Program names:
1082 --program-prefix=PREFIX prepend PREFIX to installed program names
1083 --program-suffix=SUFFIX append SUFFIX to installed program names
1084 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1085
1086 System types:
1087 --build=BUILD configure for building on BUILD [guessed]
1088 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1089 _ACEOF
1090 fi
1091
1092 if test -n "$ac_init_help"; then
1093 case $ac_init_help in
1094 short | recursive ) echo "Configuration of Clp 1.17.10:";;
1095 esac
1096 cat <<\_ACEOF
1097
1098 Optional Features:
1099 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1100 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1101 --enable-debug compile all projects with debug options tests
1102 (implies --disable-shared)
1103 --enable-debug-clp compile project Clp with debug compiler flags
1104
1105 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1106 --enable-static[=PKGS]
1107 build static libraries [default=no]
1108 --disable-dependency-tracking speeds up one-time build
1109 --enable-dependency-tracking do not reject slow dependency extractors
1110 --enable-maintainer-mode enable make rules and dependencies not useful
1111 (and sometimes confusing) to the casual installer
1112 --enable-shared[=PKGS]
1113 build shared libraries [default=yes]
1114 --enable-fast-install[=PKGS]
1115 optimize for fast installation [default=yes]
1116 --disable-libtool-lock avoid locking (might break parallel builds)
1117 --disable-dependency-linking
1118 disable linking library dependencies into shared
1119 libraries
1120 --disable-pkg-config disable use of pkg-config (if available)
1121 --disable-interpackage-dependencies
1122 disables deduction of Makefile dependencies from
1123 package linker flags
1124 --enable-aboca enables build of Aboca solver (set to 1,2,3,4)
1125 --disable-amd-libcheck skip the link check at configuration time
1126 --disable-cholmod-libcheck
1127 skip the link check at configuration time
1128 --enable-gnu-packages compile with GNU packages (disabled by default)
1129
1130 Optional Packages:
1131 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1132 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1133 --with-clp-verbosity specify the debug verbosity level for project Clp
1134 --with-clp-checklevel specify the sanity check level for project Clp
1135 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1136 --with-pic try to use only PIC/non-PIC objects [default=use
1137 both]
1138 --with-tags[=TAGS]
1139 include additional configurations [automatic]
1140 --with-coin-instdir prefix of installation directory for precompiled
1141 COIN packages
1142
1143 --with-coinutils-lib linker flags for using package CoinUtils
1144 --with-coinutils-incdir directory with header files for using package
1145 CoinUtils
1146 --with-coinutils-datadir
1147 directory with data files for using package
1148 CoinUtils
1149 --with-osi-lib linker flags for using package Osi
1150 --with-osi-incdir directory with header files for using package Osi
1151 --with-osi-datadir directory with data files for using package Osi
1152 --with-ositests-lib linker flags for using package OsiTests
1153 --with-ositests-incdir directory with header files for using package
1154 OsiTests
1155 --with-ositests-datadir directory with data files for using package OsiTests
1156 --with-sample-lib linker flags for using package Sample
1157 --with-sample-incdir directory with header files for using package Sample
1158 --with-sample-datadir directory with data files for using package Sample
1159 --with-netlib-lib linker flags for using package Netlib
1160 --with-netlib-incdir directory with header files for using package Netlib
1161 --with-netlib-datadir directory with data files for using package Netlib
1162 --with-amd-incdir specify the header file directory for library AMD
1163 --with-amd-lib specify the flags used to link with the library AMD
1164 --with-cholmod-incdir specify the header file directory for library CHOLMOD
1165 --with-cholmod-lib specify the flags used to link with the library CHOLMOD
1166 --with-glpk-lib linker flags for using package Glpk
1167 --with-glpk-incdir directory with header files for using package Glpk
1168 --with-glpk-datadir directory with data files for using package Glpk
1169 --with-mumps-lib linker flags for using package Mumps
1170 --with-mumps-incdir directory with header files for using package Mumps
1171 --with-mumps-datadir directory with data files for using package Mumps
1172 --with-wsmp specify WSMP library
1173 --with-blas specify BLAS library (or BUILD to enforce use of
1174 ThirdParty/Blas)
1175 --with-blas-lib linker flags for using package Blas
1176 --with-blas-incdir directory with header files for using package Blas
1177 --with-blas-datadir directory with data files for using package Blas
1178 --with-asl-lib linker flags for using package ASL
1179 --with-asl-incdir directory with header files for using package ASL
1180 --with-asl-datadir directory with data files for using package ASL
1181 --with-dot use dot (from graphviz) when creating documentation
1182 with doxygen if available; --without-dot to disable
1183
1184 Some influential environment variables:
1185 CDEFS Additional -D flags to be used when compiling C code.
1186 ADD_CFLAGS Additional C compiler options
1187 DBG_CFLAGS Debug C compiler options
1188 OPT_CFLAGS Optimize C compiler options
1189 CC C compiler command
1190 CFLAGS C compiler flags
1191 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1192 nonstandard directory <lib dir>
1193 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1194 headers in a nonstandard directory <include dir>
1195 MPICC C MPI Compiler
1196 CXXDEFS Additional -D flags to be used when compiling C++ code.
1197 ADD_CXXFLAGS
1198 Additional C++ compiler options
1199 DBG_CXXFLAGS
1200 Debug C++ compiler options
1201 OPT_CXXFLAGS
1202 Optimize C++ compiler options
1203 CXX C++ compiler command
1204 CXXFLAGS C++ compiler flags
1205 MPICXX C++ MPI Compiler
1206 CPP C preprocessor
1207 CXXCPP C++ preprocessor
1208 F77 Fortran 77 compiler command
1209 FFLAGS Fortran 77 compiler flags
1210 LT_LDFLAGS Flags passed to libtool when building libraries or executables
1211 that are installed
1212 PKG_CONFIG path to pkg-config utility
1213 ADD_FFLAGS Additional Fortran compiler options
1214 DBG_FFLAGS Debug Fortran compiler options
1215 OPT_FFLAGS Optimize Fortran compiler options
1216 MPIF77 Fortran MPI Compiler
1217
1218 Use these variables to override the choices made by `configure' or to help
1219 it to find libraries and programs with nonstandard names/locations.
1220
1221 Report bugs to <[email protected]>.
1222 _ACEOF
1223 fi
1224
1225 if test "$ac_init_help" = "recursive"; then
1226 # If there are subdirs, report their specific --help.
1227 ac_popdir=`pwd`
1228 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1229 test -d $ac_dir || continue
1230 ac_builddir=.
1231
1232 if test "$ac_dir" != .; then
1233 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1234 # A "../" for each directory in $ac_dir_suffix.
1235 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1236 else
1237 ac_dir_suffix= ac_top_builddir=
1238 fi
1239
1240 case $srcdir in
1241 .) # No --srcdir option. We are building in place.
1242 ac_srcdir=.
1243 if test -z "$ac_top_builddir"; then
1244 ac_top_srcdir=.
1245 else
1246 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1247 fi ;;
1248 [\\/]* | ?:[\\/]* ) # Absolute path.
1249 ac_srcdir=$srcdir$ac_dir_suffix;
1250 ac_top_srcdir=$srcdir ;;
1251 *) # Relative path.
1252 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1253 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1254 esac
1255
1256 # Do not use `cd foo && pwd` to compute absolute paths, because
1257 # the directories may not exist.
1258 case `pwd` in
1259 .) ac_abs_builddir="$ac_dir";;
1260 *)
1261 case "$ac_dir" in
1262 .) ac_abs_builddir=`pwd`;;
1263 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1264 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1265 esac;;
1266 esac
1267 case $ac_abs_builddir in
1268 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1269 *)
1270 case ${ac_top_builddir}. in
1271 .) ac_abs_top_builddir=$ac_abs_builddir;;
1272 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1273 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1274 esac;;
1275 esac
1276 case $ac_abs_builddir in
1277 .) ac_abs_srcdir=$ac_srcdir;;
1278 *)
1279 case $ac_srcdir in
1280 .) ac_abs_srcdir=$ac_abs_builddir;;
1281 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1282 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1283 esac;;
1284 esac
1285 case $ac_abs_builddir in
1286 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1287 *)
1288 case $ac_top_srcdir in
1289 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1290 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1291 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1292 esac;;
1293 esac
1294
1295 cd $ac_dir
1296 # Check for guested configure; otherwise get Cygnus style configure.
1297 if test -f $ac_srcdir/configure.gnu; then
1298 echo
1299 $SHELL $ac_srcdir/configure.gnu --help=recursive
1300 elif test -f $ac_srcdir/configure; then
1301 echo
1302 $SHELL $ac_srcdir/configure --help=recursive
1303 elif test -f $ac_srcdir/configure.ac ||
1304 test -f $ac_srcdir/configure.in; then
1305 echo
1306 $ac_configure --help
1307 else
1308 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1309 fi
1310 cd $ac_popdir
1311 done
1312 fi
1313
1314 test -n "$ac_init_help" && exit 0
1315 if $ac_init_version; then
1316 cat <<\_ACEOF
1317 Clp configure 1.17.10
1318 generated by GNU Autoconf 2.59
1319
1320 Copyright (C) 2003 Free Software Foundation, Inc.
1321 This configure script is free software; the Free Software Foundation
1322 gives unlimited permission to copy, distribute and modify it.
1323
1324
1325 Copyright 2006 International Business Machines and others.
1326 All Rights Reserved.
1327 This file is part of the open source package Coin which is distributed
1328 under the Eclipse Public License.
1329 _ACEOF
1330 exit 0
1331 fi
1332 exec 5>config.log
1333 cat >&5 <<_ACEOF
1334 This file contains any messages produced by compilers while
1335 running configure, to aid debugging if configure makes a mistake.
1336
1337 It was created by Clp $as_me 1.17.10, which was
1338 generated by GNU Autoconf 2.59. Invocation command line was
1339
1340 $ $0 $@
1341
1342 _ACEOF
1343 {
1344 cat <<_ASUNAME
1345 ## --------- ##
1346 ## Platform. ##
1347 ## --------- ##
1348
1349 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1350 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1351 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1352 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1353 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1354
1355 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1356 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1357
1358 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1359 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1360 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1361 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1362 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1363 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1364 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1365
1366 _ASUNAME
1367
1368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369 for as_dir in $PATH
1370 do
1371 IFS=$as_save_IFS
1372 test -z "$as_dir" && as_dir=.
1373 echo "PATH: $as_dir"
1374 done
1375
1376 } >&5
1377
1378 cat >&5 <<_ACEOF
1379
1380
1381 ## ----------- ##
1382 ## Core tests. ##
1383 ## ----------- ##
1384
1385 _ACEOF
1386
1387
1388 # Keep a trace of the command line.
1389 # Strip out --no-create and --no-recursion so they do not pile up.
1390 # Strip out --silent because we don't want to record it for future runs.
1391 # Also quote any args containing shell meta-characters.
1392 # Make two passes to allow for proper duplicate-argument suppression.
1393 ac_configure_args=
1394 ac_configure_args0=
1395 ac_configure_args1=
1396 ac_sep=
1397 ac_must_keep_next=false
1398 for ac_pass in 1 2
1399 do
1400 for ac_arg
1401 do
1402 case $ac_arg in
1403 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1405 | -silent | --silent | --silen | --sile | --sil)
1406 continue ;;
1407 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1408 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1409 esac
1410 case $ac_pass in
1411 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1412 2)
1413 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1414 if test $ac_must_keep_next = true; then
1415 ac_must_keep_next=false # Got value, back to normal.
1416 else
1417 case $ac_arg in
1418 *=* | --config-cache | -C | -disable-* | --disable-* \
1419 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1420 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1421 | -with-* | --with-* | -without-* | --without-* | --x)
1422 case "$ac_configure_args0 " in
1423 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1424 esac
1425 ;;
1426 -* ) ac_must_keep_next=true ;;
1427 esac
1428 fi
1429 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1430 # Get rid of the leading space.
1431 ac_sep=" "
1432 ;;
1433 esac
1434 done
1435 done
1436 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1437 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1438
1439 # When interrupted or exit'd, cleanup temporary files, and complete
1440 # config.log. We remove comments because anyway the quotes in there
1441 # would cause problems or look ugly.
1442 # WARNING: Be sure not to use single quotes in there, as some shells,
1443 # such as our DU 5.0 friend, will then `close' the trap.
1444 trap 'exit_status=$?
1445 # Save into config.log some information that might help in debugging.
1446 {
1447 echo
1448
1449 cat <<\_ASBOX
1450 ## ---------------- ##
1451 ## Cache variables. ##
1452 ## ---------------- ##
1453 _ASBOX
1454 echo
1455 # The following way of writing the cache mishandles newlines in values,
1456 {
1457 (set) 2>&1 |
1458 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1459 *ac_space=\ *)
1460 sed -n \
1461 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1463 ;;
1464 *)
1465 sed -n \
1466 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1467 ;;
1468 esac;
1469 }
1470 echo
1471
1472 cat <<\_ASBOX
1473 ## ----------------- ##
1474 ## Output variables. ##
1475 ## ----------------- ##
1476 _ASBOX
1477 echo
1478 for ac_var in $ac_subst_vars
1479 do
1480 eval ac_val=$`echo $ac_var`
1481 echo "$ac_var='"'"'$ac_val'"'"'"
1482 done | sort
1483 echo
1484
1485 if test -n "$ac_subst_files"; then
1486 cat <<\_ASBOX
1487 ## ------------- ##
1488 ## Output files. ##
1489 ## ------------- ##
1490 _ASBOX
1491 echo
1492 for ac_var in $ac_subst_files
1493 do
1494 eval ac_val=$`echo $ac_var`
1495 echo "$ac_var='"'"'$ac_val'"'"'"
1496 done | sort
1497 echo
1498 fi
1499
1500 if test -s confdefs.h; then
1501 cat <<\_ASBOX
1502 ## ----------- ##
1503 ## confdefs.h. ##
1504 ## ----------- ##
1505 _ASBOX
1506 echo
1507 sed "/^$/d" confdefs.h | sort
1508 echo
1509 fi
1510 test "$ac_signal" != 0 &&
1511 echo "$as_me: caught signal $ac_signal"
1512 echo "$as_me: exit $exit_status"
1513 } >&5
1514 rm -f core *.core &&
1515 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1516 exit $exit_status
1517 ' 0
1518 for ac_signal in 1 2 13 15; do
1519 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1520 done
1521 ac_signal=0
1522
1523 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1524 rm -rf conftest* confdefs.h
1525 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1526 echo >confdefs.h
1527
1528 # Predefined preprocessor variables.
1529
1530 cat >>confdefs.h <<_ACEOF
1531 #define PACKAGE_NAME "$PACKAGE_NAME"
1532 _ACEOF
1533
1534
1535 cat >>confdefs.h <<_ACEOF
1536 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1537 _ACEOF
1538
1539
1540 cat >>confdefs.h <<_ACEOF
1541 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1542 _ACEOF
1543
1544
1545 cat >>confdefs.h <<_ACEOF
1546 #define PACKAGE_STRING "$PACKAGE_STRING"
1547 _ACEOF
1548
1549
1550 cat >>confdefs.h <<_ACEOF
1551 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1552 _ACEOF
1553
1554
1555 # Let the site file select an alternate cache file if it wants to.
1556 # Prefer explicitly selected file to automatically selected ones.
1557 if test -z "$CONFIG_SITE"; then
1558 if test "x$prefix" != xNONE; then
1559 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1560 else
1561 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1562 fi
1563 fi
1564 for ac_site_file in $CONFIG_SITE; do
1565 if test -r "$ac_site_file"; then
1566 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1567 echo "$as_me: loading site script $ac_site_file" >&6;}
1568 sed 's/^/| /' "$ac_site_file" >&5
1569 . "$ac_site_file"
1570 fi
1571 done
1572
1573 if test -r "$cache_file"; then
1574 # Some versions of bash will fail to source /dev/null (special
1575 # files actually), so we avoid doing that.
1576 if test -f "$cache_file"; then
1577 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1578 echo "$as_me: loading cache $cache_file" >&6;}
1579 case $cache_file in
1580 [\\/]* | ?:[\\/]* ) . $cache_file;;
1581 *) . ./$cache_file;;
1582 esac
1583 fi
1584 else
1585 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1586 echo "$as_me: creating cache $cache_file" >&6;}
1587 >$cache_file
1588 fi
1589
1590 # Check that the precious variables saved in the cache have kept the same
1591 # value.
1592 ac_cache_corrupted=false
1593 for ac_var in `(set) 2>&1 |
1594 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1595 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1596 eval ac_new_set=\$ac_env_${ac_var}_set
1597 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1598 eval ac_new_val="\$ac_env_${ac_var}_value"
1599 case $ac_old_set,$ac_new_set in
1600 set,)
1601 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1602 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1603 ac_cache_corrupted=: ;;
1604 ,set)
1605 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1606 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1607 ac_cache_corrupted=: ;;
1608 ,);;
1609 *)
1610 if test "x$ac_old_val" != "x$ac_new_val"; then
1611 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1612 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1613 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1614 echo "$as_me: former value: $ac_old_val" >&2;}
1615 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1616 echo "$as_me: current value: $ac_new_val" >&2;}
1617 ac_cache_corrupted=:
1618 fi;;
1619 esac
1620 # Pass precious variables to config.status.
1621 if test "$ac_new_set" = set; then
1622 case $ac_new_val in
1623 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1624 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1625 *) ac_arg=$ac_var=$ac_new_val ;;
1626 esac
1627 case " $ac_configure_args " in
1628 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1629 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1630 esac
1631 fi
1632 done
1633 if $ac_cache_corrupted; then
1634 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1635 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1636 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1637 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1638 { (exit 1); exit 1; }; }
1639 fi
1640
1641 ac_ext=c
1642 ac_cpp='$CPP $CPPFLAGS'
1643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676 # List one file in the package so that the configure script can test
1677 # whether the package is actually there
1678
1679
1680 # Where should everything be installed by default? Here, we want it
1681 # to be installed directly in 'bin', 'lib', 'include' subdirectories
1682 # of the directory where configure is run. The default would be
1683 # /usr/local.
1684
1685
1686 #############################################################################
1687 # Standard build tool stuff #
1688 #############################################################################
1689
1690 # Get the system type
1691 ac_aux_dir=
1692 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1693 if test -f $ac_dir/install-sh; then
1694 ac_aux_dir=$ac_dir
1695 ac_install_sh="$ac_aux_dir/install-sh -c"
1696 break
1697 elif test -f $ac_dir/install.sh; then
1698 ac_aux_dir=$ac_dir
1699 ac_install_sh="$ac_aux_dir/install.sh -c"
1700 break
1701 elif test -f $ac_dir/shtool; then
1702 ac_aux_dir=$ac_dir
1703 ac_install_sh="$ac_aux_dir/shtool install -c"
1704 break
1705 fi
1706 done
1707 if test -z "$ac_aux_dir"; then
1708 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1709 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1710 { (exit 1); exit 1; }; }
1711 fi
1712 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1713 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1714 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1715
1716 # Make sure we can run config.sub.
1717 $ac_config_sub sun4 >/dev/null 2>&1 ||
1718 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1719 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1720 { (exit 1); exit 1; }; }
1721
1722 echo "$as_me:$LINENO: checking build system type" >&5
1723 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1724 if test "${ac_cv_build+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727 ac_cv_build_alias=$build_alias
1728 test -z "$ac_cv_build_alias" &&
1729 ac_cv_build_alias=`$ac_config_guess`
1730 test -z "$ac_cv_build_alias" &&
1731 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1732 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1733 { (exit 1); exit 1; }; }
1734 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1735 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1736 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1737 { (exit 1); exit 1; }; }
1738
1739 fi
1740 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1741 echo "${ECHO_T}$ac_cv_build" >&6
1742 build=$ac_cv_build
1743 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1744 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1745 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1746
1747
1748
1749 # If this project depends on external projects, the Externals file in
1750 # the source root directory contains definition of where to find those
1751 # externals. The following macro ensures that those externals are
1752 # retrieved by svn if they are not there yet.
1753
1754 # As backup, we make sure we don't loose an FLIBS if it has been set
1755 # by the user
1756 save_FLIBS="$FLIBS"
1757
1758 # A useful makefile conditional that is always false
1759
1760
1761 if false; then
1762 ALWAYS_FALSE_TRUE=
1763 ALWAYS_FALSE_FALSE='#'
1764 else
1765 ALWAYS_FALSE_TRUE='#'
1766 ALWAYS_FALSE_FALSE=
1767 fi
1768
1769
1770 # We set the following variable so that we know later in AC_COIN_FINALIZE
1771 # that we are in a project main directory
1772 coin_projectdir=yes
1773
1774 # Set the project's version numbers
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define CLP_VERSION "$PACKAGE_VERSION"
1779 _ACEOF
1780
1781
1782 coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1783 coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1784 coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1785 if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1786 if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1787 if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define CLP_VERSION_MAJOR $coin_majorver
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define CLP_VERSION_MINOR $coin_minorver
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define CLP_VERSION_RELEASE $coin_releasever
1801 _ACEOF
1802
1803
1804 # We use the following variable to have a string with the upper case
1805 # version of the project name
1806 COIN_PRJCT=CLP
1807
1808 # Set the project's SVN revision number. The complicated sed expression
1809 # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1810 # as a single number.
1811 # Extract the first word of "svnversion", so it can be a program name with args.
1812 set dummy svnversion; ac_word=$2
1813 echo "$as_me:$LINENO: checking for $ac_word" >&5
1814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815 if test "${ac_cv_prog_have_svnversion+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818 if test -n "$have_svnversion"; then
1819 ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1820 else
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 for as_dir in $PATH
1823 do
1824 IFS=$as_save_IFS
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 ac_cv_prog_have_svnversion="yes"
1829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 break 2
1831 fi
1832 done
1833 done
1834
1835 test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1836 fi
1837 fi
1838 have_svnversion=$ac_cv_prog_have_svnversion
1839 if test -n "$have_svnversion"; then
1840 echo "$as_me:$LINENO: result: $have_svnversion" >&5
1841 echo "${ECHO_T}$have_svnversion" >&6
1842 else
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1845 fi
1846
1847 if test "x$have_svnversion" = xyes; then
1848
1849 svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1850 if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1851 CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define CLP_SVN_REV $CLP_SVN_REV
1855 _ACEOF
1856
1857 fi
1858 fi
1859
1860
1861
1862 # Capture libtool library version, if given.
1863 coin_libversion=15:10:14
1864
1865
1866
1867 # Check if user wants to produce debugging code
1868
1869 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1870 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1871
1872 # Check whether --enable-debug or --disable-debug was given.
1873 if test "${enable_debug+set}" = set; then
1874 enableval="$enable_debug"
1875 case "${enableval}" in
1876 yes) coin_debug_compile=true
1877 if test "${enable_shared+set}" = set; then :; else
1878 enable_shared=no
1879 fi
1880 ;;
1881 no) coin_debug_compile=false
1882 ;;
1883 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1884 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1885 { (exit 1); exit 1; }; }
1886 ;;
1887 esac
1888 else
1889 coin_debug_compile=false
1890 fi;
1891
1892 # Check whether --enable-debug-clp or --disable-debug-clp was given.
1893 if test "${enable_debug_clp+set}" = set; then
1894 enableval="$enable_debug_clp"
1895 case "${enableval}" in
1896 yes) coin_debug_compile=true
1897 ;;
1898 no) coin_debug_compile=false
1899 ;;
1900 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1901 echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1902 { (exit 1); exit 1; }; }
1903 ;;
1904 esac
1905 else
1906 :
1907 fi;
1908
1909 # m4_ifvaln([Clp],
1910
1911 if test $coin_debug_compile = true; then
1912 echo "$as_me:$LINENO: result: yes" >&5
1913 echo "${ECHO_T}yes" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919
1920 # Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1921 if test "${with_clp_verbosity+set}" = set; then
1922 withval="$with_clp_verbosity"
1923 if test "$withval" = yes; then
1924 withval=1
1925 fi
1926 coin_clp_verbosity=$withval
1927 else
1928 coin_clp_verbosity=0
1929 fi;
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define COIN_CLP_VERBOSITY $coin_clp_verbosity
1933 _ACEOF
1934
1935
1936
1937 # Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1938 if test "${with_clp_checklevel+set}" = set; then
1939 withval="$with_clp_checklevel"
1940 if test "$withval" = yes; then
1941 withval=1
1942 fi
1943 coin_clp_checklevel=$withval
1944 else
1945 coin_clp_checklevel=0
1946 fi;
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1950 _ACEOF
1951
1952
1953 # m4_ifvaln([Clp],
1954
1955
1956
1957 # Get the name of the C++ compiler and appropriate compiler options
1958
1959
1960 # for backward compatibility
1961 # Check whether --enable-doscompile or --disable-doscompile was given.
1962 if test "${enable_doscompile+set}" = set; then
1963 enableval="$enable_doscompile"
1964 enable_doscompile=$enableval
1965 else
1966 enable_doscompile=no
1967 fi;
1968
1969 # Check whether --enable-msvc or --disable-msvc was given.
1970 if test "${enable_msvc+set}" = set; then
1971 enableval="$enable_msvc"
1972 enable_msvc=$enableval
1973 else
1974 enable_msvc=no
1975 if test "$enable_doscompile" = msvc ; then
1976 enable_msvc=yes
1977 elif test "$enable_doscompile" != no ; then
1978 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1979 echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1980 { (exit 1); exit 1; }; }
1981 fi
1982
1983 fi;
1984
1985 if test "$enable_msvc" = MD; then
1986 enable_shared=yes
1987 enable_msvc=yes
1988 fi
1989
1990 if test "$enable_msvc" = yes; then
1991 case $build in
1992 *-cygwin* | *-mingw*) ;;
1993 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1994 echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1995 { (exit 1); exit 1; }; } ;;
1996 esac
1997 fi
1998
1999
2000
2001 ac_ext=c
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006
2007
2008 # For consistency, we set the C compiler to the same value of the C++
2009 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2010 if test x"$CXX" != x; then
2011 case "$CXX" in
2012 clang* | */clang* ) ;;
2013 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2014 if test x"$CC" = x; then
2015 CC="$CXX"
2016 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2017 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2018 fi
2019 ;;
2020 esac
2021 fi
2022
2023
2024
2025
2026
2027
2028 coin_has_cc=yes
2029
2030 save_cflags="$CFLAGS"
2031
2032 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2033 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
2034 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
2035 # compiler. In this case, put cc after gcc.
2036
2037 case $build in
2038 *-cygwin* | *-mingw*)
2039 if test "$enable_msvc" = yes ; then
2040 comps="icl cl gcc"
2041 else
2042 comps="gcc icl cl"
2043 fi ;;
2044 *-*-solaris*)
2045 # Extract the first word of "cc", so it can be a program name with args.
2046 set dummy cc; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052 if test -n "$sol_cc_compiler"; then
2053 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2054 else
2055 ac_prog_rejected=no
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2064 ac_prog_rejected=yes
2065 continue
2066 fi
2067 ac_cv_prog_sol_cc_compiler="cc"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 break 2
2070 fi
2071 done
2072 done
2073
2074 if test $ac_prog_rejected = yes; then
2075 # We found a bogon in the path, so make sure we never use it.
2076 set dummy $ac_cv_prog_sol_cc_compiler
2077 shift
2078 if test $# != 0; then
2079 # We chose a different compiler from the bogus one.
2080 # However, it has the same basename, so the bogon will be chosen
2081 # first if we set sol_cc_compiler to just the basename; use the full file name.
2082 shift
2083 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2084 fi
2085 fi
2086 fi
2087 fi
2088 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2089 if test -n "$sol_cc_compiler"; then
2090 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2091 echo "${ECHO_T}$sol_cc_compiler" >&6
2092 else
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2095 fi
2096
2097 if test "$sol_cc_compiler" = "cc" ; then
2098 comps="cc xlc gcc pgcc icc"
2099 else
2100 comps="xlc gcc pgcc icc cc"
2101 fi
2102 ;;
2103 *-*-darwin*) comps="clang gcc cc" ;;
2104 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2105 *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2106 *) comps="xlc_r xlc cc gcc pgcc icc" ;;
2107 esac
2108
2109 # We delete the cached value, since the test might not have been
2110 # performed with our choice of compilers earlier
2111 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2112 # AC_MSG_NOTICE([C compiler candidates: $comps])
2113 ac_ext=c
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118 if test -n "$ac_tool_prefix"; then
2119 for ac_prog in $comps
2120 do
2121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2123 echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125 if test "${ac_cv_prog_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128 if test -n "$CC"; then
2129 ac_cv_prog_CC="$CC" # Let the user override the test.
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 break 2
2141 fi
2142 done
2143 done
2144
2145 fi
2146 fi
2147 CC=$ac_cv_prog_CC
2148 if test -n "$CC"; then
2149 echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6
2151 else
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2154 fi
2155
2156 test -n "$CC" && break
2157 done
2158 fi
2159 if test -z "$CC"; then
2160 ac_ct_CC=$CC
2161 for ac_prog in $comps
2162 do
2163 # Extract the first word of "$ac_prog", so it can be a program name with args.
2164 set dummy $ac_prog; ac_word=$2
2165 echo "$as_me:$LINENO: checking for $ac_word" >&5
2166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2167 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 if test -n "$ac_ct_CC"; then
2171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2172 else
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 for as_dir in $PATH
2175 do
2176 IFS=$as_save_IFS
2177 test -z "$as_dir" && as_dir=.
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2180 ac_cv_prog_ac_ct_CC="$ac_prog"
2181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 break 2
2183 fi
2184 done
2185 done
2186
2187 fi
2188 fi
2189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2190 if test -n "$ac_ct_CC"; then
2191 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2192 echo "${ECHO_T}$ac_ct_CC" >&6
2193 else
2194 echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6
2196 fi
2197
2198 test -n "$ac_ct_CC" && break
2199 done
2200
2201 CC=$ac_ct_CC
2202 fi
2203
2204
2205 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2206 See \`config.log' for more details." >&5
2207 echo "$as_me: error: no acceptable C compiler found in \$PATH
2208 See \`config.log' for more details." >&2;}
2209 { (exit 1); exit 1; }; }
2210
2211 # Provide some information about the compiler.
2212 echo "$as_me:$LINENO:" \
2213 "checking for C compiler version" >&5
2214 ac_compiler=`set X $ac_compile; echo $2`
2215 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2216 (eval $ac_compiler --version </dev/null >&5) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }
2220 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2221 (eval $ac_compiler -v </dev/null >&5) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }
2225 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2226 (eval $ac_compiler -V </dev/null >&5) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }
2230
2231 cat >conftest.$ac_ext <<_ACEOF
2232 /* confdefs.h. */
2233 _ACEOF
2234 cat confdefs.h >>conftest.$ac_ext
2235 cat >>conftest.$ac_ext <<_ACEOF
2236 /* end confdefs.h. */
2237
2238 int
2239 main ()
2240 {
2241
2242 ;
2243 return 0;
2244 }
2245 _ACEOF
2246 ac_clean_files_save=$ac_clean_files
2247 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2248 # Try to create an executable without -o first, disregard a.out.
2249 # It will help us diagnose broken compilers, and finding out an intuition
2250 # of exeext.
2251 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2252 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2253 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2254 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2255 (eval $ac_link_default) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
2259 # Find the output, starting from the most likely. This scheme is
2260 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2261 # resort.
2262
2263 # Be careful to initialize this variable, since it used to be cached.
2264 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2265 ac_cv_exeext=
2266 # b.out is created by i960 compilers.
2267 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2268 do
2269 test -f "$ac_file" || continue
2270 case $ac_file in
2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2272 ;;
2273 conftest.$ac_ext )
2274 # This is the source file.
2275 ;;
2276 [ab].out )
2277 # We found the default executable, but exeext='' is most
2278 # certainly right.
2279 break;;
2280 *.* )
2281 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282 # FIXME: I believe we export ac_cv_exeext for Libtool,
2283 # but it would be cool to find out if it's true. Does anybody
2284 # maintain Libtool? --akim.
2285 export ac_cv_exeext
2286 break;;
2287 * )
2288 break;;
2289 esac
2290 done
2291 else
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: C compiler cannot create executables
2298 See \`config.log' for more details." >&2;}
2299 { (exit 77); exit 77; }; }
2300 fi
2301
2302 ac_exeext=$ac_cv_exeext
2303 echo "$as_me:$LINENO: result: $ac_file" >&5
2304 echo "${ECHO_T}$ac_file" >&6
2305
2306 # Check the compiler produces executables we can run. If not, either
2307 # the compiler is broken, or we cross compile.
2308 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2309 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2310 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2311 # If not cross compiling, check that we can run a simple program.
2312 if test "$cross_compiling" != yes; then
2313 if { ac_try='./$ac_file'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 (eval $ac_try) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; }; then
2319 cross_compiling=no
2320 else
2321 if test "$cross_compiling" = maybe; then
2322 cross_compiling=yes
2323 else
2324 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2325 If you meant to cross compile, use \`--host'.
2326 See \`config.log' for more details." >&5
2327 echo "$as_me: error: cannot run C compiled programs.
2328 If you meant to cross compile, use \`--host'.
2329 See \`config.log' for more details." >&2;}
2330 { (exit 1); exit 1; }; }
2331 fi
2332 fi
2333 fi
2334 echo "$as_me:$LINENO: result: yes" >&5
2335 echo "${ECHO_T}yes" >&6
2336
2337 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2338 ac_clean_files=$ac_clean_files_save
2339 # Check the compiler produces executables we can run. If not, either
2340 # the compiler is broken, or we cross compile.
2341 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2342 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2343 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2344 echo "${ECHO_T}$cross_compiling" >&6
2345
2346 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2347 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2349 (eval $ac_link) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; then
2353 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2354 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2355 # work properly (i.e., refer to `conftest.exe'), while it won't with
2356 # `rm'.
2357 for ac_file in conftest.exe conftest conftest.*; do
2358 test -f "$ac_file" || continue
2359 case $ac_file in
2360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2361 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2362 export ac_cv_exeext
2363 break;;
2364 * ) break;;
2365 esac
2366 done
2367 else
2368 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2369 See \`config.log' for more details." >&5
2370 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2371 See \`config.log' for more details." >&2;}
2372 { (exit 1); exit 1; }; }
2373 fi
2374
2375 rm -f conftest$ac_cv_exeext
2376 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2377 echo "${ECHO_T}$ac_cv_exeext" >&6
2378
2379 rm -f conftest.$ac_ext
2380 EXEEXT=$ac_cv_exeext
2381 ac_exeext=$EXEEXT
2382 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2383 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2384 if test "${ac_cv_objext+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387 cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h. */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2393
2394 int
2395 main ()
2396 {
2397
2398 ;
2399 return 0;
2400 }
2401 _ACEOF
2402 rm -f conftest.o conftest.obj
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 (eval $ac_compile) 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; then
2408 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2409 case $ac_file in
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2411 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2412 break;;
2413 esac
2414 done
2415 else
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2418
2419 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2420 See \`config.log' for more details." >&5
2421 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2422 See \`config.log' for more details." >&2;}
2423 { (exit 1); exit 1; }; }
2424 fi
2425
2426 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2427 fi
2428 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2429 echo "${ECHO_T}$ac_cv_objext" >&6
2430 OBJEXT=$ac_cv_objext
2431 ac_objext=$OBJEXT
2432 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2433 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2434 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 cat >conftest.$ac_ext <<_ACEOF
2438 /* confdefs.h. */
2439 _ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2443
2444 int
2445 main ()
2446 {
2447 #ifndef __GNUC__
2448 choke me
2449 #endif
2450
2451 ;
2452 return 0;
2453 }
2454 _ACEOF
2455 rm -f conftest.$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 ac_compiler_gnu=yes
2478 else
2479 echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2481
2482 ac_compiler_gnu=no
2483 fi
2484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2486
2487 fi
2488 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2489 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2490 GCC=`test $ac_compiler_gnu = yes && echo yes`
2491 ac_test_CFLAGS=${CFLAGS+set}
2492 ac_save_CFLAGS=$CFLAGS
2493 CFLAGS="-g"
2494 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2495 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2496 if test "${ac_cv_prog_cc_g+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499 cat >conftest.$ac_ext <<_ACEOF
2500 /* confdefs.h. */
2501 _ACEOF
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h. */
2505
2506 int
2507 main ()
2508 {
2509
2510 ;
2511 return 0;
2512 }
2513 _ACEOF
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516 (eval $ac_compile) 2>conftest.er1
2517 ac_status=$?
2518 grep -v '^ *+' conftest.er1 >conftest.err
2519 rm -f conftest.er1
2520 cat conftest.err >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -z "$ac_c_werror_flag"
2524 || test ! -s conftest.err'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 (eval $ac_try) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 ac_cv_prog_cc_g=yes
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_cv_prog_cc_g=no
2542 fi
2543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544 fi
2545 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2546 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2547 if test "$ac_test_CFLAGS" = set; then
2548 CFLAGS=$ac_save_CFLAGS
2549 elif test $ac_cv_prog_cc_g = yes; then
2550 if test "$GCC" = yes; then
2551 CFLAGS="-g -O2"
2552 else
2553 CFLAGS="-g"
2554 fi
2555 else
2556 if test "$GCC" = yes; then
2557 CFLAGS="-O2"
2558 else
2559 CFLAGS=
2560 fi
2561 fi
2562 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2563 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2564 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567 ac_cv_prog_cc_stdc=no
2568 ac_save_CC=$CC
2569 cat >conftest.$ac_ext <<_ACEOF
2570 /* confdefs.h. */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2575 #include <stdarg.h>
2576 #include <stdio.h>
2577 #include <sys/types.h>
2578 #include <sys/stat.h>
2579 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2580 struct buf { int x; };
2581 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2582 static char *e (p, i)
2583 char **p;
2584 int i;
2585 {
2586 return p[i];
2587 }
2588 static char *f (char * (*g) (char **, int), char **p, ...)
2589 {
2590 char *s;
2591 va_list v;
2592 va_start (v,p);
2593 s = g (p, va_arg (v,int));
2594 va_end (v);
2595 return s;
2596 }
2597
2598 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2599 function prototypes and stuff, but not '\xHH' hex character constants.
2600 These don't provoke an error unfortunately, instead are silently treated
2601 as 'x'. The following induces an error, until -std1 is added to get
2602 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2603 array size at least. It's necessary to write '\x00'==0 to get something
2604 that's true only with -std1. */
2605 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2606
2607 int test (int i, double x);
2608 struct s1 {int (*f) (int a);};
2609 struct s2 {int (*f) (double a);};
2610 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2611 int argc;
2612 char **argv;
2613 int
2614 main ()
2615 {
2616 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2617 ;
2618 return 0;
2619 }
2620 _ACEOF
2621 # Don't try gcc -ansi; that turns off useful extensions and
2622 # breaks some systems' header files.
2623 # AIX -qlanglvl=ansi
2624 # Ultrix and OSF/1 -std1
2625 # HP-UX 10.20 and later -Ae
2626 # HP-UX older versions -Aa -D_HPUX_SOURCE
2627 # SVR4 -Xc -D__EXTENSIONS__
2628 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2629 do
2630 CC="$ac_save_CC $ac_arg"
2631 rm -f conftest.$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633 (eval $ac_compile) 2>conftest.er1
2634 ac_status=$?
2635 grep -v '^ *+' conftest.er1 >conftest.err
2636 rm -f conftest.er1
2637 cat conftest.err >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } &&
2640 { ac_try='test -z "$ac_c_werror_flag"
2641 || test ! -s conftest.err'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; } &&
2647 { ac_try='test -s conftest.$ac_objext'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 (eval $ac_try) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; }; then
2653 ac_cv_prog_cc_stdc=$ac_arg
2654 break
2655 else
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2658
2659 fi
2660 rm -f conftest.err conftest.$ac_objext
2661 done
2662 rm -f conftest.$ac_ext conftest.$ac_objext
2663 CC=$ac_save_CC
2664
2665 fi
2666
2667 case "x$ac_cv_prog_cc_stdc" in
2668 x|xno)
2669 echo "$as_me:$LINENO: result: none needed" >&5
2670 echo "${ECHO_T}none needed" >&6 ;;
2671 *)
2672 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2673 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2674 CC="$CC $ac_cv_prog_cc_stdc" ;;
2675 esac
2676
2677 # Some people use a C++ compiler to compile C. Since we use `exit',
2678 # in C++ we need to declare it. In case someone uses the same compiler
2679 # for both compiling C and C++ we need to have the C++ compiler decide
2680 # the declaration of exit, since it's the most demanding environment.
2681 cat >conftest.$ac_ext <<_ACEOF
2682 #ifndef __cplusplus
2683 choke me
2684 #endif
2685 _ACEOF
2686 rm -f conftest.$ac_objext
2687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688 (eval $ac_compile) 2>conftest.er1
2689 ac_status=$?
2690 grep -v '^ *+' conftest.er1 >conftest.err
2691 rm -f conftest.er1
2692 cat conftest.err >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); } &&
2695 { ac_try='test -z "$ac_c_werror_flag"
2696 || test ! -s conftest.err'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; } &&
2702 { ac_try='test -s conftest.$ac_objext'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2708 for ac_declaration in \
2709 '' \
2710 'extern "C" void std::exit (int) throw (); using std::exit;' \
2711 'extern "C" void std::exit (int); using std::exit;' \
2712 'extern "C" void exit (int) throw ();' \
2713 'extern "C" void exit (int);' \
2714 'void exit (int);'
2715 do
2716 cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h. */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2722 $ac_declaration
2723 #include <stdlib.h>
2724 int
2725 main ()
2726 {
2727 exit (42);
2728 ;
2729 return 0;
2730 }
2731 _ACEOF
2732 rm -f conftest.$ac_objext
2733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734 (eval $ac_compile) 2>conftest.er1
2735 ac_status=$?
2736 grep -v '^ *+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag"
2742 || test ! -s conftest.err'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; } &&
2748 { ac_try='test -s conftest.$ac_objext'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 :
2755 else
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2758
2759 continue
2760 fi
2761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2762 cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h. */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2768 $ac_declaration
2769 int
2770 main ()
2771 {
2772 exit (42);
2773 ;
2774 return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 break
2800 else
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2803
2804 fi
2805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806 done
2807 rm -f conftest*
2808 if test -n "$ac_declaration"; then
2809 echo '#ifdef __cplusplus' >>confdefs.h
2810 echo $ac_declaration >>confdefs.h
2811 echo '#endif' >>confdefs.h
2812 fi
2813
2814 else
2815 echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2817
2818 fi
2819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825
2826 if test -z "$CC" ; then
2827 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2828 echo "$as_me: error: Failed to find a C compiler!" >&2;}
2829 { (exit 1); exit 1; }; }
2830 fi
2831 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2832 case "$CC" in
2833 clang* | */clang* ) ;;
2834 cl* | */cl* | CL* | */CL* )
2835 if test "$ac_cv_prog_cc_g" = yes ; then
2836 ac_cv_prog_cc_g=no
2837 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2838 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2839 fi ;;
2840 * )
2841 if test x"$CYGPATH_W" = x ; then
2842 CYGPATH_W=echo
2843 fi
2844 ;;
2845 esac
2846 CFLAGS="$save_cflags"
2847
2848 # add automake conditional so we can recognize cl compiler in makefile
2849 coin_cc_is_cl=false
2850 case "$CC" in
2851 clang* | */clang* ) ;;
2852 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2853 coin_cc_is_cl=true
2854 ;;
2855 esac
2856
2857
2858 if test $coin_cc_is_cl = true; then
2859 COIN_CC_IS_CL_TRUE=
2860 COIN_CC_IS_CL_FALSE='#'
2861 else
2862 COIN_CC_IS_CL_TRUE='#'
2863 COIN_CC_IS_CL_FALSE=
2864 fi
2865
2866
2867 # Check if a project specific CFLAGS variable has been set
2868 if test x$COIN_PRJCT != x; then
2869 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2870 if test x$coin_tmp = xset; then
2871 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2872 fi
2873 fi
2874
2875 if test x"$CFLAGS" = x; then
2876
2877 coin_add_cflags=
2878 coin_opt_cflags=
2879 coin_dbg_cflags=
2880 coin_warn_cflags=
2881
2882 if test "$GCC" = "yes"; then
2883 case "$CC" in
2884 icc* | */icc*)
2885 ;;
2886 *)
2887 coin_opt_cflags="-O3"
2888 coin_add_cflags="-pipe"
2889 coin_dbg_cflags="-g -O0"
2890 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2891 esac
2892 fi
2893 if test -z "$coin_opt_cflags"; then
2894 case $build in
2895 *-cygwin* | *-mingw*)
2896 case "$CC" in
2897 clang* | */clang* ) ;;
2898 cl* | */cl* | CL* | */CL*)
2899 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2900 coin_opt_cflags='-MD -O2'
2901 coin_dbg_cflags='-MDd'
2902 else
2903 coin_opt_cflags='-MT -O2'
2904 coin_dbg_cflags='-MTd'
2905 fi
2906 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2907 ;;
2908 icl* | */icl* | ICL* | */ICL*)
2909 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2910 coin_opt_cflags='-MD -Ox'
2911 coin_dbg_cflags='-MDd -debug'
2912 else
2913 coin_opt_cflags='-MT -Ox'
2914 coin_dbg_cflags='-MTd -debug'
2915 fi
2916 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2917 ;;
2918 esac
2919 ;;
2920 *-linux-*)
2921 case "$CC" in
2922 icc* | */icc*)
2923 coin_opt_cflags="-O3 -ip -mp1"
2924 coin_add_cflags=""
2925 coin_dbg_cflags="-g"
2926 # Check if -i_dynamic is necessary (for new glibc library)
2927 CFLAGS=
2928 cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h. */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2934
2935 int
2936 main ()
2937 {
2938 int i=0; i++;
2939 ;
2940 return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.$ac_objext conftest$ac_exeext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945 (eval $ac_link) 2>conftest.er1
2946 ac_status=$?
2947 grep -v '^ *+' conftest.er1 >conftest.err
2948 rm -f conftest.er1
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_c_werror_flag"
2953 || test ! -s conftest.err'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 (eval $ac_try) 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest$ac_exeext'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 (eval $ac_try) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; }; then
2965 :
2966 else
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970 coin_add_cflags="-i_dynamic $coin_add_cflags"
2971 fi
2972 rm -f conftest.err conftest.$ac_objext \
2973 conftest$ac_exeext conftest.$ac_ext
2974 ;;
2975 pgcc* | */pgcc*)
2976 coin_opt_cflags="-fast"
2977 coin_add_cflags="-Kieee -pc 64"
2978 coin_dbg_cflags="-g"
2979 ;;
2980 esac
2981 ;;
2982 *-ibm-*)
2983 case "$CC" in
2984 xlc* | */xlc* | mpxlc* | */mpxlc*)
2985 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2986 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2987 coin_dbg_cflags="-g"
2988 ;;
2989 esac
2990 ;;
2991 *-hp-*)
2992 coin_opt_cflags="-O"
2993 coin_add_cflags="-Ae"
2994 coin_dbg_cflags="-g"
2995 ;;
2996 *-*-solaris*)
2997 coin_opt_cflags="-xO4"
2998 coin_dbg_cflags="-g"
2999 ;;
3000 *-sgi-*)
3001 coin_opt_cflags="-O -OPT:Olimit=0"
3002 coin_dbg_cflags="-g"
3003 ;;
3004 esac
3005 fi
3006
3007 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3008 coin_dbg_cflags="-g"
3009 fi
3010
3011 if test -z "$coin_opt_cflags"; then
3012 # Try if -O option works if nothing else is set
3013 CFLAGS="-O"
3014 cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h. */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020
3021 int
3022 main ()
3023 {
3024 int i=0; i++;
3025 ;
3026 return 0;
3027 }
3028 _ACEOF
3029 rm -f conftest.$ac_objext conftest$ac_exeext
3030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3031 (eval $ac_link) 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_c_werror_flag"
3039 || test ! -s conftest.err'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest$ac_exeext'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 coin_opt_cflags="-O"
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 fi
3057 rm -f conftest.err conftest.$ac_objext \
3058 conftest$ac_exeext conftest.$ac_ext
3059 fi
3060
3061 # if PM doesn't want the warning messages, take them out
3062 if test x"$coin_skip_warn_cflags" = xyes; then
3063 coin_warn_cflags=
3064 fi
3065
3066 if test x${DBG_CFLAGS+set} != xset; then
3067 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3068 fi
3069 if test x${OPT_CFLAGS+set} != xset; then
3070 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3071 fi
3072
3073 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3074 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3075
3076 if test "$coin_debug_compile" = "true"; then
3077 CFLAGS="$DBG_CFLAGS"
3078 else
3079 CFLAGS="$OPT_CFLAGS"
3080 fi
3081 else
3082 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3083 if test x${DBG_CFLAGS+set} != xset; then
3084 DBG_CFLAGS="$CFLAGS"
3085 fi
3086 if test x${OPT_CFLAGS+set} != xset; then
3087 OPT_CFLAGS="$CFLAGS"
3088 fi
3089 fi
3090
3091 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3092 if test x$COIN_PRJCT != x; then
3093 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3094 fi
3095
3096 # Try if CFLAGS works
3097 save_CFLAGS="$CFLAGS"
3098 cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h. */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3104
3105 int
3106 main ()
3107 {
3108 int i=0; i++;
3109 ;
3110 return 0;
3111 }
3112 _ACEOF
3113 rm -f conftest.$ac_objext conftest$ac_exeext
3114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3115 (eval $ac_link) 2>conftest.er1
3116 ac_status=$?
3117 grep -v '^ *+' conftest.er1 >conftest.err
3118 rm -f conftest.er1
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -z "$ac_c_werror_flag"
3123 || test ! -s conftest.err'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 (eval $ac_try) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; } &&
3129 { ac_try='test -s conftest$ac_exeext'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131 (eval $ac_try) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 :
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 CFLAGS=
3141 fi
3142 rm -f conftest.err conftest.$ac_objext \
3143 conftest$ac_exeext conftest.$ac_ext
3144 if test -z "$CFLAGS"; then
3145 { 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
3146 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;}
3147 CFLAGS='-O'
3148 cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h. */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3154
3155 int
3156 main ()
3157 {
3158 int i=0; i++;
3159 ;
3160 return 0;
3161 }
3162 _ACEOF
3163 rm -f conftest.$ac_objext conftest$ac_exeext
3164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3165 (eval $ac_link) 2>conftest.er1
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } &&
3172 { ac_try='test -z "$ac_c_werror_flag"
3173 || test ! -s conftest.err'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 (eval $ac_try) 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest$ac_exeext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 (eval $ac_try) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3185 :
3186 else
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 CFLAGS=
3191 fi
3192 rm -f conftest.err conftest.$ac_objext \
3193 conftest$ac_exeext conftest.$ac_ext
3194 if test -z "$CFLAGS"; then
3195 { 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
3196 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;}
3197 fi
3198 fi
3199
3200 { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3201 echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3202
3203
3204 if test x"$MPICC" = x; then :; else
3205 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3206 echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3207 CC="$MPICC"
3208 fi
3209
3210 # Correct the LD variable if we are using the MS or Intel-windows compiler
3211 case "$CC" in
3212 clang* | */clang* ) ;;
3213 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3214 LD=link
3215 ;;
3216 esac
3217
3218 ac_ext=c
3219 ac_cpp='$CPP $CPPFLAGS'
3220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223
3224
3225
3226 #Let's try if that overcomes configuration problem with VC++ 6.0
3227
3228 ac_ext=cc
3229 ac_cpp='$CXXCPP $CPPFLAGS'
3230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3233
3234
3235
3236
3237
3238
3239
3240 coin_has_cxx=yes
3241
3242 save_cxxflags="$CXXFLAGS"
3243 # For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3244 case $build in
3245 *-cygwin* | *-mingw*)
3246 if test "$enable_msvc" = yes ; then
3247 comps="icl cl g++"
3248 else
3249 comps="g++ icl cl"
3250 fi ;;
3251 *-*-solaris*)
3252 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3253 *-darwin*) comps="clang++ g++ c++ CC" ;;
3254 *-linux-gnu*)
3255 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3256 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3257 esac
3258
3259 # We delete the cached value, since the test might not have been
3260 # performed with our choice of compilers earlier
3261 $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3262 # AC_MSG_NOTICE([C++ compiler candidates: $comps])
3263 ac_ext=cc
3264 ac_cpp='$CXXCPP $CPPFLAGS'
3265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3268 if test -n "$ac_tool_prefix"; then
3269 for ac_prog in $CCC $comps
3270 do
3271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3273 echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275 if test "${ac_cv_prog_CXX+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 if test -n "$CXX"; then
3279 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3291 fi
3292 done
3293 done
3294
3295 fi
3296 fi
3297 CXX=$ac_cv_prog_CXX
3298 if test -n "$CXX"; then
3299 echo "$as_me:$LINENO: result: $CXX" >&5
3300 echo "${ECHO_T}$CXX" >&6
3301 else
3302 echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6
3304 fi
3305
3306 test -n "$CXX" && break
3307 done
3308 fi
3309 if test -z "$CXX"; then
3310 ac_ct_CXX=$CXX
3311 for ac_prog in $CCC $comps
3312 do
3313 # Extract the first word of "$ac_prog", so it can be a program name with args.
3314 set dummy $ac_prog; ac_word=$2
3315 echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 if test -n "$ac_ct_CXX"; then
3321 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_ac_ct_CXX="$ac_prog"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334 done
3335 done
3336
3337 fi
3338 fi
3339 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3340 if test -n "$ac_ct_CXX"; then
3341 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3342 echo "${ECHO_T}$ac_ct_CXX" >&6
3343 else
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3346 fi
3347
3348 test -n "$ac_ct_CXX" && break
3349 done
3350 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3351
3352 CXX=$ac_ct_CXX
3353 fi
3354
3355
3356 # Provide some information about the compiler.
3357 echo "$as_me:$LINENO:" \
3358 "checking for C++ compiler version" >&5
3359 ac_compiler=`set X $ac_compile; echo $2`
3360 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3361 (eval $ac_compiler --version </dev/null >&5) 2>&5
3362 ac_status=$?
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }
3365 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3366 (eval $ac_compiler -v </dev/null >&5) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }
3370 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3371 (eval $ac_compiler -V </dev/null >&5) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }
3375
3376 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3377 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3378 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381 cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h. */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3387
3388 int
3389 main ()
3390 {
3391 #ifndef __GNUC__
3392 choke me
3393 #endif
3394
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 rm -f conftest.$ac_objext
3400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401 (eval $ac_compile) 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } &&
3408 { ac_try='test -z "$ac_cxx_werror_flag"
3409 || test ! -s conftest.err'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 ac_compiler_gnu=yes
3422 else
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426 ac_compiler_gnu=no
3427 fi
3428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3429 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3430
3431 fi
3432 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3433 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3434 GXX=`test $ac_compiler_gnu = yes && echo yes`
3435 ac_test_CXXFLAGS=${CXXFLAGS+set}
3436 ac_save_CXXFLAGS=$CXXFLAGS
3437 CXXFLAGS="-g"
3438 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3439 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3440 if test "${ac_cv_prog_cxx_g+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 cat >conftest.$ac_ext <<_ACEOF
3444 /* confdefs.h. */
3445 _ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h. */
3449
3450 int
3451 main ()
3452 {
3453
3454 ;
3455 return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.$ac_objext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>conftest.er1
3461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_cxx_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try='test -s conftest.$ac_objext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 ac_cv_prog_cxx_g=yes
3481 else
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 ac_cv_prog_cxx_g=no
3486 fi
3487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3488 fi
3489 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3490 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3491 if test "$ac_test_CXXFLAGS" = set; then
3492 CXXFLAGS=$ac_save_CXXFLAGS
3493 elif test $ac_cv_prog_cxx_g = yes; then
3494 if test "$GXX" = yes; then
3495 CXXFLAGS="-g -O2"
3496 else
3497 CXXFLAGS="-g"
3498 fi
3499 else
3500 if test "$GXX" = yes; then
3501 CXXFLAGS="-O2"
3502 else
3503 CXXFLAGS=
3504 fi
3505 fi
3506 for ac_declaration in \
3507 '' \
3508 'extern "C" void std::exit (int) throw (); using std::exit;' \
3509 'extern "C" void std::exit (int); using std::exit;' \
3510 'extern "C" void exit (int) throw ();' \
3511 'extern "C" void exit (int);' \
3512 'void exit (int);'
3513 do
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 $ac_declaration
3521 #include <stdlib.h>
3522 int
3523 main ()
3524 {
3525 exit (42);
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -z "$ac_cxx_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3552 :
3553 else
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 continue
3558 fi
3559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 $ac_declaration
3567 int
3568 main ()
3569 {
3570 exit (42);
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_cxx_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 break
3598 else
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602 fi
3603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3604 done
3605 rm -f conftest*
3606 if test -n "$ac_declaration"; then
3607 echo '#ifdef __cplusplus' >>confdefs.h
3608 echo $ac_declaration >>confdefs.h
3609 echo '#endif' >>confdefs.h
3610 fi
3611
3612 ac_ext=cc
3613 ac_cpp='$CXXCPP $CPPFLAGS'
3614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3617
3618
3619 #AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3620 #thus, we test here whether $CXX is actually working
3621 ac_ext=cc
3622 ac_cpp='$CXXCPP $CPPFLAGS'
3623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3626
3627 echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3628 echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3629 cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h. */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3635
3636 int
3637 main ()
3638 {
3639 int i=0;
3640 ;
3641 return 0;
3642 }
3643 _ACEOF
3644 rm -f conftest.$ac_objext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646 (eval $ac_compile) 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -z "$ac_cxx_werror_flag"
3654 || test ! -s conftest.err'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; } &&
3660 { ac_try='test -s conftest.$ac_objext'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; }; then
3666 echo "$as_me:$LINENO: result: yes" >&5
3667 echo "${ECHO_T}yes" >&6
3668 else
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3671
3672 echo "$as_me:$LINENO: result: no" >&5
3673 echo "${ECHO_T}no" >&6
3674 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3675 echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3676 { (exit 1); exit 1; }; }
3677
3678 fi
3679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3680 ac_ext=cc
3681 ac_cpp='$CXXCPP $CPPFLAGS'
3682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3685
3686
3687 coin_cxx_is_cl=false
3688 # It seems that we need to cleanup something here for the Windows
3689 case "$CXX" in
3690 clang* | */clang*) ;;
3691 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3692 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3693 mv confdefs.hh confdefs.h
3694 coin_cxx_is_cl=true
3695 ;;
3696 esac
3697
3698 # add automake conditional so we can recognize cl compiler in makefile
3699
3700
3701 if test $coin_cxx_is_cl = true; then
3702 COIN_CXX_IS_CL_TRUE=
3703 COIN_CXX_IS_CL_FALSE='#'
3704 else
3705 COIN_CXX_IS_CL_TRUE='#'
3706 COIN_CXX_IS_CL_FALSE=
3707 fi
3708
3709
3710 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3711 case "$CXX" in
3712 clang* | */clang* ) ;;
3713 cl* | */cl* | CL* | */CL* )
3714 if test "$ac_cv_prog_cxx_g" = yes ; then
3715 ac_cv_prog_cxx_g=no
3716 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3717 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3718 fi ;;
3719 * )
3720 if test x"$CYGPATH_W" = x ; then
3721 CYGPATH_W=echo
3722 fi
3723 ;;
3724 esac
3725 CXXFLAGS="$save_cxxflags"
3726
3727 # Check if a project specific CXXFLAGS variable has been set
3728 if test x$COIN_PRJCT != x; then
3729 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3730 if test x$coin_tmp = xset; then
3731 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3732 fi
3733 fi
3734
3735 if test x"$CXXFLAGS" = x; then
3736
3737 # ToDo decide whether we want -DNDEBUG for optimization
3738 coin_add_cxxflags=
3739 coin_opt_cxxflags=
3740 coin_dbg_cxxflags=
3741 coin_warn_cxxflags=
3742
3743 if test "$GXX" = "yes"; then
3744 case "$CXX" in
3745 icpc* | */icpc*)
3746 ;;
3747 *)
3748 # ToDo decide about unroll-loops
3749 coin_opt_cxxflags="-O3"
3750 coin_add_cxxflags="-pipe"
3751 coin_dbg_cxxflags="-g -O0"
3752 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3753 esac
3754 fi
3755
3756 # Note that we do not need to cover GCC in the following tests.
3757
3758 if test -z "$coin_opt_cxxflags"; then
3759 case $build in
3760 *-cygwin* | *-mingw*)
3761 case "$CXX" in
3762 clang* | */clang* ) ;;
3763 cl* | */cl* | CL* | */CL*)
3764 # The MT and MTd options are mutually exclusive
3765 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3766 coin_opt_cxxflags='-MD -O2'
3767 coin_dbg_cxxflags='-MDd'
3768 else
3769 coin_opt_cxxflags='-MT -O2'
3770 coin_dbg_cxxflags='-MTd'
3771 fi
3772 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3773 ;;
3774 icl* | */icl* | ICL* | */ICL*)
3775 # The MT and MTd options are mutually exclusive
3776 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3777 coin_opt_cxxflags='-MD -Ox'
3778 coin_dbg_cxxflags='-MDd -debug'
3779 else
3780 coin_opt_cxxflags='-MT -Ox'
3781 coin_dbg_cxxflags='-MTd -debug'
3782 fi
3783 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3784 ;;
3785 esac
3786 ;;
3787 *-linux-*)
3788 case "$CXX" in
3789 icpc* | */icpc*)
3790 coin_opt_cxxflags="-O3 -ip -mp1"
3791 coin_add_cxxflags=""
3792 coin_dbg_cxxflags="-g"
3793 # Check if -i_dynamic is necessary (for new glibc library)
3794 CXXFLAGS=
3795 cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h. */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801
3802 int
3803 main ()
3804 {
3805 int i=0; i++;
3806 ;
3807 return 0;
3808 }
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_cxx_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 coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3838 fi
3839 rm -f conftest.err conftest.$ac_objext \
3840 conftest$ac_exeext conftest.$ac_ext
3841 ;;
3842 pgCC* | */pgCC*)
3843 coin_opt_cxxflags="-fast"
3844 coin_add_cxxflags="-Kieee -pc 64"
3845 coin_dbg_cxxflags="-g"
3846 ;;
3847 esac
3848 ;;
3849 *-ibm-*)
3850 case "$CXX" in
3851 xlC* | */xlC* | mpxlC* | */mpxlC*)
3852 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3853 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3854 coin_dbg_cxxflags="-g"
3855 ;;
3856 esac
3857 ;;
3858 *-hp-*)
3859 case "$CXX" in
3860 aCC* | */aCC* )
3861 coin_opt_cxxflags="-O"
3862 coin_add_cxxflags="-AA"
3863 coin_dbg_cxxflags="-g"
3864 ;;
3865 esac
3866 ;;
3867 *-*-solaris*)
3868 coin_opt_cxxflags="-O4"
3869 coin_dbg_cxxflags="-g"
3870 ;;
3871 esac
3872 fi
3873
3874 # Generic flag settings. If these don't work, add a case above.
3875
3876 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3877 coin_dbg_cxxflags="-g"
3878 fi
3879
3880 if test -z "$coin_opt_cxxflags"; then
3881 # Try if -O option works if nothing else is set
3882 CXXFLAGS=-O
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889
3890 int
3891 main ()
3892 {
3893 int i=0; i++;
3894 ;
3895 return 0;
3896 }
3897 _ACEOF
3898 rm -f conftest.$ac_objext conftest$ac_exeext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3900 (eval $ac_link) 2>conftest.er1
3901 ac_status=$?
3902 grep -v '^ *+' conftest.er1 >conftest.err
3903 rm -f conftest.er1
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } &&
3907 { ac_try='test -z "$ac_cxx_werror_flag"
3908 || test ! -s conftest.err'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; } &&
3914 { ac_try='test -s conftest$ac_exeext'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3920 coin_opt_cxxflags="-O"
3921 else
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3924
3925 fi
3926 rm -f conftest.err conftest.$ac_objext \
3927 conftest$ac_exeext conftest.$ac_ext
3928 fi
3929
3930 # if PM doesn't want the warning messages, take them out
3931 if test x"$coin_skip_warn_cxxflags" = xyes; then
3932 coin_warn_cxxflags=
3933 fi
3934
3935 # Do final setup of flags based on values determined above.
3936
3937 if test x${DBG_CXXFLAGS+set} != xset; then
3938 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3939 fi
3940 if test x${OPT_CXXFLAGS+set} != xset; then
3941 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3942 fi
3943
3944 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3945 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3946
3947 if test "$coin_debug_compile" = "true"; then
3948 CXXFLAGS="$DBG_CXXFLAGS"
3949 else
3950 CXXFLAGS="$OPT_CXXFLAGS"
3951 fi
3952
3953 # Handle the case where CXXFLAGS was set externally.
3954 else
3955 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3956 if test x${DBG_CXXFLAGS+set} != xset; then
3957 DBG_CXXFLAGS="$CXXFLAGS"
3958 fi
3959 if test x${OPT_CXXFLAGS+set} != xset; then
3960 OPT_CXXFLAGS="$CXXFLAGS"
3961 fi
3962 fi
3963
3964 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3965 if test x$COIN_PRJCT != x; then
3966 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3967 fi
3968
3969 # Try if CXXFLAGS works
3970 save_CXXFLAGS="$CXXFLAGS"
3971 cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h. */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977
3978 int
3979 main ()
3980 {
3981 int i=0; i++;
3982 ;
3983 return 0;
3984 }
3985 _ACEOF
3986 rm -f conftest.$ac_objext conftest$ac_exeext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3988 (eval $ac_link) 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try='test -z "$ac_cxx_werror_flag"
3996 || test ! -s conftest.err'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 (eval $ac_try) 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; } &&
4002 { ac_try='test -s conftest$ac_exeext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 (eval $ac_try) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 :
4009 else
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4012
4013 CXXFLAGS=
4014 fi
4015 rm -f conftest.err conftest.$ac_objext \
4016 conftest$ac_exeext conftest.$ac_ext
4017 if test -z "$CXXFLAGS"; then
4018 { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work. I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
4019 echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work. I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
4020 CXXFLAGS='-O'
4021 cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h. */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4027
4028 int
4029 main ()
4030 {
4031 int i=0; i++;
4032 ;
4033 return 0;
4034 }
4035 _ACEOF
4036 rm -f conftest.$ac_objext conftest$ac_exeext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4038 (eval $ac_link) 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_cxx_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest$ac_exeext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 :
4059 else
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 CXXFLAGS=
4064 fi
4065 rm -f conftest.err conftest.$ac_objext \
4066 conftest$ac_exeext conftest.$ac_ext
4067 if test -z "$CXXFLAGS"; then
4068 { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work. I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
4069 echo "$as_me: WARNING: This value for CXXFLAGS does not work. I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
4070 fi
4071 fi
4072
4073 { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4074 echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4075
4076
4077 if test x"$MPICXX" = x; then :; else
4078 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4079 echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4080 CXX="$MPICXX"
4081 fi
4082
4083 # correct the LD variable in a build with MS or Intel-windows compiler
4084 case "$CXX" in
4085 clang* | */clang* ) ;;
4086 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4087 LD=link
4088 ;;
4089 esac
4090
4091 ac_ext=c
4092 ac_cpp='$CPP $CPPFLAGS'
4093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096
4097
4098
4099 # Initialize automake and libtool
4100 {
4101
4102
4103
4104 # START
4105
4106 coin_disable_shared=no
4107 # Test if force_shared has been set
4108 if test "x" = xforce_shared; then
4109 if test x$enable_shared = xno; then
4110 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4111 echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4112 { (exit 1); exit 1; }; }
4113 fi
4114 enable_shared=yes;
4115 else
4116 case $build in
4117 *-cygwin* | *-mingw*)
4118 coin_disable_shared=yes
4119 if test x"$enable_shared" = xyes; then
4120 case "$CC" in
4121 clang* | */clang* )
4122 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4123 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4124 ;;
4125 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4126 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4127 echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4128 ;;
4129 *gcc*)
4130 if test x"$enable_dependency_linking" = xyes; then
4131 coin_disable_shared=no
4132 else
4133 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4134 echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4135 fi
4136 ;;
4137 *)
4138 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4139 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4140 ;;
4141 esac
4142 fi
4143 ;;
4144 *-aix*)
4145 coin_disable_shared=yes
4146 platform=AIX
4147 if test x"$enable_shared" = xyes; then
4148 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4149 echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4150 fi
4151 ;;
4152 esac
4153 fi
4154 if test x"$coin_disable_shared" = xyes; then
4155 if test x"$enable_shared" = xyes; then
4156 :
4157 else
4158 # we don't disable shared, because it was not selected anyway
4159 coin_disable_shared=no
4160 fi
4161 enable_shared=no
4162 fi
4163 # By default, we only want the shared objects to be compiled
4164 # Check whether --enable-static or --disable-static was given.
4165 if test "${enable_static+set}" = set; then
4166 enableval="$enable_static"
4167 p=${PACKAGE-default}
4168 case $enableval in
4169 yes) enable_static=yes ;;
4170 no) enable_static=no ;;
4171 *)
4172 enable_static=no
4173 # Look at the argument we got. We use all the common list separators.
4174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4175 for pkg in $enableval; do
4176 IFS="$lt_save_ifs"
4177 if test "X$pkg" = "X$p"; then
4178 enable_static=yes
4179 fi
4180 done
4181 IFS="$lt_save_ifs"
4182 ;;
4183 esac
4184 else
4185 enable_static=no
4186 fi;
4187
4188
4189
4190
4191 # Initialize automake
4192 echo "$as_me:$LINENO: checking for egrep" >&5
4193 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4194 if test "${ac_cv_prog_egrep+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4198 then ac_cv_prog_egrep='grep -E'
4199 else ac_cv_prog_egrep='egrep'
4200 fi
4201 fi
4202 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4203 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4204 EGREP=$ac_cv_prog_egrep
4205
4206
4207 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4208 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4209 LN_S=$as_ln_s
4210 if test "$LN_S" = "ln -s"; then
4211 echo "$as_me:$LINENO: result: yes" >&5
4212 echo "${ECHO_T}yes" >&6
4213 else
4214 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4215 echo "${ECHO_T}no, using $LN_S" >&6
4216 fi
4217
4218 am__api_version="1.9"
4219 # Find a good install program. We prefer a C program (faster),
4220 # so one script is as good as another. But avoid the broken or
4221 # incompatible versions:
4222 # SysV /etc/install, /usr/sbin/install
4223 # SunOS /usr/etc/install
4224 # IRIX /sbin/install
4225 # AIX /bin/install
4226 # AmigaOS /C/install, which installs bootblocks on floppy discs
4227 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4230 # OS/2's system install, which has a completely different semantic
4231 # ./install, which can be erroneously created by make from ./install.sh.
4232 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4233 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4234 if test -z "$INSTALL"; then
4235 if test "${ac_cv_path_install+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 # Account for people who put trailing slashes in PATH elements.
4244 case $as_dir/ in
4245 ./ | .// | /cC/* | \
4246 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4247 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4248 /usr/ucb/* ) ;;
4249 *)
4250 # OSF1 and SCO ODT 3.0 have their own names for install.
4251 # Don't use installbsd from OSF since it installs stuff as root
4252 # by default.
4253 for ac_prog in ginstall scoinst install; do
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4256 if test $ac_prog = install &&
4257 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4258 # AIX install. It has an incompatible calling convention.
4259 :
4260 elif test $ac_prog = install &&
4261 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4262 # program-specific install script used by HP pwplus--don't use.
4263 :
4264 else
4265 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4266 break 3
4267 fi
4268 fi
4269 done
4270 done
4271 ;;
4272 esac
4273 done
4274
4275
4276 fi
4277 if test "${ac_cv_path_install+set}" = set; then
4278 INSTALL=$ac_cv_path_install
4279 else
4280 # As a last resort, use the slow shell script. We don't cache a
4281 # path for INSTALL within a source directory, because that will
4282 # break other packages using the cache if that directory is
4283 # removed, or if the path is relative.
4284 INSTALL=$ac_install_sh
4285 fi
4286 fi
4287 echo "$as_me:$LINENO: result: $INSTALL" >&5
4288 echo "${ECHO_T}$INSTALL" >&6
4289
4290 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4291 # It thinks the first close brace ends the variable substitution.
4292 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4293
4294 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4295
4296 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4297
4298 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4299 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4300 # Just in case
4301 sleep 1
4302 echo timestamp > conftest.file
4303 # Do `set' in a subshell so we don't clobber the current shell's
4304 # arguments. Must try -L first in case configure is actually a
4305 # symlink; some systems play weird games with the mod time of symlinks
4306 # (eg FreeBSD returns the mod time of the symlink's containing
4307 # directory).
4308 if (
4309 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4310 if test "$*" = "X"; then
4311 # -L didn't work.
4312 set X `ls -t $srcdir/configure conftest.file`
4313 fi
4314 rm -f conftest.file
4315 if test "$*" != "X $srcdir/configure conftest.file" \
4316 && test "$*" != "X conftest.file $srcdir/configure"; then
4317
4318 # If neither matched, then we have a broken ls. This can happen
4319 # if, for instance, CONFIG_SHELL is bash and it inherits a
4320 # broken ls alias from the environment. This has actually
4321 # happened. Such a system could not be considered "sane".
4322 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4323 alias in your environment" >&5
4324 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4325 alias in your environment" >&2;}
4326 { (exit 1); exit 1; }; }
4327 fi
4328
4329 test "$2" = conftest.file
4330 )
4331 then
4332 # Ok.
4333 :
4334 else
4335 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4336 Check your system clock" >&5
4337 echo "$as_me: error: newly created file is older than distributed files!
4338 Check your system clock" >&2;}
4339 { (exit 1); exit 1; }; }
4340 fi
4341 echo "$as_me:$LINENO: result: yes" >&5
4342 echo "${ECHO_T}yes" >&6
4343 test "$program_prefix" != NONE &&
4344 program_transform_name="s,^,$program_prefix,;$program_transform_name"
4345 # Use a double $ so make ignores it.
4346 test "$program_suffix" != NONE &&
4347 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4348 # Double any \ or $. echo might interpret backslashes.
4349 # By default was `s,x,x', remove it if useless.
4350 cat <<\_ACEOF >conftest.sed
4351 s/[\\$]/&&/g;s/;s,x,x,$//
4352 _ACEOF
4353 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4354 rm conftest.sed
4355
4356 # expand $ac_aux_dir to an absolute path
4357 am_aux_dir=`cd $ac_aux_dir && pwd`
4358
4359 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4360 # Use eval to expand $SHELL
4361 if eval "$MISSING --run true"; then
4362 am_missing_run="$MISSING --run "
4363 else
4364 am_missing_run=
4365 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4366 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4367 fi
4368
4369 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4370 # We used to keeping the `.' as first argument, in order to
4371 # allow $(mkdir_p) to be used without argument. As in
4372 # $(mkdir_p) $(somedir)
4373 # where $(somedir) is conditionally defined. However this is wrong
4374 # for two reasons:
4375 # 1. if the package is installed by a user who cannot write `.'
4376 # make install will fail,
4377 # 2. the above comment should most certainly read
4378 # $(mkdir_p) $(DESTDIR)$(somedir)
4379 # so it does not work when $(somedir) is undefined and
4380 # $(DESTDIR) is not.
4381 # To support the latter case, we have to write
4382 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4383 # so the `.' trick is pointless.
4384 mkdir_p='mkdir -p --'
4385 else
4386 # On NextStep and OpenStep, the `mkdir' command does not
4387 # recognize any option. It will interpret all options as
4388 # directories to create, and then abort because `.' already
4389 # exists.
4390 for d in ./-p ./--version;
4391 do
4392 test -d $d && rmdir $d
4393 done
4394 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4395 if test -f "$ac_aux_dir/mkinstalldirs"; then
4396 mkdir_p='$(mkinstalldirs)'
4397 else
4398 mkdir_p='$(install_sh) -d'
4399 fi
4400 fi
4401
4402 for ac_prog in gawk mawk nawk awk
4403 do
4404 # Extract the first word of "$ac_prog", so it can be a program name with args.
4405 set dummy $ac_prog; ac_word=$2
4406 echo "$as_me:$LINENO: checking for $ac_word" >&5
4407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4408 if test "${ac_cv_prog_AWK+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411 if test -n "$AWK"; then
4412 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4413 else
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4416 do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421 ac_cv_prog_AWK="$ac_prog"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425 done
4426 done
4427
4428 fi
4429 fi
4430 AWK=$ac_cv_prog_AWK
4431 if test -n "$AWK"; then
4432 echo "$as_me:$LINENO: result: $AWK" >&5
4433 echo "${ECHO_T}$AWK" >&6
4434 else
4435 echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6
4437 fi
4438
4439 test -n "$AWK" && break
4440 done
4441
4442 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4443 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4444 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4445 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 cat >conftest.make <<\_ACEOF
4449 all:
4450 @echo 'ac_maketemp="$(MAKE)"'
4451 _ACEOF
4452 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4453 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4454 if test -n "$ac_maketemp"; then
4455 eval ac_cv_prog_make_${ac_make}_set=yes
4456 else
4457 eval ac_cv_prog_make_${ac_make}_set=no
4458 fi
4459 rm -f conftest.make
4460 fi
4461 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4462 echo "$as_me:$LINENO: result: yes" >&5
4463 echo "${ECHO_T}yes" >&6
4464 SET_MAKE=
4465 else
4466 echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4468 SET_MAKE="MAKE=${MAKE-make}"
4469 fi
4470
4471 rm -rf .tst 2>/dev/null
4472 mkdir .tst 2>/dev/null
4473 if test -d .tst; then
4474 am__leading_dot=.
4475 else
4476 am__leading_dot=_
4477 fi
4478 rmdir .tst 2>/dev/null
4479
4480 DEPDIR="${am__leading_dot}deps"
4481
4482 ac_config_commands="$ac_config_commands depfiles"
4483
4484
4485 am_make=${MAKE-make}
4486 cat > confinc << 'END'
4487 am__doit:
4488 @echo done
4489 .PHONY: am__doit
4490 END
4491 # If we don't find an include directive, just comment out the code.
4492 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4493 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4494 am__include="#"
4495 am__quote=
4496 _am_result=none
4497 # First try GNU make style include.
4498 echo "include confinc" > confmf
4499 # We grep out `Entering directory' and `Leaving directory'
4500 # messages which can occur if `w' ends up in MAKEFLAGS.
4501 # In particular we don't look at `^make:' because GNU make might
4502 # be invoked under some other name (usually "gmake"), in which
4503 # case it prints its new name instead of `make'.
4504 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4505 am__include=include
4506 am__quote=
4507 _am_result=GNU
4508 fi
4509 # Now try BSD make style include.
4510 if test "$am__include" = "#"; then
4511 echo '.include "confinc"' > confmf
4512 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4513 am__include=.include
4514 am__quote="\""
4515 _am_result=BSD
4516 fi
4517 fi
4518
4519
4520 echo "$as_me:$LINENO: result: $_am_result" >&5
4521 echo "${ECHO_T}$_am_result" >&6
4522 rm -f confinc confmf
4523
4524 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4525 if test "${enable_dependency_tracking+set}" = set; then
4526 enableval="$enable_dependency_tracking"
4527
4528 fi;
4529 if test "x$enable_dependency_tracking" != xno; then
4530 am_depcomp="$ac_aux_dir/depcomp"
4531 AMDEPBACKSLASH='\'
4532 fi
4533
4534
4535 if test "x$enable_dependency_tracking" != xno; then
4536 AMDEP_TRUE=
4537 AMDEP_FALSE='#'
4538 else
4539 AMDEP_TRUE='#'
4540 AMDEP_FALSE=
4541 fi
4542
4543
4544
4545
4546
4547
4548 # AC_MSG_NOTICE([Beginning automake initialisation.])
4549 # Stuff for automake
4550 # test to see if srcdir already configured
4551 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4552 test -f $srcdir/config.status; then
4553 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4554 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4555 { (exit 1); exit 1; }; }
4556 fi
4557
4558 # test whether we have cygpath
4559 if test -z "$CYGPATH_W"; then
4560 if (cygpath --version) >/dev/null 2>/dev/null; then
4561 CYGPATH_W='cygpath -w'
4562 else
4563 CYGPATH_W=echo
4564 fi
4565 fi
4566
4567
4568 # Define the identity of the package.
4569 PACKAGE='clp'
4570 VERSION='1.17.10'
4571
4572
4573 cat >>confdefs.h <<_ACEOF
4574 #define PACKAGE "$PACKAGE"
4575 _ACEOF
4576
4577
4578 cat >>confdefs.h <<_ACEOF
4579 #define VERSION "$VERSION"
4580 _ACEOF
4581
4582 # Some tools Automake needs.
4583
4584 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4585
4586
4587 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4588
4589
4590 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4591
4592
4593 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4594
4595
4596 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4597
4598 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4599
4600 # Installed binaries are usually stripped using `strip' when the user
4601 # run `make install-strip'. However `strip' might not be the right
4602 # tool to use in cross-compilation environments, therefore Automake
4603 # will honor the `STRIP' environment variable to overrule this program.
4604 if test "$cross_compiling" != no; then
4605 if test -n "$ac_tool_prefix"; then
4606 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4607 set dummy ${ac_tool_prefix}strip; ac_word=$2
4608 echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4610 if test "${ac_cv_prog_STRIP+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613 if test -n "$STRIP"; then
4614 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627 done
4628 done
4629
4630 fi
4631 fi
4632 STRIP=$ac_cv_prog_STRIP
4633 if test -n "$STRIP"; then
4634 echo "$as_me:$LINENO: result: $STRIP" >&5
4635 echo "${ECHO_T}$STRIP" >&6
4636 else
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639 fi
4640
4641 fi
4642 if test -z "$ac_cv_prog_STRIP"; then
4643 ac_ct_STRIP=$STRIP
4644 # Extract the first word of "strip", so it can be a program name with args.
4645 set dummy strip; ac_word=$2
4646 echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4648 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651 if test -n "$ac_ct_STRIP"; then
4652 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661 ac_cv_prog_ac_ct_STRIP="strip"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665 done
4666 done
4667
4668 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4669 fi
4670 fi
4671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4672 if test -n "$ac_ct_STRIP"; then
4673 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4674 echo "${ECHO_T}$ac_ct_STRIP" >&6
4675 else
4676 echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4678 fi
4679
4680 STRIP=$ac_ct_STRIP
4681 else
4682 STRIP="$ac_cv_prog_STRIP"
4683 fi
4684
4685 fi
4686 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4687
4688 # We need awk for the "check" target. The system "awk" is bad on
4689 # some platforms.
4690 # Always define AMTAR for backward compatibility.
4691
4692 AMTAR=${AMTAR-"${am_missing_run}tar"}
4693
4694 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4695
4696
4697
4698
4699 depcc="$CC" am_compiler_list=
4700
4701 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4702 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4703 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4707 # We make a subdir and do the tests there. Otherwise we can end up
4708 # making bogus files that we don't know about and never remove. For
4709 # instance it was reported that on HP-UX the gcc test will end up
4710 # making a dummy file named `D' -- because `-MD' means `put the output
4711 # in D'.
4712 mkdir conftest.dir
4713 # Copy depcomp to subdir because otherwise we won't find it if we're
4714 # using a relative directory.
4715 cp "$am_depcomp" conftest.dir
4716 cd conftest.dir
4717 # We will build objects and dependencies in a subdirectory because
4718 # it helps to detect inapplicable dependency modes. For instance
4719 # both Tru64's cc and ICC support -MD to output dependencies as a
4720 # side effect of compilation, but ICC will put the dependencies in
4721 # the current directory while Tru64 will put them in the object
4722 # directory.
4723 mkdir sub
4724
4725 am_cv_CC_dependencies_compiler_type=none
4726 if test "$am_compiler_list" = ""; then
4727 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4728 fi
4729 for depmode in $am_compiler_list; do
4730 # Setup a source with many dependencies, because some compilers
4731 # like to wrap large dependency lists on column 80 (with \), and
4732 # we should not choose a depcomp mode which is confused by this.
4733 #
4734 # We need to recreate these files for each test, as the compiler may
4735 # overwrite some of them when testing with obscure command lines.
4736 # This happens at least with the AIX C compiler.
4737 : > sub/conftest.c
4738 for i in 1 2 3 4 5 6; do
4739 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4740 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4741 # Solaris 8's {/usr,}/bin/sh.
4742 touch sub/conftst$i.h
4743 done
4744 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4745
4746 case $depmode in
4747 nosideeffect)
4748 # after this tag, mechanisms are not by side-effect, so they'll
4749 # only be used when explicitly requested
4750 if test "x$enable_dependency_tracking" = xyes; then
4751 continue
4752 else
4753 break
4754 fi
4755 ;;
4756 none) break ;;
4757 esac
4758 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4759 # mode. It turns out that the SunPro C++ compiler does not properly
4760 # handle `-M -o', and we need to detect this.
4761 if depmode=$depmode \
4762 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4763 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4764 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4765 >/dev/null 2>conftest.err &&
4766 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4767 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4768 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4769 # icc doesn't choke on unknown options, it will just issue warnings
4770 # or remarks (even with -Werror). So we grep stderr for any message
4771 # that says an option was ignored or not supported.
4772 # When given -MP, icc 7.0 and 7.1 complain thusly:
4773 # icc: Command line warning: ignoring option '-M'; no argument required
4774 # The diagnosis changed in icc 8.0:
4775 # icc: Command line remark: option '-MP' not supported
4776 if (grep 'ignoring option' conftest.err ||
4777 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4778 am_cv_CC_dependencies_compiler_type=$depmode
4779 break
4780 fi
4781 fi
4782 done
4783
4784 cd ..
4785 rm -rf conftest.dir
4786 else
4787 am_cv_CC_dependencies_compiler_type=none
4788 fi
4789
4790 fi
4791 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4792 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4793 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4794
4795
4796
4797 if
4798 test "x$enable_dependency_tracking" != xno \
4799 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4800 am__fastdepCC_TRUE=
4801 am__fastdepCC_FALSE='#'
4802 else
4803 am__fastdepCC_TRUE='#'
4804 am__fastdepCC_FALSE=
4805 fi
4806
4807
4808 depcc="$CXX" am_compiler_list=
4809
4810 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4811 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4812 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4816 # We make a subdir and do the tests there. Otherwise we can end up
4817 # making bogus files that we don't know about and never remove. For
4818 # instance it was reported that on HP-UX the gcc test will end up
4819 # making a dummy file named `D' -- because `-MD' means `put the output
4820 # in D'.
4821 mkdir conftest.dir
4822 # Copy depcomp to subdir because otherwise we won't find it if we're
4823 # using a relative directory.
4824 cp "$am_depcomp" conftest.dir
4825 cd conftest.dir
4826 # We will build objects and dependencies in a subdirectory because
4827 # it helps to detect inapplicable dependency modes. For instance
4828 # both Tru64's cc and ICC support -MD to output dependencies as a
4829 # side effect of compilation, but ICC will put the dependencies in
4830 # the current directory while Tru64 will put them in the object
4831 # directory.
4832 mkdir sub
4833
4834 am_cv_CXX_dependencies_compiler_type=none
4835 if test "$am_compiler_list" = ""; then
4836 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4837 fi
4838 for depmode in $am_compiler_list; do
4839 # Setup a source with many dependencies, because some compilers
4840 # like to wrap large dependency lists on column 80 (with \), and
4841 # we should not choose a depcomp mode which is confused by this.
4842 #
4843 # We need to recreate these files for each test, as the compiler may
4844 # overwrite some of them when testing with obscure command lines.
4845 # This happens at least with the AIX C compiler.
4846 : > sub/conftest.c
4847 for i in 1 2 3 4 5 6; do
4848 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4849 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4850 # Solaris 8's {/usr,}/bin/sh.
4851 touch sub/conftst$i.h
4852 done
4853 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4854
4855 case $depmode in
4856 nosideeffect)
4857 # after this tag, mechanisms are not by side-effect, so they'll
4858 # only be used when explicitly requested
4859 if test "x$enable_dependency_tracking" = xyes; then
4860 continue
4861 else
4862 break
4863 fi
4864 ;;
4865 none) break ;;
4866 esac
4867 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4868 # mode. It turns out that the SunPro C++ compiler does not properly
4869 # handle `-M -o', and we need to detect this.
4870 if depmode=$depmode \
4871 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4872 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4873 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4874 >/dev/null 2>conftest.err &&
4875 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4876 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4877 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4878 # icc doesn't choke on unknown options, it will just issue warnings
4879 # or remarks (even with -Werror). So we grep stderr for any message
4880 # that says an option was ignored or not supported.
4881 # When given -MP, icc 7.0 and 7.1 complain thusly:
4882 # icc: Command line warning: ignoring option '-M'; no argument required
4883 # The diagnosis changed in icc 8.0:
4884 # icc: Command line remark: option '-MP' not supported
4885 if (grep 'ignoring option' conftest.err ||
4886 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4887 am_cv_CXX_dependencies_compiler_type=$depmode
4888 break
4889 fi
4890 fi
4891 done
4892
4893 cd ..
4894 rm -rf conftest.dir
4895 else
4896 am_cv_CXX_dependencies_compiler_type=none
4897 fi
4898
4899 fi
4900 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4901 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4902 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4903
4904
4905
4906 if
4907 test "x$enable_dependency_tracking" != xno \
4908 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4909 am__fastdepCXX_TRUE=
4910 am__fastdepCXX_FALSE='#'
4911 else
4912 am__fastdepCXX_TRUE='#'
4913 am__fastdepCXX_FALSE=
4914 fi
4915
4916
4917
4918 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4919 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4920 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4921 if test "${enable_maintainer_mode+set}" = set; then
4922 enableval="$enable_maintainer_mode"
4923 USE_MAINTAINER_MODE=$enableval
4924 else
4925 USE_MAINTAINER_MODE=no
4926 fi;
4927 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4928 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4929
4930
4931 if test $USE_MAINTAINER_MODE = yes; then
4932 MAINTAINER_MODE_TRUE=
4933 MAINTAINER_MODE_FALSE='#'
4934 else
4935 MAINTAINER_MODE_TRUE='#'
4936 MAINTAINER_MODE_FALSE=
4937 fi
4938
4939 MAINT=$MAINTAINER_MODE_TRUE
4940
4941
4942
4943 coin_have_externals=no
4944 if test "$enable_maintainer_mode" = yes; then
4945
4946 # If maintainer mode is chosen, we make sure that the correct versions
4947 # of the tools are used, and that we know where libtool.m4 is (to
4948 # recreate acinclude.m4)
4949
4950
4951 LIBTOOLM4=
4952 # Normally, $HOME
4953 AUTOTOOLS_DFLT=$HOME
4954
4955 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4956 echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4957 if test "${ac_cv_use_correct_autotools+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960 ac_cv_use_correct_autotools=check
4961 fi
4962 echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4963 echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4964
4965 if test $ac_cv_use_correct_autotools = check; then
4966 ac_cv_use_correct_autotools=yes
4967 # Check if we have autoconf
4968 # Extract the first word of "autoconf", so it can be a program name with args.
4969 set dummy autoconf; ac_word=$2
4970 echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972 if test "${ac_cv_prog_have_autoconf+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975 if test -n "$have_autoconf"; then
4976 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_have_autoconf="yes"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4988 fi
4989 done
4990 done
4991
4992 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4993 fi
4994 fi
4995 have_autoconf=$ac_cv_prog_have_autoconf
4996 if test -n "$have_autoconf"; then
4997 echo "$as_me:$LINENO: result: $have_autoconf" >&5
4998 echo "${ECHO_T}$have_autoconf" >&6
4999 else
5000 echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5002 fi
5003
5004 if test $have_autoconf = no; then
5005 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5006 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5007 { (exit 1); exit 1; }; }
5008 fi
5009
5010 # Check whether autoconf is the correct version
5011 correct_version='2.59'
5012 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5013 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5014 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5015 autoconf --version > confauto.out 2>&1
5016 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5017 echo "$as_me:$LINENO: result: yes" >&5
5018 echo "${ECHO_T}yes" >&6
5019 else
5020 rm -f confauto.out
5021 echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6
5023 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5024 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5025 { (exit 1); exit 1; }; }
5026 fi
5027 rm -f confauto.out
5028
5029 # Check if the executable autoconf is picked up from the correct location
5030 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5031 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5032 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5033 autoconf_dir=`cd $autoconf_dir; pwd`
5034 if test x$AUTOTOOLS_DIR = x; then
5035 want_dir=$AUTOTOOLS_DFLT/bin
5036 else
5037 want_dir=$AUTOTOOLS_DIR/bin
5038 fi
5039 if test $autoconf_dir = `cd $want_dir; pwd`; then
5040 echo "$as_me:$LINENO: result: yes" >&5
5041 echo "${ECHO_T}yes" >&6
5042 else
5043 rm -f confauto.out
5044 echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5046 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5047 echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5048 { (exit 1); exit 1; }; }
5049 fi
5050
5051 # Check if we have automake
5052 # Extract the first word of "automake", so it can be a program name with args.
5053 set dummy automake; ac_word=$2
5054 echo "$as_me:$LINENO: checking for $ac_word" >&5
5055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5056 if test "${ac_cv_prog_have_automake+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059 if test -n "$have_automake"; then
5060 ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5064 do
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069 ac_cv_prog_have_automake="yes"
5070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5072 fi
5073 done
5074 done
5075
5076 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5077 fi
5078 fi
5079 have_automake=$ac_cv_prog_have_automake
5080 if test -n "$have_automake"; then
5081 echo "$as_me:$LINENO: result: $have_automake" >&5
5082 echo "${ECHO_T}$have_automake" >&6
5083 else
5084 echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6
5086 fi
5087
5088 if test $have_automake = no; then
5089 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5090 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5091 { (exit 1); exit 1; }; }
5092 fi
5093
5094 # Check whether automake is the correct version
5095 correct_version='1.9.6'
5096 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5097 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5098 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5099 automake --version > confauto.out 2>&1
5100 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5101 echo "$as_me:$LINENO: result: yes" >&5
5102 echo "${ECHO_T}yes" >&6
5103 else
5104 rm -f confauto.out
5105 echo "$as_me:$LINENO: result: no" >&5
5106 echo "${ECHO_T}no" >&6
5107 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5108 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5109 { (exit 1); exit 1; }; }
5110 fi
5111 rm -f confauto.out
5112
5113 # Check if the executable automake is picked up from the correct location
5114 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5115 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5116 automake_dir=`which automake | sed -e 's=/automake=='`
5117 automake_dir=`cd $automake_dir; pwd`
5118 if test x$AUTOTOOLS_DIR = x; then
5119 want_dir=$AUTOTOOLS_DFLT/bin
5120 else
5121 want_dir=$AUTOTOOLS_DIR/bin
5122 fi
5123 if test $automake_dir = `cd $want_dir; pwd`; then
5124 echo "$as_me:$LINENO: result: yes" >&5
5125 echo "${ECHO_T}yes" >&6
5126 else
5127 rm -f confauto.out
5128 echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6
5130 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5131 echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5132 { (exit 1); exit 1; }; }
5133 fi
5134
5135 # Check if this is the correct version of libtool (with escaped dots)
5136 if test x$AUTOTOOLS_DIR = x; then
5137 want_dir=$AUTOTOOLS_DFLT/share
5138 else
5139 want_dir=$AUTOTOOLS_DIR/share
5140 fi
5141 correct_version='1.5.22'
5142 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5143 if test -r $want_dir/libtool/ltmain.sh; then
5144 have_ltmain=yes
5145 :
5146 else
5147 have_ltmain=no
5148 :
5149 fi
5150
5151 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5152 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5153 if test $have_ltmain = yes; then
5154 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5155 echo "$as_me:$LINENO: result: yes" >&5
5156 echo "${ECHO_T}yes" >&6
5157 else
5158 echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6
5160 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5161 echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5162 { (exit 1); exit 1; }; }
5163 fi
5164 else
5165 echo "$as_me:$LINENO: result: no" >&5
5166 echo "${ECHO_T}no" >&6
5167 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5168 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5169 { (exit 1); exit 1; }; }
5170 fi
5171 fi
5172
5173 # Check if we can find the libtool file
5174 if test x$AUTOTOOLS_DIR = x; then
5175 want_dir=$AUTOTOOLS_DFLT/share
5176 else
5177 want_dir=$AUTOTOOLS_DIR/share
5178 fi
5179 if test -r $want_dir/aclocal/libtool.m4; then
5180 LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5181 :
5182 else
5183 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5184 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5185 { (exit 1); exit 1; }; }
5186 :
5187 fi
5188
5189
5190 # Check if we have an Dependencies file
5191 if test -r $srcdir/Dependencies; then
5192 coin_have_externals=yes
5193 fi
5194 # Check if subversion is installed and understands https
5195 # Extract the first word of "svn", so it can be a program name with args.
5196 set dummy svn; ac_word=$2
5197 echo "$as_me:$LINENO: checking for $ac_word" >&5
5198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5199 if test "${ac_cv_prog_have_svn+set}" = set; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 else
5202 if test -n "$have_svn"; then
5203 ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_have_svn="yes"
5213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5215 fi
5216 done
5217 done
5218
5219 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5220 fi
5221 fi
5222 have_svn=$ac_cv_prog_have_svn
5223 if test -n "$have_svn"; then
5224 echo "$as_me:$LINENO: result: $have_svn" >&5
5225 echo "${ECHO_T}$have_svn" >&6
5226 else
5227 echo "$as_me:$LINENO: result: no" >&5
5228 echo "${ECHO_T}no" >&6
5229 fi
5230
5231 if test x$have_svn = xyes; then
5232 echo "$as_me:$LINENO: checking whether svn understands https" >&5
5233 echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5234 if test "${ac_cv_svn_understands_https+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237 svn --version > confauto.out 2>&1
5238 if $EGREP https confauto.out >/dev/null 2>&1; then
5239 ac_cv_svn_understands_https=yes
5240 else
5241 ac_cv_svn_understands_https=no
5242 have_svn=no
5243 ac_cv_prog_have_svn=no
5244 fi
5245 rm -f confauto.out
5246 fi
5247 echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5248 echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5249 fi
5250
5251 # Find the location of the BuildTools directory
5252 BUILDTOOLSDIR=
5253 if test -r $srcdir/BuildTools/coin.m4; then
5254 BUILDTOOLSDIR=$srcdir/BuildTools
5255 elif test -r $srcdir/../BuildTools/coin.m4; then
5256 BUILDTOOLSDIR=$srcdir/../BuildTools
5257 elif test -r $srcdir/../../BuildTools/coin.m4; then
5258 BUILDTOOLSDIR=$srcdir/../../BuildTools
5259 elif test -r $srcdir/../../../BuildTools/coin.m4; then
5260 BUILDTOOLSDIR=$srcdir/../../../BuildTools
5261 else
5262 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5263 echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5264 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5265 fi
5266
5267
5268 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5269 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5270 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5271 fi
5272
5273 # The following variable is set to the name of the directory where
5274 # the autotool scripts are located
5275
5276 AUX_DIR=$ac_aux_dir
5277 fi
5278
5279 # helpful variable for the base directory of this package
5280 abs_source_dir=`cd $srcdir; pwd`
5281
5282
5283 # Stuff for example Makefiles
5284 if test x$prefix = xNONE; then
5285 full_prefix=$ac_default_prefix
5286 else
5287 full_prefix=$prefix
5288 fi
5289
5290
5291 abs_lib_dir=$full_prefix/lib
5292
5293 abs_include_dir=$full_prefix/include
5294
5295 abs_bin_dir=$full_prefix/bin
5296
5297
5298
5299 if test $coin_have_externals = yes && test x$have_svn = xyes; then
5300 HAVE_EXTERNALS_TRUE=
5301 HAVE_EXTERNALS_FALSE='#'
5302 else
5303 HAVE_EXTERNALS_TRUE='#'
5304 HAVE_EXTERNALS_FALSE=
5305 fi
5306
5307
5308 # AC_MSG_NOTICE([End automake initialisation.])
5309
5310
5311
5312 LIBTOOL=
5313 if test -f ../libtool; then
5314 coin_config_dir=..
5315 LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5316 fi
5317 if test "x$LIBTOOL" = x; then
5318 if test -f ../../libtool; then
5319 coin_config_dir=../..
5320 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5321 fi
5322 fi
5323
5324 if test "x$LIBTOOL" = x; then
5325 # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5326 # Stuff for libtool
5327 # Check whether --enable-shared or --disable-shared was given.
5328 if test "${enable_shared+set}" = set; then
5329 enableval="$enable_shared"
5330 p=${PACKAGE-default}
5331 case $enableval in
5332 yes) enable_shared=yes ;;
5333 no) enable_shared=no ;;
5334 *)
5335 enable_shared=no
5336 # Look at the argument we got. We use all the common list separators.
5337 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5338 for pkg in $enableval; do
5339 IFS="$lt_save_ifs"
5340 if test "X$pkg" = "X$p"; then
5341 enable_shared=yes
5342 fi
5343 done
5344 IFS="$lt_save_ifs"
5345 ;;
5346 esac
5347 else
5348 enable_shared=yes
5349 fi;
5350
5351 # Check whether --enable-fast-install or --disable-fast-install was given.
5352 if test "${enable_fast_install+set}" = set; then
5353 enableval="$enable_fast_install"
5354 p=${PACKAGE-default}
5355 case $enableval in
5356 yes) enable_fast_install=yes ;;
5357 no) enable_fast_install=no ;;
5358 *)
5359 enable_fast_install=no
5360 # Look at the argument we got. We use all the common list separators.
5361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5362 for pkg in $enableval; do
5363 IFS="$lt_save_ifs"
5364 if test "X$pkg" = "X$p"; then
5365 enable_fast_install=yes
5366 fi
5367 done
5368 IFS="$lt_save_ifs"
5369 ;;
5370 esac
5371 else
5372 enable_fast_install=yes
5373 fi;
5374
5375 echo "$as_me:$LINENO: checking host system type" >&5
5376 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5377 if test "${ac_cv_host+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380 ac_cv_host_alias=$host_alias
5381 test -z "$ac_cv_host_alias" &&
5382 ac_cv_host_alias=$ac_cv_build_alias
5383 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5384 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5385 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5386 { (exit 1); exit 1; }; }
5387
5388 fi
5389 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5390 echo "${ECHO_T}$ac_cv_host" >&6
5391 host=$ac_cv_host
5392 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5393 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5394 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5395
5396
5397 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5398 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5399 if test "${lt_cv_path_SED+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402 # Loop through the user's path and test for sed and gsed.
5403 # Then use that list of sed's as ones to test for truncation.
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for lt_ac_prog in sed gsed; do
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5412 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5413 fi
5414 done
5415 done
5416 done
5417 lt_ac_max=0
5418 lt_ac_count=0
5419 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5420 # along with /bin/sed that truncates output.
5421 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5422 test ! -f $lt_ac_sed && continue
5423 cat /dev/null > conftest.in
5424 lt_ac_count=0
5425 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5426 # Check for GNU sed and select it if it is found.
5427 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5428 lt_cv_path_SED=$lt_ac_sed
5429 break
5430 fi
5431 while true; do
5432 cat conftest.in conftest.in >conftest.tmp
5433 mv conftest.tmp conftest.in
5434 cp conftest.in conftest.nl
5435 echo >>conftest.nl
5436 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5437 cmp -s conftest.out conftest.nl || break
5438 # 10000 chars as input seems more than enough
5439 test $lt_ac_count -gt 10 && break
5440 lt_ac_count=`expr $lt_ac_count + 1`
5441 if test $lt_ac_count -gt $lt_ac_max; then
5442 lt_ac_max=$lt_ac_count
5443 lt_cv_path_SED=$lt_ac_sed
5444 fi
5445 done
5446 done
5447
5448 fi
5449
5450 SED=$lt_cv_path_SED
5451 echo "$as_me:$LINENO: result: $SED" >&5
5452 echo "${ECHO_T}$SED" >&6
5453
5454
5455 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5456 if test "${with_gnu_ld+set}" = set; then
5457 withval="$with_gnu_ld"
5458 test "$withval" = no || with_gnu_ld=yes
5459 else
5460 with_gnu_ld=no
5461 fi;
5462 ac_prog=ld
5463 if test "$GCC" = yes; then
5464 # Check if gcc -print-prog-name=ld gives a path.
5465 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5466 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5467 case $host in
5468 *-*-mingw*)
5469 # gcc leaves a trailing carriage return which upsets mingw
5470 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5471 *)
5472 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5473 esac
5474 case $ac_prog in
5475 # Accept absolute paths.
5476 [\\/]* | ?:[\\/]*)
5477 re_direlt='/[^/][^/]*/\.\./'
5478 # Canonicalize the pathname of ld
5479 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5480 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5481 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5482 done
5483 test -z "$LD" && LD="$ac_prog"
5484 ;;
5485 "")
5486 # If it fails, then pretend we aren't using GCC.
5487 ac_prog=ld
5488 ;;
5489 *)
5490 # If it is relative, then search for the first ld in PATH.
5491 with_gnu_ld=unknown
5492 ;;
5493 esac
5494 elif test "$with_gnu_ld" = yes; then
5495 echo "$as_me:$LINENO: checking for GNU ld" >&5
5496 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5497 else
5498 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5499 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5500 fi
5501 if test "${lt_cv_path_LD+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504 if test -z "$LD"; then
5505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5506 for ac_dir in $PATH; do
5507 IFS="$lt_save_ifs"
5508 test -z "$ac_dir" && ac_dir=.
5509 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5510 lt_cv_path_LD="$ac_dir/$ac_prog"
5511 # Check to see if the program is GNU ld. I'd rather use --version,
5512 # but apparently some variants of GNU ld only accept -v.
5513 # Break only if it was the GNU/non-GNU ld that we prefer.
5514 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5515 *GNU* | *'with BFD'*)
5516 test "$with_gnu_ld" != no && break
5517 ;;
5518 *)
5519 test "$with_gnu_ld" != yes && break
5520 ;;
5521 esac
5522 fi
5523 done
5524 IFS="$lt_save_ifs"
5525 else
5526 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5527 fi
5528 fi
5529
5530 LD="$lt_cv_path_LD"
5531 if test -n "$LD"; then
5532 echo "$as_me:$LINENO: result: $LD" >&5
5533 echo "${ECHO_T}$LD" >&6
5534 else
5535 echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5537 fi
5538 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5539 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5540 { (exit 1); exit 1; }; }
5541 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5542 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5543 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5547 case `$LD -v 2>&1 </dev/null` in
5548 *GNU* | *'with BFD'*)
5549 lt_cv_prog_gnu_ld=yes
5550 ;;
5551 *)
5552 lt_cv_prog_gnu_ld=no
5553 ;;
5554 esac
5555 fi
5556 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5557 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5558 with_gnu_ld=$lt_cv_prog_gnu_ld
5559
5560
5561 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5562 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5563 if test "${lt_cv_ld_reload_flag+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566 lt_cv_ld_reload_flag='-r'
5567 fi
5568 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5569 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5570 reload_flag=$lt_cv_ld_reload_flag
5571 case $reload_flag in
5572 "" | " "*) ;;
5573 *) reload_flag=" $reload_flag" ;;
5574 esac
5575 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5576 case $host_os in
5577 darwin*)
5578 if test "$GCC" = yes; then
5579 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5580 else
5581 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5582 fi
5583 ;;
5584 esac
5585
5586 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5587 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5588 if test "${lt_cv_path_NM+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591 if test -n "$NM"; then
5592 # Let the user override the test.
5593 lt_cv_path_NM="$NM"
5594 else
5595 lt_nm_to_check="${ac_tool_prefix}nm"
5596 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5597 lt_nm_to_check="$lt_nm_to_check nm"
5598 fi
5599 for lt_tmp_nm in $lt_nm_to_check; do
5600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5601 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5602 IFS="$lt_save_ifs"
5603 test -z "$ac_dir" && ac_dir=.
5604 tmp_nm="$ac_dir/$lt_tmp_nm"
5605 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5606 # Check to see if the nm accepts a BSD-compat flag.
5607 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5608 # nm: unknown option "B" ignored
5609 # Tru64's nm complains that /dev/null is an invalid object file
5610 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5611 */dev/null* | *'Invalid file or object type'*)
5612 lt_cv_path_NM="$tmp_nm -B"
5613 break
5614 ;;
5615 *)
5616 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5617 */dev/null*)
5618 lt_cv_path_NM="$tmp_nm -p"
5619 break
5620 ;;
5621 *)
5622 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5623 continue # so that we can try to find one that supports BSD flags
5624 ;;
5625 esac
5626 ;;
5627 esac
5628 fi
5629 done
5630 IFS="$lt_save_ifs"
5631 done
5632 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5633 fi
5634 fi
5635 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5636 echo "${ECHO_T}$lt_cv_path_NM" >&6
5637 NM="$lt_cv_path_NM"
5638
5639 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5640 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5641 if test "${lt_cv_deplibs_check_method+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644 lt_cv_file_magic_cmd='$MAGIC_CMD'
5645 lt_cv_file_magic_test_file=
5646 lt_cv_deplibs_check_method='unknown'
5647 # Need to set the preceding variable on all platforms that support
5648 # interlibrary dependencies.
5649 # 'none' -- dependencies not supported.
5650 # `unknown' -- same as none, but documents that we really don't know.
5651 # 'pass_all' -- all dependencies passed with no checks.
5652 # 'test_compile' -- check by making test program.
5653 # 'file_magic [[regex]]' -- check by looking for files in library path
5654 # which responds to the $file_magic_cmd with a given extended regex.
5655 # If you have `file' or equivalent on your system and you're not sure
5656 # whether `pass_all' will *always* work, you probably want this one.
5657
5658 case $host_os in
5659 aix4* | aix5*)
5660 lt_cv_deplibs_check_method=pass_all
5661 ;;
5662
5663 beos*)
5664 lt_cv_deplibs_check_method=pass_all
5665 ;;
5666
5667 bsdi[45]*)
5668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5669 lt_cv_file_magic_cmd='/usr/bin/file -L'
5670 lt_cv_file_magic_test_file=/shlib/libc.so
5671 ;;
5672
5673 cygwin*)
5674 # func_win32_libid is a shell function defined in ltmain.sh
5675 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5676 lt_cv_file_magic_cmd='func_win32_libid'
5677 ;;
5678
5679 mingw* | pw32*)
5680 # Base MSYS/MinGW do not provide the 'file' command needed by
5681 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5682 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5683 lt_cv_file_magic_cmd='$OBJDUMP -f'
5684 ;;
5685
5686 darwin* | rhapsody*)
5687 lt_cv_deplibs_check_method=pass_all
5688 ;;
5689
5690 freebsd* | kfreebsd*-gnu | dragonfly*)
5691 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5692 case $host_cpu in
5693 i*86 )
5694 # Not sure whether the presence of OpenBSD here was a mistake.
5695 # Let's accept both of them until this is cleared up.
5696 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5697 lt_cv_file_magic_cmd=/usr/bin/file
5698 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5699 ;;
5700 esac
5701 else
5702 lt_cv_deplibs_check_method=pass_all
5703 fi
5704 ;;
5705
5706 gnu*)
5707 lt_cv_deplibs_check_method=pass_all
5708 ;;
5709
5710 hpux10.20* | hpux11*)
5711 lt_cv_file_magic_cmd=/usr/bin/file
5712 case $host_cpu in
5713 ia64*)
5714 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5715 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5716 ;;
5717 hppa*64*)
5718 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]'
5719 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5720 ;;
5721 *)
5722 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5723 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5724 ;;
5725 esac
5726 ;;
5727
5728 interix3*)
5729 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5731 ;;
5732
5733 irix5* | irix6* | nonstopux*)
5734 case $LD in
5735 *-32|*"-32 ") libmagic=32-bit;;
5736 *-n32|*"-n32 ") libmagic=N32;;
5737 *-64|*"-64 ") libmagic=64-bit;;
5738 *) libmagic=never-match;;
5739 esac
5740 lt_cv_deplibs_check_method=pass_all
5741 ;;
5742
5743 # This must be Linux ELF.
5744 linux*)
5745 lt_cv_deplibs_check_method=pass_all
5746 ;;
5747
5748 netbsd*)
5749 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5751 else
5752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5753 fi
5754 ;;
5755
5756 newos6*)
5757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5758 lt_cv_file_magic_cmd=/usr/bin/file
5759 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5760 ;;
5761
5762 nto-qnx*)
5763 lt_cv_deplibs_check_method=unknown
5764 ;;
5765
5766 openbsd*)
5767 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5768 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5769 else
5770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5771 fi
5772 ;;
5773
5774 osf3* | osf4* | osf5*)
5775 lt_cv_deplibs_check_method=pass_all
5776 ;;
5777
5778 solaris*)
5779 lt_cv_deplibs_check_method=pass_all
5780 ;;
5781
5782 sysv4 | sysv4.3*)
5783 case $host_vendor in
5784 motorola)
5785 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]'
5786 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5787 ;;
5788 ncr)
5789 lt_cv_deplibs_check_method=pass_all
5790 ;;
5791 sequent)
5792 lt_cv_file_magic_cmd='/bin/file'
5793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5794 ;;
5795 sni)
5796 lt_cv_file_magic_cmd='/bin/file'
5797 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5798 lt_cv_file_magic_test_file=/lib/libc.so
5799 ;;
5800 siemens)
5801 lt_cv_deplibs_check_method=pass_all
5802 ;;
5803 pc)
5804 lt_cv_deplibs_check_method=pass_all
5805 ;;
5806 esac
5807 ;;
5808
5809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5810 lt_cv_deplibs_check_method=pass_all
5811 ;;
5812 esac
5813
5814 fi
5815 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5816 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5817 file_magic_cmd=$lt_cv_file_magic_cmd
5818 deplibs_check_method=$lt_cv_deplibs_check_method
5819 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5820
5821
5822
5823
5824 # If no C compiler was specified, use CC.
5825 LTCC=${LTCC-"$CC"}
5826
5827 # If no C compiler flags were specified, use CFLAGS.
5828 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5829
5830 # Allow CC to be a program name with arguments.
5831 compiler=$CC
5832
5833 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5834 if test "${enable_libtool_lock+set}" = set; then
5835 enableval="$enable_libtool_lock"
5836
5837 fi;
5838 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5839
5840 # Some flags need to be propagated to the compiler or linker for good
5841 # libtool support.
5842 case $host in
5843 ia64-*-hpux*)
5844 # Find out which ABI we are using.
5845 echo 'int i;' > conftest.$ac_ext
5846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5847 (eval $ac_compile) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; then
5851 case `/usr/bin/file conftest.$ac_objext` in
5852 *ELF-32*)
5853 HPUX_IA64_MODE="32"
5854 ;;
5855 *ELF-64*)
5856 HPUX_IA64_MODE="64"
5857 ;;
5858 esac
5859 fi
5860 rm -rf conftest*
5861 ;;
5862 *-*-irix6*)
5863 # Find out which ABI we are using.
5864 echo '#line 5864 "configure"' > conftest.$ac_ext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866 (eval $ac_compile) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; then
5870 if test "$lt_cv_prog_gnu_ld" = yes; then
5871 case `/usr/bin/file conftest.$ac_objext` in
5872 *32-bit*)
5873 LD="${LD-ld} -melf32bsmip"
5874 ;;
5875 *N32*)
5876 LD="${LD-ld} -melf32bmipn32"
5877 ;;
5878 *64-bit*)
5879 LD="${LD-ld} -melf64bmip"
5880 ;;
5881 esac
5882 else
5883 case `/usr/bin/file conftest.$ac_objext` in
5884 *32-bit*)
5885 LD="${LD-ld} -32"
5886 ;;
5887 *N32*)
5888 LD="${LD-ld} -n32"
5889 ;;
5890 *64-bit*)
5891 LD="${LD-ld} -64"
5892 ;;
5893 esac
5894 fi
5895 fi
5896 rm -rf conftest*
5897 ;;
5898
5899 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5900 # Find out which ABI we are using.
5901 echo 'int i;' > conftest.$ac_ext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903 (eval $ac_compile) 2>&5
5904 ac_status=$?
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; then
5907 case `/usr/bin/file conftest.o` in
5908 *32-bit*)
5909 case $host in
5910 x86_64-*linux*)
5911 LD="${LD-ld} -m elf_i386"
5912 ;;
5913 ppc64-*linux*|powerpc64-*linux*)
5914 LD="${LD-ld} -m elf32ppclinux"
5915 ;;
5916 s390x-*linux*)
5917 LD="${LD-ld} -m elf_s390"
5918 ;;
5919 sparc64-*linux*)
5920 LD="${LD-ld} -m elf32_sparc"
5921 ;;
5922 esac
5923 ;;
5924 *64-bit*)
5925 case $host in
5926 x86_64-*linux*)
5927 LD="${LD-ld} -m elf_x86_64"
5928 ;;
5929 ppc*-*linux*|powerpc*-*linux*)
5930 LD="${LD-ld} -m elf64ppc"
5931 ;;
5932 s390*-*linux*)
5933 LD="${LD-ld} -m elf64_s390"
5934 ;;
5935 sparc*-*linux*)
5936 LD="${LD-ld} -m elf64_sparc"
5937 ;;
5938 esac
5939 ;;
5940 esac
5941 fi
5942 rm -rf conftest*
5943 ;;
5944
5945 *-*-sco3.2v5*)
5946 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5947 SAVE_CFLAGS="$CFLAGS"
5948 CFLAGS="$CFLAGS -belf"
5949 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5950 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5951 if test "${lt_cv_cc_needs_belf+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954 ac_ext=c
5955 ac_cpp='$CPP $CPPFLAGS'
5956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5959
5960 cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h. */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966
5967 int
5968 main ()
5969 {
5970
5971 ;
5972 return 0;
5973 }
5974 _ACEOF
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5977 (eval $ac_link) 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try='test -z "$ac_c_werror_flag"
5985 || test ! -s conftest.err'
5986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 (eval $ac_try) 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; } &&
5991 { ac_try='test -s conftest$ac_exeext'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 (eval $ac_try) 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 lt_cv_cc_needs_belf=yes
5998 else
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 lt_cv_cc_needs_belf=no
6003 fi
6004 rm -f conftest.err conftest.$ac_objext \
6005 conftest$ac_exeext conftest.$ac_ext
6006 ac_ext=c
6007 ac_cpp='$CPP $CPPFLAGS'
6008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011
6012 fi
6013 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6014 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6015 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6016 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6017 CFLAGS="$SAVE_CFLAGS"
6018 fi
6019 ;;
6020 sparc*-*solaris*)
6021 # Find out which ABI we are using.
6022 echo 'int i;' > conftest.$ac_ext
6023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6024 (eval $ac_compile) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; then
6028 case `/usr/bin/file conftest.o` in
6029 *64-bit*)
6030 case $lt_cv_prog_gnu_ld in
6031 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6032 *) LD="${LD-ld} -64" ;;
6033 esac
6034 ;;
6035 esac
6036 fi
6037 rm -rf conftest*
6038 ;;
6039
6040
6041 esac
6042
6043 need_locks="$enable_libtool_lock"
6044
6045
6046 ac_ext=c
6047 ac_cpp='$CPP $CPPFLAGS'
6048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6051 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6052 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6053 # On Suns, sometimes $CPP names a directory.
6054 if test -n "$CPP" && test -d "$CPP"; then
6055 CPP=
6056 fi
6057 if test -z "$CPP"; then
6058 if test "${ac_cv_prog_CPP+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 # Double quotes because CPP needs to be expanded
6062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6063 do
6064 ac_preproc_ok=false
6065 for ac_c_preproc_warn_flag in '' yes
6066 do
6067 # Use a header file that comes with gcc, so configuring glibc
6068 # with a fresh cross-compiler works.
6069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6070 # <limits.h> exists even on freestanding compilers.
6071 # On the NeXT, cc -E runs the code through the compiler's parser,
6072 # not just through cpp. "Syntax error" is here to catch this case.
6073 cat >conftest.$ac_ext <<_ACEOF
6074 /* confdefs.h. */
6075 _ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6079 #ifdef __STDC__
6080 # include <limits.h>
6081 #else
6082 # include <assert.h>
6083 #endif
6084 Syntax error
6085 _ACEOF
6086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6088 ac_status=$?
6089 grep -v '^ *+' conftest.er1 >conftest.err
6090 rm -f conftest.er1
6091 cat conftest.err >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } >/dev/null; then
6094 if test -s conftest.err; then
6095 ac_cpp_err=$ac_c_preproc_warn_flag
6096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6097 else
6098 ac_cpp_err=
6099 fi
6100 else
6101 ac_cpp_err=yes
6102 fi
6103 if test -z "$ac_cpp_err"; then
6104 :
6105 else
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6108
6109 # Broken: fails on valid input.
6110 continue
6111 fi
6112 rm -f conftest.err conftest.$ac_ext
6113
6114 # OK, works on sane cases. Now check whether non-existent headers
6115 # can be detected and how.
6116 cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h. */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 #include <ac_nonexistent.h>
6123 _ACEOF
6124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6126 ac_status=$?
6127 grep -v '^ *+' conftest.er1 >conftest.err
6128 rm -f conftest.er1
6129 cat conftest.err >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } >/dev/null; then
6132 if test -s conftest.err; then
6133 ac_cpp_err=$ac_c_preproc_warn_flag
6134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6135 else
6136 ac_cpp_err=
6137 fi
6138 else
6139 ac_cpp_err=yes
6140 fi
6141 if test -z "$ac_cpp_err"; then
6142 # Broken: success on invalid input.
6143 continue
6144 else
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6147
6148 # Passes both tests.
6149 ac_preproc_ok=:
6150 break
6151 fi
6152 rm -f conftest.err conftest.$ac_ext
6153
6154 done
6155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6156 rm -f conftest.err conftest.$ac_ext
6157 if $ac_preproc_ok; then
6158 break
6159 fi
6160
6161 done
6162 ac_cv_prog_CPP=$CPP
6163
6164 fi
6165 CPP=$ac_cv_prog_CPP
6166 else
6167 ac_cv_prog_CPP=$CPP
6168 fi
6169 echo "$as_me:$LINENO: result: $CPP" >&5
6170 echo "${ECHO_T}$CPP" >&6
6171 ac_preproc_ok=false
6172 for ac_c_preproc_warn_flag in '' yes
6173 do
6174 # Use a header file that comes with gcc, so configuring glibc
6175 # with a fresh cross-compiler works.
6176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6177 # <limits.h> exists even on freestanding compilers.
6178 # On the NeXT, cc -E runs the code through the compiler's parser,
6179 # not just through cpp. "Syntax error" is here to catch this case.
6180 cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h. */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 #ifdef __STDC__
6187 # include <limits.h>
6188 #else
6189 # include <assert.h>
6190 #endif
6191 Syntax error
6192 _ACEOF
6193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6195 ac_status=$?
6196 grep -v '^ *+' conftest.er1 >conftest.err
6197 rm -f conftest.er1
6198 cat conftest.err >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } >/dev/null; then
6201 if test -s conftest.err; then
6202 ac_cpp_err=$ac_c_preproc_warn_flag
6203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6204 else
6205 ac_cpp_err=
6206 fi
6207 else
6208 ac_cpp_err=yes
6209 fi
6210 if test -z "$ac_cpp_err"; then
6211 :
6212 else
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6215
6216 # Broken: fails on valid input.
6217 continue
6218 fi
6219 rm -f conftest.err conftest.$ac_ext
6220
6221 # OK, works on sane cases. Now check whether non-existent headers
6222 # can be detected and how.
6223 cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h. */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 #include <ac_nonexistent.h>
6230 _ACEOF
6231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } >/dev/null; then
6239 if test -s conftest.err; then
6240 ac_cpp_err=$ac_c_preproc_warn_flag
6241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6242 else
6243 ac_cpp_err=
6244 fi
6245 else
6246 ac_cpp_err=yes
6247 fi
6248 if test -z "$ac_cpp_err"; then
6249 # Broken: success on invalid input.
6250 continue
6251 else
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6254
6255 # Passes both tests.
6256 ac_preproc_ok=:
6257 break
6258 fi
6259 rm -f conftest.err conftest.$ac_ext
6260
6261 done
6262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6263 rm -f conftest.err conftest.$ac_ext
6264 if $ac_preproc_ok; then
6265 :
6266 else
6267 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6268 See \`config.log' for more details." >&5
6269 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6270 See \`config.log' for more details." >&2;}
6271 { (exit 1); exit 1; }; }
6272 fi
6273
6274 ac_ext=c
6275 ac_cpp='$CPP $CPPFLAGS'
6276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6279
6280
6281 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6282 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6283 if test "${ac_cv_header_stdc+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286 cat >conftest.$ac_ext <<_ACEOF
6287 /* confdefs.h. */
6288 _ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292 #include <stdlib.h>
6293 #include <stdarg.h>
6294 #include <string.h>
6295 #include <float.h>
6296
6297 int
6298 main ()
6299 {
6300
6301 ;
6302 return 0;
6303 }
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307 (eval $ac_compile) 2>conftest.er1
6308 ac_status=$?
6309 grep -v '^ *+' conftest.er1 >conftest.err
6310 rm -f conftest.er1
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -z "$ac_c_werror_flag"
6315 || test ! -s conftest.err'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest.$ac_objext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 (eval $ac_try) 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327 ac_cv_header_stdc=yes
6328 else
6329 echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6331
6332 ac_cv_header_stdc=no
6333 fi
6334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6335
6336 if test $ac_cv_header_stdc = yes; then
6337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6338 cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h. */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 #include <string.h>
6345
6346 _ACEOF
6347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6348 $EGREP "memchr" >/dev/null 2>&1; then
6349 :
6350 else
6351 ac_cv_header_stdc=no
6352 fi
6353 rm -f conftest*
6354
6355 fi
6356
6357 if test $ac_cv_header_stdc = yes; then
6358 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6359 cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h. */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 #include <stdlib.h>
6366
6367 _ACEOF
6368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6369 $EGREP "free" >/dev/null 2>&1; then
6370 :
6371 else
6372 ac_cv_header_stdc=no
6373 fi
6374 rm -f conftest*
6375
6376 fi
6377
6378 if test $ac_cv_header_stdc = yes; then
6379 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6380 if test "$cross_compiling" = yes; then
6381 :
6382 else
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h. */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 #include <ctype.h>
6390 #if ((' ' & 0x0FF) == 0x020)
6391 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6392 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6393 #else
6394 # define ISLOWER(c) \
6395 (('a' <= (c) && (c) <= 'i') \
6396 || ('j' <= (c) && (c) <= 'r') \
6397 || ('s' <= (c) && (c) <= 'z'))
6398 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6399 #endif
6400
6401 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6402 int
6403 main ()
6404 {
6405 int i;
6406 for (i = 0; i < 256; i++)
6407 if (XOR (islower (i), ISLOWER (i))
6408 || toupper (i) != TOUPPER (i))
6409 exit(2);
6410 exit (0);
6411 }
6412 _ACEOF
6413 rm -f conftest$ac_exeext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6415 (eval $ac_link) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 :
6425 else
6426 echo "$as_me: program exited with status $ac_status" >&5
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6429
6430 ( exit $ac_status )
6431 ac_cv_header_stdc=no
6432 fi
6433 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6434 fi
6435 fi
6436 fi
6437 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6438 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6439 if test $ac_cv_header_stdc = yes; then
6440
6441 cat >>confdefs.h <<\_ACEOF
6442 #define STDC_HEADERS 1
6443 _ACEOF
6444
6445 fi
6446
6447 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6458 inttypes.h stdint.h unistd.h
6459 do
6460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6461 echo "$as_me:$LINENO: checking for $ac_header" >&5
6462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466 cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h. */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6472 $ac_includes_default
6473
6474 #include <$ac_header>
6475 _ACEOF
6476 rm -f conftest.$ac_objext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6478 (eval $ac_compile) 2>conftest.er1
6479 ac_status=$?
6480 grep -v '^ *+' conftest.er1 >conftest.err
6481 rm -f conftest.er1
6482 cat conftest.err >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try='test -z "$ac_c_werror_flag"
6486 || test ! -s conftest.err'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; } &&
6492 { ac_try='test -s conftest.$ac_objext'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 (eval $ac_try) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; }; then
6498 eval "$as_ac_Header=yes"
6499 else
6500 echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6502
6503 eval "$as_ac_Header=no"
6504 fi
6505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6506 fi
6507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6510 cat >>confdefs.h <<_ACEOF
6511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6512 _ACEOF
6513
6514 fi
6515
6516 done
6517
6518
6519
6520 for ac_header in dlfcn.h
6521 do
6522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6524 echo "$as_me:$LINENO: checking for $ac_header" >&5
6525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 fi
6529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6531 else
6532 # Is the header compilable?
6533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6535 cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h. */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 $ac_includes_default
6542 #include <$ac_header>
6543 _ACEOF
6544 rm -f conftest.$ac_objext
6545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6546 (eval $ac_compile) 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_c_werror_flag"
6554 || test ! -s conftest.err'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; } &&
6560 { ac_try='test -s conftest.$ac_objext'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; }; then
6566 ac_header_compiler=yes
6567 else
6568 echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6570
6571 ac_header_compiler=no
6572 fi
6573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6575 echo "${ECHO_T}$ac_header_compiler" >&6
6576
6577 # Is the header present?
6578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <$ac_header>
6587 _ACEOF
6588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6590 ac_status=$?
6591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } >/dev/null; then
6596 if test -s conftest.err; then
6597 ac_cpp_err=$ac_c_preproc_warn_flag
6598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6599 else
6600 ac_cpp_err=
6601 fi
6602 else
6603 ac_cpp_err=yes
6604 fi
6605 if test -z "$ac_cpp_err"; then
6606 ac_header_preproc=yes
6607 else
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6610
6611 ac_header_preproc=no
6612 fi
6613 rm -f conftest.err conftest.$ac_ext
6614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6615 echo "${ECHO_T}$ac_header_preproc" >&6
6616
6617 # So? What about this header?
6618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6619 yes:no: )
6620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6624 ac_header_preproc=yes
6625 ;;
6626 no:yes:* )
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6639 (
6640 cat <<\_ASBOX
6641 ## ----------------------------------- ##
6642 ## Report this to [email protected] ##
6643 ## ----------------------------------- ##
6644 _ASBOX
6645 ) |
6646 sed "s/^/$as_me: WARNING: /" >&2
6647 ;;
6648 esac
6649 echo "$as_me:$LINENO: checking for $ac_header" >&5
6650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654 eval "$as_ac_Header=\$ac_header_preproc"
6655 fi
6656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6658
6659 fi
6660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6661 cat >>confdefs.h <<_ACEOF
6662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6663 _ACEOF
6664
6665 fi
6666
6667 done
6668
6669
6670
6671 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6672 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6673 (test "X$CXX" != "Xg++"))) ; then
6674 ac_ext=cc
6675 ac_cpp='$CXXCPP $CPPFLAGS'
6676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6679 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6680 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6681 if test -z "$CXXCPP"; then
6682 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 # Double quotes because CXXCPP needs to be expanded
6686 for CXXCPP in "$CXX -E" "/lib/cpp"
6687 do
6688 ac_preproc_ok=false
6689 for ac_cxx_preproc_warn_flag in '' yes
6690 do
6691 # Use a header file that comes with gcc, so configuring glibc
6692 # with a fresh cross-compiler works.
6693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6694 # <limits.h> exists even on freestanding compilers.
6695 # On the NeXT, cc -E runs the code through the compiler's parser,
6696 # not just through cpp. "Syntax error" is here to catch this case.
6697 cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #ifdef __STDC__
6704 # include <limits.h>
6705 #else
6706 # include <assert.h>
6707 #endif
6708 Syntax error
6709 _ACEOF
6710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } >/dev/null; then
6718 if test -s conftest.err; then
6719 ac_cpp_err=$ac_cxx_preproc_warn_flag
6720 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6721 else
6722 ac_cpp_err=
6723 fi
6724 else
6725 ac_cpp_err=yes
6726 fi
6727 if test -z "$ac_cpp_err"; then
6728 :
6729 else
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6732
6733 # Broken: fails on valid input.
6734 continue
6735 fi
6736 rm -f conftest.err conftest.$ac_ext
6737
6738 # OK, works on sane cases. Now check whether non-existent headers
6739 # can be detected and how.
6740 cat >conftest.$ac_ext <<_ACEOF
6741 /* confdefs.h. */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 #include <ac_nonexistent.h>
6747 _ACEOF
6748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6750 ac_status=$?
6751 grep -v '^ *+' conftest.er1 >conftest.err
6752 rm -f conftest.er1
6753 cat conftest.err >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } >/dev/null; then
6756 if test -s conftest.err; then
6757 ac_cpp_err=$ac_cxx_preproc_warn_flag
6758 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6759 else
6760 ac_cpp_err=
6761 fi
6762 else
6763 ac_cpp_err=yes
6764 fi
6765 if test -z "$ac_cpp_err"; then
6766 # Broken: success on invalid input.
6767 continue
6768 else
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6771
6772 # Passes both tests.
6773 ac_preproc_ok=:
6774 break
6775 fi
6776 rm -f conftest.err conftest.$ac_ext
6777
6778 done
6779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6780 rm -f conftest.err conftest.$ac_ext
6781 if $ac_preproc_ok; then
6782 break
6783 fi
6784
6785 done
6786 ac_cv_prog_CXXCPP=$CXXCPP
6787
6788 fi
6789 CXXCPP=$ac_cv_prog_CXXCPP
6790 else
6791 ac_cv_prog_CXXCPP=$CXXCPP
6792 fi
6793 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6794 echo "${ECHO_T}$CXXCPP" >&6
6795 ac_preproc_ok=false
6796 for ac_cxx_preproc_warn_flag in '' yes
6797 do
6798 # Use a header file that comes with gcc, so configuring glibc
6799 # with a fresh cross-compiler works.
6800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6801 # <limits.h> exists even on freestanding compilers.
6802 # On the NeXT, cc -E runs the code through the compiler's parser,
6803 # not just through cpp. "Syntax error" is here to catch this case.
6804 cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h. */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 #ifdef __STDC__
6811 # include <limits.h>
6812 #else
6813 # include <assert.h>
6814 #endif
6815 Syntax error
6816 _ACEOF
6817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } >/dev/null; then
6825 if test -s conftest.err; then
6826 ac_cpp_err=$ac_cxx_preproc_warn_flag
6827 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6828 else
6829 ac_cpp_err=
6830 fi
6831 else
6832 ac_cpp_err=yes
6833 fi
6834 if test -z "$ac_cpp_err"; then
6835 :
6836 else
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6839
6840 # Broken: fails on valid input.
6841 continue
6842 fi
6843 rm -f conftest.err conftest.$ac_ext
6844
6845 # OK, works on sane cases. Now check whether non-existent headers
6846 # can be detected and how.
6847 cat >conftest.$ac_ext <<_ACEOF
6848 /* confdefs.h. */
6849 _ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 #include <ac_nonexistent.h>
6854 _ACEOF
6855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6857 ac_status=$?
6858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } >/dev/null; then
6863 if test -s conftest.err; then
6864 ac_cpp_err=$ac_cxx_preproc_warn_flag
6865 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6866 else
6867 ac_cpp_err=
6868 fi
6869 else
6870 ac_cpp_err=yes
6871 fi
6872 if test -z "$ac_cpp_err"; then
6873 # Broken: success on invalid input.
6874 continue
6875 else
6876 echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6878
6879 # Passes both tests.
6880 ac_preproc_ok=:
6881 break
6882 fi
6883 rm -f conftest.err conftest.$ac_ext
6884
6885 done
6886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6887 rm -f conftest.err conftest.$ac_ext
6888 if $ac_preproc_ok; then
6889 :
6890 else
6891 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6892 See \`config.log' for more details." >&5
6893 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6894 See \`config.log' for more details." >&2;}
6895 { (exit 1); exit 1; }; }
6896 fi
6897
6898 ac_ext=cc
6899 ac_cpp='$CXXCPP $CPPFLAGS'
6900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6903
6904 fi
6905
6906 ac_ext=f
6907 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6908 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6909 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6910 if test -n "$ac_tool_prefix"; then
6911 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6912 do
6913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6915 echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6917 if test "${ac_cv_prog_F77+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 if test -n "$F77"; then
6921 ac_cv_prog_F77="$F77" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934 done
6935 done
6936
6937 fi
6938 fi
6939 F77=$ac_cv_prog_F77
6940 if test -n "$F77"; then
6941 echo "$as_me:$LINENO: result: $F77" >&5
6942 echo "${ECHO_T}$F77" >&6
6943 else
6944 echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6
6946 fi
6947
6948 test -n "$F77" && break
6949 done
6950 fi
6951 if test -z "$F77"; then
6952 ac_ct_F77=$F77
6953 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6954 do
6955 # Extract the first word of "$ac_prog", so it can be a program name with args.
6956 set dummy $ac_prog; ac_word=$2
6957 echo "$as_me:$LINENO: checking for $ac_word" >&5
6958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6959 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962 if test -n "$ac_ct_F77"; then
6963 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6972 ac_cv_prog_ac_ct_F77="$ac_prog"
6973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976 done
6977 done
6978
6979 fi
6980 fi
6981 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6982 if test -n "$ac_ct_F77"; then
6983 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6984 echo "${ECHO_T}$ac_ct_F77" >&6
6985 else
6986 echo "$as_me:$LINENO: result: no" >&5
6987 echo "${ECHO_T}no" >&6
6988 fi
6989
6990 test -n "$ac_ct_F77" && break
6991 done
6992
6993 F77=$ac_ct_F77
6994 fi
6995
6996
6997 # Provide some information about the compiler.
6998 echo "$as_me:6998:" \
6999 "checking for Fortran 77 compiler version" >&5
7000 ac_compiler=`set X $ac_compile; echo $2`
7001 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7002 (eval $ac_compiler --version </dev/null >&5) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }
7006 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7007 (eval $ac_compiler -v </dev/null >&5) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }
7011 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7012 (eval $ac_compiler -V </dev/null >&5) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }
7016 rm -f a.out
7017
7018 # If we don't use `.F' as extension, the preprocessor is not run on the
7019 # input file. (Note that this only needs to work for GNU compilers.)
7020 ac_save_ext=$ac_ext
7021 ac_ext=F
7022 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7023 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7024 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027 cat >conftest.$ac_ext <<_ACEOF
7028 program main
7029 #ifndef __GNUC__
7030 choke me
7031 #endif
7032
7033 end
7034 _ACEOF
7035 rm -f conftest.$ac_objext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037 (eval $ac_compile) 2>conftest.er1
7038 ac_status=$?
7039 grep -v '^ *+' conftest.er1 >conftest.err
7040 rm -f conftest.er1
7041 cat conftest.err >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try='test -z "$ac_f77_werror_flag"
7045 || test ! -s conftest.err'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 (eval $ac_try) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; } &&
7051 { ac_try='test -s conftest.$ac_objext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7057 ac_compiler_gnu=yes
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7061
7062 ac_compiler_gnu=no
7063 fi
7064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7065 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7066
7067 fi
7068 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7069 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7070 ac_ext=$ac_save_ext
7071 ac_test_FFLAGS=${FFLAGS+set}
7072 ac_save_FFLAGS=$FFLAGS
7073 FFLAGS=
7074 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7075 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7076 if test "${ac_cv_prog_f77_g+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079 FFLAGS=-g
7080 cat >conftest.$ac_ext <<_ACEOF
7081 program main
7082
7083 end
7084 _ACEOF
7085 rm -f conftest.$ac_objext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087 (eval $ac_compile) 2>conftest.er1
7088 ac_status=$?
7089 grep -v '^ *+' conftest.er1 >conftest.err
7090 rm -f conftest.er1
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } &&
7094 { ac_try='test -z "$ac_f77_werror_flag"
7095 || test ! -s conftest.err'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; } &&
7101 { ac_try='test -s conftest.$ac_objext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 (eval $ac_try) 2>&5
7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7107 ac_cv_prog_f77_g=yes
7108 else
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7111
7112 ac_cv_prog_f77_g=no
7113 fi
7114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7115
7116 fi
7117 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7118 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7119 if test "$ac_test_FFLAGS" = set; then
7120 FFLAGS=$ac_save_FFLAGS
7121 elif test $ac_cv_prog_f77_g = yes; then
7122 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7123 FFLAGS="-g -O2"
7124 else
7125 FFLAGS="-g"
7126 fi
7127 else
7128 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7129 FFLAGS="-O2"
7130 else
7131 FFLAGS=
7132 fi
7133 fi
7134
7135 G77=`test $ac_compiler_gnu = yes && echo yes`
7136 ac_ext=c
7137 ac_cpp='$CPP $CPPFLAGS'
7138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7141
7142
7143
7144 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7145
7146 # find the maximum length of command line arguments
7147 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7148 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7149 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152 i=0
7153 teststring="ABCD"
7154
7155 case $build_os in
7156 msdosdjgpp*)
7157 # On DJGPP, this test can blow up pretty badly due to problems in libc
7158 # (any single argument exceeding 2000 bytes causes a buffer overrun
7159 # during glob expansion). Even if it were fixed, the result of this
7160 # check would be larger than it should be.
7161 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7162 ;;
7163
7164 gnu*)
7165 # Under GNU Hurd, this test is not required because there is
7166 # no limit to the length of command line arguments.
7167 # Libtool will interpret -1 as no limit whatsoever
7168 lt_cv_sys_max_cmd_len=-1;
7169 ;;
7170
7171 cygwin* | mingw*)
7172 # On Win9x/ME, this test blows up -- it succeeds, but takes
7173 # about 5 minutes as the teststring grows exponentially.
7174 # Worse, since 9x/ME are not pre-emptively multitasking,
7175 # you end up with a "frozen" computer, even though with patience
7176 # the test eventually succeeds (with a max line length of 256k).
7177 # Instead, let's just punt: use the minimum linelength reported by
7178 # all of the supported platforms: 8192 (on NT/2K/XP).
7179 lt_cv_sys_max_cmd_len=8192;
7180 ;;
7181
7182 amigaos*)
7183 # On AmigaOS with pdksh, this test takes hours, literally.
7184 # So we just punt and use a minimum line length of 8192.
7185 lt_cv_sys_max_cmd_len=8192;
7186 ;;
7187
7188 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7189 # This has been around since 386BSD, at least. Likely further.
7190 if test -x /sbin/sysctl; then
7191 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7192 elif test -x /usr/sbin/sysctl; then
7193 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7194 else
7195 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7196 fi
7197 # And add a safety zone
7198 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7200 ;;
7201
7202 interix*)
7203 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7204 lt_cv_sys_max_cmd_len=196608
7205 ;;
7206
7207 osf*)
7208 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7209 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7210 # nice to cause kernel panics so lets avoid the loop below.
7211 # First set a reasonable default.
7212 lt_cv_sys_max_cmd_len=16384
7213 #
7214 if test -x /sbin/sysconfig; then
7215 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7216 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7217 esac
7218 fi
7219 ;;
7220 sco3.2v5*)
7221 lt_cv_sys_max_cmd_len=102400
7222 ;;
7223 sysv5* | sco5v6* | sysv4.2uw2*)
7224 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7225 if test -n "$kargmax"; then
7226 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7227 else
7228 lt_cv_sys_max_cmd_len=32768
7229 fi
7230 ;;
7231 *)
7232 # If test is not a shell built-in, we'll probably end up computing a
7233 # maximum length that is only half of the actual maximum length, but
7234 # we can't tell.
7235 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7236 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7237 = "XX$teststring") >/dev/null 2>&1 &&
7238 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7239 lt_cv_sys_max_cmd_len=$new_result &&
7240 test $i != 17 # 1/2 MB should be enough
7241 do
7242 i=`expr $i + 1`
7243 teststring=$teststring$teststring
7244 done
7245 teststring=
7246 # Add a significant safety factor because C++ compilers can tack on massive
7247 # amounts of additional arguments before passing them to the linker.
7248 # It appears as though 1/2 is a usable value.
7249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7250 ;;
7251 esac
7252
7253 fi
7254
7255 if test -n $lt_cv_sys_max_cmd_len ; then
7256 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7257 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7258 else
7259 echo "$as_me:$LINENO: result: none" >&5
7260 echo "${ECHO_T}none" >&6
7261 fi
7262
7263
7264
7265
7266 # Check for command to grab the raw symbol name followed by C symbol from nm.
7267 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7268 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7269 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272
7273 # These are sane defaults that work on at least a few old systems.
7274 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7275
7276 # Character class describing NM global symbol codes.
7277 symcode='[BCDEGRST]'
7278
7279 # Regexp to match symbols that can be accessed directly from C.
7280 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7281
7282 # Transform an extracted symbol line into a proper C declaration
7283 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7284
7285 # Transform an extracted symbol line into symbol name and symbol address
7286 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7287
7288 # Define system-specific variables.
7289 case $host_os in
7290 aix*)
7291 symcode='[BCDT]'
7292 ;;
7293 cygwin* | mingw* | pw32*)
7294 symcode='[ABCDGISTW]'
7295 ;;
7296 hpux*) # Its linker distinguishes data from code symbols
7297 if test "$host_cpu" = ia64; then
7298 symcode='[ABCDEGRST]'
7299 fi
7300 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7301 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7302 ;;
7303 linux*)
7304 if test "$host_cpu" = ia64; then
7305 symcode='[ABCDGIRSTW]'
7306 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7307 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7308 fi
7309 ;;
7310 irix* | nonstopux*)
7311 symcode='[BCDEGRST]'
7312 ;;
7313 osf*)
7314 symcode='[BCDEGQRST]'
7315 ;;
7316 solaris*)
7317 symcode='[BDRT]'
7318 ;;
7319 sco3.2v5*)
7320 symcode='[DT]'
7321 ;;
7322 sysv4.2uw2*)
7323 symcode='[DT]'
7324 ;;
7325 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7326 symcode='[ABDT]'
7327 ;;
7328 sysv4)
7329 symcode='[DFNSTU]'
7330 ;;
7331 esac
7332
7333 # Handle CRLF in mingw tool chain
7334 opt_cr=
7335 case $build_os in
7336 mingw*)
7337 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7338 ;;
7339 esac
7340
7341 # If we're using GNU nm, then use its standard symbol codes.
7342 case `$NM -V 2>&1` in
7343 *GNU* | *'with BFD'*)
7344 symcode='[ABCDGIRSTW]' ;;
7345 esac
7346
7347 # Try without a prefix undercore, then with it.
7348 for ac_symprfx in "" "_"; do
7349
7350 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7351 symxfrm="\\1 $ac_symprfx\\2 \\2"
7352
7353 # Write the raw and C identifiers.
7354 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7355
7356 # Check to see that the pipe works correctly.
7357 pipe_works=no
7358
7359 rm -f conftest*
7360 cat > conftest.$ac_ext <<EOF
7361 #ifdef __cplusplus
7362 extern "C" {
7363 #endif
7364 char nm_test_var;
7365 void nm_test_func(){}
7366 #ifdef __cplusplus
7367 }
7368 #endif
7369 int main(){nm_test_var='a';nm_test_func();return(0);}
7370 EOF
7371
7372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7373 (eval $ac_compile) 2>&5
7374 ac_status=$?
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; then
7377 # Now try to grab the symbols.
7378 nlist=conftest.nm
7379 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7380 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } && test -s "$nlist"; then
7384 # Try sorting and uniquifying the output.
7385 if sort "$nlist" | uniq > "$nlist"T; then
7386 mv -f "$nlist"T "$nlist"
7387 else
7388 rm -f "$nlist"T
7389 fi
7390
7391 # Make sure that we snagged all the symbols we need.
7392 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7393 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7394 cat <<EOF > conftest.$ac_ext
7395 #ifdef __cplusplus
7396 extern "C" {
7397 #endif
7398
7399 EOF
7400 # Now generate the symbol file.
7401 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7402
7403 cat <<EOF >> conftest.$ac_ext
7404 #if defined (__STDC__) && __STDC__
7405 # define lt_ptr_t void *
7406 #else
7407 # define lt_ptr_t char *
7408 # define const
7409 #endif
7410
7411 /* The mapping between symbol names and symbols. */
7412 const struct {
7413 const char *name;
7414 lt_ptr_t address;
7415 }
7416 lt_preloaded_symbols[] =
7417 {
7418 EOF
7419 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7420 cat <<\EOF >> conftest.$ac_ext
7421 {0, (lt_ptr_t) 0}
7422 };
7423
7424 #ifdef __cplusplus
7425 }
7426 #endif
7427 EOF
7428 # Now try linking the two files.
7429 mv conftest.$ac_objext conftstm.$ac_objext
7430 lt_save_LIBS="$LIBS"
7431 lt_save_CFLAGS="$CFLAGS"
7432 LIBS="conftstm.$ac_objext"
7433 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7435 (eval $ac_link) 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7439 pipe_works=yes
7440 fi
7441 LIBS="$lt_save_LIBS"
7442 CFLAGS="$lt_save_CFLAGS"
7443 else
7444 echo "cannot find nm_test_func in $nlist" >&5
7445 fi
7446 else
7447 echo "cannot find nm_test_var in $nlist" >&5
7448 fi
7449 else
7450 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7451 fi
7452 else
7453 echo "$progname: failed program was:" >&5
7454 cat conftest.$ac_ext >&5
7455 fi
7456 rm -f conftest* conftst*
7457
7458 # Do not use the global_symbol_pipe unless it works.
7459 if test "$pipe_works" = yes; then
7460 break
7461 else
7462 lt_cv_sys_global_symbol_pipe=
7463 fi
7464 done
7465
7466 fi
7467
7468 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7469 lt_cv_sys_global_symbol_to_cdecl=
7470 fi
7471 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7472 echo "$as_me:$LINENO: result: failed" >&5
7473 echo "${ECHO_T}failed" >&6
7474 else
7475 echo "$as_me:$LINENO: result: ok" >&5
7476 echo "${ECHO_T}ok" >&6
7477 fi
7478
7479 echo "$as_me:$LINENO: checking for objdir" >&5
7480 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7481 if test "${lt_cv_objdir+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484 rm -f .libs 2>/dev/null
7485 mkdir .libs 2>/dev/null
7486 if test -d .libs; then
7487 lt_cv_objdir=.libs
7488 else
7489 # MS-DOS does not allow filenames that begin with a dot.
7490 lt_cv_objdir=_libs
7491 fi
7492 rmdir .libs 2>/dev/null
7493 fi
7494 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7495 echo "${ECHO_T}$lt_cv_objdir" >&6
7496 objdir=$lt_cv_objdir
7497
7498
7499
7500
7501
7502 case $host_os in
7503 aix3*)
7504 # AIX sometimes has problems with the GCC collect2 program. For some
7505 # reason, if we set the COLLECT_NAMES environment variable, the problems
7506 # vanish in a puff of smoke.
7507 if test "X${COLLECT_NAMES+set}" != Xset; then
7508 COLLECT_NAMES=
7509 export COLLECT_NAMES
7510 fi
7511 ;;
7512 esac
7513
7514 # Sed substitution that helps us do robust quoting. It backslashifies
7515 # metacharacters that are still active within double-quoted strings.
7516 Xsed='sed -e 1s/^X//'
7517 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7518
7519 # Same as above, but do not quote variable references.
7520 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7521
7522 # Sed substitution to delay expansion of an escaped shell variable in a
7523 # double_quote_subst'ed string.
7524 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7525
7526 # Sed substitution to avoid accidental globbing in evaled expressions
7527 no_glob_subst='s/\*/\\\*/g'
7528
7529 # Constants:
7530 rm="rm -f"
7531
7532 # Global variables:
7533 default_ofile=libtool
7534 can_build_shared=yes
7535
7536 # All known linkers require a `.a' archive for static linking (except MSVC,
7537 # which needs '.lib').
7538 libext=a
7539 ltmain="$ac_aux_dir/ltmain.sh"
7540 ofile="$default_ofile"
7541 with_gnu_ld="$lt_cv_prog_gnu_ld"
7542
7543 if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7545 set dummy ${ac_tool_prefix}ar; ac_word=$2
7546 echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7548 if test "${ac_cv_prog_AR+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 if test -n "$AR"; then
7552 ac_cv_prog_AR="$AR" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557 IFS=$as_save_IFS
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_AR="${ac_tool_prefix}ar"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 break 2
7564 fi
7565 done
7566 done
7567
7568 fi
7569 fi
7570 AR=$ac_cv_prog_AR
7571 if test -n "$AR"; then
7572 echo "$as_me:$LINENO: result: $AR" >&5
7573 echo "${ECHO_T}$AR" >&6
7574 else
7575 echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6
7577 fi
7578
7579 fi
7580 if test -z "$ac_cv_prog_AR"; then
7581 ac_ct_AR=$AR
7582 # Extract the first word of "ar", so it can be a program name with args.
7583 set dummy ar; ac_word=$2
7584 echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 if test -n "$ac_ct_AR"; then
7590 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7591 else
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7594 do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_prog_ac_ct_AR="ar"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603 done
7604 done
7605
7606 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7607 fi
7608 fi
7609 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7610 if test -n "$ac_ct_AR"; then
7611 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7612 echo "${ECHO_T}$ac_ct_AR" >&6
7613 else
7614 echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6
7616 fi
7617
7618 AR=$ac_ct_AR
7619 else
7620 AR="$ac_cv_prog_AR"
7621 fi
7622
7623 if test -n "$ac_tool_prefix"; then
7624 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7625 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7626 echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7628 if test "${ac_cv_prog_RANLIB+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631 if test -n "$RANLIB"; then
7632 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7633 else
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637 IFS=$as_save_IFS
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 break 2
7644 fi
7645 done
7646 done
7647
7648 fi
7649 fi
7650 RANLIB=$ac_cv_prog_RANLIB
7651 if test -n "$RANLIB"; then
7652 echo "$as_me:$LINENO: result: $RANLIB" >&5
7653 echo "${ECHO_T}$RANLIB" >&6
7654 else
7655 echo "$as_me:$LINENO: result: no" >&5
7656 echo "${ECHO_T}no" >&6
7657 fi
7658
7659 fi
7660 if test -z "$ac_cv_prog_RANLIB"; then
7661 ac_ct_RANLIB=$RANLIB
7662 # Extract the first word of "ranlib", so it can be a program name with args.
7663 set dummy ranlib; ac_word=$2
7664 echo "$as_me:$LINENO: checking for $ac_word" >&5
7665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7666 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669 if test -n "$ac_ct_RANLIB"; then
7670 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679 ac_cv_prog_ac_ct_RANLIB="ranlib"
7680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 break 2
7682 fi
7683 done
7684 done
7685
7686 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7687 fi
7688 fi
7689 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7690 if test -n "$ac_ct_RANLIB"; then
7691 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7692 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7693 else
7694 echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6
7696 fi
7697
7698 RANLIB=$ac_ct_RANLIB
7699 else
7700 RANLIB="$ac_cv_prog_RANLIB"
7701 fi
7702
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}strip; ac_word=$2
7706 echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7708 if test "${ac_cv_prog_STRIP+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711 if test -n "$STRIP"; then
7712 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725 done
7726 done
7727
7728 fi
7729 fi
7730 STRIP=$ac_cv_prog_STRIP
7731 if test -n "$STRIP"; then
7732 echo "$as_me:$LINENO: result: $STRIP" >&5
7733 echo "${ECHO_T}$STRIP" >&6
7734 else
7735 echo "$as_me:$LINENO: result: no" >&5
7736 echo "${ECHO_T}no" >&6
7737 fi
7738
7739 fi
7740 if test -z "$ac_cv_prog_STRIP"; then
7741 ac_ct_STRIP=$STRIP
7742 # Extract the first word of "strip", so it can be a program name with args.
7743 set dummy strip; ac_word=$2
7744 echo "$as_me:$LINENO: checking for $ac_word" >&5
7745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7746 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749 if test -n "$ac_ct_STRIP"; then
7750 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7751 else
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7754 do
7755 IFS=$as_save_IFS
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7759 ac_cv_prog_ac_ct_STRIP="strip"
7760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7761 break 2
7762 fi
7763 done
7764 done
7765
7766 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7767 fi
7768 fi
7769 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7770 if test -n "$ac_ct_STRIP"; then
7771 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7772 echo "${ECHO_T}$ac_ct_STRIP" >&6
7773 else
7774 echo "$as_me:$LINENO: result: no" >&5
7775 echo "${ECHO_T}no" >&6
7776 fi
7777
7778 STRIP=$ac_ct_STRIP
7779 else
7780 STRIP="$ac_cv_prog_STRIP"
7781 fi
7782
7783
7784 old_CC="$CC"
7785 old_CFLAGS="$CFLAGS"
7786
7787 # Set sane defaults for various variables
7788 test -z "$AR" && AR=ar
7789 test -z "$AR_FLAGS" && AR_FLAGS=cru
7790 test -z "$AS" && AS=as
7791 test -z "$CC" && CC=cc
7792 test -z "$LTCC" && LTCC=$CC
7793 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7794 test -z "$DLLTOOL" && DLLTOOL=dlltool
7795 test -z "$LD" && LD=ld
7796 test -z "$LN_S" && LN_S="ln -s"
7797 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7798 test -z "$NM" && NM=nm
7799 test -z "$SED" && SED=sed
7800 test -z "$OBJDUMP" && OBJDUMP=objdump
7801 test -z "$RANLIB" && RANLIB=:
7802 test -z "$STRIP" && STRIP=:
7803 test -z "$ac_objext" && ac_objext=o
7804
7805 # Determine commands to create old-style static archives.
7806 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7807 old_postinstall_cmds='chmod 644 $oldlib'
7808 old_postuninstall_cmds=
7809
7810 if test -n "$RANLIB"; then
7811 case $host_os in
7812 openbsd*)
7813 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7814 ;;
7815 *)
7816 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7817 ;;
7818 esac
7819 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7820 fi
7821
7822 for cc_temp in $compiler""; do
7823 case $cc_temp in
7824 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7825 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7826 \-*) ;;
7827 *) break;;
7828 esac
7829 done
7830 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7831
7832
7833 # Only perform the check for file, if the check method requires it
7834 case $deplibs_check_method in
7835 file_magic*)
7836 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7837 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7838 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7839 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842 case $MAGIC_CMD in
7843 [\\/*] | ?:[\\/]*)
7844 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7845 ;;
7846 *)
7847 lt_save_MAGIC_CMD="$MAGIC_CMD"
7848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7849 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7850 for ac_dir in $ac_dummy; do
7851 IFS="$lt_save_ifs"
7852 test -z "$ac_dir" && ac_dir=.
7853 if test -f $ac_dir/${ac_tool_prefix}file; then
7854 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7855 if test -n "$file_magic_test_file"; then
7856 case $deplibs_check_method in
7857 "file_magic "*)
7858 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7860 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7861 $EGREP "$file_magic_regex" > /dev/null; then
7862 :
7863 else
7864 cat <<EOF 1>&2
7865
7866 *** Warning: the command libtool uses to detect shared libraries,
7867 *** $file_magic_cmd, produces output that libtool cannot recognize.
7868 *** The result is that libtool may fail to recognize shared libraries
7869 *** as such. This will affect the creation of libtool libraries that
7870 *** depend on shared libraries, but programs linked with such libtool
7871 *** libraries will work regardless of this problem. Nevertheless, you
7872 *** may want to report the problem to your system manager and/or to
7873 *** [email protected]
7874
7875 EOF
7876 fi ;;
7877 esac
7878 fi
7879 break
7880 fi
7881 done
7882 IFS="$lt_save_ifs"
7883 MAGIC_CMD="$lt_save_MAGIC_CMD"
7884 ;;
7885 esac
7886 fi
7887
7888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7889 if test -n "$MAGIC_CMD"; then
7890 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7891 echo "${ECHO_T}$MAGIC_CMD" >&6
7892 else
7893 echo "$as_me:$LINENO: result: no" >&5
7894 echo "${ECHO_T}no" >&6
7895 fi
7896
7897 if test -z "$lt_cv_path_MAGIC_CMD"; then
7898 if test -n "$ac_tool_prefix"; then
7899 echo "$as_me:$LINENO: checking for file" >&5
7900 echo $ECHO_N "checking for file... $ECHO_C" >&6
7901 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 case $MAGIC_CMD in
7905 [\\/*] | ?:[\\/]*)
7906 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7907 ;;
7908 *)
7909 lt_save_MAGIC_CMD="$MAGIC_CMD"
7910 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7911 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7912 for ac_dir in $ac_dummy; do
7913 IFS="$lt_save_ifs"
7914 test -z "$ac_dir" && ac_dir=.
7915 if test -f $ac_dir/file; then
7916 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7917 if test -n "$file_magic_test_file"; then
7918 case $deplibs_check_method in
7919 "file_magic "*)
7920 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7922 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7923 $EGREP "$file_magic_regex" > /dev/null; then
7924 :
7925 else
7926 cat <<EOF 1>&2
7927
7928 *** Warning: the command libtool uses to detect shared libraries,
7929 *** $file_magic_cmd, produces output that libtool cannot recognize.
7930 *** The result is that libtool may fail to recognize shared libraries
7931 *** as such. This will affect the creation of libtool libraries that
7932 *** depend on shared libraries, but programs linked with such libtool
7933 *** libraries will work regardless of this problem. Nevertheless, you
7934 *** may want to report the problem to your system manager and/or to
7935 *** [email protected]
7936
7937 EOF
7938 fi ;;
7939 esac
7940 fi
7941 break
7942 fi
7943 done
7944 IFS="$lt_save_ifs"
7945 MAGIC_CMD="$lt_save_MAGIC_CMD"
7946 ;;
7947 esac
7948 fi
7949
7950 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7951 if test -n "$MAGIC_CMD"; then
7952 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7953 echo "${ECHO_T}$MAGIC_CMD" >&6
7954 else
7955 echo "$as_me:$LINENO: result: no" >&5
7956 echo "${ECHO_T}no" >&6
7957 fi
7958
7959 else
7960 MAGIC_CMD=:
7961 fi
7962 fi
7963
7964 fi
7965 ;;
7966 esac
7967
7968 enable_dlopen=no
7969 enable_win32_dll=no
7970
7971 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7972 if test "${enable_libtool_lock+set}" = set; then
7973 enableval="$enable_libtool_lock"
7974
7975 fi;
7976 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7977
7978
7979 # Check whether --with-pic or --without-pic was given.
7980 if test "${with_pic+set}" = set; then
7981 withval="$with_pic"
7982 pic_mode="$withval"
7983 else
7984 pic_mode=default
7985 fi;
7986 test -z "$pic_mode" && pic_mode=default
7987
7988 # Use C for the default configuration in the libtool script
7989 tagname=
7990 lt_save_CC="$CC"
7991 ac_ext=c
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996
7997
7998 # Source file extension for C test sources.
7999 ac_ext=c
8000
8001 # Object file extension for compiled C test sources.
8002 objext=o
8003 objext=$objext
8004
8005 # Code to be used in simple compile tests
8006 lt_simple_compile_test_code="int some_variable = 0;\n"
8007
8008 # Code to be used in simple link tests
8009 lt_simple_link_test_code='int main(){return(0);}\n'
8010
8011
8012 # If no C compiler was specified, use CC.
8013 LTCC=${LTCC-"$CC"}
8014
8015 # If no C compiler flags were specified, use CFLAGS.
8016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8017
8018 # Allow CC to be a program name with arguments.
8019 compiler=$CC
8020
8021
8022 # save warnings/boilerplate of simple test code
8023 ac_outfile=conftest.$ac_objext
8024 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8025 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8026 _lt_compiler_boilerplate=`cat conftest.err`
8027 $rm conftest*
8028
8029 ac_outfile=conftest.$ac_objext
8030 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8031 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8032 _lt_linker_boilerplate=`cat conftest.err`
8033 $rm conftest*
8034
8035
8036 ## CAVEAT EMPTOR:
8037 ## There is no encapsulation within the following macros, do not change
8038 ## the running order or otherwise move them around unless you know exactly
8039 ## what you are doing...
8040
8041 lt_prog_compiler_no_builtin_flag=
8042
8043 if test "$GCC" = yes; then
8044 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8045
8046
8047 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8048 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8049 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052 lt_cv_prog_compiler_rtti_exceptions=no
8053 ac_outfile=conftest.$ac_objext
8054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8055 lt_compiler_flag="-fno-rtti -fno-exceptions"
8056 # Insert the option either (1) after the last *FLAGS variable, or
8057 # (2) before a word containing "conftest.", or (3) at the end.
8058 # Note that $ac_compile itself does not contain backslashes and begins
8059 # with a dollar sign (not a hyphen), so the echo should work correctly.
8060 # The option is referenced via a variable to avoid confusing sed.
8061 lt_compile=`echo "$ac_compile" | $SED \
8062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8064 -e 's:$: $lt_compiler_flag:'`
8065 (eval echo "\"\$as_me:8065: $lt_compile\"" >&5)
8066 (eval "$lt_compile" 2>conftest.err)
8067 ac_status=$?
8068 cat conftest.err >&5
8069 echo "$as_me:8069: \$? = $ac_status" >&5
8070 if (exit $ac_status) && test -s "$ac_outfile"; then
8071 # The compiler can only warn and ignore the option if not recognized
8072 # So say no if there are warnings other than the usual output.
8073 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8075 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8076 lt_cv_prog_compiler_rtti_exceptions=yes
8077 fi
8078 fi
8079 $rm conftest*
8080
8081 fi
8082 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8083 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8084
8085 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8086 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8087 else
8088 :
8089 fi
8090
8091 fi
8092
8093 lt_prog_compiler_wl=
8094 lt_prog_compiler_pic=
8095 lt_prog_compiler_static=
8096
8097 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8098 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8099
8100 if test "$GCC" = yes; then
8101 lt_prog_compiler_wl='-Wl,'
8102 lt_prog_compiler_static='-static'
8103
8104 case $host_os in
8105 aix*)
8106 # All AIX code is PIC.
8107 if test "$host_cpu" = ia64; then
8108 # AIX 5 now supports IA64 processor
8109 lt_prog_compiler_static='-Bstatic'
8110 fi
8111 ;;
8112
8113 amigaos*)
8114 # FIXME: we need at least 68020 code to build shared libraries, but
8115 # adding the `-m68020' flag to GCC prevents building anything better,
8116 # like `-m68040'.
8117 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8118 ;;
8119
8120 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8121 # PIC is the default for these OSes.
8122 ;;
8123
8124 mingw* | pw32* | os2*)
8125 # This hack is so that the source file can tell whether it is being
8126 # built for inclusion in a dll (and should export symbols for example).
8127 lt_prog_compiler_pic='-DDLL_EXPORT'
8128 ;;
8129
8130 darwin* | rhapsody*)
8131 # PIC is the default on this platform
8132 # Common symbols not allowed in MH_DYLIB files
8133 lt_prog_compiler_pic='-fno-common'
8134 ;;
8135
8136 interix3*)
8137 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8138 # Instead, we relocate shared libraries at runtime.
8139 ;;
8140
8141 msdosdjgpp*)
8142 # Just because we use GCC doesn't mean we suddenly get shared libraries
8143 # on systems that don't support them.
8144 lt_prog_compiler_can_build_shared=no
8145 enable_shared=no
8146 ;;
8147
8148 sysv4*MP*)
8149 if test -d /usr/nec; then
8150 lt_prog_compiler_pic=-Kconform_pic
8151 fi
8152 ;;
8153
8154 hpux*)
8155 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8156 # not for PA HP-UX.
8157 case $host_cpu in
8158 hppa*64*|ia64*)
8159 # +Z the default
8160 ;;
8161 *)
8162 lt_prog_compiler_pic='-fPIC'
8163 ;;
8164 esac
8165 ;;
8166
8167 *)
8168 lt_prog_compiler_pic='-fPIC'
8169 ;;
8170 esac
8171 else
8172 # PORTME Check for flag to pass linker flags through the system compiler.
8173 case $host_os in
8174 aix*)
8175 lt_prog_compiler_wl='-Wl,'
8176 if test "$host_cpu" = ia64; then
8177 # AIX 5 now supports IA64 processor
8178 lt_prog_compiler_static='-Bstatic'
8179 else
8180 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8181 fi
8182 ;;
8183 darwin*)
8184 # PIC is the default on this platform
8185 # Common symbols not allowed in MH_DYLIB files
8186 case $cc_basename in
8187 xlc*)
8188 lt_prog_compiler_pic='-qnocommon'
8189 lt_prog_compiler_wl='-Wl,'
8190 ;;
8191 esac
8192 ;;
8193
8194 mingw* | pw32* | os2*)
8195 # This hack is so that the source file can tell whether it is being
8196 # built for inclusion in a dll (and should export symbols for example).
8197 lt_prog_compiler_pic='-DDLL_EXPORT'
8198 ;;
8199
8200 hpux9* | hpux10* | hpux11*)
8201 lt_prog_compiler_wl='-Wl,'
8202 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8203 # not for PA HP-UX.
8204 case $host_cpu in
8205 hppa*64*|ia64*)
8206 # +Z the default
8207 ;;
8208 *)
8209 lt_prog_compiler_pic='+Z'
8210 ;;
8211 esac
8212 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8213 lt_prog_compiler_static='${wl}-a ${wl}archive'
8214 ;;
8215
8216 irix5* | irix6* | nonstopux*)
8217 lt_prog_compiler_wl='-Wl,'
8218 # PIC (with -KPIC) is the default.
8219 lt_prog_compiler_static='-non_shared'
8220 ;;
8221
8222 newsos6)
8223 lt_prog_compiler_pic='-KPIC'
8224 lt_prog_compiler_static='-Bstatic'
8225 ;;
8226
8227 linux*)
8228 case $cc_basename in
8229 icc* | ecc*)
8230 lt_prog_compiler_wl='-Wl,'
8231 lt_prog_compiler_pic='-KPIC'
8232 lt_prog_compiler_static='-static'
8233 ;;
8234 pgcc* | pgf77* | pgf90* | pgf95*)
8235 # Portland Group compilers (*not* the Pentium gcc compiler,
8236 # which looks to be a dead project)
8237 lt_prog_compiler_wl='-Wl,'
8238 lt_prog_compiler_pic='-fpic'
8239 lt_prog_compiler_static='-Bstatic'
8240 ;;
8241 ccc*)
8242 lt_prog_compiler_wl='-Wl,'
8243 # All Alpha code is PIC.
8244 lt_prog_compiler_static='-non_shared'
8245 ;;
8246 esac
8247 ;;
8248
8249 osf3* | osf4* | osf5*)
8250 lt_prog_compiler_wl='-Wl,'
8251 # All OSF/1 code is PIC.
8252 lt_prog_compiler_static='-non_shared'
8253 ;;
8254
8255 solaris*)
8256 lt_prog_compiler_pic='-KPIC'
8257 lt_prog_compiler_static='-Bstatic'
8258 case $cc_basename in
8259 f77* | f90* | f95*)
8260 lt_prog_compiler_wl='-Qoption ld ';;
8261 *)
8262 lt_prog_compiler_wl='-Wl,';;
8263 esac
8264 ;;
8265
8266 sunos4*)
8267 lt_prog_compiler_wl='-Qoption ld '
8268 lt_prog_compiler_pic='-PIC'
8269 lt_prog_compiler_static='-Bstatic'
8270 ;;
8271
8272 sysv4 | sysv4.2uw2* | sysv4.3*)
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_pic='-KPIC'
8275 lt_prog_compiler_static='-Bstatic'
8276 ;;
8277
8278 sysv4*MP*)
8279 if test -d /usr/nec ;then
8280 lt_prog_compiler_pic='-Kconform_pic'
8281 lt_prog_compiler_static='-Bstatic'
8282 fi
8283 ;;
8284
8285 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8286 lt_prog_compiler_wl='-Wl,'
8287 lt_prog_compiler_pic='-KPIC'
8288 lt_prog_compiler_static='-Bstatic'
8289 ;;
8290
8291 unicos*)
8292 lt_prog_compiler_wl='-Wl,'
8293 lt_prog_compiler_can_build_shared=no
8294 ;;
8295
8296 uts4*)
8297 lt_prog_compiler_pic='-pic'
8298 lt_prog_compiler_static='-Bstatic'
8299 ;;
8300
8301 *)
8302 lt_prog_compiler_can_build_shared=no
8303 ;;
8304 esac
8305 fi
8306
8307 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8308 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8309
8310 #
8311 # Check to make sure the PIC flag actually works.
8312 #
8313 if test -n "$lt_prog_compiler_pic"; then
8314
8315 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8316 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8317 if test "${lt_prog_compiler_pic_works+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320 lt_prog_compiler_pic_works=no
8321 ac_outfile=conftest.$ac_objext
8322 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8323 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8324 # Insert the option either (1) after the last *FLAGS variable, or
8325 # (2) before a word containing "conftest.", or (3) at the end.
8326 # Note that $ac_compile itself does not contain backslashes and begins
8327 # with a dollar sign (not a hyphen), so the echo should work correctly.
8328 # The option is referenced via a variable to avoid confusing sed.
8329 lt_compile=`echo "$ac_compile" | $SED \
8330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8332 -e 's:$: $lt_compiler_flag:'`
8333 (eval echo "\"\$as_me:8333: $lt_compile\"" >&5)
8334 (eval "$lt_compile" 2>conftest.err)
8335 ac_status=$?
8336 cat conftest.err >&5
8337 echo "$as_me:8337: \$? = $ac_status" >&5
8338 if (exit $ac_status) && test -s "$ac_outfile"; then
8339 # The compiler can only warn and ignore the option if not recognized
8340 # So say no if there are warnings other than the usual output.
8341 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8343 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8344 lt_prog_compiler_pic_works=yes
8345 fi
8346 fi
8347 $rm conftest*
8348
8349 fi
8350 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8351 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8352
8353 if test x"$lt_prog_compiler_pic_works" = xyes; then
8354 case $lt_prog_compiler_pic in
8355 "" | " "*) ;;
8356 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8357 esac
8358 else
8359 lt_prog_compiler_pic=
8360 lt_prog_compiler_can_build_shared=no
8361 fi
8362
8363 fi
8364 case $host_os in
8365 # For platforms which do not support PIC, -DPIC is meaningless:
8366 *djgpp*)
8367 lt_prog_compiler_pic=
8368 ;;
8369 *)
8370 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8371 ;;
8372 esac
8373
8374 #
8375 # Check to make sure the static flag actually works.
8376 #
8377 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8378 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8379 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8380 if test "${lt_prog_compiler_static_works+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383 lt_prog_compiler_static_works=no
8384 save_LDFLAGS="$LDFLAGS"
8385 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8386 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8387 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8388 # The linker can only warn and ignore the option if not recognized
8389 # So say no if there are warnings
8390 if test -s conftest.err; then
8391 # Append any errors to the config.log.
8392 cat conftest.err 1>&5
8393 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8395 if diff conftest.exp conftest.er2 >/dev/null; then
8396 lt_prog_compiler_static_works=yes
8397 fi
8398 else
8399 lt_prog_compiler_static_works=yes
8400 fi
8401 fi
8402 $rm conftest*
8403 LDFLAGS="$save_LDFLAGS"
8404
8405 fi
8406 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8407 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8408
8409 if test x"$lt_prog_compiler_static_works" = xyes; then
8410 :
8411 else
8412 lt_prog_compiler_static=
8413 fi
8414
8415
8416 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8417 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8418 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421 lt_cv_prog_compiler_c_o=no
8422 $rm -r conftest 2>/dev/null
8423 mkdir conftest
8424 cd conftest
8425 mkdir out
8426 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8427
8428 lt_compiler_flag="-o out/conftest2.$ac_objext"
8429 # Insert the option either (1) after the last *FLAGS variable, or
8430 # (2) before a word containing "conftest.", or (3) at the end.
8431 # Note that $ac_compile itself does not contain backslashes and begins
8432 # with a dollar sign (not a hyphen), so the echo should work correctly.
8433 lt_compile=`echo "$ac_compile" | $SED \
8434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8436 -e 's:$: $lt_compiler_flag:'`
8437 (eval echo "\"\$as_me:8437: $lt_compile\"" >&5)
8438 (eval "$lt_compile" 2>out/conftest.err)
8439 ac_status=$?
8440 cat out/conftest.err >&5
8441 echo "$as_me:8441: \$? = $ac_status" >&5
8442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8443 then
8444 # The compiler can only warn and ignore the option if not recognized
8445 # So say no if there are warnings
8446 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8449 lt_cv_prog_compiler_c_o=yes
8450 fi
8451 fi
8452 chmod u+w . 2>&5
8453 $rm conftest*
8454 # SGI C++ compiler will create directory out/ii_files/ for
8455 # template instantiation
8456 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8457 $rm out/* && rmdir out
8458 cd ..
8459 rmdir conftest
8460 $rm conftest*
8461
8462 fi
8463 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8464 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8465
8466
8467 hard_links="nottested"
8468 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8469 # do not overwrite the value of need_locks provided by the user
8470 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8471 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8472 hard_links=yes
8473 $rm conftest*
8474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8475 touch conftest.a
8476 ln conftest.a conftest.b 2>&5 || hard_links=no
8477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8478 echo "$as_me:$LINENO: result: $hard_links" >&5
8479 echo "${ECHO_T}$hard_links" >&6
8480 if test "$hard_links" = no; then
8481 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8482 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8483 need_locks=warn
8484 fi
8485 else
8486 need_locks=no
8487 fi
8488
8489 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8490 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8491
8492 runpath_var=
8493 allow_undefined_flag=
8494 enable_shared_with_static_runtimes=no
8495 archive_cmds=
8496 archive_expsym_cmds=
8497 old_archive_From_new_cmds=
8498 old_archive_from_expsyms_cmds=
8499 export_dynamic_flag_spec=
8500 whole_archive_flag_spec=
8501 thread_safe_flag_spec=
8502 hardcode_libdir_flag_spec=
8503 hardcode_libdir_flag_spec_ld=
8504 hardcode_libdir_separator=
8505 hardcode_direct=no
8506 hardcode_minus_L=no
8507 hardcode_shlibpath_var=unsupported
8508 link_all_deplibs=unknown
8509 hardcode_automatic=no
8510 module_cmds=
8511 module_expsym_cmds=
8512 always_export_symbols=no
8513 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8514 # include_expsyms should be a list of space-separated symbols to be *always*
8515 # included in the symbol list
8516 include_expsyms=
8517 # exclude_expsyms can be an extended regexp of symbols to exclude
8518 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8519 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8520 # as well as any symbol that contains `d'.
8521 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8522 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8523 # platforms (ab)use it in PIC code, but their linkers get confused if
8524 # the symbol is explicitly referenced. Since portable code cannot
8525 # rely on this symbol name, it's probably fine to never include it in
8526 # preloaded symbol tables.
8527 extract_expsyms_cmds=
8528 # Just being paranoid about ensuring that cc_basename is set.
8529 for cc_temp in $compiler""; do
8530 case $cc_temp in
8531 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8532 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8533 \-*) ;;
8534 *) break;;
8535 esac
8536 done
8537 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8538
8539 case $host_os in
8540 cygwin* | mingw* | pw32*)
8541 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8542 # When not using gcc, we currently assume that we are using
8543 # Microsoft Visual C++.
8544 if test "$GCC" != yes; then
8545 with_gnu_ld=no
8546 fi
8547 ;;
8548 interix*)
8549 # we just hope/assume this is gcc and not c89 (= MSVC++)
8550 with_gnu_ld=yes
8551 ;;
8552 openbsd*)
8553 with_gnu_ld=no
8554 ;;
8555 esac
8556
8557 ld_shlibs=yes
8558 if test "$with_gnu_ld" = yes; then
8559 # If archive_cmds runs LD, not CC, wlarc should be empty
8560 wlarc='${wl}'
8561
8562 # Set some defaults for GNU ld with shared library support. These
8563 # are reset later if shared libraries are not supported. Putting them
8564 # here allows them to be overridden if necessary.
8565 runpath_var=LD_RUN_PATH
8566 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8567 export_dynamic_flag_spec='${wl}--export-dynamic'
8568 # ancient GNU ld didn't support --whole-archive et. al.
8569 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8570 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8571 else
8572 whole_archive_flag_spec=
8573 fi
8574 supports_anon_versioning=no
8575 case `$LD -v 2>/dev/null` in
8576 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8577 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8578 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8579 *\ 2.11.*) ;; # other 2.11 versions
8580 *) supports_anon_versioning=yes ;;
8581 esac
8582
8583 # See if GNU ld supports shared libraries.
8584 case $host_os in
8585 aix3* | aix4* | aix5*)
8586 # On AIX/PPC, the GNU linker is very broken
8587 if test "$host_cpu" != ia64; then
8588 ld_shlibs=no
8589 cat <<EOF 1>&2
8590
8591 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8592 *** to be unable to reliably create shared libraries on AIX.
8593 *** Therefore, libtool is disabling shared libraries support. If you
8594 *** really care for shared libraries, you may want to modify your PATH
8595 *** so that a non-GNU linker is found, and then restart.
8596
8597 EOF
8598 fi
8599 ;;
8600
8601 amigaos*)
8602 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8603 hardcode_libdir_flag_spec='-L$libdir'
8604 hardcode_minus_L=yes
8605
8606 # Samuel A. Falvo II <[email protected]> reports
8607 # that the semantics of dynamic libraries on AmigaOS, at least up
8608 # to version 4, is to share data among multiple programs linked
8609 # with the same dynamic library. Since this doesn't match the
8610 # behavior of shared libraries on other platforms, we can't use
8611 # them.
8612 ld_shlibs=no
8613 ;;
8614
8615 beos*)
8616 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8617 allow_undefined_flag=unsupported
8618 # Joseph Beckenbach <[email protected]> says some releases of gcc
8619 # support --undefined. This deserves some investigation. FIXME
8620 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8621 else
8622 ld_shlibs=no
8623 fi
8624 ;;
8625
8626 cygwin* | mingw* | pw32*)
8627 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8628 # as there is no search path for DLLs.
8629 hardcode_libdir_flag_spec='-L$libdir'
8630 allow_undefined_flag=unsupported
8631 always_export_symbols=no
8632 enable_shared_with_static_runtimes=yes
8633 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8634
8635 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8637 # If the export-symbols file already is a .def file (1st line
8638 # is EXPORTS), use it as is; otherwise, prepend...
8639 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8640 cp $export_symbols $output_objdir/$soname.def;
8641 else
8642 echo EXPORTS > $output_objdir/$soname.def;
8643 cat $export_symbols >> $output_objdir/$soname.def;
8644 fi~
8645 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8646 else
8647 ld_shlibs=no
8648 fi
8649 ;;
8650
8651 interix3*)
8652 hardcode_direct=no
8653 hardcode_shlibpath_var=no
8654 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8655 export_dynamic_flag_spec='${wl}-E'
8656 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8657 # Instead, shared libraries are loaded at an image base (0x10000000 by
8658 # default) and relocated if they conflict, which is a slow very memory
8659 # consuming and fragmenting process. To avoid this, we pick a random,
8660 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8661 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8662 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8663 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8664 ;;
8665
8666 linux*)
8667 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8668 tmp_addflag=
8669 case $cc_basename,$host_cpu in
8670 pgcc*) # Portland Group C compiler
8671 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8672 tmp_addflag=' $pic_flag'
8673 ;;
8674 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8675 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8676 tmp_addflag=' $pic_flag -Mnomain' ;;
8677 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8678 tmp_addflag=' -i_dynamic' ;;
8679 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8680 tmp_addflag=' -i_dynamic -nofor_main' ;;
8681 ifc* | ifort*) # Intel Fortran compiler
8682 tmp_addflag=' -nofor_main' ;;
8683 esac
8684 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685
8686 if test $supports_anon_versioning = yes; then
8687 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8688 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8689 $echo "local: *; };" >> $output_objdir/$libname.ver~
8690 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8691 fi
8692 else
8693 ld_shlibs=no
8694 fi
8695 ;;
8696
8697 netbsd*)
8698 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8699 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8700 wlarc=
8701 else
8702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8704 fi
8705 ;;
8706
8707 solaris*)
8708 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8709 ld_shlibs=no
8710 cat <<EOF 1>&2
8711
8712 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8713 *** create shared libraries on Solaris systems. Therefore, libtool
8714 *** is disabling shared libraries support. We urge you to upgrade GNU
8715 *** binutils to release 2.9.1 or newer. Another option is to modify
8716 *** your PATH or compiler configuration so that the native linker is
8717 *** used, and then restart.
8718
8719 EOF
8720 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723 else
8724 ld_shlibs=no
8725 fi
8726 ;;
8727
8728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8729 case `$LD -v 2>&1` in
8730 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8731 ld_shlibs=no
8732 cat <<_LT_EOF 1>&2
8733
8734 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8735 *** reliably create shared libraries on SCO systems. Therefore, libtool
8736 *** is disabling shared libraries support. We urge you to upgrade GNU
8737 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8738 *** your PATH or compiler configuration so that the native linker is
8739 *** used, and then restart.
8740
8741 _LT_EOF
8742 ;;
8743 *)
8744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8745 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8747 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8748 else
8749 ld_shlibs=no
8750 fi
8751 ;;
8752 esac
8753 ;;
8754
8755 sunos4*)
8756 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8757 wlarc=
8758 hardcode_direct=yes
8759 hardcode_shlibpath_var=no
8760 ;;
8761
8762 *)
8763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8766 else
8767 ld_shlibs=no
8768 fi
8769 ;;
8770 esac
8771
8772 if test "$ld_shlibs" = no; then
8773 runpath_var=
8774 hardcode_libdir_flag_spec=
8775 export_dynamic_flag_spec=
8776 whole_archive_flag_spec=
8777 fi
8778 else
8779 # PORTME fill in a description of your system's linker (not GNU ld)
8780 case $host_os in
8781 aix3*)
8782 allow_undefined_flag=unsupported
8783 always_export_symbols=yes
8784 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8785 # Note: this linker hardcodes the directories in LIBPATH if there
8786 # are no directories specified by -L.
8787 hardcode_minus_L=yes
8788 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8789 # Neither direct hardcoding nor static linking is supported with a
8790 # broken collect2.
8791 hardcode_direct=unsupported
8792 fi
8793 ;;
8794
8795 aix4* | aix5*)
8796 if test "$host_cpu" = ia64; then
8797 # On IA64, the linker does run time linking by default, so we don't
8798 # have to do anything special.
8799 aix_use_runtimelinking=no
8800 exp_sym_flag='-Bexport'
8801 no_entry_flag=""
8802 else
8803 # If we're using GNU nm, then we don't want the "-C" option.
8804 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8805 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8806 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8807 else
8808 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8809 fi
8810 aix_use_runtimelinking=no
8811
8812 # Test if we are trying to use run time linking or normal
8813 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8814 # need to do runtime linking.
8815 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8816 for ld_flag in $LDFLAGS; do
8817 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8818 aix_use_runtimelinking=yes
8819 break
8820 fi
8821 done
8822 ;;
8823 esac
8824
8825 exp_sym_flag='-bexport'
8826 no_entry_flag='-bnoentry'
8827 fi
8828
8829 # When large executables or shared objects are built, AIX ld can
8830 # have problems creating the table of contents. If linking a library
8831 # or program results in "error TOC overflow" add -mminimal-toc to
8832 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8833 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8834
8835 archive_cmds=''
8836 hardcode_direct=yes
8837 hardcode_libdir_separator=':'
8838 link_all_deplibs=yes
8839
8840 if test "$GCC" = yes; then
8841 case $host_os in aix4.[012]|aix4.[012].*)
8842 # We only want to do this on AIX 4.2 and lower, the check
8843 # below for broken collect2 doesn't work under 4.3+
8844 collect2name=`${CC} -print-prog-name=collect2`
8845 if test -f "$collect2name" && \
8846 strings "$collect2name" | grep resolve_lib_name >/dev/null
8847 then
8848 # We have reworked collect2
8849 hardcode_direct=yes
8850 else
8851 # We have old collect2
8852 hardcode_direct=unsupported
8853 # It fails to find uninstalled libraries when the uninstalled
8854 # path is not listed in the libpath. Setting hardcode_minus_L
8855 # to unsupported forces relinking
8856 hardcode_minus_L=yes
8857 hardcode_libdir_flag_spec='-L$libdir'
8858 hardcode_libdir_separator=
8859 fi
8860 ;;
8861 esac
8862 shared_flag='-shared'
8863 if test "$aix_use_runtimelinking" = yes; then
8864 shared_flag="$shared_flag "'${wl}-G'
8865 fi
8866 else
8867 # not using gcc
8868 if test "$host_cpu" = ia64; then
8869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8870 # chokes on -Wl,-G. The following line is correct:
8871 shared_flag='-G'
8872 else
8873 if test "$aix_use_runtimelinking" = yes; then
8874 shared_flag='${wl}-G'
8875 else
8876 shared_flag='${wl}-bM:SRE'
8877 fi
8878 fi
8879 fi
8880
8881 # It seems that -bexpall does not export symbols beginning with
8882 # underscore (_), so it is better to generate a list of symbols to export.
8883 always_export_symbols=yes
8884 if test "$aix_use_runtimelinking" = yes; then
8885 # Warning - without using the other runtime loading flags (-brtl),
8886 # -berok will link without error, but may produce a broken library.
8887 allow_undefined_flag='-berok'
8888 # Determine the default libpath from the value encoded in an empty executable.
8889 cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h. */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8895
8896 int
8897 main ()
8898 {
8899
8900 ;
8901 return 0;
8902 }
8903 _ACEOF
8904 rm -f conftest.$ac_objext conftest$ac_exeext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906 (eval $ac_link) 2>conftest.er1
8907 ac_status=$?
8908 grep -v '^ *+' conftest.er1 >conftest.err
8909 rm -f conftest.er1
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } &&
8913 { ac_try='test -z "$ac_c_werror_flag"
8914 || test ! -s conftest.err'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 (eval $ac_try) 2>&5
8917 ac_status=$?
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; } &&
8920 { ac_try='test -s conftest$ac_exeext'
8921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922 (eval $ac_try) 2>&5
8923 ac_status=$?
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; }; then
8926
8927 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8928 }'`
8929 # Check for a 64-bit object if we didn't find anything.
8930 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8931 }'`; fi
8932 else
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8935
8936 fi
8937 rm -f conftest.err conftest.$ac_objext \
8938 conftest$ac_exeext conftest.$ac_ext
8939 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8940
8941 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8942 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8943 else
8944 if test "$host_cpu" = ia64; then
8945 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8946 allow_undefined_flag="-z nodefs"
8947 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8948 else
8949 # Determine the default libpath from the value encoded in an empty executable.
8950 cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h. */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8956
8957 int
8958 main ()
8959 {
8960
8961 ;
8962 return 0;
8963 }
8964 _ACEOF
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8967 (eval $ac_link) 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -z "$ac_c_werror_flag"
8975 || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 (eval $ac_try) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try='test -s conftest$ac_exeext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987
8988 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8989 }'`
8990 # Check for a 64-bit object if we didn't find anything.
8991 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8992 }'`; fi
8993 else
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8996
8997 fi
8998 rm -f conftest.err conftest.$ac_objext \
8999 conftest$ac_exeext conftest.$ac_ext
9000 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9001
9002 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9003 # Warning - without using the other run time loading flags,
9004 # -berok will link without error, but may produce a broken library.
9005 no_undefined_flag=' ${wl}-bernotok'
9006 allow_undefined_flag=' ${wl}-berok'
9007 # Exported symbols can be pulled into shared objects from archives
9008 whole_archive_flag_spec='$convenience'
9009 archive_cmds_need_lc=yes
9010 # This is similar to how AIX traditionally builds its shared libraries.
9011 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9012 fi
9013 fi
9014 ;;
9015
9016 amigaos*)
9017 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9018 hardcode_libdir_flag_spec='-L$libdir'
9019 hardcode_minus_L=yes
9020 # see comment about different semantics on the GNU ld section
9021 ld_shlibs=no
9022 ;;
9023
9024 bsdi[45]*)
9025 export_dynamic_flag_spec=-rdynamic
9026 ;;
9027
9028 cygwin* | mingw* | pw32*)
9029 # When not using gcc, we currently assume that we are using
9030 # Microsoft Visual C++.
9031 # hardcode_libdir_flag_spec is actually meaningless, as there is
9032 # no search path for DLLs.
9033 hardcode_libdir_flag_spec=' '
9034 allow_undefined_flag=unsupported
9035 # Tell ltmain to make .lib files, not .a files.
9036 libext=lib
9037 # Tell ltmain to make .dll files, not .so files.
9038 shrext_cmds=".dll"
9039 # FIXME: Setting linknames here is a bad hack.
9040 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9041 # The linker will automatically build a .lib file if we build a DLL.
9042 old_archive_From_new_cmds='true'
9043 # FIXME: Should let the user specify the lib program.
9044 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9045 fix_srcfile_path='`cygpath -w "$srcfile"`'
9046 enable_shared_with_static_runtimes=yes
9047 ;;
9048
9049 darwin* | rhapsody*)
9050 case $host_os in
9051 rhapsody* | darwin1.[012])
9052 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9053 ;;
9054 *) # Darwin 1.3 on
9055 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9056 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9057 else
9058 case ${MACOSX_DEPLOYMENT_TARGET} in
9059 10.[012])
9060 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9061 ;;
9062 10.*)
9063 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9064 ;;
9065 esac
9066 fi
9067 ;;
9068 esac
9069 archive_cmds_need_lc=no
9070 hardcode_direct=no
9071 hardcode_automatic=yes
9072 hardcode_shlibpath_var=unsupported
9073 whole_archive_flag_spec=''
9074 link_all_deplibs=yes
9075 if test "$GCC" = yes ; then
9076 output_verbose_link_cmd='echo'
9077 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9078 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9079 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9080 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9081 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9082 else
9083 case $cc_basename in
9084 xlc*)
9085 output_verbose_link_cmd='echo'
9086 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9087 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9088 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9089 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9090 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9091 ;;
9092 *)
9093 ld_shlibs=no
9094 ;;
9095 esac
9096 fi
9097 ;;
9098
9099 dgux*)
9100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9101 hardcode_libdir_flag_spec='-L$libdir'
9102 hardcode_shlibpath_var=no
9103 ;;
9104
9105 freebsd1*)
9106 ld_shlibs=no
9107 ;;
9108
9109 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9110 # support. Future versions do this automatically, but an explicit c++rt0.o
9111 # does not break anything, and helps significantly (at the cost of a little
9112 # extra space).
9113 freebsd2.2*)
9114 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9115 hardcode_libdir_flag_spec='-R$libdir'
9116 hardcode_direct=yes
9117 hardcode_shlibpath_var=no
9118 ;;
9119
9120 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9121 freebsd2*)
9122 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9123 hardcode_direct=yes
9124 hardcode_minus_L=yes
9125 hardcode_shlibpath_var=no
9126 ;;
9127
9128 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9129 freebsd* | kfreebsd*-gnu | dragonfly*)
9130 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9131 hardcode_libdir_flag_spec='-R$libdir'
9132 hardcode_direct=yes
9133 hardcode_shlibpath_var=no
9134 ;;
9135
9136 hpux9*)
9137 if test "$GCC" = yes; then
9138 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9139 else
9140 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9141 fi
9142 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9143 hardcode_libdir_separator=:
9144 hardcode_direct=yes
9145
9146 # hardcode_minus_L: Not really in the search PATH,
9147 # but as the default location of the library.
9148 hardcode_minus_L=yes
9149 export_dynamic_flag_spec='${wl}-E'
9150 ;;
9151
9152 hpux10*)
9153 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9154 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9155 else
9156 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9157 fi
9158 if test "$with_gnu_ld" = no; then
9159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9160 hardcode_libdir_separator=:
9161
9162 hardcode_direct=yes
9163 export_dynamic_flag_spec='${wl}-E'
9164
9165 # hardcode_minus_L: Not really in the search PATH,
9166 # but as the default location of the library.
9167 hardcode_minus_L=yes
9168 fi
9169 ;;
9170
9171 hpux11*)
9172 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9173 case $host_cpu in
9174 hppa*64*)
9175 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9176 ;;
9177 ia64*)
9178 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9179 ;;
9180 *)
9181 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9182 ;;
9183 esac
9184 else
9185 case $host_cpu in
9186 hppa*64*)
9187 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9188 ;;
9189 ia64*)
9190 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9191 ;;
9192 *)
9193 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9194 ;;
9195 esac
9196 fi
9197 if test "$with_gnu_ld" = no; then
9198 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9199 hardcode_libdir_separator=:
9200
9201 case $host_cpu in
9202 hppa*64*|ia64*)
9203 hardcode_libdir_flag_spec_ld='+b $libdir'
9204 hardcode_direct=no
9205 hardcode_shlibpath_var=no
9206 ;;
9207 *)
9208 hardcode_direct=yes
9209 export_dynamic_flag_spec='${wl}-E'
9210
9211 # hardcode_minus_L: Not really in the search PATH,
9212 # but as the default location of the library.
9213 hardcode_minus_L=yes
9214 ;;
9215 esac
9216 fi
9217 ;;
9218
9219 irix5* | irix6* | nonstopux*)
9220 if test "$GCC" = yes; then
9221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9222 else
9223 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9224 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9225 fi
9226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227 hardcode_libdir_separator=:
9228 link_all_deplibs=yes
9229 ;;
9230
9231 netbsd*)
9232 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9234 else
9235 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9236 fi
9237 hardcode_libdir_flag_spec='-R$libdir'
9238 hardcode_direct=yes
9239 hardcode_shlibpath_var=no
9240 ;;
9241
9242 newsos6)
9243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9244 hardcode_direct=yes
9245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9246 hardcode_libdir_separator=:
9247 hardcode_shlibpath_var=no
9248 ;;
9249
9250 openbsd*)
9251 hardcode_direct=yes
9252 hardcode_shlibpath_var=no
9253 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9254 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9255 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9257 export_dynamic_flag_spec='${wl}-E'
9258 else
9259 case $host_os in
9260 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9261 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9262 hardcode_libdir_flag_spec='-R$libdir'
9263 ;;
9264 *)
9265 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9266 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9267 ;;
9268 esac
9269 fi
9270 ;;
9271
9272 os2*)
9273 hardcode_libdir_flag_spec='-L$libdir'
9274 hardcode_minus_L=yes
9275 allow_undefined_flag=unsupported
9276 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9277 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9278 ;;
9279
9280 osf3*)
9281 if test "$GCC" = yes; then
9282 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9283 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9284 else
9285 allow_undefined_flag=' -expect_unresolved \*'
9286 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9287 fi
9288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9289 hardcode_libdir_separator=:
9290 ;;
9291
9292 osf4* | osf5*) # as osf3* with the addition of -msym flag
9293 if test "$GCC" = yes; then
9294 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9295 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9297 else
9298 allow_undefined_flag=' -expect_unresolved \*'
9299 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9300 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9301 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9302
9303 # Both c and cxx compiler support -rpath directly
9304 hardcode_libdir_flag_spec='-rpath $libdir'
9305 fi
9306 hardcode_libdir_separator=:
9307 ;;
9308
9309 solaris*)
9310 no_undefined_flag=' -z text'
9311 if test "$GCC" = yes; then
9312 wlarc='${wl}'
9313 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9314 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9315 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9316 else
9317 wlarc=''
9318 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9320 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9321 fi
9322 hardcode_libdir_flag_spec='-R$libdir'
9323 hardcode_shlibpath_var=no
9324 case $host_os in
9325 solaris2.[0-5] | solaris2.[0-5].*) ;;
9326 *)
9327 # The compiler driver will combine linker options so we
9328 # cannot just pass the convience library names through
9329 # without $wl, iff we do not link with $LD.
9330 # Luckily, gcc supports the same syntax we need for Sun Studio.
9331 # Supported since Solaris 2.6 (maybe 2.5.1?)
9332 case $wlarc in
9333 '')
9334 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9335 *)
9336 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9337 esac ;;
9338 esac
9339 link_all_deplibs=yes
9340 ;;
9341
9342 sunos4*)
9343 if test "x$host_vendor" = xsequent; then
9344 # Use $CC to link under sequent, because it throws in some extra .o
9345 # files that make .init and .fini sections work.
9346 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9347 else
9348 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9349 fi
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 hardcode_direct=yes
9352 hardcode_minus_L=yes
9353 hardcode_shlibpath_var=no
9354 ;;
9355
9356 sysv4)
9357 case $host_vendor in
9358 sni)
9359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_direct=yes # is this really true???
9361 ;;
9362 siemens)
9363 ## LD is ld it makes a PLAMLIB
9364 ## CC just makes a GrossModule.
9365 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9366 reload_cmds='$CC -r -o $output$reload_objs'
9367 hardcode_direct=no
9368 ;;
9369 motorola)
9370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9372 ;;
9373 esac
9374 runpath_var='LD_RUN_PATH'
9375 hardcode_shlibpath_var=no
9376 ;;
9377
9378 sysv4.3*)
9379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_shlibpath_var=no
9381 export_dynamic_flag_spec='-Bexport'
9382 ;;
9383
9384 sysv4*MP*)
9385 if test -d /usr/nec; then
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_shlibpath_var=no
9388 runpath_var=LD_RUN_PATH
9389 hardcode_runpath_var=yes
9390 ld_shlibs=yes
9391 fi
9392 ;;
9393
9394 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9395 no_undefined_flag='${wl}-z,text'
9396 archive_cmds_need_lc=no
9397 hardcode_shlibpath_var=no
9398 runpath_var='LD_RUN_PATH'
9399
9400 if test "$GCC" = yes; then
9401 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9403 else
9404 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9405 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 fi
9407 ;;
9408
9409 sysv5* | sco3.2v5* | sco5v6*)
9410 # Note: We can NOT use -z defs as we might desire, because we do not
9411 # link with -lc, and that would cause any symbols used from libc to
9412 # always be unresolved, which means just about no library would
9413 # ever link correctly. If we're not using GNU ld we use -z text
9414 # though, which does catch some bad symbols but isn't as heavy-handed
9415 # as -z defs.
9416 no_undefined_flag='${wl}-z,text'
9417 allow_undefined_flag='${wl}-z,nodefs'
9418 archive_cmds_need_lc=no
9419 hardcode_shlibpath_var=no
9420 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9421 hardcode_libdir_separator=':'
9422 link_all_deplibs=yes
9423 export_dynamic_flag_spec='${wl}-Bexport'
9424 runpath_var='LD_RUN_PATH'
9425
9426 if test "$GCC" = yes; then
9427 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 else
9430 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9431 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 fi
9433 ;;
9434
9435 uts4*)
9436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9437 hardcode_libdir_flag_spec='-L$libdir'
9438 hardcode_shlibpath_var=no
9439 ;;
9440
9441 *)
9442 ld_shlibs=no
9443 ;;
9444 esac
9445 fi
9446
9447 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9448 echo "${ECHO_T}$ld_shlibs" >&6
9449 test "$ld_shlibs" = no && can_build_shared=no
9450
9451 #
9452 # Do we need to explicitly link libc?
9453 #
9454 case "x$archive_cmds_need_lc" in
9455 x|xyes)
9456 # Assume -lc should be added
9457 archive_cmds_need_lc=yes
9458
9459 if test "$enable_shared" = yes && test "$GCC" = yes; then
9460 case $archive_cmds in
9461 *'~'*)
9462 # FIXME: we may have to deal with multi-command sequences.
9463 ;;
9464 '$CC '*)
9465 # Test whether the compiler implicitly links with -lc since on some
9466 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9467 # to ld, don't add -lc before -lgcc.
9468 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9469 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9470 $rm conftest*
9471 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9472
9473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9474 (eval $ac_compile) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } 2>conftest.err; then
9478 soname=conftest
9479 lib=conftest
9480 libobjs=conftest.$ac_objext
9481 deplibs=
9482 wl=$lt_prog_compiler_wl
9483 pic_flag=$lt_prog_compiler_pic
9484 compiler_flags=-v
9485 linker_flags=-v
9486 verstring=
9487 output_objdir=.
9488 libname=conftest
9489 lt_save_allow_undefined_flag=$allow_undefined_flag
9490 allow_undefined_flag=
9491 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9492 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9493 ac_status=$?
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }
9496 then
9497 archive_cmds_need_lc=no
9498 else
9499 archive_cmds_need_lc=yes
9500 fi
9501 allow_undefined_flag=$lt_save_allow_undefined_flag
9502 else
9503 cat conftest.err 1>&5
9504 fi
9505 $rm conftest*
9506 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9507 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9508 ;;
9509 esac
9510 fi
9511 ;;
9512 esac
9513
9514 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9515 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9516 library_names_spec=
9517 libname_spec='lib$name'
9518 soname_spec=
9519 shrext_cmds=".so"
9520 postinstall_cmds=
9521 postuninstall_cmds=
9522 finish_cmds=
9523 finish_eval=
9524 shlibpath_var=
9525 shlibpath_overrides_runpath=unknown
9526 version_type=none
9527 dynamic_linker="$host_os ld.so"
9528 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9529 if test "$GCC" = yes; then
9530 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9531 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9532 # if the path contains ";" then we assume it to be the separator
9533 # otherwise default to the standard path separator (i.e. ":") - it is
9534 # assumed that no part of a normal pathname contains ";" but that should
9535 # okay in the real world where ";" in dirpaths is itself problematic.
9536 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9537 else
9538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9539 fi
9540 else
9541 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9542 fi
9543 need_lib_prefix=unknown
9544 hardcode_into_libs=no
9545
9546 # when you set need_version to no, make sure it does not cause -set_version
9547 # flags to be left without arguments
9548 need_version=unknown
9549
9550 case $host_os in
9551 aix3*)
9552 version_type=linux
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9554 shlibpath_var=LIBPATH
9555
9556 # AIX 3 has no versioning support, so we append a major version to the name.
9557 soname_spec='${libname}${release}${shared_ext}$major'
9558 ;;
9559
9560 aix4* | aix5*)
9561 version_type=linux
9562 need_lib_prefix=no
9563 need_version=no
9564 hardcode_into_libs=yes
9565 if test "$host_cpu" = ia64; then
9566 # AIX 5 supports IA64
9567 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9568 shlibpath_var=LD_LIBRARY_PATH
9569 else
9570 # With GCC up to 2.95.x, collect2 would create an import file
9571 # for dependence libraries. The import file would start with
9572 # the line `#! .'. This would cause the generated library to
9573 # depend on `.', always an invalid library. This was fixed in
9574 # development snapshots of GCC prior to 3.0.
9575 case $host_os in
9576 aix4 | aix4.[01] | aix4.[01].*)
9577 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9578 echo ' yes '
9579 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9580 :
9581 else
9582 can_build_shared=no
9583 fi
9584 ;;
9585 esac
9586 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9587 # soname into executable. Probably we can add versioning support to
9588 # collect2, so additional links can be useful in future.
9589 if test "$aix_use_runtimelinking" = yes; then
9590 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9591 # instead of lib<name>.a to let people know that these are not
9592 # typical AIX shared libraries.
9593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594 else
9595 # We preserve .a as extension for shared libraries through AIX4.2
9596 # and later when we are not doing run time linking.
9597 library_names_spec='${libname}${release}.a $libname.a'
9598 soname_spec='${libname}${release}${shared_ext}$major'
9599 fi
9600 shlibpath_var=LIBPATH
9601 fi
9602 ;;
9603
9604 amigaos*)
9605 library_names_spec='$libname.ixlibrary $libname.a'
9606 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9607 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9608 ;;
9609
9610 beos*)
9611 library_names_spec='${libname}${shared_ext}'
9612 dynamic_linker="$host_os ld.so"
9613 shlibpath_var=LIBRARY_PATH
9614 ;;
9615
9616 bsdi[45]*)
9617 version_type=linux
9618 need_version=no
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9620 soname_spec='${libname}${release}${shared_ext}$major'
9621 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9622 shlibpath_var=LD_LIBRARY_PATH
9623 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9624 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9625 # the default ld.so.conf also contains /usr/contrib/lib and
9626 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9627 # libtool to hard-code these into programs
9628 ;;
9629
9630 cygwin* | mingw* | pw32*)
9631 version_type=windows
9632 shrext_cmds=".dll"
9633 need_version=no
9634 need_lib_prefix=no
9635
9636 case $GCC,$host_os in
9637 yes,cygwin* | yes,mingw* | yes,pw32*)
9638 library_names_spec='$libname.dll.a'
9639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9640 postinstall_cmds='base_file=`basename \${file}`~
9641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9642 dldir=$destdir/`dirname \$dlpath`~
9643 test -d \$dldir || mkdir -p \$dldir~
9644 $install_prog $dir/$dlname \$dldir/$dlname~
9645 chmod a+x \$dldir/$dlname'
9646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9647 dlpath=$dir/\$dldll~
9648 $rm \$dlpath'
9649 shlibpath_overrides_runpath=yes
9650
9651 case $host_os in
9652 cygwin*)
9653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9654 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9655 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9656 ;;
9657 mingw*)
9658 # MinGW DLLs use traditional 'lib' prefix
9659 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9660 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9661 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9662 # It is most probably a Windows format PATH printed by
9663 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9664 # path with ; separators, and with drive letters. We can handle the
9665 # drive letters (cygwin fileutils understands them), so leave them,
9666 # especially as we might pass files found there to a mingw objdump,
9667 # which wouldn't understand a cygwinified path. Ahh.
9668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9669 else
9670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9671 fi
9672 ;;
9673 pw32*)
9674 # pw32 DLLs use 'pw' prefix rather than 'lib'
9675 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9676 ;;
9677 esac
9678 ;;
9679
9680 *)
9681 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9682 ;;
9683 esac
9684 dynamic_linker='Win32 ld.exe'
9685 # FIXME: first we should search . and the directory the executable is in
9686 shlibpath_var=PATH
9687 ;;
9688
9689 darwin* | rhapsody*)
9690 dynamic_linker="$host_os dyld"
9691 version_type=darwin
9692 need_lib_prefix=no
9693 need_version=no
9694 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9695 soname_spec='${libname}${release}${major}$shared_ext'
9696 shlibpath_overrides_runpath=yes
9697 shlibpath_var=DYLD_LIBRARY_PATH
9698 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9699 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9700 if test "$GCC" = yes; then
9701 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9702 else
9703 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9704 fi
9705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9706 ;;
9707
9708 dgux*)
9709 version_type=linux
9710 need_lib_prefix=no
9711 need_version=no
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9713 soname_spec='${libname}${release}${shared_ext}$major'
9714 shlibpath_var=LD_LIBRARY_PATH
9715 ;;
9716
9717 freebsd1*)
9718 dynamic_linker=no
9719 ;;
9720
9721 kfreebsd*-gnu)
9722 version_type=linux
9723 need_lib_prefix=no
9724 need_version=no
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9726 soname_spec='${libname}${release}${shared_ext}$major'
9727 shlibpath_var=LD_LIBRARY_PATH
9728 shlibpath_overrides_runpath=no
9729 hardcode_into_libs=yes
9730 dynamic_linker='GNU ld.so'
9731 ;;
9732
9733 freebsd* | dragonfly*)
9734 # DragonFly does not have aout. When/if they implement a new
9735 # versioning mechanism, adjust this.
9736 if test -x /usr/bin/objformat; then
9737 objformat=`/usr/bin/objformat`
9738 else
9739 case $host_os in
9740 freebsd[123]*) objformat=aout ;;
9741 *) objformat=elf ;;
9742 esac
9743 fi
9744 version_type=freebsd-$objformat
9745 case $version_type in
9746 freebsd-elf*)
9747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9748 need_version=no
9749 need_lib_prefix=no
9750 ;;
9751 freebsd-*)
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9753 need_version=yes
9754 ;;
9755 esac
9756 shlibpath_var=LD_LIBRARY_PATH
9757 case $host_os in
9758 freebsd2*)
9759 shlibpath_overrides_runpath=yes
9760 ;;
9761 freebsd3.[01]* | freebsdelf3.[01]*)
9762 shlibpath_overrides_runpath=yes
9763 hardcode_into_libs=yes
9764 ;;
9765 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9766 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9767 shlibpath_overrides_runpath=no
9768 hardcode_into_libs=yes
9769 ;;
9770 freebsd*) # from 4.6 on
9771 shlibpath_overrides_runpath=yes
9772 hardcode_into_libs=yes
9773 ;;
9774 esac
9775 ;;
9776
9777 gnu*)
9778 version_type=linux
9779 need_lib_prefix=no
9780 need_version=no
9781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9782 soname_spec='${libname}${release}${shared_ext}$major'
9783 shlibpath_var=LD_LIBRARY_PATH
9784 hardcode_into_libs=yes
9785 ;;
9786
9787 hpux9* | hpux10* | hpux11*)
9788 # Give a soname corresponding to the major version so that dld.sl refuses to
9789 # link against other versions.
9790 version_type=sunos
9791 need_lib_prefix=no
9792 need_version=no
9793 case $host_cpu in
9794 ia64*)
9795 shrext_cmds='.so'
9796 hardcode_into_libs=yes
9797 dynamic_linker="$host_os dld.so"
9798 shlibpath_var=LD_LIBRARY_PATH
9799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 if test "X$HPUX_IA64_MODE" = X32; then
9803 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9804 else
9805 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9806 fi
9807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9808 ;;
9809 hppa*64*)
9810 shrext_cmds='.sl'
9811 hardcode_into_libs=yes
9812 dynamic_linker="$host_os dld.sl"
9813 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9816 soname_spec='${libname}${release}${shared_ext}$major'
9817 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9819 ;;
9820 *)
9821 shrext_cmds='.sl'
9822 dynamic_linker="$host_os dld.sl"
9823 shlibpath_var=SHLIB_PATH
9824 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 ;;
9828 esac
9829 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9830 postinstall_cmds='chmod 555 $lib'
9831 ;;
9832
9833 interix3*)
9834 version_type=linux
9835 need_lib_prefix=no
9836 need_version=no
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 shlibpath_overrides_runpath=no
9842 hardcode_into_libs=yes
9843 ;;
9844
9845 irix5* | irix6* | nonstopux*)
9846 case $host_os in
9847 nonstopux*) version_type=nonstopux ;;
9848 *)
9849 if test "$lt_cv_prog_gnu_ld" = yes; then
9850 version_type=linux
9851 else
9852 version_type=irix
9853 fi ;;
9854 esac
9855 need_lib_prefix=no
9856 need_version=no
9857 soname_spec='${libname}${release}${shared_ext}$major'
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9859 case $host_os in
9860 irix5* | nonstopux*)
9861 libsuff= shlibsuff=
9862 ;;
9863 *)
9864 case $LD in # libtool.m4 will add one of these switches to LD
9865 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9866 libsuff= shlibsuff= libmagic=32-bit;;
9867 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9868 libsuff=32 shlibsuff=N32 libmagic=N32;;
9869 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9870 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9871 *) libsuff= shlibsuff= libmagic=never-match;;
9872 esac
9873 ;;
9874 esac
9875 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9876 shlibpath_overrides_runpath=no
9877 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9878 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9879 hardcode_into_libs=yes
9880 ;;
9881
9882 # No shared lib support for Linux oldld, aout, or coff.
9883 linux*oldld* | linux*aout* | linux*coff*)
9884 dynamic_linker=no
9885 ;;
9886
9887 # This must be Linux ELF.
9888 linux*)
9889 version_type=linux
9890 need_lib_prefix=no
9891 need_version=no
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9893 soname_spec='${libname}${release}${shared_ext}$major'
9894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 shlibpath_overrides_runpath=no
9897 # This implies no fast_install, which is unacceptable.
9898 # Some rework will be needed to allow for fast_install
9899 # before this can be enabled.
9900 hardcode_into_libs=yes
9901
9902 # Append ld.so.conf contents to the search path
9903 if test -f /etc/ld.so.conf; then
9904 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9905 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9906 fi
9907
9908 # We used to test for /lib/ld.so.1 and disable shared libraries on
9909 # powerpc, because MkLinux only supported shared libraries with the
9910 # GNU dynamic linker. Since this was broken with cross compilers,
9911 # most powerpc-linux boxes support dynamic linking these days and
9912 # people can always --disable-shared, the test was removed, and we
9913 # assume the GNU/Linux dynamic linker is in use.
9914 dynamic_linker='GNU/Linux ld.so'
9915 ;;
9916
9917 knetbsd*-gnu)
9918 version_type=linux
9919 need_lib_prefix=no
9920 need_version=no
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9922 soname_spec='${libname}${release}${shared_ext}$major'
9923 shlibpath_var=LD_LIBRARY_PATH
9924 shlibpath_overrides_runpath=no
9925 hardcode_into_libs=yes
9926 dynamic_linker='GNU ld.so'
9927 ;;
9928
9929 netbsd*)
9930 version_type=sunos
9931 need_lib_prefix=no
9932 need_version=no
9933 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9936 dynamic_linker='NetBSD (a.out) ld.so'
9937 else
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9939 soname_spec='${libname}${release}${shared_ext}$major'
9940 dynamic_linker='NetBSD ld.elf_so'
9941 fi
9942 shlibpath_var=LD_LIBRARY_PATH
9943 shlibpath_overrides_runpath=yes
9944 hardcode_into_libs=yes
9945 ;;
9946
9947 newsos6)
9948 version_type=linux
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9950 shlibpath_var=LD_LIBRARY_PATH
9951 shlibpath_overrides_runpath=yes
9952 ;;
9953
9954 nto-qnx*)
9955 version_type=linux
9956 need_lib_prefix=no
9957 need_version=no
9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959 soname_spec='${libname}${release}${shared_ext}$major'
9960 shlibpath_var=LD_LIBRARY_PATH
9961 shlibpath_overrides_runpath=yes
9962 ;;
9963
9964 openbsd*)
9965 version_type=sunos
9966 sys_lib_dlsearch_path_spec="/usr/lib"
9967 need_lib_prefix=no
9968 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9969 case $host_os in
9970 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9971 *) need_version=no ;;
9972 esac
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9975 shlibpath_var=LD_LIBRARY_PATH
9976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9977 case $host_os in
9978 openbsd2.[89] | openbsd2.[89].*)
9979 shlibpath_overrides_runpath=no
9980 ;;
9981 *)
9982 shlibpath_overrides_runpath=yes
9983 ;;
9984 esac
9985 else
9986 shlibpath_overrides_runpath=yes
9987 fi
9988 ;;
9989
9990 os2*)
9991 libname_spec='$name'
9992 shrext_cmds=".dll"
9993 need_lib_prefix=no
9994 library_names_spec='$libname${shared_ext} $libname.a'
9995 dynamic_linker='OS/2 ld.exe'
9996 shlibpath_var=LIBPATH
9997 ;;
9998
9999 osf3* | osf4* | osf5*)
10000 version_type=osf
10001 need_lib_prefix=no
10002 need_version=no
10003 soname_spec='${libname}${release}${shared_ext}$major'
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10005 shlibpath_var=LD_LIBRARY_PATH
10006 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10007 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10008 ;;
10009
10010 solaris*)
10011 version_type=linux
10012 need_lib_prefix=no
10013 need_version=no
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 shlibpath_var=LD_LIBRARY_PATH
10017 shlibpath_overrides_runpath=yes
10018 hardcode_into_libs=yes
10019 # ldd complains unless libraries are executable
10020 postinstall_cmds='chmod +x $lib'
10021 ;;
10022
10023 sunos4*)
10024 version_type=sunos
10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10026 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10027 shlibpath_var=LD_LIBRARY_PATH
10028 shlibpath_overrides_runpath=yes
10029 if test "$with_gnu_ld" = yes; then
10030 need_lib_prefix=no
10031 fi
10032 need_version=yes
10033 ;;
10034
10035 sysv4 | sysv4.3*)
10036 version_type=linux
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 shlibpath_var=LD_LIBRARY_PATH
10040 case $host_vendor in
10041 sni)
10042 shlibpath_overrides_runpath=no
10043 need_lib_prefix=no
10044 export_dynamic_flag_spec='${wl}-Blargedynsym'
10045 runpath_var=LD_RUN_PATH
10046 ;;
10047 siemens)
10048 need_lib_prefix=no
10049 ;;
10050 motorola)
10051 need_lib_prefix=no
10052 need_version=no
10053 shlibpath_overrides_runpath=no
10054 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10055 ;;
10056 esac
10057 ;;
10058
10059 sysv4*MP*)
10060 if test -d /usr/nec ;then
10061 version_type=linux
10062 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10063 soname_spec='$libname${shared_ext}.$major'
10064 shlibpath_var=LD_LIBRARY_PATH
10065 fi
10066 ;;
10067
10068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10069 version_type=freebsd-elf
10070 need_lib_prefix=no
10071 need_version=no
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 shlibpath_var=LD_LIBRARY_PATH
10075 hardcode_into_libs=yes
10076 if test "$with_gnu_ld" = yes; then
10077 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10078 shlibpath_overrides_runpath=no
10079 else
10080 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10081 shlibpath_overrides_runpath=yes
10082 case $host_os in
10083 sco3.2v5*)
10084 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10085 ;;
10086 esac
10087 fi
10088 sys_lib_dlsearch_path_spec='/usr/lib'
10089 ;;
10090
10091 uts4*)
10092 version_type=linux
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 shlibpath_var=LD_LIBRARY_PATH
10096 ;;
10097
10098 *)
10099 dynamic_linker=no
10100 ;;
10101 esac
10102 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10103 echo "${ECHO_T}$dynamic_linker" >&6
10104 test "$dynamic_linker" = no && can_build_shared=no
10105
10106 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10107 if test "$GCC" = yes; then
10108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10109 fi
10110
10111 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10112 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10113 hardcode_action=
10114 if test -n "$hardcode_libdir_flag_spec" || \
10115 test -n "$runpath_var" || \
10116 test "X$hardcode_automatic" = "Xyes" ; then
10117
10118 # We can hardcode non-existant directories.
10119 if test "$hardcode_direct" != no &&
10120 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10121 # have to relink, otherwise we might link with an installed library
10122 # when we should be linking with a yet-to-be-installed one
10123 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10124 test "$hardcode_minus_L" != no; then
10125 # Linking always hardcodes the temporary library directory.
10126 hardcode_action=relink
10127 else
10128 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10129 hardcode_action=immediate
10130 fi
10131 else
10132 # We cannot hardcode anything, or else we can only hardcode existing
10133 # directories.
10134 hardcode_action=unsupported
10135 fi
10136 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10137 echo "${ECHO_T}$hardcode_action" >&6
10138
10139 if test "$hardcode_action" = relink; then
10140 # Fast installation is not supported
10141 enable_fast_install=no
10142 elif test "$shlibpath_overrides_runpath" = yes ||
10143 test "$enable_shared" = no; then
10144 # Fast installation is not necessary
10145 enable_fast_install=needless
10146 fi
10147
10148 striplib=
10149 old_striplib=
10150 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10151 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10152 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10153 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10154 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10155 echo "$as_me:$LINENO: result: yes" >&5
10156 echo "${ECHO_T}yes" >&6
10157 else
10158 # FIXME - insert some real tests, host_os isn't really good enough
10159 case $host_os in
10160 darwin*)
10161 if test -n "$STRIP" ; then
10162 striplib="$STRIP -x"
10163 echo "$as_me:$LINENO: result: yes" >&5
10164 echo "${ECHO_T}yes" >&6
10165 else
10166 echo "$as_me:$LINENO: result: no" >&5
10167 echo "${ECHO_T}no" >&6
10168 fi
10169 ;;
10170 *)
10171 echo "$as_me:$LINENO: result: no" >&5
10172 echo "${ECHO_T}no" >&6
10173 ;;
10174 esac
10175 fi
10176
10177 if test "x$enable_dlopen" != xyes; then
10178 enable_dlopen=unknown
10179 enable_dlopen_self=unknown
10180 enable_dlopen_self_static=unknown
10181 else
10182 lt_cv_dlopen=no
10183 lt_cv_dlopen_libs=
10184
10185 case $host_os in
10186 beos*)
10187 lt_cv_dlopen="load_add_on"
10188 lt_cv_dlopen_libs=
10189 lt_cv_dlopen_self=yes
10190 ;;
10191
10192 mingw* | pw32*)
10193 lt_cv_dlopen="LoadLibrary"
10194 lt_cv_dlopen_libs=
10195 ;;
10196
10197 cygwin*)
10198 lt_cv_dlopen="dlopen"
10199 lt_cv_dlopen_libs=
10200 ;;
10201
10202 darwin*)
10203 # if libdl is installed we need to link against it
10204 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10205 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209 ac_check_lib_save_LIBS=$LIBS
10210 LIBS="-ldl $LIBS"
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h. */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217
10218 /* Override any gcc2 internal prototype to avoid an error. */
10219 #ifdef __cplusplus
10220 extern "C"
10221 #endif
10222 /* We use char because int might match the return type of a gcc2
10223 builtin and then its argument prototype would still apply. */
10224 char dlopen ();
10225 int
10226 main ()
10227 {
10228 dlopen ();
10229 ;
10230 return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235 (eval $ac_link) 2>conftest.er1
10236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try='test -z "$ac_c_werror_flag"
10243 || test ! -s conftest.err'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try='test -s conftest$ac_exeext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_cv_lib_dl_dlopen=yes
10256 else
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 ac_cv_lib_dl_dlopen=no
10261 fi
10262 rm -f conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10265 fi
10266 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10267 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10268 if test $ac_cv_lib_dl_dlopen = yes; then
10269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10270 else
10271
10272 lt_cv_dlopen="dyld"
10273 lt_cv_dlopen_libs=
10274 lt_cv_dlopen_self=yes
10275
10276 fi
10277
10278 ;;
10279
10280 *)
10281 echo "$as_me:$LINENO: checking for shl_load" >&5
10282 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10283 if test "${ac_cv_func_shl_load+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10285 else
10286 cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h. */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10294 #define shl_load innocuous_shl_load
10295
10296 /* System header to define __stub macros and hopefully few prototypes,
10297 which can conflict with char shl_load (); below.
10298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10299 <limits.h> exists even on freestanding compilers. */
10300
10301 #ifdef __STDC__
10302 # include <limits.h>
10303 #else
10304 # include <assert.h>
10305 #endif
10306
10307 #undef shl_load
10308
10309 /* Override any gcc2 internal prototype to avoid an error. */
10310 #ifdef __cplusplus
10311 extern "C"
10312 {
10313 #endif
10314 /* We use char because int might match the return type of a gcc2
10315 builtin and then its argument prototype would still apply. */
10316 char shl_load ();
10317 /* The GNU C library defines this for functions which it implements
10318 to always fail with ENOSYS. Some functions are actually named
10319 something starting with __ and the normal name is an alias. */
10320 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10321 choke me
10322 #else
10323 char (*f) () = shl_load;
10324 #endif
10325 #ifdef __cplusplus
10326 }
10327 #endif
10328
10329 int
10330 main ()
10331 {
10332 return f != shl_load;
10333 ;
10334 return 0;
10335 }
10336 _ACEOF
10337 rm -f conftest.$ac_objext conftest$ac_exeext
10338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10339 (eval $ac_link) 2>conftest.er1
10340 ac_status=$?
10341 grep -v '^ *+' conftest.er1 >conftest.err
10342 rm -f conftest.er1
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } &&
10346 { ac_try='test -z "$ac_c_werror_flag"
10347 || test ! -s conftest.err'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; } &&
10353 { ac_try='test -s conftest$ac_exeext'
10354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10356 ac_status=$?
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; }; then
10359 ac_cv_func_shl_load=yes
10360 else
10361 echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10363
10364 ac_cv_func_shl_load=no
10365 fi
10366 rm -f conftest.err conftest.$ac_objext \
10367 conftest$ac_exeext conftest.$ac_ext
10368 fi
10369 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10370 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10371 if test $ac_cv_func_shl_load = yes; then
10372 lt_cv_dlopen="shl_load"
10373 else
10374 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10375 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10376 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379 ac_check_lib_save_LIBS=$LIBS
10380 LIBS="-ldld $LIBS"
10381 cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h. */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10387
10388 /* Override any gcc2 internal prototype to avoid an error. */
10389 #ifdef __cplusplus
10390 extern "C"
10391 #endif
10392 /* We use char because int might match the return type of a gcc2
10393 builtin and then its argument prototype would still apply. */
10394 char shl_load ();
10395 int
10396 main ()
10397 {
10398 shl_load ();
10399 ;
10400 return 0;
10401 }
10402 _ACEOF
10403 rm -f conftest.$ac_objext conftest$ac_exeext
10404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10405 (eval $ac_link) 2>conftest.er1
10406 ac_status=$?
10407 grep -v '^ *+' conftest.er1 >conftest.err
10408 rm -f conftest.er1
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -z "$ac_c_werror_flag"
10413 || test ! -s conftest.err'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; } &&
10419 { ac_try='test -s conftest$ac_exeext'
10420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; }; then
10425 ac_cv_lib_dld_shl_load=yes
10426 else
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430 ac_cv_lib_dld_shl_load=no
10431 fi
10432 rm -f conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10434 LIBS=$ac_check_lib_save_LIBS
10435 fi
10436 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10437 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10438 if test $ac_cv_lib_dld_shl_load = yes; then
10439 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10440 else
10441 echo "$as_me:$LINENO: checking for dlopen" >&5
10442 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10443 if test "${ac_cv_func_dlopen+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446 cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h. */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10452 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10454 #define dlopen innocuous_dlopen
10455
10456 /* System header to define __stub macros and hopefully few prototypes,
10457 which can conflict with char dlopen (); below.
10458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10459 <limits.h> exists even on freestanding compilers. */
10460
10461 #ifdef __STDC__
10462 # include <limits.h>
10463 #else
10464 # include <assert.h>
10465 #endif
10466
10467 #undef dlopen
10468
10469 /* Override any gcc2 internal prototype to avoid an error. */
10470 #ifdef __cplusplus
10471 extern "C"
10472 {
10473 #endif
10474 /* We use char because int might match the return type of a gcc2
10475 builtin and then its argument prototype would still apply. */
10476 char dlopen ();
10477 /* The GNU C library defines this for functions which it implements
10478 to always fail with ENOSYS. Some functions are actually named
10479 something starting with __ and the normal name is an alias. */
10480 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10481 choke me
10482 #else
10483 char (*f) () = dlopen;
10484 #endif
10485 #ifdef __cplusplus
10486 }
10487 #endif
10488
10489 int
10490 main ()
10491 {
10492 return f != dlopen;
10493 ;
10494 return 0;
10495 }
10496 _ACEOF
10497 rm -f conftest.$ac_objext conftest$ac_exeext
10498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10499 (eval $ac_link) 2>conftest.er1
10500 ac_status=$?
10501 grep -v '^ *+' conftest.er1 >conftest.err
10502 rm -f conftest.er1
10503 cat conftest.err >&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } &&
10506 { ac_try='test -z "$ac_c_werror_flag"
10507 || test ! -s conftest.err'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10510 ac_status=$?
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; } &&
10513 { ac_try='test -s conftest$ac_exeext'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
10519 ac_cv_func_dlopen=yes
10520 else
10521 echo "$as_me: failed program was:" >&5
10522 sed 's/^/| /' conftest.$ac_ext >&5
10523
10524 ac_cv_func_dlopen=no
10525 fi
10526 rm -f conftest.err conftest.$ac_objext \
10527 conftest$ac_exeext conftest.$ac_ext
10528 fi
10529 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10530 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10531 if test $ac_cv_func_dlopen = yes; then
10532 lt_cv_dlopen="dlopen"
10533 else
10534 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10535 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10536 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539 ac_check_lib_save_LIBS=$LIBS
10540 LIBS="-ldl $LIBS"
10541 cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h. */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10547
10548 /* Override any gcc2 internal prototype to avoid an error. */
10549 #ifdef __cplusplus
10550 extern "C"
10551 #endif
10552 /* We use char because int might match the return type of a gcc2
10553 builtin and then its argument prototype would still apply. */
10554 char dlopen ();
10555 int
10556 main ()
10557 {
10558 dlopen ();
10559 ;
10560 return 0;
10561 }
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>conftest.er1
10566 ac_status=$?
10567 grep -v '^ *+' conftest.er1 >conftest.err
10568 rm -f conftest.er1
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -z "$ac_c_werror_flag"
10573 || test ! -s conftest.err'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; } &&
10579 { ac_try='test -s conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 ac_cv_lib_dl_dlopen=yes
10586 else
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10589
10590 ac_cv_lib_dl_dlopen=no
10591 fi
10592 rm -f conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10594 LIBS=$ac_check_lib_save_LIBS
10595 fi
10596 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10598 if test $ac_cv_lib_dl_dlopen = yes; then
10599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10600 else
10601 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10602 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10603 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606 ac_check_lib_save_LIBS=$LIBS
10607 LIBS="-lsvld $LIBS"
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h. */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614
10615 /* Override any gcc2 internal prototype to avoid an error. */
10616 #ifdef __cplusplus
10617 extern "C"
10618 #endif
10619 /* We use char because int might match the return type of a gcc2
10620 builtin and then its argument prototype would still apply. */
10621 char dlopen ();
10622 int
10623 main ()
10624 {
10625 dlopen ();
10626 ;
10627 return 0;
10628 }
10629 _ACEOF
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10632 (eval $ac_link) 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -z "$ac_c_werror_flag"
10640 || test ! -s conftest.err'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652 ac_cv_lib_svld_dlopen=yes
10653 else
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657 ac_cv_lib_svld_dlopen=no
10658 fi
10659 rm -f conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
10661 LIBS=$ac_check_lib_save_LIBS
10662 fi
10663 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10664 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10665 if test $ac_cv_lib_svld_dlopen = yes; then
10666 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10667 else
10668 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10669 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10670 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 else
10673 ac_check_lib_save_LIBS=$LIBS
10674 LIBS="-ldld $LIBS"
10675 cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h. */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10681
10682 /* Override any gcc2 internal prototype to avoid an error. */
10683 #ifdef __cplusplus
10684 extern "C"
10685 #endif
10686 /* We use char because int might match the return type of a gcc2
10687 builtin and then its argument prototype would still apply. */
10688 char dld_link ();
10689 int
10690 main ()
10691 {
10692 dld_link ();
10693 ;
10694 return 0;
10695 }
10696 _ACEOF
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699 (eval $ac_link) 2>conftest.er1
10700 ac_status=$?
10701 grep -v '^ *+' conftest.er1 >conftest.err
10702 rm -f conftest.er1
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } &&
10706 { ac_try='test -z "$ac_c_werror_flag"
10707 || test ! -s conftest.err'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; } &&
10713 { ac_try='test -s conftest$ac_exeext'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 ac_cv_lib_dld_dld_link=yes
10720 else
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 ac_cv_lib_dld_dld_link=no
10725 fi
10726 rm -f conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 LIBS=$ac_check_lib_save_LIBS
10729 fi
10730 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10731 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10732 if test $ac_cv_lib_dld_dld_link = yes; then
10733 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10734 fi
10735
10736
10737 fi
10738
10739
10740 fi
10741
10742
10743 fi
10744
10745
10746 fi
10747
10748
10749 fi
10750
10751 ;;
10752 esac
10753
10754 if test "x$lt_cv_dlopen" != xno; then
10755 enable_dlopen=yes
10756 else
10757 enable_dlopen=no
10758 fi
10759
10760 case $lt_cv_dlopen in
10761 dlopen)
10762 save_CPPFLAGS="$CPPFLAGS"
10763 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10764
10765 save_LDFLAGS="$LDFLAGS"
10766 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10767
10768 save_LIBS="$LIBS"
10769 LIBS="$lt_cv_dlopen_libs $LIBS"
10770
10771 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10772 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10773 if test "${lt_cv_dlopen_self+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776 if test "$cross_compiling" = yes; then :
10777 lt_cv_dlopen_self=cross
10778 else
10779 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10780 lt_status=$lt_dlunknown
10781 cat > conftest.$ac_ext <<EOF
10782 #line 10782 "configure"
10783 #include "confdefs.h"
10784
10785 #if HAVE_DLFCN_H
10786 #include <dlfcn.h>
10787 #endif
10788
10789 #include <stdio.h>
10790
10791 #ifdef RTLD_GLOBAL
10792 # define LT_DLGLOBAL RTLD_GLOBAL
10793 #else
10794 # ifdef DL_GLOBAL
10795 # define LT_DLGLOBAL DL_GLOBAL
10796 # else
10797 # define LT_DLGLOBAL 0
10798 # endif
10799 #endif
10800
10801 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10802 find out it does not work in some platform. */
10803 #ifndef LT_DLLAZY_OR_NOW
10804 # ifdef RTLD_LAZY
10805 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10806 # else
10807 # ifdef DL_LAZY
10808 # define LT_DLLAZY_OR_NOW DL_LAZY
10809 # else
10810 # ifdef RTLD_NOW
10811 # define LT_DLLAZY_OR_NOW RTLD_NOW
10812 # else
10813 # ifdef DL_NOW
10814 # define LT_DLLAZY_OR_NOW DL_NOW
10815 # else
10816 # define LT_DLLAZY_OR_NOW 0
10817 # endif
10818 # endif
10819 # endif
10820 # endif
10821 #endif
10822
10823 #ifdef __cplusplus
10824 extern "C" void exit (int);
10825 #endif
10826
10827 void fnord() { int i=42;}
10828 int main ()
10829 {
10830 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10831 int status = $lt_dlunknown;
10832
10833 if (self)
10834 {
10835 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10836 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10837 /* dlclose (self); */
10838 }
10839 else
10840 puts (dlerror ());
10841
10842 exit (status);
10843 }
10844 EOF
10845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846 (eval $ac_link) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10850 (./conftest; exit; ) >&5 2>/dev/null
10851 lt_status=$?
10852 case x$lt_status in
10853 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10854 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10855 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10856 esac
10857 else :
10858 # compilation failed
10859 lt_cv_dlopen_self=no
10860 fi
10861 fi
10862 rm -fr conftest*
10863
10864
10865 fi
10866 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10867 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10868
10869 if test "x$lt_cv_dlopen_self" = xyes; then
10870 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10871 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10872 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10873 if test "${lt_cv_dlopen_self_static+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 if test "$cross_compiling" = yes; then :
10877 lt_cv_dlopen_self_static=cross
10878 else
10879 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10880 lt_status=$lt_dlunknown
10881 cat > conftest.$ac_ext <<EOF
10882 #line 10882 "configure"
10883 #include "confdefs.h"
10884
10885 #if HAVE_DLFCN_H
10886 #include <dlfcn.h>
10887 #endif
10888
10889 #include <stdio.h>
10890
10891 #ifdef RTLD_GLOBAL
10892 # define LT_DLGLOBAL RTLD_GLOBAL
10893 #else
10894 # ifdef DL_GLOBAL
10895 # define LT_DLGLOBAL DL_GLOBAL
10896 # else
10897 # define LT_DLGLOBAL 0
10898 # endif
10899 #endif
10900
10901 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10902 find out it does not work in some platform. */
10903 #ifndef LT_DLLAZY_OR_NOW
10904 # ifdef RTLD_LAZY
10905 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10906 # else
10907 # ifdef DL_LAZY
10908 # define LT_DLLAZY_OR_NOW DL_LAZY
10909 # else
10910 # ifdef RTLD_NOW
10911 # define LT_DLLAZY_OR_NOW RTLD_NOW
10912 # else
10913 # ifdef DL_NOW
10914 # define LT_DLLAZY_OR_NOW DL_NOW
10915 # else
10916 # define LT_DLLAZY_OR_NOW 0
10917 # endif
10918 # endif
10919 # endif
10920 # endif
10921 #endif
10922
10923 #ifdef __cplusplus
10924 extern "C" void exit (int);
10925 #endif
10926
10927 void fnord() { int i=42;}
10928 int main ()
10929 {
10930 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10931 int status = $lt_dlunknown;
10932
10933 if (self)
10934 {
10935 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10936 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10937 /* dlclose (self); */
10938 }
10939 else
10940 puts (dlerror ());
10941
10942 exit (status);
10943 }
10944 EOF
10945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946 (eval $ac_link) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10950 (./conftest; exit; ) >&5 2>/dev/null
10951 lt_status=$?
10952 case x$lt_status in
10953 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10954 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10955 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10956 esac
10957 else :
10958 # compilation failed
10959 lt_cv_dlopen_self_static=no
10960 fi
10961 fi
10962 rm -fr conftest*
10963
10964
10965 fi
10966 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10967 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10968 fi
10969
10970 CPPFLAGS="$save_CPPFLAGS"
10971 LDFLAGS="$save_LDFLAGS"
10972 LIBS="$save_LIBS"
10973 ;;
10974 esac
10975
10976 case $lt_cv_dlopen_self in
10977 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10978 *) enable_dlopen_self=unknown ;;
10979 esac
10980
10981 case $lt_cv_dlopen_self_static in
10982 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10983 *) enable_dlopen_self_static=unknown ;;
10984 esac
10985 fi
10986
10987
10988 # Report which library types will actually be built
10989 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10990 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10991 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10992 echo "${ECHO_T}$can_build_shared" >&6
10993
10994 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10995 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10996 test "$can_build_shared" = "no" && enable_shared=no
10997
10998 # On AIX, shared libraries and static libraries use the same namespace, and
10999 # are all built from PIC.
11000 case $host_os in
11001 aix3*)
11002 test "$enable_shared" = yes && enable_static=no
11003 if test -n "$RANLIB"; then
11004 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11005 postinstall_cmds='$RANLIB $lib'
11006 fi
11007 ;;
11008
11009 aix4* | aix5*)
11010 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11011 test "$enable_shared" = yes && enable_static=no
11012 fi
11013 ;;
11014 esac
11015 echo "$as_me:$LINENO: result: $enable_shared" >&5
11016 echo "${ECHO_T}$enable_shared" >&6
11017
11018 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11019 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11020 # Make sure either enable_shared or enable_static is yes.
11021 test "$enable_shared" = yes || enable_static=yes
11022 echo "$as_me:$LINENO: result: $enable_static" >&5
11023 echo "${ECHO_T}$enable_static" >&6
11024
11025 # The else clause should only fire when bootstrapping the
11026 # libtool distribution, otherwise you forgot to ship ltmain.sh
11027 # with your package, and you will get complaints that there are
11028 # no rules to generate ltmain.sh.
11029 if test -f "$ltmain"; then
11030 # See if we are running on zsh, and set the options which allow our commands through
11031 # without removal of \ escapes.
11032 if test -n "${ZSH_VERSION+set}" ; then
11033 setopt NO_GLOB_SUBST
11034 fi
11035 # Now quote all the things that may contain metacharacters while being
11036 # careful not to overquote the AC_SUBSTed values. We take copies of the
11037 # variables and quote the copies for generation of the libtool script.
11038 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11039 SED SHELL STRIP \
11040 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11041 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11042 deplibs_check_method reload_flag reload_cmds need_locks \
11043 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11044 lt_cv_sys_global_symbol_to_c_name_address \
11045 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11046 old_postinstall_cmds old_postuninstall_cmds \
11047 compiler \
11048 CC \
11049 LD \
11050 lt_prog_compiler_wl \
11051 lt_prog_compiler_pic \
11052 lt_prog_compiler_static \
11053 lt_prog_compiler_no_builtin_flag \
11054 export_dynamic_flag_spec \
11055 thread_safe_flag_spec \
11056 whole_archive_flag_spec \
11057 enable_shared_with_static_runtimes \
11058 old_archive_cmds \
11059 old_archive_from_new_cmds \
11060 predep_objects \
11061 postdep_objects \
11062 predeps \
11063 postdeps \
11064 compiler_lib_search_path \
11065 archive_cmds \
11066 archive_expsym_cmds \
11067 postinstall_cmds \
11068 postuninstall_cmds \
11069 old_archive_from_expsyms_cmds \
11070 allow_undefined_flag \
11071 no_undefined_flag \
11072 export_symbols_cmds \
11073 hardcode_libdir_flag_spec \
11074 hardcode_libdir_flag_spec_ld \
11075 hardcode_libdir_separator \
11076 hardcode_automatic \
11077 module_cmds \
11078 module_expsym_cmds \
11079 lt_cv_prog_compiler_c_o \
11080 exclude_expsyms \
11081 include_expsyms; do
11082
11083 case $var in
11084 old_archive_cmds | \
11085 old_archive_from_new_cmds | \
11086 archive_cmds | \
11087 archive_expsym_cmds | \
11088 module_cmds | \
11089 module_expsym_cmds | \
11090 old_archive_from_expsyms_cmds | \
11091 export_symbols_cmds | \
11092 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11093 postinstall_cmds | postuninstall_cmds | \
11094 old_postinstall_cmds | old_postuninstall_cmds | \
11095 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11096 # Double-quote double-evaled strings.
11097 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11098 ;;
11099 *)
11100 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11101 ;;
11102 esac
11103 done
11104
11105 case $lt_echo in
11106 *'\$0 --fallback-echo"')
11107 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11108 ;;
11109 esac
11110
11111 cfgfile="${ofile}T"
11112 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11113 $rm -f "$cfgfile"
11114 { echo "$as_me:$LINENO: creating $ofile" >&5
11115 echo "$as_me: creating $ofile" >&6;}
11116
11117 cat <<__EOF__ >> "$cfgfile"
11118 #! $SHELL
11119
11120 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11121 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11122 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11123 #
11124 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11125 # Free Software Foundation, Inc.
11126 #
11127 # This file is part of GNU Libtool:
11128 # Originally by Gordon Matzigkeit <[email protected]>, 1996
11129 #
11130 # This program is free software; you can redistribute it and/or modify
11131 # it under the terms of the GNU General Public License as published by
11132 # the Free Software Foundation; either version 2 of the License, or
11133 # (at your option) any later version.
11134 #
11135 # This program is distributed in the hope that it will be useful, but
11136 # WITHOUT ANY WARRANTY; without even the implied warranty of
11137 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11138 # General Public License for more details.
11139 #
11140 # You should have received a copy of the GNU General Public License
11141 # along with this program; if not, write to the Free Software
11142 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11143 #
11144 # As a special exception to the GNU General Public License, if you
11145 # distribute this file as part of a program that contains a
11146 # configuration script generated by Autoconf, you may include it under
11147 # the same distribution terms that you use for the rest of that program.
11148
11149 # A sed program that does not truncate output.
11150 SED=$lt_SED
11151
11152 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11153 Xsed="$SED -e 1s/^X//"
11154
11155 # The HP-UX ksh and POSIX shell print the target directory to stdout
11156 # if CDPATH is set.
11157 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11158
11159 # The names of the tagged configurations supported by this script.
11160 available_tags=
11161
11162 # ### BEGIN LIBTOOL CONFIG
11163
11164 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11165
11166 # Shell to use when invoking shell scripts.
11167 SHELL=$lt_SHELL
11168
11169 # Whether or not to build shared libraries.
11170 build_libtool_libs=$enable_shared
11171
11172 # Whether or not to build static libraries.
11173 build_old_libs=$enable_static
11174
11175 # Whether or not to add -lc for building shared libraries.
11176 build_libtool_need_lc=$archive_cmds_need_lc
11177
11178 # Whether or not to disallow shared libs when runtime libs are static
11179 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11180
11181 # Whether or not to optimize for fast installation.
11182 fast_install=$enable_fast_install
11183
11184 # The host system.
11185 host_alias=$host_alias
11186 host=$host
11187 host_os=$host_os
11188
11189 # The build system.
11190 build_alias=$build_alias
11191 build=$build
11192 build_os=$build_os
11193
11194 # An echo program that does not interpret backslashes.
11195 echo=$lt_echo
11196
11197 # The archiver.
11198 AR=$lt_AR
11199 AR_FLAGS=$lt_AR_FLAGS
11200
11201 # A C compiler.
11202 LTCC=$lt_LTCC
11203
11204 # LTCC compiler flags.
11205 LTCFLAGS=$lt_LTCFLAGS
11206
11207 # A language-specific compiler.
11208 CC=$lt_compiler
11209
11210 # Is the compiler the GNU C compiler?
11211 with_gcc=$GCC
11212
11213 # An ERE matcher.
11214 EGREP=$lt_EGREP
11215
11216 # The linker used to build libraries.
11217 LD=$lt_LD
11218
11219 # Whether we need hard or soft links.
11220 LN_S=$lt_LN_S
11221
11222 # A BSD-compatible nm program.
11223 NM=$lt_NM
11224
11225 # A symbol stripping program
11226 STRIP=$lt_STRIP
11227
11228 # Used to examine libraries when file_magic_cmd begins "file"
11229 MAGIC_CMD=$MAGIC_CMD
11230
11231 # Used on cygwin: DLL creation program.
11232 DLLTOOL="$DLLTOOL"
11233
11234 # Used on cygwin: object dumper.
11235 OBJDUMP="$OBJDUMP"
11236
11237 # Used on cygwin: assembler.
11238 AS="$AS"
11239
11240 # The name of the directory that contains temporary libtool files.
11241 objdir=$objdir
11242
11243 # How to create reloadable object files.
11244 reload_flag=$lt_reload_flag
11245 reload_cmds=$lt_reload_cmds
11246
11247 # How to pass a linker flag through the compiler.
11248 wl=$lt_lt_prog_compiler_wl
11249
11250 # Object file suffix (normally "o").
11251 objext="$ac_objext"
11252
11253 # Old archive suffix (normally "a").
11254 libext="$libext"
11255
11256 # Shared library suffix (normally ".so").
11257 shrext_cmds='$shrext_cmds'
11258
11259 # Executable file suffix (normally "").
11260 exeext="$exeext"
11261
11262 # Additional compiler flags for building library objects.
11263 pic_flag=$lt_lt_prog_compiler_pic
11264 pic_mode=$pic_mode
11265
11266 # What is the maximum length of a command?
11267 max_cmd_len=$lt_cv_sys_max_cmd_len
11268
11269 # Does compiler simultaneously support -c and -o options?
11270 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11271
11272 # Must we lock files when doing compilation?
11273 need_locks=$lt_need_locks
11274
11275 # Do we need the lib prefix for modules?
11276 need_lib_prefix=$need_lib_prefix
11277
11278 # Do we need a version for libraries?
11279 need_version=$need_version
11280
11281 # Whether dlopen is supported.
11282 dlopen_support=$enable_dlopen
11283
11284 # Whether dlopen of programs is supported.
11285 dlopen_self=$enable_dlopen_self
11286
11287 # Whether dlopen of statically linked programs is supported.
11288 dlopen_self_static=$enable_dlopen_self_static
11289
11290 # Compiler flag to prevent dynamic linking.
11291 link_static_flag=$lt_lt_prog_compiler_static
11292
11293 # Compiler flag to turn off builtin functions.
11294 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11295
11296 # Compiler flag to allow reflexive dlopens.
11297 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11298
11299 # Compiler flag to generate shared objects directly from archives.
11300 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11301
11302 # Compiler flag to generate thread-safe objects.
11303 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11304
11305 # Library versioning type.
11306 version_type=$version_type
11307
11308 # Format of library name prefix.
11309 libname_spec=$lt_libname_spec
11310
11311 # List of archive names. First name is the real one, the rest are links.
11312 # The last name is the one that the linker finds with -lNAME.
11313 library_names_spec=$lt_library_names_spec
11314
11315 # The coded name of the library, if different from the real name.
11316 soname_spec=$lt_soname_spec
11317
11318 # Commands used to build and install an old-style archive.
11319 RANLIB=$lt_RANLIB
11320 old_archive_cmds=$lt_old_archive_cmds
11321 old_postinstall_cmds=$lt_old_postinstall_cmds
11322 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11323
11324 # Create an old-style archive from a shared archive.
11325 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11326
11327 # Create a temporary old-style archive to link instead of a shared archive.
11328 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11329
11330 # Commands used to build and install a shared archive.
11331 archive_cmds=$lt_archive_cmds
11332 archive_expsym_cmds=$lt_archive_expsym_cmds
11333 postinstall_cmds=$lt_postinstall_cmds
11334 postuninstall_cmds=$lt_postuninstall_cmds
11335
11336 # Commands used to build a loadable module (assumed same as above if empty)
11337 module_cmds=$lt_module_cmds
11338 module_expsym_cmds=$lt_module_expsym_cmds
11339
11340 # Commands to strip libraries.
11341 old_striplib=$lt_old_striplib
11342 striplib=$lt_striplib
11343
11344 # Dependencies to place before the objects being linked to create a
11345 # shared library.
11346 predep_objects=$lt_predep_objects
11347
11348 # Dependencies to place after the objects being linked to create a
11349 # shared library.
11350 postdep_objects=$lt_postdep_objects
11351
11352 # Dependencies to place before the objects being linked to create a
11353 # shared library.
11354 predeps=$lt_predeps
11355
11356 # Dependencies to place after the objects being linked to create a
11357 # shared library.
11358 postdeps=$lt_postdeps
11359
11360 # The library search path used internally by the compiler when linking
11361 # a shared library.
11362 compiler_lib_search_path=$lt_compiler_lib_search_path
11363
11364 # Method to check whether dependent libraries are shared objects.
11365 deplibs_check_method=$lt_deplibs_check_method
11366
11367 # Command to use when deplibs_check_method == file_magic.
11368 file_magic_cmd=$lt_file_magic_cmd
11369
11370 # Flag that allows shared libraries with undefined symbols to be built.
11371 allow_undefined_flag=$lt_allow_undefined_flag
11372
11373 # Flag that forces no undefined symbols.
11374 no_undefined_flag=$lt_no_undefined_flag
11375
11376 # Commands used to finish a libtool library installation in a directory.
11377 finish_cmds=$lt_finish_cmds
11378
11379 # Same as above, but a single script fragment to be evaled but not shown.
11380 finish_eval=$lt_finish_eval
11381
11382 # Take the output of nm and produce a listing of raw symbols and C names.
11383 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11384
11385 # Transform the output of nm in a proper C declaration
11386 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11387
11388 # Transform the output of nm in a C name address pair
11389 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11390
11391 # This is the shared library runtime path variable.
11392 runpath_var=$runpath_var
11393
11394 # This is the shared library path variable.
11395 shlibpath_var=$shlibpath_var
11396
11397 # Is shlibpath searched before the hard-coded library search path?
11398 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11399
11400 # How to hardcode a shared library path into an executable.
11401 hardcode_action=$hardcode_action
11402
11403 # Whether we should hardcode library paths into libraries.
11404 hardcode_into_libs=$hardcode_into_libs
11405
11406 # Flag to hardcode \$libdir into a binary during linking.
11407 # This must work even if \$libdir does not exist.
11408 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11409
11410 # If ld is used when linking, flag to hardcode \$libdir into
11411 # a binary during linking. This must work even if \$libdir does
11412 # not exist.
11413 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11414
11415 # Whether we need a single -rpath flag with a separated argument.
11416 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11417
11418 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11419 # resulting binary.
11420 hardcode_direct=$hardcode_direct
11421
11422 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11423 # resulting binary.
11424 hardcode_minus_L=$hardcode_minus_L
11425
11426 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11427 # the resulting binary.
11428 hardcode_shlibpath_var=$hardcode_shlibpath_var
11429
11430 # Set to yes if building a shared library automatically hardcodes DIR into the library
11431 # and all subsequent libraries and executables linked against it.
11432 hardcode_automatic=$hardcode_automatic
11433
11434 # Variables whose values should be saved in libtool wrapper scripts and
11435 # restored at relink time.
11436 variables_saved_for_relink="$variables_saved_for_relink"
11437
11438 # Whether libtool must link a program against all its dependency libraries.
11439 link_all_deplibs=$link_all_deplibs
11440
11441 # Compile-time system search path for libraries
11442 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11443
11444 # Run-time system search path for libraries
11445 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11446
11447 # Fix the shell variable \$srcfile for the compiler.
11448 fix_srcfile_path="$fix_srcfile_path"
11449
11450 # Set to yes if exported symbols are required.
11451 always_export_symbols=$always_export_symbols
11452
11453 # The commands to list exported symbols.
11454 export_symbols_cmds=$lt_export_symbols_cmds
11455
11456 # The commands to extract the exported symbol list from a shared archive.
11457 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11458
11459 # Symbols that should not be listed in the preloaded symbols.
11460 exclude_expsyms=$lt_exclude_expsyms
11461
11462 # Symbols that must always be exported.
11463 include_expsyms=$lt_include_expsyms
11464
11465 # ### END LIBTOOL CONFIG
11466
11467 __EOF__
11468
11469
11470 case $host_os in
11471 aix3*)
11472 cat <<\EOF >> "$cfgfile"
11473
11474 # AIX sometimes has problems with the GCC collect2 program. For some
11475 # reason, if we set the COLLECT_NAMES environment variable, the problems
11476 # vanish in a puff of smoke.
11477 if test "X${COLLECT_NAMES+set}" != Xset; then
11478 COLLECT_NAMES=
11479 export COLLECT_NAMES
11480 fi
11481 EOF
11482 ;;
11483 esac
11484
11485 # We use sed instead of cat because bash on DJGPP gets confused if
11486 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11487 # text mode, it properly converts lines to CR/LF. This bash problem
11488 # is reportedly fixed, but why not run on old versions too?
11489 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11490
11491 mv -f "$cfgfile" "$ofile" || \
11492 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11493 chmod +x "$ofile"
11494
11495 else
11496 # If there is no Makefile yet, we rely on a make rule to execute
11497 # `config.status --recheck' to rerun these tests and create the
11498 # libtool script then.
11499 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11500 if test -f "$ltmain_in"; then
11501 test -f Makefile && make "$ltmain"
11502 fi
11503 fi
11504
11505
11506 ac_ext=c
11507 ac_cpp='$CPP $CPPFLAGS'
11508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11511
11512 CC="$lt_save_CC"
11513
11514
11515 # Check whether --with-tags or --without-tags was given.
11516 if test "${with_tags+set}" = set; then
11517 withval="$with_tags"
11518 tagnames="$withval"
11519 fi;
11520
11521 if test -f "$ltmain" && test -n "$tagnames"; then
11522 if test ! -f "${ofile}"; then
11523 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11524 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11525 fi
11526
11527 if test -z "$LTCC"; then
11528 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11529 if test -z "$LTCC"; then
11530 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11531 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11532 else
11533 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11534 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11535 fi
11536 fi
11537 if test -z "$LTCFLAGS"; then
11538 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11539 fi
11540
11541 # Extract list of available tagged configurations in $ofile.
11542 # Note that this assumes the entire list is on one line.
11543 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11544
11545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11546 for tagname in $tagnames; do
11547 IFS="$lt_save_ifs"
11548 # Check whether tagname contains only valid characters
11549 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11550 "") ;;
11551 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11552 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11553 { (exit 1); exit 1; }; }
11554 ;;
11555 esac
11556
11557 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11558 then
11559 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11560 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11561 { (exit 1); exit 1; }; }
11562 fi
11563
11564 # Update the list of available tags.
11565 if test -n "$tagname"; then
11566 echo appending configuration tag \"$tagname\" to $ofile
11567
11568 case $tagname in
11569 CXX)
11570 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11571 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11572 (test "X$CXX" != "Xg++"))) ; then
11573 ac_ext=cc
11574 ac_cpp='$CXXCPP $CPPFLAGS'
11575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11578
11579
11580
11581
11582 archive_cmds_need_lc_CXX=no
11583 allow_undefined_flag_CXX=
11584 always_export_symbols_CXX=no
11585 archive_expsym_cmds_CXX=
11586 export_dynamic_flag_spec_CXX=
11587 hardcode_direct_CXX=no
11588 hardcode_libdir_flag_spec_CXX=
11589 hardcode_libdir_flag_spec_ld_CXX=
11590 hardcode_libdir_separator_CXX=
11591 hardcode_minus_L_CXX=no
11592 hardcode_shlibpath_var_CXX=unsupported
11593 hardcode_automatic_CXX=no
11594 module_cmds_CXX=
11595 module_expsym_cmds_CXX=
11596 link_all_deplibs_CXX=unknown
11597 old_archive_cmds_CXX=$old_archive_cmds
11598 no_undefined_flag_CXX=
11599 whole_archive_flag_spec_CXX=
11600 enable_shared_with_static_runtimes_CXX=no
11601
11602 # Dependencies to place before and after the object being linked:
11603 predep_objects_CXX=
11604 postdep_objects_CXX=
11605 predeps_CXX=
11606 postdeps_CXX=
11607 compiler_lib_search_path_CXX=
11608
11609 # Source file extension for C++ test sources.
11610 ac_ext=cpp
11611
11612 # Object file extension for compiled C++ test sources.
11613 objext=o
11614 objext_CXX=$objext
11615
11616 # Code to be used in simple compile tests
11617 lt_simple_compile_test_code="int some_variable = 0;\n"
11618
11619 # Code to be used in simple link tests
11620 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11621
11622 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11623
11624 # If no C compiler was specified, use CC.
11625 LTCC=${LTCC-"$CC"}
11626
11627 # If no C compiler flags were specified, use CFLAGS.
11628 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11629
11630 # Allow CC to be a program name with arguments.
11631 compiler=$CC
11632
11633
11634 # save warnings/boilerplate of simple test code
11635 ac_outfile=conftest.$ac_objext
11636 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11637 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11638 _lt_compiler_boilerplate=`cat conftest.err`
11639 $rm conftest*
11640
11641 ac_outfile=conftest.$ac_objext
11642 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11643 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11644 _lt_linker_boilerplate=`cat conftest.err`
11645 $rm conftest*
11646
11647
11648 # Allow CC to be a program name with arguments.
11649 lt_save_CC=$CC
11650 lt_save_LD=$LD
11651 lt_save_GCC=$GCC
11652 GCC=$GXX
11653 lt_save_with_gnu_ld=$with_gnu_ld
11654 lt_save_path_LD=$lt_cv_path_LD
11655 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11656 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11657 else
11658 $as_unset lt_cv_prog_gnu_ld
11659 fi
11660 if test -n "${lt_cv_path_LDCXX+set}"; then
11661 lt_cv_path_LD=$lt_cv_path_LDCXX
11662 else
11663 $as_unset lt_cv_path_LD
11664 fi
11665 test -z "${LDCXX+set}" || LD=$LDCXX
11666 CC=${CXX-"c++"}
11667 compiler=$CC
11668 compiler_CXX=$CC
11669 for cc_temp in $compiler""; do
11670 case $cc_temp in
11671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11673 \-*) ;;
11674 *) break;;
11675 esac
11676 done
11677 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11678
11679
11680 # We don't want -fno-exception wen compiling C++ code, so set the
11681 # no_builtin_flag separately
11682 if test "$GXX" = yes; then
11683 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11684 else
11685 lt_prog_compiler_no_builtin_flag_CXX=
11686 fi
11687
11688 if test "$GXX" = yes; then
11689 # Set up default GNU C++ configuration
11690
11691
11692 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11693 if test "${with_gnu_ld+set}" = set; then
11694 withval="$with_gnu_ld"
11695 test "$withval" = no || with_gnu_ld=yes
11696 else
11697 with_gnu_ld=no
11698 fi;
11699 ac_prog=ld
11700 if test "$GCC" = yes; then
11701 # Check if gcc -print-prog-name=ld gives a path.
11702 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11703 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11704 case $host in
11705 *-*-mingw*)
11706 # gcc leaves a trailing carriage return which upsets mingw
11707 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11708 *)
11709 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11710 esac
11711 case $ac_prog in
11712 # Accept absolute paths.
11713 [\\/]* | ?:[\\/]*)
11714 re_direlt='/[^/][^/]*/\.\./'
11715 # Canonicalize the pathname of ld
11716 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11717 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11718 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11719 done
11720 test -z "$LD" && LD="$ac_prog"
11721 ;;
11722 "")
11723 # If it fails, then pretend we aren't using GCC.
11724 ac_prog=ld
11725 ;;
11726 *)
11727 # If it is relative, then search for the first ld in PATH.
11728 with_gnu_ld=unknown
11729 ;;
11730 esac
11731 elif test "$with_gnu_ld" = yes; then
11732 echo "$as_me:$LINENO: checking for GNU ld" >&5
11733 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11734 else
11735 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11736 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11737 fi
11738 if test "${lt_cv_path_LD+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 else
11741 if test -z "$LD"; then
11742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11743 for ac_dir in $PATH; do
11744 IFS="$lt_save_ifs"
11745 test -z "$ac_dir" && ac_dir=.
11746 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11747 lt_cv_path_LD="$ac_dir/$ac_prog"
11748 # Check to see if the program is GNU ld. I'd rather use --version,
11749 # but apparently some variants of GNU ld only accept -v.
11750 # Break only if it was the GNU/non-GNU ld that we prefer.
11751 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11752 *GNU* | *'with BFD'*)
11753 test "$with_gnu_ld" != no && break
11754 ;;
11755 *)
11756 test "$with_gnu_ld" != yes && break
11757 ;;
11758 esac
11759 fi
11760 done
11761 IFS="$lt_save_ifs"
11762 else
11763 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11764 fi
11765 fi
11766
11767 LD="$lt_cv_path_LD"
11768 if test -n "$LD"; then
11769 echo "$as_me:$LINENO: result: $LD" >&5
11770 echo "${ECHO_T}$LD" >&6
11771 else
11772 echo "$as_me:$LINENO: result: no" >&5
11773 echo "${ECHO_T}no" >&6
11774 fi
11775 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11776 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11777 { (exit 1); exit 1; }; }
11778 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11779 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11780 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 else
11783 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11784 case `$LD -v 2>&1 </dev/null` in
11785 *GNU* | *'with BFD'*)
11786 lt_cv_prog_gnu_ld=yes
11787 ;;
11788 *)
11789 lt_cv_prog_gnu_ld=no
11790 ;;
11791 esac
11792 fi
11793 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11794 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11795 with_gnu_ld=$lt_cv_prog_gnu_ld
11796
11797
11798
11799 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11800 # archiving commands below assume that GNU ld is being used.
11801 if test "$with_gnu_ld" = yes; then
11802 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11803 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11804
11805 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11806 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11807
11808 # If archive_cmds runs LD, not CC, wlarc should be empty
11809 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11810 # investigate it a little bit more. (MM)
11811 wlarc='${wl}'
11812
11813 # ancient GNU ld didn't support --whole-archive et. al.
11814 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11815 grep 'no-whole-archive' > /dev/null; then
11816 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11817 else
11818 whole_archive_flag_spec_CXX=
11819 fi
11820 else
11821 with_gnu_ld=no
11822 wlarc=
11823
11824 # A generic and very simple default shared library creation
11825 # command for GNU C++ for the case where it uses the native
11826 # linker, instead of GNU ld. If possible, this setting should
11827 # overridden to take advantage of the native linker features on
11828 # the platform it is being used on.
11829 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11830 fi
11831
11832 # Commands to make compiler produce verbose output that lists
11833 # what "hidden" libraries, object files and flags are used when
11834 # linking a shared library.
11835 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11836
11837 else
11838 GXX=no
11839 with_gnu_ld=no
11840 wlarc=
11841 fi
11842
11843 # PORTME: fill in a description of your system's C++ link characteristics
11844 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11845 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11846 ld_shlibs_CXX=yes
11847 case $host_os in
11848 aix3*)
11849 # FIXME: insert proper C++ library support
11850 ld_shlibs_CXX=no
11851 ;;
11852 aix4* | aix5*)
11853 if test "$host_cpu" = ia64; then
11854 # On IA64, the linker does run time linking by default, so we don't
11855 # have to do anything special.
11856 aix_use_runtimelinking=no
11857 exp_sym_flag='-Bexport'
11858 no_entry_flag=""
11859 else
11860 aix_use_runtimelinking=no
11861
11862 # Test if we are trying to use run time linking or normal
11863 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11864 # need to do runtime linking.
11865 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11866 for ld_flag in $LDFLAGS; do
11867 case $ld_flag in
11868 *-brtl*)
11869 aix_use_runtimelinking=yes
11870 break
11871 ;;
11872 esac
11873 done
11874 ;;
11875 esac
11876
11877 exp_sym_flag='-bexport'
11878 no_entry_flag='-bnoentry'
11879 fi
11880
11881 # When large executables or shared objects are built, AIX ld can
11882 # have problems creating the table of contents. If linking a library
11883 # or program results in "error TOC overflow" add -mminimal-toc to
11884 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11885 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11886
11887 archive_cmds_CXX=''
11888 hardcode_direct_CXX=yes
11889 hardcode_libdir_separator_CXX=':'
11890 link_all_deplibs_CXX=yes
11891
11892 if test "$GXX" = yes; then
11893 case $host_os in aix4.[012]|aix4.[012].*)
11894 # We only want to do this on AIX 4.2 and lower, the check
11895 # below for broken collect2 doesn't work under 4.3+
11896 collect2name=`${CC} -print-prog-name=collect2`
11897 if test -f "$collect2name" && \
11898 strings "$collect2name" | grep resolve_lib_name >/dev/null
11899 then
11900 # We have reworked collect2
11901 hardcode_direct_CXX=yes
11902 else
11903 # We have old collect2
11904 hardcode_direct_CXX=unsupported
11905 # It fails to find uninstalled libraries when the uninstalled
11906 # path is not listed in the libpath. Setting hardcode_minus_L
11907 # to unsupported forces relinking
11908 hardcode_minus_L_CXX=yes
11909 hardcode_libdir_flag_spec_CXX='-L$libdir'
11910 hardcode_libdir_separator_CXX=
11911 fi
11912 ;;
11913 esac
11914 shared_flag='-shared'
11915 if test "$aix_use_runtimelinking" = yes; then
11916 shared_flag="$shared_flag "'${wl}-G'
11917 fi
11918 else
11919 # not using gcc
11920 if test "$host_cpu" = ia64; then
11921 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11922 # chokes on -Wl,-G. The following line is correct:
11923 shared_flag='-G'
11924 else
11925 if test "$aix_use_runtimelinking" = yes; then
11926 shared_flag='${wl}-G'
11927 else
11928 shared_flag='${wl}-bM:SRE'
11929 fi
11930 fi
11931 fi
11932
11933 # It seems that -bexpall does not export symbols beginning with
11934 # underscore (_), so it is better to generate a list of symbols to export.
11935 always_export_symbols_CXX=yes
11936 if test "$aix_use_runtimelinking" = yes; then
11937 # Warning - without using the other runtime loading flags (-brtl),
11938 # -berok will link without error, but may produce a broken library.
11939 allow_undefined_flag_CXX='-berok'
11940 # Determine the default libpath from the value encoded in an empty executable.
11941 cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h. */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947
11948 int
11949 main ()
11950 {
11951
11952 ;
11953 return 0;
11954 }
11955 _ACEOF
11956 rm -f conftest.$ac_objext conftest$ac_exeext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11958 (eval $ac_link) 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -z "$ac_cxx_werror_flag"
11966 || test ! -s conftest.err'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest$ac_exeext'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978
11979 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11980 }'`
11981 # Check for a 64-bit object if we didn't find anything.
11982 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11983 }'`; fi
11984 else
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11987
11988 fi
11989 rm -f conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext conftest.$ac_ext
11991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11992
11993 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11994
11995 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11996 else
11997 if test "$host_cpu" = ia64; then
11998 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11999 allow_undefined_flag_CXX="-z nodefs"
12000 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12001 else
12002 # Determine the default libpath from the value encoded in an empty executable.
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h. */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009
12010 int
12011 main ()
12012 {
12013
12014 ;
12015 return 0;
12016 }
12017 _ACEOF
12018 rm -f conftest.$ac_objext conftest$ac_exeext
12019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12020 (eval $ac_link) 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_cxx_werror_flag"
12028 || test ! -s conftest.err'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest$ac_exeext'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040
12041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12042 }'`
12043 # Check for a 64-bit object if we didn't find anything.
12044 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12045 }'`; fi
12046 else
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050 fi
12051 rm -f conftest.err conftest.$ac_objext \
12052 conftest$ac_exeext conftest.$ac_ext
12053 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12054
12055 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12056 # Warning - without using the other run time loading flags,
12057 # -berok will link without error, but may produce a broken library.
12058 no_undefined_flag_CXX=' ${wl}-bernotok'
12059 allow_undefined_flag_CXX=' ${wl}-berok'
12060 # Exported symbols can be pulled into shared objects from archives
12061 whole_archive_flag_spec_CXX='$convenience'
12062 archive_cmds_need_lc_CXX=yes
12063 # This is similar to how AIX traditionally builds its shared libraries.
12064 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12065 fi
12066 fi
12067 ;;
12068
12069 beos*)
12070 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12071 allow_undefined_flag_CXX=unsupported
12072 # Joseph Beckenbach <[email protected]> says some releases of gcc
12073 # support --undefined. This deserves some investigation. FIXME
12074 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12075 else
12076 ld_shlibs_CXX=no
12077 fi
12078 ;;
12079
12080 chorus*)
12081 case $cc_basename in
12082 *)
12083 # FIXME: insert proper C++ library support
12084 ld_shlibs_CXX=no
12085 ;;
12086 esac
12087 ;;
12088
12089 cygwin* | mingw* | pw32*)
12090 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12091 # as there is no search path for DLLs.
12092 hardcode_libdir_flag_spec_CXX='-L$libdir'
12093 allow_undefined_flag_CXX=unsupported
12094 always_export_symbols_CXX=no
12095 enable_shared_with_static_runtimes_CXX=yes
12096
12097 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12098 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12099 # If the export-symbols file already is a .def file (1st line
12100 # is EXPORTS), use it as is; otherwise, prepend...
12101 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12102 cp $export_symbols $output_objdir/$soname.def;
12103 else
12104 echo EXPORTS > $output_objdir/$soname.def;
12105 cat $export_symbols >> $output_objdir/$soname.def;
12106 fi~
12107 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12108 else
12109 ld_shlibs_CXX=no
12110 fi
12111 ;;
12112 darwin* | rhapsody*)
12113 case $host_os in
12114 rhapsody* | darwin1.[012])
12115 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12116 ;;
12117 *) # Darwin 1.3 on
12118 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12119 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12120 else
12121 case ${MACOSX_DEPLOYMENT_TARGET} in
12122 10.[012])
12123 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12124 ;;
12125 10.*)
12126 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12127 ;;
12128 esac
12129 fi
12130 ;;
12131 esac
12132 archive_cmds_need_lc_CXX=no
12133 hardcode_direct_CXX=no
12134 hardcode_automatic_CXX=yes
12135 hardcode_shlibpath_var_CXX=unsupported
12136 whole_archive_flag_spec_CXX=''
12137 link_all_deplibs_CXX=yes
12138
12139 if test "$GXX" = yes ; then
12140 lt_int_apple_cc_single_mod=no
12141 output_verbose_link_cmd='echo'
12142 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12143 lt_int_apple_cc_single_mod=yes
12144 fi
12145 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12146 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12147 else
12148 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12149 fi
12150 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12151 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12152 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12153 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12154 else
12155 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12156 fi
12157 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12158 else
12159 case $cc_basename in
12160 xlc*)
12161 output_verbose_link_cmd='echo'
12162 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12163 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12164 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12165 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12166 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12167 ;;
12168 *)
12169 ld_shlibs_CXX=no
12170 ;;
12171 esac
12172 fi
12173 ;;
12174
12175 dgux*)
12176 case $cc_basename in
12177 ec++*)
12178 # FIXME: insert proper C++ library support
12179 ld_shlibs_CXX=no
12180 ;;
12181 ghcx*)
12182 # Green Hills C++ Compiler
12183 # FIXME: insert proper C++ library support
12184 ld_shlibs_CXX=no
12185 ;;
12186 *)
12187 # FIXME: insert proper C++ library support
12188 ld_shlibs_CXX=no
12189 ;;
12190 esac
12191 ;;
12192 freebsd[12]*)
12193 # C++ shared libraries reported to be fairly broken before switch to ELF
12194 ld_shlibs_CXX=no
12195 ;;
12196 freebsd-elf*)
12197 archive_cmds_need_lc_CXX=no
12198 ;;
12199 freebsd* | kfreebsd*-gnu | dragonfly*)
12200 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12201 # conventions
12202 ld_shlibs_CXX=yes
12203 ;;
12204 gnu*)
12205 ;;
12206 hpux9*)
12207 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12208 hardcode_libdir_separator_CXX=:
12209 export_dynamic_flag_spec_CXX='${wl}-E'
12210 hardcode_direct_CXX=yes
12211 hardcode_minus_L_CXX=yes # Not in the search PATH,
12212 # but as the default
12213 # location of the library.
12214
12215 case $cc_basename in
12216 CC*)
12217 # FIXME: insert proper C++ library support
12218 ld_shlibs_CXX=no
12219 ;;
12220 aCC*)
12221 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12222 # Commands to make compiler produce verbose output that lists
12223 # what "hidden" libraries, object files and flags are used when
12224 # linking a shared library.
12225 #
12226 # There doesn't appear to be a way to prevent this compiler from
12227 # explicitly linking system object files so we need to strip them
12228 # from the output so that they don't get included in the library
12229 # dependencies.
12230 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12231 ;;
12232 *)
12233 if test "$GXX" = yes; then
12234 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12235 else
12236 # FIXME: insert proper C++ library support
12237 ld_shlibs_CXX=no
12238 fi
12239 ;;
12240 esac
12241 ;;
12242 hpux10*|hpux11*)
12243 if test $with_gnu_ld = no; then
12244 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12245 hardcode_libdir_separator_CXX=:
12246
12247 case $host_cpu in
12248 hppa*64*|ia64*)
12249 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12250 ;;
12251 *)
12252 export_dynamic_flag_spec_CXX='${wl}-E'
12253 ;;
12254 esac
12255 fi
12256 case $host_cpu in
12257 hppa*64*|ia64*)
12258 hardcode_direct_CXX=no
12259 hardcode_shlibpath_var_CXX=no
12260 ;;
12261 *)
12262 hardcode_direct_CXX=yes
12263 hardcode_minus_L_CXX=yes # Not in the search PATH,
12264 # but as the default
12265 # location of the library.
12266 ;;
12267 esac
12268
12269 case $cc_basename in
12270 CC*)
12271 # FIXME: insert proper C++ library support
12272 ld_shlibs_CXX=no
12273 ;;
12274 aCC*)
12275 case $host_cpu in
12276 hppa*64*)
12277 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12278 ;;
12279 ia64*)
12280 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12281 ;;
12282 *)
12283 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12284 ;;
12285 esac
12286 # Commands to make compiler produce verbose output that lists
12287 # what "hidden" libraries, object files and flags are used when
12288 # linking a shared library.
12289 #
12290 # There doesn't appear to be a way to prevent this compiler from
12291 # explicitly linking system object files so we need to strip them
12292 # from the output so that they don't get included in the library
12293 # dependencies.
12294 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12295 ;;
12296 *)
12297 if test "$GXX" = yes; then
12298 if test $with_gnu_ld = no; then
12299 case $host_cpu in
12300 hppa*64*)
12301 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12302 ;;
12303 ia64*)
12304 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12305 ;;
12306 *)
12307 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12308 ;;
12309 esac
12310 fi
12311 else
12312 # FIXME: insert proper C++ library support
12313 ld_shlibs_CXX=no
12314 fi
12315 ;;
12316 esac
12317 ;;
12318 interix3*)
12319 hardcode_direct_CXX=no
12320 hardcode_shlibpath_var_CXX=no
12321 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12322 export_dynamic_flag_spec_CXX='${wl}-E'
12323 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12324 # Instead, shared libraries are loaded at an image base (0x10000000 by
12325 # default) and relocated if they conflict, which is a slow very memory
12326 # consuming and fragmenting process. To avoid this, we pick a random,
12327 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12328 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12329 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12330 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12331 ;;
12332 irix5* | irix6*)
12333 case $cc_basename in
12334 CC*)
12335 # SGI C++
12336 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12337
12338 # Archives containing C++ object files must be created using
12339 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12340 # necessary to make sure instantiated templates are included
12341 # in the archive.
12342 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12343 ;;
12344 *)
12345 if test "$GXX" = yes; then
12346 if test "$with_gnu_ld" = no; then
12347 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12348 else
12349 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12350 fi
12351 fi
12352 link_all_deplibs_CXX=yes
12353 ;;
12354 esac
12355 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12356 hardcode_libdir_separator_CXX=:
12357 ;;
12358 linux*)
12359 case $cc_basename in
12360 KCC*)
12361 # Kuck and Associates, Inc. (KAI) C++ Compiler
12362
12363 # KCC will only create a shared library if the output file
12364 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12365 # to its proper name (with version) after linking.
12366 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12367 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12368 # Commands to make compiler produce verbose output that lists
12369 # what "hidden" libraries, object files and flags are used when
12370 # linking a shared library.
12371 #
12372 # There doesn't appear to be a way to prevent this compiler from
12373 # explicitly linking system object files so we need to strip them
12374 # from the output so that they don't get included in the library
12375 # dependencies.
12376 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12377
12378 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12379 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12380
12381 # Archives containing C++ object files must be created using
12382 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12383 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12384 ;;
12385 icpc*)
12386 # Intel C++
12387 with_gnu_ld=yes
12388 # version 8.0 and above of icpc choke on multiply defined symbols
12389 # if we add $predep_objects and $postdep_objects, however 7.1 and
12390 # earlier do not add the objects themselves.
12391 case `$CC -V 2>&1` in
12392 *"Version 7."*)
12393 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12394 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12395 ;;
12396 *) # Version 8.0 or newer
12397 tmp_idyn=
12398 case $host_cpu in
12399 ia64*) tmp_idyn=' -i_dynamic';;
12400 esac
12401 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12402 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12403 ;;
12404 esac
12405 archive_cmds_need_lc_CXX=no
12406 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12407 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12408 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12409 ;;
12410 pgCC*)
12411 # Portland Group C++ compiler
12412 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12413 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12414
12415 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12416 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12417 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12418 ;;
12419 cxx*)
12420 # Compaq C++
12421 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12422 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12423
12424 runpath_var=LD_RUN_PATH
12425 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12426 hardcode_libdir_separator_CXX=:
12427
12428 # Commands to make compiler produce verbose output that lists
12429 # what "hidden" libraries, object files and flags are used when
12430 # linking a shared library.
12431 #
12432 # There doesn't appear to be a way to prevent this compiler from
12433 # explicitly linking system object files so we need to strip them
12434 # from the output so that they don't get included in the library
12435 # dependencies.
12436 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12437 ;;
12438 esac
12439 ;;
12440 lynxos*)
12441 # FIXME: insert proper C++ library support
12442 ld_shlibs_CXX=no
12443 ;;
12444 m88k*)
12445 # FIXME: insert proper C++ library support
12446 ld_shlibs_CXX=no
12447 ;;
12448 mvs*)
12449 case $cc_basename in
12450 cxx*)
12451 # FIXME: insert proper C++ library support
12452 ld_shlibs_CXX=no
12453 ;;
12454 *)
12455 # FIXME: insert proper C++ library support
12456 ld_shlibs_CXX=no
12457 ;;
12458 esac
12459 ;;
12460 netbsd*)
12461 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12462 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12463 wlarc=
12464 hardcode_libdir_flag_spec_CXX='-R$libdir'
12465 hardcode_direct_CXX=yes
12466 hardcode_shlibpath_var_CXX=no
12467 fi
12468 # Workaround some broken pre-1.5 toolchains
12469 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12470 ;;
12471 openbsd2*)
12472 # C++ shared libraries are fairly broken
12473 ld_shlibs_CXX=no
12474 ;;
12475 openbsd*)
12476 hardcode_direct_CXX=yes
12477 hardcode_shlibpath_var_CXX=no
12478 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12479 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12480 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12481 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12482 export_dynamic_flag_spec_CXX='${wl}-E'
12483 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12484 fi
12485 output_verbose_link_cmd='echo'
12486 ;;
12487 osf3*)
12488 case $cc_basename in
12489 KCC*)
12490 # Kuck and Associates, Inc. (KAI) C++ Compiler
12491
12492 # KCC will only create a shared library if the output file
12493 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12494 # to its proper name (with version) after linking.
12495 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12496
12497 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12498 hardcode_libdir_separator_CXX=:
12499
12500 # Archives containing C++ object files must be created using
12501 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12502 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12503
12504 ;;
12505 RCC*)
12506 # Rational C++ 2.4.1
12507 # FIXME: insert proper C++ library support
12508 ld_shlibs_CXX=no
12509 ;;
12510 cxx*)
12511 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12512 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12513
12514 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12515 hardcode_libdir_separator_CXX=:
12516
12517 # Commands to make compiler produce verbose output that lists
12518 # what "hidden" libraries, object files and flags are used when
12519 # linking a shared library.
12520 #
12521 # There doesn't appear to be a way to prevent this compiler from
12522 # explicitly linking system object files so we need to strip them
12523 # from the output so that they don't get included in the library
12524 # dependencies.
12525 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12526 ;;
12527 *)
12528 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12529 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12530 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12531
12532 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12533 hardcode_libdir_separator_CXX=:
12534
12535 # Commands to make compiler produce verbose output that lists
12536 # what "hidden" libraries, object files and flags are used when
12537 # linking a shared library.
12538 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12539
12540 else
12541 # FIXME: insert proper C++ library support
12542 ld_shlibs_CXX=no
12543 fi
12544 ;;
12545 esac
12546 ;;
12547 osf4* | osf5*)
12548 case $cc_basename in
12549 KCC*)
12550 # Kuck and Associates, Inc. (KAI) C++ Compiler
12551
12552 # KCC will only create a shared library if the output file
12553 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12554 # to its proper name (with version) after linking.
12555 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12556
12557 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12558 hardcode_libdir_separator_CXX=:
12559
12560 # Archives containing C++ object files must be created using
12561 # the KAI C++ compiler.
12562 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12563 ;;
12564 RCC*)
12565 # Rational C++ 2.4.1
12566 # FIXME: insert proper C++ library support
12567 ld_shlibs_CXX=no
12568 ;;
12569 cxx*)
12570 allow_undefined_flag_CXX=' -expect_unresolved \*'
12571 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12572 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12573 echo "-hidden">> $lib.exp~
12574 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12575 $rm $lib.exp'
12576
12577 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12578 hardcode_libdir_separator_CXX=:
12579
12580 # Commands to make compiler produce verbose output that lists
12581 # what "hidden" libraries, object files and flags are used when
12582 # linking a shared library.
12583 #
12584 # There doesn't appear to be a way to prevent this compiler from
12585 # explicitly linking system object files so we need to strip them
12586 # from the output so that they don't get included in the library
12587 # dependencies.
12588 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12589 ;;
12590 *)
12591 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12592 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12593 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12594
12595 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12596 hardcode_libdir_separator_CXX=:
12597
12598 # Commands to make compiler produce verbose output that lists
12599 # what "hidden" libraries, object files and flags are used when
12600 # linking a shared library.
12601 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12602
12603 else
12604 # FIXME: insert proper C++ library support
12605 ld_shlibs_CXX=no
12606 fi
12607 ;;
12608 esac
12609 ;;
12610 psos*)
12611 # FIXME: insert proper C++ library support
12612 ld_shlibs_CXX=no
12613 ;;
12614 sunos4*)
12615 case $cc_basename in
12616 CC*)
12617 # Sun C++ 4.x
12618 # FIXME: insert proper C++ library support
12619 ld_shlibs_CXX=no
12620 ;;
12621 lcc*)
12622 # Lucid
12623 # FIXME: insert proper C++ library support
12624 ld_shlibs_CXX=no
12625 ;;
12626 *)
12627 # FIXME: insert proper C++ library support
12628 ld_shlibs_CXX=no
12629 ;;
12630 esac
12631 ;;
12632 solaris*)
12633 case $cc_basename in
12634 CC*)
12635 # Sun C++ 4.2, 5.x and Centerline C++
12636 archive_cmds_need_lc_CXX=yes
12637 no_undefined_flag_CXX=' -zdefs'
12638 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12639 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12640 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12641
12642 hardcode_libdir_flag_spec_CXX='-R$libdir'
12643 hardcode_shlibpath_var_CXX=no
12644 case $host_os in
12645 solaris2.[0-5] | solaris2.[0-5].*) ;;
12646 *)
12647 # The C++ compiler is used as linker so we must use $wl
12648 # flag to pass the commands to the underlying system
12649 # linker. We must also pass each convience library through
12650 # to the system linker between allextract/defaultextract.
12651 # The C++ compiler will combine linker options so we
12652 # cannot just pass the convience library names through
12653 # without $wl.
12654 # Supported since Solaris 2.6 (maybe 2.5.1?)
12655 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12656 ;;
12657 esac
12658 link_all_deplibs_CXX=yes
12659
12660 output_verbose_link_cmd='echo'
12661
12662 # Archives containing C++ object files must be created using
12663 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12664 # necessary to make sure instantiated templates are included
12665 # in the archive.
12666 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12667 ;;
12668 gcx*)
12669 # Green Hills C++ Compiler
12670 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12671
12672 # The C++ compiler must be used to create the archive.
12673 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12674 ;;
12675 *)
12676 # GNU C++ compiler with Solaris linker
12677 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12678 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12679 if $CC --version | grep -v '^2\.7' > /dev/null; then
12680 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12681 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12682 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12683
12684 # Commands to make compiler produce verbose output that lists
12685 # what "hidden" libraries, object files and flags are used when
12686 # linking a shared library.
12687 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12688 else
12689 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12690 # platform.
12691 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12692 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12693 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12694
12695 # Commands to make compiler produce verbose output that lists
12696 # what "hidden" libraries, object files and flags are used when
12697 # linking a shared library.
12698 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12699 fi
12700
12701 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12702 fi
12703 ;;
12704 esac
12705 ;;
12706 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12707 no_undefined_flag_CXX='${wl}-z,text'
12708 archive_cmds_need_lc_CXX=no
12709 hardcode_shlibpath_var_CXX=no
12710 runpath_var='LD_RUN_PATH'
12711
12712 case $cc_basename in
12713 CC*)
12714 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12715 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12716 ;;
12717 *)
12718 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12719 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12720 ;;
12721 esac
12722 ;;
12723 sysv5* | sco3.2v5* | sco5v6*)
12724 # Note: We can NOT use -z defs as we might desire, because we do not
12725 # link with -lc, and that would cause any symbols used from libc to
12726 # always be unresolved, which means just about no library would
12727 # ever link correctly. If we're not using GNU ld we use -z text
12728 # though, which does catch some bad symbols but isn't as heavy-handed
12729 # as -z defs.
12730 # For security reasons, it is highly recommended that you always
12731 # use absolute paths for naming shared libraries, and exclude the
12732 # DT_RUNPATH tag from executables and libraries. But doing so
12733 # requires that you compile everything twice, which is a pain.
12734 # So that behaviour is only enabled if SCOABSPATH is set to a
12735 # non-empty value in the environment. Most likely only useful for
12736 # creating official distributions of packages.
12737 # This is a hack until libtool officially supports absolute path
12738 # names for shared libraries.
12739 no_undefined_flag_CXX='${wl}-z,text'
12740 allow_undefined_flag_CXX='${wl}-z,nodefs'
12741 archive_cmds_need_lc_CXX=no
12742 hardcode_shlibpath_var_CXX=no
12743 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12744 hardcode_libdir_separator_CXX=':'
12745 link_all_deplibs_CXX=yes
12746 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12747 runpath_var='LD_RUN_PATH'
12748
12749 case $cc_basename in
12750 CC*)
12751 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12752 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12753 ;;
12754 *)
12755 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12756 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12757 ;;
12758 esac
12759 ;;
12760 tandem*)
12761 case $cc_basename in
12762 NCC*)
12763 # NonStop-UX NCC 3.20
12764 # FIXME: insert proper C++ library support
12765 ld_shlibs_CXX=no
12766 ;;
12767 *)
12768 # FIXME: insert proper C++ library support
12769 ld_shlibs_CXX=no
12770 ;;
12771 esac
12772 ;;
12773 vxworks*)
12774 # FIXME: insert proper C++ library support
12775 ld_shlibs_CXX=no
12776 ;;
12777 *)
12778 # FIXME: insert proper C++ library support
12779 ld_shlibs_CXX=no
12780 ;;
12781 esac
12782 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12783 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12784 test "$ld_shlibs_CXX" = no && can_build_shared=no
12785
12786 GCC_CXX="$GXX"
12787 LD_CXX="$LD"
12788
12789 ## CAVEAT EMPTOR:
12790 ## There is no encapsulation within the following macros, do not change
12791 ## the running order or otherwise move them around unless you know exactly
12792 ## what you are doing...
12793
12794 cat > conftest.$ac_ext <<EOF
12795 class Foo
12796 {
12797 public:
12798 Foo (void) { a = 0; }
12799 private:
12800 int a;
12801 };
12802 EOF
12803
12804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12805 (eval $ac_compile) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; then
12809 # Parse the compiler output and extract the necessary
12810 # objects, libraries and library flags.
12811
12812 # Sentinel used to keep track of whether or not we are before
12813 # the conftest object file.
12814 pre_test_object_deps_done=no
12815
12816 # The `*' in the case matches for architectures that use `case' in
12817 # $output_verbose_cmd can trigger glob expansion during the loop
12818 # eval without this substitution.
12819 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12820
12821 for p in `eval $output_verbose_link_cmd`; do
12822 case $p in
12823
12824 -L* | -R* | -l*)
12825 # Some compilers place space between "-{L,R}" and the path.
12826 # Remove the space.
12827 if test $p = "-L" \
12828 || test $p = "-R"; then
12829 prev=$p
12830 continue
12831 else
12832 prev=
12833 fi
12834
12835 if test "$pre_test_object_deps_done" = no; then
12836 case $p in
12837 -L* | -R*)
12838 # Internal compiler library paths should come after those
12839 # provided the user. The postdeps already come after the
12840 # user supplied libs so there is no need to process them.
12841 if test -z "$compiler_lib_search_path_CXX"; then
12842 compiler_lib_search_path_CXX="${prev}${p}"
12843 else
12844 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12845 fi
12846 ;;
12847 # The "-l" case would never come before the object being
12848 # linked, so don't bother handling this case.
12849 esac
12850 else
12851 if test -z "$postdeps_CXX"; then
12852 postdeps_CXX="${prev}${p}"
12853 else
12854 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12855 fi
12856 fi
12857 ;;
12858
12859 *.$objext)
12860 # This assumes that the test object file only shows up
12861 # once in the compiler output.
12862 if test "$p" = "conftest.$objext"; then
12863 pre_test_object_deps_done=yes
12864 continue
12865 fi
12866
12867 if test "$pre_test_object_deps_done" = no; then
12868 if test -z "$predep_objects_CXX"; then
12869 predep_objects_CXX="$p"
12870 else
12871 predep_objects_CXX="$predep_objects_CXX $p"
12872 fi
12873 else
12874 if test -z "$postdep_objects_CXX"; then
12875 postdep_objects_CXX="$p"
12876 else
12877 postdep_objects_CXX="$postdep_objects_CXX $p"
12878 fi
12879 fi
12880 ;;
12881
12882 *) ;; # Ignore the rest.
12883
12884 esac
12885 done
12886
12887 # Clean up.
12888 rm -f a.out a.exe
12889 else
12890 echo "libtool.m4: error: problem compiling CXX test program"
12891 fi
12892
12893 $rm -f confest.$objext
12894
12895 # PORTME: override above test on systems where it is broken
12896 case $host_os in
12897 interix3*)
12898 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12899 # hack all around it, let's just trust "g++" to DTRT.
12900 predep_objects_CXX=
12901 postdep_objects_CXX=
12902 postdeps_CXX=
12903 ;;
12904
12905 solaris*)
12906 case $cc_basename in
12907 CC*)
12908 # Adding this requires a known-good setup of shared libraries for
12909 # Sun compiler versions before 5.6, else PIC objects from an old
12910 # archive will be linked into the output, leading to subtle bugs.
12911 postdeps_CXX='-lCstd -lCrun'
12912 ;;
12913 esac
12914 ;;
12915 esac
12916
12917
12918 case " $postdeps_CXX " in
12919 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12920 esac
12921
12922 lt_prog_compiler_wl_CXX=
12923 lt_prog_compiler_pic_CXX=
12924 lt_prog_compiler_static_CXX=
12925
12926 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12927 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12928
12929 # C++ specific cases for pic, static, wl, etc.
12930 if test "$GXX" = yes; then
12931 lt_prog_compiler_wl_CXX='-Wl,'
12932 lt_prog_compiler_static_CXX='-static'
12933
12934 case $host_os in
12935 aix*)
12936 # All AIX code is PIC.
12937 if test "$host_cpu" = ia64; then
12938 # AIX 5 now supports IA64 processor
12939 lt_prog_compiler_static_CXX='-Bstatic'
12940 fi
12941 ;;
12942 amigaos*)
12943 # FIXME: we need at least 68020 code to build shared libraries, but
12944 # adding the `-m68020' flag to GCC prevents building anything better,
12945 # like `-m68040'.
12946 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12947 ;;
12948 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12949 # PIC is the default for these OSes.
12950 ;;
12951 mingw* | os2* | pw32*)
12952 # This hack is so that the source file can tell whether it is being
12953 # built for inclusion in a dll (and should export symbols for example).
12954 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12955 ;;
12956 darwin* | rhapsody*)
12957 # PIC is the default on this platform
12958 # Common symbols not allowed in MH_DYLIB files
12959 lt_prog_compiler_pic_CXX='-fno-common'
12960 ;;
12961 *djgpp*)
12962 # DJGPP does not support shared libraries at all
12963 lt_prog_compiler_pic_CXX=
12964 ;;
12965 interix3*)
12966 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12967 # Instead, we relocate shared libraries at runtime.
12968 ;;
12969 sysv4*MP*)
12970 if test -d /usr/nec; then
12971 lt_prog_compiler_pic_CXX=-Kconform_pic
12972 fi
12973 ;;
12974 hpux*)
12975 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12976 # not for PA HP-UX.
12977 case $host_cpu in
12978 hppa*64*|ia64*)
12979 ;;
12980 *)
12981 lt_prog_compiler_pic_CXX='-fPIC'
12982 ;;
12983 esac
12984 ;;
12985 *)
12986 lt_prog_compiler_pic_CXX='-fPIC'
12987 ;;
12988 esac
12989 else
12990 case $host_os in
12991 aix4* | aix5*)
12992 # All AIX code is PIC.
12993 if test "$host_cpu" = ia64; then
12994 # AIX 5 now supports IA64 processor
12995 lt_prog_compiler_static_CXX='-Bstatic'
12996 else
12997 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12998 fi
12999 ;;
13000 chorus*)
13001 case $cc_basename in
13002 cxch68*)
13003 # Green Hills C++ Compiler
13004 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13005 ;;
13006 esac
13007 ;;
13008 darwin*)
13009 # PIC is the default on this platform
13010 # Common symbols not allowed in MH_DYLIB files
13011 case $cc_basename in
13012 xlc*)
13013 lt_prog_compiler_pic_CXX='-qnocommon'
13014 lt_prog_compiler_wl_CXX='-Wl,'
13015 ;;
13016 esac
13017 ;;
13018 dgux*)
13019 case $cc_basename in
13020 ec++*)
13021 lt_prog_compiler_pic_CXX='-KPIC'
13022 ;;
13023 ghcx*)
13024 # Green Hills C++ Compiler
13025 lt_prog_compiler_pic_CXX='-pic'
13026 ;;
13027 *)
13028 ;;
13029 esac
13030 ;;
13031 freebsd* | kfreebsd*-gnu | dragonfly*)
13032 # FreeBSD uses GNU C++
13033 ;;
13034 hpux9* | hpux10* | hpux11*)
13035 case $cc_basename in
13036 CC*)
13037 lt_prog_compiler_wl_CXX='-Wl,'
13038 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13039 if test "$host_cpu" != ia64; then
13040 lt_prog_compiler_pic_CXX='+Z'
13041 fi
13042 ;;
13043 aCC*)
13044 lt_prog_compiler_wl_CXX='-Wl,'
13045 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13046 case $host_cpu in
13047 hppa*64*|ia64*)
13048 # +Z the default
13049 ;;
13050 *)
13051 lt_prog_compiler_pic_CXX='+Z'
13052 ;;
13053 esac
13054 ;;
13055 *)
13056 ;;
13057 esac
13058 ;;
13059 interix*)
13060 # This is c89, which is MS Visual C++ (no shared libs)
13061 # Anyone wants to do a port?
13062 ;;
13063 irix5* | irix6* | nonstopux*)
13064 case $cc_basename in
13065 CC*)
13066 lt_prog_compiler_wl_CXX='-Wl,'
13067 lt_prog_compiler_static_CXX='-non_shared'
13068 # CC pic flag -KPIC is the default.
13069 ;;
13070 *)
13071 ;;
13072 esac
13073 ;;
13074 linux*)
13075 case $cc_basename in
13076 KCC*)
13077 # KAI C++ Compiler
13078 lt_prog_compiler_wl_CXX='--backend -Wl,'
13079 lt_prog_compiler_pic_CXX='-fPIC'
13080 ;;
13081 icpc* | ecpc*)
13082 # Intel C++
13083 lt_prog_compiler_wl_CXX='-Wl,'
13084 lt_prog_compiler_pic_CXX='-KPIC'
13085 lt_prog_compiler_static_CXX='-static'
13086 ;;
13087 pgCC*)
13088 # Portland Group C++ compiler.
13089 lt_prog_compiler_wl_CXX='-Wl,'
13090 lt_prog_compiler_pic_CXX='-fpic'
13091 lt_prog_compiler_static_CXX='-Bstatic'
13092 ;;
13093 cxx*)
13094 # Compaq C++
13095 # Make sure the PIC flag is empty. It appears that all Alpha
13096 # Linux and Compaq Tru64 Unix objects are PIC.
13097 lt_prog_compiler_pic_CXX=
13098 lt_prog_compiler_static_CXX='-non_shared'
13099 ;;
13100 *)
13101 ;;
13102 esac
13103 ;;
13104 lynxos*)
13105 ;;
13106 m88k*)
13107 ;;
13108 mvs*)
13109 case $cc_basename in
13110 cxx*)
13111 lt_prog_compiler_pic_CXX='-W c,exportall'
13112 ;;
13113 *)
13114 ;;
13115 esac
13116 ;;
13117 netbsd*)
13118 ;;
13119 osf3* | osf4* | osf5*)
13120 case $cc_basename in
13121 KCC*)
13122 lt_prog_compiler_wl_CXX='--backend -Wl,'
13123 ;;
13124 RCC*)
13125 # Rational C++ 2.4.1
13126 lt_prog_compiler_pic_CXX='-pic'
13127 ;;
13128 cxx*)
13129 # Digital/Compaq C++
13130 lt_prog_compiler_wl_CXX='-Wl,'
13131 # Make sure the PIC flag is empty. It appears that all Alpha
13132 # Linux and Compaq Tru64 Unix objects are PIC.
13133 lt_prog_compiler_pic_CXX=
13134 lt_prog_compiler_static_CXX='-non_shared'
13135 ;;
13136 *)
13137 ;;
13138 esac
13139 ;;
13140 psos*)
13141 ;;
13142 solaris*)
13143 case $cc_basename in
13144 CC*)
13145 # Sun C++ 4.2, 5.x and Centerline C++
13146 lt_prog_compiler_pic_CXX='-KPIC'
13147 lt_prog_compiler_static_CXX='-Bstatic'
13148 lt_prog_compiler_wl_CXX='-Qoption ld '
13149 ;;
13150 gcx*)
13151 # Green Hills C++ Compiler
13152 lt_prog_compiler_pic_CXX='-PIC'
13153 ;;
13154 *)
13155 ;;
13156 esac
13157 ;;
13158 sunos4*)
13159 case $cc_basename in
13160 CC*)
13161 # Sun C++ 4.x
13162 lt_prog_compiler_pic_CXX='-pic'
13163 lt_prog_compiler_static_CXX='-Bstatic'
13164 ;;
13165 lcc*)
13166 # Lucid
13167 lt_prog_compiler_pic_CXX='-pic'
13168 ;;
13169 *)
13170 ;;
13171 esac
13172 ;;
13173 tandem*)
13174 case $cc_basename in
13175 NCC*)
13176 # NonStop-UX NCC 3.20
13177 lt_prog_compiler_pic_CXX='-KPIC'
13178 ;;
13179 *)
13180 ;;
13181 esac
13182 ;;
13183 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13184 case $cc_basename in
13185 CC*)
13186 lt_prog_compiler_wl_CXX='-Wl,'
13187 lt_prog_compiler_pic_CXX='-KPIC'
13188 lt_prog_compiler_static_CXX='-Bstatic'
13189 ;;
13190 esac
13191 ;;
13192 vxworks*)
13193 ;;
13194 *)
13195 lt_prog_compiler_can_build_shared_CXX=no
13196 ;;
13197 esac
13198 fi
13199
13200 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13201 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13202
13203 #
13204 # Check to make sure the PIC flag actually works.
13205 #
13206 if test -n "$lt_prog_compiler_pic_CXX"; then
13207
13208 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13209 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13210 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213 lt_prog_compiler_pic_works_CXX=no
13214 ac_outfile=conftest.$ac_objext
13215 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13216 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13217 # Insert the option either (1) after the last *FLAGS variable, or
13218 # (2) before a word containing "conftest.", or (3) at the end.
13219 # Note that $ac_compile itself does not contain backslashes and begins
13220 # with a dollar sign (not a hyphen), so the echo should work correctly.
13221 # The option is referenced via a variable to avoid confusing sed.
13222 lt_compile=`echo "$ac_compile" | $SED \
13223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13225 -e 's:$: $lt_compiler_flag:'`
13226 (eval echo "\"\$as_me:13226: $lt_compile\"" >&5)
13227 (eval "$lt_compile" 2>conftest.err)
13228 ac_status=$?
13229 cat conftest.err >&5
13230 echo "$as_me:13230: \$? = $ac_status" >&5
13231 if (exit $ac_status) && test -s "$ac_outfile"; then
13232 # The compiler can only warn and ignore the option if not recognized
13233 # So say no if there are warnings other than the usual output.
13234 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13235 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13236 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13237 lt_prog_compiler_pic_works_CXX=yes
13238 fi
13239 fi
13240 $rm conftest*
13241
13242 fi
13243 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13244 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13245
13246 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13247 case $lt_prog_compiler_pic_CXX in
13248 "" | " "*) ;;
13249 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13250 esac
13251 else
13252 lt_prog_compiler_pic_CXX=
13253 lt_prog_compiler_can_build_shared_CXX=no
13254 fi
13255
13256 fi
13257 case $host_os in
13258 # For platforms which do not support PIC, -DPIC is meaningless:
13259 *djgpp*)
13260 lt_prog_compiler_pic_CXX=
13261 ;;
13262 *)
13263 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13264 ;;
13265 esac
13266
13267 #
13268 # Check to make sure the static flag actually works.
13269 #
13270 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13271 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13272 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13273 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13275 else
13276 lt_prog_compiler_static_works_CXX=no
13277 save_LDFLAGS="$LDFLAGS"
13278 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13279 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13280 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13281 # The linker can only warn and ignore the option if not recognized
13282 # So say no if there are warnings
13283 if test -s conftest.err; then
13284 # Append any errors to the config.log.
13285 cat conftest.err 1>&5
13286 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13288 if diff conftest.exp conftest.er2 >/dev/null; then
13289 lt_prog_compiler_static_works_CXX=yes
13290 fi
13291 else
13292 lt_prog_compiler_static_works_CXX=yes
13293 fi
13294 fi
13295 $rm conftest*
13296 LDFLAGS="$save_LDFLAGS"
13297
13298 fi
13299 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13300 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13301
13302 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13303 :
13304 else
13305 lt_prog_compiler_static_CXX=
13306 fi
13307
13308
13309 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13310 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13311 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 else
13314 lt_cv_prog_compiler_c_o_CXX=no
13315 $rm -r conftest 2>/dev/null
13316 mkdir conftest
13317 cd conftest
13318 mkdir out
13319 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13320
13321 lt_compiler_flag="-o out/conftest2.$ac_objext"
13322 # Insert the option either (1) after the last *FLAGS variable, or
13323 # (2) before a word containing "conftest.", or (3) at the end.
13324 # Note that $ac_compile itself does not contain backslashes and begins
13325 # with a dollar sign (not a hyphen), so the echo should work correctly.
13326 lt_compile=`echo "$ac_compile" | $SED \
13327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13329 -e 's:$: $lt_compiler_flag:'`
13330 (eval echo "\"\$as_me:13330: $lt_compile\"" >&5)
13331 (eval "$lt_compile" 2>out/conftest.err)
13332 ac_status=$?
13333 cat out/conftest.err >&5
13334 echo "$as_me:13334: \$? = $ac_status" >&5
13335 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13336 then
13337 # The compiler can only warn and ignore the option if not recognized
13338 # So say no if there are warnings
13339 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13340 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13341 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13342 lt_cv_prog_compiler_c_o_CXX=yes
13343 fi
13344 fi
13345 chmod u+w . 2>&5
13346 $rm conftest*
13347 # SGI C++ compiler will create directory out/ii_files/ for
13348 # template instantiation
13349 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13350 $rm out/* && rmdir out
13351 cd ..
13352 rmdir conftest
13353 $rm conftest*
13354
13355 fi
13356 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13357 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13358
13359
13360 hard_links="nottested"
13361 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13362 # do not overwrite the value of need_locks provided by the user
13363 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13364 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13365 hard_links=yes
13366 $rm conftest*
13367 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13368 touch conftest.a
13369 ln conftest.a conftest.b 2>&5 || hard_links=no
13370 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13371 echo "$as_me:$LINENO: result: $hard_links" >&5
13372 echo "${ECHO_T}$hard_links" >&6
13373 if test "$hard_links" = no; then
13374 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13375 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13376 need_locks=warn
13377 fi
13378 else
13379 need_locks=no
13380 fi
13381
13382 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13383 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13384
13385 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13386 case $host_os in
13387 aix4* | aix5*)
13388 # If we're using GNU nm, then we don't want the "-C" option.
13389 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13390 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13391 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13392 else
13393 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13394 fi
13395 ;;
13396 pw32*)
13397 export_symbols_cmds_CXX="$ltdll_cmds"
13398 ;;
13399 cygwin* | mingw*)
13400 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13401 ;;
13402 *)
13403 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13404 ;;
13405 esac
13406
13407 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13408 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13409 test "$ld_shlibs_CXX" = no && can_build_shared=no
13410
13411 #
13412 # Do we need to explicitly link libc?
13413 #
13414 case "x$archive_cmds_need_lc_CXX" in
13415 x|xyes)
13416 # Assume -lc should be added
13417 archive_cmds_need_lc_CXX=yes
13418
13419 if test "$enable_shared" = yes && test "$GCC" = yes; then
13420 case $archive_cmds_CXX in
13421 *'~'*)
13422 # FIXME: we may have to deal with multi-command sequences.
13423 ;;
13424 '$CC '*)
13425 # Test whether the compiler implicitly links with -lc since on some
13426 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13427 # to ld, don't add -lc before -lgcc.
13428 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13429 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13430 $rm conftest*
13431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13432
13433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } 2>conftest.err; then
13438 soname=conftest
13439 lib=conftest
13440 libobjs=conftest.$ac_objext
13441 deplibs=
13442 wl=$lt_prog_compiler_wl_CXX
13443 pic_flag=$lt_prog_compiler_pic_CXX
13444 compiler_flags=-v
13445 linker_flags=-v
13446 verstring=
13447 output_objdir=.
13448 libname=conftest
13449 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13450 allow_undefined_flag_CXX=
13451 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13452 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }
13456 then
13457 archive_cmds_need_lc_CXX=no
13458 else
13459 archive_cmds_need_lc_CXX=yes
13460 fi
13461 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13462 else
13463 cat conftest.err 1>&5
13464 fi
13465 $rm conftest*
13466 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13467 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13468 ;;
13469 esac
13470 fi
13471 ;;
13472 esac
13473
13474 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13475 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13476 library_names_spec=
13477 libname_spec='lib$name'
13478 soname_spec=
13479 shrext_cmds=".so"
13480 postinstall_cmds=
13481 postuninstall_cmds=
13482 finish_cmds=
13483 finish_eval=
13484 shlibpath_var=
13485 shlibpath_overrides_runpath=unknown
13486 version_type=none
13487 dynamic_linker="$host_os ld.so"
13488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13489 if test "$GCC" = yes; then
13490 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13491 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13492 # if the path contains ";" then we assume it to be the separator
13493 # otherwise default to the standard path separator (i.e. ":") - it is
13494 # assumed that no part of a normal pathname contains ";" but that should
13495 # okay in the real world where ";" in dirpaths is itself problematic.
13496 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13497 else
13498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13499 fi
13500 else
13501 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13502 fi
13503 need_lib_prefix=unknown
13504 hardcode_into_libs=no
13505
13506 # when you set need_version to no, make sure it does not cause -set_version
13507 # flags to be left without arguments
13508 need_version=unknown
13509
13510 case $host_os in
13511 aix3*)
13512 version_type=linux
13513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13514 shlibpath_var=LIBPATH
13515
13516 # AIX 3 has no versioning support, so we append a major version to the name.
13517 soname_spec='${libname}${release}${shared_ext}$major'
13518 ;;
13519
13520 aix4* | aix5*)
13521 version_type=linux
13522 need_lib_prefix=no
13523 need_version=no
13524 hardcode_into_libs=yes
13525 if test "$host_cpu" = ia64; then
13526 # AIX 5 supports IA64
13527 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13528 shlibpath_var=LD_LIBRARY_PATH
13529 else
13530 # With GCC up to 2.95.x, collect2 would create an import file
13531 # for dependence libraries. The import file would start with
13532 # the line `#! .'. This would cause the generated library to
13533 # depend on `.', always an invalid library. This was fixed in
13534 # development snapshots of GCC prior to 3.0.
13535 case $host_os in
13536 aix4 | aix4.[01] | aix4.[01].*)
13537 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13538 echo ' yes '
13539 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13540 :
13541 else
13542 can_build_shared=no
13543 fi
13544 ;;
13545 esac
13546 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13547 # soname into executable. Probably we can add versioning support to
13548 # collect2, so additional links can be useful in future.
13549 if test "$aix_use_runtimelinking" = yes; then
13550 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13551 # instead of lib<name>.a to let people know that these are not
13552 # typical AIX shared libraries.
13553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13554 else
13555 # We preserve .a as extension for shared libraries through AIX4.2
13556 # and later when we are not doing run time linking.
13557 library_names_spec='${libname}${release}.a $libname.a'
13558 soname_spec='${libname}${release}${shared_ext}$major'
13559 fi
13560 shlibpath_var=LIBPATH
13561 fi
13562 ;;
13563
13564 amigaos*)
13565 library_names_spec='$libname.ixlibrary $libname.a'
13566 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13567 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13568 ;;
13569
13570 beos*)
13571 library_names_spec='${libname}${shared_ext}'
13572 dynamic_linker="$host_os ld.so"
13573 shlibpath_var=LIBRARY_PATH
13574 ;;
13575
13576 bsdi[45]*)
13577 version_type=linux
13578 need_version=no
13579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13580 soname_spec='${libname}${release}${shared_ext}$major'
13581 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13582 shlibpath_var=LD_LIBRARY_PATH
13583 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13584 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13585 # the default ld.so.conf also contains /usr/contrib/lib and
13586 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13587 # libtool to hard-code these into programs
13588 ;;
13589
13590 cygwin* | mingw* | pw32*)
13591 version_type=windows
13592 shrext_cmds=".dll"
13593 need_version=no
13594 need_lib_prefix=no
13595
13596 case $GCC,$host_os in
13597 yes,cygwin* | yes,mingw* | yes,pw32*)
13598 library_names_spec='$libname.dll.a'
13599 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13600 postinstall_cmds='base_file=`basename \${file}`~
13601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13602 dldir=$destdir/`dirname \$dlpath`~
13603 test -d \$dldir || mkdir -p \$dldir~
13604 $install_prog $dir/$dlname \$dldir/$dlname~
13605 chmod a+x \$dldir/$dlname'
13606 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13607 dlpath=$dir/\$dldll~
13608 $rm \$dlpath'
13609 shlibpath_overrides_runpath=yes
13610
13611 case $host_os in
13612 cygwin*)
13613 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13614 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13615 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13616 ;;
13617 mingw*)
13618 # MinGW DLLs use traditional 'lib' prefix
13619 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13620 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13621 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13622 # It is most probably a Windows format PATH printed by
13623 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13624 # path with ; separators, and with drive letters. We can handle the
13625 # drive letters (cygwin fileutils understands them), so leave them,
13626 # especially as we might pass files found there to a mingw objdump,
13627 # which wouldn't understand a cygwinified path. Ahh.
13628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13629 else
13630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13631 fi
13632 ;;
13633 pw32*)
13634 # pw32 DLLs use 'pw' prefix rather than 'lib'
13635 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13636 ;;
13637 esac
13638 ;;
13639
13640 *)
13641 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13642 ;;
13643 esac
13644 dynamic_linker='Win32 ld.exe'
13645 # FIXME: first we should search . and the directory the executable is in
13646 shlibpath_var=PATH
13647 ;;
13648
13649 darwin* | rhapsody*)
13650 dynamic_linker="$host_os dyld"
13651 version_type=darwin
13652 need_lib_prefix=no
13653 need_version=no
13654 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13655 soname_spec='${libname}${release}${major}$shared_ext'
13656 shlibpath_overrides_runpath=yes
13657 shlibpath_var=DYLD_LIBRARY_PATH
13658 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13659 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13660 if test "$GCC" = yes; then
13661 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13662 else
13663 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13664 fi
13665 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13666 ;;
13667
13668 dgux*)
13669 version_type=linux
13670 need_lib_prefix=no
13671 need_version=no
13672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13673 soname_spec='${libname}${release}${shared_ext}$major'
13674 shlibpath_var=LD_LIBRARY_PATH
13675 ;;
13676
13677 freebsd1*)
13678 dynamic_linker=no
13679 ;;
13680
13681 kfreebsd*-gnu)
13682 version_type=linux
13683 need_lib_prefix=no
13684 need_version=no
13685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13686 soname_spec='${libname}${release}${shared_ext}$major'
13687 shlibpath_var=LD_LIBRARY_PATH
13688 shlibpath_overrides_runpath=no
13689 hardcode_into_libs=yes
13690 dynamic_linker='GNU ld.so'
13691 ;;
13692
13693 freebsd* | dragonfly*)
13694 # DragonFly does not have aout. When/if they implement a new
13695 # versioning mechanism, adjust this.
13696 if test -x /usr/bin/objformat; then
13697 objformat=`/usr/bin/objformat`
13698 else
13699 case $host_os in
13700 freebsd[123]*) objformat=aout ;;
13701 *) objformat=elf ;;
13702 esac
13703 fi
13704 version_type=freebsd-$objformat
13705 case $version_type in
13706 freebsd-elf*)
13707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13708 need_version=no
13709 need_lib_prefix=no
13710 ;;
13711 freebsd-*)
13712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13713 need_version=yes
13714 ;;
13715 esac
13716 shlibpath_var=LD_LIBRARY_PATH
13717 case $host_os in
13718 freebsd2*)
13719 shlibpath_overrides_runpath=yes
13720 ;;
13721 freebsd3.[01]* | freebsdelf3.[01]*)
13722 shlibpath_overrides_runpath=yes
13723 hardcode_into_libs=yes
13724 ;;
13725 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13726 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13727 shlibpath_overrides_runpath=no
13728 hardcode_into_libs=yes
13729 ;;
13730 freebsd*) # from 4.6 on
13731 shlibpath_overrides_runpath=yes
13732 hardcode_into_libs=yes
13733 ;;
13734 esac
13735 ;;
13736
13737 gnu*)
13738 version_type=linux
13739 need_lib_prefix=no
13740 need_version=no
13741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13742 soname_spec='${libname}${release}${shared_ext}$major'
13743 shlibpath_var=LD_LIBRARY_PATH
13744 hardcode_into_libs=yes
13745 ;;
13746
13747 hpux9* | hpux10* | hpux11*)
13748 # Give a soname corresponding to the major version so that dld.sl refuses to
13749 # link against other versions.
13750 version_type=sunos
13751 need_lib_prefix=no
13752 need_version=no
13753 case $host_cpu in
13754 ia64*)
13755 shrext_cmds='.so'
13756 hardcode_into_libs=yes
13757 dynamic_linker="$host_os dld.so"
13758 shlibpath_var=LD_LIBRARY_PATH
13759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13761 soname_spec='${libname}${release}${shared_ext}$major'
13762 if test "X$HPUX_IA64_MODE" = X32; then
13763 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13764 else
13765 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13766 fi
13767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13768 ;;
13769 hppa*64*)
13770 shrext_cmds='.sl'
13771 hardcode_into_libs=yes
13772 dynamic_linker="$host_os dld.sl"
13773 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13776 soname_spec='${libname}${release}${shared_ext}$major'
13777 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13779 ;;
13780 *)
13781 shrext_cmds='.sl'
13782 dynamic_linker="$host_os dld.sl"
13783 shlibpath_var=SHLIB_PATH
13784 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13786 soname_spec='${libname}${release}${shared_ext}$major'
13787 ;;
13788 esac
13789 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13790 postinstall_cmds='chmod 555 $lib'
13791 ;;
13792
13793 interix3*)
13794 version_type=linux
13795 need_lib_prefix=no
13796 need_version=no
13797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13798 soname_spec='${libname}${release}${shared_ext}$major'
13799 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13800 shlibpath_var=LD_LIBRARY_PATH
13801 shlibpath_overrides_runpath=no
13802 hardcode_into_libs=yes
13803 ;;
13804
13805 irix5* | irix6* | nonstopux*)
13806 case $host_os in
13807 nonstopux*) version_type=nonstopux ;;
13808 *)
13809 if test "$lt_cv_prog_gnu_ld" = yes; then
13810 version_type=linux
13811 else
13812 version_type=irix
13813 fi ;;
13814 esac
13815 need_lib_prefix=no
13816 need_version=no
13817 soname_spec='${libname}${release}${shared_ext}$major'
13818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13819 case $host_os in
13820 irix5* | nonstopux*)
13821 libsuff= shlibsuff=
13822 ;;
13823 *)
13824 case $LD in # libtool.m4 will add one of these switches to LD
13825 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13826 libsuff= shlibsuff= libmagic=32-bit;;
13827 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13828 libsuff=32 shlibsuff=N32 libmagic=N32;;
13829 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13830 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13831 *) libsuff= shlibsuff= libmagic=never-match;;
13832 esac
13833 ;;
13834 esac
13835 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13836 shlibpath_overrides_runpath=no
13837 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13838 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13839 hardcode_into_libs=yes
13840 ;;
13841
13842 # No shared lib support for Linux oldld, aout, or coff.
13843 linux*oldld* | linux*aout* | linux*coff*)
13844 dynamic_linker=no
13845 ;;
13846
13847 # This must be Linux ELF.
13848 linux*)
13849 version_type=linux
13850 need_lib_prefix=no
13851 need_version=no
13852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13853 soname_spec='${libname}${release}${shared_ext}$major'
13854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13855 shlibpath_var=LD_LIBRARY_PATH
13856 shlibpath_overrides_runpath=no
13857 # This implies no fast_install, which is unacceptable.
13858 # Some rework will be needed to allow for fast_install
13859 # before this can be enabled.
13860 hardcode_into_libs=yes
13861
13862 # Append ld.so.conf contents to the search path
13863 if test -f /etc/ld.so.conf; then
13864 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13866 fi
13867
13868 # We used to test for /lib/ld.so.1 and disable shared libraries on
13869 # powerpc, because MkLinux only supported shared libraries with the
13870 # GNU dynamic linker. Since this was broken with cross compilers,
13871 # most powerpc-linux boxes support dynamic linking these days and
13872 # people can always --disable-shared, the test was removed, and we
13873 # assume the GNU/Linux dynamic linker is in use.
13874 dynamic_linker='GNU/Linux ld.so'
13875 ;;
13876
13877 knetbsd*-gnu)
13878 version_type=linux
13879 need_lib_prefix=no
13880 need_version=no
13881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13882 soname_spec='${libname}${release}${shared_ext}$major'
13883 shlibpath_var=LD_LIBRARY_PATH
13884 shlibpath_overrides_runpath=no
13885 hardcode_into_libs=yes
13886 dynamic_linker='GNU ld.so'
13887 ;;
13888
13889 netbsd*)
13890 version_type=sunos
13891 need_lib_prefix=no
13892 need_version=no
13893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13896 dynamic_linker='NetBSD (a.out) ld.so'
13897 else
13898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13899 soname_spec='${libname}${release}${shared_ext}$major'
13900 dynamic_linker='NetBSD ld.elf_so'
13901 fi
13902 shlibpath_var=LD_LIBRARY_PATH
13903 shlibpath_overrides_runpath=yes
13904 hardcode_into_libs=yes
13905 ;;
13906
13907 newsos6)
13908 version_type=linux
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13910 shlibpath_var=LD_LIBRARY_PATH
13911 shlibpath_overrides_runpath=yes
13912 ;;
13913
13914 nto-qnx*)
13915 version_type=linux
13916 need_lib_prefix=no
13917 need_version=no
13918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13919 soname_spec='${libname}${release}${shared_ext}$major'
13920 shlibpath_var=LD_LIBRARY_PATH
13921 shlibpath_overrides_runpath=yes
13922 ;;
13923
13924 openbsd*)
13925 version_type=sunos
13926 sys_lib_dlsearch_path_spec="/usr/lib"
13927 need_lib_prefix=no
13928 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13929 case $host_os in
13930 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13931 *) need_version=no ;;
13932 esac
13933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13935 shlibpath_var=LD_LIBRARY_PATH
13936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13937 case $host_os in
13938 openbsd2.[89] | openbsd2.[89].*)
13939 shlibpath_overrides_runpath=no
13940 ;;
13941 *)
13942 shlibpath_overrides_runpath=yes
13943 ;;
13944 esac
13945 else
13946 shlibpath_overrides_runpath=yes
13947 fi
13948 ;;
13949
13950 os2*)
13951 libname_spec='$name'
13952 shrext_cmds=".dll"
13953 need_lib_prefix=no
13954 library_names_spec='$libname${shared_ext} $libname.a'
13955 dynamic_linker='OS/2 ld.exe'
13956 shlibpath_var=LIBPATH
13957 ;;
13958
13959 osf3* | osf4* | osf5*)
13960 version_type=osf
13961 need_lib_prefix=no
13962 need_version=no
13963 soname_spec='${libname}${release}${shared_ext}$major'
13964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13965 shlibpath_var=LD_LIBRARY_PATH
13966 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13967 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13968 ;;
13969
13970 solaris*)
13971 version_type=linux
13972 need_lib_prefix=no
13973 need_version=no
13974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13975 soname_spec='${libname}${release}${shared_ext}$major'
13976 shlibpath_var=LD_LIBRARY_PATH
13977 shlibpath_overrides_runpath=yes
13978 hardcode_into_libs=yes
13979 # ldd complains unless libraries are executable
13980 postinstall_cmds='chmod +x $lib'
13981 ;;
13982
13983 sunos4*)
13984 version_type=sunos
13985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13986 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13987 shlibpath_var=LD_LIBRARY_PATH
13988 shlibpath_overrides_runpath=yes
13989 if test "$with_gnu_ld" = yes; then
13990 need_lib_prefix=no
13991 fi
13992 need_version=yes
13993 ;;
13994
13995 sysv4 | sysv4.3*)
13996 version_type=linux
13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13998 soname_spec='${libname}${release}${shared_ext}$major'
13999 shlibpath_var=LD_LIBRARY_PATH
14000 case $host_vendor in
14001 sni)
14002 shlibpath_overrides_runpath=no
14003 need_lib_prefix=no
14004 export_dynamic_flag_spec='${wl}-Blargedynsym'
14005 runpath_var=LD_RUN_PATH
14006 ;;
14007 siemens)
14008 need_lib_prefix=no
14009 ;;
14010 motorola)
14011 need_lib_prefix=no
14012 need_version=no
14013 shlibpath_overrides_runpath=no
14014 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14015 ;;
14016 esac
14017 ;;
14018
14019 sysv4*MP*)
14020 if test -d /usr/nec ;then
14021 version_type=linux
14022 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14023 soname_spec='$libname${shared_ext}.$major'
14024 shlibpath_var=LD_LIBRARY_PATH
14025 fi
14026 ;;
14027
14028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14029 version_type=freebsd-elf
14030 need_lib_prefix=no
14031 need_version=no
14032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14033 soname_spec='${libname}${release}${shared_ext}$major'
14034 shlibpath_var=LD_LIBRARY_PATH
14035 hardcode_into_libs=yes
14036 if test "$with_gnu_ld" = yes; then
14037 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14038 shlibpath_overrides_runpath=no
14039 else
14040 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14041 shlibpath_overrides_runpath=yes
14042 case $host_os in
14043 sco3.2v5*)
14044 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14045 ;;
14046 esac
14047 fi
14048 sys_lib_dlsearch_path_spec='/usr/lib'
14049 ;;
14050
14051 uts4*)
14052 version_type=linux
14053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14054 soname_spec='${libname}${release}${shared_ext}$major'
14055 shlibpath_var=LD_LIBRARY_PATH
14056 ;;
14057
14058 *)
14059 dynamic_linker=no
14060 ;;
14061 esac
14062 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14063 echo "${ECHO_T}$dynamic_linker" >&6
14064 test "$dynamic_linker" = no && can_build_shared=no
14065
14066 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14067 if test "$GCC" = yes; then
14068 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14069 fi
14070
14071 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14072 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14073 hardcode_action_CXX=
14074 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14075 test -n "$runpath_var_CXX" || \
14076 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14077
14078 # We can hardcode non-existant directories.
14079 if test "$hardcode_direct_CXX" != no &&
14080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14081 # have to relink, otherwise we might link with an installed library
14082 # when we should be linking with a yet-to-be-installed one
14083 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14084 test "$hardcode_minus_L_CXX" != no; then
14085 # Linking always hardcodes the temporary library directory.
14086 hardcode_action_CXX=relink
14087 else
14088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14089 hardcode_action_CXX=immediate
14090 fi
14091 else
14092 # We cannot hardcode anything, or else we can only hardcode existing
14093 # directories.
14094 hardcode_action_CXX=unsupported
14095 fi
14096 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14097 echo "${ECHO_T}$hardcode_action_CXX" >&6
14098
14099 if test "$hardcode_action_CXX" = relink; then
14100 # Fast installation is not supported
14101 enable_fast_install=no
14102 elif test "$shlibpath_overrides_runpath" = yes ||
14103 test "$enable_shared" = no; then
14104 # Fast installation is not necessary
14105 enable_fast_install=needless
14106 fi
14107
14108
14109 # The else clause should only fire when bootstrapping the
14110 # libtool distribution, otherwise you forgot to ship ltmain.sh
14111 # with your package, and you will get complaints that there are
14112 # no rules to generate ltmain.sh.
14113 if test -f "$ltmain"; then
14114 # See if we are running on zsh, and set the options which allow our commands through
14115 # without removal of \ escapes.
14116 if test -n "${ZSH_VERSION+set}" ; then
14117 setopt NO_GLOB_SUBST
14118 fi
14119 # Now quote all the things that may contain metacharacters while being
14120 # careful not to overquote the AC_SUBSTed values. We take copies of the
14121 # variables and quote the copies for generation of the libtool script.
14122 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14123 SED SHELL STRIP \
14124 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14125 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14126 deplibs_check_method reload_flag reload_cmds need_locks \
14127 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14128 lt_cv_sys_global_symbol_to_c_name_address \
14129 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14130 old_postinstall_cmds old_postuninstall_cmds \
14131 compiler_CXX \
14132 CC_CXX \
14133 LD_CXX \
14134 lt_prog_compiler_wl_CXX \
14135 lt_prog_compiler_pic_CXX \
14136 lt_prog_compiler_static_CXX \
14137 lt_prog_compiler_no_builtin_flag_CXX \
14138 export_dynamic_flag_spec_CXX \
14139 thread_safe_flag_spec_CXX \
14140 whole_archive_flag_spec_CXX \
14141 enable_shared_with_static_runtimes_CXX \
14142 old_archive_cmds_CXX \
14143 old_archive_from_new_cmds_CXX \
14144 predep_objects_CXX \
14145 postdep_objects_CXX \
14146 predeps_CXX \
14147 postdeps_CXX \
14148 compiler_lib_search_path_CXX \
14149 archive_cmds_CXX \
14150 archive_expsym_cmds_CXX \
14151 postinstall_cmds_CXX \
14152 postuninstall_cmds_CXX \
14153 old_archive_from_expsyms_cmds_CXX \
14154 allow_undefined_flag_CXX \
14155 no_undefined_flag_CXX \
14156 export_symbols_cmds_CXX \
14157 hardcode_libdir_flag_spec_CXX \
14158 hardcode_libdir_flag_spec_ld_CXX \
14159 hardcode_libdir_separator_CXX \
14160 hardcode_automatic_CXX \
14161 module_cmds_CXX \
14162 module_expsym_cmds_CXX \
14163 lt_cv_prog_compiler_c_o_CXX \
14164 exclude_expsyms_CXX \
14165 include_expsyms_CXX; do
14166
14167 case $var in
14168 old_archive_cmds_CXX | \
14169 old_archive_from_new_cmds_CXX | \
14170 archive_cmds_CXX | \
14171 archive_expsym_cmds_CXX | \
14172 module_cmds_CXX | \
14173 module_expsym_cmds_CXX | \
14174 old_archive_from_expsyms_cmds_CXX | \
14175 export_symbols_cmds_CXX | \
14176 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14177 postinstall_cmds | postuninstall_cmds | \
14178 old_postinstall_cmds | old_postuninstall_cmds | \
14179 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14180 # Double-quote double-evaled strings.
14181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14182 ;;
14183 *)
14184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14185 ;;
14186 esac
14187 done
14188
14189 case $lt_echo in
14190 *'\$0 --fallback-echo"')
14191 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14192 ;;
14193 esac
14194
14195 cfgfile="$ofile"
14196
14197 cat <<__EOF__ >> "$cfgfile"
14198 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14199
14200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14201
14202 # Shell to use when invoking shell scripts.
14203 SHELL=$lt_SHELL
14204
14205 # Whether or not to build shared libraries.
14206 build_libtool_libs=$enable_shared
14207
14208 # Whether or not to build static libraries.
14209 build_old_libs=$enable_static
14210
14211 # Whether or not to add -lc for building shared libraries.
14212 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14213
14214 # Whether or not to disallow shared libs when runtime libs are static
14215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14216
14217 # Whether or not to optimize for fast installation.
14218 fast_install=$enable_fast_install
14219
14220 # The host system.
14221 host_alias=$host_alias
14222 host=$host
14223 host_os=$host_os
14224
14225 # The build system.
14226 build_alias=$build_alias
14227 build=$build
14228 build_os=$build_os
14229
14230 # An echo program that does not interpret backslashes.
14231 echo=$lt_echo
14232
14233 # The archiver.
14234 AR=$lt_AR
14235 AR_FLAGS=$lt_AR_FLAGS
14236
14237 # A C compiler.
14238 LTCC=$lt_LTCC
14239
14240 # LTCC compiler flags.
14241 LTCFLAGS=$lt_LTCFLAGS
14242
14243 # A language-specific compiler.
14244 CC=$lt_compiler_CXX
14245
14246 # Is the compiler the GNU C compiler?
14247 with_gcc=$GCC_CXX
14248
14249 # An ERE matcher.
14250 EGREP=$lt_EGREP
14251
14252 # The linker used to build libraries.
14253 LD=$lt_LD_CXX
14254
14255 # Whether we need hard or soft links.
14256 LN_S=$lt_LN_S
14257
14258 # A BSD-compatible nm program.
14259 NM=$lt_NM
14260
14261 # A symbol stripping program
14262 STRIP=$lt_STRIP
14263
14264 # Used to examine libraries when file_magic_cmd begins "file"
14265 MAGIC_CMD=$MAGIC_CMD
14266
14267 # Used on cygwin: DLL creation program.
14268 DLLTOOL="$DLLTOOL"
14269
14270 # Used on cygwin: object dumper.
14271 OBJDUMP="$OBJDUMP"
14272
14273 # Used on cygwin: assembler.
14274 AS="$AS"
14275
14276 # The name of the directory that contains temporary libtool files.
14277 objdir=$objdir
14278
14279 # How to create reloadable object files.
14280 reload_flag=$lt_reload_flag
14281 reload_cmds=$lt_reload_cmds
14282
14283 # How to pass a linker flag through the compiler.
14284 wl=$lt_lt_prog_compiler_wl_CXX
14285
14286 # Object file suffix (normally "o").
14287 objext="$ac_objext"
14288
14289 # Old archive suffix (normally "a").
14290 libext="$libext"
14291
14292 # Shared library suffix (normally ".so").
14293 shrext_cmds='$shrext_cmds'
14294
14295 # Executable file suffix (normally "").
14296 exeext="$exeext"
14297
14298 # Additional compiler flags for building library objects.
14299 pic_flag=$lt_lt_prog_compiler_pic_CXX
14300 pic_mode=$pic_mode
14301
14302 # What is the maximum length of a command?
14303 max_cmd_len=$lt_cv_sys_max_cmd_len
14304
14305 # Does compiler simultaneously support -c and -o options?
14306 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14307
14308 # Must we lock files when doing compilation?
14309 need_locks=$lt_need_locks
14310
14311 # Do we need the lib prefix for modules?
14312 need_lib_prefix=$need_lib_prefix
14313
14314 # Do we need a version for libraries?
14315 need_version=$need_version
14316
14317 # Whether dlopen is supported.
14318 dlopen_support=$enable_dlopen
14319
14320 # Whether dlopen of programs is supported.
14321 dlopen_self=$enable_dlopen_self
14322
14323 # Whether dlopen of statically linked programs is supported.
14324 dlopen_self_static=$enable_dlopen_self_static
14325
14326 # Compiler flag to prevent dynamic linking.
14327 link_static_flag=$lt_lt_prog_compiler_static_CXX
14328
14329 # Compiler flag to turn off builtin functions.
14330 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14331
14332 # Compiler flag to allow reflexive dlopens.
14333 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14334
14335 # Compiler flag to generate shared objects directly from archives.
14336 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14337
14338 # Compiler flag to generate thread-safe objects.
14339 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14340
14341 # Library versioning type.
14342 version_type=$version_type
14343
14344 # Format of library name prefix.
14345 libname_spec=$lt_libname_spec
14346
14347 # List of archive names. First name is the real one, the rest are links.
14348 # The last name is the one that the linker finds with -lNAME.
14349 library_names_spec=$lt_library_names_spec
14350
14351 # The coded name of the library, if different from the real name.
14352 soname_spec=$lt_soname_spec
14353
14354 # Commands used to build and install an old-style archive.
14355 RANLIB=$lt_RANLIB
14356 old_archive_cmds=$lt_old_archive_cmds_CXX
14357 old_postinstall_cmds=$lt_old_postinstall_cmds
14358 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14359
14360 # Create an old-style archive from a shared archive.
14361 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14362
14363 # Create a temporary old-style archive to link instead of a shared archive.
14364 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14365
14366 # Commands used to build and install a shared archive.
14367 archive_cmds=$lt_archive_cmds_CXX
14368 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14369 postinstall_cmds=$lt_postinstall_cmds
14370 postuninstall_cmds=$lt_postuninstall_cmds
14371
14372 # Commands used to build a loadable module (assumed same as above if empty)
14373 module_cmds=$lt_module_cmds_CXX
14374 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14375
14376 # Commands to strip libraries.
14377 old_striplib=$lt_old_striplib
14378 striplib=$lt_striplib
14379
14380 # Dependencies to place before the objects being linked to create a
14381 # shared library.
14382 predep_objects=$lt_predep_objects_CXX
14383
14384 # Dependencies to place after the objects being linked to create a
14385 # shared library.
14386 postdep_objects=$lt_postdep_objects_CXX
14387
14388 # Dependencies to place before the objects being linked to create a
14389 # shared library.
14390 predeps=$lt_predeps_CXX
14391
14392 # Dependencies to place after the objects being linked to create a
14393 # shared library.
14394 postdeps=$lt_postdeps_CXX
14395
14396 # The library search path used internally by the compiler when linking
14397 # a shared library.
14398 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14399
14400 # Method to check whether dependent libraries are shared objects.
14401 deplibs_check_method=$lt_deplibs_check_method
14402
14403 # Command to use when deplibs_check_method == file_magic.
14404 file_magic_cmd=$lt_file_magic_cmd
14405
14406 # Flag that allows shared libraries with undefined symbols to be built.
14407 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14408
14409 # Flag that forces no undefined symbols.
14410 no_undefined_flag=$lt_no_undefined_flag_CXX
14411
14412 # Commands used to finish a libtool library installation in a directory.
14413 finish_cmds=$lt_finish_cmds
14414
14415 # Same as above, but a single script fragment to be evaled but not shown.
14416 finish_eval=$lt_finish_eval
14417
14418 # Take the output of nm and produce a listing of raw symbols and C names.
14419 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14420
14421 # Transform the output of nm in a proper C declaration
14422 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14423
14424 # Transform the output of nm in a C name address pair
14425 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14426
14427 # This is the shared library runtime path variable.
14428 runpath_var=$runpath_var
14429
14430 # This is the shared library path variable.
14431 shlibpath_var=$shlibpath_var
14432
14433 # Is shlibpath searched before the hard-coded library search path?
14434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14435
14436 # How to hardcode a shared library path into an executable.
14437 hardcode_action=$hardcode_action_CXX
14438
14439 # Whether we should hardcode library paths into libraries.
14440 hardcode_into_libs=$hardcode_into_libs
14441
14442 # Flag to hardcode \$libdir into a binary during linking.
14443 # This must work even if \$libdir does not exist.
14444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14445
14446 # If ld is used when linking, flag to hardcode \$libdir into
14447 # a binary during linking. This must work even if \$libdir does
14448 # not exist.
14449 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14450
14451 # Whether we need a single -rpath flag with a separated argument.
14452 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14453
14454 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14455 # resulting binary.
14456 hardcode_direct=$hardcode_direct_CXX
14457
14458 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14459 # resulting binary.
14460 hardcode_minus_L=$hardcode_minus_L_CXX
14461
14462 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14463 # the resulting binary.
14464 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14465
14466 # Set to yes if building a shared library automatically hardcodes DIR into the library
14467 # and all subsequent libraries and executables linked against it.
14468 hardcode_automatic=$hardcode_automatic_CXX
14469
14470 # Variables whose values should be saved in libtool wrapper scripts and
14471 # restored at relink time.
14472 variables_saved_for_relink="$variables_saved_for_relink"
14473
14474 # Whether libtool must link a program against all its dependency libraries.
14475 link_all_deplibs=$link_all_deplibs_CXX
14476
14477 # Compile-time system search path for libraries
14478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14479
14480 # Run-time system search path for libraries
14481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14482
14483 # Fix the shell variable \$srcfile for the compiler.
14484 fix_srcfile_path="$fix_srcfile_path_CXX"
14485
14486 # Set to yes if exported symbols are required.
14487 always_export_symbols=$always_export_symbols_CXX
14488
14489 # The commands to list exported symbols.
14490 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14491
14492 # The commands to extract the exported symbol list from a shared archive.
14493 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14494
14495 # Symbols that should not be listed in the preloaded symbols.
14496 exclude_expsyms=$lt_exclude_expsyms_CXX
14497
14498 # Symbols that must always be exported.
14499 include_expsyms=$lt_include_expsyms_CXX
14500
14501 # ### END LIBTOOL TAG CONFIG: $tagname
14502
14503 __EOF__
14504
14505
14506 else
14507 # If there is no Makefile yet, we rely on a make rule to execute
14508 # `config.status --recheck' to rerun these tests and create the
14509 # libtool script then.
14510 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14511 if test -f "$ltmain_in"; then
14512 test -f Makefile && make "$ltmain"
14513 fi
14514 fi
14515
14516
14517 ac_ext=c
14518 ac_cpp='$CPP $CPPFLAGS'
14519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14522
14523 CC=$lt_save_CC
14524 LDCXX=$LD
14525 LD=$lt_save_LD
14526 GCC=$lt_save_GCC
14527 with_gnu_ldcxx=$with_gnu_ld
14528 with_gnu_ld=$lt_save_with_gnu_ld
14529 lt_cv_path_LDCXX=$lt_cv_path_LD
14530 lt_cv_path_LD=$lt_save_path_LD
14531 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14532 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14533
14534 else
14535 tagname=""
14536 fi
14537 ;;
14538
14539 F77)
14540 if test -n "$F77" && test "X$F77" != "Xno"; then
14541
14542 ac_ext=f
14543 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14544 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14545 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14546
14547
14548 archive_cmds_need_lc_F77=no
14549 allow_undefined_flag_F77=
14550 always_export_symbols_F77=no
14551 archive_expsym_cmds_F77=
14552 export_dynamic_flag_spec_F77=
14553 hardcode_direct_F77=no
14554 hardcode_libdir_flag_spec_F77=
14555 hardcode_libdir_flag_spec_ld_F77=
14556 hardcode_libdir_separator_F77=
14557 hardcode_minus_L_F77=no
14558 hardcode_automatic_F77=no
14559 module_cmds_F77=
14560 module_expsym_cmds_F77=
14561 link_all_deplibs_F77=unknown
14562 old_archive_cmds_F77=$old_archive_cmds
14563 no_undefined_flag_F77=
14564 whole_archive_flag_spec_F77=
14565 enable_shared_with_static_runtimes_F77=no
14566
14567 # Source file extension for f77 test sources.
14568 ac_ext=f
14569
14570 # Object file extension for compiled f77 test sources.
14571 objext=o
14572 objext_F77=$objext
14573
14574 # Code to be used in simple compile tests
14575 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14576
14577 # Code to be used in simple link tests
14578 lt_simple_link_test_code=" program t\n end\n"
14579
14580 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14581
14582 # If no C compiler was specified, use CC.
14583 LTCC=${LTCC-"$CC"}
14584
14585 # If no C compiler flags were specified, use CFLAGS.
14586 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14587
14588 # Allow CC to be a program name with arguments.
14589 compiler=$CC
14590
14591
14592 # save warnings/boilerplate of simple test code
14593 ac_outfile=conftest.$ac_objext
14594 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14596 _lt_compiler_boilerplate=`cat conftest.err`
14597 $rm conftest*
14598
14599 ac_outfile=conftest.$ac_objext
14600 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14602 _lt_linker_boilerplate=`cat conftest.err`
14603 $rm conftest*
14604
14605
14606 # Allow CC to be a program name with arguments.
14607 lt_save_CC="$CC"
14608 CC=${F77-"f77"}
14609 compiler=$CC
14610 compiler_F77=$CC
14611 for cc_temp in $compiler""; do
14612 case $cc_temp in
14613 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14614 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14615 \-*) ;;
14616 *) break;;
14617 esac
14618 done
14619 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14620
14621
14622 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14623 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14624 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14625 echo "${ECHO_T}$can_build_shared" >&6
14626
14627 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14628 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14629 test "$can_build_shared" = "no" && enable_shared=no
14630
14631 # On AIX, shared libraries and static libraries use the same namespace, and
14632 # are all built from PIC.
14633 case $host_os in
14634 aix3*)
14635 test "$enable_shared" = yes && enable_static=no
14636 if test -n "$RANLIB"; then
14637 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14638 postinstall_cmds='$RANLIB $lib'
14639 fi
14640 ;;
14641 aix4* | aix5*)
14642 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14643 test "$enable_shared" = yes && enable_static=no
14644 fi
14645 ;;
14646 esac
14647 echo "$as_me:$LINENO: result: $enable_shared" >&5
14648 echo "${ECHO_T}$enable_shared" >&6
14649
14650 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14651 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14652 # Make sure either enable_shared or enable_static is yes.
14653 test "$enable_shared" = yes || enable_static=yes
14654 echo "$as_me:$LINENO: result: $enable_static" >&5
14655 echo "${ECHO_T}$enable_static" >&6
14656
14657 GCC_F77="$G77"
14658 LD_F77="$LD"
14659
14660 lt_prog_compiler_wl_F77=
14661 lt_prog_compiler_pic_F77=
14662 lt_prog_compiler_static_F77=
14663
14664 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14665 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14666
14667 if test "$GCC" = yes; then
14668 lt_prog_compiler_wl_F77='-Wl,'
14669 lt_prog_compiler_static_F77='-static'
14670
14671 case $host_os in
14672 aix*)
14673 # All AIX code is PIC.
14674 if test "$host_cpu" = ia64; then
14675 # AIX 5 now supports IA64 processor
14676 lt_prog_compiler_static_F77='-Bstatic'
14677 fi
14678 ;;
14679
14680 amigaos*)
14681 # FIXME: we need at least 68020 code to build shared libraries, but
14682 # adding the `-m68020' flag to GCC prevents building anything better,
14683 # like `-m68040'.
14684 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14685 ;;
14686
14687 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14688 # PIC is the default for these OSes.
14689 ;;
14690
14691 mingw* | pw32* | os2*)
14692 # This hack is so that the source file can tell whether it is being
14693 # built for inclusion in a dll (and should export symbols for example).
14694 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14695 ;;
14696
14697 darwin* | rhapsody*)
14698 # PIC is the default on this platform
14699 # Common symbols not allowed in MH_DYLIB files
14700 lt_prog_compiler_pic_F77='-fno-common'
14701 ;;
14702
14703 interix3*)
14704 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14705 # Instead, we relocate shared libraries at runtime.
14706 ;;
14707
14708 msdosdjgpp*)
14709 # Just because we use GCC doesn't mean we suddenly get shared libraries
14710 # on systems that don't support them.
14711 lt_prog_compiler_can_build_shared_F77=no
14712 enable_shared=no
14713 ;;
14714
14715 sysv4*MP*)
14716 if test -d /usr/nec; then
14717 lt_prog_compiler_pic_F77=-Kconform_pic
14718 fi
14719 ;;
14720
14721 hpux*)
14722 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14723 # not for PA HP-UX.
14724 case $host_cpu in
14725 hppa*64*|ia64*)
14726 # +Z the default
14727 ;;
14728 *)
14729 lt_prog_compiler_pic_F77='-fPIC'
14730 ;;
14731 esac
14732 ;;
14733
14734 *)
14735 lt_prog_compiler_pic_F77='-fPIC'
14736 ;;
14737 esac
14738 else
14739 # PORTME Check for flag to pass linker flags through the system compiler.
14740 case $host_os in
14741 aix*)
14742 lt_prog_compiler_wl_F77='-Wl,'
14743 if test "$host_cpu" = ia64; then
14744 # AIX 5 now supports IA64 processor
14745 lt_prog_compiler_static_F77='-Bstatic'
14746 else
14747 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14748 fi
14749 ;;
14750 darwin*)
14751 # PIC is the default on this platform
14752 # Common symbols not allowed in MH_DYLIB files
14753 case $cc_basename in
14754 xlc*)
14755 lt_prog_compiler_pic_F77='-qnocommon'
14756 lt_prog_compiler_wl_F77='-Wl,'
14757 ;;
14758 esac
14759 ;;
14760
14761 mingw* | pw32* | os2*)
14762 # This hack is so that the source file can tell whether it is being
14763 # built for inclusion in a dll (and should export symbols for example).
14764 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14765 ;;
14766
14767 hpux9* | hpux10* | hpux11*)
14768 lt_prog_compiler_wl_F77='-Wl,'
14769 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14770 # not for PA HP-UX.
14771 case $host_cpu in
14772 hppa*64*|ia64*)
14773 # +Z the default
14774 ;;
14775 *)
14776 lt_prog_compiler_pic_F77='+Z'
14777 ;;
14778 esac
14779 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14780 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14781 ;;
14782
14783 irix5* | irix6* | nonstopux*)
14784 lt_prog_compiler_wl_F77='-Wl,'
14785 # PIC (with -KPIC) is the default.
14786 lt_prog_compiler_static_F77='-non_shared'
14787 ;;
14788
14789 newsos6)
14790 lt_prog_compiler_pic_F77='-KPIC'
14791 lt_prog_compiler_static_F77='-Bstatic'
14792 ;;
14793
14794 linux*)
14795 case $cc_basename in
14796 icc* | ecc*)
14797 lt_prog_compiler_wl_F77='-Wl,'
14798 lt_prog_compiler_pic_F77='-KPIC'
14799 lt_prog_compiler_static_F77='-static'
14800 ;;
14801 pgcc* | pgf77* | pgf90* | pgf95*)
14802 # Portland Group compilers (*not* the Pentium gcc compiler,
14803 # which looks to be a dead project)
14804 lt_prog_compiler_wl_F77='-Wl,'
14805 lt_prog_compiler_pic_F77='-fpic'
14806 lt_prog_compiler_static_F77='-Bstatic'
14807 ;;
14808 ccc*)
14809 lt_prog_compiler_wl_F77='-Wl,'
14810 # All Alpha code is PIC.
14811 lt_prog_compiler_static_F77='-non_shared'
14812 ;;
14813 esac
14814 ;;
14815
14816 osf3* | osf4* | osf5*)
14817 lt_prog_compiler_wl_F77='-Wl,'
14818 # All OSF/1 code is PIC.
14819 lt_prog_compiler_static_F77='-non_shared'
14820 ;;
14821
14822 solaris*)
14823 lt_prog_compiler_pic_F77='-KPIC'
14824 lt_prog_compiler_static_F77='-Bstatic'
14825 case $cc_basename in
14826 f77* | f90* | f95*)
14827 lt_prog_compiler_wl_F77='-Qoption ld ';;
14828 *)
14829 lt_prog_compiler_wl_F77='-Wl,';;
14830 esac
14831 ;;
14832
14833 sunos4*)
14834 lt_prog_compiler_wl_F77='-Qoption ld '
14835 lt_prog_compiler_pic_F77='-PIC'
14836 lt_prog_compiler_static_F77='-Bstatic'
14837 ;;
14838
14839 sysv4 | sysv4.2uw2* | sysv4.3*)
14840 lt_prog_compiler_wl_F77='-Wl,'
14841 lt_prog_compiler_pic_F77='-KPIC'
14842 lt_prog_compiler_static_F77='-Bstatic'
14843 ;;
14844
14845 sysv4*MP*)
14846 if test -d /usr/nec ;then
14847 lt_prog_compiler_pic_F77='-Kconform_pic'
14848 lt_prog_compiler_static_F77='-Bstatic'
14849 fi
14850 ;;
14851
14852 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14853 lt_prog_compiler_wl_F77='-Wl,'
14854 lt_prog_compiler_pic_F77='-KPIC'
14855 lt_prog_compiler_static_F77='-Bstatic'
14856 ;;
14857
14858 unicos*)
14859 lt_prog_compiler_wl_F77='-Wl,'
14860 lt_prog_compiler_can_build_shared_F77=no
14861 ;;
14862
14863 uts4*)
14864 lt_prog_compiler_pic_F77='-pic'
14865 lt_prog_compiler_static_F77='-Bstatic'
14866 ;;
14867
14868 *)
14869 lt_prog_compiler_can_build_shared_F77=no
14870 ;;
14871 esac
14872 fi
14873
14874 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14875 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14876
14877 #
14878 # Check to make sure the PIC flag actually works.
14879 #
14880 if test -n "$lt_prog_compiler_pic_F77"; then
14881
14882 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14883 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14884 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 else
14887 lt_prog_compiler_pic_works_F77=no
14888 ac_outfile=conftest.$ac_objext
14889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14890 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14891 # Insert the option either (1) after the last *FLAGS variable, or
14892 # (2) before a word containing "conftest.", or (3) at the end.
14893 # Note that $ac_compile itself does not contain backslashes and begins
14894 # with a dollar sign (not a hyphen), so the echo should work correctly.
14895 # The option is referenced via a variable to avoid confusing sed.
14896 lt_compile=`echo "$ac_compile" | $SED \
14897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14899 -e 's:$: $lt_compiler_flag:'`
14900 (eval echo "\"\$as_me:14900: $lt_compile\"" >&5)
14901 (eval "$lt_compile" 2>conftest.err)
14902 ac_status=$?
14903 cat conftest.err >&5
14904 echo "$as_me:14904: \$? = $ac_status" >&5
14905 if (exit $ac_status) && test -s "$ac_outfile"; then
14906 # The compiler can only warn and ignore the option if not recognized
14907 # So say no if there are warnings other than the usual output.
14908 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14910 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14911 lt_prog_compiler_pic_works_F77=yes
14912 fi
14913 fi
14914 $rm conftest*
14915
14916 fi
14917 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14918 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14919
14920 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14921 case $lt_prog_compiler_pic_F77 in
14922 "" | " "*) ;;
14923 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14924 esac
14925 else
14926 lt_prog_compiler_pic_F77=
14927 lt_prog_compiler_can_build_shared_F77=no
14928 fi
14929
14930 fi
14931 case $host_os in
14932 # For platforms which do not support PIC, -DPIC is meaningless:
14933 *djgpp*)
14934 lt_prog_compiler_pic_F77=
14935 ;;
14936 *)
14937 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14938 ;;
14939 esac
14940
14941 #
14942 # Check to make sure the static flag actually works.
14943 #
14944 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14945 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14946 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14947 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 else
14950 lt_prog_compiler_static_works_F77=no
14951 save_LDFLAGS="$LDFLAGS"
14952 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14953 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14954 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14955 # The linker can only warn and ignore the option if not recognized
14956 # So say no if there are warnings
14957 if test -s conftest.err; then
14958 # Append any errors to the config.log.
14959 cat conftest.err 1>&5
14960 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14962 if diff conftest.exp conftest.er2 >/dev/null; then
14963 lt_prog_compiler_static_works_F77=yes
14964 fi
14965 else
14966 lt_prog_compiler_static_works_F77=yes
14967 fi
14968 fi
14969 $rm conftest*
14970 LDFLAGS="$save_LDFLAGS"
14971
14972 fi
14973 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14974 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14975
14976 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14977 :
14978 else
14979 lt_prog_compiler_static_F77=
14980 fi
14981
14982
14983 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14984 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14985 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14986 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 else
14988 lt_cv_prog_compiler_c_o_F77=no
14989 $rm -r conftest 2>/dev/null
14990 mkdir conftest
14991 cd conftest
14992 mkdir out
14993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14994
14995 lt_compiler_flag="-o out/conftest2.$ac_objext"
14996 # Insert the option either (1) after the last *FLAGS variable, or
14997 # (2) before a word containing "conftest.", or (3) at the end.
14998 # Note that $ac_compile itself does not contain backslashes and begins
14999 # with a dollar sign (not a hyphen), so the echo should work correctly.
15000 lt_compile=`echo "$ac_compile" | $SED \
15001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15003 -e 's:$: $lt_compiler_flag:'`
15004 (eval echo "\"\$as_me:15004: $lt_compile\"" >&5)
15005 (eval "$lt_compile" 2>out/conftest.err)
15006 ac_status=$?
15007 cat out/conftest.err >&5
15008 echo "$as_me:15008: \$? = $ac_status" >&5
15009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15010 then
15011 # The compiler can only warn and ignore the option if not recognized
15012 # So say no if there are warnings
15013 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15016 lt_cv_prog_compiler_c_o_F77=yes
15017 fi
15018 fi
15019 chmod u+w . 2>&5
15020 $rm conftest*
15021 # SGI C++ compiler will create directory out/ii_files/ for
15022 # template instantiation
15023 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15024 $rm out/* && rmdir out
15025 cd ..
15026 rmdir conftest
15027 $rm conftest*
15028
15029 fi
15030 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15031 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15032
15033
15034 hard_links="nottested"
15035 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15036 # do not overwrite the value of need_locks provided by the user
15037 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15038 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15039 hard_links=yes
15040 $rm conftest*
15041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15042 touch conftest.a
15043 ln conftest.a conftest.b 2>&5 || hard_links=no
15044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15045 echo "$as_me:$LINENO: result: $hard_links" >&5
15046 echo "${ECHO_T}$hard_links" >&6
15047 if test "$hard_links" = no; then
15048 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15049 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15050 need_locks=warn
15051 fi
15052 else
15053 need_locks=no
15054 fi
15055
15056 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15057 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15058
15059 runpath_var=
15060 allow_undefined_flag_F77=
15061 enable_shared_with_static_runtimes_F77=no
15062 archive_cmds_F77=
15063 archive_expsym_cmds_F77=
15064 old_archive_From_new_cmds_F77=
15065 old_archive_from_expsyms_cmds_F77=
15066 export_dynamic_flag_spec_F77=
15067 whole_archive_flag_spec_F77=
15068 thread_safe_flag_spec_F77=
15069 hardcode_libdir_flag_spec_F77=
15070 hardcode_libdir_flag_spec_ld_F77=
15071 hardcode_libdir_separator_F77=
15072 hardcode_direct_F77=no
15073 hardcode_minus_L_F77=no
15074 hardcode_shlibpath_var_F77=unsupported
15075 link_all_deplibs_F77=unknown
15076 hardcode_automatic_F77=no
15077 module_cmds_F77=
15078 module_expsym_cmds_F77=
15079 always_export_symbols_F77=no
15080 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15081 # include_expsyms should be a list of space-separated symbols to be *always*
15082 # included in the symbol list
15083 include_expsyms_F77=
15084 # exclude_expsyms can be an extended regexp of symbols to exclude
15085 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15086 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15087 # as well as any symbol that contains `d'.
15088 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15089 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15090 # platforms (ab)use it in PIC code, but their linkers get confused if
15091 # the symbol is explicitly referenced. Since portable code cannot
15092 # rely on this symbol name, it's probably fine to never include it in
15093 # preloaded symbol tables.
15094 extract_expsyms_cmds=
15095 # Just being paranoid about ensuring that cc_basename is set.
15096 for cc_temp in $compiler""; do
15097 case $cc_temp in
15098 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15099 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15100 \-*) ;;
15101 *) break;;
15102 esac
15103 done
15104 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15105
15106 case $host_os in
15107 cygwin* | mingw* | pw32*)
15108 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15109 # When not using gcc, we currently assume that we are using
15110 # Microsoft Visual C++.
15111 if test "$GCC" != yes; then
15112 with_gnu_ld=no
15113 fi
15114 ;;
15115 interix*)
15116 # we just hope/assume this is gcc and not c89 (= MSVC++)
15117 with_gnu_ld=yes
15118 ;;
15119 openbsd*)
15120 with_gnu_ld=no
15121 ;;
15122 esac
15123
15124 ld_shlibs_F77=yes
15125 if test "$with_gnu_ld" = yes; then
15126 # If archive_cmds runs LD, not CC, wlarc should be empty
15127 wlarc='${wl}'
15128
15129 # Set some defaults for GNU ld with shared library support. These
15130 # are reset later if shared libraries are not supported. Putting them
15131 # here allows them to be overridden if necessary.
15132 runpath_var=LD_RUN_PATH
15133 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15134 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15135 # ancient GNU ld didn't support --whole-archive et. al.
15136 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15137 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15138 else
15139 whole_archive_flag_spec_F77=
15140 fi
15141 supports_anon_versioning=no
15142 case `$LD -v 2>/dev/null` in
15143 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15144 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15145 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15146 *\ 2.11.*) ;; # other 2.11 versions
15147 *) supports_anon_versioning=yes ;;
15148 esac
15149
15150 # See if GNU ld supports shared libraries.
15151 case $host_os in
15152 aix3* | aix4* | aix5*)
15153 # On AIX/PPC, the GNU linker is very broken
15154 if test "$host_cpu" != ia64; then
15155 ld_shlibs_F77=no
15156 cat <<EOF 1>&2
15157
15158 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15159 *** to be unable to reliably create shared libraries on AIX.
15160 *** Therefore, libtool is disabling shared libraries support. If you
15161 *** really care for shared libraries, you may want to modify your PATH
15162 *** so that a non-GNU linker is found, and then restart.
15163
15164 EOF
15165 fi
15166 ;;
15167
15168 amigaos*)
15169 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15170 hardcode_libdir_flag_spec_F77='-L$libdir'
15171 hardcode_minus_L_F77=yes
15172
15173 # Samuel A. Falvo II <[email protected]> reports
15174 # that the semantics of dynamic libraries on AmigaOS, at least up
15175 # to version 4, is to share data among multiple programs linked
15176 # with the same dynamic library. Since this doesn't match the
15177 # behavior of shared libraries on other platforms, we can't use
15178 # them.
15179 ld_shlibs_F77=no
15180 ;;
15181
15182 beos*)
15183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15184 allow_undefined_flag_F77=unsupported
15185 # Joseph Beckenbach <[email protected]> says some releases of gcc
15186 # support --undefined. This deserves some investigation. FIXME
15187 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15188 else
15189 ld_shlibs_F77=no
15190 fi
15191 ;;
15192
15193 cygwin* | mingw* | pw32*)
15194 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15195 # as there is no search path for DLLs.
15196 hardcode_libdir_flag_spec_F77='-L$libdir'
15197 allow_undefined_flag_F77=unsupported
15198 always_export_symbols_F77=no
15199 enable_shared_with_static_runtimes_F77=yes
15200 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15201
15202 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15203 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15204 # If the export-symbols file already is a .def file (1st line
15205 # is EXPORTS), use it as is; otherwise, prepend...
15206 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15207 cp $export_symbols $output_objdir/$soname.def;
15208 else
15209 echo EXPORTS > $output_objdir/$soname.def;
15210 cat $export_symbols >> $output_objdir/$soname.def;
15211 fi~
15212 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15213 else
15214 ld_shlibs_F77=no
15215 fi
15216 ;;
15217
15218 interix3*)
15219 hardcode_direct_F77=no
15220 hardcode_shlibpath_var_F77=no
15221 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15222 export_dynamic_flag_spec_F77='${wl}-E'
15223 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15224 # Instead, shared libraries are loaded at an image base (0x10000000 by
15225 # default) and relocated if they conflict, which is a slow very memory
15226 # consuming and fragmenting process. To avoid this, we pick a random,
15227 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15228 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15229 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15230 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15231 ;;
15232
15233 linux*)
15234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15235 tmp_addflag=
15236 case $cc_basename,$host_cpu in
15237 pgcc*) # Portland Group C compiler
15238 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15239 tmp_addflag=' $pic_flag'
15240 ;;
15241 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15242 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15243 tmp_addflag=' $pic_flag -Mnomain' ;;
15244 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15245 tmp_addflag=' -i_dynamic' ;;
15246 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15247 tmp_addflag=' -i_dynamic -nofor_main' ;;
15248 ifc* | ifort*) # Intel Fortran compiler
15249 tmp_addflag=' -nofor_main' ;;
15250 esac
15251 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15252
15253 if test $supports_anon_versioning = yes; then
15254 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15256 $echo "local: *; };" >> $output_objdir/$libname.ver~
15257 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15258 fi
15259 else
15260 ld_shlibs_F77=no
15261 fi
15262 ;;
15263
15264 netbsd*)
15265 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15266 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15267 wlarc=
15268 else
15269 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15270 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15271 fi
15272 ;;
15273
15274 solaris*)
15275 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15276 ld_shlibs_F77=no
15277 cat <<EOF 1>&2
15278
15279 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15280 *** create shared libraries on Solaris systems. Therefore, libtool
15281 *** is disabling shared libraries support. We urge you to upgrade GNU
15282 *** binutils to release 2.9.1 or newer. Another option is to modify
15283 *** your PATH or compiler configuration so that the native linker is
15284 *** used, and then restart.
15285
15286 EOF
15287 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15288 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15289 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15290 else
15291 ld_shlibs_F77=no
15292 fi
15293 ;;
15294
15295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15296 case `$LD -v 2>&1` in
15297 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15298 ld_shlibs_F77=no
15299 cat <<_LT_EOF 1>&2
15300
15301 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15302 *** reliably create shared libraries on SCO systems. Therefore, libtool
15303 *** is disabling shared libraries support. We urge you to upgrade GNU
15304 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15305 *** your PATH or compiler configuration so that the native linker is
15306 *** used, and then restart.
15307
15308 _LT_EOF
15309 ;;
15310 *)
15311 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15312 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15313 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15314 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15315 else
15316 ld_shlibs_F77=no
15317 fi
15318 ;;
15319 esac
15320 ;;
15321
15322 sunos4*)
15323 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15324 wlarc=
15325 hardcode_direct_F77=yes
15326 hardcode_shlibpath_var_F77=no
15327 ;;
15328
15329 *)
15330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15331 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15332 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15333 else
15334 ld_shlibs_F77=no
15335 fi
15336 ;;
15337 esac
15338
15339 if test "$ld_shlibs_F77" = no; then
15340 runpath_var=
15341 hardcode_libdir_flag_spec_F77=
15342 export_dynamic_flag_spec_F77=
15343 whole_archive_flag_spec_F77=
15344 fi
15345 else
15346 # PORTME fill in a description of your system's linker (not GNU ld)
15347 case $host_os in
15348 aix3*)
15349 allow_undefined_flag_F77=unsupported
15350 always_export_symbols_F77=yes
15351 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15352 # Note: this linker hardcodes the directories in LIBPATH if there
15353 # are no directories specified by -L.
15354 hardcode_minus_L_F77=yes
15355 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15356 # Neither direct hardcoding nor static linking is supported with a
15357 # broken collect2.
15358 hardcode_direct_F77=unsupported
15359 fi
15360 ;;
15361
15362 aix4* | aix5*)
15363 if test "$host_cpu" = ia64; then
15364 # On IA64, the linker does run time linking by default, so we don't
15365 # have to do anything special.
15366 aix_use_runtimelinking=no
15367 exp_sym_flag='-Bexport'
15368 no_entry_flag=""
15369 else
15370 # If we're using GNU nm, then we don't want the "-C" option.
15371 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15372 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15373 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15374 else
15375 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15376 fi
15377 aix_use_runtimelinking=no
15378
15379 # Test if we are trying to use run time linking or normal
15380 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15381 # need to do runtime linking.
15382 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15383 for ld_flag in $LDFLAGS; do
15384 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15385 aix_use_runtimelinking=yes
15386 break
15387 fi
15388 done
15389 ;;
15390 esac
15391
15392 exp_sym_flag='-bexport'
15393 no_entry_flag='-bnoentry'
15394 fi
15395
15396 # When large executables or shared objects are built, AIX ld can
15397 # have problems creating the table of contents. If linking a library
15398 # or program results in "error TOC overflow" add -mminimal-toc to
15399 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15400 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15401
15402 archive_cmds_F77=''
15403 hardcode_direct_F77=yes
15404 hardcode_libdir_separator_F77=':'
15405 link_all_deplibs_F77=yes
15406
15407 if test "$GCC" = yes; then
15408 case $host_os in aix4.[012]|aix4.[012].*)
15409 # We only want to do this on AIX 4.2 and lower, the check
15410 # below for broken collect2 doesn't work under 4.3+
15411 collect2name=`${CC} -print-prog-name=collect2`
15412 if test -f "$collect2name" && \
15413 strings "$collect2name" | grep resolve_lib_name >/dev/null
15414 then
15415 # We have reworked collect2
15416 hardcode_direct_F77=yes
15417 else
15418 # We have old collect2
15419 hardcode_direct_F77=unsupported
15420 # It fails to find uninstalled libraries when the uninstalled
15421 # path is not listed in the libpath. Setting hardcode_minus_L
15422 # to unsupported forces relinking
15423 hardcode_minus_L_F77=yes
15424 hardcode_libdir_flag_spec_F77='-L$libdir'
15425 hardcode_libdir_separator_F77=
15426 fi
15427 ;;
15428 esac
15429 shared_flag='-shared'
15430 if test "$aix_use_runtimelinking" = yes; then
15431 shared_flag="$shared_flag "'${wl}-G'
15432 fi
15433 else
15434 # not using gcc
15435 if test "$host_cpu" = ia64; then
15436 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15437 # chokes on -Wl,-G. The following line is correct:
15438 shared_flag='-G'
15439 else
15440 if test "$aix_use_runtimelinking" = yes; then
15441 shared_flag='${wl}-G'
15442 else
15443 shared_flag='${wl}-bM:SRE'
15444 fi
15445 fi
15446 fi
15447
15448 # It seems that -bexpall does not export symbols beginning with
15449 # underscore (_), so it is better to generate a list of symbols to export.
15450 always_export_symbols_F77=yes
15451 if test "$aix_use_runtimelinking" = yes; then
15452 # Warning - without using the other runtime loading flags (-brtl),
15453 # -berok will link without error, but may produce a broken library.
15454 allow_undefined_flag_F77='-berok'
15455 # Determine the default libpath from the value encoded in an empty executable.
15456 cat >conftest.$ac_ext <<_ACEOF
15457 program main
15458
15459 end
15460 _ACEOF
15461 rm -f conftest.$ac_objext conftest$ac_exeext
15462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15463 (eval $ac_link) 2>conftest.er1
15464 ac_status=$?
15465 grep -v '^ *+' conftest.er1 >conftest.err
15466 rm -f conftest.er1
15467 cat conftest.err >&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } &&
15470 { ac_try='test -z "$ac_f77_werror_flag"
15471 || test ! -s conftest.err'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15474 ac_status=$?
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; } &&
15477 { ac_try='test -s conftest$ac_exeext'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15483
15484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15485 }'`
15486 # Check for a 64-bit object if we didn't find anything.
15487 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15488 }'`; fi
15489 else
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493 fi
15494 rm -f conftest.err conftest.$ac_objext \
15495 conftest$ac_exeext conftest.$ac_ext
15496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15497
15498 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15499 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15500 else
15501 if test "$host_cpu" = ia64; then
15502 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15503 allow_undefined_flag_F77="-z nodefs"
15504 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15505 else
15506 # Determine the default libpath from the value encoded in an empty executable.
15507 cat >conftest.$ac_ext <<_ACEOF
15508 program main
15509
15510 end
15511 _ACEOF
15512 rm -f conftest.$ac_objext conftest$ac_exeext
15513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15514 (eval $ac_link) 2>conftest.er1
15515 ac_status=$?
15516 grep -v '^ *+' conftest.er1 >conftest.err
15517 rm -f conftest.er1
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } &&
15521 { ac_try='test -z "$ac_f77_werror_flag"
15522 || test ! -s conftest.err'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; } &&
15528 { ac_try='test -s conftest$ac_exeext'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15534
15535 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15536 }'`
15537 # Check for a 64-bit object if we didn't find anything.
15538 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15539 }'`; fi
15540 else
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15543
15544 fi
15545 rm -f conftest.err conftest.$ac_objext \
15546 conftest$ac_exeext conftest.$ac_ext
15547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15548
15549 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15550 # Warning - without using the other run time loading flags,
15551 # -berok will link without error, but may produce a broken library.
15552 no_undefined_flag_F77=' ${wl}-bernotok'
15553 allow_undefined_flag_F77=' ${wl}-berok'
15554 # Exported symbols can be pulled into shared objects from archives
15555 whole_archive_flag_spec_F77='$convenience'
15556 archive_cmds_need_lc_F77=yes
15557 # This is similar to how AIX traditionally builds its shared libraries.
15558 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15559 fi
15560 fi
15561 ;;
15562
15563 amigaos*)
15564 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15565 hardcode_libdir_flag_spec_F77='-L$libdir'
15566 hardcode_minus_L_F77=yes
15567 # see comment about different semantics on the GNU ld section
15568 ld_shlibs_F77=no
15569 ;;
15570
15571 bsdi[45]*)
15572 export_dynamic_flag_spec_F77=-rdynamic
15573 ;;
15574
15575 cygwin* | mingw* | pw32*)
15576 # When not using gcc, we currently assume that we are using
15577 # Microsoft Visual C++.
15578 # hardcode_libdir_flag_spec is actually meaningless, as there is
15579 # no search path for DLLs.
15580 hardcode_libdir_flag_spec_F77=' '
15581 allow_undefined_flag_F77=unsupported
15582 # Tell ltmain to make .lib files, not .a files.
15583 libext=lib
15584 # Tell ltmain to make .dll files, not .so files.
15585 shrext_cmds=".dll"
15586 # FIXME: Setting linknames here is a bad hack.
15587 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15588 # The linker will automatically build a .lib file if we build a DLL.
15589 old_archive_From_new_cmds_F77='true'
15590 # FIXME: Should let the user specify the lib program.
15591 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15592 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15593 enable_shared_with_static_runtimes_F77=yes
15594 ;;
15595
15596 darwin* | rhapsody*)
15597 case $host_os in
15598 rhapsody* | darwin1.[012])
15599 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15600 ;;
15601 *) # Darwin 1.3 on
15602 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15603 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15604 else
15605 case ${MACOSX_DEPLOYMENT_TARGET} in
15606 10.[012])
15607 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15608 ;;
15609 10.*)
15610 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15611 ;;
15612 esac
15613 fi
15614 ;;
15615 esac
15616 archive_cmds_need_lc_F77=no
15617 hardcode_direct_F77=no
15618 hardcode_automatic_F77=yes
15619 hardcode_shlibpath_var_F77=unsupported
15620 whole_archive_flag_spec_F77=''
15621 link_all_deplibs_F77=yes
15622 if test "$GCC" = yes ; then
15623 output_verbose_link_cmd='echo'
15624 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15625 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15626 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15627 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15628 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15629 else
15630 case $cc_basename in
15631 xlc*)
15632 output_verbose_link_cmd='echo'
15633 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15634 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15635 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15636 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15637 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15638 ;;
15639 *)
15640 ld_shlibs_F77=no
15641 ;;
15642 esac
15643 fi
15644 ;;
15645
15646 dgux*)
15647 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15648 hardcode_libdir_flag_spec_F77='-L$libdir'
15649 hardcode_shlibpath_var_F77=no
15650 ;;
15651
15652 freebsd1*)
15653 ld_shlibs_F77=no
15654 ;;
15655
15656 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15657 # support. Future versions do this automatically, but an explicit c++rt0.o
15658 # does not break anything, and helps significantly (at the cost of a little
15659 # extra space).
15660 freebsd2.2*)
15661 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15662 hardcode_libdir_flag_spec_F77='-R$libdir'
15663 hardcode_direct_F77=yes
15664 hardcode_shlibpath_var_F77=no
15665 ;;
15666
15667 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15668 freebsd2*)
15669 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15670 hardcode_direct_F77=yes
15671 hardcode_minus_L_F77=yes
15672 hardcode_shlibpath_var_F77=no
15673 ;;
15674
15675 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15676 freebsd* | kfreebsd*-gnu | dragonfly*)
15677 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15678 hardcode_libdir_flag_spec_F77='-R$libdir'
15679 hardcode_direct_F77=yes
15680 hardcode_shlibpath_var_F77=no
15681 ;;
15682
15683 hpux9*)
15684 if test "$GCC" = yes; then
15685 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15686 else
15687 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15688 fi
15689 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15690 hardcode_libdir_separator_F77=:
15691 hardcode_direct_F77=yes
15692
15693 # hardcode_minus_L: Not really in the search PATH,
15694 # but as the default location of the library.
15695 hardcode_minus_L_F77=yes
15696 export_dynamic_flag_spec_F77='${wl}-E'
15697 ;;
15698
15699 hpux10*)
15700 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15701 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15702 else
15703 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15704 fi
15705 if test "$with_gnu_ld" = no; then
15706 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15707 hardcode_libdir_separator_F77=:
15708
15709 hardcode_direct_F77=yes
15710 export_dynamic_flag_spec_F77='${wl}-E'
15711
15712 # hardcode_minus_L: Not really in the search PATH,
15713 # but as the default location of the library.
15714 hardcode_minus_L_F77=yes
15715 fi
15716 ;;
15717
15718 hpux11*)
15719 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15720 case $host_cpu in
15721 hppa*64*)
15722 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15723 ;;
15724 ia64*)
15725 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15726 ;;
15727 *)
15728 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15729 ;;
15730 esac
15731 else
15732 case $host_cpu in
15733 hppa*64*)
15734 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15735 ;;
15736 ia64*)
15737 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15738 ;;
15739 *)
15740 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15741 ;;
15742 esac
15743 fi
15744 if test "$with_gnu_ld" = no; then
15745 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15746 hardcode_libdir_separator_F77=:
15747
15748 case $host_cpu in
15749 hppa*64*|ia64*)
15750 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15751 hardcode_direct_F77=no
15752 hardcode_shlibpath_var_F77=no
15753 ;;
15754 *)
15755 hardcode_direct_F77=yes
15756 export_dynamic_flag_spec_F77='${wl}-E'
15757
15758 # hardcode_minus_L: Not really in the search PATH,
15759 # but as the default location of the library.
15760 hardcode_minus_L_F77=yes
15761 ;;
15762 esac
15763 fi
15764 ;;
15765
15766 irix5* | irix6* | nonstopux*)
15767 if test "$GCC" = yes; then
15768 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15769 else
15770 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15771 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15772 fi
15773 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15774 hardcode_libdir_separator_F77=:
15775 link_all_deplibs_F77=yes
15776 ;;
15777
15778 netbsd*)
15779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15780 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15781 else
15782 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15783 fi
15784 hardcode_libdir_flag_spec_F77='-R$libdir'
15785 hardcode_direct_F77=yes
15786 hardcode_shlibpath_var_F77=no
15787 ;;
15788
15789 newsos6)
15790 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15791 hardcode_direct_F77=yes
15792 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15793 hardcode_libdir_separator_F77=:
15794 hardcode_shlibpath_var_F77=no
15795 ;;
15796
15797 openbsd*)
15798 hardcode_direct_F77=yes
15799 hardcode_shlibpath_var_F77=no
15800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15801 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15802 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15803 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15804 export_dynamic_flag_spec_F77='${wl}-E'
15805 else
15806 case $host_os in
15807 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15808 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_libdir_flag_spec_F77='-R$libdir'
15810 ;;
15811 *)
15812 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15813 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15814 ;;
15815 esac
15816 fi
15817 ;;
15818
15819 os2*)
15820 hardcode_libdir_flag_spec_F77='-L$libdir'
15821 hardcode_minus_L_F77=yes
15822 allow_undefined_flag_F77=unsupported
15823 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15824 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15825 ;;
15826
15827 osf3*)
15828 if test "$GCC" = yes; then
15829 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15830 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15831 else
15832 allow_undefined_flag_F77=' -expect_unresolved \*'
15833 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15834 fi
15835 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15836 hardcode_libdir_separator_F77=:
15837 ;;
15838
15839 osf4* | osf5*) # as osf3* with the addition of -msym flag
15840 if test "$GCC" = yes; then
15841 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15842 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15843 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15844 else
15845 allow_undefined_flag_F77=' -expect_unresolved \*'
15846 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15847 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15848 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15849
15850 # Both c and cxx compiler support -rpath directly
15851 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15852 fi
15853 hardcode_libdir_separator_F77=:
15854 ;;
15855
15856 solaris*)
15857 no_undefined_flag_F77=' -z text'
15858 if test "$GCC" = yes; then
15859 wlarc='${wl}'
15860 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15861 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15862 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15863 else
15864 wlarc=''
15865 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15866 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15867 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15868 fi
15869 hardcode_libdir_flag_spec_F77='-R$libdir'
15870 hardcode_shlibpath_var_F77=no
15871 case $host_os in
15872 solaris2.[0-5] | solaris2.[0-5].*) ;;
15873 *)
15874 # The compiler driver will combine linker options so we
15875 # cannot just pass the convience library names through
15876 # without $wl, iff we do not link with $LD.
15877 # Luckily, gcc supports the same syntax we need for Sun Studio.
15878 # Supported since Solaris 2.6 (maybe 2.5.1?)
15879 case $wlarc in
15880 '')
15881 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15882 *)
15883 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15884 esac ;;
15885 esac
15886 link_all_deplibs_F77=yes
15887 ;;
15888
15889 sunos4*)
15890 if test "x$host_vendor" = xsequent; then
15891 # Use $CC to link under sequent, because it throws in some extra .o
15892 # files that make .init and .fini sections work.
15893 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15894 else
15895 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15896 fi
15897 hardcode_libdir_flag_spec_F77='-L$libdir'
15898 hardcode_direct_F77=yes
15899 hardcode_minus_L_F77=yes
15900 hardcode_shlibpath_var_F77=no
15901 ;;
15902
15903 sysv4)
15904 case $host_vendor in
15905 sni)
15906 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15907 hardcode_direct_F77=yes # is this really true???
15908 ;;
15909 siemens)
15910 ## LD is ld it makes a PLAMLIB
15911 ## CC just makes a GrossModule.
15912 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15913 reload_cmds_F77='$CC -r -o $output$reload_objs'
15914 hardcode_direct_F77=no
15915 ;;
15916 motorola)
15917 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15918 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15919 ;;
15920 esac
15921 runpath_var='LD_RUN_PATH'
15922 hardcode_shlibpath_var_F77=no
15923 ;;
15924
15925 sysv4.3*)
15926 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15927 hardcode_shlibpath_var_F77=no
15928 export_dynamic_flag_spec_F77='-Bexport'
15929 ;;
15930
15931 sysv4*MP*)
15932 if test -d /usr/nec; then
15933 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934 hardcode_shlibpath_var_F77=no
15935 runpath_var=LD_RUN_PATH
15936 hardcode_runpath_var=yes
15937 ld_shlibs_F77=yes
15938 fi
15939 ;;
15940
15941 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15942 no_undefined_flag_F77='${wl}-z,text'
15943 archive_cmds_need_lc_F77=no
15944 hardcode_shlibpath_var_F77=no
15945 runpath_var='LD_RUN_PATH'
15946
15947 if test "$GCC" = yes; then
15948 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15949 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15950 else
15951 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15952 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15953 fi
15954 ;;
15955
15956 sysv5* | sco3.2v5* | sco5v6*)
15957 # Note: We can NOT use -z defs as we might desire, because we do not
15958 # link with -lc, and that would cause any symbols used from libc to
15959 # always be unresolved, which means just about no library would
15960 # ever link correctly. If we're not using GNU ld we use -z text
15961 # though, which does catch some bad symbols but isn't as heavy-handed
15962 # as -z defs.
15963 no_undefined_flag_F77='${wl}-z,text'
15964 allow_undefined_flag_F77='${wl}-z,nodefs'
15965 archive_cmds_need_lc_F77=no
15966 hardcode_shlibpath_var_F77=no
15967 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15968 hardcode_libdir_separator_F77=':'
15969 link_all_deplibs_F77=yes
15970 export_dynamic_flag_spec_F77='${wl}-Bexport'
15971 runpath_var='LD_RUN_PATH'
15972
15973 if test "$GCC" = yes; then
15974 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15975 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15976 else
15977 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15978 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15979 fi
15980 ;;
15981
15982 uts4*)
15983 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15984 hardcode_libdir_flag_spec_F77='-L$libdir'
15985 hardcode_shlibpath_var_F77=no
15986 ;;
15987
15988 *)
15989 ld_shlibs_F77=no
15990 ;;
15991 esac
15992 fi
15993
15994 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15995 echo "${ECHO_T}$ld_shlibs_F77" >&6
15996 test "$ld_shlibs_F77" = no && can_build_shared=no
15997
15998 #
15999 # Do we need to explicitly link libc?
16000 #
16001 case "x$archive_cmds_need_lc_F77" in
16002 x|xyes)
16003 # Assume -lc should be added
16004 archive_cmds_need_lc_F77=yes
16005
16006 if test "$enable_shared" = yes && test "$GCC" = yes; then
16007 case $archive_cmds_F77 in
16008 *'~'*)
16009 # FIXME: we may have to deal with multi-command sequences.
16010 ;;
16011 '$CC '*)
16012 # Test whether the compiler implicitly links with -lc since on some
16013 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16014 # to ld, don't add -lc before -lgcc.
16015 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16016 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16017 $rm conftest*
16018 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16019
16020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16021 (eval $ac_compile) 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } 2>conftest.err; then
16025 soname=conftest
16026 lib=conftest
16027 libobjs=conftest.$ac_objext
16028 deplibs=
16029 wl=$lt_prog_compiler_wl_F77
16030 pic_flag=$lt_prog_compiler_pic_F77
16031 compiler_flags=-v
16032 linker_flags=-v
16033 verstring=
16034 output_objdir=.
16035 libname=conftest
16036 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16037 allow_undefined_flag_F77=
16038 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16039 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16040 ac_status=$?
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }
16043 then
16044 archive_cmds_need_lc_F77=no
16045 else
16046 archive_cmds_need_lc_F77=yes
16047 fi
16048 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16049 else
16050 cat conftest.err 1>&5
16051 fi
16052 $rm conftest*
16053 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16054 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16055 ;;
16056 esac
16057 fi
16058 ;;
16059 esac
16060
16061 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16062 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16063 library_names_spec=
16064 libname_spec='lib$name'
16065 soname_spec=
16066 shrext_cmds=".so"
16067 postinstall_cmds=
16068 postuninstall_cmds=
16069 finish_cmds=
16070 finish_eval=
16071 shlibpath_var=
16072 shlibpath_overrides_runpath=unknown
16073 version_type=none
16074 dynamic_linker="$host_os ld.so"
16075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16076 if test "$GCC" = yes; then
16077 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16078 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16079 # if the path contains ";" then we assume it to be the separator
16080 # otherwise default to the standard path separator (i.e. ":") - it is
16081 # assumed that no part of a normal pathname contains ";" but that should
16082 # okay in the real world where ";" in dirpaths is itself problematic.
16083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16084 else
16085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16086 fi
16087 else
16088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16089 fi
16090 need_lib_prefix=unknown
16091 hardcode_into_libs=no
16092
16093 # when you set need_version to no, make sure it does not cause -set_version
16094 # flags to be left without arguments
16095 need_version=unknown
16096
16097 case $host_os in
16098 aix3*)
16099 version_type=linux
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16101 shlibpath_var=LIBPATH
16102
16103 # AIX 3 has no versioning support, so we append a major version to the name.
16104 soname_spec='${libname}${release}${shared_ext}$major'
16105 ;;
16106
16107 aix4* | aix5*)
16108 version_type=linux
16109 need_lib_prefix=no
16110 need_version=no
16111 hardcode_into_libs=yes
16112 if test "$host_cpu" = ia64; then
16113 # AIX 5 supports IA64
16114 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 else
16117 # With GCC up to 2.95.x, collect2 would create an import file
16118 # for dependence libraries. The import file would start with
16119 # the line `#! .'. This would cause the generated library to
16120 # depend on `.', always an invalid library. This was fixed in
16121 # development snapshots of GCC prior to 3.0.
16122 case $host_os in
16123 aix4 | aix4.[01] | aix4.[01].*)
16124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16125 echo ' yes '
16126 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16127 :
16128 else
16129 can_build_shared=no
16130 fi
16131 ;;
16132 esac
16133 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16134 # soname into executable. Probably we can add versioning support to
16135 # collect2, so additional links can be useful in future.
16136 if test "$aix_use_runtimelinking" = yes; then
16137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16138 # instead of lib<name>.a to let people know that these are not
16139 # typical AIX shared libraries.
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 else
16142 # We preserve .a as extension for shared libraries through AIX4.2
16143 # and later when we are not doing run time linking.
16144 library_names_spec='${libname}${release}.a $libname.a'
16145 soname_spec='${libname}${release}${shared_ext}$major'
16146 fi
16147 shlibpath_var=LIBPATH
16148 fi
16149 ;;
16150
16151 amigaos*)
16152 library_names_spec='$libname.ixlibrary $libname.a'
16153 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16154 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16155 ;;
16156
16157 beos*)
16158 library_names_spec='${libname}${shared_ext}'
16159 dynamic_linker="$host_os ld.so"
16160 shlibpath_var=LIBRARY_PATH
16161 ;;
16162
16163 bsdi[45]*)
16164 version_type=linux
16165 need_version=no
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16167 soname_spec='${libname}${release}${shared_ext}$major'
16168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16169 shlibpath_var=LD_LIBRARY_PATH
16170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16172 # the default ld.so.conf also contains /usr/contrib/lib and
16173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16174 # libtool to hard-code these into programs
16175 ;;
16176
16177 cygwin* | mingw* | pw32*)
16178 version_type=windows
16179 shrext_cmds=".dll"
16180 need_version=no
16181 need_lib_prefix=no
16182
16183 case $GCC,$host_os in
16184 yes,cygwin* | yes,mingw* | yes,pw32*)
16185 library_names_spec='$libname.dll.a'
16186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16187 postinstall_cmds='base_file=`basename \${file}`~
16188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16189 dldir=$destdir/`dirname \$dlpath`~
16190 test -d \$dldir || mkdir -p \$dldir~
16191 $install_prog $dir/$dlname \$dldir/$dlname~
16192 chmod a+x \$dldir/$dlname'
16193 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16194 dlpath=$dir/\$dldll~
16195 $rm \$dlpath'
16196 shlibpath_overrides_runpath=yes
16197
16198 case $host_os in
16199 cygwin*)
16200 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16201 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16202 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16203 ;;
16204 mingw*)
16205 # MinGW DLLs use traditional 'lib' prefix
16206 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16207 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16208 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16209 # It is most probably a Windows format PATH printed by
16210 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16211 # path with ; separators, and with drive letters. We can handle the
16212 # drive letters (cygwin fileutils understands them), so leave them,
16213 # especially as we might pass files found there to a mingw objdump,
16214 # which wouldn't understand a cygwinified path. Ahh.
16215 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16216 else
16217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16218 fi
16219 ;;
16220 pw32*)
16221 # pw32 DLLs use 'pw' prefix rather than 'lib'
16222 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16223 ;;
16224 esac
16225 ;;
16226
16227 *)
16228 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16229 ;;
16230 esac
16231 dynamic_linker='Win32 ld.exe'
16232 # FIXME: first we should search . and the directory the executable is in
16233 shlibpath_var=PATH
16234 ;;
16235
16236 darwin* | rhapsody*)
16237 dynamic_linker="$host_os dyld"
16238 version_type=darwin
16239 need_lib_prefix=no
16240 need_version=no
16241 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16242 soname_spec='${libname}${release}${major}$shared_ext'
16243 shlibpath_overrides_runpath=yes
16244 shlibpath_var=DYLD_LIBRARY_PATH
16245 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16246 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16247 if test "$GCC" = yes; then
16248 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16249 else
16250 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16251 fi
16252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16253 ;;
16254
16255 dgux*)
16256 version_type=linux
16257 need_lib_prefix=no
16258 need_version=no
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16260 soname_spec='${libname}${release}${shared_ext}$major'
16261 shlibpath_var=LD_LIBRARY_PATH
16262 ;;
16263
16264 freebsd1*)
16265 dynamic_linker=no
16266 ;;
16267
16268 kfreebsd*-gnu)
16269 version_type=linux
16270 need_lib_prefix=no
16271 need_version=no
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16273 soname_spec='${libname}${release}${shared_ext}$major'
16274 shlibpath_var=LD_LIBRARY_PATH
16275 shlibpath_overrides_runpath=no
16276 hardcode_into_libs=yes
16277 dynamic_linker='GNU ld.so'
16278 ;;
16279
16280 freebsd* | dragonfly*)
16281 # DragonFly does not have aout. When/if they implement a new
16282 # versioning mechanism, adjust this.
16283 if test -x /usr/bin/objformat; then
16284 objformat=`/usr/bin/objformat`
16285 else
16286 case $host_os in
16287 freebsd[123]*) objformat=aout ;;
16288 *) objformat=elf ;;
16289 esac
16290 fi
16291 version_type=freebsd-$objformat
16292 case $version_type in
16293 freebsd-elf*)
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16295 need_version=no
16296 need_lib_prefix=no
16297 ;;
16298 freebsd-*)
16299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16300 need_version=yes
16301 ;;
16302 esac
16303 shlibpath_var=LD_LIBRARY_PATH
16304 case $host_os in
16305 freebsd2*)
16306 shlibpath_overrides_runpath=yes
16307 ;;
16308 freebsd3.[01]* | freebsdelf3.[01]*)
16309 shlibpath_overrides_runpath=yes
16310 hardcode_into_libs=yes
16311 ;;
16312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16314 shlibpath_overrides_runpath=no
16315 hardcode_into_libs=yes
16316 ;;
16317 freebsd*) # from 4.6 on
16318 shlibpath_overrides_runpath=yes
16319 hardcode_into_libs=yes
16320 ;;
16321 esac
16322 ;;
16323
16324 gnu*)
16325 version_type=linux
16326 need_lib_prefix=no
16327 need_version=no
16328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16329 soname_spec='${libname}${release}${shared_ext}$major'
16330 shlibpath_var=LD_LIBRARY_PATH
16331 hardcode_into_libs=yes
16332 ;;
16333
16334 hpux9* | hpux10* | hpux11*)
16335 # Give a soname corresponding to the major version so that dld.sl refuses to
16336 # link against other versions.
16337 version_type=sunos
16338 need_lib_prefix=no
16339 need_version=no
16340 case $host_cpu in
16341 ia64*)
16342 shrext_cmds='.so'
16343 hardcode_into_libs=yes
16344 dynamic_linker="$host_os dld.so"
16345 shlibpath_var=LD_LIBRARY_PATH
16346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348 soname_spec='${libname}${release}${shared_ext}$major'
16349 if test "X$HPUX_IA64_MODE" = X32; then
16350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16351 else
16352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16353 fi
16354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16355 ;;
16356 hppa*64*)
16357 shrext_cmds='.sl'
16358 hardcode_into_libs=yes
16359 dynamic_linker="$host_os dld.sl"
16360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16363 soname_spec='${libname}${release}${shared_ext}$major'
16364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16366 ;;
16367 *)
16368 shrext_cmds='.sl'
16369 dynamic_linker="$host_os dld.sl"
16370 shlibpath_var=SHLIB_PATH
16371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 ;;
16375 esac
16376 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16377 postinstall_cmds='chmod 555 $lib'
16378 ;;
16379
16380 interix3*)
16381 version_type=linux
16382 need_lib_prefix=no
16383 need_version=no
16384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16385 soname_spec='${libname}${release}${shared_ext}$major'
16386 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16387 shlibpath_var=LD_LIBRARY_PATH
16388 shlibpath_overrides_runpath=no
16389 hardcode_into_libs=yes
16390 ;;
16391
16392 irix5* | irix6* | nonstopux*)
16393 case $host_os in
16394 nonstopux*) version_type=nonstopux ;;
16395 *)
16396 if test "$lt_cv_prog_gnu_ld" = yes; then
16397 version_type=linux
16398 else
16399 version_type=irix
16400 fi ;;
16401 esac
16402 need_lib_prefix=no
16403 need_version=no
16404 soname_spec='${libname}${release}${shared_ext}$major'
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16406 case $host_os in
16407 irix5* | nonstopux*)
16408 libsuff= shlibsuff=
16409 ;;
16410 *)
16411 case $LD in # libtool.m4 will add one of these switches to LD
16412 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16413 libsuff= shlibsuff= libmagic=32-bit;;
16414 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16415 libsuff=32 shlibsuff=N32 libmagic=N32;;
16416 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16417 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16418 *) libsuff= shlibsuff= libmagic=never-match;;
16419 esac
16420 ;;
16421 esac
16422 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16423 shlibpath_overrides_runpath=no
16424 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16425 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16426 hardcode_into_libs=yes
16427 ;;
16428
16429 # No shared lib support for Linux oldld, aout, or coff.
16430 linux*oldld* | linux*aout* | linux*coff*)
16431 dynamic_linker=no
16432 ;;
16433
16434 # This must be Linux ELF.
16435 linux*)
16436 version_type=linux
16437 need_lib_prefix=no
16438 need_version=no
16439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16440 soname_spec='${libname}${release}${shared_ext}$major'
16441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16442 shlibpath_var=LD_LIBRARY_PATH
16443 shlibpath_overrides_runpath=no
16444 # This implies no fast_install, which is unacceptable.
16445 # Some rework will be needed to allow for fast_install
16446 # before this can be enabled.
16447 hardcode_into_libs=yes
16448
16449 # Append ld.so.conf contents to the search path
16450 if test -f /etc/ld.so.conf; then
16451 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16452 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16453 fi
16454
16455 # We used to test for /lib/ld.so.1 and disable shared libraries on
16456 # powerpc, because MkLinux only supported shared libraries with the
16457 # GNU dynamic linker. Since this was broken with cross compilers,
16458 # most powerpc-linux boxes support dynamic linking these days and
16459 # people can always --disable-shared, the test was removed, and we
16460 # assume the GNU/Linux dynamic linker is in use.
16461 dynamic_linker='GNU/Linux ld.so'
16462 ;;
16463
16464 knetbsd*-gnu)
16465 version_type=linux
16466 need_lib_prefix=no
16467 need_version=no
16468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16469 soname_spec='${libname}${release}${shared_ext}$major'
16470 shlibpath_var=LD_LIBRARY_PATH
16471 shlibpath_overrides_runpath=no
16472 hardcode_into_libs=yes
16473 dynamic_linker='GNU ld.so'
16474 ;;
16475
16476 netbsd*)
16477 version_type=sunos
16478 need_lib_prefix=no
16479 need_version=no
16480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16483 dynamic_linker='NetBSD (a.out) ld.so'
16484 else
16485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16486 soname_spec='${libname}${release}${shared_ext}$major'
16487 dynamic_linker='NetBSD ld.elf_so'
16488 fi
16489 shlibpath_var=LD_LIBRARY_PATH
16490 shlibpath_overrides_runpath=yes
16491 hardcode_into_libs=yes
16492 ;;
16493
16494 newsos6)
16495 version_type=linux
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16497 shlibpath_var=LD_LIBRARY_PATH
16498 shlibpath_overrides_runpath=yes
16499 ;;
16500
16501 nto-qnx*)
16502 version_type=linux
16503 need_lib_prefix=no
16504 need_version=no
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506 soname_spec='${libname}${release}${shared_ext}$major'
16507 shlibpath_var=LD_LIBRARY_PATH
16508 shlibpath_overrides_runpath=yes
16509 ;;
16510
16511 openbsd*)
16512 version_type=sunos
16513 sys_lib_dlsearch_path_spec="/usr/lib"
16514 need_lib_prefix=no
16515 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16516 case $host_os in
16517 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16518 *) need_version=no ;;
16519 esac
16520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16522 shlibpath_var=LD_LIBRARY_PATH
16523 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16524 case $host_os in
16525 openbsd2.[89] | openbsd2.[89].*)
16526 shlibpath_overrides_runpath=no
16527 ;;
16528 *)
16529 shlibpath_overrides_runpath=yes
16530 ;;
16531 esac
16532 else
16533 shlibpath_overrides_runpath=yes
16534 fi
16535 ;;
16536
16537 os2*)
16538 libname_spec='$name'
16539 shrext_cmds=".dll"
16540 need_lib_prefix=no
16541 library_names_spec='$libname${shared_ext} $libname.a'
16542 dynamic_linker='OS/2 ld.exe'
16543 shlibpath_var=LIBPATH
16544 ;;
16545
16546 osf3* | osf4* | osf5*)
16547 version_type=osf
16548 need_lib_prefix=no
16549 need_version=no
16550 soname_spec='${libname}${release}${shared_ext}$major'
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552 shlibpath_var=LD_LIBRARY_PATH
16553 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16554 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16555 ;;
16556
16557 solaris*)
16558 version_type=linux
16559 need_lib_prefix=no
16560 need_version=no
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16563 shlibpath_var=LD_LIBRARY_PATH
16564 shlibpath_overrides_runpath=yes
16565 hardcode_into_libs=yes
16566 # ldd complains unless libraries are executable
16567 postinstall_cmds='chmod +x $lib'
16568 ;;
16569
16570 sunos4*)
16571 version_type=sunos
16572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16573 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16574 shlibpath_var=LD_LIBRARY_PATH
16575 shlibpath_overrides_runpath=yes
16576 if test "$with_gnu_ld" = yes; then
16577 need_lib_prefix=no
16578 fi
16579 need_version=yes
16580 ;;
16581
16582 sysv4 | sysv4.3*)
16583 version_type=linux
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16585 soname_spec='${libname}${release}${shared_ext}$major'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 case $host_vendor in
16588 sni)
16589 shlibpath_overrides_runpath=no
16590 need_lib_prefix=no
16591 export_dynamic_flag_spec='${wl}-Blargedynsym'
16592 runpath_var=LD_RUN_PATH
16593 ;;
16594 siemens)
16595 need_lib_prefix=no
16596 ;;
16597 motorola)
16598 need_lib_prefix=no
16599 need_version=no
16600 shlibpath_overrides_runpath=no
16601 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16602 ;;
16603 esac
16604 ;;
16605
16606 sysv4*MP*)
16607 if test -d /usr/nec ;then
16608 version_type=linux
16609 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16610 soname_spec='$libname${shared_ext}.$major'
16611 shlibpath_var=LD_LIBRARY_PATH
16612 fi
16613 ;;
16614
16615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16616 version_type=freebsd-elf
16617 need_lib_prefix=no
16618 need_version=no
16619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 shlibpath_var=LD_LIBRARY_PATH
16622 hardcode_into_libs=yes
16623 if test "$with_gnu_ld" = yes; then
16624 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16625 shlibpath_overrides_runpath=no
16626 else
16627 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16628 shlibpath_overrides_runpath=yes
16629 case $host_os in
16630 sco3.2v5*)
16631 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16632 ;;
16633 esac
16634 fi
16635 sys_lib_dlsearch_path_spec='/usr/lib'
16636 ;;
16637
16638 uts4*)
16639 version_type=linux
16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16641 soname_spec='${libname}${release}${shared_ext}$major'
16642 shlibpath_var=LD_LIBRARY_PATH
16643 ;;
16644
16645 *)
16646 dynamic_linker=no
16647 ;;
16648 esac
16649 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16650 echo "${ECHO_T}$dynamic_linker" >&6
16651 test "$dynamic_linker" = no && can_build_shared=no
16652
16653 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16654 if test "$GCC" = yes; then
16655 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16656 fi
16657
16658 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16659 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16660 hardcode_action_F77=
16661 if test -n "$hardcode_libdir_flag_spec_F77" || \
16662 test -n "$runpath_var_F77" || \
16663 test "X$hardcode_automatic_F77" = "Xyes" ; then
16664
16665 # We can hardcode non-existant directories.
16666 if test "$hardcode_direct_F77" != no &&
16667 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16668 # have to relink, otherwise we might link with an installed library
16669 # when we should be linking with a yet-to-be-installed one
16670 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16671 test "$hardcode_minus_L_F77" != no; then
16672 # Linking always hardcodes the temporary library directory.
16673 hardcode_action_F77=relink
16674 else
16675 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16676 hardcode_action_F77=immediate
16677 fi
16678 else
16679 # We cannot hardcode anything, or else we can only hardcode existing
16680 # directories.
16681 hardcode_action_F77=unsupported
16682 fi
16683 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16684 echo "${ECHO_T}$hardcode_action_F77" >&6
16685
16686 if test "$hardcode_action_F77" = relink; then
16687 # Fast installation is not supported
16688 enable_fast_install=no
16689 elif test "$shlibpath_overrides_runpath" = yes ||
16690 test "$enable_shared" = no; then
16691 # Fast installation is not necessary
16692 enable_fast_install=needless
16693 fi
16694
16695
16696 # The else clause should only fire when bootstrapping the
16697 # libtool distribution, otherwise you forgot to ship ltmain.sh
16698 # with your package, and you will get complaints that there are
16699 # no rules to generate ltmain.sh.
16700 if test -f "$ltmain"; then
16701 # See if we are running on zsh, and set the options which allow our commands through
16702 # without removal of \ escapes.
16703 if test -n "${ZSH_VERSION+set}" ; then
16704 setopt NO_GLOB_SUBST
16705 fi
16706 # Now quote all the things that may contain metacharacters while being
16707 # careful not to overquote the AC_SUBSTed values. We take copies of the
16708 # variables and quote the copies for generation of the libtool script.
16709 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16710 SED SHELL STRIP \
16711 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16712 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16713 deplibs_check_method reload_flag reload_cmds need_locks \
16714 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16715 lt_cv_sys_global_symbol_to_c_name_address \
16716 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16717 old_postinstall_cmds old_postuninstall_cmds \
16718 compiler_F77 \
16719 CC_F77 \
16720 LD_F77 \
16721 lt_prog_compiler_wl_F77 \
16722 lt_prog_compiler_pic_F77 \
16723 lt_prog_compiler_static_F77 \
16724 lt_prog_compiler_no_builtin_flag_F77 \
16725 export_dynamic_flag_spec_F77 \
16726 thread_safe_flag_spec_F77 \
16727 whole_archive_flag_spec_F77 \
16728 enable_shared_with_static_runtimes_F77 \
16729 old_archive_cmds_F77 \
16730 old_archive_from_new_cmds_F77 \
16731 predep_objects_F77 \
16732 postdep_objects_F77 \
16733 predeps_F77 \
16734 postdeps_F77 \
16735 compiler_lib_search_path_F77 \
16736 archive_cmds_F77 \
16737 archive_expsym_cmds_F77 \
16738 postinstall_cmds_F77 \
16739 postuninstall_cmds_F77 \
16740 old_archive_from_expsyms_cmds_F77 \
16741 allow_undefined_flag_F77 \
16742 no_undefined_flag_F77 \
16743 export_symbols_cmds_F77 \
16744 hardcode_libdir_flag_spec_F77 \
16745 hardcode_libdir_flag_spec_ld_F77 \
16746 hardcode_libdir_separator_F77 \
16747 hardcode_automatic_F77 \
16748 module_cmds_F77 \
16749 module_expsym_cmds_F77 \
16750 lt_cv_prog_compiler_c_o_F77 \
16751 exclude_expsyms_F77 \
16752 include_expsyms_F77; do
16753
16754 case $var in
16755 old_archive_cmds_F77 | \
16756 old_archive_from_new_cmds_F77 | \
16757 archive_cmds_F77 | \
16758 archive_expsym_cmds_F77 | \
16759 module_cmds_F77 | \
16760 module_expsym_cmds_F77 | \
16761 old_archive_from_expsyms_cmds_F77 | \
16762 export_symbols_cmds_F77 | \
16763 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16764 postinstall_cmds | postuninstall_cmds | \
16765 old_postinstall_cmds | old_postuninstall_cmds | \
16766 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16767 # Double-quote double-evaled strings.
16768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16769 ;;
16770 *)
16771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16772 ;;
16773 esac
16774 done
16775
16776 case $lt_echo in
16777 *'\$0 --fallback-echo"')
16778 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16779 ;;
16780 esac
16781
16782 cfgfile="$ofile"
16783
16784 cat <<__EOF__ >> "$cfgfile"
16785 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16786
16787 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16788
16789 # Shell to use when invoking shell scripts.
16790 SHELL=$lt_SHELL
16791
16792 # Whether or not to build shared libraries.
16793 build_libtool_libs=$enable_shared
16794
16795 # Whether or not to build static libraries.
16796 build_old_libs=$enable_static
16797
16798 # Whether or not to add -lc for building shared libraries.
16799 build_libtool_need_lc=$archive_cmds_need_lc_F77
16800
16801 # Whether or not to disallow shared libs when runtime libs are static
16802 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16803
16804 # Whether or not to optimize for fast installation.
16805 fast_install=$enable_fast_install
16806
16807 # The host system.
16808 host_alias=$host_alias
16809 host=$host
16810 host_os=$host_os
16811
16812 # The build system.
16813 build_alias=$build_alias
16814 build=$build
16815 build_os=$build_os
16816
16817 # An echo program that does not interpret backslashes.
16818 echo=$lt_echo
16819
16820 # The archiver.
16821 AR=$lt_AR
16822 AR_FLAGS=$lt_AR_FLAGS
16823
16824 # A C compiler.
16825 LTCC=$lt_LTCC
16826
16827 # LTCC compiler flags.
16828 LTCFLAGS=$lt_LTCFLAGS
16829
16830 # A language-specific compiler.
16831 CC=$lt_compiler_F77
16832
16833 # Is the compiler the GNU C compiler?
16834 with_gcc=$GCC_F77
16835
16836 # An ERE matcher.
16837 EGREP=$lt_EGREP
16838
16839 # The linker used to build libraries.
16840 LD=$lt_LD_F77
16841
16842 # Whether we need hard or soft links.
16843 LN_S=$lt_LN_S
16844
16845 # A BSD-compatible nm program.
16846 NM=$lt_NM
16847
16848 # A symbol stripping program
16849 STRIP=$lt_STRIP
16850
16851 # Used to examine libraries when file_magic_cmd begins "file"
16852 MAGIC_CMD=$MAGIC_CMD
16853
16854 # Used on cygwin: DLL creation program.
16855 DLLTOOL="$DLLTOOL"
16856
16857 # Used on cygwin: object dumper.
16858 OBJDUMP="$OBJDUMP"
16859
16860 # Used on cygwin: assembler.
16861 AS="$AS"
16862
16863 # The name of the directory that contains temporary libtool files.
16864 objdir=$objdir
16865
16866 # How to create reloadable object files.
16867 reload_flag=$lt_reload_flag
16868 reload_cmds=$lt_reload_cmds
16869
16870 # How to pass a linker flag through the compiler.
16871 wl=$lt_lt_prog_compiler_wl_F77
16872
16873 # Object file suffix (normally "o").
16874 objext="$ac_objext"
16875
16876 # Old archive suffix (normally "a").
16877 libext="$libext"
16878
16879 # Shared library suffix (normally ".so").
16880 shrext_cmds='$shrext_cmds'
16881
16882 # Executable file suffix (normally "").
16883 exeext="$exeext"
16884
16885 # Additional compiler flags for building library objects.
16886 pic_flag=$lt_lt_prog_compiler_pic_F77
16887 pic_mode=$pic_mode
16888
16889 # What is the maximum length of a command?
16890 max_cmd_len=$lt_cv_sys_max_cmd_len
16891
16892 # Does compiler simultaneously support -c and -o options?
16893 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16894
16895 # Must we lock files when doing compilation?
16896 need_locks=$lt_need_locks
16897
16898 # Do we need the lib prefix for modules?
16899 need_lib_prefix=$need_lib_prefix
16900
16901 # Do we need a version for libraries?
16902 need_version=$need_version
16903
16904 # Whether dlopen is supported.
16905 dlopen_support=$enable_dlopen
16906
16907 # Whether dlopen of programs is supported.
16908 dlopen_self=$enable_dlopen_self
16909
16910 # Whether dlopen of statically linked programs is supported.
16911 dlopen_self_static=$enable_dlopen_self_static
16912
16913 # Compiler flag to prevent dynamic linking.
16914 link_static_flag=$lt_lt_prog_compiler_static_F77
16915
16916 # Compiler flag to turn off builtin functions.
16917 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16918
16919 # Compiler flag to allow reflexive dlopens.
16920 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16921
16922 # Compiler flag to generate shared objects directly from archives.
16923 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16924
16925 # Compiler flag to generate thread-safe objects.
16926 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16927
16928 # Library versioning type.
16929 version_type=$version_type
16930
16931 # Format of library name prefix.
16932 libname_spec=$lt_libname_spec
16933
16934 # List of archive names. First name is the real one, the rest are links.
16935 # The last name is the one that the linker finds with -lNAME.
16936 library_names_spec=$lt_library_names_spec
16937
16938 # The coded name of the library, if different from the real name.
16939 soname_spec=$lt_soname_spec
16940
16941 # Commands used to build and install an old-style archive.
16942 RANLIB=$lt_RANLIB
16943 old_archive_cmds=$lt_old_archive_cmds_F77
16944 old_postinstall_cmds=$lt_old_postinstall_cmds
16945 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16946
16947 # Create an old-style archive from a shared archive.
16948 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16949
16950 # Create a temporary old-style archive to link instead of a shared archive.
16951 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16952
16953 # Commands used to build and install a shared archive.
16954 archive_cmds=$lt_archive_cmds_F77
16955 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16956 postinstall_cmds=$lt_postinstall_cmds
16957 postuninstall_cmds=$lt_postuninstall_cmds
16958
16959 # Commands used to build a loadable module (assumed same as above if empty)
16960 module_cmds=$lt_module_cmds_F77
16961 module_expsym_cmds=$lt_module_expsym_cmds_F77
16962
16963 # Commands to strip libraries.
16964 old_striplib=$lt_old_striplib
16965 striplib=$lt_striplib
16966
16967 # Dependencies to place before the objects being linked to create a
16968 # shared library.
16969 predep_objects=$lt_predep_objects_F77
16970
16971 # Dependencies to place after the objects being linked to create a
16972 # shared library.
16973 postdep_objects=$lt_postdep_objects_F77
16974
16975 # Dependencies to place before the objects being linked to create a
16976 # shared library.
16977 predeps=$lt_predeps_F77
16978
16979 # Dependencies to place after the objects being linked to create a
16980 # shared library.
16981 postdeps=$lt_postdeps_F77
16982
16983 # The library search path used internally by the compiler when linking
16984 # a shared library.
16985 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16986
16987 # Method to check whether dependent libraries are shared objects.
16988 deplibs_check_method=$lt_deplibs_check_method
16989
16990 # Command to use when deplibs_check_method == file_magic.
16991 file_magic_cmd=$lt_file_magic_cmd
16992
16993 # Flag that allows shared libraries with undefined symbols to be built.
16994 allow_undefined_flag=$lt_allow_undefined_flag_F77
16995
16996 # Flag that forces no undefined symbols.
16997 no_undefined_flag=$lt_no_undefined_flag_F77
16998
16999 # Commands used to finish a libtool library installation in a directory.
17000 finish_cmds=$lt_finish_cmds
17001
17002 # Same as above, but a single script fragment to be evaled but not shown.
17003 finish_eval=$lt_finish_eval
17004
17005 # Take the output of nm and produce a listing of raw symbols and C names.
17006 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17007
17008 # Transform the output of nm in a proper C declaration
17009 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17010
17011 # Transform the output of nm in a C name address pair
17012 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17013
17014 # This is the shared library runtime path variable.
17015 runpath_var=$runpath_var
17016
17017 # This is the shared library path variable.
17018 shlibpath_var=$shlibpath_var
17019
17020 # Is shlibpath searched before the hard-coded library search path?
17021 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17022
17023 # How to hardcode a shared library path into an executable.
17024 hardcode_action=$hardcode_action_F77
17025
17026 # Whether we should hardcode library paths into libraries.
17027 hardcode_into_libs=$hardcode_into_libs
17028
17029 # Flag to hardcode \$libdir into a binary during linking.
17030 # This must work even if \$libdir does not exist.
17031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17032
17033 # If ld is used when linking, flag to hardcode \$libdir into
17034 # a binary during linking. This must work even if \$libdir does
17035 # not exist.
17036 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17037
17038 # Whether we need a single -rpath flag with a separated argument.
17039 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17040
17041 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17042 # resulting binary.
17043 hardcode_direct=$hardcode_direct_F77
17044
17045 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17046 # resulting binary.
17047 hardcode_minus_L=$hardcode_minus_L_F77
17048
17049 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17050 # the resulting binary.
17051 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17052
17053 # Set to yes if building a shared library automatically hardcodes DIR into the library
17054 # and all subsequent libraries and executables linked against it.
17055 hardcode_automatic=$hardcode_automatic_F77
17056
17057 # Variables whose values should be saved in libtool wrapper scripts and
17058 # restored at relink time.
17059 variables_saved_for_relink="$variables_saved_for_relink"
17060
17061 # Whether libtool must link a program against all its dependency libraries.
17062 link_all_deplibs=$link_all_deplibs_F77
17063
17064 # Compile-time system search path for libraries
17065 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17066
17067 # Run-time system search path for libraries
17068 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17069
17070 # Fix the shell variable \$srcfile for the compiler.
17071 fix_srcfile_path="$fix_srcfile_path_F77"
17072
17073 # Set to yes if exported symbols are required.
17074 always_export_symbols=$always_export_symbols_F77
17075
17076 # The commands to list exported symbols.
17077 export_symbols_cmds=$lt_export_symbols_cmds_F77
17078
17079 # The commands to extract the exported symbol list from a shared archive.
17080 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17081
17082 # Symbols that should not be listed in the preloaded symbols.
17083 exclude_expsyms=$lt_exclude_expsyms_F77
17084
17085 # Symbols that must always be exported.
17086 include_expsyms=$lt_include_expsyms_F77
17087
17088 # ### END LIBTOOL TAG CONFIG: $tagname
17089
17090 __EOF__
17091
17092
17093 else
17094 # If there is no Makefile yet, we rely on a make rule to execute
17095 # `config.status --recheck' to rerun these tests and create the
17096 # libtool script then.
17097 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17098 if test -f "$ltmain_in"; then
17099 test -f Makefile && make "$ltmain"
17100 fi
17101 fi
17102
17103
17104 ac_ext=c
17105 ac_cpp='$CPP $CPPFLAGS'
17106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17109
17110 CC="$lt_save_CC"
17111
17112 else
17113 tagname=""
17114 fi
17115 ;;
17116
17117 GCJ)
17118 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17119
17120
17121
17122 # Source file extension for Java test sources.
17123 ac_ext=java
17124
17125 # Object file extension for compiled Java test sources.
17126 objext=o
17127 objext_GCJ=$objext
17128
17129 # Code to be used in simple compile tests
17130 lt_simple_compile_test_code="class foo {}\n"
17131
17132 # Code to be used in simple link tests
17133 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17134
17135 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17136
17137 # If no C compiler was specified, use CC.
17138 LTCC=${LTCC-"$CC"}
17139
17140 # If no C compiler flags were specified, use CFLAGS.
17141 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17142
17143 # Allow CC to be a program name with arguments.
17144 compiler=$CC
17145
17146
17147 # save warnings/boilerplate of simple test code
17148 ac_outfile=conftest.$ac_objext
17149 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17150 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17151 _lt_compiler_boilerplate=`cat conftest.err`
17152 $rm conftest*
17153
17154 ac_outfile=conftest.$ac_objext
17155 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17156 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17157 _lt_linker_boilerplate=`cat conftest.err`
17158 $rm conftest*
17159
17160
17161 # Allow CC to be a program name with arguments.
17162 lt_save_CC="$CC"
17163 CC=${GCJ-"gcj"}
17164 compiler=$CC
17165 compiler_GCJ=$CC
17166 for cc_temp in $compiler""; do
17167 case $cc_temp in
17168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17170 \-*) ;;
17171 *) break;;
17172 esac
17173 done
17174 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17175
17176
17177 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17178 archive_cmds_need_lc_GCJ=no
17179
17180 old_archive_cmds_GCJ=$old_archive_cmds
17181
17182 ## CAVEAT EMPTOR:
17183 ## There is no encapsulation within the following macros, do not change
17184 ## the running order or otherwise move them around unless you know exactly
17185 ## what you are doing...
17186
17187 lt_prog_compiler_no_builtin_flag_GCJ=
17188
17189 if test "$GCC" = yes; then
17190 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17191
17192
17193 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17194 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17195 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198 lt_cv_prog_compiler_rtti_exceptions=no
17199 ac_outfile=conftest.$ac_objext
17200 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17201 lt_compiler_flag="-fno-rtti -fno-exceptions"
17202 # Insert the option either (1) after the last *FLAGS variable, or
17203 # (2) before a word containing "conftest.", or (3) at the end.
17204 # Note that $ac_compile itself does not contain backslashes and begins
17205 # with a dollar sign (not a hyphen), so the echo should work correctly.
17206 # The option is referenced via a variable to avoid confusing sed.
17207 lt_compile=`echo "$ac_compile" | $SED \
17208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17210 -e 's:$: $lt_compiler_flag:'`
17211 (eval echo "\"\$as_me:17211: $lt_compile\"" >&5)
17212 (eval "$lt_compile" 2>conftest.err)
17213 ac_status=$?
17214 cat conftest.err >&5
17215 echo "$as_me:17215: \$? = $ac_status" >&5
17216 if (exit $ac_status) && test -s "$ac_outfile"; then
17217 # The compiler can only warn and ignore the option if not recognized
17218 # So say no if there are warnings other than the usual output.
17219 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17222 lt_cv_prog_compiler_rtti_exceptions=yes
17223 fi
17224 fi
17225 $rm conftest*
17226
17227 fi
17228 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17229 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17230
17231 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17232 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17233 else
17234 :
17235 fi
17236
17237 fi
17238
17239 lt_prog_compiler_wl_GCJ=
17240 lt_prog_compiler_pic_GCJ=
17241 lt_prog_compiler_static_GCJ=
17242
17243 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17244 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17245
17246 if test "$GCC" = yes; then
17247 lt_prog_compiler_wl_GCJ='-Wl,'
17248 lt_prog_compiler_static_GCJ='-static'
17249
17250 case $host_os in
17251 aix*)
17252 # All AIX code is PIC.
17253 if test "$host_cpu" = ia64; then
17254 # AIX 5 now supports IA64 processor
17255 lt_prog_compiler_static_GCJ='-Bstatic'
17256 fi
17257 ;;
17258
17259 amigaos*)
17260 # FIXME: we need at least 68020 code to build shared libraries, but
17261 # adding the `-m68020' flag to GCC prevents building anything better,
17262 # like `-m68040'.
17263 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17264 ;;
17265
17266 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17267 # PIC is the default for these OSes.
17268 ;;
17269
17270 mingw* | pw32* | os2*)
17271 # This hack is so that the source file can tell whether it is being
17272 # built for inclusion in a dll (and should export symbols for example).
17273 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17274 ;;
17275
17276 darwin* | rhapsody*)
17277 # PIC is the default on this platform
17278 # Common symbols not allowed in MH_DYLIB files
17279 lt_prog_compiler_pic_GCJ='-fno-common'
17280 ;;
17281
17282 interix3*)
17283 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17284 # Instead, we relocate shared libraries at runtime.
17285 ;;
17286
17287 msdosdjgpp*)
17288 # Just because we use GCC doesn't mean we suddenly get shared libraries
17289 # on systems that don't support them.
17290 lt_prog_compiler_can_build_shared_GCJ=no
17291 enable_shared=no
17292 ;;
17293
17294 sysv4*MP*)
17295 if test -d /usr/nec; then
17296 lt_prog_compiler_pic_GCJ=-Kconform_pic
17297 fi
17298 ;;
17299
17300 hpux*)
17301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17302 # not for PA HP-UX.
17303 case $host_cpu in
17304 hppa*64*|ia64*)
17305 # +Z the default
17306 ;;
17307 *)
17308 lt_prog_compiler_pic_GCJ='-fPIC'
17309 ;;
17310 esac
17311 ;;
17312
17313 *)
17314 lt_prog_compiler_pic_GCJ='-fPIC'
17315 ;;
17316 esac
17317 else
17318 # PORTME Check for flag to pass linker flags through the system compiler.
17319 case $host_os in
17320 aix*)
17321 lt_prog_compiler_wl_GCJ='-Wl,'
17322 if test "$host_cpu" = ia64; then
17323 # AIX 5 now supports IA64 processor
17324 lt_prog_compiler_static_GCJ='-Bstatic'
17325 else
17326 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17327 fi
17328 ;;
17329 darwin*)
17330 # PIC is the default on this platform
17331 # Common symbols not allowed in MH_DYLIB files
17332 case $cc_basename in
17333 xlc*)
17334 lt_prog_compiler_pic_GCJ='-qnocommon'
17335 lt_prog_compiler_wl_GCJ='-Wl,'
17336 ;;
17337 esac
17338 ;;
17339
17340 mingw* | pw32* | os2*)
17341 # This hack is so that the source file can tell whether it is being
17342 # built for inclusion in a dll (and should export symbols for example).
17343 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17344 ;;
17345
17346 hpux9* | hpux10* | hpux11*)
17347 lt_prog_compiler_wl_GCJ='-Wl,'
17348 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17349 # not for PA HP-UX.
17350 case $host_cpu in
17351 hppa*64*|ia64*)
17352 # +Z the default
17353 ;;
17354 *)
17355 lt_prog_compiler_pic_GCJ='+Z'
17356 ;;
17357 esac
17358 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17359 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17360 ;;
17361
17362 irix5* | irix6* | nonstopux*)
17363 lt_prog_compiler_wl_GCJ='-Wl,'
17364 # PIC (with -KPIC) is the default.
17365 lt_prog_compiler_static_GCJ='-non_shared'
17366 ;;
17367
17368 newsos6)
17369 lt_prog_compiler_pic_GCJ='-KPIC'
17370 lt_prog_compiler_static_GCJ='-Bstatic'
17371 ;;
17372
17373 linux*)
17374 case $cc_basename in
17375 icc* | ecc*)
17376 lt_prog_compiler_wl_GCJ='-Wl,'
17377 lt_prog_compiler_pic_GCJ='-KPIC'
17378 lt_prog_compiler_static_GCJ='-static'
17379 ;;
17380 pgcc* | pgf77* | pgf90* | pgf95*)
17381 # Portland Group compilers (*not* the Pentium gcc compiler,
17382 # which looks to be a dead project)
17383 lt_prog_compiler_wl_GCJ='-Wl,'
17384 lt_prog_compiler_pic_GCJ='-fpic'
17385 lt_prog_compiler_static_GCJ='-Bstatic'
17386 ;;
17387 ccc*)
17388 lt_prog_compiler_wl_GCJ='-Wl,'
17389 # All Alpha code is PIC.
17390 lt_prog_compiler_static_GCJ='-non_shared'
17391 ;;
17392 esac
17393 ;;
17394
17395 osf3* | osf4* | osf5*)
17396 lt_prog_compiler_wl_GCJ='-Wl,'
17397 # All OSF/1 code is PIC.
17398 lt_prog_compiler_static_GCJ='-non_shared'
17399 ;;
17400
17401 solaris*)
17402 lt_prog_compiler_pic_GCJ='-KPIC'
17403 lt_prog_compiler_static_GCJ='-Bstatic'
17404 case $cc_basename in
17405 f77* | f90* | f95*)
17406 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17407 *)
17408 lt_prog_compiler_wl_GCJ='-Wl,';;
17409 esac
17410 ;;
17411
17412 sunos4*)
17413 lt_prog_compiler_wl_GCJ='-Qoption ld '
17414 lt_prog_compiler_pic_GCJ='-PIC'
17415 lt_prog_compiler_static_GCJ='-Bstatic'
17416 ;;
17417
17418 sysv4 | sysv4.2uw2* | sysv4.3*)
17419 lt_prog_compiler_wl_GCJ='-Wl,'
17420 lt_prog_compiler_pic_GCJ='-KPIC'
17421 lt_prog_compiler_static_GCJ='-Bstatic'
17422 ;;
17423
17424 sysv4*MP*)
17425 if test -d /usr/nec ;then
17426 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17427 lt_prog_compiler_static_GCJ='-Bstatic'
17428 fi
17429 ;;
17430
17431 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17432 lt_prog_compiler_wl_GCJ='-Wl,'
17433 lt_prog_compiler_pic_GCJ='-KPIC'
17434 lt_prog_compiler_static_GCJ='-Bstatic'
17435 ;;
17436
17437 unicos*)
17438 lt_prog_compiler_wl_GCJ='-Wl,'
17439 lt_prog_compiler_can_build_shared_GCJ=no
17440 ;;
17441
17442 uts4*)
17443 lt_prog_compiler_pic_GCJ='-pic'
17444 lt_prog_compiler_static_GCJ='-Bstatic'
17445 ;;
17446
17447 *)
17448 lt_prog_compiler_can_build_shared_GCJ=no
17449 ;;
17450 esac
17451 fi
17452
17453 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17454 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17455
17456 #
17457 # Check to make sure the PIC flag actually works.
17458 #
17459 if test -n "$lt_prog_compiler_pic_GCJ"; then
17460
17461 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17462 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17463 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17465 else
17466 lt_prog_compiler_pic_works_GCJ=no
17467 ac_outfile=conftest.$ac_objext
17468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17469 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17470 # Insert the option either (1) after the last *FLAGS variable, or
17471 # (2) before a word containing "conftest.", or (3) at the end.
17472 # Note that $ac_compile itself does not contain backslashes and begins
17473 # with a dollar sign (not a hyphen), so the echo should work correctly.
17474 # The option is referenced via a variable to avoid confusing sed.
17475 lt_compile=`echo "$ac_compile" | $SED \
17476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17478 -e 's:$: $lt_compiler_flag:'`
17479 (eval echo "\"\$as_me:17479: $lt_compile\"" >&5)
17480 (eval "$lt_compile" 2>conftest.err)
17481 ac_status=$?
17482 cat conftest.err >&5
17483 echo "$as_me:17483: \$? = $ac_status" >&5
17484 if (exit $ac_status) && test -s "$ac_outfile"; then
17485 # The compiler can only warn and ignore the option if not recognized
17486 # So say no if there are warnings other than the usual output.
17487 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17490 lt_prog_compiler_pic_works_GCJ=yes
17491 fi
17492 fi
17493 $rm conftest*
17494
17495 fi
17496 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17497 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17498
17499 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17500 case $lt_prog_compiler_pic_GCJ in
17501 "" | " "*) ;;
17502 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17503 esac
17504 else
17505 lt_prog_compiler_pic_GCJ=
17506 lt_prog_compiler_can_build_shared_GCJ=no
17507 fi
17508
17509 fi
17510 case $host_os in
17511 # For platforms which do not support PIC, -DPIC is meaningless:
17512 *djgpp*)
17513 lt_prog_compiler_pic_GCJ=
17514 ;;
17515 *)
17516 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17517 ;;
17518 esac
17519
17520 #
17521 # Check to make sure the static flag actually works.
17522 #
17523 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17524 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17525 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17526 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
17528 else
17529 lt_prog_compiler_static_works_GCJ=no
17530 save_LDFLAGS="$LDFLAGS"
17531 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17532 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17533 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17534 # The linker can only warn and ignore the option if not recognized
17535 # So say no if there are warnings
17536 if test -s conftest.err; then
17537 # Append any errors to the config.log.
17538 cat conftest.err 1>&5
17539 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17541 if diff conftest.exp conftest.er2 >/dev/null; then
17542 lt_prog_compiler_static_works_GCJ=yes
17543 fi
17544 else
17545 lt_prog_compiler_static_works_GCJ=yes
17546 fi
17547 fi
17548 $rm conftest*
17549 LDFLAGS="$save_LDFLAGS"
17550
17551 fi
17552 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17553 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17554
17555 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17556 :
17557 else
17558 lt_prog_compiler_static_GCJ=
17559 fi
17560
17561
17562 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17563 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17564 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 else
17567 lt_cv_prog_compiler_c_o_GCJ=no
17568 $rm -r conftest 2>/dev/null
17569 mkdir conftest
17570 cd conftest
17571 mkdir out
17572 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17573
17574 lt_compiler_flag="-o out/conftest2.$ac_objext"
17575 # Insert the option either (1) after the last *FLAGS variable, or
17576 # (2) before a word containing "conftest.", or (3) at the end.
17577 # Note that $ac_compile itself does not contain backslashes and begins
17578 # with a dollar sign (not a hyphen), so the echo should work correctly.
17579 lt_compile=`echo "$ac_compile" | $SED \
17580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17582 -e 's:$: $lt_compiler_flag:'`
17583 (eval echo "\"\$as_me:17583: $lt_compile\"" >&5)
17584 (eval "$lt_compile" 2>out/conftest.err)
17585 ac_status=$?
17586 cat out/conftest.err >&5
17587 echo "$as_me:17587: \$? = $ac_status" >&5
17588 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17589 then
17590 # The compiler can only warn and ignore the option if not recognized
17591 # So say no if there are warnings
17592 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17593 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17594 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17595 lt_cv_prog_compiler_c_o_GCJ=yes
17596 fi
17597 fi
17598 chmod u+w . 2>&5
17599 $rm conftest*
17600 # SGI C++ compiler will create directory out/ii_files/ for
17601 # template instantiation
17602 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17603 $rm out/* && rmdir out
17604 cd ..
17605 rmdir conftest
17606 $rm conftest*
17607
17608 fi
17609 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17610 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17611
17612
17613 hard_links="nottested"
17614 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17615 # do not overwrite the value of need_locks provided by the user
17616 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17617 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17618 hard_links=yes
17619 $rm conftest*
17620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17621 touch conftest.a
17622 ln conftest.a conftest.b 2>&5 || hard_links=no
17623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17624 echo "$as_me:$LINENO: result: $hard_links" >&5
17625 echo "${ECHO_T}$hard_links" >&6
17626 if test "$hard_links" = no; then
17627 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17628 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17629 need_locks=warn
17630 fi
17631 else
17632 need_locks=no
17633 fi
17634
17635 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17636 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17637
17638 runpath_var=
17639 allow_undefined_flag_GCJ=
17640 enable_shared_with_static_runtimes_GCJ=no
17641 archive_cmds_GCJ=
17642 archive_expsym_cmds_GCJ=
17643 old_archive_From_new_cmds_GCJ=
17644 old_archive_from_expsyms_cmds_GCJ=
17645 export_dynamic_flag_spec_GCJ=
17646 whole_archive_flag_spec_GCJ=
17647 thread_safe_flag_spec_GCJ=
17648 hardcode_libdir_flag_spec_GCJ=
17649 hardcode_libdir_flag_spec_ld_GCJ=
17650 hardcode_libdir_separator_GCJ=
17651 hardcode_direct_GCJ=no
17652 hardcode_minus_L_GCJ=no
17653 hardcode_shlibpath_var_GCJ=unsupported
17654 link_all_deplibs_GCJ=unknown
17655 hardcode_automatic_GCJ=no
17656 module_cmds_GCJ=
17657 module_expsym_cmds_GCJ=
17658 always_export_symbols_GCJ=no
17659 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17660 # include_expsyms should be a list of space-separated symbols to be *always*
17661 # included in the symbol list
17662 include_expsyms_GCJ=
17663 # exclude_expsyms can be an extended regexp of symbols to exclude
17664 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17665 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17666 # as well as any symbol that contains `d'.
17667 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17668 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17669 # platforms (ab)use it in PIC code, but their linkers get confused if
17670 # the symbol is explicitly referenced. Since portable code cannot
17671 # rely on this symbol name, it's probably fine to never include it in
17672 # preloaded symbol tables.
17673 extract_expsyms_cmds=
17674 # Just being paranoid about ensuring that cc_basename is set.
17675 for cc_temp in $compiler""; do
17676 case $cc_temp in
17677 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17678 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17679 \-*) ;;
17680 *) break;;
17681 esac
17682 done
17683 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17684
17685 case $host_os in
17686 cygwin* | mingw* | pw32*)
17687 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17688 # When not using gcc, we currently assume that we are using
17689 # Microsoft Visual C++.
17690 if test "$GCC" != yes; then
17691 with_gnu_ld=no
17692 fi
17693 ;;
17694 interix*)
17695 # we just hope/assume this is gcc and not c89 (= MSVC++)
17696 with_gnu_ld=yes
17697 ;;
17698 openbsd*)
17699 with_gnu_ld=no
17700 ;;
17701 esac
17702
17703 ld_shlibs_GCJ=yes
17704 if test "$with_gnu_ld" = yes; then
17705 # If archive_cmds runs LD, not CC, wlarc should be empty
17706 wlarc='${wl}'
17707
17708 # Set some defaults for GNU ld with shared library support. These
17709 # are reset later if shared libraries are not supported. Putting them
17710 # here allows them to be overridden if necessary.
17711 runpath_var=LD_RUN_PATH
17712 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17713 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17714 # ancient GNU ld didn't support --whole-archive et. al.
17715 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17716 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17717 else
17718 whole_archive_flag_spec_GCJ=
17719 fi
17720 supports_anon_versioning=no
17721 case `$LD -v 2>/dev/null` in
17722 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17723 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17724 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17725 *\ 2.11.*) ;; # other 2.11 versions
17726 *) supports_anon_versioning=yes ;;
17727 esac
17728
17729 # See if GNU ld supports shared libraries.
17730 case $host_os in
17731 aix3* | aix4* | aix5*)
17732 # On AIX/PPC, the GNU linker is very broken
17733 if test "$host_cpu" != ia64; then
17734 ld_shlibs_GCJ=no
17735 cat <<EOF 1>&2
17736
17737 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17738 *** to be unable to reliably create shared libraries on AIX.
17739 *** Therefore, libtool is disabling shared libraries support. If you
17740 *** really care for shared libraries, you may want to modify your PATH
17741 *** so that a non-GNU linker is found, and then restart.
17742
17743 EOF
17744 fi
17745 ;;
17746
17747 amigaos*)
17748 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17749 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17750 hardcode_minus_L_GCJ=yes
17751
17752 # Samuel A. Falvo II <[email protected]> reports
17753 # that the semantics of dynamic libraries on AmigaOS, at least up
17754 # to version 4, is to share data among multiple programs linked
17755 # with the same dynamic library. Since this doesn't match the
17756 # behavior of shared libraries on other platforms, we can't use
17757 # them.
17758 ld_shlibs_GCJ=no
17759 ;;
17760
17761 beos*)
17762 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17763 allow_undefined_flag_GCJ=unsupported
17764 # Joseph Beckenbach <[email protected]> says some releases of gcc
17765 # support --undefined. This deserves some investigation. FIXME
17766 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17767 else
17768 ld_shlibs_GCJ=no
17769 fi
17770 ;;
17771
17772 cygwin* | mingw* | pw32*)
17773 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17774 # as there is no search path for DLLs.
17775 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17776 allow_undefined_flag_GCJ=unsupported
17777 always_export_symbols_GCJ=no
17778 enable_shared_with_static_runtimes_GCJ=yes
17779 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17780
17781 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17782 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17783 # If the export-symbols file already is a .def file (1st line
17784 # is EXPORTS), use it as is; otherwise, prepend...
17785 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17786 cp $export_symbols $output_objdir/$soname.def;
17787 else
17788 echo EXPORTS > $output_objdir/$soname.def;
17789 cat $export_symbols >> $output_objdir/$soname.def;
17790 fi~
17791 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17792 else
17793 ld_shlibs_GCJ=no
17794 fi
17795 ;;
17796
17797 interix3*)
17798 hardcode_direct_GCJ=no
17799 hardcode_shlibpath_var_GCJ=no
17800 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17801 export_dynamic_flag_spec_GCJ='${wl}-E'
17802 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17803 # Instead, shared libraries are loaded at an image base (0x10000000 by
17804 # default) and relocated if they conflict, which is a slow very memory
17805 # consuming and fragmenting process. To avoid this, we pick a random,
17806 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17807 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17808 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17809 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17810 ;;
17811
17812 linux*)
17813 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17814 tmp_addflag=
17815 case $cc_basename,$host_cpu in
17816 pgcc*) # Portland Group C compiler
17817 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17818 tmp_addflag=' $pic_flag'
17819 ;;
17820 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17821 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17822 tmp_addflag=' $pic_flag -Mnomain' ;;
17823 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17824 tmp_addflag=' -i_dynamic' ;;
17825 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17826 tmp_addflag=' -i_dynamic -nofor_main' ;;
17827 ifc* | ifort*) # Intel Fortran compiler
17828 tmp_addflag=' -nofor_main' ;;
17829 esac
17830 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17831
17832 if test $supports_anon_versioning = yes; then
17833 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17835 $echo "local: *; };" >> $output_objdir/$libname.ver~
17836 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17837 fi
17838 else
17839 ld_shlibs_GCJ=no
17840 fi
17841 ;;
17842
17843 netbsd*)
17844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17845 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17846 wlarc=
17847 else
17848 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17849 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17850 fi
17851 ;;
17852
17853 solaris*)
17854 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17855 ld_shlibs_GCJ=no
17856 cat <<EOF 1>&2
17857
17858 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17859 *** create shared libraries on Solaris systems. Therefore, libtool
17860 *** is disabling shared libraries support. We urge you to upgrade GNU
17861 *** binutils to release 2.9.1 or newer. Another option is to modify
17862 *** your PATH or compiler configuration so that the native linker is
17863 *** used, and then restart.
17864
17865 EOF
17866 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17867 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17868 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17869 else
17870 ld_shlibs_GCJ=no
17871 fi
17872 ;;
17873
17874 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17875 case `$LD -v 2>&1` in
17876 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17877 ld_shlibs_GCJ=no
17878 cat <<_LT_EOF 1>&2
17879
17880 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17881 *** reliably create shared libraries on SCO systems. Therefore, libtool
17882 *** is disabling shared libraries support. We urge you to upgrade GNU
17883 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17884 *** your PATH or compiler configuration so that the native linker is
17885 *** used, and then restart.
17886
17887 _LT_EOF
17888 ;;
17889 *)
17890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17891 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17892 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17893 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17894 else
17895 ld_shlibs_GCJ=no
17896 fi
17897 ;;
17898 esac
17899 ;;
17900
17901 sunos4*)
17902 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17903 wlarc=
17904 hardcode_direct_GCJ=yes
17905 hardcode_shlibpath_var_GCJ=no
17906 ;;
17907
17908 *)
17909 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17910 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17911 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17912 else
17913 ld_shlibs_GCJ=no
17914 fi
17915 ;;
17916 esac
17917
17918 if test "$ld_shlibs_GCJ" = no; then
17919 runpath_var=
17920 hardcode_libdir_flag_spec_GCJ=
17921 export_dynamic_flag_spec_GCJ=
17922 whole_archive_flag_spec_GCJ=
17923 fi
17924 else
17925 # PORTME fill in a description of your system's linker (not GNU ld)
17926 case $host_os in
17927 aix3*)
17928 allow_undefined_flag_GCJ=unsupported
17929 always_export_symbols_GCJ=yes
17930 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17931 # Note: this linker hardcodes the directories in LIBPATH if there
17932 # are no directories specified by -L.
17933 hardcode_minus_L_GCJ=yes
17934 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17935 # Neither direct hardcoding nor static linking is supported with a
17936 # broken collect2.
17937 hardcode_direct_GCJ=unsupported
17938 fi
17939 ;;
17940
17941 aix4* | aix5*)
17942 if test "$host_cpu" = ia64; then
17943 # On IA64, the linker does run time linking by default, so we don't
17944 # have to do anything special.
17945 aix_use_runtimelinking=no
17946 exp_sym_flag='-Bexport'
17947 no_entry_flag=""
17948 else
17949 # If we're using GNU nm, then we don't want the "-C" option.
17950 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17951 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17952 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17953 else
17954 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17955 fi
17956 aix_use_runtimelinking=no
17957
17958 # Test if we are trying to use run time linking or normal
17959 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17960 # need to do runtime linking.
17961 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17962 for ld_flag in $LDFLAGS; do
17963 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17964 aix_use_runtimelinking=yes
17965 break
17966 fi
17967 done
17968 ;;
17969 esac
17970
17971 exp_sym_flag='-bexport'
17972 no_entry_flag='-bnoentry'
17973 fi
17974
17975 # When large executables or shared objects are built, AIX ld can
17976 # have problems creating the table of contents. If linking a library
17977 # or program results in "error TOC overflow" add -mminimal-toc to
17978 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17979 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17980
17981 archive_cmds_GCJ=''
17982 hardcode_direct_GCJ=yes
17983 hardcode_libdir_separator_GCJ=':'
17984 link_all_deplibs_GCJ=yes
17985
17986 if test "$GCC" = yes; then
17987 case $host_os in aix4.[012]|aix4.[012].*)
17988 # We only want to do this on AIX 4.2 and lower, the check
17989 # below for broken collect2 doesn't work under 4.3+
17990 collect2name=`${CC} -print-prog-name=collect2`
17991 if test -f "$collect2name" && \
17992 strings "$collect2name" | grep resolve_lib_name >/dev/null
17993 then
17994 # We have reworked collect2
17995 hardcode_direct_GCJ=yes
17996 else
17997 # We have old collect2
17998 hardcode_direct_GCJ=unsupported
17999 # It fails to find uninstalled libraries when the uninstalled
18000 # path is not listed in the libpath. Setting hardcode_minus_L
18001 # to unsupported forces relinking
18002 hardcode_minus_L_GCJ=yes
18003 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18004 hardcode_libdir_separator_GCJ=
18005 fi
18006 ;;
18007 esac
18008 shared_flag='-shared'
18009 if test "$aix_use_runtimelinking" = yes; then
18010 shared_flag="$shared_flag "'${wl}-G'
18011 fi
18012 else
18013 # not using gcc
18014 if test "$host_cpu" = ia64; then
18015 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18016 # chokes on -Wl,-G. The following line is correct:
18017 shared_flag='-G'
18018 else
18019 if test "$aix_use_runtimelinking" = yes; then
18020 shared_flag='${wl}-G'
18021 else
18022 shared_flag='${wl}-bM:SRE'
18023 fi
18024 fi
18025 fi
18026
18027 # It seems that -bexpall does not export symbols beginning with
18028 # underscore (_), so it is better to generate a list of symbols to export.
18029 always_export_symbols_GCJ=yes
18030 if test "$aix_use_runtimelinking" = yes; then
18031 # Warning - without using the other runtime loading flags (-brtl),
18032 # -berok will link without error, but may produce a broken library.
18033 allow_undefined_flag_GCJ='-berok'
18034 # Determine the default libpath from the value encoded in an empty executable.
18035 cat >conftest.$ac_ext <<_ACEOF
18036 /* confdefs.h. */
18037 _ACEOF
18038 cat confdefs.h >>conftest.$ac_ext
18039 cat >>conftest.$ac_ext <<_ACEOF
18040 /* end confdefs.h. */
18041
18042 int
18043 main ()
18044 {
18045
18046 ;
18047 return 0;
18048 }
18049 _ACEOF
18050 rm -f conftest.$ac_objext conftest$ac_exeext
18051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18052 (eval $ac_link) 2>conftest.er1
18053 ac_status=$?
18054 grep -v '^ *+' conftest.er1 >conftest.err
18055 rm -f conftest.er1
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try='test -z "$ac_c_werror_flag"
18060 || test ! -s conftest.err'
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; } &&
18066 { ac_try='test -s conftest$ac_exeext'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072
18073 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18074 }'`
18075 # Check for a 64-bit object if we didn't find anything.
18076 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18077 }'`; fi
18078 else
18079 echo "$as_me: failed program was:" >&5
18080 sed 's/^/| /' conftest.$ac_ext >&5
18081
18082 fi
18083 rm -f conftest.err conftest.$ac_objext \
18084 conftest$ac_exeext conftest.$ac_ext
18085 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18086
18087 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18088 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18089 else
18090 if test "$host_cpu" = ia64; then
18091 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18092 allow_undefined_flag_GCJ="-z nodefs"
18093 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18094 else
18095 # Determine the default libpath from the value encoded in an empty executable.
18096 cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h. */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102
18103 int
18104 main ()
18105 {
18106
18107 ;
18108 return 0;
18109 }
18110 _ACEOF
18111 rm -f conftest.$ac_objext conftest$ac_exeext
18112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18113 (eval $ac_link) 2>conftest.er1
18114 ac_status=$?
18115 grep -v '^ *+' conftest.er1 >conftest.err
18116 rm -f conftest.er1
18117 cat conftest.err >&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } &&
18120 { ac_try='test -z "$ac_c_werror_flag"
18121 || test ! -s conftest.err'
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; } &&
18127 { ac_try='test -s conftest$ac_exeext'
18128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129 (eval $ac_try) 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133
18134 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18135 }'`
18136 # Check for a 64-bit object if we didn't find anything.
18137 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18138 }'`; fi
18139 else
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143 fi
18144 rm -f conftest.err conftest.$ac_objext \
18145 conftest$ac_exeext conftest.$ac_ext
18146 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18147
18148 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18149 # Warning - without using the other run time loading flags,
18150 # -berok will link without error, but may produce a broken library.
18151 no_undefined_flag_GCJ=' ${wl}-bernotok'
18152 allow_undefined_flag_GCJ=' ${wl}-berok'
18153 # Exported symbols can be pulled into shared objects from archives
18154 whole_archive_flag_spec_GCJ='$convenience'
18155 archive_cmds_need_lc_GCJ=yes
18156 # This is similar to how AIX traditionally builds its shared libraries.
18157 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18158 fi
18159 fi
18160 ;;
18161
18162 amigaos*)
18163 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18164 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18165 hardcode_minus_L_GCJ=yes
18166 # see comment about different semantics on the GNU ld section
18167 ld_shlibs_GCJ=no
18168 ;;
18169
18170 bsdi[45]*)
18171 export_dynamic_flag_spec_GCJ=-rdynamic
18172 ;;
18173
18174 cygwin* | mingw* | pw32*)
18175 # When not using gcc, we currently assume that we are using
18176 # Microsoft Visual C++.
18177 # hardcode_libdir_flag_spec is actually meaningless, as there is
18178 # no search path for DLLs.
18179 hardcode_libdir_flag_spec_GCJ=' '
18180 allow_undefined_flag_GCJ=unsupported
18181 # Tell ltmain to make .lib files, not .a files.
18182 libext=lib
18183 # Tell ltmain to make .dll files, not .so files.
18184 shrext_cmds=".dll"
18185 # FIXME: Setting linknames here is a bad hack.
18186 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18187 # The linker will automatically build a .lib file if we build a DLL.
18188 old_archive_From_new_cmds_GCJ='true'
18189 # FIXME: Should let the user specify the lib program.
18190 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18191 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18192 enable_shared_with_static_runtimes_GCJ=yes
18193 ;;
18194
18195 darwin* | rhapsody*)
18196 case $host_os in
18197 rhapsody* | darwin1.[012])
18198 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18199 ;;
18200 *) # Darwin 1.3 on
18201 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18202 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18203 else
18204 case ${MACOSX_DEPLOYMENT_TARGET} in
18205 10.[012])
18206 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18207 ;;
18208 10.*)
18209 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18210 ;;
18211 esac
18212 fi
18213 ;;
18214 esac
18215 archive_cmds_need_lc_GCJ=no
18216 hardcode_direct_GCJ=no
18217 hardcode_automatic_GCJ=yes
18218 hardcode_shlibpath_var_GCJ=unsupported
18219 whole_archive_flag_spec_GCJ=''
18220 link_all_deplibs_GCJ=yes
18221 if test "$GCC" = yes ; then
18222 output_verbose_link_cmd='echo'
18223 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18224 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18225 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18226 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18227 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18228 else
18229 case $cc_basename in
18230 xlc*)
18231 output_verbose_link_cmd='echo'
18232 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18233 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18234 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18235 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18236 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18237 ;;
18238 *)
18239 ld_shlibs_GCJ=no
18240 ;;
18241 esac
18242 fi
18243 ;;
18244
18245 dgux*)
18246 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18247 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18248 hardcode_shlibpath_var_GCJ=no
18249 ;;
18250
18251 freebsd1*)
18252 ld_shlibs_GCJ=no
18253 ;;
18254
18255 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18256 # support. Future versions do this automatically, but an explicit c++rt0.o
18257 # does not break anything, and helps significantly (at the cost of a little
18258 # extra space).
18259 freebsd2.2*)
18260 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18261 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18262 hardcode_direct_GCJ=yes
18263 hardcode_shlibpath_var_GCJ=no
18264 ;;
18265
18266 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18267 freebsd2*)
18268 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18269 hardcode_direct_GCJ=yes
18270 hardcode_minus_L_GCJ=yes
18271 hardcode_shlibpath_var_GCJ=no
18272 ;;
18273
18274 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18275 freebsd* | kfreebsd*-gnu | dragonfly*)
18276 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18277 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18278 hardcode_direct_GCJ=yes
18279 hardcode_shlibpath_var_GCJ=no
18280 ;;
18281
18282 hpux9*)
18283 if test "$GCC" = yes; then
18284 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18285 else
18286 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18287 fi
18288 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18289 hardcode_libdir_separator_GCJ=:
18290 hardcode_direct_GCJ=yes
18291
18292 # hardcode_minus_L: Not really in the search PATH,
18293 # but as the default location of the library.
18294 hardcode_minus_L_GCJ=yes
18295 export_dynamic_flag_spec_GCJ='${wl}-E'
18296 ;;
18297
18298 hpux10*)
18299 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18300 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18301 else
18302 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18303 fi
18304 if test "$with_gnu_ld" = no; then
18305 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18306 hardcode_libdir_separator_GCJ=:
18307
18308 hardcode_direct_GCJ=yes
18309 export_dynamic_flag_spec_GCJ='${wl}-E'
18310
18311 # hardcode_minus_L: Not really in the search PATH,
18312 # but as the default location of the library.
18313 hardcode_minus_L_GCJ=yes
18314 fi
18315 ;;
18316
18317 hpux11*)
18318 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18319 case $host_cpu in
18320 hppa*64*)
18321 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18322 ;;
18323 ia64*)
18324 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18325 ;;
18326 *)
18327 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18328 ;;
18329 esac
18330 else
18331 case $host_cpu in
18332 hppa*64*)
18333 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18334 ;;
18335 ia64*)
18336 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18337 ;;
18338 *)
18339 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18340 ;;
18341 esac
18342 fi
18343 if test "$with_gnu_ld" = no; then
18344 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18345 hardcode_libdir_separator_GCJ=:
18346
18347 case $host_cpu in
18348 hppa*64*|ia64*)
18349 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18350 hardcode_direct_GCJ=no
18351 hardcode_shlibpath_var_GCJ=no
18352 ;;
18353 *)
18354 hardcode_direct_GCJ=yes
18355 export_dynamic_flag_spec_GCJ='${wl}-E'
18356
18357 # hardcode_minus_L: Not really in the search PATH,
18358 # but as the default location of the library.
18359 hardcode_minus_L_GCJ=yes
18360 ;;
18361 esac
18362 fi
18363 ;;
18364
18365 irix5* | irix6* | nonstopux*)
18366 if test "$GCC" = yes; then
18367 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18368 else
18369 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18370 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18371 fi
18372 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18373 hardcode_libdir_separator_GCJ=:
18374 link_all_deplibs_GCJ=yes
18375 ;;
18376
18377 netbsd*)
18378 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18379 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18380 else
18381 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18382 fi
18383 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18384 hardcode_direct_GCJ=yes
18385 hardcode_shlibpath_var_GCJ=no
18386 ;;
18387
18388 newsos6)
18389 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18390 hardcode_direct_GCJ=yes
18391 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18392 hardcode_libdir_separator_GCJ=:
18393 hardcode_shlibpath_var_GCJ=no
18394 ;;
18395
18396 openbsd*)
18397 hardcode_direct_GCJ=yes
18398 hardcode_shlibpath_var_GCJ=no
18399 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18400 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18401 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18402 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18403 export_dynamic_flag_spec_GCJ='${wl}-E'
18404 else
18405 case $host_os in
18406 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18407 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18408 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18409 ;;
18410 *)
18411 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18412 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18413 ;;
18414 esac
18415 fi
18416 ;;
18417
18418 os2*)
18419 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18420 hardcode_minus_L_GCJ=yes
18421 allow_undefined_flag_GCJ=unsupported
18422 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18423 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18424 ;;
18425
18426 osf3*)
18427 if test "$GCC" = yes; then
18428 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18429 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18430 else
18431 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18432 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18433 fi
18434 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18435 hardcode_libdir_separator_GCJ=:
18436 ;;
18437
18438 osf4* | osf5*) # as osf3* with the addition of -msym flag
18439 if test "$GCC" = yes; then
18440 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18441 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18442 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18443 else
18444 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18445 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18446 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18447 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18448
18449 # Both c and cxx compiler support -rpath directly
18450 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18451 fi
18452 hardcode_libdir_separator_GCJ=:
18453 ;;
18454
18455 solaris*)
18456 no_undefined_flag_GCJ=' -z text'
18457 if test "$GCC" = yes; then
18458 wlarc='${wl}'
18459 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18460 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18461 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18462 else
18463 wlarc=''
18464 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18465 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18466 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18467 fi
18468 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18469 hardcode_shlibpath_var_GCJ=no
18470 case $host_os in
18471 solaris2.[0-5] | solaris2.[0-5].*) ;;
18472 *)
18473 # The compiler driver will combine linker options so we
18474 # cannot just pass the convience library names through
18475 # without $wl, iff we do not link with $LD.
18476 # Luckily, gcc supports the same syntax we need for Sun Studio.
18477 # Supported since Solaris 2.6 (maybe 2.5.1?)
18478 case $wlarc in
18479 '')
18480 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18481 *)
18482 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18483 esac ;;
18484 esac
18485 link_all_deplibs_GCJ=yes
18486 ;;
18487
18488 sunos4*)
18489 if test "x$host_vendor" = xsequent; then
18490 # Use $CC to link under sequent, because it throws in some extra .o
18491 # files that make .init and .fini sections work.
18492 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18493 else
18494 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18495 fi
18496 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18497 hardcode_direct_GCJ=yes
18498 hardcode_minus_L_GCJ=yes
18499 hardcode_shlibpath_var_GCJ=no
18500 ;;
18501
18502 sysv4)
18503 case $host_vendor in
18504 sni)
18505 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18506 hardcode_direct_GCJ=yes # is this really true???
18507 ;;
18508 siemens)
18509 ## LD is ld it makes a PLAMLIB
18510 ## CC just makes a GrossModule.
18511 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18512 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18513 hardcode_direct_GCJ=no
18514 ;;
18515 motorola)
18516 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18517 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18518 ;;
18519 esac
18520 runpath_var='LD_RUN_PATH'
18521 hardcode_shlibpath_var_GCJ=no
18522 ;;
18523
18524 sysv4.3*)
18525 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18526 hardcode_shlibpath_var_GCJ=no
18527 export_dynamic_flag_spec_GCJ='-Bexport'
18528 ;;
18529
18530 sysv4*MP*)
18531 if test -d /usr/nec; then
18532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18533 hardcode_shlibpath_var_GCJ=no
18534 runpath_var=LD_RUN_PATH
18535 hardcode_runpath_var=yes
18536 ld_shlibs_GCJ=yes
18537 fi
18538 ;;
18539
18540 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18541 no_undefined_flag_GCJ='${wl}-z,text'
18542 archive_cmds_need_lc_GCJ=no
18543 hardcode_shlibpath_var_GCJ=no
18544 runpath_var='LD_RUN_PATH'
18545
18546 if test "$GCC" = yes; then
18547 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18548 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18549 else
18550 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18551 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18552 fi
18553 ;;
18554
18555 sysv5* | sco3.2v5* | sco5v6*)
18556 # Note: We can NOT use -z defs as we might desire, because we do not
18557 # link with -lc, and that would cause any symbols used from libc to
18558 # always be unresolved, which means just about no library would
18559 # ever link correctly. If we're not using GNU ld we use -z text
18560 # though, which does catch some bad symbols but isn't as heavy-handed
18561 # as -z defs.
18562 no_undefined_flag_GCJ='${wl}-z,text'
18563 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18564 archive_cmds_need_lc_GCJ=no
18565 hardcode_shlibpath_var_GCJ=no
18566 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18567 hardcode_libdir_separator_GCJ=':'
18568 link_all_deplibs_GCJ=yes
18569 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18570 runpath_var='LD_RUN_PATH'
18571
18572 if test "$GCC" = yes; then
18573 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18574 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18575 else
18576 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18577 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18578 fi
18579 ;;
18580
18581 uts4*)
18582 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18583 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18584 hardcode_shlibpath_var_GCJ=no
18585 ;;
18586
18587 *)
18588 ld_shlibs_GCJ=no
18589 ;;
18590 esac
18591 fi
18592
18593 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18594 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18595 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18596
18597 #
18598 # Do we need to explicitly link libc?
18599 #
18600 case "x$archive_cmds_need_lc_GCJ" in
18601 x|xyes)
18602 # Assume -lc should be added
18603 archive_cmds_need_lc_GCJ=yes
18604
18605 if test "$enable_shared" = yes && test "$GCC" = yes; then
18606 case $archive_cmds_GCJ in
18607 *'~'*)
18608 # FIXME: we may have to deal with multi-command sequences.
18609 ;;
18610 '$CC '*)
18611 # Test whether the compiler implicitly links with -lc since on some
18612 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18613 # to ld, don't add -lc before -lgcc.
18614 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18615 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18616 $rm conftest*
18617 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18618
18619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18620 (eval $ac_compile) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } 2>conftest.err; then
18624 soname=conftest
18625 lib=conftest
18626 libobjs=conftest.$ac_objext
18627 deplibs=
18628 wl=$lt_prog_compiler_wl_GCJ
18629 pic_flag=$lt_prog_compiler_pic_GCJ
18630 compiler_flags=-v
18631 linker_flags=-v
18632 verstring=
18633 output_objdir=.
18634 libname=conftest
18635 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18636 allow_undefined_flag_GCJ=
18637 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18638 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }
18642 then
18643 archive_cmds_need_lc_GCJ=no
18644 else
18645 archive_cmds_need_lc_GCJ=yes
18646 fi
18647 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18648 else
18649 cat conftest.err 1>&5
18650 fi
18651 $rm conftest*
18652 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18653 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18654 ;;
18655 esac
18656 fi
18657 ;;
18658 esac
18659
18660 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18661 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18662 library_names_spec=
18663 libname_spec='lib$name'
18664 soname_spec=
18665 shrext_cmds=".so"
18666 postinstall_cmds=
18667 postuninstall_cmds=
18668 finish_cmds=
18669 finish_eval=
18670 shlibpath_var=
18671 shlibpath_overrides_runpath=unknown
18672 version_type=none
18673 dynamic_linker="$host_os ld.so"
18674 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18675 if test "$GCC" = yes; then
18676 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18677 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18678 # if the path contains ";" then we assume it to be the separator
18679 # otherwise default to the standard path separator (i.e. ":") - it is
18680 # assumed that no part of a normal pathname contains ";" but that should
18681 # okay in the real world where ";" in dirpaths is itself problematic.
18682 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18683 else
18684 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18685 fi
18686 else
18687 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18688 fi
18689 need_lib_prefix=unknown
18690 hardcode_into_libs=no
18691
18692 # when you set need_version to no, make sure it does not cause -set_version
18693 # flags to be left without arguments
18694 need_version=unknown
18695
18696 case $host_os in
18697 aix3*)
18698 version_type=linux
18699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18700 shlibpath_var=LIBPATH
18701
18702 # AIX 3 has no versioning support, so we append a major version to the name.
18703 soname_spec='${libname}${release}${shared_ext}$major'
18704 ;;
18705
18706 aix4* | aix5*)
18707 version_type=linux
18708 need_lib_prefix=no
18709 need_version=no
18710 hardcode_into_libs=yes
18711 if test "$host_cpu" = ia64; then
18712 # AIX 5 supports IA64
18713 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18714 shlibpath_var=LD_LIBRARY_PATH
18715 else
18716 # With GCC up to 2.95.x, collect2 would create an import file
18717 # for dependence libraries. The import file would start with
18718 # the line `#! .'. This would cause the generated library to
18719 # depend on `.', always an invalid library. This was fixed in
18720 # development snapshots of GCC prior to 3.0.
18721 case $host_os in
18722 aix4 | aix4.[01] | aix4.[01].*)
18723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18724 echo ' yes '
18725 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18726 :
18727 else
18728 can_build_shared=no
18729 fi
18730 ;;
18731 esac
18732 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18733 # soname into executable. Probably we can add versioning support to
18734 # collect2, so additional links can be useful in future.
18735 if test "$aix_use_runtimelinking" = yes; then
18736 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18737 # instead of lib<name>.a to let people know that these are not
18738 # typical AIX shared libraries.
18739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18740 else
18741 # We preserve .a as extension for shared libraries through AIX4.2
18742 # and later when we are not doing run time linking.
18743 library_names_spec='${libname}${release}.a $libname.a'
18744 soname_spec='${libname}${release}${shared_ext}$major'
18745 fi
18746 shlibpath_var=LIBPATH
18747 fi
18748 ;;
18749
18750 amigaos*)
18751 library_names_spec='$libname.ixlibrary $libname.a'
18752 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18753 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18754 ;;
18755
18756 beos*)
18757 library_names_spec='${libname}${shared_ext}'
18758 dynamic_linker="$host_os ld.so"
18759 shlibpath_var=LIBRARY_PATH
18760 ;;
18761
18762 bsdi[45]*)
18763 version_type=linux
18764 need_version=no
18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18766 soname_spec='${libname}${release}${shared_ext}$major'
18767 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18768 shlibpath_var=LD_LIBRARY_PATH
18769 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18770 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18771 # the default ld.so.conf also contains /usr/contrib/lib and
18772 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18773 # libtool to hard-code these into programs
18774 ;;
18775
18776 cygwin* | mingw* | pw32*)
18777 version_type=windows
18778 shrext_cmds=".dll"
18779 need_version=no
18780 need_lib_prefix=no
18781
18782 case $GCC,$host_os in
18783 yes,cygwin* | yes,mingw* | yes,pw32*)
18784 library_names_spec='$libname.dll.a'
18785 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18786 postinstall_cmds='base_file=`basename \${file}`~
18787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18788 dldir=$destdir/`dirname \$dlpath`~
18789 test -d \$dldir || mkdir -p \$dldir~
18790 $install_prog $dir/$dlname \$dldir/$dlname~
18791 chmod a+x \$dldir/$dlname'
18792 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18793 dlpath=$dir/\$dldll~
18794 $rm \$dlpath'
18795 shlibpath_overrides_runpath=yes
18796
18797 case $host_os in
18798 cygwin*)
18799 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18800 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18801 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18802 ;;
18803 mingw*)
18804 # MinGW DLLs use traditional 'lib' prefix
18805 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18806 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18807 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18808 # It is most probably a Windows format PATH printed by
18809 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18810 # path with ; separators, and with drive letters. We can handle the
18811 # drive letters (cygwin fileutils understands them), so leave them,
18812 # especially as we might pass files found there to a mingw objdump,
18813 # which wouldn't understand a cygwinified path. Ahh.
18814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18815 else
18816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18817 fi
18818 ;;
18819 pw32*)
18820 # pw32 DLLs use 'pw' prefix rather than 'lib'
18821 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18822 ;;
18823 esac
18824 ;;
18825
18826 *)
18827 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18828 ;;
18829 esac
18830 dynamic_linker='Win32 ld.exe'
18831 # FIXME: first we should search . and the directory the executable is in
18832 shlibpath_var=PATH
18833 ;;
18834
18835 darwin* | rhapsody*)
18836 dynamic_linker="$host_os dyld"
18837 version_type=darwin
18838 need_lib_prefix=no
18839 need_version=no
18840 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18841 soname_spec='${libname}${release}${major}$shared_ext'
18842 shlibpath_overrides_runpath=yes
18843 shlibpath_var=DYLD_LIBRARY_PATH
18844 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18845 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18846 if test "$GCC" = yes; then
18847 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18848 else
18849 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18850 fi
18851 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18852 ;;
18853
18854 dgux*)
18855 version_type=linux
18856 need_lib_prefix=no
18857 need_version=no
18858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18859 soname_spec='${libname}${release}${shared_ext}$major'
18860 shlibpath_var=LD_LIBRARY_PATH
18861 ;;
18862
18863 freebsd1*)
18864 dynamic_linker=no
18865 ;;
18866
18867 kfreebsd*-gnu)
18868 version_type=linux
18869 need_lib_prefix=no
18870 need_version=no
18871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18872 soname_spec='${libname}${release}${shared_ext}$major'
18873 shlibpath_var=LD_LIBRARY_PATH
18874 shlibpath_overrides_runpath=no
18875 hardcode_into_libs=yes
18876 dynamic_linker='GNU ld.so'
18877 ;;
18878
18879 freebsd* | dragonfly*)
18880 # DragonFly does not have aout. When/if they implement a new
18881 # versioning mechanism, adjust this.
18882 if test -x /usr/bin/objformat; then
18883 objformat=`/usr/bin/objformat`
18884 else
18885 case $host_os in
18886 freebsd[123]*) objformat=aout ;;
18887 *) objformat=elf ;;
18888 esac
18889 fi
18890 version_type=freebsd-$objformat
18891 case $version_type in
18892 freebsd-elf*)
18893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18894 need_version=no
18895 need_lib_prefix=no
18896 ;;
18897 freebsd-*)
18898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18899 need_version=yes
18900 ;;
18901 esac
18902 shlibpath_var=LD_LIBRARY_PATH
18903 case $host_os in
18904 freebsd2*)
18905 shlibpath_overrides_runpath=yes
18906 ;;
18907 freebsd3.[01]* | freebsdelf3.[01]*)
18908 shlibpath_overrides_runpath=yes
18909 hardcode_into_libs=yes
18910 ;;
18911 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18912 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18913 shlibpath_overrides_runpath=no
18914 hardcode_into_libs=yes
18915 ;;
18916 freebsd*) # from 4.6 on
18917 shlibpath_overrides_runpath=yes
18918 hardcode_into_libs=yes
18919 ;;
18920 esac
18921 ;;
18922
18923 gnu*)
18924 version_type=linux
18925 need_lib_prefix=no
18926 need_version=no
18927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18928 soname_spec='${libname}${release}${shared_ext}$major'
18929 shlibpath_var=LD_LIBRARY_PATH
18930 hardcode_into_libs=yes
18931 ;;
18932
18933 hpux9* | hpux10* | hpux11*)
18934 # Give a soname corresponding to the major version so that dld.sl refuses to
18935 # link against other versions.
18936 version_type=sunos
18937 need_lib_prefix=no
18938 need_version=no
18939 case $host_cpu in
18940 ia64*)
18941 shrext_cmds='.so'
18942 hardcode_into_libs=yes
18943 dynamic_linker="$host_os dld.so"
18944 shlibpath_var=LD_LIBRARY_PATH
18945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18947 soname_spec='${libname}${release}${shared_ext}$major'
18948 if test "X$HPUX_IA64_MODE" = X32; then
18949 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18950 else
18951 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18952 fi
18953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18954 ;;
18955 hppa*64*)
18956 shrext_cmds='.sl'
18957 hardcode_into_libs=yes
18958 dynamic_linker="$host_os dld.sl"
18959 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18962 soname_spec='${libname}${release}${shared_ext}$major'
18963 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18965 ;;
18966 *)
18967 shrext_cmds='.sl'
18968 dynamic_linker="$host_os dld.sl"
18969 shlibpath_var=SHLIB_PATH
18970 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18972 soname_spec='${libname}${release}${shared_ext}$major'
18973 ;;
18974 esac
18975 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18976 postinstall_cmds='chmod 555 $lib'
18977 ;;
18978
18979 interix3*)
18980 version_type=linux
18981 need_lib_prefix=no
18982 need_version=no
18983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18984 soname_spec='${libname}${release}${shared_ext}$major'
18985 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18986 shlibpath_var=LD_LIBRARY_PATH
18987 shlibpath_overrides_runpath=no
18988 hardcode_into_libs=yes
18989 ;;
18990
18991 irix5* | irix6* | nonstopux*)
18992 case $host_os in
18993 nonstopux*) version_type=nonstopux ;;
18994 *)
18995 if test "$lt_cv_prog_gnu_ld" = yes; then
18996 version_type=linux
18997 else
18998 version_type=irix
18999 fi ;;
19000 esac
19001 need_lib_prefix=no
19002 need_version=no
19003 soname_spec='${libname}${release}${shared_ext}$major'
19004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19005 case $host_os in
19006 irix5* | nonstopux*)
19007 libsuff= shlibsuff=
19008 ;;
19009 *)
19010 case $LD in # libtool.m4 will add one of these switches to LD
19011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19012 libsuff= shlibsuff= libmagic=32-bit;;
19013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19014 libsuff=32 shlibsuff=N32 libmagic=N32;;
19015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19017 *) libsuff= shlibsuff= libmagic=never-match;;
19018 esac
19019 ;;
19020 esac
19021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19022 shlibpath_overrides_runpath=no
19023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19025 hardcode_into_libs=yes
19026 ;;
19027
19028 # No shared lib support for Linux oldld, aout, or coff.
19029 linux*oldld* | linux*aout* | linux*coff*)
19030 dynamic_linker=no
19031 ;;
19032
19033 # This must be Linux ELF.
19034 linux*)
19035 version_type=linux
19036 need_lib_prefix=no
19037 need_version=no
19038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19039 soname_spec='${libname}${release}${shared_ext}$major'
19040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19041 shlibpath_var=LD_LIBRARY_PATH
19042 shlibpath_overrides_runpath=no
19043 # This implies no fast_install, which is unacceptable.
19044 # Some rework will be needed to allow for fast_install
19045 # before this can be enabled.
19046 hardcode_into_libs=yes
19047
19048 # Append ld.so.conf contents to the search path
19049 if test -f /etc/ld.so.conf; then
19050 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19051 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19052 fi
19053
19054 # We used to test for /lib/ld.so.1 and disable shared libraries on
19055 # powerpc, because MkLinux only supported shared libraries with the
19056 # GNU dynamic linker. Since this was broken with cross compilers,
19057 # most powerpc-linux boxes support dynamic linking these days and
19058 # people can always --disable-shared, the test was removed, and we
19059 # assume the GNU/Linux dynamic linker is in use.
19060 dynamic_linker='GNU/Linux ld.so'
19061 ;;
19062
19063 knetbsd*-gnu)
19064 version_type=linux
19065 need_lib_prefix=no
19066 need_version=no
19067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19068 soname_spec='${libname}${release}${shared_ext}$major'
19069 shlibpath_var=LD_LIBRARY_PATH
19070 shlibpath_overrides_runpath=no
19071 hardcode_into_libs=yes
19072 dynamic_linker='GNU ld.so'
19073 ;;
19074
19075 netbsd*)
19076 version_type=sunos
19077 need_lib_prefix=no
19078 need_version=no
19079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19082 dynamic_linker='NetBSD (a.out) ld.so'
19083 else
19084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19085 soname_spec='${libname}${release}${shared_ext}$major'
19086 dynamic_linker='NetBSD ld.elf_so'
19087 fi
19088 shlibpath_var=LD_LIBRARY_PATH
19089 shlibpath_overrides_runpath=yes
19090 hardcode_into_libs=yes
19091 ;;
19092
19093 newsos6)
19094 version_type=linux
19095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19096 shlibpath_var=LD_LIBRARY_PATH
19097 shlibpath_overrides_runpath=yes
19098 ;;
19099
19100 nto-qnx*)
19101 version_type=linux
19102 need_lib_prefix=no
19103 need_version=no
19104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19105 soname_spec='${libname}${release}${shared_ext}$major'
19106 shlibpath_var=LD_LIBRARY_PATH
19107 shlibpath_overrides_runpath=yes
19108 ;;
19109
19110 openbsd*)
19111 version_type=sunos
19112 sys_lib_dlsearch_path_spec="/usr/lib"
19113 need_lib_prefix=no
19114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19115 case $host_os in
19116 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19117 *) need_version=no ;;
19118 esac
19119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19121 shlibpath_var=LD_LIBRARY_PATH
19122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19123 case $host_os in
19124 openbsd2.[89] | openbsd2.[89].*)
19125 shlibpath_overrides_runpath=no
19126 ;;
19127 *)
19128 shlibpath_overrides_runpath=yes
19129 ;;
19130 esac
19131 else
19132 shlibpath_overrides_runpath=yes
19133 fi
19134 ;;
19135
19136 os2*)
19137 libname_spec='$name'
19138 shrext_cmds=".dll"
19139 need_lib_prefix=no
19140 library_names_spec='$libname${shared_ext} $libname.a'
19141 dynamic_linker='OS/2 ld.exe'
19142 shlibpath_var=LIBPATH
19143 ;;
19144
19145 osf3* | osf4* | osf5*)
19146 version_type=osf
19147 need_lib_prefix=no
19148 need_version=no
19149 soname_spec='${libname}${release}${shared_ext}$major'
19150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19151 shlibpath_var=LD_LIBRARY_PATH
19152 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19153 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19154 ;;
19155
19156 solaris*)
19157 version_type=linux
19158 need_lib_prefix=no
19159 need_version=no
19160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19161 soname_spec='${libname}${release}${shared_ext}$major'
19162 shlibpath_var=LD_LIBRARY_PATH
19163 shlibpath_overrides_runpath=yes
19164 hardcode_into_libs=yes
19165 # ldd complains unless libraries are executable
19166 postinstall_cmds='chmod +x $lib'
19167 ;;
19168
19169 sunos4*)
19170 version_type=sunos
19171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19173 shlibpath_var=LD_LIBRARY_PATH
19174 shlibpath_overrides_runpath=yes
19175 if test "$with_gnu_ld" = yes; then
19176 need_lib_prefix=no
19177 fi
19178 need_version=yes
19179 ;;
19180
19181 sysv4 | sysv4.3*)
19182 version_type=linux
19183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19184 soname_spec='${libname}${release}${shared_ext}$major'
19185 shlibpath_var=LD_LIBRARY_PATH
19186 case $host_vendor in
19187 sni)
19188 shlibpath_overrides_runpath=no
19189 need_lib_prefix=no
19190 export_dynamic_flag_spec='${wl}-Blargedynsym'
19191 runpath_var=LD_RUN_PATH
19192 ;;
19193 siemens)
19194 need_lib_prefix=no
19195 ;;
19196 motorola)
19197 need_lib_prefix=no
19198 need_version=no
19199 shlibpath_overrides_runpath=no
19200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19201 ;;
19202 esac
19203 ;;
19204
19205 sysv4*MP*)
19206 if test -d /usr/nec ;then
19207 version_type=linux
19208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19209 soname_spec='$libname${shared_ext}.$major'
19210 shlibpath_var=LD_LIBRARY_PATH
19211 fi
19212 ;;
19213
19214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19215 version_type=freebsd-elf
19216 need_lib_prefix=no
19217 need_version=no
19218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19219 soname_spec='${libname}${release}${shared_ext}$major'
19220 shlibpath_var=LD_LIBRARY_PATH
19221 hardcode_into_libs=yes
19222 if test "$with_gnu_ld" = yes; then
19223 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19224 shlibpath_overrides_runpath=no
19225 else
19226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19227 shlibpath_overrides_runpath=yes
19228 case $host_os in
19229 sco3.2v5*)
19230 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19231 ;;
19232 esac
19233 fi
19234 sys_lib_dlsearch_path_spec='/usr/lib'
19235 ;;
19236
19237 uts4*)
19238 version_type=linux
19239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19240 soname_spec='${libname}${release}${shared_ext}$major'
19241 shlibpath_var=LD_LIBRARY_PATH
19242 ;;
19243
19244 *)
19245 dynamic_linker=no
19246 ;;
19247 esac
19248 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19249 echo "${ECHO_T}$dynamic_linker" >&6
19250 test "$dynamic_linker" = no && can_build_shared=no
19251
19252 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19253 if test "$GCC" = yes; then
19254 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19255 fi
19256
19257 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19258 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19259 hardcode_action_GCJ=
19260 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19261 test -n "$runpath_var_GCJ" || \
19262 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19263
19264 # We can hardcode non-existant directories.
19265 if test "$hardcode_direct_GCJ" != no &&
19266 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19267 # have to relink, otherwise we might link with an installed library
19268 # when we should be linking with a yet-to-be-installed one
19269 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19270 test "$hardcode_minus_L_GCJ" != no; then
19271 # Linking always hardcodes the temporary library directory.
19272 hardcode_action_GCJ=relink
19273 else
19274 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19275 hardcode_action_GCJ=immediate
19276 fi
19277 else
19278 # We cannot hardcode anything, or else we can only hardcode existing
19279 # directories.
19280 hardcode_action_GCJ=unsupported
19281 fi
19282 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19283 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19284
19285 if test "$hardcode_action_GCJ" = relink; then
19286 # Fast installation is not supported
19287 enable_fast_install=no
19288 elif test "$shlibpath_overrides_runpath" = yes ||
19289 test "$enable_shared" = no; then
19290 # Fast installation is not necessary
19291 enable_fast_install=needless
19292 fi
19293
19294
19295 # The else clause should only fire when bootstrapping the
19296 # libtool distribution, otherwise you forgot to ship ltmain.sh
19297 # with your package, and you will get complaints that there are
19298 # no rules to generate ltmain.sh.
19299 if test -f "$ltmain"; then
19300 # See if we are running on zsh, and set the options which allow our commands through
19301 # without removal of \ escapes.
19302 if test -n "${ZSH_VERSION+set}" ; then
19303 setopt NO_GLOB_SUBST
19304 fi
19305 # Now quote all the things that may contain metacharacters while being
19306 # careful not to overquote the AC_SUBSTed values. We take copies of the
19307 # variables and quote the copies for generation of the libtool script.
19308 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19309 SED SHELL STRIP \
19310 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19311 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19312 deplibs_check_method reload_flag reload_cmds need_locks \
19313 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19314 lt_cv_sys_global_symbol_to_c_name_address \
19315 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19316 old_postinstall_cmds old_postuninstall_cmds \
19317 compiler_GCJ \
19318 CC_GCJ \
19319 LD_GCJ \
19320 lt_prog_compiler_wl_GCJ \
19321 lt_prog_compiler_pic_GCJ \
19322 lt_prog_compiler_static_GCJ \
19323 lt_prog_compiler_no_builtin_flag_GCJ \
19324 export_dynamic_flag_spec_GCJ \
19325 thread_safe_flag_spec_GCJ \
19326 whole_archive_flag_spec_GCJ \
19327 enable_shared_with_static_runtimes_GCJ \
19328 old_archive_cmds_GCJ \
19329 old_archive_from_new_cmds_GCJ \
19330 predep_objects_GCJ \
19331 postdep_objects_GCJ \
19332 predeps_GCJ \
19333 postdeps_GCJ \
19334 compiler_lib_search_path_GCJ \
19335 archive_cmds_GCJ \
19336 archive_expsym_cmds_GCJ \
19337 postinstall_cmds_GCJ \
19338 postuninstall_cmds_GCJ \
19339 old_archive_from_expsyms_cmds_GCJ \
19340 allow_undefined_flag_GCJ \
19341 no_undefined_flag_GCJ \
19342 export_symbols_cmds_GCJ \
19343 hardcode_libdir_flag_spec_GCJ \
19344 hardcode_libdir_flag_spec_ld_GCJ \
19345 hardcode_libdir_separator_GCJ \
19346 hardcode_automatic_GCJ \
19347 module_cmds_GCJ \
19348 module_expsym_cmds_GCJ \
19349 lt_cv_prog_compiler_c_o_GCJ \
19350 exclude_expsyms_GCJ \
19351 include_expsyms_GCJ; do
19352
19353 case $var in
19354 old_archive_cmds_GCJ | \
19355 old_archive_from_new_cmds_GCJ | \
19356 archive_cmds_GCJ | \
19357 archive_expsym_cmds_GCJ | \
19358 module_cmds_GCJ | \
19359 module_expsym_cmds_GCJ | \
19360 old_archive_from_expsyms_cmds_GCJ | \
19361 export_symbols_cmds_GCJ | \
19362 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19363 postinstall_cmds | postuninstall_cmds | \
19364 old_postinstall_cmds | old_postuninstall_cmds | \
19365 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19366 # Double-quote double-evaled strings.
19367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19368 ;;
19369 *)
19370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19371 ;;
19372 esac
19373 done
19374
19375 case $lt_echo in
19376 *'\$0 --fallback-echo"')
19377 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19378 ;;
19379 esac
19380
19381 cfgfile="$ofile"
19382
19383 cat <<__EOF__ >> "$cfgfile"
19384 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19385
19386 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19387
19388 # Shell to use when invoking shell scripts.
19389 SHELL=$lt_SHELL
19390
19391 # Whether or not to build shared libraries.
19392 build_libtool_libs=$enable_shared
19393
19394 # Whether or not to build static libraries.
19395 build_old_libs=$enable_static
19396
19397 # Whether or not to add -lc for building shared libraries.
19398 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19399
19400 # Whether or not to disallow shared libs when runtime libs are static
19401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19402
19403 # Whether or not to optimize for fast installation.
19404 fast_install=$enable_fast_install
19405
19406 # The host system.
19407 host_alias=$host_alias
19408 host=$host
19409 host_os=$host_os
19410
19411 # The build system.
19412 build_alias=$build_alias
19413 build=$build
19414 build_os=$build_os
19415
19416 # An echo program that does not interpret backslashes.
19417 echo=$lt_echo
19418
19419 # The archiver.
19420 AR=$lt_AR
19421 AR_FLAGS=$lt_AR_FLAGS
19422
19423 # A C compiler.
19424 LTCC=$lt_LTCC
19425
19426 # LTCC compiler flags.
19427 LTCFLAGS=$lt_LTCFLAGS
19428
19429 # A language-specific compiler.
19430 CC=$lt_compiler_GCJ
19431
19432 # Is the compiler the GNU C compiler?
19433 with_gcc=$GCC_GCJ
19434
19435 # An ERE matcher.
19436 EGREP=$lt_EGREP
19437
19438 # The linker used to build libraries.
19439 LD=$lt_LD_GCJ
19440
19441 # Whether we need hard or soft links.
19442 LN_S=$lt_LN_S
19443
19444 # A BSD-compatible nm program.
19445 NM=$lt_NM
19446
19447 # A symbol stripping program
19448 STRIP=$lt_STRIP
19449
19450 # Used to examine libraries when file_magic_cmd begins "file"
19451 MAGIC_CMD=$MAGIC_CMD
19452
19453 # Used on cygwin: DLL creation program.
19454 DLLTOOL="$DLLTOOL"
19455
19456 # Used on cygwin: object dumper.
19457 OBJDUMP="$OBJDUMP"
19458
19459 # Used on cygwin: assembler.
19460 AS="$AS"
19461
19462 # The name of the directory that contains temporary libtool files.
19463 objdir=$objdir
19464
19465 # How to create reloadable object files.
19466 reload_flag=$lt_reload_flag
19467 reload_cmds=$lt_reload_cmds
19468
19469 # How to pass a linker flag through the compiler.
19470 wl=$lt_lt_prog_compiler_wl_GCJ
19471
19472 # Object file suffix (normally "o").
19473 objext="$ac_objext"
19474
19475 # Old archive suffix (normally "a").
19476 libext="$libext"
19477
19478 # Shared library suffix (normally ".so").
19479 shrext_cmds='$shrext_cmds'
19480
19481 # Executable file suffix (normally "").
19482 exeext="$exeext"
19483
19484 # Additional compiler flags for building library objects.
19485 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19486 pic_mode=$pic_mode
19487
19488 # What is the maximum length of a command?
19489 max_cmd_len=$lt_cv_sys_max_cmd_len
19490
19491 # Does compiler simultaneously support -c and -o options?
19492 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19493
19494 # Must we lock files when doing compilation?
19495 need_locks=$lt_need_locks
19496
19497 # Do we need the lib prefix for modules?
19498 need_lib_prefix=$need_lib_prefix
19499
19500 # Do we need a version for libraries?
19501 need_version=$need_version
19502
19503 # Whether dlopen is supported.
19504 dlopen_support=$enable_dlopen
19505
19506 # Whether dlopen of programs is supported.
19507 dlopen_self=$enable_dlopen_self
19508
19509 # Whether dlopen of statically linked programs is supported.
19510 dlopen_self_static=$enable_dlopen_self_static
19511
19512 # Compiler flag to prevent dynamic linking.
19513 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19514
19515 # Compiler flag to turn off builtin functions.
19516 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19517
19518 # Compiler flag to allow reflexive dlopens.
19519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19520
19521 # Compiler flag to generate shared objects directly from archives.
19522 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19523
19524 # Compiler flag to generate thread-safe objects.
19525 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19526
19527 # Library versioning type.
19528 version_type=$version_type
19529
19530 # Format of library name prefix.
19531 libname_spec=$lt_libname_spec
19532
19533 # List of archive names. First name is the real one, the rest are links.
19534 # The last name is the one that the linker finds with -lNAME.
19535 library_names_spec=$lt_library_names_spec
19536
19537 # The coded name of the library, if different from the real name.
19538 soname_spec=$lt_soname_spec
19539
19540 # Commands used to build and install an old-style archive.
19541 RANLIB=$lt_RANLIB
19542 old_archive_cmds=$lt_old_archive_cmds_GCJ
19543 old_postinstall_cmds=$lt_old_postinstall_cmds
19544 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19545
19546 # Create an old-style archive from a shared archive.
19547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19548
19549 # Create a temporary old-style archive to link instead of a shared archive.
19550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19551
19552 # Commands used to build and install a shared archive.
19553 archive_cmds=$lt_archive_cmds_GCJ
19554 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19555 postinstall_cmds=$lt_postinstall_cmds
19556 postuninstall_cmds=$lt_postuninstall_cmds
19557
19558 # Commands used to build a loadable module (assumed same as above if empty)
19559 module_cmds=$lt_module_cmds_GCJ
19560 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19561
19562 # Commands to strip libraries.
19563 old_striplib=$lt_old_striplib
19564 striplib=$lt_striplib
19565
19566 # Dependencies to place before the objects being linked to create a
19567 # shared library.
19568 predep_objects=$lt_predep_objects_GCJ
19569
19570 # Dependencies to place after the objects being linked to create a
19571 # shared library.
19572 postdep_objects=$lt_postdep_objects_GCJ
19573
19574 # Dependencies to place before the objects being linked to create a
19575 # shared library.
19576 predeps=$lt_predeps_GCJ
19577
19578 # Dependencies to place after the objects being linked to create a
19579 # shared library.
19580 postdeps=$lt_postdeps_GCJ
19581
19582 # The library search path used internally by the compiler when linking
19583 # a shared library.
19584 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19585
19586 # Method to check whether dependent libraries are shared objects.
19587 deplibs_check_method=$lt_deplibs_check_method
19588
19589 # Command to use when deplibs_check_method == file_magic.
19590 file_magic_cmd=$lt_file_magic_cmd
19591
19592 # Flag that allows shared libraries with undefined symbols to be built.
19593 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19594
19595 # Flag that forces no undefined symbols.
19596 no_undefined_flag=$lt_no_undefined_flag_GCJ
19597
19598 # Commands used to finish a libtool library installation in a directory.
19599 finish_cmds=$lt_finish_cmds
19600
19601 # Same as above, but a single script fragment to be evaled but not shown.
19602 finish_eval=$lt_finish_eval
19603
19604 # Take the output of nm and produce a listing of raw symbols and C names.
19605 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19606
19607 # Transform the output of nm in a proper C declaration
19608 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19609
19610 # Transform the output of nm in a C name address pair
19611 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19612
19613 # This is the shared library runtime path variable.
19614 runpath_var=$runpath_var
19615
19616 # This is the shared library path variable.
19617 shlibpath_var=$shlibpath_var
19618
19619 # Is shlibpath searched before the hard-coded library search path?
19620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19621
19622 # How to hardcode a shared library path into an executable.
19623 hardcode_action=$hardcode_action_GCJ
19624
19625 # Whether we should hardcode library paths into libraries.
19626 hardcode_into_libs=$hardcode_into_libs
19627
19628 # Flag to hardcode \$libdir into a binary during linking.
19629 # This must work even if \$libdir does not exist.
19630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19631
19632 # If ld is used when linking, flag to hardcode \$libdir into
19633 # a binary during linking. This must work even if \$libdir does
19634 # not exist.
19635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19636
19637 # Whether we need a single -rpath flag with a separated argument.
19638 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19639
19640 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19641 # resulting binary.
19642 hardcode_direct=$hardcode_direct_GCJ
19643
19644 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19645 # resulting binary.
19646 hardcode_minus_L=$hardcode_minus_L_GCJ
19647
19648 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19649 # the resulting binary.
19650 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19651
19652 # Set to yes if building a shared library automatically hardcodes DIR into the library
19653 # and all subsequent libraries and executables linked against it.
19654 hardcode_automatic=$hardcode_automatic_GCJ
19655
19656 # Variables whose values should be saved in libtool wrapper scripts and
19657 # restored at relink time.
19658 variables_saved_for_relink="$variables_saved_for_relink"
19659
19660 # Whether libtool must link a program against all its dependency libraries.
19661 link_all_deplibs=$link_all_deplibs_GCJ
19662
19663 # Compile-time system search path for libraries
19664 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19665
19666 # Run-time system search path for libraries
19667 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19668
19669 # Fix the shell variable \$srcfile for the compiler.
19670 fix_srcfile_path="$fix_srcfile_path_GCJ"
19671
19672 # Set to yes if exported symbols are required.
19673 always_export_symbols=$always_export_symbols_GCJ
19674
19675 # The commands to list exported symbols.
19676 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19677
19678 # The commands to extract the exported symbol list from a shared archive.
19679 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19680
19681 # Symbols that should not be listed in the preloaded symbols.
19682 exclude_expsyms=$lt_exclude_expsyms_GCJ
19683
19684 # Symbols that must always be exported.
19685 include_expsyms=$lt_include_expsyms_GCJ
19686
19687 # ### END LIBTOOL TAG CONFIG: $tagname
19688
19689 __EOF__
19690
19691
19692 else
19693 # If there is no Makefile yet, we rely on a make rule to execute
19694 # `config.status --recheck' to rerun these tests and create the
19695 # libtool script then.
19696 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19697 if test -f "$ltmain_in"; then
19698 test -f Makefile && make "$ltmain"
19699 fi
19700 fi
19701
19702
19703 ac_ext=c
19704 ac_cpp='$CPP $CPPFLAGS'
19705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19708
19709 CC="$lt_save_CC"
19710
19711 else
19712 tagname=""
19713 fi
19714 ;;
19715
19716 RC)
19717
19718
19719
19720 # Source file extension for RC test sources.
19721 ac_ext=rc
19722
19723 # Object file extension for compiled RC test sources.
19724 objext=o
19725 objext_RC=$objext
19726
19727 # Code to be used in simple compile tests
19728 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19729
19730 # Code to be used in simple link tests
19731 lt_simple_link_test_code="$lt_simple_compile_test_code"
19732
19733 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19734
19735 # If no C compiler was specified, use CC.
19736 LTCC=${LTCC-"$CC"}
19737
19738 # If no C compiler flags were specified, use CFLAGS.
19739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19740
19741 # Allow CC to be a program name with arguments.
19742 compiler=$CC
19743
19744
19745 # save warnings/boilerplate of simple test code
19746 ac_outfile=conftest.$ac_objext
19747 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19748 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19749 _lt_compiler_boilerplate=`cat conftest.err`
19750 $rm conftest*
19751
19752 ac_outfile=conftest.$ac_objext
19753 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19754 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19755 _lt_linker_boilerplate=`cat conftest.err`
19756 $rm conftest*
19757
19758
19759 # Allow CC to be a program name with arguments.
19760 lt_save_CC="$CC"
19761 CC=${RC-"windres"}
19762 compiler=$CC
19763 compiler_RC=$CC
19764 for cc_temp in $compiler""; do
19765 case $cc_temp in
19766 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19767 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19768 \-*) ;;
19769 *) break;;
19770 esac
19771 done
19772 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19773
19774 lt_cv_prog_compiler_c_o_RC=yes
19775
19776 # The else clause should only fire when bootstrapping the
19777 # libtool distribution, otherwise you forgot to ship ltmain.sh
19778 # with your package, and you will get complaints that there are
19779 # no rules to generate ltmain.sh.
19780 if test -f "$ltmain"; then
19781 # See if we are running on zsh, and set the options which allow our commands through
19782 # without removal of \ escapes.
19783 if test -n "${ZSH_VERSION+set}" ; then
19784 setopt NO_GLOB_SUBST
19785 fi
19786 # Now quote all the things that may contain metacharacters while being
19787 # careful not to overquote the AC_SUBSTed values. We take copies of the
19788 # variables and quote the copies for generation of the libtool script.
19789 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19790 SED SHELL STRIP \
19791 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19792 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19793 deplibs_check_method reload_flag reload_cmds need_locks \
19794 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19795 lt_cv_sys_global_symbol_to_c_name_address \
19796 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19797 old_postinstall_cmds old_postuninstall_cmds \
19798 compiler_RC \
19799 CC_RC \
19800 LD_RC \
19801 lt_prog_compiler_wl_RC \
19802 lt_prog_compiler_pic_RC \
19803 lt_prog_compiler_static_RC \
19804 lt_prog_compiler_no_builtin_flag_RC \
19805 export_dynamic_flag_spec_RC \
19806 thread_safe_flag_spec_RC \
19807 whole_archive_flag_spec_RC \
19808 enable_shared_with_static_runtimes_RC \
19809 old_archive_cmds_RC \
19810 old_archive_from_new_cmds_RC \
19811 predep_objects_RC \
19812 postdep_objects_RC \
19813 predeps_RC \
19814 postdeps_RC \
19815 compiler_lib_search_path_RC \
19816 archive_cmds_RC \
19817 archive_expsym_cmds_RC \
19818 postinstall_cmds_RC \
19819 postuninstall_cmds_RC \
19820 old_archive_from_expsyms_cmds_RC \
19821 allow_undefined_flag_RC \
19822 no_undefined_flag_RC \
19823 export_symbols_cmds_RC \
19824 hardcode_libdir_flag_spec_RC \
19825 hardcode_libdir_flag_spec_ld_RC \
19826 hardcode_libdir_separator_RC \
19827 hardcode_automatic_RC \
19828 module_cmds_RC \
19829 module_expsym_cmds_RC \
19830 lt_cv_prog_compiler_c_o_RC \
19831 exclude_expsyms_RC \
19832 include_expsyms_RC; do
19833
19834 case $var in
19835 old_archive_cmds_RC | \
19836 old_archive_from_new_cmds_RC | \
19837 archive_cmds_RC | \
19838 archive_expsym_cmds_RC | \
19839 module_cmds_RC | \
19840 module_expsym_cmds_RC | \
19841 old_archive_from_expsyms_cmds_RC | \
19842 export_symbols_cmds_RC | \
19843 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19844 postinstall_cmds | postuninstall_cmds | \
19845 old_postinstall_cmds | old_postuninstall_cmds | \
19846 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19847 # Double-quote double-evaled strings.
19848 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19849 ;;
19850 *)
19851 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19852 ;;
19853 esac
19854 done
19855
19856 case $lt_echo in
19857 *'\$0 --fallback-echo"')
19858 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19859 ;;
19860 esac
19861
19862 cfgfile="$ofile"
19863
19864 cat <<__EOF__ >> "$cfgfile"
19865 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19866
19867 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19868
19869 # Shell to use when invoking shell scripts.
19870 SHELL=$lt_SHELL
19871
19872 # Whether or not to build shared libraries.
19873 build_libtool_libs=$enable_shared
19874
19875 # Whether or not to build static libraries.
19876 build_old_libs=$enable_static
19877
19878 # Whether or not to add -lc for building shared libraries.
19879 build_libtool_need_lc=$archive_cmds_need_lc_RC
19880
19881 # Whether or not to disallow shared libs when runtime libs are static
19882 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19883
19884 # Whether or not to optimize for fast installation.
19885 fast_install=$enable_fast_install
19886
19887 # The host system.
19888 host_alias=$host_alias
19889 host=$host
19890 host_os=$host_os
19891
19892 # The build system.
19893 build_alias=$build_alias
19894 build=$build
19895 build_os=$build_os
19896
19897 # An echo program that does not interpret backslashes.
19898 echo=$lt_echo
19899
19900 # The archiver.
19901 AR=$lt_AR
19902 AR_FLAGS=$lt_AR_FLAGS
19903
19904 # A C compiler.
19905 LTCC=$lt_LTCC
19906
19907 # LTCC compiler flags.
19908 LTCFLAGS=$lt_LTCFLAGS
19909
19910 # A language-specific compiler.
19911 CC=$lt_compiler_RC
19912
19913 # Is the compiler the GNU C compiler?
19914 with_gcc=$GCC_RC
19915
19916 # An ERE matcher.
19917 EGREP=$lt_EGREP
19918
19919 # The linker used to build libraries.
19920 LD=$lt_LD_RC
19921
19922 # Whether we need hard or soft links.
19923 LN_S=$lt_LN_S
19924
19925 # A BSD-compatible nm program.
19926 NM=$lt_NM
19927
19928 # A symbol stripping program
19929 STRIP=$lt_STRIP
19930
19931 # Used to examine libraries when file_magic_cmd begins "file"
19932 MAGIC_CMD=$MAGIC_CMD
19933
19934 # Used on cygwin: DLL creation program.
19935 DLLTOOL="$DLLTOOL"
19936
19937 # Used on cygwin: object dumper.
19938 OBJDUMP="$OBJDUMP"
19939
19940 # Used on cygwin: assembler.
19941 AS="$AS"
19942
19943 # The name of the directory that contains temporary libtool files.
19944 objdir=$objdir
19945
19946 # How to create reloadable object files.
19947 reload_flag=$lt_reload_flag
19948 reload_cmds=$lt_reload_cmds
19949
19950 # How to pass a linker flag through the compiler.
19951 wl=$lt_lt_prog_compiler_wl_RC
19952
19953 # Object file suffix (normally "o").
19954 objext="$ac_objext"
19955
19956 # Old archive suffix (normally "a").
19957 libext="$libext"
19958
19959 # Shared library suffix (normally ".so").
19960 shrext_cmds='$shrext_cmds'
19961
19962 # Executable file suffix (normally "").
19963 exeext="$exeext"
19964
19965 # Additional compiler flags for building library objects.
19966 pic_flag=$lt_lt_prog_compiler_pic_RC
19967 pic_mode=$pic_mode
19968
19969 # What is the maximum length of a command?
19970 max_cmd_len=$lt_cv_sys_max_cmd_len
19971
19972 # Does compiler simultaneously support -c and -o options?
19973 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19974
19975 # Must we lock files when doing compilation?
19976 need_locks=$lt_need_locks
19977
19978 # Do we need the lib prefix for modules?
19979 need_lib_prefix=$need_lib_prefix
19980
19981 # Do we need a version for libraries?
19982 need_version=$need_version
19983
19984 # Whether dlopen is supported.
19985 dlopen_support=$enable_dlopen
19986
19987 # Whether dlopen of programs is supported.
19988 dlopen_self=$enable_dlopen_self
19989
19990 # Whether dlopen of statically linked programs is supported.
19991 dlopen_self_static=$enable_dlopen_self_static
19992
19993 # Compiler flag to prevent dynamic linking.
19994 link_static_flag=$lt_lt_prog_compiler_static_RC
19995
19996 # Compiler flag to turn off builtin functions.
19997 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19998
19999 # Compiler flag to allow reflexive dlopens.
20000 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20001
20002 # Compiler flag to generate shared objects directly from archives.
20003 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20004
20005 # Compiler flag to generate thread-safe objects.
20006 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20007
20008 # Library versioning type.
20009 version_type=$version_type
20010
20011 # Format of library name prefix.
20012 libname_spec=$lt_libname_spec
20013
20014 # List of archive names. First name is the real one, the rest are links.
20015 # The last name is the one that the linker finds with -lNAME.
20016 library_names_spec=$lt_library_names_spec
20017
20018 # The coded name of the library, if different from the real name.
20019 soname_spec=$lt_soname_spec
20020
20021 # Commands used to build and install an old-style archive.
20022 RANLIB=$lt_RANLIB
20023 old_archive_cmds=$lt_old_archive_cmds_RC
20024 old_postinstall_cmds=$lt_old_postinstall_cmds
20025 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20026
20027 # Create an old-style archive from a shared archive.
20028 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20029
20030 # Create a temporary old-style archive to link instead of a shared archive.
20031 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20032
20033 # Commands used to build and install a shared archive.
20034 archive_cmds=$lt_archive_cmds_RC
20035 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20036 postinstall_cmds=$lt_postinstall_cmds
20037 postuninstall_cmds=$lt_postuninstall_cmds
20038
20039 # Commands used to build a loadable module (assumed same as above if empty)
20040 module_cmds=$lt_module_cmds_RC
20041 module_expsym_cmds=$lt_module_expsym_cmds_RC
20042
20043 # Commands to strip libraries.
20044 old_striplib=$lt_old_striplib
20045 striplib=$lt_striplib
20046
20047 # Dependencies to place before the objects being linked to create a
20048 # shared library.
20049 predep_objects=$lt_predep_objects_RC
20050
20051 # Dependencies to place after the objects being linked to create a
20052 # shared library.
20053 postdep_objects=$lt_postdep_objects_RC
20054
20055 # Dependencies to place before the objects being linked to create a
20056 # shared library.
20057 predeps=$lt_predeps_RC
20058
20059 # Dependencies to place after the objects being linked to create a
20060 # shared library.
20061 postdeps=$lt_postdeps_RC
20062
20063 # The library search path used internally by the compiler when linking
20064 # a shared library.
20065 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20066
20067 # Method to check whether dependent libraries are shared objects.
20068 deplibs_check_method=$lt_deplibs_check_method
20069
20070 # Command to use when deplibs_check_method == file_magic.
20071 file_magic_cmd=$lt_file_magic_cmd
20072
20073 # Flag that allows shared libraries with undefined symbols to be built.
20074 allow_undefined_flag=$lt_allow_undefined_flag_RC
20075
20076 # Flag that forces no undefined symbols.
20077 no_undefined_flag=$lt_no_undefined_flag_RC
20078
20079 # Commands used to finish a libtool library installation in a directory.
20080 finish_cmds=$lt_finish_cmds
20081
20082 # Same as above, but a single script fragment to be evaled but not shown.
20083 finish_eval=$lt_finish_eval
20084
20085 # Take the output of nm and produce a listing of raw symbols and C names.
20086 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20087
20088 # Transform the output of nm in a proper C declaration
20089 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20090
20091 # Transform the output of nm in a C name address pair
20092 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20093
20094 # This is the shared library runtime path variable.
20095 runpath_var=$runpath_var
20096
20097 # This is the shared library path variable.
20098 shlibpath_var=$shlibpath_var
20099
20100 # Is shlibpath searched before the hard-coded library search path?
20101 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20102
20103 # How to hardcode a shared library path into an executable.
20104 hardcode_action=$hardcode_action_RC
20105
20106 # Whether we should hardcode library paths into libraries.
20107 hardcode_into_libs=$hardcode_into_libs
20108
20109 # Flag to hardcode \$libdir into a binary during linking.
20110 # This must work even if \$libdir does not exist.
20111 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20112
20113 # If ld is used when linking, flag to hardcode \$libdir into
20114 # a binary during linking. This must work even if \$libdir does
20115 # not exist.
20116 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20117
20118 # Whether we need a single -rpath flag with a separated argument.
20119 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20120
20121 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20122 # resulting binary.
20123 hardcode_direct=$hardcode_direct_RC
20124
20125 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20126 # resulting binary.
20127 hardcode_minus_L=$hardcode_minus_L_RC
20128
20129 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20130 # the resulting binary.
20131 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20132
20133 # Set to yes if building a shared library automatically hardcodes DIR into the library
20134 # and all subsequent libraries and executables linked against it.
20135 hardcode_automatic=$hardcode_automatic_RC
20136
20137 # Variables whose values should be saved in libtool wrapper scripts and
20138 # restored at relink time.
20139 variables_saved_for_relink="$variables_saved_for_relink"
20140
20141 # Whether libtool must link a program against all its dependency libraries.
20142 link_all_deplibs=$link_all_deplibs_RC
20143
20144 # Compile-time system search path for libraries
20145 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20146
20147 # Run-time system search path for libraries
20148 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20149
20150 # Fix the shell variable \$srcfile for the compiler.
20151 fix_srcfile_path="$fix_srcfile_path_RC"
20152
20153 # Set to yes if exported symbols are required.
20154 always_export_symbols=$always_export_symbols_RC
20155
20156 # The commands to list exported symbols.
20157 export_symbols_cmds=$lt_export_symbols_cmds_RC
20158
20159 # The commands to extract the exported symbol list from a shared archive.
20160 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20161
20162 # Symbols that should not be listed in the preloaded symbols.
20163 exclude_expsyms=$lt_exclude_expsyms_RC
20164
20165 # Symbols that must always be exported.
20166 include_expsyms=$lt_include_expsyms_RC
20167
20168 # ### END LIBTOOL TAG CONFIG: $tagname
20169
20170 __EOF__
20171
20172
20173 else
20174 # If there is no Makefile yet, we rely on a make rule to execute
20175 # `config.status --recheck' to rerun these tests and create the
20176 # libtool script then.
20177 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20178 if test -f "$ltmain_in"; then
20179 test -f Makefile && make "$ltmain"
20180 fi
20181 fi
20182
20183
20184 ac_ext=c
20185 ac_cpp='$CPP $CPPFLAGS'
20186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20189
20190 CC="$lt_save_CC"
20191
20192 ;;
20193
20194 *)
20195 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20196 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20197 { (exit 1); exit 1; }; }
20198 ;;
20199 esac
20200
20201 # Append the new tag name to the list of available tags.
20202 if test -n "$tagname" ; then
20203 available_tags="$available_tags $tagname"
20204 fi
20205 fi
20206 done
20207 IFS="$lt_save_ifs"
20208
20209 # Now substitute the updated list of available tags.
20210 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20211 mv "${ofile}T" "$ofile"
20212 chmod +x "$ofile"
20213 else
20214 rm -f "${ofile}T"
20215 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20216 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20217 { (exit 1); exit 1; }; }
20218 fi
20219 fi
20220
20221
20222
20223 # This can be used to rebuild libtool when needed
20224 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20225
20226 # Always use our own libtool.
20227 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20228
20229 # Prevent multiple expansion
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241 # No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20242 # AC_REQUIRE([AC_COIN_DLFCN_H])
20243
20244 # NEW: If libtool exists in the directory higher up, we use that one
20245 # instead of creating a new one
20246
20247 # It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20248 # out in front of this macro body. You'll notice that LIBTOOL is already
20249 # defined here. We'll have to count on this macro not being called if libtool
20250 # already exists, or at least move the libtool fixes outside the conditional.
20251 # AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20252 # This test is therefore removed. -- lh, 061214 --
20253 # if test "x$LIBTOOL" = x; then
20254
20255 # AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265 # AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20266
20267
20268
20269 { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20270 echo "$as_me: Build is \"$build\"." >&6;}
20271 # Extract the first word of "dos2unix", so it can be a program name with args.
20272 set dummy dos2unix; ac_word=$2
20273 echo "$as_me:$LINENO: checking for $ac_word" >&5
20274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20275 if test "${ac_cv_prog_dos2unix+set}" = set; then
20276 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 else
20278 if test -n "$dos2unix"; then
20279 ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test.
20280 else
20281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20282 for as_dir in $PATH
20283 do
20284 IFS=$as_save_IFS
20285 test -z "$as_dir" && as_dir=.
20286 for ac_exec_ext in '' $ac_executable_extensions; do
20287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20288 ac_cv_prog_dos2unix="dos2unix"
20289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20290 break 2
20291 fi
20292 done
20293 done
20294
20295 fi
20296 fi
20297 dos2unix=$ac_cv_prog_dos2unix
20298 if test -n "$dos2unix"; then
20299 echo "$as_me:$LINENO: result: $dos2unix" >&5
20300 echo "${ECHO_T}$dos2unix" >&6
20301 else
20302 echo "$as_me:$LINENO: result: no" >&5
20303 echo "${ECHO_T}no" >&6
20304 fi
20305
20306 if test "$dos2unix" = dos2unix ; then
20307 mydos2unix="| dos2unix"
20308 fi
20309 case $build in
20310 *-mingw*)
20311 CYGPATH_W=echo
20312 ;;
20313 esac
20314
20315 case $build in
20316 # Here we need to check if -m32 is specified. If so, we need to correct
20317 # sys_lib_search_path_spec
20318 *-cygwin* | *-mingw*)
20319 case "$CXX" in
20320 clang* | */clang* )
20321 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20322 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20323 echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20324 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20325 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20326 -e 's|libext="lib"|libext="a"|' \
20327 libtool > conftest.bla
20328 ;;
20329 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20330 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20331 echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20332 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20333 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20334 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20335 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20336 -e 's%lib /OUT:%lib -OUT:%' \
20337 -e "s%cygpath -w%$CYGPATH_W%" \
20338 -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\$(lib -nologo -list \\$('"$CYGPATH_W \$1"') '"$mydos2unix"' | xargs echo); echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$('"$CYGPATH_W \$1"'); done%' \
20339 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20340 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20341 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20342 -e 's%old_archive_cmds="lib -OUT:\\$oldlib\\$oldobjs\\$old_deplibs"%old_archive_cmds="if test -r \\$oldlib; then bla=\\"\\$oldlib\\"; else bla=; fi; lib -OUT:\\$oldlib \\\\\\$bla\\$oldobjs\\$old_deplibs"%' \
20343 libtool > conftest.bla
20344 ;;
20345 *)
20346 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20347 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20348 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20349 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20350 -e 's|libext="lib"|libext="a"|' \
20351 libtool > conftest.bla
20352 ;;
20353 esac
20354 mv conftest.bla libtool
20355 chmod 755 libtool
20356
20357 ;;
20358 *x86_64-*)
20359 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20360 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20361 echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20362 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20363 mv conftest.bla libtool
20364 chmod 755 libtool
20365 fi
20366 ;;
20367
20368 *-solaris*)
20369 if test "$GCC" = yes && \
20370 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20371 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20372 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20373 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20374 echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20375 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20376 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20377 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20378 # AC_MSG_NOTICE(Compensating for broken gcc)
20379 for lib in $fixlibtmp ; do
20380 if test -d "${lib}${hdwisa}" ; then
20381 syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20382 fi
20383 done
20384 syslibpath64="${syslibpath64} ${fixlibtmp}"
20385 else
20386 syslibpath64="$fixlibtmp"
20387 fi
20388 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20389 mv conftest.bla libtool
20390 chmod 755 libtool
20391 fi
20392 # AC_MSG_NOTICE(Result is )
20393 # $EGREP 'sys_lib_search_path_spec=' libtool
20394 fi
20395 ;;
20396 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20397 *-darwin*)
20398 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20399 echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20400 sed -e 's/verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"/verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"/' \
20401 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20402 libtool > conftest.bla
20403
20404 mv conftest.bla libtool
20405 chmod 755 libtool
20406 ;;
20407 esac
20408 # This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20409 # the macro. -- lh, 061214 --
20410 # fi
20411
20412 # AC_MSG_NOTICE([End libtool initialisation.])
20413
20414 # AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20415 # set RPATH_FLAGS to the compiler link flags required to hardcode location
20416 # of the shared objects
20417 RPATH_FLAGS=
20418
20419 if test $enable_shared = yes; then
20420 case $build in
20421 *-linux-*)
20422 if test "$GXX" = "yes"; then
20423 RPATH_FLAGS=
20424 for dir in $abs_lib_dir; do
20425 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20426 done
20427 fi ;;
20428 *-darwin*)
20429 RPATH_FLAGS=nothing ;;
20430 *-ibm-*)
20431 case "$CXX" in
20432 xlC* | */xlC* | mpxlC* | */mpxlC*)
20433 RPATH_FLAGS=nothing ;;
20434 esac ;;
20435 *-hp-*)
20436 RPATH_FLAGS=nothing ;;
20437 *-mingw32)
20438 RPATH_FLAGS=nothing ;;
20439 *-*-solaris*)
20440 RPATH_FLAGS=
20441 for dir in $abs_lib_dir; do
20442 RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20443 done
20444 esac
20445
20446 if test "$RPATH_FLAGS" = ""; then
20447 { echo "$as_me:$LINENO: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries. The test examples might not work if you link against shared objects. You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&5
20448 echo "$as_me: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries. The test examples might not work if you link against shared objects. You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&2;}
20449 fi
20450 if test "$RPATH_FLAGS" = "nothing"; then
20451 RPATH_FLAGS=
20452 fi
20453 fi
20454
20455
20456
20457
20458 else
20459
20460 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20461 echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20462 # get all missing information from the config.log file
20463
20464 # output variables and defines
20465 as_save_IFS=$IFS
20466 IFS='
20467 '
20468 for oneline in `cat $coin_config_dir/config.status`; do
20469 case "$oneline" in
20470 # First some automake conditionals
20471 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \
20472 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20473 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20474 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* )
20475 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20476 # echo "$command"
20477 eval "$command"
20478 ;;
20479 s,@DEFS@* )
20480 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20481 # echo "$command"
20482 eval "$command"
20483 ;;
20484 esac
20485 done
20486 IFS=$as_save_IFS
20487
20488 # And some defines (assuming here that the packages base dir
20489 # doesn't have a config.h file
20490 for word in $defsline; do
20491 # echo word $word
20492 case $word in
20493 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20494 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20495 # echo dd $i
20496 echo $i >>confdefs.h
20497 ;;
20498 esac
20499 done
20500 fi
20501
20502 # AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20503
20504 # Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20505 if test "${enable_dependency_linking+set}" = set; then
20506 enableval="$enable_dependency_linking"
20507 dependency_linking="$enableval"
20508 else
20509 dependency_linking=auto
20510 fi;
20511
20512 if test "$dependency_linking" = auto; then
20513 # On Cygwin and AIX, building DLLs doesn't work
20514 dependency_linking=no
20515 if test x"$coin_disable_shared" = xno; then
20516 case $build in
20517 *-cygwin* | *-mingw*)
20518 case "$CC" in
20519 clang* | */clang* )
20520 dependency_linking=yes
20521 ;;
20522 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20523 dependency_linking=no
20524 ;;
20525 *gcc*)
20526 dependency_linking=yes
20527 ;;
20528 *)
20529 dependency_linking=yes
20530 ;;
20531 esac
20532 ;;
20533 *)
20534 dependency_linking=yes
20535 ;;
20536 esac
20537 fi
20538 fi
20539
20540 # Set up LT_LDFLAGS, user can initialize and we augment below
20541
20542
20543 if test "$dependency_linking" = yes ;
20544 then
20545 LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
20546 else
20547 LT_LDFLAGS="$LT_LDFLAGS"
20548 fi
20549
20550
20551
20552 if test "$dependency_linking" = yes; then
20553 DEPENDENCY_LINKING_TRUE=
20554 DEPENDENCY_LINKING_FALSE='#'
20555 else
20556 DEPENDENCY_LINKING_TRUE='#'
20557 DEPENDENCY_LINKING_FALSE=
20558 fi
20559
20560
20561 # Check if we want to set the library version
20562 echo "$as_me:$LINENO: checking if library version is set" >&5
20563 echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20564 if test x"$coin_libversion" != x; then
20565 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20566 echo "$as_me:$LINENO: result: $coin_libversion" >&5
20567 echo "${ECHO_T}$coin_libversion" >&6
20568 else
20569 echo "$as_me:$LINENO: result: no" >&5
20570 echo "${ECHO_T}no" >&6
20571 fi
20572
20573
20574
20575 #END
20576 }
20577
20578 #############################################################################
20579 # COIN-OR components #
20580 #############################################################################
20581
20582
20583
20584 # Check whether --enable-pkg-config or --disable-pkg-config was given.
20585 if test "${enable_pkg_config+set}" = set; then
20586 enableval="$enable_pkg_config"
20587 use_pkgconfig="$enableval"
20588 else
20589 if test x$coin_cc_is_cl = xtrue; then
20590 use_pkgconfig=no
20591 else
20592 use_pkgconfig=yes
20593 fi
20594 fi;
20595
20596 if test $use_pkgconfig = yes ; then
20597 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20598 if test -n "$ac_tool_prefix"; then
20599 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20600 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20601 echo "$as_me:$LINENO: checking for $ac_word" >&5
20602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20603 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20605 else
20606 if test -n "$PKG_CONFIG"; then
20607 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
20608 else
20609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20610 for as_dir in $PATH
20611 do
20612 IFS=$as_save_IFS
20613 test -z "$as_dir" && as_dir=.
20614 for ac_exec_ext in '' $ac_executable_extensions; do
20615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20616 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
20617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20618 break 2
20619 fi
20620 done
20621 done
20622
20623 fi
20624 fi
20625 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
20626 if test -n "$PKG_CONFIG"; then
20627 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20628 echo "${ECHO_T}$PKG_CONFIG" >&6
20629 else
20630 echo "$as_me:$LINENO: result: no" >&5
20631 echo "${ECHO_T}no" >&6
20632 fi
20633
20634 fi
20635 if test -z "$ac_cv_prog_PKG_CONFIG"; then
20636 ac_ct_PKG_CONFIG=$PKG_CONFIG
20637 # Extract the first word of "pkg-config", so it can be a program name with args.
20638 set dummy pkg-config; ac_word=$2
20639 echo "$as_me:$LINENO: checking for $ac_word" >&5
20640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20641 if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20643 else
20644 if test -n "$ac_ct_PKG_CONFIG"; then
20645 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
20646 else
20647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20648 for as_dir in $PATH
20649 do
20650 IFS=$as_save_IFS
20651 test -z "$as_dir" && as_dir=.
20652 for ac_exec_ext in '' $ac_executable_extensions; do
20653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20654 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
20655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20656 break 2
20657 fi
20658 done
20659 done
20660
20661 fi
20662 fi
20663 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
20664 if test -n "$ac_ct_PKG_CONFIG"; then
20665 echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
20666 echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
20667 else
20668 echo "$as_me:$LINENO: result: no" >&5
20669 echo "${ECHO_T}no" >&6
20670 fi
20671
20672 PKG_CONFIG=$ac_ct_PKG_CONFIG
20673 else
20674 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
20675 fi
20676
20677 fi
20678 if test -n "$PKG_CONFIG"; then
20679 _pkg_min_version=0.16.0
20680 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20681 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20682 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20683 echo "$as_me:$LINENO: result: yes" >&5
20684 echo "${ECHO_T}yes" >&6
20685 else
20686 echo "$as_me:$LINENO: result: no" >&5
20687 echo "${ECHO_T}no" >&6
20688 PKG_CONFIG=""
20689 fi
20690 fi
20691
20692 # check if pkg-config supports the short-errors flag
20693 if test -n "$PKG_CONFIG" && \
20694 $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20695 pkg_short_errors=" --short-errors "
20696 else
20697 pkg_short_errors=""
20698 fi
20699 fi
20700
20701
20702
20703 if test -n "$PKG_CONFIG"; then
20704 COIN_HAS_PKGCONFIG_TRUE=
20705 COIN_HAS_PKGCONFIG_FALSE='#'
20706 else
20707 COIN_HAS_PKGCONFIG_TRUE='#'
20708 COIN_HAS_PKGCONFIG_FALSE=
20709 fi
20710
20711
20712
20713 # assemble pkg-config search path for installed projects
20714 COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20715
20716 # 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
20717 # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
20718 # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
20719 if test "x${prefix}" = xNONE ; then
20720 COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20721 else
20722 COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20723 fi
20724
20725
20726 # Check whether --with-coin-instdir or --without-coin-instdir was given.
20727 if test "${with_coin_instdir+set}" = set; then
20728 withval="$with_coin_instdir"
20729 if test -d "$withval"; then : ; else
20730 { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
20731 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
20732 { (exit 1); exit 1; }; }
20733 fi
20734 COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20735
20736 fi;
20737
20738
20739
20740 # assemble additional pkg-config search paths for uninstalled projects
20741 if test x$coin_projectdir = xyes ; then
20742 # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
20743 # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
20744 # unfortunately, if the user set prefix, then we do not know where the project base directory is located
20745 # 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)
20746 COIN_PKG_CONFIG_PATH_UNINSTALLED=
20747 if test -f ../coin_subdirs.txt ; then
20748 for i in `cat ../coin_subdirs.txt` ; do
20749 if test -d ../$i ; then
20750 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20751 fi
20752 if test -d ../$i/pkgconfig ; then
20753 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20754 fi
20755 done
20756 fi
20757
20758 if test -f ../../coin_subdirs.txt ; then
20759 for i in `cat ../../coin_subdirs.txt` ; do
20760 if test -d ../../$i ; then
20761 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20762 fi
20763 if test -d ../../$i/pkgconfig ; then
20764 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20765 fi
20766 done
20767 fi
20768
20769 if test -f ../../../coin_subdirs.txt ; then
20770 for i in `cat ../../../coin_subdirs.txt` ; do
20771 if test -d ../../../$i ; then
20772 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20773 fi
20774 if test -d ../../../$i/pkgconfig ; then
20775 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20776 fi
20777 done
20778 fi
20779
20780
20781 fi
20782
20783 if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
20784 { 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
20785 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;}
20786 fi
20787
20788
20789
20790 echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils" >&5
20791 echo $ECHO_N "checking for COIN-OR package CoinUtils... $ECHO_C" >&6
20792
20793 coin_has_coinutils=notGiven
20794
20795 # check if user wants to skip package in any case
20796 if test x"$COIN_SKIP_PROJECTS" != x; then
20797 for dir in $COIN_SKIP_PROJECTS; do
20798 if test $dir = "CoinUtils"; then
20799 coin_has_coinutils=skipping
20800 fi
20801 done
20802 fi
20803
20804 if test "$coin_has_coinutils" != skipping; then
20805
20806 # Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
20807 if test "${with_coinutils+set}" = set; then
20808 withval="$with_coinutils"
20809 if test "$withval" = no ; then
20810 coin_has_coinutils=skipping
20811 fi
20812
20813 fi;
20814 fi
20815
20816 COINUTILS_LIBS=
20817 COINUTILS_CFLAGS=
20818 COINUTILS_DATA=
20819 COINUTILS_DEPENDENCIES=
20820 COINUTILS_PCLIBS=
20821 COINUTILS_PCREQUIRES=
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
20840 if test $coin_has_coinutils != skipping; then
20841
20842 # Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
20843 if test "${with_coinutils_lib+set}" = set; then
20844 withval="$with_coinutils_lib"
20845 if test "$withval" = no ; then
20846 coin_has_coinutils=skipping
20847 else
20848 coin_has_coinutils=yes
20849 COINUTILS_LIBS="$withval"
20850 COINUTILS_PCLIBS="$withval"
20851
20852 CLPLIB_PCLIBS="$withval $CLPLIB_PCLIBS"
20853 CLPLIB_LIBS="$withval $CLPLIB_LIBS"
20854
20855 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20856 if test -z "$PKG_CONFIG" ; then
20857 COINUTILS_LIBS_INSTALLED="$withval"
20858 CLPLIB_LIBS_INSTALLED="$withval $CLPLIB_LIBS_INSTALLED"
20859 fi
20860 fi
20861
20862 fi;
20863 fi
20864
20865 if test $coin_has_coinutils != skipping; then
20866
20867 # Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
20868 if test "${with_coinutils_incdir+set}" = set; then
20869 withval="$with_coinutils_incdir"
20870 if test "$withval" = no ; then
20871 coin_has_coinutils=skipping
20872 else
20873 coin_has_coinutils=yes
20874 COINUTILS_CFLAGS="-I`${CYGPATH_W} $withval`"
20875 CLPLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CLPLIB_CFLAGS"
20876 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20877 if test -z "$PKG_CONFIG" ; then
20878 COINUTILS_CFLAGS_INSTALLED="$COINUTILS_CFLAGS"
20879 CLPLIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS $CLPLIB_CFLAGS_INSTALLED"
20880 fi
20881 fi
20882
20883 fi;
20884 fi
20885
20886 if test $coin_has_coinutils != skipping; then
20887
20888 # Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
20889 if test "${with_coinutils_datadir+set}" = set; then
20890 withval="$with_coinutils_datadir"
20891 if test "$withval" = no ; then
20892 coin_has_coinutils=skipping
20893 else
20894 coin_has_coinutils=yes
20895 COINUTILS_DATA="$withval"
20896 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20897 if test -z "$PKG_CONFIG" ; then
20898 COINUTILS_DATA_INSTALLED="$withval"
20899 fi
20900 fi
20901
20902 fi;
20903 fi
20904
20905 if test $coin_has_coinutils = notGiven; then
20906 if test -n "$PKG_CONFIG" ; then
20907 # set search path for pkg-config
20908 # need to export variable to be sure that the following pkg-config gets these values
20909 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20910 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
20911 export PKG_CONFIG_PATH
20912
20913 # let pkg-config do it's magic
20914
20915
20916
20917 if test -n "$PKG_CONFIG" ; then
20918 if $PKG_CONFIG --exists "coinutils"; then
20919 COINUTILS_VERSIONS=`$PKG_CONFIG --modversion "coinutils" 2>/dev/null | tr '\n' ' '`
20920 cflags=`$PKG_CONFIG --cflags "coinutils" 2>/dev/null`
20921 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
20922 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
20923 # but only do this if is not trivial
20924 if test "$CYGPATH_W" != "echo" ; then
20925 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
20926 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
20927 fi
20928 COINUTILS_CFLAGS="$cflags"
20929 COINUTILS_LIBS=`$PKG_CONFIG --libs "coinutils" 2>/dev/null`
20930 COINUTILS_DATA=`$PKG_CONFIG --variable=datadir "coinutils" 2>/dev/null`
20931 coin_has_coinutils=yes
20932 echo "$as_me:$LINENO: result: yes: $COINUTILS_VERSIONS" >&5
20933 echo "${ECHO_T}yes: $COINUTILS_VERSIONS" >&6
20934
20935 # adjust linker flags for (i)cl compiler
20936 # 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)
20937 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
20938 then
20939 COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
20940 fi
20941 COINUTILS_PCREQUIRES="coinutils"
20942
20943 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in ClpLib
20944
20945 CLPLIB_PCREQUIRES="coinutils $CLPLIB_PCREQUIRES"
20946 CLPLIB_CFLAGS="$COINUTILS_CFLAGS $CLPLIB_CFLAGS"
20947 CLPLIB_LIBS="$COINUTILS_LIBS $CLPLIB_LIBS"
20948
20949
20950
20951 else
20952 COINUTILS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinutils"`
20953 coin_has_coinutils=notGiven
20954 echo "$as_me:$LINENO: result: not given: $COINUTILS_PKG_ERRORS" >&5
20955 echo "${ECHO_T}not given: $COINUTILS_PKG_ERRORS" >&6
20956
20957 fi
20958 else
20959 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&5
20960 echo "$as_me: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&2;}
20961 { (exit 1); exit 1; }; }
20962 fi
20963
20964
20965
20966
20967 # reset PKG_CONFIG_PATH variable
20968 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
20969 export PKG_CONFIG_PATH
20970
20971 else
20972 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
20973 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
20974
20975 echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils (fallback)" >&5
20976 echo $ECHO_N "checking for COIN-OR package CoinUtils (fallback)... $ECHO_C" >&6
20977
20978 coin_has_coinutils=notGiven
20979 COINUTILS_LIBS=
20980 COINUTILS_LIBS_INSTALLED=
20981 COINUTILS_CFLAGS=
20982 COINUTILS_CFLAGS_INSTALLED=
20983 COINUTILS_DATA=
20984 COINUTILS_DATA_INSTALLED=
20985 COINUTILS_PCLIBS=
20986 COINUTILS_PCREQUIRES=
20987
20988 # initial list of dependencies is "coinutils", but we need to filter out version number specifications (= x, <= x, >= x, != x)
20989 projtoprocess="coinutils"
20990
20991 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
20992 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
20993 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
20994 # also, we setup the DATA variable
20995 allproj=""
20996 allpcfiles=""
20997 allpcifiles=""
20998 while test "x$projtoprocess" != x ; do
20999
21000 for proj in $projtoprocess ; do
21001 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21002 pcfile=""
21003 save_IFS="$IFS"
21004 IFS=":"
21005 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21006 # 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
21007 if test -r "$dir/${proj}-uninstalled.pc" ; then
21008 pcfile="$dir/$proj-uninstalled.pc"
21009 if test -r "$dir/${proj}.pc" ; then
21010 pcifile="$dir/${proj}.pc"
21011 else
21012 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
21013 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
21014 pcifile=
21015 fi
21016 break
21017 fi
21018 done
21019 IFS="$save_IFS"
21020
21021 if test "x$pcfile" != x ; then
21022 # read dependencies from $pcfile and filter it
21023 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
21024
21025 # add projrequires to the front of the list of projects that have to be processed next
21026 # at the same time, remove $proj from this list
21027 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21028
21029 # read DATA from $pcfile, if _DATA is still empty
21030 if test "x$COINUTILS_DATA" = x ; then
21031 projdatadir=
21032 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21033 eval `sh -c "$pcfilemod"`
21034 COINUTILS_DATA="$projdatadir"
21035 fi
21036
21037 allproj="$allproj $proj"
21038 allpcfiles="$pcfile:$allpcfiles"
21039
21040 else
21041 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21042 echo "${ECHO_T}no, dependency $proj not available" >&6
21043 allproj=fail
21044 break 2
21045 fi
21046
21047 if test "x$pcifile" != x ; then
21048 allpcifiles="$pcifile:$allpcifiles"
21049
21050 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21051 if test "x$COINUTILS_DATA_INSTALLED" = x ; then
21052 projdatadir=
21053 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21054 eval `sh -c "$pcifilemod"`
21055 if test "${CYGPATH_W}" != "echo"; then
21056 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21057 fi
21058 COINUTILS_DATA_INSTALLED="$projdatadir"
21059 fi
21060
21061 fi
21062
21063 break
21064 done
21065
21066 # remove spaces on begin of $projtoprocess
21067 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21068
21069 done
21070
21071 if test "$allproj" != fail ; then
21072
21073 # now go through the list of .pc files and assemble compiler and linker flags
21074 # important is here to obey the reverse order that has been setup before,
21075 # since then libraries that are required by several others should be after these other libraries
21076 pcfilesprocessed=""
21077
21078 save_IFS="$IFS"
21079 IFS=":"
21080 for pcfile in $allpcfiles ; do
21081
21082 # if $pcfile has been processed already, skip this round
21083 if test "x$pcfilesprocessed" != x ; then
21084 for pcfiledone in $pcfilesprocessed ; do
21085 if test "$pcfiledone" = "$pcfile" ; then
21086 continue 2
21087 fi
21088 done
21089 fi
21090
21091 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21092 # replace "Libs:" by "echo projlibs="
21093 # replace "Cflags:" by "echo projcflags="
21094 # remove every line starting with <some word>:
21095 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21096
21097 # set projcflags and projlibs variables by running $pcfilemod
21098 # 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
21099 projcflags=
21100 projlibs=
21101 IFS="$save_IFS"
21102 eval `sh -c "$pcfilemod"`
21103 IFS=":"
21104
21105 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21106 if test "${CYGPATH_W}" != "echo"; then
21107 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21108 fi
21109 COINUTILS_CFLAGS="$projcflags $COINUTILS_CFLAGS"
21110
21111 # set LIBS variable
21112 COINUTILS_LIBS="$projlibs $COINUTILS_LIBS"
21113
21114 # remember that we have processed $pcfile
21115 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21116
21117 done
21118 IFS="$save_IFS"
21119
21120
21121 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21122 # important is here again to obey the reverse order that has been setup before,
21123 # since then libraries that are required by several others should be after these other libraries
21124 pcfilesprocessed=""
21125
21126 save_IFS="$IFS"
21127 IFS=":"
21128 for pcfile in $allpcifiles ; do
21129
21130 # if $pcfile has been processed already, skip this round
21131 if test "x$pcfilesprocessed" != x ; then
21132 for pcfiledone in $pcfilesprocessed ; do
21133 if test "$pcfiledone" = "$pcfile" ; then
21134 continue 2
21135 fi
21136 done
21137 fi
21138
21139 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21140 # replace "Libs:" by "echo projlibs="
21141 # replace "Cflags:" by "echo projcflags="
21142 # remove every line starting with <some word>:
21143 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21144
21145 # set projcflags and projlibs variables by running $pcfilemod
21146 # 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
21147 projcflags=
21148 projlibs=
21149 IFS="$save_IFS"
21150 eval `sh -c "$pcfilemod"`
21151 IFS=":"
21152
21153 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21154 if test "${CYGPATH_W}" != "echo"; then
21155 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21156 fi
21157 COINUTILS_CFLAGS_INSTALLED="$projcflags $COINUTILS_CFLAGS_INSTALLED"
21158
21159 # set LIBS variable
21160 COINUTILS_LIBS_INSTALLED="$projlibs $COINUTILS_LIBS_INSTALLED"
21161
21162 # remember that we have processed $pcfile
21163 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21164
21165 done
21166 IFS="$save_IFS"
21167
21168
21169 # finish up
21170 coin_has_coinutils=yes
21171 echo "$as_me:$LINENO: result: yes" >&5
21172 echo "${ECHO_T}yes" >&6
21173
21174 cat >>confdefs.h <<\_ACEOF
21175 #define COIN_HAS_COINUTILS 1
21176 _ACEOF
21177
21178
21179 # adjust linker flags for (i)cl compiler
21180 # 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),
21181 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21182 # everything of the form "-lname" by "libname.lib", and
21183 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21184 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21185 then
21186 COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21187 COINUTILS_LIBS_INSTALLED=`echo " $COINUTILS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21188 fi
21189
21190 COINUTILS_PCREQUIRES="coinutils"
21191
21192 CLPLIB_PCREQUIRES="coinutils $CLPLIB_PCREQUIRES"
21193 CLPLIB_CFLAGS="$COINUTILS_CFLAGS $CLPLIB_CFLAGS"
21194 CLPLIB_LIBS="$COINUTILS_LIBS $CLPLIB_LIBS"
21195 CLPLIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS_INSTALLED $CLPLIB_CFLAGS_INSTALLED"
21196 CLPLIB_LIBS_INSTALLED="$COINUTILS_LIBS_INSTALLED $CLPLIB_LIBS_INSTALLED"
21197
21198
21199 fi
21200
21201
21202
21203 if test $coin_has_coinutils != notGiven &&
21204 test $coin_has_coinutils != skipping; then
21205 COIN_HAS_COINUTILS_TRUE=
21206 COIN_HAS_COINUTILS_FALSE='#'
21207 else
21208 COIN_HAS_COINUTILS_TRUE='#'
21209 COIN_HAS_COINUTILS_FALSE=
21210 fi
21211
21212
21213
21214 fi
21215
21216 else
21217 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
21218 echo "${ECHO_T}$coin_has_coinutils" >&6
21219 fi
21220
21221 if test $coin_has_coinutils != skipping &&
21222 test $coin_has_coinutils != notGiven ; then
21223
21224 cat >>confdefs.h <<\_ACEOF
21225 #define COIN_HAS_COINUTILS 1
21226 _ACEOF
21227
21228
21229 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21230 if test "${enable_interpackage_dependencies+set}" = set; then
21231 enableval="$enable_interpackage_dependencies"
21232
21233 else
21234 enable_interpackage_dependencies=yes
21235 fi;
21236
21237 if test $enable_interpackage_dependencies = yes ; then
21238 # construct dependencies variables from LIBS variables
21239 # we add an extra space in LIBS so we can substitute out everything starting with " -"
21240 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21241 # then remove everything of the form -xxx
21242 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21243 COINUTILS_DEPENDENCIES=`echo " $COINUTILS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21244
21245 CLPLIB_DEPENDENCIES=`echo " $CLPLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21246
21247 fi
21248
21249 if test 1 = 0 ; then #change this test to enable a bit of debugging output
21250 if test -n "$COINUTILS_CFLAGS" ; then
21251 { echo "$as_me:$LINENO: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&5
21252 echo "$as_me: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&6;}
21253 fi
21254 if test -n "$COINUTILS_LIBS" ; then
21255 { echo "$as_me:$LINENO: CoinUtils LIBS are $COINUTILS_LIBS" >&5
21256 echo "$as_me: CoinUtils LIBS are $COINUTILS_LIBS" >&6;}
21257 fi
21258 if test -n "$COINUTILS_DEPENDENCIES" ; then
21259 { echo "$as_me:$LINENO: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&5
21260 echo "$as_me: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&6;}
21261 fi
21262 if test -n "$COINUTILS_DATA" ; then
21263 { echo "$as_me:$LINENO: CoinUtils DATA is $COINUTILS_DATA" >&5
21264 echo "$as_me: CoinUtils DATA is $COINUTILS_DATA" >&6;}
21265 fi
21266 if test -n "$COINUTILS_PCLIBS" ; then
21267 { echo "$as_me:$LINENO: CoinUtils PCLIBS are $COINUTILS_PCLIBS" >&5
21268 echo "$as_me: CoinUtils PCLIBS are $COINUTILS_PCLIBS" >&6;}
21269 fi
21270 if test -n "$COINUTILS_PCREQUIRES" ; then
21271 { echo "$as_me:$LINENO: CoinUtils PCREQUIRES are $COINUTILS_PCREQUIRES" >&5
21272 echo "$as_me: CoinUtils PCREQUIRES are $COINUTILS_PCREQUIRES" >&6;}
21273 fi
21274
21275 { echo "$as_me:$LINENO: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&5
21276 echo "$as_me: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&6;}
21277 { echo "$as_me:$LINENO: ClpLib LIBS are $CLPLIB_LIBS" >&5
21278 echo "$as_me: ClpLib LIBS are $CLPLIB_LIBS" >&6;}
21279 { echo "$as_me:$LINENO: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&5
21280 echo "$as_me: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&6;}
21281
21282 fi
21283 fi
21284
21285 # Define the Makefile conditional
21286
21287
21288 if test $coin_has_coinutils != notGiven &&
21289 test $coin_has_coinutils != skipping; then
21290 COIN_HAS_COINUTILS_TRUE=
21291 COIN_HAS_COINUTILS_FALSE='#'
21292 else
21293 COIN_HAS_COINUTILS_TRUE='#'
21294 COIN_HAS_COINUTILS_FALSE=
21295 fi
21296
21297
21298
21299 if test $coin_has_coinutils != yes ; then
21300 { { echo "$as_me:$LINENO: error: Required package CoinUtils not available." >&5
21301 echo "$as_me: error: Required package CoinUtils not available." >&2;}
21302 { (exit 1); exit 1; }; }
21303 fi
21304
21305 echo "$as_me:$LINENO: checking for COIN-OR package Osi" >&5
21306 echo $ECHO_N "checking for COIN-OR package Osi... $ECHO_C" >&6
21307
21308 coin_has_osi=notGiven
21309
21310 # check if user wants to skip package in any case
21311 if test x"$COIN_SKIP_PROJECTS" != x; then
21312 for dir in $COIN_SKIP_PROJECTS; do
21313 if test $dir = "Osi"; then
21314 coin_has_osi=skipping
21315 fi
21316 done
21317 fi
21318
21319 if test "$coin_has_osi" != skipping; then
21320
21321 # Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
21322 if test "${with_osi+set}" = set; then
21323 withval="$with_osi"
21324 if test "$withval" = no ; then
21325 coin_has_osi=skipping
21326 fi
21327
21328 fi;
21329 fi
21330
21331 OSI_LIBS=
21332 OSI_CFLAGS=
21333 OSI_DATA=
21334 OSI_DEPENDENCIES=
21335 OSI_PCLIBS=
21336 OSI_PCREQUIRES=
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21355 if test $coin_has_osi != skipping; then
21356
21357 # Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
21358 if test "${with_osi_lib+set}" = set; then
21359 withval="$with_osi_lib"
21360 if test "$withval" = no ; then
21361 coin_has_osi=skipping
21362 else
21363 coin_has_osi=yes
21364 OSI_LIBS="$withval"
21365 OSI_PCLIBS="$withval"
21366
21367 OSICLPLIB_PCLIBS="$withval $OSICLPLIB_PCLIBS"
21368 OSICLPLIB_LIBS="$withval $OSICLPLIB_LIBS"
21369
21370 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21371 if test -z "$PKG_CONFIG" ; then
21372 OSI_LIBS_INSTALLED="$withval"
21373 OSICLPLIB_LIBS_INSTALLED="$withval $OSICLPLIB_LIBS_INSTALLED"
21374 fi
21375 fi
21376
21377 fi;
21378 fi
21379
21380 if test $coin_has_osi != skipping; then
21381
21382 # Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
21383 if test "${with_osi_incdir+set}" = set; then
21384 withval="$with_osi_incdir"
21385 if test "$withval" = no ; then
21386 coin_has_osi=skipping
21387 else
21388 coin_has_osi=yes
21389 OSI_CFLAGS="-I`${CYGPATH_W} $withval`"
21390 OSICLPLIB_CFLAGS="-I`${CYGPATH_W} $withval` $OSICLPLIB_CFLAGS"
21391 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21392 if test -z "$PKG_CONFIG" ; then
21393 OSI_CFLAGS_INSTALLED="$OSI_CFLAGS"
21394 OSICLPLIB_CFLAGS_INSTALLED="$OSI_CFLAGS $OSICLPLIB_CFLAGS_INSTALLED"
21395 fi
21396 fi
21397
21398 fi;
21399 fi
21400
21401 if test $coin_has_osi != skipping; then
21402
21403 # Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
21404 if test "${with_osi_datadir+set}" = set; then
21405 withval="$with_osi_datadir"
21406 if test "$withval" = no ; then
21407 coin_has_osi=skipping
21408 else
21409 coin_has_osi=yes
21410 OSI_DATA="$withval"
21411 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21412 if test -z "$PKG_CONFIG" ; then
21413 OSI_DATA_INSTALLED="$withval"
21414 fi
21415 fi
21416
21417 fi;
21418 fi
21419
21420 if test $coin_has_osi = notGiven; then
21421 if test -n "$PKG_CONFIG" ; then
21422 # set search path for pkg-config
21423 # need to export variable to be sure that the following pkg-config gets these values
21424 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21425 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21426 export PKG_CONFIG_PATH
21427
21428 # let pkg-config do it's magic
21429
21430
21431
21432 if test -n "$PKG_CONFIG" ; then
21433 if $PKG_CONFIG --exists "osi"; then
21434 OSI_VERSIONS=`$PKG_CONFIG --modversion "osi" 2>/dev/null | tr '\n' ' '`
21435 cflags=`$PKG_CONFIG --cflags "osi" 2>/dev/null`
21436 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21437 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21438 # but only do this if is not trivial
21439 if test "$CYGPATH_W" != "echo" ; then
21440 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21441 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21442 fi
21443 OSI_CFLAGS="$cflags"
21444 OSI_LIBS=`$PKG_CONFIG --libs "osi" 2>/dev/null`
21445 OSI_DATA=`$PKG_CONFIG --variable=datadir "osi" 2>/dev/null`
21446 coin_has_osi=yes
21447 echo "$as_me:$LINENO: result: yes: $OSI_VERSIONS" >&5
21448 echo "${ECHO_T}yes: $OSI_VERSIONS" >&6
21449
21450 # adjust linker flags for (i)cl compiler
21451 # 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)
21452 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21453 then
21454 OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21455 fi
21456 OSI_PCREQUIRES="osi"
21457
21458 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in OsiClpLib
21459
21460 OSICLPLIB_PCREQUIRES="osi $OSICLPLIB_PCREQUIRES"
21461 OSICLPLIB_CFLAGS="$OSI_CFLAGS $OSICLPLIB_CFLAGS"
21462 OSICLPLIB_LIBS="$OSI_LIBS $OSICLPLIB_LIBS"
21463
21464
21465
21466 else
21467 OSI_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi"`
21468 coin_has_osi=notGiven
21469 echo "$as_me:$LINENO: result: not given: $OSI_PKG_ERRORS" >&5
21470 echo "${ECHO_T}not given: $OSI_PKG_ERRORS" >&6
21471
21472 fi
21473 else
21474 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Osi without pkg-config\"" >&5
21475 echo "$as_me: error: \"Cannot check for existance of module Osi without pkg-config\"" >&2;}
21476 { (exit 1); exit 1; }; }
21477 fi
21478
21479
21480
21481
21482 # reset PKG_CONFIG_PATH variable
21483 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21484 export PKG_CONFIG_PATH
21485
21486 else
21487 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21488 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21489
21490 echo "$as_me:$LINENO: checking for COIN-OR package Osi (fallback)" >&5
21491 echo $ECHO_N "checking for COIN-OR package Osi (fallback)... $ECHO_C" >&6
21492
21493 coin_has_osi=notGiven
21494 OSI_LIBS=
21495 OSI_LIBS_INSTALLED=
21496 OSI_CFLAGS=
21497 OSI_CFLAGS_INSTALLED=
21498 OSI_DATA=
21499 OSI_DATA_INSTALLED=
21500 OSI_PCLIBS=
21501 OSI_PCREQUIRES=
21502
21503 # initial list of dependencies is "osi", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21504 projtoprocess="osi"
21505
21506 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
21507 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
21508 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
21509 # also, we setup the DATA variable
21510 allproj=""
21511 allpcfiles=""
21512 allpcifiles=""
21513 while test "x$projtoprocess" != x ; do
21514
21515 for proj in $projtoprocess ; do
21516 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21517 pcfile=""
21518 save_IFS="$IFS"
21519 IFS=":"
21520 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21521 # 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
21522 if test -r "$dir/${proj}-uninstalled.pc" ; then
21523 pcfile="$dir/$proj-uninstalled.pc"
21524 if test -r "$dir/${proj}.pc" ; then
21525 pcifile="$dir/${proj}.pc"
21526 else
21527 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
21528 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
21529 pcifile=
21530 fi
21531 break
21532 fi
21533 done
21534 IFS="$save_IFS"
21535
21536 if test "x$pcfile" != x ; then
21537 # read dependencies from $pcfile and filter it
21538 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
21539
21540 # add projrequires to the front of the list of projects that have to be processed next
21541 # at the same time, remove $proj from this list
21542 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21543
21544 # read DATA from $pcfile, if _DATA is still empty
21545 if test "x$OSI_DATA" = x ; then
21546 projdatadir=
21547 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21548 eval `sh -c "$pcfilemod"`
21549 OSI_DATA="$projdatadir"
21550 fi
21551
21552 allproj="$allproj $proj"
21553 allpcfiles="$pcfile:$allpcfiles"
21554
21555 else
21556 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21557 echo "${ECHO_T}no, dependency $proj not available" >&6
21558 allproj=fail
21559 break 2
21560 fi
21561
21562 if test "x$pcifile" != x ; then
21563 allpcifiles="$pcifile:$allpcifiles"
21564
21565 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21566 if test "x$OSI_DATA_INSTALLED" = x ; then
21567 projdatadir=
21568 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21569 eval `sh -c "$pcifilemod"`
21570 if test "${CYGPATH_W}" != "echo"; then
21571 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21572 fi
21573 OSI_DATA_INSTALLED="$projdatadir"
21574 fi
21575
21576 fi
21577
21578 break
21579 done
21580
21581 # remove spaces on begin of $projtoprocess
21582 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21583
21584 done
21585
21586 if test "$allproj" != fail ; then
21587
21588 # now go through the list of .pc files and assemble compiler and linker flags
21589 # important is here to obey the reverse order that has been setup before,
21590 # since then libraries that are required by several others should be after these other libraries
21591 pcfilesprocessed=""
21592
21593 save_IFS="$IFS"
21594 IFS=":"
21595 for pcfile in $allpcfiles ; do
21596
21597 # if $pcfile has been processed already, skip this round
21598 if test "x$pcfilesprocessed" != x ; then
21599 for pcfiledone in $pcfilesprocessed ; do
21600 if test "$pcfiledone" = "$pcfile" ; then
21601 continue 2
21602 fi
21603 done
21604 fi
21605
21606 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21607 # replace "Libs:" by "echo projlibs="
21608 # replace "Cflags:" by "echo projcflags="
21609 # remove every line starting with <some word>:
21610 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21611
21612 # set projcflags and projlibs variables by running $pcfilemod
21613 # 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
21614 projcflags=
21615 projlibs=
21616 IFS="$save_IFS"
21617 eval `sh -c "$pcfilemod"`
21618 IFS=":"
21619
21620 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21621 if test "${CYGPATH_W}" != "echo"; then
21622 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21623 fi
21624 OSI_CFLAGS="$projcflags $OSI_CFLAGS"
21625
21626 # set LIBS variable
21627 OSI_LIBS="$projlibs $OSI_LIBS"
21628
21629 # remember that we have processed $pcfile
21630 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21631
21632 done
21633 IFS="$save_IFS"
21634
21635
21636 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21637 # important is here again to obey the reverse order that has been setup before,
21638 # since then libraries that are required by several others should be after these other libraries
21639 pcfilesprocessed=""
21640
21641 save_IFS="$IFS"
21642 IFS=":"
21643 for pcfile in $allpcifiles ; do
21644
21645 # if $pcfile has been processed already, skip this round
21646 if test "x$pcfilesprocessed" != x ; then
21647 for pcfiledone in $pcfilesprocessed ; do
21648 if test "$pcfiledone" = "$pcfile" ; then
21649 continue 2
21650 fi
21651 done
21652 fi
21653
21654 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21655 # replace "Libs:" by "echo projlibs="
21656 # replace "Cflags:" by "echo projcflags="
21657 # remove every line starting with <some word>:
21658 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21659
21660 # set projcflags and projlibs variables by running $pcfilemod
21661 # 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
21662 projcflags=
21663 projlibs=
21664 IFS="$save_IFS"
21665 eval `sh -c "$pcfilemod"`
21666 IFS=":"
21667
21668 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21669 if test "${CYGPATH_W}" != "echo"; then
21670 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21671 fi
21672 OSI_CFLAGS_INSTALLED="$projcflags $OSI_CFLAGS_INSTALLED"
21673
21674 # set LIBS variable
21675 OSI_LIBS_INSTALLED="$projlibs $OSI_LIBS_INSTALLED"
21676
21677 # remember that we have processed $pcfile
21678 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21679
21680 done
21681 IFS="$save_IFS"
21682
21683
21684 # finish up
21685 coin_has_osi=yes
21686 echo "$as_me:$LINENO: result: yes" >&5
21687 echo "${ECHO_T}yes" >&6
21688
21689 cat >>confdefs.h <<\_ACEOF
21690 #define COIN_HAS_OSI 1
21691 _ACEOF
21692
21693
21694 # adjust linker flags for (i)cl compiler
21695 # 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),
21696 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21697 # everything of the form "-lname" by "libname.lib", and
21698 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21699 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21700 then
21701 OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21702 OSI_LIBS_INSTALLED=`echo " $OSI_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21703 fi
21704
21705 OSI_PCREQUIRES="osi"
21706
21707 OSICLPLIB_PCREQUIRES="osi $OSICLPLIB_PCREQUIRES"
21708 OSICLPLIB_CFLAGS="$OSI_CFLAGS $OSICLPLIB_CFLAGS"
21709 OSICLPLIB_LIBS="$OSI_LIBS $OSICLPLIB_LIBS"
21710 OSICLPLIB_CFLAGS_INSTALLED="$OSI_CFLAGS_INSTALLED $OSICLPLIB_CFLAGS_INSTALLED"
21711 OSICLPLIB_LIBS_INSTALLED="$OSI_LIBS_INSTALLED $OSICLPLIB_LIBS_INSTALLED"
21712
21713
21714 fi
21715
21716
21717
21718 if test $coin_has_osi != notGiven &&
21719 test $coin_has_osi != skipping; then
21720 COIN_HAS_OSI_TRUE=
21721 COIN_HAS_OSI_FALSE='#'
21722 else
21723 COIN_HAS_OSI_TRUE='#'
21724 COIN_HAS_OSI_FALSE=
21725 fi
21726
21727
21728
21729 fi
21730
21731 else
21732 echo "$as_me:$LINENO: result: $coin_has_osi" >&5
21733 echo "${ECHO_T}$coin_has_osi" >&6
21734 fi
21735
21736 if test $coin_has_osi != skipping &&
21737 test $coin_has_osi != notGiven ; then
21738
21739 cat >>confdefs.h <<\_ACEOF
21740 #define COIN_HAS_OSI 1
21741 _ACEOF
21742
21743
21744 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21745 if test "${enable_interpackage_dependencies+set}" = set; then
21746 enableval="$enable_interpackage_dependencies"
21747
21748 else
21749 enable_interpackage_dependencies=yes
21750 fi;
21751
21752 if test $enable_interpackage_dependencies = yes ; then
21753 # construct dependencies variables from LIBS variables
21754 # we add an extra space in LIBS so we can substitute out everything starting with " -"
21755 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21756 # then remove everything of the form -xxx
21757 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21758 OSI_DEPENDENCIES=`echo " $OSI_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21759
21760 OSICLPLIB_DEPENDENCIES=`echo " $OSICLPLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21761
21762 fi
21763
21764 if test 1 = 0 ; then #change this test to enable a bit of debugging output
21765 if test -n "$OSI_CFLAGS" ; then
21766 { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5
21767 echo "$as_me: Osi CFLAGS are $OSI_CFLAGS" >&6;}
21768 fi
21769 if test -n "$OSI_LIBS" ; then
21770 { echo "$as_me:$LINENO: Osi LIBS are $OSI_LIBS" >&5
21771 echo "$as_me: Osi LIBS are $OSI_LIBS" >&6;}
21772 fi
21773 if test -n "$OSI_DEPENDENCIES" ; then
21774 { echo "$as_me:$LINENO: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&5
21775 echo "$as_me: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&6;}
21776 fi
21777 if test -n "$OSI_DATA" ; then
21778 { echo "$as_me:$LINENO: Osi DATA is $OSI_DATA" >&5
21779 echo "$as_me: Osi DATA is $OSI_DATA" >&6;}
21780 fi
21781 if test -n "$OSI_PCLIBS" ; then
21782 { echo "$as_me:$LINENO: Osi PCLIBS are $OSI_PCLIBS" >&5
21783 echo "$as_me: Osi PCLIBS are $OSI_PCLIBS" >&6;}
21784 fi
21785 if test -n "$OSI_PCREQUIRES" ; then
21786 { echo "$as_me:$LINENO: Osi PCREQUIRES are $OSI_PCREQUIRES" >&5
21787 echo "$as_me: Osi PCREQUIRES are $OSI_PCREQUIRES" >&6;}
21788 fi
21789
21790 { echo "$as_me:$LINENO: OsiClpLib CFLAGS are $OSICLPLIB_CFLAGS" >&5
21791 echo "$as_me: OsiClpLib CFLAGS are $OSICLPLIB_CFLAGS" >&6;}
21792 { echo "$as_me:$LINENO: OsiClpLib LIBS are $OSICLPLIB_LIBS" >&5
21793 echo "$as_me: OsiClpLib LIBS are $OSICLPLIB_LIBS" >&6;}
21794 { echo "$as_me:$LINENO: OsiClpLib DEPENDENCIES are $OSICLPLIB_DEPENDENCIES" >&5
21795 echo "$as_me: OsiClpLib DEPENDENCIES are $OSICLPLIB_DEPENDENCIES" >&6;}
21796
21797 fi
21798 fi
21799
21800 # Define the Makefile conditional
21801
21802
21803 if test $coin_has_osi != notGiven &&
21804 test $coin_has_osi != skipping; then
21805 COIN_HAS_OSI_TRUE=
21806 COIN_HAS_OSI_FALSE='#'
21807 else
21808 COIN_HAS_OSI_TRUE='#'
21809 COIN_HAS_OSI_FALSE=
21810 fi
21811
21812
21813
21814
21815 echo "$as_me:$LINENO: checking for COIN-OR package OsiTests" >&5
21816 echo $ECHO_N "checking for COIN-OR package OsiTests... $ECHO_C" >&6
21817
21818 coin_has_ositests=notGiven
21819
21820 # check if user wants to skip package in any case
21821 if test x"$COIN_SKIP_PROJECTS" != x; then
21822 for dir in $COIN_SKIP_PROJECTS; do
21823 if test $dir = "OsiTests"; then
21824 coin_has_ositests=skipping
21825 fi
21826 done
21827 fi
21828
21829 if test "$coin_has_ositests" != skipping; then
21830
21831 # Check whether --with-m4_tolower(OsiTests) or --without-m4_tolower(OsiTests) was given.
21832 if test "${with_ositests+set}" = set; then
21833 withval="$with_ositests"
21834 if test "$withval" = no ; then
21835 coin_has_ositests=skipping
21836 fi
21837
21838 fi;
21839 fi
21840
21841 OSITESTS_LIBS=
21842 OSITESTS_CFLAGS=
21843 OSITESTS_DATA=
21844 OSITESTS_DEPENDENCIES=
21845 OSITESTS_PCLIBS=
21846 OSITESTS_PCREQUIRES=
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21857 if test $coin_has_ositests != skipping; then
21858
21859 # Check whether --with-m4_tolower(OsiTests)-lib or --without-m4_tolower(OsiTests)-lib was given.
21860 if test "${with_ositests_lib+set}" = set; then
21861 withval="$with_ositests_lib"
21862 if test "$withval" = no ; then
21863 coin_has_ositests=skipping
21864 else
21865 coin_has_ositests=yes
21866 OSITESTS_LIBS="$withval"
21867 OSITESTS_PCLIBS="$withval"
21868
21869 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21870 if test -z "$PKG_CONFIG" ; then
21871 OSITESTS_LIBS_INSTALLED="$withval"
21872
21873 fi
21874 fi
21875
21876 fi;
21877 fi
21878
21879 if test $coin_has_ositests != skipping; then
21880
21881 # Check whether --with-m4_tolower(OsiTests)-incdir or --without-m4_tolower(OsiTests)-incdir was given.
21882 if test "${with_ositests_incdir+set}" = set; then
21883 withval="$with_ositests_incdir"
21884 if test "$withval" = no ; then
21885 coin_has_ositests=skipping
21886 else
21887 coin_has_ositests=yes
21888 OSITESTS_CFLAGS="-I`${CYGPATH_W} $withval`"
21889
21890 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21891 if test -z "$PKG_CONFIG" ; then
21892 OSITESTS_CFLAGS_INSTALLED="$OSITESTS_CFLAGS"
21893
21894 fi
21895 fi
21896
21897 fi;
21898 fi
21899
21900 if test $coin_has_ositests != skipping; then
21901
21902 # Check whether --with-m4_tolower(OsiTests)-datadir or --without-m4_tolower(OsiTests)-datadir was given.
21903 if test "${with_ositests_datadir+set}" = set; then
21904 withval="$with_ositests_datadir"
21905 if test "$withval" = no ; then
21906 coin_has_ositests=skipping
21907 else
21908 coin_has_ositests=yes
21909 OSITESTS_DATA="$withval"
21910 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21911 if test -z "$PKG_CONFIG" ; then
21912 OSITESTS_DATA_INSTALLED="$withval"
21913 fi
21914 fi
21915
21916 fi;
21917 fi
21918
21919 if test $coin_has_ositests = notGiven; then
21920 if test -n "$PKG_CONFIG" ; then
21921 # set search path for pkg-config
21922 # need to export variable to be sure that the following pkg-config gets these values
21923 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21924 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21925 export PKG_CONFIG_PATH
21926
21927 # let pkg-config do it's magic
21928
21929
21930
21931 if test -n "$PKG_CONFIG" ; then
21932 if $PKG_CONFIG --exists "osi-unittests"; then
21933 OSITESTS_VERSIONS=`$PKG_CONFIG --modversion "osi-unittests" 2>/dev/null | tr '\n' ' '`
21934 cflags=`$PKG_CONFIG --cflags "osi-unittests" 2>/dev/null`
21935 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21936 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21937 # but only do this if is not trivial
21938 if test "$CYGPATH_W" != "echo" ; then
21939 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21940 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21941 fi
21942 OSITESTS_CFLAGS="$cflags"
21943 OSITESTS_LIBS=`$PKG_CONFIG --libs "osi-unittests" 2>/dev/null`
21944 OSITESTS_DATA=`$PKG_CONFIG --variable=datadir "osi-unittests" 2>/dev/null`
21945 coin_has_ositests=yes
21946 echo "$as_me:$LINENO: result: yes: $OSITESTS_VERSIONS" >&5
21947 echo "${ECHO_T}yes: $OSITESTS_VERSIONS" >&6
21948
21949 # adjust linker flags for (i)cl compiler
21950 # 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)
21951 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21952 then
21953 OSITESTS_LIBS=`echo " $OSITESTS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21954 fi
21955 OSITESTS_PCREQUIRES="osi-unittests"
21956
21957 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
21958
21959
21960
21961 else
21962 OSITESTS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-unittests"`
21963 coin_has_ositests=notGiven
21964 echo "$as_me:$LINENO: result: not given: $OSITESTS_PKG_ERRORS" >&5
21965 echo "${ECHO_T}not given: $OSITESTS_PKG_ERRORS" >&6
21966
21967 fi
21968 else
21969 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&5
21970 echo "$as_me: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&2;}
21971 { (exit 1); exit 1; }; }
21972 fi
21973
21974
21975
21976
21977 # reset PKG_CONFIG_PATH variable
21978 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21979 export PKG_CONFIG_PATH
21980
21981 else
21982 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21983 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21984
21985 echo "$as_me:$LINENO: checking for COIN-OR package OsiTests (fallback)" >&5
21986 echo $ECHO_N "checking for COIN-OR package OsiTests (fallback)... $ECHO_C" >&6
21987
21988 coin_has_ositests=notGiven
21989 OSITESTS_LIBS=
21990 OSITESTS_LIBS_INSTALLED=
21991 OSITESTS_CFLAGS=
21992 OSITESTS_CFLAGS_INSTALLED=
21993 OSITESTS_DATA=
21994 OSITESTS_DATA_INSTALLED=
21995 OSITESTS_PCLIBS=
21996 OSITESTS_PCREQUIRES=
21997
21998 # initial list of dependencies is "osi-unittests", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21999 projtoprocess="osi-unittests"
22000
22001 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22002 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22003 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22004 # also, we setup the DATA variable
22005 allproj=""
22006 allpcfiles=""
22007 allpcifiles=""
22008 while test "x$projtoprocess" != x ; do
22009
22010 for proj in $projtoprocess ; do
22011 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22012 pcfile=""
22013 save_IFS="$IFS"
22014 IFS=":"
22015 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22016 # 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
22017 if test -r "$dir/${proj}-uninstalled.pc" ; then
22018 pcfile="$dir/$proj-uninstalled.pc"
22019 if test -r "$dir/${proj}.pc" ; then
22020 pcifile="$dir/${proj}.pc"
22021 else
22022 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22023 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22024 pcifile=
22025 fi
22026 break
22027 fi
22028 done
22029 IFS="$save_IFS"
22030
22031 if test "x$pcfile" != x ; then
22032 # read dependencies from $pcfile and filter it
22033 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
22034
22035 # add projrequires to the front of the list of projects that have to be processed next
22036 # at the same time, remove $proj from this list
22037 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22038
22039 # read DATA from $pcfile, if _DATA is still empty
22040 if test "x$OSITESTS_DATA" = x ; then
22041 projdatadir=
22042 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22043 eval `sh -c "$pcfilemod"`
22044 OSITESTS_DATA="$projdatadir"
22045 fi
22046
22047 allproj="$allproj $proj"
22048 allpcfiles="$pcfile:$allpcfiles"
22049
22050 else
22051 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22052 echo "${ECHO_T}no, dependency $proj not available" >&6
22053 allproj=fail
22054 break 2
22055 fi
22056
22057 if test "x$pcifile" != x ; then
22058 allpcifiles="$pcifile:$allpcifiles"
22059
22060 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22061 if test "x$OSITESTS_DATA_INSTALLED" = x ; then
22062 projdatadir=
22063 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22064 eval `sh -c "$pcifilemod"`
22065 if test "${CYGPATH_W}" != "echo"; then
22066 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22067 fi
22068 OSITESTS_DATA_INSTALLED="$projdatadir"
22069 fi
22070
22071 fi
22072
22073 break
22074 done
22075
22076 # remove spaces on begin of $projtoprocess
22077 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22078
22079 done
22080
22081 if test "$allproj" != fail ; then
22082
22083 # now go through the list of .pc files and assemble compiler and linker flags
22084 # important is here to obey the reverse order that has been setup before,
22085 # since then libraries that are required by several others should be after these other libraries
22086 pcfilesprocessed=""
22087
22088 save_IFS="$IFS"
22089 IFS=":"
22090 for pcfile in $allpcfiles ; do
22091
22092 # if $pcfile has been processed already, skip this round
22093 if test "x$pcfilesprocessed" != x ; then
22094 for pcfiledone in $pcfilesprocessed ; do
22095 if test "$pcfiledone" = "$pcfile" ; then
22096 continue 2
22097 fi
22098 done
22099 fi
22100
22101 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22102 # replace "Libs:" by "echo projlibs="
22103 # replace "Cflags:" by "echo projcflags="
22104 # remove every line starting with <some word>:
22105 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22106
22107 # set projcflags and projlibs variables by running $pcfilemod
22108 # 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
22109 projcflags=
22110 projlibs=
22111 IFS="$save_IFS"
22112 eval `sh -c "$pcfilemod"`
22113 IFS=":"
22114
22115 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22116 if test "${CYGPATH_W}" != "echo"; then
22117 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22118 fi
22119 OSITESTS_CFLAGS="$projcflags $OSITESTS_CFLAGS"
22120
22121 # set LIBS variable
22122 OSITESTS_LIBS="$projlibs $OSITESTS_LIBS"
22123
22124 # remember that we have processed $pcfile
22125 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22126
22127 done
22128 IFS="$save_IFS"
22129
22130
22131 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22132 # important is here again to obey the reverse order that has been setup before,
22133 # since then libraries that are required by several others should be after these other libraries
22134 pcfilesprocessed=""
22135
22136 save_IFS="$IFS"
22137 IFS=":"
22138 for pcfile in $allpcifiles ; do
22139
22140 # if $pcfile has been processed already, skip this round
22141 if test "x$pcfilesprocessed" != x ; then
22142 for pcfiledone in $pcfilesprocessed ; do
22143 if test "$pcfiledone" = "$pcfile" ; then
22144 continue 2
22145 fi
22146 done
22147 fi
22148
22149 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22150 # replace "Libs:" by "echo projlibs="
22151 # replace "Cflags:" by "echo projcflags="
22152 # remove every line starting with <some word>:
22153 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22154
22155 # set projcflags and projlibs variables by running $pcfilemod
22156 # 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
22157 projcflags=
22158 projlibs=
22159 IFS="$save_IFS"
22160 eval `sh -c "$pcfilemod"`
22161 IFS=":"
22162
22163 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22164 if test "${CYGPATH_W}" != "echo"; then
22165 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22166 fi
22167 OSITESTS_CFLAGS_INSTALLED="$projcflags $OSITESTS_CFLAGS_INSTALLED"
22168
22169 # set LIBS variable
22170 OSITESTS_LIBS_INSTALLED="$projlibs $OSITESTS_LIBS_INSTALLED"
22171
22172 # remember that we have processed $pcfile
22173 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22174
22175 done
22176 IFS="$save_IFS"
22177
22178
22179 # finish up
22180 coin_has_ositests=yes
22181 echo "$as_me:$LINENO: result: yes" >&5
22182 echo "${ECHO_T}yes" >&6
22183
22184 cat >>confdefs.h <<\_ACEOF
22185 #define COIN_HAS_OSITESTS 1
22186 _ACEOF
22187
22188
22189 # adjust linker flags for (i)cl compiler
22190 # 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),
22191 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22192 # everything of the form "-lname" by "libname.lib", and
22193 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22194 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22195 then
22196 OSITESTS_LIBS=`echo " $OSITESTS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22197 OSITESTS_LIBS_INSTALLED=`echo " $OSITESTS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22198 fi
22199
22200 OSITESTS_PCREQUIRES="osi-unittests"
22201
22202
22203 fi
22204
22205
22206
22207 if test $coin_has_ositests != notGiven &&
22208 test $coin_has_ositests != skipping; then
22209 COIN_HAS_OSITESTS_TRUE=
22210 COIN_HAS_OSITESTS_FALSE='#'
22211 else
22212 COIN_HAS_OSITESTS_TRUE='#'
22213 COIN_HAS_OSITESTS_FALSE=
22214 fi
22215
22216
22217
22218 fi
22219
22220 else
22221 echo "$as_me:$LINENO: result: $coin_has_ositests" >&5
22222 echo "${ECHO_T}$coin_has_ositests" >&6
22223 fi
22224
22225 if test $coin_has_ositests != skipping &&
22226 test $coin_has_ositests != notGiven ; then
22227
22228 cat >>confdefs.h <<\_ACEOF
22229 #define COIN_HAS_OSITESTS 1
22230 _ACEOF
22231
22232
22233 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22234 if test "${enable_interpackage_dependencies+set}" = set; then
22235 enableval="$enable_interpackage_dependencies"
22236
22237 else
22238 enable_interpackage_dependencies=yes
22239 fi;
22240
22241 if test $enable_interpackage_dependencies = yes ; then
22242 # construct dependencies variables from LIBS variables
22243 # we add an extra space in LIBS so we can substitute out everything starting with " -"
22244 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22245 # then remove everything of the form -xxx
22246 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22247 OSITESTS_DEPENDENCIES=`echo " $OSITESTS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22248
22249 fi
22250
22251 if test 1 = 0 ; then #change this test to enable a bit of debugging output
22252 if test -n "$OSITESTS_CFLAGS" ; then
22253 { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
22254 echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}
22255 fi
22256 if test -n "$OSITESTS_LIBS" ; then
22257 { echo "$as_me:$LINENO: OsiTests LIBS are $OSITESTS_LIBS" >&5
22258 echo "$as_me: OsiTests LIBS are $OSITESTS_LIBS" >&6;}
22259 fi
22260 if test -n "$OSITESTS_DEPENDENCIES" ; then
22261 { echo "$as_me:$LINENO: OsiTests DEPENDENCIES are $OSITESTS_DEPENDENCIES" >&5
22262 echo "$as_me: OsiTests DEPENDENCIES are $OSITESTS_DEPENDENCIES" >&6;}
22263 fi
22264 if test -n "$OSITESTS_DATA" ; then
22265 { echo "$as_me:$LINENO: OsiTests DATA is $OSITESTS_DATA" >&5
22266 echo "$as_me: OsiTests DATA is $OSITESTS_DATA" >&6;}
22267 fi
22268 if test -n "$OSITESTS_PCLIBS" ; then
22269 { echo "$as_me:$LINENO: OsiTests PCLIBS are $OSITESTS_PCLIBS" >&5
22270 echo "$as_me: OsiTests PCLIBS are $OSITESTS_PCLIBS" >&6;}
22271 fi
22272 if test -n "$OSITESTS_PCREQUIRES" ; then
22273 { echo "$as_me:$LINENO: OsiTests PCREQUIRES are $OSITESTS_PCREQUIRES" >&5
22274 echo "$as_me: OsiTests PCREQUIRES are $OSITESTS_PCREQUIRES" >&6;}
22275 fi
22276
22277 fi
22278 fi
22279
22280 # Define the Makefile conditional
22281
22282
22283 if test $coin_has_ositests != notGiven &&
22284 test $coin_has_ositests != skipping; then
22285 COIN_HAS_OSITESTS_TRUE=
22286 COIN_HAS_OSITESTS_FALSE='#'
22287 else
22288 COIN_HAS_OSITESTS_TRUE='#'
22289 COIN_HAS_OSITESTS_FALSE=
22290 fi
22291
22292
22293
22294
22295 echo "$as_me:$LINENO: checking for COIN-OR package Sample" >&5
22296 echo $ECHO_N "checking for COIN-OR package Sample... $ECHO_C" >&6
22297
22298 coin_has_sample=notGiven
22299
22300 # check if user wants to skip package in any case
22301 if test x"$COIN_SKIP_PROJECTS" != x; then
22302 for dir in $COIN_SKIP_PROJECTS; do
22303 if test $dir = "Sample"; then
22304 coin_has_sample=skipping
22305 fi
22306 done
22307 fi
22308
22309 if test "$coin_has_sample" != skipping; then
22310
22311 # Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
22312 if test "${with_sample+set}" = set; then
22313 withval="$with_sample"
22314 if test "$withval" = no ; then
22315 coin_has_sample=skipping
22316 fi
22317
22318 fi;
22319 fi
22320
22321 SAMPLE_LIBS=
22322 SAMPLE_CFLAGS=
22323 SAMPLE_DATA=
22324 SAMPLE_DEPENDENCIES=
22325 SAMPLE_PCLIBS=
22326 SAMPLE_PCREQUIRES=
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
22337 if test $coin_has_sample != skipping; then
22338
22339 # Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
22340 if test "${with_sample_lib+set}" = set; then
22341 withval="$with_sample_lib"
22342 if test "$withval" = no ; then
22343 coin_has_sample=skipping
22344 else
22345 coin_has_sample=yes
22346 SAMPLE_LIBS="$withval"
22347 SAMPLE_PCLIBS="$withval"
22348
22349 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22350 if test -z "$PKG_CONFIG" ; then
22351 SAMPLE_LIBS_INSTALLED="$withval"
22352
22353 fi
22354 fi
22355
22356 fi;
22357 fi
22358
22359 if test $coin_has_sample != skipping; then
22360
22361 # Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
22362 if test "${with_sample_incdir+set}" = set; then
22363 withval="$with_sample_incdir"
22364 if test "$withval" = no ; then
22365 coin_has_sample=skipping
22366 else
22367 coin_has_sample=yes
22368 SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`"
22369
22370 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22371 if test -z "$PKG_CONFIG" ; then
22372 SAMPLE_CFLAGS_INSTALLED="$SAMPLE_CFLAGS"
22373
22374 fi
22375 fi
22376
22377 fi;
22378 fi
22379
22380 if test $coin_has_sample != skipping; then
22381
22382 # Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
22383 if test "${with_sample_datadir+set}" = set; then
22384 withval="$with_sample_datadir"
22385 if test "$withval" = no ; then
22386 coin_has_sample=skipping
22387 else
22388 coin_has_sample=yes
22389 SAMPLE_DATA="$withval"
22390 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22391 if test -z "$PKG_CONFIG" ; then
22392 SAMPLE_DATA_INSTALLED="$withval"
22393 fi
22394 fi
22395
22396 fi;
22397 fi
22398
22399 if test $coin_has_sample = notGiven; then
22400 if test -n "$PKG_CONFIG" ; then
22401 # set search path for pkg-config
22402 # need to export variable to be sure that the following pkg-config gets these values
22403 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22404 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
22405 export PKG_CONFIG_PATH
22406
22407 # let pkg-config do it's magic
22408
22409
22410
22411 if test -n "$PKG_CONFIG" ; then
22412 if $PKG_CONFIG --exists "coindatasample"; then
22413 SAMPLE_VERSIONS=`$PKG_CONFIG --modversion "coindatasample" 2>/dev/null | tr '\n' ' '`
22414 cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null`
22415 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
22416 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
22417 # but only do this if is not trivial
22418 if test "$CYGPATH_W" != "echo" ; then
22419 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
22420 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22421 fi
22422 SAMPLE_CFLAGS="$cflags"
22423 SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`
22424 SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null`
22425 coin_has_sample=yes
22426 echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5
22427 echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6
22428
22429 # adjust linker flags for (i)cl compiler
22430 # 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)
22431 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22432 then
22433 SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22434 fi
22435 SAMPLE_PCREQUIRES="coindatasample"
22436
22437 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
22438
22439
22440
22441 else
22442 SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatasample"`
22443 coin_has_sample=notGiven
22444 echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5
22445 echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6
22446
22447 fi
22448 else
22449 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5
22450 echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;}
22451 { (exit 1); exit 1; }; }
22452 fi
22453
22454
22455
22456
22457 # reset PKG_CONFIG_PATH variable
22458 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
22459 export PKG_CONFIG_PATH
22460
22461 else
22462 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22463 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22464
22465 echo "$as_me:$LINENO: checking for COIN-OR package Sample (fallback)" >&5
22466 echo $ECHO_N "checking for COIN-OR package Sample (fallback)... $ECHO_C" >&6
22467
22468 coin_has_sample=notGiven
22469 SAMPLE_LIBS=
22470 SAMPLE_LIBS_INSTALLED=
22471 SAMPLE_CFLAGS=
22472 SAMPLE_CFLAGS_INSTALLED=
22473 SAMPLE_DATA=
22474 SAMPLE_DATA_INSTALLED=
22475 SAMPLE_PCLIBS=
22476 SAMPLE_PCREQUIRES=
22477
22478 # initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22479 projtoprocess="coindatasample"
22480
22481 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22482 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22483 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22484 # also, we setup the DATA variable
22485 allproj=""
22486 allpcfiles=""
22487 allpcifiles=""
22488 while test "x$projtoprocess" != x ; do
22489
22490 for proj in $projtoprocess ; do
22491 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22492 pcfile=""
22493 save_IFS="$IFS"
22494 IFS=":"
22495 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22496 # 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
22497 if test -r "$dir/${proj}-uninstalled.pc" ; then
22498 pcfile="$dir/$proj-uninstalled.pc"
22499 if test -r "$dir/${proj}.pc" ; then
22500 pcifile="$dir/${proj}.pc"
22501 else
22502 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22503 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22504 pcifile=
22505 fi
22506 break
22507 fi
22508 done
22509 IFS="$save_IFS"
22510
22511 if test "x$pcfile" != x ; then
22512 # read dependencies from $pcfile and filter it
22513 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
22514
22515 # add projrequires to the front of the list of projects that have to be processed next
22516 # at the same time, remove $proj from this list
22517 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22518
22519 # read DATA from $pcfile, if _DATA is still empty
22520 if test "x$SAMPLE_DATA" = x ; then
22521 projdatadir=
22522 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22523 eval `sh -c "$pcfilemod"`
22524 SAMPLE_DATA="$projdatadir"
22525 fi
22526
22527 allproj="$allproj $proj"
22528 allpcfiles="$pcfile:$allpcfiles"
22529
22530 else
22531 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22532 echo "${ECHO_T}no, dependency $proj not available" >&6
22533 allproj=fail
22534 break 2
22535 fi
22536
22537 if test "x$pcifile" != x ; then
22538 allpcifiles="$pcifile:$allpcifiles"
22539
22540 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22541 if test "x$SAMPLE_DATA_INSTALLED" = x ; then
22542 projdatadir=
22543 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22544 eval `sh -c "$pcifilemod"`
22545 if test "${CYGPATH_W}" != "echo"; then
22546 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22547 fi
22548 SAMPLE_DATA_INSTALLED="$projdatadir"
22549 fi
22550
22551 fi
22552
22553 break
22554 done
22555
22556 # remove spaces on begin of $projtoprocess
22557 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22558
22559 done
22560
22561 if test "$allproj" != fail ; then
22562
22563 # now go through the list of .pc files and assemble compiler and linker flags
22564 # important is here to obey the reverse order that has been setup before,
22565 # since then libraries that are required by several others should be after these other libraries
22566 pcfilesprocessed=""
22567
22568 save_IFS="$IFS"
22569 IFS=":"
22570 for pcfile in $allpcfiles ; do
22571
22572 # if $pcfile has been processed already, skip this round
22573 if test "x$pcfilesprocessed" != x ; then
22574 for pcfiledone in $pcfilesprocessed ; do
22575 if test "$pcfiledone" = "$pcfile" ; then
22576 continue 2
22577 fi
22578 done
22579 fi
22580
22581 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22582 # replace "Libs:" by "echo projlibs="
22583 # replace "Cflags:" by "echo projcflags="
22584 # remove every line starting with <some word>:
22585 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22586
22587 # set projcflags and projlibs variables by running $pcfilemod
22588 # 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
22589 projcflags=
22590 projlibs=
22591 IFS="$save_IFS"
22592 eval `sh -c "$pcfilemod"`
22593 IFS=":"
22594
22595 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22596 if test "${CYGPATH_W}" != "echo"; then
22597 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22598 fi
22599 SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS"
22600
22601 # set LIBS variable
22602 SAMPLE_LIBS="$projlibs $SAMPLE_LIBS"
22603
22604 # remember that we have processed $pcfile
22605 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22606
22607 done
22608 IFS="$save_IFS"
22609
22610
22611 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22612 # important is here again to obey the reverse order that has been setup before,
22613 # since then libraries that are required by several others should be after these other libraries
22614 pcfilesprocessed=""
22615
22616 save_IFS="$IFS"
22617 IFS=":"
22618 for pcfile in $allpcifiles ; do
22619
22620 # if $pcfile has been processed already, skip this round
22621 if test "x$pcfilesprocessed" != x ; then
22622 for pcfiledone in $pcfilesprocessed ; do
22623 if test "$pcfiledone" = "$pcfile" ; then
22624 continue 2
22625 fi
22626 done
22627 fi
22628
22629 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22630 # replace "Libs:" by "echo projlibs="
22631 # replace "Cflags:" by "echo projcflags="
22632 # remove every line starting with <some word>:
22633 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22634
22635 # set projcflags and projlibs variables by running $pcfilemod
22636 # 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
22637 projcflags=
22638 projlibs=
22639 IFS="$save_IFS"
22640 eval `sh -c "$pcfilemod"`
22641 IFS=":"
22642
22643 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22644 if test "${CYGPATH_W}" != "echo"; then
22645 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22646 fi
22647 SAMPLE_CFLAGS_INSTALLED="$projcflags $SAMPLE_CFLAGS_INSTALLED"
22648
22649 # set LIBS variable
22650 SAMPLE_LIBS_INSTALLED="$projlibs $SAMPLE_LIBS_INSTALLED"
22651
22652 # remember that we have processed $pcfile
22653 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22654
22655 done
22656 IFS="$save_IFS"
22657
22658
22659 # finish up
22660 coin_has_sample=yes
22661 echo "$as_me:$LINENO: result: yes" >&5
22662 echo "${ECHO_T}yes" >&6
22663
22664 cat >>confdefs.h <<\_ACEOF
22665 #define COIN_HAS_SAMPLE 1
22666 _ACEOF
22667
22668
22669 # adjust linker flags for (i)cl compiler
22670 # 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),
22671 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22672 # everything of the form "-lname" by "libname.lib", and
22673 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22674 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22675 then
22676 SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22677 SAMPLE_LIBS_INSTALLED=`echo " $SAMPLE_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22678 fi
22679
22680 SAMPLE_PCREQUIRES="coindatasample"
22681
22682
22683 fi
22684
22685
22686
22687 if test $coin_has_sample != notGiven &&
22688 test $coin_has_sample != skipping; then
22689 COIN_HAS_SAMPLE_TRUE=
22690 COIN_HAS_SAMPLE_FALSE='#'
22691 else
22692 COIN_HAS_SAMPLE_TRUE='#'
22693 COIN_HAS_SAMPLE_FALSE=
22694 fi
22695
22696
22697
22698 fi
22699
22700 else
22701 echo "$as_me:$LINENO: result: $coin_has_sample" >&5
22702 echo "${ECHO_T}$coin_has_sample" >&6
22703 fi
22704
22705 if test $coin_has_sample != skipping &&
22706 test $coin_has_sample != notGiven ; then
22707
22708 cat >>confdefs.h <<\_ACEOF
22709 #define COIN_HAS_SAMPLE 1
22710 _ACEOF
22711
22712
22713 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22714 if test "${enable_interpackage_dependencies+set}" = set; then
22715 enableval="$enable_interpackage_dependencies"
22716
22717 else
22718 enable_interpackage_dependencies=yes
22719 fi;
22720
22721 if test $enable_interpackage_dependencies = yes ; then
22722 # construct dependencies variables from LIBS variables
22723 # we add an extra space in LIBS so we can substitute out everything starting with " -"
22724 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22725 # then remove everything of the form -xxx
22726 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22727 SAMPLE_DEPENDENCIES=`echo " $SAMPLE_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22728
22729 fi
22730
22731 if test 1 = 0 ; then #change this test to enable a bit of debugging output
22732 if test -n "$SAMPLE_CFLAGS" ; then
22733 { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
22734 echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
22735 fi
22736 if test -n "$SAMPLE_LIBS" ; then
22737 { echo "$as_me:$LINENO: Sample LIBS are $SAMPLE_LIBS" >&5
22738 echo "$as_me: Sample LIBS are $SAMPLE_LIBS" >&6;}
22739 fi
22740 if test -n "$SAMPLE_DEPENDENCIES" ; then
22741 { echo "$as_me:$LINENO: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&5
22742 echo "$as_me: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&6;}
22743 fi
22744 if test -n "$SAMPLE_DATA" ; then
22745 { echo "$as_me:$LINENO: Sample DATA is $SAMPLE_DATA" >&5
22746 echo "$as_me: Sample DATA is $SAMPLE_DATA" >&6;}
22747 fi
22748 if test -n "$SAMPLE_PCLIBS" ; then
22749 { echo "$as_me:$LINENO: Sample PCLIBS are $SAMPLE_PCLIBS" >&5
22750 echo "$as_me: Sample PCLIBS are $SAMPLE_PCLIBS" >&6;}
22751 fi
22752 if test -n "$SAMPLE_PCREQUIRES" ; then
22753 { echo "$as_me:$LINENO: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&5
22754 echo "$as_me: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&6;}
22755 fi
22756
22757 fi
22758 fi
22759
22760 # Define the Makefile conditional
22761
22762
22763 if test $coin_has_sample != notGiven &&
22764 test $coin_has_sample != skipping; then
22765 COIN_HAS_SAMPLE_TRUE=
22766 COIN_HAS_SAMPLE_FALSE='#'
22767 else
22768 COIN_HAS_SAMPLE_TRUE='#'
22769 COIN_HAS_SAMPLE_FALSE=
22770 fi
22771
22772
22773
22774
22775 echo "$as_me:$LINENO: checking for COIN-OR package Netlib" >&5
22776 echo $ECHO_N "checking for COIN-OR package Netlib... $ECHO_C" >&6
22777
22778 coin_has_netlib=notGiven
22779
22780 # check if user wants to skip package in any case
22781 if test x"$COIN_SKIP_PROJECTS" != x; then
22782 for dir in $COIN_SKIP_PROJECTS; do
22783 if test $dir = "Netlib"; then
22784 coin_has_netlib=skipping
22785 fi
22786 done
22787 fi
22788
22789 if test "$coin_has_netlib" != skipping; then
22790
22791 # Check whether --with-m4_tolower(Netlib) or --without-m4_tolower(Netlib) was given.
22792 if test "${with_netlib+set}" = set; then
22793 withval="$with_netlib"
22794 if test "$withval" = no ; then
22795 coin_has_netlib=skipping
22796 fi
22797
22798 fi;
22799 fi
22800
22801 NETLIB_LIBS=
22802 NETLIB_CFLAGS=
22803 NETLIB_DATA=
22804 NETLIB_DEPENDENCIES=
22805 NETLIB_PCLIBS=
22806 NETLIB_PCREQUIRES=
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
22817 if test $coin_has_netlib != skipping; then
22818
22819 # Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
22820 if test "${with_netlib_lib+set}" = set; then
22821 withval="$with_netlib_lib"
22822 if test "$withval" = no ; then
22823 coin_has_netlib=skipping
22824 else
22825 coin_has_netlib=yes
22826 NETLIB_LIBS="$withval"
22827 NETLIB_PCLIBS="$withval"
22828
22829 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22830 if test -z "$PKG_CONFIG" ; then
22831 NETLIB_LIBS_INSTALLED="$withval"
22832
22833 fi
22834 fi
22835
22836 fi;
22837 fi
22838
22839 if test $coin_has_netlib != skipping; then
22840
22841 # Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
22842 if test "${with_netlib_incdir+set}" = set; then
22843 withval="$with_netlib_incdir"
22844 if test "$withval" = no ; then
22845 coin_has_netlib=skipping
22846 else
22847 coin_has_netlib=yes
22848 NETLIB_CFLAGS="-I`${CYGPATH_W} $withval`"
22849
22850 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22851 if test -z "$PKG_CONFIG" ; then
22852 NETLIB_CFLAGS_INSTALLED="$NETLIB_CFLAGS"
22853
22854 fi
22855 fi
22856
22857 fi;
22858 fi
22859
22860 if test $coin_has_netlib != skipping; then
22861
22862 # Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
22863 if test "${with_netlib_datadir+set}" = set; then
22864 withval="$with_netlib_datadir"
22865 if test "$withval" = no ; then
22866 coin_has_netlib=skipping
22867 else
22868 coin_has_netlib=yes
22869 NETLIB_DATA="$withval"
22870 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22871 if test -z "$PKG_CONFIG" ; then
22872 NETLIB_DATA_INSTALLED="$withval"
22873 fi
22874 fi
22875
22876 fi;
22877 fi
22878
22879 if test $coin_has_netlib = notGiven; then
22880 if test -n "$PKG_CONFIG" ; then
22881 # set search path for pkg-config
22882 # need to export variable to be sure that the following pkg-config gets these values
22883 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22884 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
22885 export PKG_CONFIG_PATH
22886
22887 # let pkg-config do it's magic
22888
22889
22890
22891 if test -n "$PKG_CONFIG" ; then
22892 if $PKG_CONFIG --exists "coindatanetlib"; then
22893 NETLIB_VERSIONS=`$PKG_CONFIG --modversion "coindatanetlib" 2>/dev/null | tr '\n' ' '`
22894 cflags=`$PKG_CONFIG --cflags "coindatanetlib" 2>/dev/null`
22895 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
22896 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
22897 # but only do this if is not trivial
22898 if test "$CYGPATH_W" != "echo" ; then
22899 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
22900 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22901 fi
22902 NETLIB_CFLAGS="$cflags"
22903 NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/null`
22904 NETLIB_DATA=`$PKG_CONFIG --variable=datadir "coindatanetlib" 2>/dev/null`
22905 coin_has_netlib=yes
22906 echo "$as_me:$LINENO: result: yes: $NETLIB_VERSIONS" >&5
22907 echo "${ECHO_T}yes: $NETLIB_VERSIONS" >&6
22908
22909 # adjust linker flags for (i)cl compiler
22910 # 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)
22911 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22912 then
22913 NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22914 fi
22915 NETLIB_PCREQUIRES="coindatanetlib"
22916
22917 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
22918
22919
22920
22921 else
22922 NETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatanetlib"`
22923 coin_has_netlib=notGiven
22924 echo "$as_me:$LINENO: result: not given: $NETLIB_PKG_ERRORS" >&5
22925 echo "${ECHO_T}not given: $NETLIB_PKG_ERRORS" >&6
22926
22927 fi
22928 else
22929 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&5
22930 echo "$as_me: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&2;}
22931 { (exit 1); exit 1; }; }
22932 fi
22933
22934
22935
22936
22937 # reset PKG_CONFIG_PATH variable
22938 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
22939 export PKG_CONFIG_PATH
22940
22941 else
22942 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22943 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22944
22945 echo "$as_me:$LINENO: checking for COIN-OR package Netlib (fallback)" >&5
22946 echo $ECHO_N "checking for COIN-OR package Netlib (fallback)... $ECHO_C" >&6
22947
22948 coin_has_netlib=notGiven
22949 NETLIB_LIBS=
22950 NETLIB_LIBS_INSTALLED=
22951 NETLIB_CFLAGS=
22952 NETLIB_CFLAGS_INSTALLED=
22953 NETLIB_DATA=
22954 NETLIB_DATA_INSTALLED=
22955 NETLIB_PCLIBS=
22956 NETLIB_PCREQUIRES=
22957
22958 # initial list of dependencies is "coindatanetlib", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22959 projtoprocess="coindatanetlib"
22960
22961 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22962 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22963 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22964 # also, we setup the DATA variable
22965 allproj=""
22966 allpcfiles=""
22967 allpcifiles=""
22968 while test "x$projtoprocess" != x ; do
22969
22970 for proj in $projtoprocess ; do
22971 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22972 pcfile=""
22973 save_IFS="$IFS"
22974 IFS=":"
22975 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22976 # 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
22977 if test -r "$dir/${proj}-uninstalled.pc" ; then
22978 pcfile="$dir/$proj-uninstalled.pc"
22979 if test -r "$dir/${proj}.pc" ; then
22980 pcifile="$dir/${proj}.pc"
22981 else
22982 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22983 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22984 pcifile=
22985 fi
22986 break
22987 fi
22988 done
22989 IFS="$save_IFS"
22990
22991 if test "x$pcfile" != x ; then
22992 # read dependencies from $pcfile and filter it
22993 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
22994
22995 # add projrequires to the front of the list of projects that have to be processed next
22996 # at the same time, remove $proj from this list
22997 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22998
22999 # read DATA from $pcfile, if _DATA is still empty
23000 if test "x$NETLIB_DATA" = x ; then
23001 projdatadir=
23002 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
23003 eval `sh -c "$pcfilemod"`
23004 NETLIB_DATA="$projdatadir"
23005 fi
23006
23007 allproj="$allproj $proj"
23008 allpcfiles="$pcfile:$allpcfiles"
23009
23010 else
23011 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
23012 echo "${ECHO_T}no, dependency $proj not available" >&6
23013 allproj=fail
23014 break 2
23015 fi
23016
23017 if test "x$pcifile" != x ; then
23018 allpcifiles="$pcifile:$allpcifiles"
23019
23020 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
23021 if test "x$NETLIB_DATA_INSTALLED" = x ; then
23022 projdatadir=
23023 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
23024 eval `sh -c "$pcifilemod"`
23025 if test "${CYGPATH_W}" != "echo"; then
23026 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
23027 fi
23028 NETLIB_DATA_INSTALLED="$projdatadir"
23029 fi
23030
23031 fi
23032
23033 break
23034 done
23035
23036 # remove spaces on begin of $projtoprocess
23037 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
23038
23039 done
23040
23041 if test "$allproj" != fail ; then
23042
23043 # now go through the list of .pc files and assemble compiler and linker flags
23044 # important is here to obey the reverse order that has been setup before,
23045 # since then libraries that are required by several others should be after these other libraries
23046 pcfilesprocessed=""
23047
23048 save_IFS="$IFS"
23049 IFS=":"
23050 for pcfile in $allpcfiles ; do
23051
23052 # if $pcfile has been processed already, skip this round
23053 if test "x$pcfilesprocessed" != x ; then
23054 for pcfiledone in $pcfilesprocessed ; do
23055 if test "$pcfiledone" = "$pcfile" ; then
23056 continue 2
23057 fi
23058 done
23059 fi
23060
23061 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23062 # replace "Libs:" by "echo projlibs="
23063 # replace "Cflags:" by "echo projcflags="
23064 # remove every line starting with <some word>:
23065 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23066
23067 # set projcflags and projlibs variables by running $pcfilemod
23068 # 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
23069 projcflags=
23070 projlibs=
23071 IFS="$save_IFS"
23072 eval `sh -c "$pcfilemod"`
23073 IFS=":"
23074
23075 # add CYGPATH_W cludge into include flags and set CFLAGS variable
23076 if test "${CYGPATH_W}" != "echo"; then
23077 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23078 fi
23079 NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS"
23080
23081 # set LIBS variable
23082 NETLIB_LIBS="$projlibs $NETLIB_LIBS"
23083
23084 # remember that we have processed $pcfile
23085 pcfilesprocessed="$pcfilesprocessed:$pcfile"
23086
23087 done
23088 IFS="$save_IFS"
23089
23090
23091 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
23092 # important is here again to obey the reverse order that has been setup before,
23093 # since then libraries that are required by several others should be after these other libraries
23094 pcfilesprocessed=""
23095
23096 save_IFS="$IFS"
23097 IFS=":"
23098 for pcfile in $allpcifiles ; do
23099
23100 # if $pcfile has been processed already, skip this round
23101 if test "x$pcfilesprocessed" != x ; then
23102 for pcfiledone in $pcfilesprocessed ; do
23103 if test "$pcfiledone" = "$pcfile" ; then
23104 continue 2
23105 fi
23106 done
23107 fi
23108
23109 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23110 # replace "Libs:" by "echo projlibs="
23111 # replace "Cflags:" by "echo projcflags="
23112 # remove every line starting with <some word>:
23113 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23114
23115 # set projcflags and projlibs variables by running $pcfilemod
23116 # 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
23117 projcflags=
23118 projlibs=
23119 IFS="$save_IFS"
23120 eval `sh -c "$pcfilemod"`
23121 IFS=":"
23122
23123 # add CYGPATH_W cludge into include flags and set CFLAGS variable
23124 if test "${CYGPATH_W}" != "echo"; then
23125 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23126 fi
23127 NETLIB_CFLAGS_INSTALLED="$projcflags $NETLIB_CFLAGS_INSTALLED"
23128
23129 # set LIBS variable
23130 NETLIB_LIBS_INSTALLED="$projlibs $NETLIB_LIBS_INSTALLED"
23131
23132 # remember that we have processed $pcfile
23133 pcfilesprocessed="$pcfilesprocessed:$pcfile"
23134
23135 done
23136 IFS="$save_IFS"
23137
23138
23139 # finish up
23140 coin_has_netlib=yes
23141 echo "$as_me:$LINENO: result: yes" >&5
23142 echo "${ECHO_T}yes" >&6
23143
23144 cat >>confdefs.h <<\_ACEOF
23145 #define COIN_HAS_NETLIB 1
23146 _ACEOF
23147
23148
23149 # adjust linker flags for (i)cl compiler
23150 # 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),
23151 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
23152 # everything of the form "-lname" by "libname.lib", and
23153 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
23154 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23155 then
23156 NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
23157 NETLIB_LIBS_INSTALLED=`echo " $NETLIB_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
23158 fi
23159
23160 NETLIB_PCREQUIRES="coindatanetlib"
23161
23162
23163 fi
23164
23165
23166
23167 if test $coin_has_netlib != notGiven &&
23168 test $coin_has_netlib != skipping; then
23169 COIN_HAS_NETLIB_TRUE=
23170 COIN_HAS_NETLIB_FALSE='#'
23171 else
23172 COIN_HAS_NETLIB_TRUE='#'
23173 COIN_HAS_NETLIB_FALSE=
23174 fi
23175
23176
23177
23178 fi
23179
23180 else
23181 echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
23182 echo "${ECHO_T}$coin_has_netlib" >&6
23183 fi
23184
23185 if test $coin_has_netlib != skipping &&
23186 test $coin_has_netlib != notGiven ; then
23187
23188 cat >>confdefs.h <<\_ACEOF
23189 #define COIN_HAS_NETLIB 1
23190 _ACEOF
23191
23192
23193 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
23194 if test "${enable_interpackage_dependencies+set}" = set; then
23195 enableval="$enable_interpackage_dependencies"
23196
23197 else
23198 enable_interpackage_dependencies=yes
23199 fi;
23200
23201 if test $enable_interpackage_dependencies = yes ; then
23202 # construct dependencies variables from LIBS variables
23203 # we add an extra space in LIBS so we can substitute out everything starting with " -"
23204 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
23205 # then remove everything of the form -xxx
23206 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
23207 NETLIB_DEPENDENCIES=`echo " $NETLIB_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
23208
23209 fi
23210
23211 if test 1 = 0 ; then #change this test to enable a bit of debugging output
23212 if test -n "$NETLIB_CFLAGS" ; then
23213 { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
23214 echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
23215 fi
23216 if test -n "$NETLIB_LIBS" ; then
23217 { echo "$as_me:$LINENO: Netlib LIBS are $NETLIB_LIBS" >&5
23218 echo "$as_me: Netlib LIBS are $NETLIB_LIBS" >&6;}
23219 fi
23220 if test -n "$NETLIB_DEPENDENCIES" ; then
23221 { echo "$as_me:$LINENO: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&5
23222 echo "$as_me: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&6;}
23223 fi
23224 if test -n "$NETLIB_DATA" ; then
23225 { echo "$as_me:$LINENO: Netlib DATA is $NETLIB_DATA" >&5
23226 echo "$as_me: Netlib DATA is $NETLIB_DATA" >&6;}
23227 fi
23228 if test -n "$NETLIB_PCLIBS" ; then
23229 { echo "$as_me:$LINENO: Netlib PCLIBS are $NETLIB_PCLIBS" >&5
23230 echo "$as_me: Netlib PCLIBS are $NETLIB_PCLIBS" >&6;}
23231 fi
23232 if test -n "$NETLIB_PCREQUIRES" ; then
23233 { echo "$as_me:$LINENO: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&5
23234 echo "$as_me: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&6;}
23235 fi
23236
23237 fi
23238 fi
23239
23240 # Define the Makefile conditional
23241
23242
23243 if test $coin_has_netlib != notGiven &&
23244 test $coin_has_netlib != skipping; then
23245 COIN_HAS_NETLIB_TRUE=
23246 COIN_HAS_NETLIB_FALSE='#'
23247 else
23248 COIN_HAS_NETLIB_TRUE='#'
23249 COIN_HAS_NETLIB_FALSE=
23250 fi
23251
23252
23253
23254
23255 #############################################################################
23256 # Aboca #
23257 #############################################################################
23258
23259 # 1 - build Abc serial but no inherit code
23260 # 2 - build Abc serial and inherit code
23261 # 3 - build Abc cilk parallel but no inherit code
23262 # 4 - build Abc cilk parallel and inherit code
23263 # Check whether --enable-aboca or --disable-aboca was given.
23264 if test "${enable_aboca+set}" = set; then
23265 enableval="$enable_aboca"
23266 use_aboca=$enableval
23267 else
23268 use_aboca=no
23269 fi;
23270 if test "$use_aboca" = yes ; then
23271 use_aboca=1
23272 fi
23273 case "$use_aboca" in
23274 1 | 2 | 3 | 4)
23275
23276 cat >>confdefs.h <<_ACEOF
23277 #define CLP_HAS_ABC $use_aboca
23278 _ACEOF
23279
23280 ;;
23281 no) ;;
23282 *)
23283 { { echo "$as_me:$LINENO: error: invalid argument for --enable-aboca: $use_aboca" >&5
23284 echo "$as_me: error: invalid argument for --enable-aboca: $use_aboca" >&2;}
23285 { (exit 1); exit 1; }; }
23286 ;;
23287 esac
23288
23289
23290 if test ! "$use_aboca" = no; then
23291 COIN_HAS_ABC_TRUE=
23292 COIN_HAS_ABC_FALSE='#'
23293 else
23294 COIN_HAS_ABC_TRUE='#'
23295 COIN_HAS_ABC_FALSE=
23296 fi
23297
23298
23299 #############################################################################
23300 # Third party linear solvers #
23301 #############################################################################
23302
23303 # AMD from UFL
23304
23305 echo "$as_me:$LINENO: checking if user provides library for AMD" >&5
23306 echo $ECHO_N "checking if user provides library for AMD... $ECHO_C" >&6
23307
23308 # Check for header file directory
23309
23310
23311 # Check whether --with-amd-incdir or --without-amd-incdir was given.
23312 if test "${with_amd_incdir+set}" = set; then
23313 withval="$with_amd_incdir"
23314 AMDINCDIR=`cd $withval; pwd`
23315 fi;
23316
23317 # Check for library directory
23318
23319
23320 # Check whether --with-amd-lib or --without-amd-lib was given.
23321 if test "${with_amd_lib+set}" = set; then
23322 withval="$with_amd_lib"
23323 AMDLIB=$withval
23324 fi;
23325
23326 # Switch to disable library check if requested
23327
23328 # Check whether --enable-amd-libcheck or --disable-amd-libcheck was given.
23329 if test "${enable_amd_libcheck+set}" = set; then
23330 enableval="$enable_amd_libcheck"
23331 amd_libcheck=$enableval
23332 else
23333 amd_libcheck=yes
23334 fi;
23335
23336 # At this point, if we're going to use the library, both LBRYINCDIR and
23337 # LBRYLIB must be defined and not empty.
23338
23339 if test x"$AMDINCDIR" != x || test x"$AMDLIB" != x; then
23340 if test x"$AMDINCDIR" = x || test x"$AMDLIB" = x; then
23341 { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library AMD. Use --with-amd-incdir of environment variable $AMDINCDIR to specify the include directory. Use --with-amd-lib or environment variable $AMDLIB to specify link flags." >&5
23342 echo "$as_me: error: You need to specify both an include directory and link flags to use library AMD. Use --with-amd-incdir of environment variable $AMDINCDIR to specify the include directory. Use --with-amd-lib or environment variable $AMDLIB to specify link flags." >&2;}
23343 { (exit 1); exit 1; }; }
23344 fi
23345 coin_has_amd=true
23346 echo "$as_me:$LINENO: result: yes" >&5
23347 echo "${ECHO_T}yes" >&6
23348 else
23349 coin_has_amd=false
23350 echo "$as_me:$LINENO: result: no" >&5
23351 echo "${ECHO_T}no" >&6
23352 fi
23353
23354 # If we have instructions for use, consider header and link checks.
23355
23356 if test $coin_has_amd = true; then
23357
23358 # If argument 3 (file) is given, check for the file. Typically this will be a
23359 # header file, but that's not assumed.
23360
23361 if test -r $AMDINCDIR/amd.h; then
23362
23363 :
23364 else
23365 { { echo "$as_me:$LINENO: error: Cannot find file amd.h in $AMDINCDIR" >&5
23366 echo "$as_me: error: Cannot find file amd.h in $AMDINCDIR" >&2;}
23367 { (exit 1); exit 1; }; }
23368 :
23369 fi
23370
23371
23372 # Now see if we can link the function. There are arguments for and against
23373 # assuming argument 3 is a header file declaring the function. A correct
23374 # function declaration is the main argument in favour. Having to cope with
23375 # possible dependencies or other oddities are the main arguments against.
23376 # Force the use of C as the best single choice amongst C++, C, and Fortran.
23377 # Obviously, this has limits.
23378
23379 if test x"$amd_libcheck" != xno; then
23380 coin_save_LIBS="$LIBS"
23381 LIBS="$AMDLIB "
23382 coin_AMD_link=no
23383 ac_ext=c
23384 ac_cpp='$CPP $CPPFLAGS'
23385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23388
23389 for fnm in amd_defaults ; do
23390 echo "$as_me:$LINENO: checking whether symbol $fnm is available with AMD" >&5
23391 echo $ECHO_N "checking whether symbol $fnm is available with AMD... $ECHO_C" >&6
23392 cat >conftest.$ac_ext <<_ACEOF
23393 /* confdefs.h. */
23394 _ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23398
23399 int
23400 main ()
23401 {
23402 $fnm()
23403 ;
23404 return 0;
23405 }
23406 _ACEOF
23407 rm -f conftest.$ac_objext conftest$ac_exeext
23408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23409 (eval $ac_link) 2>conftest.er1
23410 ac_status=$?
23411 grep -v '^ *+' conftest.er1 >conftest.err
23412 rm -f conftest.er1
23413 cat conftest.err >&5
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } &&
23416 { ac_try='test -z "$ac_c_werror_flag"
23417 || test ! -s conftest.err'
23418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23419 (eval $ac_try) 2>&5
23420 ac_status=$?
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); }; } &&
23423 { ac_try='test -s conftest$ac_exeext'
23424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425 (eval $ac_try) 2>&5
23426 ac_status=$?
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); }; }; then
23429 echo "$as_me:$LINENO: result: yes" >&5
23430 echo "${ECHO_T}yes" >&6
23431 coin_AMD_link=yes
23432 break
23433 else
23434 echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23436
23437 echo "$as_me:$LINENO: result: no" >&5
23438 echo "${ECHO_T}no" >&6
23439 fi
23440 rm -f conftest.err conftest.$ac_objext \
23441 conftest$ac_exeext conftest.$ac_ext
23442 done
23443 ac_ext=c
23444 ac_cpp='$CPP $CPPFLAGS'
23445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23448
23449 LIBS="$coin_save_LIBS"
23450 if test x"$coin_AMD_link" != xyes ; then
23451 { { echo "$as_me:$LINENO: error: Cannot find symbol(s) amd_defaults with AMD" >&5
23452 echo "$as_me: error: Cannot find symbol(s) amd_defaults with AMD" >&2;}
23453 { (exit 1); exit 1; }; }
23454 fi
23455 fi
23456
23457
23458 # If we make it this far, we've verified the file and linked the function. Add
23459 # the necessary link flags to ClpLib_{PC}LIBS and define the preprocessor symbol
23460 # COIN_HAS_LBRY.
23461
23462
23463 CLPLIB_LIBS="$AMDLIB $CLPLIB_LIBS"
23464 CLPLIB_PCLIBS="$AMDLIB $CLPLIB_PCLIBS"
23465 CLPLIB_LIBS_INSTALLED="$AMDLIB $CLPLIB_LIBS_INSTALLED"
23466
23467
23468
23469 cat >>confdefs.h <<\_ACEOF
23470 #define COIN_HAS_AMD 1
23471 _ACEOF
23472
23473 fi
23474
23475 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
23476 # automake conditional. These actions must occur unconditionally.
23477
23478
23479
23480
23481
23482 if test $coin_has_amd = true; then
23483 COIN_HAS_AMD_TRUE=
23484 COIN_HAS_AMD_FALSE='#'
23485 else
23486 COIN_HAS_AMD_TRUE='#'
23487 COIN_HAS_AMD_FALSE=
23488 fi
23489
23490
23491
23492 # CHOLMOD from UFL
23493 # CHOLMOD requires AMD, which can be given by AMD_LIBS
23494 # CHOLMOD requires Blas and Lapack?
23495 coin_save_LIBS="$LIBS"
23496 LIBS="$LIBS $AMD_LIBS"
23497
23498 echo "$as_me:$LINENO: checking if user provides library for CHOLMOD" >&5
23499 echo $ECHO_N "checking if user provides library for CHOLMOD... $ECHO_C" >&6
23500
23501 # Check for header file directory
23502
23503
23504 # Check whether --with-cholmod-incdir or --without-cholmod-incdir was given.
23505 if test "${with_cholmod_incdir+set}" = set; then
23506 withval="$with_cholmod_incdir"
23507 CHOLMODINCDIR=`cd $withval; pwd`
23508 fi;
23509
23510 # Check for library directory
23511
23512
23513 # Check whether --with-cholmod-lib or --without-cholmod-lib was given.
23514 if test "${with_cholmod_lib+set}" = set; then
23515 withval="$with_cholmod_lib"
23516 CHOLMODLIB=$withval
23517 fi;
23518
23519 # Switch to disable library check if requested
23520
23521 # Check whether --enable-cholmod-libcheck or --disable-cholmod-libcheck was given.
23522 if test "${enable_cholmod_libcheck+set}" = set; then
23523 enableval="$enable_cholmod_libcheck"
23524 cholmod_libcheck=$enableval
23525 else
23526 cholmod_libcheck=yes
23527 fi;
23528
23529 # At this point, if we're going to use the library, both LBRYINCDIR and
23530 # LBRYLIB must be defined and not empty.
23531
23532 if test x"$CHOLMODINCDIR" != x || test x"$CHOLMODLIB" != x; then
23533 if test x"$CHOLMODINCDIR" = x || test x"$CHOLMODLIB" = x; then
23534 { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library CHOLMOD. Use --with-cholmod-incdir of environment variable $CHOLMODINCDIR to specify the include directory. Use --with-cholmod-lib or environment variable $CHOLMODLIB to specify link flags." >&5
23535 echo "$as_me: error: You need to specify both an include directory and link flags to use library CHOLMOD. Use --with-cholmod-incdir of environment variable $CHOLMODINCDIR to specify the include directory. Use --with-cholmod-lib or environment variable $CHOLMODLIB to specify link flags." >&2;}
23536 { (exit 1); exit 1; }; }
23537 fi
23538 coin_has_cholmod=true
23539 echo "$as_me:$LINENO: result: yes" >&5
23540 echo "${ECHO_T}yes" >&6
23541 else
23542 coin_has_cholmod=false
23543 echo "$as_me:$LINENO: result: no" >&5
23544 echo "${ECHO_T}no" >&6
23545 fi
23546
23547 # If we have instructions for use, consider header and link checks.
23548
23549 if test $coin_has_cholmod = true; then
23550
23551 # If argument 3 (file) is given, check for the file. Typically this will be a
23552 # header file, but that's not assumed.
23553
23554 if test -r $CHOLMODINCDIR/cholmod.h; then
23555
23556 :
23557 else
23558 { { echo "$as_me:$LINENO: error: Cannot find file cholmod.h in $CHOLMODINCDIR" >&5
23559 echo "$as_me: error: Cannot find file cholmod.h in $CHOLMODINCDIR" >&2;}
23560 { (exit 1); exit 1; }; }
23561 :
23562 fi
23563
23564
23565 # Now see if we can link the function. There are arguments for and against
23566 # assuming argument 3 is a header file declaring the function. A correct
23567 # function declaration is the main argument in favour. Having to cope with
23568 # possible dependencies or other oddities are the main arguments against.
23569 # Force the use of C as the best single choice amongst C++, C, and Fortran.
23570 # Obviously, this has limits.
23571
23572 if test x"$cholmod_libcheck" != xno; then
23573 coin_save_LIBS="$LIBS"
23574 LIBS="$CHOLMODLIB "
23575 coin_CHOLMOD_link=no
23576 ac_ext=c
23577 ac_cpp='$CPP $CPPFLAGS'
23578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23581
23582 for fnm in cholmod_start ; do
23583 echo "$as_me:$LINENO: checking whether symbol $fnm is available with CHOLMOD" >&5
23584 echo $ECHO_N "checking whether symbol $fnm is available with CHOLMOD... $ECHO_C" >&6
23585 cat >conftest.$ac_ext <<_ACEOF
23586 /* confdefs.h. */
23587 _ACEOF
23588 cat confdefs.h >>conftest.$ac_ext
23589 cat >>conftest.$ac_ext <<_ACEOF
23590 /* end confdefs.h. */
23591
23592 int
23593 main ()
23594 {
23595 $fnm()
23596 ;
23597 return 0;
23598 }
23599 _ACEOF
23600 rm -f conftest.$ac_objext conftest$ac_exeext
23601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23602 (eval $ac_link) 2>conftest.er1
23603 ac_status=$?
23604 grep -v '^ *+' conftest.er1 >conftest.err
23605 rm -f conftest.er1
23606 cat conftest.err >&5
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); } &&
23609 { ac_try='test -z "$ac_c_werror_flag"
23610 || test ! -s conftest.err'
23611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612 (eval $ac_try) 2>&5
23613 ac_status=$?
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); }; } &&
23616 { ac_try='test -s conftest$ac_exeext'
23617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618 (eval $ac_try) 2>&5
23619 ac_status=$?
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; }; then
23622 echo "$as_me:$LINENO: result: yes" >&5
23623 echo "${ECHO_T}yes" >&6
23624 coin_CHOLMOD_link=yes
23625 break
23626 else
23627 echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23629
23630 echo "$as_me:$LINENO: result: no" >&5
23631 echo "${ECHO_T}no" >&6
23632 fi
23633 rm -f conftest.err conftest.$ac_objext \
23634 conftest$ac_exeext conftest.$ac_ext
23635 done
23636 ac_ext=c
23637 ac_cpp='$CPP $CPPFLAGS'
23638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23641
23642 LIBS="$coin_save_LIBS"
23643 if test x"$coin_CHOLMOD_link" != xyes ; then
23644 { { echo "$as_me:$LINENO: error: Cannot find symbol(s) cholmod_start with CHOLMOD" >&5
23645 echo "$as_me: error: Cannot find symbol(s) cholmod_start with CHOLMOD" >&2;}
23646 { (exit 1); exit 1; }; }
23647 fi
23648 fi
23649
23650
23651 # If we make it this far, we've verified the file and linked the function. Add
23652 # the necessary link flags to ClpLib_{PC}LIBS and define the preprocessor symbol
23653 # COIN_HAS_LBRY.
23654
23655
23656 CLPLIB_LIBS="$CHOLMODLIB $CLPLIB_LIBS"
23657 CLPLIB_PCLIBS="$CHOLMODLIB $CLPLIB_PCLIBS"
23658 CLPLIB_LIBS_INSTALLED="$CHOLMODLIB $CLPLIB_LIBS_INSTALLED"
23659
23660
23661
23662 cat >>confdefs.h <<\_ACEOF
23663 #define COIN_HAS_CHOLMOD 1
23664 _ACEOF
23665
23666 fi
23667
23668 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
23669 # automake conditional. These actions must occur unconditionally.
23670
23671
23672
23673
23674
23675 if test $coin_has_cholmod = true; then
23676 COIN_HAS_CHOLMOD_TRUE=
23677 COIN_HAS_CHOLMOD_FALSE='#'
23678 else
23679 COIN_HAS_CHOLMOD_TRUE='#'
23680 COIN_HAS_CHOLMOD_FALSE=
23681 fi
23682
23683
23684 LIBS="$coin_save_LIBS"
23685
23686 # Glpk also brings AMD
23687 if test $coin_has_cholmod = false -a $coin_has_amd = false ; then
23688
23689 echo "$as_me:$LINENO: checking for COIN-OR package Glpk" >&5
23690 echo $ECHO_N "checking for COIN-OR package Glpk... $ECHO_C" >&6
23691
23692 coin_has_glpk=notGiven
23693
23694 # check if user wants to skip package in any case
23695 if test x"$COIN_SKIP_PROJECTS" != x; then
23696 for dir in $COIN_SKIP_PROJECTS; do
23697 if test $dir = "Glpk"; then
23698 coin_has_glpk=skipping
23699 fi
23700 done
23701 fi
23702
23703 if test "$coin_has_glpk" != skipping; then
23704
23705 # Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
23706 if test "${with_glpk+set}" = set; then
23707 withval="$with_glpk"
23708 if test "$withval" = no ; then
23709 coin_has_glpk=skipping
23710 fi
23711
23712 fi;
23713 fi
23714
23715 GLPK_LIBS=
23716 GLPK_CFLAGS=
23717 GLPK_DATA=
23718 GLPK_DEPENDENCIES=
23719 GLPK_PCLIBS=
23720 GLPK_PCREQUIRES=
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
23739 if test $coin_has_glpk != skipping; then
23740
23741 # Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
23742 if test "${with_glpk_lib+set}" = set; then
23743 withval="$with_glpk_lib"
23744 if test "$withval" = no ; then
23745 coin_has_glpk=skipping
23746 else
23747 coin_has_glpk=yes
23748 GLPK_LIBS="$withval"
23749 GLPK_PCLIBS="$withval"
23750
23751 CLPLIB_PCLIBS="$withval $CLPLIB_PCLIBS"
23752 CLPLIB_LIBS="$withval $CLPLIB_LIBS"
23753
23754 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23755 if test -z "$PKG_CONFIG" ; then
23756 GLPK_LIBS_INSTALLED="$withval"
23757 CLPLIB_LIBS_INSTALLED="$withval $CLPLIB_LIBS_INSTALLED"
23758 fi
23759 fi
23760
23761 fi;
23762 fi
23763
23764 if test $coin_has_glpk != skipping; then
23765
23766 # Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
23767 if test "${with_glpk_incdir+set}" = set; then
23768 withval="$with_glpk_incdir"
23769 if test "$withval" = no ; then
23770 coin_has_glpk=skipping
23771 else
23772 coin_has_glpk=yes
23773 GLPK_CFLAGS="-I`${CYGPATH_W} $withval`"
23774 CLPLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CLPLIB_CFLAGS"
23775 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23776 if test -z "$PKG_CONFIG" ; then
23777 GLPK_CFLAGS_INSTALLED="$GLPK_CFLAGS"
23778 CLPLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS $CLPLIB_CFLAGS_INSTALLED"
23779 fi
23780 fi
23781
23782 fi;
23783 fi
23784
23785 if test $coin_has_glpk != skipping; then
23786
23787 # Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
23788 if test "${with_glpk_datadir+set}" = set; then
23789 withval="$with_glpk_datadir"
23790 if test "$withval" = no ; then
23791 coin_has_glpk=skipping
23792 else
23793 coin_has_glpk=yes
23794 GLPK_DATA="$withval"
23795 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23796 if test -z "$PKG_CONFIG" ; then
23797 GLPK_DATA_INSTALLED="$withval"
23798 fi
23799 fi
23800
23801 fi;
23802 fi
23803
23804 if test $coin_has_glpk = notGiven; then
23805 if test -n "$PKG_CONFIG" ; then
23806 # set search path for pkg-config
23807 # need to export variable to be sure that the following pkg-config gets these values
23808 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
23809 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
23810 export PKG_CONFIG_PATH
23811
23812 # let pkg-config do it's magic
23813
23814
23815
23816 if test -n "$PKG_CONFIG" ; then
23817 if $PKG_CONFIG --exists "coinglpk"; then
23818 GLPK_VERSIONS=`$PKG_CONFIG --modversion "coinglpk" 2>/dev/null | tr '\n' ' '`
23819 cflags=`$PKG_CONFIG --cflags "coinglpk" 2>/dev/null`
23820 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
23821 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
23822 # but only do this if is not trivial
23823 if test "$CYGPATH_W" != "echo" ; then
23824 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
23825 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23826 fi
23827 GLPK_CFLAGS="$cflags"
23828 GLPK_LIBS=`$PKG_CONFIG --libs "coinglpk" 2>/dev/null`
23829 GLPK_DATA=`$PKG_CONFIG --variable=datadir "coinglpk" 2>/dev/null`
23830 coin_has_glpk=yes
23831 echo "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5
23832 echo "${ECHO_T}yes: $GLPK_VERSIONS" >&6
23833
23834 # adjust linker flags for (i)cl compiler
23835 # 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)
23836 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23837 then
23838 GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
23839 fi
23840 GLPK_PCREQUIRES="coinglpk"
23841
23842 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in ClpLib
23843
23844 CLPLIB_PCREQUIRES="coinglpk $CLPLIB_PCREQUIRES"
23845 CLPLIB_CFLAGS="$GLPK_CFLAGS $CLPLIB_CFLAGS"
23846 CLPLIB_LIBS="$GLPK_LIBS $CLPLIB_LIBS"
23847
23848
23849
23850 else
23851 GLPK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinglpk"`
23852 coin_has_glpk=notGiven
23853 echo "$as_me:$LINENO: result: not given: $GLPK_PKG_ERRORS" >&5
23854 echo "${ECHO_T}not given: $GLPK_PKG_ERRORS" >&6
23855
23856 fi
23857 else
23858 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&5
23859 echo "$as_me: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&2;}
23860 { (exit 1); exit 1; }; }
23861 fi
23862
23863
23864
23865
23866 # reset PKG_CONFIG_PATH variable
23867 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
23868 export PKG_CONFIG_PATH
23869
23870 else
23871 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
23872 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
23873
23874 echo "$as_me:$LINENO: checking for COIN-OR package Glpk (fallback)" >&5
23875 echo $ECHO_N "checking for COIN-OR package Glpk (fallback)... $ECHO_C" >&6
23876
23877 coin_has_glpk=notGiven
23878 GLPK_LIBS=
23879 GLPK_LIBS_INSTALLED=
23880 GLPK_CFLAGS=
23881 GLPK_CFLAGS_INSTALLED=
23882 GLPK_DATA=
23883 GLPK_DATA_INSTALLED=
23884 GLPK_PCLIBS=
23885 GLPK_PCREQUIRES=
23886
23887 # initial list of dependencies is "coinglpk", but we need to filter out version number specifications (= x, <= x, >= x, != x)
23888 projtoprocess="coinglpk"
23889
23890 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
23891 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
23892 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
23893 # also, we setup the DATA variable
23894 allproj=""
23895 allpcfiles=""
23896 allpcifiles=""
23897 while test "x$projtoprocess" != x ; do
23898
23899 for proj in $projtoprocess ; do
23900 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
23901 pcfile=""
23902 save_IFS="$IFS"
23903 IFS=":"
23904 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
23905 # 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
23906 if test -r "$dir/${proj}-uninstalled.pc" ; then
23907 pcfile="$dir/$proj-uninstalled.pc"
23908 if test -r "$dir/${proj}.pc" ; then
23909 pcifile="$dir/${proj}.pc"
23910 else
23911 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
23912 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
23913 pcifile=
23914 fi
23915 break
23916 fi
23917 done
23918 IFS="$save_IFS"
23919
23920 if test "x$pcfile" != x ; then
23921 # read dependencies from $pcfile and filter it
23922 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
23923
23924 # add projrequires to the front of the list of projects that have to be processed next
23925 # at the same time, remove $proj from this list
23926 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
23927
23928 # read DATA from $pcfile, if _DATA is still empty
23929 if test "x$GLPK_DATA" = x ; then
23930 projdatadir=
23931 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
23932 eval `sh -c "$pcfilemod"`
23933 GLPK_DATA="$projdatadir"
23934 fi
23935
23936 allproj="$allproj $proj"
23937 allpcfiles="$pcfile:$allpcfiles"
23938
23939 else
23940 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
23941 echo "${ECHO_T}no, dependency $proj not available" >&6
23942 allproj=fail
23943 break 2
23944 fi
23945
23946 if test "x$pcifile" != x ; then
23947 allpcifiles="$pcifile:$allpcifiles"
23948
23949 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
23950 if test "x$GLPK_DATA_INSTALLED" = x ; then
23951 projdatadir=
23952 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
23953 eval `sh -c "$pcifilemod"`
23954 if test "${CYGPATH_W}" != "echo"; then
23955 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
23956 fi
23957 GLPK_DATA_INSTALLED="$projdatadir"
23958 fi
23959
23960 fi
23961
23962 break
23963 done
23964
23965 # remove spaces on begin of $projtoprocess
23966 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
23967
23968 done
23969
23970 if test "$allproj" != fail ; then
23971
23972 # now go through the list of .pc files and assemble compiler and linker flags
23973 # important is here to obey the reverse order that has been setup before,
23974 # since then libraries that are required by several others should be after these other libraries
23975 pcfilesprocessed=""
23976
23977 save_IFS="$IFS"
23978 IFS=":"
23979 for pcfile in $allpcfiles ; do
23980
23981 # if $pcfile has been processed already, skip this round
23982 if test "x$pcfilesprocessed" != x ; then
23983 for pcfiledone in $pcfilesprocessed ; do
23984 if test "$pcfiledone" = "$pcfile" ; then
23985 continue 2
23986 fi
23987 done
23988 fi
23989
23990 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23991 # replace "Libs:" by "echo projlibs="
23992 # replace "Cflags:" by "echo projcflags="
23993 # remove every line starting with <some word>:
23994 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23995
23996 # set projcflags and projlibs variables by running $pcfilemod
23997 # 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
23998 projcflags=
23999 projlibs=
24000 IFS="$save_IFS"
24001 eval `sh -c "$pcfilemod"`
24002 IFS=":"
24003
24004 # add CYGPATH_W cludge into include flags and set CFLAGS variable
24005 if test "${CYGPATH_W}" != "echo"; then
24006 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24007 fi
24008 GLPK_CFLAGS="$projcflags $GLPK_CFLAGS"
24009
24010 # set LIBS variable
24011 GLPK_LIBS="$projlibs $GLPK_LIBS"
24012
24013 # remember that we have processed $pcfile
24014 pcfilesprocessed="$pcfilesprocessed:$pcfile"
24015
24016 done
24017 IFS="$save_IFS"
24018
24019
24020 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
24021 # important is here again to obey the reverse order that has been setup before,
24022 # since then libraries that are required by several others should be after these other libraries
24023 pcfilesprocessed=""
24024
24025 save_IFS="$IFS"
24026 IFS=":"
24027 for pcfile in $allpcifiles ; do
24028
24029 # if $pcfile has been processed already, skip this round
24030 if test "x$pcfilesprocessed" != x ; then
24031 for pcfiledone in $pcfilesprocessed ; do
24032 if test "$pcfiledone" = "$pcfile" ; then
24033 continue 2
24034 fi
24035 done
24036 fi
24037
24038 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
24039 # replace "Libs:" by "echo projlibs="
24040 # replace "Cflags:" by "echo projcflags="
24041 # remove every line starting with <some word>:
24042 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
24043
24044 # set projcflags and projlibs variables by running $pcfilemod
24045 # 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
24046 projcflags=
24047 projlibs=
24048 IFS="$save_IFS"
24049 eval `sh -c "$pcfilemod"`
24050 IFS=":"
24051
24052 # add CYGPATH_W cludge into include flags and set CFLAGS variable
24053 if test "${CYGPATH_W}" != "echo"; then
24054 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24055 fi
24056 GLPK_CFLAGS_INSTALLED="$projcflags $GLPK_CFLAGS_INSTALLED"
24057
24058 # set LIBS variable
24059 GLPK_LIBS_INSTALLED="$projlibs $GLPK_LIBS_INSTALLED"
24060
24061 # remember that we have processed $pcfile
24062 pcfilesprocessed="$pcfilesprocessed:$pcfile"
24063
24064 done
24065 IFS="$save_IFS"
24066
24067
24068 # finish up
24069 coin_has_glpk=yes
24070 echo "$as_me:$LINENO: result: yes" >&5
24071 echo "${ECHO_T}yes" >&6
24072
24073 cat >>confdefs.h <<\_ACEOF
24074 #define COIN_HAS_GLPK 1
24075 _ACEOF
24076
24077
24078 # adjust linker flags for (i)cl compiler
24079 # 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),
24080 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
24081 # everything of the form "-lname" by "libname.lib", and
24082 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
24083 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24084 then
24085 GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24086 GLPK_LIBS_INSTALLED=`echo " $GLPK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
24087 fi
24088
24089 GLPK_PCREQUIRES="coinglpk"
24090
24091 CLPLIB_PCREQUIRES="coinglpk $CLPLIB_PCREQUIRES"
24092 CLPLIB_CFLAGS="$GLPK_CFLAGS $CLPLIB_CFLAGS"
24093 CLPLIB_LIBS="$GLPK_LIBS $CLPLIB_LIBS"
24094 CLPLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS_INSTALLED $CLPLIB_CFLAGS_INSTALLED"
24095 CLPLIB_LIBS_INSTALLED="$GLPK_LIBS_INSTALLED $CLPLIB_LIBS_INSTALLED"
24096
24097
24098 fi
24099
24100
24101
24102 if test $coin_has_glpk != notGiven &&
24103 test $coin_has_glpk != skipping; then
24104 COIN_HAS_GLPK_TRUE=
24105 COIN_HAS_GLPK_FALSE='#'
24106 else
24107 COIN_HAS_GLPK_TRUE='#'
24108 COIN_HAS_GLPK_FALSE=
24109 fi
24110
24111
24112
24113 fi
24114
24115 else
24116 echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
24117 echo "${ECHO_T}$coin_has_glpk" >&6
24118 fi
24119
24120 if test $coin_has_glpk != skipping &&
24121 test $coin_has_glpk != notGiven ; then
24122
24123 cat >>confdefs.h <<\_ACEOF
24124 #define COIN_HAS_GLPK 1
24125 _ACEOF
24126
24127
24128 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
24129 if test "${enable_interpackage_dependencies+set}" = set; then
24130 enableval="$enable_interpackage_dependencies"
24131
24132 else
24133 enable_interpackage_dependencies=yes
24134 fi;
24135
24136 if test $enable_interpackage_dependencies = yes ; then
24137 # construct dependencies variables from LIBS variables
24138 # we add an extra space in LIBS so we can substitute out everything starting with " -"
24139 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
24140 # then remove everything of the form -xxx
24141 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
24142 GLPK_DEPENDENCIES=`echo " $GLPK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
24143
24144 CLPLIB_DEPENDENCIES=`echo " $CLPLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
24145
24146 fi
24147
24148 if test 1 = 0 ; then #change this test to enable a bit of debugging output
24149 if test -n "$GLPK_CFLAGS" ; then
24150 { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
24151 echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
24152 fi
24153 if test -n "$GLPK_LIBS" ; then
24154 { echo "$as_me:$LINENO: Glpk LIBS are $GLPK_LIBS" >&5
24155 echo "$as_me: Glpk LIBS are $GLPK_LIBS" >&6;}
24156 fi
24157 if test -n "$GLPK_DEPENDENCIES" ; then
24158 { echo "$as_me:$LINENO: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&5
24159 echo "$as_me: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&6;}
24160 fi
24161 if test -n "$GLPK_DATA" ; then
24162 { echo "$as_me:$LINENO: Glpk DATA is $GLPK_DATA" >&5
24163 echo "$as_me: Glpk DATA is $GLPK_DATA" >&6;}
24164 fi
24165 if test -n "$GLPK_PCLIBS" ; then
24166 { echo "$as_me:$LINENO: Glpk PCLIBS are $GLPK_PCLIBS" >&5
24167 echo "$as_me: Glpk PCLIBS are $GLPK_PCLIBS" >&6;}
24168 fi
24169 if test -n "$GLPK_PCREQUIRES" ; then
24170 { echo "$as_me:$LINENO: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&5
24171 echo "$as_me: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&6;}
24172 fi
24173
24174 { echo "$as_me:$LINENO: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&5
24175 echo "$as_me: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&6;}
24176 { echo "$as_me:$LINENO: ClpLib LIBS are $CLPLIB_LIBS" >&5
24177 echo "$as_me: ClpLib LIBS are $CLPLIB_LIBS" >&6;}
24178 { echo "$as_me:$LINENO: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&5
24179 echo "$as_me: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&6;}
24180
24181 fi
24182 fi
24183
24184 # Define the Makefile conditional
24185
24186
24187 if test $coin_has_glpk != notGiven &&
24188 test $coin_has_glpk != skipping; then
24189 COIN_HAS_GLPK_TRUE=
24190 COIN_HAS_GLPK_FALSE='#'
24191 else
24192 COIN_HAS_GLPK_TRUE='#'
24193 COIN_HAS_GLPK_FALSE=
24194 fi
24195
24196
24197
24198 if test $coin_has_glpk = yes ; then
24199 { echo "$as_me:$LINENO: using AMD from GLPK package" >&5
24200 echo "$as_me: using AMD from GLPK package" >&6;}
24201
24202 cat >>confdefs.h <<\_ACEOF
24203 #define COIN_HAS_AMD 1
24204 _ACEOF
24205
24206 fi
24207 else
24208 # for configure
24209
24210
24211 if test 0 = 1; then
24212 COIN_HAS_GLPK_TRUE=
24213 COIN_HAS_GLPK_FALSE='#'
24214 else
24215 COIN_HAS_GLPK_TRUE='#'
24216 COIN_HAS_GLPK_FALSE=
24217 fi
24218
24219 fi
24220
24221 # MUMPS
24222
24223 echo "$as_me:$LINENO: checking for COIN-OR package Mumps" >&5
24224 echo $ECHO_N "checking for COIN-OR package Mumps... $ECHO_C" >&6
24225
24226 coin_has_mumps=notGiven
24227
24228 # check if user wants to skip package in any case
24229 if test x"$COIN_SKIP_PROJECTS" != x; then
24230 for dir in $COIN_SKIP_PROJECTS; do
24231 if test $dir = "Mumps"; then
24232 coin_has_mumps=skipping
24233 fi
24234 done
24235 fi
24236
24237 if test "$coin_has_mumps" != skipping; then
24238
24239 # Check whether --with-m4_tolower(Mumps) or --without-m4_tolower(Mumps) was given.
24240 if test "${with_mumps+set}" = set; then
24241 withval="$with_mumps"
24242 if test "$withval" = no ; then
24243 coin_has_mumps=skipping
24244 fi
24245
24246 fi;
24247 fi
24248
24249 MUMPS_LIBS=
24250 MUMPS_CFLAGS=
24251 MUMPS_DATA=
24252 MUMPS_DEPENDENCIES=
24253 MUMPS_PCLIBS=
24254 MUMPS_PCREQUIRES=
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
24273 if test $coin_has_mumps != skipping; then
24274
24275 # Check whether --with-m4_tolower(Mumps)-lib or --without-m4_tolower(Mumps)-lib was given.
24276 if test "${with_mumps_lib+set}" = set; then
24277 withval="$with_mumps_lib"
24278 if test "$withval" = no ; then
24279 coin_has_mumps=skipping
24280 else
24281 coin_has_mumps=yes
24282 MUMPS_LIBS="$withval"
24283 MUMPS_PCLIBS="$withval"
24284
24285 CLPLIB_PCLIBS="$withval $CLPLIB_PCLIBS"
24286 CLPLIB_LIBS="$withval $CLPLIB_LIBS"
24287
24288 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24289 if test -z "$PKG_CONFIG" ; then
24290 MUMPS_LIBS_INSTALLED="$withval"
24291 CLPLIB_LIBS_INSTALLED="$withval $CLPLIB_LIBS_INSTALLED"
24292 fi
24293 fi
24294
24295 fi;
24296 fi
24297
24298 if test $coin_has_mumps != skipping; then
24299
24300 # Check whether --with-m4_tolower(Mumps)-incdir or --without-m4_tolower(Mumps)-incdir was given.
24301 if test "${with_mumps_incdir+set}" = set; then
24302 withval="$with_mumps_incdir"
24303 if test "$withval" = no ; then
24304 coin_has_mumps=skipping
24305 else
24306 coin_has_mumps=yes
24307 MUMPS_CFLAGS="-I`${CYGPATH_W} $withval`"
24308 CLPLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CLPLIB_CFLAGS"
24309 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24310 if test -z "$PKG_CONFIG" ; then
24311 MUMPS_CFLAGS_INSTALLED="$MUMPS_CFLAGS"
24312 CLPLIB_CFLAGS_INSTALLED="$MUMPS_CFLAGS $CLPLIB_CFLAGS_INSTALLED"
24313 fi
24314 fi
24315
24316 fi;
24317 fi
24318
24319 if test $coin_has_mumps != skipping; then
24320
24321 # Check whether --with-m4_tolower(Mumps)-datadir or --without-m4_tolower(Mumps)-datadir was given.
24322 if test "${with_mumps_datadir+set}" = set; then
24323 withval="$with_mumps_datadir"
24324 if test "$withval" = no ; then
24325 coin_has_mumps=skipping
24326 else
24327 coin_has_mumps=yes
24328 MUMPS_DATA="$withval"
24329 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24330 if test -z "$PKG_CONFIG" ; then
24331 MUMPS_DATA_INSTALLED="$withval"
24332 fi
24333 fi
24334
24335 fi;
24336 fi
24337
24338 if test $coin_has_mumps = notGiven; then
24339 if test -n "$PKG_CONFIG" ; then
24340 # set search path for pkg-config
24341 # need to export variable to be sure that the following pkg-config gets these values
24342 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
24343 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
24344 export PKG_CONFIG_PATH
24345
24346 # let pkg-config do it's magic
24347
24348
24349
24350 if test -n "$PKG_CONFIG" ; then
24351 if $PKG_CONFIG --exists "coinmumps"; then
24352 MUMPS_VERSIONS=`$PKG_CONFIG --modversion "coinmumps" 2>/dev/null | tr '\n' ' '`
24353 cflags=`$PKG_CONFIG --cflags "coinmumps" 2>/dev/null`
24354 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
24355 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
24356 # but only do this if is not trivial
24357 if test "$CYGPATH_W" != "echo" ; then
24358 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
24359 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24360 fi
24361 MUMPS_CFLAGS="$cflags"
24362 MUMPS_LIBS=`$PKG_CONFIG --libs "coinmumps" 2>/dev/null`
24363 MUMPS_DATA=`$PKG_CONFIG --variable=datadir "coinmumps" 2>/dev/null`
24364 coin_has_mumps=yes
24365 echo "$as_me:$LINENO: result: yes: $MUMPS_VERSIONS" >&5
24366 echo "${ECHO_T}yes: $MUMPS_VERSIONS" >&6
24367
24368 # adjust linker flags for (i)cl compiler
24369 # 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)
24370 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24371 then
24372 MUMPS_LIBS=`echo " $MUMPS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24373 fi
24374 MUMPS_PCREQUIRES="coinmumps"
24375
24376 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in ClpLib
24377
24378 CLPLIB_PCREQUIRES="coinmumps $CLPLIB_PCREQUIRES"
24379 CLPLIB_CFLAGS="$MUMPS_CFLAGS $CLPLIB_CFLAGS"
24380 CLPLIB_LIBS="$MUMPS_LIBS $CLPLIB_LIBS"
24381
24382
24383
24384 else
24385 MUMPS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinmumps"`
24386 coin_has_mumps=notGiven
24387 echo "$as_me:$LINENO: result: not given: $MUMPS_PKG_ERRORS" >&5
24388 echo "${ECHO_T}not given: $MUMPS_PKG_ERRORS" >&6
24389
24390 fi
24391 else
24392 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Mumps without pkg-config\"" >&5
24393 echo "$as_me: error: \"Cannot check for existance of module Mumps without pkg-config\"" >&2;}
24394 { (exit 1); exit 1; }; }
24395 fi
24396
24397
24398
24399
24400 # reset PKG_CONFIG_PATH variable
24401 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
24402 export PKG_CONFIG_PATH
24403
24404 else
24405 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
24406 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
24407
24408 echo "$as_me:$LINENO: checking for COIN-OR package Mumps (fallback)" >&5
24409 echo $ECHO_N "checking for COIN-OR package Mumps (fallback)... $ECHO_C" >&6
24410
24411 coin_has_mumps=notGiven
24412 MUMPS_LIBS=
24413 MUMPS_LIBS_INSTALLED=
24414 MUMPS_CFLAGS=
24415 MUMPS_CFLAGS_INSTALLED=
24416 MUMPS_DATA=
24417 MUMPS_DATA_INSTALLED=
24418 MUMPS_PCLIBS=
24419 MUMPS_PCREQUIRES=
24420
24421 # initial list of dependencies is "coinmumps", but we need to filter out version number specifications (= x, <= x, >= x, != x)
24422 projtoprocess="coinmumps"
24423
24424 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
24425 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
24426 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
24427 # also, we setup the DATA variable
24428 allproj=""
24429 allpcfiles=""
24430 allpcifiles=""
24431 while test "x$projtoprocess" != x ; do
24432
24433 for proj in $projtoprocess ; do
24434 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
24435 pcfile=""
24436 save_IFS="$IFS"
24437 IFS=":"
24438 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
24439 # 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
24440 if test -r "$dir/${proj}-uninstalled.pc" ; then
24441 pcfile="$dir/$proj-uninstalled.pc"
24442 if test -r "$dir/${proj}.pc" ; then
24443 pcifile="$dir/${proj}.pc"
24444 else
24445 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
24446 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
24447 pcifile=
24448 fi
24449 break
24450 fi
24451 done
24452 IFS="$save_IFS"
24453
24454 if test "x$pcfile" != x ; then
24455 # read dependencies from $pcfile and filter it
24456 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
24457
24458 # add projrequires to the front of the list of projects that have to be processed next
24459 # at the same time, remove $proj from this list
24460 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
24461
24462 # read DATA from $pcfile, if _DATA is still empty
24463 if test "x$MUMPS_DATA" = x ; then
24464 projdatadir=
24465 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
24466 eval `sh -c "$pcfilemod"`
24467 MUMPS_DATA="$projdatadir"
24468 fi
24469
24470 allproj="$allproj $proj"
24471 allpcfiles="$pcfile:$allpcfiles"
24472
24473 else
24474 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
24475 echo "${ECHO_T}no, dependency $proj not available" >&6
24476 allproj=fail
24477 break 2
24478 fi
24479
24480 if test "x$pcifile" != x ; then
24481 allpcifiles="$pcifile:$allpcifiles"
24482
24483 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
24484 if test "x$MUMPS_DATA_INSTALLED" = x ; then
24485 projdatadir=
24486 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
24487 eval `sh -c "$pcifilemod"`
24488 if test "${CYGPATH_W}" != "echo"; then
24489 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
24490 fi
24491 MUMPS_DATA_INSTALLED="$projdatadir"
24492 fi
24493
24494 fi
24495
24496 break
24497 done
24498
24499 # remove spaces on begin of $projtoprocess
24500 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
24501
24502 done
24503
24504 if test "$allproj" != fail ; then
24505
24506 # now go through the list of .pc files and assemble compiler and linker flags
24507 # important is here to obey the reverse order that has been setup before,
24508 # since then libraries that are required by several others should be after these other libraries
24509 pcfilesprocessed=""
24510
24511 save_IFS="$IFS"
24512 IFS=":"
24513 for pcfile in $allpcfiles ; do
24514
24515 # if $pcfile has been processed already, skip this round
24516 if test "x$pcfilesprocessed" != x ; then
24517 for pcfiledone in $pcfilesprocessed ; do
24518 if test "$pcfiledone" = "$pcfile" ; then
24519 continue 2
24520 fi
24521 done
24522 fi
24523
24524 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
24525 # replace "Libs:" by "echo projlibs="
24526 # replace "Cflags:" by "echo projcflags="
24527 # remove every line starting with <some word>:
24528 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
24529
24530 # set projcflags and projlibs variables by running $pcfilemod
24531 # 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
24532 projcflags=
24533 projlibs=
24534 IFS="$save_IFS"
24535 eval `sh -c "$pcfilemod"`
24536 IFS=":"
24537
24538 # add CYGPATH_W cludge into include flags and set CFLAGS variable
24539 if test "${CYGPATH_W}" != "echo"; then
24540 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24541 fi
24542 MUMPS_CFLAGS="$projcflags $MUMPS_CFLAGS"
24543
24544 # set LIBS variable
24545 MUMPS_LIBS="$projlibs $MUMPS_LIBS"
24546
24547 # remember that we have processed $pcfile
24548 pcfilesprocessed="$pcfilesprocessed:$pcfile"
24549
24550 done
24551 IFS="$save_IFS"
24552
24553
24554 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
24555 # important is here again to obey the reverse order that has been setup before,
24556 # since then libraries that are required by several others should be after these other libraries
24557 pcfilesprocessed=""
24558
24559 save_IFS="$IFS"
24560 IFS=":"
24561 for pcfile in $allpcifiles ; do
24562
24563 # if $pcfile has been processed already, skip this round
24564 if test "x$pcfilesprocessed" != x ; then
24565 for pcfiledone in $pcfilesprocessed ; do
24566 if test "$pcfiledone" = "$pcfile" ; then
24567 continue 2
24568 fi
24569 done
24570 fi
24571
24572 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
24573 # replace "Libs:" by "echo projlibs="
24574 # replace "Cflags:" by "echo projcflags="
24575 # remove every line starting with <some word>:
24576 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
24577
24578 # set projcflags and projlibs variables by running $pcfilemod
24579 # 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
24580 projcflags=
24581 projlibs=
24582 IFS="$save_IFS"
24583 eval `sh -c "$pcfilemod"`
24584 IFS=":"
24585
24586 # add CYGPATH_W cludge into include flags and set CFLAGS variable
24587 if test "${CYGPATH_W}" != "echo"; then
24588 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24589 fi
24590 MUMPS_CFLAGS_INSTALLED="$projcflags $MUMPS_CFLAGS_INSTALLED"
24591
24592 # set LIBS variable
24593 MUMPS_LIBS_INSTALLED="$projlibs $MUMPS_LIBS_INSTALLED"
24594
24595 # remember that we have processed $pcfile
24596 pcfilesprocessed="$pcfilesprocessed:$pcfile"
24597
24598 done
24599 IFS="$save_IFS"
24600
24601
24602 # finish up
24603 coin_has_mumps=yes
24604 echo "$as_me:$LINENO: result: yes" >&5
24605 echo "${ECHO_T}yes" >&6
24606
24607 cat >>confdefs.h <<\_ACEOF
24608 #define COIN_HAS_MUMPS 1
24609 _ACEOF
24610
24611
24612 # adjust linker flags for (i)cl compiler
24613 # 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),
24614 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
24615 # everything of the form "-lname" by "libname.lib", and
24616 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
24617 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24618 then
24619 MUMPS_LIBS=`echo " $MUMPS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24620 MUMPS_LIBS_INSTALLED=`echo " $MUMPS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
24621 fi
24622
24623 MUMPS_PCREQUIRES="coinmumps"
24624
24625 CLPLIB_PCREQUIRES="coinmumps $CLPLIB_PCREQUIRES"
24626 CLPLIB_CFLAGS="$MUMPS_CFLAGS $CLPLIB_CFLAGS"
24627 CLPLIB_LIBS="$MUMPS_LIBS $CLPLIB_LIBS"
24628 CLPLIB_CFLAGS_INSTALLED="$MUMPS_CFLAGS_INSTALLED $CLPLIB_CFLAGS_INSTALLED"
24629 CLPLIB_LIBS_INSTALLED="$MUMPS_LIBS_INSTALLED $CLPLIB_LIBS_INSTALLED"
24630
24631
24632 fi
24633
24634
24635
24636 if test $coin_has_mumps != notGiven &&
24637 test $coin_has_mumps != skipping; then
24638 COIN_HAS_MUMPS_TRUE=
24639 COIN_HAS_MUMPS_FALSE='#'
24640 else
24641 COIN_HAS_MUMPS_TRUE='#'
24642 COIN_HAS_MUMPS_FALSE=
24643 fi
24644
24645
24646
24647 fi
24648
24649 else
24650 echo "$as_me:$LINENO: result: $coin_has_mumps" >&5
24651 echo "${ECHO_T}$coin_has_mumps" >&6
24652 fi
24653
24654 if test $coin_has_mumps != skipping &&
24655 test $coin_has_mumps != notGiven ; then
24656
24657 cat >>confdefs.h <<\_ACEOF
24658 #define COIN_HAS_MUMPS 1
24659 _ACEOF
24660
24661
24662 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
24663 if test "${enable_interpackage_dependencies+set}" = set; then
24664 enableval="$enable_interpackage_dependencies"
24665
24666 else
24667 enable_interpackage_dependencies=yes
24668 fi;
24669
24670 if test $enable_interpackage_dependencies = yes ; then
24671 # construct dependencies variables from LIBS variables
24672 # we add an extra space in LIBS so we can substitute out everything starting with " -"
24673 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
24674 # then remove everything of the form -xxx
24675 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
24676 MUMPS_DEPENDENCIES=`echo " $MUMPS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
24677
24678 CLPLIB_DEPENDENCIES=`echo " $CLPLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
24679
24680 fi
24681
24682 if test 1 = 0 ; then #change this test to enable a bit of debugging output
24683 if test -n "$MUMPS_CFLAGS" ; then
24684 { echo "$as_me:$LINENO: Mumps CFLAGS are $MUMPS_CFLAGS" >&5
24685 echo "$as_me: Mumps CFLAGS are $MUMPS_CFLAGS" >&6;}
24686 fi
24687 if test -n "$MUMPS_LIBS" ; then
24688 { echo "$as_me:$LINENO: Mumps LIBS are $MUMPS_LIBS" >&5
24689 echo "$as_me: Mumps LIBS are $MUMPS_LIBS" >&6;}
24690 fi
24691 if test -n "$MUMPS_DEPENDENCIES" ; then
24692 { echo "$as_me:$LINENO: Mumps DEPENDENCIES are $MUMPS_DEPENDENCIES" >&5
24693 echo "$as_me: Mumps DEPENDENCIES are $MUMPS_DEPENDENCIES" >&6;}
24694 fi
24695 if test -n "$MUMPS_DATA" ; then
24696 { echo "$as_me:$LINENO: Mumps DATA is $MUMPS_DATA" >&5
24697 echo "$as_me: Mumps DATA is $MUMPS_DATA" >&6;}
24698 fi
24699 if test -n "$MUMPS_PCLIBS" ; then
24700 { echo "$as_me:$LINENO: Mumps PCLIBS are $MUMPS_PCLIBS" >&5
24701 echo "$as_me: Mumps PCLIBS are $MUMPS_PCLIBS" >&6;}
24702 fi
24703 if test -n "$MUMPS_PCREQUIRES" ; then
24704 { echo "$as_me:$LINENO: Mumps PCREQUIRES are $MUMPS_PCREQUIRES" >&5
24705 echo "$as_me: Mumps PCREQUIRES are $MUMPS_PCREQUIRES" >&6;}
24706 fi
24707
24708 { echo "$as_me:$LINENO: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&5
24709 echo "$as_me: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&6;}
24710 { echo "$as_me:$LINENO: ClpLib LIBS are $CLPLIB_LIBS" >&5
24711 echo "$as_me: ClpLib LIBS are $CLPLIB_LIBS" >&6;}
24712 { echo "$as_me:$LINENO: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&5
24713 echo "$as_me: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&6;}
24714
24715 fi
24716 fi
24717
24718 # Define the Makefile conditional
24719
24720
24721 if test $coin_has_mumps != notGiven &&
24722 test $coin_has_mumps != skipping; then
24723 COIN_HAS_MUMPS_TRUE=
24724 COIN_HAS_MUMPS_FALSE='#'
24725 else
24726 COIN_HAS_MUMPS_TRUE='#'
24727 COIN_HAS_MUMPS_FALSE=
24728 fi
24729
24730
24731
24732
24733 # WSMP
24734
24735 # Check whether --with-wsmp or --without-wsmp was given.
24736 if test "${with_wsmp+set}" = set; then
24737 withval="$with_wsmp"
24738 use_wsmp=$withval
24739 else
24740 use_wsmp=no
24741 fi;
24742
24743 if test "$use_wsmp" != "no"; then
24744 # Check how to link against Fortran libraries from C
24745 case $build in
24746 *-cygwin* | *-mingw*)
24747 if test "$enable_msvc" = yes ; then
24748 coin_f77_comps="ifort fl32 compile_f2c"
24749 else
24750 coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
24751 fi ;;
24752 *-*-solaris*)
24753 coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
24754 *-linux-gnu*)
24755 coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
24756 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
24757 esac
24758
24759
24760
24761
24762 ac_ext=f
24763 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24764 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24765 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24766
24767
24768
24769
24770
24771
24772 coin_has_f77=yes
24773
24774 save_fflags="$FFLAGS"
24775
24776 # We delete the cached value, since the test might not have been
24777 # performed with our choice of compilers earlier
24778 $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
24779
24780 # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
24781 # coin_f77_comps to see if there's a program that matches one of the names.
24782 # If there's no such program, F77 = unavailable. If we match the name,
24783 # feed AC_PROG_F77 the same search list, just to be sure it's a functioning
24784 # compiler.
24785 # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
24786
24787
24788 { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
24789 echo "$as_me: Trying to determine Fortran compiler name" >&6;}
24790 if test -n "$ac_tool_prefix"; then
24791 for ac_prog in $coin_f77_comps
24792 do
24793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24795 echo "$as_me:$LINENO: checking for $ac_word" >&5
24796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24797 if test "${ac_cv_prog_F77+set}" = set; then
24798 echo $ECHO_N "(cached) $ECHO_C" >&6
24799 else
24800 if test -n "$F77"; then
24801 ac_cv_prog_F77="$F77" # Let the user override the test.
24802 else
24803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24804 for as_dir in $PATH
24805 do
24806 IFS=$as_save_IFS
24807 test -z "$as_dir" && as_dir=.
24808 for ac_exec_ext in '' $ac_executable_extensions; do
24809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24810 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
24811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24812 break 2
24813 fi
24814 done
24815 done
24816
24817 fi
24818 fi
24819 F77=$ac_cv_prog_F77
24820 if test -n "$F77"; then
24821 echo "$as_me:$LINENO: result: $F77" >&5
24822 echo "${ECHO_T}$F77" >&6
24823 else
24824 echo "$as_me:$LINENO: result: no" >&5
24825 echo "${ECHO_T}no" >&6
24826 fi
24827
24828 test -n "$F77" && break
24829 done
24830 fi
24831 if test -z "$F77"; then
24832 ac_ct_F77=$F77
24833 for ac_prog in $coin_f77_comps
24834 do
24835 # Extract the first word of "$ac_prog", so it can be a program name with args.
24836 set dummy $ac_prog; ac_word=$2
24837 echo "$as_me:$LINENO: checking for $ac_word" >&5
24838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24839 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
24840 echo $ECHO_N "(cached) $ECHO_C" >&6
24841 else
24842 if test -n "$ac_ct_F77"; then
24843 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
24844 else
24845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24846 for as_dir in $PATH
24847 do
24848 IFS=$as_save_IFS
24849 test -z "$as_dir" && as_dir=.
24850 for ac_exec_ext in '' $ac_executable_extensions; do
24851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24852 ac_cv_prog_ac_ct_F77="$ac_prog"
24853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24854 break 2
24855 fi
24856 done
24857 done
24858
24859 fi
24860 fi
24861 ac_ct_F77=$ac_cv_prog_ac_ct_F77
24862 if test -n "$ac_ct_F77"; then
24863 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
24864 echo "${ECHO_T}$ac_ct_F77" >&6
24865 else
24866 echo "$as_me:$LINENO: result: no" >&5
24867 echo "${ECHO_T}no" >&6
24868 fi
24869
24870 test -n "$ac_ct_F77" && break
24871 done
24872 test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
24873
24874 F77=$ac_ct_F77
24875 fi
24876
24877
24878 if test "$F77" != "unavailable" ; then
24879 ac_ext=f
24880 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24881 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24882 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24883 if test -n "$ac_tool_prefix"; then
24884 for ac_prog in $coin_f77_comps
24885 do
24886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24888 echo "$as_me:$LINENO: checking for $ac_word" >&5
24889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24890 if test "${ac_cv_prog_F77+set}" = set; then
24891 echo $ECHO_N "(cached) $ECHO_C" >&6
24892 else
24893 if test -n "$F77"; then
24894 ac_cv_prog_F77="$F77" # Let the user override the test.
24895 else
24896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24897 for as_dir in $PATH
24898 do
24899 IFS=$as_save_IFS
24900 test -z "$as_dir" && as_dir=.
24901 for ac_exec_ext in '' $ac_executable_extensions; do
24902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24903 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
24904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24905 break 2
24906 fi
24907 done
24908 done
24909
24910 fi
24911 fi
24912 F77=$ac_cv_prog_F77
24913 if test -n "$F77"; then
24914 echo "$as_me:$LINENO: result: $F77" >&5
24915 echo "${ECHO_T}$F77" >&6
24916 else
24917 echo "$as_me:$LINENO: result: no" >&5
24918 echo "${ECHO_T}no" >&6
24919 fi
24920
24921 test -n "$F77" && break
24922 done
24923 fi
24924 if test -z "$F77"; then
24925 ac_ct_F77=$F77
24926 for ac_prog in $coin_f77_comps
24927 do
24928 # Extract the first word of "$ac_prog", so it can be a program name with args.
24929 set dummy $ac_prog; ac_word=$2
24930 echo "$as_me:$LINENO: checking for $ac_word" >&5
24931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24932 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
24933 echo $ECHO_N "(cached) $ECHO_C" >&6
24934 else
24935 if test -n "$ac_ct_F77"; then
24936 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
24937 else
24938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24939 for as_dir in $PATH
24940 do
24941 IFS=$as_save_IFS
24942 test -z "$as_dir" && as_dir=.
24943 for ac_exec_ext in '' $ac_executable_extensions; do
24944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24945 ac_cv_prog_ac_ct_F77="$ac_prog"
24946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24947 break 2
24948 fi
24949 done
24950 done
24951
24952 fi
24953 fi
24954 ac_ct_F77=$ac_cv_prog_ac_ct_F77
24955 if test -n "$ac_ct_F77"; then
24956 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
24957 echo "${ECHO_T}$ac_ct_F77" >&6
24958 else
24959 echo "$as_me:$LINENO: result: no" >&5
24960 echo "${ECHO_T}no" >&6
24961 fi
24962
24963 test -n "$ac_ct_F77" && break
24964 done
24965
24966 F77=$ac_ct_F77
24967 fi
24968
24969
24970 # Provide some information about the compiler.
24971 echo "$as_me:24971:" \
24972 "checking for Fortran 77 compiler version" >&5
24973 ac_compiler=`set X $ac_compile; echo $2`
24974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
24975 (eval $ac_compiler --version </dev/null >&5) 2>&5
24976 ac_status=$?
24977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); }
24979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
24980 (eval $ac_compiler -v </dev/null >&5) 2>&5
24981 ac_status=$?
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); }
24984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
24985 (eval $ac_compiler -V </dev/null >&5) 2>&5
24986 ac_status=$?
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); }
24989 rm -f a.out
24990
24991 # If we don't use `.F' as extension, the preprocessor is not run on the
24992 # input file. (Note that this only needs to work for GNU compilers.)
24993 ac_save_ext=$ac_ext
24994 ac_ext=F
24995 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
24996 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
24997 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
24998 echo $ECHO_N "(cached) $ECHO_C" >&6
24999 else
25000 cat >conftest.$ac_ext <<_ACEOF
25001 program main
25002 #ifndef __GNUC__
25003 choke me
25004 #endif
25005
25006 end
25007 _ACEOF
25008 rm -f conftest.$ac_objext
25009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25010 (eval $ac_compile) 2>conftest.er1
25011 ac_status=$?
25012 grep -v '^ *+' conftest.er1 >conftest.err
25013 rm -f conftest.er1
25014 cat conftest.err >&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); } &&
25017 { ac_try='test -z "$ac_f77_werror_flag"
25018 || test ! -s conftest.err'
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25021 ac_status=$?
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; } &&
25024 { ac_try='test -s conftest.$ac_objext'
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25027 ac_status=$?
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; }; then
25030 ac_compiler_gnu=yes
25031 else
25032 echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25034
25035 ac_compiler_gnu=no
25036 fi
25037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25038 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
25039
25040 fi
25041 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
25042 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
25043 ac_ext=$ac_save_ext
25044 ac_test_FFLAGS=${FFLAGS+set}
25045 ac_save_FFLAGS=$FFLAGS
25046 FFLAGS=
25047 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
25048 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
25049 if test "${ac_cv_prog_f77_g+set}" = set; then
25050 echo $ECHO_N "(cached) $ECHO_C" >&6
25051 else
25052 FFLAGS=-g
25053 cat >conftest.$ac_ext <<_ACEOF
25054 program main
25055
25056 end
25057 _ACEOF
25058 rm -f conftest.$ac_objext
25059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25060 (eval $ac_compile) 2>conftest.er1
25061 ac_status=$?
25062 grep -v '^ *+' conftest.er1 >conftest.err
25063 rm -f conftest.er1
25064 cat conftest.err >&5
25065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066 (exit $ac_status); } &&
25067 { ac_try='test -z "$ac_f77_werror_flag"
25068 || test ! -s conftest.err'
25069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25070 (eval $ac_try) 2>&5
25071 ac_status=$?
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); }; } &&
25074 { ac_try='test -s conftest.$ac_objext'
25075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25076 (eval $ac_try) 2>&5
25077 ac_status=$?
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); }; }; then
25080 ac_cv_prog_f77_g=yes
25081 else
25082 echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25084
25085 ac_cv_prog_f77_g=no
25086 fi
25087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25088
25089 fi
25090 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
25091 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
25092 if test "$ac_test_FFLAGS" = set; then
25093 FFLAGS=$ac_save_FFLAGS
25094 elif test $ac_cv_prog_f77_g = yes; then
25095 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
25096 FFLAGS="-g -O2"
25097 else
25098 FFLAGS="-g"
25099 fi
25100 else
25101 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
25102 FFLAGS="-O2"
25103 else
25104 FFLAGS=
25105 fi
25106 fi
25107
25108 G77=`test $ac_compiler_gnu = yes && echo yes`
25109 ac_ext=f
25110 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25111 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25112 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25113
25114 else
25115 { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
25116 echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
25117 fi
25118
25119 FFLAGS="$save_fflags"
25120
25121 # Check if a project specific FFLAGS variable has been set
25122 if test x$COIN_PRJCT != x; then
25123 eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
25124 if test x$coin_tmp = xset; then
25125 eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
25126 fi
25127 fi
25128
25129 if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
25130
25131 coin_add_fflags=
25132 coin_opt_fflags=
25133 coin_dbg_fflags=
25134 coin_warn_fflags=
25135
25136 if test "$G77" = "yes"; then
25137 coin_opt_fflags="-O3"
25138 coin_add_fflags="-pipe"
25139 coin_dbg_fflags="-g -O0"
25140 else
25141 case $build in
25142 *-cygwin* | *-mingw*)
25143 case $F77 in
25144 ifort* | */ifort* | IFORT* | */IFORT* )
25145 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
25146 coin_opt_fflags='-MD -O3'
25147 coin_dbg_fflags='-MDd -debug'
25148 else
25149 coin_opt_fflags='-MT -O3'
25150 coin_dbg_fflags='-MTd -debug'
25151 fi
25152 coin_add_fflags='-fpp -nologo'
25153 ;;
25154 compile_f2c*)
25155 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
25156 coin_opt_fflags='-MD -O2'
25157 coin_dbg_fflags='-MDd'
25158 else
25159 coin_opt_fflags='-MT -O2'
25160 coin_dbg_fflags='-MTd'
25161 fi
25162 coin_add_fflags='-nologo -wd4996'
25163 ;;
25164 esac
25165 ;;
25166 *-linux-*)
25167 case $F77 in
25168 ifc* | */ifc* | ifort* | */ifort*)
25169 coin_opt_fflags="-O3 -ip"
25170 coin_add_fflags="-cm -w90 -w95"
25171 coin_dbg_fflags="-g -CA -CB -CS"
25172 # Check if -i_dynamic is necessary (for new glibc library)
25173 FFLAGS=
25174 cat >conftest.$ac_ext <<_ACEOF
25175 program main
25176 write(*,*) 'Hello world'
25177 end
25178 _ACEOF
25179 rm -f conftest.$ac_objext conftest$ac_exeext
25180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25181 (eval $ac_link) 2>conftest.er1
25182 ac_status=$?
25183 grep -v '^ *+' conftest.er1 >conftest.err
25184 rm -f conftest.er1
25185 cat conftest.err >&5
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); } &&
25188 { ac_try='test -z "$ac_f77_werror_flag"
25189 || test ! -s conftest.err'
25190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25191 (eval $ac_try) 2>&5
25192 ac_status=$?
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); }; } &&
25195 { ac_try='test -s conftest$ac_exeext'
25196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25197 (eval $ac_try) 2>&5
25198 ac_status=$?
25199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200 (exit $ac_status); }; }; then
25201 :
25202 else
25203 echo "$as_me: failed program was:" >&5
25204 sed 's/^/| /' conftest.$ac_ext >&5
25205
25206 coin_add_fflags="-i_dynamic $coin_add_fflags"
25207 fi
25208 rm -f conftest.err conftest.$ac_objext \
25209 conftest$ac_exeext conftest.$ac_ext
25210 ;;
25211 pgf77* | */pgf77* | pgf90* | */pgf90*)
25212 coin_opt_fflags="-fast"
25213 coin_add_fflags="-Kieee -pc 64"
25214 coin_dbg_fflags="-g"
25215 ;;
25216 esac
25217 ;;
25218 *-ibm-*)
25219 case "$F77" in
25220 xlf* | */xlf* | mpxlf* | */mpxlf* )
25221 coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
25222 coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
25223 coin_dbg_fflags="-g -C"
25224 ;;
25225 esac
25226 ;;
25227 *-hp-*)
25228 coin_opt_fflags="+O3"
25229 coin_add_fflags="+U77"
25230 coin_dbg_fflags="-C -g"
25231 ;;
25232 *-*-solaris*)
25233 coin_opt_fflags="-O4"
25234 coin_dbg_fflags="-g"
25235 ;;
25236 *-sgi-*)
25237 coin_opt_fflags="-O5 -OPT:Olimit=0"
25238 coin_dbg_fflags="-g"
25239 ;;
25240 esac
25241 fi
25242
25243 if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
25244 coin_dbg_fflags="-g"
25245 fi
25246
25247 if test -z "$coin_opt_fflags"; then
25248 # Try if -O option works if nothing else is set
25249 FFLAGS=-O
25250 cat >conftest.$ac_ext <<_ACEOF
25251 program main
25252 integer i
25253 end
25254 _ACEOF
25255 rm -f conftest.$ac_objext conftest$ac_exeext
25256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25257 (eval $ac_link) 2>conftest.er1
25258 ac_status=$?
25259 grep -v '^ *+' conftest.er1 >conftest.err
25260 rm -f conftest.er1
25261 cat conftest.err >&5
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); } &&
25264 { ac_try='test -z "$ac_f77_werror_flag"
25265 || test ! -s conftest.err'
25266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267 (eval $ac_try) 2>&5
25268 ac_status=$?
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); }; } &&
25271 { ac_try='test -s conftest$ac_exeext'
25272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273 (eval $ac_try) 2>&5
25274 ac_status=$?
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; }; then
25277 coin_opt_fflags="-O"
25278 else
25279 echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25281
25282 fi
25283 rm -f conftest.err conftest.$ac_objext \
25284 conftest$ac_exeext conftest.$ac_ext
25285 fi
25286
25287 # if PM doesn't want the warning messages, take them out
25288 if test x"$coin_skip_warn_fflags" = xyes; then
25289 coin_warn_fflags=
25290 fi
25291
25292 if test x${DBG_FFLAGS+set} != xset; then
25293 DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
25294 fi
25295 if test x${OPT_FFLAGS+set} != xset; then
25296 OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
25297 fi
25298
25299 DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
25300 OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
25301
25302 if test "$coin_debug_compile" = "true"; then
25303 FFLAGS="$DBG_FFLAGS"
25304 else
25305 FFLAGS="$OPT_FFLAGS"
25306 fi
25307 else
25308 FFLAGS="$FFLAGS $ADD_FFLAGS"
25309 if test x${DBG_FFLAGS+set} != xset; then
25310 DBG_FFLAGS="$FFLAGS"
25311 fi
25312 if test x${OPT_FFLAGS+set} != xset; then
25313 OPT_FFLAGS="$FFLAGS"
25314 fi
25315 fi
25316
25317 # Try if FFLAGS works
25318 if test "$F77" != "unavailable" ; then
25319 orig_FFLAGS="FFLAGS"
25320 cat >conftest.$ac_ext <<_ACEOF
25321 program main
25322 integer i
25323 end
25324 _ACEOF
25325 rm -f conftest.$ac_objext conftest$ac_exeext
25326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25327 (eval $ac_link) 2>conftest.er1
25328 ac_status=$?
25329 grep -v '^ *+' conftest.er1 >conftest.err
25330 rm -f conftest.er1
25331 cat conftest.err >&5
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } &&
25334 { ac_try='test -z "$ac_f77_werror_flag"
25335 || test ! -s conftest.err'
25336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25337 (eval $ac_try) 2>&5
25338 ac_status=$?
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); }; } &&
25341 { ac_try='test -s conftest$ac_exeext'
25342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343 (eval $ac_try) 2>&5
25344 ac_status=$?
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; }; then
25347 :
25348 else
25349 echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25351
25352 FFLAGS=
25353 fi
25354 rm -f conftest.err conftest.$ac_objext \
25355 conftest$ac_exeext conftest.$ac_ext
25356 if test -z "$FFLAGS"; then
25357 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&5
25358 echo "$as_me: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
25359 FFLAGS='-O'
25360 cat >conftest.$ac_ext <<_ACEOF
25361 program main
25362 integer i
25363 end
25364 _ACEOF
25365 rm -f conftest.$ac_objext conftest$ac_exeext
25366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25367 (eval $ac_link) 2>conftest.er1
25368 ac_status=$?
25369 grep -v '^ *+' conftest.er1 >conftest.err
25370 rm -f conftest.er1
25371 cat conftest.err >&5
25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); } &&
25374 { ac_try='test -z "$ac_f77_werror_flag"
25375 || test ! -s conftest.err'
25376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25377 (eval $ac_try) 2>&5
25378 ac_status=$?
25379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); }; } &&
25381 { ac_try='test -s conftest$ac_exeext'
25382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25383 (eval $ac_try) 2>&5
25384 ac_status=$?
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); }; }; then
25387 :
25388 else
25389 echo "$as_me: failed program was:" >&5
25390 sed 's/^/| /' conftest.$ac_ext >&5
25391
25392 FFLAGS=
25393 fi
25394 rm -f conftest.err conftest.$ac_objext \
25395 conftest$ac_exeext conftest.$ac_ext
25396 if test -z "$FFLAGS"; then
25397 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
25398 echo "$as_me: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
25399 fi
25400 fi
25401 fi
25402
25403 { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
25404 echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
25405
25406
25407 if test x"$MPIF77" = x; then :; else
25408 { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
25409 echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
25410 F77="$MPIF77"
25411 fi
25412
25413 # correct the LD variable if we use the intel fortran compiler in windows
25414 case $build in
25415 *-cygwin* | *-mingw*)
25416 case "$F77" in
25417 ifort* | */ifort* | IFORT* | */IFORT*)
25418 LD=link
25419 ;;
25420 esac
25421 ;;
25422 esac
25423
25424 ac_ext=c
25425 ac_cpp='$CPP $CPPFLAGS'
25426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25429
25430
25431
25432 # get FLIBS
25433 ac_ext=f
25434 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25435 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25436 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25437 echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
25438 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
25439 if test "${ac_cv_prog_f77_v+set}" = set; then
25440 echo $ECHO_N "(cached) $ECHO_C" >&6
25441 else
25442 cat >conftest.$ac_ext <<_ACEOF
25443 program main
25444
25445 end
25446 _ACEOF
25447 rm -f conftest.$ac_objext
25448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25449 (eval $ac_compile) 2>conftest.er1
25450 ac_status=$?
25451 grep -v '^ *+' conftest.er1 >conftest.err
25452 rm -f conftest.er1
25453 cat conftest.err >&5
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } &&
25456 { ac_try='test -z "$ac_f77_werror_flag"
25457 || test ! -s conftest.err'
25458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25459 (eval $ac_try) 2>&5
25460 ac_status=$?
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); }; } &&
25463 { ac_try='test -s conftest.$ac_objext'
25464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25465 (eval $ac_try) 2>&5
25466 ac_status=$?
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); }; }; then
25469 ac_cv_prog_f77_v=
25470 # Try some options frequently used verbose output
25471 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
25472 cat >conftest.$ac_ext <<_ACEOF
25473 program main
25474
25475 end
25476 _ACEOF
25477
25478 # Compile and link our simple test program by passing a flag (argument
25479 # 1 to this macro) to the Fortran compiler in order to get
25480 # "verbose" output that we can then parse for the Fortran linker
25481 # flags.
25482 ac_save_FFLAGS=$FFLAGS
25483 FFLAGS="$FFLAGS $ac_verb"
25484 (eval echo $as_me:25484: \"$ac_link\") >&5
25485 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
25486 echo "$ac_f77_v_output" >&5
25487 FFLAGS=$ac_save_FFLAGS
25488
25489 rm -f conftest*
25490
25491 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
25492 # /foo, /bar, and /baz are search directories for the Fortran linker.
25493 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
25494 ac_f77_v_output="`echo $ac_f77_v_output |
25495 grep 'LPATH is:' |
25496 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
25497
25498 case $ac_f77_v_output in
25499 # If we are using xlf then replace all the commas with spaces.
25500 *xlfentry*)
25501 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
25502
25503 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
25504 # $LIBS confuse us, and the libraries appear later in the output anyway).
25505 *mGLOB_options_string*)
25506 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
25507
25508 # If we are using Cray Fortran then delete quotes.
25509 # Use "\"" instead of '"' for font-lock-mode.
25510 # FIXME: a more general fix for quoted arguments with spaces?
25511 *cft90*)
25512 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
25513 esac
25514
25515
25516 # look for -l* and *.a constructs in the output
25517 for ac_arg in $ac_f77_v_output; do
25518 case $ac_arg in
25519 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
25520 ac_cv_prog_f77_v=$ac_verb
25521 break 2 ;;
25522 esac
25523 done
25524 done
25525 if test -z "$ac_cv_prog_f77_v"; then
25526 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
25527 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
25528 fi
25529 else
25530 echo "$as_me: failed program was:" >&5
25531 sed 's/^/| /' conftest.$ac_ext >&5
25532
25533 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
25534 echo "$as_me: WARNING: compilation failed" >&2;}
25535 fi
25536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25537
25538 fi
25539 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
25540 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
25541 echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
25542 echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
25543 if test "${ac_cv_f77_libs+set}" = set; then
25544 echo $ECHO_N "(cached) $ECHO_C" >&6
25545 else
25546 if test "x$FLIBS" != "x"; then
25547 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
25548 else
25549
25550 cat >conftest.$ac_ext <<_ACEOF
25551 program main
25552
25553 end
25554 _ACEOF
25555
25556 # Compile and link our simple test program by passing a flag (argument
25557 # 1 to this macro) to the Fortran compiler in order to get
25558 # "verbose" output that we can then parse for the Fortran linker
25559 # flags.
25560 ac_save_FFLAGS=$FFLAGS
25561 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
25562 (eval echo $as_me:25562: \"$ac_link\") >&5
25563 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
25564 echo "$ac_f77_v_output" >&5
25565 FFLAGS=$ac_save_FFLAGS
25566
25567 rm -f conftest*
25568
25569 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
25570 # /foo, /bar, and /baz are search directories for the Fortran linker.
25571 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
25572 ac_f77_v_output="`echo $ac_f77_v_output |
25573 grep 'LPATH is:' |
25574 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
25575
25576 case $ac_f77_v_output in
25577 # If we are using xlf then replace all the commas with spaces.
25578 *xlfentry*)
25579 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
25580
25581 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
25582 # $LIBS confuse us, and the libraries appear later in the output anyway).
25583 *mGLOB_options_string*)
25584 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
25585
25586 # If we are using Cray Fortran then delete quotes.
25587 # Use "\"" instead of '"' for font-lock-mode.
25588 # FIXME: a more general fix for quoted arguments with spaces?
25589 *cft90*)
25590 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
25591 esac
25592
25593
25594
25595 ac_cv_f77_libs=
25596
25597 # Save positional arguments (if any)
25598 ac_save_positional="$@"
25599
25600 set X $ac_f77_v_output
25601 while test $# != 1; do
25602 shift
25603 ac_arg=$1
25604 case $ac_arg in
25605 [\\/]*.a | ?:[\\/]*.a)
25606 ac_exists=false
25607 for ac_i in $ac_cv_f77_libs; do
25608 if test x"$ac_arg" = x"$ac_i"; then
25609 ac_exists=true
25610 break
25611 fi
25612 done
25613
25614 if test x"$ac_exists" = xtrue; then
25615 :
25616 else
25617 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
25618 fi
25619
25620 ;;
25621 -bI:*)
25622 ac_exists=false
25623 for ac_i in $ac_cv_f77_libs; do
25624 if test x"$ac_arg" = x"$ac_i"; then
25625 ac_exists=true
25626 break
25627 fi
25628 done
25629
25630 if test x"$ac_exists" = xtrue; then
25631 :
25632 else
25633 if test "$ac_compiler_gnu" = yes; then
25634 for ac_link_opt in $ac_arg; do
25635 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
25636 done
25637 else
25638 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
25639 fi
25640 fi
25641
25642 ;;
25643 # Ignore these flags.
25644 -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
25645 ;;
25646 -lkernel32)
25647 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
25648 ;;
25649 -[LRuY])
25650 # These flags, when seen by themselves, take an argument.
25651 # We remove the space between option and argument and re-iterate
25652 # unless we find an empty arg or a new option (starting with -)
25653 case $2 in
25654 "" | -*);;
25655 *)
25656 ac_arg="$ac_arg$2"
25657 shift; shift
25658 set X $ac_arg "$@"
25659 ;;
25660 esac
25661 ;;
25662 -YP,*)
25663 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
25664 ac_exists=false
25665 for ac_i in $ac_cv_f77_libs; do
25666 if test x"$ac_j" = x"$ac_i"; then
25667 ac_exists=true
25668 break
25669 fi
25670 done
25671
25672 if test x"$ac_exists" = xtrue; then
25673 :
25674 else
25675 ac_arg="$ac_arg $ac_j"
25676 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
25677 fi
25678
25679 done
25680 ;;
25681 -[lLR]*)
25682 ac_exists=false
25683 for ac_i in $ac_cv_f77_libs; do
25684 if test x"$ac_arg" = x"$ac_i"; then
25685 ac_exists=true
25686 break
25687 fi
25688 done
25689
25690 if test x"$ac_exists" = xtrue; then
25691 :
25692 else
25693 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
25694 fi
25695
25696 ;;
25697 # Ignore everything else.
25698 esac
25699 done
25700 # restore positional arguments
25701 set X $ac_save_positional; shift
25702
25703 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
25704 # then we insist that the "run path" must be an absolute path (i.e. it
25705 # must begin with a "/").
25706 case `(uname -sr) 2>/dev/null` in
25707 "SunOS 5"*)
25708 ac_ld_run_path=`echo $ac_f77_v_output |
25709 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
25710 test "x$ac_ld_run_path" != x &&
25711 if test "$ac_compiler_gnu" = yes; then
25712 for ac_link_opt in $ac_ld_run_path; do
25713 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
25714 done
25715 else
25716 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
25717 fi
25718 ;;
25719 esac
25720 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
25721
25722 fi
25723 echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
25724 echo "${ECHO_T}$ac_cv_f77_libs" >&6
25725 FLIBS="$ac_cv_f77_libs"
25726
25727
25728 ac_ext=c
25729 ac_cpp='$CPP $CPPFLAGS'
25730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25733
25734 orig_FLIBS="$FLIBS"
25735
25736 # If FLIBS has been set by the user, we just restore its value here
25737 if test x"$save_FLIBS" != x; then
25738 FLIBS="$save_FLIBS"
25739 else
25740 # This is to correct a missing exclusion in autoconf 2.59
25741 if test x"$FLIBS" != x; then
25742 my_flibs=
25743 for flag in $FLIBS; do
25744 case $flag in
25745 -lcrt*.o) ;;
25746 -lcygwin) ;;
25747 -lgcc*) ;;
25748 *) my_flibs="$my_flibs $flag" ;;
25749 esac
25750 done
25751 FLIBS="$my_flibs"
25752 fi
25753
25754 case $build in
25755 # The following is a fix to define FLIBS for ifort on Windows
25756 # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
25757 # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
25758 # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
25759 # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
25760 # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
25761 *-cygwin* | *-mingw*)
25762 case "$F77" in
25763 # ifort* | */ifort* | IFORT* | */IFORT*)
25764 # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
25765 # if "$coin_debug_compile" = true ; then
25766 # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
25767 # else
25768 # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
25769 # fi
25770 # ;;
25771 compile_f2c*)
25772 FLIBS=`$F77 -FLIBS` ;;
25773 esac;;
25774 *-hp-*)
25775 FLIBS="$FLIBS -lm";;
25776 *-ibm-*)
25777 FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
25778 *-linux-*)
25779 case "$F77" in
25780 pgf77* | */pgf77* | pgf90* | */pgf90*)
25781 # ask linker to go through the archives multiple times
25782 # (the Fortran compiler seems to do that automatically...)
25783 FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
25784 esac
25785 esac
25786 ac_cv_f77_libs="$FLIBS"
25787 fi
25788
25789 if test "x$orig_FLIBS" != "x$FLIBS" ; then
25790 { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
25791 echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
25792 fi
25793
25794 ac_ext=f
25795 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25796 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25797 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25798
25799 echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
25800 echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
25801 if test "${ac_cv_f77_dummy_main+set}" = set; then
25802 echo $ECHO_N "(cached) $ECHO_C" >&6
25803 else
25804 ac_f77_dm_save_LIBS=$LIBS
25805 LIBS="$LIBS $FLIBS"
25806 ac_fortran_dm_var=F77_DUMMY_MAIN
25807 ac_ext=c
25808 ac_cpp='$CPP $CPPFLAGS'
25809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25812
25813 # First, try linking without a dummy main:
25814 cat >conftest.$ac_ext <<_ACEOF
25815 /* confdefs.h. */
25816 _ACEOF
25817 cat confdefs.h >>conftest.$ac_ext
25818 cat >>conftest.$ac_ext <<_ACEOF
25819 /* end confdefs.h. */
25820
25821 #ifdef F77_DUMMY_MAIN
25822
25823 # ifdef __cplusplus
25824 extern "C"
25825 # endif
25826 int F77_DUMMY_MAIN() { return 1; }
25827
25828 #endif
25829 int
25830 main ()
25831 {
25832
25833 ;
25834 return 0;
25835 }
25836 _ACEOF
25837 rm -f conftest.$ac_objext conftest$ac_exeext
25838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25839 (eval $ac_link) 2>conftest.er1
25840 ac_status=$?
25841 grep -v '^ *+' conftest.er1 >conftest.err
25842 rm -f conftest.er1
25843 cat conftest.err >&5
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } &&
25846 { ac_try='test -z "$ac_c_werror_flag"
25847 || test ! -s conftest.err'
25848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849 (eval $ac_try) 2>&5
25850 ac_status=$?
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; } &&
25853 { ac_try='test -s conftest$ac_exeext'
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25856 ac_status=$?
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; }; then
25859 ac_cv_fortran_dummy_main=none
25860 else
25861 echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25863
25864 ac_cv_fortran_dummy_main=unknown
25865 fi
25866 rm -f conftest.err conftest.$ac_objext \
25867 conftest$ac_exeext conftest.$ac_ext
25868
25869 if test $ac_cv_fortran_dummy_main = unknown; then
25870 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
25871 cat >conftest.$ac_ext <<_ACEOF
25872 /* confdefs.h. */
25873 _ACEOF
25874 cat confdefs.h >>conftest.$ac_ext
25875 cat >>conftest.$ac_ext <<_ACEOF
25876 /* end confdefs.h. */
25877 #define $ac_fortran_dm_var $ac_func
25878 #ifdef F77_DUMMY_MAIN
25879
25880 # ifdef __cplusplus
25881 extern "C"
25882 # endif
25883 int F77_DUMMY_MAIN() { return 1; }
25884
25885 #endif
25886 int
25887 main ()
25888 {
25889
25890 ;
25891 return 0;
25892 }
25893 _ACEOF
25894 rm -f conftest.$ac_objext conftest$ac_exeext
25895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25896 (eval $ac_link) 2>conftest.er1
25897 ac_status=$?
25898 grep -v '^ *+' conftest.er1 >conftest.err
25899 rm -f conftest.er1
25900 cat conftest.err >&5
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); } &&
25903 { ac_try='test -z "$ac_c_werror_flag"
25904 || test ! -s conftest.err'
25905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906 (eval $ac_try) 2>&5
25907 ac_status=$?
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); }; } &&
25910 { ac_try='test -s conftest$ac_exeext'
25911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912 (eval $ac_try) 2>&5
25913 ac_status=$?
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; }; then
25916 ac_cv_fortran_dummy_main=$ac_func; break
25917 else
25918 echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25920
25921 fi
25922 rm -f conftest.err conftest.$ac_objext \
25923 conftest$ac_exeext conftest.$ac_ext
25924 done
25925 fi
25926 ac_ext=f
25927 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25928 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25929 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25930 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
25931 rm -f conftest*
25932 LIBS=$ac_f77_dm_save_LIBS
25933
25934 fi
25935 echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
25936 echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
25937 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
25938 if test "$F77_DUMMY_MAIN" != unknown; then
25939 if test $F77_DUMMY_MAIN != none; then
25940
25941 cat >>confdefs.h <<_ACEOF
25942 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN
25943 _ACEOF
25944
25945 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
25946
25947 cat >>confdefs.h <<\_ACEOF
25948 #define FC_DUMMY_MAIN_EQ_F77 1
25949 _ACEOF
25950
25951 fi
25952 fi
25953 else
25954 { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
25955 See \`config.log' for more details." >&5
25956 echo "$as_me: error: linking to Fortran libraries from C fails
25957 See \`config.log' for more details." >&2;}
25958 { (exit 1); exit 1; }; }
25959 fi
25960
25961
25962 ac_ext=f
25963 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25964 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25965 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25966
25967 ac_ext=f
25968 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25969 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25970 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25971 echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
25972 echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
25973 if test "${ac_cv_f77_mangling+set}" = set; then
25974 echo $ECHO_N "(cached) $ECHO_C" >&6
25975 else
25976 cat >conftest.$ac_ext <<_ACEOF
25977 subroutine foobar()
25978 return
25979 end
25980 subroutine foo_bar()
25981 return
25982 end
25983 _ACEOF
25984 rm -f conftest.$ac_objext
25985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25986 (eval $ac_compile) 2>conftest.er1
25987 ac_status=$?
25988 grep -v '^ *+' conftest.er1 >conftest.err
25989 rm -f conftest.er1
25990 cat conftest.err >&5
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); } &&
25993 { ac_try='test -z "$ac_f77_werror_flag"
25994 || test ! -s conftest.err'
25995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25996 (eval $ac_try) 2>&5
25997 ac_status=$?
25998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); }; } &&
26000 { ac_try='test -s conftest.$ac_objext'
26001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26002 (eval $ac_try) 2>&5
26003 ac_status=$?
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); }; }; then
26006 mv conftest.$ac_objext cfortran_test.$ac_objext
26007
26008 ac_save_LIBS=$LIBS
26009 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
26010
26011 ac_ext=c
26012 ac_cpp='$CPP $CPPFLAGS'
26013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26016 ac_success=no
26017 for ac_foobar in foobar FOOBAR; do
26018 for ac_underscore in "" "_"; do
26019 ac_func="$ac_foobar$ac_underscore"
26020 cat >conftest.$ac_ext <<_ACEOF
26021 /* confdefs.h. */
26022 _ACEOF
26023 cat confdefs.h >>conftest.$ac_ext
26024 cat >>conftest.$ac_ext <<_ACEOF
26025 /* end confdefs.h. */
26026
26027 /* Override any gcc2 internal prototype to avoid an error. */
26028 #ifdef __cplusplus
26029 extern "C"
26030 #endif
26031 /* We use char because int might match the return type of a gcc2
26032 builtin and then its argument prototype would still apply. */
26033 char $ac_func ();
26034 #ifdef F77_DUMMY_MAIN
26035
26036 # ifdef __cplusplus
26037 extern "C"
26038 # endif
26039 int F77_DUMMY_MAIN() { return 1; }
26040
26041 #endif
26042 int
26043 main ()
26044 {
26045 $ac_func ();
26046 ;
26047 return 0;
26048 }
26049 _ACEOF
26050 rm -f conftest.$ac_objext conftest$ac_exeext
26051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26052 (eval $ac_link) 2>conftest.er1
26053 ac_status=$?
26054 grep -v '^ *+' conftest.er1 >conftest.err
26055 rm -f conftest.er1
26056 cat conftest.err >&5
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); } &&
26059 { ac_try='test -z "$ac_c_werror_flag"
26060 || test ! -s conftest.err'
26061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26062 (eval $ac_try) 2>&5
26063 ac_status=$?
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); }; } &&
26066 { ac_try='test -s conftest$ac_exeext'
26067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26068 (eval $ac_try) 2>&5
26069 ac_status=$?
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); }; }; then
26072 ac_success=yes; break 2
26073 else
26074 echo "$as_me: failed program was:" >&5
26075 sed 's/^/| /' conftest.$ac_ext >&5
26076
26077 fi
26078 rm -f conftest.err conftest.$ac_objext \
26079 conftest$ac_exeext conftest.$ac_ext
26080 done
26081 done
26082 ac_ext=f
26083 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26084 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26085 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26086
26087 if test "$ac_success" = "yes"; then
26088 case $ac_foobar in
26089 foobar)
26090 ac_case=lower
26091 ac_foo_bar=foo_bar
26092 ;;
26093 FOOBAR)
26094 ac_case=upper
26095 ac_foo_bar=FOO_BAR
26096 ;;
26097 esac
26098
26099 ac_ext=c
26100 ac_cpp='$CPP $CPPFLAGS'
26101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26104 ac_success_extra=no
26105 for ac_extra in "" "_"; do
26106 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
26107 cat >conftest.$ac_ext <<_ACEOF
26108 /* confdefs.h. */
26109 _ACEOF
26110 cat confdefs.h >>conftest.$ac_ext
26111 cat >>conftest.$ac_ext <<_ACEOF
26112 /* end confdefs.h. */
26113
26114 /* Override any gcc2 internal prototype to avoid an error. */
26115 #ifdef __cplusplus
26116 extern "C"
26117 #endif
26118 /* We use char because int might match the return type of a gcc2
26119 builtin and then its argument prototype would still apply. */
26120 char $ac_func ();
26121 #ifdef F77_DUMMY_MAIN
26122
26123 # ifdef __cplusplus
26124 extern "C"
26125 # endif
26126 int F77_DUMMY_MAIN() { return 1; }
26127
26128 #endif
26129 int
26130 main ()
26131 {
26132 $ac_func ();
26133 ;
26134 return 0;
26135 }
26136 _ACEOF
26137 rm -f conftest.$ac_objext conftest$ac_exeext
26138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26139 (eval $ac_link) 2>conftest.er1
26140 ac_status=$?
26141 grep -v '^ *+' conftest.er1 >conftest.err
26142 rm -f conftest.er1
26143 cat conftest.err >&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); } &&
26146 { ac_try='test -z "$ac_c_werror_flag"
26147 || test ! -s conftest.err'
26148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26149 (eval $ac_try) 2>&5
26150 ac_status=$?
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); }; } &&
26153 { ac_try='test -s conftest$ac_exeext'
26154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26155 (eval $ac_try) 2>&5
26156 ac_status=$?
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); }; }; then
26159 ac_success_extra=yes; break
26160 else
26161 echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26163
26164 fi
26165 rm -f conftest.err conftest.$ac_objext \
26166 conftest$ac_exeext conftest.$ac_ext
26167 done
26168 ac_ext=f
26169 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26170 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26171 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26172
26173 if test "$ac_success_extra" = "yes"; then
26174 ac_cv_f77_mangling="$ac_case case"
26175 if test -z "$ac_underscore"; then
26176 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
26177 else
26178 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
26179 fi
26180 if test -z "$ac_extra"; then
26181 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
26182 else
26183 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
26184 fi
26185 else
26186 ac_cv_f77_mangling="unknown"
26187 fi
26188 else
26189 ac_cv_f77_mangling="unknown"
26190 fi
26191
26192 LIBS=$ac_save_LIBS
26193 rm -f cfortran_test* conftest*
26194 else
26195 echo "$as_me: failed program was:" >&5
26196 sed 's/^/| /' conftest.$ac_ext >&5
26197
26198 { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
26199 See \`config.log' for more details." >&5
26200 echo "$as_me: error: cannot compile a simple Fortran program
26201 See \`config.log' for more details." >&2;}
26202 { (exit 1); exit 1; }; }
26203 fi
26204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26205
26206 fi
26207 echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
26208 echo "${ECHO_T}$ac_cv_f77_mangling" >&6
26209
26210 ac_ext=f
26211 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26212 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26213 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26214
26215
26216 ac_ext=f
26217 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26218 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26219 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26220
26221 ac_ext=f
26222 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26223 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26224 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26225
26226
26227 case $ac_cv_f77_mangling in
26228 "lower case, no underscore, no extra underscore")
26229 cat >>confdefs.h <<\_ACEOF
26230 #define F77_FUNC(name,NAME) name
26231 _ACEOF
26232
26233 cat >>confdefs.h <<\_ACEOF
26234 #define F77_FUNC_(name,NAME) name
26235 _ACEOF
26236 ;;
26237 "lower case, no underscore, extra underscore")
26238 cat >>confdefs.h <<\_ACEOF
26239 #define F77_FUNC(name,NAME) name
26240 _ACEOF
26241
26242 cat >>confdefs.h <<\_ACEOF
26243 #define F77_FUNC_(name,NAME) name ## _
26244 _ACEOF
26245 ;;
26246 "lower case, underscore, no extra underscore")
26247 cat >>confdefs.h <<\_ACEOF
26248 #define F77_FUNC(name,NAME) name ## _
26249 _ACEOF
26250
26251 cat >>confdefs.h <<\_ACEOF
26252 #define F77_FUNC_(name,NAME) name ## _
26253 _ACEOF
26254 ;;
26255 "lower case, underscore, extra underscore")
26256 cat >>confdefs.h <<\_ACEOF
26257 #define F77_FUNC(name,NAME) name ## _
26258 _ACEOF
26259
26260 cat >>confdefs.h <<\_ACEOF
26261 #define F77_FUNC_(name,NAME) name ## __
26262 _ACEOF
26263 ;;
26264 "upper case, no underscore, no extra underscore")
26265 cat >>confdefs.h <<\_ACEOF
26266 #define F77_FUNC(name,NAME) NAME
26267 _ACEOF
26268
26269 cat >>confdefs.h <<\_ACEOF
26270 #define F77_FUNC_(name,NAME) NAME
26271 _ACEOF
26272 ;;
26273 "upper case, no underscore, extra underscore")
26274 cat >>confdefs.h <<\_ACEOF
26275 #define F77_FUNC(name,NAME) NAME
26276 _ACEOF
26277
26278 cat >>confdefs.h <<\_ACEOF
26279 #define F77_FUNC_(name,NAME) NAME ## _
26280 _ACEOF
26281 ;;
26282 "upper case, underscore, no extra underscore")
26283 cat >>confdefs.h <<\_ACEOF
26284 #define F77_FUNC(name,NAME) NAME ## _
26285 _ACEOF
26286
26287 cat >>confdefs.h <<\_ACEOF
26288 #define F77_FUNC_(name,NAME) NAME ## _
26289 _ACEOF
26290 ;;
26291 "upper case, underscore, extra underscore")
26292 cat >>confdefs.h <<\_ACEOF
26293 #define F77_FUNC(name,NAME) NAME ## _
26294 _ACEOF
26295
26296 cat >>confdefs.h <<\_ACEOF
26297 #define F77_FUNC_(name,NAME) NAME ## __
26298 _ACEOF
26299 ;;
26300 *)
26301 { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
26302 echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
26303 ;;
26304 esac
26305
26306 ac_ext=f
26307 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26308 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26309 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26310
26311 ac_ext=c
26312 ac_cpp='$CPP $CPPFLAGS'
26313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26316
26317
26318
26319
26320 # WSMP requires Blas
26321
26322
26323 # Check whether --with-blas or --without-blas was given.
26324 if test "${with_blas+set}" = set; then
26325 withval="$with_blas"
26326 use_blas="$withval"
26327 else
26328 use_blas=
26329 fi;
26330
26331 # if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE
26332 # preference
26333
26334 # Check whether --with-blas-lib or --without-blas-lib was given.
26335 if test "${with_blas_lib+set}" = set; then
26336 withval="$with_blas_lib"
26337 use_blas=BUILD
26338 fi;
26339
26340 # Check if user supplied option makes sense
26341 if test x"$use_blas" != x; then
26342 if test "$use_blas" = "BUILD"; then
26343 # we come to this later
26344 :
26345 elif test "$use_blas" != "no"; then
26346 coin_save_LIBS="$LIBS"
26347 LIBS="$use_blas $LIBS"
26348 if test "$F77" != unavailable ; then
26349 coin_need_flibs=no
26350 echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
26351 echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
26352 case $ac_ext in
26353 f)
26354 cat >conftest.$ac_ext <<_ACEOF
26355 /* confdefs.h. */
26356 _ACEOF
26357 cat confdefs.h >>conftest.$ac_ext
26358 cat >>conftest.$ac_ext <<_ACEOF
26359 /* end confdefs.h. */
26360
26361 #ifdef F77_DUMMY_MAIN
26362
26363 # ifdef __cplusplus
26364 extern "C"
26365 # endif
26366 int F77_DUMMY_MAIN() { return 1; }
26367
26368 #endif
26369 int
26370 main ()
26371 {
26372 call daxpy
26373 ;
26374 return 0;
26375 }
26376 _ACEOF
26377 rm -f conftest.$ac_objext conftest$ac_exeext
26378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26379 (eval $ac_link) 2>conftest.er1
26380 ac_status=$?
26381 grep -v '^ *+' conftest.er1 >conftest.err
26382 rm -f conftest.er1
26383 cat conftest.err >&5
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); } &&
26386 { ac_try='test -z "$ac_c_werror_flag"
26387 || test ! -s conftest.err'
26388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26389 (eval $ac_try) 2>&5
26390 ac_status=$?
26391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392 (exit $ac_status); }; } &&
26393 { ac_try='test -s conftest$ac_exeext'
26394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26395 (eval $ac_try) 2>&5
26396 ac_status=$?
26397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398 (exit $ac_status); }; }; then
26399 if test $coin_need_flibs = yes ; then
26400 use_blas="$use_blas $FLIBS"
26401 fi
26402 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
26403 echo "${ECHO_T}yes: $use_blas" >&6
26404 else
26405 echo "$as_me: failed program was:" >&5
26406 sed 's/^/| /' conftest.$ac_ext >&5
26407
26408 echo "$as_me:$LINENO: result: no" >&5
26409 echo "${ECHO_T}no" >&6
26410 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
26411 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
26412 { (exit 1); exit 1; }; }
26413 fi
26414 rm -f conftest.err conftest.$ac_objext \
26415 conftest$ac_exeext conftest.$ac_ext
26416 ;;
26417 c)
26418 ac_ext=f
26419 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26420 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26421 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26422 case $ac_cv_f77_mangling in
26423 upper*) ac_val="DAXPY" ;;
26424 lower*) ac_val="daxpy" ;;
26425 *) ac_val="unknown" ;;
26426 esac
26427 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
26428
26429 cfuncdaxpy="$ac_val"
26430
26431 ac_ext=c
26432 ac_cpp='$CPP $CPPFLAGS'
26433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26436
26437 if test x"$coin_need_flibs" = xyes; then
26438 flink_try=no;
26439 else
26440 cat >conftest.$ac_ext <<_ACEOF
26441 /* confdefs.h. */
26442 _ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h. */
26446 void $cfuncdaxpy();
26447 #ifdef F77_DUMMY_MAIN
26448
26449 # ifdef __cplusplus
26450 extern "C"
26451 # endif
26452 int F77_DUMMY_MAIN() { return 1; }
26453
26454 #endif
26455 int
26456 main ()
26457 {
26458 $cfuncdaxpy()
26459 ;
26460 return 0;
26461 }
26462 _ACEOF
26463 rm -f conftest.$ac_objext conftest$ac_exeext
26464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26465 (eval $ac_link) 2>conftest.er1
26466 ac_status=$?
26467 grep -v '^ *+' conftest.er1 >conftest.err
26468 rm -f conftest.er1
26469 cat conftest.err >&5
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); } &&
26472 { ac_try='test -z "$ac_c_werror_flag"
26473 || test ! -s conftest.err'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; } &&
26479 { ac_try='test -s conftest$ac_exeext'
26480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26482 ac_status=$?
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; }; then
26485 flink_try=yes
26486 else
26487 echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26489
26490 flink_try=no
26491 fi
26492 rm -f conftest.err conftest.$ac_objext \
26493 conftest$ac_exeext conftest.$ac_ext
26494 fi
26495 if test $flink_try = yes; then
26496 if test $coin_need_flibs = yes ; then
26497 use_blas="$use_blas $FLIBS"
26498 fi
26499 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
26500 echo "${ECHO_T}yes: $use_blas" >&6
26501 else
26502 if test x"$FLIBS" != x; then
26503 flink_save_libs="$LIBS"
26504 LIBS="$LIBS $FLIBS"
26505 cat >conftest.$ac_ext <<_ACEOF
26506 /* confdefs.h. */
26507 _ACEOF
26508 cat confdefs.h >>conftest.$ac_ext
26509 cat >>conftest.$ac_ext <<_ACEOF
26510 /* end confdefs.h. */
26511 void $cfuncdaxpy();
26512 #ifdef F77_DUMMY_MAIN
26513
26514 # ifdef __cplusplus
26515 extern "C"
26516 # endif
26517 int F77_DUMMY_MAIN() { return 1; }
26518
26519 #endif
26520 int
26521 main ()
26522 {
26523 $cfuncdaxpy()
26524 ;
26525 return 0;
26526 }
26527 _ACEOF
26528 rm -f conftest.$ac_objext conftest$ac_exeext
26529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26530 (eval $ac_link) 2>conftest.er1
26531 ac_status=$?
26532 grep -v '^ *+' conftest.er1 >conftest.err
26533 rm -f conftest.er1
26534 cat conftest.err >&5
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); } &&
26537 { ac_try='test -z "$ac_c_werror_flag"
26538 || test ! -s conftest.err'
26539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26540 (eval $ac_try) 2>&5
26541 ac_status=$?
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); }; } &&
26544 { ac_try='test -s conftest$ac_exeext'
26545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26546 (eval $ac_try) 2>&5
26547 ac_status=$?
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); }; }; then
26550 LIBS="$flink_save_libs"
26551 coin_need_flibs=yes
26552 if test $coin_need_flibs = yes ; then
26553 use_blas="$use_blas $FLIBS"
26554 fi
26555 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
26556 echo "${ECHO_T}yes: $use_blas" >&6
26557
26558 else
26559 echo "$as_me: failed program was:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26561
26562 LIBS="$flink_save_libs"
26563 echo "$as_me:$LINENO: result: no" >&5
26564 echo "${ECHO_T}no" >&6
26565 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
26566 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
26567 { (exit 1); exit 1; }; }
26568 fi
26569 rm -f conftest.err conftest.$ac_objext \
26570 conftest$ac_exeext conftest.$ac_ext
26571 else
26572 echo "$as_me:$LINENO: result: no" >&5
26573 echo "${ECHO_T}no" >&6
26574 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
26575 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
26576 { (exit 1); exit 1; }; }
26577 fi
26578 fi
26579 ;;
26580 cc|cpp)
26581 ac_ext=f
26582 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26583 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26584 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26585 case $ac_cv_f77_mangling in
26586 upper*) ac_val="DAXPY" ;;
26587 lower*) ac_val="daxpy" ;;
26588 *) ac_val="unknown" ;;
26589 esac
26590 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
26591
26592 cfuncdaxpy="$ac_val"
26593
26594 ac_ext=c
26595 ac_cpp='$CPP $CPPFLAGS'
26596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26599
26600 if test x"$coin_need_flibs" = xyes; then
26601 flink_try=no;
26602 else
26603 cat >conftest.$ac_ext <<_ACEOF
26604 /* confdefs.h. */
26605 _ACEOF
26606 cat confdefs.h >>conftest.$ac_ext
26607 cat >>conftest.$ac_ext <<_ACEOF
26608 /* end confdefs.h. */
26609 extern "C" {void $cfuncdaxpy();}
26610 #ifdef F77_DUMMY_MAIN
26611
26612 # ifdef __cplusplus
26613 extern "C"
26614 # endif
26615 int F77_DUMMY_MAIN() { return 1; }
26616
26617 #endif
26618 int
26619 main ()
26620 {
26621 $cfuncdaxpy()
26622 ;
26623 return 0;
26624 }
26625 _ACEOF
26626 rm -f conftest.$ac_objext conftest$ac_exeext
26627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26628 (eval $ac_link) 2>conftest.er1
26629 ac_status=$?
26630 grep -v '^ *+' conftest.er1 >conftest.err
26631 rm -f conftest.er1
26632 cat conftest.err >&5
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); } &&
26635 { ac_try='test -z "$ac_c_werror_flag"
26636 || test ! -s conftest.err'
26637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638 (eval $ac_try) 2>&5
26639 ac_status=$?
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); }; } &&
26642 { ac_try='test -s conftest$ac_exeext'
26643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644 (eval $ac_try) 2>&5
26645 ac_status=$?
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); }; }; then
26648 flink_try=yes
26649 else
26650 echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26652
26653 flink_try=no
26654 fi
26655 rm -f conftest.err conftest.$ac_objext \
26656 conftest$ac_exeext conftest.$ac_ext
26657 fi
26658 if test $flink_try = yes; then
26659 if test $coin_need_flibs = yes ; then
26660 use_blas="$use_blas $FLIBS"
26661 fi
26662 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
26663 echo "${ECHO_T}yes: $use_blas" >&6
26664 else
26665 if test x"$FLIBS" != x; then
26666 flink_save_libs="$LIBS"
26667 LIBS="$LIBS $FLIBS"
26668 cat >conftest.$ac_ext <<_ACEOF
26669 /* confdefs.h. */
26670 _ACEOF
26671 cat confdefs.h >>conftest.$ac_ext
26672 cat >>conftest.$ac_ext <<_ACEOF
26673 /* end confdefs.h. */
26674 extern "C" {void $cfuncdaxpy();}
26675 #ifdef F77_DUMMY_MAIN
26676
26677 # ifdef __cplusplus
26678 extern "C"
26679 # endif
26680 int F77_DUMMY_MAIN() { return 1; }
26681
26682 #endif
26683 int
26684 main ()
26685 {
26686 $cfuncdaxpy()
26687 ;
26688 return 0;
26689 }
26690 _ACEOF
26691 rm -f conftest.$ac_objext conftest$ac_exeext
26692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26693 (eval $ac_link) 2>conftest.er1
26694 ac_status=$?
26695 grep -v '^ *+' conftest.er1 >conftest.err
26696 rm -f conftest.er1
26697 cat conftest.err >&5
26698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699 (exit $ac_status); } &&
26700 { ac_try='test -z "$ac_c_werror_flag"
26701 || test ! -s conftest.err'
26702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26703 (eval $ac_try) 2>&5
26704 ac_status=$?
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); }; } &&
26707 { ac_try='test -s conftest$ac_exeext'
26708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26709 (eval $ac_try) 2>&5
26710 ac_status=$?
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); }; }; then
26713 LIBS="$flink_save_libs"
26714 coin_need_flibs=yes
26715 if test $coin_need_flibs = yes ; then
26716 use_blas="$use_blas $FLIBS"
26717 fi
26718 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
26719 echo "${ECHO_T}yes: $use_blas" >&6
26720
26721 else
26722 echo "$as_me: failed program was:" >&5
26723 sed 's/^/| /' conftest.$ac_ext >&5
26724
26725 LIBS="$flink_save_libs"
26726 echo "$as_me:$LINENO: result: no" >&5
26727 echo "${ECHO_T}no" >&6
26728 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
26729 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
26730 { (exit 1); exit 1; }; }
26731 fi
26732 rm -f conftest.err conftest.$ac_objext \
26733 conftest$ac_exeext conftest.$ac_ext
26734 else
26735 echo "$as_me:$LINENO: result: no" >&5
26736 echo "${ECHO_T}no" >&6
26737 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
26738 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
26739 { (exit 1); exit 1; }; }
26740 fi
26741 fi
26742 ;;
26743 esac
26744
26745 use_blas="$use_blas $FLIBS"
26746 else
26747 { echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works with C linkage" >&5
26748 echo "$as_me: checking whether user supplied BLASLIB=\"$use_blas\" works with C linkage" >&6;}
26749 ac_ext=c
26750 ac_cpp='$CPP $CPPFLAGS'
26751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26754
26755 echo "$as_me:$LINENO: checking for daxpy" >&5
26756 echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
26757 if test "${ac_cv_func_daxpy+set}" = set; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26759 else
26760 cat >conftest.$ac_ext <<_ACEOF
26761 /* confdefs.h. */
26762 _ACEOF
26763 cat confdefs.h >>conftest.$ac_ext
26764 cat >>conftest.$ac_ext <<_ACEOF
26765 /* end confdefs.h. */
26766 /* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
26767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26768 #define daxpy innocuous_daxpy
26769
26770 /* System header to define __stub macros and hopefully few prototypes,
26771 which can conflict with char daxpy (); below.
26772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26773 <limits.h> exists even on freestanding compilers. */
26774
26775 #ifdef __STDC__
26776 # include <limits.h>
26777 #else
26778 # include <assert.h>
26779 #endif
26780
26781 #undef daxpy
26782
26783 /* Override any gcc2 internal prototype to avoid an error. */
26784 #ifdef __cplusplus
26785 extern "C"
26786 {
26787 #endif
26788 /* We use char because int might match the return type of a gcc2
26789 builtin and then its argument prototype would still apply. */
26790 char daxpy ();
26791 /* The GNU C library defines this for functions which it implements
26792 to always fail with ENOSYS. Some functions are actually named
26793 something starting with __ and the normal name is an alias. */
26794 #if defined (__stub_daxpy) || defined (__stub___daxpy)
26795 choke me
26796 #else
26797 char (*f) () = daxpy;
26798 #endif
26799 #ifdef __cplusplus
26800 }
26801 #endif
26802
26803 #ifdef F77_DUMMY_MAIN
26804
26805 # ifdef __cplusplus
26806 extern "C"
26807 # endif
26808 int F77_DUMMY_MAIN() { return 1; }
26809
26810 #endif
26811 int
26812 main ()
26813 {
26814 return f != daxpy;
26815 ;
26816 return 0;
26817 }
26818 _ACEOF
26819 rm -f conftest.$ac_objext conftest$ac_exeext
26820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26821 (eval $ac_link) 2>conftest.er1
26822 ac_status=$?
26823 grep -v '^ *+' conftest.er1 >conftest.err
26824 rm -f conftest.er1
26825 cat conftest.err >&5
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); } &&
26828 { ac_try='test -z "$ac_c_werror_flag"
26829 || test ! -s conftest.err'
26830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26831 (eval $ac_try) 2>&5
26832 ac_status=$?
26833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834 (exit $ac_status); }; } &&
26835 { ac_try='test -s conftest$ac_exeext'
26836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26837 (eval $ac_try) 2>&5
26838 ac_status=$?
26839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840 (exit $ac_status); }; }; then
26841 ac_cv_func_daxpy=yes
26842 else
26843 echo "$as_me: failed program was:" >&5
26844 sed 's/^/| /' conftest.$ac_ext >&5
26845
26846 ac_cv_func_daxpy=no
26847 fi
26848 rm -f conftest.err conftest.$ac_objext \
26849 conftest$ac_exeext conftest.$ac_ext
26850 fi
26851 echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
26852 echo "${ECHO_T}$ac_cv_func_daxpy" >&6
26853 if test $ac_cv_func_daxpy = yes; then
26854 :
26855 else
26856 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
26857 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
26858 { (exit 1); exit 1; }; }
26859 fi
26860
26861 ac_ext=c
26862 ac_cpp='$CPP $CPPFLAGS'
26863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26866
26867 fi
26868 LIBS="$coin_save_LIBS"
26869 fi
26870 else
26871 # Try to autodetect the library for blas based on build system
26872 #AC_MSG_CHECKING([default locations for BLAS])
26873 case $build in
26874 *-sgi-*)
26875 echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
26876 echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
26877 coin_need_flibs=no
26878 coin_save_LIBS="$LIBS"
26879 LIBS="-lcomplib.sgimath $LIBS"
26880 case $ac_ext in
26881 f)
26882 cat >conftest.$ac_ext <<_ACEOF
26883 /* confdefs.h. */
26884 _ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h. */
26888
26889 #ifdef F77_DUMMY_MAIN
26890
26891 # ifdef __cplusplus
26892 extern "C"
26893 # endif
26894 int F77_DUMMY_MAIN() { return 1; }
26895
26896 #endif
26897 int
26898 main ()
26899 {
26900 call daxpy
26901 ;
26902 return 0;
26903 }
26904 _ACEOF
26905 rm -f conftest.$ac_objext conftest$ac_exeext
26906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26907 (eval $ac_link) 2>conftest.er1
26908 ac_status=$?
26909 grep -v '^ *+' conftest.er1 >conftest.err
26910 rm -f conftest.er1
26911 cat conftest.err >&5
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); } &&
26914 { ac_try='test -z "$ac_c_werror_flag"
26915 || test ! -s conftest.err'
26916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26917 (eval $ac_try) 2>&5
26918 ac_status=$?
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); }; } &&
26921 { ac_try='test -s conftest$ac_exeext'
26922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26923 (eval $ac_try) 2>&5
26924 ac_status=$?
26925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926 (exit $ac_status); }; }; then
26927 use_blas="-lcomplib.sgimath"
26928 if test $coin_need_flibs = yes ; then
26929 use_blas="$use_blas $FLIBS"
26930 fi
26931 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
26932 echo "${ECHO_T}yes: $use_blas" >&6
26933
26934 else
26935 echo "$as_me: failed program was:" >&5
26936 sed 's/^/| /' conftest.$ac_ext >&5
26937
26938 echo "$as_me:$LINENO: result: no" >&5
26939 echo "${ECHO_T}no" >&6
26940 fi
26941 rm -f conftest.err conftest.$ac_objext \
26942 conftest$ac_exeext conftest.$ac_ext
26943 ;;
26944 c)
26945 ac_ext=f
26946 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26947 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26948 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26949 case $ac_cv_f77_mangling in
26950 upper*) ac_val="DAXPY" ;;
26951 lower*) ac_val="daxpy" ;;
26952 *) ac_val="unknown" ;;
26953 esac
26954 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
26955
26956 cfuncdaxpy="$ac_val"
26957
26958 ac_ext=c
26959 ac_cpp='$CPP $CPPFLAGS'
26960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26963
26964 if test x"$coin_need_flibs" = xyes; then
26965 flink_try=no;
26966 else
26967 cat >conftest.$ac_ext <<_ACEOF
26968 /* confdefs.h. */
26969 _ACEOF
26970 cat confdefs.h >>conftest.$ac_ext
26971 cat >>conftest.$ac_ext <<_ACEOF
26972 /* end confdefs.h. */
26973 void $cfuncdaxpy();
26974 #ifdef F77_DUMMY_MAIN
26975
26976 # ifdef __cplusplus
26977 extern "C"
26978 # endif
26979 int F77_DUMMY_MAIN() { return 1; }
26980
26981 #endif
26982 int
26983 main ()
26984 {
26985 $cfuncdaxpy()
26986 ;
26987 return 0;
26988 }
26989 _ACEOF
26990 rm -f conftest.$ac_objext conftest$ac_exeext
26991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26992 (eval $ac_link) 2>conftest.er1
26993 ac_status=$?
26994 grep -v '^ *+' conftest.er1 >conftest.err
26995 rm -f conftest.er1
26996 cat conftest.err >&5
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); } &&
26999 { ac_try='test -z "$ac_c_werror_flag"
27000 || test ! -s conftest.err'
27001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27002 (eval $ac_try) 2>&5
27003 ac_status=$?
27004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005 (exit $ac_status); }; } &&
27006 { ac_try='test -s conftest$ac_exeext'
27007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27008 (eval $ac_try) 2>&5
27009 ac_status=$?
27010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011 (exit $ac_status); }; }; then
27012 flink_try=yes
27013 else
27014 echo "$as_me: failed program was:" >&5
27015 sed 's/^/| /' conftest.$ac_ext >&5
27016
27017 flink_try=no
27018 fi
27019 rm -f conftest.err conftest.$ac_objext \
27020 conftest$ac_exeext conftest.$ac_ext
27021 fi
27022 if test $flink_try = yes; then
27023 use_blas="-lcomplib.sgimath"
27024 if test $coin_need_flibs = yes ; then
27025 use_blas="$use_blas $FLIBS"
27026 fi
27027 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27028 echo "${ECHO_T}yes: $use_blas" >&6
27029
27030 else
27031 if test x"$FLIBS" != x; then
27032 flink_save_libs="$LIBS"
27033 LIBS="$LIBS $FLIBS"
27034 cat >conftest.$ac_ext <<_ACEOF
27035 /* confdefs.h. */
27036 _ACEOF
27037 cat confdefs.h >>conftest.$ac_ext
27038 cat >>conftest.$ac_ext <<_ACEOF
27039 /* end confdefs.h. */
27040 void $cfuncdaxpy();
27041 #ifdef F77_DUMMY_MAIN
27042
27043 # ifdef __cplusplus
27044 extern "C"
27045 # endif
27046 int F77_DUMMY_MAIN() { return 1; }
27047
27048 #endif
27049 int
27050 main ()
27051 {
27052 $cfuncdaxpy()
27053 ;
27054 return 0;
27055 }
27056 _ACEOF
27057 rm -f conftest.$ac_objext conftest$ac_exeext
27058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27059 (eval $ac_link) 2>conftest.er1
27060 ac_status=$?
27061 grep -v '^ *+' conftest.er1 >conftest.err
27062 rm -f conftest.er1
27063 cat conftest.err >&5
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); } &&
27066 { ac_try='test -z "$ac_c_werror_flag"
27067 || test ! -s conftest.err'
27068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27069 (eval $ac_try) 2>&5
27070 ac_status=$?
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); }; } &&
27073 { ac_try='test -s conftest$ac_exeext'
27074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27075 (eval $ac_try) 2>&5
27076 ac_status=$?
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); }; }; then
27079 LIBS="$flink_save_libs"
27080 coin_need_flibs=yes
27081 use_blas="-lcomplib.sgimath"
27082 if test $coin_need_flibs = yes ; then
27083 use_blas="$use_blas $FLIBS"
27084 fi
27085 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27086 echo "${ECHO_T}yes: $use_blas" >&6
27087
27088
27089 else
27090 echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27092
27093 LIBS="$flink_save_libs"
27094 echo "$as_me:$LINENO: result: no" >&5
27095 echo "${ECHO_T}no" >&6
27096 fi
27097 rm -f conftest.err conftest.$ac_objext \
27098 conftest$ac_exeext conftest.$ac_ext
27099 else
27100 echo "$as_me:$LINENO: result: no" >&5
27101 echo "${ECHO_T}no" >&6
27102 fi
27103 fi
27104 ;;
27105 cc|cpp)
27106 ac_ext=f
27107 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27108 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27109 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27110 case $ac_cv_f77_mangling in
27111 upper*) ac_val="DAXPY" ;;
27112 lower*) ac_val="daxpy" ;;
27113 *) ac_val="unknown" ;;
27114 esac
27115 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
27116
27117 cfuncdaxpy="$ac_val"
27118
27119 ac_ext=c
27120 ac_cpp='$CPP $CPPFLAGS'
27121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27124
27125 if test x"$coin_need_flibs" = xyes; then
27126 flink_try=no;
27127 else
27128 cat >conftest.$ac_ext <<_ACEOF
27129 /* confdefs.h. */
27130 _ACEOF
27131 cat confdefs.h >>conftest.$ac_ext
27132 cat >>conftest.$ac_ext <<_ACEOF
27133 /* end confdefs.h. */
27134 extern "C" {void $cfuncdaxpy();}
27135 #ifdef F77_DUMMY_MAIN
27136
27137 # ifdef __cplusplus
27138 extern "C"
27139 # endif
27140 int F77_DUMMY_MAIN() { return 1; }
27141
27142 #endif
27143 int
27144 main ()
27145 {
27146 $cfuncdaxpy()
27147 ;
27148 return 0;
27149 }
27150 _ACEOF
27151 rm -f conftest.$ac_objext conftest$ac_exeext
27152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27153 (eval $ac_link) 2>conftest.er1
27154 ac_status=$?
27155 grep -v '^ *+' conftest.er1 >conftest.err
27156 rm -f conftest.er1
27157 cat conftest.err >&5
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); } &&
27160 { ac_try='test -z "$ac_c_werror_flag"
27161 || test ! -s conftest.err'
27162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27163 (eval $ac_try) 2>&5
27164 ac_status=$?
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); }; } &&
27167 { ac_try='test -s conftest$ac_exeext'
27168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27169 (eval $ac_try) 2>&5
27170 ac_status=$?
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); }; }; then
27173 flink_try=yes
27174 else
27175 echo "$as_me: failed program was:" >&5
27176 sed 's/^/| /' conftest.$ac_ext >&5
27177
27178 flink_try=no
27179 fi
27180 rm -f conftest.err conftest.$ac_objext \
27181 conftest$ac_exeext conftest.$ac_ext
27182 fi
27183 if test $flink_try = yes; then
27184 use_blas="-lcomplib.sgimath"
27185 if test $coin_need_flibs = yes ; then
27186 use_blas="$use_blas $FLIBS"
27187 fi
27188 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27189 echo "${ECHO_T}yes: $use_blas" >&6
27190
27191 else
27192 if test x"$FLIBS" != x; then
27193 flink_save_libs="$LIBS"
27194 LIBS="$LIBS $FLIBS"
27195 cat >conftest.$ac_ext <<_ACEOF
27196 /* confdefs.h. */
27197 _ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h. */
27201 extern "C" {void $cfuncdaxpy();}
27202 #ifdef F77_DUMMY_MAIN
27203
27204 # ifdef __cplusplus
27205 extern "C"
27206 # endif
27207 int F77_DUMMY_MAIN() { return 1; }
27208
27209 #endif
27210 int
27211 main ()
27212 {
27213 $cfuncdaxpy()
27214 ;
27215 return 0;
27216 }
27217 _ACEOF
27218 rm -f conftest.$ac_objext conftest$ac_exeext
27219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27220 (eval $ac_link) 2>conftest.er1
27221 ac_status=$?
27222 grep -v '^ *+' conftest.er1 >conftest.err
27223 rm -f conftest.er1
27224 cat conftest.err >&5
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); } &&
27227 { ac_try='test -z "$ac_c_werror_flag"
27228 || test ! -s conftest.err'
27229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27230 (eval $ac_try) 2>&5
27231 ac_status=$?
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); }; } &&
27234 { ac_try='test -s conftest$ac_exeext'
27235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236 (eval $ac_try) 2>&5
27237 ac_status=$?
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); }; }; then
27240 LIBS="$flink_save_libs"
27241 coin_need_flibs=yes
27242 use_blas="-lcomplib.sgimath"
27243 if test $coin_need_flibs = yes ; then
27244 use_blas="$use_blas $FLIBS"
27245 fi
27246 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27247 echo "${ECHO_T}yes: $use_blas" >&6
27248
27249
27250 else
27251 echo "$as_me: failed program was:" >&5
27252 sed 's/^/| /' conftest.$ac_ext >&5
27253
27254 LIBS="$flink_save_libs"
27255 echo "$as_me:$LINENO: result: no" >&5
27256 echo "${ECHO_T}no" >&6
27257 fi
27258 rm -f conftest.err conftest.$ac_objext \
27259 conftest$ac_exeext conftest.$ac_ext
27260 else
27261 echo "$as_me:$LINENO: result: no" >&5
27262 echo "${ECHO_T}no" >&6
27263 fi
27264 fi
27265 ;;
27266 esac
27267
27268 LIBS="$coin_save_LIBS"
27269 ;;
27270
27271 # Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
27272 # cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
27273 # recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
27274 # that CC and cc will understand -library in Studio 13. The main extra
27275 # function of -xlic_lib and -library is to arrange for the Fortran run-time
27276 # libraries to be linked for C++ and C. We can arrange that explicitly.
27277 *-*-solaris*)
27278 echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
27279 echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
27280 coin_need_flibs=no
27281 coin_save_LIBS="$LIBS"
27282 LIBS="-lsunperf $FLIBS $LIBS"
27283 case $ac_ext in
27284 f)
27285 cat >conftest.$ac_ext <<_ACEOF
27286 /* confdefs.h. */
27287 _ACEOF
27288 cat confdefs.h >>conftest.$ac_ext
27289 cat >>conftest.$ac_ext <<_ACEOF
27290 /* end confdefs.h. */
27291
27292 #ifdef F77_DUMMY_MAIN
27293
27294 # ifdef __cplusplus
27295 extern "C"
27296 # endif
27297 int F77_DUMMY_MAIN() { return 1; }
27298
27299 #endif
27300 int
27301 main ()
27302 {
27303 call daxpy
27304 ;
27305 return 0;
27306 }
27307 _ACEOF
27308 rm -f conftest.$ac_objext conftest$ac_exeext
27309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27310 (eval $ac_link) 2>conftest.er1
27311 ac_status=$?
27312 grep -v '^ *+' conftest.er1 >conftest.err
27313 rm -f conftest.er1
27314 cat conftest.err >&5
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); } &&
27317 { ac_try='test -z "$ac_c_werror_flag"
27318 || test ! -s conftest.err'
27319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27320 (eval $ac_try) 2>&5
27321 ac_status=$?
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); }; } &&
27324 { ac_try='test -s conftest$ac_exeext'
27325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27326 (eval $ac_try) 2>&5
27327 ac_status=$?
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); }; }; then
27330 use_blas='-lsunperf'
27331 if test $coin_need_flibs = yes ; then
27332 use_blas="$use_blas $FLIBS"
27333 fi
27334 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27335 echo "${ECHO_T}yes: $use_blas" >&6
27336
27337 else
27338 echo "$as_me: failed program was:" >&5
27339 sed 's/^/| /' conftest.$ac_ext >&5
27340
27341 echo "$as_me:$LINENO: result: no" >&5
27342 echo "${ECHO_T}no" >&6
27343 fi
27344 rm -f conftest.err conftest.$ac_objext \
27345 conftest$ac_exeext conftest.$ac_ext
27346 ;;
27347 c)
27348 ac_ext=f
27349 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27350 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27351 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27352 case $ac_cv_f77_mangling in
27353 upper*) ac_val="DAXPY" ;;
27354 lower*) ac_val="daxpy" ;;
27355 *) ac_val="unknown" ;;
27356 esac
27357 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
27358
27359 cfuncdaxpy="$ac_val"
27360
27361 ac_ext=c
27362 ac_cpp='$CPP $CPPFLAGS'
27363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27366
27367 if test x"$coin_need_flibs" = xyes; then
27368 flink_try=no;
27369 else
27370 cat >conftest.$ac_ext <<_ACEOF
27371 /* confdefs.h. */
27372 _ACEOF
27373 cat confdefs.h >>conftest.$ac_ext
27374 cat >>conftest.$ac_ext <<_ACEOF
27375 /* end confdefs.h. */
27376 void $cfuncdaxpy();
27377 #ifdef F77_DUMMY_MAIN
27378
27379 # ifdef __cplusplus
27380 extern "C"
27381 # endif
27382 int F77_DUMMY_MAIN() { return 1; }
27383
27384 #endif
27385 int
27386 main ()
27387 {
27388 $cfuncdaxpy()
27389 ;
27390 return 0;
27391 }
27392 _ACEOF
27393 rm -f conftest.$ac_objext conftest$ac_exeext
27394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27395 (eval $ac_link) 2>conftest.er1
27396 ac_status=$?
27397 grep -v '^ *+' conftest.er1 >conftest.err
27398 rm -f conftest.er1
27399 cat conftest.err >&5
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); } &&
27402 { ac_try='test -z "$ac_c_werror_flag"
27403 || test ! -s conftest.err'
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest$ac_exeext'
27410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; }; then
27415 flink_try=yes
27416 else
27417 echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27419
27420 flink_try=no
27421 fi
27422 rm -f conftest.err conftest.$ac_objext \
27423 conftest$ac_exeext conftest.$ac_ext
27424 fi
27425 if test $flink_try = yes; then
27426 use_blas='-lsunperf'
27427 if test $coin_need_flibs = yes ; then
27428 use_blas="$use_blas $FLIBS"
27429 fi
27430 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27431 echo "${ECHO_T}yes: $use_blas" >&6
27432
27433 else
27434 if test x"$FLIBS" != x; then
27435 flink_save_libs="$LIBS"
27436 LIBS="$LIBS $FLIBS"
27437 cat >conftest.$ac_ext <<_ACEOF
27438 /* confdefs.h. */
27439 _ACEOF
27440 cat confdefs.h >>conftest.$ac_ext
27441 cat >>conftest.$ac_ext <<_ACEOF
27442 /* end confdefs.h. */
27443 void $cfuncdaxpy();
27444 #ifdef F77_DUMMY_MAIN
27445
27446 # ifdef __cplusplus
27447 extern "C"
27448 # endif
27449 int F77_DUMMY_MAIN() { return 1; }
27450
27451 #endif
27452 int
27453 main ()
27454 {
27455 $cfuncdaxpy()
27456 ;
27457 return 0;
27458 }
27459 _ACEOF
27460 rm -f conftest.$ac_objext conftest$ac_exeext
27461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27462 (eval $ac_link) 2>conftest.er1
27463 ac_status=$?
27464 grep -v '^ *+' conftest.er1 >conftest.err
27465 rm -f conftest.er1
27466 cat conftest.err >&5
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); } &&
27469 { ac_try='test -z "$ac_c_werror_flag"
27470 || test ! -s conftest.err'
27471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27472 (eval $ac_try) 2>&5
27473 ac_status=$?
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); }; } &&
27476 { ac_try='test -s conftest$ac_exeext'
27477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27478 (eval $ac_try) 2>&5
27479 ac_status=$?
27480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); }; }; then
27482 LIBS="$flink_save_libs"
27483 coin_need_flibs=yes
27484 use_blas='-lsunperf'
27485 if test $coin_need_flibs = yes ; then
27486 use_blas="$use_blas $FLIBS"
27487 fi
27488 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27489 echo "${ECHO_T}yes: $use_blas" >&6
27490
27491
27492 else
27493 echo "$as_me: failed program was:" >&5
27494 sed 's/^/| /' conftest.$ac_ext >&5
27495
27496 LIBS="$flink_save_libs"
27497 echo "$as_me:$LINENO: result: no" >&5
27498 echo "${ECHO_T}no" >&6
27499 fi
27500 rm -f conftest.err conftest.$ac_objext \
27501 conftest$ac_exeext conftest.$ac_ext
27502 else
27503 echo "$as_me:$LINENO: result: no" >&5
27504 echo "${ECHO_T}no" >&6
27505 fi
27506 fi
27507 ;;
27508 cc|cpp)
27509 ac_ext=f
27510 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27511 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27512 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27513 case $ac_cv_f77_mangling in
27514 upper*) ac_val="DAXPY" ;;
27515 lower*) ac_val="daxpy" ;;
27516 *) ac_val="unknown" ;;
27517 esac
27518 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
27519
27520 cfuncdaxpy="$ac_val"
27521
27522 ac_ext=c
27523 ac_cpp='$CPP $CPPFLAGS'
27524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27527
27528 if test x"$coin_need_flibs" = xyes; then
27529 flink_try=no;
27530 else
27531 cat >conftest.$ac_ext <<_ACEOF
27532 /* confdefs.h. */
27533 _ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h. */
27537 extern "C" {void $cfuncdaxpy();}
27538 #ifdef F77_DUMMY_MAIN
27539
27540 # ifdef __cplusplus
27541 extern "C"
27542 # endif
27543 int F77_DUMMY_MAIN() { return 1; }
27544
27545 #endif
27546 int
27547 main ()
27548 {
27549 $cfuncdaxpy()
27550 ;
27551 return 0;
27552 }
27553 _ACEOF
27554 rm -f conftest.$ac_objext conftest$ac_exeext
27555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27556 (eval $ac_link) 2>conftest.er1
27557 ac_status=$?
27558 grep -v '^ *+' conftest.er1 >conftest.err
27559 rm -f conftest.er1
27560 cat conftest.err >&5
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); } &&
27563 { ac_try='test -z "$ac_c_werror_flag"
27564 || test ! -s conftest.err'
27565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27566 (eval $ac_try) 2>&5
27567 ac_status=$?
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); }; } &&
27570 { ac_try='test -s conftest$ac_exeext'
27571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27572 (eval $ac_try) 2>&5
27573 ac_status=$?
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; }; then
27576 flink_try=yes
27577 else
27578 echo "$as_me: failed program was:" >&5
27579 sed 's/^/| /' conftest.$ac_ext >&5
27580
27581 flink_try=no
27582 fi
27583 rm -f conftest.err conftest.$ac_objext \
27584 conftest$ac_exeext conftest.$ac_ext
27585 fi
27586 if test $flink_try = yes; then
27587 use_blas='-lsunperf'
27588 if test $coin_need_flibs = yes ; then
27589 use_blas="$use_blas $FLIBS"
27590 fi
27591 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27592 echo "${ECHO_T}yes: $use_blas" >&6
27593
27594 else
27595 if test x"$FLIBS" != x; then
27596 flink_save_libs="$LIBS"
27597 LIBS="$LIBS $FLIBS"
27598 cat >conftest.$ac_ext <<_ACEOF
27599 /* confdefs.h. */
27600 _ACEOF
27601 cat confdefs.h >>conftest.$ac_ext
27602 cat >>conftest.$ac_ext <<_ACEOF
27603 /* end confdefs.h. */
27604 extern "C" {void $cfuncdaxpy();}
27605 #ifdef F77_DUMMY_MAIN
27606
27607 # ifdef __cplusplus
27608 extern "C"
27609 # endif
27610 int F77_DUMMY_MAIN() { return 1; }
27611
27612 #endif
27613 int
27614 main ()
27615 {
27616 $cfuncdaxpy()
27617 ;
27618 return 0;
27619 }
27620 _ACEOF
27621 rm -f conftest.$ac_objext conftest$ac_exeext
27622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27623 (eval $ac_link) 2>conftest.er1
27624 ac_status=$?
27625 grep -v '^ *+' conftest.er1 >conftest.err
27626 rm -f conftest.er1
27627 cat conftest.err >&5
27628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); } &&
27630 { ac_try='test -z "$ac_c_werror_flag"
27631 || test ! -s conftest.err'
27632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27633 (eval $ac_try) 2>&5
27634 ac_status=$?
27635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); }; } &&
27637 { ac_try='test -s conftest$ac_exeext'
27638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27639 (eval $ac_try) 2>&5
27640 ac_status=$?
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); }; }; then
27643 LIBS="$flink_save_libs"
27644 coin_need_flibs=yes
27645 use_blas='-lsunperf'
27646 if test $coin_need_flibs = yes ; then
27647 use_blas="$use_blas $FLIBS"
27648 fi
27649 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27650 echo "${ECHO_T}yes: $use_blas" >&6
27651
27652
27653 else
27654 echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.$ac_ext >&5
27656
27657 LIBS="$flink_save_libs"
27658 echo "$as_me:$LINENO: result: no" >&5
27659 echo "${ECHO_T}no" >&6
27660 fi
27661 rm -f conftest.err conftest.$ac_objext \
27662 conftest$ac_exeext conftest.$ac_ext
27663 else
27664 echo "$as_me:$LINENO: result: no" >&5
27665 echo "${ECHO_T}no" >&6
27666 fi
27667 fi
27668 ;;
27669 esac
27670
27671 LIBS="$coin_save_LIBS"
27672 ;;
27673
27674 *-cygwin* | *-mingw*)
27675 case "$CC" in
27676 clang* | */clang* ) ;;
27677 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
27678 coin_save_LIBS="$LIBS"
27679 LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
27680 if test "$F77" != unavailable ; then
27681 echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5
27682 echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6
27683 case $ac_ext in
27684 f)
27685 cat >conftest.$ac_ext <<_ACEOF
27686 /* confdefs.h. */
27687 _ACEOF
27688 cat confdefs.h >>conftest.$ac_ext
27689 cat >>conftest.$ac_ext <<_ACEOF
27690 /* end confdefs.h. */
27691
27692 #ifdef F77_DUMMY_MAIN
27693
27694 # ifdef __cplusplus
27695 extern "C"
27696 # endif
27697 int F77_DUMMY_MAIN() { return 1; }
27698
27699 #endif
27700 int
27701 main ()
27702 {
27703 call daxpy
27704 ;
27705 return 0;
27706 }
27707 _ACEOF
27708 rm -f conftest.$ac_objext conftest$ac_exeext
27709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27710 (eval $ac_link) 2>conftest.er1
27711 ac_status=$?
27712 grep -v '^ *+' conftest.er1 >conftest.err
27713 rm -f conftest.er1
27714 cat conftest.err >&5
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); } &&
27717 { ac_try='test -z "$ac_c_werror_flag"
27718 || test ! -s conftest.err'
27719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720 (eval $ac_try) 2>&5
27721 ac_status=$?
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; } &&
27724 { ac_try='test -s conftest$ac_exeext'
27725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726 (eval $ac_try) 2>&5
27727 ac_status=$?
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); }; }; then
27730 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
27731 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27732 echo "${ECHO_T}yes: $use_blas" >&6
27733
27734 else
27735 echo "$as_me: failed program was:" >&5
27736 sed 's/^/| /' conftest.$ac_ext >&5
27737
27738 echo "$as_me:$LINENO: result: no" >&5
27739 echo "${ECHO_T}no" >&6
27740 fi
27741 rm -f conftest.err conftest.$ac_objext \
27742 conftest$ac_exeext conftest.$ac_ext
27743 ;;
27744 c)
27745 ac_ext=f
27746 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27747 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27748 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27749 case $ac_cv_f77_mangling in
27750 upper*) ac_val="DAXPY" ;;
27751 lower*) ac_val="daxpy" ;;
27752 *) ac_val="unknown" ;;
27753 esac
27754 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
27755
27756 cfuncdaxpy="$ac_val"
27757
27758 ac_ext=c
27759 ac_cpp='$CPP $CPPFLAGS'
27760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27763
27764 if test x"$coin_need_flibs" = xyes; then
27765 flink_try=no;
27766 else
27767 cat >conftest.$ac_ext <<_ACEOF
27768 /* confdefs.h. */
27769 _ACEOF
27770 cat confdefs.h >>conftest.$ac_ext
27771 cat >>conftest.$ac_ext <<_ACEOF
27772 /* end confdefs.h. */
27773 void $cfuncdaxpy();
27774 #ifdef F77_DUMMY_MAIN
27775
27776 # ifdef __cplusplus
27777 extern "C"
27778 # endif
27779 int F77_DUMMY_MAIN() { return 1; }
27780
27781 #endif
27782 int
27783 main ()
27784 {
27785 $cfuncdaxpy()
27786 ;
27787 return 0;
27788 }
27789 _ACEOF
27790 rm -f conftest.$ac_objext conftest$ac_exeext
27791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27792 (eval $ac_link) 2>conftest.er1
27793 ac_status=$?
27794 grep -v '^ *+' conftest.er1 >conftest.err
27795 rm -f conftest.er1
27796 cat conftest.err >&5
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); } &&
27799 { ac_try='test -z "$ac_c_werror_flag"
27800 || test ! -s conftest.err'
27801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27802 (eval $ac_try) 2>&5
27803 ac_status=$?
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805 (exit $ac_status); }; } &&
27806 { ac_try='test -s conftest$ac_exeext'
27807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808 (eval $ac_try) 2>&5
27809 ac_status=$?
27810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811 (exit $ac_status); }; }; then
27812 flink_try=yes
27813 else
27814 echo "$as_me: failed program was:" >&5
27815 sed 's/^/| /' conftest.$ac_ext >&5
27816
27817 flink_try=no
27818 fi
27819 rm -f conftest.err conftest.$ac_objext \
27820 conftest$ac_exeext conftest.$ac_ext
27821 fi
27822 if test $flink_try = yes; then
27823 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
27824 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27825 echo "${ECHO_T}yes: $use_blas" >&6
27826
27827 else
27828 if test x"$FLIBS" != x; then
27829 flink_save_libs="$LIBS"
27830 LIBS="$LIBS $FLIBS"
27831 cat >conftest.$ac_ext <<_ACEOF
27832 /* confdefs.h. */
27833 _ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h. */
27837 void $cfuncdaxpy();
27838 #ifdef F77_DUMMY_MAIN
27839
27840 # ifdef __cplusplus
27841 extern "C"
27842 # endif
27843 int F77_DUMMY_MAIN() { return 1; }
27844
27845 #endif
27846 int
27847 main ()
27848 {
27849 $cfuncdaxpy()
27850 ;
27851 return 0;
27852 }
27853 _ACEOF
27854 rm -f conftest.$ac_objext conftest$ac_exeext
27855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27856 (eval $ac_link) 2>conftest.er1
27857 ac_status=$?
27858 grep -v '^ *+' conftest.er1 >conftest.err
27859 rm -f conftest.er1
27860 cat conftest.err >&5
27861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862 (exit $ac_status); } &&
27863 { ac_try='test -z "$ac_c_werror_flag"
27864 || test ! -s conftest.err'
27865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27866 (eval $ac_try) 2>&5
27867 ac_status=$?
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); }; } &&
27870 { ac_try='test -s conftest$ac_exeext'
27871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27872 (eval $ac_try) 2>&5
27873 ac_status=$?
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); }; }; then
27876 LIBS="$flink_save_libs"
27877 coin_need_flibs=yes
27878 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
27879 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27880 echo "${ECHO_T}yes: $use_blas" >&6
27881
27882
27883 else
27884 echo "$as_me: failed program was:" >&5
27885 sed 's/^/| /' conftest.$ac_ext >&5
27886
27887 LIBS="$flink_save_libs"
27888 echo "$as_me:$LINENO: result: no" >&5
27889 echo "${ECHO_T}no" >&6
27890 fi
27891 rm -f conftest.err conftest.$ac_objext \
27892 conftest$ac_exeext conftest.$ac_ext
27893 else
27894 echo "$as_me:$LINENO: result: no" >&5
27895 echo "${ECHO_T}no" >&6
27896 fi
27897 fi
27898 ;;
27899 cc|cpp)
27900 ac_ext=f
27901 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27902 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27903 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27904 case $ac_cv_f77_mangling in
27905 upper*) ac_val="DAXPY" ;;
27906 lower*) ac_val="daxpy" ;;
27907 *) ac_val="unknown" ;;
27908 esac
27909 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
27910
27911 cfuncdaxpy="$ac_val"
27912
27913 ac_ext=c
27914 ac_cpp='$CPP $CPPFLAGS'
27915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27918
27919 if test x"$coin_need_flibs" = xyes; then
27920 flink_try=no;
27921 else
27922 cat >conftest.$ac_ext <<_ACEOF
27923 /* confdefs.h. */
27924 _ACEOF
27925 cat confdefs.h >>conftest.$ac_ext
27926 cat >>conftest.$ac_ext <<_ACEOF
27927 /* end confdefs.h. */
27928 extern "C" {void $cfuncdaxpy();}
27929 #ifdef F77_DUMMY_MAIN
27930
27931 # ifdef __cplusplus
27932 extern "C"
27933 # endif
27934 int F77_DUMMY_MAIN() { return 1; }
27935
27936 #endif
27937 int
27938 main ()
27939 {
27940 $cfuncdaxpy()
27941 ;
27942 return 0;
27943 }
27944 _ACEOF
27945 rm -f conftest.$ac_objext conftest$ac_exeext
27946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27947 (eval $ac_link) 2>conftest.er1
27948 ac_status=$?
27949 grep -v '^ *+' conftest.er1 >conftest.err
27950 rm -f conftest.er1
27951 cat conftest.err >&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); } &&
27954 { ac_try='test -z "$ac_c_werror_flag"
27955 || test ! -s conftest.err'
27956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957 (eval $ac_try) 2>&5
27958 ac_status=$?
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); }; } &&
27961 { ac_try='test -s conftest$ac_exeext'
27962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963 (eval $ac_try) 2>&5
27964 ac_status=$?
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); }; }; then
27967 flink_try=yes
27968 else
27969 echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27971
27972 flink_try=no
27973 fi
27974 rm -f conftest.err conftest.$ac_objext \
27975 conftest$ac_exeext conftest.$ac_ext
27976 fi
27977 if test $flink_try = yes; then
27978 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
27979 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27980 echo "${ECHO_T}yes: $use_blas" >&6
27981
27982 else
27983 if test x"$FLIBS" != x; then
27984 flink_save_libs="$LIBS"
27985 LIBS="$LIBS $FLIBS"
27986 cat >conftest.$ac_ext <<_ACEOF
27987 /* confdefs.h. */
27988 _ACEOF
27989 cat confdefs.h >>conftest.$ac_ext
27990 cat >>conftest.$ac_ext <<_ACEOF
27991 /* end confdefs.h. */
27992 extern "C" {void $cfuncdaxpy();}
27993 #ifdef F77_DUMMY_MAIN
27994
27995 # ifdef __cplusplus
27996 extern "C"
27997 # endif
27998 int F77_DUMMY_MAIN() { return 1; }
27999
28000 #endif
28001 int
28002 main ()
28003 {
28004 $cfuncdaxpy()
28005 ;
28006 return 0;
28007 }
28008 _ACEOF
28009 rm -f conftest.$ac_objext conftest$ac_exeext
28010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28011 (eval $ac_link) 2>conftest.er1
28012 ac_status=$?
28013 grep -v '^ *+' conftest.er1 >conftest.err
28014 rm -f conftest.er1
28015 cat conftest.err >&5
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); } &&
28018 { ac_try='test -z "$ac_c_werror_flag"
28019 || test ! -s conftest.err'
28020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28021 (eval $ac_try) 2>&5
28022 ac_status=$?
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); }; } &&
28025 { ac_try='test -s conftest$ac_exeext'
28026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027 (eval $ac_try) 2>&5
28028 ac_status=$?
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); }; }; then
28031 LIBS="$flink_save_libs"
28032 coin_need_flibs=yes
28033 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
28034 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28035 echo "${ECHO_T}yes: $use_blas" >&6
28036
28037
28038 else
28039 echo "$as_me: failed program was:" >&5
28040 sed 's/^/| /' conftest.$ac_ext >&5
28041
28042 LIBS="$flink_save_libs"
28043 echo "$as_me:$LINENO: result: no" >&5
28044 echo "${ECHO_T}no" >&6
28045 fi
28046 rm -f conftest.err conftest.$ac_objext \
28047 conftest$ac_exeext conftest.$ac_ext
28048 else
28049 echo "$as_me:$LINENO: result: no" >&5
28050 echo "${ECHO_T}no" >&6
28051 fi
28052 fi
28053 ;;
28054 esac
28055
28056 else
28057 { echo "$as_me:$LINENO: for BLAS in MKL (32bit) using C linkage" >&5
28058 echo "$as_me: for BLAS in MKL (32bit) using C linkage" >&6;}
28059 ac_ext=c
28060 ac_cpp='$CPP $CPPFLAGS'
28061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28064
28065 echo "$as_me:$LINENO: checking for daxpy" >&5
28066 echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
28067 if test "${ac_cv_func_daxpy+set}" = set; then
28068 echo $ECHO_N "(cached) $ECHO_C" >&6
28069 else
28070 cat >conftest.$ac_ext <<_ACEOF
28071 /* confdefs.h. */
28072 _ACEOF
28073 cat confdefs.h >>conftest.$ac_ext
28074 cat >>conftest.$ac_ext <<_ACEOF
28075 /* end confdefs.h. */
28076 /* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
28077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28078 #define daxpy innocuous_daxpy
28079
28080 /* System header to define __stub macros and hopefully few prototypes,
28081 which can conflict with char daxpy (); below.
28082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28083 <limits.h> exists even on freestanding compilers. */
28084
28085 #ifdef __STDC__
28086 # include <limits.h>
28087 #else
28088 # include <assert.h>
28089 #endif
28090
28091 #undef daxpy
28092
28093 /* Override any gcc2 internal prototype to avoid an error. */
28094 #ifdef __cplusplus
28095 extern "C"
28096 {
28097 #endif
28098 /* We use char because int might match the return type of a gcc2
28099 builtin and then its argument prototype would still apply. */
28100 char daxpy ();
28101 /* The GNU C library defines this for functions which it implements
28102 to always fail with ENOSYS. Some functions are actually named
28103 something starting with __ and the normal name is an alias. */
28104 #if defined (__stub_daxpy) || defined (__stub___daxpy)
28105 choke me
28106 #else
28107 char (*f) () = daxpy;
28108 #endif
28109 #ifdef __cplusplus
28110 }
28111 #endif
28112
28113 #ifdef F77_DUMMY_MAIN
28114
28115 # ifdef __cplusplus
28116 extern "C"
28117 # endif
28118 int F77_DUMMY_MAIN() { return 1; }
28119
28120 #endif
28121 int
28122 main ()
28123 {
28124 return f != daxpy;
28125 ;
28126 return 0;
28127 }
28128 _ACEOF
28129 rm -f conftest.$ac_objext conftest$ac_exeext
28130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28131 (eval $ac_link) 2>conftest.er1
28132 ac_status=$?
28133 grep -v '^ *+' conftest.er1 >conftest.err
28134 rm -f conftest.er1
28135 cat conftest.err >&5
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); } &&
28138 { ac_try='test -z "$ac_c_werror_flag"
28139 || test ! -s conftest.err'
28140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28141 (eval $ac_try) 2>&5
28142 ac_status=$?
28143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144 (exit $ac_status); }; } &&
28145 { ac_try='test -s conftest$ac_exeext'
28146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28147 (eval $ac_try) 2>&5
28148 ac_status=$?
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); }; }; then
28151 ac_cv_func_daxpy=yes
28152 else
28153 echo "$as_me: failed program was:" >&5
28154 sed 's/^/| /' conftest.$ac_ext >&5
28155
28156 ac_cv_func_daxpy=no
28157 fi
28158 rm -f conftest.err conftest.$ac_objext \
28159 conftest$ac_exeext conftest.$ac_ext
28160 fi
28161 echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
28162 echo "${ECHO_T}$ac_cv_func_daxpy" >&6
28163 if test $ac_cv_func_daxpy = yes; then
28164 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
28165 fi
28166
28167 ac_ext=c
28168 ac_cpp='$CPP $CPPFLAGS'
28169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28172
28173 fi
28174 LIBS="$coin_save_LIBS"
28175
28176 if test "x$use_blas" = x ; then
28177 LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS"
28178 if test "$F77" != unavailable ; then
28179 echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5
28180 echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6
28181 case $ac_ext in
28182 f)
28183 cat >conftest.$ac_ext <<_ACEOF
28184 /* confdefs.h. */
28185 _ACEOF
28186 cat confdefs.h >>conftest.$ac_ext
28187 cat >>conftest.$ac_ext <<_ACEOF
28188 /* end confdefs.h. */
28189
28190 #ifdef F77_DUMMY_MAIN
28191
28192 # ifdef __cplusplus
28193 extern "C"
28194 # endif
28195 int F77_DUMMY_MAIN() { return 1; }
28196
28197 #endif
28198 int
28199 main ()
28200 {
28201 call daxpy
28202 ;
28203 return 0;
28204 }
28205 _ACEOF
28206 rm -f conftest.$ac_objext conftest$ac_exeext
28207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28208 (eval $ac_link) 2>conftest.er1
28209 ac_status=$?
28210 grep -v '^ *+' conftest.er1 >conftest.err
28211 rm -f conftest.er1
28212 cat conftest.err >&5
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); } &&
28215 { ac_try='test -z "$ac_c_werror_flag"
28216 || test ! -s conftest.err'
28217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28218 (eval $ac_try) 2>&5
28219 ac_status=$?
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); }; } &&
28222 { ac_try='test -s conftest$ac_exeext'
28223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28224 (eval $ac_try) 2>&5
28225 ac_status=$?
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); }; }; then
28228 use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
28229 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28230 echo "${ECHO_T}yes: $use_blas" >&6
28231
28232 else
28233 echo "$as_me: failed program was:" >&5
28234 sed 's/^/| /' conftest.$ac_ext >&5
28235
28236 echo "$as_me:$LINENO: result: no" >&5
28237 echo "${ECHO_T}no" >&6
28238 fi
28239 rm -f conftest.err conftest.$ac_objext \
28240 conftest$ac_exeext conftest.$ac_ext
28241 ;;
28242 c)
28243 ac_ext=f
28244 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
28245 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28246 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
28247 case $ac_cv_f77_mangling in
28248 upper*) ac_val="DAXPY" ;;
28249 lower*) ac_val="daxpy" ;;
28250 *) ac_val="unknown" ;;
28251 esac
28252 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
28253
28254 cfuncdaxpy="$ac_val"
28255
28256 ac_ext=c
28257 ac_cpp='$CPP $CPPFLAGS'
28258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28261
28262 if test x"$coin_need_flibs" = xyes; then
28263 flink_try=no;
28264 else
28265 cat >conftest.$ac_ext <<_ACEOF
28266 /* confdefs.h. */
28267 _ACEOF
28268 cat confdefs.h >>conftest.$ac_ext
28269 cat >>conftest.$ac_ext <<_ACEOF
28270 /* end confdefs.h. */
28271 void $cfuncdaxpy();
28272 #ifdef F77_DUMMY_MAIN
28273
28274 # ifdef __cplusplus
28275 extern "C"
28276 # endif
28277 int F77_DUMMY_MAIN() { return 1; }
28278
28279 #endif
28280 int
28281 main ()
28282 {
28283 $cfuncdaxpy()
28284 ;
28285 return 0;
28286 }
28287 _ACEOF
28288 rm -f conftest.$ac_objext conftest$ac_exeext
28289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28290 (eval $ac_link) 2>conftest.er1
28291 ac_status=$?
28292 grep -v '^ *+' conftest.er1 >conftest.err
28293 rm -f conftest.er1
28294 cat conftest.err >&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); } &&
28297 { ac_try='test -z "$ac_c_werror_flag"
28298 || test ! -s conftest.err'
28299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28300 (eval $ac_try) 2>&5
28301 ac_status=$?
28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); }; } &&
28304 { ac_try='test -s conftest$ac_exeext'
28305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28306 (eval $ac_try) 2>&5
28307 ac_status=$?
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); }; }; then
28310 flink_try=yes
28311 else
28312 echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28314
28315 flink_try=no
28316 fi
28317 rm -f conftest.err conftest.$ac_objext \
28318 conftest$ac_exeext conftest.$ac_ext
28319 fi
28320 if test $flink_try = yes; then
28321 use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
28322 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28323 echo "${ECHO_T}yes: $use_blas" >&6
28324
28325 else
28326 if test x"$FLIBS" != x; then
28327 flink_save_libs="$LIBS"
28328 LIBS="$LIBS $FLIBS"
28329 cat >conftest.$ac_ext <<_ACEOF
28330 /* confdefs.h. */
28331 _ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h. */
28335 void $cfuncdaxpy();
28336 #ifdef F77_DUMMY_MAIN
28337
28338 # ifdef __cplusplus
28339 extern "C"
28340 # endif
28341 int F77_DUMMY_MAIN() { return 1; }
28342
28343 #endif
28344 int
28345 main ()
28346 {
28347 $cfuncdaxpy()
28348 ;
28349 return 0;
28350 }
28351 _ACEOF
28352 rm -f conftest.$ac_objext conftest$ac_exeext
28353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28354 (eval $ac_link) 2>conftest.er1
28355 ac_status=$?
28356 grep -v '^ *+' conftest.er1 >conftest.err
28357 rm -f conftest.er1
28358 cat conftest.err >&5
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); } &&
28361 { ac_try='test -z "$ac_c_werror_flag"
28362 || test ! -s conftest.err'
28363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364 (eval $ac_try) 2>&5
28365 ac_status=$?
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; } &&
28368 { ac_try='test -s conftest$ac_exeext'
28369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370 (eval $ac_try) 2>&5
28371 ac_status=$?
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; }; then
28374 LIBS="$flink_save_libs"
28375 coin_need_flibs=yes
28376 use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
28377 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28378 echo "${ECHO_T}yes: $use_blas" >&6
28379
28380
28381 else
28382 echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.$ac_ext >&5
28384
28385 LIBS="$flink_save_libs"
28386 echo "$as_me:$LINENO: result: no" >&5
28387 echo "${ECHO_T}no" >&6
28388 fi
28389 rm -f conftest.err conftest.$ac_objext \
28390 conftest$ac_exeext conftest.$ac_ext
28391 else
28392 echo "$as_me:$LINENO: result: no" >&5
28393 echo "${ECHO_T}no" >&6
28394 fi
28395 fi
28396 ;;
28397 cc|cpp)
28398 ac_ext=f
28399 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
28400 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28401 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
28402 case $ac_cv_f77_mangling in
28403 upper*) ac_val="DAXPY" ;;
28404 lower*) ac_val="daxpy" ;;
28405 *) ac_val="unknown" ;;
28406 esac
28407 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
28408
28409 cfuncdaxpy="$ac_val"
28410
28411 ac_ext=c
28412 ac_cpp='$CPP $CPPFLAGS'
28413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28416
28417 if test x"$coin_need_flibs" = xyes; then
28418 flink_try=no;
28419 else
28420 cat >conftest.$ac_ext <<_ACEOF
28421 /* confdefs.h. */
28422 _ACEOF
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h. */
28426 extern "C" {void $cfuncdaxpy();}
28427 #ifdef F77_DUMMY_MAIN
28428
28429 # ifdef __cplusplus
28430 extern "C"
28431 # endif
28432 int F77_DUMMY_MAIN() { return 1; }
28433
28434 #endif
28435 int
28436 main ()
28437 {
28438 $cfuncdaxpy()
28439 ;
28440 return 0;
28441 }
28442 _ACEOF
28443 rm -f conftest.$ac_objext conftest$ac_exeext
28444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28445 (eval $ac_link) 2>conftest.er1
28446 ac_status=$?
28447 grep -v '^ *+' conftest.er1 >conftest.err
28448 rm -f conftest.er1
28449 cat conftest.err >&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); } &&
28452 { ac_try='test -z "$ac_c_werror_flag"
28453 || test ! -s conftest.err'
28454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455 (eval $ac_try) 2>&5
28456 ac_status=$?
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; } &&
28459 { ac_try='test -s conftest$ac_exeext'
28460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28461 (eval $ac_try) 2>&5
28462 ac_status=$?
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); }; }; then
28465 flink_try=yes
28466 else
28467 echo "$as_me: failed program was:" >&5
28468 sed 's/^/| /' conftest.$ac_ext >&5
28469
28470 flink_try=no
28471 fi
28472 rm -f conftest.err conftest.$ac_objext \
28473 conftest$ac_exeext conftest.$ac_ext
28474 fi
28475 if test $flink_try = yes; then
28476 use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
28477 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28478 echo "${ECHO_T}yes: $use_blas" >&6
28479
28480 else
28481 if test x"$FLIBS" != x; then
28482 flink_save_libs="$LIBS"
28483 LIBS="$LIBS $FLIBS"
28484 cat >conftest.$ac_ext <<_ACEOF
28485 /* confdefs.h. */
28486 _ACEOF
28487 cat confdefs.h >>conftest.$ac_ext
28488 cat >>conftest.$ac_ext <<_ACEOF
28489 /* end confdefs.h. */
28490 extern "C" {void $cfuncdaxpy();}
28491 #ifdef F77_DUMMY_MAIN
28492
28493 # ifdef __cplusplus
28494 extern "C"
28495 # endif
28496 int F77_DUMMY_MAIN() { return 1; }
28497
28498 #endif
28499 int
28500 main ()
28501 {
28502 $cfuncdaxpy()
28503 ;
28504 return 0;
28505 }
28506 _ACEOF
28507 rm -f conftest.$ac_objext conftest$ac_exeext
28508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28509 (eval $ac_link) 2>conftest.er1
28510 ac_status=$?
28511 grep -v '^ *+' conftest.er1 >conftest.err
28512 rm -f conftest.er1
28513 cat conftest.err >&5
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); } &&
28516 { ac_try='test -z "$ac_c_werror_flag"
28517 || test ! -s conftest.err'
28518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28519 (eval $ac_try) 2>&5
28520 ac_status=$?
28521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522 (exit $ac_status); }; } &&
28523 { ac_try='test -s conftest$ac_exeext'
28524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28525 (eval $ac_try) 2>&5
28526 ac_status=$?
28527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528 (exit $ac_status); }; }; then
28529 LIBS="$flink_save_libs"
28530 coin_need_flibs=yes
28531 use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
28532 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28533 echo "${ECHO_T}yes: $use_blas" >&6
28534
28535
28536 else
28537 echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28539
28540 LIBS="$flink_save_libs"
28541 echo "$as_me:$LINENO: result: no" >&5
28542 echo "${ECHO_T}no" >&6
28543 fi
28544 rm -f conftest.err conftest.$ac_objext \
28545 conftest$ac_exeext conftest.$ac_ext
28546 else
28547 echo "$as_me:$LINENO: result: no" >&5
28548 echo "${ECHO_T}no" >&6
28549 fi
28550 fi
28551 ;;
28552 esac
28553
28554 else
28555 { echo "$as_me:$LINENO: for BLAS in MKL (64bit) using C linkage" >&5
28556 echo "$as_me: for BLAS in MKL (64bit) using C linkage" >&6;}
28557 # unset cached outcome of test with 32bit MKL
28558 unset ac_cv_func_daxpy
28559 ac_ext=c
28560 ac_cpp='$CPP $CPPFLAGS'
28561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28564
28565 echo "$as_me:$LINENO: checking for daxpy" >&5
28566 echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
28567 if test "${ac_cv_func_daxpy+set}" = set; then
28568 echo $ECHO_N "(cached) $ECHO_C" >&6
28569 else
28570 cat >conftest.$ac_ext <<_ACEOF
28571 /* confdefs.h. */
28572 _ACEOF
28573 cat confdefs.h >>conftest.$ac_ext
28574 cat >>conftest.$ac_ext <<_ACEOF
28575 /* end confdefs.h. */
28576 /* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
28577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28578 #define daxpy innocuous_daxpy
28579
28580 /* System header to define __stub macros and hopefully few prototypes,
28581 which can conflict with char daxpy (); below.
28582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28583 <limits.h> exists even on freestanding compilers. */
28584
28585 #ifdef __STDC__
28586 # include <limits.h>
28587 #else
28588 # include <assert.h>
28589 #endif
28590
28591 #undef daxpy
28592
28593 /* Override any gcc2 internal prototype to avoid an error. */
28594 #ifdef __cplusplus
28595 extern "C"
28596 {
28597 #endif
28598 /* We use char because int might match the return type of a gcc2
28599 builtin and then its argument prototype would still apply. */
28600 char daxpy ();
28601 /* The GNU C library defines this for functions which it implements
28602 to always fail with ENOSYS. Some functions are actually named
28603 something starting with __ and the normal name is an alias. */
28604 #if defined (__stub_daxpy) || defined (__stub___daxpy)
28605 choke me
28606 #else
28607 char (*f) () = daxpy;
28608 #endif
28609 #ifdef __cplusplus
28610 }
28611 #endif
28612
28613 #ifdef F77_DUMMY_MAIN
28614
28615 # ifdef __cplusplus
28616 extern "C"
28617 # endif
28618 int F77_DUMMY_MAIN() { return 1; }
28619
28620 #endif
28621 int
28622 main ()
28623 {
28624 return f != daxpy;
28625 ;
28626 return 0;
28627 }
28628 _ACEOF
28629 rm -f conftest.$ac_objext conftest$ac_exeext
28630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28631 (eval $ac_link) 2>conftest.er1
28632 ac_status=$?
28633 grep -v '^ *+' conftest.er1 >conftest.err
28634 rm -f conftest.er1
28635 cat conftest.err >&5
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); } &&
28638 { ac_try='test -z "$ac_c_werror_flag"
28639 || test ! -s conftest.err'
28640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641 (eval $ac_try) 2>&5
28642 ac_status=$?
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); }; } &&
28645 { ac_try='test -s conftest$ac_exeext'
28646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28647 (eval $ac_try) 2>&5
28648 ac_status=$?
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); }; }; then
28651 ac_cv_func_daxpy=yes
28652 else
28653 echo "$as_me: failed program was:" >&5
28654 sed 's/^/| /' conftest.$ac_ext >&5
28655
28656 ac_cv_func_daxpy=no
28657 fi
28658 rm -f conftest.err conftest.$ac_objext \
28659 conftest$ac_exeext conftest.$ac_ext
28660 fi
28661 echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
28662 echo "${ECHO_T}$ac_cv_func_daxpy" >&6
28663 if test $ac_cv_func_daxpy = yes; then
28664 use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
28665 fi
28666
28667 ac_ext=c
28668 ac_cpp='$CPP $CPPFLAGS'
28669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28672
28673 fi
28674 LIBS="$coin_save_LIBS"
28675 fi
28676 ;;
28677 esac
28678 ;;
28679
28680 *-darwin*)
28681 echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5
28682 echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6
28683 coin_need_flibs=no
28684 coin_save_LIBS="$LIBS"
28685 LIBS="-framework Accelerate $LIBS"
28686 case $ac_ext in
28687 f)
28688 cat >conftest.$ac_ext <<_ACEOF
28689 /* confdefs.h. */
28690 _ACEOF
28691 cat confdefs.h >>conftest.$ac_ext
28692 cat >>conftest.$ac_ext <<_ACEOF
28693 /* end confdefs.h. */
28694
28695 #ifdef F77_DUMMY_MAIN
28696
28697 # ifdef __cplusplus
28698 extern "C"
28699 # endif
28700 int F77_DUMMY_MAIN() { return 1; }
28701
28702 #endif
28703 int
28704 main ()
28705 {
28706 call daxpy
28707 ;
28708 return 0;
28709 }
28710 _ACEOF
28711 rm -f conftest.$ac_objext conftest$ac_exeext
28712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28713 (eval $ac_link) 2>conftest.er1
28714 ac_status=$?
28715 grep -v '^ *+' conftest.er1 >conftest.err
28716 rm -f conftest.er1
28717 cat conftest.err >&5
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); } &&
28720 { ac_try='test -z "$ac_c_werror_flag"
28721 || test ! -s conftest.err'
28722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28723 (eval $ac_try) 2>&5
28724 ac_status=$?
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); }; } &&
28727 { ac_try='test -s conftest$ac_exeext'
28728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28729 (eval $ac_try) 2>&5
28730 ac_status=$?
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); }; }; then
28733 use_blas='-framework Accelerate'
28734 if test $coin_need_flibs = yes ; then
28735 use_blas="$use_blas $FLIBS"
28736 fi
28737 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28738 echo "${ECHO_T}yes: $use_blas" >&6
28739
28740 else
28741 echo "$as_me: failed program was:" >&5
28742 sed 's/^/| /' conftest.$ac_ext >&5
28743
28744 echo "$as_me:$LINENO: result: no" >&5
28745 echo "${ECHO_T}no" >&6
28746 fi
28747 rm -f conftest.err conftest.$ac_objext \
28748 conftest$ac_exeext conftest.$ac_ext
28749 ;;
28750 c)
28751 ac_ext=f
28752 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
28753 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28754 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
28755 case $ac_cv_f77_mangling in
28756 upper*) ac_val="DAXPY" ;;
28757 lower*) ac_val="daxpy" ;;
28758 *) ac_val="unknown" ;;
28759 esac
28760 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
28761
28762 cfuncdaxpy="$ac_val"
28763
28764 ac_ext=c
28765 ac_cpp='$CPP $CPPFLAGS'
28766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28769
28770 if test x"$coin_need_flibs" = xyes; then
28771 flink_try=no;
28772 else
28773 cat >conftest.$ac_ext <<_ACEOF
28774 /* confdefs.h. */
28775 _ACEOF
28776 cat confdefs.h >>conftest.$ac_ext
28777 cat >>conftest.$ac_ext <<_ACEOF
28778 /* end confdefs.h. */
28779 void $cfuncdaxpy();
28780 #ifdef F77_DUMMY_MAIN
28781
28782 # ifdef __cplusplus
28783 extern "C"
28784 # endif
28785 int F77_DUMMY_MAIN() { return 1; }
28786
28787 #endif
28788 int
28789 main ()
28790 {
28791 $cfuncdaxpy()
28792 ;
28793 return 0;
28794 }
28795 _ACEOF
28796 rm -f conftest.$ac_objext conftest$ac_exeext
28797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28798 (eval $ac_link) 2>conftest.er1
28799 ac_status=$?
28800 grep -v '^ *+' conftest.er1 >conftest.err
28801 rm -f conftest.er1
28802 cat conftest.err >&5
28803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804 (exit $ac_status); } &&
28805 { ac_try='test -z "$ac_c_werror_flag"
28806 || test ! -s conftest.err'
28807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28808 (eval $ac_try) 2>&5
28809 ac_status=$?
28810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28811 (exit $ac_status); }; } &&
28812 { ac_try='test -s conftest$ac_exeext'
28813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28814 (eval $ac_try) 2>&5
28815 ac_status=$?
28816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817 (exit $ac_status); }; }; then
28818 flink_try=yes
28819 else
28820 echo "$as_me: failed program was:" >&5
28821 sed 's/^/| /' conftest.$ac_ext >&5
28822
28823 flink_try=no
28824 fi
28825 rm -f conftest.err conftest.$ac_objext \
28826 conftest$ac_exeext conftest.$ac_ext
28827 fi
28828 if test $flink_try = yes; then
28829 use_blas='-framework Accelerate'
28830 if test $coin_need_flibs = yes ; then
28831 use_blas="$use_blas $FLIBS"
28832 fi
28833 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28834 echo "${ECHO_T}yes: $use_blas" >&6
28835
28836 else
28837 if test x"$FLIBS" != x; then
28838 flink_save_libs="$LIBS"
28839 LIBS="$LIBS $FLIBS"
28840 cat >conftest.$ac_ext <<_ACEOF
28841 /* confdefs.h. */
28842 _ACEOF
28843 cat confdefs.h >>conftest.$ac_ext
28844 cat >>conftest.$ac_ext <<_ACEOF
28845 /* end confdefs.h. */
28846 void $cfuncdaxpy();
28847 #ifdef F77_DUMMY_MAIN
28848
28849 # ifdef __cplusplus
28850 extern "C"
28851 # endif
28852 int F77_DUMMY_MAIN() { return 1; }
28853
28854 #endif
28855 int
28856 main ()
28857 {
28858 $cfuncdaxpy()
28859 ;
28860 return 0;
28861 }
28862 _ACEOF
28863 rm -f conftest.$ac_objext conftest$ac_exeext
28864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28865 (eval $ac_link) 2>conftest.er1
28866 ac_status=$?
28867 grep -v '^ *+' conftest.er1 >conftest.err
28868 rm -f conftest.er1
28869 cat conftest.err >&5
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); } &&
28872 { ac_try='test -z "$ac_c_werror_flag"
28873 || test ! -s conftest.err'
28874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28875 (eval $ac_try) 2>&5
28876 ac_status=$?
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); }; } &&
28879 { ac_try='test -s conftest$ac_exeext'
28880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28881 (eval $ac_try) 2>&5
28882 ac_status=$?
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); }; }; then
28885 LIBS="$flink_save_libs"
28886 coin_need_flibs=yes
28887 use_blas='-framework Accelerate'
28888 if test $coin_need_flibs = yes ; then
28889 use_blas="$use_blas $FLIBS"
28890 fi
28891 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28892 echo "${ECHO_T}yes: $use_blas" >&6
28893
28894
28895 else
28896 echo "$as_me: failed program was:" >&5
28897 sed 's/^/| /' conftest.$ac_ext >&5
28898
28899 LIBS="$flink_save_libs"
28900 echo "$as_me:$LINENO: result: no" >&5
28901 echo "${ECHO_T}no" >&6
28902 fi
28903 rm -f conftest.err conftest.$ac_objext \
28904 conftest$ac_exeext conftest.$ac_ext
28905 else
28906 echo "$as_me:$LINENO: result: no" >&5
28907 echo "${ECHO_T}no" >&6
28908 fi
28909 fi
28910 ;;
28911 cc|cpp)
28912 ac_ext=f
28913 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
28914 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28915 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
28916 case $ac_cv_f77_mangling in
28917 upper*) ac_val="DAXPY" ;;
28918 lower*) ac_val="daxpy" ;;
28919 *) ac_val="unknown" ;;
28920 esac
28921 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
28922
28923 cfuncdaxpy="$ac_val"
28924
28925 ac_ext=c
28926 ac_cpp='$CPP $CPPFLAGS'
28927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28930
28931 if test x"$coin_need_flibs" = xyes; then
28932 flink_try=no;
28933 else
28934 cat >conftest.$ac_ext <<_ACEOF
28935 /* confdefs.h. */
28936 _ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h. */
28940 extern "C" {void $cfuncdaxpy();}
28941 #ifdef F77_DUMMY_MAIN
28942
28943 # ifdef __cplusplus
28944 extern "C"
28945 # endif
28946 int F77_DUMMY_MAIN() { return 1; }
28947
28948 #endif
28949 int
28950 main ()
28951 {
28952 $cfuncdaxpy()
28953 ;
28954 return 0;
28955 }
28956 _ACEOF
28957 rm -f conftest.$ac_objext conftest$ac_exeext
28958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28959 (eval $ac_link) 2>conftest.er1
28960 ac_status=$?
28961 grep -v '^ *+' conftest.er1 >conftest.err
28962 rm -f conftest.er1
28963 cat conftest.err >&5
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); } &&
28966 { ac_try='test -z "$ac_c_werror_flag"
28967 || test ! -s conftest.err'
28968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28969 (eval $ac_try) 2>&5
28970 ac_status=$?
28971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); }; } &&
28973 { ac_try='test -s conftest$ac_exeext'
28974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28975 (eval $ac_try) 2>&5
28976 ac_status=$?
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); }; }; then
28979 flink_try=yes
28980 else
28981 echo "$as_me: failed program was:" >&5
28982 sed 's/^/| /' conftest.$ac_ext >&5
28983
28984 flink_try=no
28985 fi
28986 rm -f conftest.err conftest.$ac_objext \
28987 conftest$ac_exeext conftest.$ac_ext
28988 fi
28989 if test $flink_try = yes; then
28990 use_blas='-framework Accelerate'
28991 if test $coin_need_flibs = yes ; then
28992 use_blas="$use_blas $FLIBS"
28993 fi
28994 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28995 echo "${ECHO_T}yes: $use_blas" >&6
28996
28997 else
28998 if test x"$FLIBS" != x; then
28999 flink_save_libs="$LIBS"
29000 LIBS="$LIBS $FLIBS"
29001 cat >conftest.$ac_ext <<_ACEOF
29002 /* confdefs.h. */
29003 _ACEOF
29004 cat confdefs.h >>conftest.$ac_ext
29005 cat >>conftest.$ac_ext <<_ACEOF
29006 /* end confdefs.h. */
29007 extern "C" {void $cfuncdaxpy();}
29008 #ifdef F77_DUMMY_MAIN
29009
29010 # ifdef __cplusplus
29011 extern "C"
29012 # endif
29013 int F77_DUMMY_MAIN() { return 1; }
29014
29015 #endif
29016 int
29017 main ()
29018 {
29019 $cfuncdaxpy()
29020 ;
29021 return 0;
29022 }
29023 _ACEOF
29024 rm -f conftest.$ac_objext conftest$ac_exeext
29025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29026 (eval $ac_link) 2>conftest.er1
29027 ac_status=$?
29028 grep -v '^ *+' conftest.er1 >conftest.err
29029 rm -f conftest.er1
29030 cat conftest.err >&5
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); } &&
29033 { ac_try='test -z "$ac_c_werror_flag"
29034 || test ! -s conftest.err'
29035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29036 (eval $ac_try) 2>&5
29037 ac_status=$?
29038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); }; } &&
29040 { ac_try='test -s conftest$ac_exeext'
29041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29042 (eval $ac_try) 2>&5
29043 ac_status=$?
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); }; }; then
29046 LIBS="$flink_save_libs"
29047 coin_need_flibs=yes
29048 use_blas='-framework Accelerate'
29049 if test $coin_need_flibs = yes ; then
29050 use_blas="$use_blas $FLIBS"
29051 fi
29052 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29053 echo "${ECHO_T}yes: $use_blas" >&6
29054
29055
29056 else
29057 echo "$as_me: failed program was:" >&5
29058 sed 's/^/| /' conftest.$ac_ext >&5
29059
29060 LIBS="$flink_save_libs"
29061 echo "$as_me:$LINENO: result: no" >&5
29062 echo "${ECHO_T}no" >&6
29063 fi
29064 rm -f conftest.err conftest.$ac_objext \
29065 conftest$ac_exeext conftest.$ac_ext
29066 else
29067 echo "$as_me:$LINENO: result: no" >&5
29068 echo "${ECHO_T}no" >&6
29069 fi
29070 fi
29071 ;;
29072 esac
29073
29074 LIBS="$coin_save_LIBS"
29075 ;;
29076 esac
29077
29078 if test -z "$use_blas" ; then
29079 echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
29080 echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
29081 coin_need_flibs=no
29082 coin_save_LIBS="$LIBS"
29083 LIBS="-lblas $LIBS"
29084 case $ac_ext in
29085 f)
29086 cat >conftest.$ac_ext <<_ACEOF
29087 /* confdefs.h. */
29088 _ACEOF
29089 cat confdefs.h >>conftest.$ac_ext
29090 cat >>conftest.$ac_ext <<_ACEOF
29091 /* end confdefs.h. */
29092
29093 #ifdef F77_DUMMY_MAIN
29094
29095 # ifdef __cplusplus
29096 extern "C"
29097 # endif
29098 int F77_DUMMY_MAIN() { return 1; }
29099
29100 #endif
29101 int
29102 main ()
29103 {
29104 call daxpy
29105 ;
29106 return 0;
29107 }
29108 _ACEOF
29109 rm -f conftest.$ac_objext conftest$ac_exeext
29110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29111 (eval $ac_link) 2>conftest.er1
29112 ac_status=$?
29113 grep -v '^ *+' conftest.er1 >conftest.err
29114 rm -f conftest.er1
29115 cat conftest.err >&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); } &&
29118 { ac_try='test -z "$ac_c_werror_flag"
29119 || test ! -s conftest.err'
29120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29121 (eval $ac_try) 2>&5
29122 ac_status=$?
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); }; } &&
29125 { ac_try='test -s conftest$ac_exeext'
29126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29127 (eval $ac_try) 2>&5
29128 ac_status=$?
29129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); }; }; then
29131 use_blas='-lblas'
29132 if test $coin_need_flibs = yes ; then
29133 use_blas="$use_blas $FLIBS"
29134 fi
29135 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29136 echo "${ECHO_T}yes: $use_blas" >&6
29137
29138 else
29139 echo "$as_me: failed program was:" >&5
29140 sed 's/^/| /' conftest.$ac_ext >&5
29141
29142 echo "$as_me:$LINENO: result: no" >&5
29143 echo "${ECHO_T}no" >&6
29144 fi
29145 rm -f conftest.err conftest.$ac_objext \
29146 conftest$ac_exeext conftest.$ac_ext
29147 ;;
29148 c)
29149 ac_ext=f
29150 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29151 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29152 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29153 case $ac_cv_f77_mangling in
29154 upper*) ac_val="DAXPY" ;;
29155 lower*) ac_val="daxpy" ;;
29156 *) ac_val="unknown" ;;
29157 esac
29158 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
29159
29160 cfuncdaxpy="$ac_val"
29161
29162 ac_ext=c
29163 ac_cpp='$CPP $CPPFLAGS'
29164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29167
29168 if test x"$coin_need_flibs" = xyes; then
29169 flink_try=no;
29170 else
29171 cat >conftest.$ac_ext <<_ACEOF
29172 /* confdefs.h. */
29173 _ACEOF
29174 cat confdefs.h >>conftest.$ac_ext
29175 cat >>conftest.$ac_ext <<_ACEOF
29176 /* end confdefs.h. */
29177 void $cfuncdaxpy();
29178 #ifdef F77_DUMMY_MAIN
29179
29180 # ifdef __cplusplus
29181 extern "C"
29182 # endif
29183 int F77_DUMMY_MAIN() { return 1; }
29184
29185 #endif
29186 int
29187 main ()
29188 {
29189 $cfuncdaxpy()
29190 ;
29191 return 0;
29192 }
29193 _ACEOF
29194 rm -f conftest.$ac_objext conftest$ac_exeext
29195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29196 (eval $ac_link) 2>conftest.er1
29197 ac_status=$?
29198 grep -v '^ *+' conftest.er1 >conftest.err
29199 rm -f conftest.er1
29200 cat conftest.err >&5
29201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202 (exit $ac_status); } &&
29203 { ac_try='test -z "$ac_c_werror_flag"
29204 || test ! -s conftest.err'
29205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29206 (eval $ac_try) 2>&5
29207 ac_status=$?
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); }; } &&
29210 { ac_try='test -s conftest$ac_exeext'
29211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29212 (eval $ac_try) 2>&5
29213 ac_status=$?
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); }; }; then
29216 flink_try=yes
29217 else
29218 echo "$as_me: failed program was:" >&5
29219 sed 's/^/| /' conftest.$ac_ext >&5
29220
29221 flink_try=no
29222 fi
29223 rm -f conftest.err conftest.$ac_objext \
29224 conftest$ac_exeext conftest.$ac_ext
29225 fi
29226 if test $flink_try = yes; then
29227 use_blas='-lblas'
29228 if test $coin_need_flibs = yes ; then
29229 use_blas="$use_blas $FLIBS"
29230 fi
29231 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29232 echo "${ECHO_T}yes: $use_blas" >&6
29233
29234 else
29235 if test x"$FLIBS" != x; then
29236 flink_save_libs="$LIBS"
29237 LIBS="$LIBS $FLIBS"
29238 cat >conftest.$ac_ext <<_ACEOF
29239 /* confdefs.h. */
29240 _ACEOF
29241 cat confdefs.h >>conftest.$ac_ext
29242 cat >>conftest.$ac_ext <<_ACEOF
29243 /* end confdefs.h. */
29244 void $cfuncdaxpy();
29245 #ifdef F77_DUMMY_MAIN
29246
29247 # ifdef __cplusplus
29248 extern "C"
29249 # endif
29250 int F77_DUMMY_MAIN() { return 1; }
29251
29252 #endif
29253 int
29254 main ()
29255 {
29256 $cfuncdaxpy()
29257 ;
29258 return 0;
29259 }
29260 _ACEOF
29261 rm -f conftest.$ac_objext conftest$ac_exeext
29262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29263 (eval $ac_link) 2>conftest.er1
29264 ac_status=$?
29265 grep -v '^ *+' conftest.er1 >conftest.err
29266 rm -f conftest.er1
29267 cat conftest.err >&5
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); } &&
29270 { ac_try='test -z "$ac_c_werror_flag"
29271 || test ! -s conftest.err'
29272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29273 (eval $ac_try) 2>&5
29274 ac_status=$?
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); }; } &&
29277 { ac_try='test -s conftest$ac_exeext'
29278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29279 (eval $ac_try) 2>&5
29280 ac_status=$?
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); }; }; then
29283 LIBS="$flink_save_libs"
29284 coin_need_flibs=yes
29285 use_blas='-lblas'
29286 if test $coin_need_flibs = yes ; then
29287 use_blas="$use_blas $FLIBS"
29288 fi
29289 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29290 echo "${ECHO_T}yes: $use_blas" >&6
29291
29292
29293 else
29294 echo "$as_me: failed program was:" >&5
29295 sed 's/^/| /' conftest.$ac_ext >&5
29296
29297 LIBS="$flink_save_libs"
29298 echo "$as_me:$LINENO: result: no" >&5
29299 echo "${ECHO_T}no" >&6
29300 fi
29301 rm -f conftest.err conftest.$ac_objext \
29302 conftest$ac_exeext conftest.$ac_ext
29303 else
29304 echo "$as_me:$LINENO: result: no" >&5
29305 echo "${ECHO_T}no" >&6
29306 fi
29307 fi
29308 ;;
29309 cc|cpp)
29310 ac_ext=f
29311 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29312 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29313 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29314 case $ac_cv_f77_mangling in
29315 upper*) ac_val="DAXPY" ;;
29316 lower*) ac_val="daxpy" ;;
29317 *) ac_val="unknown" ;;
29318 esac
29319 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
29320
29321 cfuncdaxpy="$ac_val"
29322
29323 ac_ext=c
29324 ac_cpp='$CPP $CPPFLAGS'
29325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29328
29329 if test x"$coin_need_flibs" = xyes; then
29330 flink_try=no;
29331 else
29332 cat >conftest.$ac_ext <<_ACEOF
29333 /* confdefs.h. */
29334 _ACEOF
29335 cat confdefs.h >>conftest.$ac_ext
29336 cat >>conftest.$ac_ext <<_ACEOF
29337 /* end confdefs.h. */
29338 extern "C" {void $cfuncdaxpy();}
29339 #ifdef F77_DUMMY_MAIN
29340
29341 # ifdef __cplusplus
29342 extern "C"
29343 # endif
29344 int F77_DUMMY_MAIN() { return 1; }
29345
29346 #endif
29347 int
29348 main ()
29349 {
29350 $cfuncdaxpy()
29351 ;
29352 return 0;
29353 }
29354 _ACEOF
29355 rm -f conftest.$ac_objext conftest$ac_exeext
29356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29357 (eval $ac_link) 2>conftest.er1
29358 ac_status=$?
29359 grep -v '^ *+' conftest.er1 >conftest.err
29360 rm -f conftest.er1
29361 cat conftest.err >&5
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); } &&
29364 { ac_try='test -z "$ac_c_werror_flag"
29365 || test ! -s conftest.err'
29366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29367 (eval $ac_try) 2>&5
29368 ac_status=$?
29369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); }; } &&
29371 { ac_try='test -s conftest$ac_exeext'
29372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29373 (eval $ac_try) 2>&5
29374 ac_status=$?
29375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376 (exit $ac_status); }; }; then
29377 flink_try=yes
29378 else
29379 echo "$as_me: failed program was:" >&5
29380 sed 's/^/| /' conftest.$ac_ext >&5
29381
29382 flink_try=no
29383 fi
29384 rm -f conftest.err conftest.$ac_objext \
29385 conftest$ac_exeext conftest.$ac_ext
29386 fi
29387 if test $flink_try = yes; then
29388 use_blas='-lblas'
29389 if test $coin_need_flibs = yes ; then
29390 use_blas="$use_blas $FLIBS"
29391 fi
29392 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29393 echo "${ECHO_T}yes: $use_blas" >&6
29394
29395 else
29396 if test x"$FLIBS" != x; then
29397 flink_save_libs="$LIBS"
29398 LIBS="$LIBS $FLIBS"
29399 cat >conftest.$ac_ext <<_ACEOF
29400 /* confdefs.h. */
29401 _ACEOF
29402 cat confdefs.h >>conftest.$ac_ext
29403 cat >>conftest.$ac_ext <<_ACEOF
29404 /* end confdefs.h. */
29405 extern "C" {void $cfuncdaxpy();}
29406 #ifdef F77_DUMMY_MAIN
29407
29408 # ifdef __cplusplus
29409 extern "C"
29410 # endif
29411 int F77_DUMMY_MAIN() { return 1; }
29412
29413 #endif
29414 int
29415 main ()
29416 {
29417 $cfuncdaxpy()
29418 ;
29419 return 0;
29420 }
29421 _ACEOF
29422 rm -f conftest.$ac_objext conftest$ac_exeext
29423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29424 (eval $ac_link) 2>conftest.er1
29425 ac_status=$?
29426 grep -v '^ *+' conftest.er1 >conftest.err
29427 rm -f conftest.er1
29428 cat conftest.err >&5
29429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430 (exit $ac_status); } &&
29431 { ac_try='test -z "$ac_c_werror_flag"
29432 || test ! -s conftest.err'
29433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29434 (eval $ac_try) 2>&5
29435 ac_status=$?
29436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29437 (exit $ac_status); }; } &&
29438 { ac_try='test -s conftest$ac_exeext'
29439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29440 (eval $ac_try) 2>&5
29441 ac_status=$?
29442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); }; }; then
29444 LIBS="$flink_save_libs"
29445 coin_need_flibs=yes
29446 use_blas='-lblas'
29447 if test $coin_need_flibs = yes ; then
29448 use_blas="$use_blas $FLIBS"
29449 fi
29450 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29451 echo "${ECHO_T}yes: $use_blas" >&6
29452
29453
29454 else
29455 echo "$as_me: failed program was:" >&5
29456 sed 's/^/| /' conftest.$ac_ext >&5
29457
29458 LIBS="$flink_save_libs"
29459 echo "$as_me:$LINENO: result: no" >&5
29460 echo "${ECHO_T}no" >&6
29461 fi
29462 rm -f conftest.err conftest.$ac_objext \
29463 conftest$ac_exeext conftest.$ac_ext
29464 else
29465 echo "$as_me:$LINENO: result: no" >&5
29466 echo "${ECHO_T}no" >&6
29467 fi
29468 fi
29469 ;;
29470 esac
29471
29472 LIBS="$coin_save_LIBS"
29473 fi
29474
29475 # If we have no other ideas, consider building BLAS.
29476 if test -z "$use_blas" ; then
29477 use_blas=BUILD
29478 fi
29479 fi
29480
29481 if test "x$use_blas" = xBUILD ; then
29482
29483 echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5
29484 echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6
29485
29486 coin_has_blas=notGiven
29487
29488 # check if user wants to skip package in any case
29489 if test x"$COIN_SKIP_PROJECTS" != x; then
29490 for dir in $COIN_SKIP_PROJECTS; do
29491 if test $dir = "Blas"; then
29492 coin_has_blas=skipping
29493 fi
29494 done
29495 fi
29496
29497 if test "$coin_has_blas" != skipping; then
29498
29499 # Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
29500 if test "${with_blas+set}" = set; then
29501 withval="$with_blas"
29502 if test "$withval" = no ; then
29503 coin_has_blas=skipping
29504 fi
29505
29506 fi;
29507 fi
29508
29509 BLAS_LIBS=
29510 BLAS_CFLAGS=
29511 BLAS_DATA=
29512 BLAS_DEPENDENCIES=
29513 BLAS_PCLIBS=
29514 BLAS_PCREQUIRES=
29515
29516
29517
29518
29519
29520
29521
29522
29523
29524
29525
29526
29527
29528
29529
29530
29531
29532 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
29533 if test $coin_has_blas != skipping; then
29534
29535 # Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
29536 if test "${with_blas_lib+set}" = set; then
29537 withval="$with_blas_lib"
29538 if test "$withval" = no ; then
29539 coin_has_blas=skipping
29540 else
29541 coin_has_blas=yes
29542 BLAS_LIBS="$withval"
29543 BLAS_PCLIBS="$withval"
29544
29545 CLPLIB_PCLIBS="$withval $CLPLIB_PCLIBS"
29546 CLPLIB_LIBS="$withval $CLPLIB_LIBS"
29547
29548 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
29549 if test -z "$PKG_CONFIG" ; then
29550 BLAS_LIBS_INSTALLED="$withval"
29551 CLPLIB_LIBS_INSTALLED="$withval $CLPLIB_LIBS_INSTALLED"
29552 fi
29553 fi
29554
29555 fi;
29556 fi
29557
29558 if test $coin_has_blas != skipping; then
29559
29560 # Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
29561 if test "${with_blas_incdir+set}" = set; then
29562 withval="$with_blas_incdir"
29563 if test "$withval" = no ; then
29564 coin_has_blas=skipping
29565 else
29566 coin_has_blas=yes
29567 BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
29568 CLPLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CLPLIB_CFLAGS"
29569 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
29570 if test -z "$PKG_CONFIG" ; then
29571 BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS"
29572 CLPLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $CLPLIB_CFLAGS_INSTALLED"
29573 fi
29574 fi
29575
29576 fi;
29577 fi
29578
29579 if test $coin_has_blas != skipping; then
29580
29581 # Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
29582 if test "${with_blas_datadir+set}" = set; then
29583 withval="$with_blas_datadir"
29584 if test "$withval" = no ; then
29585 coin_has_blas=skipping
29586 else
29587 coin_has_blas=yes
29588 BLAS_DATA="$withval"
29589 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
29590 if test -z "$PKG_CONFIG" ; then
29591 BLAS_DATA_INSTALLED="$withval"
29592 fi
29593 fi
29594
29595 fi;
29596 fi
29597
29598 if test $coin_has_blas = notGiven; then
29599 if test -n "$PKG_CONFIG" ; then
29600 # set search path for pkg-config
29601 # need to export variable to be sure that the following pkg-config gets these values
29602 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
29603 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
29604 export PKG_CONFIG_PATH
29605
29606 # let pkg-config do it's magic
29607
29608
29609
29610 if test -n "$PKG_CONFIG" ; then
29611 if $PKG_CONFIG --exists "coinblas"; then
29612 BLAS_VERSIONS=`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '`
29613 cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
29614 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
29615 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
29616 # but only do this if is not trivial
29617 if test "$CYGPATH_W" != "echo" ; then
29618 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
29619 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
29620 fi
29621 BLAS_CFLAGS="$cflags"
29622 BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
29623 BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
29624 coin_has_blas=yes
29625 echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
29626 echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
29627
29628 # adjust linker flags for (i)cl compiler
29629 # 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)
29630 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
29631 then
29632 BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
29633 fi
29634 BLAS_PCREQUIRES="coinblas"
29635
29636 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in ClpLib
29637
29638 CLPLIB_PCREQUIRES="coinblas $CLPLIB_PCREQUIRES"
29639 CLPLIB_CFLAGS="$BLAS_CFLAGS $CLPLIB_CFLAGS"
29640 CLPLIB_LIBS="$BLAS_LIBS $CLPLIB_LIBS"
29641
29642
29643
29644 else
29645 BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
29646 coin_has_blas=notGiven
29647 echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
29648 echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
29649
29650 fi
29651 else
29652 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
29653 echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
29654 { (exit 1); exit 1; }; }
29655 fi
29656
29657
29658
29659
29660 # reset PKG_CONFIG_PATH variable
29661 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
29662 export PKG_CONFIG_PATH
29663
29664 else
29665 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
29666 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
29667
29668 echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5
29669 echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6
29670
29671 coin_has_blas=notGiven
29672 BLAS_LIBS=
29673 BLAS_LIBS_INSTALLED=
29674 BLAS_CFLAGS=
29675 BLAS_CFLAGS_INSTALLED=
29676 BLAS_DATA=
29677 BLAS_DATA_INSTALLED=
29678 BLAS_PCLIBS=
29679 BLAS_PCREQUIRES=
29680
29681 # initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x)
29682 projtoprocess="coinblas"
29683
29684 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
29685 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
29686 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
29687 # also, we setup the DATA variable
29688 allproj=""
29689 allpcfiles=""
29690 allpcifiles=""
29691 while test "x$projtoprocess" != x ; do
29692
29693 for proj in $projtoprocess ; do
29694 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
29695 pcfile=""
29696 save_IFS="$IFS"
29697 IFS=":"
29698 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
29699 # 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
29700 if test -r "$dir/${proj}-uninstalled.pc" ; then
29701 pcfile="$dir/$proj-uninstalled.pc"
29702 if test -r "$dir/${proj}.pc" ; then
29703 pcifile="$dir/${proj}.pc"
29704 else
29705 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
29706 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
29707 pcifile=
29708 fi
29709 break
29710 fi
29711 done
29712 IFS="$save_IFS"
29713
29714 if test "x$pcfile" != x ; then
29715 # read dependencies from $pcfile and filter it
29716 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
29717
29718 # add projrequires to the front of the list of projects that have to be processed next
29719 # at the same time, remove $proj from this list
29720 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
29721
29722 # read DATA from $pcfile, if _DATA is still empty
29723 if test "x$BLAS_DATA" = x ; then
29724 projdatadir=
29725 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
29726 eval `sh -c "$pcfilemod"`
29727 BLAS_DATA="$projdatadir"
29728 fi
29729
29730 allproj="$allproj $proj"
29731 allpcfiles="$pcfile:$allpcfiles"
29732
29733 else
29734 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
29735 echo "${ECHO_T}no, dependency $proj not available" >&6
29736 allproj=fail
29737 break 2
29738 fi
29739
29740 if test "x$pcifile" != x ; then
29741 allpcifiles="$pcifile:$allpcifiles"
29742
29743 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
29744 if test "x$BLAS_DATA_INSTALLED" = x ; then
29745 projdatadir=
29746 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
29747 eval `sh -c "$pcifilemod"`
29748 if test "${CYGPATH_W}" != "echo"; then
29749 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
29750 fi
29751 BLAS_DATA_INSTALLED="$projdatadir"
29752 fi
29753
29754 fi
29755
29756 break
29757 done
29758
29759 # remove spaces on begin of $projtoprocess
29760 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
29761
29762 done
29763
29764 if test "$allproj" != fail ; then
29765
29766 # now go through the list of .pc files and assemble compiler and linker flags
29767 # important is here to obey the reverse order that has been setup before,
29768 # since then libraries that are required by several others should be after these other libraries
29769 pcfilesprocessed=""
29770
29771 save_IFS="$IFS"
29772 IFS=":"
29773 for pcfile in $allpcfiles ; do
29774
29775 # if $pcfile has been processed already, skip this round
29776 if test "x$pcfilesprocessed" != x ; then
29777 for pcfiledone in $pcfilesprocessed ; do
29778 if test "$pcfiledone" = "$pcfile" ; then
29779 continue 2
29780 fi
29781 done
29782 fi
29783
29784 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
29785 # replace "Libs:" by "echo projlibs="
29786 # replace "Cflags:" by "echo projcflags="
29787 # remove every line starting with <some word>:
29788 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
29789
29790 # set projcflags and projlibs variables by running $pcfilemod
29791 # 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
29792 projcflags=
29793 projlibs=
29794 IFS="$save_IFS"
29795 eval `sh -c "$pcfilemod"`
29796 IFS=":"
29797
29798 # add CYGPATH_W cludge into include flags and set CFLAGS variable
29799 if test "${CYGPATH_W}" != "echo"; then
29800 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
29801 fi
29802 BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
29803
29804 # set LIBS variable
29805 BLAS_LIBS="$projlibs $BLAS_LIBS"
29806
29807 # remember that we have processed $pcfile
29808 pcfilesprocessed="$pcfilesprocessed:$pcfile"
29809
29810 done
29811 IFS="$save_IFS"
29812
29813
29814 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
29815 # important is here again to obey the reverse order that has been setup before,
29816 # since then libraries that are required by several others should be after these other libraries
29817 pcfilesprocessed=""
29818
29819 save_IFS="$IFS"
29820 IFS=":"
29821 for pcfile in $allpcifiles ; do
29822
29823 # if $pcfile has been processed already, skip this round
29824 if test "x$pcfilesprocessed" != x ; then
29825 for pcfiledone in $pcfilesprocessed ; do
29826 if test "$pcfiledone" = "$pcfile" ; then
29827 continue 2
29828 fi
29829 done
29830 fi
29831
29832 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
29833 # replace "Libs:" by "echo projlibs="
29834 # replace "Cflags:" by "echo projcflags="
29835 # remove every line starting with <some word>:
29836 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
29837
29838 # set projcflags and projlibs variables by running $pcfilemod
29839 # 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
29840 projcflags=
29841 projlibs=
29842 IFS="$save_IFS"
29843 eval `sh -c "$pcfilemod"`
29844 IFS=":"
29845
29846 # add CYGPATH_W cludge into include flags and set CFLAGS variable
29847 if test "${CYGPATH_W}" != "echo"; then
29848 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
29849 fi
29850 BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED"
29851
29852 # set LIBS variable
29853 BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED"
29854
29855 # remember that we have processed $pcfile
29856 pcfilesprocessed="$pcfilesprocessed:$pcfile"
29857
29858 done
29859 IFS="$save_IFS"
29860
29861
29862 # finish up
29863 coin_has_blas=yes
29864 echo "$as_me:$LINENO: result: yes" >&5
29865 echo "${ECHO_T}yes" >&6
29866
29867 cat >>confdefs.h <<\_ACEOF
29868 #define COIN_HAS_BLAS 1
29869 _ACEOF
29870
29871
29872 # adjust linker flags for (i)cl compiler
29873 # 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),
29874 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
29875 # everything of the form "-lname" by "libname.lib", and
29876 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
29877 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
29878 then
29879 BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
29880 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'`
29881 fi
29882
29883 BLAS_PCREQUIRES="coinblas"
29884
29885 CLPLIB_PCREQUIRES="coinblas $CLPLIB_PCREQUIRES"
29886 CLPLIB_CFLAGS="$BLAS_CFLAGS $CLPLIB_CFLAGS"
29887 CLPLIB_LIBS="$BLAS_LIBS $CLPLIB_LIBS"
29888 CLPLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $CLPLIB_CFLAGS_INSTALLED"
29889 CLPLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $CLPLIB_LIBS_INSTALLED"
29890
29891
29892 fi
29893
29894
29895
29896 if test $coin_has_blas != notGiven &&
29897 test $coin_has_blas != skipping; then
29898 COIN_HAS_BLAS_TRUE=
29899 COIN_HAS_BLAS_FALSE='#'
29900 else
29901 COIN_HAS_BLAS_TRUE='#'
29902 COIN_HAS_BLAS_FALSE=
29903 fi
29904
29905
29906
29907 fi
29908
29909 else
29910 echo "$as_me:$LINENO: result: $coin_has_blas" >&5
29911 echo "${ECHO_T}$coin_has_blas" >&6
29912 fi
29913
29914 if test $coin_has_blas != skipping &&
29915 test $coin_has_blas != notGiven ; then
29916
29917 cat >>confdefs.h <<\_ACEOF
29918 #define COIN_HAS_BLAS 1
29919 _ACEOF
29920
29921
29922 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
29923 if test "${enable_interpackage_dependencies+set}" = set; then
29924 enableval="$enable_interpackage_dependencies"
29925
29926 else
29927 enable_interpackage_dependencies=yes
29928 fi;
29929
29930 if test $enable_interpackage_dependencies = yes ; then
29931 # construct dependencies variables from LIBS variables
29932 # we add an extra space in LIBS so we can substitute out everything starting with " -"
29933 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
29934 # then remove everything of the form -xxx
29935 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
29936 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'`
29937
29938 CLPLIB_DEPENDENCIES=`echo " $CLPLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
29939
29940 fi
29941
29942 if test 1 = 0 ; then #change this test to enable a bit of debugging output
29943 if test -n "$BLAS_CFLAGS" ; then
29944 { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
29945 echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
29946 fi
29947 if test -n "$BLAS_LIBS" ; then
29948 { echo "$as_me:$LINENO: Blas LIBS are $BLAS_LIBS" >&5
29949 echo "$as_me: Blas LIBS are $BLAS_LIBS" >&6;}
29950 fi
29951 if test -n "$BLAS_DEPENDENCIES" ; then
29952 { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5
29953 echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;}
29954 fi
29955 if test -n "$BLAS_DATA" ; then
29956 { echo "$as_me:$LINENO: Blas DATA is $BLAS_DATA" >&5
29957 echo "$as_me: Blas DATA is $BLAS_DATA" >&6;}
29958 fi
29959 if test -n "$BLAS_PCLIBS" ; then
29960 { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5
29961 echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;}
29962 fi
29963 if test -n "$BLAS_PCREQUIRES" ; then
29964 { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5
29965 echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;}
29966 fi
29967
29968 { echo "$as_me:$LINENO: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&5
29969 echo "$as_me: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&6;}
29970 { echo "$as_me:$LINENO: ClpLib LIBS are $CLPLIB_LIBS" >&5
29971 echo "$as_me: ClpLib LIBS are $CLPLIB_LIBS" >&6;}
29972 { echo "$as_me:$LINENO: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&5
29973 echo "$as_me: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&6;}
29974
29975 fi
29976 fi
29977
29978 # Define the Makefile conditional
29979
29980
29981 if test $coin_has_blas != notGiven &&
29982 test $coin_has_blas != skipping; then
29983 COIN_HAS_BLAS_TRUE=
29984 COIN_HAS_BLAS_FALSE='#'
29985 else
29986 COIN_HAS_BLAS_TRUE='#'
29987 COIN_HAS_BLAS_FALSE=
29988 fi
29989
29990
29991
29992
29993 elif test "x$use_blas" != x && test "$use_blas" != no; then
29994 coin_has_blas=yes
29995
29996
29997 if test 0 = 0; then
29998 COIN_HAS_BLAS_TRUE=
29999 COIN_HAS_BLAS_FALSE='#'
30000 else
30001 COIN_HAS_BLAS_TRUE='#'
30002 COIN_HAS_BLAS_FALSE=
30003 fi
30004
30005
30006 cat >>confdefs.h <<\_ACEOF
30007 #define COIN_HAS_BLAS 1
30008 _ACEOF
30009
30010 BLAS_LIBS="$use_blas"
30011 BLAS_CFLAGS=
30012 BLAS_DATA=
30013
30014
30015
30016
30017 CLPLIB_PCLIBS="$BLAS_LIBS $CLPLIB_PCLIBS"
30018 CLPLIB_LIBS="$BLAS_LIBS $CLPLIB_LIBS"
30019 CLPLIB_LIBS_INSTALLED="$BLAS_LIBS $CLPLIB_LIBS_INSTALLED"
30020
30021
30022 else
30023 coin_has_blas=no
30024
30025
30026 if test 0 = 1; then
30027 COIN_HAS_BLAS_TRUE=
30028 COIN_HAS_BLAS_FALSE='#'
30029 else
30030 COIN_HAS_BLAS_TRUE='#'
30031 COIN_HAS_BLAS_FALSE=
30032 fi
30033
30034 fi
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044 coin_save_LIBS="$LIBS"
30045 LIBS="$LIBS $use_wsmp $BLAS_LIBS"
30046 ac_ext=f
30047 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
30048 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30049 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
30050
30051 echo "$as_me:$LINENO: checking whether user-supplied WSMP library \"$use_wsmp\" works" >&5
30052 echo $ECHO_N "checking whether user-supplied WSMP library \"$use_wsmp\" works... $ECHO_C" >&6
30053 cat >conftest.$ac_ext <<_ACEOF
30054 program main
30055 call WSSMP()
30056 end
30057 _ACEOF
30058 rm -f conftest.$ac_objext conftest$ac_exeext
30059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30060 (eval $ac_link) 2>conftest.er1
30061 ac_status=$?
30062 grep -v '^ *+' conftest.er1 >conftest.err
30063 rm -f conftest.er1
30064 cat conftest.err >&5
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); } &&
30067 { ac_try='test -z "$ac_f77_werror_flag"
30068 || test ! -s conftest.err'
30069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30070 (eval $ac_try) 2>&5
30071 ac_status=$?
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); }; } &&
30074 { ac_try='test -s conftest$ac_exeext'
30075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30076 (eval $ac_try) 2>&5
30077 ac_status=$?
30078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079 (exit $ac_status); }; }; then
30080 echo "$as_me:$LINENO: result: yes" >&5
30081 echo "${ECHO_T}yes" >&6
30082 else
30083 echo "$as_me: failed program was:" >&5
30084 sed 's/^/| /' conftest.$ac_ext >&5
30085
30086 echo "$as_me:$LINENO: result: no" >&5
30087 echo "${ECHO_T}no" >&6
30088 { { echo "$as_me:$LINENO: error: WSMP library $use_wsmp does not seem to work" >&5
30089 echo "$as_me: error: WSMP library $use_wsmp does not seem to work" >&2;}
30090 { (exit 1); exit 1; }; }
30091 fi
30092 rm -f conftest.err conftest.$ac_objext \
30093 conftest$ac_exeext conftest.$ac_ext
30094 ac_ext=c
30095 ac_cpp='$CPP $CPPFLAGS'
30096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30099
30100 LIBS="$coin_save_LIBS"
30101
30102
30103 cat >>confdefs.h <<_ACEOF
30104 #define COIN_HAS_WSMP 1
30105 _ACEOF
30106
30107
30108 CLPLIB_LIBS="$use_wsmp $CLPLIB_LIBS"
30109 CLPLIB_LIBS_INSTALLED="$use_wsmp $CLPLIB_LIBS_INSTALLED"
30110 CLPLIB_PCLIBS="$use_wsmp $CLPLIB_PCLIBS"
30111 else
30112 # to please configure
30113
30114
30115 if test 0 = 1; then
30116 COIN_HAS_BLAS_TRUE=
30117 COIN_HAS_BLAS_FALSE='#'
30118 else
30119 COIN_HAS_BLAS_TRUE='#'
30120 COIN_HAS_BLAS_FALSE=
30121 fi
30122
30123 fi
30124
30125
30126 if test "$use_wsmp" != no; then
30127 COIN_HAS_WSMP_TRUE=
30128 COIN_HAS_WSMP_FALSE='#'
30129 else
30130 COIN_HAS_WSMP_TRUE='#'
30131 COIN_HAS_WSMP_FALSE=
30132 fi
30133
30134
30135 #############################################################################
30136 # Other dependencies #
30137 #############################################################################
30138 # Ampl Solver library
30139
30140 echo "$as_me:$LINENO: checking for COIN-OR package ASL" >&5
30141 echo $ECHO_N "checking for COIN-OR package ASL... $ECHO_C" >&6
30142
30143 coin_has_asl=notGiven
30144
30145 # check if user wants to skip package in any case
30146 if test x"$COIN_SKIP_PROJECTS" != x; then
30147 for dir in $COIN_SKIP_PROJECTS; do
30148 if test $dir = "ASL"; then
30149 coin_has_asl=skipping
30150 fi
30151 done
30152 fi
30153
30154 if test "$coin_has_asl" != skipping; then
30155
30156 # Check whether --with-m4_tolower(ASL) or --without-m4_tolower(ASL) was given.
30157 if test "${with_asl+set}" = set; then
30158 withval="$with_asl"
30159 if test "$withval" = no ; then
30160 coin_has_asl=skipping
30161 fi
30162
30163 fi;
30164 fi
30165
30166 ASL_LIBS=
30167 ASL_CFLAGS=
30168 ASL_DATA=
30169 ASL_DEPENDENCIES=
30170 ASL_PCLIBS=
30171 ASL_PCREQUIRES=
30172
30173
30174
30175
30176
30177
30178
30179
30180
30181
30182
30183
30184
30185
30186
30187
30188
30189 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
30190 if test $coin_has_asl != skipping; then
30191
30192 # Check whether --with-m4_tolower(ASL)-lib or --without-m4_tolower(ASL)-lib was given.
30193 if test "${with_asl_lib+set}" = set; then
30194 withval="$with_asl_lib"
30195 if test "$withval" = no ; then
30196 coin_has_asl=skipping
30197 else
30198 coin_has_asl=yes
30199 ASL_LIBS="$withval"
30200 ASL_PCLIBS="$withval"
30201
30202 CLPLIB_PCLIBS="$withval $CLPLIB_PCLIBS"
30203 CLPLIB_LIBS="$withval $CLPLIB_LIBS"
30204
30205 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
30206 if test -z "$PKG_CONFIG" ; then
30207 ASL_LIBS_INSTALLED="$withval"
30208 CLPLIB_LIBS_INSTALLED="$withval $CLPLIB_LIBS_INSTALLED"
30209 fi
30210 fi
30211
30212 fi;
30213 fi
30214
30215 if test $coin_has_asl != skipping; then
30216
30217 # Check whether --with-m4_tolower(ASL)-incdir or --without-m4_tolower(ASL)-incdir was given.
30218 if test "${with_asl_incdir+set}" = set; then
30219 withval="$with_asl_incdir"
30220 if test "$withval" = no ; then
30221 coin_has_asl=skipping
30222 else
30223 coin_has_asl=yes
30224 ASL_CFLAGS="-I`${CYGPATH_W} $withval`"
30225 CLPLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CLPLIB_CFLAGS"
30226 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
30227 if test -z "$PKG_CONFIG" ; then
30228 ASL_CFLAGS_INSTALLED="$ASL_CFLAGS"
30229 CLPLIB_CFLAGS_INSTALLED="$ASL_CFLAGS $CLPLIB_CFLAGS_INSTALLED"
30230 fi
30231 fi
30232
30233 fi;
30234 fi
30235
30236 if test $coin_has_asl != skipping; then
30237
30238 # Check whether --with-m4_tolower(ASL)-datadir or --without-m4_tolower(ASL)-datadir was given.
30239 if test "${with_asl_datadir+set}" = set; then
30240 withval="$with_asl_datadir"
30241 if test "$withval" = no ; then
30242 coin_has_asl=skipping
30243 else
30244 coin_has_asl=yes
30245 ASL_DATA="$withval"
30246 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
30247 if test -z "$PKG_CONFIG" ; then
30248 ASL_DATA_INSTALLED="$withval"
30249 fi
30250 fi
30251
30252 fi;
30253 fi
30254
30255 if test $coin_has_asl = notGiven; then
30256 if test -n "$PKG_CONFIG" ; then
30257 # set search path for pkg-config
30258 # need to export variable to be sure that the following pkg-config gets these values
30259 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
30260 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
30261 export PKG_CONFIG_PATH
30262
30263 # let pkg-config do it's magic
30264
30265
30266
30267 if test -n "$PKG_CONFIG" ; then
30268 if $PKG_CONFIG --exists "coinasl"; then
30269 ASL_VERSIONS=`$PKG_CONFIG --modversion "coinasl" 2>/dev/null | tr '\n' ' '`
30270 cflags=`$PKG_CONFIG --cflags "coinasl" 2>/dev/null`
30271 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
30272 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
30273 # but only do this if is not trivial
30274 if test "$CYGPATH_W" != "echo" ; then
30275 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
30276 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
30277 fi
30278 ASL_CFLAGS="$cflags"
30279 ASL_LIBS=`$PKG_CONFIG --libs "coinasl" 2>/dev/null`
30280 ASL_DATA=`$PKG_CONFIG --variable=datadir "coinasl" 2>/dev/null`
30281 coin_has_asl=yes
30282 echo "$as_me:$LINENO: result: yes: $ASL_VERSIONS" >&5
30283 echo "${ECHO_T}yes: $ASL_VERSIONS" >&6
30284
30285 # adjust linker flags for (i)cl compiler
30286 # 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)
30287 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
30288 then
30289 ASL_LIBS=`echo " $ASL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
30290 fi
30291 ASL_PCREQUIRES="coinasl"
30292
30293 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in ClpLib
30294
30295 CLPLIB_PCREQUIRES="coinasl $CLPLIB_PCREQUIRES"
30296 CLPLIB_CFLAGS="$ASL_CFLAGS $CLPLIB_CFLAGS"
30297 CLPLIB_LIBS="$ASL_LIBS $CLPLIB_LIBS"
30298
30299
30300
30301 else
30302 ASL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinasl"`
30303 coin_has_asl=notGiven
30304 echo "$as_me:$LINENO: result: not given: $ASL_PKG_ERRORS" >&5
30305 echo "${ECHO_T}not given: $ASL_PKG_ERRORS" >&6
30306
30307 fi
30308 else
30309 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module ASL without pkg-config\"" >&5
30310 echo "$as_me: error: \"Cannot check for existance of module ASL without pkg-config\"" >&2;}
30311 { (exit 1); exit 1; }; }
30312 fi
30313
30314
30315
30316
30317 # reset PKG_CONFIG_PATH variable
30318 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
30319 export PKG_CONFIG_PATH
30320
30321 else
30322 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
30323 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
30324
30325 echo "$as_me:$LINENO: checking for COIN-OR package ASL (fallback)" >&5
30326 echo $ECHO_N "checking for COIN-OR package ASL (fallback)... $ECHO_C" >&6
30327
30328 coin_has_asl=notGiven
30329 ASL_LIBS=
30330 ASL_LIBS_INSTALLED=
30331 ASL_CFLAGS=
30332 ASL_CFLAGS_INSTALLED=
30333 ASL_DATA=
30334 ASL_DATA_INSTALLED=
30335 ASL_PCLIBS=
30336 ASL_PCREQUIRES=
30337
30338 # initial list of dependencies is "coinasl", but we need to filter out version number specifications (= x, <= x, >= x, != x)
30339 projtoprocess="coinasl"
30340
30341 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
30342 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
30343 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
30344 # also, we setup the DATA variable
30345 allproj=""
30346 allpcfiles=""
30347 allpcifiles=""
30348 while test "x$projtoprocess" != x ; do
30349
30350 for proj in $projtoprocess ; do
30351 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
30352 pcfile=""
30353 save_IFS="$IFS"
30354 IFS=":"
30355 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
30356 # 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
30357 if test -r "$dir/${proj}-uninstalled.pc" ; then
30358 pcfile="$dir/$proj-uninstalled.pc"
30359 if test -r "$dir/${proj}.pc" ; then
30360 pcifile="$dir/${proj}.pc"
30361 else
30362 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
30363 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
30364 pcifile=
30365 fi
30366 break
30367 fi
30368 done
30369 IFS="$save_IFS"
30370
30371 if test "x$pcfile" != x ; then
30372 # read dependencies from $pcfile and filter it
30373 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
30374
30375 # add projrequires to the front of the list of projects that have to be processed next
30376 # at the same time, remove $proj from this list
30377 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
30378
30379 # read DATA from $pcfile, if _DATA is still empty
30380 if test "x$ASL_DATA" = x ; then
30381 projdatadir=
30382 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
30383 eval `sh -c "$pcfilemod"`
30384 ASL_DATA="$projdatadir"
30385 fi
30386
30387 allproj="$allproj $proj"
30388 allpcfiles="$pcfile:$allpcfiles"
30389
30390 else
30391 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
30392 echo "${ECHO_T}no, dependency $proj not available" >&6
30393 allproj=fail
30394 break 2
30395 fi
30396
30397 if test "x$pcifile" != x ; then
30398 allpcifiles="$pcifile:$allpcifiles"
30399
30400 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
30401 if test "x$ASL_DATA_INSTALLED" = x ; then
30402 projdatadir=
30403 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
30404 eval `sh -c "$pcifilemod"`
30405 if test "${CYGPATH_W}" != "echo"; then
30406 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
30407 fi
30408 ASL_DATA_INSTALLED="$projdatadir"
30409 fi
30410
30411 fi
30412
30413 break
30414 done
30415
30416 # remove spaces on begin of $projtoprocess
30417 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
30418
30419 done
30420
30421 if test "$allproj" != fail ; then
30422
30423 # now go through the list of .pc files and assemble compiler and linker flags
30424 # important is here to obey the reverse order that has been setup before,
30425 # since then libraries that are required by several others should be after these other libraries
30426 pcfilesprocessed=""
30427
30428 save_IFS="$IFS"
30429 IFS=":"
30430 for pcfile in $allpcfiles ; do
30431
30432 # if $pcfile has been processed already, skip this round
30433 if test "x$pcfilesprocessed" != x ; then
30434 for pcfiledone in $pcfilesprocessed ; do
30435 if test "$pcfiledone" = "$pcfile" ; then
30436 continue 2
30437 fi
30438 done
30439 fi
30440
30441 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
30442 # replace "Libs:" by "echo projlibs="
30443 # replace "Cflags:" by "echo projcflags="
30444 # remove every line starting with <some word>:
30445 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
30446
30447 # set projcflags and projlibs variables by running $pcfilemod
30448 # 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
30449 projcflags=
30450 projlibs=
30451 IFS="$save_IFS"
30452 eval `sh -c "$pcfilemod"`
30453 IFS=":"
30454
30455 # add CYGPATH_W cludge into include flags and set CFLAGS variable
30456 if test "${CYGPATH_W}" != "echo"; then
30457 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
30458 fi
30459 ASL_CFLAGS="$projcflags $ASL_CFLAGS"
30460
30461 # set LIBS variable
30462 ASL_LIBS="$projlibs $ASL_LIBS"
30463
30464 # remember that we have processed $pcfile
30465 pcfilesprocessed="$pcfilesprocessed:$pcfile"
30466
30467 done
30468 IFS="$save_IFS"
30469
30470
30471 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
30472 # important is here again to obey the reverse order that has been setup before,
30473 # since then libraries that are required by several others should be after these other libraries
30474 pcfilesprocessed=""
30475
30476 save_IFS="$IFS"
30477 IFS=":"
30478 for pcfile in $allpcifiles ; do
30479
30480 # if $pcfile has been processed already, skip this round
30481 if test "x$pcfilesprocessed" != x ; then
30482 for pcfiledone in $pcfilesprocessed ; do
30483 if test "$pcfiledone" = "$pcfile" ; then
30484 continue 2
30485 fi
30486 done
30487 fi
30488
30489 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
30490 # replace "Libs:" by "echo projlibs="
30491 # replace "Cflags:" by "echo projcflags="
30492 # remove every line starting with <some word>:
30493 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
30494
30495 # set projcflags and projlibs variables by running $pcfilemod
30496 # 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
30497 projcflags=
30498 projlibs=
30499 IFS="$save_IFS"
30500 eval `sh -c "$pcfilemod"`
30501 IFS=":"
30502
30503 # add CYGPATH_W cludge into include flags and set CFLAGS variable
30504 if test "${CYGPATH_W}" != "echo"; then
30505 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
30506 fi
30507 ASL_CFLAGS_INSTALLED="$projcflags $ASL_CFLAGS_INSTALLED"
30508
30509 # set LIBS variable
30510 ASL_LIBS_INSTALLED="$projlibs $ASL_LIBS_INSTALLED"
30511
30512 # remember that we have processed $pcfile
30513 pcfilesprocessed="$pcfilesprocessed:$pcfile"
30514
30515 done
30516 IFS="$save_IFS"
30517
30518
30519 # finish up
30520 coin_has_asl=yes
30521 echo "$as_me:$LINENO: result: yes" >&5
30522 echo "${ECHO_T}yes" >&6
30523
30524 cat >>confdefs.h <<\_ACEOF
30525 #define COIN_HAS_ASL 1
30526 _ACEOF
30527
30528
30529 # adjust linker flags for (i)cl compiler
30530 # 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),
30531 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
30532 # everything of the form "-lname" by "libname.lib", and
30533 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
30534 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
30535 then
30536 ASL_LIBS=`echo " $ASL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
30537 ASL_LIBS_INSTALLED=`echo " $ASL_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
30538 fi
30539
30540 ASL_PCREQUIRES="coinasl"
30541
30542 CLPLIB_PCREQUIRES="coinasl $CLPLIB_PCREQUIRES"
30543 CLPLIB_CFLAGS="$ASL_CFLAGS $CLPLIB_CFLAGS"
30544 CLPLIB_LIBS="$ASL_LIBS $CLPLIB_LIBS"
30545 CLPLIB_CFLAGS_INSTALLED="$ASL_CFLAGS_INSTALLED $CLPLIB_CFLAGS_INSTALLED"
30546 CLPLIB_LIBS_INSTALLED="$ASL_LIBS_INSTALLED $CLPLIB_LIBS_INSTALLED"
30547
30548
30549 fi
30550
30551
30552
30553 if test $coin_has_asl != notGiven &&
30554 test $coin_has_asl != skipping; then
30555 COIN_HAS_ASL_TRUE=
30556 COIN_HAS_ASL_FALSE='#'
30557 else
30558 COIN_HAS_ASL_TRUE='#'
30559 COIN_HAS_ASL_FALSE=
30560 fi
30561
30562
30563
30564 fi
30565
30566 else
30567 echo "$as_me:$LINENO: result: $coin_has_asl" >&5
30568 echo "${ECHO_T}$coin_has_asl" >&6
30569 fi
30570
30571 if test $coin_has_asl != skipping &&
30572 test $coin_has_asl != notGiven ; then
30573
30574 cat >>confdefs.h <<\_ACEOF
30575 #define COIN_HAS_ASL 1
30576 _ACEOF
30577
30578
30579 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
30580 if test "${enable_interpackage_dependencies+set}" = set; then
30581 enableval="$enable_interpackage_dependencies"
30582
30583 else
30584 enable_interpackage_dependencies=yes
30585 fi;
30586
30587 if test $enable_interpackage_dependencies = yes ; then
30588 # construct dependencies variables from LIBS variables
30589 # we add an extra space in LIBS so we can substitute out everything starting with " -"
30590 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
30591 # then remove everything of the form -xxx
30592 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
30593 ASL_DEPENDENCIES=`echo " $ASL_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
30594
30595 CLPLIB_DEPENDENCIES=`echo " $CLPLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
30596
30597 fi
30598
30599 if test 1 = 0 ; then #change this test to enable a bit of debugging output
30600 if test -n "$ASL_CFLAGS" ; then
30601 { echo "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5
30602 echo "$as_me: ASL CFLAGS are $ASL_CFLAGS" >&6;}
30603 fi
30604 if test -n "$ASL_LIBS" ; then
30605 { echo "$as_me:$LINENO: ASL LIBS are $ASL_LIBS" >&5
30606 echo "$as_me: ASL LIBS are $ASL_LIBS" >&6;}
30607 fi
30608 if test -n "$ASL_DEPENDENCIES" ; then
30609 { echo "$as_me:$LINENO: ASL DEPENDENCIES are $ASL_DEPENDENCIES" >&5
30610 echo "$as_me: ASL DEPENDENCIES are $ASL_DEPENDENCIES" >&6;}
30611 fi
30612 if test -n "$ASL_DATA" ; then
30613 { echo "$as_me:$LINENO: ASL DATA is $ASL_DATA" >&5
30614 echo "$as_me: ASL DATA is $ASL_DATA" >&6;}
30615 fi
30616 if test -n "$ASL_PCLIBS" ; then
30617 { echo "$as_me:$LINENO: ASL PCLIBS are $ASL_PCLIBS" >&5
30618 echo "$as_me: ASL PCLIBS are $ASL_PCLIBS" >&6;}
30619 fi
30620 if test -n "$ASL_PCREQUIRES" ; then
30621 { echo "$as_me:$LINENO: ASL PCREQUIRES are $ASL_PCREQUIRES" >&5
30622 echo "$as_me: ASL PCREQUIRES are $ASL_PCREQUIRES" >&6;}
30623 fi
30624
30625 { echo "$as_me:$LINENO: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&5
30626 echo "$as_me: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&6;}
30627 { echo "$as_me:$LINENO: ClpLib LIBS are $CLPLIB_LIBS" >&5
30628 echo "$as_me: ClpLib LIBS are $CLPLIB_LIBS" >&6;}
30629 { echo "$as_me:$LINENO: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&5
30630 echo "$as_me: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&6;}
30631
30632 fi
30633 fi
30634
30635 # Define the Makefile conditional
30636
30637
30638 if test $coin_has_asl != notGiven &&
30639 test $coin_has_asl != skipping; then
30640 COIN_HAS_ASL_TRUE=
30641 COIN_HAS_ASL_FALSE='#'
30642 else
30643 COIN_HAS_ASL_TRUE='#'
30644 COIN_HAS_ASL_FALSE=
30645 fi
30646
30647
30648
30649
30650 # Check whether --enable-gnu-packages or --disable-gnu-packages was given.
30651 if test "${enable_gnu_packages+set}" = set; then
30652 enableval="$enable_gnu_packages"
30653 coin_enable_gnu=$enableval
30654 else
30655 coin_enable_gnu=no
30656 fi;
30657
30658
30659
30660
30661
30662
30663
30664 coin_has_readline=no
30665 if test $coin_enable_gnu = yes; then
30666 #if test x"#include <stdio.h>" = x; then
30667 # hdr="#include <readline/readline.h>"
30668 #else
30669 # hdr="#include <stdio.h>"
30670 #fi
30671 #AC_CHECK_HEADERS([readline/readline.h],[coin_has_readline=yes],[],[$hdr])
30672
30673 for ac_header in readline/readline.h
30674 do
30675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30676 echo "$as_me:$LINENO: checking for $ac_header" >&5
30677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30679 echo $ECHO_N "(cached) $ECHO_C" >&6
30680 else
30681 cat >conftest.$ac_ext <<_ACEOF
30682 /* confdefs.h. */
30683 _ACEOF
30684 cat confdefs.h >>conftest.$ac_ext
30685 cat >>conftest.$ac_ext <<_ACEOF
30686 /* end confdefs.h. */
30687 #include <stdio.h>
30688
30689 #include <$ac_header>
30690 _ACEOF
30691 rm -f conftest.$ac_objext
30692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30693 (eval $ac_compile) 2>conftest.er1
30694 ac_status=$?
30695 grep -v '^ *+' conftest.er1 >conftest.err
30696 rm -f conftest.er1
30697 cat conftest.err >&5
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); } &&
30700 { ac_try='test -z "$ac_c_werror_flag"
30701 || test ! -s conftest.err'
30702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30703 (eval $ac_try) 2>&5
30704 ac_status=$?
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); }; } &&
30707 { ac_try='test -s conftest.$ac_objext'
30708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30709 (eval $ac_try) 2>&5
30710 ac_status=$?
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); }; }; then
30713 eval "$as_ac_Header=yes"
30714 else
30715 echo "$as_me: failed program was:" >&5
30716 sed 's/^/| /' conftest.$ac_ext >&5
30717
30718 eval "$as_ac_Header=no"
30719 fi
30720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30721 fi
30722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30725 cat >>confdefs.h <<_ACEOF
30726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30727 _ACEOF
30728 coin_has_readline=yes
30729 fi
30730
30731 done
30732
30733
30734
30735 coin_save_LIBS="$LIBS"
30736 LIBS=
30737 # First we check if tputs and friends are available
30738 if test $coin_has_readline = yes; then
30739 echo "$as_me:$LINENO: checking for library containing tputs" >&5
30740 echo $ECHO_N "checking for library containing tputs... $ECHO_C" >&6
30741 if test "${ac_cv_search_tputs+set}" = set; then
30742 echo $ECHO_N "(cached) $ECHO_C" >&6
30743 else
30744 ac_func_search_save_LIBS=$LIBS
30745 ac_cv_search_tputs=no
30746 cat >conftest.$ac_ext <<_ACEOF
30747 /* confdefs.h. */
30748 _ACEOF
30749 cat confdefs.h >>conftest.$ac_ext
30750 cat >>conftest.$ac_ext <<_ACEOF
30751 /* end confdefs.h. */
30752
30753 /* Override any gcc2 internal prototype to avoid an error. */
30754 #ifdef __cplusplus
30755 extern "C"
30756 #endif
30757 /* We use char because int might match the return type of a gcc2
30758 builtin and then its argument prototype would still apply. */
30759 char tputs ();
30760 #ifdef F77_DUMMY_MAIN
30761
30762 # ifdef __cplusplus
30763 extern "C"
30764 # endif
30765 int F77_DUMMY_MAIN() { return 1; }
30766
30767 #endif
30768 int
30769 main ()
30770 {
30771 tputs ();
30772 ;
30773 return 0;
30774 }
30775 _ACEOF
30776 rm -f conftest.$ac_objext conftest$ac_exeext
30777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30778 (eval $ac_link) 2>conftest.er1
30779 ac_status=$?
30780 grep -v '^ *+' conftest.er1 >conftest.err
30781 rm -f conftest.er1
30782 cat conftest.err >&5
30783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784 (exit $ac_status); } &&
30785 { ac_try='test -z "$ac_c_werror_flag"
30786 || test ! -s conftest.err'
30787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30788 (eval $ac_try) 2>&5
30789 ac_status=$?
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791 (exit $ac_status); }; } &&
30792 { ac_try='test -s conftest$ac_exeext'
30793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30794 (eval $ac_try) 2>&5
30795 ac_status=$?
30796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797 (exit $ac_status); }; }; then
30798 ac_cv_search_tputs="none required"
30799 else
30800 echo "$as_me: failed program was:" >&5
30801 sed 's/^/| /' conftest.$ac_ext >&5
30802
30803 fi
30804 rm -f conftest.err conftest.$ac_objext \
30805 conftest$ac_exeext conftest.$ac_ext
30806 if test "$ac_cv_search_tputs" = no; then
30807 for ac_lib in ncurses termcap curses; do
30808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30809 cat >conftest.$ac_ext <<_ACEOF
30810 /* confdefs.h. */
30811 _ACEOF
30812 cat confdefs.h >>conftest.$ac_ext
30813 cat >>conftest.$ac_ext <<_ACEOF
30814 /* end confdefs.h. */
30815
30816 /* Override any gcc2 internal prototype to avoid an error. */
30817 #ifdef __cplusplus
30818 extern "C"
30819 #endif
30820 /* We use char because int might match the return type of a gcc2
30821 builtin and then its argument prototype would still apply. */
30822 char tputs ();
30823 #ifdef F77_DUMMY_MAIN
30824
30825 # ifdef __cplusplus
30826 extern "C"
30827 # endif
30828 int F77_DUMMY_MAIN() { return 1; }
30829
30830 #endif
30831 int
30832 main ()
30833 {
30834 tputs ();
30835 ;
30836 return 0;
30837 }
30838 _ACEOF
30839 rm -f conftest.$ac_objext conftest$ac_exeext
30840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30841 (eval $ac_link) 2>conftest.er1
30842 ac_status=$?
30843 grep -v '^ *+' conftest.er1 >conftest.err
30844 rm -f conftest.er1
30845 cat conftest.err >&5
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); } &&
30848 { ac_try='test -z "$ac_c_werror_flag"
30849 || test ! -s conftest.err'
30850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30851 (eval $ac_try) 2>&5
30852 ac_status=$?
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); }; } &&
30855 { ac_try='test -s conftest$ac_exeext'
30856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30857 (eval $ac_try) 2>&5
30858 ac_status=$?
30859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860 (exit $ac_status); }; }; then
30861 ac_cv_search_tputs="-l$ac_lib"
30862 break
30863 else
30864 echo "$as_me: failed program was:" >&5
30865 sed 's/^/| /' conftest.$ac_ext >&5
30866
30867 fi
30868 rm -f conftest.err conftest.$ac_objext \
30869 conftest$ac_exeext conftest.$ac_ext
30870 done
30871 fi
30872 LIBS=$ac_func_search_save_LIBS
30873 fi
30874 echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
30875 echo "${ECHO_T}$ac_cv_search_tputs" >&6
30876 if test "$ac_cv_search_tputs" != no; then
30877 test "$ac_cv_search_tputs" = "none required" || LIBS="$ac_cv_search_tputs $LIBS"
30878
30879 else
30880 coin_has_readline=no
30881 fi
30882
30883 fi
30884
30885 # Now we check for readline
30886 if test $coin_has_readline = yes; then
30887 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
30888 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
30889 if test "${ac_cv_lib_readline_readline+set}" = set; then
30890 echo $ECHO_N "(cached) $ECHO_C" >&6
30891 else
30892 ac_check_lib_save_LIBS=$LIBS
30893 LIBS="-lreadline $LIBS"
30894 cat >conftest.$ac_ext <<_ACEOF
30895 /* confdefs.h. */
30896 _ACEOF
30897 cat confdefs.h >>conftest.$ac_ext
30898 cat >>conftest.$ac_ext <<_ACEOF
30899 /* end confdefs.h. */
30900
30901 /* Override any gcc2 internal prototype to avoid an error. */
30902 #ifdef __cplusplus
30903 extern "C"
30904 #endif
30905 /* We use char because int might match the return type of a gcc2
30906 builtin and then its argument prototype would still apply. */
30907 char readline ();
30908 #ifdef F77_DUMMY_MAIN
30909
30910 # ifdef __cplusplus
30911 extern "C"
30912 # endif
30913 int F77_DUMMY_MAIN() { return 1; }
30914
30915 #endif
30916 int
30917 main ()
30918 {
30919 readline ();
30920 ;
30921 return 0;
30922 }
30923 _ACEOF
30924 rm -f conftest.$ac_objext conftest$ac_exeext
30925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30926 (eval $ac_link) 2>conftest.er1
30927 ac_status=$?
30928 grep -v '^ *+' conftest.er1 >conftest.err
30929 rm -f conftest.er1
30930 cat conftest.err >&5
30931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932 (exit $ac_status); } &&
30933 { ac_try='test -z "$ac_c_werror_flag"
30934 || test ! -s conftest.err'
30935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30936 (eval $ac_try) 2>&5
30937 ac_status=$?
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); }; } &&
30940 { ac_try='test -s conftest$ac_exeext'
30941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30942 (eval $ac_try) 2>&5
30943 ac_status=$?
30944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945 (exit $ac_status); }; }; then
30946 ac_cv_lib_readline_readline=yes
30947 else
30948 echo "$as_me: failed program was:" >&5
30949 sed 's/^/| /' conftest.$ac_ext >&5
30950
30951 ac_cv_lib_readline_readline=no
30952 fi
30953 rm -f conftest.err conftest.$ac_objext \
30954 conftest$ac_exeext conftest.$ac_ext
30955 LIBS=$ac_check_lib_save_LIBS
30956 fi
30957 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
30958 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
30959 if test $ac_cv_lib_readline_readline = yes; then
30960 :
30961 else
30962 coin_has_readline=no
30963 fi
30964
30965 fi
30966
30967 if test $coin_has_readline = yes; then
30968
30969 CLPLIB_LIBS="-lreadline $LIBS $CLPLIB_LIBS"
30970 CLPLIB_PCLIBS="-lreadline $LIBS $CLPLIB_PCLIBS"
30971 CLPLIB_LIBS_INSTALLED="-lreadline $LIBS $CLPLIB_LIBS_INSTALLED"
30972
30973
30974 cat >>confdefs.h <<\_ACEOF
30975 #define COIN_HAS_READLINE 1
30976 _ACEOF
30977
30978 fi
30979
30980 LIBS="$coin_save_LIBS"
30981 fi
30982
30983
30984
30985 ac_ext=cc
30986 ac_cpp='$CXXCPP $CPPFLAGS'
30987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30990
30991 #if test x"" = x; then
30992 # hdr="#include <cmath>"
30993 #else
30994 # hdr=""
30995 #fi
30996 #AC_CHECK_HEADERS([cmath],[],[],[$hdr])
30997
30998 for ac_header in cmath
30999 do
31000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31002 echo "$as_me:$LINENO: checking for $ac_header" >&5
31003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31005 echo $ECHO_N "(cached) $ECHO_C" >&6
31006 fi
31007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31009 else
31010 # Is the header compilable?
31011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31013 cat >conftest.$ac_ext <<_ACEOF
31014 /* confdefs.h. */
31015 _ACEOF
31016 cat confdefs.h >>conftest.$ac_ext
31017 cat >>conftest.$ac_ext <<_ACEOF
31018 /* end confdefs.h. */
31019 $ac_includes_default
31020 #include <$ac_header>
31021 _ACEOF
31022 rm -f conftest.$ac_objext
31023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31024 (eval $ac_compile) 2>conftest.er1
31025 ac_status=$?
31026 grep -v '^ *+' conftest.er1 >conftest.err
31027 rm -f conftest.er1
31028 cat conftest.err >&5
31029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030 (exit $ac_status); } &&
31031 { ac_try='test -z "$ac_cxx_werror_flag"
31032 || test ! -s conftest.err'
31033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31034 (eval $ac_try) 2>&5
31035 ac_status=$?
31036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037 (exit $ac_status); }; } &&
31038 { ac_try='test -s conftest.$ac_objext'
31039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31040 (eval $ac_try) 2>&5
31041 ac_status=$?
31042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043 (exit $ac_status); }; }; then
31044 ac_header_compiler=yes
31045 else
31046 echo "$as_me: failed program was:" >&5
31047 sed 's/^/| /' conftest.$ac_ext >&5
31048
31049 ac_header_compiler=no
31050 fi
31051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31053 echo "${ECHO_T}$ac_header_compiler" >&6
31054
31055 # Is the header present?
31056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31058 cat >conftest.$ac_ext <<_ACEOF
31059 /* confdefs.h. */
31060 _ACEOF
31061 cat confdefs.h >>conftest.$ac_ext
31062 cat >>conftest.$ac_ext <<_ACEOF
31063 /* end confdefs.h. */
31064 #include <$ac_header>
31065 _ACEOF
31066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31068 ac_status=$?
31069 grep -v '^ *+' conftest.er1 >conftest.err
31070 rm -f conftest.er1
31071 cat conftest.err >&5
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); } >/dev/null; then
31074 if test -s conftest.err; then
31075 ac_cpp_err=$ac_cxx_preproc_warn_flag
31076 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31077 else
31078 ac_cpp_err=
31079 fi
31080 else
31081 ac_cpp_err=yes
31082 fi
31083 if test -z "$ac_cpp_err"; then
31084 ac_header_preproc=yes
31085 else
31086 echo "$as_me: failed program was:" >&5
31087 sed 's/^/| /' conftest.$ac_ext >&5
31088
31089 ac_header_preproc=no
31090 fi
31091 rm -f conftest.err conftest.$ac_ext
31092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31093 echo "${ECHO_T}$ac_header_preproc" >&6
31094
31095 # So? What about this header?
31096 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31097 yes:no: )
31098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31102 ac_header_preproc=yes
31103 ;;
31104 no:yes:* )
31105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31117 (
31118 cat <<\_ASBOX
31119 ## ----------------------------------- ##
31120 ## Report this to [email protected] ##
31121 ## ----------------------------------- ##
31122 _ASBOX
31123 ) |
31124 sed "s/^/$as_me: WARNING: /" >&2
31125 ;;
31126 esac
31127 echo "$as_me:$LINENO: checking for $ac_header" >&5
31128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31130 echo $ECHO_N "(cached) $ECHO_C" >&6
31131 else
31132 eval "$as_ac_Header=\$ac_header_preproc"
31133 fi
31134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31136
31137 fi
31138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31139 cat >>confdefs.h <<_ACEOF
31140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31141 _ACEOF
31142
31143 fi
31144
31145 done
31146
31147
31148 if test "$ac_cv_header_cmath" != "yes"; then
31149 #if test x"" = x; then
31150 # hdr="#include <math.h>"
31151 #else
31152 # hdr=""
31153 #fi
31154 #AC_CHECK_HEADERS([math.h],[],[],[$hdr])
31155
31156 for ac_header in math.h
31157 do
31158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31160 echo "$as_me:$LINENO: checking for $ac_header" >&5
31161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31163 echo $ECHO_N "(cached) $ECHO_C" >&6
31164 fi
31165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31167 else
31168 # Is the header compilable?
31169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31171 cat >conftest.$ac_ext <<_ACEOF
31172 /* confdefs.h. */
31173 _ACEOF
31174 cat confdefs.h >>conftest.$ac_ext
31175 cat >>conftest.$ac_ext <<_ACEOF
31176 /* end confdefs.h. */
31177 $ac_includes_default
31178 #include <$ac_header>
31179 _ACEOF
31180 rm -f conftest.$ac_objext
31181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31182 (eval $ac_compile) 2>conftest.er1
31183 ac_status=$?
31184 grep -v '^ *+' conftest.er1 >conftest.err
31185 rm -f conftest.er1
31186 cat conftest.err >&5
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); } &&
31189 { ac_try='test -z "$ac_cxx_werror_flag"
31190 || test ! -s conftest.err'
31191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31192 (eval $ac_try) 2>&5
31193 ac_status=$?
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; } &&
31196 { ac_try='test -s conftest.$ac_objext'
31197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31198 (eval $ac_try) 2>&5
31199 ac_status=$?
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); }; }; then
31202 ac_header_compiler=yes
31203 else
31204 echo "$as_me: failed program was:" >&5
31205 sed 's/^/| /' conftest.$ac_ext >&5
31206
31207 ac_header_compiler=no
31208 fi
31209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31211 echo "${ECHO_T}$ac_header_compiler" >&6
31212
31213 # Is the header present?
31214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31216 cat >conftest.$ac_ext <<_ACEOF
31217 /* confdefs.h. */
31218 _ACEOF
31219 cat confdefs.h >>conftest.$ac_ext
31220 cat >>conftest.$ac_ext <<_ACEOF
31221 /* end confdefs.h. */
31222 #include <$ac_header>
31223 _ACEOF
31224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31226 ac_status=$?
31227 grep -v '^ *+' conftest.er1 >conftest.err
31228 rm -f conftest.er1
31229 cat conftest.err >&5
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); } >/dev/null; then
31232 if test -s conftest.err; then
31233 ac_cpp_err=$ac_cxx_preproc_warn_flag
31234 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31235 else
31236 ac_cpp_err=
31237 fi
31238 else
31239 ac_cpp_err=yes
31240 fi
31241 if test -z "$ac_cpp_err"; then
31242 ac_header_preproc=yes
31243 else
31244 echo "$as_me: failed program was:" >&5
31245 sed 's/^/| /' conftest.$ac_ext >&5
31246
31247 ac_header_preproc=no
31248 fi
31249 rm -f conftest.err conftest.$ac_ext
31250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31251 echo "${ECHO_T}$ac_header_preproc" >&6
31252
31253 # So? What about this header?
31254 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31255 yes:no: )
31256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31260 ac_header_preproc=yes
31261 ;;
31262 no:yes:* )
31263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31275 (
31276 cat <<\_ASBOX
31277 ## ----------------------------------- ##
31278 ## Report this to [email protected] ##
31279 ## ----------------------------------- ##
31280 _ASBOX
31281 ) |
31282 sed "s/^/$as_me: WARNING: /" >&2
31283 ;;
31284 esac
31285 echo "$as_me:$LINENO: checking for $ac_header" >&5
31286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31288 echo $ECHO_N "(cached) $ECHO_C" >&6
31289 else
31290 eval "$as_ac_Header=\$ac_header_preproc"
31291 fi
31292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31294
31295 fi
31296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31297 cat >>confdefs.h <<_ACEOF
31298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31299 _ACEOF
31300
31301 fi
31302
31303 done
31304
31305
31306 fi
31307 ac_ext=c
31308 ac_cpp='$CPP $CPPFLAGS'
31309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31312
31313
31314 ac_ext=cc
31315 ac_cpp='$CXXCPP $CPPFLAGS'
31316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31319
31320 #if test x"" = x; then
31321 # hdr="#include <cfloat>"
31322 #else
31323 # hdr=""
31324 #fi
31325 #AC_CHECK_HEADERS([cfloat],[],[],[$hdr])
31326
31327 for ac_header in cfloat
31328 do
31329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31331 echo "$as_me:$LINENO: checking for $ac_header" >&5
31332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31334 echo $ECHO_N "(cached) $ECHO_C" >&6
31335 fi
31336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31338 else
31339 # Is the header compilable?
31340 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31342 cat >conftest.$ac_ext <<_ACEOF
31343 /* confdefs.h. */
31344 _ACEOF
31345 cat confdefs.h >>conftest.$ac_ext
31346 cat >>conftest.$ac_ext <<_ACEOF
31347 /* end confdefs.h. */
31348 $ac_includes_default
31349 #include <$ac_header>
31350 _ACEOF
31351 rm -f conftest.$ac_objext
31352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31353 (eval $ac_compile) 2>conftest.er1
31354 ac_status=$?
31355 grep -v '^ *+' conftest.er1 >conftest.err
31356 rm -f conftest.er1
31357 cat conftest.err >&5
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); } &&
31360 { ac_try='test -z "$ac_cxx_werror_flag"
31361 || test ! -s conftest.err'
31362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31363 (eval $ac_try) 2>&5
31364 ac_status=$?
31365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366 (exit $ac_status); }; } &&
31367 { ac_try='test -s conftest.$ac_objext'
31368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31369 (eval $ac_try) 2>&5
31370 ac_status=$?
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); }; }; then
31373 ac_header_compiler=yes
31374 else
31375 echo "$as_me: failed program was:" >&5
31376 sed 's/^/| /' conftest.$ac_ext >&5
31377
31378 ac_header_compiler=no
31379 fi
31380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31381 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31382 echo "${ECHO_T}$ac_header_compiler" >&6
31383
31384 # Is the header present?
31385 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31387 cat >conftest.$ac_ext <<_ACEOF
31388 /* confdefs.h. */
31389 _ACEOF
31390 cat confdefs.h >>conftest.$ac_ext
31391 cat >>conftest.$ac_ext <<_ACEOF
31392 /* end confdefs.h. */
31393 #include <$ac_header>
31394 _ACEOF
31395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31397 ac_status=$?
31398 grep -v '^ *+' conftest.er1 >conftest.err
31399 rm -f conftest.er1
31400 cat conftest.err >&5
31401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); } >/dev/null; then
31403 if test -s conftest.err; then
31404 ac_cpp_err=$ac_cxx_preproc_warn_flag
31405 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31406 else
31407 ac_cpp_err=
31408 fi
31409 else
31410 ac_cpp_err=yes
31411 fi
31412 if test -z "$ac_cpp_err"; then
31413 ac_header_preproc=yes
31414 else
31415 echo "$as_me: failed program was:" >&5
31416 sed 's/^/| /' conftest.$ac_ext >&5
31417
31418 ac_header_preproc=no
31419 fi
31420 rm -f conftest.err conftest.$ac_ext
31421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31422 echo "${ECHO_T}$ac_header_preproc" >&6
31423
31424 # So? What about this header?
31425 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31426 yes:no: )
31427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31431 ac_header_preproc=yes
31432 ;;
31433 no:yes:* )
31434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31441 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31446 (
31447 cat <<\_ASBOX
31448 ## ----------------------------------- ##
31449 ## Report this to [email protected] ##
31450 ## ----------------------------------- ##
31451 _ASBOX
31452 ) |
31453 sed "s/^/$as_me: WARNING: /" >&2
31454 ;;
31455 esac
31456 echo "$as_me:$LINENO: checking for $ac_header" >&5
31457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31459 echo $ECHO_N "(cached) $ECHO_C" >&6
31460 else
31461 eval "$as_ac_Header=\$ac_header_preproc"
31462 fi
31463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31465
31466 fi
31467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31468 cat >>confdefs.h <<_ACEOF
31469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31470 _ACEOF
31471
31472 fi
31473
31474 done
31475
31476
31477 if test "$ac_cv_header_cfloat" != "yes"; then
31478 #if test x"" = x; then
31479 # hdr="#include <float.h>"
31480 #else
31481 # hdr=""
31482 #fi
31483 #AC_CHECK_HEADERS([float.h],[],[],[$hdr])
31484
31485 for ac_header in float.h
31486 do
31487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31489 echo "$as_me:$LINENO: checking for $ac_header" >&5
31490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31492 echo $ECHO_N "(cached) $ECHO_C" >&6
31493 fi
31494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31496 else
31497 # Is the header compilable?
31498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31500 cat >conftest.$ac_ext <<_ACEOF
31501 /* confdefs.h. */
31502 _ACEOF
31503 cat confdefs.h >>conftest.$ac_ext
31504 cat >>conftest.$ac_ext <<_ACEOF
31505 /* end confdefs.h. */
31506 $ac_includes_default
31507 #include <$ac_header>
31508 _ACEOF
31509 rm -f conftest.$ac_objext
31510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31511 (eval $ac_compile) 2>conftest.er1
31512 ac_status=$?
31513 grep -v '^ *+' conftest.er1 >conftest.err
31514 rm -f conftest.er1
31515 cat conftest.err >&5
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); } &&
31518 { ac_try='test -z "$ac_cxx_werror_flag"
31519 || test ! -s conftest.err'
31520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31521 (eval $ac_try) 2>&5
31522 ac_status=$?
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); }; } &&
31525 { ac_try='test -s conftest.$ac_objext'
31526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31527 (eval $ac_try) 2>&5
31528 ac_status=$?
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); }; }; then
31531 ac_header_compiler=yes
31532 else
31533 echo "$as_me: failed program was:" >&5
31534 sed 's/^/| /' conftest.$ac_ext >&5
31535
31536 ac_header_compiler=no
31537 fi
31538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31540 echo "${ECHO_T}$ac_header_compiler" >&6
31541
31542 # Is the header present?
31543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31545 cat >conftest.$ac_ext <<_ACEOF
31546 /* confdefs.h. */
31547 _ACEOF
31548 cat confdefs.h >>conftest.$ac_ext
31549 cat >>conftest.$ac_ext <<_ACEOF
31550 /* end confdefs.h. */
31551 #include <$ac_header>
31552 _ACEOF
31553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31555 ac_status=$?
31556 grep -v '^ *+' conftest.er1 >conftest.err
31557 rm -f conftest.er1
31558 cat conftest.err >&5
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); } >/dev/null; then
31561 if test -s conftest.err; then
31562 ac_cpp_err=$ac_cxx_preproc_warn_flag
31563 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31564 else
31565 ac_cpp_err=
31566 fi
31567 else
31568 ac_cpp_err=yes
31569 fi
31570 if test -z "$ac_cpp_err"; then
31571 ac_header_preproc=yes
31572 else
31573 echo "$as_me: failed program was:" >&5
31574 sed 's/^/| /' conftest.$ac_ext >&5
31575
31576 ac_header_preproc=no
31577 fi
31578 rm -f conftest.err conftest.$ac_ext
31579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31580 echo "${ECHO_T}$ac_header_preproc" >&6
31581
31582 # So? What about this header?
31583 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31584 yes:no: )
31585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31589 ac_header_preproc=yes
31590 ;;
31591 no:yes:* )
31592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31604 (
31605 cat <<\_ASBOX
31606 ## ----------------------------------- ##
31607 ## Report this to [email protected] ##
31608 ## ----------------------------------- ##
31609 _ASBOX
31610 ) |
31611 sed "s/^/$as_me: WARNING: /" >&2
31612 ;;
31613 esac
31614 echo "$as_me:$LINENO: checking for $ac_header" >&5
31615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31617 echo $ECHO_N "(cached) $ECHO_C" >&6
31618 else
31619 eval "$as_ac_Header=\$ac_header_preproc"
31620 fi
31621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31623
31624 fi
31625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31626 cat >>confdefs.h <<_ACEOF
31627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31628 _ACEOF
31629
31630 fi
31631
31632 done
31633
31634
31635 fi
31636 ac_ext=c
31637 ac_cpp='$CPP $CPPFLAGS'
31638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31641
31642
31643 ac_ext=cc
31644 ac_cpp='$CXXCPP $CPPFLAGS'
31645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31648
31649 #if test x"" = x; then
31650 # hdr="#include <cieeefp>"
31651 #else
31652 # hdr=""
31653 #fi
31654 #AC_CHECK_HEADERS([cieeefp],[],[],[$hdr])
31655
31656 for ac_header in cieeefp
31657 do
31658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31660 echo "$as_me:$LINENO: checking for $ac_header" >&5
31661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31663 echo $ECHO_N "(cached) $ECHO_C" >&6
31664 fi
31665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31667 else
31668 # Is the header compilable?
31669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31671 cat >conftest.$ac_ext <<_ACEOF
31672 /* confdefs.h. */
31673 _ACEOF
31674 cat confdefs.h >>conftest.$ac_ext
31675 cat >>conftest.$ac_ext <<_ACEOF
31676 /* end confdefs.h. */
31677 $ac_includes_default
31678 #include <$ac_header>
31679 _ACEOF
31680 rm -f conftest.$ac_objext
31681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31682 (eval $ac_compile) 2>conftest.er1
31683 ac_status=$?
31684 grep -v '^ *+' conftest.er1 >conftest.err
31685 rm -f conftest.er1
31686 cat conftest.err >&5
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); } &&
31689 { ac_try='test -z "$ac_cxx_werror_flag"
31690 || test ! -s conftest.err'
31691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31692 (eval $ac_try) 2>&5
31693 ac_status=$?
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); }; } &&
31696 { ac_try='test -s conftest.$ac_objext'
31697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31698 (eval $ac_try) 2>&5
31699 ac_status=$?
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); }; }; then
31702 ac_header_compiler=yes
31703 else
31704 echo "$as_me: failed program was:" >&5
31705 sed 's/^/| /' conftest.$ac_ext >&5
31706
31707 ac_header_compiler=no
31708 fi
31709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31711 echo "${ECHO_T}$ac_header_compiler" >&6
31712
31713 # Is the header present?
31714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31716 cat >conftest.$ac_ext <<_ACEOF
31717 /* confdefs.h. */
31718 _ACEOF
31719 cat confdefs.h >>conftest.$ac_ext
31720 cat >>conftest.$ac_ext <<_ACEOF
31721 /* end confdefs.h. */
31722 #include <$ac_header>
31723 _ACEOF
31724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31726 ac_status=$?
31727 grep -v '^ *+' conftest.er1 >conftest.err
31728 rm -f conftest.er1
31729 cat conftest.err >&5
31730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731 (exit $ac_status); } >/dev/null; then
31732 if test -s conftest.err; then
31733 ac_cpp_err=$ac_cxx_preproc_warn_flag
31734 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31735 else
31736 ac_cpp_err=
31737 fi
31738 else
31739 ac_cpp_err=yes
31740 fi
31741 if test -z "$ac_cpp_err"; then
31742 ac_header_preproc=yes
31743 else
31744 echo "$as_me: failed program was:" >&5
31745 sed 's/^/| /' conftest.$ac_ext >&5
31746
31747 ac_header_preproc=no
31748 fi
31749 rm -f conftest.err conftest.$ac_ext
31750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31751 echo "${ECHO_T}$ac_header_preproc" >&6
31752
31753 # So? What about this header?
31754 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31755 yes:no: )
31756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31760 ac_header_preproc=yes
31761 ;;
31762 no:yes:* )
31763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31775 (
31776 cat <<\_ASBOX
31777 ## ----------------------------------- ##
31778 ## Report this to [email protected] ##
31779 ## ----------------------------------- ##
31780 _ASBOX
31781 ) |
31782 sed "s/^/$as_me: WARNING: /" >&2
31783 ;;
31784 esac
31785 echo "$as_me:$LINENO: checking for $ac_header" >&5
31786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31788 echo $ECHO_N "(cached) $ECHO_C" >&6
31789 else
31790 eval "$as_ac_Header=\$ac_header_preproc"
31791 fi
31792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31794
31795 fi
31796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31797 cat >>confdefs.h <<_ACEOF
31798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31799 _ACEOF
31800
31801 fi
31802
31803 done
31804
31805
31806 if test "$ac_cv_header_cieeefp" != "yes"; then
31807 #if test x"" = x; then
31808 # hdr="#include <ieeefp.h>"
31809 #else
31810 # hdr=""
31811 #fi
31812 #AC_CHECK_HEADERS([ieeefp.h],[],[],[$hdr])
31813
31814 for ac_header in ieeefp.h
31815 do
31816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31818 echo "$as_me:$LINENO: checking for $ac_header" >&5
31819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31821 echo $ECHO_N "(cached) $ECHO_C" >&6
31822 fi
31823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31825 else
31826 # Is the header compilable?
31827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31829 cat >conftest.$ac_ext <<_ACEOF
31830 /* confdefs.h. */
31831 _ACEOF
31832 cat confdefs.h >>conftest.$ac_ext
31833 cat >>conftest.$ac_ext <<_ACEOF
31834 /* end confdefs.h. */
31835 $ac_includes_default
31836 #include <$ac_header>
31837 _ACEOF
31838 rm -f conftest.$ac_objext
31839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31840 (eval $ac_compile) 2>conftest.er1
31841 ac_status=$?
31842 grep -v '^ *+' conftest.er1 >conftest.err
31843 rm -f conftest.er1
31844 cat conftest.err >&5
31845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846 (exit $ac_status); } &&
31847 { ac_try='test -z "$ac_cxx_werror_flag"
31848 || test ! -s conftest.err'
31849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31850 (eval $ac_try) 2>&5
31851 ac_status=$?
31852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853 (exit $ac_status); }; } &&
31854 { ac_try='test -s conftest.$ac_objext'
31855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31856 (eval $ac_try) 2>&5
31857 ac_status=$?
31858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859 (exit $ac_status); }; }; then
31860 ac_header_compiler=yes
31861 else
31862 echo "$as_me: failed program was:" >&5
31863 sed 's/^/| /' conftest.$ac_ext >&5
31864
31865 ac_header_compiler=no
31866 fi
31867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31869 echo "${ECHO_T}$ac_header_compiler" >&6
31870
31871 # Is the header present?
31872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31874 cat >conftest.$ac_ext <<_ACEOF
31875 /* confdefs.h. */
31876 _ACEOF
31877 cat confdefs.h >>conftest.$ac_ext
31878 cat >>conftest.$ac_ext <<_ACEOF
31879 /* end confdefs.h. */
31880 #include <$ac_header>
31881 _ACEOF
31882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31884 ac_status=$?
31885 grep -v '^ *+' conftest.er1 >conftest.err
31886 rm -f conftest.er1
31887 cat conftest.err >&5
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); } >/dev/null; then
31890 if test -s conftest.err; then
31891 ac_cpp_err=$ac_cxx_preproc_warn_flag
31892 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31893 else
31894 ac_cpp_err=
31895 fi
31896 else
31897 ac_cpp_err=yes
31898 fi
31899 if test -z "$ac_cpp_err"; then
31900 ac_header_preproc=yes
31901 else
31902 echo "$as_me: failed program was:" >&5
31903 sed 's/^/| /' conftest.$ac_ext >&5
31904
31905 ac_header_preproc=no
31906 fi
31907 rm -f conftest.err conftest.$ac_ext
31908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31909 echo "${ECHO_T}$ac_header_preproc" >&6
31910
31911 # So? What about this header?
31912 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31913 yes:no: )
31914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31918 ac_header_preproc=yes
31919 ;;
31920 no:yes:* )
31921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31933 (
31934 cat <<\_ASBOX
31935 ## ----------------------------------- ##
31936 ## Report this to [email protected] ##
31937 ## ----------------------------------- ##
31938 _ASBOX
31939 ) |
31940 sed "s/^/$as_me: WARNING: /" >&2
31941 ;;
31942 esac
31943 echo "$as_me:$LINENO: checking for $ac_header" >&5
31944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31946 echo $ECHO_N "(cached) $ECHO_C" >&6
31947 else
31948 eval "$as_ac_Header=\$ac_header_preproc"
31949 fi
31950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31952
31953 fi
31954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31955 cat >>confdefs.h <<_ACEOF
31956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31957 _ACEOF
31958
31959 fi
31960
31961 done
31962
31963
31964 fi
31965 ac_ext=c
31966 ac_cpp='$CPP $CPPFLAGS'
31967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31970
31971
31972
31973 ##############################################################################
31974 # VPATH links for example input files #
31975 ##############################################################################
31976
31977 # In case this is a VPATH configuration we need to make sure that the
31978 # input files for the examples are available in the VPATH directory.
31979
31980
31981 echo "$as_me:$LINENO: checking whether this is a VPATH configuration" >&5
31982 echo $ECHO_N "checking whether this is a VPATH configuration... $ECHO_C" >&6
31983 if test `cd $srcdir; pwd` != `pwd`; then
31984 coin_vpath_config=yes;
31985 else
31986 coin_vpath_config=no;
31987 fi
31988 echo "$as_me:$LINENO: result: $coin_vpath_config" >&5
31989 echo "${ECHO_T}$coin_vpath_config" >&6
31990
31991
31992
31993 # Allow for newlines in the parameter
31994 if test $coin_vpath_config = yes; then
31995 cvl_tmp="examples/hello.mps"
31996 for file in $cvl_tmp ; do
31997 coin_vpath_link_files="$coin_vpath_link_files $file"
31998 done
31999 fi
32000
32001
32002
32003 # Allow for newlines in the parameter
32004 if test $coin_vpath_config = yes; then
32005 cvl_tmp="examples/input.130"
32006 for file in $cvl_tmp ; do
32007 coin_vpath_link_files="$coin_vpath_link_files $file"
32008 done
32009 fi
32010
32011
32012
32013 # Allow for newlines in the parameter
32014 if test $coin_vpath_config = yes; then
32015 cvl_tmp="examples/g.tiny"
32016 for file in $cvl_tmp ; do
32017 coin_vpath_link_files="$coin_vpath_link_files $file"
32018 done
32019 fi
32020
32021
32022
32023 # Allow for newlines in the parameter
32024 if test $coin_vpath_config = yes; then
32025 cvl_tmp="examples/gparm.tiny"
32026 for file in $cvl_tmp ; do
32027 coin_vpath_link_files="$coin_vpath_link_files $file"
32028 done
32029 fi
32030
32031
32032 #############################################################################
32033 # Check for doxygen #
32034 #############################################################################
32035
32036
32037
32038 { echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
32039 echo "$as_me: configuring doxygen documentation options" >&6;}
32040
32041 # Check to see if doxygen is available.
32042
32043 # Extract the first word of "doxygen", so it can be a program name with args.
32044 set dummy doxygen; ac_word=$2
32045 echo "$as_me:$LINENO: checking for $ac_word" >&5
32046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32047 if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
32048 echo $ECHO_N "(cached) $ECHO_C" >&6
32049 else
32050 if test -n "$coin_have_doxygen"; then
32051 ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
32052 else
32053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32054 for as_dir in $PATH
32055 do
32056 IFS=$as_save_IFS
32057 test -z "$as_dir" && as_dir=.
32058 for ac_exec_ext in '' $ac_executable_extensions; do
32059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32060 ac_cv_prog_coin_have_doxygen="yes"
32061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32062 break 2
32063 fi
32064 done
32065 done
32066
32067 test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
32068 fi
32069 fi
32070 coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
32071 if test -n "$coin_have_doxygen"; then
32072 echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
32073 echo "${ECHO_T}$coin_have_doxygen" >&6
32074 else
32075 echo "$as_me:$LINENO: result: no" >&5
32076 echo "${ECHO_T}no" >&6
32077 fi
32078
32079 # Extract the first word of "latex", so it can be a program name with args.
32080 set dummy latex; ac_word=$2
32081 echo "$as_me:$LINENO: checking for $ac_word" >&5
32082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32083 if test "${ac_cv_prog_coin_have_latex+set}" = set; then
32084 echo $ECHO_N "(cached) $ECHO_C" >&6
32085 else
32086 if test -n "$coin_have_latex"; then
32087 ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
32088 else
32089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32090 for as_dir in $PATH
32091 do
32092 IFS=$as_save_IFS
32093 test -z "$as_dir" && as_dir=.
32094 for ac_exec_ext in '' $ac_executable_extensions; do
32095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32096 ac_cv_prog_coin_have_latex="yes"
32097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32098 break 2
32099 fi
32100 done
32101 done
32102
32103 test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
32104 fi
32105 fi
32106 coin_have_latex=$ac_cv_prog_coin_have_latex
32107 if test -n "$coin_have_latex"; then
32108 echo "$as_me:$LINENO: result: $coin_have_latex" >&5
32109 echo "${ECHO_T}$coin_have_latex" >&6
32110 else
32111 echo "$as_me:$LINENO: result: no" >&5
32112 echo "${ECHO_T}no" >&6
32113 fi
32114
32115
32116 # Look for the dot tool from the graphviz package, unless the user has
32117 # disabled it.
32118
32119
32120 # Check whether --with-dot or --without-dot was given.
32121 if test "${with_dot+set}" = set; then
32122 withval="$with_dot"
32123
32124 else
32125 withval=yes
32126 fi;
32127 if test x"$withval" = xno ; then
32128 coin_doxy_usedot=NO
32129 echo "$as_me:$LINENO: checking for dot " >&5
32130 echo $ECHO_N "checking for dot ... $ECHO_C" >&6
32131 echo "$as_me:$LINENO: result: disabled" >&5
32132 echo "${ECHO_T}disabled" >&6
32133 else
32134 # Extract the first word of "dot", so it can be a program name with args.
32135 set dummy dot; ac_word=$2
32136 echo "$as_me:$LINENO: checking for $ac_word" >&5
32137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32138 if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
32139 echo $ECHO_N "(cached) $ECHO_C" >&6
32140 else
32141 if test -n "$coin_doxy_usedot"; then
32142 ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
32143 else
32144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32145 for as_dir in $PATH
32146 do
32147 IFS=$as_save_IFS
32148 test -z "$as_dir" && as_dir=.
32149 for ac_exec_ext in '' $ac_executable_extensions; do
32150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32151 ac_cv_prog_coin_doxy_usedot="YES"
32152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32153 break 2
32154 fi
32155 done
32156 done
32157
32158 test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
32159 fi
32160 fi
32161 coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
32162 if test -n "$coin_doxy_usedot"; then
32163 echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
32164 echo "${ECHO_T}$coin_doxy_usedot" >&6
32165 else
32166 echo "$as_me:$LINENO: result: no" >&5
32167 echo "${ECHO_T}no" >&6
32168 fi
32169
32170 fi
32171
32172 # Generate a tag file name and a log file name
32173
32174 coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
32175
32176 coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
32177
32178
32179
32180 if test $coin_have_doxygen = yes; then
32181 COIN_HAS_DOXYGEN_TRUE=
32182 COIN_HAS_DOXYGEN_FALSE='#'
32183 else
32184 COIN_HAS_DOXYGEN_TRUE='#'
32185 COIN_HAS_DOXYGEN_FALSE=
32186 fi
32187
32188
32189
32190 if test $coin_have_latex = yes; then
32191 COIN_HAS_LATEX_TRUE=
32192 COIN_HAS_LATEX_FALSE='#'
32193 else
32194 COIN_HAS_LATEX_TRUE='#'
32195 COIN_HAS_LATEX_FALSE=
32196 fi
32197
32198
32199 # Process the list of project names and massage them into possible doxygen
32200 # doc'n directories. Prefer 1) classic external, source processed using
32201 # a project-specific doxygen.conf, we use the tag file; 2) classic
32202 # external, source processed using package doxygen.conf; 3) installed
32203 # doxydoc. Alternatives 1) and 2) are only possible if the directory will be
32204 # configured, which we can't know unless this is the package base configure,
32205 # since coin_subdirs is only set there. Hence it's sufficient to check for
32206 # membership. If we use a tag file from a classic external, exclude the
32207 # source from doxygen processing when doxygen runs in the base directory.
32208
32209 coin_doxy_tagfiles=
32210 coin_doxy_excludes=
32211 tmp="CoinUtils Osi"
32212 for proj in $tmp ; do
32213 lc_proj=`echo $proj | tr [A-Z] [a-z]`
32214 echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
32215 echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
32216 doxytag=${lc_proj}_doxy.tag
32217 doxyfound=no
32218 # proj will be configured, hence doxydoc present in build tree
32219 doxysrcdir="${srcdir}/../${proj}"
32220 # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
32221 if test -d "$doxysrcdir" ; then
32222 # with a doxydoc directory?
32223 doxydir="$doxysrcdir/doxydoc"
32224 # AC_MSG_NOTICE([Considering $doxydir (base)])
32225 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
32226 if test -d "$doxydir" ; then
32227 # use tag file; don't process source
32228 doxydir="../${proj}/doxydoc"
32229 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
32230 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
32231 echo "${ECHO_T}$doxydir (tag)" >&6
32232 coin_doxy_excludes="$coin_doxy_excludes */${proj}"
32233 else
32234 # will process the source -- nothing further to be done here
32235 echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
32236 echo "${ECHO_T}$doxysrcdir (src)" >&6
32237 fi
32238 doxyfound=yes
32239 fi
32240 # Not built, fall back to installed tag file
32241 if test $doxyfound = no ; then
32242 eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
32243 # AC_MSG_NOTICE([Considering $doxydir (install)])
32244 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
32245 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
32246 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
32247 echo "${ECHO_T}$doxydir (tag)" >&6
32248 fi
32249 done
32250
32251
32252
32253
32254
32255 ##############################################################################
32256 # Finishing up by writing all the output #
32257 ##############################################################################
32258
32259 # Here list all the files that configure should create (except for the
32260 # configuration header file)
32261 ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile src/OsiClp/Makefile test/Makefile clp.pc clp-uninstalled.pc"
32262
32263
32264 if test $coin_has_osi = yes ; then
32265 ac_config_files="$ac_config_files osi-clp.pc:src/OsiClp/osi-clp.pc.in osi-clp-uninstalled.pc:src/OsiClp/osi-clp-uninstalled.pc.in"
32266
32267 fi
32268
32269 ac_config_files="$ac_config_files doxydoc/doxygen.conf"
32270
32271
32272 # Here put the location and name of the configuration header file
32273 ac_config_headers="$ac_config_headers src/config.h src/config_clp.h"
32274
32275
32276 # Finally, we let configure write all the output...
32277
32278
32279
32280
32281 echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
32282 echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
32283 coin_link_input_cmd="$LN_S"
32284 case "$CC" in
32285 clang* | */clang* ) ;;
32286 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
32287 coin_link_input_cmd=cp ;;
32288 esac
32289 echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
32290 echo "${ECHO_T}$coin_link_input_cmd" >&6
32291
32292
32293
32294 if test x$coin_skip_ac_output != xyes; then
32295
32296 # library extension
32297
32298 case "$CC" in
32299 clang* | */clang* )
32300 LIBEXT=a ;;
32301 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
32302 LIBEXT=lib ;;
32303 *) LIBEXT=a ;;
32304 esac
32305
32306 # Define VPATH_DISTCLEANFILES to be everything that needs to be
32307 # cleaned for distclean in a vpath configuration
32308
32309 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
32310
32311 # Take out subdirectories if their configuration concluded that they
32312 # don't need to be compiled
32313 if test x"$coin_ac_skip_subdirs" != x; then
32314 new_subdirs=
32315 for i in $subdirs; do
32316 skipme=no
32317 for j in $coin_ac_skip_subdirs; do
32318 if test $i = $j; then
32319 skipme=yes;
32320 fi
32321 done
32322 if test $skipme = no; then
32323 new_subdirs="$new_subdirs $i"
32324 fi
32325 done
32326 subdirs="$new_subdirs"
32327 fi
32328
32329 # need to come before AC_OUTPUT
32330 if test x$coin_projectdir != xyes; then
32331 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
32332 echo $coin_subdirs > coin_subdirs.txt
32333 else
32334 # substitute for OBJDIR, needed to setup .pc file for uninstalled project
32335 ABSBUILDDIR="`pwd`"
32336
32337 fi
32338
32339 cat >confcache <<\_ACEOF
32340 # This file is a shell script that caches the results of configure
32341 # tests run on this system so they can be shared between configure
32342 # scripts and configure runs, see configure's option --config-cache.
32343 # It is not useful on other systems. If it contains results you don't
32344 # want to keep, you may remove or edit it.
32345 #
32346 # config.status only pays attention to the cache file if you give it
32347 # the --recheck option to rerun configure.
32348 #
32349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32351 # following values.
32352
32353 _ACEOF
32354
32355 # The following way of writing the cache mishandles newlines in values,
32356 # but we know of no workaround that is simple, portable, and efficient.
32357 # So, don't put newlines in cache variables' values.
32358 # Ultrix sh set writes to stderr and can't be redirected directly,
32359 # and sets the high bit in the cache file unless we assign to the vars.
32360 {
32361 (set) 2>&1 |
32362 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32363 *ac_space=\ *)
32364 # `set' does not quote correctly, so add quotes (double-quote
32365 # substitution turns \\\\ into \\, and sed turns \\ into \).
32366 sed -n \
32367 "s/'/'\\\\''/g;
32368 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32369 ;;
32370 *)
32371 # `set' quotes correctly as required by POSIX, so do not add quotes.
32372 sed -n \
32373 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
32374 ;;
32375 esac;
32376 } |
32377 sed '
32378 t clear
32379 : clear
32380 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32381 t end
32382 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32383 : end' >>confcache
32384 if diff $cache_file confcache >/dev/null 2>&1; then :; else
32385 if test -w $cache_file; then
32386 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32387 cat confcache >$cache_file
32388 else
32389 echo "not updating unwritable cache $cache_file"
32390 fi
32391 fi
32392 rm -f confcache
32393
32394 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32395 # Let make expand exec_prefix.
32396 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32397
32398 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32399 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32400 # trailing colons and then remove the whole line if VPATH becomes empty
32401 # (actually we leave an empty line to preserve line numbers).
32402 if test "x$srcdir" = x.; then
32403 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32404 s/:*\$(srcdir):*/:/;
32405 s/:*\${srcdir}:*/:/;
32406 s/:*@srcdir@:*/:/;
32407 s/^\([^=]*=[ ]*\):*/\1/;
32408 s/:*$//;
32409 s/^[^=]*=[ ]*$//;
32410 }'
32411 fi
32412
32413 DEFS=-DHAVE_CONFIG_H
32414
32415 ac_libobjs=
32416 ac_ltlibobjs=
32417 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32418 # 1. Remove the extension, and $U if already installed.
32419 ac_i=`echo "$ac_i" |
32420 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
32421 # 2. Add them.
32422 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
32423 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
32424 done
32425 LIBOBJS=$ac_libobjs
32426
32427 LTLIBOBJS=$ac_ltlibobjs
32428
32429
32430 if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
32431 { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
32432 Usually this means the macro was only invoked conditionally." >&5
32433 echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
32434 Usually this means the macro was only invoked conditionally." >&2;}
32435 { (exit 1); exit 1; }; }
32436 fi
32437 if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
32438 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
32439 Usually this means the macro was only invoked conditionally." >&5
32440 echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
32441 Usually this means the macro was only invoked conditionally." >&2;}
32442 { (exit 1); exit 1; }; }
32443 fi
32444 if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
32445 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
32446 Usually this means the macro was only invoked conditionally." >&5
32447 echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
32448 Usually this means the macro was only invoked conditionally." >&2;}
32449 { (exit 1); exit 1; }; }
32450 fi
32451 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32452 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32453 Usually this means the macro was only invoked conditionally." >&5
32454 echo "$as_me: error: conditional \"AMDEP\" was never defined.
32455 Usually this means the macro was only invoked conditionally." >&2;}
32456 { (exit 1); exit 1; }; }
32457 fi
32458 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32459 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32460 Usually this means the macro was only invoked conditionally." >&5
32461 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32462 Usually this means the macro was only invoked conditionally." >&2;}
32463 { (exit 1); exit 1; }; }
32464 fi
32465 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32466 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32467 Usually this means the macro was only invoked conditionally." >&5
32468 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32469 Usually this means the macro was only invoked conditionally." >&2;}
32470 { (exit 1); exit 1; }; }
32471 fi
32472 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32473 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
32474 Usually this means the macro was only invoked conditionally." >&5
32475 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
32476 Usually this means the macro was only invoked conditionally." >&2;}
32477 { (exit 1); exit 1; }; }
32478 fi
32479 if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
32480 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
32481 Usually this means the macro was only invoked conditionally." >&5
32482 echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
32483 Usually this means the macro was only invoked conditionally." >&2;}
32484 { (exit 1); exit 1; }; }
32485 fi
32486 if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
32487 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
32488 Usually this means the macro was only invoked conditionally." >&5
32489 echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
32490 Usually this means the macro was only invoked conditionally." >&2;}
32491 { (exit 1); exit 1; }; }
32492 fi
32493 if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
32494 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
32495 Usually this means the macro was only invoked conditionally." >&5
32496 echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
32497 Usually this means the macro was only invoked conditionally." >&2;}
32498 { (exit 1); exit 1; }; }
32499 fi
32500 if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
32501 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
32502 Usually this means the macro was only invoked conditionally." >&5
32503 echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
32504 Usually this means the macro was only invoked conditionally." >&2;}
32505 { (exit 1); exit 1; }; }
32506 fi
32507 if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
32508 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
32509 Usually this means the macro was only invoked conditionally." >&5
32510 echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
32511 Usually this means the macro was only invoked conditionally." >&2;}
32512 { (exit 1); exit 1; }; }
32513 fi
32514 if test -z "${COIN_HAS_OSI_TRUE}" && test -z "${COIN_HAS_OSI_FALSE}"; then
32515 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSI\" was never defined.
32516 Usually this means the macro was only invoked conditionally." >&5
32517 echo "$as_me: error: conditional \"COIN_HAS_OSI\" was never defined.
32518 Usually this means the macro was only invoked conditionally." >&2;}
32519 { (exit 1); exit 1; }; }
32520 fi
32521 if test -z "${COIN_HAS_OSI_TRUE}" && test -z "${COIN_HAS_OSI_FALSE}"; then
32522 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSI\" was never defined.
32523 Usually this means the macro was only invoked conditionally." >&5
32524 echo "$as_me: error: conditional \"COIN_HAS_OSI\" was never defined.
32525 Usually this means the macro was only invoked conditionally." >&2;}
32526 { (exit 1); exit 1; }; }
32527 fi
32528 if test -z "${COIN_HAS_OSITESTS_TRUE}" && test -z "${COIN_HAS_OSITESTS_FALSE}"; then
32529 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
32530 Usually this means the macro was only invoked conditionally." >&5
32531 echo "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
32532 Usually this means the macro was only invoked conditionally." >&2;}
32533 { (exit 1); exit 1; }; }
32534 fi
32535 if test -z "${COIN_HAS_OSITESTS_TRUE}" && test -z "${COIN_HAS_OSITESTS_FALSE}"; then
32536 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
32537 Usually this means the macro was only invoked conditionally." >&5
32538 echo "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
32539 Usually this means the macro was only invoked conditionally." >&2;}
32540 { (exit 1); exit 1; }; }
32541 fi
32542 if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
32543 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
32544 Usually this means the macro was only invoked conditionally." >&5
32545 echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
32546 Usually this means the macro was only invoked conditionally." >&2;}
32547 { (exit 1); exit 1; }; }
32548 fi
32549 if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
32550 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
32551 Usually this means the macro was only invoked conditionally." >&5
32552 echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
32553 Usually this means the macro was only invoked conditionally." >&2;}
32554 { (exit 1); exit 1; }; }
32555 fi
32556 if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
32557 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
32558 Usually this means the macro was only invoked conditionally." >&5
32559 echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
32560 Usually this means the macro was only invoked conditionally." >&2;}
32561 { (exit 1); exit 1; }; }
32562 fi
32563 if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
32564 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
32565 Usually this means the macro was only invoked conditionally." >&5
32566 echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
32567 Usually this means the macro was only invoked conditionally." >&2;}
32568 { (exit 1); exit 1; }; }
32569 fi
32570 if test -z "${COIN_HAS_ABC_TRUE}" && test -z "${COIN_HAS_ABC_FALSE}"; then
32571 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ABC\" was never defined.
32572 Usually this means the macro was only invoked conditionally." >&5
32573 echo "$as_me: error: conditional \"COIN_HAS_ABC\" was never defined.
32574 Usually this means the macro was only invoked conditionally." >&2;}
32575 { (exit 1); exit 1; }; }
32576 fi
32577 if test -z "${COIN_HAS_AMD_TRUE}" && test -z "${COIN_HAS_AMD_FALSE}"; then
32578 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_AMD\" was never defined.
32579 Usually this means the macro was only invoked conditionally." >&5
32580 echo "$as_me: error: conditional \"COIN_HAS_AMD\" was never defined.
32581 Usually this means the macro was only invoked conditionally." >&2;}
32582 { (exit 1); exit 1; }; }
32583 fi
32584 if test -z "${COIN_HAS_CHOLMOD_TRUE}" && test -z "${COIN_HAS_CHOLMOD_FALSE}"; then
32585 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CHOLMOD\" was never defined.
32586 Usually this means the macro was only invoked conditionally." >&5
32587 echo "$as_me: error: conditional \"COIN_HAS_CHOLMOD\" was never defined.
32588 Usually this means the macro was only invoked conditionally." >&2;}
32589 { (exit 1); exit 1; }; }
32590 fi
32591 if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
32592 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
32593 Usually this means the macro was only invoked conditionally." >&5
32594 echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
32595 Usually this means the macro was only invoked conditionally." >&2;}
32596 { (exit 1); exit 1; }; }
32597 fi
32598 if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
32599 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
32600 Usually this means the macro was only invoked conditionally." >&5
32601 echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
32602 Usually this means the macro was only invoked conditionally." >&2;}
32603 { (exit 1); exit 1; }; }
32604 fi
32605 if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
32606 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
32607 Usually this means the macro was only invoked conditionally." >&5
32608 echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
32609 Usually this means the macro was only invoked conditionally." >&2;}
32610 { (exit 1); exit 1; }; }
32611 fi
32612 if test -z "${COIN_HAS_MUMPS_TRUE}" && test -z "${COIN_HAS_MUMPS_FALSE}"; then
32613 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MUMPS\" was never defined.
32614 Usually this means the macro was only invoked conditionally." >&5
32615 echo "$as_me: error: conditional \"COIN_HAS_MUMPS\" was never defined.
32616 Usually this means the macro was only invoked conditionally." >&2;}
32617 { (exit 1); exit 1; }; }
32618 fi
32619 if test -z "${COIN_HAS_MUMPS_TRUE}" && test -z "${COIN_HAS_MUMPS_FALSE}"; then
32620 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MUMPS\" was never defined.
32621 Usually this means the macro was only invoked conditionally." >&5
32622 echo "$as_me: error: conditional \"COIN_HAS_MUMPS\" was never defined.
32623 Usually this means the macro was only invoked conditionally." >&2;}
32624 { (exit 1); exit 1; }; }
32625 fi
32626 if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
32627 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
32628 Usually this means the macro was only invoked conditionally." >&5
32629 echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
32630 Usually this means the macro was only invoked conditionally." >&2;}
32631 { (exit 1); exit 1; }; }
32632 fi
32633 if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
32634 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
32635 Usually this means the macro was only invoked conditionally." >&5
32636 echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
32637 Usually this means the macro was only invoked conditionally." >&2;}
32638 { (exit 1); exit 1; }; }
32639 fi
32640 if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
32641 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
32642 Usually this means the macro was only invoked conditionally." >&5
32643 echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
32644 Usually this means the macro was only invoked conditionally." >&2;}
32645 { (exit 1); exit 1; }; }
32646 fi
32647 if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
32648 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
32649 Usually this means the macro was only invoked conditionally." >&5
32650 echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
32651 Usually this means the macro was only invoked conditionally." >&2;}
32652 { (exit 1); exit 1; }; }
32653 fi
32654 if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
32655 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
32656 Usually this means the macro was only invoked conditionally." >&5
32657 echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
32658 Usually this means the macro was only invoked conditionally." >&2;}
32659 { (exit 1); exit 1; }; }
32660 fi
32661 if test -z "${COIN_HAS_WSMP_TRUE}" && test -z "${COIN_HAS_WSMP_FALSE}"; then
32662 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_WSMP\" was never defined.
32663 Usually this means the macro was only invoked conditionally." >&5
32664 echo "$as_me: error: conditional \"COIN_HAS_WSMP\" was never defined.
32665 Usually this means the macro was only invoked conditionally." >&2;}
32666 { (exit 1); exit 1; }; }
32667 fi
32668 if test -z "${COIN_HAS_ASL_TRUE}" && test -z "${COIN_HAS_ASL_FALSE}"; then
32669 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ASL\" was never defined.
32670 Usually this means the macro was only invoked conditionally." >&5
32671 echo "$as_me: error: conditional \"COIN_HAS_ASL\" was never defined.
32672 Usually this means the macro was only invoked conditionally." >&2;}
32673 { (exit 1); exit 1; }; }
32674 fi
32675 if test -z "${COIN_HAS_ASL_TRUE}" && test -z "${COIN_HAS_ASL_FALSE}"; then
32676 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ASL\" was never defined.
32677 Usually this means the macro was only invoked conditionally." >&5
32678 echo "$as_me: error: conditional \"COIN_HAS_ASL\" was never defined.
32679 Usually this means the macro was only invoked conditionally." >&2;}
32680 { (exit 1); exit 1; }; }
32681 fi
32682 if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
32683 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
32684 Usually this means the macro was only invoked conditionally." >&5
32685 echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
32686 Usually this means the macro was only invoked conditionally." >&2;}
32687 { (exit 1); exit 1; }; }
32688 fi
32689 if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
32690 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
32691 Usually this means the macro was only invoked conditionally." >&5
32692 echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
32693 Usually this means the macro was only invoked conditionally." >&2;}
32694 { (exit 1); exit 1; }; }
32695 fi
32696
32697 : ${CONFIG_STATUS=./config.status}
32698 ac_clean_files_save=$ac_clean_files
32699 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32700 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32701 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32702 cat >$CONFIG_STATUS <<_ACEOF
32703 #! $SHELL
32704 # Generated by $as_me.
32705 # Run this file to recreate the current configuration.
32706 # Compiler output produced by configure, useful for debugging
32707 # configure, is in config.log if it exists.
32708
32709 debug=false
32710 ac_cs_recheck=false
32711 ac_cs_silent=false
32712 SHELL=\${CONFIG_SHELL-$SHELL}
32713 _ACEOF
32714
32715 cat >>$CONFIG_STATUS <<\_ACEOF
32716 ## --------------------- ##
32717 ## M4sh Initialization. ##
32718 ## --------------------- ##
32719
32720 # Be Bourne compatible
32721 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32722 emulate sh
32723 NULLCMD=:
32724 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32725 # is contrary to our usage. Disable this feature.
32726 alias -g '${1+"$@"}'='"$@"'
32727 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32728 set -o posix
32729 fi
32730 DUALCASE=1; export DUALCASE # for MKS sh
32731
32732 # Support unset when possible.
32733 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32734 as_unset=unset
32735 else
32736 as_unset=false
32737 fi
32738
32739
32740 # Work around bugs in pre-3.0 UWIN ksh.
32741 $as_unset ENV MAIL MAILPATH
32742 PS1='$ '
32743 PS2='> '
32744 PS4='+ '
32745
32746 # NLS nuisances.
32747 for as_var in \
32748 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32749 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32750 LC_TELEPHONE LC_TIME
32751 do
32752 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32753 eval $as_var=C; export $as_var
32754 else
32755 $as_unset $as_var
32756 fi
32757 done
32758
32759 # Required to use basename.
32760 if expr a : '\(a\)' >/dev/null 2>&1; then
32761 as_expr=expr
32762 else
32763 as_expr=false
32764 fi
32765
32766 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
32767 as_basename=basename
32768 else
32769 as_basename=false
32770 fi
32771
32772
32773 # Name of the executable.
32774 as_me=`$as_basename "$0" ||
32775 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32776 X"$0" : 'X\(//\)$' \| \
32777 X"$0" : 'X\(/\)$' \| \
32778 . : '\(.\)' 2>/dev/null ||
32779 echo X/"$0" |
32780 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
32781 /^X\/\(\/\/\)$/{ s//\1/; q; }
32782 /^X\/\(\/\).*/{ s//\1/; q; }
32783 s/.*/./; q'`
32784
32785
32786 # PATH needs CR, and LINENO needs CR and PATH.
32787 # Avoid depending upon Character Ranges.
32788 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32789 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32790 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32791 as_cr_digits='0123456789'
32792 as_cr_alnum=$as_cr_Letters$as_cr_digits
32793
32794 # The user is always right.
32795 if test "${PATH_SEPARATOR+set}" != set; then
32796 echo "#! /bin/sh" >conf$$.sh
32797 echo "exit 0" >>conf$$.sh
32798 chmod +x conf$$.sh
32799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32800 PATH_SEPARATOR=';'
32801 else
32802 PATH_SEPARATOR=:
32803 fi
32804 rm -f conf$$.sh
32805 fi
32806
32807
32808 as_lineno_1=$LINENO
32809 as_lineno_2=$LINENO
32810 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32811 test "x$as_lineno_1" != "x$as_lineno_2" &&
32812 test "x$as_lineno_3" = "x$as_lineno_2" || {
32813 # Find who we are. Look in the path if we contain no path at all
32814 # relative or not.
32815 case $0 in
32816 *[\\/]* ) as_myself=$0 ;;
32817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32818 for as_dir in $PATH
32819 do
32820 IFS=$as_save_IFS
32821 test -z "$as_dir" && as_dir=.
32822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32823 done
32824
32825 ;;
32826 esac
32827 # We did not find ourselves, most probably we were run as `sh COMMAND'
32828 # in which case we are not to be found in the path.
32829 if test "x$as_myself" = x; then
32830 as_myself=$0
32831 fi
32832 if test ! -f "$as_myself"; then
32833 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
32834 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
32835 { (exit 1); exit 1; }; }
32836 fi
32837 case $CONFIG_SHELL in
32838 '')
32839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32840 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
32841 do
32842 IFS=$as_save_IFS
32843 test -z "$as_dir" && as_dir=.
32844 for as_base in sh bash ksh sh5; do
32845 case $as_dir in
32846 /*)
32847 if ("$as_dir/$as_base" -c '
32848 as_lineno_1=$LINENO
32849 as_lineno_2=$LINENO
32850 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32851 test "x$as_lineno_1" != "x$as_lineno_2" &&
32852 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
32853 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
32854 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
32855 CONFIG_SHELL=$as_dir/$as_base
32856 export CONFIG_SHELL
32857 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
32858 fi;;
32859 esac
32860 done
32861 done
32862 ;;
32863 esac
32864
32865 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32866 # uniformly replaced by the line number. The first 'sed' inserts a
32867 # line-number line before each line; the second 'sed' does the real
32868 # work. The second script uses 'N' to pair each line-number line
32869 # with the numbered line, and appends trailing '-' during
32870 # substitution so that $LINENO is not a special case at line end.
32871 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32872 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
32873 sed '=' <$as_myself |
32874 sed '
32875 N
32876 s,$,-,
32877 : loop
32878 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
32879 t loop
32880 s,-$,,
32881 s,^['$as_cr_digits']*\n,,
32882 ' >$as_me.lineno &&
32883 chmod +x $as_me.lineno ||
32884 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
32885 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
32886 { (exit 1); exit 1; }; }
32887
32888 # Don't try to exec as it changes $[0], causing all sort of problems
32889 # (the dirname of $[0] is not the place where we might find the
32890 # original and so on. Autoconf is especially sensible to this).
32891 . ./$as_me.lineno
32892 # Exit status is that of the last command.
32893 exit
32894 }
32895
32896
32897 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
32898 *c*,-n*) ECHO_N= ECHO_C='
32899 ' ECHO_T=' ' ;;
32900 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
32901 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
32902 esac
32903
32904 if expr a : '\(a\)' >/dev/null 2>&1; then
32905 as_expr=expr
32906 else
32907 as_expr=false
32908 fi
32909
32910 rm -f conf$$ conf$$.exe conf$$.file
32911 echo >conf$$.file
32912 if ln -s conf$$.file conf$$ 2>/dev/null; then
32913 # We could just check for DJGPP; but this test a) works b) is more generic
32914 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
32915 if test -f conf$$.exe; then
32916 # Don't use ln at all; we don't have any links
32917 as_ln_s='cp -p'
32918 else
32919 as_ln_s='ln -s'
32920 fi
32921 elif ln conf$$.file conf$$ 2>/dev/null; then
32922 as_ln_s=ln
32923 else
32924 as_ln_s='cp -p'
32925 fi
32926 rm -f conf$$ conf$$.exe conf$$.file
32927
32928 if mkdir -p . 2>/dev/null; then
32929 as_mkdir_p=:
32930 else
32931 test -d ./-p && rmdir ./-p
32932 as_mkdir_p=false
32933 fi
32934
32935 as_executable_p="test -f"
32936
32937 # Sed expression to map a string onto a valid CPP name.
32938 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32939
32940 # Sed expression to map a string onto a valid variable name.
32941 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32942
32943
32944 # IFS
32945 # We need space, tab and new line, in precisely that order.
32946 as_nl='
32947 '
32948 IFS=" $as_nl"
32949
32950 # CDPATH.
32951 $as_unset CDPATH
32952
32953 exec 6>&1
32954
32955 # Open the log real soon, to keep \$[0] and so on meaningful, and to
32956 # report actual input values of CONFIG_FILES etc. instead of their
32957 # values after options handling. Logging --version etc. is OK.
32958 exec 5>>config.log
32959 {
32960 echo
32961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32962 ## Running $as_me. ##
32963 _ASBOX
32964 } >&5
32965 cat >&5 <<_CSEOF
32966
32967 This file was extended by Clp $as_me 1.17.10, which was
32968 generated by GNU Autoconf 2.59. Invocation command line was
32969
32970 CONFIG_FILES = $CONFIG_FILES
32971 CONFIG_HEADERS = $CONFIG_HEADERS
32972 CONFIG_LINKS = $CONFIG_LINKS
32973 CONFIG_COMMANDS = $CONFIG_COMMANDS
32974 $ $0 $@
32975
32976 _CSEOF
32977 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
32978 echo >&5
32979 _ACEOF
32980
32981 # Files that config.status was made for.
32982 if test -n "$ac_config_files"; then
32983 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
32984 fi
32985
32986 if test -n "$ac_config_headers"; then
32987 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
32988 fi
32989
32990 if test -n "$ac_config_links"; then
32991 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
32992 fi
32993
32994 if test -n "$ac_config_commands"; then
32995 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
32996 fi
32997
32998 cat >>$CONFIG_STATUS <<\_ACEOF
32999
33000 ac_cs_usage="\
33001 \`$as_me' instantiates files from templates according to the
33002 current configuration.
33003
33004 Usage: $0 [OPTIONS] [FILE]...
33005
33006 -h, --help print this help, then exit
33007 -V, --version print version number, then exit
33008 -q, --quiet do not print progress messages
33009 -d, --debug don't remove temporary files
33010 --recheck update $as_me by reconfiguring in the same conditions
33011 --file=FILE[:TEMPLATE]
33012 instantiate the configuration file FILE
33013 --header=FILE[:TEMPLATE]
33014 instantiate the configuration header FILE
33015
33016 Configuration files:
33017 $config_files
33018
33019 Configuration headers:
33020 $config_headers
33021
33022 Configuration commands:
33023 $config_commands
33024
33025 Report bugs to <[email protected]>."
33026 _ACEOF
33027
33028 cat >>$CONFIG_STATUS <<_ACEOF
33029 ac_cs_version="\\
33030 Clp config.status 1.17.10
33031 configured by $0, generated by GNU Autoconf 2.59,
33032 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
33033
33034 Copyright (C) 2003 Free Software Foundation, Inc.
33035 This config.status script is free software; the Free Software Foundation
33036 gives unlimited permission to copy, distribute and modify it."
33037 srcdir=$srcdir
33038 INSTALL="$INSTALL"
33039 _ACEOF
33040
33041 cat >>$CONFIG_STATUS <<\_ACEOF
33042 # If no file are specified by the user, then we need to provide default
33043 # value. By we need to know if files were specified by the user.
33044 ac_need_defaults=:
33045 while test $# != 0
33046 do
33047 case $1 in
33048 --*=*)
33049 ac_option=`expr "x$1" : 'x\([^=]*\)='`
33050 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
33051 ac_shift=:
33052 ;;
33053 -*)
33054 ac_option=$1
33055 ac_optarg=$2
33056 ac_shift=shift
33057 ;;
33058 *) # This is not an option, so the user has probably given explicit
33059 # arguments.
33060 ac_option=$1
33061 ac_need_defaults=false;;
33062 esac
33063
33064 case $ac_option in
33065 # Handling of the options.
33066 _ACEOF
33067 cat >>$CONFIG_STATUS <<\_ACEOF
33068 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33069 ac_cs_recheck=: ;;
33070 --version | --vers* | -V )
33071 echo "$ac_cs_version"; exit 0 ;;
33072 --he | --h)
33073 # Conflict between --help and --header
33074 { { echo "$as_me:$LINENO: error: ambiguous option: $1
33075 Try \`$0 --help' for more information." >&5
33076 echo "$as_me: error: ambiguous option: $1
33077 Try \`$0 --help' for more information." >&2;}
33078 { (exit 1); exit 1; }; };;
33079 --help | --hel | -h )
33080 echo "$ac_cs_usage"; exit 0 ;;
33081 --debug | --d* | -d )
33082 debug=: ;;
33083 --file | --fil | --fi | --f )
33084 $ac_shift
33085 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33086 ac_need_defaults=false;;
33087 --header | --heade | --head | --hea )
33088 $ac_shift
33089 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33090 ac_need_defaults=false;;
33091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33092 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33093 ac_cs_silent=: ;;
33094
33095 # This is an error.
33096 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
33097 Try \`$0 --help' for more information." >&5
33098 echo "$as_me: error: unrecognized option: $1
33099 Try \`$0 --help' for more information." >&2;}
33100 { (exit 1); exit 1; }; } ;;
33101
33102 *) ac_config_targets="$ac_config_targets $1" ;;
33103
33104 esac
33105 shift
33106 done
33107
33108 ac_configure_extra_args=
33109
33110 if $ac_cs_silent; then
33111 exec 6>/dev/null
33112 ac_configure_extra_args="$ac_configure_extra_args --silent"
33113 fi
33114
33115 _ACEOF
33116 cat >>$CONFIG_STATUS <<_ACEOF
33117 if \$ac_cs_recheck; then
33118 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33119 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33120 fi
33121
33122 _ACEOF
33123
33124 cat >>$CONFIG_STATUS <<_ACEOF
33125 #
33126 # INIT-COMMANDS section.
33127 #
33128
33129 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33130
33131 _ACEOF
33132
33133
33134
33135 cat >>$CONFIG_STATUS <<\_ACEOF
33136 for ac_config_target in $ac_config_targets
33137 do
33138 case "$ac_config_target" in
33139 # Handling of arguments.
33140 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33141 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
33142 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33143 "src/OsiClp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiClp/Makefile" ;;
33144 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
33145 "clp.pc" ) CONFIG_FILES="$CONFIG_FILES clp.pc" ;;
33146 "clp-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES clp-uninstalled.pc" ;;
33147 "osi-clp.pc" ) CONFIG_FILES="$CONFIG_FILES osi-clp.pc:src/OsiClp/osi-clp.pc.in" ;;
33148 "osi-clp-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-clp-uninstalled.pc:src/OsiClp/osi-clp-uninstalled.pc.in" ;;
33149 "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
33150 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33151 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
33152 "src/config_clp.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config_clp.h" ;;
33153 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33154 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33155 { (exit 1); exit 1; }; };;
33156 esac
33157 done
33158
33159 # If the user did not use the arguments to specify the items to instantiate,
33160 # then the envvar interface is used. Set only those that are not.
33161 # We use the long form for the default assignment because of an extremely
33162 # bizarre bug on SunOS 4.1.3.
33163 if $ac_need_defaults; then
33164 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33165 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33166 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33167 fi
33168
33169 # Have a temporary directory for convenience. Make it in the build tree
33170 # simply because there is no reason to put it here, and in addition,
33171 # creating and moving files from /tmp can sometimes cause problems.
33172 # Create a temporary directory, and hook for its removal unless debugging.
33173 $debug ||
33174 {
33175 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
33176 trap '{ (exit 1); exit 1; }' 1 2 13 15
33177 }
33178
33179 # Create a (secure) tmp directory for tmp files.
33180
33181 {
33182 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
33183 test -n "$tmp" && test -d "$tmp"
33184 } ||
33185 {
33186 tmp=./confstat$$-$RANDOM
33187 (umask 077 && mkdir $tmp)
33188 } ||
33189 {
33190 echo "$me: cannot create a temporary directory in ." >&2
33191 { (exit 1); exit 1; }
33192 }
33193
33194 _ACEOF
33195
33196 cat >>$CONFIG_STATUS <<_ACEOF
33197
33198 #
33199 # CONFIG_FILES section.
33200 #
33201
33202 # No need to generate the scripts if there are no CONFIG_FILES.
33203 # This happens for instance when ./config.status config.h
33204 if test -n "\$CONFIG_FILES"; then
33205 # Protect against being on the right side of a sed subst in config.status.
33206 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
33207 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
33208 s,@SHELL@,$SHELL,;t t
33209 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
33210 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
33211 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
33212 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
33213 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
33214 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
33215 s,@exec_prefix@,$exec_prefix,;t t
33216 s,@prefix@,$prefix,;t t
33217 s,@program_transform_name@,$program_transform_name,;t t
33218 s,@bindir@,$bindir,;t t
33219 s,@sbindir@,$sbindir,;t t
33220 s,@libexecdir@,$libexecdir,;t t
33221 s,@datadir@,$datadir,;t t
33222 s,@sysconfdir@,$sysconfdir,;t t
33223 s,@sharedstatedir@,$sharedstatedir,;t t
33224 s,@localstatedir@,$localstatedir,;t t
33225 s,@libdir@,$libdir,;t t
33226 s,@includedir@,$includedir,;t t
33227 s,@oldincludedir@,$oldincludedir,;t t
33228 s,@infodir@,$infodir,;t t
33229 s,@mandir@,$mandir,;t t
33230 s,@build_alias@,$build_alias,;t t
33231 s,@host_alias@,$host_alias,;t t
33232 s,@target_alias@,$target_alias,;t t
33233 s,@DEFS@,$DEFS,;t t
33234 s,@ECHO_C@,$ECHO_C,;t t
33235 s,@ECHO_N@,$ECHO_N,;t t
33236 s,@ECHO_T@,$ECHO_T,;t t
33237 s,@LIBS@,$LIBS,;t t
33238 s,@build@,$build,;t t
33239 s,@build_cpu@,$build_cpu,;t t
33240 s,@build_vendor@,$build_vendor,;t t
33241 s,@build_os@,$build_os,;t t
33242 s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
33243 s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
33244 s,@have_svnversion@,$have_svnversion,;t t
33245 s,@CLP_SVN_REV@,$CLP_SVN_REV,;t t
33246 s,@CDEFS@,$CDEFS,;t t
33247 s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
33248 s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
33249 s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
33250 s,@sol_cc_compiler@,$sol_cc_compiler,;t t
33251 s,@CC@,$CC,;t t
33252 s,@CFLAGS@,$CFLAGS,;t t
33253 s,@LDFLAGS@,$LDFLAGS,;t t
33254 s,@CPPFLAGS@,$CPPFLAGS,;t t
33255 s,@ac_ct_CC@,$ac_ct_CC,;t t
33256 s,@EXEEXT@,$EXEEXT,;t t
33257 s,@OBJEXT@,$OBJEXT,;t t
33258 s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
33259 s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
33260 s,@MPICC@,$MPICC,;t t
33261 s,@CXXDEFS@,$CXXDEFS,;t t
33262 s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
33263 s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
33264 s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
33265 s,@CXX@,$CXX,;t t
33266 s,@CXXFLAGS@,$CXXFLAGS,;t t
33267 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
33268 s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
33269 s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
33270 s,@MPICXX@,$MPICXX,;t t
33271 s,@EGREP@,$EGREP,;t t
33272 s,@LN_S@,$LN_S,;t t
33273 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
33274 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
33275 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
33276 s,@CYGPATH_W@,$CYGPATH_W,;t t
33277 s,@PACKAGE@,$PACKAGE,;t t
33278 s,@VERSION@,$VERSION,;t t
33279 s,@ACLOCAL@,$ACLOCAL,;t t
33280 s,@AUTOCONF@,$AUTOCONF,;t t
33281 s,@AUTOMAKE@,$AUTOMAKE,;t t
33282 s,@AUTOHEADER@,$AUTOHEADER,;t t
33283 s,@MAKEINFO@,$MAKEINFO,;t t
33284 s,@install_sh@,$install_sh,;t t
33285 s,@STRIP@,$STRIP,;t t
33286 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
33287 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
33288 s,@mkdir_p@,$mkdir_p,;t t
33289 s,@AWK@,$AWK,;t t
33290 s,@SET_MAKE@,$SET_MAKE,;t t
33291 s,@am__leading_dot@,$am__leading_dot,;t t
33292 s,@AMTAR@,$AMTAR,;t t
33293 s,@am__tar@,$am__tar,;t t
33294 s,@am__untar@,$am__untar,;t t
33295 s,@DEPDIR@,$DEPDIR,;t t
33296 s,@am__include@,$am__include,;t t
33297 s,@am__quote@,$am__quote,;t t
33298 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
33299 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
33300 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
33301 s,@CCDEPMODE@,$CCDEPMODE,;t t
33302 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
33303 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
33304 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
33305 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
33306 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
33307 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
33308 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
33309 s,@MAINT@,$MAINT,;t t
33310 s,@LIBTOOLM4@,$LIBTOOLM4,;t t
33311 s,@have_autoconf@,$have_autoconf,;t t
33312 s,@have_automake@,$have_automake,;t t
33313 s,@have_svn@,$have_svn,;t t
33314 s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
33315 s,@AUX_DIR@,$AUX_DIR,;t t
33316 s,@abs_source_dir@,$abs_source_dir,;t t
33317 s,@abs_lib_dir@,$abs_lib_dir,;t t
33318 s,@abs_include_dir@,$abs_include_dir,;t t
33319 s,@abs_bin_dir@,$abs_bin_dir,;t t
33320 s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
33321 s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
33322 s,@host@,$host,;t t
33323 s,@host_cpu@,$host_cpu,;t t
33324 s,@host_vendor@,$host_vendor,;t t
33325 s,@host_os@,$host_os,;t t
33326 s,@ECHO@,$ECHO,;t t
33327 s,@AR@,$AR,;t t
33328 s,@ac_ct_AR@,$ac_ct_AR,;t t
33329 s,@RANLIB@,$RANLIB,;t t
33330 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
33331 s,@CPP@,$CPP,;t t
33332 s,@CXXCPP@,$CXXCPP,;t t
33333 s,@F77@,$F77,;t t
33334 s,@FFLAGS@,$FFLAGS,;t t
33335 s,@ac_ct_F77@,$ac_ct_F77,;t t
33336 s,@LIBTOOL@,$LIBTOOL,;t t
33337 s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
33338 s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
33339 s,@dos2unix@,$dos2unix,;t t
33340 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
33341 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
33342 s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
33343 s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
33344 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
33345 s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
33346 s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
33347 s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
33348 s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
33349 s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
33350 s,@COINUTILS_LIBS@,$COINUTILS_LIBS,;t t
33351 s,@COINUTILS_CFLAGS@,$COINUTILS_CFLAGS,;t t
33352 s,@COINUTILS_DATA@,$COINUTILS_DATA,;t t
33353 s,@COINUTILS_DEPENDENCIES@,$COINUTILS_DEPENDENCIES,;t t
33354 s,@COINUTILS_LIBS_INSTALLED@,$COINUTILS_LIBS_INSTALLED,;t t
33355 s,@COINUTILS_CFLAGS_INSTALLED@,$COINUTILS_CFLAGS_INSTALLED,;t t
33356 s,@COINUTILS_DATA_INSTALLED@,$COINUTILS_DATA_INSTALLED,;t t
33357 s,@CLPLIB_CFLAGS@,$CLPLIB_CFLAGS,;t t
33358 s,@CLPLIB_LIBS@,$CLPLIB_LIBS,;t t
33359 s,@CLPLIB_PCLIBS@,$CLPLIB_PCLIBS,;t t
33360 s,@CLPLIB_PCREQUIRES@,$CLPLIB_PCREQUIRES,;t t
33361 s,@CLPLIB_DEPENDENCIES@,$CLPLIB_DEPENDENCIES,;t t
33362 s,@CLPLIB_CFLAGS_INSTALLED@,$CLPLIB_CFLAGS_INSTALLED,;t t
33363 s,@CLPLIB_LIBS_INSTALLED@,$CLPLIB_LIBS_INSTALLED,;t t
33364 s,@COIN_HAS_COINUTILS_TRUE@,$COIN_HAS_COINUTILS_TRUE,;t t
33365 s,@COIN_HAS_COINUTILS_FALSE@,$COIN_HAS_COINUTILS_FALSE,;t t
33366 s,@OSI_LIBS@,$OSI_LIBS,;t t
33367 s,@OSI_CFLAGS@,$OSI_CFLAGS,;t t
33368 s,@OSI_DATA@,$OSI_DATA,;t t
33369 s,@OSI_DEPENDENCIES@,$OSI_DEPENDENCIES,;t t
33370 s,@OSI_LIBS_INSTALLED@,$OSI_LIBS_INSTALLED,;t t
33371 s,@OSI_CFLAGS_INSTALLED@,$OSI_CFLAGS_INSTALLED,;t t
33372 s,@OSI_DATA_INSTALLED@,$OSI_DATA_INSTALLED,;t t
33373 s,@OSICLPLIB_CFLAGS@,$OSICLPLIB_CFLAGS,;t t
33374 s,@OSICLPLIB_LIBS@,$OSICLPLIB_LIBS,;t t
33375 s,@OSICLPLIB_PCLIBS@,$OSICLPLIB_PCLIBS,;t t
33376 s,@OSICLPLIB_PCREQUIRES@,$OSICLPLIB_PCREQUIRES,;t t
33377 s,@OSICLPLIB_DEPENDENCIES@,$OSICLPLIB_DEPENDENCIES,;t t
33378 s,@OSICLPLIB_CFLAGS_INSTALLED@,$OSICLPLIB_CFLAGS_INSTALLED,;t t
33379 s,@OSICLPLIB_LIBS_INSTALLED@,$OSICLPLIB_LIBS_INSTALLED,;t t
33380 s,@COIN_HAS_OSI_TRUE@,$COIN_HAS_OSI_TRUE,;t t
33381 s,@COIN_HAS_OSI_FALSE@,$COIN_HAS_OSI_FALSE,;t t
33382 s,@OSITESTS_LIBS@,$OSITESTS_LIBS,;t t
33383 s,@OSITESTS_CFLAGS@,$OSITESTS_CFLAGS,;t t
33384 s,@OSITESTS_DATA@,$OSITESTS_DATA,;t t
33385 s,@OSITESTS_DEPENDENCIES@,$OSITESTS_DEPENDENCIES,;t t
33386 s,@OSITESTS_LIBS_INSTALLED@,$OSITESTS_LIBS_INSTALLED,;t t
33387 s,@OSITESTS_CFLAGS_INSTALLED@,$OSITESTS_CFLAGS_INSTALLED,;t t
33388 s,@OSITESTS_DATA_INSTALLED@,$OSITESTS_DATA_INSTALLED,;t t
33389 s,@COIN_HAS_OSITESTS_TRUE@,$COIN_HAS_OSITESTS_TRUE,;t t
33390 s,@COIN_HAS_OSITESTS_FALSE@,$COIN_HAS_OSITESTS_FALSE,;t t
33391 s,@SAMPLE_LIBS@,$SAMPLE_LIBS,;t t
33392 s,@SAMPLE_CFLAGS@,$SAMPLE_CFLAGS,;t t
33393 s,@SAMPLE_DATA@,$SAMPLE_DATA,;t t
33394 s,@SAMPLE_DEPENDENCIES@,$SAMPLE_DEPENDENCIES,;t t
33395 s,@SAMPLE_LIBS_INSTALLED@,$SAMPLE_LIBS_INSTALLED,;t t
33396 s,@SAMPLE_CFLAGS_INSTALLED@,$SAMPLE_CFLAGS_INSTALLED,;t t
33397 s,@SAMPLE_DATA_INSTALLED@,$SAMPLE_DATA_INSTALLED,;t t
33398 s,@COIN_HAS_SAMPLE_TRUE@,$COIN_HAS_SAMPLE_TRUE,;t t
33399 s,@COIN_HAS_SAMPLE_FALSE@,$COIN_HAS_SAMPLE_FALSE,;t t
33400 s,@NETLIB_LIBS@,$NETLIB_LIBS,;t t
33401 s,@NETLIB_CFLAGS@,$NETLIB_CFLAGS,;t t
33402 s,@NETLIB_DATA@,$NETLIB_DATA,;t t
33403 s,@NETLIB_DEPENDENCIES@,$NETLIB_DEPENDENCIES,;t t
33404 s,@NETLIB_LIBS_INSTALLED@,$NETLIB_LIBS_INSTALLED,;t t
33405 s,@NETLIB_CFLAGS_INSTALLED@,$NETLIB_CFLAGS_INSTALLED,;t t
33406 s,@NETLIB_DATA_INSTALLED@,$NETLIB_DATA_INSTALLED,;t t
33407 s,@COIN_HAS_NETLIB_TRUE@,$COIN_HAS_NETLIB_TRUE,;t t
33408 s,@COIN_HAS_NETLIB_FALSE@,$COIN_HAS_NETLIB_FALSE,;t t
33409 s,@COIN_HAS_ABC_TRUE@,$COIN_HAS_ABC_TRUE,;t t
33410 s,@COIN_HAS_ABC_FALSE@,$COIN_HAS_ABC_FALSE,;t t
33411 s,@AMDINCDIR@,$AMDINCDIR,;t t
33412 s,@AMDLIB@,$AMDLIB,;t t
33413 s,@COIN_HAS_AMD_TRUE@,$COIN_HAS_AMD_TRUE,;t t
33414 s,@COIN_HAS_AMD_FALSE@,$COIN_HAS_AMD_FALSE,;t t
33415 s,@CHOLMODINCDIR@,$CHOLMODINCDIR,;t t
33416 s,@CHOLMODLIB@,$CHOLMODLIB,;t t
33417 s,@COIN_HAS_CHOLMOD_TRUE@,$COIN_HAS_CHOLMOD_TRUE,;t t
33418 s,@COIN_HAS_CHOLMOD_FALSE@,$COIN_HAS_CHOLMOD_FALSE,;t t
33419 s,@GLPK_LIBS@,$GLPK_LIBS,;t t
33420 s,@GLPK_CFLAGS@,$GLPK_CFLAGS,;t t
33421 s,@GLPK_DATA@,$GLPK_DATA,;t t
33422 s,@GLPK_DEPENDENCIES@,$GLPK_DEPENDENCIES,;t t
33423 s,@GLPK_LIBS_INSTALLED@,$GLPK_LIBS_INSTALLED,;t t
33424 s,@GLPK_CFLAGS_INSTALLED@,$GLPK_CFLAGS_INSTALLED,;t t
33425 s,@GLPK_DATA_INSTALLED@,$GLPK_DATA_INSTALLED,;t t
33426 s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t
33427 s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t
33428 s,@MUMPS_LIBS@,$MUMPS_LIBS,;t t
33429 s,@MUMPS_CFLAGS@,$MUMPS_CFLAGS,;t t
33430 s,@MUMPS_DATA@,$MUMPS_DATA,;t t
33431 s,@MUMPS_DEPENDENCIES@,$MUMPS_DEPENDENCIES,;t t
33432 s,@MUMPS_LIBS_INSTALLED@,$MUMPS_LIBS_INSTALLED,;t t
33433 s,@MUMPS_CFLAGS_INSTALLED@,$MUMPS_CFLAGS_INSTALLED,;t t
33434 s,@MUMPS_DATA_INSTALLED@,$MUMPS_DATA_INSTALLED,;t t
33435 s,@COIN_HAS_MUMPS_TRUE@,$COIN_HAS_MUMPS_TRUE,;t t
33436 s,@COIN_HAS_MUMPS_FALSE@,$COIN_HAS_MUMPS_FALSE,;t t
33437 s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
33438 s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
33439 s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
33440 s,@MPIF77@,$MPIF77,;t t
33441 s,@FLIBS@,$FLIBS,;t t
33442 s,@BLAS_LIBS@,$BLAS_LIBS,;t t
33443 s,@BLAS_CFLAGS@,$BLAS_CFLAGS,;t t
33444 s,@BLAS_DATA@,$BLAS_DATA,;t t
33445 s,@BLAS_DEPENDENCIES@,$BLAS_DEPENDENCIES,;t t
33446 s,@BLAS_LIBS_INSTALLED@,$BLAS_LIBS_INSTALLED,;t t
33447 s,@BLAS_CFLAGS_INSTALLED@,$BLAS_CFLAGS_INSTALLED,;t t
33448 s,@BLAS_DATA_INSTALLED@,$BLAS_DATA_INSTALLED,;t t
33449 s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t
33450 s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t
33451 s,@COIN_HAS_WSMP_TRUE@,$COIN_HAS_WSMP_TRUE,;t t
33452 s,@COIN_HAS_WSMP_FALSE@,$COIN_HAS_WSMP_FALSE,;t t
33453 s,@ASL_LIBS@,$ASL_LIBS,;t t
33454 s,@ASL_CFLAGS@,$ASL_CFLAGS,;t t
33455 s,@ASL_DATA@,$ASL_DATA,;t t
33456 s,@ASL_DEPENDENCIES@,$ASL_DEPENDENCIES,;t t
33457 s,@ASL_LIBS_INSTALLED@,$ASL_LIBS_INSTALLED,;t t
33458 s,@ASL_CFLAGS_INSTALLED@,$ASL_CFLAGS_INSTALLED,;t t
33459 s,@ASL_DATA_INSTALLED@,$ASL_DATA_INSTALLED,;t t
33460 s,@COIN_HAS_ASL_TRUE@,$COIN_HAS_ASL_TRUE,;t t
33461 s,@COIN_HAS_ASL_FALSE@,$COIN_HAS_ASL_FALSE,;t t
33462 s,@coin_have_doxygen@,$coin_have_doxygen,;t t
33463 s,@coin_have_latex@,$coin_have_latex,;t t
33464 s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
33465 s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
33466 s,@coin_doxy_logname@,$coin_doxy_logname,;t t
33467 s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
33468 s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
33469 s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
33470 s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
33471 s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
33472 s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
33473 s,@LIBEXT@,$LIBEXT,;t t
33474 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
33475 s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
33476 s,@LIBOBJS@,$LIBOBJS,;t t
33477 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
33478 CEOF
33479
33480 _ACEOF
33481
33482 cat >>$CONFIG_STATUS <<\_ACEOF
33483 # Split the substitutions into bite-sized pieces for seds with
33484 # small command number limits, like on Digital OSF/1 and HP-UX.
33485 ac_max_sed_lines=48
33486 ac_sed_frag=1 # Number of current file.
33487 ac_beg=1 # First line for current file.
33488 ac_end=$ac_max_sed_lines # Line after last line for current file.
33489 ac_more_lines=:
33490 ac_sed_cmds=
33491 while $ac_more_lines; do
33492 if test $ac_beg -gt 1; then
33493 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
33494 else
33495 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
33496 fi
33497 if test ! -s $tmp/subs.frag; then
33498 ac_more_lines=false
33499 else
33500 # The purpose of the label and of the branching condition is to
33501 # speed up the sed processing (if there are no `@' at all, there
33502 # is no need to browse any of the substitutions).
33503 # These are the two extra sed commands mentioned above.
33504 (echo ':t
33505 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
33506 if test -z "$ac_sed_cmds"; then
33507 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
33508 else
33509 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
33510 fi
33511 ac_sed_frag=`expr $ac_sed_frag + 1`
33512 ac_beg=$ac_end
33513 ac_end=`expr $ac_end + $ac_max_sed_lines`
33514 fi
33515 done
33516 if test -z "$ac_sed_cmds"; then
33517 ac_sed_cmds=cat
33518 fi
33519 fi # test -n "$CONFIG_FILES"
33520
33521 _ACEOF
33522 cat >>$CONFIG_STATUS <<\_ACEOF
33523 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
33524 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33525 case $ac_file in
33526 - | *:- | *:-:* ) # input from stdin
33527 cat >$tmp/stdin
33528 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33529 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33530 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33531 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33532 * ) ac_file_in=$ac_file.in ;;
33533 esac
33534
33535 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
33536 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33537 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33538 X"$ac_file" : 'X\(//\)[^/]' \| \
33539 X"$ac_file" : 'X\(//\)$' \| \
33540 X"$ac_file" : 'X\(/\)' \| \
33541 . : '\(.\)' 2>/dev/null ||
33542 echo X"$ac_file" |
33543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33545 /^X\(\/\/\)$/{ s//\1/; q; }
33546 /^X\(\/\).*/{ s//\1/; q; }
33547 s/.*/./; q'`
33548 { if $as_mkdir_p; then
33549 mkdir -p "$ac_dir"
33550 else
33551 as_dir="$ac_dir"
33552 as_dirs=
33553 while test ! -d "$as_dir"; do
33554 as_dirs="$as_dir $as_dirs"
33555 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33557 X"$as_dir" : 'X\(//\)[^/]' \| \
33558 X"$as_dir" : 'X\(//\)$' \| \
33559 X"$as_dir" : 'X\(/\)' \| \
33560 . : '\(.\)' 2>/dev/null ||
33561 echo X"$as_dir" |
33562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33564 /^X\(\/\/\)$/{ s//\1/; q; }
33565 /^X\(\/\).*/{ s//\1/; q; }
33566 s/.*/./; q'`
33567 done
33568 test ! -n "$as_dirs" || mkdir $as_dirs
33569 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33570 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33571 { (exit 1); exit 1; }; }; }
33572
33573 ac_builddir=.
33574
33575 if test "$ac_dir" != .; then
33576 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33577 # A "../" for each directory in $ac_dir_suffix.
33578 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
33579 else
33580 ac_dir_suffix= ac_top_builddir=
33581 fi
33582
33583 case $srcdir in
33584 .) # No --srcdir option. We are building in place.
33585 ac_srcdir=.
33586 if test -z "$ac_top_builddir"; then
33587 ac_top_srcdir=.
33588 else
33589 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
33590 fi ;;
33591 [\\/]* | ?:[\\/]* ) # Absolute path.
33592 ac_srcdir=$srcdir$ac_dir_suffix;
33593 ac_top_srcdir=$srcdir ;;
33594 *) # Relative path.
33595 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
33596 ac_top_srcdir=$ac_top_builddir$srcdir ;;
33597 esac
33598
33599 # Do not use `cd foo && pwd` to compute absolute paths, because
33600 # the directories may not exist.
33601 case `pwd` in
33602 .) ac_abs_builddir="$ac_dir";;
33603 *)
33604 case "$ac_dir" in
33605 .) ac_abs_builddir=`pwd`;;
33606 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
33607 *) ac_abs_builddir=`pwd`/"$ac_dir";;
33608 esac;;
33609 esac
33610 case $ac_abs_builddir in
33611 .) ac_abs_top_builddir=${ac_top_builddir}.;;
33612 *)
33613 case ${ac_top_builddir}. in
33614 .) ac_abs_top_builddir=$ac_abs_builddir;;
33615 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
33616 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
33617 esac;;
33618 esac
33619 case $ac_abs_builddir in
33620 .) ac_abs_srcdir=$ac_srcdir;;
33621 *)
33622 case $ac_srcdir in
33623 .) ac_abs_srcdir=$ac_abs_builddir;;
33624 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
33625 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
33626 esac;;
33627 esac
33628 case $ac_abs_builddir in
33629 .) ac_abs_top_srcdir=$ac_top_srcdir;;
33630 *)
33631 case $ac_top_srcdir in
33632 .) ac_abs_top_srcdir=$ac_abs_builddir;;
33633 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
33634 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
33635 esac;;
33636 esac
33637
33638
33639 case $INSTALL in
33640 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33641 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
33642 esac
33643
33644 if test x"$ac_file" != x-; then
33645 { echo "$as_me:$LINENO: creating $ac_file" >&5
33646 echo "$as_me: creating $ac_file" >&6;}
33647 rm -f "$ac_file"
33648 fi
33649 # Let's still pretend it is `configure' which instantiates (i.e., don't
33650 # use $as_me), people would be surprised to read:
33651 # /* config.h. Generated by config.status. */
33652 if test x"$ac_file" = x-; then
33653 configure_input=
33654 else
33655 configure_input="$ac_file. "
33656 fi
33657 configure_input=$configure_input"Generated from `echo $ac_file_in |
33658 sed 's,.*/,,'` by configure."
33659
33660 # First look for the input files in the build tree, otherwise in the
33661 # src tree.
33662 ac_file_inputs=`IFS=:
33663 for f in $ac_file_in; do
33664 case $f in
33665 -) echo $tmp/stdin ;;
33666 [\\/$]*)
33667 # Absolute (can't be DOS-style, as IFS=:)
33668 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33669 echo "$as_me: error: cannot find input file: $f" >&2;}
33670 { (exit 1); exit 1; }; }
33671 echo "$f";;
33672 *) # Relative
33673 if test -f "$f"; then
33674 # Build tree
33675 echo "$f"
33676 elif test -f "$srcdir/$f"; then
33677 # Source tree
33678 echo "$srcdir/$f"
33679 else
33680 # /dev/null tree
33681 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33682 echo "$as_me: error: cannot find input file: $f" >&2;}
33683 { (exit 1); exit 1; }; }
33684 fi;;
33685 esac
33686 done` || { (exit 1); exit 1; }
33687 _ACEOF
33688 cat >>$CONFIG_STATUS <<_ACEOF
33689 sed "$ac_vpsub
33690 $extrasub
33691 _ACEOF
33692 cat >>$CONFIG_STATUS <<\_ACEOF
33693 :t
33694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33695 s,@configure_input@,$configure_input,;t t
33696 s,@srcdir@,$ac_srcdir,;t t
33697 s,@abs_srcdir@,$ac_abs_srcdir,;t t
33698 s,@top_srcdir@,$ac_top_srcdir,;t t
33699 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
33700 s,@builddir@,$ac_builddir,;t t
33701 s,@abs_builddir@,$ac_abs_builddir,;t t
33702 s,@top_builddir@,$ac_top_builddir,;t t
33703 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
33704 s,@INSTALL@,$ac_INSTALL,;t t
33705 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
33706 rm -f $tmp/stdin
33707 if test x"$ac_file" != x-; then
33708 mv $tmp/out $ac_file
33709 else
33710 cat $tmp/out
33711 rm -f $tmp/out
33712 fi
33713
33714 done
33715 _ACEOF
33716 cat >>$CONFIG_STATUS <<\_ACEOF
33717
33718 #
33719 # CONFIG_HEADER section.
33720 #
33721
33722 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
33723 # NAME is the cpp macro being defined and VALUE is the value it is being given.
33724 #
33725 # ac_d sets the value in "#define NAME VALUE" lines.
33726 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
33727 ac_dB='[ ].*$,\1#\2'
33728 ac_dC=' '
33729 ac_dD=',;t'
33730 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
33731 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
33732 ac_uB='$,\1#\2define\3'
33733 ac_uC=' '
33734 ac_uD=',;t'
33735
33736 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
33737 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33738 case $ac_file in
33739 - | *:- | *:-:* ) # input from stdin
33740 cat >$tmp/stdin
33741 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33742 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33743 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33744 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33745 * ) ac_file_in=$ac_file.in ;;
33746 esac
33747
33748 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
33749 echo "$as_me: creating $ac_file" >&6;}
33750
33751 # First look for the input files in the build tree, otherwise in the
33752 # src tree.
33753 ac_file_inputs=`IFS=:
33754 for f in $ac_file_in; do
33755 case $f in
33756 -) echo $tmp/stdin ;;
33757 [\\/$]*)
33758 # Absolute (can't be DOS-style, as IFS=:)
33759 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33760 echo "$as_me: error: cannot find input file: $f" >&2;}
33761 { (exit 1); exit 1; }; }
33762 # Do quote $f, to prevent DOS paths from being IFS'd.
33763 echo "$f";;
33764 *) # Relative
33765 if test -f "$f"; then
33766 # Build tree
33767 echo "$f"
33768 elif test -f "$srcdir/$f"; then
33769 # Source tree
33770 echo "$srcdir/$f"
33771 else
33772 # /dev/null tree
33773 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33774 echo "$as_me: error: cannot find input file: $f" >&2;}
33775 { (exit 1); exit 1; }; }
33776 fi;;
33777 esac
33778 done` || { (exit 1); exit 1; }
33779 # Remove the trailing spaces.
33780 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
33781
33782 _ACEOF
33783
33784 # Transform confdefs.h into two sed scripts, `conftest.defines' and
33785 # `conftest.undefs', that substitutes the proper values into
33786 # config.h.in to produce config.h. The first handles `#define'
33787 # templates, and the second `#undef' templates.
33788 # And first: Protect against being on the right side of a sed subst in
33789 # config.status. Protect against being in an unquoted here document
33790 # in config.status.
33791 rm -f conftest.defines conftest.undefs
33792 # Using a here document instead of a string reduces the quoting nightmare.
33793 # Putting comments in sed scripts is not portable.
33794 #
33795 # `end' is used to avoid that the second main sed command (meant for
33796 # 0-ary CPP macros) applies to n-ary macro definitions.
33797 # See the Autoconf documentation for `clear'.
33798 cat >confdef2sed.sed <<\_ACEOF
33799 s/[\\&,]/\\&/g
33800 s,[\\$`],\\&,g
33801 t clear
33802 : clear
33803 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
33804 t end
33805 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
33806 : end
33807 _ACEOF
33808 # If some macros were called several times there might be several times
33809 # the same #defines, which is useless. Nevertheless, we may not want to
33810 # sort them, since we want the *last* AC-DEFINE to be honored.
33811 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
33812 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
33813 rm -f confdef2sed.sed
33814
33815 # This sed command replaces #undef with comments. This is necessary, for
33816 # example, in the case of _POSIX_SOURCE, which is predefined and required
33817 # on some systems where configure will not decide to define it.
33818 cat >>conftest.undefs <<\_ACEOF
33819 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
33820 _ACEOF
33821
33822 # Break up conftest.defines because some shells have a limit on the size
33823 # of here documents, and old seds have small limits too (100 cmds).
33824 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
33825 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
33826 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
33827 echo ' :' >>$CONFIG_STATUS
33828 rm -f conftest.tail
33829 while grep . conftest.defines >/dev/null
33830 do
33831 # Write a limited-size here document to $tmp/defines.sed.
33832 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
33833 # Speed up: don't consider the non `#define' lines.
33834 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
33835 # Work around the forget-to-reset-the-flag bug.
33836 echo 't clr' >>$CONFIG_STATUS
33837 echo ': clr' >>$CONFIG_STATUS
33838 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
33839 echo 'CEOF
33840 sed -f $tmp/defines.sed $tmp/in >$tmp/out
33841 rm -f $tmp/in
33842 mv $tmp/out $tmp/in
33843 ' >>$CONFIG_STATUS
33844 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
33845 rm -f conftest.defines
33846 mv conftest.tail conftest.defines
33847 done
33848 rm -f conftest.defines
33849 echo ' fi # grep' >>$CONFIG_STATUS
33850 echo >>$CONFIG_STATUS
33851
33852 # Break up conftest.undefs because some shells have a limit on the size
33853 # of here documents, and old seds have small limits too (100 cmds).
33854 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
33855 rm -f conftest.tail
33856 while grep . conftest.undefs >/dev/null
33857 do
33858 # Write a limited-size here document to $tmp/undefs.sed.
33859 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
33860 # Speed up: don't consider the non `#undef'
33861 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
33862 # Work around the forget-to-reset-the-flag bug.
33863 echo 't clr' >>$CONFIG_STATUS
33864 echo ': clr' >>$CONFIG_STATUS
33865 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
33866 echo 'CEOF
33867 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
33868 rm -f $tmp/in
33869 mv $tmp/out $tmp/in
33870 ' >>$CONFIG_STATUS
33871 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
33872 rm -f conftest.undefs
33873 mv conftest.tail conftest.undefs
33874 done
33875 rm -f conftest.undefs
33876
33877 cat >>$CONFIG_STATUS <<\_ACEOF
33878 # Let's still pretend it is `configure' which instantiates (i.e., don't
33879 # use $as_me), people would be surprised to read:
33880 # /* config.h. Generated by config.status. */
33881 if test x"$ac_file" = x-; then
33882 echo "/* Generated by configure. */" >$tmp/config.h
33883 else
33884 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
33885 fi
33886 cat $tmp/in >>$tmp/config.h
33887 rm -f $tmp/in
33888 if test x"$ac_file" != x-; then
33889 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
33890 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33891 echo "$as_me: $ac_file is unchanged" >&6;}
33892 else
33893 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33894 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33895 X"$ac_file" : 'X\(//\)[^/]' \| \
33896 X"$ac_file" : 'X\(//\)$' \| \
33897 X"$ac_file" : 'X\(/\)' \| \
33898 . : '\(.\)' 2>/dev/null ||
33899 echo X"$ac_file" |
33900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33901 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33902 /^X\(\/\/\)$/{ s//\1/; q; }
33903 /^X\(\/\).*/{ s//\1/; q; }
33904 s/.*/./; q'`
33905 { if $as_mkdir_p; then
33906 mkdir -p "$ac_dir"
33907 else
33908 as_dir="$ac_dir"
33909 as_dirs=
33910 while test ! -d "$as_dir"; do
33911 as_dirs="$as_dir $as_dirs"
33912 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33914 X"$as_dir" : 'X\(//\)[^/]' \| \
33915 X"$as_dir" : 'X\(//\)$' \| \
33916 X"$as_dir" : 'X\(/\)' \| \
33917 . : '\(.\)' 2>/dev/null ||
33918 echo X"$as_dir" |
33919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33920 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33921 /^X\(\/\/\)$/{ s//\1/; q; }
33922 /^X\(\/\).*/{ s//\1/; q; }
33923 s/.*/./; q'`
33924 done
33925 test ! -n "$as_dirs" || mkdir $as_dirs
33926 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33927 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33928 { (exit 1); exit 1; }; }; }
33929
33930 rm -f $ac_file
33931 mv $tmp/config.h $ac_file
33932 fi
33933 else
33934 cat $tmp/config.h
33935 rm -f $tmp/config.h
33936 fi
33937 # Compute $ac_file's index in $config_headers.
33938 _am_stamp_count=1
33939 for _am_header in $config_headers :; do
33940 case $_am_header in
33941 $ac_file | $ac_file:* )
33942 break ;;
33943 * )
33944 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33945 esac
33946 done
33947 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
33948 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33949 X$ac_file : 'X\(//\)[^/]' \| \
33950 X$ac_file : 'X\(//\)$' \| \
33951 X$ac_file : 'X\(/\)' \| \
33952 . : '\(.\)' 2>/dev/null ||
33953 echo X$ac_file |
33954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33956 /^X\(\/\/\)$/{ s//\1/; q; }
33957 /^X\(\/\).*/{ s//\1/; q; }
33958 s/.*/./; q'`/stamp-h$_am_stamp_count
33959 done
33960 _ACEOF
33961 cat >>$CONFIG_STATUS <<\_ACEOF
33962
33963 #
33964 # CONFIG_COMMANDS section.
33965 #
33966 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
33967 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
33968 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
33969 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
33970 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33971 X"$ac_dest" : 'X\(//\)[^/]' \| \
33972 X"$ac_dest" : 'X\(//\)$' \| \
33973 X"$ac_dest" : 'X\(/\)' \| \
33974 . : '\(.\)' 2>/dev/null ||
33975 echo X"$ac_dest" |
33976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33978 /^X\(\/\/\)$/{ s//\1/; q; }
33979 /^X\(\/\).*/{ s//\1/; q; }
33980 s/.*/./; q'`
33981 { if $as_mkdir_p; then
33982 mkdir -p "$ac_dir"
33983 else
33984 as_dir="$ac_dir"
33985 as_dirs=
33986 while test ! -d "$as_dir"; do
33987 as_dirs="$as_dir $as_dirs"
33988 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33989 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33990 X"$as_dir" : 'X\(//\)[^/]' \| \
33991 X"$as_dir" : 'X\(//\)$' \| \
33992 X"$as_dir" : 'X\(/\)' \| \
33993 . : '\(.\)' 2>/dev/null ||
33994 echo X"$as_dir" |
33995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33996 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33997 /^X\(\/\/\)$/{ s//\1/; q; }
33998 /^X\(\/\).*/{ s//\1/; q; }
33999 s/.*/./; q'`
34000 done
34001 test ! -n "$as_dirs" || mkdir $as_dirs
34002 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34003 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
34004 { (exit 1); exit 1; }; }; }
34005
34006 ac_builddir=.
34007
34008 if test "$ac_dir" != .; then
34009 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34010 # A "../" for each directory in $ac_dir_suffix.
34011 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
34012 else
34013 ac_dir_suffix= ac_top_builddir=
34014 fi
34015
34016 case $srcdir in
34017 .) # No --srcdir option. We are building in place.
34018 ac_srcdir=.
34019 if test -z "$ac_top_builddir"; then
34020 ac_top_srcdir=.
34021 else
34022 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
34023 fi ;;
34024 [\\/]* | ?:[\\/]* ) # Absolute path.
34025 ac_srcdir=$srcdir$ac_dir_suffix;
34026 ac_top_srcdir=$srcdir ;;
34027 *) # Relative path.
34028 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
34029 ac_top_srcdir=$ac_top_builddir$srcdir ;;
34030 esac
34031
34032 # Do not use `cd foo && pwd` to compute absolute paths, because
34033 # the directories may not exist.
34034 case `pwd` in
34035 .) ac_abs_builddir="$ac_dir";;
34036 *)
34037 case "$ac_dir" in
34038 .) ac_abs_builddir=`pwd`;;
34039 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
34040 *) ac_abs_builddir=`pwd`/"$ac_dir";;
34041 esac;;
34042 esac
34043 case $ac_abs_builddir in
34044 .) ac_abs_top_builddir=${ac_top_builddir}.;;
34045 *)
34046 case ${ac_top_builddir}. in
34047 .) ac_abs_top_builddir=$ac_abs_builddir;;
34048 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
34049 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
34050 esac;;
34051 esac
34052 case $ac_abs_builddir in
34053 .) ac_abs_srcdir=$ac_srcdir;;
34054 *)
34055 case $ac_srcdir in
34056 .) ac_abs_srcdir=$ac_abs_builddir;;
34057 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
34058 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
34059 esac;;
34060 esac
34061 case $ac_abs_builddir in
34062 .) ac_abs_top_srcdir=$ac_top_srcdir;;
34063 *)
34064 case $ac_top_srcdir in
34065 .) ac_abs_top_srcdir=$ac_abs_builddir;;
34066 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
34067 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
34068 esac;;
34069 esac
34070
34071
34072 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
34073 echo "$as_me: executing $ac_dest commands" >&6;}
34074 case $ac_dest in
34075 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
34076 # Strip MF so we end up with the name of the file.
34077 mf=`echo "$mf" | sed -e 's/:.*$//'`
34078 # Check whether this is an Automake generated Makefile or not.
34079 # We used to match only the files named `Makefile.in', but
34080 # some people rename them; so instead we look at the file content.
34081 # Grep'ing the first line is not enough: some people post-process
34082 # each Makefile.in and add a new line on top of each file to say so.
34083 # So let's grep whole file.
34084 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
34085 dirpart=`(dirname "$mf") 2>/dev/null ||
34086 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34087 X"$mf" : 'X\(//\)[^/]' \| \
34088 X"$mf" : 'X\(//\)$' \| \
34089 X"$mf" : 'X\(/\)' \| \
34090 . : '\(.\)' 2>/dev/null ||
34091 echo X"$mf" |
34092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34094 /^X\(\/\/\)$/{ s//\1/; q; }
34095 /^X\(\/\).*/{ s//\1/; q; }
34096 s/.*/./; q'`
34097 else
34098 continue
34099 fi
34100 # Extract the definition of DEPDIR, am__include, and am__quote
34101 # from the Makefile without running `make'.
34102 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34103 test -z "$DEPDIR" && continue
34104 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34105 test -z "am__include" && continue
34106 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34107 # When using ansi2knr, U may be empty or an underscore; expand it
34108 U=`sed -n 's/^U = //p' < "$mf"`
34109 # Find all dependency output files, they are included files with
34110 # $(DEPDIR) in their names. We invoke sed twice because it is the
34111 # simplest approach to changing $(DEPDIR) to its actual value in the
34112 # expansion.
34113 for file in `sed -n "
34114 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34115 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34116 # Make sure the directory exists.
34117 test -f "$dirpart/$file" && continue
34118 fdir=`(dirname "$file") 2>/dev/null ||
34119 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34120 X"$file" : 'X\(//\)[^/]' \| \
34121 X"$file" : 'X\(//\)$' \| \
34122 X"$file" : 'X\(/\)' \| \
34123 . : '\(.\)' 2>/dev/null ||
34124 echo X"$file" |
34125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34127 /^X\(\/\/\)$/{ s//\1/; q; }
34128 /^X\(\/\).*/{ s//\1/; q; }
34129 s/.*/./; q'`
34130 { if $as_mkdir_p; then
34131 mkdir -p $dirpart/$fdir
34132 else
34133 as_dir=$dirpart/$fdir
34134 as_dirs=
34135 while test ! -d "$as_dir"; do
34136 as_dirs="$as_dir $as_dirs"
34137 as_dir=`(dirname "$as_dir") 2>/dev/null ||
34138 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34139 X"$as_dir" : 'X\(//\)[^/]' \| \
34140 X"$as_dir" : 'X\(//\)$' \| \
34141 X"$as_dir" : 'X\(/\)' \| \
34142 . : '\(.\)' 2>/dev/null ||
34143 echo X"$as_dir" |
34144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34146 /^X\(\/\/\)$/{ s//\1/; q; }
34147 /^X\(\/\).*/{ s//\1/; q; }
34148 s/.*/./; q'`
34149 done
34150 test ! -n "$as_dirs" || mkdir $as_dirs
34151 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
34152 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
34153 { (exit 1); exit 1; }; }; }
34154
34155 # echo "creating $dirpart/$file"
34156 echo '# dummy' > "$dirpart/$file"
34157 done
34158 done
34159 ;;
34160 esac
34161 done
34162 _ACEOF
34163
34164 cat >>$CONFIG_STATUS <<\_ACEOF
34165
34166 { (exit 0); exit 0; }
34167 _ACEOF
34168 chmod +x $CONFIG_STATUS
34169 ac_clean_files=$ac_clean_files_save
34170
34171
34172 # configure is writing to config.log, and then calls config.status.
34173 # config.status does its own redirection, appending to config.log.
34174 # Unfortunately, on DOS this fails, as config.log is still kept open
34175 # by configure, so config.status won't be able to write to it; its
34176 # output is simply discarded. So we exec the FD to /dev/null,
34177 # effectively closing config.log, so it can be properly (re)opened and
34178 # appended to by config.status. When coming back to configure, we
34179 # need to make the FD available again.
34180 if test "$no_create" != yes; then
34181 ac_cs_success=:
34182 ac_config_status_args=
34183 test "$silent" = yes &&
34184 ac_config_status_args="$ac_config_status_args --quiet"
34185 exec 5>/dev/null
34186 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34187 exec 5>>config.log
34188 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34189 # would make configure fail if this is the last instruction.
34190 $ac_cs_success || { (exit 1); exit 1; }
34191 fi
34192
34193
34194 if test x"$coin_vpath_link_files" = x; then : ; else
34195 lnkcmd="$coin_link_input_cmd"
34196 if test "$lnkcmd" = cp; then
34197 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
34198 echo "$as_me: Copying data files for VPATH configuration" >&6;}
34199 else
34200 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
34201 echo "$as_me: Creating VPATH links for data files" >&6;}
34202 fi
34203 for file in $coin_vpath_link_files; do
34204 dir=`(dirname "./$file") 2>/dev/null ||
34205 $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34206 X"./$file" : 'X\(//\)[^/]' \| \
34207 X"./$file" : 'X\(//\)$' \| \
34208 X"./$file" : 'X\(/\)' \| \
34209 . : '\(.\)' 2>/dev/null ||
34210 echo X"./$file" |
34211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34213 /^X\(\/\/\)$/{ s//\1/; q; }
34214 /^X\(\/\).*/{ s//\1/; q; }
34215 s/.*/./; q'`
34216 if test -d $dir; then : ; else
34217 { if $as_mkdir_p; then
34218 mkdir -p $dir
34219 else
34220 as_dir=$dir
34221 as_dirs=
34222 while test ! -d "$as_dir"; do
34223 as_dirs="$as_dir $as_dirs"
34224 as_dir=`(dirname "$as_dir") 2>/dev/null ||
34225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34226 X"$as_dir" : 'X\(//\)[^/]' \| \
34227 X"$as_dir" : 'X\(//\)$' \| \
34228 X"$as_dir" : 'X\(/\)' \| \
34229 . : '\(.\)' 2>/dev/null ||
34230 echo X"$as_dir" |
34231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34233 /^X\(\/\/\)$/{ s//\1/; q; }
34234 /^X\(\/\).*/{ s//\1/; q; }
34235 s/.*/./; q'`
34236 done
34237 test ! -n "$as_dirs" || mkdir $as_dirs
34238 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
34239 echo "$as_me: error: cannot create directory $dir" >&2;}
34240 { (exit 1); exit 1; }; }; }
34241
34242 fi
34243 rm -f $file
34244 $lnkcmd $abs_source_dir/$file $file
34245 done
34246 fi
34247
34248 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://github.com/coin-or-tools/BuildTools/wiki/user-troubleshooting" >&5
34249 echo "$as_me: In case of trouble, first consult the troubleshooting page at https://github.com/coin-or-tools/BuildTools/wiki/user-troubleshooting" >&6;}
34250 if test x$coin_projectdir = xyes; then
34251 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
34252 echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
34253 else
34254 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
34255 echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
34256 fi
34257 else
34258 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
34259 echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
34260 fi
34261
34262