Debian Codegraph @

Bonmin/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Bonmin 1.8.9.
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, 2008 International Business Machines and others.
13 # All Rights Reserved.
14 # This file is part of the open source package BONMIN 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='Bonmin'
431 PACKAGE_TARNAME='bonmin'
432 PACKAGE_VERSION='1.8.9'
433 PACKAGE_STRING='Bonmin 1.8.9'
434 PACKAGE_BUGREPORT='[email protected]'
435
436 ac_unique_file="src/CbcBonmin/BonCbc.hpp"
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 BONMIN_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 COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED BONMINLIB_CFLAGS BONMINLIB_LIBS BONMINLIB_PCLIBS BONMINLIB_PCREQUIRES BONMINLIB_DEPENDENCIES BONMINLIB_CFLAGS_INSTALLED BONMINLIB_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED BONMINAMPLINTERFACELIB_CFLAGS BONMINAMPLINTERFACELIB_LIBS BONMINAMPLINTERFACELIB_PCLIBS BONMINAMPLINTERFACELIB_PCREQUIRES BONMINAMPLINTERFACELIB_DEPENDENCIES BONMINAMPLINTERFACELIB_CFLAGS_INSTALLED BONMINAMPLINTERFACELIB_LIBS_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE OSICPX_LIBS OSICPX_CFLAGS OSICPX_DATA OSICPX_DEPENDENCIES OSICPX_LIBS_INSTALLED OSICPX_CFLAGS_INSTALLED OSICPX_DATA_INSTALLED COIN_HAS_OSICPX_TRUE COIN_HAS_OSICPX_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE FILTERSQP_LIBS FILTERSQP_CFLAGS FILTERSQP_DATA FILTERSQP_DEPENDENCIES FILTERSQP_LIBS_INSTALLED FILTERSQP_CFLAGS_INSTALLED FILTERSQP_DATA_INSTALLED COIN_HAS_FILTERSQP_TRUE COIN_HAS_FILTERSQP_FALSE ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS MPIF77 FLIBS ASTYLE ASTYLEFLAGS 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 Bonmin 1.8.9 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 Bonmin 1.8.9:";;
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-bonmin compile project Bonmin 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 --disable-cplex-libcheck
1125 skip the link check at configuration time
1126
1127 Optional Packages:
1128 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1129 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1130 --with-bonmin-verbosity specify the debug verbosity level for project Bonmin
1131 --with-bonmin-checklevel
1132 specify the sanity check level for project Bonmin
1133 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1134 --with-pic try to use only PIC/non-PIC objects [default=use
1135 both]
1136 --with-tags[=TAGS]
1137 include additional configurations [automatic]
1138 --with-coin-instdir prefix of installation directory for precompiled
1139 COIN packages
1140
1141 --with-coindepend-lib linker flags for using package CoinDepend
1142 --with-coindepend-incdir
1143 directory with header files for using package
1144 CoinDepend
1145 --with-coindepend-datadir
1146 directory with data files for using package
1147 CoinDepend
1148 --with-asl-lib linker flags for using package ASL
1149 --with-asl-incdir directory with header files for using package ASL
1150 --with-asl-datadir directory with data files for using package ASL
1151 --with-osicpx-lib linker flags for using package OsiCpx
1152 --with-osicpx-incdir directory with header files for using package OsiCpx
1153 --with-osicpx-datadir directory with data files for using package OsiCpx
1154 --with-cplex-incdir specify the header file directory for library Cplex
1155 --with-cplex-lib specify the flags used to link with the library Cplex
1156 --with-filtersqp specify library for FilterSQP (or BUILD for
1157 compilation)
1158 --with-filtersqp-lib linker flags for using package FilterSQP
1159 --with-filtersqp-incdir directory with header files for using package
1160 FilterSQP
1161 --with-filtersqp-datadir
1162 directory with data files for using package
1163 FilterSQP
1164 --with-dot use dot (from graphviz) when creating documentation
1165 with doxygen if available; --without-dot to disable
1166
1167 Some influential environment variables:
1168 CDEFS Additional -D flags to be used when compiling C code.
1169 ADD_CFLAGS Additional C compiler options
1170 DBG_CFLAGS Debug C compiler options
1171 OPT_CFLAGS Optimize C compiler options
1172 CC C compiler command
1173 CFLAGS C compiler flags
1174 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1175 nonstandard directory <lib dir>
1176 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1177 headers in a nonstandard directory <include dir>
1178 MPICC C MPI Compiler
1179 CXXDEFS Additional -D flags to be used when compiling C++ code.
1180 ADD_CXXFLAGS
1181 Additional C++ compiler options
1182 DBG_CXXFLAGS
1183 Debug C++ compiler options
1184 OPT_CXXFLAGS
1185 Optimize C++ compiler options
1186 CXX C++ compiler command
1187 CXXFLAGS C++ compiler flags
1188 MPICXX C++ MPI Compiler
1189 CPP C preprocessor
1190 CXXCPP C++ preprocessor
1191 F77 Fortran 77 compiler command
1192 FFLAGS Fortran 77 compiler flags
1193 LT_LDFLAGS Flags passed to libtool when building libraries or executables
1194 that are installed
1195 PKG_CONFIG path to pkg-config utility
1196 ADD_FFLAGS Additional Fortran compiler options
1197 DBG_FFLAGS Debug Fortran compiler options
1198 OPT_FFLAGS Optimize Fortran compiler options
1199 MPIF77 Fortran MPI Compiler
1200
1201 Use these variables to override the choices made by `configure' or to help
1202 it to find libraries and programs with nonstandard names/locations.
1203
1204 Report bugs to <[email protected]>.
1205 _ACEOF
1206 fi
1207
1208 if test "$ac_init_help" = "recursive"; then
1209 # If there are subdirs, report their specific --help.
1210 ac_popdir=`pwd`
1211 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1212 test -d $ac_dir || continue
1213 ac_builddir=.
1214
1215 if test "$ac_dir" != .; then
1216 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1217 # A "../" for each directory in $ac_dir_suffix.
1218 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1219 else
1220 ac_dir_suffix= ac_top_builddir=
1221 fi
1222
1223 case $srcdir in
1224 .) # No --srcdir option. We are building in place.
1225 ac_srcdir=.
1226 if test -z "$ac_top_builddir"; then
1227 ac_top_srcdir=.
1228 else
1229 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1230 fi ;;
1231 [\\/]* | ?:[\\/]* ) # Absolute path.
1232 ac_srcdir=$srcdir$ac_dir_suffix;
1233 ac_top_srcdir=$srcdir ;;
1234 *) # Relative path.
1235 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1236 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1237 esac
1238
1239 # Do not use `cd foo && pwd` to compute absolute paths, because
1240 # the directories may not exist.
1241 case `pwd` in
1242 .) ac_abs_builddir="$ac_dir";;
1243 *)
1244 case "$ac_dir" in
1245 .) ac_abs_builddir=`pwd`;;
1246 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1247 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1248 esac;;
1249 esac
1250 case $ac_abs_builddir in
1251 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1252 *)
1253 case ${ac_top_builddir}. in
1254 .) ac_abs_top_builddir=$ac_abs_builddir;;
1255 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1256 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1257 esac;;
1258 esac
1259 case $ac_abs_builddir in
1260 .) ac_abs_srcdir=$ac_srcdir;;
1261 *)
1262 case $ac_srcdir in
1263 .) ac_abs_srcdir=$ac_abs_builddir;;
1264 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1265 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1266 esac;;
1267 esac
1268 case $ac_abs_builddir in
1269 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1270 *)
1271 case $ac_top_srcdir in
1272 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1273 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1274 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1275 esac;;
1276 esac
1277
1278 cd $ac_dir
1279 # Check for guested configure; otherwise get Cygnus style configure.
1280 if test -f $ac_srcdir/configure.gnu; then
1281 echo
1282 $SHELL $ac_srcdir/configure.gnu --help=recursive
1283 elif test -f $ac_srcdir/configure; then
1284 echo
1285 $SHELL $ac_srcdir/configure --help=recursive
1286 elif test -f $ac_srcdir/configure.ac ||
1287 test -f $ac_srcdir/configure.in; then
1288 echo
1289 $ac_configure --help
1290 else
1291 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1292 fi
1293 cd $ac_popdir
1294 done
1295 fi
1296
1297 test -n "$ac_init_help" && exit 0
1298 if $ac_init_version; then
1299 cat <<\_ACEOF
1300 Bonmin configure 1.8.9
1301 generated by GNU Autoconf 2.59
1302
1303 Copyright (C) 2003 Free Software Foundation, Inc.
1304 This configure script is free software; the Free Software Foundation
1305 gives unlimited permission to copy, distribute and modify it.
1306
1307
1308 Copyright 2006, 2008 International Business Machines and others.
1309 All Rights Reserved.
1310 This file is part of the open source package BONMIN which is distributed
1311 under the Eclipse Public License.
1312 _ACEOF
1313 exit 0
1314 fi
1315 exec 5>config.log
1316 cat >&5 <<_ACEOF
1317 This file contains any messages produced by compilers while
1318 running configure, to aid debugging if configure makes a mistake.
1319
1320 It was created by Bonmin $as_me 1.8.9, which was
1321 generated by GNU Autoconf 2.59. Invocation command line was
1322
1323 $ $0 $@
1324
1325 _ACEOF
1326 {
1327 cat <<_ASUNAME
1328 ## --------- ##
1329 ## Platform. ##
1330 ## --------- ##
1331
1332 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1333 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1334 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1335 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1336 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1337
1338 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1339 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1340
1341 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1342 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1343 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1344 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1345 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1346 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1347 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1348
1349 _ASUNAME
1350
1351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1352 for as_dir in $PATH
1353 do
1354 IFS=$as_save_IFS
1355 test -z "$as_dir" && as_dir=.
1356 echo "PATH: $as_dir"
1357 done
1358
1359 } >&5
1360
1361 cat >&5 <<_ACEOF
1362
1363
1364 ## ----------- ##
1365 ## Core tests. ##
1366 ## ----------- ##
1367
1368 _ACEOF
1369
1370
1371 # Keep a trace of the command line.
1372 # Strip out --no-create and --no-recursion so they do not pile up.
1373 # Strip out --silent because we don't want to record it for future runs.
1374 # Also quote any args containing shell meta-characters.
1375 # Make two passes to allow for proper duplicate-argument suppression.
1376 ac_configure_args=
1377 ac_configure_args0=
1378 ac_configure_args1=
1379 ac_sep=
1380 ac_must_keep_next=false
1381 for ac_pass in 1 2
1382 do
1383 for ac_arg
1384 do
1385 case $ac_arg in
1386 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1388 | -silent | --silent | --silen | --sile | --sil)
1389 continue ;;
1390 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1391 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1392 esac
1393 case $ac_pass in
1394 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1395 2)
1396 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1397 if test $ac_must_keep_next = true; then
1398 ac_must_keep_next=false # Got value, back to normal.
1399 else
1400 case $ac_arg in
1401 *=* | --config-cache | -C | -disable-* | --disable-* \
1402 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1403 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1404 | -with-* | --with-* | -without-* | --without-* | --x)
1405 case "$ac_configure_args0 " in
1406 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1407 esac
1408 ;;
1409 -* ) ac_must_keep_next=true ;;
1410 esac
1411 fi
1412 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1413 # Get rid of the leading space.
1414 ac_sep=" "
1415 ;;
1416 esac
1417 done
1418 done
1419 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1420 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1421
1422 # When interrupted or exit'd, cleanup temporary files, and complete
1423 # config.log. We remove comments because anyway the quotes in there
1424 # would cause problems or look ugly.
1425 # WARNING: Be sure not to use single quotes in there, as some shells,
1426 # such as our DU 5.0 friend, will then `close' the trap.
1427 trap 'exit_status=$?
1428 # Save into config.log some information that might help in debugging.
1429 {
1430 echo
1431
1432 cat <<\_ASBOX
1433 ## ---------------- ##
1434 ## Cache variables. ##
1435 ## ---------------- ##
1436 _ASBOX
1437 echo
1438 # The following way of writing the cache mishandles newlines in values,
1439 {
1440 (set) 2>&1 |
1441 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1442 *ac_space=\ *)
1443 sed -n \
1444 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1446 ;;
1447 *)
1448 sed -n \
1449 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1450 ;;
1451 esac;
1452 }
1453 echo
1454
1455 cat <<\_ASBOX
1456 ## ----------------- ##
1457 ## Output variables. ##
1458 ## ----------------- ##
1459 _ASBOX
1460 echo
1461 for ac_var in $ac_subst_vars
1462 do
1463 eval ac_val=$`echo $ac_var`
1464 echo "$ac_var='"'"'$ac_val'"'"'"
1465 done | sort
1466 echo
1467
1468 if test -n "$ac_subst_files"; then
1469 cat <<\_ASBOX
1470 ## ------------- ##
1471 ## Output files. ##
1472 ## ------------- ##
1473 _ASBOX
1474 echo
1475 for ac_var in $ac_subst_files
1476 do
1477 eval ac_val=$`echo $ac_var`
1478 echo "$ac_var='"'"'$ac_val'"'"'"
1479 done | sort
1480 echo
1481 fi
1482
1483 if test -s confdefs.h; then
1484 cat <<\_ASBOX
1485 ## ----------- ##
1486 ## confdefs.h. ##
1487 ## ----------- ##
1488 _ASBOX
1489 echo
1490 sed "/^$/d" confdefs.h | sort
1491 echo
1492 fi
1493 test "$ac_signal" != 0 &&
1494 echo "$as_me: caught signal $ac_signal"
1495 echo "$as_me: exit $exit_status"
1496 } >&5
1497 rm -f core *.core &&
1498 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1499 exit $exit_status
1500 ' 0
1501 for ac_signal in 1 2 13 15; do
1502 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1503 done
1504 ac_signal=0
1505
1506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1507 rm -rf conftest* confdefs.h
1508 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1509 echo >confdefs.h
1510
1511 # Predefined preprocessor variables.
1512
1513 cat >>confdefs.h <<_ACEOF
1514 #define PACKAGE_NAME "$PACKAGE_NAME"
1515 _ACEOF
1516
1517
1518 cat >>confdefs.h <<_ACEOF
1519 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1520 _ACEOF
1521
1522
1523 cat >>confdefs.h <<_ACEOF
1524 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1525 _ACEOF
1526
1527
1528 cat >>confdefs.h <<_ACEOF
1529 #define PACKAGE_STRING "$PACKAGE_STRING"
1530 _ACEOF
1531
1532
1533 cat >>confdefs.h <<_ACEOF
1534 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1535 _ACEOF
1536
1537
1538 # Let the site file select an alternate cache file if it wants to.
1539 # Prefer explicitly selected file to automatically selected ones.
1540 if test -z "$CONFIG_SITE"; then
1541 if test "x$prefix" != xNONE; then
1542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1543 else
1544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1545 fi
1546 fi
1547 for ac_site_file in $CONFIG_SITE; do
1548 if test -r "$ac_site_file"; then
1549 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1550 echo "$as_me: loading site script $ac_site_file" >&6;}
1551 sed 's/^/| /' "$ac_site_file" >&5
1552 . "$ac_site_file"
1553 fi
1554 done
1555
1556 if test -r "$cache_file"; then
1557 # Some versions of bash will fail to source /dev/null (special
1558 # files actually), so we avoid doing that.
1559 if test -f "$cache_file"; then
1560 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1561 echo "$as_me: loading cache $cache_file" >&6;}
1562 case $cache_file in
1563 [\\/]* | ?:[\\/]* ) . $cache_file;;
1564 *) . ./$cache_file;;
1565 esac
1566 fi
1567 else
1568 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1569 echo "$as_me: creating cache $cache_file" >&6;}
1570 >$cache_file
1571 fi
1572
1573 # Check that the precious variables saved in the cache have kept the same
1574 # value.
1575 ac_cache_corrupted=false
1576 for ac_var in `(set) 2>&1 |
1577 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1578 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1579 eval ac_new_set=\$ac_env_${ac_var}_set
1580 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1581 eval ac_new_val="\$ac_env_${ac_var}_value"
1582 case $ac_old_set,$ac_new_set in
1583 set,)
1584 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1585 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1586 ac_cache_corrupted=: ;;
1587 ,set)
1588 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1589 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1590 ac_cache_corrupted=: ;;
1591 ,);;
1592 *)
1593 if test "x$ac_old_val" != "x$ac_new_val"; then
1594 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1595 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1596 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1597 echo "$as_me: former value: $ac_old_val" >&2;}
1598 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1599 echo "$as_me: current value: $ac_new_val" >&2;}
1600 ac_cache_corrupted=:
1601 fi;;
1602 esac
1603 # Pass precious variables to config.status.
1604 if test "$ac_new_set" = set; then
1605 case $ac_new_val in
1606 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1607 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1608 *) ac_arg=$ac_var=$ac_new_val ;;
1609 esac
1610 case " $ac_configure_args " in
1611 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1612 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1613 esac
1614 fi
1615 done
1616 if $ac_cache_corrupted; then
1617 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1618 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1619 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1620 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1621 { (exit 1); exit 1; }; }
1622 fi
1623
1624 ac_ext=c
1625 ac_cpp='$CPP $CPPFLAGS'
1626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659 # List one file in the package so that the configure script can test
1660 # whether the package is actually there
1661
1662
1663 # Where should everything be installed by default? Here, we want it
1664 # to be installed directly in 'bin', 'lib', 'include' subdirectories
1665 # of the directory where configure is run. The default would be
1666 # /usr/local.
1667
1668
1669 #############################################################################
1670 # Standard build tool stuff #
1671 #############################################################################
1672
1673 # Get the system type
1674 ac_aux_dir=
1675 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1676 if test -f $ac_dir/install-sh; then
1677 ac_aux_dir=$ac_dir
1678 ac_install_sh="$ac_aux_dir/install-sh -c"
1679 break
1680 elif test -f $ac_dir/install.sh; then
1681 ac_aux_dir=$ac_dir
1682 ac_install_sh="$ac_aux_dir/install.sh -c"
1683 break
1684 elif test -f $ac_dir/shtool; then
1685 ac_aux_dir=$ac_dir
1686 ac_install_sh="$ac_aux_dir/shtool install -c"
1687 break
1688 fi
1689 done
1690 if test -z "$ac_aux_dir"; then
1691 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1692 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1693 { (exit 1); exit 1; }; }
1694 fi
1695 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1696 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1697 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1698
1699 # Make sure we can run config.sub.
1700 $ac_config_sub sun4 >/dev/null 2>&1 ||
1701 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1702 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1703 { (exit 1); exit 1; }; }
1704
1705 echo "$as_me:$LINENO: checking build system type" >&5
1706 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1707 if test "${ac_cv_build+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 else
1710 ac_cv_build_alias=$build_alias
1711 test -z "$ac_cv_build_alias" &&
1712 ac_cv_build_alias=`$ac_config_guess`
1713 test -z "$ac_cv_build_alias" &&
1714 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1715 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1716 { (exit 1); exit 1; }; }
1717 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1718 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1719 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1720 { (exit 1); exit 1; }; }
1721
1722 fi
1723 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1724 echo "${ECHO_T}$ac_cv_build" >&6
1725 build=$ac_cv_build
1726 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1727 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1728 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1729
1730
1731
1732 # If this project depends on external projects, the Externals file in
1733 # the source root directory contains definition of where to find those
1734 # externals. The following macro ensures that those externals are
1735 # retrieved by svn if they are not there yet.
1736
1737 # As backup, we make sure we don't loose an FLIBS if it has been set
1738 # by the user
1739 save_FLIBS="$FLIBS"
1740
1741 # A useful makefile conditional that is always false
1742
1743
1744 if false; then
1745 ALWAYS_FALSE_TRUE=
1746 ALWAYS_FALSE_FALSE='#'
1747 else
1748 ALWAYS_FALSE_TRUE='#'
1749 ALWAYS_FALSE_FALSE=
1750 fi
1751
1752
1753 # We set the following variable so that we know later in AC_COIN_FINALIZE
1754 # that we are in a project main directory
1755 coin_projectdir=yes
1756
1757 # Set the project's version numbers
1758
1759
1760 cat >>confdefs.h <<_ACEOF
1761 #define BONMIN_VERSION "$PACKAGE_VERSION"
1762 _ACEOF
1763
1764
1765 coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1766 coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1767 coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1768 if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1769 if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1770 if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define BONMIN_VERSION_MAJOR $coin_majorver
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define BONMIN_VERSION_MINOR $coin_minorver
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define BONMIN_VERSION_RELEASE $coin_releasever
1784 _ACEOF
1785
1786
1787 # We use the following variable to have a string with the upper case
1788 # version of the project name
1789 COIN_PRJCT=BONMIN
1790
1791 # Set the project's SVN revision number. The complicated sed expression
1792 # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1793 # as a single number.
1794 # Extract the first word of "svnversion", so it can be a program name with args.
1795 set dummy svnversion; ac_word=$2
1796 echo "$as_me:$LINENO: checking for $ac_word" >&5
1797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1798 if test "${ac_cv_prog_have_svnversion+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801 if test -n "$have_svnversion"; then
1802 ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1803 else
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 for as_dir in $PATH
1806 do
1807 IFS=$as_save_IFS
1808 test -z "$as_dir" && as_dir=.
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811 ac_cv_prog_have_svnversion="yes"
1812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 break 2
1814 fi
1815 done
1816 done
1817
1818 test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1819 fi
1820 fi
1821 have_svnversion=$ac_cv_prog_have_svnversion
1822 if test -n "$have_svnversion"; then
1823 echo "$as_me:$LINENO: result: $have_svnversion" >&5
1824 echo "${ECHO_T}$have_svnversion" >&6
1825 else
1826 echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1828 fi
1829
1830 if test "x$have_svnversion" = xyes; then
1831
1832 svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1833 if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1834 BONMIN_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define BONMIN_SVN_REV $BONMIN_SVN_REV
1838 _ACEOF
1839
1840 fi
1841 fi
1842
1843
1844
1845 # Capture libtool library version, if given.
1846 coin_libversion=12:9:8
1847
1848
1849
1850 # Check if user wants to produce debugging code
1851
1852 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1853 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1854
1855 # Check whether --enable-debug or --disable-debug was given.
1856 if test "${enable_debug+set}" = set; then
1857 enableval="$enable_debug"
1858 case "${enableval}" in
1859 yes) coin_debug_compile=true
1860 if test "${enable_shared+set}" = set; then :; else
1861 enable_shared=no
1862 fi
1863 ;;
1864 no) coin_debug_compile=false
1865 ;;
1866 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1867 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1868 { (exit 1); exit 1; }; }
1869 ;;
1870 esac
1871 else
1872 coin_debug_compile=false
1873 fi;
1874
1875 # Check whether --enable-debug-bonmin or --disable-debug-bonmin was given.
1876 if test "${enable_debug_bonmin+set}" = set; then
1877 enableval="$enable_debug_bonmin"
1878 case "${enableval}" in
1879 yes) coin_debug_compile=true
1880 ;;
1881 no) coin_debug_compile=false
1882 ;;
1883 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-bonmin" >&5
1884 echo "$as_me: error: bad value ${enableval} for --enable-debug-bonmin" >&2;}
1885 { (exit 1); exit 1; }; }
1886 ;;
1887 esac
1888 else
1889 :
1890 fi;
1891
1892 # m4_ifvaln([Bonmin],
1893
1894 if test $coin_debug_compile = true; then
1895 echo "$as_me:$LINENO: result: yes" >&5
1896 echo "${ECHO_T}yes" >&6
1897 else
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1900 fi
1901
1902
1903 # Check whether --with-bonmin-verbosity or --without-bonmin-verbosity was given.
1904 if test "${with_bonmin_verbosity+set}" = set; then
1905 withval="$with_bonmin_verbosity"
1906 if test "$withval" = yes; then
1907 withval=1
1908 fi
1909 coin_bonmin_verbosity=$withval
1910 else
1911 coin_bonmin_verbosity=0
1912 fi;
1913
1914 cat >>confdefs.h <<_ACEOF
1915 #define COIN_BONMIN_VERBOSITY $coin_bonmin_verbosity
1916 _ACEOF
1917
1918
1919
1920 # Check whether --with-bonmin-checklevel or --without-bonmin-checklevel was given.
1921 if test "${with_bonmin_checklevel+set}" = set; then
1922 withval="$with_bonmin_checklevel"
1923 if test "$withval" = yes; then
1924 withval=1
1925 fi
1926 coin_bonmin_checklevel=$withval
1927 else
1928 coin_bonmin_checklevel=0
1929 fi;
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define COIN_BONMIN_CHECKLEVEL $coin_bonmin_checklevel
1933 _ACEOF
1934
1935
1936 # m4_ifvaln([Bonmin],
1937
1938
1939
1940 # Get the name of the C++ compiler and appropriate compiler options
1941
1942
1943 # for backward compatibility
1944 # Check whether --enable-doscompile or --disable-doscompile was given.
1945 if test "${enable_doscompile+set}" = set; then
1946 enableval="$enable_doscompile"
1947 enable_doscompile=$enableval
1948 else
1949 enable_doscompile=no
1950 fi;
1951
1952 # Check whether --enable-msvc or --disable-msvc was given.
1953 if test "${enable_msvc+set}" = set; then
1954 enableval="$enable_msvc"
1955 enable_msvc=$enableval
1956 else
1957 enable_msvc=no
1958 if test "$enable_doscompile" = msvc ; then
1959 enable_msvc=yes
1960 elif test "$enable_doscompile" != no ; then
1961 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1962 echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1963 { (exit 1); exit 1; }; }
1964 fi
1965
1966 fi;
1967
1968 if test "$enable_msvc" = MD; then
1969 enable_shared=yes
1970 enable_msvc=yes
1971 fi
1972
1973 if test "$enable_msvc" = yes; then
1974 case $build in
1975 *-cygwin* | *-mingw*) ;;
1976 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1977 echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1978 { (exit 1); exit 1; }; } ;;
1979 esac
1980 fi
1981
1982
1983
1984 ac_ext=c
1985 ac_cpp='$CPP $CPPFLAGS'
1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989
1990
1991 # For consistency, we set the C compiler to the same value of the C++
1992 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1993 if test x"$CXX" != x; then
1994 case "$CXX" in
1995 clang* ) ;;
1996 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1997 if test x"$CC" = x; then
1998 CC="$CXX"
1999 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2000 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2001 fi
2002 ;;
2003 esac
2004 fi
2005
2006
2007
2008
2009
2010
2011 coin_has_cc=yes
2012
2013 save_cflags="$CFLAGS"
2014
2015 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2016 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
2017 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
2018 # compiler. In this case, put cc after gcc.
2019
2020 case $build in
2021 *-cygwin* | *-mingw*)
2022 if test "$enable_msvc" = yes ; then
2023 comps="icl cl gcc"
2024 else
2025 comps="gcc icl cl"
2026 fi ;;
2027 *-*-solaris*)
2028 # Extract the first word of "cc", so it can be a program name with args.
2029 set dummy cc; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035 if test -n "$sol_cc_compiler"; then
2036 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2037 else
2038 ac_prog_rejected=no
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2041 do
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2047 ac_prog_rejected=yes
2048 continue
2049 fi
2050 ac_cv_prog_sol_cc_compiler="cc"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2053 fi
2054 done
2055 done
2056
2057 if test $ac_prog_rejected = yes; then
2058 # We found a bogon in the path, so make sure we never use it.
2059 set dummy $ac_cv_prog_sol_cc_compiler
2060 shift
2061 if test $# != 0; then
2062 # We chose a different compiler from the bogus one.
2063 # However, it has the same basename, so the bogon will be chosen
2064 # first if we set sol_cc_compiler to just the basename; use the full file name.
2065 shift
2066 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2067 fi
2068 fi
2069 fi
2070 fi
2071 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2072 if test -n "$sol_cc_compiler"; then
2073 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2074 echo "${ECHO_T}$sol_cc_compiler" >&6
2075 else
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2078 fi
2079
2080 if test "$sol_cc_compiler" = "cc" ; then
2081 comps="cc xlc gcc pgcc icc"
2082 else
2083 comps="xlc gcc pgcc icc cc"
2084 fi
2085 ;;
2086 *-*-darwin*) comps="clang gcc cc" ;;
2087 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2088 *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2089 *) comps="xlc_r xlc cc gcc pgcc icc" ;;
2090 esac
2091
2092 # We delete the cached value, since the test might not have been
2093 # performed with our choice of compilers earlier
2094 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2095 # AC_MSG_NOTICE([C compiler candidates: $comps])
2096 ac_ext=c
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 if test -n "$ac_tool_prefix"; then
2102 for ac_prog in $comps
2103 do
2104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2108 if test "${ac_cv_prog_CC+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 if test -n "$CC"; then
2112 ac_cv_prog_CC="$CC" # Let the user override the test.
2113 else
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2116 do
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2121 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 break 2
2124 fi
2125 done
2126 done
2127
2128 fi
2129 fi
2130 CC=$ac_cv_prog_CC
2131 if test -n "$CC"; then
2132 echo "$as_me:$LINENO: result: $CC" >&5
2133 echo "${ECHO_T}$CC" >&6
2134 else
2135 echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6
2137 fi
2138
2139 test -n "$CC" && break
2140 done
2141 fi
2142 if test -z "$CC"; then
2143 ac_ct_CC=$CC
2144 for ac_prog in $comps
2145 do
2146 # Extract the first word of "$ac_prog", so it can be a program name with args.
2147 set dummy $ac_prog; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 if test -n "$ac_ct_CC"; then
2154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163 ac_cv_prog_ac_ct_CC="$ac_prog"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2166 fi
2167 done
2168 done
2169
2170 fi
2171 fi
2172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2173 if test -n "$ac_ct_CC"; then
2174 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2175 echo "${ECHO_T}$ac_ct_CC" >&6
2176 else
2177 echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2179 fi
2180
2181 test -n "$ac_ct_CC" && break
2182 done
2183
2184 CC=$ac_ct_CC
2185 fi
2186
2187
2188 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: no acceptable C compiler found in \$PATH
2191 See \`config.log' for more details." >&2;}
2192 { (exit 1); exit 1; }; }
2193
2194 # Provide some information about the compiler.
2195 echo "$as_me:$LINENO:" \
2196 "checking for C compiler version" >&5
2197 ac_compiler=`set X $ac_compile; echo $2`
2198 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2199 (eval $ac_compiler --version </dev/null >&5) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }
2203 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2204 (eval $ac_compiler -v </dev/null >&5) 2>&5
2205 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }
2208 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2209 (eval $ac_compiler -V </dev/null >&5) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }
2213
2214 cat >conftest.$ac_ext <<_ACEOF
2215 /* confdefs.h. */
2216 _ACEOF
2217 cat confdefs.h >>conftest.$ac_ext
2218 cat >>conftest.$ac_ext <<_ACEOF
2219 /* end confdefs.h. */
2220
2221 int
2222 main ()
2223 {
2224
2225 ;
2226 return 0;
2227 }
2228 _ACEOF
2229 ac_clean_files_save=$ac_clean_files
2230 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2231 # Try to create an executable without -o first, disregard a.out.
2232 # It will help us diagnose broken compilers, and finding out an intuition
2233 # of exeext.
2234 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2235 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2236 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2237 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2238 (eval $ac_link_default) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; then
2242 # Find the output, starting from the most likely. This scheme is
2243 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2244 # resort.
2245
2246 # Be careful to initialize this variable, since it used to be cached.
2247 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2248 ac_cv_exeext=
2249 # b.out is created by i960 compilers.
2250 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2251 do
2252 test -f "$ac_file" || continue
2253 case $ac_file in
2254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2255 ;;
2256 conftest.$ac_ext )
2257 # This is the source file.
2258 ;;
2259 [ab].out )
2260 # We found the default executable, but exeext='' is most
2261 # certainly right.
2262 break;;
2263 *.* )
2264 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265 # FIXME: I believe we export ac_cv_exeext for Libtool,
2266 # but it would be cool to find out if it's true. Does anybody
2267 # maintain Libtool? --akim.
2268 export ac_cv_exeext
2269 break;;
2270 * )
2271 break;;
2272 esac
2273 done
2274 else
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: C compiler cannot create executables
2281 See \`config.log' for more details." >&2;}
2282 { (exit 77); exit 77; }; }
2283 fi
2284
2285 ac_exeext=$ac_cv_exeext
2286 echo "$as_me:$LINENO: result: $ac_file" >&5
2287 echo "${ECHO_T}$ac_file" >&6
2288
2289 # Check the compiler produces executables we can run. If not, either
2290 # the compiler is broken, or we cross compile.
2291 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2292 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2293 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2294 # If not cross compiling, check that we can run a simple program.
2295 if test "$cross_compiling" != yes; then
2296 if { ac_try='./$ac_file'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2302 cross_compiling=no
2303 else
2304 if test "$cross_compiling" = maybe; then
2305 cross_compiling=yes
2306 else
2307 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2308 If you meant to cross compile, use \`--host'.
2309 See \`config.log' for more details." >&5
2310 echo "$as_me: error: cannot run C compiled programs.
2311 If you meant to cross compile, use \`--host'.
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2314 fi
2315 fi
2316 fi
2317 echo "$as_me:$LINENO: result: yes" >&5
2318 echo "${ECHO_T}yes" >&6
2319
2320 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2321 ac_clean_files=$ac_clean_files_save
2322 # Check the compiler produces executables we can run. If not, either
2323 # the compiler is broken, or we cross compile.
2324 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2325 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2326 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2327 echo "${ECHO_T}$cross_compiling" >&6
2328
2329 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2330 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2332 (eval $ac_link) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; then
2336 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2337 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2338 # work properly (i.e., refer to `conftest.exe'), while it won't with
2339 # `rm'.
2340 for ac_file in conftest.exe conftest conftest.*; do
2341 test -f "$ac_file" || continue
2342 case $ac_file in
2343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2344 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2345 export ac_cv_exeext
2346 break;;
2347 * ) break;;
2348 esac
2349 done
2350 else
2351 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2352 See \`config.log' for more details." >&5
2353 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2354 See \`config.log' for more details." >&2;}
2355 { (exit 1); exit 1; }; }
2356 fi
2357
2358 rm -f conftest$ac_cv_exeext
2359 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2360 echo "${ECHO_T}$ac_cv_exeext" >&6
2361
2362 rm -f conftest.$ac_ext
2363 EXEEXT=$ac_cv_exeext
2364 ac_exeext=$EXEEXT
2365 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2366 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2367 if test "${ac_cv_objext+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2376
2377 int
2378 main ()
2379 {
2380
2381 ;
2382 return 0;
2383 }
2384 _ACEOF
2385 rm -f conftest.o conftest.obj
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; then
2391 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2392 case $ac_file in
2393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2394 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2395 break;;
2396 esac
2397 done
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2405 See \`config.log' for more details." >&2;}
2406 { (exit 1); exit 1; }; }
2407 fi
2408
2409 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2410 fi
2411 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2412 echo "${ECHO_T}$ac_cv_objext" >&6
2413 OBJEXT=$ac_cv_objext
2414 ac_objext=$OBJEXT
2415 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2416 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2417 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420 cat >conftest.$ac_ext <<_ACEOF
2421 /* confdefs.h. */
2422 _ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h. */
2426
2427 int
2428 main ()
2429 {
2430 #ifndef __GNUC__
2431 choke me
2432 #endif
2433
2434 ;
2435 return 0;
2436 }
2437 _ACEOF
2438 rm -f conftest.$ac_objext
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440 (eval $ac_compile) 2>conftest.er1
2441 ac_status=$?
2442 grep -v '^ *+' conftest.er1 >conftest.err
2443 rm -f conftest.er1
2444 cat conftest.err >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
2447 { ac_try='test -z "$ac_c_werror_flag"
2448 || test ! -s conftest.err'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; } &&
2454 { ac_try='test -s conftest.$ac_objext'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2460 ac_compiler_gnu=yes
2461 else
2462 echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2464
2465 ac_compiler_gnu=no
2466 fi
2467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2469
2470 fi
2471 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2472 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2473 GCC=`test $ac_compiler_gnu = yes && echo yes`
2474 ac_test_CFLAGS=${CFLAGS+set}
2475 ac_save_CFLAGS=$CFLAGS
2476 CFLAGS="-g"
2477 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2478 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2479 if test "${ac_cv_prog_cc_g+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h. */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2488
2489 int
2490 main ()
2491 {
2492
2493 ;
2494 return 0;
2495 }
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_prog_cc_g=yes
2520 else
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2523
2524 ac_cv_prog_cc_g=no
2525 fi
2526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527 fi
2528 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2529 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2530 if test "$ac_test_CFLAGS" = set; then
2531 CFLAGS=$ac_save_CFLAGS
2532 elif test $ac_cv_prog_cc_g = yes; then
2533 if test "$GCC" = yes; then
2534 CFLAGS="-g -O2"
2535 else
2536 CFLAGS="-g"
2537 fi
2538 else
2539 if test "$GCC" = yes; then
2540 CFLAGS="-O2"
2541 else
2542 CFLAGS=
2543 fi
2544 fi
2545 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2546 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2547 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550 ac_cv_prog_cc_stdc=no
2551 ac_save_CC=$CC
2552 cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h. */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2558 #include <stdarg.h>
2559 #include <stdio.h>
2560 #include <sys/types.h>
2561 #include <sys/stat.h>
2562 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2563 struct buf { int x; };
2564 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2565 static char *e (p, i)
2566 char **p;
2567 int i;
2568 {
2569 return p[i];
2570 }
2571 static char *f (char * (*g) (char **, int), char **p, ...)
2572 {
2573 char *s;
2574 va_list v;
2575 va_start (v,p);
2576 s = g (p, va_arg (v,int));
2577 va_end (v);
2578 return s;
2579 }
2580
2581 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2582 function prototypes and stuff, but not '\xHH' hex character constants.
2583 These don't provoke an error unfortunately, instead are silently treated
2584 as 'x'. The following induces an error, until -std1 is added to get
2585 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2586 array size at least. It's necessary to write '\x00'==0 to get something
2587 that's true only with -std1. */
2588 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2589
2590 int test (int i, double x);
2591 struct s1 {int (*f) (int a);};
2592 struct s2 {int (*f) (double a);};
2593 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2594 int argc;
2595 char **argv;
2596 int
2597 main ()
2598 {
2599 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2600 ;
2601 return 0;
2602 }
2603 _ACEOF
2604 # Don't try gcc -ansi; that turns off useful extensions and
2605 # breaks some systems' header files.
2606 # AIX -qlanglvl=ansi
2607 # Ultrix and OSF/1 -std1
2608 # HP-UX 10.20 and later -Ae
2609 # HP-UX older versions -Aa -D_HPUX_SOURCE
2610 # SVR4 -Xc -D__EXTENSIONS__
2611 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2612 do
2613 CC="$ac_save_CC $ac_arg"
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>conftest.er1
2617 ac_status=$?
2618 grep -v '^ *+' conftest.er1 >conftest.err
2619 rm -f conftest.er1
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -z "$ac_c_werror_flag"
2624 || test ! -s conftest.err'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; } &&
2630 { ac_try='test -s conftest.$ac_objext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2636 ac_cv_prog_cc_stdc=$ac_arg
2637 break
2638 else
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642 fi
2643 rm -f conftest.err conftest.$ac_objext
2644 done
2645 rm -f conftest.$ac_ext conftest.$ac_objext
2646 CC=$ac_save_CC
2647
2648 fi
2649
2650 case "x$ac_cv_prog_cc_stdc" in
2651 x|xno)
2652 echo "$as_me:$LINENO: result: none needed" >&5
2653 echo "${ECHO_T}none needed" >&6 ;;
2654 *)
2655 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2656 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2657 CC="$CC $ac_cv_prog_cc_stdc" ;;
2658 esac
2659
2660 # Some people use a C++ compiler to compile C. Since we use `exit',
2661 # in C++ we need to declare it. In case someone uses the same compiler
2662 # for both compiling C and C++ we need to have the C++ compiler decide
2663 # the declaration of exit, since it's the most demanding environment.
2664 cat >conftest.$ac_ext <<_ACEOF
2665 #ifndef __cplusplus
2666 choke me
2667 #endif
2668 _ACEOF
2669 rm -f conftest.$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671 (eval $ac_compile) 2>conftest.er1
2672 ac_status=$?
2673 grep -v '^ *+' conftest.er1 >conftest.err
2674 rm -f conftest.er1
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try='test -z "$ac_c_werror_flag"
2679 || test ! -s conftest.err'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 (eval $ac_try) 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; } &&
2685 { ac_try='test -s conftest.$ac_objext'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 (eval $ac_try) 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2691 for ac_declaration in \
2692 '' \
2693 'extern "C" void std::exit (int) throw (); using std::exit;' \
2694 'extern "C" void std::exit (int); using std::exit;' \
2695 'extern "C" void exit (int) throw ();' \
2696 'extern "C" void exit (int);' \
2697 'void exit (int);'
2698 do
2699 cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h. */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2705 $ac_declaration
2706 #include <stdlib.h>
2707 int
2708 main ()
2709 {
2710 exit (42);
2711 ;
2712 return 0;
2713 }
2714 _ACEOF
2715 rm -f conftest.$ac_objext
2716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717 (eval $ac_compile) 2>conftest.er1
2718 ac_status=$?
2719 grep -v '^ *+' conftest.er1 >conftest.err
2720 rm -f conftest.er1
2721 cat conftest.err >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -z "$ac_c_werror_flag"
2725 || test ! -s conftest.err'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 (eval $ac_try) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; } &&
2731 { ac_try='test -s conftest.$ac_objext'
2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 (eval $ac_try) 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2737 :
2738 else
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742 continue
2743 fi
2744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745 cat >conftest.$ac_ext <<_ACEOF
2746 /* confdefs.h. */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h. */
2751 $ac_declaration
2752 int
2753 main ()
2754 {
2755 exit (42);
2756 ;
2757 return 0;
2758 }
2759 _ACEOF
2760 rm -f conftest.$ac_objext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>conftest.er1
2763 ac_status=$?
2764 grep -v '^ *+' conftest.er1 >conftest.err
2765 rm -f conftest.er1
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -z "$ac_c_werror_flag"
2770 || test ! -s conftest.err'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 (eval $ac_try) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; } &&
2776 { ac_try='test -s conftest.$ac_objext'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 break
2783 else
2784 echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.$ac_ext >&5
2786
2787 fi
2788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2789 done
2790 rm -f conftest*
2791 if test -n "$ac_declaration"; then
2792 echo '#ifdef __cplusplus' >>confdefs.h
2793 echo $ac_declaration >>confdefs.h
2794 echo '#endif' >>confdefs.h
2795 fi
2796
2797 else
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801 fi
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803 ac_ext=c
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808
2809 if test -z "$CC" ; then
2810 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2811 echo "$as_me: error: Failed to find a C compiler!" >&2;}
2812 { (exit 1); exit 1; }; }
2813 fi
2814 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2815 case "$CC" in
2816 clang* ) ;;
2817 cl* | */cl* | CL* | */CL* )
2818 if test "$ac_cv_prog_cc_g" = yes ; then
2819 ac_cv_prog_cc_g=no
2820 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2821 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2822 fi ;;
2823 * )
2824 if test x"$CYGPATH_W" = x ; then
2825 CYGPATH_W=echo
2826 fi
2827 ;;
2828 esac
2829 CFLAGS="$save_cflags"
2830
2831 # add automake conditional so we can recognize cl compiler in makefile
2832 coin_cc_is_cl=false
2833 case "$CC" in
2834 clang* ) ;;
2835 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2836 coin_cc_is_cl=true
2837 ;;
2838 esac
2839
2840
2841 if test $coin_cc_is_cl = true; then
2842 COIN_CC_IS_CL_TRUE=
2843 COIN_CC_IS_CL_FALSE='#'
2844 else
2845 COIN_CC_IS_CL_TRUE='#'
2846 COIN_CC_IS_CL_FALSE=
2847 fi
2848
2849
2850 # Check if a project specific CFLAGS variable has been set
2851 if test x$COIN_PRJCT != x; then
2852 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2853 if test x$coin_tmp = xset; then
2854 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2855 fi
2856 fi
2857
2858 if test x"$CFLAGS" = x; then
2859
2860 coin_add_cflags=
2861 coin_opt_cflags=
2862 coin_dbg_cflags=
2863 coin_warn_cflags=
2864
2865 if test "$GCC" = "yes"; then
2866 case "$CC" in
2867 icc* | */icc*)
2868 ;;
2869 *)
2870 coin_opt_cflags="-O3"
2871 coin_add_cflags="-pipe"
2872 coin_dbg_cflags="-g -O0"
2873 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2874 esac
2875 fi
2876 if test -z "$coin_opt_cflags"; then
2877 case $build in
2878 *-cygwin* | *-mingw*)
2879 case "$CC" in
2880 clang* ) ;;
2881 cl* | */cl* | CL* | */CL*)
2882 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2883 coin_opt_cflags='-MD -O2'
2884 coin_dbg_cflags='-MDd'
2885 else
2886 coin_opt_cflags='-MT -O2'
2887 coin_dbg_cflags='-MTd'
2888 fi
2889 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2890 ;;
2891 icl* | */icl* | ICL* | */ICL*)
2892 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2893 coin_opt_cflags='-MD -Ox'
2894 coin_dbg_cflags='-MDd -debug'
2895 else
2896 coin_opt_cflags='-MT -Ox'
2897 coin_dbg_cflags='-MTd -debug'
2898 fi
2899 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2900 ;;
2901 esac
2902 ;;
2903 *-linux-*)
2904 case "$CC" in
2905 icc* | */icc*)
2906 coin_opt_cflags="-O3 -ip -mp1"
2907 coin_add_cflags=""
2908 coin_dbg_cflags="-g"
2909 # Check if -i_dynamic is necessary (for new glibc library)
2910 CFLAGS=
2911 cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h. */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2917
2918 int
2919 main ()
2920 {
2921 int i=0; i++;
2922 ;
2923 return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.$ac_objext conftest$ac_exeext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2928 (eval $ac_link) 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -z "$ac_c_werror_flag"
2936 || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try='test -s conftest$ac_exeext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 :
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 coin_add_cflags="-i_dynamic $coin_add_cflags"
2954 fi
2955 rm -f conftest.err conftest.$ac_objext \
2956 conftest$ac_exeext conftest.$ac_ext
2957 ;;
2958 pgcc* | */pgcc*)
2959 coin_opt_cflags="-fast"
2960 coin_add_cflags="-Kieee -pc 64"
2961 coin_dbg_cflags="-g"
2962 ;;
2963 esac
2964 ;;
2965 *-ibm-*)
2966 case "$CC" in
2967 xlc* | */xlc* | mpxlc* | */mpxlc*)
2968 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2969 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2970 coin_dbg_cflags="-g"
2971 ;;
2972 esac
2973 ;;
2974 *-hp-*)
2975 coin_opt_cflags="-O"
2976 coin_add_cflags="-Ae"
2977 coin_dbg_cflags="-g"
2978 ;;
2979 *-*-solaris*)
2980 coin_opt_cflags="-xO4"
2981 coin_dbg_cflags="-g"
2982 ;;
2983 *-sgi-*)
2984 coin_opt_cflags="-O -OPT:Olimit=0"
2985 coin_dbg_cflags="-g"
2986 ;;
2987 esac
2988 fi
2989
2990 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2991 coin_dbg_cflags="-g"
2992 fi
2993
2994 if test -z "$coin_opt_cflags"; then
2995 # Try if -O option works if nothing else is set
2996 CFLAGS="-O"
2997 cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3003
3004 int
3005 main ()
3006 {
3007 int i=0; i++;
3008 ;
3009 return 0;
3010 }
3011 _ACEOF
3012 rm -f conftest.$ac_objext conftest$ac_exeext
3013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3014 (eval $ac_link) 2>conftest.er1
3015 ac_status=$?
3016 grep -v '^ *+' conftest.er1 >conftest.err
3017 rm -f conftest.er1
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 { ac_try='test -z "$ac_c_werror_flag"
3022 || test ! -s conftest.err'
3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 (eval $ac_try) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; } &&
3028 { ac_try='test -s conftest$ac_exeext'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 (eval $ac_try) 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3034 coin_opt_cflags="-O"
3035 else
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039 fi
3040 rm -f conftest.err conftest.$ac_objext \
3041 conftest$ac_exeext conftest.$ac_ext
3042 fi
3043
3044 # if PM doesn't want the warning messages, take them out
3045 if test x"$coin_skip_warn_cflags" = xyes; then
3046 coin_warn_cflags=
3047 fi
3048
3049 if test x${DBG_CFLAGS+set} != xset; then
3050 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3051 fi
3052 if test x${OPT_CFLAGS+set} != xset; then
3053 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3054 fi
3055
3056 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3057 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3058
3059 if test "$coin_debug_compile" = "true"; then
3060 CFLAGS="$DBG_CFLAGS"
3061 else
3062 CFLAGS="$OPT_CFLAGS"
3063 fi
3064 else
3065 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3066 if test x${DBG_CFLAGS+set} != xset; then
3067 DBG_CFLAGS="$CFLAGS"
3068 fi
3069 if test x${OPT_CFLAGS+set} != xset; then
3070 OPT_CFLAGS="$CFLAGS"
3071 fi
3072 fi
3073
3074 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3075 if test x$COIN_PRJCT != x; then
3076 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3077 fi
3078
3079 # Try if CFLAGS works
3080 save_CFLAGS="$CFLAGS"
3081 cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087
3088 int
3089 main ()
3090 {
3091 int i=0; i++;
3092 ;
3093 return 0;
3094 }
3095 _ACEOF
3096 rm -f conftest.$ac_objext conftest$ac_exeext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3098 (eval $ac_link) 2>conftest.er1
3099 ac_status=$?
3100 grep -v '^ *+' conftest.er1 >conftest.err
3101 rm -f conftest.er1
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -z "$ac_c_werror_flag"
3106 || test ! -s conftest.err'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 (eval $ac_try) 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; } &&
3112 { ac_try='test -s conftest$ac_exeext'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3118 :
3119 else
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122
3123 CFLAGS=
3124 fi
3125 rm -f conftest.err conftest.$ac_objext \
3126 conftest$ac_exeext conftest.$ac_ext
3127 if test -z "$CFLAGS"; then
3128 { 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
3129 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;}
3130 CFLAGS='-O'
3131 cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h. */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3137
3138 int
3139 main ()
3140 {
3141 int i=0; i++;
3142 ;
3143 return 0;
3144 }
3145 _ACEOF
3146 rm -f conftest.$ac_objext conftest$ac_exeext
3147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3148 (eval $ac_link) 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_c_werror_flag"
3156 || test ! -s conftest.err'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 (eval $ac_try) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest$ac_exeext'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 (eval $ac_try) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3168 :
3169 else
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 CFLAGS=
3174 fi
3175 rm -f conftest.err conftest.$ac_objext \
3176 conftest$ac_exeext conftest.$ac_ext
3177 if test -z "$CFLAGS"; then
3178 { 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
3179 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;}
3180 fi
3181 fi
3182
3183 { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3184 echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3185
3186
3187 if test x"$MPICC" = x; then :; else
3188 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3189 echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3190 CC="$MPICC"
3191 fi
3192
3193 # Correct the LD variable if we are using the MS or Intel-windows compiler
3194 case "$CC" in
3195 clang* ) ;;
3196 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3197 LD=link
3198 ;;
3199 esac
3200
3201 ac_ext=c
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
3207
3208
3209 #Let's try if that overcomes configuration problem with VC++ 6.0
3210
3211 ac_ext=cc
3212 ac_cpp='$CXXCPP $CPPFLAGS'
3213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3216
3217
3218
3219
3220
3221
3222
3223 coin_has_cxx=yes
3224
3225 save_cxxflags="$CXXFLAGS"
3226 # For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3227 case $build in
3228 *-cygwin* | *-mingw*)
3229 if test "$enable_msvc" = yes ; then
3230 comps="icl cl g++"
3231 else
3232 comps="g++ icl cl"
3233 fi ;;
3234 *-*-solaris*)
3235 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3236 *-darwin*) comps="clang++ g++ c++ CC" ;;
3237 *-linux-gnu*)
3238 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3239 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3240 esac
3241
3242 # We delete the cached value, since the test might not have been
3243 # performed with our choice of compilers earlier
3244 $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3245 # AC_MSG_NOTICE([C++ compiler candidates: $comps])
3246 ac_ext=cc
3247 ac_cpp='$CXXCPP $CPPFLAGS'
3248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3251 if test -n "$ac_tool_prefix"; then
3252 for ac_prog in $CCC $comps
3253 do
3254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3255 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3256 echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_prog_CXX+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261 if test -n "$CXX"; then
3262 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277
3278 fi
3279 fi
3280 CXX=$ac_cv_prog_CXX
3281 if test -n "$CXX"; then
3282 echo "$as_me:$LINENO: result: $CXX" >&5
3283 echo "${ECHO_T}$CXX" >&6
3284 else
3285 echo "$as_me:$LINENO: result: no" >&5
3286 echo "${ECHO_T}no" >&6
3287 fi
3288
3289 test -n "$CXX" && break
3290 done
3291 fi
3292 if test -z "$CXX"; then
3293 ac_ct_CXX=$CXX
3294 for ac_prog in $CCC $comps
3295 do
3296 # Extract the first word of "$ac_prog", so it can be a program name with args.
3297 set dummy $ac_prog; ac_word=$2
3298 echo "$as_me:$LINENO: checking for $ac_word" >&5
3299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 if test -n "$ac_ct_CXX"; then
3304 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309 IFS=$as_save_IFS
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_prog_ac_ct_CXX="$ac_prog"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3316 fi
3317 done
3318 done
3319
3320 fi
3321 fi
3322 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3323 if test -n "$ac_ct_CXX"; then
3324 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3325 echo "${ECHO_T}$ac_ct_CXX" >&6
3326 else
3327 echo "$as_me:$LINENO: result: no" >&5
3328 echo "${ECHO_T}no" >&6
3329 fi
3330
3331 test -n "$ac_ct_CXX" && break
3332 done
3333 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3334
3335 CXX=$ac_ct_CXX
3336 fi
3337
3338
3339 # Provide some information about the compiler.
3340 echo "$as_me:$LINENO:" \
3341 "checking for C++ compiler version" >&5
3342 ac_compiler=`set X $ac_compile; echo $2`
3343 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3344 (eval $ac_compiler --version </dev/null >&5) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }
3348 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3349 (eval $ac_compiler -v </dev/null >&5) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }
3353 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3354 (eval $ac_compiler -V </dev/null >&5) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }
3358
3359 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3360 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3361 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364 cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h. */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3370
3371 int
3372 main ()
3373 {
3374 #ifndef __GNUC__
3375 choke me
3376 #endif
3377
3378 ;
3379 return 0;
3380 }
3381 _ACEOF
3382 rm -f conftest.$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
3391 { ac_try='test -z "$ac_cxx_werror_flag"
3392 || test ! -s conftest.err'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 (eval $ac_try) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; } &&
3398 { ac_try='test -s conftest.$ac_objext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 (eval $ac_try) 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3404 ac_compiler_gnu=yes
3405 else
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409 ac_compiler_gnu=no
3410 fi
3411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3412 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3413
3414 fi
3415 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3416 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3417 GXX=`test $ac_compiler_gnu = yes && echo yes`
3418 ac_test_CXXFLAGS=${CXXFLAGS+set}
3419 ac_save_CXXFLAGS=$CXXFLAGS
3420 CXXFLAGS="-g"
3421 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3422 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3423 if test "${ac_cv_prog_cxx_g+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h. */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432
3433 int
3434 main ()
3435 {
3436
3437 ;
3438 return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443 (eval $ac_compile) 2>conftest.er1
3444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
3450 { ac_try='test -z "$ac_cxx_werror_flag"
3451 || test ! -s conftest.err'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 (eval $ac_try) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; } &&
3457 { ac_try='test -s conftest.$ac_objext'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459 (eval $ac_try) 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; }; then
3463 ac_cv_prog_cxx_g=yes
3464 else
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 ac_cv_prog_cxx_g=no
3469 fi
3470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3471 fi
3472 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3473 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3474 if test "$ac_test_CXXFLAGS" = set; then
3475 CXXFLAGS=$ac_save_CXXFLAGS
3476 elif test $ac_cv_prog_cxx_g = yes; then
3477 if test "$GXX" = yes; then
3478 CXXFLAGS="-g -O2"
3479 else
3480 CXXFLAGS="-g"
3481 fi
3482 else
3483 if test "$GXX" = yes; then
3484 CXXFLAGS="-O2"
3485 else
3486 CXXFLAGS=
3487 fi
3488 fi
3489 for ac_declaration in \
3490 '' \
3491 'extern "C" void std::exit (int) throw (); using std::exit;' \
3492 'extern "C" void std::exit (int); using std::exit;' \
3493 'extern "C" void exit (int) throw ();' \
3494 'extern "C" void exit (int);' \
3495 'void exit (int);'
3496 do
3497 cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h. */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 $ac_declaration
3504 #include <stdlib.h>
3505 int
3506 main ()
3507 {
3508 exit (42);
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 rm -f conftest.$ac_objext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515 (eval $ac_compile) 2>conftest.er1
3516 ac_status=$?
3517 grep -v '^ *+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try='test -z "$ac_cxx_werror_flag"
3523 || test ! -s conftest.err'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; } &&
3529 { ac_try='test -s conftest.$ac_objext'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 (eval $ac_try) 2>&5
3532 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; }; then
3535 :
3536 else
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540 continue
3541 fi
3542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3543 cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h. */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 $ac_declaration
3550 int
3551 main ()
3552 {
3553 exit (42);
3554 ;
3555 return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -z "$ac_cxx_werror_flag"
3568 || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 break
3581 else
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585 fi
3586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3587 done
3588 rm -f conftest*
3589 if test -n "$ac_declaration"; then
3590 echo '#ifdef __cplusplus' >>confdefs.h
3591 echo $ac_declaration >>confdefs.h
3592 echo '#endif' >>confdefs.h
3593 fi
3594
3595 ac_ext=cc
3596 ac_cpp='$CXXCPP $CPPFLAGS'
3597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3600
3601
3602 #AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3603 #thus, we test here whether $CXX is actually working
3604 ac_ext=cc
3605 ac_cpp='$CXXCPP $CPPFLAGS'
3606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3609
3610 echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3611 echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3612 cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h. */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618
3619 int
3620 main ()
3621 {
3622 int i=0;
3623 ;
3624 return 0;
3625 }
3626 _ACEOF
3627 rm -f conftest.$ac_objext
3628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3629 (eval $ac_compile) 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try='test -z "$ac_cxx_werror_flag"
3637 || test ! -s conftest.err'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; } &&
3643 { ac_try='test -s conftest.$ac_objext'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 (eval $ac_try) 2>&5
3646 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 echo "$as_me:$LINENO: result: yes" >&5
3650 echo "${ECHO_T}yes" >&6
3651 else
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655 echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6
3657 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3658 echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3659 { (exit 1); exit 1; }; }
3660
3661 fi
3662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3663 ac_ext=cc
3664 ac_cpp='$CXXCPP $CPPFLAGS'
3665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3668
3669
3670 coin_cxx_is_cl=false
3671 # It seems that we need to cleanup something here for the Windows
3672 case "$CXX" in
3673 clang* | */clang*) ;;
3674 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3675 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3676 mv confdefs.hh confdefs.h
3677 coin_cxx_is_cl=true
3678 ;;
3679 esac
3680
3681 # add automake conditional so we can recognize cl compiler in makefile
3682
3683
3684 if test $coin_cxx_is_cl = true; then
3685 COIN_CXX_IS_CL_TRUE=
3686 COIN_CXX_IS_CL_FALSE='#'
3687 else
3688 COIN_CXX_IS_CL_TRUE='#'
3689 COIN_CXX_IS_CL_FALSE=
3690 fi
3691
3692
3693 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3694 case "$CXX" in
3695 clang* ) ;;
3696 cl* | */cl* | CL* | */CL* )
3697 if test "$ac_cv_prog_cxx_g" = yes ; then
3698 ac_cv_prog_cxx_g=no
3699 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3700 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3701 fi ;;
3702 * )
3703 if test x"$CYGPATH_W" = x ; then
3704 CYGPATH_W=echo
3705 fi
3706 ;;
3707 esac
3708 CXXFLAGS="$save_cxxflags"
3709
3710 # Check if a project specific CXXFLAGS variable has been set
3711 if test x$COIN_PRJCT != x; then
3712 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3713 if test x$coin_tmp = xset; then
3714 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3715 fi
3716 fi
3717
3718 if test x"$CXXFLAGS" = x; then
3719
3720 # ToDo decide whether we want -DNDEBUG for optimization
3721 coin_add_cxxflags=
3722 coin_opt_cxxflags=
3723 coin_dbg_cxxflags=
3724 coin_warn_cxxflags=
3725
3726 if test "$GXX" = "yes"; then
3727 case "$CXX" in
3728 icpc* | */icpc*)
3729 ;;
3730 *)
3731 # ToDo decide about unroll-loops
3732 coin_opt_cxxflags="-O3"
3733 coin_add_cxxflags="-pipe"
3734 coin_dbg_cxxflags="-g -O0"
3735 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3736 esac
3737 fi
3738
3739 # Note that we do not need to cover GCC in the following tests.
3740
3741 if test -z "$coin_opt_cxxflags"; then
3742 case $build in
3743 *-cygwin* | *-mingw*)
3744 case "$CXX" in
3745 clang* ) ;;
3746 cl* | */cl* | CL* | */CL*)
3747 # The MT and MTd options are mutually exclusive
3748 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3749 coin_opt_cxxflags='-MD -O2'
3750 coin_dbg_cxxflags='-MDd'
3751 else
3752 coin_opt_cxxflags='-MT -O2'
3753 coin_dbg_cxxflags='-MTd'
3754 fi
3755 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3756 ;;
3757 icl* | */icl* | ICL* | */ICL*)
3758 # The MT and MTd options are mutually exclusive
3759 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3760 coin_opt_cxxflags='-MD -Ox'
3761 coin_dbg_cxxflags='-MDd -debug'
3762 else
3763 coin_opt_cxxflags='-MT -Ox'
3764 coin_dbg_cxxflags='-MTd -debug'
3765 fi
3766 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3767 ;;
3768 esac
3769 ;;
3770 *-linux-*)
3771 case "$CXX" in
3772 icpc* | */icpc*)
3773 coin_opt_cxxflags="-O3 -ip -mp1"
3774 coin_add_cxxflags=""
3775 coin_dbg_cxxflags="-g"
3776 # Check if -i_dynamic is necessary (for new glibc library)
3777 CXXFLAGS=
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784
3785 int
3786 main ()
3787 {
3788 int i=0; i++;
3789 ;
3790 return 0;
3791 }
3792 _ACEOF
3793 rm -f conftest.$ac_objext conftest$ac_exeext
3794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3795 (eval $ac_link) 2>conftest.er1
3796 ac_status=$?
3797 grep -v '^ *+' conftest.er1 >conftest.err
3798 rm -f conftest.er1
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } &&
3802 { ac_try='test -z "$ac_cxx_werror_flag"
3803 || test ! -s conftest.err'
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 (eval $ac_try) 2>&5
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; } &&
3809 { ac_try='test -s conftest$ac_exeext'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 :
3816 else
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3819
3820 coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3821 fi
3822 rm -f conftest.err conftest.$ac_objext \
3823 conftest$ac_exeext conftest.$ac_ext
3824 ;;
3825 pgCC* | */pgCC*)
3826 coin_opt_cxxflags="-fast"
3827 coin_add_cxxflags="-Kieee -pc 64"
3828 coin_dbg_cxxflags="-g"
3829 ;;
3830 esac
3831 ;;
3832 *-ibm-*)
3833 case "$CXX" in
3834 xlC* | */xlC* | mpxlC* | */mpxlC*)
3835 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3836 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3837 coin_dbg_cxxflags="-g"
3838 ;;
3839 esac
3840 ;;
3841 *-hp-*)
3842 case "$CXX" in
3843 aCC* | */aCC* )
3844 coin_opt_cxxflags="-O"
3845 coin_add_cxxflags="-AA"
3846 coin_dbg_cxxflags="-g"
3847 ;;
3848 esac
3849 ;;
3850 *-*-solaris*)
3851 coin_opt_cxxflags="-O4"
3852 coin_dbg_cxxflags="-g"
3853 ;;
3854 esac
3855 fi
3856
3857 # Generic flag settings. If these don't work, add a case above.
3858
3859 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3860 coin_dbg_cxxflags="-g"
3861 fi
3862
3863 if test -z "$coin_opt_cxxflags"; then
3864 # Try if -O option works if nothing else is set
3865 CXXFLAGS=-O
3866 cat >conftest.$ac_ext <<_ACEOF
3867 /* confdefs.h. */
3868 _ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3872
3873 int
3874 main ()
3875 {
3876 int i=0; i++;
3877 ;
3878 return 0;
3879 }
3880 _ACEOF
3881 rm -f conftest.$ac_objext conftest$ac_exeext
3882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3883 (eval $ac_link) 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_cxx_werror_flag"
3891 || test ! -s conftest.err'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 (eval $ac_try) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; } &&
3897 { ac_try='test -s conftest$ac_exeext'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3903 coin_opt_cxxflags="-O"
3904 else
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908 fi
3909 rm -f conftest.err conftest.$ac_objext \
3910 conftest$ac_exeext conftest.$ac_ext
3911 fi
3912
3913 # if PM doesn't want the warning messages, take them out
3914 if test x"$coin_skip_warn_cxxflags" = xyes; then
3915 coin_warn_cxxflags=
3916 fi
3917
3918 # Do final setup of flags based on values determined above.
3919
3920 if test x${DBG_CXXFLAGS+set} != xset; then
3921 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3922 fi
3923 if test x${OPT_CXXFLAGS+set} != xset; then
3924 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3925 fi
3926
3927 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3928 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3929
3930 if test "$coin_debug_compile" = "true"; then
3931 CXXFLAGS="$DBG_CXXFLAGS"
3932 else
3933 CXXFLAGS="$OPT_CXXFLAGS"
3934 fi
3935
3936 # Handle the case where CXXFLAGS was set externally.
3937 else
3938 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3939 if test x${DBG_CXXFLAGS+set} != xset; then
3940 DBG_CXXFLAGS="$CXXFLAGS"
3941 fi
3942 if test x${OPT_CXXFLAGS+set} != xset; then
3943 OPT_CXXFLAGS="$CXXFLAGS"
3944 fi
3945 fi
3946
3947 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3948 if test x$COIN_PRJCT != x; then
3949 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3950 fi
3951
3952 # Try if CXXFLAGS works
3953 save_CXXFLAGS="$CXXFLAGS"
3954 cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h. */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3960
3961 int
3962 main ()
3963 {
3964 int i=0; i++;
3965 ;
3966 return 0;
3967 }
3968 _ACEOF
3969 rm -f conftest.$ac_objext conftest$ac_exeext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3971 (eval $ac_link) 2>conftest.er1
3972 ac_status=$?
3973 grep -v '^ *+' conftest.er1 >conftest.err
3974 rm -f conftest.er1
3975 cat conftest.err >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } &&
3978 { ac_try='test -z "$ac_cxx_werror_flag"
3979 || test ! -s conftest.err'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981 (eval $ac_try) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; } &&
3985 { ac_try='test -s conftest$ac_exeext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 (eval $ac_try) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 :
3992 else
3993 echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3995
3996 CXXFLAGS=
3997 fi
3998 rm -f conftest.err conftest.$ac_objext \
3999 conftest$ac_exeext conftest.$ac_ext
4000 if test -z "$CXXFLAGS"; then
4001 { 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
4002 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;}
4003 CXXFLAGS='-O'
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010
4011 int
4012 main ()
4013 {
4014 int i=0; i++;
4015 ;
4016 return 0;
4017 }
4018 _ACEOF
4019 rm -f conftest.$ac_objext conftest$ac_exeext
4020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4021 (eval $ac_link) 2>conftest.er1
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } &&
4028 { ac_try='test -z "$ac_cxx_werror_flag"
4029 || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest$ac_exeext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 :
4042 else
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4045
4046 CXXFLAGS=
4047 fi
4048 rm -f conftest.err conftest.$ac_objext \
4049 conftest$ac_exeext conftest.$ac_ext
4050 if test -z "$CXXFLAGS"; then
4051 { 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
4052 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;}
4053 fi
4054 fi
4055
4056 { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4057 echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4058
4059
4060 if test x"$MPICXX" = x; then :; else
4061 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4062 echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4063 CXX="$MPICXX"
4064 fi
4065
4066 # correct the LD variable in a build with MS or Intel-windows compiler
4067 case "$CXX" in
4068 clang* ) ;;
4069 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4070 LD=link
4071 ;;
4072 esac
4073
4074 ac_ext=c
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079
4080
4081
4082
4083 # Initialize automake and libtool
4084 {
4085
4086
4087
4088 # START
4089
4090 coin_disable_shared=no
4091 # Test if force_shared has been set
4092 if test "x" = xforce_shared; then
4093 if test x$enable_shared = xno; then
4094 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4095 echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4096 { (exit 1); exit 1; }; }
4097 fi
4098 enable_shared=yes;
4099 else
4100 case $build in
4101 *-cygwin* | *-mingw*)
4102 coin_disable_shared=yes
4103 if test x"$enable_shared" = xyes; then
4104 case "$CC" in
4105 clang* )
4106 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4107 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4108 ;;
4109 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4110 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4111 echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4112 ;;
4113 *gcc*)
4114 if test x"$enable_dependency_linking" = xyes; then
4115 coin_disable_shared=no
4116 else
4117 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4118 echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4119 fi
4120 ;;
4121 *)
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 esac
4126 fi
4127 ;;
4128 *-aix*)
4129 coin_disable_shared=yes
4130 platform=AIX
4131 if test x"$enable_shared" = xyes; then
4132 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4133 echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4134 fi
4135 ;;
4136 esac
4137 fi
4138 if test x"$coin_disable_shared" = xyes; then
4139 if test x"$enable_shared" = xyes; then
4140 :
4141 else
4142 # we don't disable shared, because it was not selected anyway
4143 coin_disable_shared=no
4144 fi
4145 enable_shared=no
4146 fi
4147 # By default, we only want the shared objects to be compiled
4148 # Check whether --enable-static or --disable-static was given.
4149 if test "${enable_static+set}" = set; then
4150 enableval="$enable_static"
4151 p=${PACKAGE-default}
4152 case $enableval in
4153 yes) enable_static=yes ;;
4154 no) enable_static=no ;;
4155 *)
4156 enable_static=no
4157 # Look at the argument we got. We use all the common list separators.
4158 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4159 for pkg in $enableval; do
4160 IFS="$lt_save_ifs"
4161 if test "X$pkg" = "X$p"; then
4162 enable_static=yes
4163 fi
4164 done
4165 IFS="$lt_save_ifs"
4166 ;;
4167 esac
4168 else
4169 enable_static=no
4170 fi;
4171
4172
4173
4174
4175 # Initialize automake
4176 echo "$as_me:$LINENO: checking for egrep" >&5
4177 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4178 if test "${ac_cv_prog_egrep+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4182 then ac_cv_prog_egrep='grep -E'
4183 else ac_cv_prog_egrep='egrep'
4184 fi
4185 fi
4186 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4187 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4188 EGREP=$ac_cv_prog_egrep
4189
4190
4191 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4192 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4193 LN_S=$as_ln_s
4194 if test "$LN_S" = "ln -s"; then
4195 echo "$as_me:$LINENO: result: yes" >&5
4196 echo "${ECHO_T}yes" >&6
4197 else
4198 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4199 echo "${ECHO_T}no, using $LN_S" >&6
4200 fi
4201
4202 am__api_version="1.9"
4203 # Find a good install program. We prefer a C program (faster),
4204 # so one script is as good as another. But avoid the broken or
4205 # incompatible versions:
4206 # SysV /etc/install, /usr/sbin/install
4207 # SunOS /usr/etc/install
4208 # IRIX /sbin/install
4209 # AIX /bin/install
4210 # AmigaOS /C/install, which installs bootblocks on floppy discs
4211 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4212 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4213 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4214 # OS/2's system install, which has a completely different semantic
4215 # ./install, which can be erroneously created by make from ./install.sh.
4216 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4217 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4218 if test -z "$INSTALL"; then
4219 if test "${ac_cv_path_install+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4224 do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 # Account for people who put trailing slashes in PATH elements.
4228 case $as_dir/ in
4229 ./ | .// | /cC/* | \
4230 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4231 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4232 /usr/ucb/* ) ;;
4233 *)
4234 # OSF1 and SCO ODT 3.0 have their own names for install.
4235 # Don't use installbsd from OSF since it installs stuff as root
4236 # by default.
4237 for ac_prog in ginstall scoinst install; do
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4240 if test $ac_prog = install &&
4241 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4242 # AIX install. It has an incompatible calling convention.
4243 :
4244 elif test $ac_prog = install &&
4245 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4246 # program-specific install script used by HP pwplus--don't use.
4247 :
4248 else
4249 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4250 break 3
4251 fi
4252 fi
4253 done
4254 done
4255 ;;
4256 esac
4257 done
4258
4259
4260 fi
4261 if test "${ac_cv_path_install+set}" = set; then
4262 INSTALL=$ac_cv_path_install
4263 else
4264 # As a last resort, use the slow shell script. We don't cache a
4265 # path for INSTALL within a source directory, because that will
4266 # break other packages using the cache if that directory is
4267 # removed, or if the path is relative.
4268 INSTALL=$ac_install_sh
4269 fi
4270 fi
4271 echo "$as_me:$LINENO: result: $INSTALL" >&5
4272 echo "${ECHO_T}$INSTALL" >&6
4273
4274 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4275 # It thinks the first close brace ends the variable substitution.
4276 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4277
4278 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4279
4280 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4281
4282 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4283 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4284 # Just in case
4285 sleep 1
4286 echo timestamp > conftest.file
4287 # Do `set' in a subshell so we don't clobber the current shell's
4288 # arguments. Must try -L first in case configure is actually a
4289 # symlink; some systems play weird games with the mod time of symlinks
4290 # (eg FreeBSD returns the mod time of the symlink's containing
4291 # directory).
4292 if (
4293 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4294 if test "$*" = "X"; then
4295 # -L didn't work.
4296 set X `ls -t $srcdir/configure conftest.file`
4297 fi
4298 rm -f conftest.file
4299 if test "$*" != "X $srcdir/configure conftest.file" \
4300 && test "$*" != "X conftest.file $srcdir/configure"; then
4301
4302 # If neither matched, then we have a broken ls. This can happen
4303 # if, for instance, CONFIG_SHELL is bash and it inherits a
4304 # broken ls alias from the environment. This has actually
4305 # happened. Such a system could not be considered "sane".
4306 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4307 alias in your environment" >&5
4308 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4309 alias in your environment" >&2;}
4310 { (exit 1); exit 1; }; }
4311 fi
4312
4313 test "$2" = conftest.file
4314 )
4315 then
4316 # Ok.
4317 :
4318 else
4319 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4320 Check your system clock" >&5
4321 echo "$as_me: error: newly created file is older than distributed files!
4322 Check your system clock" >&2;}
4323 { (exit 1); exit 1; }; }
4324 fi
4325 echo "$as_me:$LINENO: result: yes" >&5
4326 echo "${ECHO_T}yes" >&6
4327 test "$program_prefix" != NONE &&
4328 program_transform_name="s,^,$program_prefix,;$program_transform_name"
4329 # Use a double $ so make ignores it.
4330 test "$program_suffix" != NONE &&
4331 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4332 # Double any \ or $. echo might interpret backslashes.
4333 # By default was `s,x,x', remove it if useless.
4334 cat <<\_ACEOF >conftest.sed
4335 s/[\\$]/&&/g;s/;s,x,x,$//
4336 _ACEOF
4337 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4338 rm conftest.sed
4339
4340 # expand $ac_aux_dir to an absolute path
4341 am_aux_dir=`cd $ac_aux_dir && pwd`
4342
4343 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4344 # Use eval to expand $SHELL
4345 if eval "$MISSING --run true"; then
4346 am_missing_run="$MISSING --run "
4347 else
4348 am_missing_run=
4349 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4350 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4351 fi
4352
4353 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4354 # We used to keeping the `.' as first argument, in order to
4355 # allow $(mkdir_p) to be used without argument. As in
4356 # $(mkdir_p) $(somedir)
4357 # where $(somedir) is conditionally defined. However this is wrong
4358 # for two reasons:
4359 # 1. if the package is installed by a user who cannot write `.'
4360 # make install will fail,
4361 # 2. the above comment should most certainly read
4362 # $(mkdir_p) $(DESTDIR)$(somedir)
4363 # so it does not work when $(somedir) is undefined and
4364 # $(DESTDIR) is not.
4365 # To support the latter case, we have to write
4366 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4367 # so the `.' trick is pointless.
4368 mkdir_p='mkdir -p --'
4369 else
4370 # On NextStep and OpenStep, the `mkdir' command does not
4371 # recognize any option. It will interpret all options as
4372 # directories to create, and then abort because `.' already
4373 # exists.
4374 for d in ./-p ./--version;
4375 do
4376 test -d $d && rmdir $d
4377 done
4378 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4379 if test -f "$ac_aux_dir/mkinstalldirs"; then
4380 mkdir_p='$(mkinstalldirs)'
4381 else
4382 mkdir_p='$(install_sh) -d'
4383 fi
4384 fi
4385
4386 for ac_prog in gawk mawk nawk awk
4387 do
4388 # Extract the first word of "$ac_prog", so it can be a program name with args.
4389 set dummy $ac_prog; ac_word=$2
4390 echo "$as_me:$LINENO: checking for $ac_word" >&5
4391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4392 if test "${ac_cv_prog_AWK+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395 if test -n "$AWK"; then
4396 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4400 do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4405 ac_cv_prog_AWK="$ac_prog"
4406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4408 fi
4409 done
4410 done
4411
4412 fi
4413 fi
4414 AWK=$ac_cv_prog_AWK
4415 if test -n "$AWK"; then
4416 echo "$as_me:$LINENO: result: $AWK" >&5
4417 echo "${ECHO_T}$AWK" >&6
4418 else
4419 echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6
4421 fi
4422
4423 test -n "$AWK" && break
4424 done
4425
4426 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4427 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4428 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4429 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 cat >conftest.make <<\_ACEOF
4433 all:
4434 @echo 'ac_maketemp="$(MAKE)"'
4435 _ACEOF
4436 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4437 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4438 if test -n "$ac_maketemp"; then
4439 eval ac_cv_prog_make_${ac_make}_set=yes
4440 else
4441 eval ac_cv_prog_make_${ac_make}_set=no
4442 fi
4443 rm -f conftest.make
4444 fi
4445 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4446 echo "$as_me:$LINENO: result: yes" >&5
4447 echo "${ECHO_T}yes" >&6
4448 SET_MAKE=
4449 else
4450 echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6
4452 SET_MAKE="MAKE=${MAKE-make}"
4453 fi
4454
4455 rm -rf .tst 2>/dev/null
4456 mkdir .tst 2>/dev/null
4457 if test -d .tst; then
4458 am__leading_dot=.
4459 else
4460 am__leading_dot=_
4461 fi
4462 rmdir .tst 2>/dev/null
4463
4464 DEPDIR="${am__leading_dot}deps"
4465
4466 ac_config_commands="$ac_config_commands depfiles"
4467
4468
4469 am_make=${MAKE-make}
4470 cat > confinc << 'END'
4471 am__doit:
4472 @echo done
4473 .PHONY: am__doit
4474 END
4475 # If we don't find an include directive, just comment out the code.
4476 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4477 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4478 am__include="#"
4479 am__quote=
4480 _am_result=none
4481 # First try GNU make style include.
4482 echo "include confinc" > confmf
4483 # We grep out `Entering directory' and `Leaving directory'
4484 # messages which can occur if `w' ends up in MAKEFLAGS.
4485 # In particular we don't look at `^make:' because GNU make might
4486 # be invoked under some other name (usually "gmake"), in which
4487 # case it prints its new name instead of `make'.
4488 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4489 am__include=include
4490 am__quote=
4491 _am_result=GNU
4492 fi
4493 # Now try BSD make style include.
4494 if test "$am__include" = "#"; then
4495 echo '.include "confinc"' > confmf
4496 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4497 am__include=.include
4498 am__quote="\""
4499 _am_result=BSD
4500 fi
4501 fi
4502
4503
4504 echo "$as_me:$LINENO: result: $_am_result" >&5
4505 echo "${ECHO_T}$_am_result" >&6
4506 rm -f confinc confmf
4507
4508 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4509 if test "${enable_dependency_tracking+set}" = set; then
4510 enableval="$enable_dependency_tracking"
4511
4512 fi;
4513 if test "x$enable_dependency_tracking" != xno; then
4514 am_depcomp="$ac_aux_dir/depcomp"
4515 AMDEPBACKSLASH='\'
4516 fi
4517
4518
4519 if test "x$enable_dependency_tracking" != xno; then
4520 AMDEP_TRUE=
4521 AMDEP_FALSE='#'
4522 else
4523 AMDEP_TRUE='#'
4524 AMDEP_FALSE=
4525 fi
4526
4527
4528
4529
4530
4531
4532 # AC_MSG_NOTICE([Beginning automake initialisation.])
4533 # Stuff for automake
4534 # test to see if srcdir already configured
4535 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4536 test -f $srcdir/config.status; then
4537 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4538 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4539 { (exit 1); exit 1; }; }
4540 fi
4541
4542 # test whether we have cygpath
4543 if test -z "$CYGPATH_W"; then
4544 if (cygpath --version) >/dev/null 2>/dev/null; then
4545 CYGPATH_W='cygpath -w'
4546 else
4547 CYGPATH_W=echo
4548 fi
4549 fi
4550
4551
4552 # Define the identity of the package.
4553 PACKAGE='bonmin'
4554 VERSION='1.8.9'
4555
4556
4557 cat >>confdefs.h <<_ACEOF
4558 #define PACKAGE "$PACKAGE"
4559 _ACEOF
4560
4561
4562 cat >>confdefs.h <<_ACEOF
4563 #define VERSION "$VERSION"
4564 _ACEOF
4565
4566 # Some tools Automake needs.
4567
4568 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4569
4570
4571 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4572
4573
4574 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4575
4576
4577 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4578
4579
4580 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4581
4582 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4583
4584 # Installed binaries are usually stripped using `strip' when the user
4585 # run `make install-strip'. However `strip' might not be the right
4586 # tool to use in cross-compilation environments, therefore Automake
4587 # will honor the `STRIP' environment variable to overrule this program.
4588 if test "$cross_compiling" != no; then
4589 if test -n "$ac_tool_prefix"; then
4590 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4591 set dummy ${ac_tool_prefix}strip; ac_word=$2
4592 echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594 if test "${ac_cv_prog_STRIP+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 if test -n "$STRIP"; then
4598 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611 done
4612 done
4613
4614 fi
4615 fi
4616 STRIP=$ac_cv_prog_STRIP
4617 if test -n "$STRIP"; then
4618 echo "$as_me:$LINENO: result: $STRIP" >&5
4619 echo "${ECHO_T}$STRIP" >&6
4620 else
4621 echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6
4623 fi
4624
4625 fi
4626 if test -z "$ac_cv_prog_STRIP"; then
4627 ac_ct_STRIP=$STRIP
4628 # Extract the first word of "strip", so it can be a program name with args.
4629 set dummy strip; ac_word=$2
4630 echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 if test -n "$ac_ct_STRIP"; then
4636 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645 ac_cv_prog_ac_ct_STRIP="strip"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4648 fi
4649 done
4650 done
4651
4652 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4653 fi
4654 fi
4655 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4656 if test -n "$ac_ct_STRIP"; then
4657 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4658 echo "${ECHO_T}$ac_ct_STRIP" >&6
4659 else
4660 echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6
4662 fi
4663
4664 STRIP=$ac_ct_STRIP
4665 else
4666 STRIP="$ac_cv_prog_STRIP"
4667 fi
4668
4669 fi
4670 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4671
4672 # We need awk for the "check" target. The system "awk" is bad on
4673 # some platforms.
4674 # Always define AMTAR for backward compatibility.
4675
4676 AMTAR=${AMTAR-"${am_missing_run}tar"}
4677
4678 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4679
4680
4681
4682
4683 depcc="$CC" am_compiler_list=
4684
4685 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4686 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4687 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4691 # We make a subdir and do the tests there. Otherwise we can end up
4692 # making bogus files that we don't know about and never remove. For
4693 # instance it was reported that on HP-UX the gcc test will end up
4694 # making a dummy file named `D' -- because `-MD' means `put the output
4695 # in D'.
4696 mkdir conftest.dir
4697 # Copy depcomp to subdir because otherwise we won't find it if we're
4698 # using a relative directory.
4699 cp "$am_depcomp" conftest.dir
4700 cd conftest.dir
4701 # We will build objects and dependencies in a subdirectory because
4702 # it helps to detect inapplicable dependency modes. For instance
4703 # both Tru64's cc and ICC support -MD to output dependencies as a
4704 # side effect of compilation, but ICC will put the dependencies in
4705 # the current directory while Tru64 will put them in the object
4706 # directory.
4707 mkdir sub
4708
4709 am_cv_CC_dependencies_compiler_type=none
4710 if test "$am_compiler_list" = ""; then
4711 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4712 fi
4713 for depmode in $am_compiler_list; do
4714 # Setup a source with many dependencies, because some compilers
4715 # like to wrap large dependency lists on column 80 (with \), and
4716 # we should not choose a depcomp mode which is confused by this.
4717 #
4718 # We need to recreate these files for each test, as the compiler may
4719 # overwrite some of them when testing with obscure command lines.
4720 # This happens at least with the AIX C compiler.
4721 : > sub/conftest.c
4722 for i in 1 2 3 4 5 6; do
4723 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4724 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4725 # Solaris 8's {/usr,}/bin/sh.
4726 touch sub/conftst$i.h
4727 done
4728 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4729
4730 case $depmode in
4731 nosideeffect)
4732 # after this tag, mechanisms are not by side-effect, so they'll
4733 # only be used when explicitly requested
4734 if test "x$enable_dependency_tracking" = xyes; then
4735 continue
4736 else
4737 break
4738 fi
4739 ;;
4740 none) break ;;
4741 esac
4742 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4743 # mode. It turns out that the SunPro C++ compiler does not properly
4744 # handle `-M -o', and we need to detect this.
4745 if depmode=$depmode \
4746 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4747 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4748 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4749 >/dev/null 2>conftest.err &&
4750 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4751 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4752 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4753 # icc doesn't choke on unknown options, it will just issue warnings
4754 # or remarks (even with -Werror). So we grep stderr for any message
4755 # that says an option was ignored or not supported.
4756 # When given -MP, icc 7.0 and 7.1 complain thusly:
4757 # icc: Command line warning: ignoring option '-M'; no argument required
4758 # The diagnosis changed in icc 8.0:
4759 # icc: Command line remark: option '-MP' not supported
4760 if (grep 'ignoring option' conftest.err ||
4761 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4762 am_cv_CC_dependencies_compiler_type=$depmode
4763 break
4764 fi
4765 fi
4766 done
4767
4768 cd ..
4769 rm -rf conftest.dir
4770 else
4771 am_cv_CC_dependencies_compiler_type=none
4772 fi
4773
4774 fi
4775 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4776 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4777 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4778
4779
4780
4781 if
4782 test "x$enable_dependency_tracking" != xno \
4783 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4784 am__fastdepCC_TRUE=
4785 am__fastdepCC_FALSE='#'
4786 else
4787 am__fastdepCC_TRUE='#'
4788 am__fastdepCC_FALSE=
4789 fi
4790
4791
4792 depcc="$CXX" am_compiler_list=
4793
4794 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4795 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4796 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4800 # We make a subdir and do the tests there. Otherwise we can end up
4801 # making bogus files that we don't know about and never remove. For
4802 # instance it was reported that on HP-UX the gcc test will end up
4803 # making a dummy file named `D' -- because `-MD' means `put the output
4804 # in D'.
4805 mkdir conftest.dir
4806 # Copy depcomp to subdir because otherwise we won't find it if we're
4807 # using a relative directory.
4808 cp "$am_depcomp" conftest.dir
4809 cd conftest.dir
4810 # We will build objects and dependencies in a subdirectory because
4811 # it helps to detect inapplicable dependency modes. For instance
4812 # both Tru64's cc and ICC support -MD to output dependencies as a
4813 # side effect of compilation, but ICC will put the dependencies in
4814 # the current directory while Tru64 will put them in the object
4815 # directory.
4816 mkdir sub
4817
4818 am_cv_CXX_dependencies_compiler_type=none
4819 if test "$am_compiler_list" = ""; then
4820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4821 fi
4822 for depmode in $am_compiler_list; do
4823 # Setup a source with many dependencies, because some compilers
4824 # like to wrap large dependency lists on column 80 (with \), and
4825 # we should not choose a depcomp mode which is confused by this.
4826 #
4827 # We need to recreate these files for each test, as the compiler may
4828 # overwrite some of them when testing with obscure command lines.
4829 # This happens at least with the AIX C compiler.
4830 : > sub/conftest.c
4831 for i in 1 2 3 4 5 6; do
4832 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4833 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4834 # Solaris 8's {/usr,}/bin/sh.
4835 touch sub/conftst$i.h
4836 done
4837 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4838
4839 case $depmode in
4840 nosideeffect)
4841 # after this tag, mechanisms are not by side-effect, so they'll
4842 # only be used when explicitly requested
4843 if test "x$enable_dependency_tracking" = xyes; then
4844 continue
4845 else
4846 break
4847 fi
4848 ;;
4849 none) break ;;
4850 esac
4851 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4852 # mode. It turns out that the SunPro C++ compiler does not properly
4853 # handle `-M -o', and we need to detect this.
4854 if depmode=$depmode \
4855 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4856 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4857 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4858 >/dev/null 2>conftest.err &&
4859 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4860 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4861 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4862 # icc doesn't choke on unknown options, it will just issue warnings
4863 # or remarks (even with -Werror). So we grep stderr for any message
4864 # that says an option was ignored or not supported.
4865 # When given -MP, icc 7.0 and 7.1 complain thusly:
4866 # icc: Command line warning: ignoring option '-M'; no argument required
4867 # The diagnosis changed in icc 8.0:
4868 # icc: Command line remark: option '-MP' not supported
4869 if (grep 'ignoring option' conftest.err ||
4870 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4871 am_cv_CXX_dependencies_compiler_type=$depmode
4872 break
4873 fi
4874 fi
4875 done
4876
4877 cd ..
4878 rm -rf conftest.dir
4879 else
4880 am_cv_CXX_dependencies_compiler_type=none
4881 fi
4882
4883 fi
4884 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4885 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4886 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4887
4888
4889
4890 if
4891 test "x$enable_dependency_tracking" != xno \
4892 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4893 am__fastdepCXX_TRUE=
4894 am__fastdepCXX_FALSE='#'
4895 else
4896 am__fastdepCXX_TRUE='#'
4897 am__fastdepCXX_FALSE=
4898 fi
4899
4900
4901
4902 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4903 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4904 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4905 if test "${enable_maintainer_mode+set}" = set; then
4906 enableval="$enable_maintainer_mode"
4907 USE_MAINTAINER_MODE=$enableval
4908 else
4909 USE_MAINTAINER_MODE=no
4910 fi;
4911 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4912 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4913
4914
4915 if test $USE_MAINTAINER_MODE = yes; then
4916 MAINTAINER_MODE_TRUE=
4917 MAINTAINER_MODE_FALSE='#'
4918 else
4919 MAINTAINER_MODE_TRUE='#'
4920 MAINTAINER_MODE_FALSE=
4921 fi
4922
4923 MAINT=$MAINTAINER_MODE_TRUE
4924
4925
4926
4927 coin_have_externals=no
4928 if test "$enable_maintainer_mode" = yes; then
4929
4930 # If maintainer mode is chosen, we make sure that the correct versions
4931 # of the tools are used, and that we know where libtool.m4 is (to
4932 # recreate acinclude.m4)
4933
4934
4935 LIBTOOLM4=
4936 # Normally, $HOME
4937 AUTOTOOLS_DFLT=$HOME
4938
4939 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4940 echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4941 if test "${ac_cv_use_correct_autotools+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944 ac_cv_use_correct_autotools=check
4945 fi
4946 echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4947 echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4948
4949 if test $ac_cv_use_correct_autotools = check; then
4950 ac_cv_use_correct_autotools=yes
4951 # Check if we have autoconf
4952 # Extract the first word of "autoconf", so it can be a program name with args.
4953 set dummy autoconf; ac_word=$2
4954 echo "$as_me:$LINENO: checking for $ac_word" >&5
4955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4956 if test "${ac_cv_prog_have_autoconf+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 if test -n "$have_autoconf"; then
4960 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4961 else
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4964 do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4969 ac_cv_prog_have_autoconf="yes"
4970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4972 fi
4973 done
4974 done
4975
4976 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4977 fi
4978 fi
4979 have_autoconf=$ac_cv_prog_have_autoconf
4980 if test -n "$have_autoconf"; then
4981 echo "$as_me:$LINENO: result: $have_autoconf" >&5
4982 echo "${ECHO_T}$have_autoconf" >&6
4983 else
4984 echo "$as_me:$LINENO: result: no" >&5
4985 echo "${ECHO_T}no" >&6
4986 fi
4987
4988 if test $have_autoconf = no; then
4989 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4990 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4991 { (exit 1); exit 1; }; }
4992 fi
4993
4994 # Check whether autoconf is the correct version
4995 correct_version='2.59'
4996 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
4997 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4998 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4999 autoconf --version > confauto.out 2>&1
5000 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5001 echo "$as_me:$LINENO: result: yes" >&5
5002 echo "${ECHO_T}yes" >&6
5003 else
5004 rm -f confauto.out
5005 echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6
5007 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5008 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5009 { (exit 1); exit 1; }; }
5010 fi
5011 rm -f confauto.out
5012
5013 # Check if the executable autoconf is picked up from the correct location
5014 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5015 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5016 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5017 autoconf_dir=`cd $autoconf_dir; pwd`
5018 if test x$AUTOTOOLS_DIR = x; then
5019 want_dir=$AUTOTOOLS_DFLT/bin
5020 else
5021 want_dir=$AUTOTOOLS_DIR/bin
5022 fi
5023 if test $autoconf_dir = `cd $want_dir; pwd`; then
5024 echo "$as_me:$LINENO: result: yes" >&5
5025 echo "${ECHO_T}yes" >&6
5026 else
5027 rm -f confauto.out
5028 echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6
5030 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5031 echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5032 { (exit 1); exit 1; }; }
5033 fi
5034
5035 # Check if we have automake
5036 # Extract the first word of "automake", so it can be a program name with args.
5037 set dummy automake; ac_word=$2
5038 echo "$as_me:$LINENO: checking for $ac_word" >&5
5039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5040 if test "${ac_cv_prog_have_automake+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 if test -n "$have_automake"; then
5044 ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053 ac_cv_prog_have_automake="yes"
5054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5056 fi
5057 done
5058 done
5059
5060 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5061 fi
5062 fi
5063 have_automake=$ac_cv_prog_have_automake
5064 if test -n "$have_automake"; then
5065 echo "$as_me:$LINENO: result: $have_automake" >&5
5066 echo "${ECHO_T}$have_automake" >&6
5067 else
5068 echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5070 fi
5071
5072 if test $have_automake = no; then
5073 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5074 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5075 { (exit 1); exit 1; }; }
5076 fi
5077
5078 # Check whether automake is the correct version
5079 correct_version='1.9.6'
5080 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5081 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5082 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5083 automake --version > confauto.out 2>&1
5084 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5085 echo "$as_me:$LINENO: result: yes" >&5
5086 echo "${ECHO_T}yes" >&6
5087 else
5088 rm -f confauto.out
5089 echo "$as_me:$LINENO: result: no" >&5
5090 echo "${ECHO_T}no" >&6
5091 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5092 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5093 { (exit 1); exit 1; }; }
5094 fi
5095 rm -f confauto.out
5096
5097 # Check if the executable automake is picked up from the correct location
5098 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5099 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5100 automake_dir=`which automake | sed -e 's=/automake=='`
5101 automake_dir=`cd $automake_dir; pwd`
5102 if test x$AUTOTOOLS_DIR = x; then
5103 want_dir=$AUTOTOOLS_DFLT/bin
5104 else
5105 want_dir=$AUTOTOOLS_DIR/bin
5106 fi
5107 if test $automake_dir = `cd $want_dir; pwd`; then
5108 echo "$as_me:$LINENO: result: yes" >&5
5109 echo "${ECHO_T}yes" >&6
5110 else
5111 rm -f confauto.out
5112 echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6
5114 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5115 echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5116 { (exit 1); exit 1; }; }
5117 fi
5118
5119 # Check if this is the correct version of libtool (with escaped dots)
5120 if test x$AUTOTOOLS_DIR = x; then
5121 want_dir=$AUTOTOOLS_DFLT/share
5122 else
5123 want_dir=$AUTOTOOLS_DIR/share
5124 fi
5125 correct_version='1.5.22'
5126 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5127 if test -r $want_dir/libtool/ltmain.sh; then
5128 have_ltmain=yes
5129 :
5130 else
5131 have_ltmain=no
5132 :
5133 fi
5134
5135 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5136 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5137 if test $have_ltmain = yes; then
5138 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5139 echo "$as_me:$LINENO: result: yes" >&5
5140 echo "${ECHO_T}yes" >&6
5141 else
5142 echo "$as_me:$LINENO: result: no" >&5
5143 echo "${ECHO_T}no" >&6
5144 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5145 echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5146 { (exit 1); exit 1; }; }
5147 fi
5148 else
5149 echo "$as_me:$LINENO: result: no" >&5
5150 echo "${ECHO_T}no" >&6
5151 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5152 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5153 { (exit 1); exit 1; }; }
5154 fi
5155 fi
5156
5157 # Check if we can find the libtool file
5158 if test x$AUTOTOOLS_DIR = x; then
5159 want_dir=$AUTOTOOLS_DFLT/share
5160 else
5161 want_dir=$AUTOTOOLS_DIR/share
5162 fi
5163 if test -r $want_dir/aclocal/libtool.m4; then
5164 LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5165 :
5166 else
5167 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5168 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5169 { (exit 1); exit 1; }; }
5170 :
5171 fi
5172
5173
5174 # Check if we have an Dependencies file
5175 if test -r $srcdir/Dependencies; then
5176 coin_have_externals=yes
5177 fi
5178 # Check if subversion is installed and understands https
5179 # Extract the first word of "svn", so it can be a program name with args.
5180 set dummy svn; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_prog_have_svn+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 if test -n "$have_svn"; then
5187 ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_have_svn="yes"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200 done
5201 done
5202
5203 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5204 fi
5205 fi
5206 have_svn=$ac_cv_prog_have_svn
5207 if test -n "$have_svn"; then
5208 echo "$as_me:$LINENO: result: $have_svn" >&5
5209 echo "${ECHO_T}$have_svn" >&6
5210 else
5211 echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5213 fi
5214
5215 if test x$have_svn = xyes; then
5216 echo "$as_me:$LINENO: checking whether svn understands https" >&5
5217 echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5218 if test "${ac_cv_svn_understands_https+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221 svn --version > confauto.out 2>&1
5222 if $EGREP https confauto.out >/dev/null 2>&1; then
5223 ac_cv_svn_understands_https=yes
5224 else
5225 ac_cv_svn_understands_https=no
5226 have_svn=no
5227 ac_cv_prog_have_svn=no
5228 fi
5229 rm -f confauto.out
5230 fi
5231 echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5232 echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5233 fi
5234
5235 # Find the location of the BuildTools directory
5236 BUILDTOOLSDIR=
5237 if test -r $srcdir/BuildTools/coin.m4; then
5238 BUILDTOOLSDIR=$srcdir/BuildTools
5239 elif test -r $srcdir/../BuildTools/coin.m4; then
5240 BUILDTOOLSDIR=$srcdir/../BuildTools
5241 elif test -r $srcdir/../../BuildTools/coin.m4; then
5242 BUILDTOOLSDIR=$srcdir/../../BuildTools
5243 elif test -r $srcdir/../../../BuildTools/coin.m4; then
5244 BUILDTOOLSDIR=$srcdir/../../../BuildTools
5245 else
5246 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5247 echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5248 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5249 fi
5250
5251
5252 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5253 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5254 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5255 fi
5256
5257 # The following variable is set to the name of the directory where
5258 # the autotool scripts are located
5259
5260 AUX_DIR=$ac_aux_dir
5261 fi
5262
5263 # helpful variable for the base directory of this package
5264 abs_source_dir=`cd $srcdir; pwd`
5265
5266
5267 # Stuff for example Makefiles
5268 if test x$prefix = xNONE; then
5269 full_prefix=$ac_default_prefix
5270 else
5271 full_prefix=$prefix
5272 fi
5273
5274
5275 abs_lib_dir=$full_prefix/lib
5276
5277 abs_include_dir=$full_prefix/include
5278
5279 abs_bin_dir=$full_prefix/bin
5280
5281
5282
5283 if test $coin_have_externals = yes && test x$have_svn = xyes; then
5284 HAVE_EXTERNALS_TRUE=
5285 HAVE_EXTERNALS_FALSE='#'
5286 else
5287 HAVE_EXTERNALS_TRUE='#'
5288 HAVE_EXTERNALS_FALSE=
5289 fi
5290
5291
5292 # AC_MSG_NOTICE([End automake initialisation.])
5293
5294
5295
5296 LIBTOOL=
5297 if test -f ../libtool; then
5298 coin_config_dir=..
5299 LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5300 fi
5301 if test "x$LIBTOOL" = x; then
5302 if test -f ../../libtool; then
5303 coin_config_dir=../..
5304 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5305 fi
5306 fi
5307
5308 if test "x$LIBTOOL" = x; then
5309 # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5310 # Stuff for libtool
5311 # Check whether --enable-shared or --disable-shared was given.
5312 if test "${enable_shared+set}" = set; then
5313 enableval="$enable_shared"
5314 p=${PACKAGE-default}
5315 case $enableval in
5316 yes) enable_shared=yes ;;
5317 no) enable_shared=no ;;
5318 *)
5319 enable_shared=no
5320 # Look at the argument we got. We use all the common list separators.
5321 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5322 for pkg in $enableval; do
5323 IFS="$lt_save_ifs"
5324 if test "X$pkg" = "X$p"; then
5325 enable_shared=yes
5326 fi
5327 done
5328 IFS="$lt_save_ifs"
5329 ;;
5330 esac
5331 else
5332 enable_shared=yes
5333 fi;
5334
5335 # Check whether --enable-fast-install or --disable-fast-install was given.
5336 if test "${enable_fast_install+set}" = set; then
5337 enableval="$enable_fast_install"
5338 p=${PACKAGE-default}
5339 case $enableval in
5340 yes) enable_fast_install=yes ;;
5341 no) enable_fast_install=no ;;
5342 *)
5343 enable_fast_install=no
5344 # Look at the argument we got. We use all the common list separators.
5345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5346 for pkg in $enableval; do
5347 IFS="$lt_save_ifs"
5348 if test "X$pkg" = "X$p"; then
5349 enable_fast_install=yes
5350 fi
5351 done
5352 IFS="$lt_save_ifs"
5353 ;;
5354 esac
5355 else
5356 enable_fast_install=yes
5357 fi;
5358
5359 echo "$as_me:$LINENO: checking host system type" >&5
5360 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5361 if test "${ac_cv_host+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364 ac_cv_host_alias=$host_alias
5365 test -z "$ac_cv_host_alias" &&
5366 ac_cv_host_alias=$ac_cv_build_alias
5367 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5368 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5369 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5370 { (exit 1); exit 1; }; }
5371
5372 fi
5373 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5374 echo "${ECHO_T}$ac_cv_host" >&6
5375 host=$ac_cv_host
5376 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5377 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5378 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5379
5380
5381 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5382 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5383 if test "${lt_cv_path_SED+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 # Loop through the user's path and test for sed and gsed.
5387 # Then use that list of sed's as ones to test for truncation.
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for lt_ac_prog in sed gsed; do
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5396 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5397 fi
5398 done
5399 done
5400 done
5401 lt_ac_max=0
5402 lt_ac_count=0
5403 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5404 # along with /bin/sed that truncates output.
5405 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5406 test ! -f $lt_ac_sed && continue
5407 cat /dev/null > conftest.in
5408 lt_ac_count=0
5409 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5410 # Check for GNU sed and select it if it is found.
5411 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5412 lt_cv_path_SED=$lt_ac_sed
5413 break
5414 fi
5415 while true; do
5416 cat conftest.in conftest.in >conftest.tmp
5417 mv conftest.tmp conftest.in
5418 cp conftest.in conftest.nl
5419 echo >>conftest.nl
5420 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5421 cmp -s conftest.out conftest.nl || break
5422 # 10000 chars as input seems more than enough
5423 test $lt_ac_count -gt 10 && break
5424 lt_ac_count=`expr $lt_ac_count + 1`
5425 if test $lt_ac_count -gt $lt_ac_max; then
5426 lt_ac_max=$lt_ac_count
5427 lt_cv_path_SED=$lt_ac_sed
5428 fi
5429 done
5430 done
5431
5432 fi
5433
5434 SED=$lt_cv_path_SED
5435 echo "$as_me:$LINENO: result: $SED" >&5
5436 echo "${ECHO_T}$SED" >&6
5437
5438
5439 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5440 if test "${with_gnu_ld+set}" = set; then
5441 withval="$with_gnu_ld"
5442 test "$withval" = no || with_gnu_ld=yes
5443 else
5444 with_gnu_ld=no
5445 fi;
5446 ac_prog=ld
5447 if test "$GCC" = yes; then
5448 # Check if gcc -print-prog-name=ld gives a path.
5449 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5450 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5451 case $host in
5452 *-*-mingw*)
5453 # gcc leaves a trailing carriage return which upsets mingw
5454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5455 *)
5456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5457 esac
5458 case $ac_prog in
5459 # Accept absolute paths.
5460 [\\/]* | ?:[\\/]*)
5461 re_direlt='/[^/][^/]*/\.\./'
5462 # Canonicalize the pathname of ld
5463 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5464 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5465 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5466 done
5467 test -z "$LD" && LD="$ac_prog"
5468 ;;
5469 "")
5470 # If it fails, then pretend we aren't using GCC.
5471 ac_prog=ld
5472 ;;
5473 *)
5474 # If it is relative, then search for the first ld in PATH.
5475 with_gnu_ld=unknown
5476 ;;
5477 esac
5478 elif test "$with_gnu_ld" = yes; then
5479 echo "$as_me:$LINENO: checking for GNU ld" >&5
5480 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5481 else
5482 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5483 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5484 fi
5485 if test "${lt_cv_path_LD+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488 if test -z "$LD"; then
5489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5490 for ac_dir in $PATH; do
5491 IFS="$lt_save_ifs"
5492 test -z "$ac_dir" && ac_dir=.
5493 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5494 lt_cv_path_LD="$ac_dir/$ac_prog"
5495 # Check to see if the program is GNU ld. I'd rather use --version,
5496 # but apparently some variants of GNU ld only accept -v.
5497 # Break only if it was the GNU/non-GNU ld that we prefer.
5498 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5499 *GNU* | *'with BFD'*)
5500 test "$with_gnu_ld" != no && break
5501 ;;
5502 *)
5503 test "$with_gnu_ld" != yes && break
5504 ;;
5505 esac
5506 fi
5507 done
5508 IFS="$lt_save_ifs"
5509 else
5510 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5511 fi
5512 fi
5513
5514 LD="$lt_cv_path_LD"
5515 if test -n "$LD"; then
5516 echo "$as_me:$LINENO: result: $LD" >&5
5517 echo "${ECHO_T}$LD" >&6
5518 else
5519 echo "$as_me:$LINENO: result: no" >&5
5520 echo "${ECHO_T}no" >&6
5521 fi
5522 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5523 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5524 { (exit 1); exit 1; }; }
5525 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5526 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5527 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 else
5530 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5531 case `$LD -v 2>&1 </dev/null` in
5532 *GNU* | *'with BFD'*)
5533 lt_cv_prog_gnu_ld=yes
5534 ;;
5535 *)
5536 lt_cv_prog_gnu_ld=no
5537 ;;
5538 esac
5539 fi
5540 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5541 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5542 with_gnu_ld=$lt_cv_prog_gnu_ld
5543
5544
5545 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5546 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5547 if test "${lt_cv_ld_reload_flag+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 lt_cv_ld_reload_flag='-r'
5551 fi
5552 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5553 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5554 reload_flag=$lt_cv_ld_reload_flag
5555 case $reload_flag in
5556 "" | " "*) ;;
5557 *) reload_flag=" $reload_flag" ;;
5558 esac
5559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5560 case $host_os in
5561 darwin*)
5562 if test "$GCC" = yes; then
5563 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5564 else
5565 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5566 fi
5567 ;;
5568 esac
5569
5570 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5571 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5572 if test "${lt_cv_path_NM+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575 if test -n "$NM"; then
5576 # Let the user override the test.
5577 lt_cv_path_NM="$NM"
5578 else
5579 lt_nm_to_check="${ac_tool_prefix}nm"
5580 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5581 lt_nm_to_check="$lt_nm_to_check nm"
5582 fi
5583 for lt_tmp_nm in $lt_nm_to_check; do
5584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5585 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5586 IFS="$lt_save_ifs"
5587 test -z "$ac_dir" && ac_dir=.
5588 tmp_nm="$ac_dir/$lt_tmp_nm"
5589 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5590 # Check to see if the nm accepts a BSD-compat flag.
5591 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5592 # nm: unknown option "B" ignored
5593 # Tru64's nm complains that /dev/null is an invalid object file
5594 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5595 */dev/null* | *'Invalid file or object type'*)
5596 lt_cv_path_NM="$tmp_nm -B"
5597 break
5598 ;;
5599 *)
5600 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5601 */dev/null*)
5602 lt_cv_path_NM="$tmp_nm -p"
5603 break
5604 ;;
5605 *)
5606 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5607 continue # so that we can try to find one that supports BSD flags
5608 ;;
5609 esac
5610 ;;
5611 esac
5612 fi
5613 done
5614 IFS="$lt_save_ifs"
5615 done
5616 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5617 fi
5618 fi
5619 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5620 echo "${ECHO_T}$lt_cv_path_NM" >&6
5621 NM="$lt_cv_path_NM"
5622
5623 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5624 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5625 if test "${lt_cv_deplibs_check_method+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628 lt_cv_file_magic_cmd='$MAGIC_CMD'
5629 lt_cv_file_magic_test_file=
5630 lt_cv_deplibs_check_method='unknown'
5631 # Need to set the preceding variable on all platforms that support
5632 # interlibrary dependencies.
5633 # 'none' -- dependencies not supported.
5634 # `unknown' -- same as none, but documents that we really don't know.
5635 # 'pass_all' -- all dependencies passed with no checks.
5636 # 'test_compile' -- check by making test program.
5637 # 'file_magic [[regex]]' -- check by looking for files in library path
5638 # which responds to the $file_magic_cmd with a given extended regex.
5639 # If you have `file' or equivalent on your system and you're not sure
5640 # whether `pass_all' will *always* work, you probably want this one.
5641
5642 case $host_os in
5643 aix4* | aix5*)
5644 lt_cv_deplibs_check_method=pass_all
5645 ;;
5646
5647 beos*)
5648 lt_cv_deplibs_check_method=pass_all
5649 ;;
5650
5651 bsdi[45]*)
5652 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5653 lt_cv_file_magic_cmd='/usr/bin/file -L'
5654 lt_cv_file_magic_test_file=/shlib/libc.so
5655 ;;
5656
5657 cygwin*)
5658 # func_win32_libid is a shell function defined in ltmain.sh
5659 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5660 lt_cv_file_magic_cmd='func_win32_libid'
5661 ;;
5662
5663 mingw* | pw32*)
5664 # Base MSYS/MinGW do not provide the 'file' command needed by
5665 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5666 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5667 lt_cv_file_magic_cmd='$OBJDUMP -f'
5668 ;;
5669
5670 darwin* | rhapsody*)
5671 lt_cv_deplibs_check_method=pass_all
5672 ;;
5673
5674 freebsd* | kfreebsd*-gnu | dragonfly*)
5675 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5676 case $host_cpu in
5677 i*86 )
5678 # Not sure whether the presence of OpenBSD here was a mistake.
5679 # Let's accept both of them until this is cleared up.
5680 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5681 lt_cv_file_magic_cmd=/usr/bin/file
5682 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5683 ;;
5684 esac
5685 else
5686 lt_cv_deplibs_check_method=pass_all
5687 fi
5688 ;;
5689
5690 gnu*)
5691 lt_cv_deplibs_check_method=pass_all
5692 ;;
5693
5694 hpux10.20* | hpux11*)
5695 lt_cv_file_magic_cmd=/usr/bin/file
5696 case $host_cpu in
5697 ia64*)
5698 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5699 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5700 ;;
5701 hppa*64*)
5702 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]'
5703 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5704 ;;
5705 *)
5706 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5707 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5708 ;;
5709 esac
5710 ;;
5711
5712 interix3*)
5713 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5714 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5715 ;;
5716
5717 irix5* | irix6* | nonstopux*)
5718 case $LD in
5719 *-32|*"-32 ") libmagic=32-bit;;
5720 *-n32|*"-n32 ") libmagic=N32;;
5721 *-64|*"-64 ") libmagic=64-bit;;
5722 *) libmagic=never-match;;
5723 esac
5724 lt_cv_deplibs_check_method=pass_all
5725 ;;
5726
5727 # This must be Linux ELF.
5728 linux*)
5729 lt_cv_deplibs_check_method=pass_all
5730 ;;
5731
5732 netbsd*)
5733 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5735 else
5736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5737 fi
5738 ;;
5739
5740 newos6*)
5741 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5742 lt_cv_file_magic_cmd=/usr/bin/file
5743 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5744 ;;
5745
5746 nto-qnx*)
5747 lt_cv_deplibs_check_method=unknown
5748 ;;
5749
5750 openbsd*)
5751 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5753 else
5754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5755 fi
5756 ;;
5757
5758 osf3* | osf4* | osf5*)
5759 lt_cv_deplibs_check_method=pass_all
5760 ;;
5761
5762 solaris*)
5763 lt_cv_deplibs_check_method=pass_all
5764 ;;
5765
5766 sysv4 | sysv4.3*)
5767 case $host_vendor in
5768 motorola)
5769 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]'
5770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5771 ;;
5772 ncr)
5773 lt_cv_deplibs_check_method=pass_all
5774 ;;
5775 sequent)
5776 lt_cv_file_magic_cmd='/bin/file'
5777 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5778 ;;
5779 sni)
5780 lt_cv_file_magic_cmd='/bin/file'
5781 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5782 lt_cv_file_magic_test_file=/lib/libc.so
5783 ;;
5784 siemens)
5785 lt_cv_deplibs_check_method=pass_all
5786 ;;
5787 pc)
5788 lt_cv_deplibs_check_method=pass_all
5789 ;;
5790 esac
5791 ;;
5792
5793 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5794 lt_cv_deplibs_check_method=pass_all
5795 ;;
5796 esac
5797
5798 fi
5799 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5800 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5801 file_magic_cmd=$lt_cv_file_magic_cmd
5802 deplibs_check_method=$lt_cv_deplibs_check_method
5803 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5804
5805
5806
5807
5808 # If no C compiler was specified, use CC.
5809 LTCC=${LTCC-"$CC"}
5810
5811 # If no C compiler flags were specified, use CFLAGS.
5812 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5813
5814 # Allow CC to be a program name with arguments.
5815 compiler=$CC
5816
5817 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5818 if test "${enable_libtool_lock+set}" = set; then
5819 enableval="$enable_libtool_lock"
5820
5821 fi;
5822 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5823
5824 # Some flags need to be propagated to the compiler or linker for good
5825 # libtool support.
5826 case $host in
5827 ia64-*-hpux*)
5828 # Find out which ABI we are using.
5829 echo 'int i;' > conftest.$ac_ext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; then
5835 case `/usr/bin/file conftest.$ac_objext` in
5836 *ELF-32*)
5837 HPUX_IA64_MODE="32"
5838 ;;
5839 *ELF-64*)
5840 HPUX_IA64_MODE="64"
5841 ;;
5842 esac
5843 fi
5844 rm -rf conftest*
5845 ;;
5846 *-*-irix6*)
5847 # Find out which ABI we are using.
5848 echo '#line 5848 "configure"' > conftest.$ac_ext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5850 (eval $ac_compile) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; then
5854 if test "$lt_cv_prog_gnu_ld" = yes; then
5855 case `/usr/bin/file conftest.$ac_objext` in
5856 *32-bit*)
5857 LD="${LD-ld} -melf32bsmip"
5858 ;;
5859 *N32*)
5860 LD="${LD-ld} -melf32bmipn32"
5861 ;;
5862 *64-bit*)
5863 LD="${LD-ld} -melf64bmip"
5864 ;;
5865 esac
5866 else
5867 case `/usr/bin/file conftest.$ac_objext` in
5868 *32-bit*)
5869 LD="${LD-ld} -32"
5870 ;;
5871 *N32*)
5872 LD="${LD-ld} -n32"
5873 ;;
5874 *64-bit*)
5875 LD="${LD-ld} -64"
5876 ;;
5877 esac
5878 fi
5879 fi
5880 rm -rf conftest*
5881 ;;
5882
5883 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5884 # Find out which ABI we are using.
5885 echo 'int i;' > conftest.$ac_ext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5887 (eval $ac_compile) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; then
5891 case `/usr/bin/file conftest.o` in
5892 *32-bit*)
5893 case $host in
5894 x86_64-*linux*)
5895 LD="${LD-ld} -m elf_i386"
5896 ;;
5897 ppc64-*linux*|powerpc64-*linux*)
5898 LD="${LD-ld} -m elf32ppclinux"
5899 ;;
5900 s390x-*linux*)
5901 LD="${LD-ld} -m elf_s390"
5902 ;;
5903 sparc64-*linux*)
5904 LD="${LD-ld} -m elf32_sparc"
5905 ;;
5906 esac
5907 ;;
5908 *64-bit*)
5909 case $host in
5910 x86_64-*linux*)
5911 LD="${LD-ld} -m elf_x86_64"
5912 ;;
5913 ppc*-*linux*|powerpc*-*linux*)
5914 LD="${LD-ld} -m elf64ppc"
5915 ;;
5916 s390*-*linux*)
5917 LD="${LD-ld} -m elf64_s390"
5918 ;;
5919 sparc*-*linux*)
5920 LD="${LD-ld} -m elf64_sparc"
5921 ;;
5922 esac
5923 ;;
5924 esac
5925 fi
5926 rm -rf conftest*
5927 ;;
5928
5929 *-*-sco3.2v5*)
5930 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5931 SAVE_CFLAGS="$CFLAGS"
5932 CFLAGS="$CFLAGS -belf"
5933 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5934 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5935 if test "${lt_cv_cc_needs_belf+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938 ac_ext=c
5939 ac_cpp='$CPP $CPPFLAGS'
5940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5943
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h. */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950
5951 int
5952 main ()
5953 {
5954
5955 ;
5956 return 0;
5957 }
5958 _ACEOF
5959 rm -f conftest.$ac_objext conftest$ac_exeext
5960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5961 (eval $ac_link) 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } &&
5968 { ac_try='test -z "$ac_c_werror_flag"
5969 || test ! -s conftest.err'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 (eval $ac_try) 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; } &&
5975 { ac_try='test -s conftest$ac_exeext'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 (eval $ac_try) 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
5981 lt_cv_cc_needs_belf=yes
5982 else
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5985
5986 lt_cv_cc_needs_belf=no
5987 fi
5988 rm -f conftest.err conftest.$ac_objext \
5989 conftest$ac_exeext conftest.$ac_ext
5990 ac_ext=c
5991 ac_cpp='$CPP $CPPFLAGS'
5992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5995
5996 fi
5997 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5998 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5999 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6000 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6001 CFLAGS="$SAVE_CFLAGS"
6002 fi
6003 ;;
6004 sparc*-*solaris*)
6005 # Find out which ABI we are using.
6006 echo 'int i;' > conftest.$ac_ext
6007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008 (eval $ac_compile) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; then
6012 case `/usr/bin/file conftest.o` in
6013 *64-bit*)
6014 case $lt_cv_prog_gnu_ld in
6015 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6016 *) LD="${LD-ld} -64" ;;
6017 esac
6018 ;;
6019 esac
6020 fi
6021 rm -rf conftest*
6022 ;;
6023
6024
6025 esac
6026
6027 need_locks="$enable_libtool_lock"
6028
6029
6030 ac_ext=c
6031 ac_cpp='$CPP $CPPFLAGS'
6032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6036 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6037 # On Suns, sometimes $CPP names a directory.
6038 if test -n "$CPP" && test -d "$CPP"; then
6039 CPP=
6040 fi
6041 if test -z "$CPP"; then
6042 if test "${ac_cv_prog_CPP+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045 # Double quotes because CPP needs to be expanded
6046 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6047 do
6048 ac_preproc_ok=false
6049 for ac_c_preproc_warn_flag in '' yes
6050 do
6051 # Use a header file that comes with gcc, so configuring glibc
6052 # with a fresh cross-compiler works.
6053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6054 # <limits.h> exists even on freestanding compilers.
6055 # On the NeXT, cc -E runs the code through the compiler's parser,
6056 # not just through cpp. "Syntax error" is here to catch this case.
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h. */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 #ifdef __STDC__
6064 # include <limits.h>
6065 #else
6066 # include <assert.h>
6067 #endif
6068 Syntax error
6069 _ACEOF
6070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } >/dev/null; then
6078 if test -s conftest.err; then
6079 ac_cpp_err=$ac_c_preproc_warn_flag
6080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6081 else
6082 ac_cpp_err=
6083 fi
6084 else
6085 ac_cpp_err=yes
6086 fi
6087 if test -z "$ac_cpp_err"; then
6088 :
6089 else
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093 # Broken: fails on valid input.
6094 continue
6095 fi
6096 rm -f conftest.err conftest.$ac_ext
6097
6098 # OK, works on sane cases. Now check whether non-existent headers
6099 # can be detected and how.
6100 cat >conftest.$ac_ext <<_ACEOF
6101 /* confdefs.h. */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6106 #include <ac_nonexistent.h>
6107 _ACEOF
6108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6110 ac_status=$?
6111 grep -v '^ *+' conftest.er1 >conftest.err
6112 rm -f conftest.er1
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } >/dev/null; then
6116 if test -s conftest.err; then
6117 ac_cpp_err=$ac_c_preproc_warn_flag
6118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6119 else
6120 ac_cpp_err=
6121 fi
6122 else
6123 ac_cpp_err=yes
6124 fi
6125 if test -z "$ac_cpp_err"; then
6126 # Broken: success on invalid input.
6127 continue
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132 # Passes both tests.
6133 ac_preproc_ok=:
6134 break
6135 fi
6136 rm -f conftest.err conftest.$ac_ext
6137
6138 done
6139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6140 rm -f conftest.err conftest.$ac_ext
6141 if $ac_preproc_ok; then
6142 break
6143 fi
6144
6145 done
6146 ac_cv_prog_CPP=$CPP
6147
6148 fi
6149 CPP=$ac_cv_prog_CPP
6150 else
6151 ac_cv_prog_CPP=$CPP
6152 fi
6153 echo "$as_me:$LINENO: result: $CPP" >&5
6154 echo "${ECHO_T}$CPP" >&6
6155 ac_preproc_ok=false
6156 for ac_c_preproc_warn_flag in '' yes
6157 do
6158 # Use a header file that comes with gcc, so configuring glibc
6159 # with a fresh cross-compiler works.
6160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6161 # <limits.h> exists even on freestanding compilers.
6162 # On the NeXT, cc -E runs the code through the compiler's parser,
6163 # not just through cpp. "Syntax error" is here to catch this case.
6164 cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h. */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #ifdef __STDC__
6171 # include <limits.h>
6172 #else
6173 # include <assert.h>
6174 #endif
6175 Syntax error
6176 _ACEOF
6177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } >/dev/null; then
6185 if test -s conftest.err; then
6186 ac_cpp_err=$ac_c_preproc_warn_flag
6187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6188 else
6189 ac_cpp_err=
6190 fi
6191 else
6192 ac_cpp_err=yes
6193 fi
6194 if test -z "$ac_cpp_err"; then
6195 :
6196 else
6197 echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.$ac_ext >&5
6199
6200 # Broken: fails on valid input.
6201 continue
6202 fi
6203 rm -f conftest.err conftest.$ac_ext
6204
6205 # OK, works on sane cases. Now check whether non-existent headers
6206 # can be detected and how.
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 #include <ac_nonexistent.h>
6214 _ACEOF
6215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } >/dev/null; then
6223 if test -s conftest.err; then
6224 ac_cpp_err=$ac_c_preproc_warn_flag
6225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6226 else
6227 ac_cpp_err=
6228 fi
6229 else
6230 ac_cpp_err=yes
6231 fi
6232 if test -z "$ac_cpp_err"; then
6233 # Broken: success on invalid input.
6234 continue
6235 else
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239 # Passes both tests.
6240 ac_preproc_ok=:
6241 break
6242 fi
6243 rm -f conftest.err conftest.$ac_ext
6244
6245 done
6246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6247 rm -f conftest.err conftest.$ac_ext
6248 if $ac_preproc_ok; then
6249 :
6250 else
6251 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6252 See \`config.log' for more details." >&5
6253 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6254 See \`config.log' for more details." >&2;}
6255 { (exit 1); exit 1; }; }
6256 fi
6257
6258 ac_ext=c
6259 ac_cpp='$CPP $CPPFLAGS'
6260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6263
6264
6265 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6266 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6267 if test "${ac_cv_header_stdc+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270 cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h. */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 #include <stdlib.h>
6277 #include <stdarg.h>
6278 #include <string.h>
6279 #include <float.h>
6280
6281 int
6282 main ()
6283 {
6284
6285 ;
6286 return 0;
6287 }
6288 _ACEOF
6289 rm -f conftest.$ac_objext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6291 (eval $ac_compile) 2>conftest.er1
6292 ac_status=$?
6293 grep -v '^ *+' conftest.er1 >conftest.err
6294 rm -f conftest.er1
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try='test -z "$ac_c_werror_flag"
6299 || test ! -s conftest.err'
6300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 (eval $ac_try) 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; } &&
6305 { ac_try='test -s conftest.$ac_objext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 ac_cv_header_stdc=yes
6312 else
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6315
6316 ac_cv_header_stdc=no
6317 fi
6318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6319
6320 if test $ac_cv_header_stdc = yes; then
6321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6322 cat >conftest.$ac_ext <<_ACEOF
6323 /* confdefs.h. */
6324 _ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6328 #include <string.h>
6329
6330 _ACEOF
6331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6332 $EGREP "memchr" >/dev/null 2>&1; then
6333 :
6334 else
6335 ac_cv_header_stdc=no
6336 fi
6337 rm -f conftest*
6338
6339 fi
6340
6341 if test $ac_cv_header_stdc = yes; then
6342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6343 cat >conftest.$ac_ext <<_ACEOF
6344 /* confdefs.h. */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6349 #include <stdlib.h>
6350
6351 _ACEOF
6352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6353 $EGREP "free" >/dev/null 2>&1; then
6354 :
6355 else
6356 ac_cv_header_stdc=no
6357 fi
6358 rm -f conftest*
6359
6360 fi
6361
6362 if test $ac_cv_header_stdc = yes; then
6363 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6364 if test "$cross_compiling" = yes; then
6365 :
6366 else
6367 cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h. */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 #include <ctype.h>
6374 #if ((' ' & 0x0FF) == 0x020)
6375 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6376 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6377 #else
6378 # define ISLOWER(c) \
6379 (('a' <= (c) && (c) <= 'i') \
6380 || ('j' <= (c) && (c) <= 'r') \
6381 || ('s' <= (c) && (c) <= 'z'))
6382 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6383 #endif
6384
6385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6386 int
6387 main ()
6388 {
6389 int i;
6390 for (i = 0; i < 256; i++)
6391 if (XOR (islower (i), ISLOWER (i))
6392 || toupper (i) != TOUPPER (i))
6393 exit(2);
6394 exit (0);
6395 }
6396 _ACEOF
6397 rm -f conftest$ac_exeext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 :
6409 else
6410 echo "$as_me: program exited with status $ac_status" >&5
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6413
6414 ( exit $ac_status )
6415 ac_cv_header_stdc=no
6416 fi
6417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6418 fi
6419 fi
6420 fi
6421 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6422 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6423 if test $ac_cv_header_stdc = yes; then
6424
6425 cat >>confdefs.h <<\_ACEOF
6426 #define STDC_HEADERS 1
6427 _ACEOF
6428
6429 fi
6430
6431 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6442 inttypes.h stdint.h unistd.h
6443 do
6444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6445 echo "$as_me:$LINENO: checking for $ac_header" >&5
6446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h. */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 $ac_includes_default
6457
6458 #include <$ac_header>
6459 _ACEOF
6460 rm -f conftest.$ac_objext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462 (eval $ac_compile) 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try='test -z "$ac_c_werror_flag"
6470 || test ! -s conftest.err'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 (eval $ac_try) 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; } &&
6476 { ac_try='test -s conftest.$ac_objext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 eval "$as_ac_Header=yes"
6483 else
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6486
6487 eval "$as_ac_Header=no"
6488 fi
6489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6490 fi
6491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6494 cat >>confdefs.h <<_ACEOF
6495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6496 _ACEOF
6497
6498 fi
6499
6500 done
6501
6502
6503
6504 for ac_header in dlfcn.h
6505 do
6506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6508 echo "$as_me:$LINENO: checking for $ac_header" >&5
6509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 fi
6513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6515 else
6516 # Is the header compilable?
6517 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6519 cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h. */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6525 $ac_includes_default
6526 #include <$ac_header>
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_c_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_header_compiler=yes
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555 ac_header_compiler=no
6556 fi
6557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6559 echo "${ECHO_T}$ac_header_compiler" >&6
6560
6561 # Is the header present?
6562 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #include <$ac_header>
6571 _ACEOF
6572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } >/dev/null; then
6580 if test -s conftest.err; then
6581 ac_cpp_err=$ac_c_preproc_warn_flag
6582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6583 else
6584 ac_cpp_err=
6585 fi
6586 else
6587 ac_cpp_err=yes
6588 fi
6589 if test -z "$ac_cpp_err"; then
6590 ac_header_preproc=yes
6591 else
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6594
6595 ac_header_preproc=no
6596 fi
6597 rm -f conftest.err conftest.$ac_ext
6598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6599 echo "${ECHO_T}$ac_header_preproc" >&6
6600
6601 # So? What about this header?
6602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6603 yes:no: )
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6608 ac_header_preproc=yes
6609 ;;
6610 no:yes:* )
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6623 (
6624 cat <<\_ASBOX
6625 ## -------------------------------------- ##
6626 ## Report this to [email protected] ##
6627 ## -------------------------------------- ##
6628 _ASBOX
6629 ) |
6630 sed "s/^/$as_me: WARNING: /" >&2
6631 ;;
6632 esac
6633 echo "$as_me:$LINENO: checking for $ac_header" >&5
6634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638 eval "$as_ac_Header=\$ac_header_preproc"
6639 fi
6640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6642
6643 fi
6644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6645 cat >>confdefs.h <<_ACEOF
6646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6647 _ACEOF
6648
6649 fi
6650
6651 done
6652
6653
6654
6655 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6656 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6657 (test "X$CXX" != "Xg++"))) ; then
6658 ac_ext=cc
6659 ac_cpp='$CXXCPP $CPPFLAGS'
6660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6663 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6664 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6665 if test -z "$CXXCPP"; then
6666 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669 # Double quotes because CXXCPP needs to be expanded
6670 for CXXCPP in "$CXX -E" "/lib/cpp"
6671 do
6672 ac_preproc_ok=false
6673 for ac_cxx_preproc_warn_flag in '' yes
6674 do
6675 # Use a header file that comes with gcc, so configuring glibc
6676 # with a fresh cross-compiler works.
6677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6678 # <limits.h> exists even on freestanding compilers.
6679 # On the NeXT, cc -E runs the code through the compiler's parser,
6680 # not just through cpp. "Syntax error" is here to catch this case.
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 #ifdef __STDC__
6688 # include <limits.h>
6689 #else
6690 # include <assert.h>
6691 #endif
6692 Syntax error
6693 _ACEOF
6694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } >/dev/null; then
6702 if test -s conftest.err; then
6703 ac_cpp_err=$ac_cxx_preproc_warn_flag
6704 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6705 else
6706 ac_cpp_err=
6707 fi
6708 else
6709 ac_cpp_err=yes
6710 fi
6711 if test -z "$ac_cpp_err"; then
6712 :
6713 else
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6716
6717 # Broken: fails on valid input.
6718 continue
6719 fi
6720 rm -f conftest.err conftest.$ac_ext
6721
6722 # OK, works on sane cases. Now check whether non-existent headers
6723 # can be detected and how.
6724 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h. */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 #include <ac_nonexistent.h>
6731 _ACEOF
6732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
6736 rm -f conftest.er1
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } >/dev/null; then
6740 if test -s conftest.err; then
6741 ac_cpp_err=$ac_cxx_preproc_warn_flag
6742 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6743 else
6744 ac_cpp_err=
6745 fi
6746 else
6747 ac_cpp_err=yes
6748 fi
6749 if test -z "$ac_cpp_err"; then
6750 # Broken: success on invalid input.
6751 continue
6752 else
6753 echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6755
6756 # Passes both tests.
6757 ac_preproc_ok=:
6758 break
6759 fi
6760 rm -f conftest.err conftest.$ac_ext
6761
6762 done
6763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6764 rm -f conftest.err conftest.$ac_ext
6765 if $ac_preproc_ok; then
6766 break
6767 fi
6768
6769 done
6770 ac_cv_prog_CXXCPP=$CXXCPP
6771
6772 fi
6773 CXXCPP=$ac_cv_prog_CXXCPP
6774 else
6775 ac_cv_prog_CXXCPP=$CXXCPP
6776 fi
6777 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6778 echo "${ECHO_T}$CXXCPP" >&6
6779 ac_preproc_ok=false
6780 for ac_cxx_preproc_warn_flag in '' yes
6781 do
6782 # Use a header file that comes with gcc, so configuring glibc
6783 # with a fresh cross-compiler works.
6784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6785 # <limits.h> exists even on freestanding compilers.
6786 # On the NeXT, cc -E runs the code through the compiler's parser,
6787 # not just through cpp. "Syntax error" is here to catch this case.
6788 cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h. */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 #ifdef __STDC__
6795 # include <limits.h>
6796 #else
6797 # include <assert.h>
6798 #endif
6799 Syntax error
6800 _ACEOF
6801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } >/dev/null; then
6809 if test -s conftest.err; then
6810 ac_cpp_err=$ac_cxx_preproc_warn_flag
6811 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6812 else
6813 ac_cpp_err=
6814 fi
6815 else
6816 ac_cpp_err=yes
6817 fi
6818 if test -z "$ac_cpp_err"; then
6819 :
6820 else
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6823
6824 # Broken: fails on valid input.
6825 continue
6826 fi
6827 rm -f conftest.err conftest.$ac_ext
6828
6829 # OK, works on sane cases. Now check whether non-existent headers
6830 # can be detected and how.
6831 cat >conftest.$ac_ext <<_ACEOF
6832 /* confdefs.h. */
6833 _ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h. */
6837 #include <ac_nonexistent.h>
6838 _ACEOF
6839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6841 ac_status=$?
6842 grep -v '^ *+' conftest.er1 >conftest.err
6843 rm -f conftest.er1
6844 cat conftest.err >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } >/dev/null; then
6847 if test -s conftest.err; then
6848 ac_cpp_err=$ac_cxx_preproc_warn_flag
6849 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6850 else
6851 ac_cpp_err=
6852 fi
6853 else
6854 ac_cpp_err=yes
6855 fi
6856 if test -z "$ac_cpp_err"; then
6857 # Broken: success on invalid input.
6858 continue
6859 else
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6862
6863 # Passes both tests.
6864 ac_preproc_ok=:
6865 break
6866 fi
6867 rm -f conftest.err conftest.$ac_ext
6868
6869 done
6870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6871 rm -f conftest.err conftest.$ac_ext
6872 if $ac_preproc_ok; then
6873 :
6874 else
6875 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6876 See \`config.log' for more details." >&5
6877 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6878 See \`config.log' for more details." >&2;}
6879 { (exit 1); exit 1; }; }
6880 fi
6881
6882 ac_ext=cc
6883 ac_cpp='$CXXCPP $CPPFLAGS'
6884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6887
6888 fi
6889
6890 ac_ext=f
6891 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6892 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6893 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6894 if test -n "$ac_tool_prefix"; then
6895 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6896 do
6897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6899 echo "$as_me:$LINENO: checking for $ac_word" >&5
6900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6901 if test "${ac_cv_prog_F77+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 else
6904 if test -n "$F77"; then
6905 ac_cv_prog_F77="$F77" # Let the user override the test.
6906 else
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6909 do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6914 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918 done
6919 done
6920
6921 fi
6922 fi
6923 F77=$ac_cv_prog_F77
6924 if test -n "$F77"; then
6925 echo "$as_me:$LINENO: result: $F77" >&5
6926 echo "${ECHO_T}$F77" >&6
6927 else
6928 echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6
6930 fi
6931
6932 test -n "$F77" && break
6933 done
6934 fi
6935 if test -z "$F77"; then
6936 ac_ct_F77=$F77
6937 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6938 do
6939 # Extract the first word of "$ac_prog", so it can be a program name with args.
6940 set dummy $ac_prog; ac_word=$2
6941 echo "$as_me:$LINENO: checking for $ac_word" >&5
6942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6943 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946 if test -n "$ac_ct_F77"; then
6947 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956 ac_cv_prog_ac_ct_F77="$ac_prog"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960 done
6961 done
6962
6963 fi
6964 fi
6965 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6966 if test -n "$ac_ct_F77"; then
6967 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6968 echo "${ECHO_T}$ac_ct_F77" >&6
6969 else
6970 echo "$as_me:$LINENO: result: no" >&5
6971 echo "${ECHO_T}no" >&6
6972 fi
6973
6974 test -n "$ac_ct_F77" && break
6975 done
6976
6977 F77=$ac_ct_F77
6978 fi
6979
6980
6981 # Provide some information about the compiler.
6982 echo "$as_me:6982:" \
6983 "checking for Fortran 77 compiler version" >&5
6984 ac_compiler=`set X $ac_compile; echo $2`
6985 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6986 (eval $ac_compiler --version </dev/null >&5) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }
6990 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6991 (eval $ac_compiler -v </dev/null >&5) 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }
6995 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6996 (eval $ac_compiler -V </dev/null >&5) 2>&5
6997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }
7000 rm -f a.out
7001
7002 # If we don't use `.F' as extension, the preprocessor is not run on the
7003 # input file. (Note that this only needs to work for GNU compilers.)
7004 ac_save_ext=$ac_ext
7005 ac_ext=F
7006 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7007 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7008 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011 cat >conftest.$ac_ext <<_ACEOF
7012 program main
7013 #ifndef __GNUC__
7014 choke me
7015 #endif
7016
7017 end
7018 _ACEOF
7019 rm -f conftest.$ac_objext
7020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7021 (eval $ac_compile) 2>conftest.er1
7022 ac_status=$?
7023 grep -v '^ *+' conftest.er1 >conftest.err
7024 rm -f conftest.er1
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } &&
7028 { ac_try='test -z "$ac_f77_werror_flag"
7029 || test ! -s conftest.err'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 (eval $ac_try) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; } &&
7035 { ac_try='test -s conftest.$ac_objext'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }; then
7041 ac_compiler_gnu=yes
7042 else
7043 echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7045
7046 ac_compiler_gnu=no
7047 fi
7048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7049 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7050
7051 fi
7052 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7053 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7054 ac_ext=$ac_save_ext
7055 ac_test_FFLAGS=${FFLAGS+set}
7056 ac_save_FFLAGS=$FFLAGS
7057 FFLAGS=
7058 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7059 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7060 if test "${ac_cv_prog_f77_g+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063 FFLAGS=-g
7064 cat >conftest.$ac_ext <<_ACEOF
7065 program main
7066
7067 end
7068 _ACEOF
7069 rm -f conftest.$ac_objext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071 (eval $ac_compile) 2>conftest.er1
7072 ac_status=$?
7073 grep -v '^ *+' conftest.er1 >conftest.err
7074 rm -f conftest.er1
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } &&
7078 { ac_try='test -z "$ac_f77_werror_flag"
7079 || test ! -s conftest.err'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 (eval $ac_try) 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; } &&
7085 { ac_try='test -s conftest.$ac_objext'
7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 (eval $ac_try) 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; }; then
7091 ac_cv_prog_f77_g=yes
7092 else
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7095
7096 ac_cv_prog_f77_g=no
7097 fi
7098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7099
7100 fi
7101 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7102 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7103 if test "$ac_test_FFLAGS" = set; then
7104 FFLAGS=$ac_save_FFLAGS
7105 elif test $ac_cv_prog_f77_g = yes; then
7106 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7107 FFLAGS="-g -O2"
7108 else
7109 FFLAGS="-g"
7110 fi
7111 else
7112 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7113 FFLAGS="-O2"
7114 else
7115 FFLAGS=
7116 fi
7117 fi
7118
7119 G77=`test $ac_compiler_gnu = yes && echo yes`
7120 ac_ext=c
7121 ac_cpp='$CPP $CPPFLAGS'
7122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7125
7126
7127
7128 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7129
7130 # find the maximum length of command line arguments
7131 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7132 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7133 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136 i=0
7137 teststring="ABCD"
7138
7139 case $build_os in
7140 msdosdjgpp*)
7141 # On DJGPP, this test can blow up pretty badly due to problems in libc
7142 # (any single argument exceeding 2000 bytes causes a buffer overrun
7143 # during glob expansion). Even if it were fixed, the result of this
7144 # check would be larger than it should be.
7145 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7146 ;;
7147
7148 gnu*)
7149 # Under GNU Hurd, this test is not required because there is
7150 # no limit to the length of command line arguments.
7151 # Libtool will interpret -1 as no limit whatsoever
7152 lt_cv_sys_max_cmd_len=-1;
7153 ;;
7154
7155 cygwin* | mingw*)
7156 # On Win9x/ME, this test blows up -- it succeeds, but takes
7157 # about 5 minutes as the teststring grows exponentially.
7158 # Worse, since 9x/ME are not pre-emptively multitasking,
7159 # you end up with a "frozen" computer, even though with patience
7160 # the test eventually succeeds (with a max line length of 256k).
7161 # Instead, let's just punt: use the minimum linelength reported by
7162 # all of the supported platforms: 8192 (on NT/2K/XP).
7163 lt_cv_sys_max_cmd_len=8192;
7164 ;;
7165
7166 amigaos*)
7167 # On AmigaOS with pdksh, this test takes hours, literally.
7168 # So we just punt and use a minimum line length of 8192.
7169 lt_cv_sys_max_cmd_len=8192;
7170 ;;
7171
7172 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7173 # This has been around since 386BSD, at least. Likely further.
7174 if test -x /sbin/sysctl; then
7175 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7176 elif test -x /usr/sbin/sysctl; then
7177 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7178 else
7179 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7180 fi
7181 # And add a safety zone
7182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7184 ;;
7185
7186 interix*)
7187 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7188 lt_cv_sys_max_cmd_len=196608
7189 ;;
7190
7191 osf*)
7192 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7193 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7194 # nice to cause kernel panics so lets avoid the loop below.
7195 # First set a reasonable default.
7196 lt_cv_sys_max_cmd_len=16384
7197 #
7198 if test -x /sbin/sysconfig; then
7199 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7200 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7201 esac
7202 fi
7203 ;;
7204 sco3.2v5*)
7205 lt_cv_sys_max_cmd_len=102400
7206 ;;
7207 sysv5* | sco5v6* | sysv4.2uw2*)
7208 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7209 if test -n "$kargmax"; then
7210 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7211 else
7212 lt_cv_sys_max_cmd_len=32768
7213 fi
7214 ;;
7215 *)
7216 # If test is not a shell built-in, we'll probably end up computing a
7217 # maximum length that is only half of the actual maximum length, but
7218 # we can't tell.
7219 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7220 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7221 = "XX$teststring") >/dev/null 2>&1 &&
7222 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7223 lt_cv_sys_max_cmd_len=$new_result &&
7224 test $i != 17 # 1/2 MB should be enough
7225 do
7226 i=`expr $i + 1`
7227 teststring=$teststring$teststring
7228 done
7229 teststring=
7230 # Add a significant safety factor because C++ compilers can tack on massive
7231 # amounts of additional arguments before passing them to the linker.
7232 # It appears as though 1/2 is a usable value.
7233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7234 ;;
7235 esac
7236
7237 fi
7238
7239 if test -n $lt_cv_sys_max_cmd_len ; then
7240 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7241 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7242 else
7243 echo "$as_me:$LINENO: result: none" >&5
7244 echo "${ECHO_T}none" >&6
7245 fi
7246
7247
7248
7249
7250 # Check for command to grab the raw symbol name followed by C symbol from nm.
7251 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7252 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7253 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256
7257 # These are sane defaults that work on at least a few old systems.
7258 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7259
7260 # Character class describing NM global symbol codes.
7261 symcode='[BCDEGRST]'
7262
7263 # Regexp to match symbols that can be accessed directly from C.
7264 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7265
7266 # Transform an extracted symbol line into a proper C declaration
7267 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7268
7269 # Transform an extracted symbol line into symbol name and symbol address
7270 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'"
7271
7272 # Define system-specific variables.
7273 case $host_os in
7274 aix*)
7275 symcode='[BCDT]'
7276 ;;
7277 cygwin* | mingw* | pw32*)
7278 symcode='[ABCDGISTW]'
7279 ;;
7280 hpux*) # Its linker distinguishes data from code symbols
7281 if test "$host_cpu" = ia64; then
7282 symcode='[ABCDEGRST]'
7283 fi
7284 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7285 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'"
7286 ;;
7287 linux*)
7288 if test "$host_cpu" = ia64; then
7289 symcode='[ABCDGIRSTW]'
7290 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7291 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'"
7292 fi
7293 ;;
7294 irix* | nonstopux*)
7295 symcode='[BCDEGRST]'
7296 ;;
7297 osf*)
7298 symcode='[BCDEGQRST]'
7299 ;;
7300 solaris*)
7301 symcode='[BDRT]'
7302 ;;
7303 sco3.2v5*)
7304 symcode='[DT]'
7305 ;;
7306 sysv4.2uw2*)
7307 symcode='[DT]'
7308 ;;
7309 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7310 symcode='[ABDT]'
7311 ;;
7312 sysv4)
7313 symcode='[DFNSTU]'
7314 ;;
7315 esac
7316
7317 # Handle CRLF in mingw tool chain
7318 opt_cr=
7319 case $build_os in
7320 mingw*)
7321 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7322 ;;
7323 esac
7324
7325 # If we're using GNU nm, then use its standard symbol codes.
7326 case `$NM -V 2>&1` in
7327 *GNU* | *'with BFD'*)
7328 symcode='[ABCDGIRSTW]' ;;
7329 esac
7330
7331 # Try without a prefix undercore, then with it.
7332 for ac_symprfx in "" "_"; do
7333
7334 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7335 symxfrm="\\1 $ac_symprfx\\2 \\2"
7336
7337 # Write the raw and C identifiers.
7338 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7339
7340 # Check to see that the pipe works correctly.
7341 pipe_works=no
7342
7343 rm -f conftest*
7344 cat > conftest.$ac_ext <<EOF
7345 #ifdef __cplusplus
7346 extern "C" {
7347 #endif
7348 char nm_test_var;
7349 void nm_test_func(){}
7350 #ifdef __cplusplus
7351 }
7352 #endif
7353 int main(){nm_test_var='a';nm_test_func();return(0);}
7354 EOF
7355
7356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7357 (eval $ac_compile) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; then
7361 # Now try to grab the symbols.
7362 nlist=conftest.nm
7363 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7364 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7365 ac_status=$?
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && test -s "$nlist"; then
7368 # Try sorting and uniquifying the output.
7369 if sort "$nlist" | uniq > "$nlist"T; then
7370 mv -f "$nlist"T "$nlist"
7371 else
7372 rm -f "$nlist"T
7373 fi
7374
7375 # Make sure that we snagged all the symbols we need.
7376 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7377 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7378 cat <<EOF > conftest.$ac_ext
7379 #ifdef __cplusplus
7380 extern "C" {
7381 #endif
7382
7383 EOF
7384 # Now generate the symbol file.
7385 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7386
7387 cat <<EOF >> conftest.$ac_ext
7388 #if defined (__STDC__) && __STDC__
7389 # define lt_ptr_t void *
7390 #else
7391 # define lt_ptr_t char *
7392 # define const
7393 #endif
7394
7395 /* The mapping between symbol names and symbols. */
7396 const struct {
7397 const char *name;
7398 lt_ptr_t address;
7399 }
7400 lt_preloaded_symbols[] =
7401 {
7402 EOF
7403 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7404 cat <<\EOF >> conftest.$ac_ext
7405 {0, (lt_ptr_t) 0}
7406 };
7407
7408 #ifdef __cplusplus
7409 }
7410 #endif
7411 EOF
7412 # Now try linking the two files.
7413 mv conftest.$ac_objext conftstm.$ac_objext
7414 lt_save_LIBS="$LIBS"
7415 lt_save_CFLAGS="$CFLAGS"
7416 LIBS="conftstm.$ac_objext"
7417 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7419 (eval $ac_link) 2>&5
7420 ac_status=$?
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7423 pipe_works=yes
7424 fi
7425 LIBS="$lt_save_LIBS"
7426 CFLAGS="$lt_save_CFLAGS"
7427 else
7428 echo "cannot find nm_test_func in $nlist" >&5
7429 fi
7430 else
7431 echo "cannot find nm_test_var in $nlist" >&5
7432 fi
7433 else
7434 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7435 fi
7436 else
7437 echo "$progname: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7439 fi
7440 rm -f conftest* conftst*
7441
7442 # Do not use the global_symbol_pipe unless it works.
7443 if test "$pipe_works" = yes; then
7444 break
7445 else
7446 lt_cv_sys_global_symbol_pipe=
7447 fi
7448 done
7449
7450 fi
7451
7452 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7453 lt_cv_sys_global_symbol_to_cdecl=
7454 fi
7455 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7456 echo "$as_me:$LINENO: result: failed" >&5
7457 echo "${ECHO_T}failed" >&6
7458 else
7459 echo "$as_me:$LINENO: result: ok" >&5
7460 echo "${ECHO_T}ok" >&6
7461 fi
7462
7463 echo "$as_me:$LINENO: checking for objdir" >&5
7464 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7465 if test "${lt_cv_objdir+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468 rm -f .libs 2>/dev/null
7469 mkdir .libs 2>/dev/null
7470 if test -d .libs; then
7471 lt_cv_objdir=.libs
7472 else
7473 # MS-DOS does not allow filenames that begin with a dot.
7474 lt_cv_objdir=_libs
7475 fi
7476 rmdir .libs 2>/dev/null
7477 fi
7478 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7479 echo "${ECHO_T}$lt_cv_objdir" >&6
7480 objdir=$lt_cv_objdir
7481
7482
7483
7484
7485
7486 case $host_os in
7487 aix3*)
7488 # AIX sometimes has problems with the GCC collect2 program. For some
7489 # reason, if we set the COLLECT_NAMES environment variable, the problems
7490 # vanish in a puff of smoke.
7491 if test "X${COLLECT_NAMES+set}" != Xset; then
7492 COLLECT_NAMES=
7493 export COLLECT_NAMES
7494 fi
7495 ;;
7496 esac
7497
7498 # Sed substitution that helps us do robust quoting. It backslashifies
7499 # metacharacters that are still active within double-quoted strings.
7500 Xsed='sed -e 1s/^X//'
7501 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7502
7503 # Same as above, but do not quote variable references.
7504 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7505
7506 # Sed substitution to delay expansion of an escaped shell variable in a
7507 # double_quote_subst'ed string.
7508 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7509
7510 # Sed substitution to avoid accidental globbing in evaled expressions
7511 no_glob_subst='s/\*/\\\*/g'
7512
7513 # Constants:
7514 rm="rm -f"
7515
7516 # Global variables:
7517 default_ofile=libtool
7518 can_build_shared=yes
7519
7520 # All known linkers require a `.a' archive for static linking (except MSVC,
7521 # which needs '.lib').
7522 libext=a
7523 ltmain="$ac_aux_dir/ltmain.sh"
7524 ofile="$default_ofile"
7525 with_gnu_ld="$lt_cv_prog_gnu_ld"
7526
7527 if test -n "$ac_tool_prefix"; then
7528 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7529 set dummy ${ac_tool_prefix}ar; ac_word=$2
7530 echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7532 if test "${ac_cv_prog_AR+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535 if test -n "$AR"; then
7536 ac_cv_prog_AR="$AR" # Let the user override the test.
7537 else
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7540 do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545 ac_cv_prog_AR="${ac_tool_prefix}ar"
7546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7548 fi
7549 done
7550 done
7551
7552 fi
7553 fi
7554 AR=$ac_cv_prog_AR
7555 if test -n "$AR"; then
7556 echo "$as_me:$LINENO: result: $AR" >&5
7557 echo "${ECHO_T}$AR" >&6
7558 else
7559 echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561 fi
7562
7563 fi
7564 if test -z "$ac_cv_prog_AR"; then
7565 ac_ct_AR=$AR
7566 # Extract the first word of "ar", so it can be a program name with args.
7567 set dummy ar; ac_word=$2
7568 echo "$as_me:$LINENO: checking for $ac_word" >&5
7569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7570 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573 if test -n "$ac_ct_AR"; then
7574 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7575 else
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583 ac_cv_prog_ac_ct_AR="ar"
7584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 break 2
7586 fi
7587 done
7588 done
7589
7590 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7591 fi
7592 fi
7593 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7594 if test -n "$ac_ct_AR"; then
7595 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7596 echo "${ECHO_T}$ac_ct_AR" >&6
7597 else
7598 echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6
7600 fi
7601
7602 AR=$ac_ct_AR
7603 else
7604 AR="$ac_cv_prog_AR"
7605 fi
7606
7607 if test -n "$ac_tool_prefix"; then
7608 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7609 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7610 echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7612 if test "${ac_cv_prog_RANLIB+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615 if test -n "$RANLIB"; then
7616 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621 IFS=$as_save_IFS
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 break 2
7628 fi
7629 done
7630 done
7631
7632 fi
7633 fi
7634 RANLIB=$ac_cv_prog_RANLIB
7635 if test -n "$RANLIB"; then
7636 echo "$as_me:$LINENO: result: $RANLIB" >&5
7637 echo "${ECHO_T}$RANLIB" >&6
7638 else
7639 echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6
7641 fi
7642
7643 fi
7644 if test -z "$ac_cv_prog_RANLIB"; then
7645 ac_ct_RANLIB=$RANLIB
7646 # Extract the first word of "ranlib", so it can be a program name with args.
7647 set dummy ranlib; ac_word=$2
7648 echo "$as_me:$LINENO: checking for $ac_word" >&5
7649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7650 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653 if test -n "$ac_ct_RANLIB"; then
7654 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663 ac_cv_prog_ac_ct_RANLIB="ranlib"
7664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 break 2
7666 fi
7667 done
7668 done
7669
7670 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7671 fi
7672 fi
7673 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7674 if test -n "$ac_ct_RANLIB"; then
7675 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7676 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7677 else
7678 echo "$as_me:$LINENO: result: no" >&5
7679 echo "${ECHO_T}no" >&6
7680 fi
7681
7682 RANLIB=$ac_ct_RANLIB
7683 else
7684 RANLIB="$ac_cv_prog_RANLIB"
7685 fi
7686
7687 if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7689 set dummy ${ac_tool_prefix}strip; ac_word=$2
7690 echo "$as_me:$LINENO: checking for $ac_word" >&5
7691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7692 if test "${ac_cv_prog_STRIP+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695 if test -n "$STRIP"; then
7696 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7708 fi
7709 done
7710 done
7711
7712 fi
7713 fi
7714 STRIP=$ac_cv_prog_STRIP
7715 if test -n "$STRIP"; then
7716 echo "$as_me:$LINENO: result: $STRIP" >&5
7717 echo "${ECHO_T}$STRIP" >&6
7718 else
7719 echo "$as_me:$LINENO: result: no" >&5
7720 echo "${ECHO_T}no" >&6
7721 fi
7722
7723 fi
7724 if test -z "$ac_cv_prog_STRIP"; then
7725 ac_ct_STRIP=$STRIP
7726 # Extract the first word of "strip", so it can be a program name with args.
7727 set dummy strip; ac_word=$2
7728 echo "$as_me:$LINENO: checking for $ac_word" >&5
7729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7730 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 else
7733 if test -n "$ac_ct_STRIP"; then
7734 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_ac_ct_STRIP="strip"
7744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747 done
7748 done
7749
7750 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7751 fi
7752 fi
7753 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7754 if test -n "$ac_ct_STRIP"; then
7755 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7756 echo "${ECHO_T}$ac_ct_STRIP" >&6
7757 else
7758 echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6
7760 fi
7761
7762 STRIP=$ac_ct_STRIP
7763 else
7764 STRIP="$ac_cv_prog_STRIP"
7765 fi
7766
7767
7768 old_CC="$CC"
7769 old_CFLAGS="$CFLAGS"
7770
7771 # Set sane defaults for various variables
7772 test -z "$AR" && AR=ar
7773 test -z "$AR_FLAGS" && AR_FLAGS=cru
7774 test -z "$AS" && AS=as
7775 test -z "$CC" && CC=cc
7776 test -z "$LTCC" && LTCC=$CC
7777 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7778 test -z "$DLLTOOL" && DLLTOOL=dlltool
7779 test -z "$LD" && LD=ld
7780 test -z "$LN_S" && LN_S="ln -s"
7781 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7782 test -z "$NM" && NM=nm
7783 test -z "$SED" && SED=sed
7784 test -z "$OBJDUMP" && OBJDUMP=objdump
7785 test -z "$RANLIB" && RANLIB=:
7786 test -z "$STRIP" && STRIP=:
7787 test -z "$ac_objext" && ac_objext=o
7788
7789 # Determine commands to create old-style static archives.
7790 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7791 old_postinstall_cmds='chmod 644 $oldlib'
7792 old_postuninstall_cmds=
7793
7794 if test -n "$RANLIB"; then
7795 case $host_os in
7796 openbsd*)
7797 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7798 ;;
7799 *)
7800 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7801 ;;
7802 esac
7803 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7804 fi
7805
7806 for cc_temp in $compiler""; do
7807 case $cc_temp in
7808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7810 \-*) ;;
7811 *) break;;
7812 esac
7813 done
7814 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7815
7816
7817 # Only perform the check for file, if the check method requires it
7818 case $deplibs_check_method in
7819 file_magic*)
7820 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7821 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7822 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7823 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826 case $MAGIC_CMD in
7827 [\\/*] | ?:[\\/]*)
7828 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7829 ;;
7830 *)
7831 lt_save_MAGIC_CMD="$MAGIC_CMD"
7832 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7833 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7834 for ac_dir in $ac_dummy; do
7835 IFS="$lt_save_ifs"
7836 test -z "$ac_dir" && ac_dir=.
7837 if test -f $ac_dir/${ac_tool_prefix}file; then
7838 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7839 if test -n "$file_magic_test_file"; then
7840 case $deplibs_check_method in
7841 "file_magic "*)
7842 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7844 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7845 $EGREP "$file_magic_regex" > /dev/null; then
7846 :
7847 else
7848 cat <<EOF 1>&2
7849
7850 *** Warning: the command libtool uses to detect shared libraries,
7851 *** $file_magic_cmd, produces output that libtool cannot recognize.
7852 *** The result is that libtool may fail to recognize shared libraries
7853 *** as such. This will affect the creation of libtool libraries that
7854 *** depend on shared libraries, but programs linked with such libtool
7855 *** libraries will work regardless of this problem. Nevertheless, you
7856 *** may want to report the problem to your system manager and/or to
7857 *** [email protected]
7858
7859 EOF
7860 fi ;;
7861 esac
7862 fi
7863 break
7864 fi
7865 done
7866 IFS="$lt_save_ifs"
7867 MAGIC_CMD="$lt_save_MAGIC_CMD"
7868 ;;
7869 esac
7870 fi
7871
7872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7873 if test -n "$MAGIC_CMD"; then
7874 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7875 echo "${ECHO_T}$MAGIC_CMD" >&6
7876 else
7877 echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6
7879 fi
7880
7881 if test -z "$lt_cv_path_MAGIC_CMD"; then
7882 if test -n "$ac_tool_prefix"; then
7883 echo "$as_me:$LINENO: checking for file" >&5
7884 echo $ECHO_N "checking for file... $ECHO_C" >&6
7885 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888 case $MAGIC_CMD in
7889 [\\/*] | ?:[\\/]*)
7890 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7891 ;;
7892 *)
7893 lt_save_MAGIC_CMD="$MAGIC_CMD"
7894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7895 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7896 for ac_dir in $ac_dummy; do
7897 IFS="$lt_save_ifs"
7898 test -z "$ac_dir" && ac_dir=.
7899 if test -f $ac_dir/file; then
7900 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7901 if test -n "$file_magic_test_file"; then
7902 case $deplibs_check_method in
7903 "file_magic "*)
7904 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7907 $EGREP "$file_magic_regex" > /dev/null; then
7908 :
7909 else
7910 cat <<EOF 1>&2
7911
7912 *** Warning: the command libtool uses to detect shared libraries,
7913 *** $file_magic_cmd, produces output that libtool cannot recognize.
7914 *** The result is that libtool may fail to recognize shared libraries
7915 *** as such. This will affect the creation of libtool libraries that
7916 *** depend on shared libraries, but programs linked with such libtool
7917 *** libraries will work regardless of this problem. Nevertheless, you
7918 *** may want to report the problem to your system manager and/or to
7919 *** [email protected]
7920
7921 EOF
7922 fi ;;
7923 esac
7924 fi
7925 break
7926 fi
7927 done
7928 IFS="$lt_save_ifs"
7929 MAGIC_CMD="$lt_save_MAGIC_CMD"
7930 ;;
7931 esac
7932 fi
7933
7934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7935 if test -n "$MAGIC_CMD"; then
7936 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7937 echo "${ECHO_T}$MAGIC_CMD" >&6
7938 else
7939 echo "$as_me:$LINENO: result: no" >&5
7940 echo "${ECHO_T}no" >&6
7941 fi
7942
7943 else
7944 MAGIC_CMD=:
7945 fi
7946 fi
7947
7948 fi
7949 ;;
7950 esac
7951
7952 enable_dlopen=no
7953 enable_win32_dll=no
7954
7955 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7956 if test "${enable_libtool_lock+set}" = set; then
7957 enableval="$enable_libtool_lock"
7958
7959 fi;
7960 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7961
7962
7963 # Check whether --with-pic or --without-pic was given.
7964 if test "${with_pic+set}" = set; then
7965 withval="$with_pic"
7966 pic_mode="$withval"
7967 else
7968 pic_mode=default
7969 fi;
7970 test -z "$pic_mode" && pic_mode=default
7971
7972 # Use C for the default configuration in the libtool script
7973 tagname=
7974 lt_save_CC="$CC"
7975 ac_ext=c
7976 ac_cpp='$CPP $CPPFLAGS'
7977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7980
7981
7982 # Source file extension for C test sources.
7983 ac_ext=c
7984
7985 # Object file extension for compiled C test sources.
7986 objext=o
7987 objext=$objext
7988
7989 # Code to be used in simple compile tests
7990 lt_simple_compile_test_code="int some_variable = 0;\n"
7991
7992 # Code to be used in simple link tests
7993 lt_simple_link_test_code='int main(){return(0);}\n'
7994
7995
7996 # If no C compiler was specified, use CC.
7997 LTCC=${LTCC-"$CC"}
7998
7999 # If no C compiler flags were specified, use CFLAGS.
8000 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8001
8002 # Allow CC to be a program name with arguments.
8003 compiler=$CC
8004
8005
8006 # save warnings/boilerplate of simple test code
8007 ac_outfile=conftest.$ac_objext
8008 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8009 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8010 _lt_compiler_boilerplate=`cat conftest.err`
8011 $rm conftest*
8012
8013 ac_outfile=conftest.$ac_objext
8014 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8015 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8016 _lt_linker_boilerplate=`cat conftest.err`
8017 $rm conftest*
8018
8019
8020 ## CAVEAT EMPTOR:
8021 ## There is no encapsulation within the following macros, do not change
8022 ## the running order or otherwise move them around unless you know exactly
8023 ## what you are doing...
8024
8025 lt_prog_compiler_no_builtin_flag=
8026
8027 if test "$GCC" = yes; then
8028 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8029
8030
8031 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8032 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8033 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036 lt_cv_prog_compiler_rtti_exceptions=no
8037 ac_outfile=conftest.$ac_objext
8038 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8039 lt_compiler_flag="-fno-rtti -fno-exceptions"
8040 # Insert the option either (1) after the last *FLAGS variable, or
8041 # (2) before a word containing "conftest.", or (3) at the end.
8042 # Note that $ac_compile itself does not contain backslashes and begins
8043 # with a dollar sign (not a hyphen), so the echo should work correctly.
8044 # The option is referenced via a variable to avoid confusing sed.
8045 lt_compile=`echo "$ac_compile" | $SED \
8046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8048 -e 's:$: $lt_compiler_flag:'`
8049 (eval echo "\"\$as_me:8049: $lt_compile\"" >&5)
8050 (eval "$lt_compile" 2>conftest.err)
8051 ac_status=$?
8052 cat conftest.err >&5
8053 echo "$as_me:8053: \$? = $ac_status" >&5
8054 if (exit $ac_status) && test -s "$ac_outfile"; then
8055 # The compiler can only warn and ignore the option if not recognized
8056 # So say no if there are warnings other than the usual output.
8057 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8058 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8059 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8060 lt_cv_prog_compiler_rtti_exceptions=yes
8061 fi
8062 fi
8063 $rm conftest*
8064
8065 fi
8066 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8067 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8068
8069 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8070 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8071 else
8072 :
8073 fi
8074
8075 fi
8076
8077 lt_prog_compiler_wl=
8078 lt_prog_compiler_pic=
8079 lt_prog_compiler_static=
8080
8081 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8082 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8083
8084 if test "$GCC" = yes; then
8085 lt_prog_compiler_wl='-Wl,'
8086 lt_prog_compiler_static='-static'
8087
8088 case $host_os in
8089 aix*)
8090 # All AIX code is PIC.
8091 if test "$host_cpu" = ia64; then
8092 # AIX 5 now supports IA64 processor
8093 lt_prog_compiler_static='-Bstatic'
8094 fi
8095 ;;
8096
8097 amigaos*)
8098 # FIXME: we need at least 68020 code to build shared libraries, but
8099 # adding the `-m68020' flag to GCC prevents building anything better,
8100 # like `-m68040'.
8101 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8102 ;;
8103
8104 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8105 # PIC is the default for these OSes.
8106 ;;
8107
8108 mingw* | pw32* | os2*)
8109 # This hack is so that the source file can tell whether it is being
8110 # built for inclusion in a dll (and should export symbols for example).
8111 lt_prog_compiler_pic='-DDLL_EXPORT'
8112 ;;
8113
8114 darwin* | rhapsody*)
8115 # PIC is the default on this platform
8116 # Common symbols not allowed in MH_DYLIB files
8117 lt_prog_compiler_pic='-fno-common'
8118 ;;
8119
8120 interix3*)
8121 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8122 # Instead, we relocate shared libraries at runtime.
8123 ;;
8124
8125 msdosdjgpp*)
8126 # Just because we use GCC doesn't mean we suddenly get shared libraries
8127 # on systems that don't support them.
8128 lt_prog_compiler_can_build_shared=no
8129 enable_shared=no
8130 ;;
8131
8132 sysv4*MP*)
8133 if test -d /usr/nec; then
8134 lt_prog_compiler_pic=-Kconform_pic
8135 fi
8136 ;;
8137
8138 hpux*)
8139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8140 # not for PA HP-UX.
8141 case $host_cpu in
8142 hppa*64*|ia64*)
8143 # +Z the default
8144 ;;
8145 *)
8146 lt_prog_compiler_pic='-fPIC'
8147 ;;
8148 esac
8149 ;;
8150
8151 *)
8152 lt_prog_compiler_pic='-fPIC'
8153 ;;
8154 esac
8155 else
8156 # PORTME Check for flag to pass linker flags through the system compiler.
8157 case $host_os in
8158 aix*)
8159 lt_prog_compiler_wl='-Wl,'
8160 if test "$host_cpu" = ia64; then
8161 # AIX 5 now supports IA64 processor
8162 lt_prog_compiler_static='-Bstatic'
8163 else
8164 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8165 fi
8166 ;;
8167 darwin*)
8168 # PIC is the default on this platform
8169 # Common symbols not allowed in MH_DYLIB files
8170 case $cc_basename in
8171 xlc*)
8172 lt_prog_compiler_pic='-qnocommon'
8173 lt_prog_compiler_wl='-Wl,'
8174 ;;
8175 esac
8176 ;;
8177
8178 mingw* | pw32* | os2*)
8179 # This hack is so that the source file can tell whether it is being
8180 # built for inclusion in a dll (and should export symbols for example).
8181 lt_prog_compiler_pic='-DDLL_EXPORT'
8182 ;;
8183
8184 hpux9* | hpux10* | hpux11*)
8185 lt_prog_compiler_wl='-Wl,'
8186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8187 # not for PA HP-UX.
8188 case $host_cpu in
8189 hppa*64*|ia64*)
8190 # +Z the default
8191 ;;
8192 *)
8193 lt_prog_compiler_pic='+Z'
8194 ;;
8195 esac
8196 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8197 lt_prog_compiler_static='${wl}-a ${wl}archive'
8198 ;;
8199
8200 irix5* | irix6* | nonstopux*)
8201 lt_prog_compiler_wl='-Wl,'
8202 # PIC (with -KPIC) is the default.
8203 lt_prog_compiler_static='-non_shared'
8204 ;;
8205
8206 newsos6)
8207 lt_prog_compiler_pic='-KPIC'
8208 lt_prog_compiler_static='-Bstatic'
8209 ;;
8210
8211 linux*)
8212 case $cc_basename in
8213 icc* | ecc*)
8214 lt_prog_compiler_wl='-Wl,'
8215 lt_prog_compiler_pic='-KPIC'
8216 lt_prog_compiler_static='-static'
8217 ;;
8218 pgcc* | pgf77* | pgf90* | pgf95*)
8219 # Portland Group compilers (*not* the Pentium gcc compiler,
8220 # which looks to be a dead project)
8221 lt_prog_compiler_wl='-Wl,'
8222 lt_prog_compiler_pic='-fpic'
8223 lt_prog_compiler_static='-Bstatic'
8224 ;;
8225 ccc*)
8226 lt_prog_compiler_wl='-Wl,'
8227 # All Alpha code is PIC.
8228 lt_prog_compiler_static='-non_shared'
8229 ;;
8230 esac
8231 ;;
8232
8233 osf3* | osf4* | osf5*)
8234 lt_prog_compiler_wl='-Wl,'
8235 # All OSF/1 code is PIC.
8236 lt_prog_compiler_static='-non_shared'
8237 ;;
8238
8239 solaris*)
8240 lt_prog_compiler_pic='-KPIC'
8241 lt_prog_compiler_static='-Bstatic'
8242 case $cc_basename in
8243 f77* | f90* | f95*)
8244 lt_prog_compiler_wl='-Qoption ld ';;
8245 *)
8246 lt_prog_compiler_wl='-Wl,';;
8247 esac
8248 ;;
8249
8250 sunos4*)
8251 lt_prog_compiler_wl='-Qoption ld '
8252 lt_prog_compiler_pic='-PIC'
8253 lt_prog_compiler_static='-Bstatic'
8254 ;;
8255
8256 sysv4 | sysv4.2uw2* | sysv4.3*)
8257 lt_prog_compiler_wl='-Wl,'
8258 lt_prog_compiler_pic='-KPIC'
8259 lt_prog_compiler_static='-Bstatic'
8260 ;;
8261
8262 sysv4*MP*)
8263 if test -d /usr/nec ;then
8264 lt_prog_compiler_pic='-Kconform_pic'
8265 lt_prog_compiler_static='-Bstatic'
8266 fi
8267 ;;
8268
8269 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8270 lt_prog_compiler_wl='-Wl,'
8271 lt_prog_compiler_pic='-KPIC'
8272 lt_prog_compiler_static='-Bstatic'
8273 ;;
8274
8275 unicos*)
8276 lt_prog_compiler_wl='-Wl,'
8277 lt_prog_compiler_can_build_shared=no
8278 ;;
8279
8280 uts4*)
8281 lt_prog_compiler_pic='-pic'
8282 lt_prog_compiler_static='-Bstatic'
8283 ;;
8284
8285 *)
8286 lt_prog_compiler_can_build_shared=no
8287 ;;
8288 esac
8289 fi
8290
8291 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8292 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8293
8294 #
8295 # Check to make sure the PIC flag actually works.
8296 #
8297 if test -n "$lt_prog_compiler_pic"; then
8298
8299 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8300 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8301 if test "${lt_prog_compiler_pic_works+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304 lt_prog_compiler_pic_works=no
8305 ac_outfile=conftest.$ac_objext
8306 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8307 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8308 # Insert the option either (1) after the last *FLAGS variable, or
8309 # (2) before a word containing "conftest.", or (3) at the end.
8310 # Note that $ac_compile itself does not contain backslashes and begins
8311 # with a dollar sign (not a hyphen), so the echo should work correctly.
8312 # The option is referenced via a variable to avoid confusing sed.
8313 lt_compile=`echo "$ac_compile" | $SED \
8314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8316 -e 's:$: $lt_compiler_flag:'`
8317 (eval echo "\"\$as_me:8317: $lt_compile\"" >&5)
8318 (eval "$lt_compile" 2>conftest.err)
8319 ac_status=$?
8320 cat conftest.err >&5
8321 echo "$as_me:8321: \$? = $ac_status" >&5
8322 if (exit $ac_status) && test -s "$ac_outfile"; then
8323 # The compiler can only warn and ignore the option if not recognized
8324 # So say no if there are warnings other than the usual output.
8325 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8327 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8328 lt_prog_compiler_pic_works=yes
8329 fi
8330 fi
8331 $rm conftest*
8332
8333 fi
8334 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8335 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8336
8337 if test x"$lt_prog_compiler_pic_works" = xyes; then
8338 case $lt_prog_compiler_pic in
8339 "" | " "*) ;;
8340 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8341 esac
8342 else
8343 lt_prog_compiler_pic=
8344 lt_prog_compiler_can_build_shared=no
8345 fi
8346
8347 fi
8348 case $host_os in
8349 # For platforms which do not support PIC, -DPIC is meaningless:
8350 *djgpp*)
8351 lt_prog_compiler_pic=
8352 ;;
8353 *)
8354 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8355 ;;
8356 esac
8357
8358 #
8359 # Check to make sure the static flag actually works.
8360 #
8361 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8362 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8363 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8364 if test "${lt_prog_compiler_static_works+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367 lt_prog_compiler_static_works=no
8368 save_LDFLAGS="$LDFLAGS"
8369 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8370 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8372 # The linker can only warn and ignore the option if not recognized
8373 # So say no if there are warnings
8374 if test -s conftest.err; then
8375 # Append any errors to the config.log.
8376 cat conftest.err 1>&5
8377 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8379 if diff conftest.exp conftest.er2 >/dev/null; then
8380 lt_prog_compiler_static_works=yes
8381 fi
8382 else
8383 lt_prog_compiler_static_works=yes
8384 fi
8385 fi
8386 $rm conftest*
8387 LDFLAGS="$save_LDFLAGS"
8388
8389 fi
8390 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8391 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8392
8393 if test x"$lt_prog_compiler_static_works" = xyes; then
8394 :
8395 else
8396 lt_prog_compiler_static=
8397 fi
8398
8399
8400 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8401 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8402 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405 lt_cv_prog_compiler_c_o=no
8406 $rm -r conftest 2>/dev/null
8407 mkdir conftest
8408 cd conftest
8409 mkdir out
8410 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8411
8412 lt_compiler_flag="-o out/conftest2.$ac_objext"
8413 # Insert the option either (1) after the last *FLAGS variable, or
8414 # (2) before a word containing "conftest.", or (3) at the end.
8415 # Note that $ac_compile itself does not contain backslashes and begins
8416 # with a dollar sign (not a hyphen), so the echo should work correctly.
8417 lt_compile=`echo "$ac_compile" | $SED \
8418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8420 -e 's:$: $lt_compiler_flag:'`
8421 (eval echo "\"\$as_me:8421: $lt_compile\"" >&5)
8422 (eval "$lt_compile" 2>out/conftest.err)
8423 ac_status=$?
8424 cat out/conftest.err >&5
8425 echo "$as_me:8425: \$? = $ac_status" >&5
8426 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8427 then
8428 # The compiler can only warn and ignore the option if not recognized
8429 # So say no if there are warnings
8430 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8431 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8432 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8433 lt_cv_prog_compiler_c_o=yes
8434 fi
8435 fi
8436 chmod u+w . 2>&5
8437 $rm conftest*
8438 # SGI C++ compiler will create directory out/ii_files/ for
8439 # template instantiation
8440 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8441 $rm out/* && rmdir out
8442 cd ..
8443 rmdir conftest
8444 $rm conftest*
8445
8446 fi
8447 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8448 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8449
8450
8451 hard_links="nottested"
8452 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8453 # do not overwrite the value of need_locks provided by the user
8454 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8455 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8456 hard_links=yes
8457 $rm conftest*
8458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8459 touch conftest.a
8460 ln conftest.a conftest.b 2>&5 || hard_links=no
8461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8462 echo "$as_me:$LINENO: result: $hard_links" >&5
8463 echo "${ECHO_T}$hard_links" >&6
8464 if test "$hard_links" = no; then
8465 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8466 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8467 need_locks=warn
8468 fi
8469 else
8470 need_locks=no
8471 fi
8472
8473 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8474 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8475
8476 runpath_var=
8477 allow_undefined_flag=
8478 enable_shared_with_static_runtimes=no
8479 archive_cmds=
8480 archive_expsym_cmds=
8481 old_archive_From_new_cmds=
8482 old_archive_from_expsyms_cmds=
8483 export_dynamic_flag_spec=
8484 whole_archive_flag_spec=
8485 thread_safe_flag_spec=
8486 hardcode_libdir_flag_spec=
8487 hardcode_libdir_flag_spec_ld=
8488 hardcode_libdir_separator=
8489 hardcode_direct=no
8490 hardcode_minus_L=no
8491 hardcode_shlibpath_var=unsupported
8492 link_all_deplibs=unknown
8493 hardcode_automatic=no
8494 module_cmds=
8495 module_expsym_cmds=
8496 always_export_symbols=no
8497 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8498 # include_expsyms should be a list of space-separated symbols to be *always*
8499 # included in the symbol list
8500 include_expsyms=
8501 # exclude_expsyms can be an extended regexp of symbols to exclude
8502 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8503 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8504 # as well as any symbol that contains `d'.
8505 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8506 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8507 # platforms (ab)use it in PIC code, but their linkers get confused if
8508 # the symbol is explicitly referenced. Since portable code cannot
8509 # rely on this symbol name, it's probably fine to never include it in
8510 # preloaded symbol tables.
8511 extract_expsyms_cmds=
8512 # Just being paranoid about ensuring that cc_basename is set.
8513 for cc_temp in $compiler""; do
8514 case $cc_temp in
8515 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8516 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8517 \-*) ;;
8518 *) break;;
8519 esac
8520 done
8521 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8522
8523 case $host_os in
8524 cygwin* | mingw* | pw32*)
8525 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8526 # When not using gcc, we currently assume that we are using
8527 # Microsoft Visual C++.
8528 if test "$GCC" != yes; then
8529 with_gnu_ld=no
8530 fi
8531 ;;
8532 interix*)
8533 # we just hope/assume this is gcc and not c89 (= MSVC++)
8534 with_gnu_ld=yes
8535 ;;
8536 openbsd*)
8537 with_gnu_ld=no
8538 ;;
8539 esac
8540
8541 ld_shlibs=yes
8542 if test "$with_gnu_ld" = yes; then
8543 # If archive_cmds runs LD, not CC, wlarc should be empty
8544 wlarc='${wl}'
8545
8546 # Set some defaults for GNU ld with shared library support. These
8547 # are reset later if shared libraries are not supported. Putting them
8548 # here allows them to be overridden if necessary.
8549 runpath_var=LD_RUN_PATH
8550 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8551 export_dynamic_flag_spec='${wl}--export-dynamic'
8552 # ancient GNU ld didn't support --whole-archive et. al.
8553 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8554 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8555 else
8556 whole_archive_flag_spec=
8557 fi
8558 supports_anon_versioning=no
8559 case `$LD -v 2>/dev/null` in
8560 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8561 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8562 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8563 *\ 2.11.*) ;; # other 2.11 versions
8564 *) supports_anon_versioning=yes ;;
8565 esac
8566
8567 # See if GNU ld supports shared libraries.
8568 case $host_os in
8569 aix3* | aix4* | aix5*)
8570 # On AIX/PPC, the GNU linker is very broken
8571 if test "$host_cpu" != ia64; then
8572 ld_shlibs=no
8573 cat <<EOF 1>&2
8574
8575 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8576 *** to be unable to reliably create shared libraries on AIX.
8577 *** Therefore, libtool is disabling shared libraries support. If you
8578 *** really care for shared libraries, you may want to modify your PATH
8579 *** so that a non-GNU linker is found, and then restart.
8580
8581 EOF
8582 fi
8583 ;;
8584
8585 amigaos*)
8586 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)'
8587 hardcode_libdir_flag_spec='-L$libdir'
8588 hardcode_minus_L=yes
8589
8590 # Samuel A. Falvo II <[email protected]> reports
8591 # that the semantics of dynamic libraries on AmigaOS, at least up
8592 # to version 4, is to share data among multiple programs linked
8593 # with the same dynamic library. Since this doesn't match the
8594 # behavior of shared libraries on other platforms, we can't use
8595 # them.
8596 ld_shlibs=no
8597 ;;
8598
8599 beos*)
8600 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8601 allow_undefined_flag=unsupported
8602 # Joseph Beckenbach <[email protected]> says some releases of gcc
8603 # support --undefined. This deserves some investigation. FIXME
8604 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8605 else
8606 ld_shlibs=no
8607 fi
8608 ;;
8609
8610 cygwin* | mingw* | pw32*)
8611 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8612 # as there is no search path for DLLs.
8613 hardcode_libdir_flag_spec='-L$libdir'
8614 allow_undefined_flag=unsupported
8615 always_export_symbols=no
8616 enable_shared_with_static_runtimes=yes
8617 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8618
8619 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8621 # If the export-symbols file already is a .def file (1st line
8622 # is EXPORTS), use it as is; otherwise, prepend...
8623 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8624 cp $export_symbols $output_objdir/$soname.def;
8625 else
8626 echo EXPORTS > $output_objdir/$soname.def;
8627 cat $export_symbols >> $output_objdir/$soname.def;
8628 fi~
8629 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8630 else
8631 ld_shlibs=no
8632 fi
8633 ;;
8634
8635 interix3*)
8636 hardcode_direct=no
8637 hardcode_shlibpath_var=no
8638 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8639 export_dynamic_flag_spec='${wl}-E'
8640 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8641 # Instead, shared libraries are loaded at an image base (0x10000000 by
8642 # default) and relocated if they conflict, which is a slow very memory
8643 # consuming and fragmenting process. To avoid this, we pick a random,
8644 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8645 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8646 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8647 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'
8648 ;;
8649
8650 linux*)
8651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8652 tmp_addflag=
8653 case $cc_basename,$host_cpu in
8654 pgcc*) # Portland Group C compiler
8655 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'
8656 tmp_addflag=' $pic_flag'
8657 ;;
8658 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8659 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'
8660 tmp_addflag=' $pic_flag -Mnomain' ;;
8661 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8662 tmp_addflag=' -i_dynamic' ;;
8663 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8664 tmp_addflag=' -i_dynamic -nofor_main' ;;
8665 ifc* | ifort*) # Intel Fortran compiler
8666 tmp_addflag=' -nofor_main' ;;
8667 esac
8668 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669
8670 if test $supports_anon_versioning = yes; then
8671 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8672 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8673 $echo "local: *; };" >> $output_objdir/$libname.ver~
8674 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8675 fi
8676 else
8677 ld_shlibs=no
8678 fi
8679 ;;
8680
8681 netbsd*)
8682 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8683 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8684 wlarc=
8685 else
8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8688 fi
8689 ;;
8690
8691 solaris*)
8692 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8693 ld_shlibs=no
8694 cat <<EOF 1>&2
8695
8696 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8697 *** create shared libraries on Solaris systems. Therefore, libtool
8698 *** is disabling shared libraries support. We urge you to upgrade GNU
8699 *** binutils to release 2.9.1 or newer. Another option is to modify
8700 *** your PATH or compiler configuration so that the native linker is
8701 *** used, and then restart.
8702
8703 EOF
8704 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8707 else
8708 ld_shlibs=no
8709 fi
8710 ;;
8711
8712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8713 case `$LD -v 2>&1` in
8714 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8715 ld_shlibs=no
8716 cat <<_LT_EOF 1>&2
8717
8718 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8719 *** reliably create shared libraries on SCO systems. Therefore, libtool
8720 *** is disabling shared libraries support. We urge you to upgrade GNU
8721 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8722 *** your PATH or compiler configuration so that the native linker is
8723 *** used, and then restart.
8724
8725 _LT_EOF
8726 ;;
8727 *)
8728 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8729 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8732 else
8733 ld_shlibs=no
8734 fi
8735 ;;
8736 esac
8737 ;;
8738
8739 sunos4*)
8740 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8741 wlarc=
8742 hardcode_direct=yes
8743 hardcode_shlibpath_var=no
8744 ;;
8745
8746 *)
8747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8750 else
8751 ld_shlibs=no
8752 fi
8753 ;;
8754 esac
8755
8756 if test "$ld_shlibs" = no; then
8757 runpath_var=
8758 hardcode_libdir_flag_spec=
8759 export_dynamic_flag_spec=
8760 whole_archive_flag_spec=
8761 fi
8762 else
8763 # PORTME fill in a description of your system's linker (not GNU ld)
8764 case $host_os in
8765 aix3*)
8766 allow_undefined_flag=unsupported
8767 always_export_symbols=yes
8768 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'
8769 # Note: this linker hardcodes the directories in LIBPATH if there
8770 # are no directories specified by -L.
8771 hardcode_minus_L=yes
8772 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8773 # Neither direct hardcoding nor static linking is supported with a
8774 # broken collect2.
8775 hardcode_direct=unsupported
8776 fi
8777 ;;
8778
8779 aix4* | aix5*)
8780 if test "$host_cpu" = ia64; then
8781 # On IA64, the linker does run time linking by default, so we don't
8782 # have to do anything special.
8783 aix_use_runtimelinking=no
8784 exp_sym_flag='-Bexport'
8785 no_entry_flag=""
8786 else
8787 # If we're using GNU nm, then we don't want the "-C" option.
8788 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8789 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8790 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'
8791 else
8792 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'
8793 fi
8794 aix_use_runtimelinking=no
8795
8796 # Test if we are trying to use run time linking or normal
8797 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8798 # need to do runtime linking.
8799 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8800 for ld_flag in $LDFLAGS; do
8801 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8802 aix_use_runtimelinking=yes
8803 break
8804 fi
8805 done
8806 ;;
8807 esac
8808
8809 exp_sym_flag='-bexport'
8810 no_entry_flag='-bnoentry'
8811 fi
8812
8813 # When large executables or shared objects are built, AIX ld can
8814 # have problems creating the table of contents. If linking a library
8815 # or program results in "error TOC overflow" add -mminimal-toc to
8816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8818
8819 archive_cmds=''
8820 hardcode_direct=yes
8821 hardcode_libdir_separator=':'
8822 link_all_deplibs=yes
8823
8824 if test "$GCC" = yes; then
8825 case $host_os in aix4.[012]|aix4.[012].*)
8826 # We only want to do this on AIX 4.2 and lower, the check
8827 # below for broken collect2 doesn't work under 4.3+
8828 collect2name=`${CC} -print-prog-name=collect2`
8829 if test -f "$collect2name" && \
8830 strings "$collect2name" | grep resolve_lib_name >/dev/null
8831 then
8832 # We have reworked collect2
8833 hardcode_direct=yes
8834 else
8835 # We have old collect2
8836 hardcode_direct=unsupported
8837 # It fails to find uninstalled libraries when the uninstalled
8838 # path is not listed in the libpath. Setting hardcode_minus_L
8839 # to unsupported forces relinking
8840 hardcode_minus_L=yes
8841 hardcode_libdir_flag_spec='-L$libdir'
8842 hardcode_libdir_separator=
8843 fi
8844 ;;
8845 esac
8846 shared_flag='-shared'
8847 if test "$aix_use_runtimelinking" = yes; then
8848 shared_flag="$shared_flag "'${wl}-G'
8849 fi
8850 else
8851 # not using gcc
8852 if test "$host_cpu" = ia64; then
8853 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8854 # chokes on -Wl,-G. The following line is correct:
8855 shared_flag='-G'
8856 else
8857 if test "$aix_use_runtimelinking" = yes; then
8858 shared_flag='${wl}-G'
8859 else
8860 shared_flag='${wl}-bM:SRE'
8861 fi
8862 fi
8863 fi
8864
8865 # It seems that -bexpall does not export symbols beginning with
8866 # underscore (_), so it is better to generate a list of symbols to export.
8867 always_export_symbols=yes
8868 if test "$aix_use_runtimelinking" = yes; then
8869 # Warning - without using the other runtime loading flags (-brtl),
8870 # -berok will link without error, but may produce a broken library.
8871 allow_undefined_flag='-berok'
8872 # Determine the default libpath from the value encoded in an empty executable.
8873 cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h. */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8879
8880 int
8881 main ()
8882 {
8883
8884 ;
8885 return 0;
8886 }
8887 _ACEOF
8888 rm -f conftest.$ac_objext conftest$ac_exeext
8889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8890 (eval $ac_link) 2>conftest.er1
8891 ac_status=$?
8892 grep -v '^ *+' conftest.er1 >conftest.err
8893 rm -f conftest.er1
8894 cat conftest.err >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } &&
8897 { ac_try='test -z "$ac_c_werror_flag"
8898 || test ! -s conftest.err'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 (eval $ac_try) 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; } &&
8904 { ac_try='test -s conftest$ac_exeext'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 (eval $ac_try) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; }; then
8910
8911 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8912 }'`
8913 # Check for a 64-bit object if we didn't find anything.
8914 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; }
8915 }'`; fi
8916 else
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8919
8920 fi
8921 rm -f conftest.err conftest.$ac_objext \
8922 conftest$ac_exeext conftest.$ac_ext
8923 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8924
8925 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8926 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"
8927 else
8928 if test "$host_cpu" = ia64; then
8929 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8930 allow_undefined_flag="-z nodefs"
8931 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"
8932 else
8933 # Determine the default libpath from the value encoded in an empty executable.
8934 cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h. */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8940
8941 int
8942 main ()
8943 {
8944
8945 ;
8946 return 0;
8947 }
8948 _ACEOF
8949 rm -f conftest.$ac_objext conftest$ac_exeext
8950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8951 (eval $ac_link) 2>conftest.er1
8952 ac_status=$?
8953 grep -v '^ *+' conftest.er1 >conftest.err
8954 rm -f conftest.er1
8955 cat conftest.err >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } &&
8958 { ac_try='test -z "$ac_c_werror_flag"
8959 || test ! -s conftest.err'
8960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 (eval $ac_try) 2>&5
8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; } &&
8965 { ac_try='test -s conftest$ac_exeext'
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 (eval $ac_try) 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; }; then
8971
8972 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8973 }'`
8974 # Check for a 64-bit object if we didn't find anything.
8975 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; }
8976 }'`; fi
8977 else
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981 fi
8982 rm -f conftest.err conftest.$ac_objext \
8983 conftest$ac_exeext conftest.$ac_ext
8984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8985
8986 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8987 # Warning - without using the other run time loading flags,
8988 # -berok will link without error, but may produce a broken library.
8989 no_undefined_flag=' ${wl}-bernotok'
8990 allow_undefined_flag=' ${wl}-berok'
8991 # Exported symbols can be pulled into shared objects from archives
8992 whole_archive_flag_spec='$convenience'
8993 archive_cmds_need_lc=yes
8994 # This is similar to how AIX traditionally builds its shared libraries.
8995 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'
8996 fi
8997 fi
8998 ;;
8999
9000 amigaos*)
9001 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)'
9002 hardcode_libdir_flag_spec='-L$libdir'
9003 hardcode_minus_L=yes
9004 # see comment about different semantics on the GNU ld section
9005 ld_shlibs=no
9006 ;;
9007
9008 bsdi[45]*)
9009 export_dynamic_flag_spec=-rdynamic
9010 ;;
9011
9012 cygwin* | mingw* | pw32*)
9013 # When not using gcc, we currently assume that we are using
9014 # Microsoft Visual C++.
9015 # hardcode_libdir_flag_spec is actually meaningless, as there is
9016 # no search path for DLLs.
9017 hardcode_libdir_flag_spec=' '
9018 allow_undefined_flag=unsupported
9019 # Tell ltmain to make .lib files, not .a files.
9020 libext=lib
9021 # Tell ltmain to make .dll files, not .so files.
9022 shrext_cmds=".dll"
9023 # FIXME: Setting linknames here is a bad hack.
9024 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9025 # The linker will automatically build a .lib file if we build a DLL.
9026 old_archive_From_new_cmds='true'
9027 # FIXME: Should let the user specify the lib program.
9028 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9029 fix_srcfile_path='`cygpath -w "$srcfile"`'
9030 enable_shared_with_static_runtimes=yes
9031 ;;
9032
9033 darwin* | rhapsody*)
9034 case $host_os in
9035 rhapsody* | darwin1.[012])
9036 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9037 ;;
9038 *) # Darwin 1.3 on
9039 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9040 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9041 else
9042 case ${MACOSX_DEPLOYMENT_TARGET} in
9043 10.[012])
9044 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9045 ;;
9046 10.*)
9047 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9048 ;;
9049 esac
9050 fi
9051 ;;
9052 esac
9053 archive_cmds_need_lc=no
9054 hardcode_direct=no
9055 hardcode_automatic=yes
9056 hardcode_shlibpath_var=unsupported
9057 whole_archive_flag_spec=''
9058 link_all_deplibs=yes
9059 if test "$GCC" = yes ; then
9060 output_verbose_link_cmd='echo'
9061 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9062 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9063 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9064 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}'
9065 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}'
9066 else
9067 case $cc_basename in
9068 xlc*)
9069 output_verbose_link_cmd='echo'
9070 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9071 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9072 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9073 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}'
9074 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}'
9075 ;;
9076 *)
9077 ld_shlibs=no
9078 ;;
9079 esac
9080 fi
9081 ;;
9082
9083 dgux*)
9084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9085 hardcode_libdir_flag_spec='-L$libdir'
9086 hardcode_shlibpath_var=no
9087 ;;
9088
9089 freebsd1*)
9090 ld_shlibs=no
9091 ;;
9092
9093 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9094 # support. Future versions do this automatically, but an explicit c++rt0.o
9095 # does not break anything, and helps significantly (at the cost of a little
9096 # extra space).
9097 freebsd2.2*)
9098 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9099 hardcode_libdir_flag_spec='-R$libdir'
9100 hardcode_direct=yes
9101 hardcode_shlibpath_var=no
9102 ;;
9103
9104 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9105 freebsd2*)
9106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9107 hardcode_direct=yes
9108 hardcode_minus_L=yes
9109 hardcode_shlibpath_var=no
9110 ;;
9111
9112 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9113 freebsd* | kfreebsd*-gnu | dragonfly*)
9114 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9115 hardcode_libdir_flag_spec='-R$libdir'
9116 hardcode_direct=yes
9117 hardcode_shlibpath_var=no
9118 ;;
9119
9120 hpux9*)
9121 if test "$GCC" = yes; then
9122 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'
9123 else
9124 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'
9125 fi
9126 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9127 hardcode_libdir_separator=:
9128 hardcode_direct=yes
9129
9130 # hardcode_minus_L: Not really in the search PATH,
9131 # but as the default location of the library.
9132 hardcode_minus_L=yes
9133 export_dynamic_flag_spec='${wl}-E'
9134 ;;
9135
9136 hpux10*)
9137 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9138 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9139 else
9140 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9141 fi
9142 if test "$with_gnu_ld" = no; then
9143 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9144 hardcode_libdir_separator=:
9145
9146 hardcode_direct=yes
9147 export_dynamic_flag_spec='${wl}-E'
9148
9149 # hardcode_minus_L: Not really in the search PATH,
9150 # but as the default location of the library.
9151 hardcode_minus_L=yes
9152 fi
9153 ;;
9154
9155 hpux11*)
9156 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9157 case $host_cpu in
9158 hppa*64*)
9159 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9160 ;;
9161 ia64*)
9162 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9163 ;;
9164 *)
9165 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9166 ;;
9167 esac
9168 else
9169 case $host_cpu in
9170 hppa*64*)
9171 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9172 ;;
9173 ia64*)
9174 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9175 ;;
9176 *)
9177 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9178 ;;
9179 esac
9180 fi
9181 if test "$with_gnu_ld" = no; then
9182 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9183 hardcode_libdir_separator=:
9184
9185 case $host_cpu in
9186 hppa*64*|ia64*)
9187 hardcode_libdir_flag_spec_ld='+b $libdir'
9188 hardcode_direct=no
9189 hardcode_shlibpath_var=no
9190 ;;
9191 *)
9192 hardcode_direct=yes
9193 export_dynamic_flag_spec='${wl}-E'
9194
9195 # hardcode_minus_L: Not really in the search PATH,
9196 # but as the default location of the library.
9197 hardcode_minus_L=yes
9198 ;;
9199 esac
9200 fi
9201 ;;
9202
9203 irix5* | irix6* | nonstopux*)
9204 if test "$GCC" = yes; then
9205 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'
9206 else
9207 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'
9208 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9209 fi
9210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9211 hardcode_libdir_separator=:
9212 link_all_deplibs=yes
9213 ;;
9214
9215 netbsd*)
9216 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9218 else
9219 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9220 fi
9221 hardcode_libdir_flag_spec='-R$libdir'
9222 hardcode_direct=yes
9223 hardcode_shlibpath_var=no
9224 ;;
9225
9226 newsos6)
9227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9228 hardcode_direct=yes
9229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9230 hardcode_libdir_separator=:
9231 hardcode_shlibpath_var=no
9232 ;;
9233
9234 openbsd*)
9235 hardcode_direct=yes
9236 hardcode_shlibpath_var=no
9237 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9238 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9239 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9241 export_dynamic_flag_spec='${wl}-E'
9242 else
9243 case $host_os in
9244 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9246 hardcode_libdir_flag_spec='-R$libdir'
9247 ;;
9248 *)
9249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9250 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9251 ;;
9252 esac
9253 fi
9254 ;;
9255
9256 os2*)
9257 hardcode_libdir_flag_spec='-L$libdir'
9258 hardcode_minus_L=yes
9259 allow_undefined_flag=unsupported
9260 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'
9261 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9262 ;;
9263
9264 osf3*)
9265 if test "$GCC" = yes; then
9266 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9267 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'
9268 else
9269 allow_undefined_flag=' -expect_unresolved \*'
9270 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'
9271 fi
9272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9273 hardcode_libdir_separator=:
9274 ;;
9275
9276 osf4* | osf5*) # as osf3* with the addition of -msym flag
9277 if test "$GCC" = yes; then
9278 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9279 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'
9280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9281 else
9282 allow_undefined_flag=' -expect_unresolved \*'
9283 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'
9284 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9285 $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'
9286
9287 # Both c and cxx compiler support -rpath directly
9288 hardcode_libdir_flag_spec='-rpath $libdir'
9289 fi
9290 hardcode_libdir_separator=:
9291 ;;
9292
9293 solaris*)
9294 no_undefined_flag=' -z text'
9295 if test "$GCC" = yes; then
9296 wlarc='${wl}'
9297 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9298 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9299 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9300 else
9301 wlarc=''
9302 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9304 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9305 fi
9306 hardcode_libdir_flag_spec='-R$libdir'
9307 hardcode_shlibpath_var=no
9308 case $host_os in
9309 solaris2.[0-5] | solaris2.[0-5].*) ;;
9310 *)
9311 # The compiler driver will combine linker options so we
9312 # cannot just pass the convience library names through
9313 # without $wl, iff we do not link with $LD.
9314 # Luckily, gcc supports the same syntax we need for Sun Studio.
9315 # Supported since Solaris 2.6 (maybe 2.5.1?)
9316 case $wlarc in
9317 '')
9318 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9319 *)
9320 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' ;;
9321 esac ;;
9322 esac
9323 link_all_deplibs=yes
9324 ;;
9325
9326 sunos4*)
9327 if test "x$host_vendor" = xsequent; then
9328 # Use $CC to link under sequent, because it throws in some extra .o
9329 # files that make .init and .fini sections work.
9330 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9331 else
9332 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9333 fi
9334 hardcode_libdir_flag_spec='-L$libdir'
9335 hardcode_direct=yes
9336 hardcode_minus_L=yes
9337 hardcode_shlibpath_var=no
9338 ;;
9339
9340 sysv4)
9341 case $host_vendor in
9342 sni)
9343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_direct=yes # is this really true???
9345 ;;
9346 siemens)
9347 ## LD is ld it makes a PLAMLIB
9348 ## CC just makes a GrossModule.
9349 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9350 reload_cmds='$CC -r -o $output$reload_objs'
9351 hardcode_direct=no
9352 ;;
9353 motorola)
9354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9356 ;;
9357 esac
9358 runpath_var='LD_RUN_PATH'
9359 hardcode_shlibpath_var=no
9360 ;;
9361
9362 sysv4.3*)
9363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_shlibpath_var=no
9365 export_dynamic_flag_spec='-Bexport'
9366 ;;
9367
9368 sysv4*MP*)
9369 if test -d /usr/nec; then
9370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_shlibpath_var=no
9372 runpath_var=LD_RUN_PATH
9373 hardcode_runpath_var=yes
9374 ld_shlibs=yes
9375 fi
9376 ;;
9377
9378 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9379 no_undefined_flag='${wl}-z,text'
9380 archive_cmds_need_lc=no
9381 hardcode_shlibpath_var=no
9382 runpath_var='LD_RUN_PATH'
9383
9384 if test "$GCC" = yes; then
9385 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9386 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9387 else
9388 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390 fi
9391 ;;
9392
9393 sysv5* | sco3.2v5* | sco5v6*)
9394 # Note: We can NOT use -z defs as we might desire, because we do not
9395 # link with -lc, and that would cause any symbols used from libc to
9396 # always be unresolved, which means just about no library would
9397 # ever link correctly. If we're not using GNU ld we use -z text
9398 # though, which does catch some bad symbols but isn't as heavy-handed
9399 # as -z defs.
9400 no_undefined_flag='${wl}-z,text'
9401 allow_undefined_flag='${wl}-z,nodefs'
9402 archive_cmds_need_lc=no
9403 hardcode_shlibpath_var=no
9404 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9405 hardcode_libdir_separator=':'
9406 link_all_deplibs=yes
9407 export_dynamic_flag_spec='${wl}-Bexport'
9408 runpath_var='LD_RUN_PATH'
9409
9410 if test "$GCC" = yes; then
9411 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9413 else
9414 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 fi
9417 ;;
9418
9419 uts4*)
9420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421 hardcode_libdir_flag_spec='-L$libdir'
9422 hardcode_shlibpath_var=no
9423 ;;
9424
9425 *)
9426 ld_shlibs=no
9427 ;;
9428 esac
9429 fi
9430
9431 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9432 echo "${ECHO_T}$ld_shlibs" >&6
9433 test "$ld_shlibs" = no && can_build_shared=no
9434
9435 #
9436 # Do we need to explicitly link libc?
9437 #
9438 case "x$archive_cmds_need_lc" in
9439 x|xyes)
9440 # Assume -lc should be added
9441 archive_cmds_need_lc=yes
9442
9443 if test "$enable_shared" = yes && test "$GCC" = yes; then
9444 case $archive_cmds in
9445 *'~'*)
9446 # FIXME: we may have to deal with multi-command sequences.
9447 ;;
9448 '$CC '*)
9449 # Test whether the compiler implicitly links with -lc since on some
9450 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9451 # to ld, don't add -lc before -lgcc.
9452 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9453 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9454 $rm conftest*
9455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9456
9457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9458 (eval $ac_compile) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } 2>conftest.err; then
9462 soname=conftest
9463 lib=conftest
9464 libobjs=conftest.$ac_objext
9465 deplibs=
9466 wl=$lt_prog_compiler_wl
9467 pic_flag=$lt_prog_compiler_pic
9468 compiler_flags=-v
9469 linker_flags=-v
9470 verstring=
9471 output_objdir=.
9472 libname=conftest
9473 lt_save_allow_undefined_flag=$allow_undefined_flag
9474 allow_undefined_flag=
9475 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9476 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }
9480 then
9481 archive_cmds_need_lc=no
9482 else
9483 archive_cmds_need_lc=yes
9484 fi
9485 allow_undefined_flag=$lt_save_allow_undefined_flag
9486 else
9487 cat conftest.err 1>&5
9488 fi
9489 $rm conftest*
9490 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9491 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9492 ;;
9493 esac
9494 fi
9495 ;;
9496 esac
9497
9498 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9499 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9500 library_names_spec=
9501 libname_spec='lib$name'
9502 soname_spec=
9503 shrext_cmds=".so"
9504 postinstall_cmds=
9505 postuninstall_cmds=
9506 finish_cmds=
9507 finish_eval=
9508 shlibpath_var=
9509 shlibpath_overrides_runpath=unknown
9510 version_type=none
9511 dynamic_linker="$host_os ld.so"
9512 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9513 if test "$GCC" = yes; then
9514 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9515 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9516 # if the path contains ";" then we assume it to be the separator
9517 # otherwise default to the standard path separator (i.e. ":") - it is
9518 # assumed that no part of a normal pathname contains ";" but that should
9519 # okay in the real world where ";" in dirpaths is itself problematic.
9520 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9521 else
9522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9523 fi
9524 else
9525 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9526 fi
9527 need_lib_prefix=unknown
9528 hardcode_into_libs=no
9529
9530 # when you set need_version to no, make sure it does not cause -set_version
9531 # flags to be left without arguments
9532 need_version=unknown
9533
9534 case $host_os in
9535 aix3*)
9536 version_type=linux
9537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9538 shlibpath_var=LIBPATH
9539
9540 # AIX 3 has no versioning support, so we append a major version to the name.
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 ;;
9543
9544 aix4* | aix5*)
9545 version_type=linux
9546 need_lib_prefix=no
9547 need_version=no
9548 hardcode_into_libs=yes
9549 if test "$host_cpu" = ia64; then
9550 # AIX 5 supports IA64
9551 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 else
9554 # With GCC up to 2.95.x, collect2 would create an import file
9555 # for dependence libraries. The import file would start with
9556 # the line `#! .'. This would cause the generated library to
9557 # depend on `.', always an invalid library. This was fixed in
9558 # development snapshots of GCC prior to 3.0.
9559 case $host_os in
9560 aix4 | aix4.[01] | aix4.[01].*)
9561 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9562 echo ' yes '
9563 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9564 :
9565 else
9566 can_build_shared=no
9567 fi
9568 ;;
9569 esac
9570 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9571 # soname into executable. Probably we can add versioning support to
9572 # collect2, so additional links can be useful in future.
9573 if test "$aix_use_runtimelinking" = yes; then
9574 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9575 # instead of lib<name>.a to let people know that these are not
9576 # typical AIX shared libraries.
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 else
9579 # We preserve .a as extension for shared libraries through AIX4.2
9580 # and later when we are not doing run time linking.
9581 library_names_spec='${libname}${release}.a $libname.a'
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 fi
9584 shlibpath_var=LIBPATH
9585 fi
9586 ;;
9587
9588 amigaos*)
9589 library_names_spec='$libname.ixlibrary $libname.a'
9590 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9591 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'
9592 ;;
9593
9594 beos*)
9595 library_names_spec='${libname}${shared_ext}'
9596 dynamic_linker="$host_os ld.so"
9597 shlibpath_var=LIBRARY_PATH
9598 ;;
9599
9600 bsdi[45]*)
9601 version_type=linux
9602 need_version=no
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9604 soname_spec='${libname}${release}${shared_ext}$major'
9605 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9606 shlibpath_var=LD_LIBRARY_PATH
9607 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9608 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9609 # the default ld.so.conf also contains /usr/contrib/lib and
9610 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9611 # libtool to hard-code these into programs
9612 ;;
9613
9614 cygwin* | mingw* | pw32*)
9615 version_type=windows
9616 shrext_cmds=".dll"
9617 need_version=no
9618 need_lib_prefix=no
9619
9620 case $GCC,$host_os in
9621 yes,cygwin* | yes,mingw* | yes,pw32*)
9622 library_names_spec='$libname.dll.a'
9623 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9624 postinstall_cmds='base_file=`basename \${file}`~
9625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9626 dldir=$destdir/`dirname \$dlpath`~
9627 test -d \$dldir || mkdir -p \$dldir~
9628 $install_prog $dir/$dlname \$dldir/$dlname~
9629 chmod a+x \$dldir/$dlname'
9630 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9631 dlpath=$dir/\$dldll~
9632 $rm \$dlpath'
9633 shlibpath_overrides_runpath=yes
9634
9635 case $host_os in
9636 cygwin*)
9637 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9638 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9639 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9640 ;;
9641 mingw*)
9642 # MinGW DLLs use traditional 'lib' prefix
9643 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9644 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9645 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9646 # It is most probably a Windows format PATH printed by
9647 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9648 # path with ; separators, and with drive letters. We can handle the
9649 # drive letters (cygwin fileutils understands them), so leave them,
9650 # especially as we might pass files found there to a mingw objdump,
9651 # which wouldn't understand a cygwinified path. Ahh.
9652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9653 else
9654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9655 fi
9656 ;;
9657 pw32*)
9658 # pw32 DLLs use 'pw' prefix rather than 'lib'
9659 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9660 ;;
9661 esac
9662 ;;
9663
9664 *)
9665 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9666 ;;
9667 esac
9668 dynamic_linker='Win32 ld.exe'
9669 # FIXME: first we should search . and the directory the executable is in
9670 shlibpath_var=PATH
9671 ;;
9672
9673 darwin* | rhapsody*)
9674 dynamic_linker="$host_os dyld"
9675 version_type=darwin
9676 need_lib_prefix=no
9677 need_version=no
9678 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9679 soname_spec='${libname}${release}${major}$shared_ext'
9680 shlibpath_overrides_runpath=yes
9681 shlibpath_var=DYLD_LIBRARY_PATH
9682 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9683 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9684 if test "$GCC" = yes; then
9685 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"`
9686 else
9687 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9688 fi
9689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9690 ;;
9691
9692 dgux*)
9693 version_type=linux
9694 need_lib_prefix=no
9695 need_version=no
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 shlibpath_var=LD_LIBRARY_PATH
9699 ;;
9700
9701 freebsd1*)
9702 dynamic_linker=no
9703 ;;
9704
9705 kfreebsd*-gnu)
9706 version_type=linux
9707 need_lib_prefix=no
9708 need_version=no
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 shlibpath_var=LD_LIBRARY_PATH
9712 shlibpath_overrides_runpath=no
9713 hardcode_into_libs=yes
9714 dynamic_linker='GNU ld.so'
9715 ;;
9716
9717 freebsd* | dragonfly*)
9718 # DragonFly does not have aout. When/if they implement a new
9719 # versioning mechanism, adjust this.
9720 if test -x /usr/bin/objformat; then
9721 objformat=`/usr/bin/objformat`
9722 else
9723 case $host_os in
9724 freebsd[123]*) objformat=aout ;;
9725 *) objformat=elf ;;
9726 esac
9727 fi
9728 version_type=freebsd-$objformat
9729 case $version_type in
9730 freebsd-elf*)
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9732 need_version=no
9733 need_lib_prefix=no
9734 ;;
9735 freebsd-*)
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9737 need_version=yes
9738 ;;
9739 esac
9740 shlibpath_var=LD_LIBRARY_PATH
9741 case $host_os in
9742 freebsd2*)
9743 shlibpath_overrides_runpath=yes
9744 ;;
9745 freebsd3.[01]* | freebsdelf3.[01]*)
9746 shlibpath_overrides_runpath=yes
9747 hardcode_into_libs=yes
9748 ;;
9749 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9750 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9751 shlibpath_overrides_runpath=no
9752 hardcode_into_libs=yes
9753 ;;
9754 freebsd*) # from 4.6 on
9755 shlibpath_overrides_runpath=yes
9756 hardcode_into_libs=yes
9757 ;;
9758 esac
9759 ;;
9760
9761 gnu*)
9762 version_type=linux
9763 need_lib_prefix=no
9764 need_version=no
9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9766 soname_spec='${libname}${release}${shared_ext}$major'
9767 shlibpath_var=LD_LIBRARY_PATH
9768 hardcode_into_libs=yes
9769 ;;
9770
9771 hpux9* | hpux10* | hpux11*)
9772 # Give a soname corresponding to the major version so that dld.sl refuses to
9773 # link against other versions.
9774 version_type=sunos
9775 need_lib_prefix=no
9776 need_version=no
9777 case $host_cpu in
9778 ia64*)
9779 shrext_cmds='.so'
9780 hardcode_into_libs=yes
9781 dynamic_linker="$host_os dld.so"
9782 shlibpath_var=LD_LIBRARY_PATH
9783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785 soname_spec='${libname}${release}${shared_ext}$major'
9786 if test "X$HPUX_IA64_MODE" = X32; then
9787 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9788 else
9789 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9790 fi
9791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9792 ;;
9793 hppa*64*)
9794 shrext_cmds='.sl'
9795 hardcode_into_libs=yes
9796 dynamic_linker="$host_os dld.sl"
9797 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9803 ;;
9804 *)
9805 shrext_cmds='.sl'
9806 dynamic_linker="$host_os dld.sl"
9807 shlibpath_var=SHLIB_PATH
9808 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810 soname_spec='${libname}${release}${shared_ext}$major'
9811 ;;
9812 esac
9813 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9814 postinstall_cmds='chmod 555 $lib'
9815 ;;
9816
9817 interix3*)
9818 version_type=linux
9819 need_lib_prefix=no
9820 need_version=no
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 shlibpath_overrides_runpath=no
9826 hardcode_into_libs=yes
9827 ;;
9828
9829 irix5* | irix6* | nonstopux*)
9830 case $host_os in
9831 nonstopux*) version_type=nonstopux ;;
9832 *)
9833 if test "$lt_cv_prog_gnu_ld" = yes; then
9834 version_type=linux
9835 else
9836 version_type=irix
9837 fi ;;
9838 esac
9839 need_lib_prefix=no
9840 need_version=no
9841 soname_spec='${libname}${release}${shared_ext}$major'
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9843 case $host_os in
9844 irix5* | nonstopux*)
9845 libsuff= shlibsuff=
9846 ;;
9847 *)
9848 case $LD in # libtool.m4 will add one of these switches to LD
9849 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9850 libsuff= shlibsuff= libmagic=32-bit;;
9851 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9852 libsuff=32 shlibsuff=N32 libmagic=N32;;
9853 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9854 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9855 *) libsuff= shlibsuff= libmagic=never-match;;
9856 esac
9857 ;;
9858 esac
9859 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9860 shlibpath_overrides_runpath=no
9861 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9862 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9863 hardcode_into_libs=yes
9864 ;;
9865
9866 # No shared lib support for Linux oldld, aout, or coff.
9867 linux*oldld* | linux*aout* | linux*coff*)
9868 dynamic_linker=no
9869 ;;
9870
9871 # This must be Linux ELF.
9872 linux*)
9873 version_type=linux
9874 need_lib_prefix=no
9875 need_version=no
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877 soname_spec='${libname}${release}${shared_ext}$major'
9878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9879 shlibpath_var=LD_LIBRARY_PATH
9880 shlibpath_overrides_runpath=no
9881 # This implies no fast_install, which is unacceptable.
9882 # Some rework will be needed to allow for fast_install
9883 # before this can be enabled.
9884 hardcode_into_libs=yes
9885
9886 # Append ld.so.conf contents to the search path
9887 if test -f /etc/ld.so.conf; then
9888 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' ' '`
9889 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9890 fi
9891
9892 # We used to test for /lib/ld.so.1 and disable shared libraries on
9893 # powerpc, because MkLinux only supported shared libraries with the
9894 # GNU dynamic linker. Since this was broken with cross compilers,
9895 # most powerpc-linux boxes support dynamic linking these days and
9896 # people can always --disable-shared, the test was removed, and we
9897 # assume the GNU/Linux dynamic linker is in use.
9898 dynamic_linker='GNU/Linux ld.so'
9899 ;;
9900
9901 knetbsd*-gnu)
9902 version_type=linux
9903 need_lib_prefix=no
9904 need_version=no
9905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9906 soname_spec='${libname}${release}${shared_ext}$major'
9907 shlibpath_var=LD_LIBRARY_PATH
9908 shlibpath_overrides_runpath=no
9909 hardcode_into_libs=yes
9910 dynamic_linker='GNU ld.so'
9911 ;;
9912
9913 netbsd*)
9914 version_type=sunos
9915 need_lib_prefix=no
9916 need_version=no
9917 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9920 dynamic_linker='NetBSD (a.out) ld.so'
9921 else
9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9923 soname_spec='${libname}${release}${shared_ext}$major'
9924 dynamic_linker='NetBSD ld.elf_so'
9925 fi
9926 shlibpath_var=LD_LIBRARY_PATH
9927 shlibpath_overrides_runpath=yes
9928 hardcode_into_libs=yes
9929 ;;
9930
9931 newsos6)
9932 version_type=linux
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934 shlibpath_var=LD_LIBRARY_PATH
9935 shlibpath_overrides_runpath=yes
9936 ;;
9937
9938 nto-qnx*)
9939 version_type=linux
9940 need_lib_prefix=no
9941 need_version=no
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943 soname_spec='${libname}${release}${shared_ext}$major'
9944 shlibpath_var=LD_LIBRARY_PATH
9945 shlibpath_overrides_runpath=yes
9946 ;;
9947
9948 openbsd*)
9949 version_type=sunos
9950 sys_lib_dlsearch_path_spec="/usr/lib"
9951 need_lib_prefix=no
9952 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9953 case $host_os in
9954 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9955 *) need_version=no ;;
9956 esac
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9959 shlibpath_var=LD_LIBRARY_PATH
9960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9961 case $host_os in
9962 openbsd2.[89] | openbsd2.[89].*)
9963 shlibpath_overrides_runpath=no
9964 ;;
9965 *)
9966 shlibpath_overrides_runpath=yes
9967 ;;
9968 esac
9969 else
9970 shlibpath_overrides_runpath=yes
9971 fi
9972 ;;
9973
9974 os2*)
9975 libname_spec='$name'
9976 shrext_cmds=".dll"
9977 need_lib_prefix=no
9978 library_names_spec='$libname${shared_ext} $libname.a'
9979 dynamic_linker='OS/2 ld.exe'
9980 shlibpath_var=LIBPATH
9981 ;;
9982
9983 osf3* | osf4* | osf5*)
9984 version_type=osf
9985 need_lib_prefix=no
9986 need_version=no
9987 soname_spec='${libname}${release}${shared_ext}$major'
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989 shlibpath_var=LD_LIBRARY_PATH
9990 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9991 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9992 ;;
9993
9994 solaris*)
9995 version_type=linux
9996 need_lib_prefix=no
9997 need_version=no
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 shlibpath_var=LD_LIBRARY_PATH
10001 shlibpath_overrides_runpath=yes
10002 hardcode_into_libs=yes
10003 # ldd complains unless libraries are executable
10004 postinstall_cmds='chmod +x $lib'
10005 ;;
10006
10007 sunos4*)
10008 version_type=sunos
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10010 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 shlibpath_overrides_runpath=yes
10013 if test "$with_gnu_ld" = yes; then
10014 need_lib_prefix=no
10015 fi
10016 need_version=yes
10017 ;;
10018
10019 sysv4 | sysv4.3*)
10020 version_type=linux
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022 soname_spec='${libname}${release}${shared_ext}$major'
10023 shlibpath_var=LD_LIBRARY_PATH
10024 case $host_vendor in
10025 sni)
10026 shlibpath_overrides_runpath=no
10027 need_lib_prefix=no
10028 export_dynamic_flag_spec='${wl}-Blargedynsym'
10029 runpath_var=LD_RUN_PATH
10030 ;;
10031 siemens)
10032 need_lib_prefix=no
10033 ;;
10034 motorola)
10035 need_lib_prefix=no
10036 need_version=no
10037 shlibpath_overrides_runpath=no
10038 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10039 ;;
10040 esac
10041 ;;
10042
10043 sysv4*MP*)
10044 if test -d /usr/nec ;then
10045 version_type=linux
10046 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10047 soname_spec='$libname${shared_ext}.$major'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 fi
10050 ;;
10051
10052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10053 version_type=freebsd-elf
10054 need_lib_prefix=no
10055 need_version=no
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 hardcode_into_libs=yes
10060 if test "$with_gnu_ld" = yes; then
10061 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10062 shlibpath_overrides_runpath=no
10063 else
10064 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10065 shlibpath_overrides_runpath=yes
10066 case $host_os in
10067 sco3.2v5*)
10068 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10069 ;;
10070 esac
10071 fi
10072 sys_lib_dlsearch_path_spec='/usr/lib'
10073 ;;
10074
10075 uts4*)
10076 version_type=linux
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10078 soname_spec='${libname}${release}${shared_ext}$major'
10079 shlibpath_var=LD_LIBRARY_PATH
10080 ;;
10081
10082 *)
10083 dynamic_linker=no
10084 ;;
10085 esac
10086 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10087 echo "${ECHO_T}$dynamic_linker" >&6
10088 test "$dynamic_linker" = no && can_build_shared=no
10089
10090 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10091 if test "$GCC" = yes; then
10092 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10093 fi
10094
10095 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10096 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10097 hardcode_action=
10098 if test -n "$hardcode_libdir_flag_spec" || \
10099 test -n "$runpath_var" || \
10100 test "X$hardcode_automatic" = "Xyes" ; then
10101
10102 # We can hardcode non-existant directories.
10103 if test "$hardcode_direct" != no &&
10104 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10105 # have to relink, otherwise we might link with an installed library
10106 # when we should be linking with a yet-to-be-installed one
10107 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10108 test "$hardcode_minus_L" != no; then
10109 # Linking always hardcodes the temporary library directory.
10110 hardcode_action=relink
10111 else
10112 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10113 hardcode_action=immediate
10114 fi
10115 else
10116 # We cannot hardcode anything, or else we can only hardcode existing
10117 # directories.
10118 hardcode_action=unsupported
10119 fi
10120 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10121 echo "${ECHO_T}$hardcode_action" >&6
10122
10123 if test "$hardcode_action" = relink; then
10124 # Fast installation is not supported
10125 enable_fast_install=no
10126 elif test "$shlibpath_overrides_runpath" = yes ||
10127 test "$enable_shared" = no; then
10128 # Fast installation is not necessary
10129 enable_fast_install=needless
10130 fi
10131
10132 striplib=
10133 old_striplib=
10134 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10135 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10136 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10137 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10138 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10139 echo "$as_me:$LINENO: result: yes" >&5
10140 echo "${ECHO_T}yes" >&6
10141 else
10142 # FIXME - insert some real tests, host_os isn't really good enough
10143 case $host_os in
10144 darwin*)
10145 if test -n "$STRIP" ; then
10146 striplib="$STRIP -x"
10147 echo "$as_me:$LINENO: result: yes" >&5
10148 echo "${ECHO_T}yes" >&6
10149 else
10150 echo "$as_me:$LINENO: result: no" >&5
10151 echo "${ECHO_T}no" >&6
10152 fi
10153 ;;
10154 *)
10155 echo "$as_me:$LINENO: result: no" >&5
10156 echo "${ECHO_T}no" >&6
10157 ;;
10158 esac
10159 fi
10160
10161 if test "x$enable_dlopen" != xyes; then
10162 enable_dlopen=unknown
10163 enable_dlopen_self=unknown
10164 enable_dlopen_self_static=unknown
10165 else
10166 lt_cv_dlopen=no
10167 lt_cv_dlopen_libs=
10168
10169 case $host_os in
10170 beos*)
10171 lt_cv_dlopen="load_add_on"
10172 lt_cv_dlopen_libs=
10173 lt_cv_dlopen_self=yes
10174 ;;
10175
10176 mingw* | pw32*)
10177 lt_cv_dlopen="LoadLibrary"
10178 lt_cv_dlopen_libs=
10179 ;;
10180
10181 cygwin*)
10182 lt_cv_dlopen="dlopen"
10183 lt_cv_dlopen_libs=
10184 ;;
10185
10186 darwin*)
10187 # if libdl is installed we need to link against it
10188 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10189 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10190 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193 ac_check_lib_save_LIBS=$LIBS
10194 LIBS="-ldl $LIBS"
10195 cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h. */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201
10202 /* Override any gcc2 internal prototype to avoid an error. */
10203 #ifdef __cplusplus
10204 extern "C"
10205 #endif
10206 /* We use char because int might match the return type of a gcc2
10207 builtin and then its argument prototype would still apply. */
10208 char dlopen ();
10209 int
10210 main ()
10211 {
10212 dlopen ();
10213 ;
10214 return 0;
10215 }
10216 _ACEOF
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10219 (eval $ac_link) 2>conftest.er1
10220 ac_status=$?
10221 grep -v '^ *+' conftest.er1 >conftest.err
10222 rm -f conftest.er1
10223 cat conftest.err >&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } &&
10226 { ac_try='test -z "$ac_c_werror_flag"
10227 || test ! -s conftest.err'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10230 ac_status=$?
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; } &&
10233 { ac_try='test -s conftest$ac_exeext'
10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10236 ac_status=$?
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); }; }; then
10239 ac_cv_lib_dl_dlopen=yes
10240 else
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10243
10244 ac_cv_lib_dl_dlopen=no
10245 fi
10246 rm -f conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
10248 LIBS=$ac_check_lib_save_LIBS
10249 fi
10250 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10251 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10252 if test $ac_cv_lib_dl_dlopen = yes; then
10253 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10254 else
10255
10256 lt_cv_dlopen="dyld"
10257 lt_cv_dlopen_libs=
10258 lt_cv_dlopen_self=yes
10259
10260 fi
10261
10262 ;;
10263
10264 *)
10265 echo "$as_me:$LINENO: checking for shl_load" >&5
10266 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10267 if test "${ac_cv_func_shl_load+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270 cat >conftest.$ac_ext <<_ACEOF
10271 /* confdefs.h. */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10276 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10278 #define shl_load innocuous_shl_load
10279
10280 /* System header to define __stub macros and hopefully few prototypes,
10281 which can conflict with char shl_load (); below.
10282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10283 <limits.h> exists even on freestanding compilers. */
10284
10285 #ifdef __STDC__
10286 # include <limits.h>
10287 #else
10288 # include <assert.h>
10289 #endif
10290
10291 #undef shl_load
10292
10293 /* Override any gcc2 internal prototype to avoid an error. */
10294 #ifdef __cplusplus
10295 extern "C"
10296 {
10297 #endif
10298 /* We use char because int might match the return type of a gcc2
10299 builtin and then its argument prototype would still apply. */
10300 char shl_load ();
10301 /* The GNU C library defines this for functions which it implements
10302 to always fail with ENOSYS. Some functions are actually named
10303 something starting with __ and the normal name is an alias. */
10304 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10305 choke me
10306 #else
10307 char (*f) () = shl_load;
10308 #endif
10309 #ifdef __cplusplus
10310 }
10311 #endif
10312
10313 int
10314 main ()
10315 {
10316 return f != shl_load;
10317 ;
10318 return 0;
10319 }
10320 _ACEOF
10321 rm -f conftest.$ac_objext conftest$ac_exeext
10322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10323 (eval $ac_link) 2>conftest.er1
10324 ac_status=$?
10325 grep -v '^ *+' conftest.er1 >conftest.err
10326 rm -f conftest.er1
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } &&
10330 { ac_try='test -z "$ac_c_werror_flag"
10331 || test ! -s conftest.err'
10332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333 (eval $ac_try) 2>&5
10334 ac_status=$?
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; } &&
10337 { ac_try='test -s conftest$ac_exeext'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
10343 ac_cv_func_shl_load=yes
10344 else
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10347
10348 ac_cv_func_shl_load=no
10349 fi
10350 rm -f conftest.err conftest.$ac_objext \
10351 conftest$ac_exeext conftest.$ac_ext
10352 fi
10353 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10354 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10355 if test $ac_cv_func_shl_load = yes; then
10356 lt_cv_dlopen="shl_load"
10357 else
10358 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10359 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10360 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363 ac_check_lib_save_LIBS=$LIBS
10364 LIBS="-ldld $LIBS"
10365 cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h. */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371
10372 /* Override any gcc2 internal prototype to avoid an error. */
10373 #ifdef __cplusplus
10374 extern "C"
10375 #endif
10376 /* We use char because int might match the return type of a gcc2
10377 builtin and then its argument prototype would still apply. */
10378 char shl_load ();
10379 int
10380 main ()
10381 {
10382 shl_load ();
10383 ;
10384 return 0;
10385 }
10386 _ACEOF
10387 rm -f conftest.$ac_objext conftest$ac_exeext
10388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10389 (eval $ac_link) 2>conftest.er1
10390 ac_status=$?
10391 grep -v '^ *+' conftest.er1 >conftest.err
10392 rm -f conftest.er1
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } &&
10396 { ac_try='test -z "$ac_c_werror_flag"
10397 || test ! -s conftest.err'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10406 ac_status=$?
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_lib_dld_shl_load=yes
10410 else
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10413
10414 ac_cv_lib_dld_shl_load=no
10415 fi
10416 rm -f conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10418 LIBS=$ac_check_lib_save_LIBS
10419 fi
10420 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10421 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10422 if test $ac_cv_lib_dld_shl_load = yes; then
10423 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10424 else
10425 echo "$as_me:$LINENO: checking for dlopen" >&5
10426 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10427 if test "${ac_cv_func_dlopen+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 else
10430 cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h. */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10438 #define dlopen innocuous_dlopen
10439
10440 /* System header to define __stub macros and hopefully few prototypes,
10441 which can conflict with char dlopen (); below.
10442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10443 <limits.h> exists even on freestanding compilers. */
10444
10445 #ifdef __STDC__
10446 # include <limits.h>
10447 #else
10448 # include <assert.h>
10449 #endif
10450
10451 #undef dlopen
10452
10453 /* Override any gcc2 internal prototype to avoid an error. */
10454 #ifdef __cplusplus
10455 extern "C"
10456 {
10457 #endif
10458 /* We use char because int might match the return type of a gcc2
10459 builtin and then its argument prototype would still apply. */
10460 char dlopen ();
10461 /* The GNU C library defines this for functions which it implements
10462 to always fail with ENOSYS. Some functions are actually named
10463 something starting with __ and the normal name is an alias. */
10464 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10465 choke me
10466 #else
10467 char (*f) () = dlopen;
10468 #endif
10469 #ifdef __cplusplus
10470 }
10471 #endif
10472
10473 int
10474 main ()
10475 {
10476 return f != dlopen;
10477 ;
10478 return 0;
10479 }
10480 _ACEOF
10481 rm -f conftest.$ac_objext conftest$ac_exeext
10482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10483 (eval $ac_link) 2>conftest.er1
10484 ac_status=$?
10485 grep -v '^ *+' conftest.er1 >conftest.err
10486 rm -f conftest.er1
10487 cat conftest.err >&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } &&
10490 { ac_try='test -z "$ac_c_werror_flag"
10491 || test ! -s conftest.err'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; } &&
10497 { ac_try='test -s conftest$ac_exeext'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 ac_cv_func_dlopen=yes
10504 else
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10507
10508 ac_cv_func_dlopen=no
10509 fi
10510 rm -f conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
10512 fi
10513 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10514 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10515 if test $ac_cv_func_dlopen = yes; then
10516 lt_cv_dlopen="dlopen"
10517 else
10518 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10519 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10520 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10522 else
10523 ac_check_lib_save_LIBS=$LIBS
10524 LIBS="-ldl $LIBS"
10525 cat >conftest.$ac_ext <<_ACEOF
10526 /* confdefs.h. */
10527 _ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h. */
10531
10532 /* Override any gcc2 internal prototype to avoid an error. */
10533 #ifdef __cplusplus
10534 extern "C"
10535 #endif
10536 /* We use char because int might match the return type of a gcc2
10537 builtin and then its argument prototype would still apply. */
10538 char dlopen ();
10539 int
10540 main ()
10541 {
10542 dlopen ();
10543 ;
10544 return 0;
10545 }
10546 _ACEOF
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10549 (eval $ac_link) 2>conftest.er1
10550 ac_status=$?
10551 grep -v '^ *+' conftest.er1 >conftest.err
10552 rm -f conftest.er1
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } &&
10556 { ac_try='test -z "$ac_c_werror_flag"
10557 || test ! -s conftest.err'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; } &&
10563 { ac_try='test -s conftest$ac_exeext'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 ac_cv_lib_dl_dlopen=yes
10570 else
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10573
10574 ac_cv_lib_dl_dlopen=no
10575 fi
10576 rm -f conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10578 LIBS=$ac_check_lib_save_LIBS
10579 fi
10580 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10581 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10582 if test $ac_cv_lib_dl_dlopen = yes; then
10583 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10584 else
10585 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10586 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10587 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 else
10590 ac_check_lib_save_LIBS=$LIBS
10591 LIBS="-lsvld $LIBS"
10592 cat >conftest.$ac_ext <<_ACEOF
10593 /* confdefs.h. */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598
10599 /* Override any gcc2 internal prototype to avoid an error. */
10600 #ifdef __cplusplus
10601 extern "C"
10602 #endif
10603 /* We use char because int might match the return type of a gcc2
10604 builtin and then its argument prototype would still apply. */
10605 char dlopen ();
10606 int
10607 main ()
10608 {
10609 dlopen ();
10610 ;
10611 return 0;
10612 }
10613 _ACEOF
10614 rm -f conftest.$ac_objext conftest$ac_exeext
10615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616 (eval $ac_link) 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } &&
10623 { ac_try='test -z "$ac_c_werror_flag"
10624 || test ! -s conftest.err'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; } &&
10630 { ac_try='test -s conftest$ac_exeext'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636 ac_cv_lib_svld_dlopen=yes
10637 else
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10640
10641 ac_cv_lib_svld_dlopen=no
10642 fi
10643 rm -f conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10645 LIBS=$ac_check_lib_save_LIBS
10646 fi
10647 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10648 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10649 if test $ac_cv_lib_svld_dlopen = yes; then
10650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10651 else
10652 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10653 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10654 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657 ac_check_lib_save_LIBS=$LIBS
10658 LIBS="-ldld $LIBS"
10659 cat >conftest.$ac_ext <<_ACEOF
10660 /* confdefs.h. */
10661 _ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h. */
10665
10666 /* Override any gcc2 internal prototype to avoid an error. */
10667 #ifdef __cplusplus
10668 extern "C"
10669 #endif
10670 /* We use char because int might match the return type of a gcc2
10671 builtin and then its argument prototype would still apply. */
10672 char dld_link ();
10673 int
10674 main ()
10675 {
10676 dld_link ();
10677 ;
10678 return 0;
10679 }
10680 _ACEOF
10681 rm -f conftest.$ac_objext conftest$ac_exeext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10683 (eval $ac_link) 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -z "$ac_c_werror_flag"
10691 || test ! -s conftest.err'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest$ac_exeext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_cv_lib_dld_dld_link=yes
10704 else
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708 ac_cv_lib_dld_dld_link=no
10709 fi
10710 rm -f conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 LIBS=$ac_check_lib_save_LIBS
10713 fi
10714 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10715 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10716 if test $ac_cv_lib_dld_dld_link = yes; then
10717 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10718 fi
10719
10720
10721 fi
10722
10723
10724 fi
10725
10726
10727 fi
10728
10729
10730 fi
10731
10732
10733 fi
10734
10735 ;;
10736 esac
10737
10738 if test "x$lt_cv_dlopen" != xno; then
10739 enable_dlopen=yes
10740 else
10741 enable_dlopen=no
10742 fi
10743
10744 case $lt_cv_dlopen in
10745 dlopen)
10746 save_CPPFLAGS="$CPPFLAGS"
10747 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10748
10749 save_LDFLAGS="$LDFLAGS"
10750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10751
10752 save_LIBS="$LIBS"
10753 LIBS="$lt_cv_dlopen_libs $LIBS"
10754
10755 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10756 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10757 if test "${lt_cv_dlopen_self+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 else
10760 if test "$cross_compiling" = yes; then :
10761 lt_cv_dlopen_self=cross
10762 else
10763 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10764 lt_status=$lt_dlunknown
10765 cat > conftest.$ac_ext <<EOF
10766 #line 10766 "configure"
10767 #include "confdefs.h"
10768
10769 #if HAVE_DLFCN_H
10770 #include <dlfcn.h>
10771 #endif
10772
10773 #include <stdio.h>
10774
10775 #ifdef RTLD_GLOBAL
10776 # define LT_DLGLOBAL RTLD_GLOBAL
10777 #else
10778 # ifdef DL_GLOBAL
10779 # define LT_DLGLOBAL DL_GLOBAL
10780 # else
10781 # define LT_DLGLOBAL 0
10782 # endif
10783 #endif
10784
10785 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10786 find out it does not work in some platform. */
10787 #ifndef LT_DLLAZY_OR_NOW
10788 # ifdef RTLD_LAZY
10789 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10790 # else
10791 # ifdef DL_LAZY
10792 # define LT_DLLAZY_OR_NOW DL_LAZY
10793 # else
10794 # ifdef RTLD_NOW
10795 # define LT_DLLAZY_OR_NOW RTLD_NOW
10796 # else
10797 # ifdef DL_NOW
10798 # define LT_DLLAZY_OR_NOW DL_NOW
10799 # else
10800 # define LT_DLLAZY_OR_NOW 0
10801 # endif
10802 # endif
10803 # endif
10804 # endif
10805 #endif
10806
10807 #ifdef __cplusplus
10808 extern "C" void exit (int);
10809 #endif
10810
10811 void fnord() { int i=42;}
10812 int main ()
10813 {
10814 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10815 int status = $lt_dlunknown;
10816
10817 if (self)
10818 {
10819 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10820 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10821 /* dlclose (self); */
10822 }
10823 else
10824 puts (dlerror ());
10825
10826 exit (status);
10827 }
10828 EOF
10829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10830 (eval $ac_link) 2>&5
10831 ac_status=$?
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10834 (./conftest; exit; ) >&5 2>/dev/null
10835 lt_status=$?
10836 case x$lt_status in
10837 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10838 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10839 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10840 esac
10841 else :
10842 # compilation failed
10843 lt_cv_dlopen_self=no
10844 fi
10845 fi
10846 rm -fr conftest*
10847
10848
10849 fi
10850 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10851 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10852
10853 if test "x$lt_cv_dlopen_self" = xyes; then
10854 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10855 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10856 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10857 if test "${lt_cv_dlopen_self_static+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859 else
10860 if test "$cross_compiling" = yes; then :
10861 lt_cv_dlopen_self_static=cross
10862 else
10863 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10864 lt_status=$lt_dlunknown
10865 cat > conftest.$ac_ext <<EOF
10866 #line 10866 "configure"
10867 #include "confdefs.h"
10868
10869 #if HAVE_DLFCN_H
10870 #include <dlfcn.h>
10871 #endif
10872
10873 #include <stdio.h>
10874
10875 #ifdef RTLD_GLOBAL
10876 # define LT_DLGLOBAL RTLD_GLOBAL
10877 #else
10878 # ifdef DL_GLOBAL
10879 # define LT_DLGLOBAL DL_GLOBAL
10880 # else
10881 # define LT_DLGLOBAL 0
10882 # endif
10883 #endif
10884
10885 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10886 find out it does not work in some platform. */
10887 #ifndef LT_DLLAZY_OR_NOW
10888 # ifdef RTLD_LAZY
10889 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10890 # else
10891 # ifdef DL_LAZY
10892 # define LT_DLLAZY_OR_NOW DL_LAZY
10893 # else
10894 # ifdef RTLD_NOW
10895 # define LT_DLLAZY_OR_NOW RTLD_NOW
10896 # else
10897 # ifdef DL_NOW
10898 # define LT_DLLAZY_OR_NOW DL_NOW
10899 # else
10900 # define LT_DLLAZY_OR_NOW 0
10901 # endif
10902 # endif
10903 # endif
10904 # endif
10905 #endif
10906
10907 #ifdef __cplusplus
10908 extern "C" void exit (int);
10909 #endif
10910
10911 void fnord() { int i=42;}
10912 int main ()
10913 {
10914 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10915 int status = $lt_dlunknown;
10916
10917 if (self)
10918 {
10919 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10920 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10921 /* dlclose (self); */
10922 }
10923 else
10924 puts (dlerror ());
10925
10926 exit (status);
10927 }
10928 EOF
10929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10930 (eval $ac_link) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10934 (./conftest; exit; ) >&5 2>/dev/null
10935 lt_status=$?
10936 case x$lt_status in
10937 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10938 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10939 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10940 esac
10941 else :
10942 # compilation failed
10943 lt_cv_dlopen_self_static=no
10944 fi
10945 fi
10946 rm -fr conftest*
10947
10948
10949 fi
10950 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10951 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10952 fi
10953
10954 CPPFLAGS="$save_CPPFLAGS"
10955 LDFLAGS="$save_LDFLAGS"
10956 LIBS="$save_LIBS"
10957 ;;
10958 esac
10959
10960 case $lt_cv_dlopen_self in
10961 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10962 *) enable_dlopen_self=unknown ;;
10963 esac
10964
10965 case $lt_cv_dlopen_self_static in
10966 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10967 *) enable_dlopen_self_static=unknown ;;
10968 esac
10969 fi
10970
10971
10972 # Report which library types will actually be built
10973 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10974 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10975 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10976 echo "${ECHO_T}$can_build_shared" >&6
10977
10978 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10979 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10980 test "$can_build_shared" = "no" && enable_shared=no
10981
10982 # On AIX, shared libraries and static libraries use the same namespace, and
10983 # are all built from PIC.
10984 case $host_os in
10985 aix3*)
10986 test "$enable_shared" = yes && enable_static=no
10987 if test -n "$RANLIB"; then
10988 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10989 postinstall_cmds='$RANLIB $lib'
10990 fi
10991 ;;
10992
10993 aix4* | aix5*)
10994 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10995 test "$enable_shared" = yes && enable_static=no
10996 fi
10997 ;;
10998 esac
10999 echo "$as_me:$LINENO: result: $enable_shared" >&5
11000 echo "${ECHO_T}$enable_shared" >&6
11001
11002 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11003 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11004 # Make sure either enable_shared or enable_static is yes.
11005 test "$enable_shared" = yes || enable_static=yes
11006 echo "$as_me:$LINENO: result: $enable_static" >&5
11007 echo "${ECHO_T}$enable_static" >&6
11008
11009 # The else clause should only fire when bootstrapping the
11010 # libtool distribution, otherwise you forgot to ship ltmain.sh
11011 # with your package, and you will get complaints that there are
11012 # no rules to generate ltmain.sh.
11013 if test -f "$ltmain"; then
11014 # See if we are running on zsh, and set the options which allow our commands through
11015 # without removal of \ escapes.
11016 if test -n "${ZSH_VERSION+set}" ; then
11017 setopt NO_GLOB_SUBST
11018 fi
11019 # Now quote all the things that may contain metacharacters while being
11020 # careful not to overquote the AC_SUBSTed values. We take copies of the
11021 # variables and quote the copies for generation of the libtool script.
11022 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11023 SED SHELL STRIP \
11024 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11025 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11026 deplibs_check_method reload_flag reload_cmds need_locks \
11027 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11028 lt_cv_sys_global_symbol_to_c_name_address \
11029 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11030 old_postinstall_cmds old_postuninstall_cmds \
11031 compiler \
11032 CC \
11033 LD \
11034 lt_prog_compiler_wl \
11035 lt_prog_compiler_pic \
11036 lt_prog_compiler_static \
11037 lt_prog_compiler_no_builtin_flag \
11038 export_dynamic_flag_spec \
11039 thread_safe_flag_spec \
11040 whole_archive_flag_spec \
11041 enable_shared_with_static_runtimes \
11042 old_archive_cmds \
11043 old_archive_from_new_cmds \
11044 predep_objects \
11045 postdep_objects \
11046 predeps \
11047 postdeps \
11048 compiler_lib_search_path \
11049 archive_cmds \
11050 archive_expsym_cmds \
11051 postinstall_cmds \
11052 postuninstall_cmds \
11053 old_archive_from_expsyms_cmds \
11054 allow_undefined_flag \
11055 no_undefined_flag \
11056 export_symbols_cmds \
11057 hardcode_libdir_flag_spec \
11058 hardcode_libdir_flag_spec_ld \
11059 hardcode_libdir_separator \
11060 hardcode_automatic \
11061 module_cmds \
11062 module_expsym_cmds \
11063 lt_cv_prog_compiler_c_o \
11064 exclude_expsyms \
11065 include_expsyms; do
11066
11067 case $var in
11068 old_archive_cmds | \
11069 old_archive_from_new_cmds | \
11070 archive_cmds | \
11071 archive_expsym_cmds | \
11072 module_cmds | \
11073 module_expsym_cmds | \
11074 old_archive_from_expsyms_cmds | \
11075 export_symbols_cmds | \
11076 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11077 postinstall_cmds | postuninstall_cmds | \
11078 old_postinstall_cmds | old_postuninstall_cmds | \
11079 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11080 # Double-quote double-evaled strings.
11081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11082 ;;
11083 *)
11084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11085 ;;
11086 esac
11087 done
11088
11089 case $lt_echo in
11090 *'\$0 --fallback-echo"')
11091 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11092 ;;
11093 esac
11094
11095 cfgfile="${ofile}T"
11096 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11097 $rm -f "$cfgfile"
11098 { echo "$as_me:$LINENO: creating $ofile" >&5
11099 echo "$as_me: creating $ofile" >&6;}
11100
11101 cat <<__EOF__ >> "$cfgfile"
11102 #! $SHELL
11103
11104 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11105 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11106 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11107 #
11108 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11109 # Free Software Foundation, Inc.
11110 #
11111 # This file is part of GNU Libtool:
11112 # Originally by Gordon Matzigkeit <[email protected]>, 1996
11113 #
11114 # This program is free software; you can redistribute it and/or modify
11115 # it under the terms of the GNU General Public License as published by
11116 # the Free Software Foundation; either version 2 of the License, or
11117 # (at your option) any later version.
11118 #
11119 # This program is distributed in the hope that it will be useful, but
11120 # WITHOUT ANY WARRANTY; without even the implied warranty of
11121 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11122 # General Public License for more details.
11123 #
11124 # You should have received a copy of the GNU General Public License
11125 # along with this program; if not, write to the Free Software
11126 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11127 #
11128 # As a special exception to the GNU General Public License, if you
11129 # distribute this file as part of a program that contains a
11130 # configuration script generated by Autoconf, you may include it under
11131 # the same distribution terms that you use for the rest of that program.
11132
11133 # A sed program that does not truncate output.
11134 SED=$lt_SED
11135
11136 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11137 Xsed="$SED -e 1s/^X//"
11138
11139 # The HP-UX ksh and POSIX shell print the target directory to stdout
11140 # if CDPATH is set.
11141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11142
11143 # The names of the tagged configurations supported by this script.
11144 available_tags=
11145
11146 # ### BEGIN LIBTOOL CONFIG
11147
11148 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11149
11150 # Shell to use when invoking shell scripts.
11151 SHELL=$lt_SHELL
11152
11153 # Whether or not to build shared libraries.
11154 build_libtool_libs=$enable_shared
11155
11156 # Whether or not to build static libraries.
11157 build_old_libs=$enable_static
11158
11159 # Whether or not to add -lc for building shared libraries.
11160 build_libtool_need_lc=$archive_cmds_need_lc
11161
11162 # Whether or not to disallow shared libs when runtime libs are static
11163 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11164
11165 # Whether or not to optimize for fast installation.
11166 fast_install=$enable_fast_install
11167
11168 # The host system.
11169 host_alias=$host_alias
11170 host=$host
11171 host_os=$host_os
11172
11173 # The build system.
11174 build_alias=$build_alias
11175 build=$build
11176 build_os=$build_os
11177
11178 # An echo program that does not interpret backslashes.
11179 echo=$lt_echo
11180
11181 # The archiver.
11182 AR=$lt_AR
11183 AR_FLAGS=$lt_AR_FLAGS
11184
11185 # A C compiler.
11186 LTCC=$lt_LTCC
11187
11188 # LTCC compiler flags.
11189 LTCFLAGS=$lt_LTCFLAGS
11190
11191 # A language-specific compiler.
11192 CC=$lt_compiler
11193
11194 # Is the compiler the GNU C compiler?
11195 with_gcc=$GCC
11196
11197 # An ERE matcher.
11198 EGREP=$lt_EGREP
11199
11200 # The linker used to build libraries.
11201 LD=$lt_LD
11202
11203 # Whether we need hard or soft links.
11204 LN_S=$lt_LN_S
11205
11206 # A BSD-compatible nm program.
11207 NM=$lt_NM
11208
11209 # A symbol stripping program
11210 STRIP=$lt_STRIP
11211
11212 # Used to examine libraries when file_magic_cmd begins "file"
11213 MAGIC_CMD=$MAGIC_CMD
11214
11215 # Used on cygwin: DLL creation program.
11216 DLLTOOL="$DLLTOOL"
11217
11218 # Used on cygwin: object dumper.
11219 OBJDUMP="$OBJDUMP"
11220
11221 # Used on cygwin: assembler.
11222 AS="$AS"
11223
11224 # The name of the directory that contains temporary libtool files.
11225 objdir=$objdir
11226
11227 # How to create reloadable object files.
11228 reload_flag=$lt_reload_flag
11229 reload_cmds=$lt_reload_cmds
11230
11231 # How to pass a linker flag through the compiler.
11232 wl=$lt_lt_prog_compiler_wl
11233
11234 # Object file suffix (normally "o").
11235 objext="$ac_objext"
11236
11237 # Old archive suffix (normally "a").
11238 libext="$libext"
11239
11240 # Shared library suffix (normally ".so").
11241 shrext_cmds='$shrext_cmds'
11242
11243 # Executable file suffix (normally "").
11244 exeext="$exeext"
11245
11246 # Additional compiler flags for building library objects.
11247 pic_flag=$lt_lt_prog_compiler_pic
11248 pic_mode=$pic_mode
11249
11250 # What is the maximum length of a command?
11251 max_cmd_len=$lt_cv_sys_max_cmd_len
11252
11253 # Does compiler simultaneously support -c and -o options?
11254 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11255
11256 # Must we lock files when doing compilation?
11257 need_locks=$lt_need_locks
11258
11259 # Do we need the lib prefix for modules?
11260 need_lib_prefix=$need_lib_prefix
11261
11262 # Do we need a version for libraries?
11263 need_version=$need_version
11264
11265 # Whether dlopen is supported.
11266 dlopen_support=$enable_dlopen
11267
11268 # Whether dlopen of programs is supported.
11269 dlopen_self=$enable_dlopen_self
11270
11271 # Whether dlopen of statically linked programs is supported.
11272 dlopen_self_static=$enable_dlopen_self_static
11273
11274 # Compiler flag to prevent dynamic linking.
11275 link_static_flag=$lt_lt_prog_compiler_static
11276
11277 # Compiler flag to turn off builtin functions.
11278 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11279
11280 # Compiler flag to allow reflexive dlopens.
11281 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11282
11283 # Compiler flag to generate shared objects directly from archives.
11284 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11285
11286 # Compiler flag to generate thread-safe objects.
11287 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11288
11289 # Library versioning type.
11290 version_type=$version_type
11291
11292 # Format of library name prefix.
11293 libname_spec=$lt_libname_spec
11294
11295 # List of archive names. First name is the real one, the rest are links.
11296 # The last name is the one that the linker finds with -lNAME.
11297 library_names_spec=$lt_library_names_spec
11298
11299 # The coded name of the library, if different from the real name.
11300 soname_spec=$lt_soname_spec
11301
11302 # Commands used to build and install an old-style archive.
11303 RANLIB=$lt_RANLIB
11304 old_archive_cmds=$lt_old_archive_cmds
11305 old_postinstall_cmds=$lt_old_postinstall_cmds
11306 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11307
11308 # Create an old-style archive from a shared archive.
11309 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11310
11311 # Create a temporary old-style archive to link instead of a shared archive.
11312 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11313
11314 # Commands used to build and install a shared archive.
11315 archive_cmds=$lt_archive_cmds
11316 archive_expsym_cmds=$lt_archive_expsym_cmds
11317 postinstall_cmds=$lt_postinstall_cmds
11318 postuninstall_cmds=$lt_postuninstall_cmds
11319
11320 # Commands used to build a loadable module (assumed same as above if empty)
11321 module_cmds=$lt_module_cmds
11322 module_expsym_cmds=$lt_module_expsym_cmds
11323
11324 # Commands to strip libraries.
11325 old_striplib=$lt_old_striplib
11326 striplib=$lt_striplib
11327
11328 # Dependencies to place before the objects being linked to create a
11329 # shared library.
11330 predep_objects=$lt_predep_objects
11331
11332 # Dependencies to place after the objects being linked to create a
11333 # shared library.
11334 postdep_objects=$lt_postdep_objects
11335
11336 # Dependencies to place before the objects being linked to create a
11337 # shared library.
11338 predeps=$lt_predeps
11339
11340 # Dependencies to place after the objects being linked to create a
11341 # shared library.
11342 postdeps=$lt_postdeps
11343
11344 # The library search path used internally by the compiler when linking
11345 # a shared library.
11346 compiler_lib_search_path=$lt_compiler_lib_search_path
11347
11348 # Method to check whether dependent libraries are shared objects.
11349 deplibs_check_method=$lt_deplibs_check_method
11350
11351 # Command to use when deplibs_check_method == file_magic.
11352 file_magic_cmd=$lt_file_magic_cmd
11353
11354 # Flag that allows shared libraries with undefined symbols to be built.
11355 allow_undefined_flag=$lt_allow_undefined_flag
11356
11357 # Flag that forces no undefined symbols.
11358 no_undefined_flag=$lt_no_undefined_flag
11359
11360 # Commands used to finish a libtool library installation in a directory.
11361 finish_cmds=$lt_finish_cmds
11362
11363 # Same as above, but a single script fragment to be evaled but not shown.
11364 finish_eval=$lt_finish_eval
11365
11366 # Take the output of nm and produce a listing of raw symbols and C names.
11367 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11368
11369 # Transform the output of nm in a proper C declaration
11370 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11371
11372 # Transform the output of nm in a C name address pair
11373 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11374
11375 # This is the shared library runtime path variable.
11376 runpath_var=$runpath_var
11377
11378 # This is the shared library path variable.
11379 shlibpath_var=$shlibpath_var
11380
11381 # Is shlibpath searched before the hard-coded library search path?
11382 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11383
11384 # How to hardcode a shared library path into an executable.
11385 hardcode_action=$hardcode_action
11386
11387 # Whether we should hardcode library paths into libraries.
11388 hardcode_into_libs=$hardcode_into_libs
11389
11390 # Flag to hardcode \$libdir into a binary during linking.
11391 # This must work even if \$libdir does not exist.
11392 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11393
11394 # If ld is used when linking, flag to hardcode \$libdir into
11395 # a binary during linking. This must work even if \$libdir does
11396 # not exist.
11397 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11398
11399 # Whether we need a single -rpath flag with a separated argument.
11400 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11401
11402 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11403 # resulting binary.
11404 hardcode_direct=$hardcode_direct
11405
11406 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11407 # resulting binary.
11408 hardcode_minus_L=$hardcode_minus_L
11409
11410 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11411 # the resulting binary.
11412 hardcode_shlibpath_var=$hardcode_shlibpath_var
11413
11414 # Set to yes if building a shared library automatically hardcodes DIR into the library
11415 # and all subsequent libraries and executables linked against it.
11416 hardcode_automatic=$hardcode_automatic
11417
11418 # Variables whose values should be saved in libtool wrapper scripts and
11419 # restored at relink time.
11420 variables_saved_for_relink="$variables_saved_for_relink"
11421
11422 # Whether libtool must link a program against all its dependency libraries.
11423 link_all_deplibs=$link_all_deplibs
11424
11425 # Compile-time system search path for libraries
11426 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11427
11428 # Run-time system search path for libraries
11429 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11430
11431 # Fix the shell variable \$srcfile for the compiler.
11432 fix_srcfile_path="$fix_srcfile_path"
11433
11434 # Set to yes if exported symbols are required.
11435 always_export_symbols=$always_export_symbols
11436
11437 # The commands to list exported symbols.
11438 export_symbols_cmds=$lt_export_symbols_cmds
11439
11440 # The commands to extract the exported symbol list from a shared archive.
11441 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11442
11443 # Symbols that should not be listed in the preloaded symbols.
11444 exclude_expsyms=$lt_exclude_expsyms
11445
11446 # Symbols that must always be exported.
11447 include_expsyms=$lt_include_expsyms
11448
11449 # ### END LIBTOOL CONFIG
11450
11451 __EOF__
11452
11453
11454 case $host_os in
11455 aix3*)
11456 cat <<\EOF >> "$cfgfile"
11457
11458 # AIX sometimes has problems with the GCC collect2 program. For some
11459 # reason, if we set the COLLECT_NAMES environment variable, the problems
11460 # vanish in a puff of smoke.
11461 if test "X${COLLECT_NAMES+set}" != Xset; then
11462 COLLECT_NAMES=
11463 export COLLECT_NAMES
11464 fi
11465 EOF
11466 ;;
11467 esac
11468
11469 # We use sed instead of cat because bash on DJGPP gets confused if
11470 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11471 # text mode, it properly converts lines to CR/LF. This bash problem
11472 # is reportedly fixed, but why not run on old versions too?
11473 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11474
11475 mv -f "$cfgfile" "$ofile" || \
11476 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11477 chmod +x "$ofile"
11478
11479 else
11480 # If there is no Makefile yet, we rely on a make rule to execute
11481 # `config.status --recheck' to rerun these tests and create the
11482 # libtool script then.
11483 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11484 if test -f "$ltmain_in"; then
11485 test -f Makefile && make "$ltmain"
11486 fi
11487 fi
11488
11489
11490 ac_ext=c
11491 ac_cpp='$CPP $CPPFLAGS'
11492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11495
11496 CC="$lt_save_CC"
11497
11498
11499 # Check whether --with-tags or --without-tags was given.
11500 if test "${with_tags+set}" = set; then
11501 withval="$with_tags"
11502 tagnames="$withval"
11503 fi;
11504
11505 if test -f "$ltmain" && test -n "$tagnames"; then
11506 if test ! -f "${ofile}"; then
11507 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11508 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11509 fi
11510
11511 if test -z "$LTCC"; then
11512 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11513 if test -z "$LTCC"; then
11514 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11515 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11516 else
11517 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11518 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11519 fi
11520 fi
11521 if test -z "$LTCFLAGS"; then
11522 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11523 fi
11524
11525 # Extract list of available tagged configurations in $ofile.
11526 # Note that this assumes the entire list is on one line.
11527 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11528
11529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11530 for tagname in $tagnames; do
11531 IFS="$lt_save_ifs"
11532 # Check whether tagname contains only valid characters
11533 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11534 "") ;;
11535 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11536 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11537 { (exit 1); exit 1; }; }
11538 ;;
11539 esac
11540
11541 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11542 then
11543 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11544 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11545 { (exit 1); exit 1; }; }
11546 fi
11547
11548 # Update the list of available tags.
11549 if test -n "$tagname"; then
11550 echo appending configuration tag \"$tagname\" to $ofile
11551
11552 case $tagname in
11553 CXX)
11554 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11555 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11556 (test "X$CXX" != "Xg++"))) ; then
11557 ac_ext=cc
11558 ac_cpp='$CXXCPP $CPPFLAGS'
11559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11562
11563
11564
11565
11566 archive_cmds_need_lc_CXX=no
11567 allow_undefined_flag_CXX=
11568 always_export_symbols_CXX=no
11569 archive_expsym_cmds_CXX=
11570 export_dynamic_flag_spec_CXX=
11571 hardcode_direct_CXX=no
11572 hardcode_libdir_flag_spec_CXX=
11573 hardcode_libdir_flag_spec_ld_CXX=
11574 hardcode_libdir_separator_CXX=
11575 hardcode_minus_L_CXX=no
11576 hardcode_shlibpath_var_CXX=unsupported
11577 hardcode_automatic_CXX=no
11578 module_cmds_CXX=
11579 module_expsym_cmds_CXX=
11580 link_all_deplibs_CXX=unknown
11581 old_archive_cmds_CXX=$old_archive_cmds
11582 no_undefined_flag_CXX=
11583 whole_archive_flag_spec_CXX=
11584 enable_shared_with_static_runtimes_CXX=no
11585
11586 # Dependencies to place before and after the object being linked:
11587 predep_objects_CXX=
11588 postdep_objects_CXX=
11589 predeps_CXX=
11590 postdeps_CXX=
11591 compiler_lib_search_path_CXX=
11592
11593 # Source file extension for C++ test sources.
11594 ac_ext=cpp
11595
11596 # Object file extension for compiled C++ test sources.
11597 objext=o
11598 objext_CXX=$objext
11599
11600 # Code to be used in simple compile tests
11601 lt_simple_compile_test_code="int some_variable = 0;\n"
11602
11603 # Code to be used in simple link tests
11604 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11605
11606 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11607
11608 # If no C compiler was specified, use CC.
11609 LTCC=${LTCC-"$CC"}
11610
11611 # If no C compiler flags were specified, use CFLAGS.
11612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11613
11614 # Allow CC to be a program name with arguments.
11615 compiler=$CC
11616
11617
11618 # save warnings/boilerplate of simple test code
11619 ac_outfile=conftest.$ac_objext
11620 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11621 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11622 _lt_compiler_boilerplate=`cat conftest.err`
11623 $rm conftest*
11624
11625 ac_outfile=conftest.$ac_objext
11626 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11627 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11628 _lt_linker_boilerplate=`cat conftest.err`
11629 $rm conftest*
11630
11631
11632 # Allow CC to be a program name with arguments.
11633 lt_save_CC=$CC
11634 lt_save_LD=$LD
11635 lt_save_GCC=$GCC
11636 GCC=$GXX
11637 lt_save_with_gnu_ld=$with_gnu_ld
11638 lt_save_path_LD=$lt_cv_path_LD
11639 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11640 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11641 else
11642 $as_unset lt_cv_prog_gnu_ld
11643 fi
11644 if test -n "${lt_cv_path_LDCXX+set}"; then
11645 lt_cv_path_LD=$lt_cv_path_LDCXX
11646 else
11647 $as_unset lt_cv_path_LD
11648 fi
11649 test -z "${LDCXX+set}" || LD=$LDCXX
11650 CC=${CXX-"c++"}
11651 compiler=$CC
11652 compiler_CXX=$CC
11653 for cc_temp in $compiler""; do
11654 case $cc_temp in
11655 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11656 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11657 \-*) ;;
11658 *) break;;
11659 esac
11660 done
11661 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11662
11663
11664 # We don't want -fno-exception wen compiling C++ code, so set the
11665 # no_builtin_flag separately
11666 if test "$GXX" = yes; then
11667 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11668 else
11669 lt_prog_compiler_no_builtin_flag_CXX=
11670 fi
11671
11672 if test "$GXX" = yes; then
11673 # Set up default GNU C++ configuration
11674
11675
11676 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11677 if test "${with_gnu_ld+set}" = set; then
11678 withval="$with_gnu_ld"
11679 test "$withval" = no || with_gnu_ld=yes
11680 else
11681 with_gnu_ld=no
11682 fi;
11683 ac_prog=ld
11684 if test "$GCC" = yes; then
11685 # Check if gcc -print-prog-name=ld gives a path.
11686 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11687 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11688 case $host in
11689 *-*-mingw*)
11690 # gcc leaves a trailing carriage return which upsets mingw
11691 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11692 *)
11693 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11694 esac
11695 case $ac_prog in
11696 # Accept absolute paths.
11697 [\\/]* | ?:[\\/]*)
11698 re_direlt='/[^/][^/]*/\.\./'
11699 # Canonicalize the pathname of ld
11700 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11701 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11702 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11703 done
11704 test -z "$LD" && LD="$ac_prog"
11705 ;;
11706 "")
11707 # If it fails, then pretend we aren't using GCC.
11708 ac_prog=ld
11709 ;;
11710 *)
11711 # If it is relative, then search for the first ld in PATH.
11712 with_gnu_ld=unknown
11713 ;;
11714 esac
11715 elif test "$with_gnu_ld" = yes; then
11716 echo "$as_me:$LINENO: checking for GNU ld" >&5
11717 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11718 else
11719 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11720 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11721 fi
11722 if test "${lt_cv_path_LD+set}" = set; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 else
11725 if test -z "$LD"; then
11726 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11727 for ac_dir in $PATH; do
11728 IFS="$lt_save_ifs"
11729 test -z "$ac_dir" && ac_dir=.
11730 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11731 lt_cv_path_LD="$ac_dir/$ac_prog"
11732 # Check to see if the program is GNU ld. I'd rather use --version,
11733 # but apparently some variants of GNU ld only accept -v.
11734 # Break only if it was the GNU/non-GNU ld that we prefer.
11735 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11736 *GNU* | *'with BFD'*)
11737 test "$with_gnu_ld" != no && break
11738 ;;
11739 *)
11740 test "$with_gnu_ld" != yes && break
11741 ;;
11742 esac
11743 fi
11744 done
11745 IFS="$lt_save_ifs"
11746 else
11747 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11748 fi
11749 fi
11750
11751 LD="$lt_cv_path_LD"
11752 if test -n "$LD"; then
11753 echo "$as_me:$LINENO: result: $LD" >&5
11754 echo "${ECHO_T}$LD" >&6
11755 else
11756 echo "$as_me:$LINENO: result: no" >&5
11757 echo "${ECHO_T}no" >&6
11758 fi
11759 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11760 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11761 { (exit 1); exit 1; }; }
11762 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11763 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11764 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
11766 else
11767 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11768 case `$LD -v 2>&1 </dev/null` in
11769 *GNU* | *'with BFD'*)
11770 lt_cv_prog_gnu_ld=yes
11771 ;;
11772 *)
11773 lt_cv_prog_gnu_ld=no
11774 ;;
11775 esac
11776 fi
11777 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11778 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11779 with_gnu_ld=$lt_cv_prog_gnu_ld
11780
11781
11782
11783 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11784 # archiving commands below assume that GNU ld is being used.
11785 if test "$with_gnu_ld" = yes; then
11786 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11787 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'
11788
11789 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11790 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11791
11792 # If archive_cmds runs LD, not CC, wlarc should be empty
11793 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11794 # investigate it a little bit more. (MM)
11795 wlarc='${wl}'
11796
11797 # ancient GNU ld didn't support --whole-archive et. al.
11798 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11799 grep 'no-whole-archive' > /dev/null; then
11800 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11801 else
11802 whole_archive_flag_spec_CXX=
11803 fi
11804 else
11805 with_gnu_ld=no
11806 wlarc=
11807
11808 # A generic and very simple default shared library creation
11809 # command for GNU C++ for the case where it uses the native
11810 # linker, instead of GNU ld. If possible, this setting should
11811 # overridden to take advantage of the native linker features on
11812 # the platform it is being used on.
11813 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11814 fi
11815
11816 # Commands to make compiler produce verbose output that lists
11817 # what "hidden" libraries, object files and flags are used when
11818 # linking a shared library.
11819 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11820
11821 else
11822 GXX=no
11823 with_gnu_ld=no
11824 wlarc=
11825 fi
11826
11827 # PORTME: fill in a description of your system's C++ link characteristics
11828 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11829 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11830 ld_shlibs_CXX=yes
11831 case $host_os in
11832 aix3*)
11833 # FIXME: insert proper C++ library support
11834 ld_shlibs_CXX=no
11835 ;;
11836 aix4* | aix5*)
11837 if test "$host_cpu" = ia64; then
11838 # On IA64, the linker does run time linking by default, so we don't
11839 # have to do anything special.
11840 aix_use_runtimelinking=no
11841 exp_sym_flag='-Bexport'
11842 no_entry_flag=""
11843 else
11844 aix_use_runtimelinking=no
11845
11846 # Test if we are trying to use run time linking or normal
11847 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11848 # need to do runtime linking.
11849 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11850 for ld_flag in $LDFLAGS; do
11851 case $ld_flag in
11852 *-brtl*)
11853 aix_use_runtimelinking=yes
11854 break
11855 ;;
11856 esac
11857 done
11858 ;;
11859 esac
11860
11861 exp_sym_flag='-bexport'
11862 no_entry_flag='-bnoentry'
11863 fi
11864
11865 # When large executables or shared objects are built, AIX ld can
11866 # have problems creating the table of contents. If linking a library
11867 # or program results in "error TOC overflow" add -mminimal-toc to
11868 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11869 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11870
11871 archive_cmds_CXX=''
11872 hardcode_direct_CXX=yes
11873 hardcode_libdir_separator_CXX=':'
11874 link_all_deplibs_CXX=yes
11875
11876 if test "$GXX" = yes; then
11877 case $host_os in aix4.[012]|aix4.[012].*)
11878 # We only want to do this on AIX 4.2 and lower, the check
11879 # below for broken collect2 doesn't work under 4.3+
11880 collect2name=`${CC} -print-prog-name=collect2`
11881 if test -f "$collect2name" && \
11882 strings "$collect2name" | grep resolve_lib_name >/dev/null
11883 then
11884 # We have reworked collect2
11885 hardcode_direct_CXX=yes
11886 else
11887 # We have old collect2
11888 hardcode_direct_CXX=unsupported
11889 # It fails to find uninstalled libraries when the uninstalled
11890 # path is not listed in the libpath. Setting hardcode_minus_L
11891 # to unsupported forces relinking
11892 hardcode_minus_L_CXX=yes
11893 hardcode_libdir_flag_spec_CXX='-L$libdir'
11894 hardcode_libdir_separator_CXX=
11895 fi
11896 ;;
11897 esac
11898 shared_flag='-shared'
11899 if test "$aix_use_runtimelinking" = yes; then
11900 shared_flag="$shared_flag "'${wl}-G'
11901 fi
11902 else
11903 # not using gcc
11904 if test "$host_cpu" = ia64; then
11905 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11906 # chokes on -Wl,-G. The following line is correct:
11907 shared_flag='-G'
11908 else
11909 if test "$aix_use_runtimelinking" = yes; then
11910 shared_flag='${wl}-G'
11911 else
11912 shared_flag='${wl}-bM:SRE'
11913 fi
11914 fi
11915 fi
11916
11917 # It seems that -bexpall does not export symbols beginning with
11918 # underscore (_), so it is better to generate a list of symbols to export.
11919 always_export_symbols_CXX=yes
11920 if test "$aix_use_runtimelinking" = yes; then
11921 # Warning - without using the other runtime loading flags (-brtl),
11922 # -berok will link without error, but may produce a broken library.
11923 allow_undefined_flag_CXX='-berok'
11924 # Determine the default libpath from the value encoded in an empty executable.
11925 cat >conftest.$ac_ext <<_ACEOF
11926 /* confdefs.h. */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931
11932 int
11933 main ()
11934 {
11935
11936 ;
11937 return 0;
11938 }
11939 _ACEOF
11940 rm -f conftest.$ac_objext conftest$ac_exeext
11941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11942 (eval $ac_link) 2>conftest.er1
11943 ac_status=$?
11944 grep -v '^ *+' conftest.er1 >conftest.err
11945 rm -f conftest.er1
11946 cat conftest.err >&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } &&
11949 { ac_try='test -z "$ac_cxx_werror_flag"
11950 || test ! -s conftest.err'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11953 ac_status=$?
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; } &&
11956 { ac_try='test -s conftest$ac_exeext'
11957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958 (eval $ac_try) 2>&5
11959 ac_status=$?
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); }; }; then
11962
11963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11964 }'`
11965 # Check for a 64-bit object if we didn't find anything.
11966 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; }
11967 }'`; fi
11968 else
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11971
11972 fi
11973 rm -f conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
11975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11976
11977 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11978
11979 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"
11980 else
11981 if test "$host_cpu" = ia64; then
11982 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11983 allow_undefined_flag_CXX="-z nodefs"
11984 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"
11985 else
11986 # Determine the default libpath from the value encoded in an empty executable.
11987 cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h. */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993
11994 int
11995 main ()
11996 {
11997
11998 ;
11999 return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12004 (eval $ac_link) 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_cxx_werror_flag"
12012 || test ! -s conftest.err'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; } &&
12018 { ac_try='test -s conftest$ac_exeext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024
12025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12026 }'`
12027 # Check for a 64-bit object if we didn't find anything.
12028 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; }
12029 }'`; fi
12030 else
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 fi
12035 rm -f conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12038
12039 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12040 # Warning - without using the other run time loading flags,
12041 # -berok will link without error, but may produce a broken library.
12042 no_undefined_flag_CXX=' ${wl}-bernotok'
12043 allow_undefined_flag_CXX=' ${wl}-berok'
12044 # Exported symbols can be pulled into shared objects from archives
12045 whole_archive_flag_spec_CXX='$convenience'
12046 archive_cmds_need_lc_CXX=yes
12047 # This is similar to how AIX traditionally builds its shared libraries.
12048 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'
12049 fi
12050 fi
12051 ;;
12052
12053 beos*)
12054 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12055 allow_undefined_flag_CXX=unsupported
12056 # Joseph Beckenbach <[email protected]> says some releases of gcc
12057 # support --undefined. This deserves some investigation. FIXME
12058 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12059 else
12060 ld_shlibs_CXX=no
12061 fi
12062 ;;
12063
12064 chorus*)
12065 case $cc_basename in
12066 *)
12067 # FIXME: insert proper C++ library support
12068 ld_shlibs_CXX=no
12069 ;;
12070 esac
12071 ;;
12072
12073 cygwin* | mingw* | pw32*)
12074 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12075 # as there is no search path for DLLs.
12076 hardcode_libdir_flag_spec_CXX='-L$libdir'
12077 allow_undefined_flag_CXX=unsupported
12078 always_export_symbols_CXX=no
12079 enable_shared_with_static_runtimes_CXX=yes
12080
12081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12082 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'
12083 # If the export-symbols file already is a .def file (1st line
12084 # is EXPORTS), use it as is; otherwise, prepend...
12085 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12086 cp $export_symbols $output_objdir/$soname.def;
12087 else
12088 echo EXPORTS > $output_objdir/$soname.def;
12089 cat $export_symbols >> $output_objdir/$soname.def;
12090 fi~
12091 $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'
12092 else
12093 ld_shlibs_CXX=no
12094 fi
12095 ;;
12096 darwin* | rhapsody*)
12097 case $host_os in
12098 rhapsody* | darwin1.[012])
12099 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12100 ;;
12101 *) # Darwin 1.3 on
12102 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12103 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12104 else
12105 case ${MACOSX_DEPLOYMENT_TARGET} in
12106 10.[012])
12107 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12108 ;;
12109 10.*)
12110 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12111 ;;
12112 esac
12113 fi
12114 ;;
12115 esac
12116 archive_cmds_need_lc_CXX=no
12117 hardcode_direct_CXX=no
12118 hardcode_automatic_CXX=yes
12119 hardcode_shlibpath_var_CXX=unsupported
12120 whole_archive_flag_spec_CXX=''
12121 link_all_deplibs_CXX=yes
12122
12123 if test "$GXX" = yes ; then
12124 lt_int_apple_cc_single_mod=no
12125 output_verbose_link_cmd='echo'
12126 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12127 lt_int_apple_cc_single_mod=yes
12128 fi
12129 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12130 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12131 else
12132 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'
12133 fi
12134 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12135 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12136 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12137 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}'
12138 else
12139 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}'
12140 fi
12141 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}'
12142 else
12143 case $cc_basename in
12144 xlc*)
12145 output_verbose_link_cmd='echo'
12146 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'
12147 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12148 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12149 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}'
12150 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}'
12151 ;;
12152 *)
12153 ld_shlibs_CXX=no
12154 ;;
12155 esac
12156 fi
12157 ;;
12158
12159 dgux*)
12160 case $cc_basename in
12161 ec++*)
12162 # FIXME: insert proper C++ library support
12163 ld_shlibs_CXX=no
12164 ;;
12165 ghcx*)
12166 # Green Hills C++ Compiler
12167 # FIXME: insert proper C++ library support
12168 ld_shlibs_CXX=no
12169 ;;
12170 *)
12171 # FIXME: insert proper C++ library support
12172 ld_shlibs_CXX=no
12173 ;;
12174 esac
12175 ;;
12176 freebsd[12]*)
12177 # C++ shared libraries reported to be fairly broken before switch to ELF
12178 ld_shlibs_CXX=no
12179 ;;
12180 freebsd-elf*)
12181 archive_cmds_need_lc_CXX=no
12182 ;;
12183 freebsd* | kfreebsd*-gnu | dragonfly*)
12184 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12185 # conventions
12186 ld_shlibs_CXX=yes
12187 ;;
12188 gnu*)
12189 ;;
12190 hpux9*)
12191 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12192 hardcode_libdir_separator_CXX=:
12193 export_dynamic_flag_spec_CXX='${wl}-E'
12194 hardcode_direct_CXX=yes
12195 hardcode_minus_L_CXX=yes # Not in the search PATH,
12196 # but as the default
12197 # location of the library.
12198
12199 case $cc_basename in
12200 CC*)
12201 # FIXME: insert proper C++ library support
12202 ld_shlibs_CXX=no
12203 ;;
12204 aCC*)
12205 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'
12206 # Commands to make compiler produce verbose output that lists
12207 # what "hidden" libraries, object files and flags are used when
12208 # linking a shared library.
12209 #
12210 # There doesn't appear to be a way to prevent this compiler from
12211 # explicitly linking system object files so we need to strip them
12212 # from the output so that they don't get included in the library
12213 # dependencies.
12214 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'
12215 ;;
12216 *)
12217 if test "$GXX" = yes; then
12218 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'
12219 else
12220 # FIXME: insert proper C++ library support
12221 ld_shlibs_CXX=no
12222 fi
12223 ;;
12224 esac
12225 ;;
12226 hpux10*|hpux11*)
12227 if test $with_gnu_ld = no; then
12228 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12229 hardcode_libdir_separator_CXX=:
12230
12231 case $host_cpu in
12232 hppa*64*|ia64*)
12233 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12234 ;;
12235 *)
12236 export_dynamic_flag_spec_CXX='${wl}-E'
12237 ;;
12238 esac
12239 fi
12240 case $host_cpu in
12241 hppa*64*|ia64*)
12242 hardcode_direct_CXX=no
12243 hardcode_shlibpath_var_CXX=no
12244 ;;
12245 *)
12246 hardcode_direct_CXX=yes
12247 hardcode_minus_L_CXX=yes # Not in the search PATH,
12248 # but as the default
12249 # location of the library.
12250 ;;
12251 esac
12252
12253 case $cc_basename in
12254 CC*)
12255 # FIXME: insert proper C++ library support
12256 ld_shlibs_CXX=no
12257 ;;
12258 aCC*)
12259 case $host_cpu in
12260 hppa*64*)
12261 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12262 ;;
12263 ia64*)
12264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12265 ;;
12266 *)
12267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12268 ;;
12269 esac
12270 # Commands to make compiler produce verbose output that lists
12271 # what "hidden" libraries, object files and flags are used when
12272 # linking a shared library.
12273 #
12274 # There doesn't appear to be a way to prevent this compiler from
12275 # explicitly linking system object files so we need to strip them
12276 # from the output so that they don't get included in the library
12277 # dependencies.
12278 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'
12279 ;;
12280 *)
12281 if test "$GXX" = yes; then
12282 if test $with_gnu_ld = no; then
12283 case $host_cpu in
12284 hppa*64*)
12285 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12286 ;;
12287 ia64*)
12288 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12289 ;;
12290 *)
12291 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'
12292 ;;
12293 esac
12294 fi
12295 else
12296 # FIXME: insert proper C++ library support
12297 ld_shlibs_CXX=no
12298 fi
12299 ;;
12300 esac
12301 ;;
12302 interix3*)
12303 hardcode_direct_CXX=no
12304 hardcode_shlibpath_var_CXX=no
12305 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12306 export_dynamic_flag_spec_CXX='${wl}-E'
12307 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12308 # Instead, shared libraries are loaded at an image base (0x10000000 by
12309 # default) and relocated if they conflict, which is a slow very memory
12310 # consuming and fragmenting process. To avoid this, we pick a random,
12311 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12312 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12313 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'
12314 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'
12315 ;;
12316 irix5* | irix6*)
12317 case $cc_basename in
12318 CC*)
12319 # SGI C++
12320 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'
12321
12322 # Archives containing C++ object files must be created using
12323 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12324 # necessary to make sure instantiated templates are included
12325 # in the archive.
12326 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12327 ;;
12328 *)
12329 if test "$GXX" = yes; then
12330 if test "$with_gnu_ld" = no; then
12331 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'
12332 else
12333 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'
12334 fi
12335 fi
12336 link_all_deplibs_CXX=yes
12337 ;;
12338 esac
12339 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12340 hardcode_libdir_separator_CXX=:
12341 ;;
12342 linux*)
12343 case $cc_basename in
12344 KCC*)
12345 # Kuck and Associates, Inc. (KAI) C++ Compiler
12346
12347 # KCC will only create a shared library if the output file
12348 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12349 # to its proper name (with version) after linking.
12350 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'
12351 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'
12352 # Commands to make compiler produce verbose output that lists
12353 # what "hidden" libraries, object files and flags are used when
12354 # linking a shared library.
12355 #
12356 # There doesn't appear to be a way to prevent this compiler from
12357 # explicitly linking system object files so we need to strip them
12358 # from the output so that they don't get included in the library
12359 # dependencies.
12360 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'
12361
12362 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12363 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12364
12365 # Archives containing C++ object files must be created using
12366 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12367 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12368 ;;
12369 icpc*)
12370 # Intel C++
12371 with_gnu_ld=yes
12372 # version 8.0 and above of icpc choke on multiply defined symbols
12373 # if we add $predep_objects and $postdep_objects, however 7.1 and
12374 # earlier do not add the objects themselves.
12375 case `$CC -V 2>&1` in
12376 *"Version 7."*)
12377 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12378 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'
12379 ;;
12380 *) # Version 8.0 or newer
12381 tmp_idyn=
12382 case $host_cpu in
12383 ia64*) tmp_idyn=' -i_dynamic';;
12384 esac
12385 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12386 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'
12387 ;;
12388 esac
12389 archive_cmds_need_lc_CXX=no
12390 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12391 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12392 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12393 ;;
12394 pgCC*)
12395 # Portland Group C++ compiler
12396 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12397 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'
12398
12399 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12400 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12401 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'
12402 ;;
12403 cxx*)
12404 # Compaq C++
12405 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12406 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'
12407
12408 runpath_var=LD_RUN_PATH
12409 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12410 hardcode_libdir_separator_CXX=:
12411
12412 # Commands to make compiler produce verbose output that lists
12413 # what "hidden" libraries, object files and flags are used when
12414 # linking a shared library.
12415 #
12416 # There doesn't appear to be a way to prevent this compiler from
12417 # explicitly linking system object files so we need to strip them
12418 # from the output so that they don't get included in the library
12419 # dependencies.
12420 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'
12421 ;;
12422 esac
12423 ;;
12424 lynxos*)
12425 # FIXME: insert proper C++ library support
12426 ld_shlibs_CXX=no
12427 ;;
12428 m88k*)
12429 # FIXME: insert proper C++ library support
12430 ld_shlibs_CXX=no
12431 ;;
12432 mvs*)
12433 case $cc_basename in
12434 cxx*)
12435 # FIXME: insert proper C++ library support
12436 ld_shlibs_CXX=no
12437 ;;
12438 *)
12439 # FIXME: insert proper C++ library support
12440 ld_shlibs_CXX=no
12441 ;;
12442 esac
12443 ;;
12444 netbsd*)
12445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12446 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12447 wlarc=
12448 hardcode_libdir_flag_spec_CXX='-R$libdir'
12449 hardcode_direct_CXX=yes
12450 hardcode_shlibpath_var_CXX=no
12451 fi
12452 # Workaround some broken pre-1.5 toolchains
12453 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12454 ;;
12455 openbsd2*)
12456 # C++ shared libraries are fairly broken
12457 ld_shlibs_CXX=no
12458 ;;
12459 openbsd*)
12460 hardcode_direct_CXX=yes
12461 hardcode_shlibpath_var_CXX=no
12462 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12463 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12465 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12466 export_dynamic_flag_spec_CXX='${wl}-E'
12467 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12468 fi
12469 output_verbose_link_cmd='echo'
12470 ;;
12471 osf3*)
12472 case $cc_basename in
12473 KCC*)
12474 # Kuck and Associates, Inc. (KAI) C++ Compiler
12475
12476 # KCC will only create a shared library if the output file
12477 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12478 # to its proper name (with version) after linking.
12479 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'
12480
12481 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12482 hardcode_libdir_separator_CXX=:
12483
12484 # Archives containing C++ object files must be created using
12485 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12486 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12487
12488 ;;
12489 RCC*)
12490 # Rational C++ 2.4.1
12491 # FIXME: insert proper C++ library support
12492 ld_shlibs_CXX=no
12493 ;;
12494 cxx*)
12495 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12496 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'
12497
12498 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12499 hardcode_libdir_separator_CXX=:
12500
12501 # Commands to make compiler produce verbose output that lists
12502 # what "hidden" libraries, object files and flags are used when
12503 # linking a shared library.
12504 #
12505 # There doesn't appear to be a way to prevent this compiler from
12506 # explicitly linking system object files so we need to strip them
12507 # from the output so that they don't get included in the library
12508 # dependencies.
12509 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'
12510 ;;
12511 *)
12512 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12513 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12514 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'
12515
12516 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12517 hardcode_libdir_separator_CXX=:
12518
12519 # Commands to make compiler produce verbose output that lists
12520 # what "hidden" libraries, object files and flags are used when
12521 # linking a shared library.
12522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12523
12524 else
12525 # FIXME: insert proper C++ library support
12526 ld_shlibs_CXX=no
12527 fi
12528 ;;
12529 esac
12530 ;;
12531 osf4* | osf5*)
12532 case $cc_basename in
12533 KCC*)
12534 # Kuck and Associates, Inc. (KAI) C++ Compiler
12535
12536 # KCC will only create a shared library if the output file
12537 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12538 # to its proper name (with version) after linking.
12539 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'
12540
12541 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12542 hardcode_libdir_separator_CXX=:
12543
12544 # Archives containing C++ object files must be created using
12545 # the KAI C++ compiler.
12546 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12547 ;;
12548 RCC*)
12549 # Rational C++ 2.4.1
12550 # FIXME: insert proper C++ library support
12551 ld_shlibs_CXX=no
12552 ;;
12553 cxx*)
12554 allow_undefined_flag_CXX=' -expect_unresolved \*'
12555 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'
12556 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12557 echo "-hidden">> $lib.exp~
12558 $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~
12559 $rm $lib.exp'
12560
12561 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12562 hardcode_libdir_separator_CXX=:
12563
12564 # Commands to make compiler produce verbose output that lists
12565 # what "hidden" libraries, object files and flags are used when
12566 # linking a shared library.
12567 #
12568 # There doesn't appear to be a way to prevent this compiler from
12569 # explicitly linking system object files so we need to strip them
12570 # from the output so that they don't get included in the library
12571 # dependencies.
12572 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'
12573 ;;
12574 *)
12575 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12576 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12577 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'
12578
12579 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12580 hardcode_libdir_separator_CXX=:
12581
12582 # Commands to make compiler produce verbose output that lists
12583 # what "hidden" libraries, object files and flags are used when
12584 # linking a shared library.
12585 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12586
12587 else
12588 # FIXME: insert proper C++ library support
12589 ld_shlibs_CXX=no
12590 fi
12591 ;;
12592 esac
12593 ;;
12594 psos*)
12595 # FIXME: insert proper C++ library support
12596 ld_shlibs_CXX=no
12597 ;;
12598 sunos4*)
12599 case $cc_basename in
12600 CC*)
12601 # Sun C++ 4.x
12602 # FIXME: insert proper C++ library support
12603 ld_shlibs_CXX=no
12604 ;;
12605 lcc*)
12606 # Lucid
12607 # FIXME: insert proper C++ library support
12608 ld_shlibs_CXX=no
12609 ;;
12610 *)
12611 # FIXME: insert proper C++ library support
12612 ld_shlibs_CXX=no
12613 ;;
12614 esac
12615 ;;
12616 solaris*)
12617 case $cc_basename in
12618 CC*)
12619 # Sun C++ 4.2, 5.x and Centerline C++
12620 archive_cmds_need_lc_CXX=yes
12621 no_undefined_flag_CXX=' -zdefs'
12622 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12623 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12624 $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'
12625
12626 hardcode_libdir_flag_spec_CXX='-R$libdir'
12627 hardcode_shlibpath_var_CXX=no
12628 case $host_os in
12629 solaris2.[0-5] | solaris2.[0-5].*) ;;
12630 *)
12631 # The C++ compiler is used as linker so we must use $wl
12632 # flag to pass the commands to the underlying system
12633 # linker. We must also pass each convience library through
12634 # to the system linker between allextract/defaultextract.
12635 # The C++ compiler will combine linker options so we
12636 # cannot just pass the convience library names through
12637 # without $wl.
12638 # Supported since Solaris 2.6 (maybe 2.5.1?)
12639 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'
12640 ;;
12641 esac
12642 link_all_deplibs_CXX=yes
12643
12644 output_verbose_link_cmd='echo'
12645
12646 # Archives containing C++ object files must be created using
12647 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12648 # necessary to make sure instantiated templates are included
12649 # in the archive.
12650 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12651 ;;
12652 gcx*)
12653 # Green Hills C++ Compiler
12654 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12655
12656 # The C++ compiler must be used to create the archive.
12657 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12658 ;;
12659 *)
12660 # GNU C++ compiler with Solaris linker
12661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12662 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12663 if $CC --version | grep -v '^2\.7' > /dev/null; then
12664 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12665 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12666 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12667
12668 # Commands to make compiler produce verbose output that lists
12669 # what "hidden" libraries, object files and flags are used when
12670 # linking a shared library.
12671 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12672 else
12673 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12674 # platform.
12675 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12676 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12677 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12678
12679 # Commands to make compiler produce verbose output that lists
12680 # what "hidden" libraries, object files and flags are used when
12681 # linking a shared library.
12682 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12683 fi
12684
12685 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12686 fi
12687 ;;
12688 esac
12689 ;;
12690 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12691 no_undefined_flag_CXX='${wl}-z,text'
12692 archive_cmds_need_lc_CXX=no
12693 hardcode_shlibpath_var_CXX=no
12694 runpath_var='LD_RUN_PATH'
12695
12696 case $cc_basename in
12697 CC*)
12698 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12699 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12700 ;;
12701 *)
12702 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12703 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12704 ;;
12705 esac
12706 ;;
12707 sysv5* | sco3.2v5* | sco5v6*)
12708 # Note: We can NOT use -z defs as we might desire, because we do not
12709 # link with -lc, and that would cause any symbols used from libc to
12710 # always be unresolved, which means just about no library would
12711 # ever link correctly. If we're not using GNU ld we use -z text
12712 # though, which does catch some bad symbols but isn't as heavy-handed
12713 # as -z defs.
12714 # For security reasons, it is highly recommended that you always
12715 # use absolute paths for naming shared libraries, and exclude the
12716 # DT_RUNPATH tag from executables and libraries. But doing so
12717 # requires that you compile everything twice, which is a pain.
12718 # So that behaviour is only enabled if SCOABSPATH is set to a
12719 # non-empty value in the environment. Most likely only useful for
12720 # creating official distributions of packages.
12721 # This is a hack until libtool officially supports absolute path
12722 # names for shared libraries.
12723 no_undefined_flag_CXX='${wl}-z,text'
12724 allow_undefined_flag_CXX='${wl}-z,nodefs'
12725 archive_cmds_need_lc_CXX=no
12726 hardcode_shlibpath_var_CXX=no
12727 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12728 hardcode_libdir_separator_CXX=':'
12729 link_all_deplibs_CXX=yes
12730 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12731 runpath_var='LD_RUN_PATH'
12732
12733 case $cc_basename in
12734 CC*)
12735 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12736 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12737 ;;
12738 *)
12739 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12740 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12741 ;;
12742 esac
12743 ;;
12744 tandem*)
12745 case $cc_basename in
12746 NCC*)
12747 # NonStop-UX NCC 3.20
12748 # FIXME: insert proper C++ library support
12749 ld_shlibs_CXX=no
12750 ;;
12751 *)
12752 # FIXME: insert proper C++ library support
12753 ld_shlibs_CXX=no
12754 ;;
12755 esac
12756 ;;
12757 vxworks*)
12758 # FIXME: insert proper C++ library support
12759 ld_shlibs_CXX=no
12760 ;;
12761 *)
12762 # FIXME: insert proper C++ library support
12763 ld_shlibs_CXX=no
12764 ;;
12765 esac
12766 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12767 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12768 test "$ld_shlibs_CXX" = no && can_build_shared=no
12769
12770 GCC_CXX="$GXX"
12771 LD_CXX="$LD"
12772
12773 ## CAVEAT EMPTOR:
12774 ## There is no encapsulation within the following macros, do not change
12775 ## the running order or otherwise move them around unless you know exactly
12776 ## what you are doing...
12777
12778 cat > conftest.$ac_ext <<EOF
12779 class Foo
12780 {
12781 public:
12782 Foo (void) { a = 0; }
12783 private:
12784 int a;
12785 };
12786 EOF
12787
12788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12789 (eval $ac_compile) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; then
12793 # Parse the compiler output and extract the necessary
12794 # objects, libraries and library flags.
12795
12796 # Sentinel used to keep track of whether or not we are before
12797 # the conftest object file.
12798 pre_test_object_deps_done=no
12799
12800 # The `*' in the case matches for architectures that use `case' in
12801 # $output_verbose_cmd can trigger glob expansion during the loop
12802 # eval without this substitution.
12803 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12804
12805 for p in `eval $output_verbose_link_cmd`; do
12806 case $p in
12807
12808 -L* | -R* | -l*)
12809 # Some compilers place space between "-{L,R}" and the path.
12810 # Remove the space.
12811 if test $p = "-L" \
12812 || test $p = "-R"; then
12813 prev=$p
12814 continue
12815 else
12816 prev=
12817 fi
12818
12819 if test "$pre_test_object_deps_done" = no; then
12820 case $p in
12821 -L* | -R*)
12822 # Internal compiler library paths should come after those
12823 # provided the user. The postdeps already come after the
12824 # user supplied libs so there is no need to process them.
12825 if test -z "$compiler_lib_search_path_CXX"; then
12826 compiler_lib_search_path_CXX="${prev}${p}"
12827 else
12828 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12829 fi
12830 ;;
12831 # The "-l" case would never come before the object being
12832 # linked, so don't bother handling this case.
12833 esac
12834 else
12835 if test -z "$postdeps_CXX"; then
12836 postdeps_CXX="${prev}${p}"
12837 else
12838 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12839 fi
12840 fi
12841 ;;
12842
12843 *.$objext)
12844 # This assumes that the test object file only shows up
12845 # once in the compiler output.
12846 if test "$p" = "conftest.$objext"; then
12847 pre_test_object_deps_done=yes
12848 continue
12849 fi
12850
12851 if test "$pre_test_object_deps_done" = no; then
12852 if test -z "$predep_objects_CXX"; then
12853 predep_objects_CXX="$p"
12854 else
12855 predep_objects_CXX="$predep_objects_CXX $p"
12856 fi
12857 else
12858 if test -z "$postdep_objects_CXX"; then
12859 postdep_objects_CXX="$p"
12860 else
12861 postdep_objects_CXX="$postdep_objects_CXX $p"
12862 fi
12863 fi
12864 ;;
12865
12866 *) ;; # Ignore the rest.
12867
12868 esac
12869 done
12870
12871 # Clean up.
12872 rm -f a.out a.exe
12873 else
12874 echo "libtool.m4: error: problem compiling CXX test program"
12875 fi
12876
12877 $rm -f confest.$objext
12878
12879 # PORTME: override above test on systems where it is broken
12880 case $host_os in
12881 interix3*)
12882 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12883 # hack all around it, let's just trust "g++" to DTRT.
12884 predep_objects_CXX=
12885 postdep_objects_CXX=
12886 postdeps_CXX=
12887 ;;
12888
12889 solaris*)
12890 case $cc_basename in
12891 CC*)
12892 # Adding this requires a known-good setup of shared libraries for
12893 # Sun compiler versions before 5.6, else PIC objects from an old
12894 # archive will be linked into the output, leading to subtle bugs.
12895 postdeps_CXX='-lCstd -lCrun'
12896 ;;
12897 esac
12898 ;;
12899 esac
12900
12901
12902 case " $postdeps_CXX " in
12903 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12904 esac
12905
12906 lt_prog_compiler_wl_CXX=
12907 lt_prog_compiler_pic_CXX=
12908 lt_prog_compiler_static_CXX=
12909
12910 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12911 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12912
12913 # C++ specific cases for pic, static, wl, etc.
12914 if test "$GXX" = yes; then
12915 lt_prog_compiler_wl_CXX='-Wl,'
12916 lt_prog_compiler_static_CXX='-static'
12917
12918 case $host_os in
12919 aix*)
12920 # All AIX code is PIC.
12921 if test "$host_cpu" = ia64; then
12922 # AIX 5 now supports IA64 processor
12923 lt_prog_compiler_static_CXX='-Bstatic'
12924 fi
12925 ;;
12926 amigaos*)
12927 # FIXME: we need at least 68020 code to build shared libraries, but
12928 # adding the `-m68020' flag to GCC prevents building anything better,
12929 # like `-m68040'.
12930 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12931 ;;
12932 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12933 # PIC is the default for these OSes.
12934 ;;
12935 mingw* | os2* | pw32*)
12936 # This hack is so that the source file can tell whether it is being
12937 # built for inclusion in a dll (and should export symbols for example).
12938 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12939 ;;
12940 darwin* | rhapsody*)
12941 # PIC is the default on this platform
12942 # Common symbols not allowed in MH_DYLIB files
12943 lt_prog_compiler_pic_CXX='-fno-common'
12944 ;;
12945 *djgpp*)
12946 # DJGPP does not support shared libraries at all
12947 lt_prog_compiler_pic_CXX=
12948 ;;
12949 interix3*)
12950 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12951 # Instead, we relocate shared libraries at runtime.
12952 ;;
12953 sysv4*MP*)
12954 if test -d /usr/nec; then
12955 lt_prog_compiler_pic_CXX=-Kconform_pic
12956 fi
12957 ;;
12958 hpux*)
12959 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12960 # not for PA HP-UX.
12961 case $host_cpu in
12962 hppa*64*|ia64*)
12963 ;;
12964 *)
12965 lt_prog_compiler_pic_CXX='-fPIC'
12966 ;;
12967 esac
12968 ;;
12969 *)
12970 lt_prog_compiler_pic_CXX='-fPIC'
12971 ;;
12972 esac
12973 else
12974 case $host_os in
12975 aix4* | aix5*)
12976 # All AIX code is PIC.
12977 if test "$host_cpu" = ia64; then
12978 # AIX 5 now supports IA64 processor
12979 lt_prog_compiler_static_CXX='-Bstatic'
12980 else
12981 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12982 fi
12983 ;;
12984 chorus*)
12985 case $cc_basename in
12986 cxch68*)
12987 # Green Hills C++ Compiler
12988 # _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"
12989 ;;
12990 esac
12991 ;;
12992 darwin*)
12993 # PIC is the default on this platform
12994 # Common symbols not allowed in MH_DYLIB files
12995 case $cc_basename in
12996 xlc*)
12997 lt_prog_compiler_pic_CXX='-qnocommon'
12998 lt_prog_compiler_wl_CXX='-Wl,'
12999 ;;
13000 esac
13001 ;;
13002 dgux*)
13003 case $cc_basename in
13004 ec++*)
13005 lt_prog_compiler_pic_CXX='-KPIC'
13006 ;;
13007 ghcx*)
13008 # Green Hills C++ Compiler
13009 lt_prog_compiler_pic_CXX='-pic'
13010 ;;
13011 *)
13012 ;;
13013 esac
13014 ;;
13015 freebsd* | kfreebsd*-gnu | dragonfly*)
13016 # FreeBSD uses GNU C++
13017 ;;
13018 hpux9* | hpux10* | hpux11*)
13019 case $cc_basename in
13020 CC*)
13021 lt_prog_compiler_wl_CXX='-Wl,'
13022 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13023 if test "$host_cpu" != ia64; then
13024 lt_prog_compiler_pic_CXX='+Z'
13025 fi
13026 ;;
13027 aCC*)
13028 lt_prog_compiler_wl_CXX='-Wl,'
13029 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13030 case $host_cpu in
13031 hppa*64*|ia64*)
13032 # +Z the default
13033 ;;
13034 *)
13035 lt_prog_compiler_pic_CXX='+Z'
13036 ;;
13037 esac
13038 ;;
13039 *)
13040 ;;
13041 esac
13042 ;;
13043 interix*)
13044 # This is c89, which is MS Visual C++ (no shared libs)
13045 # Anyone wants to do a port?
13046 ;;
13047 irix5* | irix6* | nonstopux*)
13048 case $cc_basename in
13049 CC*)
13050 lt_prog_compiler_wl_CXX='-Wl,'
13051 lt_prog_compiler_static_CXX='-non_shared'
13052 # CC pic flag -KPIC is the default.
13053 ;;
13054 *)
13055 ;;
13056 esac
13057 ;;
13058 linux*)
13059 case $cc_basename in
13060 KCC*)
13061 # KAI C++ Compiler
13062 lt_prog_compiler_wl_CXX='--backend -Wl,'
13063 lt_prog_compiler_pic_CXX='-fPIC'
13064 ;;
13065 icpc* | ecpc*)
13066 # Intel C++
13067 lt_prog_compiler_wl_CXX='-Wl,'
13068 lt_prog_compiler_pic_CXX='-KPIC'
13069 lt_prog_compiler_static_CXX='-static'
13070 ;;
13071 pgCC*)
13072 # Portland Group C++ compiler.
13073 lt_prog_compiler_wl_CXX='-Wl,'
13074 lt_prog_compiler_pic_CXX='-fpic'
13075 lt_prog_compiler_static_CXX='-Bstatic'
13076 ;;
13077 cxx*)
13078 # Compaq C++
13079 # Make sure the PIC flag is empty. It appears that all Alpha
13080 # Linux and Compaq Tru64 Unix objects are PIC.
13081 lt_prog_compiler_pic_CXX=
13082 lt_prog_compiler_static_CXX='-non_shared'
13083 ;;
13084 *)
13085 ;;
13086 esac
13087 ;;
13088 lynxos*)
13089 ;;
13090 m88k*)
13091 ;;
13092 mvs*)
13093 case $cc_basename in
13094 cxx*)
13095 lt_prog_compiler_pic_CXX='-W c,exportall'
13096 ;;
13097 *)
13098 ;;
13099 esac
13100 ;;
13101 netbsd*)
13102 ;;
13103 osf3* | osf4* | osf5*)
13104 case $cc_basename in
13105 KCC*)
13106 lt_prog_compiler_wl_CXX='--backend -Wl,'
13107 ;;
13108 RCC*)
13109 # Rational C++ 2.4.1
13110 lt_prog_compiler_pic_CXX='-pic'
13111 ;;
13112 cxx*)
13113 # Digital/Compaq C++
13114 lt_prog_compiler_wl_CXX='-Wl,'
13115 # Make sure the PIC flag is empty. It appears that all Alpha
13116 # Linux and Compaq Tru64 Unix objects are PIC.
13117 lt_prog_compiler_pic_CXX=
13118 lt_prog_compiler_static_CXX='-non_shared'
13119 ;;
13120 *)
13121 ;;
13122 esac
13123 ;;
13124 psos*)
13125 ;;
13126 solaris*)
13127 case $cc_basename in
13128 CC*)
13129 # Sun C++ 4.2, 5.x and Centerline C++
13130 lt_prog_compiler_pic_CXX='-KPIC'
13131 lt_prog_compiler_static_CXX='-Bstatic'
13132 lt_prog_compiler_wl_CXX='-Qoption ld '
13133 ;;
13134 gcx*)
13135 # Green Hills C++ Compiler
13136 lt_prog_compiler_pic_CXX='-PIC'
13137 ;;
13138 *)
13139 ;;
13140 esac
13141 ;;
13142 sunos4*)
13143 case $cc_basename in
13144 CC*)
13145 # Sun C++ 4.x
13146 lt_prog_compiler_pic_CXX='-pic'
13147 lt_prog_compiler_static_CXX='-Bstatic'
13148 ;;
13149 lcc*)
13150 # Lucid
13151 lt_prog_compiler_pic_CXX='-pic'
13152 ;;
13153 *)
13154 ;;
13155 esac
13156 ;;
13157 tandem*)
13158 case $cc_basename in
13159 NCC*)
13160 # NonStop-UX NCC 3.20
13161 lt_prog_compiler_pic_CXX='-KPIC'
13162 ;;
13163 *)
13164 ;;
13165 esac
13166 ;;
13167 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13168 case $cc_basename in
13169 CC*)
13170 lt_prog_compiler_wl_CXX='-Wl,'
13171 lt_prog_compiler_pic_CXX='-KPIC'
13172 lt_prog_compiler_static_CXX='-Bstatic'
13173 ;;
13174 esac
13175 ;;
13176 vxworks*)
13177 ;;
13178 *)
13179 lt_prog_compiler_can_build_shared_CXX=no
13180 ;;
13181 esac
13182 fi
13183
13184 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13185 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13186
13187 #
13188 # Check to make sure the PIC flag actually works.
13189 #
13190 if test -n "$lt_prog_compiler_pic_CXX"; then
13191
13192 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13193 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13194 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13196 else
13197 lt_prog_compiler_pic_works_CXX=no
13198 ac_outfile=conftest.$ac_objext
13199 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13200 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13201 # Insert the option either (1) after the last *FLAGS variable, or
13202 # (2) before a word containing "conftest.", or (3) at the end.
13203 # Note that $ac_compile itself does not contain backslashes and begins
13204 # with a dollar sign (not a hyphen), so the echo should work correctly.
13205 # The option is referenced via a variable to avoid confusing sed.
13206 lt_compile=`echo "$ac_compile" | $SED \
13207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13209 -e 's:$: $lt_compiler_flag:'`
13210 (eval echo "\"\$as_me:13210: $lt_compile\"" >&5)
13211 (eval "$lt_compile" 2>conftest.err)
13212 ac_status=$?
13213 cat conftest.err >&5
13214 echo "$as_me:13214: \$? = $ac_status" >&5
13215 if (exit $ac_status) && test -s "$ac_outfile"; then
13216 # The compiler can only warn and ignore the option if not recognized
13217 # So say no if there are warnings other than the usual output.
13218 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13221 lt_prog_compiler_pic_works_CXX=yes
13222 fi
13223 fi
13224 $rm conftest*
13225
13226 fi
13227 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13228 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13229
13230 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13231 case $lt_prog_compiler_pic_CXX in
13232 "" | " "*) ;;
13233 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13234 esac
13235 else
13236 lt_prog_compiler_pic_CXX=
13237 lt_prog_compiler_can_build_shared_CXX=no
13238 fi
13239
13240 fi
13241 case $host_os in
13242 # For platforms which do not support PIC, -DPIC is meaningless:
13243 *djgpp*)
13244 lt_prog_compiler_pic_CXX=
13245 ;;
13246 *)
13247 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13248 ;;
13249 esac
13250
13251 #
13252 # Check to make sure the static flag actually works.
13253 #
13254 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13255 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13256 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13257 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13259 else
13260 lt_prog_compiler_static_works_CXX=no
13261 save_LDFLAGS="$LDFLAGS"
13262 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13263 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13265 # The linker can only warn and ignore the option if not recognized
13266 # So say no if there are warnings
13267 if test -s conftest.err; then
13268 # Append any errors to the config.log.
13269 cat conftest.err 1>&5
13270 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13272 if diff conftest.exp conftest.er2 >/dev/null; then
13273 lt_prog_compiler_static_works_CXX=yes
13274 fi
13275 else
13276 lt_prog_compiler_static_works_CXX=yes
13277 fi
13278 fi
13279 $rm conftest*
13280 LDFLAGS="$save_LDFLAGS"
13281
13282 fi
13283 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13284 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13285
13286 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13287 :
13288 else
13289 lt_prog_compiler_static_CXX=
13290 fi
13291
13292
13293 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13294 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13295 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13297 else
13298 lt_cv_prog_compiler_c_o_CXX=no
13299 $rm -r conftest 2>/dev/null
13300 mkdir conftest
13301 cd conftest
13302 mkdir out
13303 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13304
13305 lt_compiler_flag="-o out/conftest2.$ac_objext"
13306 # Insert the option either (1) after the last *FLAGS variable, or
13307 # (2) before a word containing "conftest.", or (3) at the end.
13308 # Note that $ac_compile itself does not contain backslashes and begins
13309 # with a dollar sign (not a hyphen), so the echo should work correctly.
13310 lt_compile=`echo "$ac_compile" | $SED \
13311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13313 -e 's:$: $lt_compiler_flag:'`
13314 (eval echo "\"\$as_me:13314: $lt_compile\"" >&5)
13315 (eval "$lt_compile" 2>out/conftest.err)
13316 ac_status=$?
13317 cat out/conftest.err >&5
13318 echo "$as_me:13318: \$? = $ac_status" >&5
13319 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13320 then
13321 # The compiler can only warn and ignore the option if not recognized
13322 # So say no if there are warnings
13323 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13326 lt_cv_prog_compiler_c_o_CXX=yes
13327 fi
13328 fi
13329 chmod u+w . 2>&5
13330 $rm conftest*
13331 # SGI C++ compiler will create directory out/ii_files/ for
13332 # template instantiation
13333 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13334 $rm out/* && rmdir out
13335 cd ..
13336 rmdir conftest
13337 $rm conftest*
13338
13339 fi
13340 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13341 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13342
13343
13344 hard_links="nottested"
13345 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13346 # do not overwrite the value of need_locks provided by the user
13347 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13348 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13349 hard_links=yes
13350 $rm conftest*
13351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13352 touch conftest.a
13353 ln conftest.a conftest.b 2>&5 || hard_links=no
13354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13355 echo "$as_me:$LINENO: result: $hard_links" >&5
13356 echo "${ECHO_T}$hard_links" >&6
13357 if test "$hard_links" = no; then
13358 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13359 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13360 need_locks=warn
13361 fi
13362 else
13363 need_locks=no
13364 fi
13365
13366 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13367 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13368
13369 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13370 case $host_os in
13371 aix4* | aix5*)
13372 # If we're using GNU nm, then we don't want the "-C" option.
13373 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13374 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13375 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'
13376 else
13377 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'
13378 fi
13379 ;;
13380 pw32*)
13381 export_symbols_cmds_CXX="$ltdll_cmds"
13382 ;;
13383 cygwin* | mingw*)
13384 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'
13385 ;;
13386 *)
13387 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13388 ;;
13389 esac
13390
13391 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13392 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13393 test "$ld_shlibs_CXX" = no && can_build_shared=no
13394
13395 #
13396 # Do we need to explicitly link libc?
13397 #
13398 case "x$archive_cmds_need_lc_CXX" in
13399 x|xyes)
13400 # Assume -lc should be added
13401 archive_cmds_need_lc_CXX=yes
13402
13403 if test "$enable_shared" = yes && test "$GCC" = yes; then
13404 case $archive_cmds_CXX in
13405 *'~'*)
13406 # FIXME: we may have to deal with multi-command sequences.
13407 ;;
13408 '$CC '*)
13409 # Test whether the compiler implicitly links with -lc since on some
13410 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13411 # to ld, don't add -lc before -lgcc.
13412 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13413 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13414 $rm conftest*
13415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13416
13417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13418 (eval $ac_compile) 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } 2>conftest.err; then
13422 soname=conftest
13423 lib=conftest
13424 libobjs=conftest.$ac_objext
13425 deplibs=
13426 wl=$lt_prog_compiler_wl_CXX
13427 pic_flag=$lt_prog_compiler_pic_CXX
13428 compiler_flags=-v
13429 linker_flags=-v
13430 verstring=
13431 output_objdir=.
13432 libname=conftest
13433 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13434 allow_undefined_flag_CXX=
13435 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13436 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13437 ac_status=$?
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }
13440 then
13441 archive_cmds_need_lc_CXX=no
13442 else
13443 archive_cmds_need_lc_CXX=yes
13444 fi
13445 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13446 else
13447 cat conftest.err 1>&5
13448 fi
13449 $rm conftest*
13450 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13451 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13452 ;;
13453 esac
13454 fi
13455 ;;
13456 esac
13457
13458 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13459 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13460 library_names_spec=
13461 libname_spec='lib$name'
13462 soname_spec=
13463 shrext_cmds=".so"
13464 postinstall_cmds=
13465 postuninstall_cmds=
13466 finish_cmds=
13467 finish_eval=
13468 shlibpath_var=
13469 shlibpath_overrides_runpath=unknown
13470 version_type=none
13471 dynamic_linker="$host_os ld.so"
13472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13473 if test "$GCC" = yes; then
13474 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13475 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13476 # if the path contains ";" then we assume it to be the separator
13477 # otherwise default to the standard path separator (i.e. ":") - it is
13478 # assumed that no part of a normal pathname contains ";" but that should
13479 # okay in the real world where ";" in dirpaths is itself problematic.
13480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13481 else
13482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13483 fi
13484 else
13485 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13486 fi
13487 need_lib_prefix=unknown
13488 hardcode_into_libs=no
13489
13490 # when you set need_version to no, make sure it does not cause -set_version
13491 # flags to be left without arguments
13492 need_version=unknown
13493
13494 case $host_os in
13495 aix3*)
13496 version_type=linux
13497 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13498 shlibpath_var=LIBPATH
13499
13500 # AIX 3 has no versioning support, so we append a major version to the name.
13501 soname_spec='${libname}${release}${shared_ext}$major'
13502 ;;
13503
13504 aix4* | aix5*)
13505 version_type=linux
13506 need_lib_prefix=no
13507 need_version=no
13508 hardcode_into_libs=yes
13509 if test "$host_cpu" = ia64; then
13510 # AIX 5 supports IA64
13511 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13512 shlibpath_var=LD_LIBRARY_PATH
13513 else
13514 # With GCC up to 2.95.x, collect2 would create an import file
13515 # for dependence libraries. The import file would start with
13516 # the line `#! .'. This would cause the generated library to
13517 # depend on `.', always an invalid library. This was fixed in
13518 # development snapshots of GCC prior to 3.0.
13519 case $host_os in
13520 aix4 | aix4.[01] | aix4.[01].*)
13521 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13522 echo ' yes '
13523 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13524 :
13525 else
13526 can_build_shared=no
13527 fi
13528 ;;
13529 esac
13530 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13531 # soname into executable. Probably we can add versioning support to
13532 # collect2, so additional links can be useful in future.
13533 if test "$aix_use_runtimelinking" = yes; then
13534 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13535 # instead of lib<name>.a to let people know that these are not
13536 # typical AIX shared libraries.
13537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13538 else
13539 # We preserve .a as extension for shared libraries through AIX4.2
13540 # and later when we are not doing run time linking.
13541 library_names_spec='${libname}${release}.a $libname.a'
13542 soname_spec='${libname}${release}${shared_ext}$major'
13543 fi
13544 shlibpath_var=LIBPATH
13545 fi
13546 ;;
13547
13548 amigaos*)
13549 library_names_spec='$libname.ixlibrary $libname.a'
13550 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13551 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'
13552 ;;
13553
13554 beos*)
13555 library_names_spec='${libname}${shared_ext}'
13556 dynamic_linker="$host_os ld.so"
13557 shlibpath_var=LIBRARY_PATH
13558 ;;
13559
13560 bsdi[45]*)
13561 version_type=linux
13562 need_version=no
13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13564 soname_spec='${libname}${release}${shared_ext}$major'
13565 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13566 shlibpath_var=LD_LIBRARY_PATH
13567 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13568 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13569 # the default ld.so.conf also contains /usr/contrib/lib and
13570 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13571 # libtool to hard-code these into programs
13572 ;;
13573
13574 cygwin* | mingw* | pw32*)
13575 version_type=windows
13576 shrext_cmds=".dll"
13577 need_version=no
13578 need_lib_prefix=no
13579
13580 case $GCC,$host_os in
13581 yes,cygwin* | yes,mingw* | yes,pw32*)
13582 library_names_spec='$libname.dll.a'
13583 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13584 postinstall_cmds='base_file=`basename \${file}`~
13585 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13586 dldir=$destdir/`dirname \$dlpath`~
13587 test -d \$dldir || mkdir -p \$dldir~
13588 $install_prog $dir/$dlname \$dldir/$dlname~
13589 chmod a+x \$dldir/$dlname'
13590 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13591 dlpath=$dir/\$dldll~
13592 $rm \$dlpath'
13593 shlibpath_overrides_runpath=yes
13594
13595 case $host_os in
13596 cygwin*)
13597 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13598 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13599 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13600 ;;
13601 mingw*)
13602 # MinGW DLLs use traditional 'lib' prefix
13603 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13604 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13605 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13606 # It is most probably a Windows format PATH printed by
13607 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13608 # path with ; separators, and with drive letters. We can handle the
13609 # drive letters (cygwin fileutils understands them), so leave them,
13610 # especially as we might pass files found there to a mingw objdump,
13611 # which wouldn't understand a cygwinified path. Ahh.
13612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13613 else
13614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13615 fi
13616 ;;
13617 pw32*)
13618 # pw32 DLLs use 'pw' prefix rather than 'lib'
13619 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13620 ;;
13621 esac
13622 ;;
13623
13624 *)
13625 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13626 ;;
13627 esac
13628 dynamic_linker='Win32 ld.exe'
13629 # FIXME: first we should search . and the directory the executable is in
13630 shlibpath_var=PATH
13631 ;;
13632
13633 darwin* | rhapsody*)
13634 dynamic_linker="$host_os dyld"
13635 version_type=darwin
13636 need_lib_prefix=no
13637 need_version=no
13638 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13639 soname_spec='${libname}${release}${major}$shared_ext'
13640 shlibpath_overrides_runpath=yes
13641 shlibpath_var=DYLD_LIBRARY_PATH
13642 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13643 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13644 if test "$GCC" = yes; then
13645 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"`
13646 else
13647 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13648 fi
13649 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13650 ;;
13651
13652 dgux*)
13653 version_type=linux
13654 need_lib_prefix=no
13655 need_version=no
13656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13657 soname_spec='${libname}${release}${shared_ext}$major'
13658 shlibpath_var=LD_LIBRARY_PATH
13659 ;;
13660
13661 freebsd1*)
13662 dynamic_linker=no
13663 ;;
13664
13665 kfreebsd*-gnu)
13666 version_type=linux
13667 need_lib_prefix=no
13668 need_version=no
13669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13670 soname_spec='${libname}${release}${shared_ext}$major'
13671 shlibpath_var=LD_LIBRARY_PATH
13672 shlibpath_overrides_runpath=no
13673 hardcode_into_libs=yes
13674 dynamic_linker='GNU ld.so'
13675 ;;
13676
13677 freebsd* | dragonfly*)
13678 # DragonFly does not have aout. When/if they implement a new
13679 # versioning mechanism, adjust this.
13680 if test -x /usr/bin/objformat; then
13681 objformat=`/usr/bin/objformat`
13682 else
13683 case $host_os in
13684 freebsd[123]*) objformat=aout ;;
13685 *) objformat=elf ;;
13686 esac
13687 fi
13688 version_type=freebsd-$objformat
13689 case $version_type in
13690 freebsd-elf*)
13691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13692 need_version=no
13693 need_lib_prefix=no
13694 ;;
13695 freebsd-*)
13696 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13697 need_version=yes
13698 ;;
13699 esac
13700 shlibpath_var=LD_LIBRARY_PATH
13701 case $host_os in
13702 freebsd2*)
13703 shlibpath_overrides_runpath=yes
13704 ;;
13705 freebsd3.[01]* | freebsdelf3.[01]*)
13706 shlibpath_overrides_runpath=yes
13707 hardcode_into_libs=yes
13708 ;;
13709 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13710 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13711 shlibpath_overrides_runpath=no
13712 hardcode_into_libs=yes
13713 ;;
13714 freebsd*) # from 4.6 on
13715 shlibpath_overrides_runpath=yes
13716 hardcode_into_libs=yes
13717 ;;
13718 esac
13719 ;;
13720
13721 gnu*)
13722 version_type=linux
13723 need_lib_prefix=no
13724 need_version=no
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13726 soname_spec='${libname}${release}${shared_ext}$major'
13727 shlibpath_var=LD_LIBRARY_PATH
13728 hardcode_into_libs=yes
13729 ;;
13730
13731 hpux9* | hpux10* | hpux11*)
13732 # Give a soname corresponding to the major version so that dld.sl refuses to
13733 # link against other versions.
13734 version_type=sunos
13735 need_lib_prefix=no
13736 need_version=no
13737 case $host_cpu in
13738 ia64*)
13739 shrext_cmds='.so'
13740 hardcode_into_libs=yes
13741 dynamic_linker="$host_os dld.so"
13742 shlibpath_var=LD_LIBRARY_PATH
13743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745 soname_spec='${libname}${release}${shared_ext}$major'
13746 if test "X$HPUX_IA64_MODE" = X32; then
13747 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13748 else
13749 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13750 fi
13751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13752 ;;
13753 hppa*64*)
13754 shrext_cmds='.sl'
13755 hardcode_into_libs=yes
13756 dynamic_linker="$host_os dld.sl"
13757 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13760 soname_spec='${libname}${release}${shared_ext}$major'
13761 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13763 ;;
13764 *)
13765 shrext_cmds='.sl'
13766 dynamic_linker="$host_os dld.sl"
13767 shlibpath_var=SHLIB_PATH
13768 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13770 soname_spec='${libname}${release}${shared_ext}$major'
13771 ;;
13772 esac
13773 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13774 postinstall_cmds='chmod 555 $lib'
13775 ;;
13776
13777 interix3*)
13778 version_type=linux
13779 need_lib_prefix=no
13780 need_version=no
13781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13782 soname_spec='${libname}${release}${shared_ext}$major'
13783 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13784 shlibpath_var=LD_LIBRARY_PATH
13785 shlibpath_overrides_runpath=no
13786 hardcode_into_libs=yes
13787 ;;
13788
13789 irix5* | irix6* | nonstopux*)
13790 case $host_os in
13791 nonstopux*) version_type=nonstopux ;;
13792 *)
13793 if test "$lt_cv_prog_gnu_ld" = yes; then
13794 version_type=linux
13795 else
13796 version_type=irix
13797 fi ;;
13798 esac
13799 need_lib_prefix=no
13800 need_version=no
13801 soname_spec='${libname}${release}${shared_ext}$major'
13802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13803 case $host_os in
13804 irix5* | nonstopux*)
13805 libsuff= shlibsuff=
13806 ;;
13807 *)
13808 case $LD in # libtool.m4 will add one of these switches to LD
13809 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13810 libsuff= shlibsuff= libmagic=32-bit;;
13811 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13812 libsuff=32 shlibsuff=N32 libmagic=N32;;
13813 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13814 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13815 *) libsuff= shlibsuff= libmagic=never-match;;
13816 esac
13817 ;;
13818 esac
13819 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13820 shlibpath_overrides_runpath=no
13821 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13822 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13823 hardcode_into_libs=yes
13824 ;;
13825
13826 # No shared lib support for Linux oldld, aout, or coff.
13827 linux*oldld* | linux*aout* | linux*coff*)
13828 dynamic_linker=no
13829 ;;
13830
13831 # This must be Linux ELF.
13832 linux*)
13833 version_type=linux
13834 need_lib_prefix=no
13835 need_version=no
13836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13837 soname_spec='${libname}${release}${shared_ext}$major'
13838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13839 shlibpath_var=LD_LIBRARY_PATH
13840 shlibpath_overrides_runpath=no
13841 # This implies no fast_install, which is unacceptable.
13842 # Some rework will be needed to allow for fast_install
13843 # before this can be enabled.
13844 hardcode_into_libs=yes
13845
13846 # Append ld.so.conf contents to the search path
13847 if test -f /etc/ld.so.conf; then
13848 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' ' '`
13849 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13850 fi
13851
13852 # We used to test for /lib/ld.so.1 and disable shared libraries on
13853 # powerpc, because MkLinux only supported shared libraries with the
13854 # GNU dynamic linker. Since this was broken with cross compilers,
13855 # most powerpc-linux boxes support dynamic linking these days and
13856 # people can always --disable-shared, the test was removed, and we
13857 # assume the GNU/Linux dynamic linker is in use.
13858 dynamic_linker='GNU/Linux ld.so'
13859 ;;
13860
13861 knetbsd*-gnu)
13862 version_type=linux
13863 need_lib_prefix=no
13864 need_version=no
13865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13866 soname_spec='${libname}${release}${shared_ext}$major'
13867 shlibpath_var=LD_LIBRARY_PATH
13868 shlibpath_overrides_runpath=no
13869 hardcode_into_libs=yes
13870 dynamic_linker='GNU ld.so'
13871 ;;
13872
13873 netbsd*)
13874 version_type=sunos
13875 need_lib_prefix=no
13876 need_version=no
13877 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13880 dynamic_linker='NetBSD (a.out) ld.so'
13881 else
13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13883 soname_spec='${libname}${release}${shared_ext}$major'
13884 dynamic_linker='NetBSD ld.elf_so'
13885 fi
13886 shlibpath_var=LD_LIBRARY_PATH
13887 shlibpath_overrides_runpath=yes
13888 hardcode_into_libs=yes
13889 ;;
13890
13891 newsos6)
13892 version_type=linux
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13894 shlibpath_var=LD_LIBRARY_PATH
13895 shlibpath_overrides_runpath=yes
13896 ;;
13897
13898 nto-qnx*)
13899 version_type=linux
13900 need_lib_prefix=no
13901 need_version=no
13902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13903 soname_spec='${libname}${release}${shared_ext}$major'
13904 shlibpath_var=LD_LIBRARY_PATH
13905 shlibpath_overrides_runpath=yes
13906 ;;
13907
13908 openbsd*)
13909 version_type=sunos
13910 sys_lib_dlsearch_path_spec="/usr/lib"
13911 need_lib_prefix=no
13912 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13913 case $host_os in
13914 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13915 *) need_version=no ;;
13916 esac
13917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13919 shlibpath_var=LD_LIBRARY_PATH
13920 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13921 case $host_os in
13922 openbsd2.[89] | openbsd2.[89].*)
13923 shlibpath_overrides_runpath=no
13924 ;;
13925 *)
13926 shlibpath_overrides_runpath=yes
13927 ;;
13928 esac
13929 else
13930 shlibpath_overrides_runpath=yes
13931 fi
13932 ;;
13933
13934 os2*)
13935 libname_spec='$name'
13936 shrext_cmds=".dll"
13937 need_lib_prefix=no
13938 library_names_spec='$libname${shared_ext} $libname.a'
13939 dynamic_linker='OS/2 ld.exe'
13940 shlibpath_var=LIBPATH
13941 ;;
13942
13943 osf3* | osf4* | osf5*)
13944 version_type=osf
13945 need_lib_prefix=no
13946 need_version=no
13947 soname_spec='${libname}${release}${shared_ext}$major'
13948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949 shlibpath_var=LD_LIBRARY_PATH
13950 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13951 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13952 ;;
13953
13954 solaris*)
13955 version_type=linux
13956 need_lib_prefix=no
13957 need_version=no
13958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13959 soname_spec='${libname}${release}${shared_ext}$major'
13960 shlibpath_var=LD_LIBRARY_PATH
13961 shlibpath_overrides_runpath=yes
13962 hardcode_into_libs=yes
13963 # ldd complains unless libraries are executable
13964 postinstall_cmds='chmod +x $lib'
13965 ;;
13966
13967 sunos4*)
13968 version_type=sunos
13969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13970 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13971 shlibpath_var=LD_LIBRARY_PATH
13972 shlibpath_overrides_runpath=yes
13973 if test "$with_gnu_ld" = yes; then
13974 need_lib_prefix=no
13975 fi
13976 need_version=yes
13977 ;;
13978
13979 sysv4 | sysv4.3*)
13980 version_type=linux
13981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13982 soname_spec='${libname}${release}${shared_ext}$major'
13983 shlibpath_var=LD_LIBRARY_PATH
13984 case $host_vendor in
13985 sni)
13986 shlibpath_overrides_runpath=no
13987 need_lib_prefix=no
13988 export_dynamic_flag_spec='${wl}-Blargedynsym'
13989 runpath_var=LD_RUN_PATH
13990 ;;
13991 siemens)
13992 need_lib_prefix=no
13993 ;;
13994 motorola)
13995 need_lib_prefix=no
13996 need_version=no
13997 shlibpath_overrides_runpath=no
13998 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13999 ;;
14000 esac
14001 ;;
14002
14003 sysv4*MP*)
14004 if test -d /usr/nec ;then
14005 version_type=linux
14006 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14007 soname_spec='$libname${shared_ext}.$major'
14008 shlibpath_var=LD_LIBRARY_PATH
14009 fi
14010 ;;
14011
14012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14013 version_type=freebsd-elf
14014 need_lib_prefix=no
14015 need_version=no
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14017 soname_spec='${libname}${release}${shared_ext}$major'
14018 shlibpath_var=LD_LIBRARY_PATH
14019 hardcode_into_libs=yes
14020 if test "$with_gnu_ld" = yes; then
14021 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14022 shlibpath_overrides_runpath=no
14023 else
14024 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14025 shlibpath_overrides_runpath=yes
14026 case $host_os in
14027 sco3.2v5*)
14028 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14029 ;;
14030 esac
14031 fi
14032 sys_lib_dlsearch_path_spec='/usr/lib'
14033 ;;
14034
14035 uts4*)
14036 version_type=linux
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038 soname_spec='${libname}${release}${shared_ext}$major'
14039 shlibpath_var=LD_LIBRARY_PATH
14040 ;;
14041
14042 *)
14043 dynamic_linker=no
14044 ;;
14045 esac
14046 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14047 echo "${ECHO_T}$dynamic_linker" >&6
14048 test "$dynamic_linker" = no && can_build_shared=no
14049
14050 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14051 if test "$GCC" = yes; then
14052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14053 fi
14054
14055 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14056 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14057 hardcode_action_CXX=
14058 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14059 test -n "$runpath_var_CXX" || \
14060 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14061
14062 # We can hardcode non-existant directories.
14063 if test "$hardcode_direct_CXX" != no &&
14064 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14065 # have to relink, otherwise we might link with an installed library
14066 # when we should be linking with a yet-to-be-installed one
14067 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14068 test "$hardcode_minus_L_CXX" != no; then
14069 # Linking always hardcodes the temporary library directory.
14070 hardcode_action_CXX=relink
14071 else
14072 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14073 hardcode_action_CXX=immediate
14074 fi
14075 else
14076 # We cannot hardcode anything, or else we can only hardcode existing
14077 # directories.
14078 hardcode_action_CXX=unsupported
14079 fi
14080 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14081 echo "${ECHO_T}$hardcode_action_CXX" >&6
14082
14083 if test "$hardcode_action_CXX" = relink; then
14084 # Fast installation is not supported
14085 enable_fast_install=no
14086 elif test "$shlibpath_overrides_runpath" = yes ||
14087 test "$enable_shared" = no; then
14088 # Fast installation is not necessary
14089 enable_fast_install=needless
14090 fi
14091
14092
14093 # The else clause should only fire when bootstrapping the
14094 # libtool distribution, otherwise you forgot to ship ltmain.sh
14095 # with your package, and you will get complaints that there are
14096 # no rules to generate ltmain.sh.
14097 if test -f "$ltmain"; then
14098 # See if we are running on zsh, and set the options which allow our commands through
14099 # without removal of \ escapes.
14100 if test -n "${ZSH_VERSION+set}" ; then
14101 setopt NO_GLOB_SUBST
14102 fi
14103 # Now quote all the things that may contain metacharacters while being
14104 # careful not to overquote the AC_SUBSTed values. We take copies of the
14105 # variables and quote the copies for generation of the libtool script.
14106 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14107 SED SHELL STRIP \
14108 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14109 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14110 deplibs_check_method reload_flag reload_cmds need_locks \
14111 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14112 lt_cv_sys_global_symbol_to_c_name_address \
14113 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14114 old_postinstall_cmds old_postuninstall_cmds \
14115 compiler_CXX \
14116 CC_CXX \
14117 LD_CXX \
14118 lt_prog_compiler_wl_CXX \
14119 lt_prog_compiler_pic_CXX \
14120 lt_prog_compiler_static_CXX \
14121 lt_prog_compiler_no_builtin_flag_CXX \
14122 export_dynamic_flag_spec_CXX \
14123 thread_safe_flag_spec_CXX \
14124 whole_archive_flag_spec_CXX \
14125 enable_shared_with_static_runtimes_CXX \
14126 old_archive_cmds_CXX \
14127 old_archive_from_new_cmds_CXX \
14128 predep_objects_CXX \
14129 postdep_objects_CXX \
14130 predeps_CXX \
14131 postdeps_CXX \
14132 compiler_lib_search_path_CXX \
14133 archive_cmds_CXX \
14134 archive_expsym_cmds_CXX \
14135 postinstall_cmds_CXX \
14136 postuninstall_cmds_CXX \
14137 old_archive_from_expsyms_cmds_CXX \
14138 allow_undefined_flag_CXX \
14139 no_undefined_flag_CXX \
14140 export_symbols_cmds_CXX \
14141 hardcode_libdir_flag_spec_CXX \
14142 hardcode_libdir_flag_spec_ld_CXX \
14143 hardcode_libdir_separator_CXX \
14144 hardcode_automatic_CXX \
14145 module_cmds_CXX \
14146 module_expsym_cmds_CXX \
14147 lt_cv_prog_compiler_c_o_CXX \
14148 exclude_expsyms_CXX \
14149 include_expsyms_CXX; do
14150
14151 case $var in
14152 old_archive_cmds_CXX | \
14153 old_archive_from_new_cmds_CXX | \
14154 archive_cmds_CXX | \
14155 archive_expsym_cmds_CXX | \
14156 module_cmds_CXX | \
14157 module_expsym_cmds_CXX | \
14158 old_archive_from_expsyms_cmds_CXX | \
14159 export_symbols_cmds_CXX | \
14160 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14161 postinstall_cmds | postuninstall_cmds | \
14162 old_postinstall_cmds | old_postuninstall_cmds | \
14163 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14164 # Double-quote double-evaled strings.
14165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14166 ;;
14167 *)
14168 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14169 ;;
14170 esac
14171 done
14172
14173 case $lt_echo in
14174 *'\$0 --fallback-echo"')
14175 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14176 ;;
14177 esac
14178
14179 cfgfile="$ofile"
14180
14181 cat <<__EOF__ >> "$cfgfile"
14182 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14183
14184 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14185
14186 # Shell to use when invoking shell scripts.
14187 SHELL=$lt_SHELL
14188
14189 # Whether or not to build shared libraries.
14190 build_libtool_libs=$enable_shared
14191
14192 # Whether or not to build static libraries.
14193 build_old_libs=$enable_static
14194
14195 # Whether or not to add -lc for building shared libraries.
14196 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14197
14198 # Whether or not to disallow shared libs when runtime libs are static
14199 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14200
14201 # Whether or not to optimize for fast installation.
14202 fast_install=$enable_fast_install
14203
14204 # The host system.
14205 host_alias=$host_alias
14206 host=$host
14207 host_os=$host_os
14208
14209 # The build system.
14210 build_alias=$build_alias
14211 build=$build
14212 build_os=$build_os
14213
14214 # An echo program that does not interpret backslashes.
14215 echo=$lt_echo
14216
14217 # The archiver.
14218 AR=$lt_AR
14219 AR_FLAGS=$lt_AR_FLAGS
14220
14221 # A C compiler.
14222 LTCC=$lt_LTCC
14223
14224 # LTCC compiler flags.
14225 LTCFLAGS=$lt_LTCFLAGS
14226
14227 # A language-specific compiler.
14228 CC=$lt_compiler_CXX
14229
14230 # Is the compiler the GNU C compiler?
14231 with_gcc=$GCC_CXX
14232
14233 # An ERE matcher.
14234 EGREP=$lt_EGREP
14235
14236 # The linker used to build libraries.
14237 LD=$lt_LD_CXX
14238
14239 # Whether we need hard or soft links.
14240 LN_S=$lt_LN_S
14241
14242 # A BSD-compatible nm program.
14243 NM=$lt_NM
14244
14245 # A symbol stripping program
14246 STRIP=$lt_STRIP
14247
14248 # Used to examine libraries when file_magic_cmd begins "file"
14249 MAGIC_CMD=$MAGIC_CMD
14250
14251 # Used on cygwin: DLL creation program.
14252 DLLTOOL="$DLLTOOL"
14253
14254 # Used on cygwin: object dumper.
14255 OBJDUMP="$OBJDUMP"
14256
14257 # Used on cygwin: assembler.
14258 AS="$AS"
14259
14260 # The name of the directory that contains temporary libtool files.
14261 objdir=$objdir
14262
14263 # How to create reloadable object files.
14264 reload_flag=$lt_reload_flag
14265 reload_cmds=$lt_reload_cmds
14266
14267 # How to pass a linker flag through the compiler.
14268 wl=$lt_lt_prog_compiler_wl_CXX
14269
14270 # Object file suffix (normally "o").
14271 objext="$ac_objext"
14272
14273 # Old archive suffix (normally "a").
14274 libext="$libext"
14275
14276 # Shared library suffix (normally ".so").
14277 shrext_cmds='$shrext_cmds'
14278
14279 # Executable file suffix (normally "").
14280 exeext="$exeext"
14281
14282 # Additional compiler flags for building library objects.
14283 pic_flag=$lt_lt_prog_compiler_pic_CXX
14284 pic_mode=$pic_mode
14285
14286 # What is the maximum length of a command?
14287 max_cmd_len=$lt_cv_sys_max_cmd_len
14288
14289 # Does compiler simultaneously support -c and -o options?
14290 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14291
14292 # Must we lock files when doing compilation?
14293 need_locks=$lt_need_locks
14294
14295 # Do we need the lib prefix for modules?
14296 need_lib_prefix=$need_lib_prefix
14297
14298 # Do we need a version for libraries?
14299 need_version=$need_version
14300
14301 # Whether dlopen is supported.
14302 dlopen_support=$enable_dlopen
14303
14304 # Whether dlopen of programs is supported.
14305 dlopen_self=$enable_dlopen_self
14306
14307 # Whether dlopen of statically linked programs is supported.
14308 dlopen_self_static=$enable_dlopen_self_static
14309
14310 # Compiler flag to prevent dynamic linking.
14311 link_static_flag=$lt_lt_prog_compiler_static_CXX
14312
14313 # Compiler flag to turn off builtin functions.
14314 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14315
14316 # Compiler flag to allow reflexive dlopens.
14317 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14318
14319 # Compiler flag to generate shared objects directly from archives.
14320 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14321
14322 # Compiler flag to generate thread-safe objects.
14323 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14324
14325 # Library versioning type.
14326 version_type=$version_type
14327
14328 # Format of library name prefix.
14329 libname_spec=$lt_libname_spec
14330
14331 # List of archive names. First name is the real one, the rest are links.
14332 # The last name is the one that the linker finds with -lNAME.
14333 library_names_spec=$lt_library_names_spec
14334
14335 # The coded name of the library, if different from the real name.
14336 soname_spec=$lt_soname_spec
14337
14338 # Commands used to build and install an old-style archive.
14339 RANLIB=$lt_RANLIB
14340 old_archive_cmds=$lt_old_archive_cmds_CXX
14341 old_postinstall_cmds=$lt_old_postinstall_cmds
14342 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14343
14344 # Create an old-style archive from a shared archive.
14345 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14346
14347 # Create a temporary old-style archive to link instead of a shared archive.
14348 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14349
14350 # Commands used to build and install a shared archive.
14351 archive_cmds=$lt_archive_cmds_CXX
14352 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14353 postinstall_cmds=$lt_postinstall_cmds
14354 postuninstall_cmds=$lt_postuninstall_cmds
14355
14356 # Commands used to build a loadable module (assumed same as above if empty)
14357 module_cmds=$lt_module_cmds_CXX
14358 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14359
14360 # Commands to strip libraries.
14361 old_striplib=$lt_old_striplib
14362 striplib=$lt_striplib
14363
14364 # Dependencies to place before the objects being linked to create a
14365 # shared library.
14366 predep_objects=$lt_predep_objects_CXX
14367
14368 # Dependencies to place after the objects being linked to create a
14369 # shared library.
14370 postdep_objects=$lt_postdep_objects_CXX
14371
14372 # Dependencies to place before the objects being linked to create a
14373 # shared library.
14374 predeps=$lt_predeps_CXX
14375
14376 # Dependencies to place after the objects being linked to create a
14377 # shared library.
14378 postdeps=$lt_postdeps_CXX
14379
14380 # The library search path used internally by the compiler when linking
14381 # a shared library.
14382 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14383
14384 # Method to check whether dependent libraries are shared objects.
14385 deplibs_check_method=$lt_deplibs_check_method
14386
14387 # Command to use when deplibs_check_method == file_magic.
14388 file_magic_cmd=$lt_file_magic_cmd
14389
14390 # Flag that allows shared libraries with undefined symbols to be built.
14391 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14392
14393 # Flag that forces no undefined symbols.
14394 no_undefined_flag=$lt_no_undefined_flag_CXX
14395
14396 # Commands used to finish a libtool library installation in a directory.
14397 finish_cmds=$lt_finish_cmds
14398
14399 # Same as above, but a single script fragment to be evaled but not shown.
14400 finish_eval=$lt_finish_eval
14401
14402 # Take the output of nm and produce a listing of raw symbols and C names.
14403 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14404
14405 # Transform the output of nm in a proper C declaration
14406 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14407
14408 # Transform the output of nm in a C name address pair
14409 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14410
14411 # This is the shared library runtime path variable.
14412 runpath_var=$runpath_var
14413
14414 # This is the shared library path variable.
14415 shlibpath_var=$shlibpath_var
14416
14417 # Is shlibpath searched before the hard-coded library search path?
14418 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14419
14420 # How to hardcode a shared library path into an executable.
14421 hardcode_action=$hardcode_action_CXX
14422
14423 # Whether we should hardcode library paths into libraries.
14424 hardcode_into_libs=$hardcode_into_libs
14425
14426 # Flag to hardcode \$libdir into a binary during linking.
14427 # This must work even if \$libdir does not exist.
14428 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14429
14430 # If ld is used when linking, flag to hardcode \$libdir into
14431 # a binary during linking. This must work even if \$libdir does
14432 # not exist.
14433 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14434
14435 # Whether we need a single -rpath flag with a separated argument.
14436 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14437
14438 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14439 # resulting binary.
14440 hardcode_direct=$hardcode_direct_CXX
14441
14442 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14443 # resulting binary.
14444 hardcode_minus_L=$hardcode_minus_L_CXX
14445
14446 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14447 # the resulting binary.
14448 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14449
14450 # Set to yes if building a shared library automatically hardcodes DIR into the library
14451 # and all subsequent libraries and executables linked against it.
14452 hardcode_automatic=$hardcode_automatic_CXX
14453
14454 # Variables whose values should be saved in libtool wrapper scripts and
14455 # restored at relink time.
14456 variables_saved_for_relink="$variables_saved_for_relink"
14457
14458 # Whether libtool must link a program against all its dependency libraries.
14459 link_all_deplibs=$link_all_deplibs_CXX
14460
14461 # Compile-time system search path for libraries
14462 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14463
14464 # Run-time system search path for libraries
14465 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14466
14467 # Fix the shell variable \$srcfile for the compiler.
14468 fix_srcfile_path="$fix_srcfile_path_CXX"
14469
14470 # Set to yes if exported symbols are required.
14471 always_export_symbols=$always_export_symbols_CXX
14472
14473 # The commands to list exported symbols.
14474 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14475
14476 # The commands to extract the exported symbol list from a shared archive.
14477 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14478
14479 # Symbols that should not be listed in the preloaded symbols.
14480 exclude_expsyms=$lt_exclude_expsyms_CXX
14481
14482 # Symbols that must always be exported.
14483 include_expsyms=$lt_include_expsyms_CXX
14484
14485 # ### END LIBTOOL TAG CONFIG: $tagname
14486
14487 __EOF__
14488
14489
14490 else
14491 # If there is no Makefile yet, we rely on a make rule to execute
14492 # `config.status --recheck' to rerun these tests and create the
14493 # libtool script then.
14494 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14495 if test -f "$ltmain_in"; then
14496 test -f Makefile && make "$ltmain"
14497 fi
14498 fi
14499
14500
14501 ac_ext=c
14502 ac_cpp='$CPP $CPPFLAGS'
14503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14506
14507 CC=$lt_save_CC
14508 LDCXX=$LD
14509 LD=$lt_save_LD
14510 GCC=$lt_save_GCC
14511 with_gnu_ldcxx=$with_gnu_ld
14512 with_gnu_ld=$lt_save_with_gnu_ld
14513 lt_cv_path_LDCXX=$lt_cv_path_LD
14514 lt_cv_path_LD=$lt_save_path_LD
14515 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14516 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14517
14518 else
14519 tagname=""
14520 fi
14521 ;;
14522
14523 F77)
14524 if test -n "$F77" && test "X$F77" != "Xno"; then
14525
14526 ac_ext=f
14527 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14528 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14529 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14530
14531
14532 archive_cmds_need_lc_F77=no
14533 allow_undefined_flag_F77=
14534 always_export_symbols_F77=no
14535 archive_expsym_cmds_F77=
14536 export_dynamic_flag_spec_F77=
14537 hardcode_direct_F77=no
14538 hardcode_libdir_flag_spec_F77=
14539 hardcode_libdir_flag_spec_ld_F77=
14540 hardcode_libdir_separator_F77=
14541 hardcode_minus_L_F77=no
14542 hardcode_automatic_F77=no
14543 module_cmds_F77=
14544 module_expsym_cmds_F77=
14545 link_all_deplibs_F77=unknown
14546 old_archive_cmds_F77=$old_archive_cmds
14547 no_undefined_flag_F77=
14548 whole_archive_flag_spec_F77=
14549 enable_shared_with_static_runtimes_F77=no
14550
14551 # Source file extension for f77 test sources.
14552 ac_ext=f
14553
14554 # Object file extension for compiled f77 test sources.
14555 objext=o
14556 objext_F77=$objext
14557
14558 # Code to be used in simple compile tests
14559 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14560
14561 # Code to be used in simple link tests
14562 lt_simple_link_test_code=" program t\n end\n"
14563
14564 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14565
14566 # If no C compiler was specified, use CC.
14567 LTCC=${LTCC-"$CC"}
14568
14569 # If no C compiler flags were specified, use CFLAGS.
14570 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14571
14572 # Allow CC to be a program name with arguments.
14573 compiler=$CC
14574
14575
14576 # save warnings/boilerplate of simple test code
14577 ac_outfile=conftest.$ac_objext
14578 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14579 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14580 _lt_compiler_boilerplate=`cat conftest.err`
14581 $rm conftest*
14582
14583 ac_outfile=conftest.$ac_objext
14584 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14585 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14586 _lt_linker_boilerplate=`cat conftest.err`
14587 $rm conftest*
14588
14589
14590 # Allow CC to be a program name with arguments.
14591 lt_save_CC="$CC"
14592 CC=${F77-"f77"}
14593 compiler=$CC
14594 compiler_F77=$CC
14595 for cc_temp in $compiler""; do
14596 case $cc_temp in
14597 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14598 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14599 \-*) ;;
14600 *) break;;
14601 esac
14602 done
14603 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14604
14605
14606 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14607 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14608 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14609 echo "${ECHO_T}$can_build_shared" >&6
14610
14611 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14612 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14613 test "$can_build_shared" = "no" && enable_shared=no
14614
14615 # On AIX, shared libraries and static libraries use the same namespace, and
14616 # are all built from PIC.
14617 case $host_os in
14618 aix3*)
14619 test "$enable_shared" = yes && enable_static=no
14620 if test -n "$RANLIB"; then
14621 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14622 postinstall_cmds='$RANLIB $lib'
14623 fi
14624 ;;
14625 aix4* | aix5*)
14626 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14627 test "$enable_shared" = yes && enable_static=no
14628 fi
14629 ;;
14630 esac
14631 echo "$as_me:$LINENO: result: $enable_shared" >&5
14632 echo "${ECHO_T}$enable_shared" >&6
14633
14634 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14635 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14636 # Make sure either enable_shared or enable_static is yes.
14637 test "$enable_shared" = yes || enable_static=yes
14638 echo "$as_me:$LINENO: result: $enable_static" >&5
14639 echo "${ECHO_T}$enable_static" >&6
14640
14641 GCC_F77="$G77"
14642 LD_F77="$LD"
14643
14644 lt_prog_compiler_wl_F77=
14645 lt_prog_compiler_pic_F77=
14646 lt_prog_compiler_static_F77=
14647
14648 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14649 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14650
14651 if test "$GCC" = yes; then
14652 lt_prog_compiler_wl_F77='-Wl,'
14653 lt_prog_compiler_static_F77='-static'
14654
14655 case $host_os in
14656 aix*)
14657 # All AIX code is PIC.
14658 if test "$host_cpu" = ia64; then
14659 # AIX 5 now supports IA64 processor
14660 lt_prog_compiler_static_F77='-Bstatic'
14661 fi
14662 ;;
14663
14664 amigaos*)
14665 # FIXME: we need at least 68020 code to build shared libraries, but
14666 # adding the `-m68020' flag to GCC prevents building anything better,
14667 # like `-m68040'.
14668 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14669 ;;
14670
14671 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14672 # PIC is the default for these OSes.
14673 ;;
14674
14675 mingw* | pw32* | os2*)
14676 # This hack is so that the source file can tell whether it is being
14677 # built for inclusion in a dll (and should export symbols for example).
14678 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14679 ;;
14680
14681 darwin* | rhapsody*)
14682 # PIC is the default on this platform
14683 # Common symbols not allowed in MH_DYLIB files
14684 lt_prog_compiler_pic_F77='-fno-common'
14685 ;;
14686
14687 interix3*)
14688 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14689 # Instead, we relocate shared libraries at runtime.
14690 ;;
14691
14692 msdosdjgpp*)
14693 # Just because we use GCC doesn't mean we suddenly get shared libraries
14694 # on systems that don't support them.
14695 lt_prog_compiler_can_build_shared_F77=no
14696 enable_shared=no
14697 ;;
14698
14699 sysv4*MP*)
14700 if test -d /usr/nec; then
14701 lt_prog_compiler_pic_F77=-Kconform_pic
14702 fi
14703 ;;
14704
14705 hpux*)
14706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14707 # not for PA HP-UX.
14708 case $host_cpu in
14709 hppa*64*|ia64*)
14710 # +Z the default
14711 ;;
14712 *)
14713 lt_prog_compiler_pic_F77='-fPIC'
14714 ;;
14715 esac
14716 ;;
14717
14718 *)
14719 lt_prog_compiler_pic_F77='-fPIC'
14720 ;;
14721 esac
14722 else
14723 # PORTME Check for flag to pass linker flags through the system compiler.
14724 case $host_os in
14725 aix*)
14726 lt_prog_compiler_wl_F77='-Wl,'
14727 if test "$host_cpu" = ia64; then
14728 # AIX 5 now supports IA64 processor
14729 lt_prog_compiler_static_F77='-Bstatic'
14730 else
14731 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14732 fi
14733 ;;
14734 darwin*)
14735 # PIC is the default on this platform
14736 # Common symbols not allowed in MH_DYLIB files
14737 case $cc_basename in
14738 xlc*)
14739 lt_prog_compiler_pic_F77='-qnocommon'
14740 lt_prog_compiler_wl_F77='-Wl,'
14741 ;;
14742 esac
14743 ;;
14744
14745 mingw* | pw32* | os2*)
14746 # This hack is so that the source file can tell whether it is being
14747 # built for inclusion in a dll (and should export symbols for example).
14748 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14749 ;;
14750
14751 hpux9* | hpux10* | hpux11*)
14752 lt_prog_compiler_wl_F77='-Wl,'
14753 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14754 # not for PA HP-UX.
14755 case $host_cpu in
14756 hppa*64*|ia64*)
14757 # +Z the default
14758 ;;
14759 *)
14760 lt_prog_compiler_pic_F77='+Z'
14761 ;;
14762 esac
14763 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14764 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14765 ;;
14766
14767 irix5* | irix6* | nonstopux*)
14768 lt_prog_compiler_wl_F77='-Wl,'
14769 # PIC (with -KPIC) is the default.
14770 lt_prog_compiler_static_F77='-non_shared'
14771 ;;
14772
14773 newsos6)
14774 lt_prog_compiler_pic_F77='-KPIC'
14775 lt_prog_compiler_static_F77='-Bstatic'
14776 ;;
14777
14778 linux*)
14779 case $cc_basename in
14780 icc* | ecc*)
14781 lt_prog_compiler_wl_F77='-Wl,'
14782 lt_prog_compiler_pic_F77='-KPIC'
14783 lt_prog_compiler_static_F77='-static'
14784 ;;
14785 pgcc* | pgf77* | pgf90* | pgf95*)
14786 # Portland Group compilers (*not* the Pentium gcc compiler,
14787 # which looks to be a dead project)
14788 lt_prog_compiler_wl_F77='-Wl,'
14789 lt_prog_compiler_pic_F77='-fpic'
14790 lt_prog_compiler_static_F77='-Bstatic'
14791 ;;
14792 ccc*)
14793 lt_prog_compiler_wl_F77='-Wl,'
14794 # All Alpha code is PIC.
14795 lt_prog_compiler_static_F77='-non_shared'
14796 ;;
14797 esac
14798 ;;
14799
14800 osf3* | osf4* | osf5*)
14801 lt_prog_compiler_wl_F77='-Wl,'
14802 # All OSF/1 code is PIC.
14803 lt_prog_compiler_static_F77='-non_shared'
14804 ;;
14805
14806 solaris*)
14807 lt_prog_compiler_pic_F77='-KPIC'
14808 lt_prog_compiler_static_F77='-Bstatic'
14809 case $cc_basename in
14810 f77* | f90* | f95*)
14811 lt_prog_compiler_wl_F77='-Qoption ld ';;
14812 *)
14813 lt_prog_compiler_wl_F77='-Wl,';;
14814 esac
14815 ;;
14816
14817 sunos4*)
14818 lt_prog_compiler_wl_F77='-Qoption ld '
14819 lt_prog_compiler_pic_F77='-PIC'
14820 lt_prog_compiler_static_F77='-Bstatic'
14821 ;;
14822
14823 sysv4 | sysv4.2uw2* | sysv4.3*)
14824 lt_prog_compiler_wl_F77='-Wl,'
14825 lt_prog_compiler_pic_F77='-KPIC'
14826 lt_prog_compiler_static_F77='-Bstatic'
14827 ;;
14828
14829 sysv4*MP*)
14830 if test -d /usr/nec ;then
14831 lt_prog_compiler_pic_F77='-Kconform_pic'
14832 lt_prog_compiler_static_F77='-Bstatic'
14833 fi
14834 ;;
14835
14836 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14837 lt_prog_compiler_wl_F77='-Wl,'
14838 lt_prog_compiler_pic_F77='-KPIC'
14839 lt_prog_compiler_static_F77='-Bstatic'
14840 ;;
14841
14842 unicos*)
14843 lt_prog_compiler_wl_F77='-Wl,'
14844 lt_prog_compiler_can_build_shared_F77=no
14845 ;;
14846
14847 uts4*)
14848 lt_prog_compiler_pic_F77='-pic'
14849 lt_prog_compiler_static_F77='-Bstatic'
14850 ;;
14851
14852 *)
14853 lt_prog_compiler_can_build_shared_F77=no
14854 ;;
14855 esac
14856 fi
14857
14858 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14859 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14860
14861 #
14862 # Check to make sure the PIC flag actually works.
14863 #
14864 if test -n "$lt_prog_compiler_pic_F77"; then
14865
14866 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14867 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14868 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871 lt_prog_compiler_pic_works_F77=no
14872 ac_outfile=conftest.$ac_objext
14873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14874 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14875 # Insert the option either (1) after the last *FLAGS variable, or
14876 # (2) before a word containing "conftest.", or (3) at the end.
14877 # Note that $ac_compile itself does not contain backslashes and begins
14878 # with a dollar sign (not a hyphen), so the echo should work correctly.
14879 # The option is referenced via a variable to avoid confusing sed.
14880 lt_compile=`echo "$ac_compile" | $SED \
14881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14883 -e 's:$: $lt_compiler_flag:'`
14884 (eval echo "\"\$as_me:14884: $lt_compile\"" >&5)
14885 (eval "$lt_compile" 2>conftest.err)
14886 ac_status=$?
14887 cat conftest.err >&5
14888 echo "$as_me:14888: \$? = $ac_status" >&5
14889 if (exit $ac_status) && test -s "$ac_outfile"; then
14890 # The compiler can only warn and ignore the option if not recognized
14891 # So say no if there are warnings other than the usual output.
14892 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14894 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14895 lt_prog_compiler_pic_works_F77=yes
14896 fi
14897 fi
14898 $rm conftest*
14899
14900 fi
14901 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14902 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14903
14904 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14905 case $lt_prog_compiler_pic_F77 in
14906 "" | " "*) ;;
14907 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14908 esac
14909 else
14910 lt_prog_compiler_pic_F77=
14911 lt_prog_compiler_can_build_shared_F77=no
14912 fi
14913
14914 fi
14915 case $host_os in
14916 # For platforms which do not support PIC, -DPIC is meaningless:
14917 *djgpp*)
14918 lt_prog_compiler_pic_F77=
14919 ;;
14920 *)
14921 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14922 ;;
14923 esac
14924
14925 #
14926 # Check to make sure the static flag actually works.
14927 #
14928 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14929 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14930 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14931 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14933 else
14934 lt_prog_compiler_static_works_F77=no
14935 save_LDFLAGS="$LDFLAGS"
14936 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14937 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14938 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14939 # The linker can only warn and ignore the option if not recognized
14940 # So say no if there are warnings
14941 if test -s conftest.err; then
14942 # Append any errors to the config.log.
14943 cat conftest.err 1>&5
14944 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14946 if diff conftest.exp conftest.er2 >/dev/null; then
14947 lt_prog_compiler_static_works_F77=yes
14948 fi
14949 else
14950 lt_prog_compiler_static_works_F77=yes
14951 fi
14952 fi
14953 $rm conftest*
14954 LDFLAGS="$save_LDFLAGS"
14955
14956 fi
14957 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14958 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14959
14960 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14961 :
14962 else
14963 lt_prog_compiler_static_F77=
14964 fi
14965
14966
14967 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14968 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14969 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 else
14972 lt_cv_prog_compiler_c_o_F77=no
14973 $rm -r conftest 2>/dev/null
14974 mkdir conftest
14975 cd conftest
14976 mkdir out
14977 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14978
14979 lt_compiler_flag="-o out/conftest2.$ac_objext"
14980 # Insert the option either (1) after the last *FLAGS variable, or
14981 # (2) before a word containing "conftest.", or (3) at the end.
14982 # Note that $ac_compile itself does not contain backslashes and begins
14983 # with a dollar sign (not a hyphen), so the echo should work correctly.
14984 lt_compile=`echo "$ac_compile" | $SED \
14985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14987 -e 's:$: $lt_compiler_flag:'`
14988 (eval echo "\"\$as_me:14988: $lt_compile\"" >&5)
14989 (eval "$lt_compile" 2>out/conftest.err)
14990 ac_status=$?
14991 cat out/conftest.err >&5
14992 echo "$as_me:14992: \$? = $ac_status" >&5
14993 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14994 then
14995 # The compiler can only warn and ignore the option if not recognized
14996 # So say no if there are warnings
14997 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14998 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14999 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15000 lt_cv_prog_compiler_c_o_F77=yes
15001 fi
15002 fi
15003 chmod u+w . 2>&5
15004 $rm conftest*
15005 # SGI C++ compiler will create directory out/ii_files/ for
15006 # template instantiation
15007 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15008 $rm out/* && rmdir out
15009 cd ..
15010 rmdir conftest
15011 $rm conftest*
15012
15013 fi
15014 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15015 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15016
15017
15018 hard_links="nottested"
15019 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15020 # do not overwrite the value of need_locks provided by the user
15021 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15022 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15023 hard_links=yes
15024 $rm conftest*
15025 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15026 touch conftest.a
15027 ln conftest.a conftest.b 2>&5 || hard_links=no
15028 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15029 echo "$as_me:$LINENO: result: $hard_links" >&5
15030 echo "${ECHO_T}$hard_links" >&6
15031 if test "$hard_links" = no; then
15032 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15033 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15034 need_locks=warn
15035 fi
15036 else
15037 need_locks=no
15038 fi
15039
15040 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15041 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15042
15043 runpath_var=
15044 allow_undefined_flag_F77=
15045 enable_shared_with_static_runtimes_F77=no
15046 archive_cmds_F77=
15047 archive_expsym_cmds_F77=
15048 old_archive_From_new_cmds_F77=
15049 old_archive_from_expsyms_cmds_F77=
15050 export_dynamic_flag_spec_F77=
15051 whole_archive_flag_spec_F77=
15052 thread_safe_flag_spec_F77=
15053 hardcode_libdir_flag_spec_F77=
15054 hardcode_libdir_flag_spec_ld_F77=
15055 hardcode_libdir_separator_F77=
15056 hardcode_direct_F77=no
15057 hardcode_minus_L_F77=no
15058 hardcode_shlibpath_var_F77=unsupported
15059 link_all_deplibs_F77=unknown
15060 hardcode_automatic_F77=no
15061 module_cmds_F77=
15062 module_expsym_cmds_F77=
15063 always_export_symbols_F77=no
15064 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15065 # include_expsyms should be a list of space-separated symbols to be *always*
15066 # included in the symbol list
15067 include_expsyms_F77=
15068 # exclude_expsyms can be an extended regexp of symbols to exclude
15069 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15070 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15071 # as well as any symbol that contains `d'.
15072 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15073 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15074 # platforms (ab)use it in PIC code, but their linkers get confused if
15075 # the symbol is explicitly referenced. Since portable code cannot
15076 # rely on this symbol name, it's probably fine to never include it in
15077 # preloaded symbol tables.
15078 extract_expsyms_cmds=
15079 # Just being paranoid about ensuring that cc_basename is set.
15080 for cc_temp in $compiler""; do
15081 case $cc_temp in
15082 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15083 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15084 \-*) ;;
15085 *) break;;
15086 esac
15087 done
15088 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15089
15090 case $host_os in
15091 cygwin* | mingw* | pw32*)
15092 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15093 # When not using gcc, we currently assume that we are using
15094 # Microsoft Visual C++.
15095 if test "$GCC" != yes; then
15096 with_gnu_ld=no
15097 fi
15098 ;;
15099 interix*)
15100 # we just hope/assume this is gcc and not c89 (= MSVC++)
15101 with_gnu_ld=yes
15102 ;;
15103 openbsd*)
15104 with_gnu_ld=no
15105 ;;
15106 esac
15107
15108 ld_shlibs_F77=yes
15109 if test "$with_gnu_ld" = yes; then
15110 # If archive_cmds runs LD, not CC, wlarc should be empty
15111 wlarc='${wl}'
15112
15113 # Set some defaults for GNU ld with shared library support. These
15114 # are reset later if shared libraries are not supported. Putting them
15115 # here allows them to be overridden if necessary.
15116 runpath_var=LD_RUN_PATH
15117 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15118 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15119 # ancient GNU ld didn't support --whole-archive et. al.
15120 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15121 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15122 else
15123 whole_archive_flag_spec_F77=
15124 fi
15125 supports_anon_versioning=no
15126 case `$LD -v 2>/dev/null` in
15127 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15128 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15129 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15130 *\ 2.11.*) ;; # other 2.11 versions
15131 *) supports_anon_versioning=yes ;;
15132 esac
15133
15134 # See if GNU ld supports shared libraries.
15135 case $host_os in
15136 aix3* | aix4* | aix5*)
15137 # On AIX/PPC, the GNU linker is very broken
15138 if test "$host_cpu" != ia64; then
15139 ld_shlibs_F77=no
15140 cat <<EOF 1>&2
15141
15142 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15143 *** to be unable to reliably create shared libraries on AIX.
15144 *** Therefore, libtool is disabling shared libraries support. If you
15145 *** really care for shared libraries, you may want to modify your PATH
15146 *** so that a non-GNU linker is found, and then restart.
15147
15148 EOF
15149 fi
15150 ;;
15151
15152 amigaos*)
15153 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)'
15154 hardcode_libdir_flag_spec_F77='-L$libdir'
15155 hardcode_minus_L_F77=yes
15156
15157 # Samuel A. Falvo II <[email protected]> reports
15158 # that the semantics of dynamic libraries on AmigaOS, at least up
15159 # to version 4, is to share data among multiple programs linked
15160 # with the same dynamic library. Since this doesn't match the
15161 # behavior of shared libraries on other platforms, we can't use
15162 # them.
15163 ld_shlibs_F77=no
15164 ;;
15165
15166 beos*)
15167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15168 allow_undefined_flag_F77=unsupported
15169 # Joseph Beckenbach <[email protected]> says some releases of gcc
15170 # support --undefined. This deserves some investigation. FIXME
15171 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172 else
15173 ld_shlibs_F77=no
15174 fi
15175 ;;
15176
15177 cygwin* | mingw* | pw32*)
15178 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15179 # as there is no search path for DLLs.
15180 hardcode_libdir_flag_spec_F77='-L$libdir'
15181 allow_undefined_flag_F77=unsupported
15182 always_export_symbols_F77=no
15183 enable_shared_with_static_runtimes_F77=yes
15184 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15185
15186 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15187 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15188 # If the export-symbols file already is a .def file (1st line
15189 # is EXPORTS), use it as is; otherwise, prepend...
15190 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15191 cp $export_symbols $output_objdir/$soname.def;
15192 else
15193 echo EXPORTS > $output_objdir/$soname.def;
15194 cat $export_symbols >> $output_objdir/$soname.def;
15195 fi~
15196 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15197 else
15198 ld_shlibs_F77=no
15199 fi
15200 ;;
15201
15202 interix3*)
15203 hardcode_direct_F77=no
15204 hardcode_shlibpath_var_F77=no
15205 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15206 export_dynamic_flag_spec_F77='${wl}-E'
15207 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15208 # Instead, shared libraries are loaded at an image base (0x10000000 by
15209 # default) and relocated if they conflict, which is a slow very memory
15210 # consuming and fragmenting process. To avoid this, we pick a random,
15211 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15212 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15213 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'
15214 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'
15215 ;;
15216
15217 linux*)
15218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15219 tmp_addflag=
15220 case $cc_basename,$host_cpu in
15221 pgcc*) # Portland Group C compiler
15222 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'
15223 tmp_addflag=' $pic_flag'
15224 ;;
15225 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15226 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'
15227 tmp_addflag=' $pic_flag -Mnomain' ;;
15228 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15229 tmp_addflag=' -i_dynamic' ;;
15230 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15231 tmp_addflag=' -i_dynamic -nofor_main' ;;
15232 ifc* | ifort*) # Intel Fortran compiler
15233 tmp_addflag=' -nofor_main' ;;
15234 esac
15235 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15236
15237 if test $supports_anon_versioning = yes; then
15238 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15240 $echo "local: *; };" >> $output_objdir/$libname.ver~
15241 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15242 fi
15243 else
15244 ld_shlibs_F77=no
15245 fi
15246 ;;
15247
15248 netbsd*)
15249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15250 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15251 wlarc=
15252 else
15253 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15254 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15255 fi
15256 ;;
15257
15258 solaris*)
15259 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15260 ld_shlibs_F77=no
15261 cat <<EOF 1>&2
15262
15263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15264 *** create shared libraries on Solaris systems. Therefore, libtool
15265 *** is disabling shared libraries support. We urge you to upgrade GNU
15266 *** binutils to release 2.9.1 or newer. Another option is to modify
15267 *** your PATH or compiler configuration so that the native linker is
15268 *** used, and then restart.
15269
15270 EOF
15271 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15272 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15273 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15274 else
15275 ld_shlibs_F77=no
15276 fi
15277 ;;
15278
15279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15280 case `$LD -v 2>&1` in
15281 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15282 ld_shlibs_F77=no
15283 cat <<_LT_EOF 1>&2
15284
15285 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15286 *** reliably create shared libraries on SCO systems. Therefore, libtool
15287 *** is disabling shared libraries support. We urge you to upgrade GNU
15288 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15289 *** your PATH or compiler configuration so that the native linker is
15290 *** used, and then restart.
15291
15292 _LT_EOF
15293 ;;
15294 *)
15295 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15296 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15297 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15298 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15299 else
15300 ld_shlibs_F77=no
15301 fi
15302 ;;
15303 esac
15304 ;;
15305
15306 sunos4*)
15307 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15308 wlarc=
15309 hardcode_direct_F77=yes
15310 hardcode_shlibpath_var_F77=no
15311 ;;
15312
15313 *)
15314 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15315 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15316 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15317 else
15318 ld_shlibs_F77=no
15319 fi
15320 ;;
15321 esac
15322
15323 if test "$ld_shlibs_F77" = no; then
15324 runpath_var=
15325 hardcode_libdir_flag_spec_F77=
15326 export_dynamic_flag_spec_F77=
15327 whole_archive_flag_spec_F77=
15328 fi
15329 else
15330 # PORTME fill in a description of your system's linker (not GNU ld)
15331 case $host_os in
15332 aix3*)
15333 allow_undefined_flag_F77=unsupported
15334 always_export_symbols_F77=yes
15335 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'
15336 # Note: this linker hardcodes the directories in LIBPATH if there
15337 # are no directories specified by -L.
15338 hardcode_minus_L_F77=yes
15339 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15340 # Neither direct hardcoding nor static linking is supported with a
15341 # broken collect2.
15342 hardcode_direct_F77=unsupported
15343 fi
15344 ;;
15345
15346 aix4* | aix5*)
15347 if test "$host_cpu" = ia64; then
15348 # On IA64, the linker does run time linking by default, so we don't
15349 # have to do anything special.
15350 aix_use_runtimelinking=no
15351 exp_sym_flag='-Bexport'
15352 no_entry_flag=""
15353 else
15354 # If we're using GNU nm, then we don't want the "-C" option.
15355 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15356 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15357 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'
15358 else
15359 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'
15360 fi
15361 aix_use_runtimelinking=no
15362
15363 # Test if we are trying to use run time linking or normal
15364 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15365 # need to do runtime linking.
15366 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15367 for ld_flag in $LDFLAGS; do
15368 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15369 aix_use_runtimelinking=yes
15370 break
15371 fi
15372 done
15373 ;;
15374 esac
15375
15376 exp_sym_flag='-bexport'
15377 no_entry_flag='-bnoentry'
15378 fi
15379
15380 # When large executables or shared objects are built, AIX ld can
15381 # have problems creating the table of contents. If linking a library
15382 # or program results in "error TOC overflow" add -mminimal-toc to
15383 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15384 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15385
15386 archive_cmds_F77=''
15387 hardcode_direct_F77=yes
15388 hardcode_libdir_separator_F77=':'
15389 link_all_deplibs_F77=yes
15390
15391 if test "$GCC" = yes; then
15392 case $host_os in aix4.[012]|aix4.[012].*)
15393 # We only want to do this on AIX 4.2 and lower, the check
15394 # below for broken collect2 doesn't work under 4.3+
15395 collect2name=`${CC} -print-prog-name=collect2`
15396 if test -f "$collect2name" && \
15397 strings "$collect2name" | grep resolve_lib_name >/dev/null
15398 then
15399 # We have reworked collect2
15400 hardcode_direct_F77=yes
15401 else
15402 # We have old collect2
15403 hardcode_direct_F77=unsupported
15404 # It fails to find uninstalled libraries when the uninstalled
15405 # path is not listed in the libpath. Setting hardcode_minus_L
15406 # to unsupported forces relinking
15407 hardcode_minus_L_F77=yes
15408 hardcode_libdir_flag_spec_F77='-L$libdir'
15409 hardcode_libdir_separator_F77=
15410 fi
15411 ;;
15412 esac
15413 shared_flag='-shared'
15414 if test "$aix_use_runtimelinking" = yes; then
15415 shared_flag="$shared_flag "'${wl}-G'
15416 fi
15417 else
15418 # not using gcc
15419 if test "$host_cpu" = ia64; then
15420 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15421 # chokes on -Wl,-G. The following line is correct:
15422 shared_flag='-G'
15423 else
15424 if test "$aix_use_runtimelinking" = yes; then
15425 shared_flag='${wl}-G'
15426 else
15427 shared_flag='${wl}-bM:SRE'
15428 fi
15429 fi
15430 fi
15431
15432 # It seems that -bexpall does not export symbols beginning with
15433 # underscore (_), so it is better to generate a list of symbols to export.
15434 always_export_symbols_F77=yes
15435 if test "$aix_use_runtimelinking" = yes; then
15436 # Warning - without using the other runtime loading flags (-brtl),
15437 # -berok will link without error, but may produce a broken library.
15438 allow_undefined_flag_F77='-berok'
15439 # Determine the default libpath from the value encoded in an empty executable.
15440 cat >conftest.$ac_ext <<_ACEOF
15441 program main
15442
15443 end
15444 _ACEOF
15445 rm -f conftest.$ac_objext conftest$ac_exeext
15446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15447 (eval $ac_link) 2>conftest.er1
15448 ac_status=$?
15449 grep -v '^ *+' conftest.er1 >conftest.err
15450 rm -f conftest.er1
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } &&
15454 { ac_try='test -z "$ac_f77_werror_flag"
15455 || test ! -s conftest.err'
15456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457 (eval $ac_try) 2>&5
15458 ac_status=$?
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; } &&
15461 { ac_try='test -s conftest$ac_exeext'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; }; then
15467
15468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15469 }'`
15470 # Check for a 64-bit object if we didn't find anything.
15471 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; }
15472 }'`; fi
15473 else
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15476
15477 fi
15478 rm -f conftest.err conftest.$ac_objext \
15479 conftest$ac_exeext conftest.$ac_ext
15480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15481
15482 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15483 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"
15484 else
15485 if test "$host_cpu" = ia64; then
15486 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15487 allow_undefined_flag_F77="-z nodefs"
15488 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"
15489 else
15490 # Determine the default libpath from the value encoded in an empty executable.
15491 cat >conftest.$ac_ext <<_ACEOF
15492 program main
15493
15494 end
15495 _ACEOF
15496 rm -f conftest.$ac_objext conftest$ac_exeext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15498 (eval $ac_link) 2>conftest.er1
15499 ac_status=$?
15500 grep -v '^ *+' conftest.er1 >conftest.err
15501 rm -f conftest.er1
15502 cat conftest.err >&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } &&
15505 { ac_try='test -z "$ac_f77_werror_flag"
15506 || test ! -s conftest.err'
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15509 ac_status=$?
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; } &&
15512 { ac_try='test -s conftest$ac_exeext'
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518
15519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15520 }'`
15521 # Check for a 64-bit object if we didn't find anything.
15522 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; }
15523 }'`; fi
15524 else
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15527
15528 fi
15529 rm -f conftest.err conftest.$ac_objext \
15530 conftest$ac_exeext conftest.$ac_ext
15531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15532
15533 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15534 # Warning - without using the other run time loading flags,
15535 # -berok will link without error, but may produce a broken library.
15536 no_undefined_flag_F77=' ${wl}-bernotok'
15537 allow_undefined_flag_F77=' ${wl}-berok'
15538 # Exported symbols can be pulled into shared objects from archives
15539 whole_archive_flag_spec_F77='$convenience'
15540 archive_cmds_need_lc_F77=yes
15541 # This is similar to how AIX traditionally builds its shared libraries.
15542 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'
15543 fi
15544 fi
15545 ;;
15546
15547 amigaos*)
15548 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)'
15549 hardcode_libdir_flag_spec_F77='-L$libdir'
15550 hardcode_minus_L_F77=yes
15551 # see comment about different semantics on the GNU ld section
15552 ld_shlibs_F77=no
15553 ;;
15554
15555 bsdi[45]*)
15556 export_dynamic_flag_spec_F77=-rdynamic
15557 ;;
15558
15559 cygwin* | mingw* | pw32*)
15560 # When not using gcc, we currently assume that we are using
15561 # Microsoft Visual C++.
15562 # hardcode_libdir_flag_spec is actually meaningless, as there is
15563 # no search path for DLLs.
15564 hardcode_libdir_flag_spec_F77=' '
15565 allow_undefined_flag_F77=unsupported
15566 # Tell ltmain to make .lib files, not .a files.
15567 libext=lib
15568 # Tell ltmain to make .dll files, not .so files.
15569 shrext_cmds=".dll"
15570 # FIXME: Setting linknames here is a bad hack.
15571 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15572 # The linker will automatically build a .lib file if we build a DLL.
15573 old_archive_From_new_cmds_F77='true'
15574 # FIXME: Should let the user specify the lib program.
15575 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15576 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15577 enable_shared_with_static_runtimes_F77=yes
15578 ;;
15579
15580 darwin* | rhapsody*)
15581 case $host_os in
15582 rhapsody* | darwin1.[012])
15583 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15584 ;;
15585 *) # Darwin 1.3 on
15586 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15587 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15588 else
15589 case ${MACOSX_DEPLOYMENT_TARGET} in
15590 10.[012])
15591 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15592 ;;
15593 10.*)
15594 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15595 ;;
15596 esac
15597 fi
15598 ;;
15599 esac
15600 archive_cmds_need_lc_F77=no
15601 hardcode_direct_F77=no
15602 hardcode_automatic_F77=yes
15603 hardcode_shlibpath_var_F77=unsupported
15604 whole_archive_flag_spec_F77=''
15605 link_all_deplibs_F77=yes
15606 if test "$GCC" = yes ; then
15607 output_verbose_link_cmd='echo'
15608 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15609 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15610 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15611 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}'
15612 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}'
15613 else
15614 case $cc_basename in
15615 xlc*)
15616 output_verbose_link_cmd='echo'
15617 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15618 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15619 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15620 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}'
15621 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}'
15622 ;;
15623 *)
15624 ld_shlibs_F77=no
15625 ;;
15626 esac
15627 fi
15628 ;;
15629
15630 dgux*)
15631 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15632 hardcode_libdir_flag_spec_F77='-L$libdir'
15633 hardcode_shlibpath_var_F77=no
15634 ;;
15635
15636 freebsd1*)
15637 ld_shlibs_F77=no
15638 ;;
15639
15640 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15641 # support. Future versions do this automatically, but an explicit c++rt0.o
15642 # does not break anything, and helps significantly (at the cost of a little
15643 # extra space).
15644 freebsd2.2*)
15645 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15646 hardcode_libdir_flag_spec_F77='-R$libdir'
15647 hardcode_direct_F77=yes
15648 hardcode_shlibpath_var_F77=no
15649 ;;
15650
15651 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15652 freebsd2*)
15653 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15654 hardcode_direct_F77=yes
15655 hardcode_minus_L_F77=yes
15656 hardcode_shlibpath_var_F77=no
15657 ;;
15658
15659 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15660 freebsd* | kfreebsd*-gnu | dragonfly*)
15661 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15662 hardcode_libdir_flag_spec_F77='-R$libdir'
15663 hardcode_direct_F77=yes
15664 hardcode_shlibpath_var_F77=no
15665 ;;
15666
15667 hpux9*)
15668 if test "$GCC" = yes; then
15669 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'
15670 else
15671 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'
15672 fi
15673 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15674 hardcode_libdir_separator_F77=:
15675 hardcode_direct_F77=yes
15676
15677 # hardcode_minus_L: Not really in the search PATH,
15678 # but as the default location of the library.
15679 hardcode_minus_L_F77=yes
15680 export_dynamic_flag_spec_F77='${wl}-E'
15681 ;;
15682
15683 hpux10*)
15684 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15685 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15686 else
15687 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15688 fi
15689 if test "$with_gnu_ld" = no; then
15690 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15691 hardcode_libdir_separator_F77=:
15692
15693 hardcode_direct_F77=yes
15694 export_dynamic_flag_spec_F77='${wl}-E'
15695
15696 # hardcode_minus_L: Not really in the search PATH,
15697 # but as the default location of the library.
15698 hardcode_minus_L_F77=yes
15699 fi
15700 ;;
15701
15702 hpux11*)
15703 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15704 case $host_cpu in
15705 hppa*64*)
15706 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15707 ;;
15708 ia64*)
15709 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15710 ;;
15711 *)
15712 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15713 ;;
15714 esac
15715 else
15716 case $host_cpu in
15717 hppa*64*)
15718 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15719 ;;
15720 ia64*)
15721 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15722 ;;
15723 *)
15724 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15725 ;;
15726 esac
15727 fi
15728 if test "$with_gnu_ld" = no; then
15729 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15730 hardcode_libdir_separator_F77=:
15731
15732 case $host_cpu in
15733 hppa*64*|ia64*)
15734 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15735 hardcode_direct_F77=no
15736 hardcode_shlibpath_var_F77=no
15737 ;;
15738 *)
15739 hardcode_direct_F77=yes
15740 export_dynamic_flag_spec_F77='${wl}-E'
15741
15742 # hardcode_minus_L: Not really in the search PATH,
15743 # but as the default location of the library.
15744 hardcode_minus_L_F77=yes
15745 ;;
15746 esac
15747 fi
15748 ;;
15749
15750 irix5* | irix6* | nonstopux*)
15751 if test "$GCC" = yes; then
15752 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'
15753 else
15754 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'
15755 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15756 fi
15757 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15758 hardcode_libdir_separator_F77=:
15759 link_all_deplibs_F77=yes
15760 ;;
15761
15762 netbsd*)
15763 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15764 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15765 else
15766 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15767 fi
15768 hardcode_libdir_flag_spec_F77='-R$libdir'
15769 hardcode_direct_F77=yes
15770 hardcode_shlibpath_var_F77=no
15771 ;;
15772
15773 newsos6)
15774 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15775 hardcode_direct_F77=yes
15776 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15777 hardcode_libdir_separator_F77=:
15778 hardcode_shlibpath_var_F77=no
15779 ;;
15780
15781 openbsd*)
15782 hardcode_direct_F77=yes
15783 hardcode_shlibpath_var_F77=no
15784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15785 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15786 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15787 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15788 export_dynamic_flag_spec_F77='${wl}-E'
15789 else
15790 case $host_os in
15791 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15792 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15793 hardcode_libdir_flag_spec_F77='-R$libdir'
15794 ;;
15795 *)
15796 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15797 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15798 ;;
15799 esac
15800 fi
15801 ;;
15802
15803 os2*)
15804 hardcode_libdir_flag_spec_F77='-L$libdir'
15805 hardcode_minus_L_F77=yes
15806 allow_undefined_flag_F77=unsupported
15807 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'
15808 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15809 ;;
15810
15811 osf3*)
15812 if test "$GCC" = yes; then
15813 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15814 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'
15815 else
15816 allow_undefined_flag_F77=' -expect_unresolved \*'
15817 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'
15818 fi
15819 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15820 hardcode_libdir_separator_F77=:
15821 ;;
15822
15823 osf4* | osf5*) # as osf3* with the addition of -msym flag
15824 if test "$GCC" = yes; then
15825 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15826 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'
15827 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15828 else
15829 allow_undefined_flag_F77=' -expect_unresolved \*'
15830 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'
15831 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~
15832 $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'
15833
15834 # Both c and cxx compiler support -rpath directly
15835 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15836 fi
15837 hardcode_libdir_separator_F77=:
15838 ;;
15839
15840 solaris*)
15841 no_undefined_flag_F77=' -z text'
15842 if test "$GCC" = yes; then
15843 wlarc='${wl}'
15844 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15845 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15846 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15847 else
15848 wlarc=''
15849 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15850 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15851 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15852 fi
15853 hardcode_libdir_flag_spec_F77='-R$libdir'
15854 hardcode_shlibpath_var_F77=no
15855 case $host_os in
15856 solaris2.[0-5] | solaris2.[0-5].*) ;;
15857 *)
15858 # The compiler driver will combine linker options so we
15859 # cannot just pass the convience library names through
15860 # without $wl, iff we do not link with $LD.
15861 # Luckily, gcc supports the same syntax we need for Sun Studio.
15862 # Supported since Solaris 2.6 (maybe 2.5.1?)
15863 case $wlarc in
15864 '')
15865 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15866 *)
15867 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' ;;
15868 esac ;;
15869 esac
15870 link_all_deplibs_F77=yes
15871 ;;
15872
15873 sunos4*)
15874 if test "x$host_vendor" = xsequent; then
15875 # Use $CC to link under sequent, because it throws in some extra .o
15876 # files that make .init and .fini sections work.
15877 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15878 else
15879 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15880 fi
15881 hardcode_libdir_flag_spec_F77='-L$libdir'
15882 hardcode_direct_F77=yes
15883 hardcode_minus_L_F77=yes
15884 hardcode_shlibpath_var_F77=no
15885 ;;
15886
15887 sysv4)
15888 case $host_vendor in
15889 sni)
15890 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15891 hardcode_direct_F77=yes # is this really true???
15892 ;;
15893 siemens)
15894 ## LD is ld it makes a PLAMLIB
15895 ## CC just makes a GrossModule.
15896 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15897 reload_cmds_F77='$CC -r -o $output$reload_objs'
15898 hardcode_direct_F77=no
15899 ;;
15900 motorola)
15901 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15902 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15903 ;;
15904 esac
15905 runpath_var='LD_RUN_PATH'
15906 hardcode_shlibpath_var_F77=no
15907 ;;
15908
15909 sysv4.3*)
15910 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15911 hardcode_shlibpath_var_F77=no
15912 export_dynamic_flag_spec_F77='-Bexport'
15913 ;;
15914
15915 sysv4*MP*)
15916 if test -d /usr/nec; then
15917 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15918 hardcode_shlibpath_var_F77=no
15919 runpath_var=LD_RUN_PATH
15920 hardcode_runpath_var=yes
15921 ld_shlibs_F77=yes
15922 fi
15923 ;;
15924
15925 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15926 no_undefined_flag_F77='${wl}-z,text'
15927 archive_cmds_need_lc_F77=no
15928 hardcode_shlibpath_var_F77=no
15929 runpath_var='LD_RUN_PATH'
15930
15931 if test "$GCC" = yes; then
15932 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15933 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15934 else
15935 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15936 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15937 fi
15938 ;;
15939
15940 sysv5* | sco3.2v5* | sco5v6*)
15941 # Note: We can NOT use -z defs as we might desire, because we do not
15942 # link with -lc, and that would cause any symbols used from libc to
15943 # always be unresolved, which means just about no library would
15944 # ever link correctly. If we're not using GNU ld we use -z text
15945 # though, which does catch some bad symbols but isn't as heavy-handed
15946 # as -z defs.
15947 no_undefined_flag_F77='${wl}-z,text'
15948 allow_undefined_flag_F77='${wl}-z,nodefs'
15949 archive_cmds_need_lc_F77=no
15950 hardcode_shlibpath_var_F77=no
15951 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15952 hardcode_libdir_separator_F77=':'
15953 link_all_deplibs_F77=yes
15954 export_dynamic_flag_spec_F77='${wl}-Bexport'
15955 runpath_var='LD_RUN_PATH'
15956
15957 if test "$GCC" = yes; then
15958 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15959 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15960 else
15961 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15962 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15963 fi
15964 ;;
15965
15966 uts4*)
15967 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15968 hardcode_libdir_flag_spec_F77='-L$libdir'
15969 hardcode_shlibpath_var_F77=no
15970 ;;
15971
15972 *)
15973 ld_shlibs_F77=no
15974 ;;
15975 esac
15976 fi
15977
15978 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15979 echo "${ECHO_T}$ld_shlibs_F77" >&6
15980 test "$ld_shlibs_F77" = no && can_build_shared=no
15981
15982 #
15983 # Do we need to explicitly link libc?
15984 #
15985 case "x$archive_cmds_need_lc_F77" in
15986 x|xyes)
15987 # Assume -lc should be added
15988 archive_cmds_need_lc_F77=yes
15989
15990 if test "$enable_shared" = yes && test "$GCC" = yes; then
15991 case $archive_cmds_F77 in
15992 *'~'*)
15993 # FIXME: we may have to deal with multi-command sequences.
15994 ;;
15995 '$CC '*)
15996 # Test whether the compiler implicitly links with -lc since on some
15997 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15998 # to ld, don't add -lc before -lgcc.
15999 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16000 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16001 $rm conftest*
16002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16003
16004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16005 (eval $ac_compile) 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } 2>conftest.err; then
16009 soname=conftest
16010 lib=conftest
16011 libobjs=conftest.$ac_objext
16012 deplibs=
16013 wl=$lt_prog_compiler_wl_F77
16014 pic_flag=$lt_prog_compiler_pic_F77
16015 compiler_flags=-v
16016 linker_flags=-v
16017 verstring=
16018 output_objdir=.
16019 libname=conftest
16020 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16021 allow_undefined_flag_F77=
16022 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16023 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }
16027 then
16028 archive_cmds_need_lc_F77=no
16029 else
16030 archive_cmds_need_lc_F77=yes
16031 fi
16032 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16033 else
16034 cat conftest.err 1>&5
16035 fi
16036 $rm conftest*
16037 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16038 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16039 ;;
16040 esac
16041 fi
16042 ;;
16043 esac
16044
16045 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16046 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16047 library_names_spec=
16048 libname_spec='lib$name'
16049 soname_spec=
16050 shrext_cmds=".so"
16051 postinstall_cmds=
16052 postuninstall_cmds=
16053 finish_cmds=
16054 finish_eval=
16055 shlibpath_var=
16056 shlibpath_overrides_runpath=unknown
16057 version_type=none
16058 dynamic_linker="$host_os ld.so"
16059 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16060 if test "$GCC" = yes; then
16061 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16062 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16063 # if the path contains ";" then we assume it to be the separator
16064 # otherwise default to the standard path separator (i.e. ":") - it is
16065 # assumed that no part of a normal pathname contains ";" but that should
16066 # okay in the real world where ";" in dirpaths is itself problematic.
16067 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16068 else
16069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16070 fi
16071 else
16072 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16073 fi
16074 need_lib_prefix=unknown
16075 hardcode_into_libs=no
16076
16077 # when you set need_version to no, make sure it does not cause -set_version
16078 # flags to be left without arguments
16079 need_version=unknown
16080
16081 case $host_os in
16082 aix3*)
16083 version_type=linux
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16085 shlibpath_var=LIBPATH
16086
16087 # AIX 3 has no versioning support, so we append a major version to the name.
16088 soname_spec='${libname}${release}${shared_ext}$major'
16089 ;;
16090
16091 aix4* | aix5*)
16092 version_type=linux
16093 need_lib_prefix=no
16094 need_version=no
16095 hardcode_into_libs=yes
16096 if test "$host_cpu" = ia64; then
16097 # AIX 5 supports IA64
16098 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16099 shlibpath_var=LD_LIBRARY_PATH
16100 else
16101 # With GCC up to 2.95.x, collect2 would create an import file
16102 # for dependence libraries. The import file would start with
16103 # the line `#! .'. This would cause the generated library to
16104 # depend on `.', always an invalid library. This was fixed in
16105 # development snapshots of GCC prior to 3.0.
16106 case $host_os in
16107 aix4 | aix4.[01] | aix4.[01].*)
16108 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16109 echo ' yes '
16110 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16111 :
16112 else
16113 can_build_shared=no
16114 fi
16115 ;;
16116 esac
16117 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16118 # soname into executable. Probably we can add versioning support to
16119 # collect2, so additional links can be useful in future.
16120 if test "$aix_use_runtimelinking" = yes; then
16121 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16122 # instead of lib<name>.a to let people know that these are not
16123 # typical AIX shared libraries.
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16125 else
16126 # We preserve .a as extension for shared libraries through AIX4.2
16127 # and later when we are not doing run time linking.
16128 library_names_spec='${libname}${release}.a $libname.a'
16129 soname_spec='${libname}${release}${shared_ext}$major'
16130 fi
16131 shlibpath_var=LIBPATH
16132 fi
16133 ;;
16134
16135 amigaos*)
16136 library_names_spec='$libname.ixlibrary $libname.a'
16137 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16138 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'
16139 ;;
16140
16141 beos*)
16142 library_names_spec='${libname}${shared_ext}'
16143 dynamic_linker="$host_os ld.so"
16144 shlibpath_var=LIBRARY_PATH
16145 ;;
16146
16147 bsdi[45]*)
16148 version_type=linux
16149 need_version=no
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16151 soname_spec='${libname}${release}${shared_ext}$major'
16152 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16153 shlibpath_var=LD_LIBRARY_PATH
16154 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16155 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16156 # the default ld.so.conf also contains /usr/contrib/lib and
16157 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16158 # libtool to hard-code these into programs
16159 ;;
16160
16161 cygwin* | mingw* | pw32*)
16162 version_type=windows
16163 shrext_cmds=".dll"
16164 need_version=no
16165 need_lib_prefix=no
16166
16167 case $GCC,$host_os in
16168 yes,cygwin* | yes,mingw* | yes,pw32*)
16169 library_names_spec='$libname.dll.a'
16170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16171 postinstall_cmds='base_file=`basename \${file}`~
16172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16173 dldir=$destdir/`dirname \$dlpath`~
16174 test -d \$dldir || mkdir -p \$dldir~
16175 $install_prog $dir/$dlname \$dldir/$dlname~
16176 chmod a+x \$dldir/$dlname'
16177 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16178 dlpath=$dir/\$dldll~
16179 $rm \$dlpath'
16180 shlibpath_overrides_runpath=yes
16181
16182 case $host_os in
16183 cygwin*)
16184 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16185 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16186 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16187 ;;
16188 mingw*)
16189 # MinGW DLLs use traditional 'lib' prefix
16190 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16191 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16192 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16193 # It is most probably a Windows format PATH printed by
16194 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16195 # path with ; separators, and with drive letters. We can handle the
16196 # drive letters (cygwin fileutils understands them), so leave them,
16197 # especially as we might pass files found there to a mingw objdump,
16198 # which wouldn't understand a cygwinified path. Ahh.
16199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16200 else
16201 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16202 fi
16203 ;;
16204 pw32*)
16205 # pw32 DLLs use 'pw' prefix rather than 'lib'
16206 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16207 ;;
16208 esac
16209 ;;
16210
16211 *)
16212 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16213 ;;
16214 esac
16215 dynamic_linker='Win32 ld.exe'
16216 # FIXME: first we should search . and the directory the executable is in
16217 shlibpath_var=PATH
16218 ;;
16219
16220 darwin* | rhapsody*)
16221 dynamic_linker="$host_os dyld"
16222 version_type=darwin
16223 need_lib_prefix=no
16224 need_version=no
16225 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16226 soname_spec='${libname}${release}${major}$shared_ext'
16227 shlibpath_overrides_runpath=yes
16228 shlibpath_var=DYLD_LIBRARY_PATH
16229 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16230 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16231 if test "$GCC" = yes; then
16232 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"`
16233 else
16234 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16235 fi
16236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16237 ;;
16238
16239 dgux*)
16240 version_type=linux
16241 need_lib_prefix=no
16242 need_version=no
16243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16244 soname_spec='${libname}${release}${shared_ext}$major'
16245 shlibpath_var=LD_LIBRARY_PATH
16246 ;;
16247
16248 freebsd1*)
16249 dynamic_linker=no
16250 ;;
16251
16252 kfreebsd*-gnu)
16253 version_type=linux
16254 need_lib_prefix=no
16255 need_version=no
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16257 soname_spec='${libname}${release}${shared_ext}$major'
16258 shlibpath_var=LD_LIBRARY_PATH
16259 shlibpath_overrides_runpath=no
16260 hardcode_into_libs=yes
16261 dynamic_linker='GNU ld.so'
16262 ;;
16263
16264 freebsd* | dragonfly*)
16265 # DragonFly does not have aout. When/if they implement a new
16266 # versioning mechanism, adjust this.
16267 if test -x /usr/bin/objformat; then
16268 objformat=`/usr/bin/objformat`
16269 else
16270 case $host_os in
16271 freebsd[123]*) objformat=aout ;;
16272 *) objformat=elf ;;
16273 esac
16274 fi
16275 version_type=freebsd-$objformat
16276 case $version_type in
16277 freebsd-elf*)
16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16279 need_version=no
16280 need_lib_prefix=no
16281 ;;
16282 freebsd-*)
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16284 need_version=yes
16285 ;;
16286 esac
16287 shlibpath_var=LD_LIBRARY_PATH
16288 case $host_os in
16289 freebsd2*)
16290 shlibpath_overrides_runpath=yes
16291 ;;
16292 freebsd3.[01]* | freebsdelf3.[01]*)
16293 shlibpath_overrides_runpath=yes
16294 hardcode_into_libs=yes
16295 ;;
16296 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16297 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16298 shlibpath_overrides_runpath=no
16299 hardcode_into_libs=yes
16300 ;;
16301 freebsd*) # from 4.6 on
16302 shlibpath_overrides_runpath=yes
16303 hardcode_into_libs=yes
16304 ;;
16305 esac
16306 ;;
16307
16308 gnu*)
16309 version_type=linux
16310 need_lib_prefix=no
16311 need_version=no
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 shlibpath_var=LD_LIBRARY_PATH
16315 hardcode_into_libs=yes
16316 ;;
16317
16318 hpux9* | hpux10* | hpux11*)
16319 # Give a soname corresponding to the major version so that dld.sl refuses to
16320 # link against other versions.
16321 version_type=sunos
16322 need_lib_prefix=no
16323 need_version=no
16324 case $host_cpu in
16325 ia64*)
16326 shrext_cmds='.so'
16327 hardcode_into_libs=yes
16328 dynamic_linker="$host_os dld.so"
16329 shlibpath_var=LD_LIBRARY_PATH
16330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 soname_spec='${libname}${release}${shared_ext}$major'
16333 if test "X$HPUX_IA64_MODE" = X32; then
16334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16335 else
16336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16337 fi
16338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16339 ;;
16340 hppa*64*)
16341 shrext_cmds='.sl'
16342 hardcode_into_libs=yes
16343 dynamic_linker="$host_os dld.sl"
16344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16350 ;;
16351 *)
16352 shrext_cmds='.sl'
16353 dynamic_linker="$host_os dld.sl"
16354 shlibpath_var=SHLIB_PATH
16355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357 soname_spec='${libname}${release}${shared_ext}$major'
16358 ;;
16359 esac
16360 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16361 postinstall_cmds='chmod 555 $lib'
16362 ;;
16363
16364 interix3*)
16365 version_type=linux
16366 need_lib_prefix=no
16367 need_version=no
16368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16369 soname_spec='${libname}${release}${shared_ext}$major'
16370 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16371 shlibpath_var=LD_LIBRARY_PATH
16372 shlibpath_overrides_runpath=no
16373 hardcode_into_libs=yes
16374 ;;
16375
16376 irix5* | irix6* | nonstopux*)
16377 case $host_os in
16378 nonstopux*) version_type=nonstopux ;;
16379 *)
16380 if test "$lt_cv_prog_gnu_ld" = yes; then
16381 version_type=linux
16382 else
16383 version_type=irix
16384 fi ;;
16385 esac
16386 need_lib_prefix=no
16387 need_version=no
16388 soname_spec='${libname}${release}${shared_ext}$major'
16389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16390 case $host_os in
16391 irix5* | nonstopux*)
16392 libsuff= shlibsuff=
16393 ;;
16394 *)
16395 case $LD in # libtool.m4 will add one of these switches to LD
16396 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16397 libsuff= shlibsuff= libmagic=32-bit;;
16398 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16399 libsuff=32 shlibsuff=N32 libmagic=N32;;
16400 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16401 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16402 *) libsuff= shlibsuff= libmagic=never-match;;
16403 esac
16404 ;;
16405 esac
16406 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16407 shlibpath_overrides_runpath=no
16408 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16409 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16410 hardcode_into_libs=yes
16411 ;;
16412
16413 # No shared lib support for Linux oldld, aout, or coff.
16414 linux*oldld* | linux*aout* | linux*coff*)
16415 dynamic_linker=no
16416 ;;
16417
16418 # This must be Linux ELF.
16419 linux*)
16420 version_type=linux
16421 need_lib_prefix=no
16422 need_version=no
16423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16424 soname_spec='${libname}${release}${shared_ext}$major'
16425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16426 shlibpath_var=LD_LIBRARY_PATH
16427 shlibpath_overrides_runpath=no
16428 # This implies no fast_install, which is unacceptable.
16429 # Some rework will be needed to allow for fast_install
16430 # before this can be enabled.
16431 hardcode_into_libs=yes
16432
16433 # Append ld.so.conf contents to the search path
16434 if test -f /etc/ld.so.conf; then
16435 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' ' '`
16436 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16437 fi
16438
16439 # We used to test for /lib/ld.so.1 and disable shared libraries on
16440 # powerpc, because MkLinux only supported shared libraries with the
16441 # GNU dynamic linker. Since this was broken with cross compilers,
16442 # most powerpc-linux boxes support dynamic linking these days and
16443 # people can always --disable-shared, the test was removed, and we
16444 # assume the GNU/Linux dynamic linker is in use.
16445 dynamic_linker='GNU/Linux ld.so'
16446 ;;
16447
16448 knetbsd*-gnu)
16449 version_type=linux
16450 need_lib_prefix=no
16451 need_version=no
16452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16453 soname_spec='${libname}${release}${shared_ext}$major'
16454 shlibpath_var=LD_LIBRARY_PATH
16455 shlibpath_overrides_runpath=no
16456 hardcode_into_libs=yes
16457 dynamic_linker='GNU ld.so'
16458 ;;
16459
16460 netbsd*)
16461 version_type=sunos
16462 need_lib_prefix=no
16463 need_version=no
16464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16467 dynamic_linker='NetBSD (a.out) ld.so'
16468 else
16469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16470 soname_spec='${libname}${release}${shared_ext}$major'
16471 dynamic_linker='NetBSD ld.elf_so'
16472 fi
16473 shlibpath_var=LD_LIBRARY_PATH
16474 shlibpath_overrides_runpath=yes
16475 hardcode_into_libs=yes
16476 ;;
16477
16478 newsos6)
16479 version_type=linux
16480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481 shlibpath_var=LD_LIBRARY_PATH
16482 shlibpath_overrides_runpath=yes
16483 ;;
16484
16485 nto-qnx*)
16486 version_type=linux
16487 need_lib_prefix=no
16488 need_version=no
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16490 soname_spec='${libname}${release}${shared_ext}$major'
16491 shlibpath_var=LD_LIBRARY_PATH
16492 shlibpath_overrides_runpath=yes
16493 ;;
16494
16495 openbsd*)
16496 version_type=sunos
16497 sys_lib_dlsearch_path_spec="/usr/lib"
16498 need_lib_prefix=no
16499 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16500 case $host_os in
16501 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16502 *) need_version=no ;;
16503 esac
16504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16506 shlibpath_var=LD_LIBRARY_PATH
16507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16508 case $host_os in
16509 openbsd2.[89] | openbsd2.[89].*)
16510 shlibpath_overrides_runpath=no
16511 ;;
16512 *)
16513 shlibpath_overrides_runpath=yes
16514 ;;
16515 esac
16516 else
16517 shlibpath_overrides_runpath=yes
16518 fi
16519 ;;
16520
16521 os2*)
16522 libname_spec='$name'
16523 shrext_cmds=".dll"
16524 need_lib_prefix=no
16525 library_names_spec='$libname${shared_ext} $libname.a'
16526 dynamic_linker='OS/2 ld.exe'
16527 shlibpath_var=LIBPATH
16528 ;;
16529
16530 osf3* | osf4* | osf5*)
16531 version_type=osf
16532 need_lib_prefix=no
16533 need_version=no
16534 soname_spec='${libname}${release}${shared_ext}$major'
16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16536 shlibpath_var=LD_LIBRARY_PATH
16537 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16538 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16539 ;;
16540
16541 solaris*)
16542 version_type=linux
16543 need_lib_prefix=no
16544 need_version=no
16545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546 soname_spec='${libname}${release}${shared_ext}$major'
16547 shlibpath_var=LD_LIBRARY_PATH
16548 shlibpath_overrides_runpath=yes
16549 hardcode_into_libs=yes
16550 # ldd complains unless libraries are executable
16551 postinstall_cmds='chmod +x $lib'
16552 ;;
16553
16554 sunos4*)
16555 version_type=sunos
16556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16557 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16558 shlibpath_var=LD_LIBRARY_PATH
16559 shlibpath_overrides_runpath=yes
16560 if test "$with_gnu_ld" = yes; then
16561 need_lib_prefix=no
16562 fi
16563 need_version=yes
16564 ;;
16565
16566 sysv4 | sysv4.3*)
16567 version_type=linux
16568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16569 soname_spec='${libname}${release}${shared_ext}$major'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 case $host_vendor in
16572 sni)
16573 shlibpath_overrides_runpath=no
16574 need_lib_prefix=no
16575 export_dynamic_flag_spec='${wl}-Blargedynsym'
16576 runpath_var=LD_RUN_PATH
16577 ;;
16578 siemens)
16579 need_lib_prefix=no
16580 ;;
16581 motorola)
16582 need_lib_prefix=no
16583 need_version=no
16584 shlibpath_overrides_runpath=no
16585 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16586 ;;
16587 esac
16588 ;;
16589
16590 sysv4*MP*)
16591 if test -d /usr/nec ;then
16592 version_type=linux
16593 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16594 soname_spec='$libname${shared_ext}.$major'
16595 shlibpath_var=LD_LIBRARY_PATH
16596 fi
16597 ;;
16598
16599 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16600 version_type=freebsd-elf
16601 need_lib_prefix=no
16602 need_version=no
16603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16604 soname_spec='${libname}${release}${shared_ext}$major'
16605 shlibpath_var=LD_LIBRARY_PATH
16606 hardcode_into_libs=yes
16607 if test "$with_gnu_ld" = yes; then
16608 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16609 shlibpath_overrides_runpath=no
16610 else
16611 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16612 shlibpath_overrides_runpath=yes
16613 case $host_os in
16614 sco3.2v5*)
16615 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16616 ;;
16617 esac
16618 fi
16619 sys_lib_dlsearch_path_spec='/usr/lib'
16620 ;;
16621
16622 uts4*)
16623 version_type=linux
16624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16625 soname_spec='${libname}${release}${shared_ext}$major'
16626 shlibpath_var=LD_LIBRARY_PATH
16627 ;;
16628
16629 *)
16630 dynamic_linker=no
16631 ;;
16632 esac
16633 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16634 echo "${ECHO_T}$dynamic_linker" >&6
16635 test "$dynamic_linker" = no && can_build_shared=no
16636
16637 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16638 if test "$GCC" = yes; then
16639 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16640 fi
16641
16642 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16643 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16644 hardcode_action_F77=
16645 if test -n "$hardcode_libdir_flag_spec_F77" || \
16646 test -n "$runpath_var_F77" || \
16647 test "X$hardcode_automatic_F77" = "Xyes" ; then
16648
16649 # We can hardcode non-existant directories.
16650 if test "$hardcode_direct_F77" != no &&
16651 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16652 # have to relink, otherwise we might link with an installed library
16653 # when we should be linking with a yet-to-be-installed one
16654 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16655 test "$hardcode_minus_L_F77" != no; then
16656 # Linking always hardcodes the temporary library directory.
16657 hardcode_action_F77=relink
16658 else
16659 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16660 hardcode_action_F77=immediate
16661 fi
16662 else
16663 # We cannot hardcode anything, or else we can only hardcode existing
16664 # directories.
16665 hardcode_action_F77=unsupported
16666 fi
16667 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16668 echo "${ECHO_T}$hardcode_action_F77" >&6
16669
16670 if test "$hardcode_action_F77" = relink; then
16671 # Fast installation is not supported
16672 enable_fast_install=no
16673 elif test "$shlibpath_overrides_runpath" = yes ||
16674 test "$enable_shared" = no; then
16675 # Fast installation is not necessary
16676 enable_fast_install=needless
16677 fi
16678
16679
16680 # The else clause should only fire when bootstrapping the
16681 # libtool distribution, otherwise you forgot to ship ltmain.sh
16682 # with your package, and you will get complaints that there are
16683 # no rules to generate ltmain.sh.
16684 if test -f "$ltmain"; then
16685 # See if we are running on zsh, and set the options which allow our commands through
16686 # without removal of \ escapes.
16687 if test -n "${ZSH_VERSION+set}" ; then
16688 setopt NO_GLOB_SUBST
16689 fi
16690 # Now quote all the things that may contain metacharacters while being
16691 # careful not to overquote the AC_SUBSTed values. We take copies of the
16692 # variables and quote the copies for generation of the libtool script.
16693 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16694 SED SHELL STRIP \
16695 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16696 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16697 deplibs_check_method reload_flag reload_cmds need_locks \
16698 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16699 lt_cv_sys_global_symbol_to_c_name_address \
16700 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16701 old_postinstall_cmds old_postuninstall_cmds \
16702 compiler_F77 \
16703 CC_F77 \
16704 LD_F77 \
16705 lt_prog_compiler_wl_F77 \
16706 lt_prog_compiler_pic_F77 \
16707 lt_prog_compiler_static_F77 \
16708 lt_prog_compiler_no_builtin_flag_F77 \
16709 export_dynamic_flag_spec_F77 \
16710 thread_safe_flag_spec_F77 \
16711 whole_archive_flag_spec_F77 \
16712 enable_shared_with_static_runtimes_F77 \
16713 old_archive_cmds_F77 \
16714 old_archive_from_new_cmds_F77 \
16715 predep_objects_F77 \
16716 postdep_objects_F77 \
16717 predeps_F77 \
16718 postdeps_F77 \
16719 compiler_lib_search_path_F77 \
16720 archive_cmds_F77 \
16721 archive_expsym_cmds_F77 \
16722 postinstall_cmds_F77 \
16723 postuninstall_cmds_F77 \
16724 old_archive_from_expsyms_cmds_F77 \
16725 allow_undefined_flag_F77 \
16726 no_undefined_flag_F77 \
16727 export_symbols_cmds_F77 \
16728 hardcode_libdir_flag_spec_F77 \
16729 hardcode_libdir_flag_spec_ld_F77 \
16730 hardcode_libdir_separator_F77 \
16731 hardcode_automatic_F77 \
16732 module_cmds_F77 \
16733 module_expsym_cmds_F77 \
16734 lt_cv_prog_compiler_c_o_F77 \
16735 exclude_expsyms_F77 \
16736 include_expsyms_F77; do
16737
16738 case $var in
16739 old_archive_cmds_F77 | \
16740 old_archive_from_new_cmds_F77 | \
16741 archive_cmds_F77 | \
16742 archive_expsym_cmds_F77 | \
16743 module_cmds_F77 | \
16744 module_expsym_cmds_F77 | \
16745 old_archive_from_expsyms_cmds_F77 | \
16746 export_symbols_cmds_F77 | \
16747 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16748 postinstall_cmds | postuninstall_cmds | \
16749 old_postinstall_cmds | old_postuninstall_cmds | \
16750 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16751 # Double-quote double-evaled strings.
16752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16753 ;;
16754 *)
16755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16756 ;;
16757 esac
16758 done
16759
16760 case $lt_echo in
16761 *'\$0 --fallback-echo"')
16762 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16763 ;;
16764 esac
16765
16766 cfgfile="$ofile"
16767
16768 cat <<__EOF__ >> "$cfgfile"
16769 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16770
16771 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16772
16773 # Shell to use when invoking shell scripts.
16774 SHELL=$lt_SHELL
16775
16776 # Whether or not to build shared libraries.
16777 build_libtool_libs=$enable_shared
16778
16779 # Whether or not to build static libraries.
16780 build_old_libs=$enable_static
16781
16782 # Whether or not to add -lc for building shared libraries.
16783 build_libtool_need_lc=$archive_cmds_need_lc_F77
16784
16785 # Whether or not to disallow shared libs when runtime libs are static
16786 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16787
16788 # Whether or not to optimize for fast installation.
16789 fast_install=$enable_fast_install
16790
16791 # The host system.
16792 host_alias=$host_alias
16793 host=$host
16794 host_os=$host_os
16795
16796 # The build system.
16797 build_alias=$build_alias
16798 build=$build
16799 build_os=$build_os
16800
16801 # An echo program that does not interpret backslashes.
16802 echo=$lt_echo
16803
16804 # The archiver.
16805 AR=$lt_AR
16806 AR_FLAGS=$lt_AR_FLAGS
16807
16808 # A C compiler.
16809 LTCC=$lt_LTCC
16810
16811 # LTCC compiler flags.
16812 LTCFLAGS=$lt_LTCFLAGS
16813
16814 # A language-specific compiler.
16815 CC=$lt_compiler_F77
16816
16817 # Is the compiler the GNU C compiler?
16818 with_gcc=$GCC_F77
16819
16820 # An ERE matcher.
16821 EGREP=$lt_EGREP
16822
16823 # The linker used to build libraries.
16824 LD=$lt_LD_F77
16825
16826 # Whether we need hard or soft links.
16827 LN_S=$lt_LN_S
16828
16829 # A BSD-compatible nm program.
16830 NM=$lt_NM
16831
16832 # A symbol stripping program
16833 STRIP=$lt_STRIP
16834
16835 # Used to examine libraries when file_magic_cmd begins "file"
16836 MAGIC_CMD=$MAGIC_CMD
16837
16838 # Used on cygwin: DLL creation program.
16839 DLLTOOL="$DLLTOOL"
16840
16841 # Used on cygwin: object dumper.
16842 OBJDUMP="$OBJDUMP"
16843
16844 # Used on cygwin: assembler.
16845 AS="$AS"
16846
16847 # The name of the directory that contains temporary libtool files.
16848 objdir=$objdir
16849
16850 # How to create reloadable object files.
16851 reload_flag=$lt_reload_flag
16852 reload_cmds=$lt_reload_cmds
16853
16854 # How to pass a linker flag through the compiler.
16855 wl=$lt_lt_prog_compiler_wl_F77
16856
16857 # Object file suffix (normally "o").
16858 objext="$ac_objext"
16859
16860 # Old archive suffix (normally "a").
16861 libext="$libext"
16862
16863 # Shared library suffix (normally ".so").
16864 shrext_cmds='$shrext_cmds'
16865
16866 # Executable file suffix (normally "").
16867 exeext="$exeext"
16868
16869 # Additional compiler flags for building library objects.
16870 pic_flag=$lt_lt_prog_compiler_pic_F77
16871 pic_mode=$pic_mode
16872
16873 # What is the maximum length of a command?
16874 max_cmd_len=$lt_cv_sys_max_cmd_len
16875
16876 # Does compiler simultaneously support -c and -o options?
16877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16878
16879 # Must we lock files when doing compilation?
16880 need_locks=$lt_need_locks
16881
16882 # Do we need the lib prefix for modules?
16883 need_lib_prefix=$need_lib_prefix
16884
16885 # Do we need a version for libraries?
16886 need_version=$need_version
16887
16888 # Whether dlopen is supported.
16889 dlopen_support=$enable_dlopen
16890
16891 # Whether dlopen of programs is supported.
16892 dlopen_self=$enable_dlopen_self
16893
16894 # Whether dlopen of statically linked programs is supported.
16895 dlopen_self_static=$enable_dlopen_self_static
16896
16897 # Compiler flag to prevent dynamic linking.
16898 link_static_flag=$lt_lt_prog_compiler_static_F77
16899
16900 # Compiler flag to turn off builtin functions.
16901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16902
16903 # Compiler flag to allow reflexive dlopens.
16904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16905
16906 # Compiler flag to generate shared objects directly from archives.
16907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16908
16909 # Compiler flag to generate thread-safe objects.
16910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16911
16912 # Library versioning type.
16913 version_type=$version_type
16914
16915 # Format of library name prefix.
16916 libname_spec=$lt_libname_spec
16917
16918 # List of archive names. First name is the real one, the rest are links.
16919 # The last name is the one that the linker finds with -lNAME.
16920 library_names_spec=$lt_library_names_spec
16921
16922 # The coded name of the library, if different from the real name.
16923 soname_spec=$lt_soname_spec
16924
16925 # Commands used to build and install an old-style archive.
16926 RANLIB=$lt_RANLIB
16927 old_archive_cmds=$lt_old_archive_cmds_F77
16928 old_postinstall_cmds=$lt_old_postinstall_cmds
16929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16930
16931 # Create an old-style archive from a shared archive.
16932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16933
16934 # Create a temporary old-style archive to link instead of a shared archive.
16935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16936
16937 # Commands used to build and install a shared archive.
16938 archive_cmds=$lt_archive_cmds_F77
16939 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16940 postinstall_cmds=$lt_postinstall_cmds
16941 postuninstall_cmds=$lt_postuninstall_cmds
16942
16943 # Commands used to build a loadable module (assumed same as above if empty)
16944 module_cmds=$lt_module_cmds_F77
16945 module_expsym_cmds=$lt_module_expsym_cmds_F77
16946
16947 # Commands to strip libraries.
16948 old_striplib=$lt_old_striplib
16949 striplib=$lt_striplib
16950
16951 # Dependencies to place before the objects being linked to create a
16952 # shared library.
16953 predep_objects=$lt_predep_objects_F77
16954
16955 # Dependencies to place after the objects being linked to create a
16956 # shared library.
16957 postdep_objects=$lt_postdep_objects_F77
16958
16959 # Dependencies to place before the objects being linked to create a
16960 # shared library.
16961 predeps=$lt_predeps_F77
16962
16963 # Dependencies to place after the objects being linked to create a
16964 # shared library.
16965 postdeps=$lt_postdeps_F77
16966
16967 # The library search path used internally by the compiler when linking
16968 # a shared library.
16969 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16970
16971 # Method to check whether dependent libraries are shared objects.
16972 deplibs_check_method=$lt_deplibs_check_method
16973
16974 # Command to use when deplibs_check_method == file_magic.
16975 file_magic_cmd=$lt_file_magic_cmd
16976
16977 # Flag that allows shared libraries with undefined symbols to be built.
16978 allow_undefined_flag=$lt_allow_undefined_flag_F77
16979
16980 # Flag that forces no undefined symbols.
16981 no_undefined_flag=$lt_no_undefined_flag_F77
16982
16983 # Commands used to finish a libtool library installation in a directory.
16984 finish_cmds=$lt_finish_cmds
16985
16986 # Same as above, but a single script fragment to be evaled but not shown.
16987 finish_eval=$lt_finish_eval
16988
16989 # Take the output of nm and produce a listing of raw symbols and C names.
16990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16991
16992 # Transform the output of nm in a proper C declaration
16993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16994
16995 # Transform the output of nm in a C name address pair
16996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16997
16998 # This is the shared library runtime path variable.
16999 runpath_var=$runpath_var
17000
17001 # This is the shared library path variable.
17002 shlibpath_var=$shlibpath_var
17003
17004 # Is shlibpath searched before the hard-coded library search path?
17005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17006
17007 # How to hardcode a shared library path into an executable.
17008 hardcode_action=$hardcode_action_F77
17009
17010 # Whether we should hardcode library paths into libraries.
17011 hardcode_into_libs=$hardcode_into_libs
17012
17013 # Flag to hardcode \$libdir into a binary during linking.
17014 # This must work even if \$libdir does not exist.
17015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17016
17017 # If ld is used when linking, flag to hardcode \$libdir into
17018 # a binary during linking. This must work even if \$libdir does
17019 # not exist.
17020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17021
17022 # Whether we need a single -rpath flag with a separated argument.
17023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17024
17025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17026 # resulting binary.
17027 hardcode_direct=$hardcode_direct_F77
17028
17029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17030 # resulting binary.
17031 hardcode_minus_L=$hardcode_minus_L_F77
17032
17033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17034 # the resulting binary.
17035 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17036
17037 # Set to yes if building a shared library automatically hardcodes DIR into the library
17038 # and all subsequent libraries and executables linked against it.
17039 hardcode_automatic=$hardcode_automatic_F77
17040
17041 # Variables whose values should be saved in libtool wrapper scripts and
17042 # restored at relink time.
17043 variables_saved_for_relink="$variables_saved_for_relink"
17044
17045 # Whether libtool must link a program against all its dependency libraries.
17046 link_all_deplibs=$link_all_deplibs_F77
17047
17048 # Compile-time system search path for libraries
17049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17050
17051 # Run-time system search path for libraries
17052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17053
17054 # Fix the shell variable \$srcfile for the compiler.
17055 fix_srcfile_path="$fix_srcfile_path_F77"
17056
17057 # Set to yes if exported symbols are required.
17058 always_export_symbols=$always_export_symbols_F77
17059
17060 # The commands to list exported symbols.
17061 export_symbols_cmds=$lt_export_symbols_cmds_F77
17062
17063 # The commands to extract the exported symbol list from a shared archive.
17064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17065
17066 # Symbols that should not be listed in the preloaded symbols.
17067 exclude_expsyms=$lt_exclude_expsyms_F77
17068
17069 # Symbols that must always be exported.
17070 include_expsyms=$lt_include_expsyms_F77
17071
17072 # ### END LIBTOOL TAG CONFIG: $tagname
17073
17074 __EOF__
17075
17076
17077 else
17078 # If there is no Makefile yet, we rely on a make rule to execute
17079 # `config.status --recheck' to rerun these tests and create the
17080 # libtool script then.
17081 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17082 if test -f "$ltmain_in"; then
17083 test -f Makefile && make "$ltmain"
17084 fi
17085 fi
17086
17087
17088 ac_ext=c
17089 ac_cpp='$CPP $CPPFLAGS'
17090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17093
17094 CC="$lt_save_CC"
17095
17096 else
17097 tagname=""
17098 fi
17099 ;;
17100
17101 GCJ)
17102 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17103
17104
17105
17106 # Source file extension for Java test sources.
17107 ac_ext=java
17108
17109 # Object file extension for compiled Java test sources.
17110 objext=o
17111 objext_GCJ=$objext
17112
17113 # Code to be used in simple compile tests
17114 lt_simple_compile_test_code="class foo {}\n"
17115
17116 # Code to be used in simple link tests
17117 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17118
17119 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17120
17121 # If no C compiler was specified, use CC.
17122 LTCC=${LTCC-"$CC"}
17123
17124 # If no C compiler flags were specified, use CFLAGS.
17125 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17126
17127 # Allow CC to be a program name with arguments.
17128 compiler=$CC
17129
17130
17131 # save warnings/boilerplate of simple test code
17132 ac_outfile=conftest.$ac_objext
17133 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17134 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17135 _lt_compiler_boilerplate=`cat conftest.err`
17136 $rm conftest*
17137
17138 ac_outfile=conftest.$ac_objext
17139 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17140 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17141 _lt_linker_boilerplate=`cat conftest.err`
17142 $rm conftest*
17143
17144
17145 # Allow CC to be a program name with arguments.
17146 lt_save_CC="$CC"
17147 CC=${GCJ-"gcj"}
17148 compiler=$CC
17149 compiler_GCJ=$CC
17150 for cc_temp in $compiler""; do
17151 case $cc_temp in
17152 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17153 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17154 \-*) ;;
17155 *) break;;
17156 esac
17157 done
17158 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17159
17160
17161 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17162 archive_cmds_need_lc_GCJ=no
17163
17164 old_archive_cmds_GCJ=$old_archive_cmds
17165
17166 ## CAVEAT EMPTOR:
17167 ## There is no encapsulation within the following macros, do not change
17168 ## the running order or otherwise move them around unless you know exactly
17169 ## what you are doing...
17170
17171 lt_prog_compiler_no_builtin_flag_GCJ=
17172
17173 if test "$GCC" = yes; then
17174 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17175
17176
17177 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17178 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17179 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 else
17182 lt_cv_prog_compiler_rtti_exceptions=no
17183 ac_outfile=conftest.$ac_objext
17184 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17185 lt_compiler_flag="-fno-rtti -fno-exceptions"
17186 # Insert the option either (1) after the last *FLAGS variable, or
17187 # (2) before a word containing "conftest.", or (3) at the end.
17188 # Note that $ac_compile itself does not contain backslashes and begins
17189 # with a dollar sign (not a hyphen), so the echo should work correctly.
17190 # The option is referenced via a variable to avoid confusing sed.
17191 lt_compile=`echo "$ac_compile" | $SED \
17192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17194 -e 's:$: $lt_compiler_flag:'`
17195 (eval echo "\"\$as_me:17195: $lt_compile\"" >&5)
17196 (eval "$lt_compile" 2>conftest.err)
17197 ac_status=$?
17198 cat conftest.err >&5
17199 echo "$as_me:17199: \$? = $ac_status" >&5
17200 if (exit $ac_status) && test -s "$ac_outfile"; then
17201 # The compiler can only warn and ignore the option if not recognized
17202 # So say no if there are warnings other than the usual output.
17203 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17205 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17206 lt_cv_prog_compiler_rtti_exceptions=yes
17207 fi
17208 fi
17209 $rm conftest*
17210
17211 fi
17212 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17213 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17214
17215 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17216 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17217 else
17218 :
17219 fi
17220
17221 fi
17222
17223 lt_prog_compiler_wl_GCJ=
17224 lt_prog_compiler_pic_GCJ=
17225 lt_prog_compiler_static_GCJ=
17226
17227 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17228 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17229
17230 if test "$GCC" = yes; then
17231 lt_prog_compiler_wl_GCJ='-Wl,'
17232 lt_prog_compiler_static_GCJ='-static'
17233
17234 case $host_os in
17235 aix*)
17236 # All AIX code is PIC.
17237 if test "$host_cpu" = ia64; then
17238 # AIX 5 now supports IA64 processor
17239 lt_prog_compiler_static_GCJ='-Bstatic'
17240 fi
17241 ;;
17242
17243 amigaos*)
17244 # FIXME: we need at least 68020 code to build shared libraries, but
17245 # adding the `-m68020' flag to GCC prevents building anything better,
17246 # like `-m68040'.
17247 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17248 ;;
17249
17250 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17251 # PIC is the default for these OSes.
17252 ;;
17253
17254 mingw* | pw32* | os2*)
17255 # This hack is so that the source file can tell whether it is being
17256 # built for inclusion in a dll (and should export symbols for example).
17257 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17258 ;;
17259
17260 darwin* | rhapsody*)
17261 # PIC is the default on this platform
17262 # Common symbols not allowed in MH_DYLIB files
17263 lt_prog_compiler_pic_GCJ='-fno-common'
17264 ;;
17265
17266 interix3*)
17267 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17268 # Instead, we relocate shared libraries at runtime.
17269 ;;
17270
17271 msdosdjgpp*)
17272 # Just because we use GCC doesn't mean we suddenly get shared libraries
17273 # on systems that don't support them.
17274 lt_prog_compiler_can_build_shared_GCJ=no
17275 enable_shared=no
17276 ;;
17277
17278 sysv4*MP*)
17279 if test -d /usr/nec; then
17280 lt_prog_compiler_pic_GCJ=-Kconform_pic
17281 fi
17282 ;;
17283
17284 hpux*)
17285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17286 # not for PA HP-UX.
17287 case $host_cpu in
17288 hppa*64*|ia64*)
17289 # +Z the default
17290 ;;
17291 *)
17292 lt_prog_compiler_pic_GCJ='-fPIC'
17293 ;;
17294 esac
17295 ;;
17296
17297 *)
17298 lt_prog_compiler_pic_GCJ='-fPIC'
17299 ;;
17300 esac
17301 else
17302 # PORTME Check for flag to pass linker flags through the system compiler.
17303 case $host_os in
17304 aix*)
17305 lt_prog_compiler_wl_GCJ='-Wl,'
17306 if test "$host_cpu" = ia64; then
17307 # AIX 5 now supports IA64 processor
17308 lt_prog_compiler_static_GCJ='-Bstatic'
17309 else
17310 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17311 fi
17312 ;;
17313 darwin*)
17314 # PIC is the default on this platform
17315 # Common symbols not allowed in MH_DYLIB files
17316 case $cc_basename in
17317 xlc*)
17318 lt_prog_compiler_pic_GCJ='-qnocommon'
17319 lt_prog_compiler_wl_GCJ='-Wl,'
17320 ;;
17321 esac
17322 ;;
17323
17324 mingw* | pw32* | os2*)
17325 # This hack is so that the source file can tell whether it is being
17326 # built for inclusion in a dll (and should export symbols for example).
17327 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17328 ;;
17329
17330 hpux9* | hpux10* | hpux11*)
17331 lt_prog_compiler_wl_GCJ='-Wl,'
17332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17333 # not for PA HP-UX.
17334 case $host_cpu in
17335 hppa*64*|ia64*)
17336 # +Z the default
17337 ;;
17338 *)
17339 lt_prog_compiler_pic_GCJ='+Z'
17340 ;;
17341 esac
17342 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17343 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17344 ;;
17345
17346 irix5* | irix6* | nonstopux*)
17347 lt_prog_compiler_wl_GCJ='-Wl,'
17348 # PIC (with -KPIC) is the default.
17349 lt_prog_compiler_static_GCJ='-non_shared'
17350 ;;
17351
17352 newsos6)
17353 lt_prog_compiler_pic_GCJ='-KPIC'
17354 lt_prog_compiler_static_GCJ='-Bstatic'
17355 ;;
17356
17357 linux*)
17358 case $cc_basename in
17359 icc* | ecc*)
17360 lt_prog_compiler_wl_GCJ='-Wl,'
17361 lt_prog_compiler_pic_GCJ='-KPIC'
17362 lt_prog_compiler_static_GCJ='-static'
17363 ;;
17364 pgcc* | pgf77* | pgf90* | pgf95*)
17365 # Portland Group compilers (*not* the Pentium gcc compiler,
17366 # which looks to be a dead project)
17367 lt_prog_compiler_wl_GCJ='-Wl,'
17368 lt_prog_compiler_pic_GCJ='-fpic'
17369 lt_prog_compiler_static_GCJ='-Bstatic'
17370 ;;
17371 ccc*)
17372 lt_prog_compiler_wl_GCJ='-Wl,'
17373 # All Alpha code is PIC.
17374 lt_prog_compiler_static_GCJ='-non_shared'
17375 ;;
17376 esac
17377 ;;
17378
17379 osf3* | osf4* | osf5*)
17380 lt_prog_compiler_wl_GCJ='-Wl,'
17381 # All OSF/1 code is PIC.
17382 lt_prog_compiler_static_GCJ='-non_shared'
17383 ;;
17384
17385 solaris*)
17386 lt_prog_compiler_pic_GCJ='-KPIC'
17387 lt_prog_compiler_static_GCJ='-Bstatic'
17388 case $cc_basename in
17389 f77* | f90* | f95*)
17390 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17391 *)
17392 lt_prog_compiler_wl_GCJ='-Wl,';;
17393 esac
17394 ;;
17395
17396 sunos4*)
17397 lt_prog_compiler_wl_GCJ='-Qoption ld '
17398 lt_prog_compiler_pic_GCJ='-PIC'
17399 lt_prog_compiler_static_GCJ='-Bstatic'
17400 ;;
17401
17402 sysv4 | sysv4.2uw2* | sysv4.3*)
17403 lt_prog_compiler_wl_GCJ='-Wl,'
17404 lt_prog_compiler_pic_GCJ='-KPIC'
17405 lt_prog_compiler_static_GCJ='-Bstatic'
17406 ;;
17407
17408 sysv4*MP*)
17409 if test -d /usr/nec ;then
17410 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17411 lt_prog_compiler_static_GCJ='-Bstatic'
17412 fi
17413 ;;
17414
17415 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17416 lt_prog_compiler_wl_GCJ='-Wl,'
17417 lt_prog_compiler_pic_GCJ='-KPIC'
17418 lt_prog_compiler_static_GCJ='-Bstatic'
17419 ;;
17420
17421 unicos*)
17422 lt_prog_compiler_wl_GCJ='-Wl,'
17423 lt_prog_compiler_can_build_shared_GCJ=no
17424 ;;
17425
17426 uts4*)
17427 lt_prog_compiler_pic_GCJ='-pic'
17428 lt_prog_compiler_static_GCJ='-Bstatic'
17429 ;;
17430
17431 *)
17432 lt_prog_compiler_can_build_shared_GCJ=no
17433 ;;
17434 esac
17435 fi
17436
17437 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17438 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17439
17440 #
17441 # Check to make sure the PIC flag actually works.
17442 #
17443 if test -n "$lt_prog_compiler_pic_GCJ"; then
17444
17445 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17446 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17447 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17448 echo $ECHO_N "(cached) $ECHO_C" >&6
17449 else
17450 lt_prog_compiler_pic_works_GCJ=no
17451 ac_outfile=conftest.$ac_objext
17452 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17453 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17454 # Insert the option either (1) after the last *FLAGS variable, or
17455 # (2) before a word containing "conftest.", or (3) at the end.
17456 # Note that $ac_compile itself does not contain backslashes and begins
17457 # with a dollar sign (not a hyphen), so the echo should work correctly.
17458 # The option is referenced via a variable to avoid confusing sed.
17459 lt_compile=`echo "$ac_compile" | $SED \
17460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17462 -e 's:$: $lt_compiler_flag:'`
17463 (eval echo "\"\$as_me:17463: $lt_compile\"" >&5)
17464 (eval "$lt_compile" 2>conftest.err)
17465 ac_status=$?
17466 cat conftest.err >&5
17467 echo "$as_me:17467: \$? = $ac_status" >&5
17468 if (exit $ac_status) && test -s "$ac_outfile"; then
17469 # The compiler can only warn and ignore the option if not recognized
17470 # So say no if there are warnings other than the usual output.
17471 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17474 lt_prog_compiler_pic_works_GCJ=yes
17475 fi
17476 fi
17477 $rm conftest*
17478
17479 fi
17480 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17481 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17482
17483 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17484 case $lt_prog_compiler_pic_GCJ in
17485 "" | " "*) ;;
17486 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17487 esac
17488 else
17489 lt_prog_compiler_pic_GCJ=
17490 lt_prog_compiler_can_build_shared_GCJ=no
17491 fi
17492
17493 fi
17494 case $host_os in
17495 # For platforms which do not support PIC, -DPIC is meaningless:
17496 *djgpp*)
17497 lt_prog_compiler_pic_GCJ=
17498 ;;
17499 *)
17500 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17501 ;;
17502 esac
17503
17504 #
17505 # Check to make sure the static flag actually works.
17506 #
17507 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17508 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17509 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17510 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17512 else
17513 lt_prog_compiler_static_works_GCJ=no
17514 save_LDFLAGS="$LDFLAGS"
17515 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17516 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17517 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17518 # The linker can only warn and ignore the option if not recognized
17519 # So say no if there are warnings
17520 if test -s conftest.err; then
17521 # Append any errors to the config.log.
17522 cat conftest.err 1>&5
17523 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17525 if diff conftest.exp conftest.er2 >/dev/null; then
17526 lt_prog_compiler_static_works_GCJ=yes
17527 fi
17528 else
17529 lt_prog_compiler_static_works_GCJ=yes
17530 fi
17531 fi
17532 $rm conftest*
17533 LDFLAGS="$save_LDFLAGS"
17534
17535 fi
17536 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17537 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17538
17539 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17540 :
17541 else
17542 lt_prog_compiler_static_GCJ=
17543 fi
17544
17545
17546 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17547 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17548 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17549 echo $ECHO_N "(cached) $ECHO_C" >&6
17550 else
17551 lt_cv_prog_compiler_c_o_GCJ=no
17552 $rm -r conftest 2>/dev/null
17553 mkdir conftest
17554 cd conftest
17555 mkdir out
17556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17557
17558 lt_compiler_flag="-o out/conftest2.$ac_objext"
17559 # Insert the option either (1) after the last *FLAGS variable, or
17560 # (2) before a word containing "conftest.", or (3) at the end.
17561 # Note that $ac_compile itself does not contain backslashes and begins
17562 # with a dollar sign (not a hyphen), so the echo should work correctly.
17563 lt_compile=`echo "$ac_compile" | $SED \
17564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17566 -e 's:$: $lt_compiler_flag:'`
17567 (eval echo "\"\$as_me:17567: $lt_compile\"" >&5)
17568 (eval "$lt_compile" 2>out/conftest.err)
17569 ac_status=$?
17570 cat out/conftest.err >&5
17571 echo "$as_me:17571: \$? = $ac_status" >&5
17572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17573 then
17574 # The compiler can only warn and ignore the option if not recognized
17575 # So say no if there are warnings
17576 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17579 lt_cv_prog_compiler_c_o_GCJ=yes
17580 fi
17581 fi
17582 chmod u+w . 2>&5
17583 $rm conftest*
17584 # SGI C++ compiler will create directory out/ii_files/ for
17585 # template instantiation
17586 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17587 $rm out/* && rmdir out
17588 cd ..
17589 rmdir conftest
17590 $rm conftest*
17591
17592 fi
17593 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17594 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17595
17596
17597 hard_links="nottested"
17598 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17599 # do not overwrite the value of need_locks provided by the user
17600 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17601 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17602 hard_links=yes
17603 $rm conftest*
17604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17605 touch conftest.a
17606 ln conftest.a conftest.b 2>&5 || hard_links=no
17607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17608 echo "$as_me:$LINENO: result: $hard_links" >&5
17609 echo "${ECHO_T}$hard_links" >&6
17610 if test "$hard_links" = no; then
17611 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17612 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17613 need_locks=warn
17614 fi
17615 else
17616 need_locks=no
17617 fi
17618
17619 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17620 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17621
17622 runpath_var=
17623 allow_undefined_flag_GCJ=
17624 enable_shared_with_static_runtimes_GCJ=no
17625 archive_cmds_GCJ=
17626 archive_expsym_cmds_GCJ=
17627 old_archive_From_new_cmds_GCJ=
17628 old_archive_from_expsyms_cmds_GCJ=
17629 export_dynamic_flag_spec_GCJ=
17630 whole_archive_flag_spec_GCJ=
17631 thread_safe_flag_spec_GCJ=
17632 hardcode_libdir_flag_spec_GCJ=
17633 hardcode_libdir_flag_spec_ld_GCJ=
17634 hardcode_libdir_separator_GCJ=
17635 hardcode_direct_GCJ=no
17636 hardcode_minus_L_GCJ=no
17637 hardcode_shlibpath_var_GCJ=unsupported
17638 link_all_deplibs_GCJ=unknown
17639 hardcode_automatic_GCJ=no
17640 module_cmds_GCJ=
17641 module_expsym_cmds_GCJ=
17642 always_export_symbols_GCJ=no
17643 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17644 # include_expsyms should be a list of space-separated symbols to be *always*
17645 # included in the symbol list
17646 include_expsyms_GCJ=
17647 # exclude_expsyms can be an extended regexp of symbols to exclude
17648 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17649 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17650 # as well as any symbol that contains `d'.
17651 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17652 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17653 # platforms (ab)use it in PIC code, but their linkers get confused if
17654 # the symbol is explicitly referenced. Since portable code cannot
17655 # rely on this symbol name, it's probably fine to never include it in
17656 # preloaded symbol tables.
17657 extract_expsyms_cmds=
17658 # Just being paranoid about ensuring that cc_basename is set.
17659 for cc_temp in $compiler""; do
17660 case $cc_temp in
17661 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17662 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17663 \-*) ;;
17664 *) break;;
17665 esac
17666 done
17667 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17668
17669 case $host_os in
17670 cygwin* | mingw* | pw32*)
17671 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17672 # When not using gcc, we currently assume that we are using
17673 # Microsoft Visual C++.
17674 if test "$GCC" != yes; then
17675 with_gnu_ld=no
17676 fi
17677 ;;
17678 interix*)
17679 # we just hope/assume this is gcc and not c89 (= MSVC++)
17680 with_gnu_ld=yes
17681 ;;
17682 openbsd*)
17683 with_gnu_ld=no
17684 ;;
17685 esac
17686
17687 ld_shlibs_GCJ=yes
17688 if test "$with_gnu_ld" = yes; then
17689 # If archive_cmds runs LD, not CC, wlarc should be empty
17690 wlarc='${wl}'
17691
17692 # Set some defaults for GNU ld with shared library support. These
17693 # are reset later if shared libraries are not supported. Putting them
17694 # here allows them to be overridden if necessary.
17695 runpath_var=LD_RUN_PATH
17696 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17697 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17698 # ancient GNU ld didn't support --whole-archive et. al.
17699 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17700 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17701 else
17702 whole_archive_flag_spec_GCJ=
17703 fi
17704 supports_anon_versioning=no
17705 case `$LD -v 2>/dev/null` in
17706 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17707 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17708 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17709 *\ 2.11.*) ;; # other 2.11 versions
17710 *) supports_anon_versioning=yes ;;
17711 esac
17712
17713 # See if GNU ld supports shared libraries.
17714 case $host_os in
17715 aix3* | aix4* | aix5*)
17716 # On AIX/PPC, the GNU linker is very broken
17717 if test "$host_cpu" != ia64; then
17718 ld_shlibs_GCJ=no
17719 cat <<EOF 1>&2
17720
17721 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17722 *** to be unable to reliably create shared libraries on AIX.
17723 *** Therefore, libtool is disabling shared libraries support. If you
17724 *** really care for shared libraries, you may want to modify your PATH
17725 *** so that a non-GNU linker is found, and then restart.
17726
17727 EOF
17728 fi
17729 ;;
17730
17731 amigaos*)
17732 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)'
17733 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17734 hardcode_minus_L_GCJ=yes
17735
17736 # Samuel A. Falvo II <[email protected]> reports
17737 # that the semantics of dynamic libraries on AmigaOS, at least up
17738 # to version 4, is to share data among multiple programs linked
17739 # with the same dynamic library. Since this doesn't match the
17740 # behavior of shared libraries on other platforms, we can't use
17741 # them.
17742 ld_shlibs_GCJ=no
17743 ;;
17744
17745 beos*)
17746 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17747 allow_undefined_flag_GCJ=unsupported
17748 # Joseph Beckenbach <[email protected]> says some releases of gcc
17749 # support --undefined. This deserves some investigation. FIXME
17750 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17751 else
17752 ld_shlibs_GCJ=no
17753 fi
17754 ;;
17755
17756 cygwin* | mingw* | pw32*)
17757 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17758 # as there is no search path for DLLs.
17759 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17760 allow_undefined_flag_GCJ=unsupported
17761 always_export_symbols_GCJ=no
17762 enable_shared_with_static_runtimes_GCJ=yes
17763 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17764
17765 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17766 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17767 # If the export-symbols file already is a .def file (1st line
17768 # is EXPORTS), use it as is; otherwise, prepend...
17769 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17770 cp $export_symbols $output_objdir/$soname.def;
17771 else
17772 echo EXPORTS > $output_objdir/$soname.def;
17773 cat $export_symbols >> $output_objdir/$soname.def;
17774 fi~
17775 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17776 else
17777 ld_shlibs_GCJ=no
17778 fi
17779 ;;
17780
17781 interix3*)
17782 hardcode_direct_GCJ=no
17783 hardcode_shlibpath_var_GCJ=no
17784 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17785 export_dynamic_flag_spec_GCJ='${wl}-E'
17786 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17787 # Instead, shared libraries are loaded at an image base (0x10000000 by
17788 # default) and relocated if they conflict, which is a slow very memory
17789 # consuming and fragmenting process. To avoid this, we pick a random,
17790 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17791 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17792 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'
17793 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'
17794 ;;
17795
17796 linux*)
17797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17798 tmp_addflag=
17799 case $cc_basename,$host_cpu in
17800 pgcc*) # Portland Group C compiler
17801 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'
17802 tmp_addflag=' $pic_flag'
17803 ;;
17804 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17805 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'
17806 tmp_addflag=' $pic_flag -Mnomain' ;;
17807 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17808 tmp_addflag=' -i_dynamic' ;;
17809 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17810 tmp_addflag=' -i_dynamic -nofor_main' ;;
17811 ifc* | ifort*) # Intel Fortran compiler
17812 tmp_addflag=' -nofor_main' ;;
17813 esac
17814 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17815
17816 if test $supports_anon_versioning = yes; then
17817 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17819 $echo "local: *; };" >> $output_objdir/$libname.ver~
17820 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17821 fi
17822 else
17823 ld_shlibs_GCJ=no
17824 fi
17825 ;;
17826
17827 netbsd*)
17828 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17829 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17830 wlarc=
17831 else
17832 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17833 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17834 fi
17835 ;;
17836
17837 solaris*)
17838 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17839 ld_shlibs_GCJ=no
17840 cat <<EOF 1>&2
17841
17842 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17843 *** create shared libraries on Solaris systems. Therefore, libtool
17844 *** is disabling shared libraries support. We urge you to upgrade GNU
17845 *** binutils to release 2.9.1 or newer. Another option is to modify
17846 *** your PATH or compiler configuration so that the native linker is
17847 *** used, and then restart.
17848
17849 EOF
17850 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17851 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17852 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17853 else
17854 ld_shlibs_GCJ=no
17855 fi
17856 ;;
17857
17858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17859 case `$LD -v 2>&1` in
17860 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17861 ld_shlibs_GCJ=no
17862 cat <<_LT_EOF 1>&2
17863
17864 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17865 *** reliably create shared libraries on SCO systems. Therefore, libtool
17866 *** is disabling shared libraries support. We urge you to upgrade GNU
17867 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17868 *** your PATH or compiler configuration so that the native linker is
17869 *** used, and then restart.
17870
17871 _LT_EOF
17872 ;;
17873 *)
17874 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17875 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17876 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17877 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17878 else
17879 ld_shlibs_GCJ=no
17880 fi
17881 ;;
17882 esac
17883 ;;
17884
17885 sunos4*)
17886 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17887 wlarc=
17888 hardcode_direct_GCJ=yes
17889 hardcode_shlibpath_var_GCJ=no
17890 ;;
17891
17892 *)
17893 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17894 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17895 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17896 else
17897 ld_shlibs_GCJ=no
17898 fi
17899 ;;
17900 esac
17901
17902 if test "$ld_shlibs_GCJ" = no; then
17903 runpath_var=
17904 hardcode_libdir_flag_spec_GCJ=
17905 export_dynamic_flag_spec_GCJ=
17906 whole_archive_flag_spec_GCJ=
17907 fi
17908 else
17909 # PORTME fill in a description of your system's linker (not GNU ld)
17910 case $host_os in
17911 aix3*)
17912 allow_undefined_flag_GCJ=unsupported
17913 always_export_symbols_GCJ=yes
17914 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'
17915 # Note: this linker hardcodes the directories in LIBPATH if there
17916 # are no directories specified by -L.
17917 hardcode_minus_L_GCJ=yes
17918 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17919 # Neither direct hardcoding nor static linking is supported with a
17920 # broken collect2.
17921 hardcode_direct_GCJ=unsupported
17922 fi
17923 ;;
17924
17925 aix4* | aix5*)
17926 if test "$host_cpu" = ia64; then
17927 # On IA64, the linker does run time linking by default, so we don't
17928 # have to do anything special.
17929 aix_use_runtimelinking=no
17930 exp_sym_flag='-Bexport'
17931 no_entry_flag=""
17932 else
17933 # If we're using GNU nm, then we don't want the "-C" option.
17934 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17935 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17936 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'
17937 else
17938 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'
17939 fi
17940 aix_use_runtimelinking=no
17941
17942 # Test if we are trying to use run time linking or normal
17943 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17944 # need to do runtime linking.
17945 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17946 for ld_flag in $LDFLAGS; do
17947 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17948 aix_use_runtimelinking=yes
17949 break
17950 fi
17951 done
17952 ;;
17953 esac
17954
17955 exp_sym_flag='-bexport'
17956 no_entry_flag='-bnoentry'
17957 fi
17958
17959 # When large executables or shared objects are built, AIX ld can
17960 # have problems creating the table of contents. If linking a library
17961 # or program results in "error TOC overflow" add -mminimal-toc to
17962 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17963 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17964
17965 archive_cmds_GCJ=''
17966 hardcode_direct_GCJ=yes
17967 hardcode_libdir_separator_GCJ=':'
17968 link_all_deplibs_GCJ=yes
17969
17970 if test "$GCC" = yes; then
17971 case $host_os in aix4.[012]|aix4.[012].*)
17972 # We only want to do this on AIX 4.2 and lower, the check
17973 # below for broken collect2 doesn't work under 4.3+
17974 collect2name=`${CC} -print-prog-name=collect2`
17975 if test -f "$collect2name" && \
17976 strings "$collect2name" | grep resolve_lib_name >/dev/null
17977 then
17978 # We have reworked collect2
17979 hardcode_direct_GCJ=yes
17980 else
17981 # We have old collect2
17982 hardcode_direct_GCJ=unsupported
17983 # It fails to find uninstalled libraries when the uninstalled
17984 # path is not listed in the libpath. Setting hardcode_minus_L
17985 # to unsupported forces relinking
17986 hardcode_minus_L_GCJ=yes
17987 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17988 hardcode_libdir_separator_GCJ=
17989 fi
17990 ;;
17991 esac
17992 shared_flag='-shared'
17993 if test "$aix_use_runtimelinking" = yes; then
17994 shared_flag="$shared_flag "'${wl}-G'
17995 fi
17996 else
17997 # not using gcc
17998 if test "$host_cpu" = ia64; then
17999 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18000 # chokes on -Wl,-G. The following line is correct:
18001 shared_flag='-G'
18002 else
18003 if test "$aix_use_runtimelinking" = yes; then
18004 shared_flag='${wl}-G'
18005 else
18006 shared_flag='${wl}-bM:SRE'
18007 fi
18008 fi
18009 fi
18010
18011 # It seems that -bexpall does not export symbols beginning with
18012 # underscore (_), so it is better to generate a list of symbols to export.
18013 always_export_symbols_GCJ=yes
18014 if test "$aix_use_runtimelinking" = yes; then
18015 # Warning - without using the other runtime loading flags (-brtl),
18016 # -berok will link without error, but may produce a broken library.
18017 allow_undefined_flag_GCJ='-berok'
18018 # Determine the default libpath from the value encoded in an empty executable.
18019 cat >conftest.$ac_ext <<_ACEOF
18020 /* confdefs.h. */
18021 _ACEOF
18022 cat confdefs.h >>conftest.$ac_ext
18023 cat >>conftest.$ac_ext <<_ACEOF
18024 /* end confdefs.h. */
18025
18026 int
18027 main ()
18028 {
18029
18030 ;
18031 return 0;
18032 }
18033 _ACEOF
18034 rm -f conftest.$ac_objext conftest$ac_exeext
18035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18036 (eval $ac_link) 2>conftest.er1
18037 ac_status=$?
18038 grep -v '^ *+' conftest.er1 >conftest.err
18039 rm -f conftest.er1
18040 cat conftest.err >&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } &&
18043 { ac_try='test -z "$ac_c_werror_flag"
18044 || test ! -s conftest.err'
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try='test -s conftest$ac_exeext'
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18053 ac_status=$?
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18056
18057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18058 }'`
18059 # Check for a 64-bit object if we didn't find anything.
18060 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; }
18061 }'`; fi
18062 else
18063 echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18065
18066 fi
18067 rm -f conftest.err conftest.$ac_objext \
18068 conftest$ac_exeext conftest.$ac_ext
18069 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18070
18071 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18072 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"
18073 else
18074 if test "$host_cpu" = ia64; then
18075 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18076 allow_undefined_flag_GCJ="-z nodefs"
18077 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"
18078 else
18079 # Determine the default libpath from the value encoded in an empty executable.
18080 cat >conftest.$ac_ext <<_ACEOF
18081 /* confdefs.h. */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086
18087 int
18088 main ()
18089 {
18090
18091 ;
18092 return 0;
18093 }
18094 _ACEOF
18095 rm -f conftest.$ac_objext conftest$ac_exeext
18096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18097 (eval $ac_link) 2>conftest.er1
18098 ac_status=$?
18099 grep -v '^ *+' conftest.er1 >conftest.err
18100 rm -f conftest.er1
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
18104 { ac_try='test -z "$ac_c_werror_flag"
18105 || test ! -s conftest.err'
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest$ac_exeext'
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117
18118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18119 }'`
18120 # Check for a 64-bit object if we didn't find anything.
18121 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; }
18122 }'`; fi
18123 else
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18126
18127 fi
18128 rm -f conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18131
18132 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18133 # Warning - without using the other run time loading flags,
18134 # -berok will link without error, but may produce a broken library.
18135 no_undefined_flag_GCJ=' ${wl}-bernotok'
18136 allow_undefined_flag_GCJ=' ${wl}-berok'
18137 # Exported symbols can be pulled into shared objects from archives
18138 whole_archive_flag_spec_GCJ='$convenience'
18139 archive_cmds_need_lc_GCJ=yes
18140 # This is similar to how AIX traditionally builds its shared libraries.
18141 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'
18142 fi
18143 fi
18144 ;;
18145
18146 amigaos*)
18147 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)'
18148 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18149 hardcode_minus_L_GCJ=yes
18150 # see comment about different semantics on the GNU ld section
18151 ld_shlibs_GCJ=no
18152 ;;
18153
18154 bsdi[45]*)
18155 export_dynamic_flag_spec_GCJ=-rdynamic
18156 ;;
18157
18158 cygwin* | mingw* | pw32*)
18159 # When not using gcc, we currently assume that we are using
18160 # Microsoft Visual C++.
18161 # hardcode_libdir_flag_spec is actually meaningless, as there is
18162 # no search path for DLLs.
18163 hardcode_libdir_flag_spec_GCJ=' '
18164 allow_undefined_flag_GCJ=unsupported
18165 # Tell ltmain to make .lib files, not .a files.
18166 libext=lib
18167 # Tell ltmain to make .dll files, not .so files.
18168 shrext_cmds=".dll"
18169 # FIXME: Setting linknames here is a bad hack.
18170 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18171 # The linker will automatically build a .lib file if we build a DLL.
18172 old_archive_From_new_cmds_GCJ='true'
18173 # FIXME: Should let the user specify the lib program.
18174 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18175 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18176 enable_shared_with_static_runtimes_GCJ=yes
18177 ;;
18178
18179 darwin* | rhapsody*)
18180 case $host_os in
18181 rhapsody* | darwin1.[012])
18182 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18183 ;;
18184 *) # Darwin 1.3 on
18185 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18186 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18187 else
18188 case ${MACOSX_DEPLOYMENT_TARGET} in
18189 10.[012])
18190 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18191 ;;
18192 10.*)
18193 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18194 ;;
18195 esac
18196 fi
18197 ;;
18198 esac
18199 archive_cmds_need_lc_GCJ=no
18200 hardcode_direct_GCJ=no
18201 hardcode_automatic_GCJ=yes
18202 hardcode_shlibpath_var_GCJ=unsupported
18203 whole_archive_flag_spec_GCJ=''
18204 link_all_deplibs_GCJ=yes
18205 if test "$GCC" = yes ; then
18206 output_verbose_link_cmd='echo'
18207 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18208 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18209 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18210 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}'
18211 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}'
18212 else
18213 case $cc_basename in
18214 xlc*)
18215 output_verbose_link_cmd='echo'
18216 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18217 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18218 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18219 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}'
18220 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}'
18221 ;;
18222 *)
18223 ld_shlibs_GCJ=no
18224 ;;
18225 esac
18226 fi
18227 ;;
18228
18229 dgux*)
18230 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18231 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18232 hardcode_shlibpath_var_GCJ=no
18233 ;;
18234
18235 freebsd1*)
18236 ld_shlibs_GCJ=no
18237 ;;
18238
18239 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18240 # support. Future versions do this automatically, but an explicit c++rt0.o
18241 # does not break anything, and helps significantly (at the cost of a little
18242 # extra space).
18243 freebsd2.2*)
18244 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18245 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18246 hardcode_direct_GCJ=yes
18247 hardcode_shlibpath_var_GCJ=no
18248 ;;
18249
18250 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18251 freebsd2*)
18252 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18253 hardcode_direct_GCJ=yes
18254 hardcode_minus_L_GCJ=yes
18255 hardcode_shlibpath_var_GCJ=no
18256 ;;
18257
18258 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18259 freebsd* | kfreebsd*-gnu | dragonfly*)
18260 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18261 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18262 hardcode_direct_GCJ=yes
18263 hardcode_shlibpath_var_GCJ=no
18264 ;;
18265
18266 hpux9*)
18267 if test "$GCC" = yes; then
18268 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'
18269 else
18270 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'
18271 fi
18272 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18273 hardcode_libdir_separator_GCJ=:
18274 hardcode_direct_GCJ=yes
18275
18276 # hardcode_minus_L: Not really in the search PATH,
18277 # but as the default location of the library.
18278 hardcode_minus_L_GCJ=yes
18279 export_dynamic_flag_spec_GCJ='${wl}-E'
18280 ;;
18281
18282 hpux10*)
18283 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18284 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18285 else
18286 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18287 fi
18288 if test "$with_gnu_ld" = no; then
18289 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18290 hardcode_libdir_separator_GCJ=:
18291
18292 hardcode_direct_GCJ=yes
18293 export_dynamic_flag_spec_GCJ='${wl}-E'
18294
18295 # hardcode_minus_L: Not really in the search PATH,
18296 # but as the default location of the library.
18297 hardcode_minus_L_GCJ=yes
18298 fi
18299 ;;
18300
18301 hpux11*)
18302 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18303 case $host_cpu in
18304 hppa*64*)
18305 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18306 ;;
18307 ia64*)
18308 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18309 ;;
18310 *)
18311 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18312 ;;
18313 esac
18314 else
18315 case $host_cpu in
18316 hppa*64*)
18317 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18318 ;;
18319 ia64*)
18320 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18321 ;;
18322 *)
18323 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18324 ;;
18325 esac
18326 fi
18327 if test "$with_gnu_ld" = no; then
18328 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18329 hardcode_libdir_separator_GCJ=:
18330
18331 case $host_cpu in
18332 hppa*64*|ia64*)
18333 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18334 hardcode_direct_GCJ=no
18335 hardcode_shlibpath_var_GCJ=no
18336 ;;
18337 *)
18338 hardcode_direct_GCJ=yes
18339 export_dynamic_flag_spec_GCJ='${wl}-E'
18340
18341 # hardcode_minus_L: Not really in the search PATH,
18342 # but as the default location of the library.
18343 hardcode_minus_L_GCJ=yes
18344 ;;
18345 esac
18346 fi
18347 ;;
18348
18349 irix5* | irix6* | nonstopux*)
18350 if test "$GCC" = yes; then
18351 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'
18352 else
18353 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'
18354 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18355 fi
18356 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18357 hardcode_libdir_separator_GCJ=:
18358 link_all_deplibs_GCJ=yes
18359 ;;
18360
18361 netbsd*)
18362 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18363 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18364 else
18365 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18366 fi
18367 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18368 hardcode_direct_GCJ=yes
18369 hardcode_shlibpath_var_GCJ=no
18370 ;;
18371
18372 newsos6)
18373 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18374 hardcode_direct_GCJ=yes
18375 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18376 hardcode_libdir_separator_GCJ=:
18377 hardcode_shlibpath_var_GCJ=no
18378 ;;
18379
18380 openbsd*)
18381 hardcode_direct_GCJ=yes
18382 hardcode_shlibpath_var_GCJ=no
18383 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18384 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18385 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18386 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18387 export_dynamic_flag_spec_GCJ='${wl}-E'
18388 else
18389 case $host_os in
18390 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18391 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18392 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18393 ;;
18394 *)
18395 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18396 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18397 ;;
18398 esac
18399 fi
18400 ;;
18401
18402 os2*)
18403 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18404 hardcode_minus_L_GCJ=yes
18405 allow_undefined_flag_GCJ=unsupported
18406 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'
18407 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18408 ;;
18409
18410 osf3*)
18411 if test "$GCC" = yes; then
18412 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18413 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'
18414 else
18415 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18416 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'
18417 fi
18418 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18419 hardcode_libdir_separator_GCJ=:
18420 ;;
18421
18422 osf4* | osf5*) # as osf3* with the addition of -msym flag
18423 if test "$GCC" = yes; then
18424 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18425 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'
18426 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18427 else
18428 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18429 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'
18430 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~
18431 $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'
18432
18433 # Both c and cxx compiler support -rpath directly
18434 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18435 fi
18436 hardcode_libdir_separator_GCJ=:
18437 ;;
18438
18439 solaris*)
18440 no_undefined_flag_GCJ=' -z text'
18441 if test "$GCC" = yes; then
18442 wlarc='${wl}'
18443 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18444 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18445 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18446 else
18447 wlarc=''
18448 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18449 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18450 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18451 fi
18452 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18453 hardcode_shlibpath_var_GCJ=no
18454 case $host_os in
18455 solaris2.[0-5] | solaris2.[0-5].*) ;;
18456 *)
18457 # The compiler driver will combine linker options so we
18458 # cannot just pass the convience library names through
18459 # without $wl, iff we do not link with $LD.
18460 # Luckily, gcc supports the same syntax we need for Sun Studio.
18461 # Supported since Solaris 2.6 (maybe 2.5.1?)
18462 case $wlarc in
18463 '')
18464 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18465 *)
18466 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' ;;
18467 esac ;;
18468 esac
18469 link_all_deplibs_GCJ=yes
18470 ;;
18471
18472 sunos4*)
18473 if test "x$host_vendor" = xsequent; then
18474 # Use $CC to link under sequent, because it throws in some extra .o
18475 # files that make .init and .fini sections work.
18476 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18477 else
18478 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18479 fi
18480 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18481 hardcode_direct_GCJ=yes
18482 hardcode_minus_L_GCJ=yes
18483 hardcode_shlibpath_var_GCJ=no
18484 ;;
18485
18486 sysv4)
18487 case $host_vendor in
18488 sni)
18489 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18490 hardcode_direct_GCJ=yes # is this really true???
18491 ;;
18492 siemens)
18493 ## LD is ld it makes a PLAMLIB
18494 ## CC just makes a GrossModule.
18495 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18496 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18497 hardcode_direct_GCJ=no
18498 ;;
18499 motorola)
18500 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18501 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18502 ;;
18503 esac
18504 runpath_var='LD_RUN_PATH'
18505 hardcode_shlibpath_var_GCJ=no
18506 ;;
18507
18508 sysv4.3*)
18509 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18510 hardcode_shlibpath_var_GCJ=no
18511 export_dynamic_flag_spec_GCJ='-Bexport'
18512 ;;
18513
18514 sysv4*MP*)
18515 if test -d /usr/nec; then
18516 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18517 hardcode_shlibpath_var_GCJ=no
18518 runpath_var=LD_RUN_PATH
18519 hardcode_runpath_var=yes
18520 ld_shlibs_GCJ=yes
18521 fi
18522 ;;
18523
18524 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18525 no_undefined_flag_GCJ='${wl}-z,text'
18526 archive_cmds_need_lc_GCJ=no
18527 hardcode_shlibpath_var_GCJ=no
18528 runpath_var='LD_RUN_PATH'
18529
18530 if test "$GCC" = yes; then
18531 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18532 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18533 else
18534 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18535 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18536 fi
18537 ;;
18538
18539 sysv5* | sco3.2v5* | sco5v6*)
18540 # Note: We can NOT use -z defs as we might desire, because we do not
18541 # link with -lc, and that would cause any symbols used from libc to
18542 # always be unresolved, which means just about no library would
18543 # ever link correctly. If we're not using GNU ld we use -z text
18544 # though, which does catch some bad symbols but isn't as heavy-handed
18545 # as -z defs.
18546 no_undefined_flag_GCJ='${wl}-z,text'
18547 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18548 archive_cmds_need_lc_GCJ=no
18549 hardcode_shlibpath_var_GCJ=no
18550 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18551 hardcode_libdir_separator_GCJ=':'
18552 link_all_deplibs_GCJ=yes
18553 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18554 runpath_var='LD_RUN_PATH'
18555
18556 if test "$GCC" = yes; then
18557 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18558 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18559 else
18560 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18561 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18562 fi
18563 ;;
18564
18565 uts4*)
18566 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18567 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18568 hardcode_shlibpath_var_GCJ=no
18569 ;;
18570
18571 *)
18572 ld_shlibs_GCJ=no
18573 ;;
18574 esac
18575 fi
18576
18577 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18578 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18579 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18580
18581 #
18582 # Do we need to explicitly link libc?
18583 #
18584 case "x$archive_cmds_need_lc_GCJ" in
18585 x|xyes)
18586 # Assume -lc should be added
18587 archive_cmds_need_lc_GCJ=yes
18588
18589 if test "$enable_shared" = yes && test "$GCC" = yes; then
18590 case $archive_cmds_GCJ in
18591 *'~'*)
18592 # FIXME: we may have to deal with multi-command sequences.
18593 ;;
18594 '$CC '*)
18595 # Test whether the compiler implicitly links with -lc since on some
18596 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18597 # to ld, don't add -lc before -lgcc.
18598 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18599 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18600 $rm conftest*
18601 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18602
18603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18604 (eval $ac_compile) 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } 2>conftest.err; then
18608 soname=conftest
18609 lib=conftest
18610 libobjs=conftest.$ac_objext
18611 deplibs=
18612 wl=$lt_prog_compiler_wl_GCJ
18613 pic_flag=$lt_prog_compiler_pic_GCJ
18614 compiler_flags=-v
18615 linker_flags=-v
18616 verstring=
18617 output_objdir=.
18618 libname=conftest
18619 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18620 allow_undefined_flag_GCJ=
18621 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18622 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }
18626 then
18627 archive_cmds_need_lc_GCJ=no
18628 else
18629 archive_cmds_need_lc_GCJ=yes
18630 fi
18631 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18632 else
18633 cat conftest.err 1>&5
18634 fi
18635 $rm conftest*
18636 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18637 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18638 ;;
18639 esac
18640 fi
18641 ;;
18642 esac
18643
18644 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18645 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18646 library_names_spec=
18647 libname_spec='lib$name'
18648 soname_spec=
18649 shrext_cmds=".so"
18650 postinstall_cmds=
18651 postuninstall_cmds=
18652 finish_cmds=
18653 finish_eval=
18654 shlibpath_var=
18655 shlibpath_overrides_runpath=unknown
18656 version_type=none
18657 dynamic_linker="$host_os ld.so"
18658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18659 if test "$GCC" = yes; then
18660 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18661 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18662 # if the path contains ";" then we assume it to be the separator
18663 # otherwise default to the standard path separator (i.e. ":") - it is
18664 # assumed that no part of a normal pathname contains ";" but that should
18665 # okay in the real world where ";" in dirpaths is itself problematic.
18666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18667 else
18668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18669 fi
18670 else
18671 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18672 fi
18673 need_lib_prefix=unknown
18674 hardcode_into_libs=no
18675
18676 # when you set need_version to no, make sure it does not cause -set_version
18677 # flags to be left without arguments
18678 need_version=unknown
18679
18680 case $host_os in
18681 aix3*)
18682 version_type=linux
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18684 shlibpath_var=LIBPATH
18685
18686 # AIX 3 has no versioning support, so we append a major version to the name.
18687 soname_spec='${libname}${release}${shared_ext}$major'
18688 ;;
18689
18690 aix4* | aix5*)
18691 version_type=linux
18692 need_lib_prefix=no
18693 need_version=no
18694 hardcode_into_libs=yes
18695 if test "$host_cpu" = ia64; then
18696 # AIX 5 supports IA64
18697 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18698 shlibpath_var=LD_LIBRARY_PATH
18699 else
18700 # With GCC up to 2.95.x, collect2 would create an import file
18701 # for dependence libraries. The import file would start with
18702 # the line `#! .'. This would cause the generated library to
18703 # depend on `.', always an invalid library. This was fixed in
18704 # development snapshots of GCC prior to 3.0.
18705 case $host_os in
18706 aix4 | aix4.[01] | aix4.[01].*)
18707 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18708 echo ' yes '
18709 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18710 :
18711 else
18712 can_build_shared=no
18713 fi
18714 ;;
18715 esac
18716 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18717 # soname into executable. Probably we can add versioning support to
18718 # collect2, so additional links can be useful in future.
18719 if test "$aix_use_runtimelinking" = yes; then
18720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18721 # instead of lib<name>.a to let people know that these are not
18722 # typical AIX shared libraries.
18723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18724 else
18725 # We preserve .a as extension for shared libraries through AIX4.2
18726 # and later when we are not doing run time linking.
18727 library_names_spec='${libname}${release}.a $libname.a'
18728 soname_spec='${libname}${release}${shared_ext}$major'
18729 fi
18730 shlibpath_var=LIBPATH
18731 fi
18732 ;;
18733
18734 amigaos*)
18735 library_names_spec='$libname.ixlibrary $libname.a'
18736 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18737 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'
18738 ;;
18739
18740 beos*)
18741 library_names_spec='${libname}${shared_ext}'
18742 dynamic_linker="$host_os ld.so"
18743 shlibpath_var=LIBRARY_PATH
18744 ;;
18745
18746 bsdi[45]*)
18747 version_type=linux
18748 need_version=no
18749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18750 soname_spec='${libname}${release}${shared_ext}$major'
18751 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18752 shlibpath_var=LD_LIBRARY_PATH
18753 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18754 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18755 # the default ld.so.conf also contains /usr/contrib/lib and
18756 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18757 # libtool to hard-code these into programs
18758 ;;
18759
18760 cygwin* | mingw* | pw32*)
18761 version_type=windows
18762 shrext_cmds=".dll"
18763 need_version=no
18764 need_lib_prefix=no
18765
18766 case $GCC,$host_os in
18767 yes,cygwin* | yes,mingw* | yes,pw32*)
18768 library_names_spec='$libname.dll.a'
18769 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18770 postinstall_cmds='base_file=`basename \${file}`~
18771 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18772 dldir=$destdir/`dirname \$dlpath`~
18773 test -d \$dldir || mkdir -p \$dldir~
18774 $install_prog $dir/$dlname \$dldir/$dlname~
18775 chmod a+x \$dldir/$dlname'
18776 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18777 dlpath=$dir/\$dldll~
18778 $rm \$dlpath'
18779 shlibpath_overrides_runpath=yes
18780
18781 case $host_os in
18782 cygwin*)
18783 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18784 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18785 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18786 ;;
18787 mingw*)
18788 # MinGW DLLs use traditional 'lib' prefix
18789 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18790 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18791 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18792 # It is most probably a Windows format PATH printed by
18793 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18794 # path with ; separators, and with drive letters. We can handle the
18795 # drive letters (cygwin fileutils understands them), so leave them,
18796 # especially as we might pass files found there to a mingw objdump,
18797 # which wouldn't understand a cygwinified path. Ahh.
18798 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18799 else
18800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18801 fi
18802 ;;
18803 pw32*)
18804 # pw32 DLLs use 'pw' prefix rather than 'lib'
18805 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18806 ;;
18807 esac
18808 ;;
18809
18810 *)
18811 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18812 ;;
18813 esac
18814 dynamic_linker='Win32 ld.exe'
18815 # FIXME: first we should search . and the directory the executable is in
18816 shlibpath_var=PATH
18817 ;;
18818
18819 darwin* | rhapsody*)
18820 dynamic_linker="$host_os dyld"
18821 version_type=darwin
18822 need_lib_prefix=no
18823 need_version=no
18824 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18825 soname_spec='${libname}${release}${major}$shared_ext'
18826 shlibpath_overrides_runpath=yes
18827 shlibpath_var=DYLD_LIBRARY_PATH
18828 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18829 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18830 if test "$GCC" = yes; then
18831 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"`
18832 else
18833 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18834 fi
18835 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18836 ;;
18837
18838 dgux*)
18839 version_type=linux
18840 need_lib_prefix=no
18841 need_version=no
18842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18843 soname_spec='${libname}${release}${shared_ext}$major'
18844 shlibpath_var=LD_LIBRARY_PATH
18845 ;;
18846
18847 freebsd1*)
18848 dynamic_linker=no
18849 ;;
18850
18851 kfreebsd*-gnu)
18852 version_type=linux
18853 need_lib_prefix=no
18854 need_version=no
18855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18856 soname_spec='${libname}${release}${shared_ext}$major'
18857 shlibpath_var=LD_LIBRARY_PATH
18858 shlibpath_overrides_runpath=no
18859 hardcode_into_libs=yes
18860 dynamic_linker='GNU ld.so'
18861 ;;
18862
18863 freebsd* | dragonfly*)
18864 # DragonFly does not have aout. When/if they implement a new
18865 # versioning mechanism, adjust this.
18866 if test -x /usr/bin/objformat; then
18867 objformat=`/usr/bin/objformat`
18868 else
18869 case $host_os in
18870 freebsd[123]*) objformat=aout ;;
18871 *) objformat=elf ;;
18872 esac
18873 fi
18874 version_type=freebsd-$objformat
18875 case $version_type in
18876 freebsd-elf*)
18877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18878 need_version=no
18879 need_lib_prefix=no
18880 ;;
18881 freebsd-*)
18882 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18883 need_version=yes
18884 ;;
18885 esac
18886 shlibpath_var=LD_LIBRARY_PATH
18887 case $host_os in
18888 freebsd2*)
18889 shlibpath_overrides_runpath=yes
18890 ;;
18891 freebsd3.[01]* | freebsdelf3.[01]*)
18892 shlibpath_overrides_runpath=yes
18893 hardcode_into_libs=yes
18894 ;;
18895 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18896 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18897 shlibpath_overrides_runpath=no
18898 hardcode_into_libs=yes
18899 ;;
18900 freebsd*) # from 4.6 on
18901 shlibpath_overrides_runpath=yes
18902 hardcode_into_libs=yes
18903 ;;
18904 esac
18905 ;;
18906
18907 gnu*)
18908 version_type=linux
18909 need_lib_prefix=no
18910 need_version=no
18911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18912 soname_spec='${libname}${release}${shared_ext}$major'
18913 shlibpath_var=LD_LIBRARY_PATH
18914 hardcode_into_libs=yes
18915 ;;
18916
18917 hpux9* | hpux10* | hpux11*)
18918 # Give a soname corresponding to the major version so that dld.sl refuses to
18919 # link against other versions.
18920 version_type=sunos
18921 need_lib_prefix=no
18922 need_version=no
18923 case $host_cpu in
18924 ia64*)
18925 shrext_cmds='.so'
18926 hardcode_into_libs=yes
18927 dynamic_linker="$host_os dld.so"
18928 shlibpath_var=LD_LIBRARY_PATH
18929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18931 soname_spec='${libname}${release}${shared_ext}$major'
18932 if test "X$HPUX_IA64_MODE" = X32; then
18933 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18934 else
18935 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18936 fi
18937 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18938 ;;
18939 hppa*64*)
18940 shrext_cmds='.sl'
18941 hardcode_into_libs=yes
18942 dynamic_linker="$host_os dld.sl"
18943 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18946 soname_spec='${libname}${release}${shared_ext}$major'
18947 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18949 ;;
18950 *)
18951 shrext_cmds='.sl'
18952 dynamic_linker="$host_os dld.sl"
18953 shlibpath_var=SHLIB_PATH
18954 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18956 soname_spec='${libname}${release}${shared_ext}$major'
18957 ;;
18958 esac
18959 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18960 postinstall_cmds='chmod 555 $lib'
18961 ;;
18962
18963 interix3*)
18964 version_type=linux
18965 need_lib_prefix=no
18966 need_version=no
18967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18968 soname_spec='${libname}${release}${shared_ext}$major'
18969 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18970 shlibpath_var=LD_LIBRARY_PATH
18971 shlibpath_overrides_runpath=no
18972 hardcode_into_libs=yes
18973 ;;
18974
18975 irix5* | irix6* | nonstopux*)
18976 case $host_os in
18977 nonstopux*) version_type=nonstopux ;;
18978 *)
18979 if test "$lt_cv_prog_gnu_ld" = yes; then
18980 version_type=linux
18981 else
18982 version_type=irix
18983 fi ;;
18984 esac
18985 need_lib_prefix=no
18986 need_version=no
18987 soname_spec='${libname}${release}${shared_ext}$major'
18988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18989 case $host_os in
18990 irix5* | nonstopux*)
18991 libsuff= shlibsuff=
18992 ;;
18993 *)
18994 case $LD in # libtool.m4 will add one of these switches to LD
18995 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18996 libsuff= shlibsuff= libmagic=32-bit;;
18997 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18998 libsuff=32 shlibsuff=N32 libmagic=N32;;
18999 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19000 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19001 *) libsuff= shlibsuff= libmagic=never-match;;
19002 esac
19003 ;;
19004 esac
19005 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19006 shlibpath_overrides_runpath=no
19007 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19008 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19009 hardcode_into_libs=yes
19010 ;;
19011
19012 # No shared lib support for Linux oldld, aout, or coff.
19013 linux*oldld* | linux*aout* | linux*coff*)
19014 dynamic_linker=no
19015 ;;
19016
19017 # This must be Linux ELF.
19018 linux*)
19019 version_type=linux
19020 need_lib_prefix=no
19021 need_version=no
19022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19023 soname_spec='${libname}${release}${shared_ext}$major'
19024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19025 shlibpath_var=LD_LIBRARY_PATH
19026 shlibpath_overrides_runpath=no
19027 # This implies no fast_install, which is unacceptable.
19028 # Some rework will be needed to allow for fast_install
19029 # before this can be enabled.
19030 hardcode_into_libs=yes
19031
19032 # Append ld.so.conf contents to the search path
19033 if test -f /etc/ld.so.conf; then
19034 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' ' '`
19035 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19036 fi
19037
19038 # We used to test for /lib/ld.so.1 and disable shared libraries on
19039 # powerpc, because MkLinux only supported shared libraries with the
19040 # GNU dynamic linker. Since this was broken with cross compilers,
19041 # most powerpc-linux boxes support dynamic linking these days and
19042 # people can always --disable-shared, the test was removed, and we
19043 # assume the GNU/Linux dynamic linker is in use.
19044 dynamic_linker='GNU/Linux ld.so'
19045 ;;
19046
19047 knetbsd*-gnu)
19048 version_type=linux
19049 need_lib_prefix=no
19050 need_version=no
19051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19052 soname_spec='${libname}${release}${shared_ext}$major'
19053 shlibpath_var=LD_LIBRARY_PATH
19054 shlibpath_overrides_runpath=no
19055 hardcode_into_libs=yes
19056 dynamic_linker='GNU ld.so'
19057 ;;
19058
19059 netbsd*)
19060 version_type=sunos
19061 need_lib_prefix=no
19062 need_version=no
19063 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19066 dynamic_linker='NetBSD (a.out) ld.so'
19067 else
19068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19069 soname_spec='${libname}${release}${shared_ext}$major'
19070 dynamic_linker='NetBSD ld.elf_so'
19071 fi
19072 shlibpath_var=LD_LIBRARY_PATH
19073 shlibpath_overrides_runpath=yes
19074 hardcode_into_libs=yes
19075 ;;
19076
19077 newsos6)
19078 version_type=linux
19079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19080 shlibpath_var=LD_LIBRARY_PATH
19081 shlibpath_overrides_runpath=yes
19082 ;;
19083
19084 nto-qnx*)
19085 version_type=linux
19086 need_lib_prefix=no
19087 need_version=no
19088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19089 soname_spec='${libname}${release}${shared_ext}$major'
19090 shlibpath_var=LD_LIBRARY_PATH
19091 shlibpath_overrides_runpath=yes
19092 ;;
19093
19094 openbsd*)
19095 version_type=sunos
19096 sys_lib_dlsearch_path_spec="/usr/lib"
19097 need_lib_prefix=no
19098 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19099 case $host_os in
19100 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19101 *) need_version=no ;;
19102 esac
19103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19105 shlibpath_var=LD_LIBRARY_PATH
19106 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19107 case $host_os in
19108 openbsd2.[89] | openbsd2.[89].*)
19109 shlibpath_overrides_runpath=no
19110 ;;
19111 *)
19112 shlibpath_overrides_runpath=yes
19113 ;;
19114 esac
19115 else
19116 shlibpath_overrides_runpath=yes
19117 fi
19118 ;;
19119
19120 os2*)
19121 libname_spec='$name'
19122 shrext_cmds=".dll"
19123 need_lib_prefix=no
19124 library_names_spec='$libname${shared_ext} $libname.a'
19125 dynamic_linker='OS/2 ld.exe'
19126 shlibpath_var=LIBPATH
19127 ;;
19128
19129 osf3* | osf4* | osf5*)
19130 version_type=osf
19131 need_lib_prefix=no
19132 need_version=no
19133 soname_spec='${libname}${release}${shared_ext}$major'
19134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19135 shlibpath_var=LD_LIBRARY_PATH
19136 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19137 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19138 ;;
19139
19140 solaris*)
19141 version_type=linux
19142 need_lib_prefix=no
19143 need_version=no
19144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19145 soname_spec='${libname}${release}${shared_ext}$major'
19146 shlibpath_var=LD_LIBRARY_PATH
19147 shlibpath_overrides_runpath=yes
19148 hardcode_into_libs=yes
19149 # ldd complains unless libraries are executable
19150 postinstall_cmds='chmod +x $lib'
19151 ;;
19152
19153 sunos4*)
19154 version_type=sunos
19155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19156 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19157 shlibpath_var=LD_LIBRARY_PATH
19158 shlibpath_overrides_runpath=yes
19159 if test "$with_gnu_ld" = yes; then
19160 need_lib_prefix=no
19161 fi
19162 need_version=yes
19163 ;;
19164
19165 sysv4 | sysv4.3*)
19166 version_type=linux
19167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19168 soname_spec='${libname}${release}${shared_ext}$major'
19169 shlibpath_var=LD_LIBRARY_PATH
19170 case $host_vendor in
19171 sni)
19172 shlibpath_overrides_runpath=no
19173 need_lib_prefix=no
19174 export_dynamic_flag_spec='${wl}-Blargedynsym'
19175 runpath_var=LD_RUN_PATH
19176 ;;
19177 siemens)
19178 need_lib_prefix=no
19179 ;;
19180 motorola)
19181 need_lib_prefix=no
19182 need_version=no
19183 shlibpath_overrides_runpath=no
19184 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19185 ;;
19186 esac
19187 ;;
19188
19189 sysv4*MP*)
19190 if test -d /usr/nec ;then
19191 version_type=linux
19192 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19193 soname_spec='$libname${shared_ext}.$major'
19194 shlibpath_var=LD_LIBRARY_PATH
19195 fi
19196 ;;
19197
19198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19199 version_type=freebsd-elf
19200 need_lib_prefix=no
19201 need_version=no
19202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19203 soname_spec='${libname}${release}${shared_ext}$major'
19204 shlibpath_var=LD_LIBRARY_PATH
19205 hardcode_into_libs=yes
19206 if test "$with_gnu_ld" = yes; then
19207 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19208 shlibpath_overrides_runpath=no
19209 else
19210 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19211 shlibpath_overrides_runpath=yes
19212 case $host_os in
19213 sco3.2v5*)
19214 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19215 ;;
19216 esac
19217 fi
19218 sys_lib_dlsearch_path_spec='/usr/lib'
19219 ;;
19220
19221 uts4*)
19222 version_type=linux
19223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19224 soname_spec='${libname}${release}${shared_ext}$major'
19225 shlibpath_var=LD_LIBRARY_PATH
19226 ;;
19227
19228 *)
19229 dynamic_linker=no
19230 ;;
19231 esac
19232 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19233 echo "${ECHO_T}$dynamic_linker" >&6
19234 test "$dynamic_linker" = no && can_build_shared=no
19235
19236 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19237 if test "$GCC" = yes; then
19238 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19239 fi
19240
19241 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19242 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19243 hardcode_action_GCJ=
19244 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19245 test -n "$runpath_var_GCJ" || \
19246 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19247
19248 # We can hardcode non-existant directories.
19249 if test "$hardcode_direct_GCJ" != no &&
19250 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19251 # have to relink, otherwise we might link with an installed library
19252 # when we should be linking with a yet-to-be-installed one
19253 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19254 test "$hardcode_minus_L_GCJ" != no; then
19255 # Linking always hardcodes the temporary library directory.
19256 hardcode_action_GCJ=relink
19257 else
19258 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19259 hardcode_action_GCJ=immediate
19260 fi
19261 else
19262 # We cannot hardcode anything, or else we can only hardcode existing
19263 # directories.
19264 hardcode_action_GCJ=unsupported
19265 fi
19266 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19267 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19268
19269 if test "$hardcode_action_GCJ" = relink; then
19270 # Fast installation is not supported
19271 enable_fast_install=no
19272 elif test "$shlibpath_overrides_runpath" = yes ||
19273 test "$enable_shared" = no; then
19274 # Fast installation is not necessary
19275 enable_fast_install=needless
19276 fi
19277
19278
19279 # The else clause should only fire when bootstrapping the
19280 # libtool distribution, otherwise you forgot to ship ltmain.sh
19281 # with your package, and you will get complaints that there are
19282 # no rules to generate ltmain.sh.
19283 if test -f "$ltmain"; then
19284 # See if we are running on zsh, and set the options which allow our commands through
19285 # without removal of \ escapes.
19286 if test -n "${ZSH_VERSION+set}" ; then
19287 setopt NO_GLOB_SUBST
19288 fi
19289 # Now quote all the things that may contain metacharacters while being
19290 # careful not to overquote the AC_SUBSTed values. We take copies of the
19291 # variables and quote the copies for generation of the libtool script.
19292 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19293 SED SHELL STRIP \
19294 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19295 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19296 deplibs_check_method reload_flag reload_cmds need_locks \
19297 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19298 lt_cv_sys_global_symbol_to_c_name_address \
19299 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19300 old_postinstall_cmds old_postuninstall_cmds \
19301 compiler_GCJ \
19302 CC_GCJ \
19303 LD_GCJ \
19304 lt_prog_compiler_wl_GCJ \
19305 lt_prog_compiler_pic_GCJ \
19306 lt_prog_compiler_static_GCJ \
19307 lt_prog_compiler_no_builtin_flag_GCJ \
19308 export_dynamic_flag_spec_GCJ \
19309 thread_safe_flag_spec_GCJ \
19310 whole_archive_flag_spec_GCJ \
19311 enable_shared_with_static_runtimes_GCJ \
19312 old_archive_cmds_GCJ \
19313 old_archive_from_new_cmds_GCJ \
19314 predep_objects_GCJ \
19315 postdep_objects_GCJ \
19316 predeps_GCJ \
19317 postdeps_GCJ \
19318 compiler_lib_search_path_GCJ \
19319 archive_cmds_GCJ \
19320 archive_expsym_cmds_GCJ \
19321 postinstall_cmds_GCJ \
19322 postuninstall_cmds_GCJ \
19323 old_archive_from_expsyms_cmds_GCJ \
19324 allow_undefined_flag_GCJ \
19325 no_undefined_flag_GCJ \
19326 export_symbols_cmds_GCJ \
19327 hardcode_libdir_flag_spec_GCJ \
19328 hardcode_libdir_flag_spec_ld_GCJ \
19329 hardcode_libdir_separator_GCJ \
19330 hardcode_automatic_GCJ \
19331 module_cmds_GCJ \
19332 module_expsym_cmds_GCJ \
19333 lt_cv_prog_compiler_c_o_GCJ \
19334 exclude_expsyms_GCJ \
19335 include_expsyms_GCJ; do
19336
19337 case $var in
19338 old_archive_cmds_GCJ | \
19339 old_archive_from_new_cmds_GCJ | \
19340 archive_cmds_GCJ | \
19341 archive_expsym_cmds_GCJ | \
19342 module_cmds_GCJ | \
19343 module_expsym_cmds_GCJ | \
19344 old_archive_from_expsyms_cmds_GCJ | \
19345 export_symbols_cmds_GCJ | \
19346 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19347 postinstall_cmds | postuninstall_cmds | \
19348 old_postinstall_cmds | old_postuninstall_cmds | \
19349 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19350 # Double-quote double-evaled strings.
19351 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19352 ;;
19353 *)
19354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19355 ;;
19356 esac
19357 done
19358
19359 case $lt_echo in
19360 *'\$0 --fallback-echo"')
19361 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19362 ;;
19363 esac
19364
19365 cfgfile="$ofile"
19366
19367 cat <<__EOF__ >> "$cfgfile"
19368 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19369
19370 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19371
19372 # Shell to use when invoking shell scripts.
19373 SHELL=$lt_SHELL
19374
19375 # Whether or not to build shared libraries.
19376 build_libtool_libs=$enable_shared
19377
19378 # Whether or not to build static libraries.
19379 build_old_libs=$enable_static
19380
19381 # Whether or not to add -lc for building shared libraries.
19382 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19383
19384 # Whether or not to disallow shared libs when runtime libs are static
19385 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19386
19387 # Whether or not to optimize for fast installation.
19388 fast_install=$enable_fast_install
19389
19390 # The host system.
19391 host_alias=$host_alias
19392 host=$host
19393 host_os=$host_os
19394
19395 # The build system.
19396 build_alias=$build_alias
19397 build=$build
19398 build_os=$build_os
19399
19400 # An echo program that does not interpret backslashes.
19401 echo=$lt_echo
19402
19403 # The archiver.
19404 AR=$lt_AR
19405 AR_FLAGS=$lt_AR_FLAGS
19406
19407 # A C compiler.
19408 LTCC=$lt_LTCC
19409
19410 # LTCC compiler flags.
19411 LTCFLAGS=$lt_LTCFLAGS
19412
19413 # A language-specific compiler.
19414 CC=$lt_compiler_GCJ
19415
19416 # Is the compiler the GNU C compiler?
19417 with_gcc=$GCC_GCJ
19418
19419 # An ERE matcher.
19420 EGREP=$lt_EGREP
19421
19422 # The linker used to build libraries.
19423 LD=$lt_LD_GCJ
19424
19425 # Whether we need hard or soft links.
19426 LN_S=$lt_LN_S
19427
19428 # A BSD-compatible nm program.
19429 NM=$lt_NM
19430
19431 # A symbol stripping program
19432 STRIP=$lt_STRIP
19433
19434 # Used to examine libraries when file_magic_cmd begins "file"
19435 MAGIC_CMD=$MAGIC_CMD
19436
19437 # Used on cygwin: DLL creation program.
19438 DLLTOOL="$DLLTOOL"
19439
19440 # Used on cygwin: object dumper.
19441 OBJDUMP="$OBJDUMP"
19442
19443 # Used on cygwin: assembler.
19444 AS="$AS"
19445
19446 # The name of the directory that contains temporary libtool files.
19447 objdir=$objdir
19448
19449 # How to create reloadable object files.
19450 reload_flag=$lt_reload_flag
19451 reload_cmds=$lt_reload_cmds
19452
19453 # How to pass a linker flag through the compiler.
19454 wl=$lt_lt_prog_compiler_wl_GCJ
19455
19456 # Object file suffix (normally "o").
19457 objext="$ac_objext"
19458
19459 # Old archive suffix (normally "a").
19460 libext="$libext"
19461
19462 # Shared library suffix (normally ".so").
19463 shrext_cmds='$shrext_cmds'
19464
19465 # Executable file suffix (normally "").
19466 exeext="$exeext"
19467
19468 # Additional compiler flags for building library objects.
19469 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19470 pic_mode=$pic_mode
19471
19472 # What is the maximum length of a command?
19473 max_cmd_len=$lt_cv_sys_max_cmd_len
19474
19475 # Does compiler simultaneously support -c and -o options?
19476 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19477
19478 # Must we lock files when doing compilation?
19479 need_locks=$lt_need_locks
19480
19481 # Do we need the lib prefix for modules?
19482 need_lib_prefix=$need_lib_prefix
19483
19484 # Do we need a version for libraries?
19485 need_version=$need_version
19486
19487 # Whether dlopen is supported.
19488 dlopen_support=$enable_dlopen
19489
19490 # Whether dlopen of programs is supported.
19491 dlopen_self=$enable_dlopen_self
19492
19493 # Whether dlopen of statically linked programs is supported.
19494 dlopen_self_static=$enable_dlopen_self_static
19495
19496 # Compiler flag to prevent dynamic linking.
19497 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19498
19499 # Compiler flag to turn off builtin functions.
19500 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19501
19502 # Compiler flag to allow reflexive dlopens.
19503 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19504
19505 # Compiler flag to generate shared objects directly from archives.
19506 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19507
19508 # Compiler flag to generate thread-safe objects.
19509 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19510
19511 # Library versioning type.
19512 version_type=$version_type
19513
19514 # Format of library name prefix.
19515 libname_spec=$lt_libname_spec
19516
19517 # List of archive names. First name is the real one, the rest are links.
19518 # The last name is the one that the linker finds with -lNAME.
19519 library_names_spec=$lt_library_names_spec
19520
19521 # The coded name of the library, if different from the real name.
19522 soname_spec=$lt_soname_spec
19523
19524 # Commands used to build and install an old-style archive.
19525 RANLIB=$lt_RANLIB
19526 old_archive_cmds=$lt_old_archive_cmds_GCJ
19527 old_postinstall_cmds=$lt_old_postinstall_cmds
19528 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19529
19530 # Create an old-style archive from a shared archive.
19531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19532
19533 # Create a temporary old-style archive to link instead of a shared archive.
19534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19535
19536 # Commands used to build and install a shared archive.
19537 archive_cmds=$lt_archive_cmds_GCJ
19538 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19539 postinstall_cmds=$lt_postinstall_cmds
19540 postuninstall_cmds=$lt_postuninstall_cmds
19541
19542 # Commands used to build a loadable module (assumed same as above if empty)
19543 module_cmds=$lt_module_cmds_GCJ
19544 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19545
19546 # Commands to strip libraries.
19547 old_striplib=$lt_old_striplib
19548 striplib=$lt_striplib
19549
19550 # Dependencies to place before the objects being linked to create a
19551 # shared library.
19552 predep_objects=$lt_predep_objects_GCJ
19553
19554 # Dependencies to place after the objects being linked to create a
19555 # shared library.
19556 postdep_objects=$lt_postdep_objects_GCJ
19557
19558 # Dependencies to place before the objects being linked to create a
19559 # shared library.
19560 predeps=$lt_predeps_GCJ
19561
19562 # Dependencies to place after the objects being linked to create a
19563 # shared library.
19564 postdeps=$lt_postdeps_GCJ
19565
19566 # The library search path used internally by the compiler when linking
19567 # a shared library.
19568 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19569
19570 # Method to check whether dependent libraries are shared objects.
19571 deplibs_check_method=$lt_deplibs_check_method
19572
19573 # Command to use when deplibs_check_method == file_magic.
19574 file_magic_cmd=$lt_file_magic_cmd
19575
19576 # Flag that allows shared libraries with undefined symbols to be built.
19577 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19578
19579 # Flag that forces no undefined symbols.
19580 no_undefined_flag=$lt_no_undefined_flag_GCJ
19581
19582 # Commands used to finish a libtool library installation in a directory.
19583 finish_cmds=$lt_finish_cmds
19584
19585 # Same as above, but a single script fragment to be evaled but not shown.
19586 finish_eval=$lt_finish_eval
19587
19588 # Take the output of nm and produce a listing of raw symbols and C names.
19589 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19590
19591 # Transform the output of nm in a proper C declaration
19592 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19593
19594 # Transform the output of nm in a C name address pair
19595 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19596
19597 # This is the shared library runtime path variable.
19598 runpath_var=$runpath_var
19599
19600 # This is the shared library path variable.
19601 shlibpath_var=$shlibpath_var
19602
19603 # Is shlibpath searched before the hard-coded library search path?
19604 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19605
19606 # How to hardcode a shared library path into an executable.
19607 hardcode_action=$hardcode_action_GCJ
19608
19609 # Whether we should hardcode library paths into libraries.
19610 hardcode_into_libs=$hardcode_into_libs
19611
19612 # Flag to hardcode \$libdir into a binary during linking.
19613 # This must work even if \$libdir does not exist.
19614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19615
19616 # If ld is used when linking, flag to hardcode \$libdir into
19617 # a binary during linking. This must work even if \$libdir does
19618 # not exist.
19619 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19620
19621 # Whether we need a single -rpath flag with a separated argument.
19622 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19623
19624 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19625 # resulting binary.
19626 hardcode_direct=$hardcode_direct_GCJ
19627
19628 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19629 # resulting binary.
19630 hardcode_minus_L=$hardcode_minus_L_GCJ
19631
19632 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19633 # the resulting binary.
19634 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19635
19636 # Set to yes if building a shared library automatically hardcodes DIR into the library
19637 # and all subsequent libraries and executables linked against it.
19638 hardcode_automatic=$hardcode_automatic_GCJ
19639
19640 # Variables whose values should be saved in libtool wrapper scripts and
19641 # restored at relink time.
19642 variables_saved_for_relink="$variables_saved_for_relink"
19643
19644 # Whether libtool must link a program against all its dependency libraries.
19645 link_all_deplibs=$link_all_deplibs_GCJ
19646
19647 # Compile-time system search path for libraries
19648 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19649
19650 # Run-time system search path for libraries
19651 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19652
19653 # Fix the shell variable \$srcfile for the compiler.
19654 fix_srcfile_path="$fix_srcfile_path_GCJ"
19655
19656 # Set to yes if exported symbols are required.
19657 always_export_symbols=$always_export_symbols_GCJ
19658
19659 # The commands to list exported symbols.
19660 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19661
19662 # The commands to extract the exported symbol list from a shared archive.
19663 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19664
19665 # Symbols that should not be listed in the preloaded symbols.
19666 exclude_expsyms=$lt_exclude_expsyms_GCJ
19667
19668 # Symbols that must always be exported.
19669 include_expsyms=$lt_include_expsyms_GCJ
19670
19671 # ### END LIBTOOL TAG CONFIG: $tagname
19672
19673 __EOF__
19674
19675
19676 else
19677 # If there is no Makefile yet, we rely on a make rule to execute
19678 # `config.status --recheck' to rerun these tests and create the
19679 # libtool script then.
19680 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19681 if test -f "$ltmain_in"; then
19682 test -f Makefile && make "$ltmain"
19683 fi
19684 fi
19685
19686
19687 ac_ext=c
19688 ac_cpp='$CPP $CPPFLAGS'
19689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19692
19693 CC="$lt_save_CC"
19694
19695 else
19696 tagname=""
19697 fi
19698 ;;
19699
19700 RC)
19701
19702
19703
19704 # Source file extension for RC test sources.
19705 ac_ext=rc
19706
19707 # Object file extension for compiled RC test sources.
19708 objext=o
19709 objext_RC=$objext
19710
19711 # Code to be used in simple compile tests
19712 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19713
19714 # Code to be used in simple link tests
19715 lt_simple_link_test_code="$lt_simple_compile_test_code"
19716
19717 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19718
19719 # If no C compiler was specified, use CC.
19720 LTCC=${LTCC-"$CC"}
19721
19722 # If no C compiler flags were specified, use CFLAGS.
19723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19724
19725 # Allow CC to be a program name with arguments.
19726 compiler=$CC
19727
19728
19729 # save warnings/boilerplate of simple test code
19730 ac_outfile=conftest.$ac_objext
19731 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19732 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19733 _lt_compiler_boilerplate=`cat conftest.err`
19734 $rm conftest*
19735
19736 ac_outfile=conftest.$ac_objext
19737 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19738 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19739 _lt_linker_boilerplate=`cat conftest.err`
19740 $rm conftest*
19741
19742
19743 # Allow CC to be a program name with arguments.
19744 lt_save_CC="$CC"
19745 CC=${RC-"windres"}
19746 compiler=$CC
19747 compiler_RC=$CC
19748 for cc_temp in $compiler""; do
19749 case $cc_temp in
19750 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19751 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19752 \-*) ;;
19753 *) break;;
19754 esac
19755 done
19756 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19757
19758 lt_cv_prog_compiler_c_o_RC=yes
19759
19760 # The else clause should only fire when bootstrapping the
19761 # libtool distribution, otherwise you forgot to ship ltmain.sh
19762 # with your package, and you will get complaints that there are
19763 # no rules to generate ltmain.sh.
19764 if test -f "$ltmain"; then
19765 # See if we are running on zsh, and set the options which allow our commands through
19766 # without removal of \ escapes.
19767 if test -n "${ZSH_VERSION+set}" ; then
19768 setopt NO_GLOB_SUBST
19769 fi
19770 # Now quote all the things that may contain metacharacters while being
19771 # careful not to overquote the AC_SUBSTed values. We take copies of the
19772 # variables and quote the copies for generation of the libtool script.
19773 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19774 SED SHELL STRIP \
19775 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19776 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19777 deplibs_check_method reload_flag reload_cmds need_locks \
19778 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19779 lt_cv_sys_global_symbol_to_c_name_address \
19780 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19781 old_postinstall_cmds old_postuninstall_cmds \
19782 compiler_RC \
19783 CC_RC \
19784 LD_RC \
19785 lt_prog_compiler_wl_RC \
19786 lt_prog_compiler_pic_RC \
19787 lt_prog_compiler_static_RC \
19788 lt_prog_compiler_no_builtin_flag_RC \
19789 export_dynamic_flag_spec_RC \
19790 thread_safe_flag_spec_RC \
19791 whole_archive_flag_spec_RC \
19792 enable_shared_with_static_runtimes_RC \
19793 old_archive_cmds_RC \
19794 old_archive_from_new_cmds_RC \
19795 predep_objects_RC \
19796 postdep_objects_RC \
19797 predeps_RC \
19798 postdeps_RC \
19799 compiler_lib_search_path_RC \
19800 archive_cmds_RC \
19801 archive_expsym_cmds_RC \
19802 postinstall_cmds_RC \
19803 postuninstall_cmds_RC \
19804 old_archive_from_expsyms_cmds_RC \
19805 allow_undefined_flag_RC \
19806 no_undefined_flag_RC \
19807 export_symbols_cmds_RC \
19808 hardcode_libdir_flag_spec_RC \
19809 hardcode_libdir_flag_spec_ld_RC \
19810 hardcode_libdir_separator_RC \
19811 hardcode_automatic_RC \
19812 module_cmds_RC \
19813 module_expsym_cmds_RC \
19814 lt_cv_prog_compiler_c_o_RC \
19815 exclude_expsyms_RC \
19816 include_expsyms_RC; do
19817
19818 case $var in
19819 old_archive_cmds_RC | \
19820 old_archive_from_new_cmds_RC | \
19821 archive_cmds_RC | \
19822 archive_expsym_cmds_RC | \
19823 module_cmds_RC | \
19824 module_expsym_cmds_RC | \
19825 old_archive_from_expsyms_cmds_RC | \
19826 export_symbols_cmds_RC | \
19827 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19828 postinstall_cmds | postuninstall_cmds | \
19829 old_postinstall_cmds | old_postuninstall_cmds | \
19830 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19831 # Double-quote double-evaled strings.
19832 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19833 ;;
19834 *)
19835 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19836 ;;
19837 esac
19838 done
19839
19840 case $lt_echo in
19841 *'\$0 --fallback-echo"')
19842 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19843 ;;
19844 esac
19845
19846 cfgfile="$ofile"
19847
19848 cat <<__EOF__ >> "$cfgfile"
19849 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19850
19851 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19852
19853 # Shell to use when invoking shell scripts.
19854 SHELL=$lt_SHELL
19855
19856 # Whether or not to build shared libraries.
19857 build_libtool_libs=$enable_shared
19858
19859 # Whether or not to build static libraries.
19860 build_old_libs=$enable_static
19861
19862 # Whether or not to add -lc for building shared libraries.
19863 build_libtool_need_lc=$archive_cmds_need_lc_RC
19864
19865 # Whether or not to disallow shared libs when runtime libs are static
19866 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19867
19868 # Whether or not to optimize for fast installation.
19869 fast_install=$enable_fast_install
19870
19871 # The host system.
19872 host_alias=$host_alias
19873 host=$host
19874 host_os=$host_os
19875
19876 # The build system.
19877 build_alias=$build_alias
19878 build=$build
19879 build_os=$build_os
19880
19881 # An echo program that does not interpret backslashes.
19882 echo=$lt_echo
19883
19884 # The archiver.
19885 AR=$lt_AR
19886 AR_FLAGS=$lt_AR_FLAGS
19887
19888 # A C compiler.
19889 LTCC=$lt_LTCC
19890
19891 # LTCC compiler flags.
19892 LTCFLAGS=$lt_LTCFLAGS
19893
19894 # A language-specific compiler.
19895 CC=$lt_compiler_RC
19896
19897 # Is the compiler the GNU C compiler?
19898 with_gcc=$GCC_RC
19899
19900 # An ERE matcher.
19901 EGREP=$lt_EGREP
19902
19903 # The linker used to build libraries.
19904 LD=$lt_LD_RC
19905
19906 # Whether we need hard or soft links.
19907 LN_S=$lt_LN_S
19908
19909 # A BSD-compatible nm program.
19910 NM=$lt_NM
19911
19912 # A symbol stripping program
19913 STRIP=$lt_STRIP
19914
19915 # Used to examine libraries when file_magic_cmd begins "file"
19916 MAGIC_CMD=$MAGIC_CMD
19917
19918 # Used on cygwin: DLL creation program.
19919 DLLTOOL="$DLLTOOL"
19920
19921 # Used on cygwin: object dumper.
19922 OBJDUMP="$OBJDUMP"
19923
19924 # Used on cygwin: assembler.
19925 AS="$AS"
19926
19927 # The name of the directory that contains temporary libtool files.
19928 objdir=$objdir
19929
19930 # How to create reloadable object files.
19931 reload_flag=$lt_reload_flag
19932 reload_cmds=$lt_reload_cmds
19933
19934 # How to pass a linker flag through the compiler.
19935 wl=$lt_lt_prog_compiler_wl_RC
19936
19937 # Object file suffix (normally "o").
19938 objext="$ac_objext"
19939
19940 # Old archive suffix (normally "a").
19941 libext="$libext"
19942
19943 # Shared library suffix (normally ".so").
19944 shrext_cmds='$shrext_cmds'
19945
19946 # Executable file suffix (normally "").
19947 exeext="$exeext"
19948
19949 # Additional compiler flags for building library objects.
19950 pic_flag=$lt_lt_prog_compiler_pic_RC
19951 pic_mode=$pic_mode
19952
19953 # What is the maximum length of a command?
19954 max_cmd_len=$lt_cv_sys_max_cmd_len
19955
19956 # Does compiler simultaneously support -c and -o options?
19957 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19958
19959 # Must we lock files when doing compilation?
19960 need_locks=$lt_need_locks
19961
19962 # Do we need the lib prefix for modules?
19963 need_lib_prefix=$need_lib_prefix
19964
19965 # Do we need a version for libraries?
19966 need_version=$need_version
19967
19968 # Whether dlopen is supported.
19969 dlopen_support=$enable_dlopen
19970
19971 # Whether dlopen of programs is supported.
19972 dlopen_self=$enable_dlopen_self
19973
19974 # Whether dlopen of statically linked programs is supported.
19975 dlopen_self_static=$enable_dlopen_self_static
19976
19977 # Compiler flag to prevent dynamic linking.
19978 link_static_flag=$lt_lt_prog_compiler_static_RC
19979
19980 # Compiler flag to turn off builtin functions.
19981 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19982
19983 # Compiler flag to allow reflexive dlopens.
19984 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19985
19986 # Compiler flag to generate shared objects directly from archives.
19987 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19988
19989 # Compiler flag to generate thread-safe objects.
19990 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19991
19992 # Library versioning type.
19993 version_type=$version_type
19994
19995 # Format of library name prefix.
19996 libname_spec=$lt_libname_spec
19997
19998 # List of archive names. First name is the real one, the rest are links.
19999 # The last name is the one that the linker finds with -lNAME.
20000 library_names_spec=$lt_library_names_spec
20001
20002 # The coded name of the library, if different from the real name.
20003 soname_spec=$lt_soname_spec
20004
20005 # Commands used to build and install an old-style archive.
20006 RANLIB=$lt_RANLIB
20007 old_archive_cmds=$lt_old_archive_cmds_RC
20008 old_postinstall_cmds=$lt_old_postinstall_cmds
20009 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20010
20011 # Create an old-style archive from a shared archive.
20012 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20013
20014 # Create a temporary old-style archive to link instead of a shared archive.
20015 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20016
20017 # Commands used to build and install a shared archive.
20018 archive_cmds=$lt_archive_cmds_RC
20019 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20020 postinstall_cmds=$lt_postinstall_cmds
20021 postuninstall_cmds=$lt_postuninstall_cmds
20022
20023 # Commands used to build a loadable module (assumed same as above if empty)
20024 module_cmds=$lt_module_cmds_RC
20025 module_expsym_cmds=$lt_module_expsym_cmds_RC
20026
20027 # Commands to strip libraries.
20028 old_striplib=$lt_old_striplib
20029 striplib=$lt_striplib
20030
20031 # Dependencies to place before the objects being linked to create a
20032 # shared library.
20033 predep_objects=$lt_predep_objects_RC
20034
20035 # Dependencies to place after the objects being linked to create a
20036 # shared library.
20037 postdep_objects=$lt_postdep_objects_RC
20038
20039 # Dependencies to place before the objects being linked to create a
20040 # shared library.
20041 predeps=$lt_predeps_RC
20042
20043 # Dependencies to place after the objects being linked to create a
20044 # shared library.
20045 postdeps=$lt_postdeps_RC
20046
20047 # The library search path used internally by the compiler when linking
20048 # a shared library.
20049 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20050
20051 # Method to check whether dependent libraries are shared objects.
20052 deplibs_check_method=$lt_deplibs_check_method
20053
20054 # Command to use when deplibs_check_method == file_magic.
20055 file_magic_cmd=$lt_file_magic_cmd
20056
20057 # Flag that allows shared libraries with undefined symbols to be built.
20058 allow_undefined_flag=$lt_allow_undefined_flag_RC
20059
20060 # Flag that forces no undefined symbols.
20061 no_undefined_flag=$lt_no_undefined_flag_RC
20062
20063 # Commands used to finish a libtool library installation in a directory.
20064 finish_cmds=$lt_finish_cmds
20065
20066 # Same as above, but a single script fragment to be evaled but not shown.
20067 finish_eval=$lt_finish_eval
20068
20069 # Take the output of nm and produce a listing of raw symbols and C names.
20070 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20071
20072 # Transform the output of nm in a proper C declaration
20073 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20074
20075 # Transform the output of nm in a C name address pair
20076 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20077
20078 # This is the shared library runtime path variable.
20079 runpath_var=$runpath_var
20080
20081 # This is the shared library path variable.
20082 shlibpath_var=$shlibpath_var
20083
20084 # Is shlibpath searched before the hard-coded library search path?
20085 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20086
20087 # How to hardcode a shared library path into an executable.
20088 hardcode_action=$hardcode_action_RC
20089
20090 # Whether we should hardcode library paths into libraries.
20091 hardcode_into_libs=$hardcode_into_libs
20092
20093 # Flag to hardcode \$libdir into a binary during linking.
20094 # This must work even if \$libdir does not exist.
20095 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20096
20097 # If ld is used when linking, flag to hardcode \$libdir into
20098 # a binary during linking. This must work even if \$libdir does
20099 # not exist.
20100 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20101
20102 # Whether we need a single -rpath flag with a separated argument.
20103 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20104
20105 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20106 # resulting binary.
20107 hardcode_direct=$hardcode_direct_RC
20108
20109 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20110 # resulting binary.
20111 hardcode_minus_L=$hardcode_minus_L_RC
20112
20113 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20114 # the resulting binary.
20115 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20116
20117 # Set to yes if building a shared library automatically hardcodes DIR into the library
20118 # and all subsequent libraries and executables linked against it.
20119 hardcode_automatic=$hardcode_automatic_RC
20120
20121 # Variables whose values should be saved in libtool wrapper scripts and
20122 # restored at relink time.
20123 variables_saved_for_relink="$variables_saved_for_relink"
20124
20125 # Whether libtool must link a program against all its dependency libraries.
20126 link_all_deplibs=$link_all_deplibs_RC
20127
20128 # Compile-time system search path for libraries
20129 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20130
20131 # Run-time system search path for libraries
20132 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20133
20134 # Fix the shell variable \$srcfile for the compiler.
20135 fix_srcfile_path="$fix_srcfile_path_RC"
20136
20137 # Set to yes if exported symbols are required.
20138 always_export_symbols=$always_export_symbols_RC
20139
20140 # The commands to list exported symbols.
20141 export_symbols_cmds=$lt_export_symbols_cmds_RC
20142
20143 # The commands to extract the exported symbol list from a shared archive.
20144 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20145
20146 # Symbols that should not be listed in the preloaded symbols.
20147 exclude_expsyms=$lt_exclude_expsyms_RC
20148
20149 # Symbols that must always be exported.
20150 include_expsyms=$lt_include_expsyms_RC
20151
20152 # ### END LIBTOOL TAG CONFIG: $tagname
20153
20154 __EOF__
20155
20156
20157 else
20158 # If there is no Makefile yet, we rely on a make rule to execute
20159 # `config.status --recheck' to rerun these tests and create the
20160 # libtool script then.
20161 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20162 if test -f "$ltmain_in"; then
20163 test -f Makefile && make "$ltmain"
20164 fi
20165 fi
20166
20167
20168 ac_ext=c
20169 ac_cpp='$CPP $CPPFLAGS'
20170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20173
20174 CC="$lt_save_CC"
20175
20176 ;;
20177
20178 *)
20179 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20180 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20181 { (exit 1); exit 1; }; }
20182 ;;
20183 esac
20184
20185 # Append the new tag name to the list of available tags.
20186 if test -n "$tagname" ; then
20187 available_tags="$available_tags $tagname"
20188 fi
20189 fi
20190 done
20191 IFS="$lt_save_ifs"
20192
20193 # Now substitute the updated list of available tags.
20194 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20195 mv "${ofile}T" "$ofile"
20196 chmod +x "$ofile"
20197 else
20198 rm -f "${ofile}T"
20199 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20200 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20201 { (exit 1); exit 1; }; }
20202 fi
20203 fi
20204
20205
20206
20207 # This can be used to rebuild libtool when needed
20208 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20209
20210 # Always use our own libtool.
20211 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20212
20213 # Prevent multiple expansion
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225 # No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20226 # AC_REQUIRE([AC_COIN_DLFCN_H])
20227
20228 # NEW: If libtool exists in the directory higher up, we use that one
20229 # instead of creating a new one
20230
20231 # It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20232 # out in front of this macro body. You'll notice that LIBTOOL is already
20233 # defined here. We'll have to count on this macro not being called if libtool
20234 # already exists, or at least move the libtool fixes outside the conditional.
20235 # AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20236 # This test is therefore removed. -- lh, 061214 --
20237 # if test "x$LIBTOOL" = x; then
20238
20239 # AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249 # AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20250
20251
20252
20253 { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20254 echo "$as_me: Build is \"$build\"." >&6;}
20255 # Extract the first word of "dos2unix", so it can be a program name with args.
20256 set dummy dos2unix; ac_word=$2
20257 echo "$as_me:$LINENO: checking for $ac_word" >&5
20258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20259 if test "${ac_cv_prog_dos2unix+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20261 else
20262 if test -n "$dos2unix"; then
20263 ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test.
20264 else
20265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20266 for as_dir in $PATH
20267 do
20268 IFS=$as_save_IFS
20269 test -z "$as_dir" && as_dir=.
20270 for ac_exec_ext in '' $ac_executable_extensions; do
20271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20272 ac_cv_prog_dos2unix="dos2unix"
20273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20274 break 2
20275 fi
20276 done
20277 done
20278
20279 fi
20280 fi
20281 dos2unix=$ac_cv_prog_dos2unix
20282 if test -n "$dos2unix"; then
20283 echo "$as_me:$LINENO: result: $dos2unix" >&5
20284 echo "${ECHO_T}$dos2unix" >&6
20285 else
20286 echo "$as_me:$LINENO: result: no" >&5
20287 echo "${ECHO_T}no" >&6
20288 fi
20289
20290 if test "$dos2unix" = dos2unix ; then
20291 mydos2unix="| dos2unix"
20292 fi
20293 case $build in
20294 *-mingw*)
20295 CYGPATH_W=echo
20296 ;;
20297 esac
20298
20299 case $build in
20300 # Here we need to check if -m32 is specified. If so, we need to correct
20301 # sys_lib_search_path_spec
20302 *-cygwin* | *-mingw*)
20303 case "$CXX" in
20304 clang* )
20305 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20306 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20307 echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20308 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20309 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20310 -e 's|libext="lib"|libext="a"|' \
20311 libtool > conftest.bla
20312 ;;
20313 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20314 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20315 echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20316 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20317 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20318 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20319 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20320 -e 's%lib /OUT:%lib -OUT:%' \
20321 -e "s%cygpath -w%$CYGPATH_W%" \
20322 -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%' \
20323 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20324 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20325 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20326 -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"%' \
20327 libtool > conftest.bla
20328 ;;
20329 *)
20330 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20331 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20332 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20333 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20334 -e 's|libext="lib"|libext="a"|' \
20335 libtool > conftest.bla
20336 ;;
20337 esac
20338 mv conftest.bla libtool
20339 chmod 755 libtool
20340
20341 ;;
20342 *x86_64-*)
20343 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20344 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20345 echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20346 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20347 mv conftest.bla libtool
20348 chmod 755 libtool
20349 fi
20350 ;;
20351
20352 *-solaris*)
20353 if test "$GCC" = yes && \
20354 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20355 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20356 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20357 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20358 echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20359 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20360 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20361 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20362 # AC_MSG_NOTICE(Compensating for broken gcc)
20363 for lib in $fixlibtmp ; do
20364 if test -d "${lib}${hdwisa}" ; then
20365 syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20366 fi
20367 done
20368 syslibpath64="${syslibpath64} ${fixlibtmp}"
20369 else
20370 syslibpath64="$fixlibtmp"
20371 fi
20372 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20373 mv conftest.bla libtool
20374 chmod 755 libtool
20375 fi
20376 # AC_MSG_NOTICE(Result is )
20377 # $EGREP 'sys_lib_search_path_spec=' libtool
20378 fi
20379 ;;
20380 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20381 *-darwin*)
20382 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20383 echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20384 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"/' \
20385 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20386 libtool > conftest.bla
20387
20388 mv conftest.bla libtool
20389 chmod 755 libtool
20390 ;;
20391 esac
20392 # This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20393 # the macro. -- lh, 061214 --
20394 # fi
20395
20396 # AC_MSG_NOTICE([End libtool initialisation.])
20397
20398 # AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20399 # set RPATH_FLAGS to the compiler link flags required to hardcode location
20400 # of the shared objects
20401 RPATH_FLAGS=
20402
20403 if test $enable_shared = yes; then
20404 case $build in
20405 *-linux-*)
20406 if test "$GXX" = "yes"; then
20407 RPATH_FLAGS=
20408 for dir in $abs_lib_dir; do
20409 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20410 done
20411 fi ;;
20412 *-darwin*)
20413 RPATH_FLAGS=nothing ;;
20414 *-ibm-*)
20415 case "$CXX" in
20416 xlC* | */xlC* | mpxlC* | */mpxlC*)
20417 RPATH_FLAGS=nothing ;;
20418 esac ;;
20419 *-hp-*)
20420 RPATH_FLAGS=nothing ;;
20421 *-mingw32)
20422 RPATH_FLAGS=nothing ;;
20423 *-*-solaris*)
20424 RPATH_FLAGS=
20425 for dir in $abs_lib_dir; do
20426 RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20427 done
20428 esac
20429
20430 if test "$RPATH_FLAGS" = ""; then
20431 { 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
20432 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;}
20433 fi
20434 if test "$RPATH_FLAGS" = "nothing"; then
20435 RPATH_FLAGS=
20436 fi
20437 fi
20438
20439
20440
20441
20442 else
20443
20444 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20445 echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20446 # get all missing information from the config.log file
20447
20448 # output variables and defines
20449 as_save_IFS=$IFS
20450 IFS='
20451 '
20452 for oneline in `cat $coin_config_dir/config.status`; do
20453 case "$oneline" in
20454 # First some automake conditionals
20455 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \
20456 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20457 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20458 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* )
20459 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20460 # echo "$command"
20461 eval "$command"
20462 ;;
20463 s,@DEFS@* )
20464 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20465 # echo "$command"
20466 eval "$command"
20467 ;;
20468 esac
20469 done
20470 IFS=$as_save_IFS
20471
20472 # And some defines (assuming here that the packages base dir
20473 # doesn't have a config.h file
20474 for word in $defsline; do
20475 # echo word $word
20476 case $word in
20477 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20478 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20479 # echo dd $i
20480 echo $i >>confdefs.h
20481 ;;
20482 esac
20483 done
20484 fi
20485
20486 # AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20487
20488 # Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20489 if test "${enable_dependency_linking+set}" = set; then
20490 enableval="$enable_dependency_linking"
20491 dependency_linking="$enableval"
20492 else
20493 dependency_linking=auto
20494 fi;
20495
20496 if test "$dependency_linking" = auto; then
20497 # On Cygwin and AIX, building DLLs doesn't work
20498 dependency_linking=no
20499 if test x"$coin_disable_shared" = xno; then
20500 case $build in
20501 *-cygwin* | *-mingw*)
20502 case "$CC" in
20503 clang* )
20504 dependency_linking=yes
20505 ;;
20506 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20507 dependency_linking=no
20508 ;;
20509 *gcc*)
20510 dependency_linking=yes
20511 ;;
20512 *)
20513 dependency_linking=yes
20514 ;;
20515 esac
20516 ;;
20517 *)
20518 dependency_linking=yes
20519 ;;
20520 esac
20521 fi
20522 fi
20523
20524 # Set up LT_LDFLAGS, user can initialize and we augment below
20525
20526
20527 if test "$dependency_linking" = yes ;
20528 then
20529 LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
20530 else
20531 LT_LDFLAGS="$LT_LDFLAGS"
20532 fi
20533
20534
20535
20536 if test "$dependency_linking" = yes; then
20537 DEPENDENCY_LINKING_TRUE=
20538 DEPENDENCY_LINKING_FALSE='#'
20539 else
20540 DEPENDENCY_LINKING_TRUE='#'
20541 DEPENDENCY_LINKING_FALSE=
20542 fi
20543
20544
20545 # Check if we want to set the library version
20546 echo "$as_me:$LINENO: checking if library version is set" >&5
20547 echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20548 if test x"$coin_libversion" != x; then
20549 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20550 echo "$as_me:$LINENO: result: $coin_libversion" >&5
20551 echo "${ECHO_T}$coin_libversion" >&6
20552 else
20553 echo "$as_me:$LINENO: result: no" >&5
20554 echo "${ECHO_T}no" >&6
20555 fi
20556
20557
20558
20559 #END
20560 }
20561
20562 #############################################################################
20563 # COIN-OR components #
20564 #############################################################################
20565
20566
20567
20568 # Check whether --enable-pkg-config or --disable-pkg-config was given.
20569 if test "${enable_pkg_config+set}" = set; then
20570 enableval="$enable_pkg_config"
20571 use_pkgconfig="$enableval"
20572 else
20573 if test x$coin_cc_is_cl = xtrue; then
20574 use_pkgconfig=no
20575 else
20576 use_pkgconfig=yes
20577 fi
20578 fi;
20579
20580 if test $use_pkgconfig = yes ; then
20581 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20582 if test -n "$ac_tool_prefix"; then
20583 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20584 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20585 echo "$as_me:$LINENO: checking for $ac_word" >&5
20586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20587 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
20588 echo $ECHO_N "(cached) $ECHO_C" >&6
20589 else
20590 if test -n "$PKG_CONFIG"; then
20591 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
20592 else
20593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20594 for as_dir in $PATH
20595 do
20596 IFS=$as_save_IFS
20597 test -z "$as_dir" && as_dir=.
20598 for ac_exec_ext in '' $ac_executable_extensions; do
20599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20600 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
20601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20602 break 2
20603 fi
20604 done
20605 done
20606
20607 fi
20608 fi
20609 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
20610 if test -n "$PKG_CONFIG"; then
20611 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20612 echo "${ECHO_T}$PKG_CONFIG" >&6
20613 else
20614 echo "$as_me:$LINENO: result: no" >&5
20615 echo "${ECHO_T}no" >&6
20616 fi
20617
20618 fi
20619 if test -z "$ac_cv_prog_PKG_CONFIG"; then
20620 ac_ct_PKG_CONFIG=$PKG_CONFIG
20621 # Extract the first word of "pkg-config", so it can be a program name with args.
20622 set dummy pkg-config; ac_word=$2
20623 echo "$as_me:$LINENO: checking for $ac_word" >&5
20624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20625 if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
20626 echo $ECHO_N "(cached) $ECHO_C" >&6
20627 else
20628 if test -n "$ac_ct_PKG_CONFIG"; then
20629 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
20630 else
20631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20632 for as_dir in $PATH
20633 do
20634 IFS=$as_save_IFS
20635 test -z "$as_dir" && as_dir=.
20636 for ac_exec_ext in '' $ac_executable_extensions; do
20637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20638 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
20639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20640 break 2
20641 fi
20642 done
20643 done
20644
20645 fi
20646 fi
20647 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
20648 if test -n "$ac_ct_PKG_CONFIG"; then
20649 echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
20650 echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
20651 else
20652 echo "$as_me:$LINENO: result: no" >&5
20653 echo "${ECHO_T}no" >&6
20654 fi
20655
20656 PKG_CONFIG=$ac_ct_PKG_CONFIG
20657 else
20658 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
20659 fi
20660
20661 fi
20662 if test -n "$PKG_CONFIG"; then
20663 _pkg_min_version=0.16.0
20664 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20665 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20666 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20667 echo "$as_me:$LINENO: result: yes" >&5
20668 echo "${ECHO_T}yes" >&6
20669 else
20670 echo "$as_me:$LINENO: result: no" >&5
20671 echo "${ECHO_T}no" >&6
20672 PKG_CONFIG=""
20673 fi
20674 fi
20675
20676 # check if pkg-config supports the short-errors flag
20677 if test -n "$PKG_CONFIG" && \
20678 $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20679 pkg_short_errors=" --short-errors "
20680 else
20681 pkg_short_errors=""
20682 fi
20683 fi
20684
20685
20686
20687 if test -n "$PKG_CONFIG"; then
20688 COIN_HAS_PKGCONFIG_TRUE=
20689 COIN_HAS_PKGCONFIG_FALSE='#'
20690 else
20691 COIN_HAS_PKGCONFIG_TRUE='#'
20692 COIN_HAS_PKGCONFIG_FALSE=
20693 fi
20694
20695
20696
20697 # assemble pkg-config search path for installed projects
20698 COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20699
20700 # 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
20701 # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
20702 # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
20703 if test "x${prefix}" = xNONE ; then
20704 COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20705 else
20706 COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20707 fi
20708
20709
20710 # Check whether --with-coin-instdir or --without-coin-instdir was given.
20711 if test "${with_coin_instdir+set}" = set; then
20712 withval="$with_coin_instdir"
20713 if test -d "$withval"; then : ; else
20714 { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
20715 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
20716 { (exit 1); exit 1; }; }
20717 fi
20718 COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20719
20720 fi;
20721
20722
20723
20724 # assemble additional pkg-config search paths for uninstalled projects
20725 if test x$coin_projectdir = xyes ; then
20726 # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
20727 # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
20728 # unfortunately, if the user set prefix, then we do not know where the project base directory is located
20729 # 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)
20730 COIN_PKG_CONFIG_PATH_UNINSTALLED=
20731 if test -f ../coin_subdirs.txt ; then
20732 for i in `cat ../coin_subdirs.txt` ; do
20733 if test -d ../$i ; then
20734 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20735 fi
20736 if test -d ../$i/pkgconfig ; then
20737 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20738 fi
20739 done
20740 fi
20741
20742 if test -f ../../coin_subdirs.txt ; then
20743 for i in `cat ../../coin_subdirs.txt` ; do
20744 if test -d ../../$i ; then
20745 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20746 fi
20747 if test -d ../../$i/pkgconfig ; then
20748 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20749 fi
20750 done
20751 fi
20752
20753 if test -f ../../../coin_subdirs.txt ; then
20754 for i in `cat ../../../coin_subdirs.txt` ; do
20755 if test -d ../../../$i ; then
20756 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20757 fi
20758 if test -d ../../../$i/pkgconfig ; then
20759 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20760 fi
20761 done
20762 fi
20763
20764
20765 fi
20766
20767 if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
20768 { 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
20769 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;}
20770 fi
20771
20772
20773
20774 echo "$as_me:$LINENO: checking for COIN-OR package CoinDepend" >&5
20775 echo $ECHO_N "checking for COIN-OR package CoinDepend... $ECHO_C" >&6
20776
20777 coin_has_coindepend=notGiven
20778
20779 # check if user wants to skip package in any case
20780 if test x"$COIN_SKIP_PROJECTS" != x; then
20781 for dir in $COIN_SKIP_PROJECTS; do
20782 if test $dir = "CoinDepend"; then
20783 coin_has_coindepend=skipping
20784 fi
20785 done
20786 fi
20787
20788 if test "$coin_has_coindepend" != skipping; then
20789
20790 # Check whether --with-m4_tolower(CoinDepend) or --without-m4_tolower(CoinDepend) was given.
20791 if test "${with_coindepend+set}" = set; then
20792 withval="$with_coindepend"
20793 if test "$withval" = no ; then
20794 coin_has_coindepend=skipping
20795 fi
20796
20797 fi;
20798 fi
20799
20800 COINDEPEND_LIBS=
20801 COINDEPEND_CFLAGS=
20802 COINDEPEND_DATA=
20803 COINDEPEND_DEPENDENCIES=
20804 COINDEPEND_PCLIBS=
20805 COINDEPEND_PCREQUIRES=
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
20824 if test $coin_has_coindepend != skipping; then
20825
20826 # Check whether --with-m4_tolower(CoinDepend)-lib or --without-m4_tolower(CoinDepend)-lib was given.
20827 if test "${with_coindepend_lib+set}" = set; then
20828 withval="$with_coindepend_lib"
20829 if test "$withval" = no ; then
20830 coin_has_coindepend=skipping
20831 else
20832 coin_has_coindepend=yes
20833 COINDEPEND_LIBS="$withval"
20834 COINDEPEND_PCLIBS="$withval"
20835
20836 BONMINLIB_PCLIBS="$withval $BONMINLIB_PCLIBS"
20837 BONMINLIB_LIBS="$withval $BONMINLIB_LIBS"
20838
20839 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20840 if test -z "$PKG_CONFIG" ; then
20841 COINDEPEND_LIBS_INSTALLED="$withval"
20842 BONMINLIB_LIBS_INSTALLED="$withval $BONMINLIB_LIBS_INSTALLED"
20843 fi
20844 fi
20845
20846 fi;
20847 fi
20848
20849 if test $coin_has_coindepend != skipping; then
20850
20851 # Check whether --with-m4_tolower(CoinDepend)-incdir or --without-m4_tolower(CoinDepend)-incdir was given.
20852 if test "${with_coindepend_incdir+set}" = set; then
20853 withval="$with_coindepend_incdir"
20854 if test "$withval" = no ; then
20855 coin_has_coindepend=skipping
20856 else
20857 coin_has_coindepend=yes
20858 COINDEPEND_CFLAGS="-I`${CYGPATH_W} $withval`"
20859 BONMINLIB_CFLAGS="-I`${CYGPATH_W} $withval` $BONMINLIB_CFLAGS"
20860 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20861 if test -z "$PKG_CONFIG" ; then
20862 COINDEPEND_CFLAGS_INSTALLED="$COINDEPEND_CFLAGS"
20863 BONMINLIB_CFLAGS_INSTALLED="$COINDEPEND_CFLAGS $BONMINLIB_CFLAGS_INSTALLED"
20864 fi
20865 fi
20866
20867 fi;
20868 fi
20869
20870 if test $coin_has_coindepend != skipping; then
20871
20872 # Check whether --with-m4_tolower(CoinDepend)-datadir or --without-m4_tolower(CoinDepend)-datadir was given.
20873 if test "${with_coindepend_datadir+set}" = set; then
20874 withval="$with_coindepend_datadir"
20875 if test "$withval" = no ; then
20876 coin_has_coindepend=skipping
20877 else
20878 coin_has_coindepend=yes
20879 COINDEPEND_DATA="$withval"
20880 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20881 if test -z "$PKG_CONFIG" ; then
20882 COINDEPEND_DATA_INSTALLED="$withval"
20883 fi
20884 fi
20885
20886 fi;
20887 fi
20888
20889 if test $coin_has_coindepend = notGiven; then
20890 if test -n "$PKG_CONFIG" ; then
20891 # set search path for pkg-config
20892 # need to export variable to be sure that the following pkg-config gets these values
20893 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20894 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
20895 export PKG_CONFIG_PATH
20896
20897 # let pkg-config do it's magic
20898
20899
20900
20901 if test -n "$PKG_CONFIG" ; then
20902 if $PKG_CONFIG --exists "cbc osi-clp ipopt"; then
20903 COINDEPEND_VERSIONS=`$PKG_CONFIG --modversion "cbc osi-clp ipopt" 2>/dev/null | tr '\n' ' '`
20904 cflags=`$PKG_CONFIG --cflags "cbc osi-clp ipopt" 2>/dev/null`
20905 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
20906 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
20907 # but only do this if is not trivial
20908 if test "$CYGPATH_W" != "echo" ; then
20909 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
20910 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
20911 fi
20912 COINDEPEND_CFLAGS="$cflags"
20913 COINDEPEND_LIBS=`$PKG_CONFIG --libs "cbc osi-clp ipopt" 2>/dev/null`
20914 COINDEPEND_DATA=`$PKG_CONFIG --variable=datadir "cbc osi-clp ipopt" 2>/dev/null`
20915 coin_has_coindepend=yes
20916 echo "$as_me:$LINENO: result: yes: $COINDEPEND_VERSIONS" >&5
20917 echo "${ECHO_T}yes: $COINDEPEND_VERSIONS" >&6
20918
20919 # adjust linker flags for (i)cl compiler
20920 # 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)
20921 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
20922 then
20923 COINDEPEND_LIBS=`echo " $COINDEPEND_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
20924 fi
20925 COINDEPEND_PCREQUIRES="cbc osi-clp ipopt"
20926
20927 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in BonminLib
20928
20929 BONMINLIB_PCREQUIRES="cbc osi-clp ipopt $BONMINLIB_PCREQUIRES"
20930 BONMINLIB_CFLAGS="$COINDEPEND_CFLAGS $BONMINLIB_CFLAGS"
20931 BONMINLIB_LIBS="$COINDEPEND_LIBS $BONMINLIB_LIBS"
20932
20933
20934
20935 else
20936 COINDEPEND_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "cbc osi-clp ipopt"`
20937 coin_has_coindepend=notGiven
20938 echo "$as_me:$LINENO: result: not given: $COINDEPEND_PKG_ERRORS" >&5
20939 echo "${ECHO_T}not given: $COINDEPEND_PKG_ERRORS" >&6
20940
20941 fi
20942 else
20943 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module CoinDepend without pkg-config\"" >&5
20944 echo "$as_me: error: \"Cannot check for existance of module CoinDepend without pkg-config\"" >&2;}
20945 { (exit 1); exit 1; }; }
20946 fi
20947
20948
20949
20950
20951 # reset PKG_CONFIG_PATH variable
20952 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
20953 export PKG_CONFIG_PATH
20954
20955 else
20956 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
20957 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
20958
20959 echo "$as_me:$LINENO: checking for COIN-OR package CoinDepend (fallback)" >&5
20960 echo $ECHO_N "checking for COIN-OR package CoinDepend (fallback)... $ECHO_C" >&6
20961
20962 coin_has_coindepend=notGiven
20963 COINDEPEND_LIBS=
20964 COINDEPEND_LIBS_INSTALLED=
20965 COINDEPEND_CFLAGS=
20966 COINDEPEND_CFLAGS_INSTALLED=
20967 COINDEPEND_DATA=
20968 COINDEPEND_DATA_INSTALLED=
20969 COINDEPEND_PCLIBS=
20970 COINDEPEND_PCREQUIRES=
20971
20972 # initial list of dependencies is "cbc osi-clp ipopt", but we need to filter out version number specifications (= x, <= x, >= x, != x)
20973 projtoprocess="cbc osi-clp ipopt"
20974
20975 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
20976 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
20977 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
20978 # also, we setup the DATA variable
20979 allproj=""
20980 allpcfiles=""
20981 allpcifiles=""
20982 while test "x$projtoprocess" != x ; do
20983
20984 for proj in $projtoprocess ; do
20985 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
20986 pcfile=""
20987 save_IFS="$IFS"
20988 IFS=":"
20989 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
20990 # 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
20991 if test -r "$dir/${proj}-uninstalled.pc" ; then
20992 pcfile="$dir/$proj-uninstalled.pc"
20993 if test -r "$dir/${proj}.pc" ; then
20994 pcifile="$dir/${proj}.pc"
20995 else
20996 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
20997 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
20998 pcifile=
20999 fi
21000 break
21001 fi
21002 done
21003 IFS="$save_IFS"
21004
21005 if test "x$pcfile" != x ; then
21006 # read dependencies from $pcfile and filter it
21007 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
21008
21009 # add projrequires to the front of the list of projects that have to be processed next
21010 # at the same time, remove $proj from this list
21011 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21012
21013 # read DATA from $pcfile, if _DATA is still empty
21014 if test "x$COINDEPEND_DATA" = x ; then
21015 projdatadir=
21016 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21017 eval `sh -c "$pcfilemod"`
21018 COINDEPEND_DATA="$projdatadir"
21019 fi
21020
21021 allproj="$allproj $proj"
21022 allpcfiles="$pcfile:$allpcfiles"
21023
21024 else
21025 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21026 echo "${ECHO_T}no, dependency $proj not available" >&6
21027 allproj=fail
21028 break 2
21029 fi
21030
21031 if test "x$pcifile" != x ; then
21032 allpcifiles="$pcifile:$allpcifiles"
21033
21034 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21035 if test "x$COINDEPEND_DATA_INSTALLED" = x ; then
21036 projdatadir=
21037 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21038 eval `sh -c "$pcifilemod"`
21039 if test "${CYGPATH_W}" != "echo"; then
21040 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21041 fi
21042 COINDEPEND_DATA_INSTALLED="$projdatadir"
21043 fi
21044
21045 fi
21046
21047 break
21048 done
21049
21050 # remove spaces on begin of $projtoprocess
21051 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21052
21053 done
21054
21055 if test "$allproj" != fail ; then
21056
21057 # now go through the list of .pc files and assemble compiler and linker flags
21058 # important is here to obey the reverse order that has been setup before,
21059 # since then libraries that are required by several others should be after these other libraries
21060 pcfilesprocessed=""
21061
21062 save_IFS="$IFS"
21063 IFS=":"
21064 for pcfile in $allpcfiles ; do
21065
21066 # if $pcfile has been processed already, skip this round
21067 if test "x$pcfilesprocessed" != x ; then
21068 for pcfiledone in $pcfilesprocessed ; do
21069 if test "$pcfiledone" = "$pcfile" ; then
21070 continue 2
21071 fi
21072 done
21073 fi
21074
21075 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21076 # replace "Libs:" by "echo projlibs="
21077 # replace "Cflags:" by "echo projcflags="
21078 # remove every line starting with <some word>:
21079 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21080
21081 # set projcflags and projlibs variables by running $pcfilemod
21082 # 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
21083 projcflags=
21084 projlibs=
21085 IFS="$save_IFS"
21086 eval `sh -c "$pcfilemod"`
21087 IFS=":"
21088
21089 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21090 if test "${CYGPATH_W}" != "echo"; then
21091 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21092 fi
21093 COINDEPEND_CFLAGS="$projcflags $COINDEPEND_CFLAGS"
21094
21095 # set LIBS variable
21096 COINDEPEND_LIBS="$projlibs $COINDEPEND_LIBS"
21097
21098 # remember that we have processed $pcfile
21099 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21100
21101 done
21102 IFS="$save_IFS"
21103
21104
21105 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21106 # important is here again to obey the reverse order that has been setup before,
21107 # since then libraries that are required by several others should be after these other libraries
21108 pcfilesprocessed=""
21109
21110 save_IFS="$IFS"
21111 IFS=":"
21112 for pcfile in $allpcifiles ; do
21113
21114 # if $pcfile has been processed already, skip this round
21115 if test "x$pcfilesprocessed" != x ; then
21116 for pcfiledone in $pcfilesprocessed ; do
21117 if test "$pcfiledone" = "$pcfile" ; then
21118 continue 2
21119 fi
21120 done
21121 fi
21122
21123 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21124 # replace "Libs:" by "echo projlibs="
21125 # replace "Cflags:" by "echo projcflags="
21126 # remove every line starting with <some word>:
21127 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21128
21129 # set projcflags and projlibs variables by running $pcfilemod
21130 # 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
21131 projcflags=
21132 projlibs=
21133 IFS="$save_IFS"
21134 eval `sh -c "$pcfilemod"`
21135 IFS=":"
21136
21137 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21138 if test "${CYGPATH_W}" != "echo"; then
21139 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21140 fi
21141 COINDEPEND_CFLAGS_INSTALLED="$projcflags $COINDEPEND_CFLAGS_INSTALLED"
21142
21143 # set LIBS variable
21144 COINDEPEND_LIBS_INSTALLED="$projlibs $COINDEPEND_LIBS_INSTALLED"
21145
21146 # remember that we have processed $pcfile
21147 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21148
21149 done
21150 IFS="$save_IFS"
21151
21152
21153 # finish up
21154 coin_has_coindepend=yes
21155 echo "$as_me:$LINENO: result: yes" >&5
21156 echo "${ECHO_T}yes" >&6
21157
21158 cat >>confdefs.h <<\_ACEOF
21159 #define COIN_HAS_COINDEPEND 1
21160 _ACEOF
21161
21162
21163 # adjust linker flags for (i)cl compiler
21164 # 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),
21165 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21166 # everything of the form "-lname" by "libname.lib", and
21167 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21168 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21169 then
21170 COINDEPEND_LIBS=`echo " $COINDEPEND_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21171 COINDEPEND_LIBS_INSTALLED=`echo " $COINDEPEND_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21172 fi
21173
21174 COINDEPEND_PCREQUIRES="cbc osi-clp ipopt"
21175
21176 BONMINLIB_PCREQUIRES="cbc osi-clp ipopt $BONMINLIB_PCREQUIRES"
21177 BONMINLIB_CFLAGS="$COINDEPEND_CFLAGS $BONMINLIB_CFLAGS"
21178 BONMINLIB_LIBS="$COINDEPEND_LIBS $BONMINLIB_LIBS"
21179 BONMINLIB_CFLAGS_INSTALLED="$COINDEPEND_CFLAGS_INSTALLED $BONMINLIB_CFLAGS_INSTALLED"
21180 BONMINLIB_LIBS_INSTALLED="$COINDEPEND_LIBS_INSTALLED $BONMINLIB_LIBS_INSTALLED"
21181
21182
21183 fi
21184
21185
21186
21187 if test $coin_has_coindepend != notGiven &&
21188 test $coin_has_coindepend != skipping; then
21189 COIN_HAS_COINDEPEND_TRUE=
21190 COIN_HAS_COINDEPEND_FALSE='#'
21191 else
21192 COIN_HAS_COINDEPEND_TRUE='#'
21193 COIN_HAS_COINDEPEND_FALSE=
21194 fi
21195
21196
21197
21198 fi
21199
21200 else
21201 echo "$as_me:$LINENO: result: $coin_has_coindepend" >&5
21202 echo "${ECHO_T}$coin_has_coindepend" >&6
21203 fi
21204
21205 if test $coin_has_coindepend != skipping &&
21206 test $coin_has_coindepend != notGiven ; then
21207
21208 cat >>confdefs.h <<\_ACEOF
21209 #define COIN_HAS_COINDEPEND 1
21210 _ACEOF
21211
21212
21213 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21214 if test "${enable_interpackage_dependencies+set}" = set; then
21215 enableval="$enable_interpackage_dependencies"
21216
21217 else
21218 enable_interpackage_dependencies=yes
21219 fi;
21220
21221 if test $enable_interpackage_dependencies = yes ; then
21222 # construct dependencies variables from LIBS variables
21223 # we add an extra space in LIBS so we can substitute out everything starting with " -"
21224 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21225 # then remove everything of the form -xxx
21226 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21227 COINDEPEND_DEPENDENCIES=`echo " $COINDEPEND_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21228
21229 BONMINLIB_DEPENDENCIES=`echo " $BONMINLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21230
21231 fi
21232
21233 if test 1 = 0 ; then #change this test to enable a bit of debugging output
21234 if test -n "$COINDEPEND_CFLAGS" ; then
21235 { echo "$as_me:$LINENO: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&5
21236 echo "$as_me: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&6;}
21237 fi
21238 if test -n "$COINDEPEND_LIBS" ; then
21239 { echo "$as_me:$LINENO: CoinDepend LIBS are $COINDEPEND_LIBS" >&5
21240 echo "$as_me: CoinDepend LIBS are $COINDEPEND_LIBS" >&6;}
21241 fi
21242 if test -n "$COINDEPEND_DEPENDENCIES" ; then
21243 { echo "$as_me:$LINENO: CoinDepend DEPENDENCIES are $COINDEPEND_DEPENDENCIES" >&5
21244 echo "$as_me: CoinDepend DEPENDENCIES are $COINDEPEND_DEPENDENCIES" >&6;}
21245 fi
21246 if test -n "$COINDEPEND_DATA" ; then
21247 { echo "$as_me:$LINENO: CoinDepend DATA is $COINDEPEND_DATA" >&5
21248 echo "$as_me: CoinDepend DATA is $COINDEPEND_DATA" >&6;}
21249 fi
21250 if test -n "$COINDEPEND_PCLIBS" ; then
21251 { echo "$as_me:$LINENO: CoinDepend PCLIBS are $COINDEPEND_PCLIBS" >&5
21252 echo "$as_me: CoinDepend PCLIBS are $COINDEPEND_PCLIBS" >&6;}
21253 fi
21254 if test -n "$COINDEPEND_PCREQUIRES" ; then
21255 { echo "$as_me:$LINENO: CoinDepend PCREQUIRES are $COINDEPEND_PCREQUIRES" >&5
21256 echo "$as_me: CoinDepend PCREQUIRES are $COINDEPEND_PCREQUIRES" >&6;}
21257 fi
21258
21259 { echo "$as_me:$LINENO: BonminLib CFLAGS are $BONMINLIB_CFLAGS" >&5
21260 echo "$as_me: BonminLib CFLAGS are $BONMINLIB_CFLAGS" >&6;}
21261 { echo "$as_me:$LINENO: BonminLib LIBS are $BONMINLIB_LIBS" >&5
21262 echo "$as_me: BonminLib LIBS are $BONMINLIB_LIBS" >&6;}
21263 { echo "$as_me:$LINENO: BonminLib DEPENDENCIES are $BONMINLIB_DEPENDENCIES" >&5
21264 echo "$as_me: BonminLib DEPENDENCIES are $BONMINLIB_DEPENDENCIES" >&6;}
21265
21266 fi
21267 fi
21268
21269 # Define the Makefile conditional
21270
21271
21272 if test $coin_has_coindepend != notGiven &&
21273 test $coin_has_coindepend != skipping; then
21274 COIN_HAS_COINDEPEND_TRUE=
21275 COIN_HAS_COINDEPEND_FALSE='#'
21276 else
21277 COIN_HAS_COINDEPEND_TRUE='#'
21278 COIN_HAS_COINDEPEND_FALSE=
21279 fi
21280
21281
21282
21283 if test $coin_has_coindepend != yes ; then
21284 { { echo "$as_me:$LINENO: error: Required package Cbc or Ipopt not available." >&5
21285 echo "$as_me: error: Required package Cbc or Ipopt not available." >&2;}
21286 { (exit 1); exit 1; }; }
21287 fi
21288
21289
21290 echo "$as_me:$LINENO: checking for COIN-OR package ASL" >&5
21291 echo $ECHO_N "checking for COIN-OR package ASL... $ECHO_C" >&6
21292
21293 coin_has_asl=notGiven
21294
21295 # check if user wants to skip package in any case
21296 if test x"$COIN_SKIP_PROJECTS" != x; then
21297 for dir in $COIN_SKIP_PROJECTS; do
21298 if test $dir = "ASL"; then
21299 coin_has_asl=skipping
21300 fi
21301 done
21302 fi
21303
21304 if test "$coin_has_asl" != skipping; then
21305
21306 # Check whether --with-m4_tolower(ASL) or --without-m4_tolower(ASL) was given.
21307 if test "${with_asl+set}" = set; then
21308 withval="$with_asl"
21309 if test "$withval" = no ; then
21310 coin_has_asl=skipping
21311 fi
21312
21313 fi;
21314 fi
21315
21316 ASL_LIBS=
21317 ASL_CFLAGS=
21318 ASL_DATA=
21319 ASL_DEPENDENCIES=
21320 ASL_PCLIBS=
21321 ASL_PCREQUIRES=
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21340 if test $coin_has_asl != skipping; then
21341
21342 # Check whether --with-m4_tolower(ASL)-lib or --without-m4_tolower(ASL)-lib was given.
21343 if test "${with_asl_lib+set}" = set; then
21344 withval="$with_asl_lib"
21345 if test "$withval" = no ; then
21346 coin_has_asl=skipping
21347 else
21348 coin_has_asl=yes
21349 ASL_LIBS="$withval"
21350 ASL_PCLIBS="$withval"
21351
21352 BONMINAMPLINTERFACELIB_PCLIBS="$withval $BONMINAMPLINTERFACELIB_PCLIBS"
21353 BONMINAMPLINTERFACELIB_LIBS="$withval $BONMINAMPLINTERFACELIB_LIBS"
21354
21355 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21356 if test -z "$PKG_CONFIG" ; then
21357 ASL_LIBS_INSTALLED="$withval"
21358 BONMINAMPLINTERFACELIB_LIBS_INSTALLED="$withval $BONMINAMPLINTERFACELIB_LIBS_INSTALLED"
21359 fi
21360 fi
21361
21362 fi;
21363 fi
21364
21365 if test $coin_has_asl != skipping; then
21366
21367 # Check whether --with-m4_tolower(ASL)-incdir or --without-m4_tolower(ASL)-incdir was given.
21368 if test "${with_asl_incdir+set}" = set; then
21369 withval="$with_asl_incdir"
21370 if test "$withval" = no ; then
21371 coin_has_asl=skipping
21372 else
21373 coin_has_asl=yes
21374 ASL_CFLAGS="-I`${CYGPATH_W} $withval`"
21375 BONMINAMPLINTERFACELIB_CFLAGS="-I`${CYGPATH_W} $withval` $BONMINAMPLINTERFACELIB_CFLAGS"
21376 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21377 if test -z "$PKG_CONFIG" ; then
21378 ASL_CFLAGS_INSTALLED="$ASL_CFLAGS"
21379 BONMINAMPLINTERFACELIB_CFLAGS_INSTALLED="$ASL_CFLAGS $BONMINAMPLINTERFACELIB_CFLAGS_INSTALLED"
21380 fi
21381 fi
21382
21383 fi;
21384 fi
21385
21386 if test $coin_has_asl != skipping; then
21387
21388 # Check whether --with-m4_tolower(ASL)-datadir or --without-m4_tolower(ASL)-datadir was given.
21389 if test "${with_asl_datadir+set}" = set; then
21390 withval="$with_asl_datadir"
21391 if test "$withval" = no ; then
21392 coin_has_asl=skipping
21393 else
21394 coin_has_asl=yes
21395 ASL_DATA="$withval"
21396 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21397 if test -z "$PKG_CONFIG" ; then
21398 ASL_DATA_INSTALLED="$withval"
21399 fi
21400 fi
21401
21402 fi;
21403 fi
21404
21405 if test $coin_has_asl = notGiven; then
21406 if test -n "$PKG_CONFIG" ; then
21407 # set search path for pkg-config
21408 # need to export variable to be sure that the following pkg-config gets these values
21409 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21410 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21411 export PKG_CONFIG_PATH
21412
21413 # let pkg-config do it's magic
21414
21415
21416
21417 if test -n "$PKG_CONFIG" ; then
21418 if $PKG_CONFIG --exists "ipoptamplinterface"; then
21419 ASL_VERSIONS=`$PKG_CONFIG --modversion "ipoptamplinterface" 2>/dev/null | tr '\n' ' '`
21420 cflags=`$PKG_CONFIG --cflags "ipoptamplinterface" 2>/dev/null`
21421 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21422 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21423 # but only do this if is not trivial
21424 if test "$CYGPATH_W" != "echo" ; then
21425 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21426 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21427 fi
21428 ASL_CFLAGS="$cflags"
21429 ASL_LIBS=`$PKG_CONFIG --libs "ipoptamplinterface" 2>/dev/null`
21430 ASL_DATA=`$PKG_CONFIG --variable=datadir "ipoptamplinterface" 2>/dev/null`
21431 coin_has_asl=yes
21432 echo "$as_me:$LINENO: result: yes: $ASL_VERSIONS" >&5
21433 echo "${ECHO_T}yes: $ASL_VERSIONS" >&6
21434
21435 # adjust linker flags for (i)cl compiler
21436 # 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)
21437 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21438 then
21439 ASL_LIBS=`echo " $ASL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21440 fi
21441 ASL_PCREQUIRES="ipoptamplinterface"
21442
21443 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in BonminAmplInterfaceLib
21444
21445 BONMINAMPLINTERFACELIB_PCREQUIRES="ipoptamplinterface $BONMINAMPLINTERFACELIB_PCREQUIRES"
21446 BONMINAMPLINTERFACELIB_CFLAGS="$ASL_CFLAGS $BONMINAMPLINTERFACELIB_CFLAGS"
21447 BONMINAMPLINTERFACELIB_LIBS="$ASL_LIBS $BONMINAMPLINTERFACELIB_LIBS"
21448
21449
21450
21451 else
21452 ASL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "ipoptamplinterface"`
21453 coin_has_asl=notGiven
21454 echo "$as_me:$LINENO: result: not given: $ASL_PKG_ERRORS" >&5
21455 echo "${ECHO_T}not given: $ASL_PKG_ERRORS" >&6
21456
21457 fi
21458 else
21459 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module ASL without pkg-config\"" >&5
21460 echo "$as_me: error: \"Cannot check for existance of module ASL without pkg-config\"" >&2;}
21461 { (exit 1); exit 1; }; }
21462 fi
21463
21464
21465
21466
21467 # reset PKG_CONFIG_PATH variable
21468 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21469 export PKG_CONFIG_PATH
21470
21471 else
21472 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21473 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21474
21475 echo "$as_me:$LINENO: checking for COIN-OR package ASL (fallback)" >&5
21476 echo $ECHO_N "checking for COIN-OR package ASL (fallback)... $ECHO_C" >&6
21477
21478 coin_has_asl=notGiven
21479 ASL_LIBS=
21480 ASL_LIBS_INSTALLED=
21481 ASL_CFLAGS=
21482 ASL_CFLAGS_INSTALLED=
21483 ASL_DATA=
21484 ASL_DATA_INSTALLED=
21485 ASL_PCLIBS=
21486 ASL_PCREQUIRES=
21487
21488 # initial list of dependencies is "ipoptamplinterface", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21489 projtoprocess="ipoptamplinterface"
21490
21491 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
21492 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
21493 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
21494 # also, we setup the DATA variable
21495 allproj=""
21496 allpcfiles=""
21497 allpcifiles=""
21498 while test "x$projtoprocess" != x ; do
21499
21500 for proj in $projtoprocess ; do
21501 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21502 pcfile=""
21503 save_IFS="$IFS"
21504 IFS=":"
21505 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21506 # 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
21507 if test -r "$dir/${proj}-uninstalled.pc" ; then
21508 pcfile="$dir/$proj-uninstalled.pc"
21509 if test -r "$dir/${proj}.pc" ; then
21510 pcifile="$dir/${proj}.pc"
21511 else
21512 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
21513 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
21514 pcifile=
21515 fi
21516 break
21517 fi
21518 done
21519 IFS="$save_IFS"
21520
21521 if test "x$pcfile" != x ; then
21522 # read dependencies from $pcfile and filter it
21523 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
21524
21525 # add projrequires to the front of the list of projects that have to be processed next
21526 # at the same time, remove $proj from this list
21527 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21528
21529 # read DATA from $pcfile, if _DATA is still empty
21530 if test "x$ASL_DATA" = x ; then
21531 projdatadir=
21532 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21533 eval `sh -c "$pcfilemod"`
21534 ASL_DATA="$projdatadir"
21535 fi
21536
21537 allproj="$allproj $proj"
21538 allpcfiles="$pcfile:$allpcfiles"
21539
21540 else
21541 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21542 echo "${ECHO_T}no, dependency $proj not available" >&6
21543 allproj=fail
21544 break 2
21545 fi
21546
21547 if test "x$pcifile" != x ; then
21548 allpcifiles="$pcifile:$allpcifiles"
21549
21550 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21551 if test "x$ASL_DATA_INSTALLED" = x ; then
21552 projdatadir=
21553 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21554 eval `sh -c "$pcifilemod"`
21555 if test "${CYGPATH_W}" != "echo"; then
21556 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21557 fi
21558 ASL_DATA_INSTALLED="$projdatadir"
21559 fi
21560
21561 fi
21562
21563 break
21564 done
21565
21566 # remove spaces on begin of $projtoprocess
21567 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21568
21569 done
21570
21571 if test "$allproj" != fail ; then
21572
21573 # now go through the list of .pc files and assemble compiler and linker flags
21574 # important is here to obey the reverse order that has been setup before,
21575 # since then libraries that are required by several others should be after these other libraries
21576 pcfilesprocessed=""
21577
21578 save_IFS="$IFS"
21579 IFS=":"
21580 for pcfile in $allpcfiles ; do
21581
21582 # if $pcfile has been processed already, skip this round
21583 if test "x$pcfilesprocessed" != x ; then
21584 for pcfiledone in $pcfilesprocessed ; do
21585 if test "$pcfiledone" = "$pcfile" ; then
21586 continue 2
21587 fi
21588 done
21589 fi
21590
21591 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21592 # replace "Libs:" by "echo projlibs="
21593 # replace "Cflags:" by "echo projcflags="
21594 # remove every line starting with <some word>:
21595 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21596
21597 # set projcflags and projlibs variables by running $pcfilemod
21598 # 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
21599 projcflags=
21600 projlibs=
21601 IFS="$save_IFS"
21602 eval `sh -c "$pcfilemod"`
21603 IFS=":"
21604
21605 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21606 if test "${CYGPATH_W}" != "echo"; then
21607 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21608 fi
21609 ASL_CFLAGS="$projcflags $ASL_CFLAGS"
21610
21611 # set LIBS variable
21612 ASL_LIBS="$projlibs $ASL_LIBS"
21613
21614 # remember that we have processed $pcfile
21615 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21616
21617 done
21618 IFS="$save_IFS"
21619
21620
21621 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21622 # important is here again to obey the reverse order that has been setup before,
21623 # since then libraries that are required by several others should be after these other libraries
21624 pcfilesprocessed=""
21625
21626 save_IFS="$IFS"
21627 IFS=":"
21628 for pcfile in $allpcifiles ; do
21629
21630 # if $pcfile has been processed already, skip this round
21631 if test "x$pcfilesprocessed" != x ; then
21632 for pcfiledone in $pcfilesprocessed ; do
21633 if test "$pcfiledone" = "$pcfile" ; then
21634 continue 2
21635 fi
21636 done
21637 fi
21638
21639 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21640 # replace "Libs:" by "echo projlibs="
21641 # replace "Cflags:" by "echo projcflags="
21642 # remove every line starting with <some word>:
21643 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21644
21645 # set projcflags and projlibs variables by running $pcfilemod
21646 # 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
21647 projcflags=
21648 projlibs=
21649 IFS="$save_IFS"
21650 eval `sh -c "$pcfilemod"`
21651 IFS=":"
21652
21653 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21654 if test "${CYGPATH_W}" != "echo"; then
21655 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21656 fi
21657 ASL_CFLAGS_INSTALLED="$projcflags $ASL_CFLAGS_INSTALLED"
21658
21659 # set LIBS variable
21660 ASL_LIBS_INSTALLED="$projlibs $ASL_LIBS_INSTALLED"
21661
21662 # remember that we have processed $pcfile
21663 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21664
21665 done
21666 IFS="$save_IFS"
21667
21668
21669 # finish up
21670 coin_has_asl=yes
21671 echo "$as_me:$LINENO: result: yes" >&5
21672 echo "${ECHO_T}yes" >&6
21673
21674 cat >>confdefs.h <<\_ACEOF
21675 #define COIN_HAS_ASL 1
21676 _ACEOF
21677
21678
21679 # adjust linker flags for (i)cl compiler
21680 # 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),
21681 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21682 # everything of the form "-lname" by "libname.lib", and
21683 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21684 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21685 then
21686 ASL_LIBS=`echo " $ASL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21687 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'`
21688 fi
21689
21690 ASL_PCREQUIRES="ipoptamplinterface"
21691
21692 BONMINAMPLINTERFACELIB_PCREQUIRES="ipoptamplinterface $BONMINAMPLINTERFACELIB_PCREQUIRES"
21693 BONMINAMPLINTERFACELIB_CFLAGS="$ASL_CFLAGS $BONMINAMPLINTERFACELIB_CFLAGS"
21694 BONMINAMPLINTERFACELIB_LIBS="$ASL_LIBS $BONMINAMPLINTERFACELIB_LIBS"
21695 BONMINAMPLINTERFACELIB_CFLAGS_INSTALLED="$ASL_CFLAGS_INSTALLED $BONMINAMPLINTERFACELIB_CFLAGS_INSTALLED"
21696 BONMINAMPLINTERFACELIB_LIBS_INSTALLED="$ASL_LIBS_INSTALLED $BONMINAMPLINTERFACELIB_LIBS_INSTALLED"
21697
21698
21699 fi
21700
21701
21702
21703 if test $coin_has_asl != notGiven &&
21704 test $coin_has_asl != skipping; then
21705 COIN_HAS_ASL_TRUE=
21706 COIN_HAS_ASL_FALSE='#'
21707 else
21708 COIN_HAS_ASL_TRUE='#'
21709 COIN_HAS_ASL_FALSE=
21710 fi
21711
21712
21713
21714 fi
21715
21716 else
21717 echo "$as_me:$LINENO: result: $coin_has_asl" >&5
21718 echo "${ECHO_T}$coin_has_asl" >&6
21719 fi
21720
21721 if test $coin_has_asl != skipping &&
21722 test $coin_has_asl != notGiven ; then
21723
21724 cat >>confdefs.h <<\_ACEOF
21725 #define COIN_HAS_ASL 1
21726 _ACEOF
21727
21728
21729 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21730 if test "${enable_interpackage_dependencies+set}" = set; then
21731 enableval="$enable_interpackage_dependencies"
21732
21733 else
21734 enable_interpackage_dependencies=yes
21735 fi;
21736
21737 if test $enable_interpackage_dependencies = yes ; then
21738 # construct dependencies variables from LIBS variables
21739 # we add an extra space in LIBS so we can substitute out everything starting with " -"
21740 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21741 # then remove everything of the form -xxx
21742 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21743 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'`
21744
21745 BONMINAMPLINTERFACELIB_DEPENDENCIES=`echo " $BONMINAMPLINTERFACELIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21746
21747 fi
21748
21749 if test 1 = 0 ; then #change this test to enable a bit of debugging output
21750 if test -n "$ASL_CFLAGS" ; then
21751 { echo "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5
21752 echo "$as_me: ASL CFLAGS are $ASL_CFLAGS" >&6;}
21753 fi
21754 if test -n "$ASL_LIBS" ; then
21755 { echo "$as_me:$LINENO: ASL LIBS are $ASL_LIBS" >&5
21756 echo "$as_me: ASL LIBS are $ASL_LIBS" >&6;}
21757 fi
21758 if test -n "$ASL_DEPENDENCIES" ; then
21759 { echo "$as_me:$LINENO: ASL DEPENDENCIES are $ASL_DEPENDENCIES" >&5
21760 echo "$as_me: ASL DEPENDENCIES are $ASL_DEPENDENCIES" >&6;}
21761 fi
21762 if test -n "$ASL_DATA" ; then
21763 { echo "$as_me:$LINENO: ASL DATA is $ASL_DATA" >&5
21764 echo "$as_me: ASL DATA is $ASL_DATA" >&6;}
21765 fi
21766 if test -n "$ASL_PCLIBS" ; then
21767 { echo "$as_me:$LINENO: ASL PCLIBS are $ASL_PCLIBS" >&5
21768 echo "$as_me: ASL PCLIBS are $ASL_PCLIBS" >&6;}
21769 fi
21770 if test -n "$ASL_PCREQUIRES" ; then
21771 { echo "$as_me:$LINENO: ASL PCREQUIRES are $ASL_PCREQUIRES" >&5
21772 echo "$as_me: ASL PCREQUIRES are $ASL_PCREQUIRES" >&6;}
21773 fi
21774
21775 { echo "$as_me:$LINENO: BonminAmplInterfaceLib CFLAGS are $BONMINAMPLINTERFACELIB_CFLAGS" >&5
21776 echo "$as_me: BonminAmplInterfaceLib CFLAGS are $BONMINAMPLINTERFACELIB_CFLAGS" >&6;}
21777 { echo "$as_me:$LINENO: BonminAmplInterfaceLib LIBS are $BONMINAMPLINTERFACELIB_LIBS" >&5
21778 echo "$as_me: BonminAmplInterfaceLib LIBS are $BONMINAMPLINTERFACELIB_LIBS" >&6;}
21779 { echo "$as_me:$LINENO: BonminAmplInterfaceLib DEPENDENCIES are $BONMINAMPLINTERFACELIB_DEPENDENCIES" >&5
21780 echo "$as_me: BonminAmplInterfaceLib DEPENDENCIES are $BONMINAMPLINTERFACELIB_DEPENDENCIES" >&6;}
21781
21782 fi
21783 fi
21784
21785 # Define the Makefile conditional
21786
21787
21788 if test $coin_has_asl != notGiven &&
21789 test $coin_has_asl != skipping; then
21790 COIN_HAS_ASL_TRUE=
21791 COIN_HAS_ASL_FALSE='#'
21792 else
21793 COIN_HAS_ASL_TRUE='#'
21794 COIN_HAS_ASL_FALSE=
21795 fi
21796
21797
21798
21799
21800 #AC_COIN_CHECK_PACKAGE(Bcp, [bcp])
21801 #
21802 #AC_ARG_WITH([bonminbcp],
21803 # AC_HELP_STRING([--with-bonminbcp],
21804 # [Compile Bonmin with Bcp-based parallel version]),
21805 # [use_bcp="$withval"], [use_bcp=no])
21806 #if test "$use_bcp" = yes; then
21807 # if test $coin_has_bcp != yes ; then
21808 # AC_MSG_ERROR([You specified --with-bonminbcp, but Bcp is not available])
21809 # fi
21810 #fi
21811 #AM_CONDITIONAL(COMPILE_BONMINBCP, test "$use_bcp" = yes)
21812
21813 #############################################################################
21814 # CPLEX #
21815 #############################################################################
21816
21817 # Check whether OsiCplex is available
21818
21819 echo "$as_me:$LINENO: checking for COIN-OR package OsiCpx" >&5
21820 echo $ECHO_N "checking for COIN-OR package OsiCpx... $ECHO_C" >&6
21821
21822 coin_has_osicpx=notGiven
21823
21824 # check if user wants to skip package in any case
21825 if test x"$COIN_SKIP_PROJECTS" != x; then
21826 for dir in $COIN_SKIP_PROJECTS; do
21827 if test $dir = "OsiCpx"; then
21828 coin_has_osicpx=skipping
21829 fi
21830 done
21831 fi
21832
21833 if test "$coin_has_osicpx" != skipping; then
21834
21835 # Check whether --with-m4_tolower(OsiCpx) or --without-m4_tolower(OsiCpx) was given.
21836 if test "${with_osicpx+set}" = set; then
21837 withval="$with_osicpx"
21838 if test "$withval" = no ; then
21839 coin_has_osicpx=skipping
21840 fi
21841
21842 fi;
21843 fi
21844
21845 OSICPX_LIBS=
21846 OSICPX_CFLAGS=
21847 OSICPX_DATA=
21848 OSICPX_DEPENDENCIES=
21849 OSICPX_PCLIBS=
21850 OSICPX_PCREQUIRES=
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21869 if test $coin_has_osicpx != skipping; then
21870
21871 # Check whether --with-m4_tolower(OsiCpx)-lib or --without-m4_tolower(OsiCpx)-lib was given.
21872 if test "${with_osicpx_lib+set}" = set; then
21873 withval="$with_osicpx_lib"
21874 if test "$withval" = no ; then
21875 coin_has_osicpx=skipping
21876 else
21877 coin_has_osicpx=yes
21878 OSICPX_LIBS="$withval"
21879 OSICPX_PCLIBS="$withval"
21880
21881 BONMINLIB_PCLIBS="$withval $BONMINLIB_PCLIBS"
21882 BONMINLIB_LIBS="$withval $BONMINLIB_LIBS"
21883
21884 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21885 if test -z "$PKG_CONFIG" ; then
21886 OSICPX_LIBS_INSTALLED="$withval"
21887 BONMINLIB_LIBS_INSTALLED="$withval $BONMINLIB_LIBS_INSTALLED"
21888 fi
21889 fi
21890
21891 fi;
21892 fi
21893
21894 if test $coin_has_osicpx != skipping; then
21895
21896 # Check whether --with-m4_tolower(OsiCpx)-incdir or --without-m4_tolower(OsiCpx)-incdir was given.
21897 if test "${with_osicpx_incdir+set}" = set; then
21898 withval="$with_osicpx_incdir"
21899 if test "$withval" = no ; then
21900 coin_has_osicpx=skipping
21901 else
21902 coin_has_osicpx=yes
21903 OSICPX_CFLAGS="-I`${CYGPATH_W} $withval`"
21904 BONMINLIB_CFLAGS="-I`${CYGPATH_W} $withval` $BONMINLIB_CFLAGS"
21905 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21906 if test -z "$PKG_CONFIG" ; then
21907 OSICPX_CFLAGS_INSTALLED="$OSICPX_CFLAGS"
21908 BONMINLIB_CFLAGS_INSTALLED="$OSICPX_CFLAGS $BONMINLIB_CFLAGS_INSTALLED"
21909 fi
21910 fi
21911
21912 fi;
21913 fi
21914
21915 if test $coin_has_osicpx != skipping; then
21916
21917 # Check whether --with-m4_tolower(OsiCpx)-datadir or --without-m4_tolower(OsiCpx)-datadir was given.
21918 if test "${with_osicpx_datadir+set}" = set; then
21919 withval="$with_osicpx_datadir"
21920 if test "$withval" = no ; then
21921 coin_has_osicpx=skipping
21922 else
21923 coin_has_osicpx=yes
21924 OSICPX_DATA="$withval"
21925 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21926 if test -z "$PKG_CONFIG" ; then
21927 OSICPX_DATA_INSTALLED="$withval"
21928 fi
21929 fi
21930
21931 fi;
21932 fi
21933
21934 if test $coin_has_osicpx = notGiven; then
21935 if test -n "$PKG_CONFIG" ; then
21936 # set search path for pkg-config
21937 # need to export variable to be sure that the following pkg-config gets these values
21938 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21939 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21940 export PKG_CONFIG_PATH
21941
21942 # let pkg-config do it's magic
21943
21944
21945
21946 if test -n "$PKG_CONFIG" ; then
21947 if $PKG_CONFIG --exists "osi-cplex"; then
21948 OSICPX_VERSIONS=`$PKG_CONFIG --modversion "osi-cplex" 2>/dev/null | tr '\n' ' '`
21949 cflags=`$PKG_CONFIG --cflags "osi-cplex" 2>/dev/null`
21950 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21951 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21952 # but only do this if is not trivial
21953 if test "$CYGPATH_W" != "echo" ; then
21954 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21955 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21956 fi
21957 OSICPX_CFLAGS="$cflags"
21958 OSICPX_LIBS=`$PKG_CONFIG --libs "osi-cplex" 2>/dev/null`
21959 OSICPX_DATA=`$PKG_CONFIG --variable=datadir "osi-cplex" 2>/dev/null`
21960 coin_has_osicpx=yes
21961 echo "$as_me:$LINENO: result: yes: $OSICPX_VERSIONS" >&5
21962 echo "${ECHO_T}yes: $OSICPX_VERSIONS" >&6
21963
21964 # adjust linker flags for (i)cl compiler
21965 # 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)
21966 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21967 then
21968 OSICPX_LIBS=`echo " $OSICPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21969 fi
21970 OSICPX_PCREQUIRES="osi-cplex"
21971
21972 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in BonminLib
21973
21974 BONMINLIB_PCREQUIRES="osi-cplex $BONMINLIB_PCREQUIRES"
21975 BONMINLIB_CFLAGS="$OSICPX_CFLAGS $BONMINLIB_CFLAGS"
21976 BONMINLIB_LIBS="$OSICPX_LIBS $BONMINLIB_LIBS"
21977
21978
21979
21980 else
21981 OSICPX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-cplex"`
21982 coin_has_osicpx=notGiven
21983 echo "$as_me:$LINENO: result: not given: $OSICPX_PKG_ERRORS" >&5
21984 echo "${ECHO_T}not given: $OSICPX_PKG_ERRORS" >&6
21985
21986 fi
21987 else
21988 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiCpx without pkg-config\"" >&5
21989 echo "$as_me: error: \"Cannot check for existance of module OsiCpx without pkg-config\"" >&2;}
21990 { (exit 1); exit 1; }; }
21991 fi
21992
21993
21994
21995
21996 # reset PKG_CONFIG_PATH variable
21997 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21998 export PKG_CONFIG_PATH
21999
22000 else
22001 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22002 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22003
22004 echo "$as_me:$LINENO: checking for COIN-OR package OsiCpx (fallback)" >&5
22005 echo $ECHO_N "checking for COIN-OR package OsiCpx (fallback)... $ECHO_C" >&6
22006
22007 coin_has_osicpx=notGiven
22008 OSICPX_LIBS=
22009 OSICPX_LIBS_INSTALLED=
22010 OSICPX_CFLAGS=
22011 OSICPX_CFLAGS_INSTALLED=
22012 OSICPX_DATA=
22013 OSICPX_DATA_INSTALLED=
22014 OSICPX_PCLIBS=
22015 OSICPX_PCREQUIRES=
22016
22017 # initial list of dependencies is "osi-cplex", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22018 projtoprocess="osi-cplex"
22019
22020 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22021 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22022 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22023 # also, we setup the DATA variable
22024 allproj=""
22025 allpcfiles=""
22026 allpcifiles=""
22027 while test "x$projtoprocess" != x ; do
22028
22029 for proj in $projtoprocess ; do
22030 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22031 pcfile=""
22032 save_IFS="$IFS"
22033 IFS=":"
22034 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22035 # 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
22036 if test -r "$dir/${proj}-uninstalled.pc" ; then
22037 pcfile="$dir/$proj-uninstalled.pc"
22038 if test -r "$dir/${proj}.pc" ; then
22039 pcifile="$dir/${proj}.pc"
22040 else
22041 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22042 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22043 pcifile=
22044 fi
22045 break
22046 fi
22047 done
22048 IFS="$save_IFS"
22049
22050 if test "x$pcfile" != x ; then
22051 # read dependencies from $pcfile and filter it
22052 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
22053
22054 # add projrequires to the front of the list of projects that have to be processed next
22055 # at the same time, remove $proj from this list
22056 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22057
22058 # read DATA from $pcfile, if _DATA is still empty
22059 if test "x$OSICPX_DATA" = x ; then
22060 projdatadir=
22061 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22062 eval `sh -c "$pcfilemod"`
22063 OSICPX_DATA="$projdatadir"
22064 fi
22065
22066 allproj="$allproj $proj"
22067 allpcfiles="$pcfile:$allpcfiles"
22068
22069 else
22070 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22071 echo "${ECHO_T}no, dependency $proj not available" >&6
22072 allproj=fail
22073 break 2
22074 fi
22075
22076 if test "x$pcifile" != x ; then
22077 allpcifiles="$pcifile:$allpcifiles"
22078
22079 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22080 if test "x$OSICPX_DATA_INSTALLED" = x ; then
22081 projdatadir=
22082 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22083 eval `sh -c "$pcifilemod"`
22084 if test "${CYGPATH_W}" != "echo"; then
22085 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22086 fi
22087 OSICPX_DATA_INSTALLED="$projdatadir"
22088 fi
22089
22090 fi
22091
22092 break
22093 done
22094
22095 # remove spaces on begin of $projtoprocess
22096 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22097
22098 done
22099
22100 if test "$allproj" != fail ; then
22101
22102 # now go through the list of .pc files and assemble compiler and linker flags
22103 # important is here to obey the reverse order that has been setup before,
22104 # since then libraries that are required by several others should be after these other libraries
22105 pcfilesprocessed=""
22106
22107 save_IFS="$IFS"
22108 IFS=":"
22109 for pcfile in $allpcfiles ; do
22110
22111 # if $pcfile has been processed already, skip this round
22112 if test "x$pcfilesprocessed" != x ; then
22113 for pcfiledone in $pcfilesprocessed ; do
22114 if test "$pcfiledone" = "$pcfile" ; then
22115 continue 2
22116 fi
22117 done
22118 fi
22119
22120 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22121 # replace "Libs:" by "echo projlibs="
22122 # replace "Cflags:" by "echo projcflags="
22123 # remove every line starting with <some word>:
22124 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22125
22126 # set projcflags and projlibs variables by running $pcfilemod
22127 # 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
22128 projcflags=
22129 projlibs=
22130 IFS="$save_IFS"
22131 eval `sh -c "$pcfilemod"`
22132 IFS=":"
22133
22134 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22135 if test "${CYGPATH_W}" != "echo"; then
22136 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22137 fi
22138 OSICPX_CFLAGS="$projcflags $OSICPX_CFLAGS"
22139
22140 # set LIBS variable
22141 OSICPX_LIBS="$projlibs $OSICPX_LIBS"
22142
22143 # remember that we have processed $pcfile
22144 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22145
22146 done
22147 IFS="$save_IFS"
22148
22149
22150 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22151 # important is here again to obey the reverse order that has been setup before,
22152 # since then libraries that are required by several others should be after these other libraries
22153 pcfilesprocessed=""
22154
22155 save_IFS="$IFS"
22156 IFS=":"
22157 for pcfile in $allpcifiles ; do
22158
22159 # if $pcfile has been processed already, skip this round
22160 if test "x$pcfilesprocessed" != x ; then
22161 for pcfiledone in $pcfilesprocessed ; do
22162 if test "$pcfiledone" = "$pcfile" ; then
22163 continue 2
22164 fi
22165 done
22166 fi
22167
22168 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22169 # replace "Libs:" by "echo projlibs="
22170 # replace "Cflags:" by "echo projcflags="
22171 # remove every line starting with <some word>:
22172 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22173
22174 # set projcflags and projlibs variables by running $pcfilemod
22175 # 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
22176 projcflags=
22177 projlibs=
22178 IFS="$save_IFS"
22179 eval `sh -c "$pcfilemod"`
22180 IFS=":"
22181
22182 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22183 if test "${CYGPATH_W}" != "echo"; then
22184 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22185 fi
22186 OSICPX_CFLAGS_INSTALLED="$projcflags $OSICPX_CFLAGS_INSTALLED"
22187
22188 # set LIBS variable
22189 OSICPX_LIBS_INSTALLED="$projlibs $OSICPX_LIBS_INSTALLED"
22190
22191 # remember that we have processed $pcfile
22192 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22193
22194 done
22195 IFS="$save_IFS"
22196
22197
22198 # finish up
22199 coin_has_osicpx=yes
22200 echo "$as_me:$LINENO: result: yes" >&5
22201 echo "${ECHO_T}yes" >&6
22202
22203 cat >>confdefs.h <<\_ACEOF
22204 #define COIN_HAS_OSICPX 1
22205 _ACEOF
22206
22207
22208 # adjust linker flags for (i)cl compiler
22209 # 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),
22210 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22211 # everything of the form "-lname" by "libname.lib", and
22212 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22213 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22214 then
22215 OSICPX_LIBS=`echo " $OSICPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22216 OSICPX_LIBS_INSTALLED=`echo " $OSICPX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22217 fi
22218
22219 OSICPX_PCREQUIRES="osi-cplex"
22220
22221 BONMINLIB_PCREQUIRES="osi-cplex $BONMINLIB_PCREQUIRES"
22222 BONMINLIB_CFLAGS="$OSICPX_CFLAGS $BONMINLIB_CFLAGS"
22223 BONMINLIB_LIBS="$OSICPX_LIBS $BONMINLIB_LIBS"
22224 BONMINLIB_CFLAGS_INSTALLED="$OSICPX_CFLAGS_INSTALLED $BONMINLIB_CFLAGS_INSTALLED"
22225 BONMINLIB_LIBS_INSTALLED="$OSICPX_LIBS_INSTALLED $BONMINLIB_LIBS_INSTALLED"
22226
22227
22228 fi
22229
22230
22231
22232 if test $coin_has_osicpx != notGiven &&
22233 test $coin_has_osicpx != skipping; then
22234 COIN_HAS_OSICPX_TRUE=
22235 COIN_HAS_OSICPX_FALSE='#'
22236 else
22237 COIN_HAS_OSICPX_TRUE='#'
22238 COIN_HAS_OSICPX_FALSE=
22239 fi
22240
22241
22242
22243 fi
22244
22245 else
22246 echo "$as_me:$LINENO: result: $coin_has_osicpx" >&5
22247 echo "${ECHO_T}$coin_has_osicpx" >&6
22248 fi
22249
22250 if test $coin_has_osicpx != skipping &&
22251 test $coin_has_osicpx != notGiven ; then
22252
22253 cat >>confdefs.h <<\_ACEOF
22254 #define COIN_HAS_OSICPX 1
22255 _ACEOF
22256
22257
22258 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22259 if test "${enable_interpackage_dependencies+set}" = set; then
22260 enableval="$enable_interpackage_dependencies"
22261
22262 else
22263 enable_interpackage_dependencies=yes
22264 fi;
22265
22266 if test $enable_interpackage_dependencies = yes ; then
22267 # construct dependencies variables from LIBS variables
22268 # we add an extra space in LIBS so we can substitute out everything starting with " -"
22269 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22270 # then remove everything of the form -xxx
22271 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22272 OSICPX_DEPENDENCIES=`echo " $OSICPX_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22273
22274 BONMINLIB_DEPENDENCIES=`echo " $BONMINLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22275
22276 fi
22277
22278 if test 1 = 0 ; then #change this test to enable a bit of debugging output
22279 if test -n "$OSICPX_CFLAGS" ; then
22280 { echo "$as_me:$LINENO: OsiCpx CFLAGS are $OSICPX_CFLAGS" >&5
22281 echo "$as_me: OsiCpx CFLAGS are $OSICPX_CFLAGS" >&6;}
22282 fi
22283 if test -n "$OSICPX_LIBS" ; then
22284 { echo "$as_me:$LINENO: OsiCpx LIBS are $OSICPX_LIBS" >&5
22285 echo "$as_me: OsiCpx LIBS are $OSICPX_LIBS" >&6;}
22286 fi
22287 if test -n "$OSICPX_DEPENDENCIES" ; then
22288 { echo "$as_me:$LINENO: OsiCpx DEPENDENCIES are $OSICPX_DEPENDENCIES" >&5
22289 echo "$as_me: OsiCpx DEPENDENCIES are $OSICPX_DEPENDENCIES" >&6;}
22290 fi
22291 if test -n "$OSICPX_DATA" ; then
22292 { echo "$as_me:$LINENO: OsiCpx DATA is $OSICPX_DATA" >&5
22293 echo "$as_me: OsiCpx DATA is $OSICPX_DATA" >&6;}
22294 fi
22295 if test -n "$OSICPX_PCLIBS" ; then
22296 { echo "$as_me:$LINENO: OsiCpx PCLIBS are $OSICPX_PCLIBS" >&5
22297 echo "$as_me: OsiCpx PCLIBS are $OSICPX_PCLIBS" >&6;}
22298 fi
22299 if test -n "$OSICPX_PCREQUIRES" ; then
22300 { echo "$as_me:$LINENO: OsiCpx PCREQUIRES are $OSICPX_PCREQUIRES" >&5
22301 echo "$as_me: OsiCpx PCREQUIRES are $OSICPX_PCREQUIRES" >&6;}
22302 fi
22303
22304 { echo "$as_me:$LINENO: BonminLib CFLAGS are $BONMINLIB_CFLAGS" >&5
22305 echo "$as_me: BonminLib CFLAGS are $BONMINLIB_CFLAGS" >&6;}
22306 { echo "$as_me:$LINENO: BonminLib LIBS are $BONMINLIB_LIBS" >&5
22307 echo "$as_me: BonminLib LIBS are $BONMINLIB_LIBS" >&6;}
22308 { echo "$as_me:$LINENO: BonminLib DEPENDENCIES are $BONMINLIB_DEPENDENCIES" >&5
22309 echo "$as_me: BonminLib DEPENDENCIES are $BONMINLIB_DEPENDENCIES" >&6;}
22310
22311 fi
22312 fi
22313
22314 # Define the Makefile conditional
22315
22316
22317 if test $coin_has_osicpx != notGiven &&
22318 test $coin_has_osicpx != skipping; then
22319 COIN_HAS_OSICPX_TRUE=
22320 COIN_HAS_OSICPX_FALSE='#'
22321 else
22322 COIN_HAS_OSICPX_TRUE='#'
22323 COIN_HAS_OSICPX_FALSE=
22324 fi
22325
22326
22327
22328
22329 # To get also the directory where cplex.h can be found, we also check for cplex directly.
22330
22331 echo "$as_me:$LINENO: checking if user provides library for Cplex" >&5
22332 echo $ECHO_N "checking if user provides library for Cplex... $ECHO_C" >&6
22333
22334 # Check for header file directory
22335
22336
22337 # Check whether --with-cplex-incdir or --without-cplex-incdir was given.
22338 if test "${with_cplex_incdir+set}" = set; then
22339 withval="$with_cplex_incdir"
22340 CPXINCDIR=`cd $withval; pwd`
22341 fi;
22342
22343 # Check for library directory
22344
22345
22346 # Check whether --with-cplex-lib or --without-cplex-lib was given.
22347 if test "${with_cplex_lib+set}" = set; then
22348 withval="$with_cplex_lib"
22349 CPXLIB=$withval
22350 fi;
22351
22352 # Switch to disable library check if requested
22353
22354 # Check whether --enable-cplex-libcheck or --disable-cplex-libcheck was given.
22355 if test "${enable_cplex_libcheck+set}" = set; then
22356 enableval="$enable_cplex_libcheck"
22357 cplex_libcheck=$enableval
22358 else
22359 cplex_libcheck=yes
22360 fi;
22361
22362 # At this point, if we're going to use the library, both LBRYINCDIR and
22363 # LBRYLIB must be defined and not empty.
22364
22365 if test x"$CPXINCDIR" != x || test x"$CPXLIB" != x; then
22366 if test x"$CPXINCDIR" = x || test x"$CPXLIB" = x; then
22367 { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Cplex. Use --with-cplex-incdir of environment variable $CPXINCDIR to specify the include directory. Use --with-cplex-lib or environment variable $CPXLIB to specify link flags." >&5
22368 echo "$as_me: error: You need to specify both an include directory and link flags to use library Cplex. Use --with-cplex-incdir of environment variable $CPXINCDIR to specify the include directory. Use --with-cplex-lib or environment variable $CPXLIB to specify link flags." >&2;}
22369 { (exit 1); exit 1; }; }
22370 fi
22371 coin_has_cpx=true
22372 echo "$as_me:$LINENO: result: yes" >&5
22373 echo "${ECHO_T}yes" >&6
22374 else
22375 coin_has_cpx=false
22376 echo "$as_me:$LINENO: result: no" >&5
22377 echo "${ECHO_T}no" >&6
22378 fi
22379
22380 # If we have instructions for use, consider header and link checks.
22381
22382 if test $coin_has_cpx = true; then
22383
22384 # If argument 3 (file) is given, check for the file. Typically this will be a
22385 # header file, but that's not assumed.
22386
22387 if test -r $CPXINCDIR/cplex.h; then
22388
22389 :
22390 else
22391 { { echo "$as_me:$LINENO: error: Cannot find file cplex.h in $CPXINCDIR" >&5
22392 echo "$as_me: error: Cannot find file cplex.h in $CPXINCDIR" >&2;}
22393 { (exit 1); exit 1; }; }
22394 :
22395 fi
22396
22397
22398 # Now see if we can link the function. There are arguments for and against
22399 # assuming argument 3 is a header file declaring the function. A correct
22400 # function declaration is the main argument in favour. Having to cope with
22401 # possible dependencies or other oddities are the main arguments against.
22402 # Force the use of C as the best single choice amongst C++, C, and Fortran.
22403 # Obviously, this has limits.
22404
22405 if test x"$cplex_libcheck" != xno; then
22406 coin_save_LIBS="$LIBS"
22407 LIBS="$CPXLIB "
22408 coin_CPX_link=no
22409 ac_ext=c
22410 ac_cpp='$CPP $CPPFLAGS'
22411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22414
22415 for fnm in CPXgetstat ; do
22416 echo "$as_me:$LINENO: checking whether symbol $fnm is available with CPX" >&5
22417 echo $ECHO_N "checking whether symbol $fnm is available with CPX... $ECHO_C" >&6
22418 cat >conftest.$ac_ext <<_ACEOF
22419 /* confdefs.h. */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22424
22425 int
22426 main ()
22427 {
22428 $fnm()
22429 ;
22430 return 0;
22431 }
22432 _ACEOF
22433 rm -f conftest.$ac_objext conftest$ac_exeext
22434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22435 (eval $ac_link) 2>conftest.er1
22436 ac_status=$?
22437 grep -v '^ *+' conftest.er1 >conftest.err
22438 rm -f conftest.er1
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } &&
22442 { ac_try='test -z "$ac_c_werror_flag"
22443 || test ! -s conftest.err'
22444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445 (eval $ac_try) 2>&5
22446 ac_status=$?
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); }; } &&
22449 { ac_try='test -s conftest$ac_exeext'
22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451 (eval $ac_try) 2>&5
22452 ac_status=$?
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; }; then
22455 echo "$as_me:$LINENO: result: yes" >&5
22456 echo "${ECHO_T}yes" >&6
22457 coin_CPX_link=yes
22458 break
22459 else
22460 echo "$as_me: failed program was:" >&5
22461 sed 's/^/| /' conftest.$ac_ext >&5
22462
22463 echo "$as_me:$LINENO: result: no" >&5
22464 echo "${ECHO_T}no" >&6
22465 fi
22466 rm -f conftest.err conftest.$ac_objext \
22467 conftest$ac_exeext conftest.$ac_ext
22468 done
22469 ac_ext=c
22470 ac_cpp='$CPP $CPPFLAGS'
22471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22474
22475 LIBS="$coin_save_LIBS"
22476 if test x"$coin_CPX_link" != xyes ; then
22477 { { echo "$as_me:$LINENO: error: Cannot find symbol(s) CPXgetstat with CPX" >&5
22478 echo "$as_me: error: Cannot find symbol(s) CPXgetstat with CPX" >&2;}
22479 { (exit 1); exit 1; }; }
22480 fi
22481 fi
22482
22483
22484 # If we make it this far, we've verified the file and linked the function. Add
22485 # the necessary link flags to _{PC}LIBS and define the preprocessor symbol
22486 # COIN_HAS_LBRY.
22487
22488
22489
22490
22491 cat >>confdefs.h <<\_ACEOF
22492 #define COIN_HAS_CPX 1
22493 _ACEOF
22494
22495 fi
22496
22497 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
22498 # automake conditional. These actions must occur unconditionally.
22499
22500
22501
22502
22503
22504 if test $coin_has_cpx = true; then
22505 COIN_HAS_CPX_TRUE=
22506 COIN_HAS_CPX_FALSE='#'
22507 else
22508 COIN_HAS_CPX_TRUE='#'
22509 COIN_HAS_CPX_FALSE=
22510 fi
22511
22512
22513
22514 #############################################################################
22515 # FilterSQP #
22516 #############################################################################
22517
22518 # for backward compatibility, map --with-filtersqp to --with-filtersqp-libs
22519
22520 # Check whether --with-filtersqp or --without-filtersqp was given.
22521 if test "${with_filtersqp+set}" = set; then
22522 withval="$with_filtersqp"
22523 filtersqp_libs="$withval"
22524 fi;
22525
22526
22527 echo "$as_me:$LINENO: checking for COIN-OR package FilterSQP" >&5
22528 echo $ECHO_N "checking for COIN-OR package FilterSQP... $ECHO_C" >&6
22529
22530 coin_has_filtersqp=notGiven
22531
22532 # check if user wants to skip package in any case
22533 if test x"$COIN_SKIP_PROJECTS" != x; then
22534 for dir in $COIN_SKIP_PROJECTS; do
22535 if test $dir = "FilterSQP"; then
22536 coin_has_filtersqp=skipping
22537 fi
22538 done
22539 fi
22540
22541 if test "$coin_has_filtersqp" != skipping; then
22542
22543 # Check whether --with-m4_tolower(FilterSQP) or --without-m4_tolower(FilterSQP) was given.
22544 if test "${with_filtersqp+set}" = set; then
22545 withval="$with_filtersqp"
22546 if test "$withval" = no ; then
22547 coin_has_filtersqp=skipping
22548 fi
22549
22550 fi;
22551 fi
22552
22553 FILTERSQP_LIBS=
22554 FILTERSQP_CFLAGS=
22555 FILTERSQP_DATA=
22556 FILTERSQP_DEPENDENCIES=
22557 FILTERSQP_PCLIBS=
22558 FILTERSQP_PCREQUIRES=
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
22577 if test $coin_has_filtersqp != skipping; then
22578
22579 # Check whether --with-m4_tolower(FilterSQP)-lib or --without-m4_tolower(FilterSQP)-lib was given.
22580 if test "${with_filtersqp_lib+set}" = set; then
22581 withval="$with_filtersqp_lib"
22582 if test "$withval" = no ; then
22583 coin_has_filtersqp=skipping
22584 else
22585 coin_has_filtersqp=yes
22586 FILTERSQP_LIBS="$withval"
22587 FILTERSQP_PCLIBS="$withval"
22588
22589 BONMINLIB_PCLIBS="$withval $BONMINLIB_PCLIBS"
22590 BONMINLIB_LIBS="$withval $BONMINLIB_LIBS"
22591
22592 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22593 if test -z "$PKG_CONFIG" ; then
22594 FILTERSQP_LIBS_INSTALLED="$withval"
22595 BONMINLIB_LIBS_INSTALLED="$withval $BONMINLIB_LIBS_INSTALLED"
22596 fi
22597 fi
22598
22599 fi;
22600 fi
22601
22602 if test $coin_has_filtersqp != skipping; then
22603
22604 # Check whether --with-m4_tolower(FilterSQP)-incdir or --without-m4_tolower(FilterSQP)-incdir was given.
22605 if test "${with_filtersqp_incdir+set}" = set; then
22606 withval="$with_filtersqp_incdir"
22607 if test "$withval" = no ; then
22608 coin_has_filtersqp=skipping
22609 else
22610 coin_has_filtersqp=yes
22611 FILTERSQP_CFLAGS="-I`${CYGPATH_W} $withval`"
22612 BONMINLIB_CFLAGS="-I`${CYGPATH_W} $withval` $BONMINLIB_CFLAGS"
22613 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22614 if test -z "$PKG_CONFIG" ; then
22615 FILTERSQP_CFLAGS_INSTALLED="$FILTERSQP_CFLAGS"
22616 BONMINLIB_CFLAGS_INSTALLED="$FILTERSQP_CFLAGS $BONMINLIB_CFLAGS_INSTALLED"
22617 fi
22618 fi
22619
22620 fi;
22621 fi
22622
22623 if test $coin_has_filtersqp != skipping; then
22624
22625 # Check whether --with-m4_tolower(FilterSQP)-datadir or --without-m4_tolower(FilterSQP)-datadir was given.
22626 if test "${with_filtersqp_datadir+set}" = set; then
22627 withval="$with_filtersqp_datadir"
22628 if test "$withval" = no ; then
22629 coin_has_filtersqp=skipping
22630 else
22631 coin_has_filtersqp=yes
22632 FILTERSQP_DATA="$withval"
22633 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22634 if test -z "$PKG_CONFIG" ; then
22635 FILTERSQP_DATA_INSTALLED="$withval"
22636 fi
22637 fi
22638
22639 fi;
22640 fi
22641
22642 if test $coin_has_filtersqp = notGiven; then
22643 if test -n "$PKG_CONFIG" ; then
22644 # set search path for pkg-config
22645 # need to export variable to be sure that the following pkg-config gets these values
22646 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22647 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
22648 export PKG_CONFIG_PATH
22649
22650 # let pkg-config do it's magic
22651
22652
22653
22654 if test -n "$PKG_CONFIG" ; then
22655 if $PKG_CONFIG --exists "coinfiltersqp"; then
22656 FILTERSQP_VERSIONS=`$PKG_CONFIG --modversion "coinfiltersqp" 2>/dev/null | tr '\n' ' '`
22657 cflags=`$PKG_CONFIG --cflags "coinfiltersqp" 2>/dev/null`
22658 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
22659 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
22660 # but only do this if is not trivial
22661 if test "$CYGPATH_W" != "echo" ; then
22662 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
22663 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22664 fi
22665 FILTERSQP_CFLAGS="$cflags"
22666 FILTERSQP_LIBS=`$PKG_CONFIG --libs "coinfiltersqp" 2>/dev/null`
22667 FILTERSQP_DATA=`$PKG_CONFIG --variable=datadir "coinfiltersqp" 2>/dev/null`
22668 coin_has_filtersqp=yes
22669 echo "$as_me:$LINENO: result: yes: $FILTERSQP_VERSIONS" >&5
22670 echo "${ECHO_T}yes: $FILTERSQP_VERSIONS" >&6
22671
22672 # adjust linker flags for (i)cl compiler
22673 # 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)
22674 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22675 then
22676 FILTERSQP_LIBS=`echo " $FILTERSQP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22677 fi
22678 FILTERSQP_PCREQUIRES="coinfiltersqp"
22679
22680 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in BonminLib
22681
22682 BONMINLIB_PCREQUIRES="coinfiltersqp $BONMINLIB_PCREQUIRES"
22683 BONMINLIB_CFLAGS="$FILTERSQP_CFLAGS $BONMINLIB_CFLAGS"
22684 BONMINLIB_LIBS="$FILTERSQP_LIBS $BONMINLIB_LIBS"
22685
22686
22687
22688 else
22689 FILTERSQP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinfiltersqp"`
22690 coin_has_filtersqp=notGiven
22691 echo "$as_me:$LINENO: result: not given: $FILTERSQP_PKG_ERRORS" >&5
22692 echo "${ECHO_T}not given: $FILTERSQP_PKG_ERRORS" >&6
22693
22694 fi
22695 else
22696 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module FilterSQP without pkg-config\"" >&5
22697 echo "$as_me: error: \"Cannot check for existance of module FilterSQP without pkg-config\"" >&2;}
22698 { (exit 1); exit 1; }; }
22699 fi
22700
22701
22702
22703
22704 # reset PKG_CONFIG_PATH variable
22705 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
22706 export PKG_CONFIG_PATH
22707
22708 else
22709 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22710 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22711
22712 echo "$as_me:$LINENO: checking for COIN-OR package FilterSQP (fallback)" >&5
22713 echo $ECHO_N "checking for COIN-OR package FilterSQP (fallback)... $ECHO_C" >&6
22714
22715 coin_has_filtersqp=notGiven
22716 FILTERSQP_LIBS=
22717 FILTERSQP_LIBS_INSTALLED=
22718 FILTERSQP_CFLAGS=
22719 FILTERSQP_CFLAGS_INSTALLED=
22720 FILTERSQP_DATA=
22721 FILTERSQP_DATA_INSTALLED=
22722 FILTERSQP_PCLIBS=
22723 FILTERSQP_PCREQUIRES=
22724
22725 # initial list of dependencies is "coinfiltersqp", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22726 projtoprocess="coinfiltersqp"
22727
22728 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22729 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22730 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22731 # also, we setup the DATA variable
22732 allproj=""
22733 allpcfiles=""
22734 allpcifiles=""
22735 while test "x$projtoprocess" != x ; do
22736
22737 for proj in $projtoprocess ; do
22738 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22739 pcfile=""
22740 save_IFS="$IFS"
22741 IFS=":"
22742 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22743 # 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
22744 if test -r "$dir/${proj}-uninstalled.pc" ; then
22745 pcfile="$dir/$proj-uninstalled.pc"
22746 if test -r "$dir/${proj}.pc" ; then
22747 pcifile="$dir/${proj}.pc"
22748 else
22749 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22750 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22751 pcifile=
22752 fi
22753 break
22754 fi
22755 done
22756 IFS="$save_IFS"
22757
22758 if test "x$pcfile" != x ; then
22759 # read dependencies from $pcfile and filter it
22760 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
22761
22762 # add projrequires to the front of the list of projects that have to be processed next
22763 # at the same time, remove $proj from this list
22764 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22765
22766 # read DATA from $pcfile, if _DATA is still empty
22767 if test "x$FILTERSQP_DATA" = x ; then
22768 projdatadir=
22769 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22770 eval `sh -c "$pcfilemod"`
22771 FILTERSQP_DATA="$projdatadir"
22772 fi
22773
22774 allproj="$allproj $proj"
22775 allpcfiles="$pcfile:$allpcfiles"
22776
22777 else
22778 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22779 echo "${ECHO_T}no, dependency $proj not available" >&6
22780 allproj=fail
22781 break 2
22782 fi
22783
22784 if test "x$pcifile" != x ; then
22785 allpcifiles="$pcifile:$allpcifiles"
22786
22787 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22788 if test "x$FILTERSQP_DATA_INSTALLED" = x ; then
22789 projdatadir=
22790 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22791 eval `sh -c "$pcifilemod"`
22792 if test "${CYGPATH_W}" != "echo"; then
22793 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22794 fi
22795 FILTERSQP_DATA_INSTALLED="$projdatadir"
22796 fi
22797
22798 fi
22799
22800 break
22801 done
22802
22803 # remove spaces on begin of $projtoprocess
22804 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22805
22806 done
22807
22808 if test "$allproj" != fail ; then
22809
22810 # now go through the list of .pc files and assemble compiler and linker flags
22811 # important is here to obey the reverse order that has been setup before,
22812 # since then libraries that are required by several others should be after these other libraries
22813 pcfilesprocessed=""
22814
22815 save_IFS="$IFS"
22816 IFS=":"
22817 for pcfile in $allpcfiles ; do
22818
22819 # if $pcfile has been processed already, skip this round
22820 if test "x$pcfilesprocessed" != x ; then
22821 for pcfiledone in $pcfilesprocessed ; do
22822 if test "$pcfiledone" = "$pcfile" ; then
22823 continue 2
22824 fi
22825 done
22826 fi
22827
22828 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22829 # replace "Libs:" by "echo projlibs="
22830 # replace "Cflags:" by "echo projcflags="
22831 # remove every line starting with <some word>:
22832 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22833
22834 # set projcflags and projlibs variables by running $pcfilemod
22835 # 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
22836 projcflags=
22837 projlibs=
22838 IFS="$save_IFS"
22839 eval `sh -c "$pcfilemod"`
22840 IFS=":"
22841
22842 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22843 if test "${CYGPATH_W}" != "echo"; then
22844 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22845 fi
22846 FILTERSQP_CFLAGS="$projcflags $FILTERSQP_CFLAGS"
22847
22848 # set LIBS variable
22849 FILTERSQP_LIBS="$projlibs $FILTERSQP_LIBS"
22850
22851 # remember that we have processed $pcfile
22852 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22853
22854 done
22855 IFS="$save_IFS"
22856
22857
22858 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22859 # important is here again to obey the reverse order that has been setup before,
22860 # since then libraries that are required by several others should be after these other libraries
22861 pcfilesprocessed=""
22862
22863 save_IFS="$IFS"
22864 IFS=":"
22865 for pcfile in $allpcifiles ; do
22866
22867 # if $pcfile has been processed already, skip this round
22868 if test "x$pcfilesprocessed" != x ; then
22869 for pcfiledone in $pcfilesprocessed ; do
22870 if test "$pcfiledone" = "$pcfile" ; then
22871 continue 2
22872 fi
22873 done
22874 fi
22875
22876 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22877 # replace "Libs:" by "echo projlibs="
22878 # replace "Cflags:" by "echo projcflags="
22879 # remove every line starting with <some word>:
22880 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22881
22882 # set projcflags and projlibs variables by running $pcfilemod
22883 # 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
22884 projcflags=
22885 projlibs=
22886 IFS="$save_IFS"
22887 eval `sh -c "$pcfilemod"`
22888 IFS=":"
22889
22890 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22891 if test "${CYGPATH_W}" != "echo"; then
22892 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22893 fi
22894 FILTERSQP_CFLAGS_INSTALLED="$projcflags $FILTERSQP_CFLAGS_INSTALLED"
22895
22896 # set LIBS variable
22897 FILTERSQP_LIBS_INSTALLED="$projlibs $FILTERSQP_LIBS_INSTALLED"
22898
22899 # remember that we have processed $pcfile
22900 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22901
22902 done
22903 IFS="$save_IFS"
22904
22905
22906 # finish up
22907 coin_has_filtersqp=yes
22908 echo "$as_me:$LINENO: result: yes" >&5
22909 echo "${ECHO_T}yes" >&6
22910
22911 cat >>confdefs.h <<\_ACEOF
22912 #define COIN_HAS_FILTERSQP 1
22913 _ACEOF
22914
22915
22916 # adjust linker flags for (i)cl compiler
22917 # 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),
22918 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22919 # everything of the form "-lname" by "libname.lib", and
22920 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22921 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22922 then
22923 FILTERSQP_LIBS=`echo " $FILTERSQP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22924 FILTERSQP_LIBS_INSTALLED=`echo " $FILTERSQP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22925 fi
22926
22927 FILTERSQP_PCREQUIRES="coinfiltersqp"
22928
22929 BONMINLIB_PCREQUIRES="coinfiltersqp $BONMINLIB_PCREQUIRES"
22930 BONMINLIB_CFLAGS="$FILTERSQP_CFLAGS $BONMINLIB_CFLAGS"
22931 BONMINLIB_LIBS="$FILTERSQP_LIBS $BONMINLIB_LIBS"
22932 BONMINLIB_CFLAGS_INSTALLED="$FILTERSQP_CFLAGS_INSTALLED $BONMINLIB_CFLAGS_INSTALLED"
22933 BONMINLIB_LIBS_INSTALLED="$FILTERSQP_LIBS_INSTALLED $BONMINLIB_LIBS_INSTALLED"
22934
22935
22936 fi
22937
22938
22939
22940 if test $coin_has_filtersqp != notGiven &&
22941 test $coin_has_filtersqp != skipping; then
22942 COIN_HAS_FILTERSQP_TRUE=
22943 COIN_HAS_FILTERSQP_FALSE='#'
22944 else
22945 COIN_HAS_FILTERSQP_TRUE='#'
22946 COIN_HAS_FILTERSQP_FALSE=
22947 fi
22948
22949
22950
22951 fi
22952
22953 else
22954 echo "$as_me:$LINENO: result: $coin_has_filtersqp" >&5
22955 echo "${ECHO_T}$coin_has_filtersqp" >&6
22956 fi
22957
22958 if test $coin_has_filtersqp != skipping &&
22959 test $coin_has_filtersqp != notGiven ; then
22960
22961 cat >>confdefs.h <<\_ACEOF
22962 #define COIN_HAS_FILTERSQP 1
22963 _ACEOF
22964
22965
22966 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22967 if test "${enable_interpackage_dependencies+set}" = set; then
22968 enableval="$enable_interpackage_dependencies"
22969
22970 else
22971 enable_interpackage_dependencies=yes
22972 fi;
22973
22974 if test $enable_interpackage_dependencies = yes ; then
22975 # construct dependencies variables from LIBS variables
22976 # we add an extra space in LIBS so we can substitute out everything starting with " -"
22977 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22978 # then remove everything of the form -xxx
22979 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22980 FILTERSQP_DEPENDENCIES=`echo " $FILTERSQP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22981
22982 BONMINLIB_DEPENDENCIES=`echo " $BONMINLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22983
22984 fi
22985
22986 if test 1 = 0 ; then #change this test to enable a bit of debugging output
22987 if test -n "$FILTERSQP_CFLAGS" ; then
22988 { echo "$as_me:$LINENO: FilterSQP CFLAGS are $FILTERSQP_CFLAGS" >&5
22989 echo "$as_me: FilterSQP CFLAGS are $FILTERSQP_CFLAGS" >&6;}
22990 fi
22991 if test -n "$FILTERSQP_LIBS" ; then
22992 { echo "$as_me:$LINENO: FilterSQP LIBS are $FILTERSQP_LIBS" >&5
22993 echo "$as_me: FilterSQP LIBS are $FILTERSQP_LIBS" >&6;}
22994 fi
22995 if test -n "$FILTERSQP_DEPENDENCIES" ; then
22996 { echo "$as_me:$LINENO: FilterSQP DEPENDENCIES are $FILTERSQP_DEPENDENCIES" >&5
22997 echo "$as_me: FilterSQP DEPENDENCIES are $FILTERSQP_DEPENDENCIES" >&6;}
22998 fi
22999 if test -n "$FILTERSQP_DATA" ; then
23000 { echo "$as_me:$LINENO: FilterSQP DATA is $FILTERSQP_DATA" >&5
23001 echo "$as_me: FilterSQP DATA is $FILTERSQP_DATA" >&6;}
23002 fi
23003 if test -n "$FILTERSQP_PCLIBS" ; then
23004 { echo "$as_me:$LINENO: FilterSQP PCLIBS are $FILTERSQP_PCLIBS" >&5
23005 echo "$as_me: FilterSQP PCLIBS are $FILTERSQP_PCLIBS" >&6;}
23006 fi
23007 if test -n "$FILTERSQP_PCREQUIRES" ; then
23008 { echo "$as_me:$LINENO: FilterSQP PCREQUIRES are $FILTERSQP_PCREQUIRES" >&5
23009 echo "$as_me: FilterSQP PCREQUIRES are $FILTERSQP_PCREQUIRES" >&6;}
23010 fi
23011
23012 { echo "$as_me:$LINENO: BonminLib CFLAGS are $BONMINLIB_CFLAGS" >&5
23013 echo "$as_me: BonminLib CFLAGS are $BONMINLIB_CFLAGS" >&6;}
23014 { echo "$as_me:$LINENO: BonminLib LIBS are $BONMINLIB_LIBS" >&5
23015 echo "$as_me: BonminLib LIBS are $BONMINLIB_LIBS" >&6;}
23016 { echo "$as_me:$LINENO: BonminLib DEPENDENCIES are $BONMINLIB_DEPENDENCIES" >&5
23017 echo "$as_me: BonminLib DEPENDENCIES are $BONMINLIB_DEPENDENCIES" >&6;}
23018
23019 fi
23020 fi
23021
23022 # Define the Makefile conditional
23023
23024
23025 if test $coin_has_filtersqp != notGiven &&
23026 test $coin_has_filtersqp != skipping; then
23027 COIN_HAS_FILTERSQP_TRUE=
23028 COIN_HAS_FILTERSQP_FALSE='#'
23029 else
23030 COIN_HAS_FILTERSQP_TRUE='#'
23031 COIN_HAS_FILTERSQP_FALSE=
23032 fi
23033
23034
23035
23036
23037 if test $coin_has_filtersqp = yes
23038 then
23039 # Get the name of the Fortran compiler and appropriate compiler options
23040 case $build in
23041 *-cygwin* | *-mingw*)
23042 if test "$enable_msvc" = yes ; then
23043 coin_f77_comps="ifort fl32 compile_f2c"
23044 else
23045 coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
23046 fi ;;
23047 *-*-solaris*)
23048 coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
23049 *-linux-gnu*)
23050 coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
23051 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
23052 esac
23053
23054
23055
23056
23057 ac_ext=f
23058 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
23059 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23060 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
23061
23062
23063
23064
23065
23066
23067 coin_has_f77=yes
23068
23069 save_fflags="$FFLAGS"
23070
23071 # We delete the cached value, since the test might not have been
23072 # performed with our choice of compilers earlier
23073 $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
23074
23075 # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
23076 # coin_f77_comps to see if there's a program that matches one of the names.
23077 # If there's no such program, F77 = unavailable. If we match the name,
23078 # feed AC_PROG_F77 the same search list, just to be sure it's a functioning
23079 # compiler.
23080 # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
23081
23082
23083 { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
23084 echo "$as_me: Trying to determine Fortran compiler name" >&6;}
23085 if test -n "$ac_tool_prefix"; then
23086 for ac_prog in $coin_f77_comps
23087 do
23088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23090 echo "$as_me:$LINENO: checking for $ac_word" >&5
23091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23092 if test "${ac_cv_prog_F77+set}" = set; then
23093 echo $ECHO_N "(cached) $ECHO_C" >&6
23094 else
23095 if test -n "$F77"; then
23096 ac_cv_prog_F77="$F77" # Let the user override the test.
23097 else
23098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23099 for as_dir in $PATH
23100 do
23101 IFS=$as_save_IFS
23102 test -z "$as_dir" && as_dir=.
23103 for ac_exec_ext in '' $ac_executable_extensions; do
23104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23105 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
23106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23107 break 2
23108 fi
23109 done
23110 done
23111
23112 fi
23113 fi
23114 F77=$ac_cv_prog_F77
23115 if test -n "$F77"; then
23116 echo "$as_me:$LINENO: result: $F77" >&5
23117 echo "${ECHO_T}$F77" >&6
23118 else
23119 echo "$as_me:$LINENO: result: no" >&5
23120 echo "${ECHO_T}no" >&6
23121 fi
23122
23123 test -n "$F77" && break
23124 done
23125 fi
23126 if test -z "$F77"; then
23127 ac_ct_F77=$F77
23128 for ac_prog in $coin_f77_comps
23129 do
23130 # Extract the first word of "$ac_prog", so it can be a program name with args.
23131 set dummy $ac_prog; ac_word=$2
23132 echo "$as_me:$LINENO: checking for $ac_word" >&5
23133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23134 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
23135 echo $ECHO_N "(cached) $ECHO_C" >&6
23136 else
23137 if test -n "$ac_ct_F77"; then
23138 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
23139 else
23140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23141 for as_dir in $PATH
23142 do
23143 IFS=$as_save_IFS
23144 test -z "$as_dir" && as_dir=.
23145 for ac_exec_ext in '' $ac_executable_extensions; do
23146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23147 ac_cv_prog_ac_ct_F77="$ac_prog"
23148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23149 break 2
23150 fi
23151 done
23152 done
23153
23154 fi
23155 fi
23156 ac_ct_F77=$ac_cv_prog_ac_ct_F77
23157 if test -n "$ac_ct_F77"; then
23158 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
23159 echo "${ECHO_T}$ac_ct_F77" >&6
23160 else
23161 echo "$as_me:$LINENO: result: no" >&5
23162 echo "${ECHO_T}no" >&6
23163 fi
23164
23165 test -n "$ac_ct_F77" && break
23166 done
23167 test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
23168
23169 F77=$ac_ct_F77
23170 fi
23171
23172
23173 if test "$F77" != "unavailable" ; then
23174 ac_ext=f
23175 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
23176 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23177 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
23178 if test -n "$ac_tool_prefix"; then
23179 for ac_prog in $coin_f77_comps
23180 do
23181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23183 echo "$as_me:$LINENO: checking for $ac_word" >&5
23184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23185 if test "${ac_cv_prog_F77+set}" = set; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188 if test -n "$F77"; then
23189 ac_cv_prog_F77="$F77" # Let the user override the test.
23190 else
23191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23192 for as_dir in $PATH
23193 do
23194 IFS=$as_save_IFS
23195 test -z "$as_dir" && as_dir=.
23196 for ac_exec_ext in '' $ac_executable_extensions; do
23197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23198 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
23199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23200 break 2
23201 fi
23202 done
23203 done
23204
23205 fi
23206 fi
23207 F77=$ac_cv_prog_F77
23208 if test -n "$F77"; then
23209 echo "$as_me:$LINENO: result: $F77" >&5
23210 echo "${ECHO_T}$F77" >&6
23211 else
23212 echo "$as_me:$LINENO: result: no" >&5
23213 echo "${ECHO_T}no" >&6
23214 fi
23215
23216 test -n "$F77" && break
23217 done
23218 fi
23219 if test -z "$F77"; then
23220 ac_ct_F77=$F77
23221 for ac_prog in $coin_f77_comps
23222 do
23223 # Extract the first word of "$ac_prog", so it can be a program name with args.
23224 set dummy $ac_prog; ac_word=$2
23225 echo "$as_me:$LINENO: checking for $ac_word" >&5
23226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23227 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
23228 echo $ECHO_N "(cached) $ECHO_C" >&6
23229 else
23230 if test -n "$ac_ct_F77"; then
23231 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
23232 else
23233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23234 for as_dir in $PATH
23235 do
23236 IFS=$as_save_IFS
23237 test -z "$as_dir" && as_dir=.
23238 for ac_exec_ext in '' $ac_executable_extensions; do
23239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23240 ac_cv_prog_ac_ct_F77="$ac_prog"
23241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23242 break 2
23243 fi
23244 done
23245 done
23246
23247 fi
23248 fi
23249 ac_ct_F77=$ac_cv_prog_ac_ct_F77
23250 if test -n "$ac_ct_F77"; then
23251 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
23252 echo "${ECHO_T}$ac_ct_F77" >&6
23253 else
23254 echo "$as_me:$LINENO: result: no" >&5
23255 echo "${ECHO_T}no" >&6
23256 fi
23257
23258 test -n "$ac_ct_F77" && break
23259 done
23260
23261 F77=$ac_ct_F77
23262 fi
23263
23264
23265 # Provide some information about the compiler.
23266 echo "$as_me:23266:" \
23267 "checking for Fortran 77 compiler version" >&5
23268 ac_compiler=`set X $ac_compile; echo $2`
23269 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
23270 (eval $ac_compiler --version </dev/null >&5) 2>&5
23271 ac_status=$?
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }
23274 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
23275 (eval $ac_compiler -v </dev/null >&5) 2>&5
23276 ac_status=$?
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }
23279 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
23280 (eval $ac_compiler -V </dev/null >&5) 2>&5
23281 ac_status=$?
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); }
23284 rm -f a.out
23285
23286 # If we don't use `.F' as extension, the preprocessor is not run on the
23287 # input file. (Note that this only needs to work for GNU compilers.)
23288 ac_save_ext=$ac_ext
23289 ac_ext=F
23290 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
23291 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
23292 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
23293 echo $ECHO_N "(cached) $ECHO_C" >&6
23294 else
23295 cat >conftest.$ac_ext <<_ACEOF
23296 program main
23297 #ifndef __GNUC__
23298 choke me
23299 #endif
23300
23301 end
23302 _ACEOF
23303 rm -f conftest.$ac_objext
23304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23305 (eval $ac_compile) 2>conftest.er1
23306 ac_status=$?
23307 grep -v '^ *+' conftest.er1 >conftest.err
23308 rm -f conftest.er1
23309 cat conftest.err >&5
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); } &&
23312 { ac_try='test -z "$ac_f77_werror_flag"
23313 || test ! -s conftest.err'
23314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23315 (eval $ac_try) 2>&5
23316 ac_status=$?
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); }; } &&
23319 { ac_try='test -s conftest.$ac_objext'
23320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23321 (eval $ac_try) 2>&5
23322 ac_status=$?
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); }; }; then
23325 ac_compiler_gnu=yes
23326 else
23327 echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23329
23330 ac_compiler_gnu=no
23331 fi
23332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23333 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
23334
23335 fi
23336 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
23337 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
23338 ac_ext=$ac_save_ext
23339 ac_test_FFLAGS=${FFLAGS+set}
23340 ac_save_FFLAGS=$FFLAGS
23341 FFLAGS=
23342 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
23343 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
23344 if test "${ac_cv_prog_f77_g+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23346 else
23347 FFLAGS=-g
23348 cat >conftest.$ac_ext <<_ACEOF
23349 program main
23350
23351 end
23352 _ACEOF
23353 rm -f conftest.$ac_objext
23354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23355 (eval $ac_compile) 2>conftest.er1
23356 ac_status=$?
23357 grep -v '^ *+' conftest.er1 >conftest.err
23358 rm -f conftest.er1
23359 cat conftest.err >&5
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); } &&
23362 { ac_try='test -z "$ac_f77_werror_flag"
23363 || test ! -s conftest.err'
23364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365 (eval $ac_try) 2>&5
23366 ac_status=$?
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); }; } &&
23369 { ac_try='test -s conftest.$ac_objext'
23370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23371 (eval $ac_try) 2>&5
23372 ac_status=$?
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); }; }; then
23375 ac_cv_prog_f77_g=yes
23376 else
23377 echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23379
23380 ac_cv_prog_f77_g=no
23381 fi
23382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23383
23384 fi
23385 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
23386 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
23387 if test "$ac_test_FFLAGS" = set; then
23388 FFLAGS=$ac_save_FFLAGS
23389 elif test $ac_cv_prog_f77_g = yes; then
23390 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
23391 FFLAGS="-g -O2"
23392 else
23393 FFLAGS="-g"
23394 fi
23395 else
23396 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
23397 FFLAGS="-O2"
23398 else
23399 FFLAGS=
23400 fi
23401 fi
23402
23403 G77=`test $ac_compiler_gnu = yes && echo yes`
23404 ac_ext=f
23405 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
23406 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23407 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
23408
23409 else
23410 { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
23411 echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
23412 fi
23413
23414 FFLAGS="$save_fflags"
23415
23416 # Check if a project specific FFLAGS variable has been set
23417 if test x$COIN_PRJCT != x; then
23418 eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
23419 if test x$coin_tmp = xset; then
23420 eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
23421 fi
23422 fi
23423
23424 if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
23425
23426 coin_add_fflags=
23427 coin_opt_fflags=
23428 coin_dbg_fflags=
23429 coin_warn_fflags=
23430
23431 if test "$G77" = "yes"; then
23432 coin_opt_fflags="-O3"
23433 coin_add_fflags="-pipe"
23434 coin_dbg_fflags="-g -O0"
23435 else
23436 case $build in
23437 *-cygwin* | *-mingw*)
23438 case $F77 in
23439 ifort* | */ifort* | IFORT* | */IFORT* )
23440 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
23441 coin_opt_fflags='-MD -O3'
23442 coin_dbg_fflags='-MDd -debug'
23443 else
23444 coin_opt_fflags='-MT -O3'
23445 coin_dbg_fflags='-MTd -debug'
23446 fi
23447 coin_add_fflags='-fpp -nologo'
23448 ;;
23449 compile_f2c*)
23450 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
23451 coin_opt_fflags='-MD -O2'
23452 coin_dbg_fflags='-MDd'
23453 else
23454 coin_opt_fflags='-MT -O2'
23455 coin_dbg_fflags='-MTd'
23456 fi
23457 coin_add_fflags='-nologo -wd4996'
23458 ;;
23459 esac
23460 ;;
23461 *-linux-*)
23462 case $F77 in
23463 ifc* | */ifc* | ifort* | */ifort*)
23464 coin_opt_fflags="-O3 -ip"
23465 coin_add_fflags="-cm -w90 -w95"
23466 coin_dbg_fflags="-g -CA -CB -CS"
23467 # Check if -i_dynamic is necessary (for new glibc library)
23468 FFLAGS=
23469 cat >conftest.$ac_ext <<_ACEOF
23470 program main
23471 write(*,*) 'Hello world'
23472 end
23473 _ACEOF
23474 rm -f conftest.$ac_objext conftest$ac_exeext
23475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23476 (eval $ac_link) 2>conftest.er1
23477 ac_status=$?
23478 grep -v '^ *+' conftest.er1 >conftest.err
23479 rm -f conftest.er1
23480 cat conftest.err >&5
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); } &&
23483 { ac_try='test -z "$ac_f77_werror_flag"
23484 || test ! -s conftest.err'
23485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23486 (eval $ac_try) 2>&5
23487 ac_status=$?
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); }; } &&
23490 { ac_try='test -s conftest$ac_exeext'
23491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23492 (eval $ac_try) 2>&5
23493 ac_status=$?
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); }; }; then
23496 :
23497 else
23498 echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23500
23501 coin_add_fflags="-i_dynamic $coin_add_fflags"
23502 fi
23503 rm -f conftest.err conftest.$ac_objext \
23504 conftest$ac_exeext conftest.$ac_ext
23505 ;;
23506 pgf77* | */pgf77* | pgf90* | */pgf90*)
23507 coin_opt_fflags="-fast"
23508 coin_add_fflags="-Kieee -pc 64"
23509 coin_dbg_fflags="-g"
23510 ;;
23511 esac
23512 ;;
23513 *-ibm-*)
23514 case "$F77" in
23515 xlf* | */xlf* | mpxlf* | */mpxlf* )
23516 coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
23517 coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
23518 coin_dbg_fflags="-g -C"
23519 ;;
23520 esac
23521 ;;
23522 *-hp-*)
23523 coin_opt_fflags="+O3"
23524 coin_add_fflags="+U77"
23525 coin_dbg_fflags="-C -g"
23526 ;;
23527 *-*-solaris*)
23528 coin_opt_fflags="-O4"
23529 coin_dbg_fflags="-g"
23530 ;;
23531 *-sgi-*)
23532 coin_opt_fflags="-O5 -OPT:Olimit=0"
23533 coin_dbg_fflags="-g"
23534 ;;
23535 esac
23536 fi
23537
23538 if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
23539 coin_dbg_fflags="-g"
23540 fi
23541
23542 if test -z "$coin_opt_fflags"; then
23543 # Try if -O option works if nothing else is set
23544 FFLAGS=-O
23545 cat >conftest.$ac_ext <<_ACEOF
23546 program main
23547 integer i
23548 end
23549 _ACEOF
23550 rm -f conftest.$ac_objext conftest$ac_exeext
23551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23552 (eval $ac_link) 2>conftest.er1
23553 ac_status=$?
23554 grep -v '^ *+' conftest.er1 >conftest.err
23555 rm -f conftest.er1
23556 cat conftest.err >&5
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } &&
23559 { ac_try='test -z "$ac_f77_werror_flag"
23560 || test ! -s conftest.err'
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23563 ac_status=$?
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; } &&
23566 { ac_try='test -s conftest$ac_exeext'
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23569 ac_status=$?
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572 coin_opt_fflags="-O"
23573 else
23574 echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23576
23577 fi
23578 rm -f conftest.err conftest.$ac_objext \
23579 conftest$ac_exeext conftest.$ac_ext
23580 fi
23581
23582 # if PM doesn't want the warning messages, take them out
23583 if test x"$coin_skip_warn_fflags" = xyes; then
23584 coin_warn_fflags=
23585 fi
23586
23587 if test x${DBG_FFLAGS+set} != xset; then
23588 DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
23589 fi
23590 if test x${OPT_FFLAGS+set} != xset; then
23591 OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
23592 fi
23593
23594 DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
23595 OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
23596
23597 if test "$coin_debug_compile" = "true"; then
23598 FFLAGS="$DBG_FFLAGS"
23599 else
23600 FFLAGS="$OPT_FFLAGS"
23601 fi
23602 else
23603 FFLAGS="$FFLAGS $ADD_FFLAGS"
23604 if test x${DBG_FFLAGS+set} != xset; then
23605 DBG_FFLAGS="$FFLAGS"
23606 fi
23607 if test x${OPT_FFLAGS+set} != xset; then
23608 OPT_FFLAGS="$FFLAGS"
23609 fi
23610 fi
23611
23612 # Try if FFLAGS works
23613 if test "$F77" != "unavailable" ; then
23614 orig_FFLAGS="FFLAGS"
23615 cat >conftest.$ac_ext <<_ACEOF
23616 program main
23617 integer i
23618 end
23619 _ACEOF
23620 rm -f conftest.$ac_objext conftest$ac_exeext
23621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23622 (eval $ac_link) 2>conftest.er1
23623 ac_status=$?
23624 grep -v '^ *+' conftest.er1 >conftest.err
23625 rm -f conftest.er1
23626 cat conftest.err >&5
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); } &&
23629 { ac_try='test -z "$ac_f77_werror_flag"
23630 || test ! -s conftest.err'
23631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23632 (eval $ac_try) 2>&5
23633 ac_status=$?
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); }; } &&
23636 { ac_try='test -s conftest$ac_exeext'
23637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23638 (eval $ac_try) 2>&5
23639 ac_status=$?
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); }; }; then
23642 :
23643 else
23644 echo "$as_me: failed program was:" >&5
23645 sed 's/^/| /' conftest.$ac_ext >&5
23646
23647 FFLAGS=
23648 fi
23649 rm -f conftest.err conftest.$ac_objext \
23650 conftest$ac_exeext conftest.$ac_ext
23651 if test -z "$FFLAGS"; then
23652 { 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
23653 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;}
23654 FFLAGS='-O'
23655 cat >conftest.$ac_ext <<_ACEOF
23656 program main
23657 integer i
23658 end
23659 _ACEOF
23660 rm -f conftest.$ac_objext conftest$ac_exeext
23661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23662 (eval $ac_link) 2>conftest.er1
23663 ac_status=$?
23664 grep -v '^ *+' conftest.er1 >conftest.err
23665 rm -f conftest.er1
23666 cat conftest.err >&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); } &&
23669 { ac_try='test -z "$ac_f77_werror_flag"
23670 || test ! -s conftest.err'
23671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23672 (eval $ac_try) 2>&5
23673 ac_status=$?
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); }; } &&
23676 { ac_try='test -s conftest$ac_exeext'
23677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678 (eval $ac_try) 2>&5
23679 ac_status=$?
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); }; }; then
23682 :
23683 else
23684 echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23686
23687 FFLAGS=
23688 fi
23689 rm -f conftest.err conftest.$ac_objext \
23690 conftest$ac_exeext conftest.$ac_ext
23691 if test -z "$FFLAGS"; then
23692 { 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
23693 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;}
23694 fi
23695 fi
23696 fi
23697
23698 { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
23699 echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
23700
23701
23702 if test x"$MPIF77" = x; then :; else
23703 { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
23704 echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
23705 F77="$MPIF77"
23706 fi
23707
23708 # correct the LD variable if we use the intel fortran compiler in windows
23709 case $build in
23710 *-cygwin* | *-mingw*)
23711 case "$F77" in
23712 ifort* | */ifort* | IFORT* | */IFORT*)
23713 LD=link
23714 ;;
23715 esac
23716 ;;
23717 esac
23718
23719 ac_ext=c
23720 ac_cpp='$CPP $CPPFLAGS'
23721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23724
23725
23726
23727 # Find out how to call Fortran from C and determine Fortran runtime libraries
23728
23729 # get FLIBS
23730 ac_ext=f
23731 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
23732 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23733 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
23734 echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
23735 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
23736 if test "${ac_cv_prog_f77_v+set}" = set; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23738 else
23739 cat >conftest.$ac_ext <<_ACEOF
23740 program main
23741
23742 end
23743 _ACEOF
23744 rm -f conftest.$ac_objext
23745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23746 (eval $ac_compile) 2>conftest.er1
23747 ac_status=$?
23748 grep -v '^ *+' conftest.er1 >conftest.err
23749 rm -f conftest.er1
23750 cat conftest.err >&5
23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); } &&
23753 { ac_try='test -z "$ac_f77_werror_flag"
23754 || test ! -s conftest.err'
23755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756 (eval $ac_try) 2>&5
23757 ac_status=$?
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); }; } &&
23760 { ac_try='test -s conftest.$ac_objext'
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; }; then
23766 ac_cv_prog_f77_v=
23767 # Try some options frequently used verbose output
23768 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
23769 cat >conftest.$ac_ext <<_ACEOF
23770 program main
23771
23772 end
23773 _ACEOF
23774
23775 # Compile and link our simple test program by passing a flag (argument
23776 # 1 to this macro) to the Fortran compiler in order to get
23777 # "verbose" output that we can then parse for the Fortran linker
23778 # flags.
23779 ac_save_FFLAGS=$FFLAGS
23780 FFLAGS="$FFLAGS $ac_verb"
23781 (eval echo $as_me:23781: \"$ac_link\") >&5
23782 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
23783 echo "$ac_f77_v_output" >&5
23784 FFLAGS=$ac_save_FFLAGS
23785
23786 rm -f conftest*
23787
23788 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
23789 # /foo, /bar, and /baz are search directories for the Fortran linker.
23790 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
23791 ac_f77_v_output="`echo $ac_f77_v_output |
23792 grep 'LPATH is:' |
23793 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
23794
23795 case $ac_f77_v_output in
23796 # If we are using xlf then replace all the commas with spaces.
23797 *xlfentry*)
23798 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
23799
23800 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
23801 # $LIBS confuse us, and the libraries appear later in the output anyway).
23802 *mGLOB_options_string*)
23803 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
23804
23805 # If we are using Cray Fortran then delete quotes.
23806 # Use "\"" instead of '"' for font-lock-mode.
23807 # FIXME: a more general fix for quoted arguments with spaces?
23808 *cft90*)
23809 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
23810 esac
23811
23812
23813 # look for -l* and *.a constructs in the output
23814 for ac_arg in $ac_f77_v_output; do
23815 case $ac_arg in
23816 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
23817 ac_cv_prog_f77_v=$ac_verb
23818 break 2 ;;
23819 esac
23820 done
23821 done
23822 if test -z "$ac_cv_prog_f77_v"; then
23823 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
23824 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
23825 fi
23826 else
23827 echo "$as_me: failed program was:" >&5
23828 sed 's/^/| /' conftest.$ac_ext >&5
23829
23830 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
23831 echo "$as_me: WARNING: compilation failed" >&2;}
23832 fi
23833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23834
23835 fi
23836 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
23837 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
23838 echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
23839 echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
23840 if test "${ac_cv_f77_libs+set}" = set; then
23841 echo $ECHO_N "(cached) $ECHO_C" >&6
23842 else
23843 if test "x$FLIBS" != "x"; then
23844 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
23845 else
23846
23847 cat >conftest.$ac_ext <<_ACEOF
23848 program main
23849
23850 end
23851 _ACEOF
23852
23853 # Compile and link our simple test program by passing a flag (argument
23854 # 1 to this macro) to the Fortran compiler in order to get
23855 # "verbose" output that we can then parse for the Fortran linker
23856 # flags.
23857 ac_save_FFLAGS=$FFLAGS
23858 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
23859 (eval echo $as_me:23859: \"$ac_link\") >&5
23860 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
23861 echo "$ac_f77_v_output" >&5
23862 FFLAGS=$ac_save_FFLAGS
23863
23864 rm -f conftest*
23865
23866 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
23867 # /foo, /bar, and /baz are search directories for the Fortran linker.
23868 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
23869 ac_f77_v_output="`echo $ac_f77_v_output |
23870 grep 'LPATH is:' |
23871 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
23872
23873 case $ac_f77_v_output in
23874 # If we are using xlf then replace all the commas with spaces.
23875 *xlfentry*)
23876 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
23877
23878 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
23879 # $LIBS confuse us, and the libraries appear later in the output anyway).
23880 *mGLOB_options_string*)
23881 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
23882
23883 # If we are using Cray Fortran then delete quotes.
23884 # Use "\"" instead of '"' for font-lock-mode.
23885 # FIXME: a more general fix for quoted arguments with spaces?
23886 *cft90*)
23887 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
23888 esac
23889
23890
23891
23892 ac_cv_f77_libs=
23893
23894 # Save positional arguments (if any)
23895 ac_save_positional="$@"
23896
23897 set X $ac_f77_v_output
23898 while test $# != 1; do
23899 shift
23900 ac_arg=$1
23901 case $ac_arg in
23902 [\\/]*.a | ?:[\\/]*.a)
23903 ac_exists=false
23904 for ac_i in $ac_cv_f77_libs; do
23905 if test x"$ac_arg" = x"$ac_i"; then
23906 ac_exists=true
23907 break
23908 fi
23909 done
23910
23911 if test x"$ac_exists" = xtrue; then
23912 :
23913 else
23914 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
23915 fi
23916
23917 ;;
23918 -bI:*)
23919 ac_exists=false
23920 for ac_i in $ac_cv_f77_libs; do
23921 if test x"$ac_arg" = x"$ac_i"; then
23922 ac_exists=true
23923 break
23924 fi
23925 done
23926
23927 if test x"$ac_exists" = xtrue; then
23928 :
23929 else
23930 if test "$ac_compiler_gnu" = yes; then
23931 for ac_link_opt in $ac_arg; do
23932 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
23933 done
23934 else
23935 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
23936 fi
23937 fi
23938
23939 ;;
23940 # Ignore these flags.
23941 -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
23942 ;;
23943 -lkernel32)
23944 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
23945 ;;
23946 -[LRuY])
23947 # These flags, when seen by themselves, take an argument.
23948 # We remove the space between option and argument and re-iterate
23949 # unless we find an empty arg or a new option (starting with -)
23950 case $2 in
23951 "" | -*);;
23952 *)
23953 ac_arg="$ac_arg$2"
23954 shift; shift
23955 set X $ac_arg "$@"
23956 ;;
23957 esac
23958 ;;
23959 -YP,*)
23960 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
23961 ac_exists=false
23962 for ac_i in $ac_cv_f77_libs; do
23963 if test x"$ac_j" = x"$ac_i"; then
23964 ac_exists=true
23965 break
23966 fi
23967 done
23968
23969 if test x"$ac_exists" = xtrue; then
23970 :
23971 else
23972 ac_arg="$ac_arg $ac_j"
23973 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
23974 fi
23975
23976 done
23977 ;;
23978 -[lLR]*)
23979 ac_exists=false
23980 for ac_i in $ac_cv_f77_libs; do
23981 if test x"$ac_arg" = x"$ac_i"; then
23982 ac_exists=true
23983 break
23984 fi
23985 done
23986
23987 if test x"$ac_exists" = xtrue; then
23988 :
23989 else
23990 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
23991 fi
23992
23993 ;;
23994 # Ignore everything else.
23995 esac
23996 done
23997 # restore positional arguments
23998 set X $ac_save_positional; shift
23999
24000 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
24001 # then we insist that the "run path" must be an absolute path (i.e. it
24002 # must begin with a "/").
24003 case `(uname -sr) 2>/dev/null` in
24004 "SunOS 5"*)
24005 ac_ld_run_path=`echo $ac_f77_v_output |
24006 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
24007 test "x$ac_ld_run_path" != x &&
24008 if test "$ac_compiler_gnu" = yes; then
24009 for ac_link_opt in $ac_ld_run_path; do
24010 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
24011 done
24012 else
24013 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
24014 fi
24015 ;;
24016 esac
24017 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
24018
24019 fi
24020 echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
24021 echo "${ECHO_T}$ac_cv_f77_libs" >&6
24022 FLIBS="$ac_cv_f77_libs"
24023
24024
24025 ac_ext=c
24026 ac_cpp='$CPP $CPPFLAGS'
24027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24030
24031 orig_FLIBS="$FLIBS"
24032
24033 # If FLIBS has been set by the user, we just restore its value here
24034 if test x"$save_FLIBS" != x; then
24035 FLIBS="$save_FLIBS"
24036 else
24037 # This is to correct a missing exclusion in autoconf 2.59
24038 if test x"$FLIBS" != x; then
24039 my_flibs=
24040 for flag in $FLIBS; do
24041 case $flag in
24042 -lcrt*.o) ;;
24043 -lcygwin) ;;
24044 -lgcc*) ;;
24045 *) my_flibs="$my_flibs $flag" ;;
24046 esac
24047 done
24048 FLIBS="$my_flibs"
24049 fi
24050
24051 case $build in
24052 # The following is a fix to define FLIBS for ifort on Windows
24053 # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
24054 # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
24055 # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
24056 # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
24057 # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
24058 *-cygwin* | *-mingw*)
24059 case "$F77" in
24060 # ifort* | */ifort* | IFORT* | */IFORT*)
24061 # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
24062 # if "$coin_debug_compile" = true ; then
24063 # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
24064 # else
24065 # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
24066 # fi
24067 # ;;
24068 compile_f2c*)
24069 FLIBS=`$F77 -FLIBS` ;;
24070 esac;;
24071 *-hp-*)
24072 FLIBS="$FLIBS -lm";;
24073 *-ibm-*)
24074 FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
24075 *-linux-*)
24076 case "$F77" in
24077 pgf77* | */pgf77* | pgf90* | */pgf90*)
24078 # ask linker to go through the archives multiple times
24079 # (the Fortran compiler seems to do that automatically...)
24080 FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
24081 esac
24082 esac
24083 ac_cv_f77_libs="$FLIBS"
24084 fi
24085
24086 if test "x$orig_FLIBS" != "x$FLIBS" ; then
24087 { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
24088 echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
24089 fi
24090
24091 ac_ext=f
24092 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24093 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24094 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24095
24096 echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
24097 echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
24098 if test "${ac_cv_f77_dummy_main+set}" = set; then
24099 echo $ECHO_N "(cached) $ECHO_C" >&6
24100 else
24101 ac_f77_dm_save_LIBS=$LIBS
24102 LIBS="$LIBS $FLIBS"
24103 ac_fortran_dm_var=F77_DUMMY_MAIN
24104 ac_ext=c
24105 ac_cpp='$CPP $CPPFLAGS'
24106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24109
24110 # First, try linking without a dummy main:
24111 cat >conftest.$ac_ext <<_ACEOF
24112 /* confdefs.h. */
24113 _ACEOF
24114 cat confdefs.h >>conftest.$ac_ext
24115 cat >>conftest.$ac_ext <<_ACEOF
24116 /* end confdefs.h. */
24117
24118 #ifdef F77_DUMMY_MAIN
24119
24120 # ifdef __cplusplus
24121 extern "C"
24122 # endif
24123 int F77_DUMMY_MAIN() { return 1; }
24124
24125 #endif
24126 int
24127 main ()
24128 {
24129
24130 ;
24131 return 0;
24132 }
24133 _ACEOF
24134 rm -f conftest.$ac_objext conftest$ac_exeext
24135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24136 (eval $ac_link) 2>conftest.er1
24137 ac_status=$?
24138 grep -v '^ *+' conftest.er1 >conftest.err
24139 rm -f conftest.er1
24140 cat conftest.err >&5
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); } &&
24143 { ac_try='test -z "$ac_c_werror_flag"
24144 || test ! -s conftest.err'
24145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24146 (eval $ac_try) 2>&5
24147 ac_status=$?
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); }; } &&
24150 { ac_try='test -s conftest$ac_exeext'
24151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24152 (eval $ac_try) 2>&5
24153 ac_status=$?
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); }; }; then
24156 ac_cv_fortran_dummy_main=none
24157 else
24158 echo "$as_me: failed program was:" >&5
24159 sed 's/^/| /' conftest.$ac_ext >&5
24160
24161 ac_cv_fortran_dummy_main=unknown
24162 fi
24163 rm -f conftest.err conftest.$ac_objext \
24164 conftest$ac_exeext conftest.$ac_ext
24165
24166 if test $ac_cv_fortran_dummy_main = unknown; then
24167 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
24168 cat >conftest.$ac_ext <<_ACEOF
24169 /* confdefs.h. */
24170 _ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h. */
24174 #define $ac_fortran_dm_var $ac_func
24175 #ifdef F77_DUMMY_MAIN
24176
24177 # ifdef __cplusplus
24178 extern "C"
24179 # endif
24180 int F77_DUMMY_MAIN() { return 1; }
24181
24182 #endif
24183 int
24184 main ()
24185 {
24186
24187 ;
24188 return 0;
24189 }
24190 _ACEOF
24191 rm -f conftest.$ac_objext conftest$ac_exeext
24192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24193 (eval $ac_link) 2>conftest.er1
24194 ac_status=$?
24195 grep -v '^ *+' conftest.er1 >conftest.err
24196 rm -f conftest.er1
24197 cat conftest.err >&5
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); } &&
24200 { ac_try='test -z "$ac_c_werror_flag"
24201 || test ! -s conftest.err'
24202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203 (eval $ac_try) 2>&5
24204 ac_status=$?
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; } &&
24207 { ac_try='test -s conftest$ac_exeext'
24208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24209 (eval $ac_try) 2>&5
24210 ac_status=$?
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); }; }; then
24213 ac_cv_fortran_dummy_main=$ac_func; break
24214 else
24215 echo "$as_me: failed program was:" >&5
24216 sed 's/^/| /' conftest.$ac_ext >&5
24217
24218 fi
24219 rm -f conftest.err conftest.$ac_objext \
24220 conftest$ac_exeext conftest.$ac_ext
24221 done
24222 fi
24223 ac_ext=f
24224 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24225 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24226 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24227 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
24228 rm -f conftest*
24229 LIBS=$ac_f77_dm_save_LIBS
24230
24231 fi
24232 echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
24233 echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
24234 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
24235 if test "$F77_DUMMY_MAIN" != unknown; then
24236 if test $F77_DUMMY_MAIN != none; then
24237
24238 cat >>confdefs.h <<_ACEOF
24239 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN
24240 _ACEOF
24241
24242 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
24243
24244 cat >>confdefs.h <<\_ACEOF
24245 #define FC_DUMMY_MAIN_EQ_F77 1
24246 _ACEOF
24247
24248 fi
24249 fi
24250 else
24251 { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
24252 See \`config.log' for more details." >&5
24253 echo "$as_me: error: linking to Fortran libraries from C fails
24254 See \`config.log' for more details." >&2;}
24255 { (exit 1); exit 1; }; }
24256 fi
24257
24258
24259 ac_ext=f
24260 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24261 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24262 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24263
24264 ac_ext=f
24265 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24266 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24267 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24268 echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
24269 echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
24270 if test "${ac_cv_f77_mangling+set}" = set; then
24271 echo $ECHO_N "(cached) $ECHO_C" >&6
24272 else
24273 cat >conftest.$ac_ext <<_ACEOF
24274 subroutine foobar()
24275 return
24276 end
24277 subroutine foo_bar()
24278 return
24279 end
24280 _ACEOF
24281 rm -f conftest.$ac_objext
24282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24283 (eval $ac_compile) 2>conftest.er1
24284 ac_status=$?
24285 grep -v '^ *+' conftest.er1 >conftest.err
24286 rm -f conftest.er1
24287 cat conftest.err >&5
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } &&
24290 { ac_try='test -z "$ac_f77_werror_flag"
24291 || test ! -s conftest.err'
24292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24293 (eval $ac_try) 2>&5
24294 ac_status=$?
24295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296 (exit $ac_status); }; } &&
24297 { ac_try='test -s conftest.$ac_objext'
24298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24299 (eval $ac_try) 2>&5
24300 ac_status=$?
24301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302 (exit $ac_status); }; }; then
24303 mv conftest.$ac_objext cfortran_test.$ac_objext
24304
24305 ac_save_LIBS=$LIBS
24306 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
24307
24308 ac_ext=c
24309 ac_cpp='$CPP $CPPFLAGS'
24310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24313 ac_success=no
24314 for ac_foobar in foobar FOOBAR; do
24315 for ac_underscore in "" "_"; do
24316 ac_func="$ac_foobar$ac_underscore"
24317 cat >conftest.$ac_ext <<_ACEOF
24318 /* confdefs.h. */
24319 _ACEOF
24320 cat confdefs.h >>conftest.$ac_ext
24321 cat >>conftest.$ac_ext <<_ACEOF
24322 /* end confdefs.h. */
24323
24324 /* Override any gcc2 internal prototype to avoid an error. */
24325 #ifdef __cplusplus
24326 extern "C"
24327 #endif
24328 /* We use char because int might match the return type of a gcc2
24329 builtin and then its argument prototype would still apply. */
24330 char $ac_func ();
24331 #ifdef F77_DUMMY_MAIN
24332
24333 # ifdef __cplusplus
24334 extern "C"
24335 # endif
24336 int F77_DUMMY_MAIN() { return 1; }
24337
24338 #endif
24339 int
24340 main ()
24341 {
24342 $ac_func ();
24343 ;
24344 return 0;
24345 }
24346 _ACEOF
24347 rm -f conftest.$ac_objext conftest$ac_exeext
24348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24349 (eval $ac_link) 2>conftest.er1
24350 ac_status=$?
24351 grep -v '^ *+' conftest.er1 >conftest.err
24352 rm -f conftest.er1
24353 cat conftest.err >&5
24354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355 (exit $ac_status); } &&
24356 { ac_try='test -z "$ac_c_werror_flag"
24357 || test ! -s conftest.err'
24358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24359 (eval $ac_try) 2>&5
24360 ac_status=$?
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); }; } &&
24363 { ac_try='test -s conftest$ac_exeext'
24364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24365 (eval $ac_try) 2>&5
24366 ac_status=$?
24367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); }; }; then
24369 ac_success=yes; break 2
24370 else
24371 echo "$as_me: failed program was:" >&5
24372 sed 's/^/| /' conftest.$ac_ext >&5
24373
24374 fi
24375 rm -f conftest.err conftest.$ac_objext \
24376 conftest$ac_exeext conftest.$ac_ext
24377 done
24378 done
24379 ac_ext=f
24380 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24381 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24382 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24383
24384 if test "$ac_success" = "yes"; then
24385 case $ac_foobar in
24386 foobar)
24387 ac_case=lower
24388 ac_foo_bar=foo_bar
24389 ;;
24390 FOOBAR)
24391 ac_case=upper
24392 ac_foo_bar=FOO_BAR
24393 ;;
24394 esac
24395
24396 ac_ext=c
24397 ac_cpp='$CPP $CPPFLAGS'
24398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24401 ac_success_extra=no
24402 for ac_extra in "" "_"; do
24403 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
24404 cat >conftest.$ac_ext <<_ACEOF
24405 /* confdefs.h. */
24406 _ACEOF
24407 cat confdefs.h >>conftest.$ac_ext
24408 cat >>conftest.$ac_ext <<_ACEOF
24409 /* end confdefs.h. */
24410
24411 /* Override any gcc2 internal prototype to avoid an error. */
24412 #ifdef __cplusplus
24413 extern "C"
24414 #endif
24415 /* We use char because int might match the return type of a gcc2
24416 builtin and then its argument prototype would still apply. */
24417 char $ac_func ();
24418 #ifdef F77_DUMMY_MAIN
24419
24420 # ifdef __cplusplus
24421 extern "C"
24422 # endif
24423 int F77_DUMMY_MAIN() { return 1; }
24424
24425 #endif
24426 int
24427 main ()
24428 {
24429 $ac_func ();
24430 ;
24431 return 0;
24432 }
24433 _ACEOF
24434 rm -f conftest.$ac_objext conftest$ac_exeext
24435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24436 (eval $ac_link) 2>conftest.er1
24437 ac_status=$?
24438 grep -v '^ *+' conftest.er1 >conftest.err
24439 rm -f conftest.er1
24440 cat conftest.err >&5
24441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442 (exit $ac_status); } &&
24443 { ac_try='test -z "$ac_c_werror_flag"
24444 || test ! -s conftest.err'
24445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24446 (eval $ac_try) 2>&5
24447 ac_status=$?
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); }; } &&
24450 { ac_try='test -s conftest$ac_exeext'
24451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24452 (eval $ac_try) 2>&5
24453 ac_status=$?
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); }; }; then
24456 ac_success_extra=yes; break
24457 else
24458 echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24460
24461 fi
24462 rm -f conftest.err conftest.$ac_objext \
24463 conftest$ac_exeext conftest.$ac_ext
24464 done
24465 ac_ext=f
24466 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24467 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24468 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24469
24470 if test "$ac_success_extra" = "yes"; then
24471 ac_cv_f77_mangling="$ac_case case"
24472 if test -z "$ac_underscore"; then
24473 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
24474 else
24475 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
24476 fi
24477 if test -z "$ac_extra"; then
24478 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
24479 else
24480 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
24481 fi
24482 else
24483 ac_cv_f77_mangling="unknown"
24484 fi
24485 else
24486 ac_cv_f77_mangling="unknown"
24487 fi
24488
24489 LIBS=$ac_save_LIBS
24490 rm -f cfortran_test* conftest*
24491 else
24492 echo "$as_me: failed program was:" >&5
24493 sed 's/^/| /' conftest.$ac_ext >&5
24494
24495 { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
24496 See \`config.log' for more details." >&5
24497 echo "$as_me: error: cannot compile a simple Fortran program
24498 See \`config.log' for more details." >&2;}
24499 { (exit 1); exit 1; }; }
24500 fi
24501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24502
24503 fi
24504 echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
24505 echo "${ECHO_T}$ac_cv_f77_mangling" >&6
24506
24507 ac_ext=f
24508 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24509 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24510 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24511
24512
24513 ac_ext=f
24514 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24515 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24516 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24517
24518 ac_ext=f
24519 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24520 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24521 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24522
24523
24524 case $ac_cv_f77_mangling in
24525 "lower case, no underscore, no extra underscore")
24526 cat >>confdefs.h <<\_ACEOF
24527 #define F77_FUNC(name,NAME) name
24528 _ACEOF
24529
24530 cat >>confdefs.h <<\_ACEOF
24531 #define F77_FUNC_(name,NAME) name
24532 _ACEOF
24533 ;;
24534 "lower case, no underscore, extra underscore")
24535 cat >>confdefs.h <<\_ACEOF
24536 #define F77_FUNC(name,NAME) name
24537 _ACEOF
24538
24539 cat >>confdefs.h <<\_ACEOF
24540 #define F77_FUNC_(name,NAME) name ## _
24541 _ACEOF
24542 ;;
24543 "lower case, underscore, no extra underscore")
24544 cat >>confdefs.h <<\_ACEOF
24545 #define F77_FUNC(name,NAME) name ## _
24546 _ACEOF
24547
24548 cat >>confdefs.h <<\_ACEOF
24549 #define F77_FUNC_(name,NAME) name ## _
24550 _ACEOF
24551 ;;
24552 "lower case, underscore, extra underscore")
24553 cat >>confdefs.h <<\_ACEOF
24554 #define F77_FUNC(name,NAME) name ## _
24555 _ACEOF
24556
24557 cat >>confdefs.h <<\_ACEOF
24558 #define F77_FUNC_(name,NAME) name ## __
24559 _ACEOF
24560 ;;
24561 "upper case, no underscore, no extra underscore")
24562 cat >>confdefs.h <<\_ACEOF
24563 #define F77_FUNC(name,NAME) NAME
24564 _ACEOF
24565
24566 cat >>confdefs.h <<\_ACEOF
24567 #define F77_FUNC_(name,NAME) NAME
24568 _ACEOF
24569 ;;
24570 "upper case, no underscore, extra underscore")
24571 cat >>confdefs.h <<\_ACEOF
24572 #define F77_FUNC(name,NAME) NAME
24573 _ACEOF
24574
24575 cat >>confdefs.h <<\_ACEOF
24576 #define F77_FUNC_(name,NAME) NAME ## _
24577 _ACEOF
24578 ;;
24579 "upper case, underscore, no extra underscore")
24580 cat >>confdefs.h <<\_ACEOF
24581 #define F77_FUNC(name,NAME) NAME ## _
24582 _ACEOF
24583
24584 cat >>confdefs.h <<\_ACEOF
24585 #define F77_FUNC_(name,NAME) NAME ## _
24586 _ACEOF
24587 ;;
24588 "upper case, underscore, extra underscore")
24589 cat >>confdefs.h <<\_ACEOF
24590 #define F77_FUNC(name,NAME) NAME ## _
24591 _ACEOF
24592
24593 cat >>confdefs.h <<\_ACEOF
24594 #define F77_FUNC_(name,NAME) NAME ## __
24595 _ACEOF
24596 ;;
24597 *)
24598 { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
24599 echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
24600 ;;
24601 esac
24602
24603 ac_ext=f
24604 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24605 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24606 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24607
24608 ac_ext=c
24609 ac_cpp='$CPP $CPPFLAGS'
24610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24613
24614
24615
24616 fi
24617
24618 # we want to keep the linking check for FilterSQP, but cannot do this if FilterSQP will be build later (in ThirdParty)
24619 #if test $coin_has_filtersqp = yes ; then
24620 # AC_MSG_CHECKING([whether FilterSQP library $FILTERSQP_LIBS works])
24621 # SAVE_LIBS="$LIBS"
24622 # LIBS="$FILTERSQP_LIBS $FLIBS $LIBS"
24623 # AC_LANG_PUSH([Fortran 77])
24624 # AC_TRY_LINK([],
24625 #[ call filterSQP
24626 # end
24627 # subroutine confun
24628 # end
24629 # subroutine objfun
24630 # end
24631 # subroutine gradient
24632 # end
24633 # subroutine hessian],
24634 # [AC_MSG_RESULT([yes])
24635 # FILTERSQP_LIBS="$FILTERSQP_LIBS $FLIBS"],
24636 # [AC_MSG_RESULT([no])
24637 # AC_MSG_ERROR([user supplied FilterSQP library $FILTERSQP_LIBS does not work])])
24638 # AC_LANG_POP([Fortran 77])
24639 # LIBS="$SAVE_LIBS"
24640 #fi
24641
24642 #############################################################################
24643 # Feasibility Pump #
24644 #############################################################################
24645
24646 #if test x"$BUILD_FP" != x; then
24647 # build_fp=yes
24648 #fi
24649 #AM_CONDITIONAL(BUILD_FP, test x$build_fp = xyes)
24650
24651 #############################################################################
24652 # ASTYLE #
24653 #############################################################################
24654
24655 ASTYLE=astyle
24656
24657
24658 ASTYLEFLAGS="--mode=c --indent=spaces=2 --indent-cases --indent-namespaces --min-conditional-indent=1 --brackets=linux --brackets=break-closing-headers --max-instatement-indent=2"
24659
24660
24661 #############################################################################
24662 # Stuff for Examples #
24663 #############################################################################
24664
24665
24666 echo "$as_me:$LINENO: checking whether this is a VPATH configuration" >&5
24667 echo $ECHO_N "checking whether this is a VPATH configuration... $ECHO_C" >&6
24668 if test `cd $srcdir; pwd` != `pwd`; then
24669 coin_vpath_config=yes;
24670 else
24671 coin_vpath_config=no;
24672 fi
24673 echo "$as_me:$LINENO: result: $coin_vpath_config" >&5
24674 echo "${ECHO_T}$coin_vpath_config" >&6
24675
24676
24677
24678 # Allow for newlines in the parameter
24679 if test $coin_vpath_config = yes; then
24680 cvl_tmp="test/bonmin.opt"
24681 for file in $cvl_tmp ; do
24682 coin_vpath_link_files="$coin_vpath_link_files $file"
24683 done
24684 fi
24685
24686
24687
24688 # Allow for newlines in the parameter
24689 if test $coin_vpath_config = yes; then
24690 cvl_tmp="test/mytoy.nl"
24691 for file in $cvl_tmp ; do
24692 coin_vpath_link_files="$coin_vpath_link_files $file"
24693 done
24694 fi
24695
24696 ac_config_links="$ac_config_links test/MyBonmin.cpp:examples/CppExample/MyBonmin.cpp test/MyTMINLP.cpp:examples/CppExample/MyTMINLP.cpp test/MyTMINLP.hpp:examples/CppExample/MyTMINLP.hpp"
24697
24698
24699 #############################################################################
24700 # Check for doxygen #
24701 #############################################################################
24702
24703
24704
24705 { echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
24706 echo "$as_me: configuring doxygen documentation options" >&6;}
24707
24708 # Check to see if doxygen is available.
24709
24710 # Extract the first word of "doxygen", so it can be a program name with args.
24711 set dummy doxygen; ac_word=$2
24712 echo "$as_me:$LINENO: checking for $ac_word" >&5
24713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24714 if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
24715 echo $ECHO_N "(cached) $ECHO_C" >&6
24716 else
24717 if test -n "$coin_have_doxygen"; then
24718 ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
24719 else
24720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24721 for as_dir in $PATH
24722 do
24723 IFS=$as_save_IFS
24724 test -z "$as_dir" && as_dir=.
24725 for ac_exec_ext in '' $ac_executable_extensions; do
24726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24727 ac_cv_prog_coin_have_doxygen="yes"
24728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24729 break 2
24730 fi
24731 done
24732 done
24733
24734 test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
24735 fi
24736 fi
24737 coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
24738 if test -n "$coin_have_doxygen"; then
24739 echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
24740 echo "${ECHO_T}$coin_have_doxygen" >&6
24741 else
24742 echo "$as_me:$LINENO: result: no" >&5
24743 echo "${ECHO_T}no" >&6
24744 fi
24745
24746 # Extract the first word of "latex", so it can be a program name with args.
24747 set dummy latex; ac_word=$2
24748 echo "$as_me:$LINENO: checking for $ac_word" >&5
24749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24750 if test "${ac_cv_prog_coin_have_latex+set}" = set; then
24751 echo $ECHO_N "(cached) $ECHO_C" >&6
24752 else
24753 if test -n "$coin_have_latex"; then
24754 ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
24755 else
24756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24757 for as_dir in $PATH
24758 do
24759 IFS=$as_save_IFS
24760 test -z "$as_dir" && as_dir=.
24761 for ac_exec_ext in '' $ac_executable_extensions; do
24762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24763 ac_cv_prog_coin_have_latex="yes"
24764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24765 break 2
24766 fi
24767 done
24768 done
24769
24770 test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
24771 fi
24772 fi
24773 coin_have_latex=$ac_cv_prog_coin_have_latex
24774 if test -n "$coin_have_latex"; then
24775 echo "$as_me:$LINENO: result: $coin_have_latex" >&5
24776 echo "${ECHO_T}$coin_have_latex" >&6
24777 else
24778 echo "$as_me:$LINENO: result: no" >&5
24779 echo "${ECHO_T}no" >&6
24780 fi
24781
24782
24783 # Look for the dot tool from the graphviz package, unless the user has
24784 # disabled it.
24785
24786
24787 # Check whether --with-dot or --without-dot was given.
24788 if test "${with_dot+set}" = set; then
24789 withval="$with_dot"
24790
24791 else
24792 withval=yes
24793 fi;
24794 if test x"$withval" = xno ; then
24795 coin_doxy_usedot=NO
24796 echo "$as_me:$LINENO: checking for dot " >&5
24797 echo $ECHO_N "checking for dot ... $ECHO_C" >&6
24798 echo "$as_me:$LINENO: result: disabled" >&5
24799 echo "${ECHO_T}disabled" >&6
24800 else
24801 # Extract the first word of "dot", so it can be a program name with args.
24802 set dummy dot; ac_word=$2
24803 echo "$as_me:$LINENO: checking for $ac_word" >&5
24804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24805 if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
24806 echo $ECHO_N "(cached) $ECHO_C" >&6
24807 else
24808 if test -n "$coin_doxy_usedot"; then
24809 ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
24810 else
24811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24812 for as_dir in $PATH
24813 do
24814 IFS=$as_save_IFS
24815 test -z "$as_dir" && as_dir=.
24816 for ac_exec_ext in '' $ac_executable_extensions; do
24817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24818 ac_cv_prog_coin_doxy_usedot="YES"
24819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24820 break 2
24821 fi
24822 done
24823 done
24824
24825 test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
24826 fi
24827 fi
24828 coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
24829 if test -n "$coin_doxy_usedot"; then
24830 echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
24831 echo "${ECHO_T}$coin_doxy_usedot" >&6
24832 else
24833 echo "$as_me:$LINENO: result: no" >&5
24834 echo "${ECHO_T}no" >&6
24835 fi
24836
24837 fi
24838
24839 # Generate a tag file name and a log file name
24840
24841 coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
24842
24843 coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
24844
24845
24846
24847 if test $coin_have_doxygen = yes; then
24848 COIN_HAS_DOXYGEN_TRUE=
24849 COIN_HAS_DOXYGEN_FALSE='#'
24850 else
24851 COIN_HAS_DOXYGEN_TRUE='#'
24852 COIN_HAS_DOXYGEN_FALSE=
24853 fi
24854
24855
24856
24857 if test $coin_have_latex = yes; then
24858 COIN_HAS_LATEX_TRUE=
24859 COIN_HAS_LATEX_FALSE='#'
24860 else
24861 COIN_HAS_LATEX_TRUE='#'
24862 COIN_HAS_LATEX_FALSE=
24863 fi
24864
24865
24866 # Process the list of project names and massage them into possible doxygen
24867 # doc'n directories. Prefer 1) classic external, source processed using
24868 # a project-specific doxygen.conf, we use the tag file; 2) classic
24869 # external, source processed using package doxygen.conf; 3) installed
24870 # doxydoc. Alternatives 1) and 2) are only possible if the directory will be
24871 # configured, which we can't know unless this is the package base configure,
24872 # since coin_subdirs is only set there. Hence it's sufficient to check for
24873 # membership. If we use a tag file from a classic external, exclude the
24874 # source from doxygen processing when doxygen runs in the base directory.
24875
24876 coin_doxy_tagfiles=
24877 coin_doxy_excludes=
24878 tmp="CoinUtils Osi Clp Cgl Cbc Ipopt"
24879 for proj in $tmp ; do
24880 lc_proj=`echo $proj | tr [A-Z] [a-z]`
24881 echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
24882 echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
24883 doxytag=${lc_proj}_doxy.tag
24884 doxyfound=no
24885 # proj will be configured, hence doxydoc present in build tree
24886 doxysrcdir="${srcdir}/../${proj}"
24887 # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
24888 if test -d "$doxysrcdir" ; then
24889 # with a doxydoc directory?
24890 doxydir="$doxysrcdir/doxydoc"
24891 # AC_MSG_NOTICE([Considering $doxydir (base)])
24892 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
24893 if test -d "$doxydir" ; then
24894 # use tag file; don't process source
24895 doxydir="../${proj}/doxydoc"
24896 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
24897 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
24898 echo "${ECHO_T}$doxydir (tag)" >&6
24899 coin_doxy_excludes="$coin_doxy_excludes */${proj}"
24900 else
24901 # will process the source -- nothing further to be done here
24902 echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
24903 echo "${ECHO_T}$doxysrcdir (src)" >&6
24904 fi
24905 doxyfound=yes
24906 fi
24907 # Not built, fall back to installed tag file
24908 if test $doxyfound = no ; then
24909 eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
24910 # AC_MSG_NOTICE([Considering $doxydir (install)])
24911 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
24912 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
24913 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
24914 echo "${ECHO_T}$doxydir (tag)" >&6
24915 fi
24916 done
24917
24918
24919
24920
24921
24922 ##############################################################################
24923 # Finishing up by writing all the output #
24924 ##############################################################################
24925
24926 ac_config_files="$ac_config_files Makefile src/Apps/Makefile src/CbcBonmin/Makefile src/Interfaces/Makefile src/Interfaces/Ipopt/Makefile src/Interfaces/Filter/Makefile src/Interfaces/Ampl/Makefile src/Algorithms/Makefile src/Algorithms/Ampl/Makefile src/Algorithms/Branching/Makefile src/Algorithms/QuadCuts/Makefile src/Algorithms/OaGenerators/Makefile src/CbcBonmin/Heuristics/Makefile examples/OptionDocGen/Makefile experimental/Separable/Makefile experimental/RobotBonmin/Makefile test/Makefile examples/CppExample/Makefile bonmin.pc bonmin-uninstalled.pc doxydoc/doxygen.conf"
24927
24928
24929 if test $coin_has_asl = yes ; then
24930 ac_config_files="$ac_config_files bonminamplinterface.pc:src/CbcBonmin/bonminamplinterface.pc.in bonminamplinterface-uninstalled.pc:src/CbcBonmin/bonminamplinterface-uninstalled.pc.in"
24931
24932 fi
24933
24934 ac_config_headers="$ac_config_headers src/Interfaces/config.h src/Interfaces/config_bonmin.h"
24935
24936
24937
24938
24939
24940
24941 echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
24942 echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
24943 coin_link_input_cmd="$LN_S"
24944 case "$CC" in
24945 clang* ) ;;
24946 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
24947 coin_link_input_cmd=cp ;;
24948 esac
24949 echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
24950 echo "${ECHO_T}$coin_link_input_cmd" >&6
24951
24952
24953
24954 if test x$coin_skip_ac_output != xyes; then
24955
24956 # library extension
24957
24958 case "$CC" in
24959 clang* )
24960 LIBEXT=a ;;
24961 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
24962 LIBEXT=lib ;;
24963 *) LIBEXT=a ;;
24964 esac
24965
24966 # Define VPATH_DISTCLEANFILES to be everything that needs to be
24967 # cleaned for distclean in a vpath configuration
24968
24969 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
24970
24971 # Take out subdirectories if their configuration concluded that they
24972 # don't need to be compiled
24973 if test x"$coin_ac_skip_subdirs" != x; then
24974 new_subdirs=
24975 for i in $subdirs; do
24976 skipme=no
24977 for j in $coin_ac_skip_subdirs; do
24978 if test $i = $j; then
24979 skipme=yes;
24980 fi
24981 done
24982 if test $skipme = no; then
24983 new_subdirs="$new_subdirs $i"
24984 fi
24985 done
24986 subdirs="$new_subdirs"
24987 fi
24988
24989 # need to come before AC_OUTPUT
24990 if test x$coin_projectdir != xyes; then
24991 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
24992 echo $coin_subdirs > coin_subdirs.txt
24993 else
24994 # substitute for OBJDIR, needed to setup .pc file for uninstalled project
24995 ABSBUILDDIR="`pwd`"
24996
24997 fi
24998
24999 cat >confcache <<\_ACEOF
25000 # This file is a shell script that caches the results of configure
25001 # tests run on this system so they can be shared between configure
25002 # scripts and configure runs, see configure's option --config-cache.
25003 # It is not useful on other systems. If it contains results you don't
25004 # want to keep, you may remove or edit it.
25005 #
25006 # config.status only pays attention to the cache file if you give it
25007 # the --recheck option to rerun configure.
25008 #
25009 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25010 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25011 # following values.
25012
25013 _ACEOF
25014
25015 # The following way of writing the cache mishandles newlines in values,
25016 # but we know of no workaround that is simple, portable, and efficient.
25017 # So, don't put newlines in cache variables' values.
25018 # Ultrix sh set writes to stderr and can't be redirected directly,
25019 # and sets the high bit in the cache file unless we assign to the vars.
25020 {
25021 (set) 2>&1 |
25022 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25023 *ac_space=\ *)
25024 # `set' does not quote correctly, so add quotes (double-quote
25025 # substitution turns \\\\ into \\, and sed turns \\ into \).
25026 sed -n \
25027 "s/'/'\\\\''/g;
25028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25029 ;;
25030 *)
25031 # `set' quotes correctly as required by POSIX, so do not add quotes.
25032 sed -n \
25033 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25034 ;;
25035 esac;
25036 } |
25037 sed '
25038 t clear
25039 : clear
25040 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25041 t end
25042 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25043 : end' >>confcache
25044 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25045 if test -w $cache_file; then
25046 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25047 cat confcache >$cache_file
25048 else
25049 echo "not updating unwritable cache $cache_file"
25050 fi
25051 fi
25052 rm -f confcache
25053
25054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25055 # Let make expand exec_prefix.
25056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25057
25058 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25059 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25060 # trailing colons and then remove the whole line if VPATH becomes empty
25061 # (actually we leave an empty line to preserve line numbers).
25062 if test "x$srcdir" = x.; then
25063 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25064 s/:*\$(srcdir):*/:/;
25065 s/:*\${srcdir}:*/:/;
25066 s/:*@srcdir@:*/:/;
25067 s/^\([^=]*=[ ]*\):*/\1/;
25068 s/:*$//;
25069 s/^[^=]*=[ ]*$//;
25070 }'
25071 fi
25072
25073 DEFS=-DHAVE_CONFIG_H
25074
25075 ac_libobjs=
25076 ac_ltlibobjs=
25077 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25078 # 1. Remove the extension, and $U if already installed.
25079 ac_i=`echo "$ac_i" |
25080 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25081 # 2. Add them.
25082 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25083 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25084 done
25085 LIBOBJS=$ac_libobjs
25086
25087 LTLIBOBJS=$ac_ltlibobjs
25088
25089
25090 if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
25091 { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
25092 Usually this means the macro was only invoked conditionally." >&5
25093 echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
25094 Usually this means the macro was only invoked conditionally." >&2;}
25095 { (exit 1); exit 1; }; }
25096 fi
25097 if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
25098 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
25099 Usually this means the macro was only invoked conditionally." >&5
25100 echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
25101 Usually this means the macro was only invoked conditionally." >&2;}
25102 { (exit 1); exit 1; }; }
25103 fi
25104 if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
25105 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
25106 Usually this means the macro was only invoked conditionally." >&5
25107 echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
25108 Usually this means the macro was only invoked conditionally." >&2;}
25109 { (exit 1); exit 1; }; }
25110 fi
25111 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25112 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25113 Usually this means the macro was only invoked conditionally." >&5
25114 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25115 Usually this means the macro was only invoked conditionally." >&2;}
25116 { (exit 1); exit 1; }; }
25117 fi
25118 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25119 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25120 Usually this means the macro was only invoked conditionally." >&5
25121 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25122 Usually this means the macro was only invoked conditionally." >&2;}
25123 { (exit 1); exit 1; }; }
25124 fi
25125 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25126 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25127 Usually this means the macro was only invoked conditionally." >&5
25128 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25129 Usually this means the macro was only invoked conditionally." >&2;}
25130 { (exit 1); exit 1; }; }
25131 fi
25132 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25133 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25134 Usually this means the macro was only invoked conditionally." >&5
25135 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25136 Usually this means the macro was only invoked conditionally." >&2;}
25137 { (exit 1); exit 1; }; }
25138 fi
25139 if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
25140 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
25141 Usually this means the macro was only invoked conditionally." >&5
25142 echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
25143 Usually this means the macro was only invoked conditionally." >&2;}
25144 { (exit 1); exit 1; }; }
25145 fi
25146 if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
25147 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
25148 Usually this means the macro was only invoked conditionally." >&5
25149 echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
25150 Usually this means the macro was only invoked conditionally." >&2;}
25151 { (exit 1); exit 1; }; }
25152 fi
25153 if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
25154 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
25155 Usually this means the macro was only invoked conditionally." >&5
25156 echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
25157 Usually this means the macro was only invoked conditionally." >&2;}
25158 { (exit 1); exit 1; }; }
25159 fi
25160 if test -z "${COIN_HAS_COINDEPEND_TRUE}" && test -z "${COIN_HAS_COINDEPEND_FALSE}"; then
25161 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINDEPEND\" was never defined.
25162 Usually this means the macro was only invoked conditionally." >&5
25163 echo "$as_me: error: conditional \"COIN_HAS_COINDEPEND\" was never defined.
25164 Usually this means the macro was only invoked conditionally." >&2;}
25165 { (exit 1); exit 1; }; }
25166 fi
25167 if test -z "${COIN_HAS_COINDEPEND_TRUE}" && test -z "${COIN_HAS_COINDEPEND_FALSE}"; then
25168 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINDEPEND\" was never defined.
25169 Usually this means the macro was only invoked conditionally." >&5
25170 echo "$as_me: error: conditional \"COIN_HAS_COINDEPEND\" was never defined.
25171 Usually this means the macro was only invoked conditionally." >&2;}
25172 { (exit 1); exit 1; }; }
25173 fi
25174 if test -z "${COIN_HAS_ASL_TRUE}" && test -z "${COIN_HAS_ASL_FALSE}"; then
25175 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ASL\" was never defined.
25176 Usually this means the macro was only invoked conditionally." >&5
25177 echo "$as_me: error: conditional \"COIN_HAS_ASL\" was never defined.
25178 Usually this means the macro was only invoked conditionally." >&2;}
25179 { (exit 1); exit 1; }; }
25180 fi
25181 if test -z "${COIN_HAS_ASL_TRUE}" && test -z "${COIN_HAS_ASL_FALSE}"; then
25182 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ASL\" was never defined.
25183 Usually this means the macro was only invoked conditionally." >&5
25184 echo "$as_me: error: conditional \"COIN_HAS_ASL\" was never defined.
25185 Usually this means the macro was only invoked conditionally." >&2;}
25186 { (exit 1); exit 1; }; }
25187 fi
25188 if test -z "${COIN_HAS_OSICPX_TRUE}" && test -z "${COIN_HAS_OSICPX_FALSE}"; then
25189 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSICPX\" was never defined.
25190 Usually this means the macro was only invoked conditionally." >&5
25191 echo "$as_me: error: conditional \"COIN_HAS_OSICPX\" was never defined.
25192 Usually this means the macro was only invoked conditionally." >&2;}
25193 { (exit 1); exit 1; }; }
25194 fi
25195 if test -z "${COIN_HAS_OSICPX_TRUE}" && test -z "${COIN_HAS_OSICPX_FALSE}"; then
25196 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSICPX\" was never defined.
25197 Usually this means the macro was only invoked conditionally." >&5
25198 echo "$as_me: error: conditional \"COIN_HAS_OSICPX\" was never defined.
25199 Usually this means the macro was only invoked conditionally." >&2;}
25200 { (exit 1); exit 1; }; }
25201 fi
25202 if test -z "${COIN_HAS_CPX_TRUE}" && test -z "${COIN_HAS_CPX_FALSE}"; then
25203 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CPX\" was never defined.
25204 Usually this means the macro was only invoked conditionally." >&5
25205 echo "$as_me: error: conditional \"COIN_HAS_CPX\" was never defined.
25206 Usually this means the macro was only invoked conditionally." >&2;}
25207 { (exit 1); exit 1; }; }
25208 fi
25209 if test -z "${COIN_HAS_FILTERSQP_TRUE}" && test -z "${COIN_HAS_FILTERSQP_FALSE}"; then
25210 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_FILTERSQP\" was never defined.
25211 Usually this means the macro was only invoked conditionally." >&5
25212 echo "$as_me: error: conditional \"COIN_HAS_FILTERSQP\" was never defined.
25213 Usually this means the macro was only invoked conditionally." >&2;}
25214 { (exit 1); exit 1; }; }
25215 fi
25216 if test -z "${COIN_HAS_FILTERSQP_TRUE}" && test -z "${COIN_HAS_FILTERSQP_FALSE}"; then
25217 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_FILTERSQP\" was never defined.
25218 Usually this means the macro was only invoked conditionally." >&5
25219 echo "$as_me: error: conditional \"COIN_HAS_FILTERSQP\" was never defined.
25220 Usually this means the macro was only invoked conditionally." >&2;}
25221 { (exit 1); exit 1; }; }
25222 fi
25223 if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
25224 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
25225 Usually this means the macro was only invoked conditionally." >&5
25226 echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
25227 Usually this means the macro was only invoked conditionally." >&2;}
25228 { (exit 1); exit 1; }; }
25229 fi
25230 if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
25231 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
25232 Usually this means the macro was only invoked conditionally." >&5
25233 echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
25234 Usually this means the macro was only invoked conditionally." >&2;}
25235 { (exit 1); exit 1; }; }
25236 fi
25237
25238 : ${CONFIG_STATUS=./config.status}
25239 ac_clean_files_save=$ac_clean_files
25240 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25241 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25242 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25243 cat >$CONFIG_STATUS <<_ACEOF
25244 #! $SHELL
25245 # Generated by $as_me.
25246 # Run this file to recreate the current configuration.
25247 # Compiler output produced by configure, useful for debugging
25248 # configure, is in config.log if it exists.
25249
25250 debug=false
25251 ac_cs_recheck=false
25252 ac_cs_silent=false
25253 SHELL=\${CONFIG_SHELL-$SHELL}
25254 _ACEOF
25255
25256 cat >>$CONFIG_STATUS <<\_ACEOF
25257 ## --------------------- ##
25258 ## M4sh Initialization. ##
25259 ## --------------------- ##
25260
25261 # Be Bourne compatible
25262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25263 emulate sh
25264 NULLCMD=:
25265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25266 # is contrary to our usage. Disable this feature.
25267 alias -g '${1+"$@"}'='"$@"'
25268 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25269 set -o posix
25270 fi
25271 DUALCASE=1; export DUALCASE # for MKS sh
25272
25273 # Support unset when possible.
25274 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25275 as_unset=unset
25276 else
25277 as_unset=false
25278 fi
25279
25280
25281 # Work around bugs in pre-3.0 UWIN ksh.
25282 $as_unset ENV MAIL MAILPATH
25283 PS1='$ '
25284 PS2='> '
25285 PS4='+ '
25286
25287 # NLS nuisances.
25288 for as_var in \
25289 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25290 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25291 LC_TELEPHONE LC_TIME
25292 do
25293 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25294 eval $as_var=C; export $as_var
25295 else
25296 $as_unset $as_var
25297 fi
25298 done
25299
25300 # Required to use basename.
25301 if expr a : '\(a\)' >/dev/null 2>&1; then
25302 as_expr=expr
25303 else
25304 as_expr=false
25305 fi
25306
25307 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25308 as_basename=basename
25309 else
25310 as_basename=false
25311 fi
25312
25313
25314 # Name of the executable.
25315 as_me=`$as_basename "$0" ||
25316 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25317 X"$0" : 'X\(//\)$' \| \
25318 X"$0" : 'X\(/\)$' \| \
25319 . : '\(.\)' 2>/dev/null ||
25320 echo X/"$0" |
25321 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25322 /^X\/\(\/\/\)$/{ s//\1/; q; }
25323 /^X\/\(\/\).*/{ s//\1/; q; }
25324 s/.*/./; q'`
25325
25326
25327 # PATH needs CR, and LINENO needs CR and PATH.
25328 # Avoid depending upon Character Ranges.
25329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25332 as_cr_digits='0123456789'
25333 as_cr_alnum=$as_cr_Letters$as_cr_digits
25334
25335 # The user is always right.
25336 if test "${PATH_SEPARATOR+set}" != set; then
25337 echo "#! /bin/sh" >conf$$.sh
25338 echo "exit 0" >>conf$$.sh
25339 chmod +x conf$$.sh
25340 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25341 PATH_SEPARATOR=';'
25342 else
25343 PATH_SEPARATOR=:
25344 fi
25345 rm -f conf$$.sh
25346 fi
25347
25348
25349 as_lineno_1=$LINENO
25350 as_lineno_2=$LINENO
25351 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25352 test "x$as_lineno_1" != "x$as_lineno_2" &&
25353 test "x$as_lineno_3" = "x$as_lineno_2" || {
25354 # Find who we are. Look in the path if we contain no path at all
25355 # relative or not.
25356 case $0 in
25357 *[\\/]* ) as_myself=$0 ;;
25358 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25359 for as_dir in $PATH
25360 do
25361 IFS=$as_save_IFS
25362 test -z "$as_dir" && as_dir=.
25363 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25364 done
25365
25366 ;;
25367 esac
25368 # We did not find ourselves, most probably we were run as `sh COMMAND'
25369 # in which case we are not to be found in the path.
25370 if test "x$as_myself" = x; then
25371 as_myself=$0
25372 fi
25373 if test ! -f "$as_myself"; then
25374 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25375 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25376 { (exit 1); exit 1; }; }
25377 fi
25378 case $CONFIG_SHELL in
25379 '')
25380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25381 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25382 do
25383 IFS=$as_save_IFS
25384 test -z "$as_dir" && as_dir=.
25385 for as_base in sh bash ksh sh5; do
25386 case $as_dir in
25387 /*)
25388 if ("$as_dir/$as_base" -c '
25389 as_lineno_1=$LINENO
25390 as_lineno_2=$LINENO
25391 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25392 test "x$as_lineno_1" != "x$as_lineno_2" &&
25393 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25394 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25395 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25396 CONFIG_SHELL=$as_dir/$as_base
25397 export CONFIG_SHELL
25398 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25399 fi;;
25400 esac
25401 done
25402 done
25403 ;;
25404 esac
25405
25406 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25407 # uniformly replaced by the line number. The first 'sed' inserts a
25408 # line-number line before each line; the second 'sed' does the real
25409 # work. The second script uses 'N' to pair each line-number line
25410 # with the numbered line, and appends trailing '-' during
25411 # substitution so that $LINENO is not a special case at line end.
25412 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25413 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25414 sed '=' <$as_myself |
25415 sed '
25416 N
25417 s,$,-,
25418 : loop
25419 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25420 t loop
25421 s,-$,,
25422 s,^['$as_cr_digits']*\n,,
25423 ' >$as_me.lineno &&
25424 chmod +x $as_me.lineno ||
25425 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25426 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25427 { (exit 1); exit 1; }; }
25428
25429 # Don't try to exec as it changes $[0], causing all sort of problems
25430 # (the dirname of $[0] is not the place where we might find the
25431 # original and so on. Autoconf is especially sensible to this).
25432 . ./$as_me.lineno
25433 # Exit status is that of the last command.
25434 exit
25435 }
25436
25437
25438 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25439 *c*,-n*) ECHO_N= ECHO_C='
25440 ' ECHO_T=' ' ;;
25441 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25442 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25443 esac
25444
25445 if expr a : '\(a\)' >/dev/null 2>&1; then
25446 as_expr=expr
25447 else
25448 as_expr=false
25449 fi
25450
25451 rm -f conf$$ conf$$.exe conf$$.file
25452 echo >conf$$.file
25453 if ln -s conf$$.file conf$$ 2>/dev/null; then
25454 # We could just check for DJGPP; but this test a) works b) is more generic
25455 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25456 if test -f conf$$.exe; then
25457 # Don't use ln at all; we don't have any links
25458 as_ln_s='cp -p'
25459 else
25460 as_ln_s='ln -s'
25461 fi
25462 elif ln conf$$.file conf$$ 2>/dev/null; then
25463 as_ln_s=ln
25464 else
25465 as_ln_s='cp -p'
25466 fi
25467 rm -f conf$$ conf$$.exe conf$$.file
25468
25469 if mkdir -p . 2>/dev/null; then
25470 as_mkdir_p=:
25471 else
25472 test -d ./-p && rmdir ./-p
25473 as_mkdir_p=false
25474 fi
25475
25476 as_executable_p="test -f"
25477
25478 # Sed expression to map a string onto a valid CPP name.
25479 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25480
25481 # Sed expression to map a string onto a valid variable name.
25482 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25483
25484
25485 # IFS
25486 # We need space, tab and new line, in precisely that order.
25487 as_nl='
25488 '
25489 IFS=" $as_nl"
25490
25491 # CDPATH.
25492 $as_unset CDPATH
25493
25494 exec 6>&1
25495
25496 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25497 # report actual input values of CONFIG_FILES etc. instead of their
25498 # values after options handling. Logging --version etc. is OK.
25499 exec 5>>config.log
25500 {
25501 echo
25502 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25503 ## Running $as_me. ##
25504 _ASBOX
25505 } >&5
25506 cat >&5 <<_CSEOF
25507
25508 This file was extended by Bonmin $as_me 1.8.9, which was
25509 generated by GNU Autoconf 2.59. Invocation command line was
25510
25511 CONFIG_FILES = $CONFIG_FILES
25512 CONFIG_HEADERS = $CONFIG_HEADERS
25513 CONFIG_LINKS = $CONFIG_LINKS
25514 CONFIG_COMMANDS = $CONFIG_COMMANDS
25515 $ $0 $@
25516
25517 _CSEOF
25518 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25519 echo >&5
25520 _ACEOF
25521
25522 # Files that config.status was made for.
25523 if test -n "$ac_config_files"; then
25524 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25525 fi
25526
25527 if test -n "$ac_config_headers"; then
25528 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25529 fi
25530
25531 if test -n "$ac_config_links"; then
25532 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25533 fi
25534
25535 if test -n "$ac_config_commands"; then
25536 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25537 fi
25538
25539 cat >>$CONFIG_STATUS <<\_ACEOF
25540
25541 ac_cs_usage="\
25542 \`$as_me' instantiates files from templates according to the
25543 current configuration.
25544
25545 Usage: $0 [OPTIONS] [FILE]...
25546
25547 -h, --help print this help, then exit
25548 -V, --version print version number, then exit
25549 -q, --quiet do not print progress messages
25550 -d, --debug don't remove temporary files
25551 --recheck update $as_me by reconfiguring in the same conditions
25552 --file=FILE[:TEMPLATE]
25553 instantiate the configuration file FILE
25554 --header=FILE[:TEMPLATE]
25555 instantiate the configuration header FILE
25556
25557 Configuration files:
25558 $config_files
25559
25560 Configuration headers:
25561 $config_headers
25562
25563 Configuration links:
25564 $config_links
25565
25566 Configuration commands:
25567 $config_commands
25568
25569 Report bugs to <[email protected]>."
25570 _ACEOF
25571
25572 cat >>$CONFIG_STATUS <<_ACEOF
25573 ac_cs_version="\\
25574 Bonmin config.status 1.8.9
25575 configured by $0, generated by GNU Autoconf 2.59,
25576 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25577
25578 Copyright (C) 2003 Free Software Foundation, Inc.
25579 This config.status script is free software; the Free Software Foundation
25580 gives unlimited permission to copy, distribute and modify it."
25581 srcdir=$srcdir
25582 INSTALL="$INSTALL"
25583 _ACEOF
25584
25585 cat >>$CONFIG_STATUS <<\_ACEOF
25586 # If no file are specified by the user, then we need to provide default
25587 # value. By we need to know if files were specified by the user.
25588 ac_need_defaults=:
25589 while test $# != 0
25590 do
25591 case $1 in
25592 --*=*)
25593 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25594 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25595 ac_shift=:
25596 ;;
25597 -*)
25598 ac_option=$1
25599 ac_optarg=$2
25600 ac_shift=shift
25601 ;;
25602 *) # This is not an option, so the user has probably given explicit
25603 # arguments.
25604 ac_option=$1
25605 ac_need_defaults=false;;
25606 esac
25607
25608 case $ac_option in
25609 # Handling of the options.
25610 _ACEOF
25611 cat >>$CONFIG_STATUS <<\_ACEOF
25612 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25613 ac_cs_recheck=: ;;
25614 --version | --vers* | -V )
25615 echo "$ac_cs_version"; exit 0 ;;
25616 --he | --h)
25617 # Conflict between --help and --header
25618 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25619 Try \`$0 --help' for more information." >&5
25620 echo "$as_me: error: ambiguous option: $1
25621 Try \`$0 --help' for more information." >&2;}
25622 { (exit 1); exit 1; }; };;
25623 --help | --hel | -h )
25624 echo "$ac_cs_usage"; exit 0 ;;
25625 --debug | --d* | -d )
25626 debug=: ;;
25627 --file | --fil | --fi | --f )
25628 $ac_shift
25629 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25630 ac_need_defaults=false;;
25631 --header | --heade | --head | --hea )
25632 $ac_shift
25633 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25634 ac_need_defaults=false;;
25635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25636 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25637 ac_cs_silent=: ;;
25638
25639 # This is an error.
25640 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25641 Try \`$0 --help' for more information." >&5
25642 echo "$as_me: error: unrecognized option: $1
25643 Try \`$0 --help' for more information." >&2;}
25644 { (exit 1); exit 1; }; } ;;
25645
25646 *) ac_config_targets="$ac_config_targets $1" ;;
25647
25648 esac
25649 shift
25650 done
25651
25652 ac_configure_extra_args=
25653
25654 if $ac_cs_silent; then
25655 exec 6>/dev/null
25656 ac_configure_extra_args="$ac_configure_extra_args --silent"
25657 fi
25658
25659 _ACEOF
25660 cat >>$CONFIG_STATUS <<_ACEOF
25661 if \$ac_cs_recheck; then
25662 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25663 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25664 fi
25665
25666 _ACEOF
25667
25668 cat >>$CONFIG_STATUS <<_ACEOF
25669 #
25670 # INIT-COMMANDS section.
25671 #
25672
25673 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25674
25675 _ACEOF
25676
25677
25678
25679 cat >>$CONFIG_STATUS <<\_ACEOF
25680 for ac_config_target in $ac_config_targets
25681 do
25682 case "$ac_config_target" in
25683 # Handling of arguments.
25684 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25685 "src/Apps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Apps/Makefile" ;;
25686 "src/CbcBonmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CbcBonmin/Makefile" ;;
25687 "src/Interfaces/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Interfaces/Makefile" ;;
25688 "src/Interfaces/Ipopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Interfaces/Ipopt/Makefile" ;;
25689 "src/Interfaces/Filter/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Interfaces/Filter/Makefile" ;;
25690 "src/Interfaces/Ampl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Interfaces/Ampl/Makefile" ;;
25691 "src/Algorithms/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Algorithms/Makefile" ;;
25692 "src/Algorithms/Ampl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Algorithms/Ampl/Makefile" ;;
25693 "src/Algorithms/Branching/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Algorithms/Branching/Makefile" ;;
25694 "src/Algorithms/QuadCuts/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Algorithms/QuadCuts/Makefile" ;;
25695 "src/Algorithms/OaGenerators/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Algorithms/OaGenerators/Makefile" ;;
25696 "src/CbcBonmin/Heuristics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CbcBonmin/Heuristics/Makefile" ;;
25697 "examples/OptionDocGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/OptionDocGen/Makefile" ;;
25698 "experimental/Separable/Makefile" ) CONFIG_FILES="$CONFIG_FILES experimental/Separable/Makefile" ;;
25699 "experimental/RobotBonmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES experimental/RobotBonmin/Makefile" ;;
25700 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
25701 "examples/CppExample/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/CppExample/Makefile" ;;
25702 "bonmin.pc" ) CONFIG_FILES="$CONFIG_FILES bonmin.pc" ;;
25703 "bonmin-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES bonmin-uninstalled.pc" ;;
25704 "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
25705 "bonminamplinterface.pc" ) CONFIG_FILES="$CONFIG_FILES bonminamplinterface.pc:src/CbcBonmin/bonminamplinterface.pc.in" ;;
25706 "bonminamplinterface-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES bonminamplinterface-uninstalled.pc:src/CbcBonmin/bonminamplinterface-uninstalled.pc.in" ;;
25707 "test/MyBonmin.cpp" ) CONFIG_LINKS="$CONFIG_LINKS test/MyBonmin.cpp:examples/CppExample/MyBonmin.cpp" ;;
25708 "test/MyTMINLP.cpp" ) CONFIG_LINKS="$CONFIG_LINKS test/MyTMINLP.cpp:examples/CppExample/MyTMINLP.cpp" ;;
25709 "test/MyTMINLP.hpp" ) CONFIG_LINKS="$CONFIG_LINKS test/MyTMINLP.hpp:examples/CppExample/MyTMINLP.hpp" ;;
25710 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25711 "src/Interfaces/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/Interfaces/config.h" ;;
25712 "src/Interfaces/config_bonmin.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/Interfaces/config_bonmin.h" ;;
25713 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25714 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25715 { (exit 1); exit 1; }; };;
25716 esac
25717 done
25718
25719 # If the user did not use the arguments to specify the items to instantiate,
25720 # then the envvar interface is used. Set only those that are not.
25721 # We use the long form for the default assignment because of an extremely
25722 # bizarre bug on SunOS 4.1.3.
25723 if $ac_need_defaults; then
25724 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25725 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25726 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25727 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25728 fi
25729
25730 # Have a temporary directory for convenience. Make it in the build tree
25731 # simply because there is no reason to put it here, and in addition,
25732 # creating and moving files from /tmp can sometimes cause problems.
25733 # Create a temporary directory, and hook for its removal unless debugging.
25734 $debug ||
25735 {
25736 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25737 trap '{ (exit 1); exit 1; }' 1 2 13 15
25738 }
25739
25740 # Create a (secure) tmp directory for tmp files.
25741
25742 {
25743 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25744 test -n "$tmp" && test -d "$tmp"
25745 } ||
25746 {
25747 tmp=./confstat$$-$RANDOM
25748 (umask 077 && mkdir $tmp)
25749 } ||
25750 {
25751 echo "$me: cannot create a temporary directory in ." >&2
25752 { (exit 1); exit 1; }
25753 }
25754
25755 _ACEOF
25756
25757 cat >>$CONFIG_STATUS <<_ACEOF
25758
25759 #
25760 # CONFIG_FILES section.
25761 #
25762
25763 # No need to generate the scripts if there are no CONFIG_FILES.
25764 # This happens for instance when ./config.status config.h
25765 if test -n "\$CONFIG_FILES"; then
25766 # Protect against being on the right side of a sed subst in config.status.
25767 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25768 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25769 s,@SHELL@,$SHELL,;t t
25770 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25771 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25772 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25773 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25774 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25775 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25776 s,@exec_prefix@,$exec_prefix,;t t
25777 s,@prefix@,$prefix,;t t
25778 s,@program_transform_name@,$program_transform_name,;t t
25779 s,@bindir@,$bindir,;t t
25780 s,@sbindir@,$sbindir,;t t
25781 s,@libexecdir@,$libexecdir,;t t
25782 s,@datadir@,$datadir,;t t
25783 s,@sysconfdir@,$sysconfdir,;t t
25784 s,@sharedstatedir@,$sharedstatedir,;t t
25785 s,@localstatedir@,$localstatedir,;t t
25786 s,@libdir@,$libdir,;t t
25787 s,@includedir@,$includedir,;t t
25788 s,@oldincludedir@,$oldincludedir,;t t
25789 s,@infodir@,$infodir,;t t
25790 s,@mandir@,$mandir,;t t
25791 s,@build_alias@,$build_alias,;t t
25792 s,@host_alias@,$host_alias,;t t
25793 s,@target_alias@,$target_alias,;t t
25794 s,@DEFS@,$DEFS,;t t
25795 s,@ECHO_C@,$ECHO_C,;t t
25796 s,@ECHO_N@,$ECHO_N,;t t
25797 s,@ECHO_T@,$ECHO_T,;t t
25798 s,@LIBS@,$LIBS,;t t
25799 s,@build@,$build,;t t
25800 s,@build_cpu@,$build_cpu,;t t
25801 s,@build_vendor@,$build_vendor,;t t
25802 s,@build_os@,$build_os,;t t
25803 s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
25804 s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
25805 s,@have_svnversion@,$have_svnversion,;t t
25806 s,@BONMIN_SVN_REV@,$BONMIN_SVN_REV,;t t
25807 s,@CDEFS@,$CDEFS,;t t
25808 s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
25809 s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
25810 s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
25811 s,@sol_cc_compiler@,$sol_cc_compiler,;t t
25812 s,@CC@,$CC,;t t
25813 s,@CFLAGS@,$CFLAGS,;t t
25814 s,@LDFLAGS@,$LDFLAGS,;t t
25815 s,@CPPFLAGS@,$CPPFLAGS,;t t
25816 s,@ac_ct_CC@,$ac_ct_CC,;t t
25817 s,@EXEEXT@,$EXEEXT,;t t
25818 s,@OBJEXT@,$OBJEXT,;t t
25819 s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
25820 s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
25821 s,@MPICC@,$MPICC,;t t
25822 s,@CXXDEFS@,$CXXDEFS,;t t
25823 s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
25824 s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
25825 s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
25826 s,@CXX@,$CXX,;t t
25827 s,@CXXFLAGS@,$CXXFLAGS,;t t
25828 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25829 s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
25830 s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
25831 s,@MPICXX@,$MPICXX,;t t
25832 s,@EGREP@,$EGREP,;t t
25833 s,@LN_S@,$LN_S,;t t
25834 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25835 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25836 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25837 s,@CYGPATH_W@,$CYGPATH_W,;t t
25838 s,@PACKAGE@,$PACKAGE,;t t
25839 s,@VERSION@,$VERSION,;t t
25840 s,@ACLOCAL@,$ACLOCAL,;t t
25841 s,@AUTOCONF@,$AUTOCONF,;t t
25842 s,@AUTOMAKE@,$AUTOMAKE,;t t
25843 s,@AUTOHEADER@,$AUTOHEADER,;t t
25844 s,@MAKEINFO@,$MAKEINFO,;t t
25845 s,@install_sh@,$install_sh,;t t
25846 s,@STRIP@,$STRIP,;t t
25847 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25848 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25849 s,@mkdir_p@,$mkdir_p,;t t
25850 s,@AWK@,$AWK,;t t
25851 s,@SET_MAKE@,$SET_MAKE,;t t
25852 s,@am__leading_dot@,$am__leading_dot,;t t
25853 s,@AMTAR@,$AMTAR,;t t
25854 s,@am__tar@,$am__tar,;t t
25855 s,@am__untar@,$am__untar,;t t
25856 s,@DEPDIR@,$DEPDIR,;t t
25857 s,@am__include@,$am__include,;t t
25858 s,@am__quote@,$am__quote,;t t
25859 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25860 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25861 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25862 s,@CCDEPMODE@,$CCDEPMODE,;t t
25863 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
25864 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
25865 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25866 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
25867 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
25868 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
25869 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
25870 s,@MAINT@,$MAINT,;t t
25871 s,@LIBTOOLM4@,$LIBTOOLM4,;t t
25872 s,@have_autoconf@,$have_autoconf,;t t
25873 s,@have_automake@,$have_automake,;t t
25874 s,@have_svn@,$have_svn,;t t
25875 s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
25876 s,@AUX_DIR@,$AUX_DIR,;t t
25877 s,@abs_source_dir@,$abs_source_dir,;t t
25878 s,@abs_lib_dir@,$abs_lib_dir,;t t
25879 s,@abs_include_dir@,$abs_include_dir,;t t
25880 s,@abs_bin_dir@,$abs_bin_dir,;t t
25881 s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
25882 s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
25883 s,@host@,$host,;t t
25884 s,@host_cpu@,$host_cpu,;t t
25885 s,@host_vendor@,$host_vendor,;t t
25886 s,@host_os@,$host_os,;t t
25887 s,@ECHO@,$ECHO,;t t
25888 s,@AR@,$AR,;t t
25889 s,@ac_ct_AR@,$ac_ct_AR,;t t
25890 s,@RANLIB@,$RANLIB,;t t
25891 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25892 s,@CPP@,$CPP,;t t
25893 s,@CXXCPP@,$CXXCPP,;t t
25894 s,@F77@,$F77,;t t
25895 s,@FFLAGS@,$FFLAGS,;t t
25896 s,@ac_ct_F77@,$ac_ct_F77,;t t
25897 s,@LIBTOOL@,$LIBTOOL,;t t
25898 s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
25899 s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
25900 s,@dos2unix@,$dos2unix,;t t
25901 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
25902 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
25903 s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
25904 s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
25905 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
25906 s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
25907 s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
25908 s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
25909 s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
25910 s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
25911 s,@COINDEPEND_LIBS@,$COINDEPEND_LIBS,;t t
25912 s,@COINDEPEND_CFLAGS@,$COINDEPEND_CFLAGS,;t t
25913 s,@COINDEPEND_DATA@,$COINDEPEND_DATA,;t t
25914 s,@COINDEPEND_DEPENDENCIES@,$COINDEPEND_DEPENDENCIES,;t t
25915 s,@COINDEPEND_LIBS_INSTALLED@,$COINDEPEND_LIBS_INSTALLED,;t t
25916 s,@COINDEPEND_CFLAGS_INSTALLED@,$COINDEPEND_CFLAGS_INSTALLED,;t t
25917 s,@COINDEPEND_DATA_INSTALLED@,$COINDEPEND_DATA_INSTALLED,;t t
25918 s,@BONMINLIB_CFLAGS@,$BONMINLIB_CFLAGS,;t t
25919 s,@BONMINLIB_LIBS@,$BONMINLIB_LIBS,;t t
25920 s,@BONMINLIB_PCLIBS@,$BONMINLIB_PCLIBS,;t t
25921 s,@BONMINLIB_PCREQUIRES@,$BONMINLIB_PCREQUIRES,;t t
25922 s,@BONMINLIB_DEPENDENCIES@,$BONMINLIB_DEPENDENCIES,;t t
25923 s,@BONMINLIB_CFLAGS_INSTALLED@,$BONMINLIB_CFLAGS_INSTALLED,;t t
25924 s,@BONMINLIB_LIBS_INSTALLED@,$BONMINLIB_LIBS_INSTALLED,;t t
25925 s,@COIN_HAS_COINDEPEND_TRUE@,$COIN_HAS_COINDEPEND_TRUE,;t t
25926 s,@COIN_HAS_COINDEPEND_FALSE@,$COIN_HAS_COINDEPEND_FALSE,;t t
25927 s,@ASL_LIBS@,$ASL_LIBS,;t t
25928 s,@ASL_CFLAGS@,$ASL_CFLAGS,;t t
25929 s,@ASL_DATA@,$ASL_DATA,;t t
25930 s,@ASL_DEPENDENCIES@,$ASL_DEPENDENCIES,;t t
25931 s,@ASL_LIBS_INSTALLED@,$ASL_LIBS_INSTALLED,;t t
25932 s,@ASL_CFLAGS_INSTALLED@,$ASL_CFLAGS_INSTALLED,;t t
25933 s,@ASL_DATA_INSTALLED@,$ASL_DATA_INSTALLED,;t t
25934 s,@BONMINAMPLINTERFACELIB_CFLAGS@,$BONMINAMPLINTERFACELIB_CFLAGS,;t t
25935 s,@BONMINAMPLINTERFACELIB_LIBS@,$BONMINAMPLINTERFACELIB_LIBS,;t t
25936 s,@BONMINAMPLINTERFACELIB_PCLIBS@,$BONMINAMPLINTERFACELIB_PCLIBS,;t t
25937 s,@BONMINAMPLINTERFACELIB_PCREQUIRES@,$BONMINAMPLINTERFACELIB_PCREQUIRES,;t t
25938 s,@BONMINAMPLINTERFACELIB_DEPENDENCIES@,$BONMINAMPLINTERFACELIB_DEPENDENCIES,;t t
25939 s,@BONMINAMPLINTERFACELIB_CFLAGS_INSTALLED@,$BONMINAMPLINTERFACELIB_CFLAGS_INSTALLED,;t t
25940 s,@BONMINAMPLINTERFACELIB_LIBS_INSTALLED@,$BONMINAMPLINTERFACELIB_LIBS_INSTALLED,;t t
25941 s,@COIN_HAS_ASL_TRUE@,$COIN_HAS_ASL_TRUE,;t t
25942 s,@COIN_HAS_ASL_FALSE@,$COIN_HAS_ASL_FALSE,;t t
25943 s,@OSICPX_LIBS@,$OSICPX_LIBS,;t t
25944 s,@OSICPX_CFLAGS@,$OSICPX_CFLAGS,;t t
25945 s,@OSICPX_DATA@,$OSICPX_DATA,;t t
25946 s,@OSICPX_DEPENDENCIES@,$OSICPX_DEPENDENCIES,;t t
25947 s,@OSICPX_LIBS_INSTALLED@,$OSICPX_LIBS_INSTALLED,;t t
25948 s,@OSICPX_CFLAGS_INSTALLED@,$OSICPX_CFLAGS_INSTALLED,;t t
25949 s,@OSICPX_DATA_INSTALLED@,$OSICPX_DATA_INSTALLED,;t t
25950 s,@COIN_HAS_OSICPX_TRUE@,$COIN_HAS_OSICPX_TRUE,;t t
25951 s,@COIN_HAS_OSICPX_FALSE@,$COIN_HAS_OSICPX_FALSE,;t t
25952 s,@CPXINCDIR@,$CPXINCDIR,;t t
25953 s,@CPXLIB@,$CPXLIB,;t t
25954 s,@COIN_HAS_CPX_TRUE@,$COIN_HAS_CPX_TRUE,;t t
25955 s,@COIN_HAS_CPX_FALSE@,$COIN_HAS_CPX_FALSE,;t t
25956 s,@FILTERSQP_LIBS@,$FILTERSQP_LIBS,;t t
25957 s,@FILTERSQP_CFLAGS@,$FILTERSQP_CFLAGS,;t t
25958 s,@FILTERSQP_DATA@,$FILTERSQP_DATA,;t t
25959 s,@FILTERSQP_DEPENDENCIES@,$FILTERSQP_DEPENDENCIES,;t t
25960 s,@FILTERSQP_LIBS_INSTALLED@,$FILTERSQP_LIBS_INSTALLED,;t t
25961 s,@FILTERSQP_CFLAGS_INSTALLED@,$FILTERSQP_CFLAGS_INSTALLED,;t t
25962 s,@FILTERSQP_DATA_INSTALLED@,$FILTERSQP_DATA_INSTALLED,;t t
25963 s,@COIN_HAS_FILTERSQP_TRUE@,$COIN_HAS_FILTERSQP_TRUE,;t t
25964 s,@COIN_HAS_FILTERSQP_FALSE@,$COIN_HAS_FILTERSQP_FALSE,;t t
25965 s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
25966 s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
25967 s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
25968 s,@MPIF77@,$MPIF77,;t t
25969 s,@FLIBS@,$FLIBS,;t t
25970 s,@ASTYLE@,$ASTYLE,;t t
25971 s,@ASTYLEFLAGS@,$ASTYLEFLAGS,;t t
25972 s,@coin_have_doxygen@,$coin_have_doxygen,;t t
25973 s,@coin_have_latex@,$coin_have_latex,;t t
25974 s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
25975 s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
25976 s,@coin_doxy_logname@,$coin_doxy_logname,;t t
25977 s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
25978 s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
25979 s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
25980 s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
25981 s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
25982 s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
25983 s,@LIBEXT@,$LIBEXT,;t t
25984 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
25985 s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
25986 s,@LIBOBJS@,$LIBOBJS,;t t
25987 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25988 CEOF
25989
25990 _ACEOF
25991
25992 cat >>$CONFIG_STATUS <<\_ACEOF
25993 # Split the substitutions into bite-sized pieces for seds with
25994 # small command number limits, like on Digital OSF/1 and HP-UX.
25995 ac_max_sed_lines=48
25996 ac_sed_frag=1 # Number of current file.
25997 ac_beg=1 # First line for current file.
25998 ac_end=$ac_max_sed_lines # Line after last line for current file.
25999 ac_more_lines=:
26000 ac_sed_cmds=
26001 while $ac_more_lines; do
26002 if test $ac_beg -gt 1; then
26003 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26004 else
26005 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26006 fi
26007 if test ! -s $tmp/subs.frag; then
26008 ac_more_lines=false
26009 else
26010 # The purpose of the label and of the branching condition is to
26011 # speed up the sed processing (if there are no `@' at all, there
26012 # is no need to browse any of the substitutions).
26013 # These are the two extra sed commands mentioned above.
26014 (echo ':t
26015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26016 if test -z "$ac_sed_cmds"; then
26017 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26018 else
26019 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26020 fi
26021 ac_sed_frag=`expr $ac_sed_frag + 1`
26022 ac_beg=$ac_end
26023 ac_end=`expr $ac_end + $ac_max_sed_lines`
26024 fi
26025 done
26026 if test -z "$ac_sed_cmds"; then
26027 ac_sed_cmds=cat
26028 fi
26029 fi # test -n "$CONFIG_FILES"
26030
26031 _ACEOF
26032 cat >>$CONFIG_STATUS <<\_ACEOF
26033 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26034 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26035 case $ac_file in
26036 - | *:- | *:-:* ) # input from stdin
26037 cat >$tmp/stdin
26038 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26040 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26041 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26042 * ) ac_file_in=$ac_file.in ;;
26043 esac
26044
26045 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26046 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26047 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26048 X"$ac_file" : 'X\(//\)[^/]' \| \
26049 X"$ac_file" : 'X\(//\)$' \| \
26050 X"$ac_file" : 'X\(/\)' \| \
26051 . : '\(.\)' 2>/dev/null ||
26052 echo X"$ac_file" |
26053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26055 /^X\(\/\/\)$/{ s//\1/; q; }
26056 /^X\(\/\).*/{ s//\1/; q; }
26057 s/.*/./; q'`
26058 { if $as_mkdir_p; then
26059 mkdir -p "$ac_dir"
26060 else
26061 as_dir="$ac_dir"
26062 as_dirs=
26063 while test ! -d "$as_dir"; do
26064 as_dirs="$as_dir $as_dirs"
26065 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26066 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26067 X"$as_dir" : 'X\(//\)[^/]' \| \
26068 X"$as_dir" : 'X\(//\)$' \| \
26069 X"$as_dir" : 'X\(/\)' \| \
26070 . : '\(.\)' 2>/dev/null ||
26071 echo X"$as_dir" |
26072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26074 /^X\(\/\/\)$/{ s//\1/; q; }
26075 /^X\(\/\).*/{ s//\1/; q; }
26076 s/.*/./; q'`
26077 done
26078 test ! -n "$as_dirs" || mkdir $as_dirs
26079 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26080 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26081 { (exit 1); exit 1; }; }; }
26082
26083 ac_builddir=.
26084
26085 if test "$ac_dir" != .; then
26086 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26087 # A "../" for each directory in $ac_dir_suffix.
26088 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26089 else
26090 ac_dir_suffix= ac_top_builddir=
26091 fi
26092
26093 case $srcdir in
26094 .) # No --srcdir option. We are building in place.
26095 ac_srcdir=.
26096 if test -z "$ac_top_builddir"; then
26097 ac_top_srcdir=.
26098 else
26099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26100 fi ;;
26101 [\\/]* | ?:[\\/]* ) # Absolute path.
26102 ac_srcdir=$srcdir$ac_dir_suffix;
26103 ac_top_srcdir=$srcdir ;;
26104 *) # Relative path.
26105 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26106 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26107 esac
26108
26109 # Do not use `cd foo && pwd` to compute absolute paths, because
26110 # the directories may not exist.
26111 case `pwd` in
26112 .) ac_abs_builddir="$ac_dir";;
26113 *)
26114 case "$ac_dir" in
26115 .) ac_abs_builddir=`pwd`;;
26116 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26117 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26118 esac;;
26119 esac
26120 case $ac_abs_builddir in
26121 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26122 *)
26123 case ${ac_top_builddir}. in
26124 .) ac_abs_top_builddir=$ac_abs_builddir;;
26125 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26126 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26127 esac;;
26128 esac
26129 case $ac_abs_builddir in
26130 .) ac_abs_srcdir=$ac_srcdir;;
26131 *)
26132 case $ac_srcdir in
26133 .) ac_abs_srcdir=$ac_abs_builddir;;
26134 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26135 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26136 esac;;
26137 esac
26138 case $ac_abs_builddir in
26139 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26140 *)
26141 case $ac_top_srcdir in
26142 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26143 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26144 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26145 esac;;
26146 esac
26147
26148
26149 case $INSTALL in
26150 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26151 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26152 esac
26153
26154 if test x"$ac_file" != x-; then
26155 { echo "$as_me:$LINENO: creating $ac_file" >&5
26156 echo "$as_me: creating $ac_file" >&6;}
26157 rm -f "$ac_file"
26158 fi
26159 # Let's still pretend it is `configure' which instantiates (i.e., don't
26160 # use $as_me), people would be surprised to read:
26161 # /* config.h. Generated by config.status. */
26162 if test x"$ac_file" = x-; then
26163 configure_input=
26164 else
26165 configure_input="$ac_file. "
26166 fi
26167 configure_input=$configure_input"Generated from `echo $ac_file_in |
26168 sed 's,.*/,,'` by configure."
26169
26170 # First look for the input files in the build tree, otherwise in the
26171 # src tree.
26172 ac_file_inputs=`IFS=:
26173 for f in $ac_file_in; do
26174 case $f in
26175 -) echo $tmp/stdin ;;
26176 [\\/$]*)
26177 # Absolute (can't be DOS-style, as IFS=:)
26178 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26179 echo "$as_me: error: cannot find input file: $f" >&2;}
26180 { (exit 1); exit 1; }; }
26181 echo "$f";;
26182 *) # Relative
26183 if test -f "$f"; then
26184 # Build tree
26185 echo "$f"
26186 elif test -f "$srcdir/$f"; then
26187 # Source tree
26188 echo "$srcdir/$f"
26189 else
26190 # /dev/null tree
26191 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26192 echo "$as_me: error: cannot find input file: $f" >&2;}
26193 { (exit 1); exit 1; }; }
26194 fi;;
26195 esac
26196 done` || { (exit 1); exit 1; }
26197 _ACEOF
26198 cat >>$CONFIG_STATUS <<_ACEOF
26199 sed "$ac_vpsub
26200 $extrasub
26201 _ACEOF
26202 cat >>$CONFIG_STATUS <<\_ACEOF
26203 :t
26204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26205 s,@configure_input@,$configure_input,;t t
26206 s,@srcdir@,$ac_srcdir,;t t
26207 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26208 s,@top_srcdir@,$ac_top_srcdir,;t t
26209 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26210 s,@builddir@,$ac_builddir,;t t
26211 s,@abs_builddir@,$ac_abs_builddir,;t t
26212 s,@top_builddir@,$ac_top_builddir,;t t
26213 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26214 s,@INSTALL@,$ac_INSTALL,;t t
26215 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26216 rm -f $tmp/stdin
26217 if test x"$ac_file" != x-; then
26218 mv $tmp/out $ac_file
26219 else
26220 cat $tmp/out
26221 rm -f $tmp/out
26222 fi
26223
26224 done
26225 _ACEOF
26226 cat >>$CONFIG_STATUS <<\_ACEOF
26227
26228 #
26229 # CONFIG_HEADER section.
26230 #
26231
26232 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26233 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26234 #
26235 # ac_d sets the value in "#define NAME VALUE" lines.
26236 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26237 ac_dB='[ ].*$,\1#\2'
26238 ac_dC=' '
26239 ac_dD=',;t'
26240 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26241 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26242 ac_uB='$,\1#\2define\3'
26243 ac_uC=' '
26244 ac_uD=',;t'
26245
26246 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26247 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26248 case $ac_file in
26249 - | *:- | *:-:* ) # input from stdin
26250 cat >$tmp/stdin
26251 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26253 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26254 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26255 * ) ac_file_in=$ac_file.in ;;
26256 esac
26257
26258 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26259 echo "$as_me: creating $ac_file" >&6;}
26260
26261 # First look for the input files in the build tree, otherwise in the
26262 # src tree.
26263 ac_file_inputs=`IFS=:
26264 for f in $ac_file_in; do
26265 case $f in
26266 -) echo $tmp/stdin ;;
26267 [\\/$]*)
26268 # Absolute (can't be DOS-style, as IFS=:)
26269 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26270 echo "$as_me: error: cannot find input file: $f" >&2;}
26271 { (exit 1); exit 1; }; }
26272 # Do quote $f, to prevent DOS paths from being IFS'd.
26273 echo "$f";;
26274 *) # Relative
26275 if test -f "$f"; then
26276 # Build tree
26277 echo "$f"
26278 elif test -f "$srcdir/$f"; then
26279 # Source tree
26280 echo "$srcdir/$f"
26281 else
26282 # /dev/null tree
26283 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26284 echo "$as_me: error: cannot find input file: $f" >&2;}
26285 { (exit 1); exit 1; }; }
26286 fi;;
26287 esac
26288 done` || { (exit 1); exit 1; }
26289 # Remove the trailing spaces.
26290 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26291
26292 _ACEOF
26293
26294 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26295 # `conftest.undefs', that substitutes the proper values into
26296 # config.h.in to produce config.h. The first handles `#define'
26297 # templates, and the second `#undef' templates.
26298 # And first: Protect against being on the right side of a sed subst in
26299 # config.status. Protect against being in an unquoted here document
26300 # in config.status.
26301 rm -f conftest.defines conftest.undefs
26302 # Using a here document instead of a string reduces the quoting nightmare.
26303 # Putting comments in sed scripts is not portable.
26304 #
26305 # `end' is used to avoid that the second main sed command (meant for
26306 # 0-ary CPP macros) applies to n-ary macro definitions.
26307 # See the Autoconf documentation for `clear'.
26308 cat >confdef2sed.sed <<\_ACEOF
26309 s/[\\&,]/\\&/g
26310 s,[\\$`],\\&,g
26311 t clear
26312 : clear
26313 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26314 t end
26315 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26316 : end
26317 _ACEOF
26318 # If some macros were called several times there might be several times
26319 # the same #defines, which is useless. Nevertheless, we may not want to
26320 # sort them, since we want the *last* AC-DEFINE to be honored.
26321 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26322 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26323 rm -f confdef2sed.sed
26324
26325 # This sed command replaces #undef with comments. This is necessary, for
26326 # example, in the case of _POSIX_SOURCE, which is predefined and required
26327 # on some systems where configure will not decide to define it.
26328 cat >>conftest.undefs <<\_ACEOF
26329 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26330 _ACEOF
26331
26332 # Break up conftest.defines because some shells have a limit on the size
26333 # of here documents, and old seds have small limits too (100 cmds).
26334 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26335 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26336 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26337 echo ' :' >>$CONFIG_STATUS
26338 rm -f conftest.tail
26339 while grep . conftest.defines >/dev/null
26340 do
26341 # Write a limited-size here document to $tmp/defines.sed.
26342 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26343 # Speed up: don't consider the non `#define' lines.
26344 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26345 # Work around the forget-to-reset-the-flag bug.
26346 echo 't clr' >>$CONFIG_STATUS
26347 echo ': clr' >>$CONFIG_STATUS
26348 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26349 echo 'CEOF
26350 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26351 rm -f $tmp/in
26352 mv $tmp/out $tmp/in
26353 ' >>$CONFIG_STATUS
26354 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26355 rm -f conftest.defines
26356 mv conftest.tail conftest.defines
26357 done
26358 rm -f conftest.defines
26359 echo ' fi # grep' >>$CONFIG_STATUS
26360 echo >>$CONFIG_STATUS
26361
26362 # Break up conftest.undefs because some shells have a limit on the size
26363 # of here documents, and old seds have small limits too (100 cmds).
26364 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26365 rm -f conftest.tail
26366 while grep . conftest.undefs >/dev/null
26367 do
26368 # Write a limited-size here document to $tmp/undefs.sed.
26369 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26370 # Speed up: don't consider the non `#undef'
26371 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26372 # Work around the forget-to-reset-the-flag bug.
26373 echo 't clr' >>$CONFIG_STATUS
26374 echo ': clr' >>$CONFIG_STATUS
26375 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26376 echo 'CEOF
26377 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26378 rm -f $tmp/in
26379 mv $tmp/out $tmp/in
26380 ' >>$CONFIG_STATUS
26381 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26382 rm -f conftest.undefs
26383 mv conftest.tail conftest.undefs
26384 done
26385 rm -f conftest.undefs
26386
26387 cat >>$CONFIG_STATUS <<\_ACEOF
26388 # Let's still pretend it is `configure' which instantiates (i.e., don't
26389 # use $as_me), people would be surprised to read:
26390 # /* config.h. Generated by config.status. */
26391 if test x"$ac_file" = x-; then
26392 echo "/* Generated by configure. */" >$tmp/config.h
26393 else
26394 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26395 fi
26396 cat $tmp/in >>$tmp/config.h
26397 rm -f $tmp/in
26398 if test x"$ac_file" != x-; then
26399 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26400 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26401 echo "$as_me: $ac_file is unchanged" >&6;}
26402 else
26403 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26404 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26405 X"$ac_file" : 'X\(//\)[^/]' \| \
26406 X"$ac_file" : 'X\(//\)$' \| \
26407 X"$ac_file" : 'X\(/\)' \| \
26408 . : '\(.\)' 2>/dev/null ||
26409 echo X"$ac_file" |
26410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26412 /^X\(\/\/\)$/{ s//\1/; q; }
26413 /^X\(\/\).*/{ s//\1/; q; }
26414 s/.*/./; q'`
26415 { if $as_mkdir_p; then
26416 mkdir -p "$ac_dir"
26417 else
26418 as_dir="$ac_dir"
26419 as_dirs=
26420 while test ! -d "$as_dir"; do
26421 as_dirs="$as_dir $as_dirs"
26422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26424 X"$as_dir" : 'X\(//\)[^/]' \| \
26425 X"$as_dir" : 'X\(//\)$' \| \
26426 X"$as_dir" : 'X\(/\)' \| \
26427 . : '\(.\)' 2>/dev/null ||
26428 echo X"$as_dir" |
26429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26431 /^X\(\/\/\)$/{ s//\1/; q; }
26432 /^X\(\/\).*/{ s//\1/; q; }
26433 s/.*/./; q'`
26434 done
26435 test ! -n "$as_dirs" || mkdir $as_dirs
26436 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26437 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26438 { (exit 1); exit 1; }; }; }
26439
26440 rm -f $ac_file
26441 mv $tmp/config.h $ac_file
26442 fi
26443 else
26444 cat $tmp/config.h
26445 rm -f $tmp/config.h
26446 fi
26447 # Compute $ac_file's index in $config_headers.
26448 _am_stamp_count=1
26449 for _am_header in $config_headers :; do
26450 case $_am_header in
26451 $ac_file | $ac_file:* )
26452 break ;;
26453 * )
26454 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26455 esac
26456 done
26457 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26458 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26459 X$ac_file : 'X\(//\)[^/]' \| \
26460 X$ac_file : 'X\(//\)$' \| \
26461 X$ac_file : 'X\(/\)' \| \
26462 . : '\(.\)' 2>/dev/null ||
26463 echo X$ac_file |
26464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26466 /^X\(\/\/\)$/{ s//\1/; q; }
26467 /^X\(\/\).*/{ s//\1/; q; }
26468 s/.*/./; q'`/stamp-h$_am_stamp_count
26469 done
26470 _ACEOF
26471 cat >>$CONFIG_STATUS <<\_ACEOF
26472
26473 #
26474 # CONFIG_LINKS section.
26475 #
26476
26477 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
26478 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26479 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26480
26481 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
26482 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
26483
26484 if test ! -r $srcdir/$ac_source; then
26485 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26486 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26487 { (exit 1); exit 1; }; }
26488 fi
26489 rm -f $ac_dest
26490
26491 # Make relative symlinks.
26492 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
26493 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26494 X"$ac_dest" : 'X\(//\)[^/]' \| \
26495 X"$ac_dest" : 'X\(//\)$' \| \
26496 X"$ac_dest" : 'X\(/\)' \| \
26497 . : '\(.\)' 2>/dev/null ||
26498 echo X"$ac_dest" |
26499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26500 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26501 /^X\(\/\/\)$/{ s//\1/; q; }
26502 /^X\(\/\).*/{ s//\1/; q; }
26503 s/.*/./; q'`
26504 { if $as_mkdir_p; then
26505 mkdir -p "$ac_dest_dir"
26506 else
26507 as_dir="$ac_dest_dir"
26508 as_dirs=
26509 while test ! -d "$as_dir"; do
26510 as_dirs="$as_dir $as_dirs"
26511 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26513 X"$as_dir" : 'X\(//\)[^/]' \| \
26514 X"$as_dir" : 'X\(//\)$' \| \
26515 X"$as_dir" : 'X\(/\)' \| \
26516 . : '\(.\)' 2>/dev/null ||
26517 echo X"$as_dir" |
26518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26520 /^X\(\/\/\)$/{ s//\1/; q; }
26521 /^X\(\/\).*/{ s//\1/; q; }
26522 s/.*/./; q'`
26523 done
26524 test ! -n "$as_dirs" || mkdir $as_dirs
26525 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
26526 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
26527 { (exit 1); exit 1; }; }; }
26528
26529 ac_builddir=.
26530
26531 if test "$ac_dest_dir" != .; then
26532 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
26533 # A "../" for each directory in $ac_dir_suffix.
26534 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26535 else
26536 ac_dir_suffix= ac_top_builddir=
26537 fi
26538
26539 case $srcdir in
26540 .) # No --srcdir option. We are building in place.
26541 ac_srcdir=.
26542 if test -z "$ac_top_builddir"; then
26543 ac_top_srcdir=.
26544 else
26545 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26546 fi ;;
26547 [\\/]* | ?:[\\/]* ) # Absolute path.
26548 ac_srcdir=$srcdir$ac_dir_suffix;
26549 ac_top_srcdir=$srcdir ;;
26550 *) # Relative path.
26551 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26552 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26553 esac
26554
26555 # Do not use `cd foo && pwd` to compute absolute paths, because
26556 # the directories may not exist.
26557 case `pwd` in
26558 .) ac_abs_builddir="$ac_dest_dir";;
26559 *)
26560 case "$ac_dest_dir" in
26561 .) ac_abs_builddir=`pwd`;;
26562 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
26563 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
26564 esac;;
26565 esac
26566 case $ac_abs_builddir in
26567 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26568 *)
26569 case ${ac_top_builddir}. in
26570 .) ac_abs_top_builddir=$ac_abs_builddir;;
26571 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26572 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26573 esac;;
26574 esac
26575 case $ac_abs_builddir in
26576 .) ac_abs_srcdir=$ac_srcdir;;
26577 *)
26578 case $ac_srcdir in
26579 .) ac_abs_srcdir=$ac_abs_builddir;;
26580 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26581 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26582 esac;;
26583 esac
26584 case $ac_abs_builddir in
26585 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26586 *)
26587 case $ac_top_srcdir in
26588 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26589 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26590 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26591 esac;;
26592 esac
26593
26594
26595 case $srcdir in
26596 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26597 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
26598 esac
26599
26600 # Try a symlink, then a hard link, then a copy.
26601 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26602 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26603 cp -p $srcdir/$ac_source $ac_dest ||
26604 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26605 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
26606 { (exit 1); exit 1; }; }
26607 done
26608 _ACEOF
26609 cat >>$CONFIG_STATUS <<\_ACEOF
26610
26611 #
26612 # CONFIG_COMMANDS section.
26613 #
26614 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26615 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26616 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26617 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26618 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26619 X"$ac_dest" : 'X\(//\)[^/]' \| \
26620 X"$ac_dest" : 'X\(//\)$' \| \
26621 X"$ac_dest" : 'X\(/\)' \| \
26622 . : '\(.\)' 2>/dev/null ||
26623 echo X"$ac_dest" |
26624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26626 /^X\(\/\/\)$/{ s//\1/; q; }
26627 /^X\(\/\).*/{ s//\1/; q; }
26628 s/.*/./; q'`
26629 { if $as_mkdir_p; then
26630 mkdir -p "$ac_dir"
26631 else
26632 as_dir="$ac_dir"
26633 as_dirs=
26634 while test ! -d "$as_dir"; do
26635 as_dirs="$as_dir $as_dirs"
26636 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26638 X"$as_dir" : 'X\(//\)[^/]' \| \
26639 X"$as_dir" : 'X\(//\)$' \| \
26640 X"$as_dir" : 'X\(/\)' \| \
26641 . : '\(.\)' 2>/dev/null ||
26642 echo X"$as_dir" |
26643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26645 /^X\(\/\/\)$/{ s//\1/; q; }
26646 /^X\(\/\).*/{ s//\1/; q; }
26647 s/.*/./; q'`
26648 done
26649 test ! -n "$as_dirs" || mkdir $as_dirs
26650 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26651 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26652 { (exit 1); exit 1; }; }; }
26653
26654 ac_builddir=.
26655
26656 if test "$ac_dir" != .; then
26657 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26658 # A "../" for each directory in $ac_dir_suffix.
26659 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26660 else
26661 ac_dir_suffix= ac_top_builddir=
26662 fi
26663
26664 case $srcdir in
26665 .) # No --srcdir option. We are building in place.
26666 ac_srcdir=.
26667 if test -z "$ac_top_builddir"; then
26668 ac_top_srcdir=.
26669 else
26670 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26671 fi ;;
26672 [\\/]* | ?:[\\/]* ) # Absolute path.
26673 ac_srcdir=$srcdir$ac_dir_suffix;
26674 ac_top_srcdir=$srcdir ;;
26675 *) # Relative path.
26676 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26677 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26678 esac
26679
26680 # Do not use `cd foo && pwd` to compute absolute paths, because
26681 # the directories may not exist.
26682 case `pwd` in
26683 .) ac_abs_builddir="$ac_dir";;
26684 *)
26685 case "$ac_dir" in
26686 .) ac_abs_builddir=`pwd`;;
26687 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26688 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26689 esac;;
26690 esac
26691 case $ac_abs_builddir in
26692 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26693 *)
26694 case ${ac_top_builddir}. in
26695 .) ac_abs_top_builddir=$ac_abs_builddir;;
26696 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26697 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26698 esac;;
26699 esac
26700 case $ac_abs_builddir in
26701 .) ac_abs_srcdir=$ac_srcdir;;
26702 *)
26703 case $ac_srcdir in
26704 .) ac_abs_srcdir=$ac_abs_builddir;;
26705 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26706 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26707 esac;;
26708 esac
26709 case $ac_abs_builddir in
26710 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26711 *)
26712 case $ac_top_srcdir in
26713 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26714 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26715 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26716 esac;;
26717 esac
26718
26719
26720 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26721 echo "$as_me: executing $ac_dest commands" >&6;}
26722 case $ac_dest in
26723 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26724 # Strip MF so we end up with the name of the file.
26725 mf=`echo "$mf" | sed -e 's/:.*$//'`
26726 # Check whether this is an Automake generated Makefile or not.
26727 # We used to match only the files named `Makefile.in', but
26728 # some people rename them; so instead we look at the file content.
26729 # Grep'ing the first line is not enough: some people post-process
26730 # each Makefile.in and add a new line on top of each file to say so.
26731 # So let's grep whole file.
26732 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26733 dirpart=`(dirname "$mf") 2>/dev/null ||
26734 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26735 X"$mf" : 'X\(//\)[^/]' \| \
26736 X"$mf" : 'X\(//\)$' \| \
26737 X"$mf" : 'X\(/\)' \| \
26738 . : '\(.\)' 2>/dev/null ||
26739 echo X"$mf" |
26740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26742 /^X\(\/\/\)$/{ s//\1/; q; }
26743 /^X\(\/\).*/{ s//\1/; q; }
26744 s/.*/./; q'`
26745 else
26746 continue
26747 fi
26748 # Extract the definition of DEPDIR, am__include, and am__quote
26749 # from the Makefile without running `make'.
26750 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26751 test -z "$DEPDIR" && continue
26752 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26753 test -z "am__include" && continue
26754 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26755 # When using ansi2knr, U may be empty or an underscore; expand it
26756 U=`sed -n 's/^U = //p' < "$mf"`
26757 # Find all dependency output files, they are included files with
26758 # $(DEPDIR) in their names. We invoke sed twice because it is the
26759 # simplest approach to changing $(DEPDIR) to its actual value in the
26760 # expansion.
26761 for file in `sed -n "
26762 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26763 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26764 # Make sure the directory exists.
26765 test -f "$dirpart/$file" && continue
26766 fdir=`(dirname "$file") 2>/dev/null ||
26767 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26768 X"$file" : 'X\(//\)[^/]' \| \
26769 X"$file" : 'X\(//\)$' \| \
26770 X"$file" : 'X\(/\)' \| \
26771 . : '\(.\)' 2>/dev/null ||
26772 echo X"$file" |
26773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26775 /^X\(\/\/\)$/{ s//\1/; q; }
26776 /^X\(\/\).*/{ s//\1/; q; }
26777 s/.*/./; q'`
26778 { if $as_mkdir_p; then
26779 mkdir -p $dirpart/$fdir
26780 else
26781 as_dir=$dirpart/$fdir
26782 as_dirs=
26783 while test ! -d "$as_dir"; do
26784 as_dirs="$as_dir $as_dirs"
26785 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26786 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26787 X"$as_dir" : 'X\(//\)[^/]' \| \
26788 X"$as_dir" : 'X\(//\)$' \| \
26789 X"$as_dir" : 'X\(/\)' \| \
26790 . : '\(.\)' 2>/dev/null ||
26791 echo X"$as_dir" |
26792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26794 /^X\(\/\/\)$/{ s//\1/; q; }
26795 /^X\(\/\).*/{ s//\1/; q; }
26796 s/.*/./; q'`
26797 done
26798 test ! -n "$as_dirs" || mkdir $as_dirs
26799 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
26800 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
26801 { (exit 1); exit 1; }; }; }
26802
26803 # echo "creating $dirpart/$file"
26804 echo '# dummy' > "$dirpart/$file"
26805 done
26806 done
26807 ;;
26808 esac
26809 done
26810 _ACEOF
26811
26812 cat >>$CONFIG_STATUS <<\_ACEOF
26813
26814 { (exit 0); exit 0; }
26815 _ACEOF
26816 chmod +x $CONFIG_STATUS
26817 ac_clean_files=$ac_clean_files_save
26818
26819
26820 # configure is writing to config.log, and then calls config.status.
26821 # config.status does its own redirection, appending to config.log.
26822 # Unfortunately, on DOS this fails, as config.log is still kept open
26823 # by configure, so config.status won't be able to write to it; its
26824 # output is simply discarded. So we exec the FD to /dev/null,
26825 # effectively closing config.log, so it can be properly (re)opened and
26826 # appended to by config.status. When coming back to configure, we
26827 # need to make the FD available again.
26828 if test "$no_create" != yes; then
26829 ac_cs_success=:
26830 ac_config_status_args=
26831 test "$silent" = yes &&
26832 ac_config_status_args="$ac_config_status_args --quiet"
26833 exec 5>/dev/null
26834 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26835 exec 5>>config.log
26836 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26837 # would make configure fail if this is the last instruction.
26838 $ac_cs_success || { (exit 1); exit 1; }
26839 fi
26840
26841
26842 if test x"$coin_vpath_link_files" = x; then : ; else
26843 lnkcmd="$coin_link_input_cmd"
26844 if test "$lnkcmd" = cp; then
26845 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
26846 echo "$as_me: Copying data files for VPATH configuration" >&6;}
26847 else
26848 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
26849 echo "$as_me: Creating VPATH links for data files" >&6;}
26850 fi
26851 for file in $coin_vpath_link_files; do
26852 dir=`(dirname "./$file") 2>/dev/null ||
26853 $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26854 X"./$file" : 'X\(//\)[^/]' \| \
26855 X"./$file" : 'X\(//\)$' \| \
26856 X"./$file" : 'X\(/\)' \| \
26857 . : '\(.\)' 2>/dev/null ||
26858 echo X"./$file" |
26859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26860 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26861 /^X\(\/\/\)$/{ s//\1/; q; }
26862 /^X\(\/\).*/{ s//\1/; q; }
26863 s/.*/./; q'`
26864 if test -d $dir; then : ; else
26865 { if $as_mkdir_p; then
26866 mkdir -p $dir
26867 else
26868 as_dir=$dir
26869 as_dirs=
26870 while test ! -d "$as_dir"; do
26871 as_dirs="$as_dir $as_dirs"
26872 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26873 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26874 X"$as_dir" : 'X\(//\)[^/]' \| \
26875 X"$as_dir" : 'X\(//\)$' \| \
26876 X"$as_dir" : 'X\(/\)' \| \
26877 . : '\(.\)' 2>/dev/null ||
26878 echo X"$as_dir" |
26879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26881 /^X\(\/\/\)$/{ s//\1/; q; }
26882 /^X\(\/\).*/{ s//\1/; q; }
26883 s/.*/./; q'`
26884 done
26885 test ! -n "$as_dirs" || mkdir $as_dirs
26886 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
26887 echo "$as_me: error: cannot create directory $dir" >&2;}
26888 { (exit 1); exit 1; }; }; }
26889
26890 fi
26891 rm -f $file
26892 $lnkcmd $abs_source_dir/$file $file
26893 done
26894 fi
26895
26896 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
26897 echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
26898 if test x$coin_projectdir = xyes; then
26899 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
26900 echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
26901 else
26902 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
26903 echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
26904 fi
26905 else
26906 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
26907 echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
26908 fi
26909
26910