Debian Codegraph @

Osi/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Osi 0.108.11.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 #
12 # Copyright 2006 International Business Machines and others.
13 # All Rights Reserved.
14 # This file is part of the open source package Coin which is distributed
15 # under the Eclipse Public License.
16 ## --------------------- ##
17 ## M4sh Initialization. ##
18 ## --------------------- ##
19
20 # Be Bourne compatible
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 emulate sh
23 NULLCMD=:
24 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29 fi
30 DUALCASE=1; export DUALCASE # for MKS sh
31
32 # Support unset when possible.
33 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 as_unset=unset
35 else
36 as_unset=false
37 fi
38
39
40 # Work around bugs in pre-3.0 UWIN ksh.
41 $as_unset ENV MAIL MAILPATH
42 PS1='$ '
43 PS2='> '
44 PS4='+ '
45
46 # NLS nuisances.
47 for as_var in \
48 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50 LC_TELEPHONE LC_TIME
51 do
52 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53 eval $as_var=C; export $as_var
54 else
55 $as_unset $as_var
56 fi
57 done
58
59 # Required to use basename.
60 if expr a : '\(a\)' >/dev/null 2>&1; then
61 as_expr=expr
62 else
63 as_expr=false
64 fi
65
66 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 as_basename=basename
68 else
69 as_basename=false
70 fi
71
72
73 # Name of the executable.
74 as_me=`$as_basename "$0" ||
75 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76 X"$0" : 'X\(//\)$' \| \
77 X"$0" : 'X\(/\)$' \| \
78 . : '\(.\)' 2>/dev/null ||
79 echo X/"$0" |
80 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81 /^X\/\(\/\/\)$/{ s//\1/; q; }
82 /^X\/\(\/\).*/{ s//\1/; q; }
83 s/.*/./; q'`
84
85
86 # PATH needs CR, and LINENO needs CR and PATH.
87 # Avoid depending upon Character Ranges.
88 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91 as_cr_digits='0123456789'
92 as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94 # The user is always right.
95 if test "${PATH_SEPARATOR+set}" != set; then
96 echo "#! /bin/sh" >conf$$.sh
97 echo "exit 0" >>conf$$.sh
98 chmod +x conf$$.sh
99 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100 PATH_SEPARATOR=';'
101 else
102 PATH_SEPARATOR=:
103 fi
104 rm -f conf$$.sh
105 fi
106
107
108 as_lineno_1=$LINENO
109 as_lineno_2=$LINENO
110 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111 test "x$as_lineno_1" != "x$as_lineno_2" &&
112 test "x$as_lineno_3" = "x$as_lineno_2" || {
113 # Find who we are. Look in the path if we contain no path at all
114 # relative or not.
115 case $0 in
116 *[\\/]* ) as_myself=$0 ;;
117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118 for as_dir in $PATH
119 do
120 IFS=$as_save_IFS
121 test -z "$as_dir" && as_dir=.
122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 done
124
125 ;;
126 esac
127 # We did not find ourselves, most probably we were run as `sh COMMAND'
128 # in which case we are not to be found in the path.
129 if test "x$as_myself" = x; then
130 as_myself=$0
131 fi
132 if test ! -f "$as_myself"; then
133 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134 { (exit 1); exit 1; }; }
135 fi
136 case $CONFIG_SHELL in
137 '')
138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140 do
141 IFS=$as_save_IFS
142 test -z "$as_dir" && as_dir=.
143 for as_base in sh bash ksh sh5; do
144 case $as_dir in
145 /*)
146 if ("$as_dir/$as_base" -c '
147 as_lineno_1=$LINENO
148 as_lineno_2=$LINENO
149 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150 test "x$as_lineno_1" != "x$as_lineno_2" &&
151 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
152 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154 CONFIG_SHELL=$as_dir/$as_base
155 export CONFIG_SHELL
156 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 fi;;
158 esac
159 done
160 done
161 ;;
162 esac
163
164 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165 # uniformly replaced by the line number. The first 'sed' inserts a
166 # line-number line before each line; the second 'sed' does the real
167 # work. The second script uses 'N' to pair each line-number line
168 # with the numbered line, and appends trailing '-' during
169 # substitution so that $LINENO is not a special case at line end.
170 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
172 sed '=' <$as_myself |
173 sed '
174 N
175 s,$,-,
176 : loop
177 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178 t loop
179 s,-$,,
180 s,^['$as_cr_digits']*\n,,
181 ' >$as_me.lineno &&
182 chmod +x $as_me.lineno ||
183 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184 { (exit 1); exit 1; }; }
185
186 # Don't try to exec as it changes $[0], causing all sort of problems
187 # (the dirname of $[0] is not the place where we might find the
188 # original and so on. Autoconf is especially sensible to this).
189 . ./$as_me.lineno
190 # Exit status is that of the last command.
191 exit
192 }
193
194
195 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196 *c*,-n*) ECHO_N= ECHO_C='
197 ' ECHO_T=' ' ;;
198 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
200 esac
201
202 if expr a : '\(a\)' >/dev/null 2>&1; then
203 as_expr=expr
204 else
205 as_expr=false
206 fi
207
208 rm -f conf$$ conf$$.exe conf$$.file
209 echo >conf$$.file
210 if ln -s conf$$.file conf$$ 2>/dev/null; then
211 # We could just check for DJGPP; but this test a) works b) is more generic
212 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213 if test -f conf$$.exe; then
214 # Don't use ln at all; we don't have any links
215 as_ln_s='cp -p'
216 else
217 as_ln_s='ln -s'
218 fi
219 elif ln conf$$.file conf$$ 2>/dev/null; then
220 as_ln_s=ln
221 else
222 as_ln_s='cp -p'
223 fi
224 rm -f conf$$ conf$$.exe conf$$.file
225
226 if mkdir -p . 2>/dev/null; then
227 as_mkdir_p=:
228 else
229 test -d ./-p && rmdir ./-p
230 as_mkdir_p=false
231 fi
232
233 as_executable_p="test -f"
234
235 # Sed expression to map a string onto a valid CPP name.
236 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238 # Sed expression to map a string onto a valid variable name.
239 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242 # IFS
243 # We need space, tab and new line, in precisely that order.
244 as_nl='
245 '
246 IFS=" $as_nl"
247
248 # CDPATH.
249 $as_unset CDPATH
250
251
252
253 # Check that we are running under the correct shell.
254 SHELL=${CONFIG_SHELL-/bin/sh}
255
256 case X$ECHO in
257 X*--fallback-echo)
258 # Remove one level of quotation (which was required for Make).
259 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 ;;
261 esac
262
263 echo=${ECHO-echo}
264 if test "X$1" = X--no-reexec; then
265 # Discard the --no-reexec flag, and continue.
266 shift
267 elif test "X$1" = X--fallback-echo; then
268 # Avoid inline document here, it may be left over
269 :
270 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271 # Yippee, $echo works!
272 :
273 else
274 # Restart under the correct shell.
275 exec $SHELL "$0" --no-reexec ${1+"$@"}
276 fi
277
278 if test "X$1" = X--fallback-echo; then
279 # used as fallback echo
280 shift
281 cat <<EOF
282 $*
283 EOF
284 exit 0
285 fi
286
287 # The HP-UX ksh and POSIX shell print the target directory to stdout
288 # if CDPATH is set.
289 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291 if test -z "$ECHO"; then
292 if test "X${echo_test_string+set}" != Xset; then
293 # find a string as large as possible, as long as the shell can cope with it
294 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297 echo_test_string=`eval $cmd` &&
298 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 then
300 break
301 fi
302 done
303 fi
304
305 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307 test "X$echo_testing_string" = "X$echo_test_string"; then
308 :
309 else
310 # The Solaris, AIX, and Digital Unix default echo programs unquote
311 # backslashes. This makes it impossible to quote backslashes using
312 # echo "$something" | sed 's/\\/\\\\/g'
313 #
314 # So, first we look for a working echo in the user's PATH.
315
316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317 for dir in $PATH /usr/ucb; do
318 IFS="$lt_save_ifs"
319 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322 test "X$echo_testing_string" = "X$echo_test_string"; then
323 echo="$dir/echo"
324 break
325 fi
326 done
327 IFS="$lt_save_ifs"
328
329 if test "X$echo" = Xecho; then
330 # We didn't find a better echo, so look for alternatives.
331 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333 test "X$echo_testing_string" = "X$echo_test_string"; then
334 # This shell has a builtin print -r that does the trick.
335 echo='print -r'
336 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337 test "X$CONFIG_SHELL" != X/bin/ksh; then
338 # If we have ksh, try running configure again with it.
339 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340 export ORIGINAL_CONFIG_SHELL
341 CONFIG_SHELL=/bin/ksh
342 export CONFIG_SHELL
343 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344 else
345 # Try using printf.
346 echo='printf %s\n'
347 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 # Cool, printf works
351 :
352 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357 export CONFIG_SHELL
358 SHELL="$CONFIG_SHELL"
359 export SHELL
360 echo="$CONFIG_SHELL $0 --fallback-echo"
361 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362 test "X$echo_testing_string" = 'X\t' &&
363 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364 test "X$echo_testing_string" = "X$echo_test_string"; then
365 echo="$CONFIG_SHELL $0 --fallback-echo"
366 else
367 # maybe with a smaller string...
368 prev=:
369
370 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 then
373 break
374 fi
375 prev="$cmd"
376 done
377
378 if test "$prev" != 'sed 50q "$0"'; then
379 echo_test_string=`eval $prev`
380 export echo_test_string
381 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382 else
383 # Oops. We lost completely, so just stick with echo.
384 echo=echo
385 fi
386 fi
387 fi
388 fi
389 fi
390 fi
391
392 # Copy echo and quote the copy suitably for passing to libtool from
393 # the Makefile, instead of quoting the original, which is used later.
394 ECHO=$echo
395 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 fi
398
399
400
401
402 tagnames=${tagnames+${tagnames},}CXX
403
404 tagnames=${tagnames+${tagnames},}F77
405
406 # Name of the host.
407 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408 # so uname gets run too.
409 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411 exec 6>&1
412
413 #
414 # Initializations.
415 #
416 ac_default_prefix=/usr/local
417 ac_config_libobj_dir=.
418 cross_compiling=no
419 subdirs=
420 MFLAGS=
421 MAKEFLAGS=
422 SHELL=${CONFIG_SHELL-/bin/sh}
423
424 # Maximum number of lines to put in a shell here document.
425 # This variable seems obsolete. It should probably be removed, and
426 # only ac_max_sed_lines should be used.
427 : ${ac_max_here_lines=38}
428
429 # Identity of this package.
430 PACKAGE_NAME='Osi'
431 PACKAGE_TARNAME='osi'
432 PACKAGE_VERSION='0.108.11'
433 PACKAGE_STRING='Osi 0.108.11'
434 PACKAGE_BUGREPORT='[email protected]'
435
436 ac_unique_file="src/Osi/OsiAuxInfo.cpp"
437 ac_default_prefix=`pwd`
438 # Factoring default headers for most tests.
439 ac_includes_default="\
440 #include <stdio.h>
441 #if HAVE_SYS_TYPES_H
442 # include <sys/types.h>
443 #endif
444 #if HAVE_SYS_STAT_H
445 # include <sys/stat.h>
446 #endif
447 #if STDC_HEADERS
448 # include <stdlib.h>
449 # include <stddef.h>
450 #else
451 # if HAVE_STDLIB_H
452 # include <stdlib.h>
453 # endif
454 #endif
455 #if HAVE_STRING_H
456 # if !STDC_HEADERS && HAVE_MEMORY_H
457 # include <memory.h>
458 # endif
459 # include <string.h>
460 #endif
461 #if HAVE_STRINGS_H
462 # include <strings.h>
463 #endif
464 #if HAVE_INTTYPES_H
465 # include <inttypes.h>
466 #else
467 # if HAVE_STDINT_H
468 # include <stdint.h>
469 # endif
470 #endif
471 #if HAVE_UNISTD_H
472 # include <unistd.h>
473 #endif"
474
475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion OSI_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag dos2unix RPATH_FLAGS LT_LDFLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED OSILIB_CFLAGS OSILIB_LIBS OSILIB_PCLIBS OSILIB_PCREQUIRES OSILIB_DEPENDENCIES OSILIB_CFLAGS_INSTALLED OSILIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED OSIGLPKLIB_CFLAGS OSIGLPKLIB_LIBS OSIGLPKLIB_PCLIBS OSIGLPKLIB_PCREQUIRES OSIGLPKLIB_DEPENDENCIES OSIGLPKLIB_CFLAGS_INSTALLED OSIGLPKLIB_LIBS_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE SOPLEX_LIBS SOPLEX_CFLAGS SOPLEX_DATA SOPLEX_DEPENDENCIES SOPLEX_LIBS_INSTALLED SOPLEX_CFLAGS_INSTALLED SOPLEX_DATA_INSTALLED OSISPXLIB_CFLAGS OSISPXLIB_LIBS OSISPXLIB_PCLIBS OSISPXLIB_PCREQUIRES OSISPXLIB_DEPENDENCIES OSISPXLIB_CFLAGS_INSTALLED OSISPXLIB_LIBS_INSTALLED COIN_HAS_SOPLEX_TRUE COIN_HAS_SOPLEX_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE GRBINCDIR GRBLIB COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE OSI_EXAMPLES_SOLVER_NAME OSI_EXAMPLES_SOLVER_CFLAGS OSI_EXAMPLES_SOLVER_LIBS OSI_EXAMPLES_SOLVER_PCNAME 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
1005 #
1006 # Report the --help message.
1007 #
1008 if test "$ac_init_help" = "long"; then
1009 # Omit some internal or obsolete options to make the list less imposing.
1010 # This message is too long to be a string in the A/UX 3.1 sh.
1011 cat <<_ACEOF
1012 \`configure' configures Osi 0.108.11 to adapt to many kinds of systems.
1013
1014 Usage: $0 [OPTION]... [VAR=VALUE]...
1015
1016 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1017 VAR=VALUE. See below for descriptions of some of the useful variables.
1018
1019 Defaults for the options are specified in brackets.
1020
1021 Configuration:
1022 -h, --help display this help and exit
1023 --help=short display options specific to this package
1024 --help=recursive display the short help of all the included packages
1025 -V, --version display version information and exit
1026 -q, --quiet, --silent do not print \`checking...' messages
1027 --cache-file=FILE cache test results in FILE [disabled]
1028 -C, --config-cache alias for \`--cache-file=config.cache'
1029 -n, --no-create do not create output files
1030 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1031
1032 _ACEOF
1033
1034 cat <<_ACEOF
1035 Installation directories:
1036 --prefix=PREFIX install architecture-independent files in PREFIX
1037 [$ac_default_prefix]
1038 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1039 [PREFIX]
1040
1041 By default, \`make install' will install all the files in
1042 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1043 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1044 for instance \`--prefix=\$HOME'.
1045
1046 For better control, use the options below.
1047
1048 Fine tuning of the installation directories:
1049 --bindir=DIR user executables [EPREFIX/bin]
1050 --sbindir=DIR system admin executables [EPREFIX/sbin]
1051 --libexecdir=DIR program executables [EPREFIX/libexec]
1052 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1053 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1054 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1055 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1056 --libdir=DIR object code libraries [EPREFIX/lib]
1057 --includedir=DIR C header files [PREFIX/include]
1058 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1059 --infodir=DIR info documentation [PREFIX/info]
1060 --mandir=DIR man documentation [PREFIX/man]
1061 _ACEOF
1062
1063 cat <<\_ACEOF
1064
1065 Program names:
1066 --program-prefix=PREFIX prepend PREFIX to installed program names
1067 --program-suffix=SUFFIX append SUFFIX to installed program names
1068 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1069
1070 System types:
1071 --build=BUILD configure for building on BUILD [guessed]
1072 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1073 _ACEOF
1074 fi
1075
1076 if test -n "$ac_init_help"; then
1077 case $ac_init_help in
1078 short | recursive ) echo "Configuration of Osi 0.108.11:";;
1079 esac
1080 cat <<\_ACEOF
1081
1082 Optional Features:
1083 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1084 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1085 --enable-debug compile all projects with debug options tests
1086 (implies --disable-shared)
1087 --enable-debug-osi compile project Osi with debug compiler flags
1088
1089 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1090 --enable-static[=PKGS]
1091 build static libraries [default=no]
1092 --disable-dependency-tracking speeds up one-time build
1093 --enable-dependency-tracking do not reject slow dependency extractors
1094 --enable-maintainer-mode enable make rules and dependencies not useful
1095 (and sometimes confusing) to the casual installer
1096 --enable-shared[=PKGS]
1097 build shared libraries [default=yes]
1098 --enable-fast-install[=PKGS]
1099 optimize for fast installation [default=yes]
1100 --disable-libtool-lock avoid locking (might break parallel builds)
1101 --disable-dependency-linking
1102 disable linking library dependencies into shared
1103 libraries
1104 --disable-pkg-config disable use of pkg-config (if available)
1105 --disable-interpackage-dependencies
1106 disables deduction of Makefile dependencies from
1107 package linker flags
1108 --disable-cplex-libcheck
1109 skip the link check at configuration time
1110 --disable-mosek-libcheck
1111 skip the link check at configuration time
1112 --disable-xpress-libcheck
1113 skip the link check at configuration time
1114 --disable-gurobi-libcheck
1115 skip the link check at configuration time
1116
1117 Optional Packages:
1118 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1119 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1120 --with-osi-verbosity specify the debug verbosity level for project Osi
1121 --with-osi-checklevel specify the sanity check level for project Osi
1122 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1123 --with-pic try to use only PIC/non-PIC objects [default=use
1124 both]
1125 --with-tags[=TAGS]
1126 include additional configurations [automatic]
1127 --with-coin-instdir prefix of installation directory for precompiled
1128 COIN packages
1129
1130 --with-coinutils-lib linker flags for using package CoinUtils
1131 --with-coinutils-incdir directory with header files for using package
1132 CoinUtils
1133 --with-coinutils-datadir
1134 directory with data files for using package
1135 CoinUtils
1136 --with-glpk-lib linker flags for using package Glpk
1137 --with-glpk-incdir directory with header files for using package Glpk
1138 --with-glpk-datadir directory with data files for using package Glpk
1139 --with-soplex-lib linker flags for using package SoPlex
1140 --with-soplex-incdir directory with header files for using package SoPlex
1141 --with-soplex-datadir directory with data files for using package SoPlex
1142 --with-sample-lib linker flags for using package Sample
1143 --with-sample-incdir directory with header files for using package Sample
1144 --with-sample-datadir directory with data files for using package Sample
1145 --with-netlib-lib linker flags for using package Netlib
1146 --with-netlib-incdir directory with header files for using package Netlib
1147 --with-netlib-datadir directory with data files for using package Netlib
1148 --with-cplex-incdir specify the header file directory for library Cplex
1149 --with-cplex-lib specify the flags used to link with the library Cplex
1150 --with-mosek-incdir specify the header file directory for library Mosek
1151 --with-mosek-lib specify the flags used to link with the library Mosek
1152 --with-xpress-incdir specify the header file directory for library Xpress
1153 --with-xpress-lib specify the flags used to link with the library Xpress
1154 --with-gurobi-incdir specify the header file directory for library Gurobi
1155 --with-gurobi-lib specify the flags used to link with the library Gurobi
1156 --with-dot use dot (from graphviz) when creating documentation
1157 with doxygen if available; --without-dot to disable
1158
1159 Some influential environment variables:
1160 CDEFS Additional -D flags to be used when compiling C code.
1161 ADD_CFLAGS Additional C compiler options
1162 DBG_CFLAGS Debug C compiler options
1163 OPT_CFLAGS Optimize C compiler options
1164 CC C compiler command
1165 CFLAGS C compiler flags
1166 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1167 nonstandard directory <lib dir>
1168 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1169 headers in a nonstandard directory <include dir>
1170 MPICC C MPI Compiler
1171 CXXDEFS Additional -D flags to be used when compiling C++ code.
1172 ADD_CXXFLAGS
1173 Additional C++ compiler options
1174 DBG_CXXFLAGS
1175 Debug C++ compiler options
1176 OPT_CXXFLAGS
1177 Optimize C++ compiler options
1178 CXX C++ compiler command
1179 CXXFLAGS C++ compiler flags
1180 MPICXX C++ MPI Compiler
1181 CPP C preprocessor
1182 CXXCPP C++ preprocessor
1183 F77 Fortran 77 compiler command
1184 FFLAGS Fortran 77 compiler flags
1185 LT_LDFLAGS Flags passed to libtool when building libraries or executables
1186 that are installed
1187 PKG_CONFIG path to pkg-config utility
1188
1189 Use these variables to override the choices made by `configure' or to help
1190 it to find libraries and programs with nonstandard names/locations.
1191
1192 Report bugs to <[email protected]>.
1193 _ACEOF
1194 fi
1195
1196 if test "$ac_init_help" = "recursive"; then
1197 # If there are subdirs, report their specific --help.
1198 ac_popdir=`pwd`
1199 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1200 test -d $ac_dir || continue
1201 ac_builddir=.
1202
1203 if test "$ac_dir" != .; then
1204 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1205 # A "../" for each directory in $ac_dir_suffix.
1206 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1207 else
1208 ac_dir_suffix= ac_top_builddir=
1209 fi
1210
1211 case $srcdir in
1212 .) # No --srcdir option. We are building in place.
1213 ac_srcdir=.
1214 if test -z "$ac_top_builddir"; then
1215 ac_top_srcdir=.
1216 else
1217 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1218 fi ;;
1219 [\\/]* | ?:[\\/]* ) # Absolute path.
1220 ac_srcdir=$srcdir$ac_dir_suffix;
1221 ac_top_srcdir=$srcdir ;;
1222 *) # Relative path.
1223 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1224 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1225 esac
1226
1227 # Do not use `cd foo && pwd` to compute absolute paths, because
1228 # the directories may not exist.
1229 case `pwd` in
1230 .) ac_abs_builddir="$ac_dir";;
1231 *)
1232 case "$ac_dir" in
1233 .) ac_abs_builddir=`pwd`;;
1234 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1235 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1236 esac;;
1237 esac
1238 case $ac_abs_builddir in
1239 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1240 *)
1241 case ${ac_top_builddir}. in
1242 .) ac_abs_top_builddir=$ac_abs_builddir;;
1243 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1244 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1245 esac;;
1246 esac
1247 case $ac_abs_builddir in
1248 .) ac_abs_srcdir=$ac_srcdir;;
1249 *)
1250 case $ac_srcdir in
1251 .) ac_abs_srcdir=$ac_abs_builddir;;
1252 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1253 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1254 esac;;
1255 esac
1256 case $ac_abs_builddir in
1257 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1258 *)
1259 case $ac_top_srcdir in
1260 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1261 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1262 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1263 esac;;
1264 esac
1265
1266 cd $ac_dir
1267 # Check for guested configure; otherwise get Cygnus style configure.
1268 if test -f $ac_srcdir/configure.gnu; then
1269 echo
1270 $SHELL $ac_srcdir/configure.gnu --help=recursive
1271 elif test -f $ac_srcdir/configure; then
1272 echo
1273 $SHELL $ac_srcdir/configure --help=recursive
1274 elif test -f $ac_srcdir/configure.ac ||
1275 test -f $ac_srcdir/configure.in; then
1276 echo
1277 $ac_configure --help
1278 else
1279 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1280 fi
1281 cd $ac_popdir
1282 done
1283 fi
1284
1285 test -n "$ac_init_help" && exit 0
1286 if $ac_init_version; then
1287 cat <<\_ACEOF
1288 Osi configure 0.108.11
1289 generated by GNU Autoconf 2.59
1290
1291 Copyright (C) 2003 Free Software Foundation, Inc.
1292 This configure script is free software; the Free Software Foundation
1293 gives unlimited permission to copy, distribute and modify it.
1294
1295
1296 Copyright 2006 International Business Machines and others.
1297 All Rights Reserved.
1298 This file is part of the open source package Coin which is distributed
1299 under the Eclipse Public License.
1300 _ACEOF
1301 exit 0
1302 fi
1303 exec 5>config.log
1304 cat >&5 <<_ACEOF
1305 This file contains any messages produced by compilers while
1306 running configure, to aid debugging if configure makes a mistake.
1307
1308 It was created by Osi $as_me 0.108.11, which was
1309 generated by GNU Autoconf 2.59. Invocation command line was
1310
1311 $ $0 $@
1312
1313 _ACEOF
1314 {
1315 cat <<_ASUNAME
1316 ## --------- ##
1317 ## Platform. ##
1318 ## --------- ##
1319
1320 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1321 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1322 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1323 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1324 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1325
1326 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1327 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1328
1329 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1330 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1331 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1332 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1333 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1334 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1335 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1336
1337 _ASUNAME
1338
1339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1340 for as_dir in $PATH
1341 do
1342 IFS=$as_save_IFS
1343 test -z "$as_dir" && as_dir=.
1344 echo "PATH: $as_dir"
1345 done
1346
1347 } >&5
1348
1349 cat >&5 <<_ACEOF
1350
1351
1352 ## ----------- ##
1353 ## Core tests. ##
1354 ## ----------- ##
1355
1356 _ACEOF
1357
1358
1359 # Keep a trace of the command line.
1360 # Strip out --no-create and --no-recursion so they do not pile up.
1361 # Strip out --silent because we don't want to record it for future runs.
1362 # Also quote any args containing shell meta-characters.
1363 # Make two passes to allow for proper duplicate-argument suppression.
1364 ac_configure_args=
1365 ac_configure_args0=
1366 ac_configure_args1=
1367 ac_sep=
1368 ac_must_keep_next=false
1369 for ac_pass in 1 2
1370 do
1371 for ac_arg
1372 do
1373 case $ac_arg in
1374 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1376 | -silent | --silent | --silen | --sile | --sil)
1377 continue ;;
1378 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1379 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1380 esac
1381 case $ac_pass in
1382 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1383 2)
1384 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1385 if test $ac_must_keep_next = true; then
1386 ac_must_keep_next=false # Got value, back to normal.
1387 else
1388 case $ac_arg in
1389 *=* | --config-cache | -C | -disable-* | --disable-* \
1390 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1391 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1392 | -with-* | --with-* | -without-* | --without-* | --x)
1393 case "$ac_configure_args0 " in
1394 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1395 esac
1396 ;;
1397 -* ) ac_must_keep_next=true ;;
1398 esac
1399 fi
1400 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1401 # Get rid of the leading space.
1402 ac_sep=" "
1403 ;;
1404 esac
1405 done
1406 done
1407 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1408 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1409
1410 # When interrupted or exit'd, cleanup temporary files, and complete
1411 # config.log. We remove comments because anyway the quotes in there
1412 # would cause problems or look ugly.
1413 # WARNING: Be sure not to use single quotes in there, as some shells,
1414 # such as our DU 5.0 friend, will then `close' the trap.
1415 trap 'exit_status=$?
1416 # Save into config.log some information that might help in debugging.
1417 {
1418 echo
1419
1420 cat <<\_ASBOX
1421 ## ---------------- ##
1422 ## Cache variables. ##
1423 ## ---------------- ##
1424 _ASBOX
1425 echo
1426 # The following way of writing the cache mishandles newlines in values,
1427 {
1428 (set) 2>&1 |
1429 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1430 *ac_space=\ *)
1431 sed -n \
1432 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1434 ;;
1435 *)
1436 sed -n \
1437 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1438 ;;
1439 esac;
1440 }
1441 echo
1442
1443 cat <<\_ASBOX
1444 ## ----------------- ##
1445 ## Output variables. ##
1446 ## ----------------- ##
1447 _ASBOX
1448 echo
1449 for ac_var in $ac_subst_vars
1450 do
1451 eval ac_val=$`echo $ac_var`
1452 echo "$ac_var='"'"'$ac_val'"'"'"
1453 done | sort
1454 echo
1455
1456 if test -n "$ac_subst_files"; then
1457 cat <<\_ASBOX
1458 ## ------------- ##
1459 ## Output files. ##
1460 ## ------------- ##
1461 _ASBOX
1462 echo
1463 for ac_var in $ac_subst_files
1464 do
1465 eval ac_val=$`echo $ac_var`
1466 echo "$ac_var='"'"'$ac_val'"'"'"
1467 done | sort
1468 echo
1469 fi
1470
1471 if test -s confdefs.h; then
1472 cat <<\_ASBOX
1473 ## ----------- ##
1474 ## confdefs.h. ##
1475 ## ----------- ##
1476 _ASBOX
1477 echo
1478 sed "/^$/d" confdefs.h | sort
1479 echo
1480 fi
1481 test "$ac_signal" != 0 &&
1482 echo "$as_me: caught signal $ac_signal"
1483 echo "$as_me: exit $exit_status"
1484 } >&5
1485 rm -f core *.core &&
1486 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1487 exit $exit_status
1488 ' 0
1489 for ac_signal in 1 2 13 15; do
1490 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1491 done
1492 ac_signal=0
1493
1494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1495 rm -rf conftest* confdefs.h
1496 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1497 echo >confdefs.h
1498
1499 # Predefined preprocessor variables.
1500
1501 cat >>confdefs.h <<_ACEOF
1502 #define PACKAGE_NAME "$PACKAGE_NAME"
1503 _ACEOF
1504
1505
1506 cat >>confdefs.h <<_ACEOF
1507 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1508 _ACEOF
1509
1510
1511 cat >>confdefs.h <<_ACEOF
1512 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1513 _ACEOF
1514
1515
1516 cat >>confdefs.h <<_ACEOF
1517 #define PACKAGE_STRING "$PACKAGE_STRING"
1518 _ACEOF
1519
1520
1521 cat >>confdefs.h <<_ACEOF
1522 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1523 _ACEOF
1524
1525
1526 # Let the site file select an alternate cache file if it wants to.
1527 # Prefer explicitly selected file to automatically selected ones.
1528 if test -z "$CONFIG_SITE"; then
1529 if test "x$prefix" != xNONE; then
1530 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1531 else
1532 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1533 fi
1534 fi
1535 for ac_site_file in $CONFIG_SITE; do
1536 if test -r "$ac_site_file"; then
1537 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1538 echo "$as_me: loading site script $ac_site_file" >&6;}
1539 sed 's/^/| /' "$ac_site_file" >&5
1540 . "$ac_site_file"
1541 fi
1542 done
1543
1544 if test -r "$cache_file"; then
1545 # Some versions of bash will fail to source /dev/null (special
1546 # files actually), so we avoid doing that.
1547 if test -f "$cache_file"; then
1548 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1549 echo "$as_me: loading cache $cache_file" >&6;}
1550 case $cache_file in
1551 [\\/]* | ?:[\\/]* ) . $cache_file;;
1552 *) . ./$cache_file;;
1553 esac
1554 fi
1555 else
1556 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1557 echo "$as_me: creating cache $cache_file" >&6;}
1558 >$cache_file
1559 fi
1560
1561 # Check that the precious variables saved in the cache have kept the same
1562 # value.
1563 ac_cache_corrupted=false
1564 for ac_var in `(set) 2>&1 |
1565 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1566 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1567 eval ac_new_set=\$ac_env_${ac_var}_set
1568 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1569 eval ac_new_val="\$ac_env_${ac_var}_value"
1570 case $ac_old_set,$ac_new_set in
1571 set,)
1572 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1573 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1574 ac_cache_corrupted=: ;;
1575 ,set)
1576 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1577 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1578 ac_cache_corrupted=: ;;
1579 ,);;
1580 *)
1581 if test "x$ac_old_val" != "x$ac_new_val"; then
1582 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1583 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1584 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1585 echo "$as_me: former value: $ac_old_val" >&2;}
1586 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1587 echo "$as_me: current value: $ac_new_val" >&2;}
1588 ac_cache_corrupted=:
1589 fi;;
1590 esac
1591 # Pass precious variables to config.status.
1592 if test "$ac_new_set" = set; then
1593 case $ac_new_val in
1594 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1595 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1596 *) ac_arg=$ac_var=$ac_new_val ;;
1597 esac
1598 case " $ac_configure_args " in
1599 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1600 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1601 esac
1602 fi
1603 done
1604 if $ac_cache_corrupted; then
1605 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1606 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1607 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1608 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1609 { (exit 1); exit 1; }; }
1610 fi
1611
1612 ac_ext=c
1613 ac_cpp='$CPP $CPPFLAGS'
1614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647 # List one file in the package so that the configure script can test
1648 # whether the package is actually there
1649
1650
1651 # Where should everything be installed by default? Here, we want it
1652 # to be installed directly in 'bin', 'lib', 'include' subdirectories
1653 # of the directory where configure is run. The default would be
1654 # /usr/local.
1655
1656
1657 #############################################################################
1658 # Standard build tool stuff #
1659 #############################################################################
1660
1661 # Get the system type
1662 ac_aux_dir=
1663 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1664 if test -f $ac_dir/install-sh; then
1665 ac_aux_dir=$ac_dir
1666 ac_install_sh="$ac_aux_dir/install-sh -c"
1667 break
1668 elif test -f $ac_dir/install.sh; then
1669 ac_aux_dir=$ac_dir
1670 ac_install_sh="$ac_aux_dir/install.sh -c"
1671 break
1672 elif test -f $ac_dir/shtool; then
1673 ac_aux_dir=$ac_dir
1674 ac_install_sh="$ac_aux_dir/shtool install -c"
1675 break
1676 fi
1677 done
1678 if test -z "$ac_aux_dir"; then
1679 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1680 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1681 { (exit 1); exit 1; }; }
1682 fi
1683 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1684 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1685 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1686
1687 # Make sure we can run config.sub.
1688 $ac_config_sub sun4 >/dev/null 2>&1 ||
1689 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1690 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1691 { (exit 1); exit 1; }; }
1692
1693 echo "$as_me:$LINENO: checking build system type" >&5
1694 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1695 if test "${ac_cv_build+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698 ac_cv_build_alias=$build_alias
1699 test -z "$ac_cv_build_alias" &&
1700 ac_cv_build_alias=`$ac_config_guess`
1701 test -z "$ac_cv_build_alias" &&
1702 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1703 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1704 { (exit 1); exit 1; }; }
1705 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1706 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1707 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1708 { (exit 1); exit 1; }; }
1709
1710 fi
1711 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1712 echo "${ECHO_T}$ac_cv_build" >&6
1713 build=$ac_cv_build
1714 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1715 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1716 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1717
1718
1719
1720 # A bit of initial setup
1721
1722 # As backup, we make sure we don't loose an FLIBS if it has been set
1723 # by the user
1724 save_FLIBS="$FLIBS"
1725
1726 # A useful makefile conditional that is always false
1727
1728
1729 if false; then
1730 ALWAYS_FALSE_TRUE=
1731 ALWAYS_FALSE_FALSE='#'
1732 else
1733 ALWAYS_FALSE_TRUE='#'
1734 ALWAYS_FALSE_FALSE=
1735 fi
1736
1737
1738 # We set the following variable so that we know later in AC_COIN_FINALIZE
1739 # that we are in a project main directory
1740 coin_projectdir=yes
1741
1742 # Set the project's version numbers
1743
1744
1745 cat >>confdefs.h <<_ACEOF
1746 #define OSI_VERSION "$PACKAGE_VERSION"
1747 _ACEOF
1748
1749
1750 coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1751 coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1752 coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1753 if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1754 if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1755 if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1756
1757 cat >>confdefs.h <<_ACEOF
1758 #define OSI_VERSION_MAJOR $coin_majorver
1759 _ACEOF
1760
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define OSI_VERSION_MINOR $coin_minorver
1764 _ACEOF
1765
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define OSI_VERSION_RELEASE $coin_releasever
1769 _ACEOF
1770
1771
1772 # We use the following variable to have a string with the upper case
1773 # version of the project name
1774 COIN_PRJCT=OSI
1775
1776 # Set the project's SVN revision number. The complicated sed expression
1777 # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1778 # as a single number.
1779 # Extract the first word of "svnversion", so it can be a program name with args.
1780 set dummy svnversion; ac_word=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_have_svnversion+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 else
1786 if test -n "$have_svnversion"; then
1787 ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1788 else
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1791 do
1792 IFS=$as_save_IFS
1793 test -z "$as_dir" && as_dir=.
1794 for ac_exec_ext in '' $ac_executable_extensions; do
1795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796 ac_cv_prog_have_svnversion="yes"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 break 2
1799 fi
1800 done
1801 done
1802
1803 test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1804 fi
1805 fi
1806 have_svnversion=$ac_cv_prog_have_svnversion
1807 if test -n "$have_svnversion"; then
1808 echo "$as_me:$LINENO: result: $have_svnversion" >&5
1809 echo "${ECHO_T}$have_svnversion" >&6
1810 else
1811 echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1813 fi
1814
1815 if test "x$have_svnversion" = xyes; then
1816
1817 svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1818 if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1819 OSI_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define OSI_SVN_REV $OSI_SVN_REV
1823 _ACEOF
1824
1825 fi
1826 fi
1827
1828
1829
1830 # Capture libtool library version, if given.
1831 coin_libversion=14:11:13
1832
1833
1834
1835 # Check if user wants to produce debugging code
1836
1837 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1838 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1839
1840 # Check whether --enable-debug or --disable-debug was given.
1841 if test "${enable_debug+set}" = set; then
1842 enableval="$enable_debug"
1843 case "${enableval}" in
1844 yes) coin_debug_compile=true
1845 if test "${enable_shared+set}" = set; then :; else
1846 enable_shared=no
1847 fi
1848 ;;
1849 no) coin_debug_compile=false
1850 ;;
1851 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1852 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1853 { (exit 1); exit 1; }; }
1854 ;;
1855 esac
1856 else
1857 coin_debug_compile=false
1858 fi;
1859
1860 # Check whether --enable-debug-osi or --disable-debug-osi was given.
1861 if test "${enable_debug_osi+set}" = set; then
1862 enableval="$enable_debug_osi"
1863 case "${enableval}" in
1864 yes) coin_debug_compile=true
1865 ;;
1866 no) coin_debug_compile=false
1867 ;;
1868 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-osi" >&5
1869 echo "$as_me: error: bad value ${enableval} for --enable-debug-osi" >&2;}
1870 { (exit 1); exit 1; }; }
1871 ;;
1872 esac
1873 else
1874 :
1875 fi;
1876
1877 # m4_ifvaln([Osi],
1878
1879 if test $coin_debug_compile = true; then
1880 echo "$as_me:$LINENO: result: yes" >&5
1881 echo "${ECHO_T}yes" >&6
1882 else
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885 fi
1886
1887
1888 # Check whether --with-osi-verbosity or --without-osi-verbosity was given.
1889 if test "${with_osi_verbosity+set}" = set; then
1890 withval="$with_osi_verbosity"
1891 if test "$withval" = yes; then
1892 withval=1
1893 fi
1894 coin_osi_verbosity=$withval
1895 else
1896 coin_osi_verbosity=0
1897 fi;
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define COIN_OSI_VERBOSITY $coin_osi_verbosity
1901 _ACEOF
1902
1903
1904
1905 # Check whether --with-osi-checklevel or --without-osi-checklevel was given.
1906 if test "${with_osi_checklevel+set}" = set; then
1907 withval="$with_osi_checklevel"
1908 if test "$withval" = yes; then
1909 withval=1
1910 fi
1911 coin_osi_checklevel=$withval
1912 else
1913 coin_osi_checklevel=0
1914 fi;
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define COIN_OSI_CHECKLEVEL $coin_osi_checklevel
1918 _ACEOF
1919
1920
1921 # m4_ifvaln([Osi],
1922
1923
1924
1925 # Get the name of the C++ compiler and appropriate compiler options
1926
1927
1928 # for backward compatibility
1929 # Check whether --enable-doscompile or --disable-doscompile was given.
1930 if test "${enable_doscompile+set}" = set; then
1931 enableval="$enable_doscompile"
1932 enable_doscompile=$enableval
1933 else
1934 enable_doscompile=no
1935 fi;
1936
1937 # Check whether --enable-msvc or --disable-msvc was given.
1938 if test "${enable_msvc+set}" = set; then
1939 enableval="$enable_msvc"
1940 enable_msvc=$enableval
1941 else
1942 enable_msvc=no
1943 if test "$enable_doscompile" = msvc ; then
1944 enable_msvc=yes
1945 elif test "$enable_doscompile" != no ; then
1946 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1947 echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1948 { (exit 1); exit 1; }; }
1949 fi
1950
1951 fi;
1952
1953 if test "$enable_msvc" = MD; then
1954 enable_shared=yes
1955 enable_msvc=yes
1956 fi
1957
1958 if test "$enable_msvc" = yes; then
1959 case $build in
1960 *-cygwin* | *-mingw*) ;;
1961 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1962 echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1963 { (exit 1); exit 1; }; } ;;
1964 esac
1965 fi
1966
1967
1968
1969 ac_ext=c
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974
1975
1976 # For consistency, we set the C compiler to the same value of the C++
1977 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1978 if test x"$CXX" != x; then
1979 case "$CXX" in
1980 clang* | */clang* ) ;;
1981 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1982 if test x"$CC" = x; then
1983 CC="$CXX"
1984 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1985 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1986 fi
1987 ;;
1988 esac
1989 fi
1990
1991
1992
1993
1994
1995
1996 coin_has_cc=yes
1997
1998 save_cflags="$CFLAGS"
1999
2000 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2001 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
2002 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
2003 # compiler. In this case, put cc after gcc.
2004
2005 case $build in
2006 *-cygwin* | *-mingw*)
2007 if test "$enable_msvc" = yes ; then
2008 comps="icl cl gcc"
2009 else
2010 comps="gcc icl cl"
2011 fi ;;
2012 *-*-solaris*)
2013 # Extract the first word of "cc", so it can be a program name with args.
2014 set dummy cc; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 if test -n "$sol_cc_compiler"; then
2021 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2022 else
2023 ac_prog_rejected=no
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2032 ac_prog_rejected=yes
2033 continue
2034 fi
2035 ac_cv_prog_sol_cc_compiler="cc"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 break 2
2038 fi
2039 done
2040 done
2041
2042 if test $ac_prog_rejected = yes; then
2043 # We found a bogon in the path, so make sure we never use it.
2044 set dummy $ac_cv_prog_sol_cc_compiler
2045 shift
2046 if test $# != 0; then
2047 # We chose a different compiler from the bogus one.
2048 # However, it has the same basename, so the bogon will be chosen
2049 # first if we set sol_cc_compiler to just the basename; use the full file name.
2050 shift
2051 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2052 fi
2053 fi
2054 fi
2055 fi
2056 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2057 if test -n "$sol_cc_compiler"; then
2058 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2059 echo "${ECHO_T}$sol_cc_compiler" >&6
2060 else
2061 echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2063 fi
2064
2065 if test "$sol_cc_compiler" = "cc" ; then
2066 comps="cc xlc gcc pgcc icc"
2067 else
2068 comps="xlc gcc pgcc icc cc"
2069 fi
2070 ;;
2071 *-*-darwin*) comps="clang gcc cc" ;;
2072 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2073 *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2074 *) comps="xlc_r xlc cc gcc pgcc icc" ;;
2075 esac
2076
2077 # We delete the cached value, since the test might not have been
2078 # performed with our choice of compilers earlier
2079 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2080 # AC_MSG_NOTICE([C compiler candidates: $comps])
2081 ac_ext=c
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086 if test -n "$ac_tool_prefix"; then
2087 for ac_prog in $comps
2088 do
2089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 break 2
2109 fi
2110 done
2111 done
2112
2113 fi
2114 fi
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2122 fi
2123
2124 test -n "$CC" && break
2125 done
2126 fi
2127 if test -z "$CC"; then
2128 ac_ct_CC=$CC
2129 for ac_prog in $comps
2130 do
2131 # Extract the first word of "$ac_prog", so it can be a program name with args.
2132 set dummy $ac_prog; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 if test -n "$ac_ct_CC"; then
2139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_ac_ct_CC="$ac_prog"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2151 fi
2152 done
2153 done
2154
2155 fi
2156 fi
2157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158 if test -n "$ac_ct_CC"; then
2159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160 echo "${ECHO_T}$ac_ct_CC" >&6
2161 else
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2164 fi
2165
2166 test -n "$ac_ct_CC" && break
2167 done
2168
2169 CC=$ac_ct_CC
2170 fi
2171
2172
2173 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: no acceptable C compiler found in \$PATH
2176 See \`config.log' for more details." >&2;}
2177 { (exit 1); exit 1; }; }
2178
2179 # Provide some information about the compiler.
2180 echo "$as_me:$LINENO:" \
2181 "checking for C compiler version" >&5
2182 ac_compiler=`set X $ac_compile; echo $2`
2183 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2184 (eval $ac_compiler --version </dev/null >&5) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }
2188 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2189 (eval $ac_compiler -v </dev/null >&5) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }
2193 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2194 (eval $ac_compiler -V </dev/null >&5) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }
2198
2199 cat >conftest.$ac_ext <<_ACEOF
2200 /* confdefs.h. */
2201 _ACEOF
2202 cat confdefs.h >>conftest.$ac_ext
2203 cat >>conftest.$ac_ext <<_ACEOF
2204 /* end confdefs.h. */
2205
2206 int
2207 main ()
2208 {
2209
2210 ;
2211 return 0;
2212 }
2213 _ACEOF
2214 ac_clean_files_save=$ac_clean_files
2215 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2216 # Try to create an executable without -o first, disregard a.out.
2217 # It will help us diagnose broken compilers, and finding out an intuition
2218 # of exeext.
2219 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2220 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2221 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2222 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2223 (eval $ac_link_default) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; then
2227 # Find the output, starting from the most likely. This scheme is
2228 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2229 # resort.
2230
2231 # Be careful to initialize this variable, since it used to be cached.
2232 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2233 ac_cv_exeext=
2234 # b.out is created by i960 compilers.
2235 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2236 do
2237 test -f "$ac_file" || continue
2238 case $ac_file in
2239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2240 ;;
2241 conftest.$ac_ext )
2242 # This is the source file.
2243 ;;
2244 [ab].out )
2245 # We found the default executable, but exeext='' is most
2246 # certainly right.
2247 break;;
2248 *.* )
2249 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2250 # FIXME: I believe we export ac_cv_exeext for Libtool,
2251 # but it would be cool to find out if it's true. Does anybody
2252 # maintain Libtool? --akim.
2253 export ac_cv_exeext
2254 break;;
2255 * )
2256 break;;
2257 esac
2258 done
2259 else
2260 echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2262
2263 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: C compiler cannot create executables
2266 See \`config.log' for more details." >&2;}
2267 { (exit 77); exit 77; }; }
2268 fi
2269
2270 ac_exeext=$ac_cv_exeext
2271 echo "$as_me:$LINENO: result: $ac_file" >&5
2272 echo "${ECHO_T}$ac_file" >&6
2273
2274 # Check the compiler produces executables we can run. If not, either
2275 # the compiler is broken, or we cross compile.
2276 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2277 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2278 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2279 # If not cross compiling, check that we can run a simple program.
2280 if test "$cross_compiling" != yes; then
2281 if { ac_try='./$ac_file'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 cross_compiling=no
2288 else
2289 if test "$cross_compiling" = maybe; then
2290 cross_compiling=yes
2291 else
2292 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2293 If you meant to cross compile, use \`--host'.
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: cannot run C compiled programs.
2296 If you meant to cross compile, use \`--host'.
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2299 fi
2300 fi
2301 fi
2302 echo "$as_me:$LINENO: result: yes" >&5
2303 echo "${ECHO_T}yes" >&6
2304
2305 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2306 ac_clean_files=$ac_clean_files_save
2307 # Check the compiler produces executables we can run. If not, either
2308 # the compiler is broken, or we cross compile.
2309 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2310 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2311 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2312 echo "${ECHO_T}$cross_compiling" >&6
2313
2314 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2315 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2317 (eval $ac_link) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; then
2321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2322 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2323 # work properly (i.e., refer to `conftest.exe'), while it won't with
2324 # `rm'.
2325 for ac_file in conftest.exe conftest conftest.*; do
2326 test -f "$ac_file" || continue
2327 case $ac_file in
2328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2330 export ac_cv_exeext
2331 break;;
2332 * ) break;;
2333 esac
2334 done
2335 else
2336 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2339 See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }
2341 fi
2342
2343 rm -f conftest$ac_cv_exeext
2344 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2345 echo "${ECHO_T}$ac_cv_exeext" >&6
2346
2347 rm -f conftest.$ac_ext
2348 EXEEXT=$ac_cv_exeext
2349 ac_exeext=$EXEEXT
2350 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2351 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2352 if test "${ac_cv_objext+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2361
2362 int
2363 main ()
2364 {
2365
2366 ;
2367 return 0;
2368 }
2369 _ACEOF
2370 rm -f conftest.o conftest.obj
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; then
2376 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2377 case $ac_file in
2378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2379 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2380 break;;
2381 esac
2382 done
2383 else
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2386
2387 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2388 See \`config.log' for more details." >&5
2389 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&2;}
2391 { (exit 1); exit 1; }; }
2392 fi
2393
2394 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2395 fi
2396 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2397 echo "${ECHO_T}$ac_cv_objext" >&6
2398 OBJEXT=$ac_cv_objext
2399 ac_objext=$OBJEXT
2400 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2401 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2402 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405 cat >conftest.$ac_ext <<_ACEOF
2406 /* confdefs.h. */
2407 _ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h. */
2411
2412 int
2413 main ()
2414 {
2415 #ifndef __GNUC__
2416 choke me
2417 #endif
2418
2419 ;
2420 return 0;
2421 }
2422 _ACEOF
2423 rm -f conftest.$ac_objext
2424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425 (eval $ac_compile) 2>conftest.er1
2426 ac_status=$?
2427 grep -v '^ *+' conftest.er1 >conftest.err
2428 rm -f conftest.er1
2429 cat conftest.err >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); } &&
2432 { ac_try='test -z "$ac_c_werror_flag"
2433 || test ! -s conftest.err'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 (eval $ac_try) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2445 ac_compiler_gnu=yes
2446 else
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2449
2450 ac_compiler_gnu=no
2451 fi
2452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2454
2455 fi
2456 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2457 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2458 GCC=`test $ac_compiler_gnu = yes && echo yes`
2459 ac_test_CFLAGS=${CFLAGS+set}
2460 ac_save_CFLAGS=$CFLAGS
2461 CFLAGS="-g"
2462 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2463 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2464 if test "${ac_cv_prog_cc_g+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467 cat >conftest.$ac_ext <<_ACEOF
2468 /* confdefs.h. */
2469 _ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h. */
2473
2474 int
2475 main ()
2476 {
2477
2478 ;
2479 return 0;
2480 }
2481 _ACEOF
2482 rm -f conftest.$ac_objext
2483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484 (eval $ac_compile) 2>conftest.er1
2485 ac_status=$?
2486 grep -v '^ *+' conftest.er1 >conftest.err
2487 rm -f conftest.er1
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } &&
2491 { ac_try='test -z "$ac_c_werror_flag"
2492 || test ! -s conftest.err'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 (eval $ac_try) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; } &&
2498 { ac_try='test -s conftest.$ac_objext'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 (eval $ac_try) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; }; then
2504 ac_cv_prog_cc_g=yes
2505 else
2506 echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2508
2509 ac_cv_prog_cc_g=no
2510 fi
2511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2512 fi
2513 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2514 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2515 if test "$ac_test_CFLAGS" = set; then
2516 CFLAGS=$ac_save_CFLAGS
2517 elif test $ac_cv_prog_cc_g = yes; then
2518 if test "$GCC" = yes; then
2519 CFLAGS="-g -O2"
2520 else
2521 CFLAGS="-g"
2522 fi
2523 else
2524 if test "$GCC" = yes; then
2525 CFLAGS="-O2"
2526 else
2527 CFLAGS=
2528 fi
2529 fi
2530 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2531 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2532 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 ac_cv_prog_cc_stdc=no
2536 ac_save_CC=$CC
2537 cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h. */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2543 #include <stdarg.h>
2544 #include <stdio.h>
2545 #include <sys/types.h>
2546 #include <sys/stat.h>
2547 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2548 struct buf { int x; };
2549 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2550 static char *e (p, i)
2551 char **p;
2552 int i;
2553 {
2554 return p[i];
2555 }
2556 static char *f (char * (*g) (char **, int), char **p, ...)
2557 {
2558 char *s;
2559 va_list v;
2560 va_start (v,p);
2561 s = g (p, va_arg (v,int));
2562 va_end (v);
2563 return s;
2564 }
2565
2566 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2567 function prototypes and stuff, but not '\xHH' hex character constants.
2568 These don't provoke an error unfortunately, instead are silently treated
2569 as 'x'. The following induces an error, until -std1 is added to get
2570 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2571 array size at least. It's necessary to write '\x00'==0 to get something
2572 that's true only with -std1. */
2573 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2574
2575 int test (int i, double x);
2576 struct s1 {int (*f) (int a);};
2577 struct s2 {int (*f) (double a);};
2578 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2579 int argc;
2580 char **argv;
2581 int
2582 main ()
2583 {
2584 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2585 ;
2586 return 0;
2587 }
2588 _ACEOF
2589 # Don't try gcc -ansi; that turns off useful extensions and
2590 # breaks some systems' header files.
2591 # AIX -qlanglvl=ansi
2592 # Ultrix and OSF/1 -std1
2593 # HP-UX 10.20 and later -Ae
2594 # HP-UX older versions -Aa -D_HPUX_SOURCE
2595 # SVR4 -Xc -D__EXTENSIONS__
2596 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2597 do
2598 CC="$ac_save_CC $ac_arg"
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2602 ac_status=$?
2603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 ac_cv_prog_cc_stdc=$ac_arg
2622 break
2623 else
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 fi
2628 rm -f conftest.err conftest.$ac_objext
2629 done
2630 rm -f conftest.$ac_ext conftest.$ac_objext
2631 CC=$ac_save_CC
2632
2633 fi
2634
2635 case "x$ac_cv_prog_cc_stdc" in
2636 x|xno)
2637 echo "$as_me:$LINENO: result: none needed" >&5
2638 echo "${ECHO_T}none needed" >&6 ;;
2639 *)
2640 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2641 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2642 CC="$CC $ac_cv_prog_cc_stdc" ;;
2643 esac
2644
2645 # Some people use a C++ compiler to compile C. Since we use `exit',
2646 # in C++ we need to declare it. In case someone uses the same compiler
2647 # for both compiling C and C++ we need to have the C++ compiler decide
2648 # the declaration of exit, since it's the most demanding environment.
2649 cat >conftest.$ac_ext <<_ACEOF
2650 #ifndef __cplusplus
2651 choke me
2652 #endif
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>conftest.er1
2657 ac_status=$?
2658 grep -v '^ *+' conftest.er1 >conftest.err
2659 rm -f conftest.er1
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try='test -z "$ac_c_werror_flag"
2664 || test ! -s conftest.err'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 (eval $ac_try) 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; } &&
2670 { ac_try='test -s conftest.$ac_objext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2676 for ac_declaration in \
2677 '' \
2678 'extern "C" void std::exit (int) throw (); using std::exit;' \
2679 'extern "C" void std::exit (int); using std::exit;' \
2680 'extern "C" void exit (int) throw ();' \
2681 'extern "C" void exit (int);' \
2682 'void exit (int);'
2683 do
2684 cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h. */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2690 $ac_declaration
2691 #include <stdlib.h>
2692 int
2693 main ()
2694 {
2695 exit (42);
2696 ;
2697 return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2703 ac_status=$?
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_c_werror_flag"
2710 || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 (eval $ac_try) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 :
2723 else
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 continue
2728 fi
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 cat >conftest.$ac_ext <<_ACEOF
2731 /* confdefs.h. */
2732 _ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2736 $ac_declaration
2737 int
2738 main ()
2739 {
2740 exit (42);
2741 ;
2742 return 0;
2743 }
2744 _ACEOF
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>conftest.er1
2748 ac_status=$?
2749 grep -v '^ *+' conftest.er1 >conftest.err
2750 rm -f conftest.er1
2751 cat conftest.err >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
2754 { ac_try='test -z "$ac_c_werror_flag"
2755 || test ! -s conftest.err'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 (eval $ac_try) 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; } &&
2761 { ac_try='test -s conftest.$ac_objext'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 (eval $ac_try) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; }; then
2767 break
2768 else
2769 echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2771
2772 fi
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 done
2775 rm -f conftest*
2776 if test -n "$ac_declaration"; then
2777 echo '#ifdef __cplusplus' >>confdefs.h
2778 echo $ac_declaration >>confdefs.h
2779 echo '#endif' >>confdefs.h
2780 fi
2781
2782 else
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785
2786 fi
2787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2788 ac_ext=c
2789 ac_cpp='$CPP $CPPFLAGS'
2790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793
2794 if test -z "$CC" ; then
2795 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2796 echo "$as_me: error: Failed to find a C compiler!" >&2;}
2797 { (exit 1); exit 1; }; }
2798 fi
2799 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2800 case "$CC" in
2801 clang* | */clang* ) ;;
2802 cl* | */cl* | CL* | */CL* )
2803 if test "$ac_cv_prog_cc_g" = yes ; then
2804 ac_cv_prog_cc_g=no
2805 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2806 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2807 fi ;;
2808 * )
2809 if test x"$CYGPATH_W" = x ; then
2810 CYGPATH_W=echo
2811 fi
2812 ;;
2813 esac
2814 CFLAGS="$save_cflags"
2815
2816 # add automake conditional so we can recognize cl compiler in makefile
2817 coin_cc_is_cl=false
2818 case "$CC" in
2819 clang* | */clang* ) ;;
2820 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2821 coin_cc_is_cl=true
2822 ;;
2823 esac
2824
2825
2826 if test $coin_cc_is_cl = true; then
2827 COIN_CC_IS_CL_TRUE=
2828 COIN_CC_IS_CL_FALSE='#'
2829 else
2830 COIN_CC_IS_CL_TRUE='#'
2831 COIN_CC_IS_CL_FALSE=
2832 fi
2833
2834
2835 # Check if a project specific CFLAGS variable has been set
2836 if test x$COIN_PRJCT != x; then
2837 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2838 if test x$coin_tmp = xset; then
2839 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2840 fi
2841 fi
2842
2843 if test x"$CFLAGS" = x; then
2844
2845 coin_add_cflags=
2846 coin_opt_cflags=
2847 coin_dbg_cflags=
2848 coin_warn_cflags=
2849
2850 if test "$GCC" = "yes"; then
2851 case "$CC" in
2852 icc* | */icc*)
2853 ;;
2854 *)
2855 coin_opt_cflags="-O3"
2856 coin_add_cflags="-pipe"
2857 coin_dbg_cflags="-g -O0"
2858 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2859 esac
2860 fi
2861 if test -z "$coin_opt_cflags"; then
2862 case $build in
2863 *-cygwin* | *-mingw*)
2864 case "$CC" in
2865 clang* | */clang* ) ;;
2866 cl* | */cl* | CL* | */CL*)
2867 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2868 coin_opt_cflags='-MD -O2'
2869 coin_dbg_cflags='-MDd'
2870 else
2871 coin_opt_cflags='-MT -O2'
2872 coin_dbg_cflags='-MTd'
2873 fi
2874 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2875 ;;
2876 icl* | */icl* | ICL* | */ICL*)
2877 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2878 coin_opt_cflags='-MD -Ox'
2879 coin_dbg_cflags='-MDd -debug'
2880 else
2881 coin_opt_cflags='-MT -Ox'
2882 coin_dbg_cflags='-MTd -debug'
2883 fi
2884 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2885 ;;
2886 esac
2887 ;;
2888 *-linux-*)
2889 case "$CC" in
2890 icc* | */icc*)
2891 coin_opt_cflags="-O3 -ip -mp1"
2892 coin_add_cflags=""
2893 coin_dbg_cflags="-g"
2894 # Check if -i_dynamic is necessary (for new glibc library)
2895 CFLAGS=
2896 cat >conftest.$ac_ext <<_ACEOF
2897 /* confdefs.h. */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2902
2903 int
2904 main ()
2905 {
2906 int i=0; i++;
2907 ;
2908 return 0;
2909 }
2910 _ACEOF
2911 rm -f conftest.$ac_objext conftest$ac_exeext
2912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2913 (eval $ac_link) 2>conftest.er1
2914 ac_status=$?
2915 grep -v '^ *+' conftest.er1 >conftest.err
2916 rm -f conftest.er1
2917 cat conftest.err >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } &&
2920 { ac_try='test -z "$ac_c_werror_flag"
2921 || test ! -s conftest.err'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 (eval $ac_try) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; } &&
2927 { ac_try='test -s conftest$ac_exeext'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 (eval $ac_try) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; }; then
2933 :
2934 else
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2937
2938 coin_add_cflags="-i_dynamic $coin_add_cflags"
2939 fi
2940 rm -f conftest.err conftest.$ac_objext \
2941 conftest$ac_exeext conftest.$ac_ext
2942 ;;
2943 pgcc* | */pgcc*)
2944 coin_opt_cflags="-fast"
2945 coin_add_cflags="-Kieee -pc 64"
2946 coin_dbg_cflags="-g"
2947 ;;
2948 esac
2949 ;;
2950 *-ibm-*)
2951 case "$CC" in
2952 xlc* | */xlc* | mpxlc* | */mpxlc*)
2953 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2954 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2955 coin_dbg_cflags="-g"
2956 ;;
2957 esac
2958 ;;
2959 *-hp-*)
2960 coin_opt_cflags="-O"
2961 coin_add_cflags="-Ae"
2962 coin_dbg_cflags="-g"
2963 ;;
2964 *-*-solaris*)
2965 coin_opt_cflags="-xO4"
2966 coin_dbg_cflags="-g"
2967 ;;
2968 *-sgi-*)
2969 coin_opt_cflags="-O -OPT:Olimit=0"
2970 coin_dbg_cflags="-g"
2971 ;;
2972 esac
2973 fi
2974
2975 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2976 coin_dbg_cflags="-g"
2977 fi
2978
2979 if test -z "$coin_opt_cflags"; then
2980 # Try if -O option works if nothing else is set
2981 CFLAGS="-O"
2982 cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h. */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2988
2989 int
2990 main ()
2991 {
2992 int i=0; i++;
2993 ;
2994 return 0;
2995 }
2996 _ACEOF
2997 rm -f conftest.$ac_objext conftest$ac_exeext
2998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2999 (eval $ac_link) 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -z "$ac_c_werror_flag"
3007 || test ! -s conftest.err'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 (eval $ac_try) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; } &&
3013 { ac_try='test -s conftest$ac_exeext'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 (eval $ac_try) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 coin_opt_cflags="-O"
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024 fi
3025 rm -f conftest.err conftest.$ac_objext \
3026 conftest$ac_exeext conftest.$ac_ext
3027 fi
3028
3029 # if PM doesn't want the warning messages, take them out
3030 if test x"$coin_skip_warn_cflags" = xyes; then
3031 coin_warn_cflags=
3032 fi
3033
3034 if test x${DBG_CFLAGS+set} != xset; then
3035 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3036 fi
3037 if test x${OPT_CFLAGS+set} != xset; then
3038 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3039 fi
3040
3041 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3042 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3043
3044 if test "$coin_debug_compile" = "true"; then
3045 CFLAGS="$DBG_CFLAGS"
3046 else
3047 CFLAGS="$OPT_CFLAGS"
3048 fi
3049 else
3050 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3051 if test x${DBG_CFLAGS+set} != xset; then
3052 DBG_CFLAGS="$CFLAGS"
3053 fi
3054 if test x${OPT_CFLAGS+set} != xset; then
3055 OPT_CFLAGS="$CFLAGS"
3056 fi
3057 fi
3058
3059 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3060 if test x$COIN_PRJCT != x; then
3061 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3062 fi
3063
3064 # Try if CFLAGS works
3065 save_CFLAGS="$CFLAGS"
3066 cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h. */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3072
3073 int
3074 main ()
3075 {
3076 int i=0; i++;
3077 ;
3078 return 0;
3079 }
3080 _ACEOF
3081 rm -f conftest.$ac_objext conftest$ac_exeext
3082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3083 (eval $ac_link) 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_c_werror_flag"
3091 || test ! -s conftest.err'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; } &&
3097 { ac_try='test -s conftest$ac_exeext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 (eval $ac_try) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 :
3104 else
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 CFLAGS=
3109 fi
3110 rm -f conftest.err conftest.$ac_objext \
3111 conftest$ac_exeext conftest.$ac_ext
3112 if test -z "$CFLAGS"; then
3113 { 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
3114 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;}
3115 CFLAGS='-O'
3116 cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h. */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3122
3123 int
3124 main ()
3125 {
3126 int i=0; i++;
3127 ;
3128 return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.$ac_objext conftest$ac_exeext
3132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3133 (eval $ac_link) 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } &&
3140 { ac_try='test -z "$ac_c_werror_flag"
3141 || test ! -s conftest.err'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 (eval $ac_try) 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest$ac_exeext'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 (eval $ac_try) 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3153 :
3154 else
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 CFLAGS=
3159 fi
3160 rm -f conftest.err conftest.$ac_objext \
3161 conftest$ac_exeext conftest.$ac_ext
3162 if test -z "$CFLAGS"; then
3163 { 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
3164 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;}
3165 fi
3166 fi
3167
3168 { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3169 echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3170
3171
3172 if test x"$MPICC" = x; then :; else
3173 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3174 echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3175 CC="$MPICC"
3176 fi
3177
3178 # Correct the LD variable if we are using the MS or Intel-windows compiler
3179 case "$CC" in
3180 clang* | */clang* ) ;;
3181 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3182 LD=link
3183 ;;
3184 esac
3185
3186 ac_ext=c
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191
3192
3193
3194 #Let's try if that overcomes configuration problem with VC++ 6.0
3195
3196 ac_ext=cc
3197 ac_cpp='$CXXCPP $CPPFLAGS'
3198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3201
3202
3203
3204
3205
3206
3207
3208 coin_has_cxx=yes
3209
3210 save_cxxflags="$CXXFLAGS"
3211 # For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3212 case $build in
3213 *-cygwin* | *-mingw*)
3214 if test "$enable_msvc" = yes ; then
3215 comps="icl cl g++"
3216 else
3217 comps="g++ icl cl"
3218 fi ;;
3219 *-*-solaris*)
3220 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3221 *-darwin*) comps="clang++ g++ c++ CC" ;;
3222 *-linux-gnu*)
3223 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3224 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3225 esac
3226
3227 # We delete the cached value, since the test might not have been
3228 # performed with our choice of compilers earlier
3229 $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3230 # AC_MSG_NOTICE([C++ compiler candidates: $comps])
3231 ac_ext=cc
3232 ac_cpp='$CXXCPP $CPPFLAGS'
3233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3236 if test -n "$ac_tool_prefix"; then
3237 for ac_prog in $CCC $comps
3238 do
3239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3240 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3241 echo "$as_me:$LINENO: checking for $ac_word" >&5
3242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3243 if test "${ac_cv_prog_CXX+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 if test -n "$CXX"; then
3247 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3248 else
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 break 2
3259 fi
3260 done
3261 done
3262
3263 fi
3264 fi
3265 CXX=$ac_cv_prog_CXX
3266 if test -n "$CXX"; then
3267 echo "$as_me:$LINENO: result: $CXX" >&5
3268 echo "${ECHO_T}$CXX" >&6
3269 else
3270 echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3272 fi
3273
3274 test -n "$CXX" && break
3275 done
3276 fi
3277 if test -z "$CXX"; then
3278 ac_ct_CXX=$CXX
3279 for ac_prog in $CCC $comps
3280 do
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 if test -n "$ac_ct_CXX"; then
3289 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_ac_ct_CXX="$ac_prog"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3301 fi
3302 done
3303 done
3304
3305 fi
3306 fi
3307 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3308 if test -n "$ac_ct_CXX"; then
3309 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3310 echo "${ECHO_T}$ac_ct_CXX" >&6
3311 else
3312 echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3314 fi
3315
3316 test -n "$ac_ct_CXX" && break
3317 done
3318 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3319
3320 CXX=$ac_ct_CXX
3321 fi
3322
3323
3324 # Provide some information about the compiler.
3325 echo "$as_me:$LINENO:" \
3326 "checking for C++ compiler version" >&5
3327 ac_compiler=`set X $ac_compile; echo $2`
3328 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3329 (eval $ac_compiler --version </dev/null >&5) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }
3333 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3334 (eval $ac_compiler -v </dev/null >&5) 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }
3338 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3339 (eval $ac_compiler -V </dev/null >&5) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }
3343
3344 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3345 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3346 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h. */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3355
3356 int
3357 main ()
3358 {
3359 #ifndef __GNUC__
3360 choke me
3361 #endif
3362
3363 ;
3364 return 0;
3365 }
3366 _ACEOF
3367 rm -f conftest.$ac_objext
3368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369 (eval $ac_compile) 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -z "$ac_cxx_werror_flag"
3377 || test ! -s conftest.err'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 ac_compiler_gnu=yes
3390 else
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394 ac_compiler_gnu=no
3395 fi
3396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3397 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3398
3399 fi
3400 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3401 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3402 GXX=`test $ac_compiler_gnu = yes && echo yes`
3403 ac_test_CXXFLAGS=${CXXFLAGS+set}
3404 ac_save_CXXFLAGS=$CXXFLAGS
3405 CXXFLAGS="-g"
3406 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3407 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3408 if test "${ac_cv_prog_cxx_g+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h. */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3417
3418 int
3419 main ()
3420 {
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 rm -f conftest.$ac_objext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try='test -z "$ac_cxx_werror_flag"
3436 || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 ac_cv_prog_cxx_g=yes
3449 else
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453 ac_cv_prog_cxx_g=no
3454 fi
3455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456 fi
3457 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3458 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3459 if test "$ac_test_CXXFLAGS" = set; then
3460 CXXFLAGS=$ac_save_CXXFLAGS
3461 elif test $ac_cv_prog_cxx_g = yes; then
3462 if test "$GXX" = yes; then
3463 CXXFLAGS="-g -O2"
3464 else
3465 CXXFLAGS="-g"
3466 fi
3467 else
3468 if test "$GXX" = yes; then
3469 CXXFLAGS="-O2"
3470 else
3471 CXXFLAGS=
3472 fi
3473 fi
3474 for ac_declaration in \
3475 '' \
3476 'extern "C" void std::exit (int) throw (); using std::exit;' \
3477 'extern "C" void std::exit (int); using std::exit;' \
3478 'extern "C" void exit (int) throw ();' \
3479 'extern "C" void exit (int);' \
3480 'void exit (int);'
3481 do
3482 cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h. */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3488 $ac_declaration
3489 #include <stdlib.h>
3490 int
3491 main ()
3492 {
3493 exit (42);
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 rm -f conftest.$ac_objext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -z "$ac_cxx_werror_flag"
3508 || test ! -s conftest.err'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; } &&
3514 { ac_try='test -s conftest.$ac_objext'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 :
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 continue
3526 fi
3527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h. */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 $ac_declaration
3535 int
3536 main ()
3537 {
3538 exit (42);
3539 ;
3540 return 0;
3541 }
3542 _ACEOF
3543 rm -f conftest.$ac_objext
3544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545 (eval $ac_compile) 2>conftest.er1
3546 ac_status=$?
3547 grep -v '^ *+' conftest.er1 >conftest.err
3548 rm -f conftest.er1
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } &&
3552 { ac_try='test -z "$ac_cxx_werror_flag"
3553 || test ! -s conftest.err'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 (eval $ac_try) 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; } &&
3559 { ac_try='test -s conftest.$ac_objext'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; }; then
3565 break
3566 else
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570 fi
3571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3572 done
3573 rm -f conftest*
3574 if test -n "$ac_declaration"; then
3575 echo '#ifdef __cplusplus' >>confdefs.h
3576 echo $ac_declaration >>confdefs.h
3577 echo '#endif' >>confdefs.h
3578 fi
3579
3580 ac_ext=cc
3581 ac_cpp='$CXXCPP $CPPFLAGS'
3582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3585
3586
3587 #AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3588 #thus, we test here whether $CXX is actually working
3589 ac_ext=cc
3590 ac_cpp='$CXXCPP $CPPFLAGS'
3591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3594
3595 echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3596 echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603
3604 int
3605 main ()
3606 {
3607 int i=0;
3608 ;
3609 return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -z "$ac_cxx_werror_flag"
3622 || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 echo "$as_me:$LINENO: result: yes" >&5
3635 echo "${ECHO_T}yes" >&6
3636 else
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640 echo "$as_me:$LINENO: result: no" >&5
3641 echo "${ECHO_T}no" >&6
3642 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3643 echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3644 { (exit 1); exit 1; }; }
3645
3646 fi
3647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3648 ac_ext=cc
3649 ac_cpp='$CXXCPP $CPPFLAGS'
3650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3653
3654
3655 coin_cxx_is_cl=false
3656 # It seems that we need to cleanup something here for the Windows
3657 case "$CXX" in
3658 clang* | */clang*) ;;
3659 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3660 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3661 mv confdefs.hh confdefs.h
3662 coin_cxx_is_cl=true
3663 ;;
3664 esac
3665
3666 # add automake conditional so we can recognize cl compiler in makefile
3667
3668
3669 if test $coin_cxx_is_cl = true; then
3670 COIN_CXX_IS_CL_TRUE=
3671 COIN_CXX_IS_CL_FALSE='#'
3672 else
3673 COIN_CXX_IS_CL_TRUE='#'
3674 COIN_CXX_IS_CL_FALSE=
3675 fi
3676
3677
3678 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3679 case "$CXX" in
3680 clang* | */clang* ) ;;
3681 cl* | */cl* | CL* | */CL* )
3682 if test "$ac_cv_prog_cxx_g" = yes ; then
3683 ac_cv_prog_cxx_g=no
3684 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3685 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3686 fi ;;
3687 * )
3688 if test x"$CYGPATH_W" = x ; then
3689 CYGPATH_W=echo
3690 fi
3691 ;;
3692 esac
3693 CXXFLAGS="$save_cxxflags"
3694
3695 # Check if a project specific CXXFLAGS variable has been set
3696 if test x$COIN_PRJCT != x; then
3697 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3698 if test x$coin_tmp = xset; then
3699 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3700 fi
3701 fi
3702
3703 if test x"$CXXFLAGS" = x; then
3704
3705 # ToDo decide whether we want -DNDEBUG for optimization
3706 coin_add_cxxflags=
3707 coin_opt_cxxflags=
3708 coin_dbg_cxxflags=
3709 coin_warn_cxxflags=
3710
3711 if test "$GXX" = "yes"; then
3712 case "$CXX" in
3713 icpc* | */icpc*)
3714 ;;
3715 *)
3716 # ToDo decide about unroll-loops
3717 coin_opt_cxxflags="-O3"
3718 coin_add_cxxflags="-pipe"
3719 coin_dbg_cxxflags="-g -O0"
3720 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3721 esac
3722 fi
3723
3724 # Note that we do not need to cover GCC in the following tests.
3725
3726 if test -z "$coin_opt_cxxflags"; then
3727 case $build in
3728 *-cygwin* | *-mingw*)
3729 case "$CXX" in
3730 clang* | */clang* ) ;;
3731 cl* | */cl* | CL* | */CL*)
3732 # The MT and MTd options are mutually exclusive
3733 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3734 coin_opt_cxxflags='-MD -O2'
3735 coin_dbg_cxxflags='-MDd'
3736 else
3737 coin_opt_cxxflags='-MT -O2'
3738 coin_dbg_cxxflags='-MTd'
3739 fi
3740 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3741 ;;
3742 icl* | */icl* | ICL* | */ICL*)
3743 # The MT and MTd options are mutually exclusive
3744 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3745 coin_opt_cxxflags='-MD -Ox'
3746 coin_dbg_cxxflags='-MDd -debug'
3747 else
3748 coin_opt_cxxflags='-MT -Ox'
3749 coin_dbg_cxxflags='-MTd -debug'
3750 fi
3751 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3752 ;;
3753 esac
3754 ;;
3755 *-linux-*)
3756 case "$CXX" in
3757 icpc* | */icpc*)
3758 coin_opt_cxxflags="-O3 -ip -mp1"
3759 coin_add_cxxflags=""
3760 coin_dbg_cxxflags="-g"
3761 # Check if -i_dynamic is necessary (for new glibc library)
3762 CXXFLAGS=
3763 cat >conftest.$ac_ext <<_ACEOF
3764 /* confdefs.h. */
3765 _ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3769
3770 int
3771 main ()
3772 {
3773 int i=0; i++;
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 rm -f conftest.$ac_objext conftest$ac_exeext
3779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780 (eval $ac_link) 2>conftest.er1
3781 ac_status=$?
3782 grep -v '^ *+' conftest.er1 >conftest.err
3783 rm -f conftest.er1
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -z "$ac_cxx_werror_flag"
3788 || test ! -s conftest.err'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 (eval $ac_try) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; } &&
3794 { ac_try='test -s conftest$ac_exeext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 :
3801 else
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3804
3805 coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3806 fi
3807 rm -f conftest.err conftest.$ac_objext \
3808 conftest$ac_exeext conftest.$ac_ext
3809 ;;
3810 pgCC* | */pgCC*)
3811 coin_opt_cxxflags="-fast"
3812 coin_add_cxxflags="-Kieee -pc 64"
3813 coin_dbg_cxxflags="-g"
3814 ;;
3815 esac
3816 ;;
3817 *-ibm-*)
3818 case "$CXX" in
3819 xlC* | */xlC* | mpxlC* | */mpxlC*)
3820 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3821 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3822 coin_dbg_cxxflags="-g"
3823 ;;
3824 esac
3825 ;;
3826 *-hp-*)
3827 case "$CXX" in
3828 aCC* | */aCC* )
3829 coin_opt_cxxflags="-O"
3830 coin_add_cxxflags="-AA"
3831 coin_dbg_cxxflags="-g"
3832 ;;
3833 esac
3834 ;;
3835 *-*-solaris*)
3836 coin_opt_cxxflags="-O4"
3837 coin_dbg_cxxflags="-g"
3838 ;;
3839 esac
3840 fi
3841
3842 # Generic flag settings. If these don't work, add a case above.
3843
3844 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3845 coin_dbg_cxxflags="-g"
3846 fi
3847
3848 if test -z "$coin_opt_cxxflags"; then
3849 # Try if -O option works if nothing else is set
3850 CXXFLAGS=-O
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857
3858 int
3859 main ()
3860 {
3861 int i=0; i++;
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 rm -f conftest.$ac_objext conftest$ac_exeext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3868 (eval $ac_link) 2>conftest.er1
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } &&
3875 { ac_try='test -z "$ac_cxx_werror_flag"
3876 || test ! -s conftest.err'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 (eval $ac_try) 2>&5
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; } &&
3882 { ac_try='test -s conftest$ac_exeext'
3883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 (eval $ac_try) 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; }; then
3888 coin_opt_cxxflags="-O"
3889 else
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3892
3893 fi
3894 rm -f conftest.err conftest.$ac_objext \
3895 conftest$ac_exeext conftest.$ac_ext
3896 fi
3897
3898 # if PM doesn't want the warning messages, take them out
3899 if test x"$coin_skip_warn_cxxflags" = xyes; then
3900 coin_warn_cxxflags=
3901 fi
3902
3903 # Do final setup of flags based on values determined above.
3904
3905 if test x${DBG_CXXFLAGS+set} != xset; then
3906 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3907 fi
3908 if test x${OPT_CXXFLAGS+set} != xset; then
3909 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3910 fi
3911
3912 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3913 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3914
3915 if test "$coin_debug_compile" = "true"; then
3916 CXXFLAGS="$DBG_CXXFLAGS"
3917 else
3918 CXXFLAGS="$OPT_CXXFLAGS"
3919 fi
3920
3921 # Handle the case where CXXFLAGS was set externally.
3922 else
3923 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3924 if test x${DBG_CXXFLAGS+set} != xset; then
3925 DBG_CXXFLAGS="$CXXFLAGS"
3926 fi
3927 if test x${OPT_CXXFLAGS+set} != xset; then
3928 OPT_CXXFLAGS="$CXXFLAGS"
3929 fi
3930 fi
3931
3932 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3933 if test x$COIN_PRJCT != x; then
3934 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3935 fi
3936
3937 # Try if CXXFLAGS works
3938 save_CXXFLAGS="$CXXFLAGS"
3939 cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h. */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945
3946 int
3947 main ()
3948 {
3949 int i=0; i++;
3950 ;
3951 return 0;
3952 }
3953 _ACEOF
3954 rm -f conftest.$ac_objext conftest$ac_exeext
3955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3956 (eval $ac_link) 2>conftest.er1
3957 ac_status=$?
3958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } &&
3963 { ac_try='test -z "$ac_cxx_werror_flag"
3964 || test ! -s conftest.err'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; } &&
3970 { ac_try='test -s conftest$ac_exeext'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
3976 :
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 CXXFLAGS=
3982 fi
3983 rm -f conftest.err conftest.$ac_objext \
3984 conftest$ac_exeext conftest.$ac_ext
3985 if test -z "$CXXFLAGS"; then
3986 { 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
3987 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;}
3988 CXXFLAGS='-O'
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h. */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995
3996 int
3997 main ()
3998 {
3999 int i=0; i++;
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 rm -f conftest.$ac_objext conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006 (eval $ac_link) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_cxx_werror_flag"
4014 || test ! -s conftest.err'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest$ac_exeext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 :
4027 else
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 CXXFLAGS=
4032 fi
4033 rm -f conftest.err conftest.$ac_objext \
4034 conftest$ac_exeext conftest.$ac_ext
4035 if test -z "$CXXFLAGS"; then
4036 { 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
4037 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;}
4038 fi
4039 fi
4040
4041 { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4042 echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4043
4044
4045 if test x"$MPICXX" = x; then :; else
4046 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4047 echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4048 CXX="$MPICXX"
4049 fi
4050
4051 # correct the LD variable in a build with MS or Intel-windows compiler
4052 case "$CXX" in
4053 clang* | */clang* ) ;;
4054 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4055 LD=link
4056 ;;
4057 esac
4058
4059 ac_ext=c
4060 ac_cpp='$CPP $CPPFLAGS'
4061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064
4065
4066
4067 # Initialize automake and libtool
4068 {
4069
4070
4071
4072 # START
4073
4074 coin_disable_shared=no
4075 # Test if force_shared has been set
4076 if test "x" = xforce_shared; then
4077 if test x$enable_shared = xno; then
4078 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4079 echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4080 { (exit 1); exit 1; }; }
4081 fi
4082 enable_shared=yes;
4083 else
4084 case $build in
4085 *-cygwin* | *-mingw*)
4086 coin_disable_shared=yes
4087 if test x"$enable_shared" = xyes; then
4088 case "$CC" in
4089 clang* | */clang* )
4090 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4091 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4092 ;;
4093 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4094 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4095 echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4096 ;;
4097 *gcc*)
4098 if test x"$enable_dependency_linking" = xyes; then
4099 coin_disable_shared=no
4100 else
4101 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4102 echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4103 fi
4104 ;;
4105 *)
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 esac
4110 fi
4111 ;;
4112 *-aix*)
4113 coin_disable_shared=yes
4114 platform=AIX
4115 if test x"$enable_shared" = xyes; then
4116 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4117 echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4118 fi
4119 ;;
4120 esac
4121 fi
4122 if test x"$coin_disable_shared" = xyes; then
4123 if test x"$enable_shared" = xyes; then
4124 :
4125 else
4126 # we don't disable shared, because it was not selected anyway
4127 coin_disable_shared=no
4128 fi
4129 enable_shared=no
4130 fi
4131 # By default, we only want the shared objects to be compiled
4132 # Check whether --enable-static or --disable-static was given.
4133 if test "${enable_static+set}" = set; then
4134 enableval="$enable_static"
4135 p=${PACKAGE-default}
4136 case $enableval in
4137 yes) enable_static=yes ;;
4138 no) enable_static=no ;;
4139 *)
4140 enable_static=no
4141 # Look at the argument we got. We use all the common list separators.
4142 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4143 for pkg in $enableval; do
4144 IFS="$lt_save_ifs"
4145 if test "X$pkg" = "X$p"; then
4146 enable_static=yes
4147 fi
4148 done
4149 IFS="$lt_save_ifs"
4150 ;;
4151 esac
4152 else
4153 enable_static=no
4154 fi;
4155
4156
4157
4158
4159 # Initialize automake
4160 echo "$as_me:$LINENO: checking for egrep" >&5
4161 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4162 if test "${ac_cv_prog_egrep+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4166 then ac_cv_prog_egrep='grep -E'
4167 else ac_cv_prog_egrep='egrep'
4168 fi
4169 fi
4170 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4171 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4172 EGREP=$ac_cv_prog_egrep
4173
4174
4175 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4176 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4177 LN_S=$as_ln_s
4178 if test "$LN_S" = "ln -s"; then
4179 echo "$as_me:$LINENO: result: yes" >&5
4180 echo "${ECHO_T}yes" >&6
4181 else
4182 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4183 echo "${ECHO_T}no, using $LN_S" >&6
4184 fi
4185
4186 am__api_version="1.9"
4187 # Find a good install program. We prefer a C program (faster),
4188 # so one script is as good as another. But avoid the broken or
4189 # incompatible versions:
4190 # SysV /etc/install, /usr/sbin/install
4191 # SunOS /usr/etc/install
4192 # IRIX /sbin/install
4193 # AIX /bin/install
4194 # AmigaOS /C/install, which installs bootblocks on floppy discs
4195 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4196 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4197 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4198 # OS/2's system install, which has a completely different semantic
4199 # ./install, which can be erroneously created by make from ./install.sh.
4200 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4201 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4202 if test -z "$INSTALL"; then
4203 if test "${ac_cv_path_install+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 # Account for people who put trailing slashes in PATH elements.
4212 case $as_dir/ in
4213 ./ | .// | /cC/* | \
4214 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4215 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4216 /usr/ucb/* ) ;;
4217 *)
4218 # OSF1 and SCO ODT 3.0 have their own names for install.
4219 # Don't use installbsd from OSF since it installs stuff as root
4220 # by default.
4221 for ac_prog in ginstall scoinst install; do
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4224 if test $ac_prog = install &&
4225 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4226 # AIX install. It has an incompatible calling convention.
4227 :
4228 elif test $ac_prog = install &&
4229 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4230 # program-specific install script used by HP pwplus--don't use.
4231 :
4232 else
4233 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4234 break 3
4235 fi
4236 fi
4237 done
4238 done
4239 ;;
4240 esac
4241 done
4242
4243
4244 fi
4245 if test "${ac_cv_path_install+set}" = set; then
4246 INSTALL=$ac_cv_path_install
4247 else
4248 # As a last resort, use the slow shell script. We don't cache a
4249 # path for INSTALL within a source directory, because that will
4250 # break other packages using the cache if that directory is
4251 # removed, or if the path is relative.
4252 INSTALL=$ac_install_sh
4253 fi
4254 fi
4255 echo "$as_me:$LINENO: result: $INSTALL" >&5
4256 echo "${ECHO_T}$INSTALL" >&6
4257
4258 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4259 # It thinks the first close brace ends the variable substitution.
4260 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4261
4262 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4263
4264 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4265
4266 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4267 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4268 # Just in case
4269 sleep 1
4270 echo timestamp > conftest.file
4271 # Do `set' in a subshell so we don't clobber the current shell's
4272 # arguments. Must try -L first in case configure is actually a
4273 # symlink; some systems play weird games with the mod time of symlinks
4274 # (eg FreeBSD returns the mod time of the symlink's containing
4275 # directory).
4276 if (
4277 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4278 if test "$*" = "X"; then
4279 # -L didn't work.
4280 set X `ls -t $srcdir/configure conftest.file`
4281 fi
4282 rm -f conftest.file
4283 if test "$*" != "X $srcdir/configure conftest.file" \
4284 && test "$*" != "X conftest.file $srcdir/configure"; then
4285
4286 # If neither matched, then we have a broken ls. This can happen
4287 # if, for instance, CONFIG_SHELL is bash and it inherits a
4288 # broken ls alias from the environment. This has actually
4289 # happened. Such a system could not be considered "sane".
4290 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4291 alias in your environment" >&5
4292 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4293 alias in your environment" >&2;}
4294 { (exit 1); exit 1; }; }
4295 fi
4296
4297 test "$2" = conftest.file
4298 )
4299 then
4300 # Ok.
4301 :
4302 else
4303 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4304 Check your system clock" >&5
4305 echo "$as_me: error: newly created file is older than distributed files!
4306 Check your system clock" >&2;}
4307 { (exit 1); exit 1; }; }
4308 fi
4309 echo "$as_me:$LINENO: result: yes" >&5
4310 echo "${ECHO_T}yes" >&6
4311 test "$program_prefix" != NONE &&
4312 program_transform_name="s,^,$program_prefix,;$program_transform_name"
4313 # Use a double $ so make ignores it.
4314 test "$program_suffix" != NONE &&
4315 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4316 # Double any \ or $. echo might interpret backslashes.
4317 # By default was `s,x,x', remove it if useless.
4318 cat <<\_ACEOF >conftest.sed
4319 s/[\\$]/&&/g;s/;s,x,x,$//
4320 _ACEOF
4321 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4322 rm conftest.sed
4323
4324 # expand $ac_aux_dir to an absolute path
4325 am_aux_dir=`cd $ac_aux_dir && pwd`
4326
4327 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4328 # Use eval to expand $SHELL
4329 if eval "$MISSING --run true"; then
4330 am_missing_run="$MISSING --run "
4331 else
4332 am_missing_run=
4333 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4334 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4335 fi
4336
4337 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4338 # We used to keeping the `.' as first argument, in order to
4339 # allow $(mkdir_p) to be used without argument. As in
4340 # $(mkdir_p) $(somedir)
4341 # where $(somedir) is conditionally defined. However this is wrong
4342 # for two reasons:
4343 # 1. if the package is installed by a user who cannot write `.'
4344 # make install will fail,
4345 # 2. the above comment should most certainly read
4346 # $(mkdir_p) $(DESTDIR)$(somedir)
4347 # so it does not work when $(somedir) is undefined and
4348 # $(DESTDIR) is not.
4349 # To support the latter case, we have to write
4350 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4351 # so the `.' trick is pointless.
4352 mkdir_p='mkdir -p --'
4353 else
4354 # On NextStep and OpenStep, the `mkdir' command does not
4355 # recognize any option. It will interpret all options as
4356 # directories to create, and then abort because `.' already
4357 # exists.
4358 for d in ./-p ./--version;
4359 do
4360 test -d $d && rmdir $d
4361 done
4362 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4363 if test -f "$ac_aux_dir/mkinstalldirs"; then
4364 mkdir_p='$(mkinstalldirs)'
4365 else
4366 mkdir_p='$(install_sh) -d'
4367 fi
4368 fi
4369
4370 for ac_prog in gawk mawk nawk awk
4371 do
4372 # Extract the first word of "$ac_prog", so it can be a program name with args.
4373 set dummy $ac_prog; ac_word=$2
4374 echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376 if test "${ac_cv_prog_AWK+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 if test -n "$AWK"; then
4380 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4384 do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389 ac_cv_prog_AWK="$ac_prog"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4392 fi
4393 done
4394 done
4395
4396 fi
4397 fi
4398 AWK=$ac_cv_prog_AWK
4399 if test -n "$AWK"; then
4400 echo "$as_me:$LINENO: result: $AWK" >&5
4401 echo "${ECHO_T}$AWK" >&6
4402 else
4403 echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6
4405 fi
4406
4407 test -n "$AWK" && break
4408 done
4409
4410 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4411 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4412 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4413 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416 cat >conftest.make <<\_ACEOF
4417 all:
4418 @echo 'ac_maketemp="$(MAKE)"'
4419 _ACEOF
4420 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4421 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4422 if test -n "$ac_maketemp"; then
4423 eval ac_cv_prog_make_${ac_make}_set=yes
4424 else
4425 eval ac_cv_prog_make_${ac_make}_set=no
4426 fi
4427 rm -f conftest.make
4428 fi
4429 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4430 echo "$as_me:$LINENO: result: yes" >&5
4431 echo "${ECHO_T}yes" >&6
4432 SET_MAKE=
4433 else
4434 echo "$as_me:$LINENO: result: no" >&5
4435 echo "${ECHO_T}no" >&6
4436 SET_MAKE="MAKE=${MAKE-make}"
4437 fi
4438
4439 rm -rf .tst 2>/dev/null
4440 mkdir .tst 2>/dev/null
4441 if test -d .tst; then
4442 am__leading_dot=.
4443 else
4444 am__leading_dot=_
4445 fi
4446 rmdir .tst 2>/dev/null
4447
4448 DEPDIR="${am__leading_dot}deps"
4449
4450 ac_config_commands="$ac_config_commands depfiles"
4451
4452
4453 am_make=${MAKE-make}
4454 cat > confinc << 'END'
4455 am__doit:
4456 @echo done
4457 .PHONY: am__doit
4458 END
4459 # If we don't find an include directive, just comment out the code.
4460 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4461 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4462 am__include="#"
4463 am__quote=
4464 _am_result=none
4465 # First try GNU make style include.
4466 echo "include confinc" > confmf
4467 # We grep out `Entering directory' and `Leaving directory'
4468 # messages which can occur if `w' ends up in MAKEFLAGS.
4469 # In particular we don't look at `^make:' because GNU make might
4470 # be invoked under some other name (usually "gmake"), in which
4471 # case it prints its new name instead of `make'.
4472 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4473 am__include=include
4474 am__quote=
4475 _am_result=GNU
4476 fi
4477 # Now try BSD make style include.
4478 if test "$am__include" = "#"; then
4479 echo '.include "confinc"' > confmf
4480 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4481 am__include=.include
4482 am__quote="\""
4483 _am_result=BSD
4484 fi
4485 fi
4486
4487
4488 echo "$as_me:$LINENO: result: $_am_result" >&5
4489 echo "${ECHO_T}$_am_result" >&6
4490 rm -f confinc confmf
4491
4492 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4493 if test "${enable_dependency_tracking+set}" = set; then
4494 enableval="$enable_dependency_tracking"
4495
4496 fi;
4497 if test "x$enable_dependency_tracking" != xno; then
4498 am_depcomp="$ac_aux_dir/depcomp"
4499 AMDEPBACKSLASH='\'
4500 fi
4501
4502
4503 if test "x$enable_dependency_tracking" != xno; then
4504 AMDEP_TRUE=
4505 AMDEP_FALSE='#'
4506 else
4507 AMDEP_TRUE='#'
4508 AMDEP_FALSE=
4509 fi
4510
4511
4512
4513
4514
4515
4516 # AC_MSG_NOTICE([Beginning automake initialisation.])
4517 # Stuff for automake
4518 # test to see if srcdir already configured
4519 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4520 test -f $srcdir/config.status; then
4521 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4522 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4523 { (exit 1); exit 1; }; }
4524 fi
4525
4526 # test whether we have cygpath
4527 if test -z "$CYGPATH_W"; then
4528 if (cygpath --version) >/dev/null 2>/dev/null; then
4529 CYGPATH_W='cygpath -w'
4530 else
4531 CYGPATH_W=echo
4532 fi
4533 fi
4534
4535
4536 # Define the identity of the package.
4537 PACKAGE='osi'
4538 VERSION='0.108.11'
4539
4540
4541 cat >>confdefs.h <<_ACEOF
4542 #define PACKAGE "$PACKAGE"
4543 _ACEOF
4544
4545
4546 cat >>confdefs.h <<_ACEOF
4547 #define VERSION "$VERSION"
4548 _ACEOF
4549
4550 # Some tools Automake needs.
4551
4552 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4553
4554
4555 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4556
4557
4558 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4559
4560
4561 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4562
4563
4564 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4565
4566 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4567
4568 # Installed binaries are usually stripped using `strip' when the user
4569 # run `make install-strip'. However `strip' might not be the right
4570 # tool to use in cross-compilation environments, therefore Automake
4571 # will honor the `STRIP' environment variable to overrule this program.
4572 if test "$cross_compiling" != no; then
4573 if test -n "$ac_tool_prefix"; then
4574 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4575 set dummy ${ac_tool_prefix}strip; ac_word=$2
4576 echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4578 if test "${ac_cv_prog_STRIP+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581 if test -n "$STRIP"; then
4582 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4591 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4594 fi
4595 done
4596 done
4597
4598 fi
4599 fi
4600 STRIP=$ac_cv_prog_STRIP
4601 if test -n "$STRIP"; then
4602 echo "$as_me:$LINENO: result: $STRIP" >&5
4603 echo "${ECHO_T}$STRIP" >&6
4604 else
4605 echo "$as_me:$LINENO: result: no" >&5
4606 echo "${ECHO_T}no" >&6
4607 fi
4608
4609 fi
4610 if test -z "$ac_cv_prog_STRIP"; then
4611 ac_ct_STRIP=$STRIP
4612 # Extract the first word of "strip", so it can be a program name with args.
4613 set dummy strip; ac_word=$2
4614 echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4616 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619 if test -n "$ac_ct_STRIP"; then
4620 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4624 do
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629 ac_cv_prog_ac_ct_STRIP="strip"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4632 fi
4633 done
4634 done
4635
4636 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4637 fi
4638 fi
4639 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4640 if test -n "$ac_ct_STRIP"; then
4641 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4642 echo "${ECHO_T}$ac_ct_STRIP" >&6
4643 else
4644 echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6
4646 fi
4647
4648 STRIP=$ac_ct_STRIP
4649 else
4650 STRIP="$ac_cv_prog_STRIP"
4651 fi
4652
4653 fi
4654 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4655
4656 # We need awk for the "check" target. The system "awk" is bad on
4657 # some platforms.
4658 # Always define AMTAR for backward compatibility.
4659
4660 AMTAR=${AMTAR-"${am_missing_run}tar"}
4661
4662 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4663
4664
4665
4666
4667 depcc="$CC" am_compiler_list=
4668
4669 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4670 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4671 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4675 # We make a subdir and do the tests there. Otherwise we can end up
4676 # making bogus files that we don't know about and never remove. For
4677 # instance it was reported that on HP-UX the gcc test will end up
4678 # making a dummy file named `D' -- because `-MD' means `put the output
4679 # in D'.
4680 mkdir conftest.dir
4681 # Copy depcomp to subdir because otherwise we won't find it if we're
4682 # using a relative directory.
4683 cp "$am_depcomp" conftest.dir
4684 cd conftest.dir
4685 # We will build objects and dependencies in a subdirectory because
4686 # it helps to detect inapplicable dependency modes. For instance
4687 # both Tru64's cc and ICC support -MD to output dependencies as a
4688 # side effect of compilation, but ICC will put the dependencies in
4689 # the current directory while Tru64 will put them in the object
4690 # directory.
4691 mkdir sub
4692
4693 am_cv_CC_dependencies_compiler_type=none
4694 if test "$am_compiler_list" = ""; then
4695 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4696 fi
4697 for depmode in $am_compiler_list; do
4698 # Setup a source with many dependencies, because some compilers
4699 # like to wrap large dependency lists on column 80 (with \), and
4700 # we should not choose a depcomp mode which is confused by this.
4701 #
4702 # We need to recreate these files for each test, as the compiler may
4703 # overwrite some of them when testing with obscure command lines.
4704 # This happens at least with the AIX C compiler.
4705 : > sub/conftest.c
4706 for i in 1 2 3 4 5 6; do
4707 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4708 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4709 # Solaris 8's {/usr,}/bin/sh.
4710 touch sub/conftst$i.h
4711 done
4712 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4713
4714 case $depmode in
4715 nosideeffect)
4716 # after this tag, mechanisms are not by side-effect, so they'll
4717 # only be used when explicitly requested
4718 if test "x$enable_dependency_tracking" = xyes; then
4719 continue
4720 else
4721 break
4722 fi
4723 ;;
4724 none) break ;;
4725 esac
4726 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4727 # mode. It turns out that the SunPro C++ compiler does not properly
4728 # handle `-M -o', and we need to detect this.
4729 if depmode=$depmode \
4730 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4731 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4732 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4733 >/dev/null 2>conftest.err &&
4734 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4735 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4736 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4737 # icc doesn't choke on unknown options, it will just issue warnings
4738 # or remarks (even with -Werror). So we grep stderr for any message
4739 # that says an option was ignored or not supported.
4740 # When given -MP, icc 7.0 and 7.1 complain thusly:
4741 # icc: Command line warning: ignoring option '-M'; no argument required
4742 # The diagnosis changed in icc 8.0:
4743 # icc: Command line remark: option '-MP' not supported
4744 if (grep 'ignoring option' conftest.err ||
4745 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4746 am_cv_CC_dependencies_compiler_type=$depmode
4747 break
4748 fi
4749 fi
4750 done
4751
4752 cd ..
4753 rm -rf conftest.dir
4754 else
4755 am_cv_CC_dependencies_compiler_type=none
4756 fi
4757
4758 fi
4759 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4760 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4761 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4762
4763
4764
4765 if
4766 test "x$enable_dependency_tracking" != xno \
4767 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4768 am__fastdepCC_TRUE=
4769 am__fastdepCC_FALSE='#'
4770 else
4771 am__fastdepCC_TRUE='#'
4772 am__fastdepCC_FALSE=
4773 fi
4774
4775
4776 depcc="$CXX" am_compiler_list=
4777
4778 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4779 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4780 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4784 # We make a subdir and do the tests there. Otherwise we can end up
4785 # making bogus files that we don't know about and never remove. For
4786 # instance it was reported that on HP-UX the gcc test will end up
4787 # making a dummy file named `D' -- because `-MD' means `put the output
4788 # in D'.
4789 mkdir conftest.dir
4790 # Copy depcomp to subdir because otherwise we won't find it if we're
4791 # using a relative directory.
4792 cp "$am_depcomp" conftest.dir
4793 cd conftest.dir
4794 # We will build objects and dependencies in a subdirectory because
4795 # it helps to detect inapplicable dependency modes. For instance
4796 # both Tru64's cc and ICC support -MD to output dependencies as a
4797 # side effect of compilation, but ICC will put the dependencies in
4798 # the current directory while Tru64 will put them in the object
4799 # directory.
4800 mkdir sub
4801
4802 am_cv_CXX_dependencies_compiler_type=none
4803 if test "$am_compiler_list" = ""; then
4804 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4805 fi
4806 for depmode in $am_compiler_list; do
4807 # Setup a source with many dependencies, because some compilers
4808 # like to wrap large dependency lists on column 80 (with \), and
4809 # we should not choose a depcomp mode which is confused by this.
4810 #
4811 # We need to recreate these files for each test, as the compiler may
4812 # overwrite some of them when testing with obscure command lines.
4813 # This happens at least with the AIX C compiler.
4814 : > sub/conftest.c
4815 for i in 1 2 3 4 5 6; do
4816 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4817 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4818 # Solaris 8's {/usr,}/bin/sh.
4819 touch sub/conftst$i.h
4820 done
4821 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4822
4823 case $depmode in
4824 nosideeffect)
4825 # after this tag, mechanisms are not by side-effect, so they'll
4826 # only be used when explicitly requested
4827 if test "x$enable_dependency_tracking" = xyes; then
4828 continue
4829 else
4830 break
4831 fi
4832 ;;
4833 none) break ;;
4834 esac
4835 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4836 # mode. It turns out that the SunPro C++ compiler does not properly
4837 # handle `-M -o', and we need to detect this.
4838 if depmode=$depmode \
4839 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4840 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4841 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4842 >/dev/null 2>conftest.err &&
4843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4844 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4846 # icc doesn't choke on unknown options, it will just issue warnings
4847 # or remarks (even with -Werror). So we grep stderr for any message
4848 # that says an option was ignored or not supported.
4849 # When given -MP, icc 7.0 and 7.1 complain thusly:
4850 # icc: Command line warning: ignoring option '-M'; no argument required
4851 # The diagnosis changed in icc 8.0:
4852 # icc: Command line remark: option '-MP' not supported
4853 if (grep 'ignoring option' conftest.err ||
4854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4855 am_cv_CXX_dependencies_compiler_type=$depmode
4856 break
4857 fi
4858 fi
4859 done
4860
4861 cd ..
4862 rm -rf conftest.dir
4863 else
4864 am_cv_CXX_dependencies_compiler_type=none
4865 fi
4866
4867 fi
4868 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4869 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4870 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4871
4872
4873
4874 if
4875 test "x$enable_dependency_tracking" != xno \
4876 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4877 am__fastdepCXX_TRUE=
4878 am__fastdepCXX_FALSE='#'
4879 else
4880 am__fastdepCXX_TRUE='#'
4881 am__fastdepCXX_FALSE=
4882 fi
4883
4884
4885
4886 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4887 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4888 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4889 if test "${enable_maintainer_mode+set}" = set; then
4890 enableval="$enable_maintainer_mode"
4891 USE_MAINTAINER_MODE=$enableval
4892 else
4893 USE_MAINTAINER_MODE=no
4894 fi;
4895 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4896 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4897
4898
4899 if test $USE_MAINTAINER_MODE = yes; then
4900 MAINTAINER_MODE_TRUE=
4901 MAINTAINER_MODE_FALSE='#'
4902 else
4903 MAINTAINER_MODE_TRUE='#'
4904 MAINTAINER_MODE_FALSE=
4905 fi
4906
4907 MAINT=$MAINTAINER_MODE_TRUE
4908
4909
4910
4911 coin_have_externals=no
4912 if test "$enable_maintainer_mode" = yes; then
4913
4914 # If maintainer mode is chosen, we make sure that the correct versions
4915 # of the tools are used, and that we know where libtool.m4 is (to
4916 # recreate acinclude.m4)
4917
4918
4919 LIBTOOLM4=
4920 # Normally, $HOME
4921 AUTOTOOLS_DFLT=$HOME
4922
4923 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4924 echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4925 if test "${ac_cv_use_correct_autotools+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928 ac_cv_use_correct_autotools=check
4929 fi
4930 echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4931 echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4932
4933 if test $ac_cv_use_correct_autotools = check; then
4934 ac_cv_use_correct_autotools=yes
4935 # Check if we have autoconf
4936 # Extract the first word of "autoconf", so it can be a program name with args.
4937 set dummy autoconf; ac_word=$2
4938 echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4940 if test "${ac_cv_prog_have_autoconf+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 if test -n "$have_autoconf"; then
4944 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_have_autoconf="yes"
4954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4956 fi
4957 done
4958 done
4959
4960 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4961 fi
4962 fi
4963 have_autoconf=$ac_cv_prog_have_autoconf
4964 if test -n "$have_autoconf"; then
4965 echo "$as_me:$LINENO: result: $have_autoconf" >&5
4966 echo "${ECHO_T}$have_autoconf" >&6
4967 else
4968 echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6
4970 fi
4971
4972 if test $have_autoconf = no; then
4973 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4974 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4975 { (exit 1); exit 1; }; }
4976 fi
4977
4978 # Check whether autoconf is the correct version
4979 correct_version='2.59'
4980 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
4981 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4982 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4983 autoconf --version > confauto.out 2>&1
4984 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4985 echo "$as_me:$LINENO: result: yes" >&5
4986 echo "${ECHO_T}yes" >&6
4987 else
4988 rm -f confauto.out
4989 echo "$as_me:$LINENO: result: no" >&5
4990 echo "${ECHO_T}no" >&6
4991 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4992 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4993 { (exit 1); exit 1; }; }
4994 fi
4995 rm -f confauto.out
4996
4997 # Check if the executable autoconf is picked up from the correct location
4998 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4999 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5000 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5001 autoconf_dir=`cd $autoconf_dir; pwd`
5002 if test x$AUTOTOOLS_DIR = x; then
5003 want_dir=$AUTOTOOLS_DFLT/bin
5004 else
5005 want_dir=$AUTOTOOLS_DIR/bin
5006 fi
5007 if test $autoconf_dir = `cd $want_dir; pwd`; then
5008 echo "$as_me:$LINENO: result: yes" >&5
5009 echo "${ECHO_T}yes" >&6
5010 else
5011 rm -f confauto.out
5012 echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6
5014 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5015 echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5016 { (exit 1); exit 1; }; }
5017 fi
5018
5019 # Check if we have automake
5020 # Extract the first word of "automake", so it can be a program name with args.
5021 set dummy automake; ac_word=$2
5022 echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5024 if test "${ac_cv_prog_have_automake+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027 if test -n "$have_automake"; then
5028 ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 ac_cv_prog_have_automake="yes"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5040 fi
5041 done
5042 done
5043
5044 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5045 fi
5046 fi
5047 have_automake=$ac_cv_prog_have_automake
5048 if test -n "$have_automake"; then
5049 echo "$as_me:$LINENO: result: $have_automake" >&5
5050 echo "${ECHO_T}$have_automake" >&6
5051 else
5052 echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6
5054 fi
5055
5056 if test $have_automake = no; then
5057 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5058 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5059 { (exit 1); exit 1; }; }
5060 fi
5061
5062 # Check whether automake is the correct version
5063 correct_version='1.9.6'
5064 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5065 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5066 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5067 automake --version > confauto.out 2>&1
5068 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5069 echo "$as_me:$LINENO: result: yes" >&5
5070 echo "${ECHO_T}yes" >&6
5071 else
5072 rm -f confauto.out
5073 echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6
5075 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5076 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5077 { (exit 1); exit 1; }; }
5078 fi
5079 rm -f confauto.out
5080
5081 # Check if the executable automake is picked up from the correct location
5082 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5083 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5084 automake_dir=`which automake | sed -e 's=/automake=='`
5085 automake_dir=`cd $automake_dir; pwd`
5086 if test x$AUTOTOOLS_DIR = x; then
5087 want_dir=$AUTOTOOLS_DFLT/bin
5088 else
5089 want_dir=$AUTOTOOLS_DIR/bin
5090 fi
5091 if test $automake_dir = `cd $want_dir; pwd`; then
5092 echo "$as_me:$LINENO: result: yes" >&5
5093 echo "${ECHO_T}yes" >&6
5094 else
5095 rm -f confauto.out
5096 echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6
5098 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5099 echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5100 { (exit 1); exit 1; }; }
5101 fi
5102
5103 # Check if this is the correct version of libtool (with escaped dots)
5104 if test x$AUTOTOOLS_DIR = x; then
5105 want_dir=$AUTOTOOLS_DFLT/share
5106 else
5107 want_dir=$AUTOTOOLS_DIR/share
5108 fi
5109 correct_version='1.5.22'
5110 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5111 if test -r $want_dir/libtool/ltmain.sh; then
5112 have_ltmain=yes
5113 :
5114 else
5115 have_ltmain=no
5116 :
5117 fi
5118
5119 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5120 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5121 if test $have_ltmain = yes; then
5122 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5123 echo "$as_me:$LINENO: result: yes" >&5
5124 echo "${ECHO_T}yes" >&6
5125 else
5126 echo "$as_me:$LINENO: result: no" >&5
5127 echo "${ECHO_T}no" >&6
5128 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5129 echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5130 { (exit 1); exit 1; }; }
5131 fi
5132 else
5133 echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6
5135 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5136 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5137 { (exit 1); exit 1; }; }
5138 fi
5139 fi
5140
5141 # Check if we can find the libtool file
5142 if test x$AUTOTOOLS_DIR = x; then
5143 want_dir=$AUTOTOOLS_DFLT/share
5144 else
5145 want_dir=$AUTOTOOLS_DIR/share
5146 fi
5147 if test -r $want_dir/aclocal/libtool.m4; then
5148 LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5149 :
5150 else
5151 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5152 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5153 { (exit 1); exit 1; }; }
5154 :
5155 fi
5156
5157
5158 # Check if we have an Dependencies file
5159 if test -r $srcdir/Dependencies; then
5160 coin_have_externals=yes
5161 fi
5162 # Check if subversion is installed and understands https
5163 # Extract the first word of "svn", so it can be a program name with args.
5164 set dummy svn; ac_word=$2
5165 echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167 if test "${ac_cv_prog_have_svn+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170 if test -n "$have_svn"; then
5171 ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_have_svn="yes"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184 done
5185 done
5186
5187 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5188 fi
5189 fi
5190 have_svn=$ac_cv_prog_have_svn
5191 if test -n "$have_svn"; then
5192 echo "$as_me:$LINENO: result: $have_svn" >&5
5193 echo "${ECHO_T}$have_svn" >&6
5194 else
5195 echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6
5197 fi
5198
5199 if test x$have_svn = xyes; then
5200 echo "$as_me:$LINENO: checking whether svn understands https" >&5
5201 echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5202 if test "${ac_cv_svn_understands_https+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 svn --version > confauto.out 2>&1
5206 if $EGREP https confauto.out >/dev/null 2>&1; then
5207 ac_cv_svn_understands_https=yes
5208 else
5209 ac_cv_svn_understands_https=no
5210 have_svn=no
5211 ac_cv_prog_have_svn=no
5212 fi
5213 rm -f confauto.out
5214 fi
5215 echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5216 echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5217 fi
5218
5219 # Find the location of the BuildTools directory
5220 BUILDTOOLSDIR=
5221 if test -r $srcdir/BuildTools/coin.m4; then
5222 BUILDTOOLSDIR=$srcdir/BuildTools
5223 elif test -r $srcdir/../BuildTools/coin.m4; then
5224 BUILDTOOLSDIR=$srcdir/../BuildTools
5225 elif test -r $srcdir/../../BuildTools/coin.m4; then
5226 BUILDTOOLSDIR=$srcdir/../../BuildTools
5227 elif test -r $srcdir/../../../BuildTools/coin.m4; then
5228 BUILDTOOLSDIR=$srcdir/../../../BuildTools
5229 else
5230 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5231 echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5232 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5233 fi
5234
5235
5236 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5237 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5238 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5239 fi
5240
5241 # The following variable is set to the name of the directory where
5242 # the autotool scripts are located
5243
5244 AUX_DIR=$ac_aux_dir
5245 fi
5246
5247 # helpful variable for the base directory of this package
5248 abs_source_dir=`cd $srcdir; pwd`
5249
5250
5251 # Stuff for example Makefiles
5252 if test x$prefix = xNONE; then
5253 full_prefix=$ac_default_prefix
5254 else
5255 full_prefix=$prefix
5256 fi
5257
5258
5259 abs_lib_dir=$full_prefix/lib
5260
5261 abs_include_dir=$full_prefix/include
5262
5263 abs_bin_dir=$full_prefix/bin
5264
5265
5266
5267 if test $coin_have_externals = yes && test x$have_svn = xyes; then
5268 HAVE_EXTERNALS_TRUE=
5269 HAVE_EXTERNALS_FALSE='#'
5270 else
5271 HAVE_EXTERNALS_TRUE='#'
5272 HAVE_EXTERNALS_FALSE=
5273 fi
5274
5275
5276 # AC_MSG_NOTICE([End automake initialisation.])
5277
5278
5279
5280 LIBTOOL=
5281 if test -f ../libtool; then
5282 coin_config_dir=..
5283 LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5284 fi
5285 if test "x$LIBTOOL" = x; then
5286 if test -f ../../libtool; then
5287 coin_config_dir=../..
5288 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5289 fi
5290 fi
5291
5292 if test "x$LIBTOOL" = x; then
5293 # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5294 # Stuff for libtool
5295 # Check whether --enable-shared or --disable-shared was given.
5296 if test "${enable_shared+set}" = set; then
5297 enableval="$enable_shared"
5298 p=${PACKAGE-default}
5299 case $enableval in
5300 yes) enable_shared=yes ;;
5301 no) enable_shared=no ;;
5302 *)
5303 enable_shared=no
5304 # Look at the argument we got. We use all the common list separators.
5305 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5306 for pkg in $enableval; do
5307 IFS="$lt_save_ifs"
5308 if test "X$pkg" = "X$p"; then
5309 enable_shared=yes
5310 fi
5311 done
5312 IFS="$lt_save_ifs"
5313 ;;
5314 esac
5315 else
5316 enable_shared=yes
5317 fi;
5318
5319 # Check whether --enable-fast-install or --disable-fast-install was given.
5320 if test "${enable_fast_install+set}" = set; then
5321 enableval="$enable_fast_install"
5322 p=${PACKAGE-default}
5323 case $enableval in
5324 yes) enable_fast_install=yes ;;
5325 no) enable_fast_install=no ;;
5326 *)
5327 enable_fast_install=no
5328 # Look at the argument we got. We use all the common list separators.
5329 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5330 for pkg in $enableval; do
5331 IFS="$lt_save_ifs"
5332 if test "X$pkg" = "X$p"; then
5333 enable_fast_install=yes
5334 fi
5335 done
5336 IFS="$lt_save_ifs"
5337 ;;
5338 esac
5339 else
5340 enable_fast_install=yes
5341 fi;
5342
5343 echo "$as_me:$LINENO: checking host system type" >&5
5344 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5345 if test "${ac_cv_host+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348 ac_cv_host_alias=$host_alias
5349 test -z "$ac_cv_host_alias" &&
5350 ac_cv_host_alias=$ac_cv_build_alias
5351 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5352 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5353 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5354 { (exit 1); exit 1; }; }
5355
5356 fi
5357 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5358 echo "${ECHO_T}$ac_cv_host" >&6
5359 host=$ac_cv_host
5360 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5361 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5362 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5363
5364
5365 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5366 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5367 if test "${lt_cv_path_SED+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370 # Loop through the user's path and test for sed and gsed.
5371 # Then use that list of sed's as ones to test for truncation.
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for lt_ac_prog in sed gsed; do
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5380 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5381 fi
5382 done
5383 done
5384 done
5385 lt_ac_max=0
5386 lt_ac_count=0
5387 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5388 # along with /bin/sed that truncates output.
5389 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5390 test ! -f $lt_ac_sed && continue
5391 cat /dev/null > conftest.in
5392 lt_ac_count=0
5393 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5394 # Check for GNU sed and select it if it is found.
5395 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5396 lt_cv_path_SED=$lt_ac_sed
5397 break
5398 fi
5399 while true; do
5400 cat conftest.in conftest.in >conftest.tmp
5401 mv conftest.tmp conftest.in
5402 cp conftest.in conftest.nl
5403 echo >>conftest.nl
5404 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5405 cmp -s conftest.out conftest.nl || break
5406 # 10000 chars as input seems more than enough
5407 test $lt_ac_count -gt 10 && break
5408 lt_ac_count=`expr $lt_ac_count + 1`
5409 if test $lt_ac_count -gt $lt_ac_max; then
5410 lt_ac_max=$lt_ac_count
5411 lt_cv_path_SED=$lt_ac_sed
5412 fi
5413 done
5414 done
5415
5416 fi
5417
5418 SED=$lt_cv_path_SED
5419 echo "$as_me:$LINENO: result: $SED" >&5
5420 echo "${ECHO_T}$SED" >&6
5421
5422
5423 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5424 if test "${with_gnu_ld+set}" = set; then
5425 withval="$with_gnu_ld"
5426 test "$withval" = no || with_gnu_ld=yes
5427 else
5428 with_gnu_ld=no
5429 fi;
5430 ac_prog=ld
5431 if test "$GCC" = yes; then
5432 # Check if gcc -print-prog-name=ld gives a path.
5433 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5434 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5435 case $host in
5436 *-*-mingw*)
5437 # gcc leaves a trailing carriage return which upsets mingw
5438 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5439 *)
5440 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5441 esac
5442 case $ac_prog in
5443 # Accept absolute paths.
5444 [\\/]* | ?:[\\/]*)
5445 re_direlt='/[^/][^/]*/\.\./'
5446 # Canonicalize the pathname of ld
5447 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5448 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5449 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5450 done
5451 test -z "$LD" && LD="$ac_prog"
5452 ;;
5453 "")
5454 # If it fails, then pretend we aren't using GCC.
5455 ac_prog=ld
5456 ;;
5457 *)
5458 # If it is relative, then search for the first ld in PATH.
5459 with_gnu_ld=unknown
5460 ;;
5461 esac
5462 elif test "$with_gnu_ld" = yes; then
5463 echo "$as_me:$LINENO: checking for GNU ld" >&5
5464 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5465 else
5466 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5467 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5468 fi
5469 if test "${lt_cv_path_LD+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472 if test -z "$LD"; then
5473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5474 for ac_dir in $PATH; do
5475 IFS="$lt_save_ifs"
5476 test -z "$ac_dir" && ac_dir=.
5477 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5478 lt_cv_path_LD="$ac_dir/$ac_prog"
5479 # Check to see if the program is GNU ld. I'd rather use --version,
5480 # but apparently some variants of GNU ld only accept -v.
5481 # Break only if it was the GNU/non-GNU ld that we prefer.
5482 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5483 *GNU* | *'with BFD'*)
5484 test "$with_gnu_ld" != no && break
5485 ;;
5486 *)
5487 test "$with_gnu_ld" != yes && break
5488 ;;
5489 esac
5490 fi
5491 done
5492 IFS="$lt_save_ifs"
5493 else
5494 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5495 fi
5496 fi
5497
5498 LD="$lt_cv_path_LD"
5499 if test -n "$LD"; then
5500 echo "$as_me:$LINENO: result: $LD" >&5
5501 echo "${ECHO_T}$LD" >&6
5502 else
5503 echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5505 fi
5506 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5507 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5508 { (exit 1); exit 1; }; }
5509 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5510 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5511 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5515 case `$LD -v 2>&1 </dev/null` in
5516 *GNU* | *'with BFD'*)
5517 lt_cv_prog_gnu_ld=yes
5518 ;;
5519 *)
5520 lt_cv_prog_gnu_ld=no
5521 ;;
5522 esac
5523 fi
5524 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5525 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5526 with_gnu_ld=$lt_cv_prog_gnu_ld
5527
5528
5529 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5530 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5531 if test "${lt_cv_ld_reload_flag+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534 lt_cv_ld_reload_flag='-r'
5535 fi
5536 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5537 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5538 reload_flag=$lt_cv_ld_reload_flag
5539 case $reload_flag in
5540 "" | " "*) ;;
5541 *) reload_flag=" $reload_flag" ;;
5542 esac
5543 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5544 case $host_os in
5545 darwin*)
5546 if test "$GCC" = yes; then
5547 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5548 else
5549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5550 fi
5551 ;;
5552 esac
5553
5554 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5555 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5556 if test "${lt_cv_path_NM+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559 if test -n "$NM"; then
5560 # Let the user override the test.
5561 lt_cv_path_NM="$NM"
5562 else
5563 lt_nm_to_check="${ac_tool_prefix}nm"
5564 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5565 lt_nm_to_check="$lt_nm_to_check nm"
5566 fi
5567 for lt_tmp_nm in $lt_nm_to_check; do
5568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5569 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5570 IFS="$lt_save_ifs"
5571 test -z "$ac_dir" && ac_dir=.
5572 tmp_nm="$ac_dir/$lt_tmp_nm"
5573 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5574 # Check to see if the nm accepts a BSD-compat flag.
5575 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5576 # nm: unknown option "B" ignored
5577 # Tru64's nm complains that /dev/null is an invalid object file
5578 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5579 */dev/null* | *'Invalid file or object type'*)
5580 lt_cv_path_NM="$tmp_nm -B"
5581 break
5582 ;;
5583 *)
5584 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5585 */dev/null*)
5586 lt_cv_path_NM="$tmp_nm -p"
5587 break
5588 ;;
5589 *)
5590 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5591 continue # so that we can try to find one that supports BSD flags
5592 ;;
5593 esac
5594 ;;
5595 esac
5596 fi
5597 done
5598 IFS="$lt_save_ifs"
5599 done
5600 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5601 fi
5602 fi
5603 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5604 echo "${ECHO_T}$lt_cv_path_NM" >&6
5605 NM="$lt_cv_path_NM"
5606
5607 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5608 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5609 if test "${lt_cv_deplibs_check_method+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612 lt_cv_file_magic_cmd='$MAGIC_CMD'
5613 lt_cv_file_magic_test_file=
5614 lt_cv_deplibs_check_method='unknown'
5615 # Need to set the preceding variable on all platforms that support
5616 # interlibrary dependencies.
5617 # 'none' -- dependencies not supported.
5618 # `unknown' -- same as none, but documents that we really don't know.
5619 # 'pass_all' -- all dependencies passed with no checks.
5620 # 'test_compile' -- check by making test program.
5621 # 'file_magic [[regex]]' -- check by looking for files in library path
5622 # which responds to the $file_magic_cmd with a given extended regex.
5623 # If you have `file' or equivalent on your system and you're not sure
5624 # whether `pass_all' will *always* work, you probably want this one.
5625
5626 case $host_os in
5627 aix4* | aix5*)
5628 lt_cv_deplibs_check_method=pass_all
5629 ;;
5630
5631 beos*)
5632 lt_cv_deplibs_check_method=pass_all
5633 ;;
5634
5635 bsdi[45]*)
5636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5637 lt_cv_file_magic_cmd='/usr/bin/file -L'
5638 lt_cv_file_magic_test_file=/shlib/libc.so
5639 ;;
5640
5641 cygwin*)
5642 # func_win32_libid is a shell function defined in ltmain.sh
5643 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5644 lt_cv_file_magic_cmd='func_win32_libid'
5645 ;;
5646
5647 mingw* | pw32*)
5648 # Base MSYS/MinGW do not provide the 'file' command needed by
5649 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5650 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5651 lt_cv_file_magic_cmd='$OBJDUMP -f'
5652 ;;
5653
5654 darwin* | rhapsody*)
5655 lt_cv_deplibs_check_method=pass_all
5656 ;;
5657
5658 freebsd* | kfreebsd*-gnu | dragonfly*)
5659 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5660 case $host_cpu in
5661 i*86 )
5662 # Not sure whether the presence of OpenBSD here was a mistake.
5663 # Let's accept both of them until this is cleared up.
5664 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5665 lt_cv_file_magic_cmd=/usr/bin/file
5666 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5667 ;;
5668 esac
5669 else
5670 lt_cv_deplibs_check_method=pass_all
5671 fi
5672 ;;
5673
5674 gnu*)
5675 lt_cv_deplibs_check_method=pass_all
5676 ;;
5677
5678 hpux10.20* | hpux11*)
5679 lt_cv_file_magic_cmd=/usr/bin/file
5680 case $host_cpu in
5681 ia64*)
5682 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5683 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5684 ;;
5685 hppa*64*)
5686 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]'
5687 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5688 ;;
5689 *)
5690 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5691 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5692 ;;
5693 esac
5694 ;;
5695
5696 interix3*)
5697 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5699 ;;
5700
5701 irix5* | irix6* | nonstopux*)
5702 case $LD in
5703 *-32|*"-32 ") libmagic=32-bit;;
5704 *-n32|*"-n32 ") libmagic=N32;;
5705 *-64|*"-64 ") libmagic=64-bit;;
5706 *) libmagic=never-match;;
5707 esac
5708 lt_cv_deplibs_check_method=pass_all
5709 ;;
5710
5711 # This must be Linux ELF.
5712 linux*)
5713 lt_cv_deplibs_check_method=pass_all
5714 ;;
5715
5716 netbsd*)
5717 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5719 else
5720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5721 fi
5722 ;;
5723
5724 newos6*)
5725 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5726 lt_cv_file_magic_cmd=/usr/bin/file
5727 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5728 ;;
5729
5730 nto-qnx*)
5731 lt_cv_deplibs_check_method=unknown
5732 ;;
5733
5734 openbsd*)
5735 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5737 else
5738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5739 fi
5740 ;;
5741
5742 osf3* | osf4* | osf5*)
5743 lt_cv_deplibs_check_method=pass_all
5744 ;;
5745
5746 solaris*)
5747 lt_cv_deplibs_check_method=pass_all
5748 ;;
5749
5750 sysv4 | sysv4.3*)
5751 case $host_vendor in
5752 motorola)
5753 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]'
5754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5755 ;;
5756 ncr)
5757 lt_cv_deplibs_check_method=pass_all
5758 ;;
5759 sequent)
5760 lt_cv_file_magic_cmd='/bin/file'
5761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5762 ;;
5763 sni)
5764 lt_cv_file_magic_cmd='/bin/file'
5765 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5766 lt_cv_file_magic_test_file=/lib/libc.so
5767 ;;
5768 siemens)
5769 lt_cv_deplibs_check_method=pass_all
5770 ;;
5771 pc)
5772 lt_cv_deplibs_check_method=pass_all
5773 ;;
5774 esac
5775 ;;
5776
5777 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5778 lt_cv_deplibs_check_method=pass_all
5779 ;;
5780 esac
5781
5782 fi
5783 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5784 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5785 file_magic_cmd=$lt_cv_file_magic_cmd
5786 deplibs_check_method=$lt_cv_deplibs_check_method
5787 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5788
5789
5790
5791
5792 # If no C compiler was specified, use CC.
5793 LTCC=${LTCC-"$CC"}
5794
5795 # If no C compiler flags were specified, use CFLAGS.
5796 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5797
5798 # Allow CC to be a program name with arguments.
5799 compiler=$CC
5800
5801 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5802 if test "${enable_libtool_lock+set}" = set; then
5803 enableval="$enable_libtool_lock"
5804
5805 fi;
5806 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5807
5808 # Some flags need to be propagated to the compiler or linker for good
5809 # libtool support.
5810 case $host in
5811 ia64-*-hpux*)
5812 # Find out which ABI we are using.
5813 echo 'int i;' > conftest.$ac_ext
5814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5815 (eval $ac_compile) 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; then
5819 case `/usr/bin/file conftest.$ac_objext` in
5820 *ELF-32*)
5821 HPUX_IA64_MODE="32"
5822 ;;
5823 *ELF-64*)
5824 HPUX_IA64_MODE="64"
5825 ;;
5826 esac
5827 fi
5828 rm -rf conftest*
5829 ;;
5830 *-*-irix6*)
5831 # Find out which ABI we are using.
5832 echo '#line 5832 "configure"' > conftest.$ac_ext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834 (eval $ac_compile) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; then
5838 if test "$lt_cv_prog_gnu_ld" = yes; then
5839 case `/usr/bin/file conftest.$ac_objext` in
5840 *32-bit*)
5841 LD="${LD-ld} -melf32bsmip"
5842 ;;
5843 *N32*)
5844 LD="${LD-ld} -melf32bmipn32"
5845 ;;
5846 *64-bit*)
5847 LD="${LD-ld} -melf64bmip"
5848 ;;
5849 esac
5850 else
5851 case `/usr/bin/file conftest.$ac_objext` in
5852 *32-bit*)
5853 LD="${LD-ld} -32"
5854 ;;
5855 *N32*)
5856 LD="${LD-ld} -n32"
5857 ;;
5858 *64-bit*)
5859 LD="${LD-ld} -64"
5860 ;;
5861 esac
5862 fi
5863 fi
5864 rm -rf conftest*
5865 ;;
5866
5867 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5868 # Find out which ABI we are using.
5869 echo 'int i;' > conftest.$ac_ext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871 (eval $ac_compile) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; then
5875 case `/usr/bin/file conftest.o` in
5876 *32-bit*)
5877 case $host in
5878 x86_64-*linux*)
5879 LD="${LD-ld} -m elf_i386"
5880 ;;
5881 ppc64-*linux*|powerpc64-*linux*)
5882 LD="${LD-ld} -m elf32ppclinux"
5883 ;;
5884 s390x-*linux*)
5885 LD="${LD-ld} -m elf_s390"
5886 ;;
5887 sparc64-*linux*)
5888 LD="${LD-ld} -m elf32_sparc"
5889 ;;
5890 esac
5891 ;;
5892 *64-bit*)
5893 case $host in
5894 x86_64-*linux*)
5895 LD="${LD-ld} -m elf_x86_64"
5896 ;;
5897 ppc*-*linux*|powerpc*-*linux*)
5898 LD="${LD-ld} -m elf64ppc"
5899 ;;
5900 s390*-*linux*)
5901 LD="${LD-ld} -m elf64_s390"
5902 ;;
5903 sparc*-*linux*)
5904 LD="${LD-ld} -m elf64_sparc"
5905 ;;
5906 esac
5907 ;;
5908 esac
5909 fi
5910 rm -rf conftest*
5911 ;;
5912
5913 *-*-sco3.2v5*)
5914 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5915 SAVE_CFLAGS="$CFLAGS"
5916 CFLAGS="$CFLAGS -belf"
5917 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5918 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5919 if test "${lt_cv_cc_needs_belf+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922 ac_ext=c
5923 ac_cpp='$CPP $CPPFLAGS'
5924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934
5935 int
5936 main ()
5937 {
5938
5939 ;
5940 return 0;
5941 }
5942 _ACEOF
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945 (eval $ac_link) 2>conftest.er1
5946 ac_status=$?
5947 grep -v '^ *+' conftest.er1 >conftest.err
5948 rm -f conftest.er1
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -z "$ac_c_werror_flag"
5953 || test ! -s conftest.err'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 (eval $ac_try) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; } &&
5959 { ac_try='test -s conftest$ac_exeext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 lt_cv_cc_needs_belf=yes
5966 else
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5969
5970 lt_cv_cc_needs_belf=no
5971 fi
5972 rm -f conftest.err conftest.$ac_objext \
5973 conftest$ac_exeext conftest.$ac_ext
5974 ac_ext=c
5975 ac_cpp='$CPP $CPPFLAGS'
5976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5979
5980 fi
5981 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5982 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5983 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5984 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5985 CFLAGS="$SAVE_CFLAGS"
5986 fi
5987 ;;
5988 sparc*-*solaris*)
5989 # Find out which ABI we are using.
5990 echo 'int i;' > conftest.$ac_ext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; then
5996 case `/usr/bin/file conftest.o` in
5997 *64-bit*)
5998 case $lt_cv_prog_gnu_ld in
5999 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6000 *) LD="${LD-ld} -64" ;;
6001 esac
6002 ;;
6003 esac
6004 fi
6005 rm -rf conftest*
6006 ;;
6007
6008
6009 esac
6010
6011 need_locks="$enable_libtool_lock"
6012
6013
6014 ac_ext=c
6015 ac_cpp='$CPP $CPPFLAGS'
6016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6019 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6020 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6021 # On Suns, sometimes $CPP names a directory.
6022 if test -n "$CPP" && test -d "$CPP"; then
6023 CPP=
6024 fi
6025 if test -z "$CPP"; then
6026 if test "${ac_cv_prog_CPP+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029 # Double quotes because CPP needs to be expanded
6030 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6031 do
6032 ac_preproc_ok=false
6033 for ac_c_preproc_warn_flag in '' yes
6034 do
6035 # Use a header file that comes with gcc, so configuring glibc
6036 # with a fresh cross-compiler works.
6037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6038 # <limits.h> exists even on freestanding compilers.
6039 # On the NeXT, cc -E runs the code through the compiler's parser,
6040 # not just through cpp. "Syntax error" is here to catch this case.
6041 cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h. */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 #ifdef __STDC__
6048 # include <limits.h>
6049 #else
6050 # include <assert.h>
6051 #endif
6052 Syntax error
6053 _ACEOF
6054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } >/dev/null; then
6062 if test -s conftest.err; then
6063 ac_cpp_err=$ac_c_preproc_warn_flag
6064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6065 else
6066 ac_cpp_err=
6067 fi
6068 else
6069 ac_cpp_err=yes
6070 fi
6071 if test -z "$ac_cpp_err"; then
6072 :
6073 else
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077 # Broken: fails on valid input.
6078 continue
6079 fi
6080 rm -f conftest.err conftest.$ac_ext
6081
6082 # OK, works on sane cases. Now check whether non-existent headers
6083 # can be detected and how.
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h. */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 #include <ac_nonexistent.h>
6091 _ACEOF
6092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } >/dev/null; then
6100 if test -s conftest.err; then
6101 ac_cpp_err=$ac_c_preproc_warn_flag
6102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6103 else
6104 ac_cpp_err=
6105 fi
6106 else
6107 ac_cpp_err=yes
6108 fi
6109 if test -z "$ac_cpp_err"; then
6110 # Broken: success on invalid input.
6111 continue
6112 else
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6115
6116 # Passes both tests.
6117 ac_preproc_ok=:
6118 break
6119 fi
6120 rm -f conftest.err conftest.$ac_ext
6121
6122 done
6123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6124 rm -f conftest.err conftest.$ac_ext
6125 if $ac_preproc_ok; then
6126 break
6127 fi
6128
6129 done
6130 ac_cv_prog_CPP=$CPP
6131
6132 fi
6133 CPP=$ac_cv_prog_CPP
6134 else
6135 ac_cv_prog_CPP=$CPP
6136 fi
6137 echo "$as_me:$LINENO: result: $CPP" >&5
6138 echo "${ECHO_T}$CPP" >&6
6139 ac_preproc_ok=false
6140 for ac_c_preproc_warn_flag in '' yes
6141 do
6142 # Use a header file that comes with gcc, so configuring glibc
6143 # with a fresh cross-compiler works.
6144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6145 # <limits.h> exists even on freestanding compilers.
6146 # On the NeXT, cc -E runs the code through the compiler's parser,
6147 # not just through cpp. "Syntax error" is here to catch this case.
6148 cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h. */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 #ifdef __STDC__
6155 # include <limits.h>
6156 #else
6157 # include <assert.h>
6158 #endif
6159 Syntax error
6160 _ACEOF
6161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } >/dev/null; then
6169 if test -s conftest.err; then
6170 ac_cpp_err=$ac_c_preproc_warn_flag
6171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6172 else
6173 ac_cpp_err=
6174 fi
6175 else
6176 ac_cpp_err=yes
6177 fi
6178 if test -z "$ac_cpp_err"; then
6179 :
6180 else
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6183
6184 # Broken: fails on valid input.
6185 continue
6186 fi
6187 rm -f conftest.err conftest.$ac_ext
6188
6189 # OK, works on sane cases. Now check whether non-existent headers
6190 # can be detected and how.
6191 cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 #include <ac_nonexistent.h>
6198 _ACEOF
6199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6201 ac_status=$?
6202 grep -v '^ *+' conftest.er1 >conftest.err
6203 rm -f conftest.er1
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } >/dev/null; then
6207 if test -s conftest.err; then
6208 ac_cpp_err=$ac_c_preproc_warn_flag
6209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6210 else
6211 ac_cpp_err=
6212 fi
6213 else
6214 ac_cpp_err=yes
6215 fi
6216 if test -z "$ac_cpp_err"; then
6217 # Broken: success on invalid input.
6218 continue
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 # Passes both tests.
6224 ac_preproc_ok=:
6225 break
6226 fi
6227 rm -f conftest.err conftest.$ac_ext
6228
6229 done
6230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6231 rm -f conftest.err conftest.$ac_ext
6232 if $ac_preproc_ok; then
6233 :
6234 else
6235 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6236 See \`config.log' for more details." >&5
6237 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6238 See \`config.log' for more details." >&2;}
6239 { (exit 1); exit 1; }; }
6240 fi
6241
6242 ac_ext=c
6243 ac_cpp='$CPP $CPPFLAGS'
6244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6247
6248
6249 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6250 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6251 if test "${ac_cv_header_stdc+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254 cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h. */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6260 #include <stdlib.h>
6261 #include <stdarg.h>
6262 #include <string.h>
6263 #include <float.h>
6264
6265 int
6266 main ()
6267 {
6268
6269 ;
6270 return 0;
6271 }
6272 _ACEOF
6273 rm -f conftest.$ac_objext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275 (eval $ac_compile) 2>conftest.er1
6276 ac_status=$?
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try='test -z "$ac_c_werror_flag"
6283 || test ! -s conftest.err'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 (eval $ac_try) 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; } &&
6289 { ac_try='test -s conftest.$ac_objext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_header_stdc=yes
6296 else
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 ac_cv_header_stdc=no
6301 fi
6302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6303
6304 if test $ac_cv_header_stdc = yes; then
6305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6306 cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h. */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 #include <string.h>
6313
6314 _ACEOF
6315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6316 $EGREP "memchr" >/dev/null 2>&1; then
6317 :
6318 else
6319 ac_cv_header_stdc=no
6320 fi
6321 rm -f conftest*
6322
6323 fi
6324
6325 if test $ac_cv_header_stdc = yes; then
6326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6327 cat >conftest.$ac_ext <<_ACEOF
6328 /* confdefs.h. */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6333 #include <stdlib.h>
6334
6335 _ACEOF
6336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6337 $EGREP "free" >/dev/null 2>&1; then
6338 :
6339 else
6340 ac_cv_header_stdc=no
6341 fi
6342 rm -f conftest*
6343
6344 fi
6345
6346 if test $ac_cv_header_stdc = yes; then
6347 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6348 if test "$cross_compiling" = yes; then
6349 :
6350 else
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 #include <ctype.h>
6358 #if ((' ' & 0x0FF) == 0x020)
6359 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6360 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6361 #else
6362 # define ISLOWER(c) \
6363 (('a' <= (c) && (c) <= 'i') \
6364 || ('j' <= (c) && (c) <= 'r') \
6365 || ('s' <= (c) && (c) <= 'z'))
6366 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6367 #endif
6368
6369 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6370 int
6371 main ()
6372 {
6373 int i;
6374 for (i = 0; i < 256; i++)
6375 if (XOR (islower (i), ISLOWER (i))
6376 || toupper (i) != TOUPPER (i))
6377 exit(2);
6378 exit (0);
6379 }
6380 _ACEOF
6381 rm -f conftest$ac_exeext
6382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6383 (eval $ac_link) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 :
6393 else
6394 echo "$as_me: program exited with status $ac_status" >&5
6395 echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6397
6398 ( exit $ac_status )
6399 ac_cv_header_stdc=no
6400 fi
6401 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6402 fi
6403 fi
6404 fi
6405 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6406 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6407 if test $ac_cv_header_stdc = yes; then
6408
6409 cat >>confdefs.h <<\_ACEOF
6410 #define STDC_HEADERS 1
6411 _ACEOF
6412
6413 fi
6414
6415 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6426 inttypes.h stdint.h unistd.h
6427 do
6428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6429 echo "$as_me:$LINENO: checking for $ac_header" >&5
6430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h. */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 $ac_includes_default
6441
6442 #include <$ac_header>
6443 _ACEOF
6444 rm -f conftest.$ac_objext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6446 (eval $ac_compile) 2>conftest.er1
6447 ac_status=$?
6448 grep -v '^ *+' conftest.er1 >conftest.err
6449 rm -f conftest.er1
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } &&
6453 { ac_try='test -z "$ac_c_werror_flag"
6454 || test ! -s conftest.err'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest.$ac_objext'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 (eval $ac_try) 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 eval "$as_ac_Header=yes"
6467 else
6468 echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6470
6471 eval "$as_ac_Header=no"
6472 fi
6473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6474 fi
6475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6478 cat >>confdefs.h <<_ACEOF
6479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6480 _ACEOF
6481
6482 fi
6483
6484 done
6485
6486
6487
6488 for ac_header in dlfcn.h
6489 do
6490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6492 echo "$as_me:$LINENO: checking for $ac_header" >&5
6493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 fi
6497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6499 else
6500 # Is the header compilable?
6501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 $ac_includes_default
6510 #include <$ac_header>
6511 _ACEOF
6512 rm -f conftest.$ac_objext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6514 (eval $ac_compile) 2>conftest.er1
6515 ac_status=$?
6516 grep -v '^ *+' conftest.er1 >conftest.err
6517 rm -f conftest.er1
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } &&
6521 { ac_try='test -z "$ac_c_werror_flag"
6522 || test ! -s conftest.err'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 (eval $ac_try) 2>&5
6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; } &&
6528 { ac_try='test -s conftest.$ac_objext'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 (eval $ac_try) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; }; then
6534 ac_header_compiler=yes
6535 else
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6538
6539 ac_header_compiler=no
6540 fi
6541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6543 echo "${ECHO_T}$ac_header_compiler" >&6
6544
6545 # Is the header present?
6546 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6548 cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h. */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6554 #include <$ac_header>
6555 _ACEOF
6556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6558 ac_status=$?
6559 grep -v '^ *+' conftest.er1 >conftest.err
6560 rm -f conftest.er1
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } >/dev/null; then
6564 if test -s conftest.err; then
6565 ac_cpp_err=$ac_c_preproc_warn_flag
6566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6567 else
6568 ac_cpp_err=
6569 fi
6570 else
6571 ac_cpp_err=yes
6572 fi
6573 if test -z "$ac_cpp_err"; then
6574 ac_header_preproc=yes
6575 else
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6578
6579 ac_header_preproc=no
6580 fi
6581 rm -f conftest.err conftest.$ac_ext
6582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6583 echo "${ECHO_T}$ac_header_preproc" >&6
6584
6585 # So? What about this header?
6586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6587 yes:no: )
6588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6592 ac_header_preproc=yes
6593 ;;
6594 no:yes:* )
6595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6607 (
6608 cat <<\_ASBOX
6609 ## ----------------------------------- ##
6610 ## Report this to [email protected] ##
6611 ## ----------------------------------- ##
6612 _ASBOX
6613 ) |
6614 sed "s/^/$as_me: WARNING: /" >&2
6615 ;;
6616 esac
6617 echo "$as_me:$LINENO: checking for $ac_header" >&5
6618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622 eval "$as_ac_Header=\$ac_header_preproc"
6623 fi
6624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6626
6627 fi
6628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6629 cat >>confdefs.h <<_ACEOF
6630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6631 _ACEOF
6632
6633 fi
6634
6635 done
6636
6637
6638
6639 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6640 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6641 (test "X$CXX" != "Xg++"))) ; then
6642 ac_ext=cc
6643 ac_cpp='$CXXCPP $CPPFLAGS'
6644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6647 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6648 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6649 if test -z "$CXXCPP"; then
6650 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653 # Double quotes because CXXCPP needs to be expanded
6654 for CXXCPP in "$CXX -E" "/lib/cpp"
6655 do
6656 ac_preproc_ok=false
6657 for ac_cxx_preproc_warn_flag in '' yes
6658 do
6659 # Use a header file that comes with gcc, so configuring glibc
6660 # with a fresh cross-compiler works.
6661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6662 # <limits.h> exists even on freestanding compilers.
6663 # On the NeXT, cc -E runs the code through the compiler's parser,
6664 # not just through cpp. "Syntax error" is here to catch this case.
6665 cat >conftest.$ac_ext <<_ACEOF
6666 /* confdefs.h. */
6667 _ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6671 #ifdef __STDC__
6672 # include <limits.h>
6673 #else
6674 # include <assert.h>
6675 #endif
6676 Syntax error
6677 _ACEOF
6678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6680 ac_status=$?
6681 grep -v '^ *+' conftest.er1 >conftest.err
6682 rm -f conftest.er1
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } >/dev/null; then
6686 if test -s conftest.err; then
6687 ac_cpp_err=$ac_cxx_preproc_warn_flag
6688 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6689 else
6690 ac_cpp_err=
6691 fi
6692 else
6693 ac_cpp_err=yes
6694 fi
6695 if test -z "$ac_cpp_err"; then
6696 :
6697 else
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6700
6701 # Broken: fails on valid input.
6702 continue
6703 fi
6704 rm -f conftest.err conftest.$ac_ext
6705
6706 # OK, works on sane cases. Now check whether non-existent headers
6707 # can be detected and how.
6708 cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h. */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6714 #include <ac_nonexistent.h>
6715 _ACEOF
6716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6718 ac_status=$?
6719 grep -v '^ *+' conftest.er1 >conftest.err
6720 rm -f conftest.er1
6721 cat conftest.err >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } >/dev/null; then
6724 if test -s conftest.err; then
6725 ac_cpp_err=$ac_cxx_preproc_warn_flag
6726 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6727 else
6728 ac_cpp_err=
6729 fi
6730 else
6731 ac_cpp_err=yes
6732 fi
6733 if test -z "$ac_cpp_err"; then
6734 # Broken: success on invalid input.
6735 continue
6736 else
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6739
6740 # Passes both tests.
6741 ac_preproc_ok=:
6742 break
6743 fi
6744 rm -f conftest.err conftest.$ac_ext
6745
6746 done
6747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6748 rm -f conftest.err conftest.$ac_ext
6749 if $ac_preproc_ok; then
6750 break
6751 fi
6752
6753 done
6754 ac_cv_prog_CXXCPP=$CXXCPP
6755
6756 fi
6757 CXXCPP=$ac_cv_prog_CXXCPP
6758 else
6759 ac_cv_prog_CXXCPP=$CXXCPP
6760 fi
6761 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6762 echo "${ECHO_T}$CXXCPP" >&6
6763 ac_preproc_ok=false
6764 for ac_cxx_preproc_warn_flag in '' yes
6765 do
6766 # Use a header file that comes with gcc, so configuring glibc
6767 # with a fresh cross-compiler works.
6768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6769 # <limits.h> exists even on freestanding compilers.
6770 # On the NeXT, cc -E runs the code through the compiler's parser,
6771 # not just through cpp. "Syntax error" is here to catch this case.
6772 cat >conftest.$ac_ext <<_ACEOF
6773 /* confdefs.h. */
6774 _ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778 #ifdef __STDC__
6779 # include <limits.h>
6780 #else
6781 # include <assert.h>
6782 #endif
6783 Syntax error
6784 _ACEOF
6785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } >/dev/null; then
6793 if test -s conftest.err; then
6794 ac_cpp_err=$ac_cxx_preproc_warn_flag
6795 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6796 else
6797 ac_cpp_err=
6798 fi
6799 else
6800 ac_cpp_err=yes
6801 fi
6802 if test -z "$ac_cpp_err"; then
6803 :
6804 else
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6807
6808 # Broken: fails on valid input.
6809 continue
6810 fi
6811 rm -f conftest.err conftest.$ac_ext
6812
6813 # OK, works on sane cases. Now check whether non-existent headers
6814 # can be detected and how.
6815 cat >conftest.$ac_ext <<_ACEOF
6816 /* confdefs.h. */
6817 _ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6821 #include <ac_nonexistent.h>
6822 _ACEOF
6823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } >/dev/null; then
6831 if test -s conftest.err; then
6832 ac_cpp_err=$ac_cxx_preproc_warn_flag
6833 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6834 else
6835 ac_cpp_err=
6836 fi
6837 else
6838 ac_cpp_err=yes
6839 fi
6840 if test -z "$ac_cpp_err"; then
6841 # Broken: success on invalid input.
6842 continue
6843 else
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6846
6847 # Passes both tests.
6848 ac_preproc_ok=:
6849 break
6850 fi
6851 rm -f conftest.err conftest.$ac_ext
6852
6853 done
6854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6855 rm -f conftest.err conftest.$ac_ext
6856 if $ac_preproc_ok; then
6857 :
6858 else
6859 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6860 See \`config.log' for more details." >&5
6861 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6862 See \`config.log' for more details." >&2;}
6863 { (exit 1); exit 1; }; }
6864 fi
6865
6866 ac_ext=cc
6867 ac_cpp='$CXXCPP $CPPFLAGS'
6868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6871
6872 fi
6873
6874 ac_ext=f
6875 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6876 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6877 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6878 if test -n "$ac_tool_prefix"; then
6879 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6880 do
6881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6883 echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6885 if test "${ac_cv_prog_F77+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888 if test -n "$F77"; then
6889 ac_cv_prog_F77="$F77" # Let the user override the test.
6890 else
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6893 do
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 break 2
6901 fi
6902 done
6903 done
6904
6905 fi
6906 fi
6907 F77=$ac_cv_prog_F77
6908 if test -n "$F77"; then
6909 echo "$as_me:$LINENO: result: $F77" >&5
6910 echo "${ECHO_T}$F77" >&6
6911 else
6912 echo "$as_me:$LINENO: result: no" >&5
6913 echo "${ECHO_T}no" >&6
6914 fi
6915
6916 test -n "$F77" && break
6917 done
6918 fi
6919 if test -z "$F77"; then
6920 ac_ct_F77=$F77
6921 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6922 do
6923 # Extract the first word of "$ac_prog", so it can be a program name with args.
6924 set dummy $ac_prog; ac_word=$2
6925 echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6927 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930 if test -n "$ac_ct_F77"; then
6931 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_ac_ct_F77="$ac_prog"
6941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944 done
6945 done
6946
6947 fi
6948 fi
6949 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6950 if test -n "$ac_ct_F77"; then
6951 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6952 echo "${ECHO_T}$ac_ct_F77" >&6
6953 else
6954 echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6
6956 fi
6957
6958 test -n "$ac_ct_F77" && break
6959 done
6960
6961 F77=$ac_ct_F77
6962 fi
6963
6964
6965 # Provide some information about the compiler.
6966 echo "$as_me:6966:" \
6967 "checking for Fortran 77 compiler version" >&5
6968 ac_compiler=`set X $ac_compile; echo $2`
6969 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6970 (eval $ac_compiler --version </dev/null >&5) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }
6974 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6975 (eval $ac_compiler -v </dev/null >&5) 2>&5
6976 ac_status=$?
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }
6979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6980 (eval $ac_compiler -V </dev/null >&5) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }
6984 rm -f a.out
6985
6986 # If we don't use `.F' as extension, the preprocessor is not run on the
6987 # input file. (Note that this only needs to work for GNU compilers.)
6988 ac_save_ext=$ac_ext
6989 ac_ext=F
6990 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6991 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6992 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 cat >conftest.$ac_ext <<_ACEOF
6996 program main
6997 #ifndef __GNUC__
6998 choke me
6999 #endif
7000
7001 end
7002 _ACEOF
7003 rm -f conftest.$ac_objext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005 (eval $ac_compile) 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -z "$ac_f77_werror_flag"
7013 || test ! -s conftest.err'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; } &&
7019 { ac_try='test -s conftest.$ac_objext'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7025 ac_compiler_gnu=yes
7026 else
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7029
7030 ac_compiler_gnu=no
7031 fi
7032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7033 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7034
7035 fi
7036 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7037 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7038 ac_ext=$ac_save_ext
7039 ac_test_FFLAGS=${FFLAGS+set}
7040 ac_save_FFLAGS=$FFLAGS
7041 FFLAGS=
7042 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7043 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7044 if test "${ac_cv_prog_f77_g+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047 FFLAGS=-g
7048 cat >conftest.$ac_ext <<_ACEOF
7049 program main
7050
7051 end
7052 _ACEOF
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>conftest.er1
7056 ac_status=$?
7057 grep -v '^ *+' conftest.er1 >conftest.err
7058 rm -f conftest.er1
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try='test -z "$ac_f77_werror_flag"
7063 || test ! -s conftest.err'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 (eval $ac_try) 2>&5
7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 (eval $ac_try) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7075 ac_cv_prog_f77_g=yes
7076 else
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080 ac_cv_prog_f77_g=no
7081 fi
7082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7083
7084 fi
7085 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7086 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7087 if test "$ac_test_FFLAGS" = set; then
7088 FFLAGS=$ac_save_FFLAGS
7089 elif test $ac_cv_prog_f77_g = yes; then
7090 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7091 FFLAGS="-g -O2"
7092 else
7093 FFLAGS="-g"
7094 fi
7095 else
7096 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7097 FFLAGS="-O2"
7098 else
7099 FFLAGS=
7100 fi
7101 fi
7102
7103 G77=`test $ac_compiler_gnu = yes && echo yes`
7104 ac_ext=c
7105 ac_cpp='$CPP $CPPFLAGS'
7106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7109
7110
7111
7112 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7113
7114 # find the maximum length of command line arguments
7115 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7116 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7117 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120 i=0
7121 teststring="ABCD"
7122
7123 case $build_os in
7124 msdosdjgpp*)
7125 # On DJGPP, this test can blow up pretty badly due to problems in libc
7126 # (any single argument exceeding 2000 bytes causes a buffer overrun
7127 # during glob expansion). Even if it were fixed, the result of this
7128 # check would be larger than it should be.
7129 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7130 ;;
7131
7132 gnu*)
7133 # Under GNU Hurd, this test is not required because there is
7134 # no limit to the length of command line arguments.
7135 # Libtool will interpret -1 as no limit whatsoever
7136 lt_cv_sys_max_cmd_len=-1;
7137 ;;
7138
7139 cygwin* | mingw*)
7140 # On Win9x/ME, this test blows up -- it succeeds, but takes
7141 # about 5 minutes as the teststring grows exponentially.
7142 # Worse, since 9x/ME are not pre-emptively multitasking,
7143 # you end up with a "frozen" computer, even though with patience
7144 # the test eventually succeeds (with a max line length of 256k).
7145 # Instead, let's just punt: use the minimum linelength reported by
7146 # all of the supported platforms: 8192 (on NT/2K/XP).
7147 lt_cv_sys_max_cmd_len=8192;
7148 ;;
7149
7150 amigaos*)
7151 # On AmigaOS with pdksh, this test takes hours, literally.
7152 # So we just punt and use a minimum line length of 8192.
7153 lt_cv_sys_max_cmd_len=8192;
7154 ;;
7155
7156 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7157 # This has been around since 386BSD, at least. Likely further.
7158 if test -x /sbin/sysctl; then
7159 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7160 elif test -x /usr/sbin/sysctl; then
7161 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7162 else
7163 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7164 fi
7165 # And add a safety zone
7166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7168 ;;
7169
7170 interix*)
7171 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7172 lt_cv_sys_max_cmd_len=196608
7173 ;;
7174
7175 osf*)
7176 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7177 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7178 # nice to cause kernel panics so lets avoid the loop below.
7179 # First set a reasonable default.
7180 lt_cv_sys_max_cmd_len=16384
7181 #
7182 if test -x /sbin/sysconfig; then
7183 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7184 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7185 esac
7186 fi
7187 ;;
7188 sco3.2v5*)
7189 lt_cv_sys_max_cmd_len=102400
7190 ;;
7191 sysv5* | sco5v6* | sysv4.2uw2*)
7192 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7193 if test -n "$kargmax"; then
7194 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7195 else
7196 lt_cv_sys_max_cmd_len=32768
7197 fi
7198 ;;
7199 *)
7200 # If test is not a shell built-in, we'll probably end up computing a
7201 # maximum length that is only half of the actual maximum length, but
7202 # we can't tell.
7203 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7204 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7205 = "XX$teststring") >/dev/null 2>&1 &&
7206 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7207 lt_cv_sys_max_cmd_len=$new_result &&
7208 test $i != 17 # 1/2 MB should be enough
7209 do
7210 i=`expr $i + 1`
7211 teststring=$teststring$teststring
7212 done
7213 teststring=
7214 # Add a significant safety factor because C++ compilers can tack on massive
7215 # amounts of additional arguments before passing them to the linker.
7216 # It appears as though 1/2 is a usable value.
7217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7218 ;;
7219 esac
7220
7221 fi
7222
7223 if test -n $lt_cv_sys_max_cmd_len ; then
7224 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7225 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7226 else
7227 echo "$as_me:$LINENO: result: none" >&5
7228 echo "${ECHO_T}none" >&6
7229 fi
7230
7231
7232
7233
7234 # Check for command to grab the raw symbol name followed by C symbol from nm.
7235 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7236 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7237 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240
7241 # These are sane defaults that work on at least a few old systems.
7242 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7243
7244 # Character class describing NM global symbol codes.
7245 symcode='[BCDEGRST]'
7246
7247 # Regexp to match symbols that can be accessed directly from C.
7248 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7249
7250 # Transform an extracted symbol line into a proper C declaration
7251 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7252
7253 # Transform an extracted symbol line into symbol name and symbol address
7254 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'"
7255
7256 # Define system-specific variables.
7257 case $host_os in
7258 aix*)
7259 symcode='[BCDT]'
7260 ;;
7261 cygwin* | mingw* | pw32*)
7262 symcode='[ABCDGISTW]'
7263 ;;
7264 hpux*) # Its linker distinguishes data from code symbols
7265 if test "$host_cpu" = ia64; then
7266 symcode='[ABCDEGRST]'
7267 fi
7268 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7269 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'"
7270 ;;
7271 linux*)
7272 if test "$host_cpu" = ia64; then
7273 symcode='[ABCDGIRSTW]'
7274 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7275 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'"
7276 fi
7277 ;;
7278 irix* | nonstopux*)
7279 symcode='[BCDEGRST]'
7280 ;;
7281 osf*)
7282 symcode='[BCDEGQRST]'
7283 ;;
7284 solaris*)
7285 symcode='[BDRT]'
7286 ;;
7287 sco3.2v5*)
7288 symcode='[DT]'
7289 ;;
7290 sysv4.2uw2*)
7291 symcode='[DT]'
7292 ;;
7293 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7294 symcode='[ABDT]'
7295 ;;
7296 sysv4)
7297 symcode='[DFNSTU]'
7298 ;;
7299 esac
7300
7301 # Handle CRLF in mingw tool chain
7302 opt_cr=
7303 case $build_os in
7304 mingw*)
7305 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7306 ;;
7307 esac
7308
7309 # If we're using GNU nm, then use its standard symbol codes.
7310 case `$NM -V 2>&1` in
7311 *GNU* | *'with BFD'*)
7312 symcode='[ABCDGIRSTW]' ;;
7313 esac
7314
7315 # Try without a prefix undercore, then with it.
7316 for ac_symprfx in "" "_"; do
7317
7318 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7319 symxfrm="\\1 $ac_symprfx\\2 \\2"
7320
7321 # Write the raw and C identifiers.
7322 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7323
7324 # Check to see that the pipe works correctly.
7325 pipe_works=no
7326
7327 rm -f conftest*
7328 cat > conftest.$ac_ext <<EOF
7329 #ifdef __cplusplus
7330 extern "C" {
7331 #endif
7332 char nm_test_var;
7333 void nm_test_func(){}
7334 #ifdef __cplusplus
7335 }
7336 #endif
7337 int main(){nm_test_var='a';nm_test_func();return(0);}
7338 EOF
7339
7340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341 (eval $ac_compile) 2>&5
7342 ac_status=$?
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; then
7345 # Now try to grab the symbols.
7346 nlist=conftest.nm
7347 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7348 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } && test -s "$nlist"; then
7352 # Try sorting and uniquifying the output.
7353 if sort "$nlist" | uniq > "$nlist"T; then
7354 mv -f "$nlist"T "$nlist"
7355 else
7356 rm -f "$nlist"T
7357 fi
7358
7359 # Make sure that we snagged all the symbols we need.
7360 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7361 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7362 cat <<EOF > conftest.$ac_ext
7363 #ifdef __cplusplus
7364 extern "C" {
7365 #endif
7366
7367 EOF
7368 # Now generate the symbol file.
7369 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7370
7371 cat <<EOF >> conftest.$ac_ext
7372 #if defined (__STDC__) && __STDC__
7373 # define lt_ptr_t void *
7374 #else
7375 # define lt_ptr_t char *
7376 # define const
7377 #endif
7378
7379 /* The mapping between symbol names and symbols. */
7380 const struct {
7381 const char *name;
7382 lt_ptr_t address;
7383 }
7384 lt_preloaded_symbols[] =
7385 {
7386 EOF
7387 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7388 cat <<\EOF >> conftest.$ac_ext
7389 {0, (lt_ptr_t) 0}
7390 };
7391
7392 #ifdef __cplusplus
7393 }
7394 #endif
7395 EOF
7396 # Now try linking the two files.
7397 mv conftest.$ac_objext conftstm.$ac_objext
7398 lt_save_LIBS="$LIBS"
7399 lt_save_CFLAGS="$CFLAGS"
7400 LIBS="conftstm.$ac_objext"
7401 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403 (eval $ac_link) 2>&5
7404 ac_status=$?
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7407 pipe_works=yes
7408 fi
7409 LIBS="$lt_save_LIBS"
7410 CFLAGS="$lt_save_CFLAGS"
7411 else
7412 echo "cannot find nm_test_func in $nlist" >&5
7413 fi
7414 else
7415 echo "cannot find nm_test_var in $nlist" >&5
7416 fi
7417 else
7418 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7419 fi
7420 else
7421 echo "$progname: failed program was:" >&5
7422 cat conftest.$ac_ext >&5
7423 fi
7424 rm -f conftest* conftst*
7425
7426 # Do not use the global_symbol_pipe unless it works.
7427 if test "$pipe_works" = yes; then
7428 break
7429 else
7430 lt_cv_sys_global_symbol_pipe=
7431 fi
7432 done
7433
7434 fi
7435
7436 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7437 lt_cv_sys_global_symbol_to_cdecl=
7438 fi
7439 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7440 echo "$as_me:$LINENO: result: failed" >&5
7441 echo "${ECHO_T}failed" >&6
7442 else
7443 echo "$as_me:$LINENO: result: ok" >&5
7444 echo "${ECHO_T}ok" >&6
7445 fi
7446
7447 echo "$as_me:$LINENO: checking for objdir" >&5
7448 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7449 if test "${lt_cv_objdir+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 rm -f .libs 2>/dev/null
7453 mkdir .libs 2>/dev/null
7454 if test -d .libs; then
7455 lt_cv_objdir=.libs
7456 else
7457 # MS-DOS does not allow filenames that begin with a dot.
7458 lt_cv_objdir=_libs
7459 fi
7460 rmdir .libs 2>/dev/null
7461 fi
7462 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7463 echo "${ECHO_T}$lt_cv_objdir" >&6
7464 objdir=$lt_cv_objdir
7465
7466
7467
7468
7469
7470 case $host_os in
7471 aix3*)
7472 # AIX sometimes has problems with the GCC collect2 program. For some
7473 # reason, if we set the COLLECT_NAMES environment variable, the problems
7474 # vanish in a puff of smoke.
7475 if test "X${COLLECT_NAMES+set}" != Xset; then
7476 COLLECT_NAMES=
7477 export COLLECT_NAMES
7478 fi
7479 ;;
7480 esac
7481
7482 # Sed substitution that helps us do robust quoting. It backslashifies
7483 # metacharacters that are still active within double-quoted strings.
7484 Xsed='sed -e 1s/^X//'
7485 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7486
7487 # Same as above, but do not quote variable references.
7488 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7489
7490 # Sed substitution to delay expansion of an escaped shell variable in a
7491 # double_quote_subst'ed string.
7492 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7493
7494 # Sed substitution to avoid accidental globbing in evaled expressions
7495 no_glob_subst='s/\*/\\\*/g'
7496
7497 # Constants:
7498 rm="rm -f"
7499
7500 # Global variables:
7501 default_ofile=libtool
7502 can_build_shared=yes
7503
7504 # All known linkers require a `.a' archive for static linking (except MSVC,
7505 # which needs '.lib').
7506 libext=a
7507 ltmain="$ac_aux_dir/ltmain.sh"
7508 ofile="$default_ofile"
7509 with_gnu_ld="$lt_cv_prog_gnu_ld"
7510
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}ar; ac_word=$2
7514 echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7516 if test "${ac_cv_prog_AR+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519 if test -n "$AR"; then
7520 ac_cv_prog_AR="$AR" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_AR="${ac_tool_prefix}ar"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533 done
7534 done
7535
7536 fi
7537 fi
7538 AR=$ac_cv_prog_AR
7539 if test -n "$AR"; then
7540 echo "$as_me:$LINENO: result: $AR" >&5
7541 echo "${ECHO_T}$AR" >&6
7542 else
7543 echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6
7545 fi
7546
7547 fi
7548 if test -z "$ac_cv_prog_AR"; then
7549 ac_ct_AR=$AR
7550 # Extract the first word of "ar", so it can be a program name with args.
7551 set dummy ar; ac_word=$2
7552 echo "$as_me:$LINENO: checking for $ac_word" >&5
7553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7554 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 else
7557 if test -n "$ac_ct_AR"; then
7558 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7567 ac_cv_prog_ac_ct_AR="ar"
7568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 break 2
7570 fi
7571 done
7572 done
7573
7574 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7575 fi
7576 fi
7577 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7578 if test -n "$ac_ct_AR"; then
7579 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7580 echo "${ECHO_T}$ac_ct_AR" >&6
7581 else
7582 echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6
7584 fi
7585
7586 AR=$ac_ct_AR
7587 else
7588 AR="$ac_cv_prog_AR"
7589 fi
7590
7591 if test -n "$ac_tool_prefix"; then
7592 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7593 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7594 echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7596 if test "${ac_cv_prog_RANLIB+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599 if test -n "$RANLIB"; then
7600 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7601 else
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 for as_dir in $PATH
7604 do
7605 IFS=$as_save_IFS
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 break 2
7612 fi
7613 done
7614 done
7615
7616 fi
7617 fi
7618 RANLIB=$ac_cv_prog_RANLIB
7619 if test -n "$RANLIB"; then
7620 echo "$as_me:$LINENO: result: $RANLIB" >&5
7621 echo "${ECHO_T}$RANLIB" >&6
7622 else
7623 echo "$as_me:$LINENO: result: no" >&5
7624 echo "${ECHO_T}no" >&6
7625 fi
7626
7627 fi
7628 if test -z "$ac_cv_prog_RANLIB"; then
7629 ac_ct_RANLIB=$RANLIB
7630 # Extract the first word of "ranlib", so it can be a program name with args.
7631 set dummy ranlib; ac_word=$2
7632 echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7634 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 if test -n "$ac_ct_RANLIB"; then
7638 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7639 else
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7642 do
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647 ac_cv_prog_ac_ct_RANLIB="ranlib"
7648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 break 2
7650 fi
7651 done
7652 done
7653
7654 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7655 fi
7656 fi
7657 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7658 if test -n "$ac_ct_RANLIB"; then
7659 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7660 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7661 else
7662 echo "$as_me:$LINENO: result: no" >&5
7663 echo "${ECHO_T}no" >&6
7664 fi
7665
7666 RANLIB=$ac_ct_RANLIB
7667 else
7668 RANLIB="$ac_cv_prog_RANLIB"
7669 fi
7670
7671 if test -n "$ac_tool_prefix"; then
7672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7673 set dummy ${ac_tool_prefix}strip; ac_word=$2
7674 echo "$as_me:$LINENO: checking for $ac_word" >&5
7675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7676 if test "${ac_cv_prog_STRIP+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679 if test -n "$STRIP"; then
7680 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7681 else
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7692 fi
7693 done
7694 done
7695
7696 fi
7697 fi
7698 STRIP=$ac_cv_prog_STRIP
7699 if test -n "$STRIP"; then
7700 echo "$as_me:$LINENO: result: $STRIP" >&5
7701 echo "${ECHO_T}$STRIP" >&6
7702 else
7703 echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6
7705 fi
7706
7707 fi
7708 if test -z "$ac_cv_prog_STRIP"; then
7709 ac_ct_STRIP=$STRIP
7710 # Extract the first word of "strip", so it can be a program name with args.
7711 set dummy strip; ac_word=$2
7712 echo "$as_me:$LINENO: checking for $ac_word" >&5
7713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7714 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717 if test -n "$ac_ct_STRIP"; then
7718 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727 ac_cv_prog_ac_ct_STRIP="strip"
7728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 break 2
7730 fi
7731 done
7732 done
7733
7734 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7735 fi
7736 fi
7737 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7738 if test -n "$ac_ct_STRIP"; then
7739 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7740 echo "${ECHO_T}$ac_ct_STRIP" >&6
7741 else
7742 echo "$as_me:$LINENO: result: no" >&5
7743 echo "${ECHO_T}no" >&6
7744 fi
7745
7746 STRIP=$ac_ct_STRIP
7747 else
7748 STRIP="$ac_cv_prog_STRIP"
7749 fi
7750
7751
7752 old_CC="$CC"
7753 old_CFLAGS="$CFLAGS"
7754
7755 # Set sane defaults for various variables
7756 test -z "$AR" && AR=ar
7757 test -z "$AR_FLAGS" && AR_FLAGS=cru
7758 test -z "$AS" && AS=as
7759 test -z "$CC" && CC=cc
7760 test -z "$LTCC" && LTCC=$CC
7761 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7762 test -z "$DLLTOOL" && DLLTOOL=dlltool
7763 test -z "$LD" && LD=ld
7764 test -z "$LN_S" && LN_S="ln -s"
7765 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7766 test -z "$NM" && NM=nm
7767 test -z "$SED" && SED=sed
7768 test -z "$OBJDUMP" && OBJDUMP=objdump
7769 test -z "$RANLIB" && RANLIB=:
7770 test -z "$STRIP" && STRIP=:
7771 test -z "$ac_objext" && ac_objext=o
7772
7773 # Determine commands to create old-style static archives.
7774 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7775 old_postinstall_cmds='chmod 644 $oldlib'
7776 old_postuninstall_cmds=
7777
7778 if test -n "$RANLIB"; then
7779 case $host_os in
7780 openbsd*)
7781 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7782 ;;
7783 *)
7784 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7785 ;;
7786 esac
7787 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7788 fi
7789
7790 for cc_temp in $compiler""; do
7791 case $cc_temp in
7792 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7793 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7794 \-*) ;;
7795 *) break;;
7796 esac
7797 done
7798 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7799
7800
7801 # Only perform the check for file, if the check method requires it
7802 case $deplibs_check_method in
7803 file_magic*)
7804 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7805 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7806 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7807 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810 case $MAGIC_CMD in
7811 [\\/*] | ?:[\\/]*)
7812 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7813 ;;
7814 *)
7815 lt_save_MAGIC_CMD="$MAGIC_CMD"
7816 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7817 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7818 for ac_dir in $ac_dummy; do
7819 IFS="$lt_save_ifs"
7820 test -z "$ac_dir" && ac_dir=.
7821 if test -f $ac_dir/${ac_tool_prefix}file; then
7822 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7823 if test -n "$file_magic_test_file"; then
7824 case $deplibs_check_method in
7825 "file_magic "*)
7826 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7827 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7828 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7829 $EGREP "$file_magic_regex" > /dev/null; then
7830 :
7831 else
7832 cat <<EOF 1>&2
7833
7834 *** Warning: the command libtool uses to detect shared libraries,
7835 *** $file_magic_cmd, produces output that libtool cannot recognize.
7836 *** The result is that libtool may fail to recognize shared libraries
7837 *** as such. This will affect the creation of libtool libraries that
7838 *** depend on shared libraries, but programs linked with such libtool
7839 *** libraries will work regardless of this problem. Nevertheless, you
7840 *** may want to report the problem to your system manager and/or to
7841 *** [email protected]
7842
7843 EOF
7844 fi ;;
7845 esac
7846 fi
7847 break
7848 fi
7849 done
7850 IFS="$lt_save_ifs"
7851 MAGIC_CMD="$lt_save_MAGIC_CMD"
7852 ;;
7853 esac
7854 fi
7855
7856 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7857 if test -n "$MAGIC_CMD"; then
7858 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7859 echo "${ECHO_T}$MAGIC_CMD" >&6
7860 else
7861 echo "$as_me:$LINENO: result: no" >&5
7862 echo "${ECHO_T}no" >&6
7863 fi
7864
7865 if test -z "$lt_cv_path_MAGIC_CMD"; then
7866 if test -n "$ac_tool_prefix"; then
7867 echo "$as_me:$LINENO: checking for file" >&5
7868 echo $ECHO_N "checking for file... $ECHO_C" >&6
7869 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872 case $MAGIC_CMD in
7873 [\\/*] | ?:[\\/]*)
7874 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7875 ;;
7876 *)
7877 lt_save_MAGIC_CMD="$MAGIC_CMD"
7878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7879 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7880 for ac_dir in $ac_dummy; do
7881 IFS="$lt_save_ifs"
7882 test -z "$ac_dir" && ac_dir=.
7883 if test -f $ac_dir/file; then
7884 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7885 if test -n "$file_magic_test_file"; then
7886 case $deplibs_check_method in
7887 "file_magic "*)
7888 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7890 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7891 $EGREP "$file_magic_regex" > /dev/null; then
7892 :
7893 else
7894 cat <<EOF 1>&2
7895
7896 *** Warning: the command libtool uses to detect shared libraries,
7897 *** $file_magic_cmd, produces output that libtool cannot recognize.
7898 *** The result is that libtool may fail to recognize shared libraries
7899 *** as such. This will affect the creation of libtool libraries that
7900 *** depend on shared libraries, but programs linked with such libtool
7901 *** libraries will work regardless of this problem. Nevertheless, you
7902 *** may want to report the problem to your system manager and/or to
7903 *** [email protected]
7904
7905 EOF
7906 fi ;;
7907 esac
7908 fi
7909 break
7910 fi
7911 done
7912 IFS="$lt_save_ifs"
7913 MAGIC_CMD="$lt_save_MAGIC_CMD"
7914 ;;
7915 esac
7916 fi
7917
7918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7919 if test -n "$MAGIC_CMD"; then
7920 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7921 echo "${ECHO_T}$MAGIC_CMD" >&6
7922 else
7923 echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6
7925 fi
7926
7927 else
7928 MAGIC_CMD=:
7929 fi
7930 fi
7931
7932 fi
7933 ;;
7934 esac
7935
7936 enable_dlopen=no
7937 enable_win32_dll=no
7938
7939 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7940 if test "${enable_libtool_lock+set}" = set; then
7941 enableval="$enable_libtool_lock"
7942
7943 fi;
7944 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7945
7946
7947 # Check whether --with-pic or --without-pic was given.
7948 if test "${with_pic+set}" = set; then
7949 withval="$with_pic"
7950 pic_mode="$withval"
7951 else
7952 pic_mode=default
7953 fi;
7954 test -z "$pic_mode" && pic_mode=default
7955
7956 # Use C for the default configuration in the libtool script
7957 tagname=
7958 lt_save_CC="$CC"
7959 ac_ext=c
7960 ac_cpp='$CPP $CPPFLAGS'
7961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7964
7965
7966 # Source file extension for C test sources.
7967 ac_ext=c
7968
7969 # Object file extension for compiled C test sources.
7970 objext=o
7971 objext=$objext
7972
7973 # Code to be used in simple compile tests
7974 lt_simple_compile_test_code="int some_variable = 0;\n"
7975
7976 # Code to be used in simple link tests
7977 lt_simple_link_test_code='int main(){return(0);}\n'
7978
7979
7980 # If no C compiler was specified, use CC.
7981 LTCC=${LTCC-"$CC"}
7982
7983 # If no C compiler flags were specified, use CFLAGS.
7984 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7985
7986 # Allow CC to be a program name with arguments.
7987 compiler=$CC
7988
7989
7990 # save warnings/boilerplate of simple test code
7991 ac_outfile=conftest.$ac_objext
7992 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7993 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7994 _lt_compiler_boilerplate=`cat conftest.err`
7995 $rm conftest*
7996
7997 ac_outfile=conftest.$ac_objext
7998 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7999 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8000 _lt_linker_boilerplate=`cat conftest.err`
8001 $rm conftest*
8002
8003
8004 ## CAVEAT EMPTOR:
8005 ## There is no encapsulation within the following macros, do not change
8006 ## the running order or otherwise move them around unless you know exactly
8007 ## what you are doing...
8008
8009 lt_prog_compiler_no_builtin_flag=
8010
8011 if test "$GCC" = yes; then
8012 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8013
8014
8015 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8016 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8017 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020 lt_cv_prog_compiler_rtti_exceptions=no
8021 ac_outfile=conftest.$ac_objext
8022 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8023 lt_compiler_flag="-fno-rtti -fno-exceptions"
8024 # Insert the option either (1) after the last *FLAGS variable, or
8025 # (2) before a word containing "conftest.", or (3) at the end.
8026 # Note that $ac_compile itself does not contain backslashes and begins
8027 # with a dollar sign (not a hyphen), so the echo should work correctly.
8028 # The option is referenced via a variable to avoid confusing sed.
8029 lt_compile=`echo "$ac_compile" | $SED \
8030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8032 -e 's:$: $lt_compiler_flag:'`
8033 (eval echo "\"\$as_me:8033: $lt_compile\"" >&5)
8034 (eval "$lt_compile" 2>conftest.err)
8035 ac_status=$?
8036 cat conftest.err >&5
8037 echo "$as_me:8037: \$? = $ac_status" >&5
8038 if (exit $ac_status) && test -s "$ac_outfile"; then
8039 # The compiler can only warn and ignore the option if not recognized
8040 # So say no if there are warnings other than the usual output.
8041 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8043 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8044 lt_cv_prog_compiler_rtti_exceptions=yes
8045 fi
8046 fi
8047 $rm conftest*
8048
8049 fi
8050 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8051 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8052
8053 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8054 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8055 else
8056 :
8057 fi
8058
8059 fi
8060
8061 lt_prog_compiler_wl=
8062 lt_prog_compiler_pic=
8063 lt_prog_compiler_static=
8064
8065 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8066 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8067
8068 if test "$GCC" = yes; then
8069 lt_prog_compiler_wl='-Wl,'
8070 lt_prog_compiler_static='-static'
8071
8072 case $host_os in
8073 aix*)
8074 # All AIX code is PIC.
8075 if test "$host_cpu" = ia64; then
8076 # AIX 5 now supports IA64 processor
8077 lt_prog_compiler_static='-Bstatic'
8078 fi
8079 ;;
8080
8081 amigaos*)
8082 # FIXME: we need at least 68020 code to build shared libraries, but
8083 # adding the `-m68020' flag to GCC prevents building anything better,
8084 # like `-m68040'.
8085 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8086 ;;
8087
8088 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8089 # PIC is the default for these OSes.
8090 ;;
8091
8092 mingw* | pw32* | os2*)
8093 # This hack is so that the source file can tell whether it is being
8094 # built for inclusion in a dll (and should export symbols for example).
8095 lt_prog_compiler_pic='-DDLL_EXPORT'
8096 ;;
8097
8098 darwin* | rhapsody*)
8099 # PIC is the default on this platform
8100 # Common symbols not allowed in MH_DYLIB files
8101 lt_prog_compiler_pic='-fno-common'
8102 ;;
8103
8104 interix3*)
8105 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8106 # Instead, we relocate shared libraries at runtime.
8107 ;;
8108
8109 msdosdjgpp*)
8110 # Just because we use GCC doesn't mean we suddenly get shared libraries
8111 # on systems that don't support them.
8112 lt_prog_compiler_can_build_shared=no
8113 enable_shared=no
8114 ;;
8115
8116 sysv4*MP*)
8117 if test -d /usr/nec; then
8118 lt_prog_compiler_pic=-Kconform_pic
8119 fi
8120 ;;
8121
8122 hpux*)
8123 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8124 # not for PA HP-UX.
8125 case $host_cpu in
8126 hppa*64*|ia64*)
8127 # +Z the default
8128 ;;
8129 *)
8130 lt_prog_compiler_pic='-fPIC'
8131 ;;
8132 esac
8133 ;;
8134
8135 *)
8136 lt_prog_compiler_pic='-fPIC'
8137 ;;
8138 esac
8139 else
8140 # PORTME Check for flag to pass linker flags through the system compiler.
8141 case $host_os in
8142 aix*)
8143 lt_prog_compiler_wl='-Wl,'
8144 if test "$host_cpu" = ia64; then
8145 # AIX 5 now supports IA64 processor
8146 lt_prog_compiler_static='-Bstatic'
8147 else
8148 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8149 fi
8150 ;;
8151 darwin*)
8152 # PIC is the default on this platform
8153 # Common symbols not allowed in MH_DYLIB files
8154 case $cc_basename in
8155 xlc*)
8156 lt_prog_compiler_pic='-qnocommon'
8157 lt_prog_compiler_wl='-Wl,'
8158 ;;
8159 esac
8160 ;;
8161
8162 mingw* | pw32* | os2*)
8163 # This hack is so that the source file can tell whether it is being
8164 # built for inclusion in a dll (and should export symbols for example).
8165 lt_prog_compiler_pic='-DDLL_EXPORT'
8166 ;;
8167
8168 hpux9* | hpux10* | hpux11*)
8169 lt_prog_compiler_wl='-Wl,'
8170 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8171 # not for PA HP-UX.
8172 case $host_cpu in
8173 hppa*64*|ia64*)
8174 # +Z the default
8175 ;;
8176 *)
8177 lt_prog_compiler_pic='+Z'
8178 ;;
8179 esac
8180 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8181 lt_prog_compiler_static='${wl}-a ${wl}archive'
8182 ;;
8183
8184 irix5* | irix6* | nonstopux*)
8185 lt_prog_compiler_wl='-Wl,'
8186 # PIC (with -KPIC) is the default.
8187 lt_prog_compiler_static='-non_shared'
8188 ;;
8189
8190 newsos6)
8191 lt_prog_compiler_pic='-KPIC'
8192 lt_prog_compiler_static='-Bstatic'
8193 ;;
8194
8195 linux*)
8196 case $cc_basename in
8197 icc* | ecc*)
8198 lt_prog_compiler_wl='-Wl,'
8199 lt_prog_compiler_pic='-KPIC'
8200 lt_prog_compiler_static='-static'
8201 ;;
8202 pgcc* | pgf77* | pgf90* | pgf95*)
8203 # Portland Group compilers (*not* the Pentium gcc compiler,
8204 # which looks to be a dead project)
8205 lt_prog_compiler_wl='-Wl,'
8206 lt_prog_compiler_pic='-fpic'
8207 lt_prog_compiler_static='-Bstatic'
8208 ;;
8209 ccc*)
8210 lt_prog_compiler_wl='-Wl,'
8211 # All Alpha code is PIC.
8212 lt_prog_compiler_static='-non_shared'
8213 ;;
8214 esac
8215 ;;
8216
8217 osf3* | osf4* | osf5*)
8218 lt_prog_compiler_wl='-Wl,'
8219 # All OSF/1 code is PIC.
8220 lt_prog_compiler_static='-non_shared'
8221 ;;
8222
8223 solaris*)
8224 lt_prog_compiler_pic='-KPIC'
8225 lt_prog_compiler_static='-Bstatic'
8226 case $cc_basename in
8227 f77* | f90* | f95*)
8228 lt_prog_compiler_wl='-Qoption ld ';;
8229 *)
8230 lt_prog_compiler_wl='-Wl,';;
8231 esac
8232 ;;
8233
8234 sunos4*)
8235 lt_prog_compiler_wl='-Qoption ld '
8236 lt_prog_compiler_pic='-PIC'
8237 lt_prog_compiler_static='-Bstatic'
8238 ;;
8239
8240 sysv4 | sysv4.2uw2* | sysv4.3*)
8241 lt_prog_compiler_wl='-Wl,'
8242 lt_prog_compiler_pic='-KPIC'
8243 lt_prog_compiler_static='-Bstatic'
8244 ;;
8245
8246 sysv4*MP*)
8247 if test -d /usr/nec ;then
8248 lt_prog_compiler_pic='-Kconform_pic'
8249 lt_prog_compiler_static='-Bstatic'
8250 fi
8251 ;;
8252
8253 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8254 lt_prog_compiler_wl='-Wl,'
8255 lt_prog_compiler_pic='-KPIC'
8256 lt_prog_compiler_static='-Bstatic'
8257 ;;
8258
8259 unicos*)
8260 lt_prog_compiler_wl='-Wl,'
8261 lt_prog_compiler_can_build_shared=no
8262 ;;
8263
8264 uts4*)
8265 lt_prog_compiler_pic='-pic'
8266 lt_prog_compiler_static='-Bstatic'
8267 ;;
8268
8269 *)
8270 lt_prog_compiler_can_build_shared=no
8271 ;;
8272 esac
8273 fi
8274
8275 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8276 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8277
8278 #
8279 # Check to make sure the PIC flag actually works.
8280 #
8281 if test -n "$lt_prog_compiler_pic"; then
8282
8283 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8284 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8285 if test "${lt_prog_compiler_pic_works+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 lt_prog_compiler_pic_works=no
8289 ac_outfile=conftest.$ac_objext
8290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8291 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8292 # Insert the option either (1) after the last *FLAGS variable, or
8293 # (2) before a word containing "conftest.", or (3) at the end.
8294 # Note that $ac_compile itself does not contain backslashes and begins
8295 # with a dollar sign (not a hyphen), so the echo should work correctly.
8296 # The option is referenced via a variable to avoid confusing sed.
8297 lt_compile=`echo "$ac_compile" | $SED \
8298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8300 -e 's:$: $lt_compiler_flag:'`
8301 (eval echo "\"\$as_me:8301: $lt_compile\"" >&5)
8302 (eval "$lt_compile" 2>conftest.err)
8303 ac_status=$?
8304 cat conftest.err >&5
8305 echo "$as_me:8305: \$? = $ac_status" >&5
8306 if (exit $ac_status) && test -s "$ac_outfile"; then
8307 # The compiler can only warn and ignore the option if not recognized
8308 # So say no if there are warnings other than the usual output.
8309 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8311 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8312 lt_prog_compiler_pic_works=yes
8313 fi
8314 fi
8315 $rm conftest*
8316
8317 fi
8318 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8319 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8320
8321 if test x"$lt_prog_compiler_pic_works" = xyes; then
8322 case $lt_prog_compiler_pic in
8323 "" | " "*) ;;
8324 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8325 esac
8326 else
8327 lt_prog_compiler_pic=
8328 lt_prog_compiler_can_build_shared=no
8329 fi
8330
8331 fi
8332 case $host_os in
8333 # For platforms which do not support PIC, -DPIC is meaningless:
8334 *djgpp*)
8335 lt_prog_compiler_pic=
8336 ;;
8337 *)
8338 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8339 ;;
8340 esac
8341
8342 #
8343 # Check to make sure the static flag actually works.
8344 #
8345 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8346 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8347 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8348 if test "${lt_prog_compiler_static_works+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351 lt_prog_compiler_static_works=no
8352 save_LDFLAGS="$LDFLAGS"
8353 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8354 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8355 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8356 # The linker can only warn and ignore the option if not recognized
8357 # So say no if there are warnings
8358 if test -s conftest.err; then
8359 # Append any errors to the config.log.
8360 cat conftest.err 1>&5
8361 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8363 if diff conftest.exp conftest.er2 >/dev/null; then
8364 lt_prog_compiler_static_works=yes
8365 fi
8366 else
8367 lt_prog_compiler_static_works=yes
8368 fi
8369 fi
8370 $rm conftest*
8371 LDFLAGS="$save_LDFLAGS"
8372
8373 fi
8374 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8375 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8376
8377 if test x"$lt_prog_compiler_static_works" = xyes; then
8378 :
8379 else
8380 lt_prog_compiler_static=
8381 fi
8382
8383
8384 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8385 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8386 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389 lt_cv_prog_compiler_c_o=no
8390 $rm -r conftest 2>/dev/null
8391 mkdir conftest
8392 cd conftest
8393 mkdir out
8394 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8395
8396 lt_compiler_flag="-o out/conftest2.$ac_objext"
8397 # Insert the option either (1) after the last *FLAGS variable, or
8398 # (2) before a word containing "conftest.", or (3) at the end.
8399 # Note that $ac_compile itself does not contain backslashes and begins
8400 # with a dollar sign (not a hyphen), so the echo should work correctly.
8401 lt_compile=`echo "$ac_compile" | $SED \
8402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8404 -e 's:$: $lt_compiler_flag:'`
8405 (eval echo "\"\$as_me:8405: $lt_compile\"" >&5)
8406 (eval "$lt_compile" 2>out/conftest.err)
8407 ac_status=$?
8408 cat out/conftest.err >&5
8409 echo "$as_me:8409: \$? = $ac_status" >&5
8410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8411 then
8412 # The compiler can only warn and ignore the option if not recognized
8413 # So say no if there are warnings
8414 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8417 lt_cv_prog_compiler_c_o=yes
8418 fi
8419 fi
8420 chmod u+w . 2>&5
8421 $rm conftest*
8422 # SGI C++ compiler will create directory out/ii_files/ for
8423 # template instantiation
8424 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8425 $rm out/* && rmdir out
8426 cd ..
8427 rmdir conftest
8428 $rm conftest*
8429
8430 fi
8431 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8432 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8433
8434
8435 hard_links="nottested"
8436 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8437 # do not overwrite the value of need_locks provided by the user
8438 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8439 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8440 hard_links=yes
8441 $rm conftest*
8442 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8443 touch conftest.a
8444 ln conftest.a conftest.b 2>&5 || hard_links=no
8445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8446 echo "$as_me:$LINENO: result: $hard_links" >&5
8447 echo "${ECHO_T}$hard_links" >&6
8448 if test "$hard_links" = no; then
8449 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8450 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8451 need_locks=warn
8452 fi
8453 else
8454 need_locks=no
8455 fi
8456
8457 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8458 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8459
8460 runpath_var=
8461 allow_undefined_flag=
8462 enable_shared_with_static_runtimes=no
8463 archive_cmds=
8464 archive_expsym_cmds=
8465 old_archive_From_new_cmds=
8466 old_archive_from_expsyms_cmds=
8467 export_dynamic_flag_spec=
8468 whole_archive_flag_spec=
8469 thread_safe_flag_spec=
8470 hardcode_libdir_flag_spec=
8471 hardcode_libdir_flag_spec_ld=
8472 hardcode_libdir_separator=
8473 hardcode_direct=no
8474 hardcode_minus_L=no
8475 hardcode_shlibpath_var=unsupported
8476 link_all_deplibs=unknown
8477 hardcode_automatic=no
8478 module_cmds=
8479 module_expsym_cmds=
8480 always_export_symbols=no
8481 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8482 # include_expsyms should be a list of space-separated symbols to be *always*
8483 # included in the symbol list
8484 include_expsyms=
8485 # exclude_expsyms can be an extended regexp of symbols to exclude
8486 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8487 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8488 # as well as any symbol that contains `d'.
8489 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8490 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8491 # platforms (ab)use it in PIC code, but their linkers get confused if
8492 # the symbol is explicitly referenced. Since portable code cannot
8493 # rely on this symbol name, it's probably fine to never include it in
8494 # preloaded symbol tables.
8495 extract_expsyms_cmds=
8496 # Just being paranoid about ensuring that cc_basename is set.
8497 for cc_temp in $compiler""; do
8498 case $cc_temp in
8499 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8500 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8501 \-*) ;;
8502 *) break;;
8503 esac
8504 done
8505 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8506
8507 case $host_os in
8508 cygwin* | mingw* | pw32*)
8509 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8510 # When not using gcc, we currently assume that we are using
8511 # Microsoft Visual C++.
8512 if test "$GCC" != yes; then
8513 with_gnu_ld=no
8514 fi
8515 ;;
8516 interix*)
8517 # we just hope/assume this is gcc and not c89 (= MSVC++)
8518 with_gnu_ld=yes
8519 ;;
8520 openbsd*)
8521 with_gnu_ld=no
8522 ;;
8523 esac
8524
8525 ld_shlibs=yes
8526 if test "$with_gnu_ld" = yes; then
8527 # If archive_cmds runs LD, not CC, wlarc should be empty
8528 wlarc='${wl}'
8529
8530 # Set some defaults for GNU ld with shared library support. These
8531 # are reset later if shared libraries are not supported. Putting them
8532 # here allows them to be overridden if necessary.
8533 runpath_var=LD_RUN_PATH
8534 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8535 export_dynamic_flag_spec='${wl}--export-dynamic'
8536 # ancient GNU ld didn't support --whole-archive et. al.
8537 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8538 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8539 else
8540 whole_archive_flag_spec=
8541 fi
8542 supports_anon_versioning=no
8543 case `$LD -v 2>/dev/null` in
8544 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8545 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8546 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8547 *\ 2.11.*) ;; # other 2.11 versions
8548 *) supports_anon_versioning=yes ;;
8549 esac
8550
8551 # See if GNU ld supports shared libraries.
8552 case $host_os in
8553 aix3* | aix4* | aix5*)
8554 # On AIX/PPC, the GNU linker is very broken
8555 if test "$host_cpu" != ia64; then
8556 ld_shlibs=no
8557 cat <<EOF 1>&2
8558
8559 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8560 *** to be unable to reliably create shared libraries on AIX.
8561 *** Therefore, libtool is disabling shared libraries support. If you
8562 *** really care for shared libraries, you may want to modify your PATH
8563 *** so that a non-GNU linker is found, and then restart.
8564
8565 EOF
8566 fi
8567 ;;
8568
8569 amigaos*)
8570 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)'
8571 hardcode_libdir_flag_spec='-L$libdir'
8572 hardcode_minus_L=yes
8573
8574 # Samuel A. Falvo II <[email protected]> reports
8575 # that the semantics of dynamic libraries on AmigaOS, at least up
8576 # to version 4, is to share data among multiple programs linked
8577 # with the same dynamic library. Since this doesn't match the
8578 # behavior of shared libraries on other platforms, we can't use
8579 # them.
8580 ld_shlibs=no
8581 ;;
8582
8583 beos*)
8584 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8585 allow_undefined_flag=unsupported
8586 # Joseph Beckenbach <[email protected]> says some releases of gcc
8587 # support --undefined. This deserves some investigation. FIXME
8588 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8589 else
8590 ld_shlibs=no
8591 fi
8592 ;;
8593
8594 cygwin* | mingw* | pw32*)
8595 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8596 # as there is no search path for DLLs.
8597 hardcode_libdir_flag_spec='-L$libdir'
8598 allow_undefined_flag=unsupported
8599 always_export_symbols=no
8600 enable_shared_with_static_runtimes=yes
8601 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8602
8603 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8605 # If the export-symbols file already is a .def file (1st line
8606 # is EXPORTS), use it as is; otherwise, prepend...
8607 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8608 cp $export_symbols $output_objdir/$soname.def;
8609 else
8610 echo EXPORTS > $output_objdir/$soname.def;
8611 cat $export_symbols >> $output_objdir/$soname.def;
8612 fi~
8613 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8614 else
8615 ld_shlibs=no
8616 fi
8617 ;;
8618
8619 interix3*)
8620 hardcode_direct=no
8621 hardcode_shlibpath_var=no
8622 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8623 export_dynamic_flag_spec='${wl}-E'
8624 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8625 # Instead, shared libraries are loaded at an image base (0x10000000 by
8626 # default) and relocated if they conflict, which is a slow very memory
8627 # consuming and fragmenting process. To avoid this, we pick a random,
8628 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8629 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8630 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8631 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'
8632 ;;
8633
8634 linux*)
8635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8636 tmp_addflag=
8637 case $cc_basename,$host_cpu in
8638 pgcc*) # Portland Group C compiler
8639 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'
8640 tmp_addflag=' $pic_flag'
8641 ;;
8642 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8643 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'
8644 tmp_addflag=' $pic_flag -Mnomain' ;;
8645 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8646 tmp_addflag=' -i_dynamic' ;;
8647 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8648 tmp_addflag=' -i_dynamic -nofor_main' ;;
8649 ifc* | ifort*) # Intel Fortran compiler
8650 tmp_addflag=' -nofor_main' ;;
8651 esac
8652 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8653
8654 if test $supports_anon_versioning = yes; then
8655 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8656 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8657 $echo "local: *; };" >> $output_objdir/$libname.ver~
8658 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8659 fi
8660 else
8661 ld_shlibs=no
8662 fi
8663 ;;
8664
8665 netbsd*)
8666 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8667 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8668 wlarc=
8669 else
8670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8671 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8672 fi
8673 ;;
8674
8675 solaris*)
8676 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8677 ld_shlibs=no
8678 cat <<EOF 1>&2
8679
8680 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8681 *** create shared libraries on Solaris systems. Therefore, libtool
8682 *** is disabling shared libraries support. We urge you to upgrade GNU
8683 *** binutils to release 2.9.1 or newer. Another option is to modify
8684 *** your PATH or compiler configuration so that the native linker is
8685 *** used, and then restart.
8686
8687 EOF
8688 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8691 else
8692 ld_shlibs=no
8693 fi
8694 ;;
8695
8696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8697 case `$LD -v 2>&1` in
8698 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8699 ld_shlibs=no
8700 cat <<_LT_EOF 1>&2
8701
8702 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8703 *** reliably create shared libraries on SCO systems. Therefore, libtool
8704 *** is disabling shared libraries support. We urge you to upgrade GNU
8705 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8706 *** your PATH or compiler configuration so that the native linker is
8707 *** used, and then restart.
8708
8709 _LT_EOF
8710 ;;
8711 *)
8712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8713 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8715 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8716 else
8717 ld_shlibs=no
8718 fi
8719 ;;
8720 esac
8721 ;;
8722
8723 sunos4*)
8724 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8725 wlarc=
8726 hardcode_direct=yes
8727 hardcode_shlibpath_var=no
8728 ;;
8729
8730 *)
8731 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8734 else
8735 ld_shlibs=no
8736 fi
8737 ;;
8738 esac
8739
8740 if test "$ld_shlibs" = no; then
8741 runpath_var=
8742 hardcode_libdir_flag_spec=
8743 export_dynamic_flag_spec=
8744 whole_archive_flag_spec=
8745 fi
8746 else
8747 # PORTME fill in a description of your system's linker (not GNU ld)
8748 case $host_os in
8749 aix3*)
8750 allow_undefined_flag=unsupported
8751 always_export_symbols=yes
8752 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'
8753 # Note: this linker hardcodes the directories in LIBPATH if there
8754 # are no directories specified by -L.
8755 hardcode_minus_L=yes
8756 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8757 # Neither direct hardcoding nor static linking is supported with a
8758 # broken collect2.
8759 hardcode_direct=unsupported
8760 fi
8761 ;;
8762
8763 aix4* | aix5*)
8764 if test "$host_cpu" = ia64; then
8765 # On IA64, the linker does run time linking by default, so we don't
8766 # have to do anything special.
8767 aix_use_runtimelinking=no
8768 exp_sym_flag='-Bexport'
8769 no_entry_flag=""
8770 else
8771 # If we're using GNU nm, then we don't want the "-C" option.
8772 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8773 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8774 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'
8775 else
8776 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'
8777 fi
8778 aix_use_runtimelinking=no
8779
8780 # Test if we are trying to use run time linking or normal
8781 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8782 # need to do runtime linking.
8783 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8784 for ld_flag in $LDFLAGS; do
8785 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8786 aix_use_runtimelinking=yes
8787 break
8788 fi
8789 done
8790 ;;
8791 esac
8792
8793 exp_sym_flag='-bexport'
8794 no_entry_flag='-bnoentry'
8795 fi
8796
8797 # When large executables or shared objects are built, AIX ld can
8798 # have problems creating the table of contents. If linking a library
8799 # or program results in "error TOC overflow" add -mminimal-toc to
8800 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8801 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8802
8803 archive_cmds=''
8804 hardcode_direct=yes
8805 hardcode_libdir_separator=':'
8806 link_all_deplibs=yes
8807
8808 if test "$GCC" = yes; then
8809 case $host_os in aix4.[012]|aix4.[012].*)
8810 # We only want to do this on AIX 4.2 and lower, the check
8811 # below for broken collect2 doesn't work under 4.3+
8812 collect2name=`${CC} -print-prog-name=collect2`
8813 if test -f "$collect2name" && \
8814 strings "$collect2name" | grep resolve_lib_name >/dev/null
8815 then
8816 # We have reworked collect2
8817 hardcode_direct=yes
8818 else
8819 # We have old collect2
8820 hardcode_direct=unsupported
8821 # It fails to find uninstalled libraries when the uninstalled
8822 # path is not listed in the libpath. Setting hardcode_minus_L
8823 # to unsupported forces relinking
8824 hardcode_minus_L=yes
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 hardcode_libdir_separator=
8827 fi
8828 ;;
8829 esac
8830 shared_flag='-shared'
8831 if test "$aix_use_runtimelinking" = yes; then
8832 shared_flag="$shared_flag "'${wl}-G'
8833 fi
8834 else
8835 # not using gcc
8836 if test "$host_cpu" = ia64; then
8837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8838 # chokes on -Wl,-G. The following line is correct:
8839 shared_flag='-G'
8840 else
8841 if test "$aix_use_runtimelinking" = yes; then
8842 shared_flag='${wl}-G'
8843 else
8844 shared_flag='${wl}-bM:SRE'
8845 fi
8846 fi
8847 fi
8848
8849 # It seems that -bexpall does not export symbols beginning with
8850 # underscore (_), so it is better to generate a list of symbols to export.
8851 always_export_symbols=yes
8852 if test "$aix_use_runtimelinking" = yes; then
8853 # Warning - without using the other runtime loading flags (-brtl),
8854 # -berok will link without error, but may produce a broken library.
8855 allow_undefined_flag='-berok'
8856 # Determine the default libpath from the value encoded in an empty executable.
8857 cat >conftest.$ac_ext <<_ACEOF
8858 /* confdefs.h. */
8859 _ACEOF
8860 cat confdefs.h >>conftest.$ac_ext
8861 cat >>conftest.$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8863
8864 int
8865 main ()
8866 {
8867
8868 ;
8869 return 0;
8870 }
8871 _ACEOF
8872 rm -f conftest.$ac_objext conftest$ac_exeext
8873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8874 (eval $ac_link) 2>conftest.er1
8875 ac_status=$?
8876 grep -v '^ *+' conftest.er1 >conftest.err
8877 rm -f conftest.er1
8878 cat conftest.err >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } &&
8881 { ac_try='test -z "$ac_c_werror_flag"
8882 || test ! -s conftest.err'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; } &&
8888 { ac_try='test -s conftest$ac_exeext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 (eval $ac_try) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894
8895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8896 }'`
8897 # Check for a 64-bit object if we didn't find anything.
8898 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; }
8899 }'`; fi
8900 else
8901 echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8903
8904 fi
8905 rm -f conftest.err conftest.$ac_objext \
8906 conftest$ac_exeext conftest.$ac_ext
8907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8908
8909 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8910 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"
8911 else
8912 if test "$host_cpu" = ia64; then
8913 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8914 allow_undefined_flag="-z nodefs"
8915 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"
8916 else
8917 # Determine the default libpath from the value encoded in an empty executable.
8918 cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h. */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924
8925 int
8926 main ()
8927 {
8928
8929 ;
8930 return 0;
8931 }
8932 _ACEOF
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935 (eval $ac_link) 2>conftest.er1
8936 ac_status=$?
8937 grep -v '^ *+' conftest.er1 >conftest.err
8938 rm -f conftest.er1
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -z "$ac_c_werror_flag"
8943 || test ! -s conftest.err'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 (eval $ac_try) 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; } &&
8949 { ac_try='test -s conftest$ac_exeext'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 (eval $ac_try) 2>&5
8952 ac_status=$?
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955
8956 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8957 }'`
8958 # Check for a 64-bit object if we didn't find anything.
8959 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; }
8960 }'`; fi
8961 else
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8964
8965 fi
8966 rm -f conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8969
8970 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8971 # Warning - without using the other run time loading flags,
8972 # -berok will link without error, but may produce a broken library.
8973 no_undefined_flag=' ${wl}-bernotok'
8974 allow_undefined_flag=' ${wl}-berok'
8975 # Exported symbols can be pulled into shared objects from archives
8976 whole_archive_flag_spec='$convenience'
8977 archive_cmds_need_lc=yes
8978 # This is similar to how AIX traditionally builds its shared libraries.
8979 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'
8980 fi
8981 fi
8982 ;;
8983
8984 amigaos*)
8985 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)'
8986 hardcode_libdir_flag_spec='-L$libdir'
8987 hardcode_minus_L=yes
8988 # see comment about different semantics on the GNU ld section
8989 ld_shlibs=no
8990 ;;
8991
8992 bsdi[45]*)
8993 export_dynamic_flag_spec=-rdynamic
8994 ;;
8995
8996 cygwin* | mingw* | pw32*)
8997 # When not using gcc, we currently assume that we are using
8998 # Microsoft Visual C++.
8999 # hardcode_libdir_flag_spec is actually meaningless, as there is
9000 # no search path for DLLs.
9001 hardcode_libdir_flag_spec=' '
9002 allow_undefined_flag=unsupported
9003 # Tell ltmain to make .lib files, not .a files.
9004 libext=lib
9005 # Tell ltmain to make .dll files, not .so files.
9006 shrext_cmds=".dll"
9007 # FIXME: Setting linknames here is a bad hack.
9008 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9009 # The linker will automatically build a .lib file if we build a DLL.
9010 old_archive_From_new_cmds='true'
9011 # FIXME: Should let the user specify the lib program.
9012 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9013 fix_srcfile_path='`cygpath -w "$srcfile"`'
9014 enable_shared_with_static_runtimes=yes
9015 ;;
9016
9017 darwin* | rhapsody*)
9018 case $host_os in
9019 rhapsody* | darwin1.[012])
9020 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9021 ;;
9022 *) # Darwin 1.3 on
9023 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9024 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9025 else
9026 case ${MACOSX_DEPLOYMENT_TARGET} in
9027 10.[012])
9028 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9029 ;;
9030 10.*)
9031 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9032 ;;
9033 esac
9034 fi
9035 ;;
9036 esac
9037 archive_cmds_need_lc=no
9038 hardcode_direct=no
9039 hardcode_automatic=yes
9040 hardcode_shlibpath_var=unsupported
9041 whole_archive_flag_spec=''
9042 link_all_deplibs=yes
9043 if test "$GCC" = yes ; then
9044 output_verbose_link_cmd='echo'
9045 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9046 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9047 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9048 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}'
9049 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}'
9050 else
9051 case $cc_basename in
9052 xlc*)
9053 output_verbose_link_cmd='echo'
9054 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9055 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9056 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9057 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}'
9058 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}'
9059 ;;
9060 *)
9061 ld_shlibs=no
9062 ;;
9063 esac
9064 fi
9065 ;;
9066
9067 dgux*)
9068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9069 hardcode_libdir_flag_spec='-L$libdir'
9070 hardcode_shlibpath_var=no
9071 ;;
9072
9073 freebsd1*)
9074 ld_shlibs=no
9075 ;;
9076
9077 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9078 # support. Future versions do this automatically, but an explicit c++rt0.o
9079 # does not break anything, and helps significantly (at the cost of a little
9080 # extra space).
9081 freebsd2.2*)
9082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9083 hardcode_libdir_flag_spec='-R$libdir'
9084 hardcode_direct=yes
9085 hardcode_shlibpath_var=no
9086 ;;
9087
9088 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9089 freebsd2*)
9090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9091 hardcode_direct=yes
9092 hardcode_minus_L=yes
9093 hardcode_shlibpath_var=no
9094 ;;
9095
9096 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9097 freebsd* | kfreebsd*-gnu | dragonfly*)
9098 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9099 hardcode_libdir_flag_spec='-R$libdir'
9100 hardcode_direct=yes
9101 hardcode_shlibpath_var=no
9102 ;;
9103
9104 hpux9*)
9105 if test "$GCC" = yes; then
9106 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'
9107 else
9108 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'
9109 fi
9110 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9111 hardcode_libdir_separator=:
9112 hardcode_direct=yes
9113
9114 # hardcode_minus_L: Not really in the search PATH,
9115 # but as the default location of the library.
9116 hardcode_minus_L=yes
9117 export_dynamic_flag_spec='${wl}-E'
9118 ;;
9119
9120 hpux10*)
9121 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9122 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9123 else
9124 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9125 fi
9126 if test "$with_gnu_ld" = no; then
9127 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9128 hardcode_libdir_separator=:
9129
9130 hardcode_direct=yes
9131 export_dynamic_flag_spec='${wl}-E'
9132
9133 # hardcode_minus_L: Not really in the search PATH,
9134 # but as the default location of the library.
9135 hardcode_minus_L=yes
9136 fi
9137 ;;
9138
9139 hpux11*)
9140 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9141 case $host_cpu in
9142 hppa*64*)
9143 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9144 ;;
9145 ia64*)
9146 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9147 ;;
9148 *)
9149 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9150 ;;
9151 esac
9152 else
9153 case $host_cpu in
9154 hppa*64*)
9155 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9156 ;;
9157 ia64*)
9158 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9159 ;;
9160 *)
9161 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9162 ;;
9163 esac
9164 fi
9165 if test "$with_gnu_ld" = no; then
9166 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9167 hardcode_libdir_separator=:
9168
9169 case $host_cpu in
9170 hppa*64*|ia64*)
9171 hardcode_libdir_flag_spec_ld='+b $libdir'
9172 hardcode_direct=no
9173 hardcode_shlibpath_var=no
9174 ;;
9175 *)
9176 hardcode_direct=yes
9177 export_dynamic_flag_spec='${wl}-E'
9178
9179 # hardcode_minus_L: Not really in the search PATH,
9180 # but as the default location of the library.
9181 hardcode_minus_L=yes
9182 ;;
9183 esac
9184 fi
9185 ;;
9186
9187 irix5* | irix6* | nonstopux*)
9188 if test "$GCC" = yes; then
9189 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'
9190 else
9191 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'
9192 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9193 fi
9194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9195 hardcode_libdir_separator=:
9196 link_all_deplibs=yes
9197 ;;
9198
9199 netbsd*)
9200 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9201 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9202 else
9203 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9204 fi
9205 hardcode_libdir_flag_spec='-R$libdir'
9206 hardcode_direct=yes
9207 hardcode_shlibpath_var=no
9208 ;;
9209
9210 newsos6)
9211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9212 hardcode_direct=yes
9213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9214 hardcode_libdir_separator=:
9215 hardcode_shlibpath_var=no
9216 ;;
9217
9218 openbsd*)
9219 hardcode_direct=yes
9220 hardcode_shlibpath_var=no
9221 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9223 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9224 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9225 export_dynamic_flag_spec='${wl}-E'
9226 else
9227 case $host_os in
9228 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9230 hardcode_libdir_flag_spec='-R$libdir'
9231 ;;
9232 *)
9233 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9234 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9235 ;;
9236 esac
9237 fi
9238 ;;
9239
9240 os2*)
9241 hardcode_libdir_flag_spec='-L$libdir'
9242 hardcode_minus_L=yes
9243 allow_undefined_flag=unsupported
9244 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'
9245 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9246 ;;
9247
9248 osf3*)
9249 if test "$GCC" = yes; then
9250 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9251 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'
9252 else
9253 allow_undefined_flag=' -expect_unresolved \*'
9254 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'
9255 fi
9256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9257 hardcode_libdir_separator=:
9258 ;;
9259
9260 osf4* | osf5*) # as osf3* with the addition of -msym flag
9261 if test "$GCC" = yes; then
9262 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9263 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'
9264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9265 else
9266 allow_undefined_flag=' -expect_unresolved \*'
9267 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'
9268 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9269 $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'
9270
9271 # Both c and cxx compiler support -rpath directly
9272 hardcode_libdir_flag_spec='-rpath $libdir'
9273 fi
9274 hardcode_libdir_separator=:
9275 ;;
9276
9277 solaris*)
9278 no_undefined_flag=' -z text'
9279 if test "$GCC" = yes; then
9280 wlarc='${wl}'
9281 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9282 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9283 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9284 else
9285 wlarc=''
9286 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9288 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9289 fi
9290 hardcode_libdir_flag_spec='-R$libdir'
9291 hardcode_shlibpath_var=no
9292 case $host_os in
9293 solaris2.[0-5] | solaris2.[0-5].*) ;;
9294 *)
9295 # The compiler driver will combine linker options so we
9296 # cannot just pass the convience library names through
9297 # without $wl, iff we do not link with $LD.
9298 # Luckily, gcc supports the same syntax we need for Sun Studio.
9299 # Supported since Solaris 2.6 (maybe 2.5.1?)
9300 case $wlarc in
9301 '')
9302 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9303 *)
9304 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' ;;
9305 esac ;;
9306 esac
9307 link_all_deplibs=yes
9308 ;;
9309
9310 sunos4*)
9311 if test "x$host_vendor" = xsequent; then
9312 # Use $CC to link under sequent, because it throws in some extra .o
9313 # files that make .init and .fini sections work.
9314 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9315 else
9316 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9317 fi
9318 hardcode_libdir_flag_spec='-L$libdir'
9319 hardcode_direct=yes
9320 hardcode_minus_L=yes
9321 hardcode_shlibpath_var=no
9322 ;;
9323
9324 sysv4)
9325 case $host_vendor in
9326 sni)
9327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_direct=yes # is this really true???
9329 ;;
9330 siemens)
9331 ## LD is ld it makes a PLAMLIB
9332 ## CC just makes a GrossModule.
9333 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9334 reload_cmds='$CC -r -o $output$reload_objs'
9335 hardcode_direct=no
9336 ;;
9337 motorola)
9338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9340 ;;
9341 esac
9342 runpath_var='LD_RUN_PATH'
9343 hardcode_shlibpath_var=no
9344 ;;
9345
9346 sysv4.3*)
9347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_shlibpath_var=no
9349 export_dynamic_flag_spec='-Bexport'
9350 ;;
9351
9352 sysv4*MP*)
9353 if test -d /usr/nec; then
9354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355 hardcode_shlibpath_var=no
9356 runpath_var=LD_RUN_PATH
9357 hardcode_runpath_var=yes
9358 ld_shlibs=yes
9359 fi
9360 ;;
9361
9362 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9363 no_undefined_flag='${wl}-z,text'
9364 archive_cmds_need_lc=no
9365 hardcode_shlibpath_var=no
9366 runpath_var='LD_RUN_PATH'
9367
9368 if test "$GCC" = yes; then
9369 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9370 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9371 else
9372 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9373 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9374 fi
9375 ;;
9376
9377 sysv5* | sco3.2v5* | sco5v6*)
9378 # Note: We can NOT use -z defs as we might desire, because we do not
9379 # link with -lc, and that would cause any symbols used from libc to
9380 # always be unresolved, which means just about no library would
9381 # ever link correctly. If we're not using GNU ld we use -z text
9382 # though, which does catch some bad symbols but isn't as heavy-handed
9383 # as -z defs.
9384 no_undefined_flag='${wl}-z,text'
9385 allow_undefined_flag='${wl}-z,nodefs'
9386 archive_cmds_need_lc=no
9387 hardcode_shlibpath_var=no
9388 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9389 hardcode_libdir_separator=':'
9390 link_all_deplibs=yes
9391 export_dynamic_flag_spec='${wl}-Bexport'
9392 runpath_var='LD_RUN_PATH'
9393
9394 if test "$GCC" = yes; then
9395 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9397 else
9398 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9399 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 fi
9401 ;;
9402
9403 uts4*)
9404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9405 hardcode_libdir_flag_spec='-L$libdir'
9406 hardcode_shlibpath_var=no
9407 ;;
9408
9409 *)
9410 ld_shlibs=no
9411 ;;
9412 esac
9413 fi
9414
9415 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9416 echo "${ECHO_T}$ld_shlibs" >&6
9417 test "$ld_shlibs" = no && can_build_shared=no
9418
9419 #
9420 # Do we need to explicitly link libc?
9421 #
9422 case "x$archive_cmds_need_lc" in
9423 x|xyes)
9424 # Assume -lc should be added
9425 archive_cmds_need_lc=yes
9426
9427 if test "$enable_shared" = yes && test "$GCC" = yes; then
9428 case $archive_cmds in
9429 *'~'*)
9430 # FIXME: we may have to deal with multi-command sequences.
9431 ;;
9432 '$CC '*)
9433 # Test whether the compiler implicitly links with -lc since on some
9434 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9435 # to ld, don't add -lc before -lgcc.
9436 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9437 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9438 $rm conftest*
9439 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9440
9441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9442 (eval $ac_compile) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } 2>conftest.err; then
9446 soname=conftest
9447 lib=conftest
9448 libobjs=conftest.$ac_objext
9449 deplibs=
9450 wl=$lt_prog_compiler_wl
9451 pic_flag=$lt_prog_compiler_pic
9452 compiler_flags=-v
9453 linker_flags=-v
9454 verstring=
9455 output_objdir=.
9456 libname=conftest
9457 lt_save_allow_undefined_flag=$allow_undefined_flag
9458 allow_undefined_flag=
9459 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9460 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9461 ac_status=$?
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }
9464 then
9465 archive_cmds_need_lc=no
9466 else
9467 archive_cmds_need_lc=yes
9468 fi
9469 allow_undefined_flag=$lt_save_allow_undefined_flag
9470 else
9471 cat conftest.err 1>&5
9472 fi
9473 $rm conftest*
9474 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9475 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9476 ;;
9477 esac
9478 fi
9479 ;;
9480 esac
9481
9482 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9483 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9484 library_names_spec=
9485 libname_spec='lib$name'
9486 soname_spec=
9487 shrext_cmds=".so"
9488 postinstall_cmds=
9489 postuninstall_cmds=
9490 finish_cmds=
9491 finish_eval=
9492 shlibpath_var=
9493 shlibpath_overrides_runpath=unknown
9494 version_type=none
9495 dynamic_linker="$host_os ld.so"
9496 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9497 if test "$GCC" = yes; then
9498 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9499 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9500 # if the path contains ";" then we assume it to be the separator
9501 # otherwise default to the standard path separator (i.e. ":") - it is
9502 # assumed that no part of a normal pathname contains ";" but that should
9503 # okay in the real world where ";" in dirpaths is itself problematic.
9504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9505 else
9506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9507 fi
9508 else
9509 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9510 fi
9511 need_lib_prefix=unknown
9512 hardcode_into_libs=no
9513
9514 # when you set need_version to no, make sure it does not cause -set_version
9515 # flags to be left without arguments
9516 need_version=unknown
9517
9518 case $host_os in
9519 aix3*)
9520 version_type=linux
9521 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9522 shlibpath_var=LIBPATH
9523
9524 # AIX 3 has no versioning support, so we append a major version to the name.
9525 soname_spec='${libname}${release}${shared_ext}$major'
9526 ;;
9527
9528 aix4* | aix5*)
9529 version_type=linux
9530 need_lib_prefix=no
9531 need_version=no
9532 hardcode_into_libs=yes
9533 if test "$host_cpu" = ia64; then
9534 # AIX 5 supports IA64
9535 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9536 shlibpath_var=LD_LIBRARY_PATH
9537 else
9538 # With GCC up to 2.95.x, collect2 would create an import file
9539 # for dependence libraries. The import file would start with
9540 # the line `#! .'. This would cause the generated library to
9541 # depend on `.', always an invalid library. This was fixed in
9542 # development snapshots of GCC prior to 3.0.
9543 case $host_os in
9544 aix4 | aix4.[01] | aix4.[01].*)
9545 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9546 echo ' yes '
9547 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9548 :
9549 else
9550 can_build_shared=no
9551 fi
9552 ;;
9553 esac
9554 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9555 # soname into executable. Probably we can add versioning support to
9556 # collect2, so additional links can be useful in future.
9557 if test "$aix_use_runtimelinking" = yes; then
9558 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9559 # instead of lib<name>.a to let people know that these are not
9560 # typical AIX shared libraries.
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562 else
9563 # We preserve .a as extension for shared libraries through AIX4.2
9564 # and later when we are not doing run time linking.
9565 library_names_spec='${libname}${release}.a $libname.a'
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 fi
9568 shlibpath_var=LIBPATH
9569 fi
9570 ;;
9571
9572 amigaos*)
9573 library_names_spec='$libname.ixlibrary $libname.a'
9574 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9575 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'
9576 ;;
9577
9578 beos*)
9579 library_names_spec='${libname}${shared_ext}'
9580 dynamic_linker="$host_os ld.so"
9581 shlibpath_var=LIBRARY_PATH
9582 ;;
9583
9584 bsdi[45]*)
9585 version_type=linux
9586 need_version=no
9587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9588 soname_spec='${libname}${release}${shared_ext}$major'
9589 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9592 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9593 # the default ld.so.conf also contains /usr/contrib/lib and
9594 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9595 # libtool to hard-code these into programs
9596 ;;
9597
9598 cygwin* | mingw* | pw32*)
9599 version_type=windows
9600 shrext_cmds=".dll"
9601 need_version=no
9602 need_lib_prefix=no
9603
9604 case $GCC,$host_os in
9605 yes,cygwin* | yes,mingw* | yes,pw32*)
9606 library_names_spec='$libname.dll.a'
9607 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9608 postinstall_cmds='base_file=`basename \${file}`~
9609 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9610 dldir=$destdir/`dirname \$dlpath`~
9611 test -d \$dldir || mkdir -p \$dldir~
9612 $install_prog $dir/$dlname \$dldir/$dlname~
9613 chmod a+x \$dldir/$dlname'
9614 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9615 dlpath=$dir/\$dldll~
9616 $rm \$dlpath'
9617 shlibpath_overrides_runpath=yes
9618
9619 case $host_os in
9620 cygwin*)
9621 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9622 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9623 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9624 ;;
9625 mingw*)
9626 # MinGW DLLs use traditional 'lib' prefix
9627 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9628 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9629 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9630 # It is most probably a Windows format PATH printed by
9631 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9632 # path with ; separators, and with drive letters. We can handle the
9633 # drive letters (cygwin fileutils understands them), so leave them,
9634 # especially as we might pass files found there to a mingw objdump,
9635 # which wouldn't understand a cygwinified path. Ahh.
9636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9637 else
9638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9639 fi
9640 ;;
9641 pw32*)
9642 # pw32 DLLs use 'pw' prefix rather than 'lib'
9643 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9644 ;;
9645 esac
9646 ;;
9647
9648 *)
9649 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9650 ;;
9651 esac
9652 dynamic_linker='Win32 ld.exe'
9653 # FIXME: first we should search . and the directory the executable is in
9654 shlibpath_var=PATH
9655 ;;
9656
9657 darwin* | rhapsody*)
9658 dynamic_linker="$host_os dyld"
9659 version_type=darwin
9660 need_lib_prefix=no
9661 need_version=no
9662 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9663 soname_spec='${libname}${release}${major}$shared_ext'
9664 shlibpath_overrides_runpath=yes
9665 shlibpath_var=DYLD_LIBRARY_PATH
9666 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9667 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9668 if test "$GCC" = yes; then
9669 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"`
9670 else
9671 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9672 fi
9673 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9674 ;;
9675
9676 dgux*)
9677 version_type=linux
9678 need_lib_prefix=no
9679 need_version=no
9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9681 soname_spec='${libname}${release}${shared_ext}$major'
9682 shlibpath_var=LD_LIBRARY_PATH
9683 ;;
9684
9685 freebsd1*)
9686 dynamic_linker=no
9687 ;;
9688
9689 kfreebsd*-gnu)
9690 version_type=linux
9691 need_lib_prefix=no
9692 need_version=no
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9694 soname_spec='${libname}${release}${shared_ext}$major'
9695 shlibpath_var=LD_LIBRARY_PATH
9696 shlibpath_overrides_runpath=no
9697 hardcode_into_libs=yes
9698 dynamic_linker='GNU ld.so'
9699 ;;
9700
9701 freebsd* | dragonfly*)
9702 # DragonFly does not have aout. When/if they implement a new
9703 # versioning mechanism, adjust this.
9704 if test -x /usr/bin/objformat; then
9705 objformat=`/usr/bin/objformat`
9706 else
9707 case $host_os in
9708 freebsd[123]*) objformat=aout ;;
9709 *) objformat=elf ;;
9710 esac
9711 fi
9712 version_type=freebsd-$objformat
9713 case $version_type in
9714 freebsd-elf*)
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9716 need_version=no
9717 need_lib_prefix=no
9718 ;;
9719 freebsd-*)
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9721 need_version=yes
9722 ;;
9723 esac
9724 shlibpath_var=LD_LIBRARY_PATH
9725 case $host_os in
9726 freebsd2*)
9727 shlibpath_overrides_runpath=yes
9728 ;;
9729 freebsd3.[01]* | freebsdelf3.[01]*)
9730 shlibpath_overrides_runpath=yes
9731 hardcode_into_libs=yes
9732 ;;
9733 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9734 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9735 shlibpath_overrides_runpath=no
9736 hardcode_into_libs=yes
9737 ;;
9738 freebsd*) # from 4.6 on
9739 shlibpath_overrides_runpath=yes
9740 hardcode_into_libs=yes
9741 ;;
9742 esac
9743 ;;
9744
9745 gnu*)
9746 version_type=linux
9747 need_lib_prefix=no
9748 need_version=no
9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9750 soname_spec='${libname}${release}${shared_ext}$major'
9751 shlibpath_var=LD_LIBRARY_PATH
9752 hardcode_into_libs=yes
9753 ;;
9754
9755 hpux9* | hpux10* | hpux11*)
9756 # Give a soname corresponding to the major version so that dld.sl refuses to
9757 # link against other versions.
9758 version_type=sunos
9759 need_lib_prefix=no
9760 need_version=no
9761 case $host_cpu in
9762 ia64*)
9763 shrext_cmds='.so'
9764 hardcode_into_libs=yes
9765 dynamic_linker="$host_os dld.so"
9766 shlibpath_var=LD_LIBRARY_PATH
9767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769 soname_spec='${libname}${release}${shared_ext}$major'
9770 if test "X$HPUX_IA64_MODE" = X32; then
9771 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9772 else
9773 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9774 fi
9775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9776 ;;
9777 hppa*64*)
9778 shrext_cmds='.sl'
9779 hardcode_into_libs=yes
9780 dynamic_linker="$host_os dld.sl"
9781 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784 soname_spec='${libname}${release}${shared_ext}$major'
9785 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9787 ;;
9788 *)
9789 shrext_cmds='.sl'
9790 dynamic_linker="$host_os dld.sl"
9791 shlibpath_var=SHLIB_PATH
9792 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 soname_spec='${libname}${release}${shared_ext}$major'
9795 ;;
9796 esac
9797 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9798 postinstall_cmds='chmod 555 $lib'
9799 ;;
9800
9801 interix3*)
9802 version_type=linux
9803 need_lib_prefix=no
9804 need_version=no
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9808 shlibpath_var=LD_LIBRARY_PATH
9809 shlibpath_overrides_runpath=no
9810 hardcode_into_libs=yes
9811 ;;
9812
9813 irix5* | irix6* | nonstopux*)
9814 case $host_os in
9815 nonstopux*) version_type=nonstopux ;;
9816 *)
9817 if test "$lt_cv_prog_gnu_ld" = yes; then
9818 version_type=linux
9819 else
9820 version_type=irix
9821 fi ;;
9822 esac
9823 need_lib_prefix=no
9824 need_version=no
9825 soname_spec='${libname}${release}${shared_ext}$major'
9826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9827 case $host_os in
9828 irix5* | nonstopux*)
9829 libsuff= shlibsuff=
9830 ;;
9831 *)
9832 case $LD in # libtool.m4 will add one of these switches to LD
9833 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9834 libsuff= shlibsuff= libmagic=32-bit;;
9835 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9836 libsuff=32 shlibsuff=N32 libmagic=N32;;
9837 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9838 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9839 *) libsuff= shlibsuff= libmagic=never-match;;
9840 esac
9841 ;;
9842 esac
9843 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9844 shlibpath_overrides_runpath=no
9845 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9846 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9847 hardcode_into_libs=yes
9848 ;;
9849
9850 # No shared lib support for Linux oldld, aout, or coff.
9851 linux*oldld* | linux*aout* | linux*coff*)
9852 dynamic_linker=no
9853 ;;
9854
9855 # This must be Linux ELF.
9856 linux*)
9857 version_type=linux
9858 need_lib_prefix=no
9859 need_version=no
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861 soname_spec='${libname}${release}${shared_ext}$major'
9862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9863 shlibpath_var=LD_LIBRARY_PATH
9864 shlibpath_overrides_runpath=no
9865 # This implies no fast_install, which is unacceptable.
9866 # Some rework will be needed to allow for fast_install
9867 # before this can be enabled.
9868 hardcode_into_libs=yes
9869
9870 # Append ld.so.conf contents to the search path
9871 if test -f /etc/ld.so.conf; then
9872 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' ' '`
9873 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9874 fi
9875
9876 # We used to test for /lib/ld.so.1 and disable shared libraries on
9877 # powerpc, because MkLinux only supported shared libraries with the
9878 # GNU dynamic linker. Since this was broken with cross compilers,
9879 # most powerpc-linux boxes support dynamic linking these days and
9880 # people can always --disable-shared, the test was removed, and we
9881 # assume the GNU/Linux dynamic linker is in use.
9882 dynamic_linker='GNU/Linux ld.so'
9883 ;;
9884
9885 knetbsd*-gnu)
9886 version_type=linux
9887 need_lib_prefix=no
9888 need_version=no
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 shlibpath_var=LD_LIBRARY_PATH
9892 shlibpath_overrides_runpath=no
9893 hardcode_into_libs=yes
9894 dynamic_linker='GNU ld.so'
9895 ;;
9896
9897 netbsd*)
9898 version_type=sunos
9899 need_lib_prefix=no
9900 need_version=no
9901 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9904 dynamic_linker='NetBSD (a.out) ld.so'
9905 else
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 dynamic_linker='NetBSD ld.elf_so'
9909 fi
9910 shlibpath_var=LD_LIBRARY_PATH
9911 shlibpath_overrides_runpath=yes
9912 hardcode_into_libs=yes
9913 ;;
9914
9915 newsos6)
9916 version_type=linux
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918 shlibpath_var=LD_LIBRARY_PATH
9919 shlibpath_overrides_runpath=yes
9920 ;;
9921
9922 nto-qnx*)
9923 version_type=linux
9924 need_lib_prefix=no
9925 need_version=no
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 shlibpath_overrides_runpath=yes
9930 ;;
9931
9932 openbsd*)
9933 version_type=sunos
9934 sys_lib_dlsearch_path_spec="/usr/lib"
9935 need_lib_prefix=no
9936 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9937 case $host_os in
9938 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9939 *) need_version=no ;;
9940 esac
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9943 shlibpath_var=LD_LIBRARY_PATH
9944 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9945 case $host_os in
9946 openbsd2.[89] | openbsd2.[89].*)
9947 shlibpath_overrides_runpath=no
9948 ;;
9949 *)
9950 shlibpath_overrides_runpath=yes
9951 ;;
9952 esac
9953 else
9954 shlibpath_overrides_runpath=yes
9955 fi
9956 ;;
9957
9958 os2*)
9959 libname_spec='$name'
9960 shrext_cmds=".dll"
9961 need_lib_prefix=no
9962 library_names_spec='$libname${shared_ext} $libname.a'
9963 dynamic_linker='OS/2 ld.exe'
9964 shlibpath_var=LIBPATH
9965 ;;
9966
9967 osf3* | osf4* | osf5*)
9968 version_type=osf
9969 need_lib_prefix=no
9970 need_version=no
9971 soname_spec='${libname}${release}${shared_ext}$major'
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9973 shlibpath_var=LD_LIBRARY_PATH
9974 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9975 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9976 ;;
9977
9978 solaris*)
9979 version_type=linux
9980 need_lib_prefix=no
9981 need_version=no
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 shlibpath_overrides_runpath=yes
9986 hardcode_into_libs=yes
9987 # ldd complains unless libraries are executable
9988 postinstall_cmds='chmod +x $lib'
9989 ;;
9990
9991 sunos4*)
9992 version_type=sunos
9993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9994 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9995 shlibpath_var=LD_LIBRARY_PATH
9996 shlibpath_overrides_runpath=yes
9997 if test "$with_gnu_ld" = yes; then
9998 need_lib_prefix=no
9999 fi
10000 need_version=yes
10001 ;;
10002
10003 sysv4 | sysv4.3*)
10004 version_type=linux
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 shlibpath_var=LD_LIBRARY_PATH
10008 case $host_vendor in
10009 sni)
10010 shlibpath_overrides_runpath=no
10011 need_lib_prefix=no
10012 export_dynamic_flag_spec='${wl}-Blargedynsym'
10013 runpath_var=LD_RUN_PATH
10014 ;;
10015 siemens)
10016 need_lib_prefix=no
10017 ;;
10018 motorola)
10019 need_lib_prefix=no
10020 need_version=no
10021 shlibpath_overrides_runpath=no
10022 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10023 ;;
10024 esac
10025 ;;
10026
10027 sysv4*MP*)
10028 if test -d /usr/nec ;then
10029 version_type=linux
10030 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10031 soname_spec='$libname${shared_ext}.$major'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 fi
10034 ;;
10035
10036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10037 version_type=freebsd-elf
10038 need_lib_prefix=no
10039 need_version=no
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 hardcode_into_libs=yes
10044 if test "$with_gnu_ld" = yes; then
10045 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10046 shlibpath_overrides_runpath=no
10047 else
10048 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10049 shlibpath_overrides_runpath=yes
10050 case $host_os in
10051 sco3.2v5*)
10052 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10053 ;;
10054 esac
10055 fi
10056 sys_lib_dlsearch_path_spec='/usr/lib'
10057 ;;
10058
10059 uts4*)
10060 version_type=linux
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10062 soname_spec='${libname}${release}${shared_ext}$major'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 ;;
10065
10066 *)
10067 dynamic_linker=no
10068 ;;
10069 esac
10070 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10071 echo "${ECHO_T}$dynamic_linker" >&6
10072 test "$dynamic_linker" = no && can_build_shared=no
10073
10074 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10075 if test "$GCC" = yes; then
10076 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10077 fi
10078
10079 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10080 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10081 hardcode_action=
10082 if test -n "$hardcode_libdir_flag_spec" || \
10083 test -n "$runpath_var" || \
10084 test "X$hardcode_automatic" = "Xyes" ; then
10085
10086 # We can hardcode non-existant directories.
10087 if test "$hardcode_direct" != no &&
10088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10089 # have to relink, otherwise we might link with an installed library
10090 # when we should be linking with a yet-to-be-installed one
10091 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10092 test "$hardcode_minus_L" != no; then
10093 # Linking always hardcodes the temporary library directory.
10094 hardcode_action=relink
10095 else
10096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10097 hardcode_action=immediate
10098 fi
10099 else
10100 # We cannot hardcode anything, or else we can only hardcode existing
10101 # directories.
10102 hardcode_action=unsupported
10103 fi
10104 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10105 echo "${ECHO_T}$hardcode_action" >&6
10106
10107 if test "$hardcode_action" = relink; then
10108 # Fast installation is not supported
10109 enable_fast_install=no
10110 elif test "$shlibpath_overrides_runpath" = yes ||
10111 test "$enable_shared" = no; then
10112 # Fast installation is not necessary
10113 enable_fast_install=needless
10114 fi
10115
10116 striplib=
10117 old_striplib=
10118 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10119 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10120 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10121 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10122 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10123 echo "$as_me:$LINENO: result: yes" >&5
10124 echo "${ECHO_T}yes" >&6
10125 else
10126 # FIXME - insert some real tests, host_os isn't really good enough
10127 case $host_os in
10128 darwin*)
10129 if test -n "$STRIP" ; then
10130 striplib="$STRIP -x"
10131 echo "$as_me:$LINENO: result: yes" >&5
10132 echo "${ECHO_T}yes" >&6
10133 else
10134 echo "$as_me:$LINENO: result: no" >&5
10135 echo "${ECHO_T}no" >&6
10136 fi
10137 ;;
10138 *)
10139 echo "$as_me:$LINENO: result: no" >&5
10140 echo "${ECHO_T}no" >&6
10141 ;;
10142 esac
10143 fi
10144
10145 if test "x$enable_dlopen" != xyes; then
10146 enable_dlopen=unknown
10147 enable_dlopen_self=unknown
10148 enable_dlopen_self_static=unknown
10149 else
10150 lt_cv_dlopen=no
10151 lt_cv_dlopen_libs=
10152
10153 case $host_os in
10154 beos*)
10155 lt_cv_dlopen="load_add_on"
10156 lt_cv_dlopen_libs=
10157 lt_cv_dlopen_self=yes
10158 ;;
10159
10160 mingw* | pw32*)
10161 lt_cv_dlopen="LoadLibrary"
10162 lt_cv_dlopen_libs=
10163 ;;
10164
10165 cygwin*)
10166 lt_cv_dlopen="dlopen"
10167 lt_cv_dlopen_libs=
10168 ;;
10169
10170 darwin*)
10171 # if libdl is installed we need to link against it
10172 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10173 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10174 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 else
10177 ac_check_lib_save_LIBS=$LIBS
10178 LIBS="-ldl $LIBS"
10179 cat >conftest.$ac_ext <<_ACEOF
10180 /* confdefs.h. */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10185
10186 /* Override any gcc2 internal prototype to avoid an error. */
10187 #ifdef __cplusplus
10188 extern "C"
10189 #endif
10190 /* We use char because int might match the return type of a gcc2
10191 builtin and then its argument prototype would still apply. */
10192 char dlopen ();
10193 int
10194 main ()
10195 {
10196 dlopen ();
10197 ;
10198 return 0;
10199 }
10200 _ACEOF
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10203 (eval $ac_link) 2>conftest.er1
10204 ac_status=$?
10205 grep -v '^ *+' conftest.er1 >conftest.err
10206 rm -f conftest.er1
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } &&
10210 { ac_try='test -z "$ac_c_werror_flag"
10211 || test ! -s conftest.err'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; } &&
10217 { ac_try='test -s conftest$ac_exeext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 ac_cv_lib_dl_dlopen=yes
10224 else
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10227
10228 ac_cv_lib_dl_dlopen=no
10229 fi
10230 rm -f conftest.err conftest.$ac_objext \
10231 conftest$ac_exeext conftest.$ac_ext
10232 LIBS=$ac_check_lib_save_LIBS
10233 fi
10234 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10235 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10236 if test $ac_cv_lib_dl_dlopen = yes; then
10237 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10238 else
10239
10240 lt_cv_dlopen="dyld"
10241 lt_cv_dlopen_libs=
10242 lt_cv_dlopen_self=yes
10243
10244 fi
10245
10246 ;;
10247
10248 *)
10249 echo "$as_me:$LINENO: checking for shl_load" >&5
10250 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10251 if test "${ac_cv_func_shl_load+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 else
10254 cat >conftest.$ac_ext <<_ACEOF
10255 /* confdefs.h. */
10256 _ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h. */
10260 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10262 #define shl_load innocuous_shl_load
10263
10264 /* System header to define __stub macros and hopefully few prototypes,
10265 which can conflict with char shl_load (); below.
10266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10267 <limits.h> exists even on freestanding compilers. */
10268
10269 #ifdef __STDC__
10270 # include <limits.h>
10271 #else
10272 # include <assert.h>
10273 #endif
10274
10275 #undef shl_load
10276
10277 /* Override any gcc2 internal prototype to avoid an error. */
10278 #ifdef __cplusplus
10279 extern "C"
10280 {
10281 #endif
10282 /* We use char because int might match the return type of a gcc2
10283 builtin and then its argument prototype would still apply. */
10284 char shl_load ();
10285 /* The GNU C library defines this for functions which it implements
10286 to always fail with ENOSYS. Some functions are actually named
10287 something starting with __ and the normal name is an alias. */
10288 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10289 choke me
10290 #else
10291 char (*f) () = shl_load;
10292 #endif
10293 #ifdef __cplusplus
10294 }
10295 #endif
10296
10297 int
10298 main ()
10299 {
10300 return f != shl_load;
10301 ;
10302 return 0;
10303 }
10304 _ACEOF
10305 rm -f conftest.$ac_objext conftest$ac_exeext
10306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10307 (eval $ac_link) 2>conftest.er1
10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } &&
10314 { ac_try='test -z "$ac_c_werror_flag"
10315 || test ! -s conftest.err'
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; } &&
10321 { ac_try='test -s conftest$ac_exeext'
10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10324 ac_status=$?
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); }; }; then
10327 ac_cv_func_shl_load=yes
10328 else
10329 echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10331
10332 ac_cv_func_shl_load=no
10333 fi
10334 rm -f conftest.err conftest.$ac_objext \
10335 conftest$ac_exeext conftest.$ac_ext
10336 fi
10337 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10338 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10339 if test $ac_cv_func_shl_load = yes; then
10340 lt_cv_dlopen="shl_load"
10341 else
10342 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10343 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10344 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
10346 else
10347 ac_check_lib_save_LIBS=$LIBS
10348 LIBS="-ldld $LIBS"
10349 cat >conftest.$ac_ext <<_ACEOF
10350 /* confdefs.h. */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10355
10356 /* Override any gcc2 internal prototype to avoid an error. */
10357 #ifdef __cplusplus
10358 extern "C"
10359 #endif
10360 /* We use char because int might match the return type of a gcc2
10361 builtin and then its argument prototype would still apply. */
10362 char shl_load ();
10363 int
10364 main ()
10365 {
10366 shl_load ();
10367 ;
10368 return 0;
10369 }
10370 _ACEOF
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10373 (eval $ac_link) 2>conftest.er1
10374 ac_status=$?
10375 grep -v '^ *+' conftest.er1 >conftest.err
10376 rm -f conftest.er1
10377 cat conftest.err >&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try='test -z "$ac_c_werror_flag"
10381 || test ! -s conftest.err'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; } &&
10387 { ac_try='test -s conftest$ac_exeext'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 ac_cv_lib_dld_shl_load=yes
10394 else
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10397
10398 ac_cv_lib_dld_shl_load=no
10399 fi
10400 rm -f conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
10402 LIBS=$ac_check_lib_save_LIBS
10403 fi
10404 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10405 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10406 if test $ac_cv_lib_dld_shl_load = yes; then
10407 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10408 else
10409 echo "$as_me:$LINENO: checking for dlopen" >&5
10410 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10411 if test "${ac_cv_func_dlopen+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414 cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h. */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10422 #define dlopen innocuous_dlopen
10423
10424 /* System header to define __stub macros and hopefully few prototypes,
10425 which can conflict with char dlopen (); below.
10426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10427 <limits.h> exists even on freestanding compilers. */
10428
10429 #ifdef __STDC__
10430 # include <limits.h>
10431 #else
10432 # include <assert.h>
10433 #endif
10434
10435 #undef dlopen
10436
10437 /* Override any gcc2 internal prototype to avoid an error. */
10438 #ifdef __cplusplus
10439 extern "C"
10440 {
10441 #endif
10442 /* We use char because int might match the return type of a gcc2
10443 builtin and then its argument prototype would still apply. */
10444 char dlopen ();
10445 /* The GNU C library defines this for functions which it implements
10446 to always fail with ENOSYS. Some functions are actually named
10447 something starting with __ and the normal name is an alias. */
10448 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10449 choke me
10450 #else
10451 char (*f) () = dlopen;
10452 #endif
10453 #ifdef __cplusplus
10454 }
10455 #endif
10456
10457 int
10458 main ()
10459 {
10460 return f != dlopen;
10461 ;
10462 return 0;
10463 }
10464 _ACEOF
10465 rm -f conftest.$ac_objext conftest$ac_exeext
10466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10467 (eval $ac_link) 2>conftest.er1
10468 ac_status=$?
10469 grep -v '^ *+' conftest.er1 >conftest.err
10470 rm -f conftest.er1
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -z "$ac_c_werror_flag"
10475 || test ! -s conftest.err'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; } &&
10481 { ac_try='test -s conftest$ac_exeext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_cv_func_dlopen=yes
10488 else
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10491
10492 ac_cv_func_dlopen=no
10493 fi
10494 rm -f conftest.err conftest.$ac_objext \
10495 conftest$ac_exeext conftest.$ac_ext
10496 fi
10497 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10498 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10499 if test $ac_cv_func_dlopen = yes; then
10500 lt_cv_dlopen="dlopen"
10501 else
10502 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10503 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10504 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507 ac_check_lib_save_LIBS=$LIBS
10508 LIBS="-ldl $LIBS"
10509 cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h. */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515
10516 /* Override any gcc2 internal prototype to avoid an error. */
10517 #ifdef __cplusplus
10518 extern "C"
10519 #endif
10520 /* We use char because int might match the return type of a gcc2
10521 builtin and then its argument prototype would still apply. */
10522 char dlopen ();
10523 int
10524 main ()
10525 {
10526 dlopen ();
10527 ;
10528 return 0;
10529 }
10530 _ACEOF
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10533 (eval $ac_link) 2>conftest.er1
10534 ac_status=$?
10535 grep -v '^ *+' conftest.er1 >conftest.err
10536 rm -f conftest.er1
10537 cat conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } &&
10540 { ac_try='test -z "$ac_c_werror_flag"
10541 || test ! -s conftest.err'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; } &&
10547 { ac_try='test -s conftest$ac_exeext'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }; then
10553 ac_cv_lib_dl_dlopen=yes
10554 else
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10557
10558 ac_cv_lib_dl_dlopen=no
10559 fi
10560 rm -f conftest.err conftest.$ac_objext \
10561 conftest$ac_exeext conftest.$ac_ext
10562 LIBS=$ac_check_lib_save_LIBS
10563 fi
10564 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10565 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10566 if test $ac_cv_lib_dl_dlopen = yes; then
10567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10568 else
10569 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10570 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10571 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574 ac_check_lib_save_LIBS=$LIBS
10575 LIBS="-lsvld $LIBS"
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582
10583 /* Override any gcc2 internal prototype to avoid an error. */
10584 #ifdef __cplusplus
10585 extern "C"
10586 #endif
10587 /* We use char because int might match the return type of a gcc2
10588 builtin and then its argument prototype would still apply. */
10589 char dlopen ();
10590 int
10591 main ()
10592 {
10593 dlopen ();
10594 ;
10595 return 0;
10596 }
10597 _ACEOF
10598 rm -f conftest.$ac_objext conftest$ac_exeext
10599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10600 (eval $ac_link) 2>conftest.er1
10601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -z "$ac_c_werror_flag"
10608 || test ! -s conftest.err'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; } &&
10614 { ac_try='test -s conftest$ac_exeext'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10617 ac_status=$?
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; }; then
10620 ac_cv_lib_svld_dlopen=yes
10621 else
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10624
10625 ac_cv_lib_svld_dlopen=no
10626 fi
10627 rm -f conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10629 LIBS=$ac_check_lib_save_LIBS
10630 fi
10631 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10632 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10633 if test $ac_cv_lib_svld_dlopen = yes; then
10634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10635 else
10636 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10637 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10638 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641 ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-ldld $LIBS"
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h. */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649
10650 /* Override any gcc2 internal prototype to avoid an error. */
10651 #ifdef __cplusplus
10652 extern "C"
10653 #endif
10654 /* We use char because int might match the return type of a gcc2
10655 builtin and then its argument prototype would still apply. */
10656 char dld_link ();
10657 int
10658 main ()
10659 {
10660 dld_link ();
10661 ;
10662 return 0;
10663 }
10664 _ACEOF
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667 (eval $ac_link) 2>conftest.er1
10668 ac_status=$?
10669 grep -v '^ *+' conftest.er1 >conftest.err
10670 rm -f conftest.er1
10671 cat conftest.err >&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } &&
10674 { ac_try='test -z "$ac_c_werror_flag"
10675 || test ! -s conftest.err'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; } &&
10681 { ac_try='test -s conftest$ac_exeext'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 ac_cv_lib_dld_dld_link=yes
10688 else
10689 echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10691
10692 ac_cv_lib_dld_dld_link=no
10693 fi
10694 rm -f conftest.err conftest.$ac_objext \
10695 conftest$ac_exeext conftest.$ac_ext
10696 LIBS=$ac_check_lib_save_LIBS
10697 fi
10698 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10699 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10700 if test $ac_cv_lib_dld_dld_link = yes; then
10701 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10702 fi
10703
10704
10705 fi
10706
10707
10708 fi
10709
10710
10711 fi
10712
10713
10714 fi
10715
10716
10717 fi
10718
10719 ;;
10720 esac
10721
10722 if test "x$lt_cv_dlopen" != xno; then
10723 enable_dlopen=yes
10724 else
10725 enable_dlopen=no
10726 fi
10727
10728 case $lt_cv_dlopen in
10729 dlopen)
10730 save_CPPFLAGS="$CPPFLAGS"
10731 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10732
10733 save_LDFLAGS="$LDFLAGS"
10734 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10735
10736 save_LIBS="$LIBS"
10737 LIBS="$lt_cv_dlopen_libs $LIBS"
10738
10739 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10740 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10741 if test "${lt_cv_dlopen_self+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744 if test "$cross_compiling" = yes; then :
10745 lt_cv_dlopen_self=cross
10746 else
10747 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10748 lt_status=$lt_dlunknown
10749 cat > conftest.$ac_ext <<EOF
10750 #line 10750 "configure"
10751 #include "confdefs.h"
10752
10753 #if HAVE_DLFCN_H
10754 #include <dlfcn.h>
10755 #endif
10756
10757 #include <stdio.h>
10758
10759 #ifdef RTLD_GLOBAL
10760 # define LT_DLGLOBAL RTLD_GLOBAL
10761 #else
10762 # ifdef DL_GLOBAL
10763 # define LT_DLGLOBAL DL_GLOBAL
10764 # else
10765 # define LT_DLGLOBAL 0
10766 # endif
10767 #endif
10768
10769 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10770 find out it does not work in some platform. */
10771 #ifndef LT_DLLAZY_OR_NOW
10772 # ifdef RTLD_LAZY
10773 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10774 # else
10775 # ifdef DL_LAZY
10776 # define LT_DLLAZY_OR_NOW DL_LAZY
10777 # else
10778 # ifdef RTLD_NOW
10779 # define LT_DLLAZY_OR_NOW RTLD_NOW
10780 # else
10781 # ifdef DL_NOW
10782 # define LT_DLLAZY_OR_NOW DL_NOW
10783 # else
10784 # define LT_DLLAZY_OR_NOW 0
10785 # endif
10786 # endif
10787 # endif
10788 # endif
10789 #endif
10790
10791 #ifdef __cplusplus
10792 extern "C" void exit (int);
10793 #endif
10794
10795 void fnord() { int i=42;}
10796 int main ()
10797 {
10798 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10799 int status = $lt_dlunknown;
10800
10801 if (self)
10802 {
10803 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10804 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10805 /* dlclose (self); */
10806 }
10807 else
10808 puts (dlerror ());
10809
10810 exit (status);
10811 }
10812 EOF
10813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10814 (eval $ac_link) 2>&5
10815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10818 (./conftest; exit; ) >&5 2>/dev/null
10819 lt_status=$?
10820 case x$lt_status in
10821 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10822 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10823 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10824 esac
10825 else :
10826 # compilation failed
10827 lt_cv_dlopen_self=no
10828 fi
10829 fi
10830 rm -fr conftest*
10831
10832
10833 fi
10834 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10835 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10836
10837 if test "x$lt_cv_dlopen_self" = xyes; then
10838 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10839 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10840 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10841 if test "${lt_cv_dlopen_self_static+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844 if test "$cross_compiling" = yes; then :
10845 lt_cv_dlopen_self_static=cross
10846 else
10847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10848 lt_status=$lt_dlunknown
10849 cat > conftest.$ac_ext <<EOF
10850 #line 10850 "configure"
10851 #include "confdefs.h"
10852
10853 #if HAVE_DLFCN_H
10854 #include <dlfcn.h>
10855 #endif
10856
10857 #include <stdio.h>
10858
10859 #ifdef RTLD_GLOBAL
10860 # define LT_DLGLOBAL RTLD_GLOBAL
10861 #else
10862 # ifdef DL_GLOBAL
10863 # define LT_DLGLOBAL DL_GLOBAL
10864 # else
10865 # define LT_DLGLOBAL 0
10866 # endif
10867 #endif
10868
10869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10870 find out it does not work in some platform. */
10871 #ifndef LT_DLLAZY_OR_NOW
10872 # ifdef RTLD_LAZY
10873 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10874 # else
10875 # ifdef DL_LAZY
10876 # define LT_DLLAZY_OR_NOW DL_LAZY
10877 # else
10878 # ifdef RTLD_NOW
10879 # define LT_DLLAZY_OR_NOW RTLD_NOW
10880 # else
10881 # ifdef DL_NOW
10882 # define LT_DLLAZY_OR_NOW DL_NOW
10883 # else
10884 # define LT_DLLAZY_OR_NOW 0
10885 # endif
10886 # endif
10887 # endif
10888 # endif
10889 #endif
10890
10891 #ifdef __cplusplus
10892 extern "C" void exit (int);
10893 #endif
10894
10895 void fnord() { int i=42;}
10896 int main ()
10897 {
10898 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10899 int status = $lt_dlunknown;
10900
10901 if (self)
10902 {
10903 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10904 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10905 /* dlclose (self); */
10906 }
10907 else
10908 puts (dlerror ());
10909
10910 exit (status);
10911 }
10912 EOF
10913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914 (eval $ac_link) 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10918 (./conftest; exit; ) >&5 2>/dev/null
10919 lt_status=$?
10920 case x$lt_status in
10921 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10922 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10923 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10924 esac
10925 else :
10926 # compilation failed
10927 lt_cv_dlopen_self_static=no
10928 fi
10929 fi
10930 rm -fr conftest*
10931
10932
10933 fi
10934 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10935 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10936 fi
10937
10938 CPPFLAGS="$save_CPPFLAGS"
10939 LDFLAGS="$save_LDFLAGS"
10940 LIBS="$save_LIBS"
10941 ;;
10942 esac
10943
10944 case $lt_cv_dlopen_self in
10945 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10946 *) enable_dlopen_self=unknown ;;
10947 esac
10948
10949 case $lt_cv_dlopen_self_static in
10950 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10951 *) enable_dlopen_self_static=unknown ;;
10952 esac
10953 fi
10954
10955
10956 # Report which library types will actually be built
10957 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10958 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10959 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10960 echo "${ECHO_T}$can_build_shared" >&6
10961
10962 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10963 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10964 test "$can_build_shared" = "no" && enable_shared=no
10965
10966 # On AIX, shared libraries and static libraries use the same namespace, and
10967 # are all built from PIC.
10968 case $host_os in
10969 aix3*)
10970 test "$enable_shared" = yes && enable_static=no
10971 if test -n "$RANLIB"; then
10972 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10973 postinstall_cmds='$RANLIB $lib'
10974 fi
10975 ;;
10976
10977 aix4* | aix5*)
10978 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10979 test "$enable_shared" = yes && enable_static=no
10980 fi
10981 ;;
10982 esac
10983 echo "$as_me:$LINENO: result: $enable_shared" >&5
10984 echo "${ECHO_T}$enable_shared" >&6
10985
10986 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10987 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10988 # Make sure either enable_shared or enable_static is yes.
10989 test "$enable_shared" = yes || enable_static=yes
10990 echo "$as_me:$LINENO: result: $enable_static" >&5
10991 echo "${ECHO_T}$enable_static" >&6
10992
10993 # The else clause should only fire when bootstrapping the
10994 # libtool distribution, otherwise you forgot to ship ltmain.sh
10995 # with your package, and you will get complaints that there are
10996 # no rules to generate ltmain.sh.
10997 if test -f "$ltmain"; then
10998 # See if we are running on zsh, and set the options which allow our commands through
10999 # without removal of \ escapes.
11000 if test -n "${ZSH_VERSION+set}" ; then
11001 setopt NO_GLOB_SUBST
11002 fi
11003 # Now quote all the things that may contain metacharacters while being
11004 # careful not to overquote the AC_SUBSTed values. We take copies of the
11005 # variables and quote the copies for generation of the libtool script.
11006 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11007 SED SHELL STRIP \
11008 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11009 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11010 deplibs_check_method reload_flag reload_cmds need_locks \
11011 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11012 lt_cv_sys_global_symbol_to_c_name_address \
11013 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11014 old_postinstall_cmds old_postuninstall_cmds \
11015 compiler \
11016 CC \
11017 LD \
11018 lt_prog_compiler_wl \
11019 lt_prog_compiler_pic \
11020 lt_prog_compiler_static \
11021 lt_prog_compiler_no_builtin_flag \
11022 export_dynamic_flag_spec \
11023 thread_safe_flag_spec \
11024 whole_archive_flag_spec \
11025 enable_shared_with_static_runtimes \
11026 old_archive_cmds \
11027 old_archive_from_new_cmds \
11028 predep_objects \
11029 postdep_objects \
11030 predeps \
11031 postdeps \
11032 compiler_lib_search_path \
11033 archive_cmds \
11034 archive_expsym_cmds \
11035 postinstall_cmds \
11036 postuninstall_cmds \
11037 old_archive_from_expsyms_cmds \
11038 allow_undefined_flag \
11039 no_undefined_flag \
11040 export_symbols_cmds \
11041 hardcode_libdir_flag_spec \
11042 hardcode_libdir_flag_spec_ld \
11043 hardcode_libdir_separator \
11044 hardcode_automatic \
11045 module_cmds \
11046 module_expsym_cmds \
11047 lt_cv_prog_compiler_c_o \
11048 exclude_expsyms \
11049 include_expsyms; do
11050
11051 case $var in
11052 old_archive_cmds | \
11053 old_archive_from_new_cmds | \
11054 archive_cmds | \
11055 archive_expsym_cmds | \
11056 module_cmds | \
11057 module_expsym_cmds | \
11058 old_archive_from_expsyms_cmds | \
11059 export_symbols_cmds | \
11060 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11061 postinstall_cmds | postuninstall_cmds | \
11062 old_postinstall_cmds | old_postuninstall_cmds | \
11063 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11064 # Double-quote double-evaled strings.
11065 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11066 ;;
11067 *)
11068 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11069 ;;
11070 esac
11071 done
11072
11073 case $lt_echo in
11074 *'\$0 --fallback-echo"')
11075 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11076 ;;
11077 esac
11078
11079 cfgfile="${ofile}T"
11080 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11081 $rm -f "$cfgfile"
11082 { echo "$as_me:$LINENO: creating $ofile" >&5
11083 echo "$as_me: creating $ofile" >&6;}
11084
11085 cat <<__EOF__ >> "$cfgfile"
11086 #! $SHELL
11087
11088 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11089 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11090 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11091 #
11092 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11093 # Free Software Foundation, Inc.
11094 #
11095 # This file is part of GNU Libtool:
11096 # Originally by Gordon Matzigkeit <[email protected]>, 1996
11097 #
11098 # This program is free software; you can redistribute it and/or modify
11099 # it under the terms of the GNU General Public License as published by
11100 # the Free Software Foundation; either version 2 of the License, or
11101 # (at your option) any later version.
11102 #
11103 # This program is distributed in the hope that it will be useful, but
11104 # WITHOUT ANY WARRANTY; without even the implied warranty of
11105 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11106 # General Public License for more details.
11107 #
11108 # You should have received a copy of the GNU General Public License
11109 # along with this program; if not, write to the Free Software
11110 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11111 #
11112 # As a special exception to the GNU General Public License, if you
11113 # distribute this file as part of a program that contains a
11114 # configuration script generated by Autoconf, you may include it under
11115 # the same distribution terms that you use for the rest of that program.
11116
11117 # A sed program that does not truncate output.
11118 SED=$lt_SED
11119
11120 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11121 Xsed="$SED -e 1s/^X//"
11122
11123 # The HP-UX ksh and POSIX shell print the target directory to stdout
11124 # if CDPATH is set.
11125 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11126
11127 # The names of the tagged configurations supported by this script.
11128 available_tags=
11129
11130 # ### BEGIN LIBTOOL CONFIG
11131
11132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11133
11134 # Shell to use when invoking shell scripts.
11135 SHELL=$lt_SHELL
11136
11137 # Whether or not to build shared libraries.
11138 build_libtool_libs=$enable_shared
11139
11140 # Whether or not to build static libraries.
11141 build_old_libs=$enable_static
11142
11143 # Whether or not to add -lc for building shared libraries.
11144 build_libtool_need_lc=$archive_cmds_need_lc
11145
11146 # Whether or not to disallow shared libs when runtime libs are static
11147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11148
11149 # Whether or not to optimize for fast installation.
11150 fast_install=$enable_fast_install
11151
11152 # The host system.
11153 host_alias=$host_alias
11154 host=$host
11155 host_os=$host_os
11156
11157 # The build system.
11158 build_alias=$build_alias
11159 build=$build
11160 build_os=$build_os
11161
11162 # An echo program that does not interpret backslashes.
11163 echo=$lt_echo
11164
11165 # The archiver.
11166 AR=$lt_AR
11167 AR_FLAGS=$lt_AR_FLAGS
11168
11169 # A C compiler.
11170 LTCC=$lt_LTCC
11171
11172 # LTCC compiler flags.
11173 LTCFLAGS=$lt_LTCFLAGS
11174
11175 # A language-specific compiler.
11176 CC=$lt_compiler
11177
11178 # Is the compiler the GNU C compiler?
11179 with_gcc=$GCC
11180
11181 # An ERE matcher.
11182 EGREP=$lt_EGREP
11183
11184 # The linker used to build libraries.
11185 LD=$lt_LD
11186
11187 # Whether we need hard or soft links.
11188 LN_S=$lt_LN_S
11189
11190 # A BSD-compatible nm program.
11191 NM=$lt_NM
11192
11193 # A symbol stripping program
11194 STRIP=$lt_STRIP
11195
11196 # Used to examine libraries when file_magic_cmd begins "file"
11197 MAGIC_CMD=$MAGIC_CMD
11198
11199 # Used on cygwin: DLL creation program.
11200 DLLTOOL="$DLLTOOL"
11201
11202 # Used on cygwin: object dumper.
11203 OBJDUMP="$OBJDUMP"
11204
11205 # Used on cygwin: assembler.
11206 AS="$AS"
11207
11208 # The name of the directory that contains temporary libtool files.
11209 objdir=$objdir
11210
11211 # How to create reloadable object files.
11212 reload_flag=$lt_reload_flag
11213 reload_cmds=$lt_reload_cmds
11214
11215 # How to pass a linker flag through the compiler.
11216 wl=$lt_lt_prog_compiler_wl
11217
11218 # Object file suffix (normally "o").
11219 objext="$ac_objext"
11220
11221 # Old archive suffix (normally "a").
11222 libext="$libext"
11223
11224 # Shared library suffix (normally ".so").
11225 shrext_cmds='$shrext_cmds'
11226
11227 # Executable file suffix (normally "").
11228 exeext="$exeext"
11229
11230 # Additional compiler flags for building library objects.
11231 pic_flag=$lt_lt_prog_compiler_pic
11232 pic_mode=$pic_mode
11233
11234 # What is the maximum length of a command?
11235 max_cmd_len=$lt_cv_sys_max_cmd_len
11236
11237 # Does compiler simultaneously support -c and -o options?
11238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11239
11240 # Must we lock files when doing compilation?
11241 need_locks=$lt_need_locks
11242
11243 # Do we need the lib prefix for modules?
11244 need_lib_prefix=$need_lib_prefix
11245
11246 # Do we need a version for libraries?
11247 need_version=$need_version
11248
11249 # Whether dlopen is supported.
11250 dlopen_support=$enable_dlopen
11251
11252 # Whether dlopen of programs is supported.
11253 dlopen_self=$enable_dlopen_self
11254
11255 # Whether dlopen of statically linked programs is supported.
11256 dlopen_self_static=$enable_dlopen_self_static
11257
11258 # Compiler flag to prevent dynamic linking.
11259 link_static_flag=$lt_lt_prog_compiler_static
11260
11261 # Compiler flag to turn off builtin functions.
11262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11263
11264 # Compiler flag to allow reflexive dlopens.
11265 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11266
11267 # Compiler flag to generate shared objects directly from archives.
11268 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11269
11270 # Compiler flag to generate thread-safe objects.
11271 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11272
11273 # Library versioning type.
11274 version_type=$version_type
11275
11276 # Format of library name prefix.
11277 libname_spec=$lt_libname_spec
11278
11279 # List of archive names. First name is the real one, the rest are links.
11280 # The last name is the one that the linker finds with -lNAME.
11281 library_names_spec=$lt_library_names_spec
11282
11283 # The coded name of the library, if different from the real name.
11284 soname_spec=$lt_soname_spec
11285
11286 # Commands used to build and install an old-style archive.
11287 RANLIB=$lt_RANLIB
11288 old_archive_cmds=$lt_old_archive_cmds
11289 old_postinstall_cmds=$lt_old_postinstall_cmds
11290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11291
11292 # Create an old-style archive from a shared archive.
11293 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11294
11295 # Create a temporary old-style archive to link instead of a shared archive.
11296 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11297
11298 # Commands used to build and install a shared archive.
11299 archive_cmds=$lt_archive_cmds
11300 archive_expsym_cmds=$lt_archive_expsym_cmds
11301 postinstall_cmds=$lt_postinstall_cmds
11302 postuninstall_cmds=$lt_postuninstall_cmds
11303
11304 # Commands used to build a loadable module (assumed same as above if empty)
11305 module_cmds=$lt_module_cmds
11306 module_expsym_cmds=$lt_module_expsym_cmds
11307
11308 # Commands to strip libraries.
11309 old_striplib=$lt_old_striplib
11310 striplib=$lt_striplib
11311
11312 # Dependencies to place before the objects being linked to create a
11313 # shared library.
11314 predep_objects=$lt_predep_objects
11315
11316 # Dependencies to place after the objects being linked to create a
11317 # shared library.
11318 postdep_objects=$lt_postdep_objects
11319
11320 # Dependencies to place before the objects being linked to create a
11321 # shared library.
11322 predeps=$lt_predeps
11323
11324 # Dependencies to place after the objects being linked to create a
11325 # shared library.
11326 postdeps=$lt_postdeps
11327
11328 # The library search path used internally by the compiler when linking
11329 # a shared library.
11330 compiler_lib_search_path=$lt_compiler_lib_search_path
11331
11332 # Method to check whether dependent libraries are shared objects.
11333 deplibs_check_method=$lt_deplibs_check_method
11334
11335 # Command to use when deplibs_check_method == file_magic.
11336 file_magic_cmd=$lt_file_magic_cmd
11337
11338 # Flag that allows shared libraries with undefined symbols to be built.
11339 allow_undefined_flag=$lt_allow_undefined_flag
11340
11341 # Flag that forces no undefined symbols.
11342 no_undefined_flag=$lt_no_undefined_flag
11343
11344 # Commands used to finish a libtool library installation in a directory.
11345 finish_cmds=$lt_finish_cmds
11346
11347 # Same as above, but a single script fragment to be evaled but not shown.
11348 finish_eval=$lt_finish_eval
11349
11350 # Take the output of nm and produce a listing of raw symbols and C names.
11351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11352
11353 # Transform the output of nm in a proper C declaration
11354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11355
11356 # Transform the output of nm in a C name address pair
11357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11358
11359 # This is the shared library runtime path variable.
11360 runpath_var=$runpath_var
11361
11362 # This is the shared library path variable.
11363 shlibpath_var=$shlibpath_var
11364
11365 # Is shlibpath searched before the hard-coded library search path?
11366 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11367
11368 # How to hardcode a shared library path into an executable.
11369 hardcode_action=$hardcode_action
11370
11371 # Whether we should hardcode library paths into libraries.
11372 hardcode_into_libs=$hardcode_into_libs
11373
11374 # Flag to hardcode \$libdir into a binary during linking.
11375 # This must work even if \$libdir does not exist.
11376 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11377
11378 # If ld is used when linking, flag to hardcode \$libdir into
11379 # a binary during linking. This must work even if \$libdir does
11380 # not exist.
11381 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11382
11383 # Whether we need a single -rpath flag with a separated argument.
11384 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11385
11386 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11387 # resulting binary.
11388 hardcode_direct=$hardcode_direct
11389
11390 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11391 # resulting binary.
11392 hardcode_minus_L=$hardcode_minus_L
11393
11394 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11395 # the resulting binary.
11396 hardcode_shlibpath_var=$hardcode_shlibpath_var
11397
11398 # Set to yes if building a shared library automatically hardcodes DIR into the library
11399 # and all subsequent libraries and executables linked against it.
11400 hardcode_automatic=$hardcode_automatic
11401
11402 # Variables whose values should be saved in libtool wrapper scripts and
11403 # restored at relink time.
11404 variables_saved_for_relink="$variables_saved_for_relink"
11405
11406 # Whether libtool must link a program against all its dependency libraries.
11407 link_all_deplibs=$link_all_deplibs
11408
11409 # Compile-time system search path for libraries
11410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11411
11412 # Run-time system search path for libraries
11413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11414
11415 # Fix the shell variable \$srcfile for the compiler.
11416 fix_srcfile_path="$fix_srcfile_path"
11417
11418 # Set to yes if exported symbols are required.
11419 always_export_symbols=$always_export_symbols
11420
11421 # The commands to list exported symbols.
11422 export_symbols_cmds=$lt_export_symbols_cmds
11423
11424 # The commands to extract the exported symbol list from a shared archive.
11425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11426
11427 # Symbols that should not be listed in the preloaded symbols.
11428 exclude_expsyms=$lt_exclude_expsyms
11429
11430 # Symbols that must always be exported.
11431 include_expsyms=$lt_include_expsyms
11432
11433 # ### END LIBTOOL CONFIG
11434
11435 __EOF__
11436
11437
11438 case $host_os in
11439 aix3*)
11440 cat <<\EOF >> "$cfgfile"
11441
11442 # AIX sometimes has problems with the GCC collect2 program. For some
11443 # reason, if we set the COLLECT_NAMES environment variable, the problems
11444 # vanish in a puff of smoke.
11445 if test "X${COLLECT_NAMES+set}" != Xset; then
11446 COLLECT_NAMES=
11447 export COLLECT_NAMES
11448 fi
11449 EOF
11450 ;;
11451 esac
11452
11453 # We use sed instead of cat because bash on DJGPP gets confused if
11454 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11455 # text mode, it properly converts lines to CR/LF. This bash problem
11456 # is reportedly fixed, but why not run on old versions too?
11457 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11458
11459 mv -f "$cfgfile" "$ofile" || \
11460 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11461 chmod +x "$ofile"
11462
11463 else
11464 # If there is no Makefile yet, we rely on a make rule to execute
11465 # `config.status --recheck' to rerun these tests and create the
11466 # libtool script then.
11467 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11468 if test -f "$ltmain_in"; then
11469 test -f Makefile && make "$ltmain"
11470 fi
11471 fi
11472
11473
11474 ac_ext=c
11475 ac_cpp='$CPP $CPPFLAGS'
11476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11479
11480 CC="$lt_save_CC"
11481
11482
11483 # Check whether --with-tags or --without-tags was given.
11484 if test "${with_tags+set}" = set; then
11485 withval="$with_tags"
11486 tagnames="$withval"
11487 fi;
11488
11489 if test -f "$ltmain" && test -n "$tagnames"; then
11490 if test ! -f "${ofile}"; then
11491 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11492 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11493 fi
11494
11495 if test -z "$LTCC"; then
11496 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11497 if test -z "$LTCC"; then
11498 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11499 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11500 else
11501 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11502 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11503 fi
11504 fi
11505 if test -z "$LTCFLAGS"; then
11506 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11507 fi
11508
11509 # Extract list of available tagged configurations in $ofile.
11510 # Note that this assumes the entire list is on one line.
11511 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11512
11513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11514 for tagname in $tagnames; do
11515 IFS="$lt_save_ifs"
11516 # Check whether tagname contains only valid characters
11517 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11518 "") ;;
11519 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11520 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11521 { (exit 1); exit 1; }; }
11522 ;;
11523 esac
11524
11525 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11526 then
11527 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11528 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11529 { (exit 1); exit 1; }; }
11530 fi
11531
11532 # Update the list of available tags.
11533 if test -n "$tagname"; then
11534 echo appending configuration tag \"$tagname\" to $ofile
11535
11536 case $tagname in
11537 CXX)
11538 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11539 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11540 (test "X$CXX" != "Xg++"))) ; then
11541 ac_ext=cc
11542 ac_cpp='$CXXCPP $CPPFLAGS'
11543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11546
11547
11548
11549
11550 archive_cmds_need_lc_CXX=no
11551 allow_undefined_flag_CXX=
11552 always_export_symbols_CXX=no
11553 archive_expsym_cmds_CXX=
11554 export_dynamic_flag_spec_CXX=
11555 hardcode_direct_CXX=no
11556 hardcode_libdir_flag_spec_CXX=
11557 hardcode_libdir_flag_spec_ld_CXX=
11558 hardcode_libdir_separator_CXX=
11559 hardcode_minus_L_CXX=no
11560 hardcode_shlibpath_var_CXX=unsupported
11561 hardcode_automatic_CXX=no
11562 module_cmds_CXX=
11563 module_expsym_cmds_CXX=
11564 link_all_deplibs_CXX=unknown
11565 old_archive_cmds_CXX=$old_archive_cmds
11566 no_undefined_flag_CXX=
11567 whole_archive_flag_spec_CXX=
11568 enable_shared_with_static_runtimes_CXX=no
11569
11570 # Dependencies to place before and after the object being linked:
11571 predep_objects_CXX=
11572 postdep_objects_CXX=
11573 predeps_CXX=
11574 postdeps_CXX=
11575 compiler_lib_search_path_CXX=
11576
11577 # Source file extension for C++ test sources.
11578 ac_ext=cpp
11579
11580 # Object file extension for compiled C++ test sources.
11581 objext=o
11582 objext_CXX=$objext
11583
11584 # Code to be used in simple compile tests
11585 lt_simple_compile_test_code="int some_variable = 0;\n"
11586
11587 # Code to be used in simple link tests
11588 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11589
11590 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11591
11592 # If no C compiler was specified, use CC.
11593 LTCC=${LTCC-"$CC"}
11594
11595 # If no C compiler flags were specified, use CFLAGS.
11596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11597
11598 # Allow CC to be a program name with arguments.
11599 compiler=$CC
11600
11601
11602 # save warnings/boilerplate of simple test code
11603 ac_outfile=conftest.$ac_objext
11604 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11605 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11606 _lt_compiler_boilerplate=`cat conftest.err`
11607 $rm conftest*
11608
11609 ac_outfile=conftest.$ac_objext
11610 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11611 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11612 _lt_linker_boilerplate=`cat conftest.err`
11613 $rm conftest*
11614
11615
11616 # Allow CC to be a program name with arguments.
11617 lt_save_CC=$CC
11618 lt_save_LD=$LD
11619 lt_save_GCC=$GCC
11620 GCC=$GXX
11621 lt_save_with_gnu_ld=$with_gnu_ld
11622 lt_save_path_LD=$lt_cv_path_LD
11623 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11624 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11625 else
11626 $as_unset lt_cv_prog_gnu_ld
11627 fi
11628 if test -n "${lt_cv_path_LDCXX+set}"; then
11629 lt_cv_path_LD=$lt_cv_path_LDCXX
11630 else
11631 $as_unset lt_cv_path_LD
11632 fi
11633 test -z "${LDCXX+set}" || LD=$LDCXX
11634 CC=${CXX-"c++"}
11635 compiler=$CC
11636 compiler_CXX=$CC
11637 for cc_temp in $compiler""; do
11638 case $cc_temp in
11639 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11640 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11641 \-*) ;;
11642 *) break;;
11643 esac
11644 done
11645 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11646
11647
11648 # We don't want -fno-exception wen compiling C++ code, so set the
11649 # no_builtin_flag separately
11650 if test "$GXX" = yes; then
11651 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11652 else
11653 lt_prog_compiler_no_builtin_flag_CXX=
11654 fi
11655
11656 if test "$GXX" = yes; then
11657 # Set up default GNU C++ configuration
11658
11659
11660 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11661 if test "${with_gnu_ld+set}" = set; then
11662 withval="$with_gnu_ld"
11663 test "$withval" = no || with_gnu_ld=yes
11664 else
11665 with_gnu_ld=no
11666 fi;
11667 ac_prog=ld
11668 if test "$GCC" = yes; then
11669 # Check if gcc -print-prog-name=ld gives a path.
11670 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11671 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11672 case $host in
11673 *-*-mingw*)
11674 # gcc leaves a trailing carriage return which upsets mingw
11675 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11676 *)
11677 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11678 esac
11679 case $ac_prog in
11680 # Accept absolute paths.
11681 [\\/]* | ?:[\\/]*)
11682 re_direlt='/[^/][^/]*/\.\./'
11683 # Canonicalize the pathname of ld
11684 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11685 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11686 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11687 done
11688 test -z "$LD" && LD="$ac_prog"
11689 ;;
11690 "")
11691 # If it fails, then pretend we aren't using GCC.
11692 ac_prog=ld
11693 ;;
11694 *)
11695 # If it is relative, then search for the first ld in PATH.
11696 with_gnu_ld=unknown
11697 ;;
11698 esac
11699 elif test "$with_gnu_ld" = yes; then
11700 echo "$as_me:$LINENO: checking for GNU ld" >&5
11701 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11702 else
11703 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11704 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11705 fi
11706 if test "${lt_cv_path_LD+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709 if test -z "$LD"; then
11710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11711 for ac_dir in $PATH; do
11712 IFS="$lt_save_ifs"
11713 test -z "$ac_dir" && ac_dir=.
11714 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11715 lt_cv_path_LD="$ac_dir/$ac_prog"
11716 # Check to see if the program is GNU ld. I'd rather use --version,
11717 # but apparently some variants of GNU ld only accept -v.
11718 # Break only if it was the GNU/non-GNU ld that we prefer.
11719 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11720 *GNU* | *'with BFD'*)
11721 test "$with_gnu_ld" != no && break
11722 ;;
11723 *)
11724 test "$with_gnu_ld" != yes && break
11725 ;;
11726 esac
11727 fi
11728 done
11729 IFS="$lt_save_ifs"
11730 else
11731 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11732 fi
11733 fi
11734
11735 LD="$lt_cv_path_LD"
11736 if test -n "$LD"; then
11737 echo "$as_me:$LINENO: result: $LD" >&5
11738 echo "${ECHO_T}$LD" >&6
11739 else
11740 echo "$as_me:$LINENO: result: no" >&5
11741 echo "${ECHO_T}no" >&6
11742 fi
11743 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11744 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11745 { (exit 1); exit 1; }; }
11746 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11747 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11748 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 else
11751 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11752 case `$LD -v 2>&1 </dev/null` in
11753 *GNU* | *'with BFD'*)
11754 lt_cv_prog_gnu_ld=yes
11755 ;;
11756 *)
11757 lt_cv_prog_gnu_ld=no
11758 ;;
11759 esac
11760 fi
11761 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11762 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11763 with_gnu_ld=$lt_cv_prog_gnu_ld
11764
11765
11766
11767 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11768 # archiving commands below assume that GNU ld is being used.
11769 if test "$with_gnu_ld" = yes; then
11770 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11771 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'
11772
11773 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11775
11776 # If archive_cmds runs LD, not CC, wlarc should be empty
11777 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11778 # investigate it a little bit more. (MM)
11779 wlarc='${wl}'
11780
11781 # ancient GNU ld didn't support --whole-archive et. al.
11782 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11783 grep 'no-whole-archive' > /dev/null; then
11784 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11785 else
11786 whole_archive_flag_spec_CXX=
11787 fi
11788 else
11789 with_gnu_ld=no
11790 wlarc=
11791
11792 # A generic and very simple default shared library creation
11793 # command for GNU C++ for the case where it uses the native
11794 # linker, instead of GNU ld. If possible, this setting should
11795 # overridden to take advantage of the native linker features on
11796 # the platform it is being used on.
11797 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11798 fi
11799
11800 # Commands to make compiler produce verbose output that lists
11801 # what "hidden" libraries, object files and flags are used when
11802 # linking a shared library.
11803 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11804
11805 else
11806 GXX=no
11807 with_gnu_ld=no
11808 wlarc=
11809 fi
11810
11811 # PORTME: fill in a description of your system's C++ link characteristics
11812 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11813 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11814 ld_shlibs_CXX=yes
11815 case $host_os in
11816 aix3*)
11817 # FIXME: insert proper C++ library support
11818 ld_shlibs_CXX=no
11819 ;;
11820 aix4* | aix5*)
11821 if test "$host_cpu" = ia64; then
11822 # On IA64, the linker does run time linking by default, so we don't
11823 # have to do anything special.
11824 aix_use_runtimelinking=no
11825 exp_sym_flag='-Bexport'
11826 no_entry_flag=""
11827 else
11828 aix_use_runtimelinking=no
11829
11830 # Test if we are trying to use run time linking or normal
11831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11832 # need to do runtime linking.
11833 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11834 for ld_flag in $LDFLAGS; do
11835 case $ld_flag in
11836 *-brtl*)
11837 aix_use_runtimelinking=yes
11838 break
11839 ;;
11840 esac
11841 done
11842 ;;
11843 esac
11844
11845 exp_sym_flag='-bexport'
11846 no_entry_flag='-bnoentry'
11847 fi
11848
11849 # When large executables or shared objects are built, AIX ld can
11850 # have problems creating the table of contents. If linking a library
11851 # or program results in "error TOC overflow" add -mminimal-toc to
11852 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11853 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11854
11855 archive_cmds_CXX=''
11856 hardcode_direct_CXX=yes
11857 hardcode_libdir_separator_CXX=':'
11858 link_all_deplibs_CXX=yes
11859
11860 if test "$GXX" = yes; then
11861 case $host_os in aix4.[012]|aix4.[012].*)
11862 # We only want to do this on AIX 4.2 and lower, the check
11863 # below for broken collect2 doesn't work under 4.3+
11864 collect2name=`${CC} -print-prog-name=collect2`
11865 if test -f "$collect2name" && \
11866 strings "$collect2name" | grep resolve_lib_name >/dev/null
11867 then
11868 # We have reworked collect2
11869 hardcode_direct_CXX=yes
11870 else
11871 # We have old collect2
11872 hardcode_direct_CXX=unsupported
11873 # It fails to find uninstalled libraries when the uninstalled
11874 # path is not listed in the libpath. Setting hardcode_minus_L
11875 # to unsupported forces relinking
11876 hardcode_minus_L_CXX=yes
11877 hardcode_libdir_flag_spec_CXX='-L$libdir'
11878 hardcode_libdir_separator_CXX=
11879 fi
11880 ;;
11881 esac
11882 shared_flag='-shared'
11883 if test "$aix_use_runtimelinking" = yes; then
11884 shared_flag="$shared_flag "'${wl}-G'
11885 fi
11886 else
11887 # not using gcc
11888 if test "$host_cpu" = ia64; then
11889 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11890 # chokes on -Wl,-G. The following line is correct:
11891 shared_flag='-G'
11892 else
11893 if test "$aix_use_runtimelinking" = yes; then
11894 shared_flag='${wl}-G'
11895 else
11896 shared_flag='${wl}-bM:SRE'
11897 fi
11898 fi
11899 fi
11900
11901 # It seems that -bexpall does not export symbols beginning with
11902 # underscore (_), so it is better to generate a list of symbols to export.
11903 always_export_symbols_CXX=yes
11904 if test "$aix_use_runtimelinking" = yes; then
11905 # Warning - without using the other runtime loading flags (-brtl),
11906 # -berok will link without error, but may produce a broken library.
11907 allow_undefined_flag_CXX='-berok'
11908 # Determine the default libpath from the value encoded in an empty executable.
11909 cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h. */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11915
11916 int
11917 main ()
11918 {
11919
11920 ;
11921 return 0;
11922 }
11923 _ACEOF
11924 rm -f conftest.$ac_objext conftest$ac_exeext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11926 (eval $ac_link) 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -z "$ac_cxx_werror_flag"
11934 || test ! -s conftest.err'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; } &&
11940 { ac_try='test -s conftest$ac_exeext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946
11947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11948 }'`
11949 # Check for a 64-bit object if we didn't find anything.
11950 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; }
11951 }'`; fi
11952 else
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11955
11956 fi
11957 rm -f conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11960
11961 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11962
11963 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"
11964 else
11965 if test "$host_cpu" = ia64; then
11966 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11967 allow_undefined_flag_CXX="-z nodefs"
11968 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"
11969 else
11970 # Determine the default libpath from the value encoded in an empty executable.
11971 cat >conftest.$ac_ext <<_ACEOF
11972 /* confdefs.h. */
11973 _ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11977
11978 int
11979 main ()
11980 {
11981
11982 ;
11983 return 0;
11984 }
11985 _ACEOF
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11988 (eval $ac_link) 2>conftest.er1
11989 ac_status=$?
11990 grep -v '^ *+' conftest.er1 >conftest.err
11991 rm -f conftest.er1
11992 cat conftest.err >&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
11995 { ac_try='test -z "$ac_cxx_werror_flag"
11996 || test ! -s conftest.err'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest$ac_exeext'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008
12009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12010 }'`
12011 # Check for a 64-bit object if we didn't find anything.
12012 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; }
12013 }'`; fi
12014 else
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12017
12018 fi
12019 rm -f conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
12021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12022
12023 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12024 # Warning - without using the other run time loading flags,
12025 # -berok will link without error, but may produce a broken library.
12026 no_undefined_flag_CXX=' ${wl}-bernotok'
12027 allow_undefined_flag_CXX=' ${wl}-berok'
12028 # Exported symbols can be pulled into shared objects from archives
12029 whole_archive_flag_spec_CXX='$convenience'
12030 archive_cmds_need_lc_CXX=yes
12031 # This is similar to how AIX traditionally builds its shared libraries.
12032 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'
12033 fi
12034 fi
12035 ;;
12036
12037 beos*)
12038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12039 allow_undefined_flag_CXX=unsupported
12040 # Joseph Beckenbach <[email protected]> says some releases of gcc
12041 # support --undefined. This deserves some investigation. FIXME
12042 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12043 else
12044 ld_shlibs_CXX=no
12045 fi
12046 ;;
12047
12048 chorus*)
12049 case $cc_basename in
12050 *)
12051 # FIXME: insert proper C++ library support
12052 ld_shlibs_CXX=no
12053 ;;
12054 esac
12055 ;;
12056
12057 cygwin* | mingw* | pw32*)
12058 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12059 # as there is no search path for DLLs.
12060 hardcode_libdir_flag_spec_CXX='-L$libdir'
12061 allow_undefined_flag_CXX=unsupported
12062 always_export_symbols_CXX=no
12063 enable_shared_with_static_runtimes_CXX=yes
12064
12065 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12066 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'
12067 # If the export-symbols file already is a .def file (1st line
12068 # is EXPORTS), use it as is; otherwise, prepend...
12069 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12070 cp $export_symbols $output_objdir/$soname.def;
12071 else
12072 echo EXPORTS > $output_objdir/$soname.def;
12073 cat $export_symbols >> $output_objdir/$soname.def;
12074 fi~
12075 $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'
12076 else
12077 ld_shlibs_CXX=no
12078 fi
12079 ;;
12080 darwin* | rhapsody*)
12081 case $host_os in
12082 rhapsody* | darwin1.[012])
12083 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12084 ;;
12085 *) # Darwin 1.3 on
12086 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12087 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12088 else
12089 case ${MACOSX_DEPLOYMENT_TARGET} in
12090 10.[012])
12091 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12092 ;;
12093 10.*)
12094 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12095 ;;
12096 esac
12097 fi
12098 ;;
12099 esac
12100 archive_cmds_need_lc_CXX=no
12101 hardcode_direct_CXX=no
12102 hardcode_automatic_CXX=yes
12103 hardcode_shlibpath_var_CXX=unsupported
12104 whole_archive_flag_spec_CXX=''
12105 link_all_deplibs_CXX=yes
12106
12107 if test "$GXX" = yes ; then
12108 lt_int_apple_cc_single_mod=no
12109 output_verbose_link_cmd='echo'
12110 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12111 lt_int_apple_cc_single_mod=yes
12112 fi
12113 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12114 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12115 else
12116 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'
12117 fi
12118 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12120 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12121 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}'
12122 else
12123 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}'
12124 fi
12125 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}'
12126 else
12127 case $cc_basename in
12128 xlc*)
12129 output_verbose_link_cmd='echo'
12130 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'
12131 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12132 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12133 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}'
12134 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}'
12135 ;;
12136 *)
12137 ld_shlibs_CXX=no
12138 ;;
12139 esac
12140 fi
12141 ;;
12142
12143 dgux*)
12144 case $cc_basename in
12145 ec++*)
12146 # FIXME: insert proper C++ library support
12147 ld_shlibs_CXX=no
12148 ;;
12149 ghcx*)
12150 # Green Hills C++ Compiler
12151 # FIXME: insert proper C++ library support
12152 ld_shlibs_CXX=no
12153 ;;
12154 *)
12155 # FIXME: insert proper C++ library support
12156 ld_shlibs_CXX=no
12157 ;;
12158 esac
12159 ;;
12160 freebsd[12]*)
12161 # C++ shared libraries reported to be fairly broken before switch to ELF
12162 ld_shlibs_CXX=no
12163 ;;
12164 freebsd-elf*)
12165 archive_cmds_need_lc_CXX=no
12166 ;;
12167 freebsd* | kfreebsd*-gnu | dragonfly*)
12168 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12169 # conventions
12170 ld_shlibs_CXX=yes
12171 ;;
12172 gnu*)
12173 ;;
12174 hpux9*)
12175 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12176 hardcode_libdir_separator_CXX=:
12177 export_dynamic_flag_spec_CXX='${wl}-E'
12178 hardcode_direct_CXX=yes
12179 hardcode_minus_L_CXX=yes # Not in the search PATH,
12180 # but as the default
12181 # location of the library.
12182
12183 case $cc_basename in
12184 CC*)
12185 # FIXME: insert proper C++ library support
12186 ld_shlibs_CXX=no
12187 ;;
12188 aCC*)
12189 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'
12190 # Commands to make compiler produce verbose output that lists
12191 # what "hidden" libraries, object files and flags are used when
12192 # linking a shared library.
12193 #
12194 # There doesn't appear to be a way to prevent this compiler from
12195 # explicitly linking system object files so we need to strip them
12196 # from the output so that they don't get included in the library
12197 # dependencies.
12198 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'
12199 ;;
12200 *)
12201 if test "$GXX" = yes; then
12202 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'
12203 else
12204 # FIXME: insert proper C++ library support
12205 ld_shlibs_CXX=no
12206 fi
12207 ;;
12208 esac
12209 ;;
12210 hpux10*|hpux11*)
12211 if test $with_gnu_ld = no; then
12212 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12213 hardcode_libdir_separator_CXX=:
12214
12215 case $host_cpu in
12216 hppa*64*|ia64*)
12217 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12218 ;;
12219 *)
12220 export_dynamic_flag_spec_CXX='${wl}-E'
12221 ;;
12222 esac
12223 fi
12224 case $host_cpu in
12225 hppa*64*|ia64*)
12226 hardcode_direct_CXX=no
12227 hardcode_shlibpath_var_CXX=no
12228 ;;
12229 *)
12230 hardcode_direct_CXX=yes
12231 hardcode_minus_L_CXX=yes # Not in the search PATH,
12232 # but as the default
12233 # location of the library.
12234 ;;
12235 esac
12236
12237 case $cc_basename in
12238 CC*)
12239 # FIXME: insert proper C++ library support
12240 ld_shlibs_CXX=no
12241 ;;
12242 aCC*)
12243 case $host_cpu in
12244 hppa*64*)
12245 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12246 ;;
12247 ia64*)
12248 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12249 ;;
12250 *)
12251 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12252 ;;
12253 esac
12254 # Commands to make compiler produce verbose output that lists
12255 # what "hidden" libraries, object files and flags are used when
12256 # linking a shared library.
12257 #
12258 # There doesn't appear to be a way to prevent this compiler from
12259 # explicitly linking system object files so we need to strip them
12260 # from the output so that they don't get included in the library
12261 # dependencies.
12262 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'
12263 ;;
12264 *)
12265 if test "$GXX" = yes; then
12266 if test $with_gnu_ld = no; then
12267 case $host_cpu in
12268 hppa*64*)
12269 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12270 ;;
12271 ia64*)
12272 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12273 ;;
12274 *)
12275 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'
12276 ;;
12277 esac
12278 fi
12279 else
12280 # FIXME: insert proper C++ library support
12281 ld_shlibs_CXX=no
12282 fi
12283 ;;
12284 esac
12285 ;;
12286 interix3*)
12287 hardcode_direct_CXX=no
12288 hardcode_shlibpath_var_CXX=no
12289 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12290 export_dynamic_flag_spec_CXX='${wl}-E'
12291 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12292 # Instead, shared libraries are loaded at an image base (0x10000000 by
12293 # default) and relocated if they conflict, which is a slow very memory
12294 # consuming and fragmenting process. To avoid this, we pick a random,
12295 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12296 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12297 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'
12298 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'
12299 ;;
12300 irix5* | irix6*)
12301 case $cc_basename in
12302 CC*)
12303 # SGI C++
12304 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'
12305
12306 # Archives containing C++ object files must be created using
12307 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12308 # necessary to make sure instantiated templates are included
12309 # in the archive.
12310 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12311 ;;
12312 *)
12313 if test "$GXX" = yes; then
12314 if test "$with_gnu_ld" = no; then
12315 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'
12316 else
12317 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'
12318 fi
12319 fi
12320 link_all_deplibs_CXX=yes
12321 ;;
12322 esac
12323 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12324 hardcode_libdir_separator_CXX=:
12325 ;;
12326 linux*)
12327 case $cc_basename in
12328 KCC*)
12329 # Kuck and Associates, Inc. (KAI) C++ Compiler
12330
12331 # KCC will only create a shared library if the output file
12332 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12333 # to its proper name (with version) after linking.
12334 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'
12335 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'
12336 # Commands to make compiler produce verbose output that lists
12337 # what "hidden" libraries, object files and flags are used when
12338 # linking a shared library.
12339 #
12340 # There doesn't appear to be a way to prevent this compiler from
12341 # explicitly linking system object files so we need to strip them
12342 # from the output so that they don't get included in the library
12343 # dependencies.
12344 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'
12345
12346 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12347 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12348
12349 # Archives containing C++ object files must be created using
12350 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12351 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12352 ;;
12353 icpc*)
12354 # Intel C++
12355 with_gnu_ld=yes
12356 # version 8.0 and above of icpc choke on multiply defined symbols
12357 # if we add $predep_objects and $postdep_objects, however 7.1 and
12358 # earlier do not add the objects themselves.
12359 case `$CC -V 2>&1` in
12360 *"Version 7."*)
12361 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12362 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'
12363 ;;
12364 *) # Version 8.0 or newer
12365 tmp_idyn=
12366 case $host_cpu in
12367 ia64*) tmp_idyn=' -i_dynamic';;
12368 esac
12369 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12370 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'
12371 ;;
12372 esac
12373 archive_cmds_need_lc_CXX=no
12374 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12375 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12376 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12377 ;;
12378 pgCC*)
12379 # Portland Group C++ compiler
12380 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12381 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'
12382
12383 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12384 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12385 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'
12386 ;;
12387 cxx*)
12388 # Compaq C++
12389 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12390 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'
12391
12392 runpath_var=LD_RUN_PATH
12393 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12394 hardcode_libdir_separator_CXX=:
12395
12396 # Commands to make compiler produce verbose output that lists
12397 # what "hidden" libraries, object files and flags are used when
12398 # linking a shared library.
12399 #
12400 # There doesn't appear to be a way to prevent this compiler from
12401 # explicitly linking system object files so we need to strip them
12402 # from the output so that they don't get included in the library
12403 # dependencies.
12404 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'
12405 ;;
12406 esac
12407 ;;
12408 lynxos*)
12409 # FIXME: insert proper C++ library support
12410 ld_shlibs_CXX=no
12411 ;;
12412 m88k*)
12413 # FIXME: insert proper C++ library support
12414 ld_shlibs_CXX=no
12415 ;;
12416 mvs*)
12417 case $cc_basename in
12418 cxx*)
12419 # FIXME: insert proper C++ library support
12420 ld_shlibs_CXX=no
12421 ;;
12422 *)
12423 # FIXME: insert proper C++ library support
12424 ld_shlibs_CXX=no
12425 ;;
12426 esac
12427 ;;
12428 netbsd*)
12429 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12430 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12431 wlarc=
12432 hardcode_libdir_flag_spec_CXX='-R$libdir'
12433 hardcode_direct_CXX=yes
12434 hardcode_shlibpath_var_CXX=no
12435 fi
12436 # Workaround some broken pre-1.5 toolchains
12437 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12438 ;;
12439 openbsd2*)
12440 # C++ shared libraries are fairly broken
12441 ld_shlibs_CXX=no
12442 ;;
12443 openbsd*)
12444 hardcode_direct_CXX=yes
12445 hardcode_shlibpath_var_CXX=no
12446 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12447 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12448 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12449 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12450 export_dynamic_flag_spec_CXX='${wl}-E'
12451 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12452 fi
12453 output_verbose_link_cmd='echo'
12454 ;;
12455 osf3*)
12456 case $cc_basename in
12457 KCC*)
12458 # Kuck and Associates, Inc. (KAI) C++ Compiler
12459
12460 # KCC will only create a shared library if the output file
12461 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12462 # to its proper name (with version) after linking.
12463 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'
12464
12465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12466 hardcode_libdir_separator_CXX=:
12467
12468 # Archives containing C++ object files must be created using
12469 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12470 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12471
12472 ;;
12473 RCC*)
12474 # Rational C++ 2.4.1
12475 # FIXME: insert proper C++ library support
12476 ld_shlibs_CXX=no
12477 ;;
12478 cxx*)
12479 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12480 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'
12481
12482 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12483 hardcode_libdir_separator_CXX=:
12484
12485 # Commands to make compiler produce verbose output that lists
12486 # what "hidden" libraries, object files and flags are used when
12487 # linking a shared library.
12488 #
12489 # There doesn't appear to be a way to prevent this compiler from
12490 # explicitly linking system object files so we need to strip them
12491 # from the output so that they don't get included in the library
12492 # dependencies.
12493 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'
12494 ;;
12495 *)
12496 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12497 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12498 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'
12499
12500 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12501 hardcode_libdir_separator_CXX=:
12502
12503 # Commands to make compiler produce verbose output that lists
12504 # what "hidden" libraries, object files and flags are used when
12505 # linking a shared library.
12506 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12507
12508 else
12509 # FIXME: insert proper C++ library support
12510 ld_shlibs_CXX=no
12511 fi
12512 ;;
12513 esac
12514 ;;
12515 osf4* | osf5*)
12516 case $cc_basename in
12517 KCC*)
12518 # Kuck and Associates, Inc. (KAI) C++ Compiler
12519
12520 # KCC will only create a shared library if the output file
12521 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12522 # to its proper name (with version) after linking.
12523 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'
12524
12525 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12526 hardcode_libdir_separator_CXX=:
12527
12528 # Archives containing C++ object files must be created using
12529 # the KAI C++ compiler.
12530 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12531 ;;
12532 RCC*)
12533 # Rational C++ 2.4.1
12534 # FIXME: insert proper C++ library support
12535 ld_shlibs_CXX=no
12536 ;;
12537 cxx*)
12538 allow_undefined_flag_CXX=' -expect_unresolved \*'
12539 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'
12540 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12541 echo "-hidden">> $lib.exp~
12542 $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~
12543 $rm $lib.exp'
12544
12545 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12546 hardcode_libdir_separator_CXX=:
12547
12548 # Commands to make compiler produce verbose output that lists
12549 # what "hidden" libraries, object files and flags are used when
12550 # linking a shared library.
12551 #
12552 # There doesn't appear to be a way to prevent this compiler from
12553 # explicitly linking system object files so we need to strip them
12554 # from the output so that they don't get included in the library
12555 # dependencies.
12556 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'
12557 ;;
12558 *)
12559 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12560 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12561 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'
12562
12563 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12564 hardcode_libdir_separator_CXX=:
12565
12566 # Commands to make compiler produce verbose output that lists
12567 # what "hidden" libraries, object files and flags are used when
12568 # linking a shared library.
12569 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12570
12571 else
12572 # FIXME: insert proper C++ library support
12573 ld_shlibs_CXX=no
12574 fi
12575 ;;
12576 esac
12577 ;;
12578 psos*)
12579 # FIXME: insert proper C++ library support
12580 ld_shlibs_CXX=no
12581 ;;
12582 sunos4*)
12583 case $cc_basename in
12584 CC*)
12585 # Sun C++ 4.x
12586 # FIXME: insert proper C++ library support
12587 ld_shlibs_CXX=no
12588 ;;
12589 lcc*)
12590 # Lucid
12591 # FIXME: insert proper C++ library support
12592 ld_shlibs_CXX=no
12593 ;;
12594 *)
12595 # FIXME: insert proper C++ library support
12596 ld_shlibs_CXX=no
12597 ;;
12598 esac
12599 ;;
12600 solaris*)
12601 case $cc_basename in
12602 CC*)
12603 # Sun C++ 4.2, 5.x and Centerline C++
12604 archive_cmds_need_lc_CXX=yes
12605 no_undefined_flag_CXX=' -zdefs'
12606 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12607 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12608 $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'
12609
12610 hardcode_libdir_flag_spec_CXX='-R$libdir'
12611 hardcode_shlibpath_var_CXX=no
12612 case $host_os in
12613 solaris2.[0-5] | solaris2.[0-5].*) ;;
12614 *)
12615 # The C++ compiler is used as linker so we must use $wl
12616 # flag to pass the commands to the underlying system
12617 # linker. We must also pass each convience library through
12618 # to the system linker between allextract/defaultextract.
12619 # The C++ compiler will combine linker options so we
12620 # cannot just pass the convience library names through
12621 # without $wl.
12622 # Supported since Solaris 2.6 (maybe 2.5.1?)
12623 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'
12624 ;;
12625 esac
12626 link_all_deplibs_CXX=yes
12627
12628 output_verbose_link_cmd='echo'
12629
12630 # Archives containing C++ object files must be created using
12631 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12632 # necessary to make sure instantiated templates are included
12633 # in the archive.
12634 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12635 ;;
12636 gcx*)
12637 # Green Hills C++ Compiler
12638 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12639
12640 # The C++ compiler must be used to create the archive.
12641 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12642 ;;
12643 *)
12644 # GNU C++ compiler with Solaris linker
12645 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12646 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12647 if $CC --version | grep -v '^2\.7' > /dev/null; then
12648 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12649 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12650 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12651
12652 # Commands to make compiler produce verbose output that lists
12653 # what "hidden" libraries, object files and flags are used when
12654 # linking a shared library.
12655 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12656 else
12657 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12658 # platform.
12659 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12660 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12661 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12662
12663 # Commands to make compiler produce verbose output that lists
12664 # what "hidden" libraries, object files and flags are used when
12665 # linking a shared library.
12666 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12667 fi
12668
12669 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12670 fi
12671 ;;
12672 esac
12673 ;;
12674 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12675 no_undefined_flag_CXX='${wl}-z,text'
12676 archive_cmds_need_lc_CXX=no
12677 hardcode_shlibpath_var_CXX=no
12678 runpath_var='LD_RUN_PATH'
12679
12680 case $cc_basename in
12681 CC*)
12682 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12683 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12684 ;;
12685 *)
12686 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12687 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12688 ;;
12689 esac
12690 ;;
12691 sysv5* | sco3.2v5* | sco5v6*)
12692 # Note: We can NOT use -z defs as we might desire, because we do not
12693 # link with -lc, and that would cause any symbols used from libc to
12694 # always be unresolved, which means just about no library would
12695 # ever link correctly. If we're not using GNU ld we use -z text
12696 # though, which does catch some bad symbols but isn't as heavy-handed
12697 # as -z defs.
12698 # For security reasons, it is highly recommended that you always
12699 # use absolute paths for naming shared libraries, and exclude the
12700 # DT_RUNPATH tag from executables and libraries. But doing so
12701 # requires that you compile everything twice, which is a pain.
12702 # So that behaviour is only enabled if SCOABSPATH is set to a
12703 # non-empty value in the environment. Most likely only useful for
12704 # creating official distributions of packages.
12705 # This is a hack until libtool officially supports absolute path
12706 # names for shared libraries.
12707 no_undefined_flag_CXX='${wl}-z,text'
12708 allow_undefined_flag_CXX='${wl}-z,nodefs'
12709 archive_cmds_need_lc_CXX=no
12710 hardcode_shlibpath_var_CXX=no
12711 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12712 hardcode_libdir_separator_CXX=':'
12713 link_all_deplibs_CXX=yes
12714 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12715 runpath_var='LD_RUN_PATH'
12716
12717 case $cc_basename in
12718 CC*)
12719 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12720 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12721 ;;
12722 *)
12723 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12724 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12725 ;;
12726 esac
12727 ;;
12728 tandem*)
12729 case $cc_basename in
12730 NCC*)
12731 # NonStop-UX NCC 3.20
12732 # FIXME: insert proper C++ library support
12733 ld_shlibs_CXX=no
12734 ;;
12735 *)
12736 # FIXME: insert proper C++ library support
12737 ld_shlibs_CXX=no
12738 ;;
12739 esac
12740 ;;
12741 vxworks*)
12742 # FIXME: insert proper C++ library support
12743 ld_shlibs_CXX=no
12744 ;;
12745 *)
12746 # FIXME: insert proper C++ library support
12747 ld_shlibs_CXX=no
12748 ;;
12749 esac
12750 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12751 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12752 test "$ld_shlibs_CXX" = no && can_build_shared=no
12753
12754 GCC_CXX="$GXX"
12755 LD_CXX="$LD"
12756
12757 ## CAVEAT EMPTOR:
12758 ## There is no encapsulation within the following macros, do not change
12759 ## the running order or otherwise move them around unless you know exactly
12760 ## what you are doing...
12761
12762 cat > conftest.$ac_ext <<EOF
12763 class Foo
12764 {
12765 public:
12766 Foo (void) { a = 0; }
12767 private:
12768 int a;
12769 };
12770 EOF
12771
12772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12773 (eval $ac_compile) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; then
12777 # Parse the compiler output and extract the necessary
12778 # objects, libraries and library flags.
12779
12780 # Sentinel used to keep track of whether or not we are before
12781 # the conftest object file.
12782 pre_test_object_deps_done=no
12783
12784 # The `*' in the case matches for architectures that use `case' in
12785 # $output_verbose_cmd can trigger glob expansion during the loop
12786 # eval without this substitution.
12787 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12788
12789 for p in `eval $output_verbose_link_cmd`; do
12790 case $p in
12791
12792 -L* | -R* | -l*)
12793 # Some compilers place space between "-{L,R}" and the path.
12794 # Remove the space.
12795 if test $p = "-L" \
12796 || test $p = "-R"; then
12797 prev=$p
12798 continue
12799 else
12800 prev=
12801 fi
12802
12803 if test "$pre_test_object_deps_done" = no; then
12804 case $p in
12805 -L* | -R*)
12806 # Internal compiler library paths should come after those
12807 # provided the user. The postdeps already come after the
12808 # user supplied libs so there is no need to process them.
12809 if test -z "$compiler_lib_search_path_CXX"; then
12810 compiler_lib_search_path_CXX="${prev}${p}"
12811 else
12812 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12813 fi
12814 ;;
12815 # The "-l" case would never come before the object being
12816 # linked, so don't bother handling this case.
12817 esac
12818 else
12819 if test -z "$postdeps_CXX"; then
12820 postdeps_CXX="${prev}${p}"
12821 else
12822 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12823 fi
12824 fi
12825 ;;
12826
12827 *.$objext)
12828 # This assumes that the test object file only shows up
12829 # once in the compiler output.
12830 if test "$p" = "conftest.$objext"; then
12831 pre_test_object_deps_done=yes
12832 continue
12833 fi
12834
12835 if test "$pre_test_object_deps_done" = no; then
12836 if test -z "$predep_objects_CXX"; then
12837 predep_objects_CXX="$p"
12838 else
12839 predep_objects_CXX="$predep_objects_CXX $p"
12840 fi
12841 else
12842 if test -z "$postdep_objects_CXX"; then
12843 postdep_objects_CXX="$p"
12844 else
12845 postdep_objects_CXX="$postdep_objects_CXX $p"
12846 fi
12847 fi
12848 ;;
12849
12850 *) ;; # Ignore the rest.
12851
12852 esac
12853 done
12854
12855 # Clean up.
12856 rm -f a.out a.exe
12857 else
12858 echo "libtool.m4: error: problem compiling CXX test program"
12859 fi
12860
12861 $rm -f confest.$objext
12862
12863 # PORTME: override above test on systems where it is broken
12864 case $host_os in
12865 interix3*)
12866 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12867 # hack all around it, let's just trust "g++" to DTRT.
12868 predep_objects_CXX=
12869 postdep_objects_CXX=
12870 postdeps_CXX=
12871 ;;
12872
12873 solaris*)
12874 case $cc_basename in
12875 CC*)
12876 # Adding this requires a known-good setup of shared libraries for
12877 # Sun compiler versions before 5.6, else PIC objects from an old
12878 # archive will be linked into the output, leading to subtle bugs.
12879 postdeps_CXX='-lCstd -lCrun'
12880 ;;
12881 esac
12882 ;;
12883 esac
12884
12885
12886 case " $postdeps_CXX " in
12887 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12888 esac
12889
12890 lt_prog_compiler_wl_CXX=
12891 lt_prog_compiler_pic_CXX=
12892 lt_prog_compiler_static_CXX=
12893
12894 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12895 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12896
12897 # C++ specific cases for pic, static, wl, etc.
12898 if test "$GXX" = yes; then
12899 lt_prog_compiler_wl_CXX='-Wl,'
12900 lt_prog_compiler_static_CXX='-static'
12901
12902 case $host_os in
12903 aix*)
12904 # All AIX code is PIC.
12905 if test "$host_cpu" = ia64; then
12906 # AIX 5 now supports IA64 processor
12907 lt_prog_compiler_static_CXX='-Bstatic'
12908 fi
12909 ;;
12910 amigaos*)
12911 # FIXME: we need at least 68020 code to build shared libraries, but
12912 # adding the `-m68020' flag to GCC prevents building anything better,
12913 # like `-m68040'.
12914 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12915 ;;
12916 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12917 # PIC is the default for these OSes.
12918 ;;
12919 mingw* | os2* | pw32*)
12920 # This hack is so that the source file can tell whether it is being
12921 # built for inclusion in a dll (and should export symbols for example).
12922 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12923 ;;
12924 darwin* | rhapsody*)
12925 # PIC is the default on this platform
12926 # Common symbols not allowed in MH_DYLIB files
12927 lt_prog_compiler_pic_CXX='-fno-common'
12928 ;;
12929 *djgpp*)
12930 # DJGPP does not support shared libraries at all
12931 lt_prog_compiler_pic_CXX=
12932 ;;
12933 interix3*)
12934 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12935 # Instead, we relocate shared libraries at runtime.
12936 ;;
12937 sysv4*MP*)
12938 if test -d /usr/nec; then
12939 lt_prog_compiler_pic_CXX=-Kconform_pic
12940 fi
12941 ;;
12942 hpux*)
12943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12944 # not for PA HP-UX.
12945 case $host_cpu in
12946 hppa*64*|ia64*)
12947 ;;
12948 *)
12949 lt_prog_compiler_pic_CXX='-fPIC'
12950 ;;
12951 esac
12952 ;;
12953 *)
12954 lt_prog_compiler_pic_CXX='-fPIC'
12955 ;;
12956 esac
12957 else
12958 case $host_os in
12959 aix4* | aix5*)
12960 # All AIX code is PIC.
12961 if test "$host_cpu" = ia64; then
12962 # AIX 5 now supports IA64 processor
12963 lt_prog_compiler_static_CXX='-Bstatic'
12964 else
12965 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12966 fi
12967 ;;
12968 chorus*)
12969 case $cc_basename in
12970 cxch68*)
12971 # Green Hills C++ Compiler
12972 # _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"
12973 ;;
12974 esac
12975 ;;
12976 darwin*)
12977 # PIC is the default on this platform
12978 # Common symbols not allowed in MH_DYLIB files
12979 case $cc_basename in
12980 xlc*)
12981 lt_prog_compiler_pic_CXX='-qnocommon'
12982 lt_prog_compiler_wl_CXX='-Wl,'
12983 ;;
12984 esac
12985 ;;
12986 dgux*)
12987 case $cc_basename in
12988 ec++*)
12989 lt_prog_compiler_pic_CXX='-KPIC'
12990 ;;
12991 ghcx*)
12992 # Green Hills C++ Compiler
12993 lt_prog_compiler_pic_CXX='-pic'
12994 ;;
12995 *)
12996 ;;
12997 esac
12998 ;;
12999 freebsd* | kfreebsd*-gnu | dragonfly*)
13000 # FreeBSD uses GNU C++
13001 ;;
13002 hpux9* | hpux10* | hpux11*)
13003 case $cc_basename in
13004 CC*)
13005 lt_prog_compiler_wl_CXX='-Wl,'
13006 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13007 if test "$host_cpu" != ia64; then
13008 lt_prog_compiler_pic_CXX='+Z'
13009 fi
13010 ;;
13011 aCC*)
13012 lt_prog_compiler_wl_CXX='-Wl,'
13013 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13014 case $host_cpu in
13015 hppa*64*|ia64*)
13016 # +Z the default
13017 ;;
13018 *)
13019 lt_prog_compiler_pic_CXX='+Z'
13020 ;;
13021 esac
13022 ;;
13023 *)
13024 ;;
13025 esac
13026 ;;
13027 interix*)
13028 # This is c89, which is MS Visual C++ (no shared libs)
13029 # Anyone wants to do a port?
13030 ;;
13031 irix5* | irix6* | nonstopux*)
13032 case $cc_basename in
13033 CC*)
13034 lt_prog_compiler_wl_CXX='-Wl,'
13035 lt_prog_compiler_static_CXX='-non_shared'
13036 # CC pic flag -KPIC is the default.
13037 ;;
13038 *)
13039 ;;
13040 esac
13041 ;;
13042 linux*)
13043 case $cc_basename in
13044 KCC*)
13045 # KAI C++ Compiler
13046 lt_prog_compiler_wl_CXX='--backend -Wl,'
13047 lt_prog_compiler_pic_CXX='-fPIC'
13048 ;;
13049 icpc* | ecpc*)
13050 # Intel C++
13051 lt_prog_compiler_wl_CXX='-Wl,'
13052 lt_prog_compiler_pic_CXX='-KPIC'
13053 lt_prog_compiler_static_CXX='-static'
13054 ;;
13055 pgCC*)
13056 # Portland Group C++ compiler.
13057 lt_prog_compiler_wl_CXX='-Wl,'
13058 lt_prog_compiler_pic_CXX='-fpic'
13059 lt_prog_compiler_static_CXX='-Bstatic'
13060 ;;
13061 cxx*)
13062 # Compaq C++
13063 # Make sure the PIC flag is empty. It appears that all Alpha
13064 # Linux and Compaq Tru64 Unix objects are PIC.
13065 lt_prog_compiler_pic_CXX=
13066 lt_prog_compiler_static_CXX='-non_shared'
13067 ;;
13068 *)
13069 ;;
13070 esac
13071 ;;
13072 lynxos*)
13073 ;;
13074 m88k*)
13075 ;;
13076 mvs*)
13077 case $cc_basename in
13078 cxx*)
13079 lt_prog_compiler_pic_CXX='-W c,exportall'
13080 ;;
13081 *)
13082 ;;
13083 esac
13084 ;;
13085 netbsd*)
13086 ;;
13087 osf3* | osf4* | osf5*)
13088 case $cc_basename in
13089 KCC*)
13090 lt_prog_compiler_wl_CXX='--backend -Wl,'
13091 ;;
13092 RCC*)
13093 # Rational C++ 2.4.1
13094 lt_prog_compiler_pic_CXX='-pic'
13095 ;;
13096 cxx*)
13097 # Digital/Compaq C++
13098 lt_prog_compiler_wl_CXX='-Wl,'
13099 # Make sure the PIC flag is empty. It appears that all Alpha
13100 # Linux and Compaq Tru64 Unix objects are PIC.
13101 lt_prog_compiler_pic_CXX=
13102 lt_prog_compiler_static_CXX='-non_shared'
13103 ;;
13104 *)
13105 ;;
13106 esac
13107 ;;
13108 psos*)
13109 ;;
13110 solaris*)
13111 case $cc_basename in
13112 CC*)
13113 # Sun C++ 4.2, 5.x and Centerline C++
13114 lt_prog_compiler_pic_CXX='-KPIC'
13115 lt_prog_compiler_static_CXX='-Bstatic'
13116 lt_prog_compiler_wl_CXX='-Qoption ld '
13117 ;;
13118 gcx*)
13119 # Green Hills C++ Compiler
13120 lt_prog_compiler_pic_CXX='-PIC'
13121 ;;
13122 *)
13123 ;;
13124 esac
13125 ;;
13126 sunos4*)
13127 case $cc_basename in
13128 CC*)
13129 # Sun C++ 4.x
13130 lt_prog_compiler_pic_CXX='-pic'
13131 lt_prog_compiler_static_CXX='-Bstatic'
13132 ;;
13133 lcc*)
13134 # Lucid
13135 lt_prog_compiler_pic_CXX='-pic'
13136 ;;
13137 *)
13138 ;;
13139 esac
13140 ;;
13141 tandem*)
13142 case $cc_basename in
13143 NCC*)
13144 # NonStop-UX NCC 3.20
13145 lt_prog_compiler_pic_CXX='-KPIC'
13146 ;;
13147 *)
13148 ;;
13149 esac
13150 ;;
13151 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13152 case $cc_basename in
13153 CC*)
13154 lt_prog_compiler_wl_CXX='-Wl,'
13155 lt_prog_compiler_pic_CXX='-KPIC'
13156 lt_prog_compiler_static_CXX='-Bstatic'
13157 ;;
13158 esac
13159 ;;
13160 vxworks*)
13161 ;;
13162 *)
13163 lt_prog_compiler_can_build_shared_CXX=no
13164 ;;
13165 esac
13166 fi
13167
13168 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13169 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13170
13171 #
13172 # Check to make sure the PIC flag actually works.
13173 #
13174 if test -n "$lt_prog_compiler_pic_CXX"; then
13175
13176 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13177 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13178 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13180 else
13181 lt_prog_compiler_pic_works_CXX=no
13182 ac_outfile=conftest.$ac_objext
13183 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13184 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13185 # Insert the option either (1) after the last *FLAGS variable, or
13186 # (2) before a word containing "conftest.", or (3) at the end.
13187 # Note that $ac_compile itself does not contain backslashes and begins
13188 # with a dollar sign (not a hyphen), so the echo should work correctly.
13189 # The option is referenced via a variable to avoid confusing sed.
13190 lt_compile=`echo "$ac_compile" | $SED \
13191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13193 -e 's:$: $lt_compiler_flag:'`
13194 (eval echo "\"\$as_me:13194: $lt_compile\"" >&5)
13195 (eval "$lt_compile" 2>conftest.err)
13196 ac_status=$?
13197 cat conftest.err >&5
13198 echo "$as_me:13198: \$? = $ac_status" >&5
13199 if (exit $ac_status) && test -s "$ac_outfile"; then
13200 # The compiler can only warn and ignore the option if not recognized
13201 # So say no if there are warnings other than the usual output.
13202 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13205 lt_prog_compiler_pic_works_CXX=yes
13206 fi
13207 fi
13208 $rm conftest*
13209
13210 fi
13211 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13212 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13213
13214 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13215 case $lt_prog_compiler_pic_CXX in
13216 "" | " "*) ;;
13217 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13218 esac
13219 else
13220 lt_prog_compiler_pic_CXX=
13221 lt_prog_compiler_can_build_shared_CXX=no
13222 fi
13223
13224 fi
13225 case $host_os in
13226 # For platforms which do not support PIC, -DPIC is meaningless:
13227 *djgpp*)
13228 lt_prog_compiler_pic_CXX=
13229 ;;
13230 *)
13231 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13232 ;;
13233 esac
13234
13235 #
13236 # Check to make sure the static flag actually works.
13237 #
13238 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13239 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13240 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13241 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244 lt_prog_compiler_static_works_CXX=no
13245 save_LDFLAGS="$LDFLAGS"
13246 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13247 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13248 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13249 # The linker can only warn and ignore the option if not recognized
13250 # So say no if there are warnings
13251 if test -s conftest.err; then
13252 # Append any errors to the config.log.
13253 cat conftest.err 1>&5
13254 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13256 if diff conftest.exp conftest.er2 >/dev/null; then
13257 lt_prog_compiler_static_works_CXX=yes
13258 fi
13259 else
13260 lt_prog_compiler_static_works_CXX=yes
13261 fi
13262 fi
13263 $rm conftest*
13264 LDFLAGS="$save_LDFLAGS"
13265
13266 fi
13267 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13268 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13269
13270 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13271 :
13272 else
13273 lt_prog_compiler_static_CXX=
13274 fi
13275
13276
13277 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13278 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13279 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282 lt_cv_prog_compiler_c_o_CXX=no
13283 $rm -r conftest 2>/dev/null
13284 mkdir conftest
13285 cd conftest
13286 mkdir out
13287 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13288
13289 lt_compiler_flag="-o out/conftest2.$ac_objext"
13290 # Insert the option either (1) after the last *FLAGS variable, or
13291 # (2) before a word containing "conftest.", or (3) at the end.
13292 # Note that $ac_compile itself does not contain backslashes and begins
13293 # with a dollar sign (not a hyphen), so the echo should work correctly.
13294 lt_compile=`echo "$ac_compile" | $SED \
13295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13297 -e 's:$: $lt_compiler_flag:'`
13298 (eval echo "\"\$as_me:13298: $lt_compile\"" >&5)
13299 (eval "$lt_compile" 2>out/conftest.err)
13300 ac_status=$?
13301 cat out/conftest.err >&5
13302 echo "$as_me:13302: \$? = $ac_status" >&5
13303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13304 then
13305 # The compiler can only warn and ignore the option if not recognized
13306 # So say no if there are warnings
13307 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13308 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13309 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13310 lt_cv_prog_compiler_c_o_CXX=yes
13311 fi
13312 fi
13313 chmod u+w . 2>&5
13314 $rm conftest*
13315 # SGI C++ compiler will create directory out/ii_files/ for
13316 # template instantiation
13317 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13318 $rm out/* && rmdir out
13319 cd ..
13320 rmdir conftest
13321 $rm conftest*
13322
13323 fi
13324 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13325 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13326
13327
13328 hard_links="nottested"
13329 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13330 # do not overwrite the value of need_locks provided by the user
13331 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13332 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13333 hard_links=yes
13334 $rm conftest*
13335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13336 touch conftest.a
13337 ln conftest.a conftest.b 2>&5 || hard_links=no
13338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13339 echo "$as_me:$LINENO: result: $hard_links" >&5
13340 echo "${ECHO_T}$hard_links" >&6
13341 if test "$hard_links" = no; then
13342 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13343 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13344 need_locks=warn
13345 fi
13346 else
13347 need_locks=no
13348 fi
13349
13350 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13351 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13352
13353 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13354 case $host_os in
13355 aix4* | aix5*)
13356 # If we're using GNU nm, then we don't want the "-C" option.
13357 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13358 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13359 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'
13360 else
13361 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'
13362 fi
13363 ;;
13364 pw32*)
13365 export_symbols_cmds_CXX="$ltdll_cmds"
13366 ;;
13367 cygwin* | mingw*)
13368 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'
13369 ;;
13370 *)
13371 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13372 ;;
13373 esac
13374
13375 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13376 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13377 test "$ld_shlibs_CXX" = no && can_build_shared=no
13378
13379 #
13380 # Do we need to explicitly link libc?
13381 #
13382 case "x$archive_cmds_need_lc_CXX" in
13383 x|xyes)
13384 # Assume -lc should be added
13385 archive_cmds_need_lc_CXX=yes
13386
13387 if test "$enable_shared" = yes && test "$GCC" = yes; then
13388 case $archive_cmds_CXX in
13389 *'~'*)
13390 # FIXME: we may have to deal with multi-command sequences.
13391 ;;
13392 '$CC '*)
13393 # Test whether the compiler implicitly links with -lc since on some
13394 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13395 # to ld, don't add -lc before -lgcc.
13396 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13397 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13398 $rm conftest*
13399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13400
13401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13402 (eval $ac_compile) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } 2>conftest.err; then
13406 soname=conftest
13407 lib=conftest
13408 libobjs=conftest.$ac_objext
13409 deplibs=
13410 wl=$lt_prog_compiler_wl_CXX
13411 pic_flag=$lt_prog_compiler_pic_CXX
13412 compiler_flags=-v
13413 linker_flags=-v
13414 verstring=
13415 output_objdir=.
13416 libname=conftest
13417 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13418 allow_undefined_flag_CXX=
13419 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13420 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }
13424 then
13425 archive_cmds_need_lc_CXX=no
13426 else
13427 archive_cmds_need_lc_CXX=yes
13428 fi
13429 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13430 else
13431 cat conftest.err 1>&5
13432 fi
13433 $rm conftest*
13434 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13435 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13436 ;;
13437 esac
13438 fi
13439 ;;
13440 esac
13441
13442 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13443 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13444 library_names_spec=
13445 libname_spec='lib$name'
13446 soname_spec=
13447 shrext_cmds=".so"
13448 postinstall_cmds=
13449 postuninstall_cmds=
13450 finish_cmds=
13451 finish_eval=
13452 shlibpath_var=
13453 shlibpath_overrides_runpath=unknown
13454 version_type=none
13455 dynamic_linker="$host_os ld.so"
13456 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13457 if test "$GCC" = yes; then
13458 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13459 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13460 # if the path contains ";" then we assume it to be the separator
13461 # otherwise default to the standard path separator (i.e. ":") - it is
13462 # assumed that no part of a normal pathname contains ";" but that should
13463 # okay in the real world where ";" in dirpaths is itself problematic.
13464 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13465 else
13466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13467 fi
13468 else
13469 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13470 fi
13471 need_lib_prefix=unknown
13472 hardcode_into_libs=no
13473
13474 # when you set need_version to no, make sure it does not cause -set_version
13475 # flags to be left without arguments
13476 need_version=unknown
13477
13478 case $host_os in
13479 aix3*)
13480 version_type=linux
13481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13482 shlibpath_var=LIBPATH
13483
13484 # AIX 3 has no versioning support, so we append a major version to the name.
13485 soname_spec='${libname}${release}${shared_ext}$major'
13486 ;;
13487
13488 aix4* | aix5*)
13489 version_type=linux
13490 need_lib_prefix=no
13491 need_version=no
13492 hardcode_into_libs=yes
13493 if test "$host_cpu" = ia64; then
13494 # AIX 5 supports IA64
13495 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13496 shlibpath_var=LD_LIBRARY_PATH
13497 else
13498 # With GCC up to 2.95.x, collect2 would create an import file
13499 # for dependence libraries. The import file would start with
13500 # the line `#! .'. This would cause the generated library to
13501 # depend on `.', always an invalid library. This was fixed in
13502 # development snapshots of GCC prior to 3.0.
13503 case $host_os in
13504 aix4 | aix4.[01] | aix4.[01].*)
13505 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13506 echo ' yes '
13507 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13508 :
13509 else
13510 can_build_shared=no
13511 fi
13512 ;;
13513 esac
13514 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13515 # soname into executable. Probably we can add versioning support to
13516 # collect2, so additional links can be useful in future.
13517 if test "$aix_use_runtimelinking" = yes; then
13518 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13519 # instead of lib<name>.a to let people know that these are not
13520 # typical AIX shared libraries.
13521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13522 else
13523 # We preserve .a as extension for shared libraries through AIX4.2
13524 # and later when we are not doing run time linking.
13525 library_names_spec='${libname}${release}.a $libname.a'
13526 soname_spec='${libname}${release}${shared_ext}$major'
13527 fi
13528 shlibpath_var=LIBPATH
13529 fi
13530 ;;
13531
13532 amigaos*)
13533 library_names_spec='$libname.ixlibrary $libname.a'
13534 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13535 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'
13536 ;;
13537
13538 beos*)
13539 library_names_spec='${libname}${shared_ext}'
13540 dynamic_linker="$host_os ld.so"
13541 shlibpath_var=LIBRARY_PATH
13542 ;;
13543
13544 bsdi[45]*)
13545 version_type=linux
13546 need_version=no
13547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13548 soname_spec='${libname}${release}${shared_ext}$major'
13549 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13550 shlibpath_var=LD_LIBRARY_PATH
13551 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13552 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13553 # the default ld.so.conf also contains /usr/contrib/lib and
13554 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13555 # libtool to hard-code these into programs
13556 ;;
13557
13558 cygwin* | mingw* | pw32*)
13559 version_type=windows
13560 shrext_cmds=".dll"
13561 need_version=no
13562 need_lib_prefix=no
13563
13564 case $GCC,$host_os in
13565 yes,cygwin* | yes,mingw* | yes,pw32*)
13566 library_names_spec='$libname.dll.a'
13567 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13568 postinstall_cmds='base_file=`basename \${file}`~
13569 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13570 dldir=$destdir/`dirname \$dlpath`~
13571 test -d \$dldir || mkdir -p \$dldir~
13572 $install_prog $dir/$dlname \$dldir/$dlname~
13573 chmod a+x \$dldir/$dlname'
13574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13575 dlpath=$dir/\$dldll~
13576 $rm \$dlpath'
13577 shlibpath_overrides_runpath=yes
13578
13579 case $host_os in
13580 cygwin*)
13581 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13582 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13583 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13584 ;;
13585 mingw*)
13586 # MinGW DLLs use traditional 'lib' prefix
13587 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13588 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13589 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13590 # It is most probably a Windows format PATH printed by
13591 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13592 # path with ; separators, and with drive letters. We can handle the
13593 # drive letters (cygwin fileutils understands them), so leave them,
13594 # especially as we might pass files found there to a mingw objdump,
13595 # which wouldn't understand a cygwinified path. Ahh.
13596 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13597 else
13598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13599 fi
13600 ;;
13601 pw32*)
13602 # pw32 DLLs use 'pw' prefix rather than 'lib'
13603 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13604 ;;
13605 esac
13606 ;;
13607
13608 *)
13609 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13610 ;;
13611 esac
13612 dynamic_linker='Win32 ld.exe'
13613 # FIXME: first we should search . and the directory the executable is in
13614 shlibpath_var=PATH
13615 ;;
13616
13617 darwin* | rhapsody*)
13618 dynamic_linker="$host_os dyld"
13619 version_type=darwin
13620 need_lib_prefix=no
13621 need_version=no
13622 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13623 soname_spec='${libname}${release}${major}$shared_ext'
13624 shlibpath_overrides_runpath=yes
13625 shlibpath_var=DYLD_LIBRARY_PATH
13626 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13627 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13628 if test "$GCC" = yes; then
13629 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"`
13630 else
13631 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13632 fi
13633 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13634 ;;
13635
13636 dgux*)
13637 version_type=linux
13638 need_lib_prefix=no
13639 need_version=no
13640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13641 soname_spec='${libname}${release}${shared_ext}$major'
13642 shlibpath_var=LD_LIBRARY_PATH
13643 ;;
13644
13645 freebsd1*)
13646 dynamic_linker=no
13647 ;;
13648
13649 kfreebsd*-gnu)
13650 version_type=linux
13651 need_lib_prefix=no
13652 need_version=no
13653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13654 soname_spec='${libname}${release}${shared_ext}$major'
13655 shlibpath_var=LD_LIBRARY_PATH
13656 shlibpath_overrides_runpath=no
13657 hardcode_into_libs=yes
13658 dynamic_linker='GNU ld.so'
13659 ;;
13660
13661 freebsd* | dragonfly*)
13662 # DragonFly does not have aout. When/if they implement a new
13663 # versioning mechanism, adjust this.
13664 if test -x /usr/bin/objformat; then
13665 objformat=`/usr/bin/objformat`
13666 else
13667 case $host_os in
13668 freebsd[123]*) objformat=aout ;;
13669 *) objformat=elf ;;
13670 esac
13671 fi
13672 version_type=freebsd-$objformat
13673 case $version_type in
13674 freebsd-elf*)
13675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13676 need_version=no
13677 need_lib_prefix=no
13678 ;;
13679 freebsd-*)
13680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13681 need_version=yes
13682 ;;
13683 esac
13684 shlibpath_var=LD_LIBRARY_PATH
13685 case $host_os in
13686 freebsd2*)
13687 shlibpath_overrides_runpath=yes
13688 ;;
13689 freebsd3.[01]* | freebsdelf3.[01]*)
13690 shlibpath_overrides_runpath=yes
13691 hardcode_into_libs=yes
13692 ;;
13693 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13694 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13695 shlibpath_overrides_runpath=no
13696 hardcode_into_libs=yes
13697 ;;
13698 freebsd*) # from 4.6 on
13699 shlibpath_overrides_runpath=yes
13700 hardcode_into_libs=yes
13701 ;;
13702 esac
13703 ;;
13704
13705 gnu*)
13706 version_type=linux
13707 need_lib_prefix=no
13708 need_version=no
13709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13710 soname_spec='${libname}${release}${shared_ext}$major'
13711 shlibpath_var=LD_LIBRARY_PATH
13712 hardcode_into_libs=yes
13713 ;;
13714
13715 hpux9* | hpux10* | hpux11*)
13716 # Give a soname corresponding to the major version so that dld.sl refuses to
13717 # link against other versions.
13718 version_type=sunos
13719 need_lib_prefix=no
13720 need_version=no
13721 case $host_cpu in
13722 ia64*)
13723 shrext_cmds='.so'
13724 hardcode_into_libs=yes
13725 dynamic_linker="$host_os dld.so"
13726 shlibpath_var=LD_LIBRARY_PATH
13727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13729 soname_spec='${libname}${release}${shared_ext}$major'
13730 if test "X$HPUX_IA64_MODE" = X32; then
13731 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13732 else
13733 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13734 fi
13735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13736 ;;
13737 hppa*64*)
13738 shrext_cmds='.sl'
13739 hardcode_into_libs=yes
13740 dynamic_linker="$host_os dld.sl"
13741 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13744 soname_spec='${libname}${release}${shared_ext}$major'
13745 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13747 ;;
13748 *)
13749 shrext_cmds='.sl'
13750 dynamic_linker="$host_os dld.sl"
13751 shlibpath_var=SHLIB_PATH
13752 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754 soname_spec='${libname}${release}${shared_ext}$major'
13755 ;;
13756 esac
13757 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13758 postinstall_cmds='chmod 555 $lib'
13759 ;;
13760
13761 interix3*)
13762 version_type=linux
13763 need_lib_prefix=no
13764 need_version=no
13765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13766 soname_spec='${libname}${release}${shared_ext}$major'
13767 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13768 shlibpath_var=LD_LIBRARY_PATH
13769 shlibpath_overrides_runpath=no
13770 hardcode_into_libs=yes
13771 ;;
13772
13773 irix5* | irix6* | nonstopux*)
13774 case $host_os in
13775 nonstopux*) version_type=nonstopux ;;
13776 *)
13777 if test "$lt_cv_prog_gnu_ld" = yes; then
13778 version_type=linux
13779 else
13780 version_type=irix
13781 fi ;;
13782 esac
13783 need_lib_prefix=no
13784 need_version=no
13785 soname_spec='${libname}${release}${shared_ext}$major'
13786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13787 case $host_os in
13788 irix5* | nonstopux*)
13789 libsuff= shlibsuff=
13790 ;;
13791 *)
13792 case $LD in # libtool.m4 will add one of these switches to LD
13793 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13794 libsuff= shlibsuff= libmagic=32-bit;;
13795 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13796 libsuff=32 shlibsuff=N32 libmagic=N32;;
13797 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13798 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13799 *) libsuff= shlibsuff= libmagic=never-match;;
13800 esac
13801 ;;
13802 esac
13803 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13804 shlibpath_overrides_runpath=no
13805 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13806 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13807 hardcode_into_libs=yes
13808 ;;
13809
13810 # No shared lib support for Linux oldld, aout, or coff.
13811 linux*oldld* | linux*aout* | linux*coff*)
13812 dynamic_linker=no
13813 ;;
13814
13815 # This must be Linux ELF.
13816 linux*)
13817 version_type=linux
13818 need_lib_prefix=no
13819 need_version=no
13820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13821 soname_spec='${libname}${release}${shared_ext}$major'
13822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13823 shlibpath_var=LD_LIBRARY_PATH
13824 shlibpath_overrides_runpath=no
13825 # This implies no fast_install, which is unacceptable.
13826 # Some rework will be needed to allow for fast_install
13827 # before this can be enabled.
13828 hardcode_into_libs=yes
13829
13830 # Append ld.so.conf contents to the search path
13831 if test -f /etc/ld.so.conf; then
13832 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' ' '`
13833 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13834 fi
13835
13836 # We used to test for /lib/ld.so.1 and disable shared libraries on
13837 # powerpc, because MkLinux only supported shared libraries with the
13838 # GNU dynamic linker. Since this was broken with cross compilers,
13839 # most powerpc-linux boxes support dynamic linking these days and
13840 # people can always --disable-shared, the test was removed, and we
13841 # assume the GNU/Linux dynamic linker is in use.
13842 dynamic_linker='GNU/Linux ld.so'
13843 ;;
13844
13845 knetbsd*-gnu)
13846 version_type=linux
13847 need_lib_prefix=no
13848 need_version=no
13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13850 soname_spec='${libname}${release}${shared_ext}$major'
13851 shlibpath_var=LD_LIBRARY_PATH
13852 shlibpath_overrides_runpath=no
13853 hardcode_into_libs=yes
13854 dynamic_linker='GNU ld.so'
13855 ;;
13856
13857 netbsd*)
13858 version_type=sunos
13859 need_lib_prefix=no
13860 need_version=no
13861 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13864 dynamic_linker='NetBSD (a.out) ld.so'
13865 else
13866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13867 soname_spec='${libname}${release}${shared_ext}$major'
13868 dynamic_linker='NetBSD ld.elf_so'
13869 fi
13870 shlibpath_var=LD_LIBRARY_PATH
13871 shlibpath_overrides_runpath=yes
13872 hardcode_into_libs=yes
13873 ;;
13874
13875 newsos6)
13876 version_type=linux
13877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13878 shlibpath_var=LD_LIBRARY_PATH
13879 shlibpath_overrides_runpath=yes
13880 ;;
13881
13882 nto-qnx*)
13883 version_type=linux
13884 need_lib_prefix=no
13885 need_version=no
13886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13887 soname_spec='${libname}${release}${shared_ext}$major'
13888 shlibpath_var=LD_LIBRARY_PATH
13889 shlibpath_overrides_runpath=yes
13890 ;;
13891
13892 openbsd*)
13893 version_type=sunos
13894 sys_lib_dlsearch_path_spec="/usr/lib"
13895 need_lib_prefix=no
13896 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13897 case $host_os in
13898 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13899 *) need_version=no ;;
13900 esac
13901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13903 shlibpath_var=LD_LIBRARY_PATH
13904 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13905 case $host_os in
13906 openbsd2.[89] | openbsd2.[89].*)
13907 shlibpath_overrides_runpath=no
13908 ;;
13909 *)
13910 shlibpath_overrides_runpath=yes
13911 ;;
13912 esac
13913 else
13914 shlibpath_overrides_runpath=yes
13915 fi
13916 ;;
13917
13918 os2*)
13919 libname_spec='$name'
13920 shrext_cmds=".dll"
13921 need_lib_prefix=no
13922 library_names_spec='$libname${shared_ext} $libname.a'
13923 dynamic_linker='OS/2 ld.exe'
13924 shlibpath_var=LIBPATH
13925 ;;
13926
13927 osf3* | osf4* | osf5*)
13928 version_type=osf
13929 need_lib_prefix=no
13930 need_version=no
13931 soname_spec='${libname}${release}${shared_ext}$major'
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13933 shlibpath_var=LD_LIBRARY_PATH
13934 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13935 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13936 ;;
13937
13938 solaris*)
13939 version_type=linux
13940 need_lib_prefix=no
13941 need_version=no
13942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13943 soname_spec='${libname}${release}${shared_ext}$major'
13944 shlibpath_var=LD_LIBRARY_PATH
13945 shlibpath_overrides_runpath=yes
13946 hardcode_into_libs=yes
13947 # ldd complains unless libraries are executable
13948 postinstall_cmds='chmod +x $lib'
13949 ;;
13950
13951 sunos4*)
13952 version_type=sunos
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13954 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13955 shlibpath_var=LD_LIBRARY_PATH
13956 shlibpath_overrides_runpath=yes
13957 if test "$with_gnu_ld" = yes; then
13958 need_lib_prefix=no
13959 fi
13960 need_version=yes
13961 ;;
13962
13963 sysv4 | sysv4.3*)
13964 version_type=linux
13965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13966 soname_spec='${libname}${release}${shared_ext}$major'
13967 shlibpath_var=LD_LIBRARY_PATH
13968 case $host_vendor in
13969 sni)
13970 shlibpath_overrides_runpath=no
13971 need_lib_prefix=no
13972 export_dynamic_flag_spec='${wl}-Blargedynsym'
13973 runpath_var=LD_RUN_PATH
13974 ;;
13975 siemens)
13976 need_lib_prefix=no
13977 ;;
13978 motorola)
13979 need_lib_prefix=no
13980 need_version=no
13981 shlibpath_overrides_runpath=no
13982 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13983 ;;
13984 esac
13985 ;;
13986
13987 sysv4*MP*)
13988 if test -d /usr/nec ;then
13989 version_type=linux
13990 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13991 soname_spec='$libname${shared_ext}.$major'
13992 shlibpath_var=LD_LIBRARY_PATH
13993 fi
13994 ;;
13995
13996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13997 version_type=freebsd-elf
13998 need_lib_prefix=no
13999 need_version=no
14000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14001 soname_spec='${libname}${release}${shared_ext}$major'
14002 shlibpath_var=LD_LIBRARY_PATH
14003 hardcode_into_libs=yes
14004 if test "$with_gnu_ld" = yes; then
14005 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14006 shlibpath_overrides_runpath=no
14007 else
14008 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14009 shlibpath_overrides_runpath=yes
14010 case $host_os in
14011 sco3.2v5*)
14012 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14013 ;;
14014 esac
14015 fi
14016 sys_lib_dlsearch_path_spec='/usr/lib'
14017 ;;
14018
14019 uts4*)
14020 version_type=linux
14021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14022 soname_spec='${libname}${release}${shared_ext}$major'
14023 shlibpath_var=LD_LIBRARY_PATH
14024 ;;
14025
14026 *)
14027 dynamic_linker=no
14028 ;;
14029 esac
14030 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14031 echo "${ECHO_T}$dynamic_linker" >&6
14032 test "$dynamic_linker" = no && can_build_shared=no
14033
14034 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14035 if test "$GCC" = yes; then
14036 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14037 fi
14038
14039 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14040 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14041 hardcode_action_CXX=
14042 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14043 test -n "$runpath_var_CXX" || \
14044 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14045
14046 # We can hardcode non-existant directories.
14047 if test "$hardcode_direct_CXX" != no &&
14048 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14049 # have to relink, otherwise we might link with an installed library
14050 # when we should be linking with a yet-to-be-installed one
14051 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14052 test "$hardcode_minus_L_CXX" != no; then
14053 # Linking always hardcodes the temporary library directory.
14054 hardcode_action_CXX=relink
14055 else
14056 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14057 hardcode_action_CXX=immediate
14058 fi
14059 else
14060 # We cannot hardcode anything, or else we can only hardcode existing
14061 # directories.
14062 hardcode_action_CXX=unsupported
14063 fi
14064 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14065 echo "${ECHO_T}$hardcode_action_CXX" >&6
14066
14067 if test "$hardcode_action_CXX" = relink; then
14068 # Fast installation is not supported
14069 enable_fast_install=no
14070 elif test "$shlibpath_overrides_runpath" = yes ||
14071 test "$enable_shared" = no; then
14072 # Fast installation is not necessary
14073 enable_fast_install=needless
14074 fi
14075
14076
14077 # The else clause should only fire when bootstrapping the
14078 # libtool distribution, otherwise you forgot to ship ltmain.sh
14079 # with your package, and you will get complaints that there are
14080 # no rules to generate ltmain.sh.
14081 if test -f "$ltmain"; then
14082 # See if we are running on zsh, and set the options which allow our commands through
14083 # without removal of \ escapes.
14084 if test -n "${ZSH_VERSION+set}" ; then
14085 setopt NO_GLOB_SUBST
14086 fi
14087 # Now quote all the things that may contain metacharacters while being
14088 # careful not to overquote the AC_SUBSTed values. We take copies of the
14089 # variables and quote the copies for generation of the libtool script.
14090 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14091 SED SHELL STRIP \
14092 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14093 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14094 deplibs_check_method reload_flag reload_cmds need_locks \
14095 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14096 lt_cv_sys_global_symbol_to_c_name_address \
14097 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14098 old_postinstall_cmds old_postuninstall_cmds \
14099 compiler_CXX \
14100 CC_CXX \
14101 LD_CXX \
14102 lt_prog_compiler_wl_CXX \
14103 lt_prog_compiler_pic_CXX \
14104 lt_prog_compiler_static_CXX \
14105 lt_prog_compiler_no_builtin_flag_CXX \
14106 export_dynamic_flag_spec_CXX \
14107 thread_safe_flag_spec_CXX \
14108 whole_archive_flag_spec_CXX \
14109 enable_shared_with_static_runtimes_CXX \
14110 old_archive_cmds_CXX \
14111 old_archive_from_new_cmds_CXX \
14112 predep_objects_CXX \
14113 postdep_objects_CXX \
14114 predeps_CXX \
14115 postdeps_CXX \
14116 compiler_lib_search_path_CXX \
14117 archive_cmds_CXX \
14118 archive_expsym_cmds_CXX \
14119 postinstall_cmds_CXX \
14120 postuninstall_cmds_CXX \
14121 old_archive_from_expsyms_cmds_CXX \
14122 allow_undefined_flag_CXX \
14123 no_undefined_flag_CXX \
14124 export_symbols_cmds_CXX \
14125 hardcode_libdir_flag_spec_CXX \
14126 hardcode_libdir_flag_spec_ld_CXX \
14127 hardcode_libdir_separator_CXX \
14128 hardcode_automatic_CXX \
14129 module_cmds_CXX \
14130 module_expsym_cmds_CXX \
14131 lt_cv_prog_compiler_c_o_CXX \
14132 exclude_expsyms_CXX \
14133 include_expsyms_CXX; do
14134
14135 case $var in
14136 old_archive_cmds_CXX | \
14137 old_archive_from_new_cmds_CXX | \
14138 archive_cmds_CXX | \
14139 archive_expsym_cmds_CXX | \
14140 module_cmds_CXX | \
14141 module_expsym_cmds_CXX | \
14142 old_archive_from_expsyms_cmds_CXX | \
14143 export_symbols_cmds_CXX | \
14144 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14145 postinstall_cmds | postuninstall_cmds | \
14146 old_postinstall_cmds | old_postuninstall_cmds | \
14147 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14148 # Double-quote double-evaled strings.
14149 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14150 ;;
14151 *)
14152 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14153 ;;
14154 esac
14155 done
14156
14157 case $lt_echo in
14158 *'\$0 --fallback-echo"')
14159 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14160 ;;
14161 esac
14162
14163 cfgfile="$ofile"
14164
14165 cat <<__EOF__ >> "$cfgfile"
14166 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14167
14168 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14169
14170 # Shell to use when invoking shell scripts.
14171 SHELL=$lt_SHELL
14172
14173 # Whether or not to build shared libraries.
14174 build_libtool_libs=$enable_shared
14175
14176 # Whether or not to build static libraries.
14177 build_old_libs=$enable_static
14178
14179 # Whether or not to add -lc for building shared libraries.
14180 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14181
14182 # Whether or not to disallow shared libs when runtime libs are static
14183 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14184
14185 # Whether or not to optimize for fast installation.
14186 fast_install=$enable_fast_install
14187
14188 # The host system.
14189 host_alias=$host_alias
14190 host=$host
14191 host_os=$host_os
14192
14193 # The build system.
14194 build_alias=$build_alias
14195 build=$build
14196 build_os=$build_os
14197
14198 # An echo program that does not interpret backslashes.
14199 echo=$lt_echo
14200
14201 # The archiver.
14202 AR=$lt_AR
14203 AR_FLAGS=$lt_AR_FLAGS
14204
14205 # A C compiler.
14206 LTCC=$lt_LTCC
14207
14208 # LTCC compiler flags.
14209 LTCFLAGS=$lt_LTCFLAGS
14210
14211 # A language-specific compiler.
14212 CC=$lt_compiler_CXX
14213
14214 # Is the compiler the GNU C compiler?
14215 with_gcc=$GCC_CXX
14216
14217 # An ERE matcher.
14218 EGREP=$lt_EGREP
14219
14220 # The linker used to build libraries.
14221 LD=$lt_LD_CXX
14222
14223 # Whether we need hard or soft links.
14224 LN_S=$lt_LN_S
14225
14226 # A BSD-compatible nm program.
14227 NM=$lt_NM
14228
14229 # A symbol stripping program
14230 STRIP=$lt_STRIP
14231
14232 # Used to examine libraries when file_magic_cmd begins "file"
14233 MAGIC_CMD=$MAGIC_CMD
14234
14235 # Used on cygwin: DLL creation program.
14236 DLLTOOL="$DLLTOOL"
14237
14238 # Used on cygwin: object dumper.
14239 OBJDUMP="$OBJDUMP"
14240
14241 # Used on cygwin: assembler.
14242 AS="$AS"
14243
14244 # The name of the directory that contains temporary libtool files.
14245 objdir=$objdir
14246
14247 # How to create reloadable object files.
14248 reload_flag=$lt_reload_flag
14249 reload_cmds=$lt_reload_cmds
14250
14251 # How to pass a linker flag through the compiler.
14252 wl=$lt_lt_prog_compiler_wl_CXX
14253
14254 # Object file suffix (normally "o").
14255 objext="$ac_objext"
14256
14257 # Old archive suffix (normally "a").
14258 libext="$libext"
14259
14260 # Shared library suffix (normally ".so").
14261 shrext_cmds='$shrext_cmds'
14262
14263 # Executable file suffix (normally "").
14264 exeext="$exeext"
14265
14266 # Additional compiler flags for building library objects.
14267 pic_flag=$lt_lt_prog_compiler_pic_CXX
14268 pic_mode=$pic_mode
14269
14270 # What is the maximum length of a command?
14271 max_cmd_len=$lt_cv_sys_max_cmd_len
14272
14273 # Does compiler simultaneously support -c and -o options?
14274 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14275
14276 # Must we lock files when doing compilation?
14277 need_locks=$lt_need_locks
14278
14279 # Do we need the lib prefix for modules?
14280 need_lib_prefix=$need_lib_prefix
14281
14282 # Do we need a version for libraries?
14283 need_version=$need_version
14284
14285 # Whether dlopen is supported.
14286 dlopen_support=$enable_dlopen
14287
14288 # Whether dlopen of programs is supported.
14289 dlopen_self=$enable_dlopen_self
14290
14291 # Whether dlopen of statically linked programs is supported.
14292 dlopen_self_static=$enable_dlopen_self_static
14293
14294 # Compiler flag to prevent dynamic linking.
14295 link_static_flag=$lt_lt_prog_compiler_static_CXX
14296
14297 # Compiler flag to turn off builtin functions.
14298 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14299
14300 # Compiler flag to allow reflexive dlopens.
14301 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14302
14303 # Compiler flag to generate shared objects directly from archives.
14304 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14305
14306 # Compiler flag to generate thread-safe objects.
14307 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14308
14309 # Library versioning type.
14310 version_type=$version_type
14311
14312 # Format of library name prefix.
14313 libname_spec=$lt_libname_spec
14314
14315 # List of archive names. First name is the real one, the rest are links.
14316 # The last name is the one that the linker finds with -lNAME.
14317 library_names_spec=$lt_library_names_spec
14318
14319 # The coded name of the library, if different from the real name.
14320 soname_spec=$lt_soname_spec
14321
14322 # Commands used to build and install an old-style archive.
14323 RANLIB=$lt_RANLIB
14324 old_archive_cmds=$lt_old_archive_cmds_CXX
14325 old_postinstall_cmds=$lt_old_postinstall_cmds
14326 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14327
14328 # Create an old-style archive from a shared archive.
14329 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14330
14331 # Create a temporary old-style archive to link instead of a shared archive.
14332 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14333
14334 # Commands used to build and install a shared archive.
14335 archive_cmds=$lt_archive_cmds_CXX
14336 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14337 postinstall_cmds=$lt_postinstall_cmds
14338 postuninstall_cmds=$lt_postuninstall_cmds
14339
14340 # Commands used to build a loadable module (assumed same as above if empty)
14341 module_cmds=$lt_module_cmds_CXX
14342 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14343
14344 # Commands to strip libraries.
14345 old_striplib=$lt_old_striplib
14346 striplib=$lt_striplib
14347
14348 # Dependencies to place before the objects being linked to create a
14349 # shared library.
14350 predep_objects=$lt_predep_objects_CXX
14351
14352 # Dependencies to place after the objects being linked to create a
14353 # shared library.
14354 postdep_objects=$lt_postdep_objects_CXX
14355
14356 # Dependencies to place before the objects being linked to create a
14357 # shared library.
14358 predeps=$lt_predeps_CXX
14359
14360 # Dependencies to place after the objects being linked to create a
14361 # shared library.
14362 postdeps=$lt_postdeps_CXX
14363
14364 # The library search path used internally by the compiler when linking
14365 # a shared library.
14366 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14367
14368 # Method to check whether dependent libraries are shared objects.
14369 deplibs_check_method=$lt_deplibs_check_method
14370
14371 # Command to use when deplibs_check_method == file_magic.
14372 file_magic_cmd=$lt_file_magic_cmd
14373
14374 # Flag that allows shared libraries with undefined symbols to be built.
14375 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14376
14377 # Flag that forces no undefined symbols.
14378 no_undefined_flag=$lt_no_undefined_flag_CXX
14379
14380 # Commands used to finish a libtool library installation in a directory.
14381 finish_cmds=$lt_finish_cmds
14382
14383 # Same as above, but a single script fragment to be evaled but not shown.
14384 finish_eval=$lt_finish_eval
14385
14386 # Take the output of nm and produce a listing of raw symbols and C names.
14387 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14388
14389 # Transform the output of nm in a proper C declaration
14390 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14391
14392 # Transform the output of nm in a C name address pair
14393 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14394
14395 # This is the shared library runtime path variable.
14396 runpath_var=$runpath_var
14397
14398 # This is the shared library path variable.
14399 shlibpath_var=$shlibpath_var
14400
14401 # Is shlibpath searched before the hard-coded library search path?
14402 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14403
14404 # How to hardcode a shared library path into an executable.
14405 hardcode_action=$hardcode_action_CXX
14406
14407 # Whether we should hardcode library paths into libraries.
14408 hardcode_into_libs=$hardcode_into_libs
14409
14410 # Flag to hardcode \$libdir into a binary during linking.
14411 # This must work even if \$libdir does not exist.
14412 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14413
14414 # If ld is used when linking, flag to hardcode \$libdir into
14415 # a binary during linking. This must work even if \$libdir does
14416 # not exist.
14417 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14418
14419 # Whether we need a single -rpath flag with a separated argument.
14420 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14421
14422 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14423 # resulting binary.
14424 hardcode_direct=$hardcode_direct_CXX
14425
14426 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14427 # resulting binary.
14428 hardcode_minus_L=$hardcode_minus_L_CXX
14429
14430 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14431 # the resulting binary.
14432 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14433
14434 # Set to yes if building a shared library automatically hardcodes DIR into the library
14435 # and all subsequent libraries and executables linked against it.
14436 hardcode_automatic=$hardcode_automatic_CXX
14437
14438 # Variables whose values should be saved in libtool wrapper scripts and
14439 # restored at relink time.
14440 variables_saved_for_relink="$variables_saved_for_relink"
14441
14442 # Whether libtool must link a program against all its dependency libraries.
14443 link_all_deplibs=$link_all_deplibs_CXX
14444
14445 # Compile-time system search path for libraries
14446 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14447
14448 # Run-time system search path for libraries
14449 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14450
14451 # Fix the shell variable \$srcfile for the compiler.
14452 fix_srcfile_path="$fix_srcfile_path_CXX"
14453
14454 # Set to yes if exported symbols are required.
14455 always_export_symbols=$always_export_symbols_CXX
14456
14457 # The commands to list exported symbols.
14458 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14459
14460 # The commands to extract the exported symbol list from a shared archive.
14461 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14462
14463 # Symbols that should not be listed in the preloaded symbols.
14464 exclude_expsyms=$lt_exclude_expsyms_CXX
14465
14466 # Symbols that must always be exported.
14467 include_expsyms=$lt_include_expsyms_CXX
14468
14469 # ### END LIBTOOL TAG CONFIG: $tagname
14470
14471 __EOF__
14472
14473
14474 else
14475 # If there is no Makefile yet, we rely on a make rule to execute
14476 # `config.status --recheck' to rerun these tests and create the
14477 # libtool script then.
14478 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14479 if test -f "$ltmain_in"; then
14480 test -f Makefile && make "$ltmain"
14481 fi
14482 fi
14483
14484
14485 ac_ext=c
14486 ac_cpp='$CPP $CPPFLAGS'
14487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14490
14491 CC=$lt_save_CC
14492 LDCXX=$LD
14493 LD=$lt_save_LD
14494 GCC=$lt_save_GCC
14495 with_gnu_ldcxx=$with_gnu_ld
14496 with_gnu_ld=$lt_save_with_gnu_ld
14497 lt_cv_path_LDCXX=$lt_cv_path_LD
14498 lt_cv_path_LD=$lt_save_path_LD
14499 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14500 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14501
14502 else
14503 tagname=""
14504 fi
14505 ;;
14506
14507 F77)
14508 if test -n "$F77" && test "X$F77" != "Xno"; then
14509
14510 ac_ext=f
14511 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14512 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14513 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14514
14515
14516 archive_cmds_need_lc_F77=no
14517 allow_undefined_flag_F77=
14518 always_export_symbols_F77=no
14519 archive_expsym_cmds_F77=
14520 export_dynamic_flag_spec_F77=
14521 hardcode_direct_F77=no
14522 hardcode_libdir_flag_spec_F77=
14523 hardcode_libdir_flag_spec_ld_F77=
14524 hardcode_libdir_separator_F77=
14525 hardcode_minus_L_F77=no
14526 hardcode_automatic_F77=no
14527 module_cmds_F77=
14528 module_expsym_cmds_F77=
14529 link_all_deplibs_F77=unknown
14530 old_archive_cmds_F77=$old_archive_cmds
14531 no_undefined_flag_F77=
14532 whole_archive_flag_spec_F77=
14533 enable_shared_with_static_runtimes_F77=no
14534
14535 # Source file extension for f77 test sources.
14536 ac_ext=f
14537
14538 # Object file extension for compiled f77 test sources.
14539 objext=o
14540 objext_F77=$objext
14541
14542 # Code to be used in simple compile tests
14543 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14544
14545 # Code to be used in simple link tests
14546 lt_simple_link_test_code=" program t\n end\n"
14547
14548 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14549
14550 # If no C compiler was specified, use CC.
14551 LTCC=${LTCC-"$CC"}
14552
14553 # If no C compiler flags were specified, use CFLAGS.
14554 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14555
14556 # Allow CC to be a program name with arguments.
14557 compiler=$CC
14558
14559
14560 # save warnings/boilerplate of simple test code
14561 ac_outfile=conftest.$ac_objext
14562 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14563 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14564 _lt_compiler_boilerplate=`cat conftest.err`
14565 $rm conftest*
14566
14567 ac_outfile=conftest.$ac_objext
14568 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14569 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14570 _lt_linker_boilerplate=`cat conftest.err`
14571 $rm conftest*
14572
14573
14574 # Allow CC to be a program name with arguments.
14575 lt_save_CC="$CC"
14576 CC=${F77-"f77"}
14577 compiler=$CC
14578 compiler_F77=$CC
14579 for cc_temp in $compiler""; do
14580 case $cc_temp in
14581 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14582 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14583 \-*) ;;
14584 *) break;;
14585 esac
14586 done
14587 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14588
14589
14590 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14591 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14592 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14593 echo "${ECHO_T}$can_build_shared" >&6
14594
14595 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14596 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14597 test "$can_build_shared" = "no" && enable_shared=no
14598
14599 # On AIX, shared libraries and static libraries use the same namespace, and
14600 # are all built from PIC.
14601 case $host_os in
14602 aix3*)
14603 test "$enable_shared" = yes && enable_static=no
14604 if test -n "$RANLIB"; then
14605 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14606 postinstall_cmds='$RANLIB $lib'
14607 fi
14608 ;;
14609 aix4* | aix5*)
14610 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14611 test "$enable_shared" = yes && enable_static=no
14612 fi
14613 ;;
14614 esac
14615 echo "$as_me:$LINENO: result: $enable_shared" >&5
14616 echo "${ECHO_T}$enable_shared" >&6
14617
14618 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14619 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14620 # Make sure either enable_shared or enable_static is yes.
14621 test "$enable_shared" = yes || enable_static=yes
14622 echo "$as_me:$LINENO: result: $enable_static" >&5
14623 echo "${ECHO_T}$enable_static" >&6
14624
14625 GCC_F77="$G77"
14626 LD_F77="$LD"
14627
14628 lt_prog_compiler_wl_F77=
14629 lt_prog_compiler_pic_F77=
14630 lt_prog_compiler_static_F77=
14631
14632 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14633 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14634
14635 if test "$GCC" = yes; then
14636 lt_prog_compiler_wl_F77='-Wl,'
14637 lt_prog_compiler_static_F77='-static'
14638
14639 case $host_os in
14640 aix*)
14641 # All AIX code is PIC.
14642 if test "$host_cpu" = ia64; then
14643 # AIX 5 now supports IA64 processor
14644 lt_prog_compiler_static_F77='-Bstatic'
14645 fi
14646 ;;
14647
14648 amigaos*)
14649 # FIXME: we need at least 68020 code to build shared libraries, but
14650 # adding the `-m68020' flag to GCC prevents building anything better,
14651 # like `-m68040'.
14652 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14653 ;;
14654
14655 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14656 # PIC is the default for these OSes.
14657 ;;
14658
14659 mingw* | pw32* | os2*)
14660 # This hack is so that the source file can tell whether it is being
14661 # built for inclusion in a dll (and should export symbols for example).
14662 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14663 ;;
14664
14665 darwin* | rhapsody*)
14666 # PIC is the default on this platform
14667 # Common symbols not allowed in MH_DYLIB files
14668 lt_prog_compiler_pic_F77='-fno-common'
14669 ;;
14670
14671 interix3*)
14672 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14673 # Instead, we relocate shared libraries at runtime.
14674 ;;
14675
14676 msdosdjgpp*)
14677 # Just because we use GCC doesn't mean we suddenly get shared libraries
14678 # on systems that don't support them.
14679 lt_prog_compiler_can_build_shared_F77=no
14680 enable_shared=no
14681 ;;
14682
14683 sysv4*MP*)
14684 if test -d /usr/nec; then
14685 lt_prog_compiler_pic_F77=-Kconform_pic
14686 fi
14687 ;;
14688
14689 hpux*)
14690 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14691 # not for PA HP-UX.
14692 case $host_cpu in
14693 hppa*64*|ia64*)
14694 # +Z the default
14695 ;;
14696 *)
14697 lt_prog_compiler_pic_F77='-fPIC'
14698 ;;
14699 esac
14700 ;;
14701
14702 *)
14703 lt_prog_compiler_pic_F77='-fPIC'
14704 ;;
14705 esac
14706 else
14707 # PORTME Check for flag to pass linker flags through the system compiler.
14708 case $host_os in
14709 aix*)
14710 lt_prog_compiler_wl_F77='-Wl,'
14711 if test "$host_cpu" = ia64; then
14712 # AIX 5 now supports IA64 processor
14713 lt_prog_compiler_static_F77='-Bstatic'
14714 else
14715 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14716 fi
14717 ;;
14718 darwin*)
14719 # PIC is the default on this platform
14720 # Common symbols not allowed in MH_DYLIB files
14721 case $cc_basename in
14722 xlc*)
14723 lt_prog_compiler_pic_F77='-qnocommon'
14724 lt_prog_compiler_wl_F77='-Wl,'
14725 ;;
14726 esac
14727 ;;
14728
14729 mingw* | pw32* | os2*)
14730 # This hack is so that the source file can tell whether it is being
14731 # built for inclusion in a dll (and should export symbols for example).
14732 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14733 ;;
14734
14735 hpux9* | hpux10* | hpux11*)
14736 lt_prog_compiler_wl_F77='-Wl,'
14737 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14738 # not for PA HP-UX.
14739 case $host_cpu in
14740 hppa*64*|ia64*)
14741 # +Z the default
14742 ;;
14743 *)
14744 lt_prog_compiler_pic_F77='+Z'
14745 ;;
14746 esac
14747 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14748 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14749 ;;
14750
14751 irix5* | irix6* | nonstopux*)
14752 lt_prog_compiler_wl_F77='-Wl,'
14753 # PIC (with -KPIC) is the default.
14754 lt_prog_compiler_static_F77='-non_shared'
14755 ;;
14756
14757 newsos6)
14758 lt_prog_compiler_pic_F77='-KPIC'
14759 lt_prog_compiler_static_F77='-Bstatic'
14760 ;;
14761
14762 linux*)
14763 case $cc_basename in
14764 icc* | ecc*)
14765 lt_prog_compiler_wl_F77='-Wl,'
14766 lt_prog_compiler_pic_F77='-KPIC'
14767 lt_prog_compiler_static_F77='-static'
14768 ;;
14769 pgcc* | pgf77* | pgf90* | pgf95*)
14770 # Portland Group compilers (*not* the Pentium gcc compiler,
14771 # which looks to be a dead project)
14772 lt_prog_compiler_wl_F77='-Wl,'
14773 lt_prog_compiler_pic_F77='-fpic'
14774 lt_prog_compiler_static_F77='-Bstatic'
14775 ;;
14776 ccc*)
14777 lt_prog_compiler_wl_F77='-Wl,'
14778 # All Alpha code is PIC.
14779 lt_prog_compiler_static_F77='-non_shared'
14780 ;;
14781 esac
14782 ;;
14783
14784 osf3* | osf4* | osf5*)
14785 lt_prog_compiler_wl_F77='-Wl,'
14786 # All OSF/1 code is PIC.
14787 lt_prog_compiler_static_F77='-non_shared'
14788 ;;
14789
14790 solaris*)
14791 lt_prog_compiler_pic_F77='-KPIC'
14792 lt_prog_compiler_static_F77='-Bstatic'
14793 case $cc_basename in
14794 f77* | f90* | f95*)
14795 lt_prog_compiler_wl_F77='-Qoption ld ';;
14796 *)
14797 lt_prog_compiler_wl_F77='-Wl,';;
14798 esac
14799 ;;
14800
14801 sunos4*)
14802 lt_prog_compiler_wl_F77='-Qoption ld '
14803 lt_prog_compiler_pic_F77='-PIC'
14804 lt_prog_compiler_static_F77='-Bstatic'
14805 ;;
14806
14807 sysv4 | sysv4.2uw2* | sysv4.3*)
14808 lt_prog_compiler_wl_F77='-Wl,'
14809 lt_prog_compiler_pic_F77='-KPIC'
14810 lt_prog_compiler_static_F77='-Bstatic'
14811 ;;
14812
14813 sysv4*MP*)
14814 if test -d /usr/nec ;then
14815 lt_prog_compiler_pic_F77='-Kconform_pic'
14816 lt_prog_compiler_static_F77='-Bstatic'
14817 fi
14818 ;;
14819
14820 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14821 lt_prog_compiler_wl_F77='-Wl,'
14822 lt_prog_compiler_pic_F77='-KPIC'
14823 lt_prog_compiler_static_F77='-Bstatic'
14824 ;;
14825
14826 unicos*)
14827 lt_prog_compiler_wl_F77='-Wl,'
14828 lt_prog_compiler_can_build_shared_F77=no
14829 ;;
14830
14831 uts4*)
14832 lt_prog_compiler_pic_F77='-pic'
14833 lt_prog_compiler_static_F77='-Bstatic'
14834 ;;
14835
14836 *)
14837 lt_prog_compiler_can_build_shared_F77=no
14838 ;;
14839 esac
14840 fi
14841
14842 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14843 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14844
14845 #
14846 # Check to make sure the PIC flag actually works.
14847 #
14848 if test -n "$lt_prog_compiler_pic_F77"; then
14849
14850 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14851 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14852 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855 lt_prog_compiler_pic_works_F77=no
14856 ac_outfile=conftest.$ac_objext
14857 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14858 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14859 # Insert the option either (1) after the last *FLAGS variable, or
14860 # (2) before a word containing "conftest.", or (3) at the end.
14861 # Note that $ac_compile itself does not contain backslashes and begins
14862 # with a dollar sign (not a hyphen), so the echo should work correctly.
14863 # The option is referenced via a variable to avoid confusing sed.
14864 lt_compile=`echo "$ac_compile" | $SED \
14865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14867 -e 's:$: $lt_compiler_flag:'`
14868 (eval echo "\"\$as_me:14868: $lt_compile\"" >&5)
14869 (eval "$lt_compile" 2>conftest.err)
14870 ac_status=$?
14871 cat conftest.err >&5
14872 echo "$as_me:14872: \$? = $ac_status" >&5
14873 if (exit $ac_status) && test -s "$ac_outfile"; then
14874 # The compiler can only warn and ignore the option if not recognized
14875 # So say no if there are warnings other than the usual output.
14876 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14878 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14879 lt_prog_compiler_pic_works_F77=yes
14880 fi
14881 fi
14882 $rm conftest*
14883
14884 fi
14885 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14886 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14887
14888 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14889 case $lt_prog_compiler_pic_F77 in
14890 "" | " "*) ;;
14891 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14892 esac
14893 else
14894 lt_prog_compiler_pic_F77=
14895 lt_prog_compiler_can_build_shared_F77=no
14896 fi
14897
14898 fi
14899 case $host_os in
14900 # For platforms which do not support PIC, -DPIC is meaningless:
14901 *djgpp*)
14902 lt_prog_compiler_pic_F77=
14903 ;;
14904 *)
14905 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14906 ;;
14907 esac
14908
14909 #
14910 # Check to make sure the static flag actually works.
14911 #
14912 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14913 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14914 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14915 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 else
14918 lt_prog_compiler_static_works_F77=no
14919 save_LDFLAGS="$LDFLAGS"
14920 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14921 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14922 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14923 # The linker can only warn and ignore the option if not recognized
14924 # So say no if there are warnings
14925 if test -s conftest.err; then
14926 # Append any errors to the config.log.
14927 cat conftest.err 1>&5
14928 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14930 if diff conftest.exp conftest.er2 >/dev/null; then
14931 lt_prog_compiler_static_works_F77=yes
14932 fi
14933 else
14934 lt_prog_compiler_static_works_F77=yes
14935 fi
14936 fi
14937 $rm conftest*
14938 LDFLAGS="$save_LDFLAGS"
14939
14940 fi
14941 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14942 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14943
14944 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14945 :
14946 else
14947 lt_prog_compiler_static_F77=
14948 fi
14949
14950
14951 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14952 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14953 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 else
14956 lt_cv_prog_compiler_c_o_F77=no
14957 $rm -r conftest 2>/dev/null
14958 mkdir conftest
14959 cd conftest
14960 mkdir out
14961 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14962
14963 lt_compiler_flag="-o out/conftest2.$ac_objext"
14964 # Insert the option either (1) after the last *FLAGS variable, or
14965 # (2) before a word containing "conftest.", or (3) at the end.
14966 # Note that $ac_compile itself does not contain backslashes and begins
14967 # with a dollar sign (not a hyphen), so the echo should work correctly.
14968 lt_compile=`echo "$ac_compile" | $SED \
14969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14971 -e 's:$: $lt_compiler_flag:'`
14972 (eval echo "\"\$as_me:14972: $lt_compile\"" >&5)
14973 (eval "$lt_compile" 2>out/conftest.err)
14974 ac_status=$?
14975 cat out/conftest.err >&5
14976 echo "$as_me:14976: \$? = $ac_status" >&5
14977 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14978 then
14979 # The compiler can only warn and ignore the option if not recognized
14980 # So say no if there are warnings
14981 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14984 lt_cv_prog_compiler_c_o_F77=yes
14985 fi
14986 fi
14987 chmod u+w . 2>&5
14988 $rm conftest*
14989 # SGI C++ compiler will create directory out/ii_files/ for
14990 # template instantiation
14991 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14992 $rm out/* && rmdir out
14993 cd ..
14994 rmdir conftest
14995 $rm conftest*
14996
14997 fi
14998 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14999 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15000
15001
15002 hard_links="nottested"
15003 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15004 # do not overwrite the value of need_locks provided by the user
15005 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15006 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15007 hard_links=yes
15008 $rm conftest*
15009 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15010 touch conftest.a
15011 ln conftest.a conftest.b 2>&5 || hard_links=no
15012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15013 echo "$as_me:$LINENO: result: $hard_links" >&5
15014 echo "${ECHO_T}$hard_links" >&6
15015 if test "$hard_links" = no; then
15016 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15017 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15018 need_locks=warn
15019 fi
15020 else
15021 need_locks=no
15022 fi
15023
15024 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15025 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15026
15027 runpath_var=
15028 allow_undefined_flag_F77=
15029 enable_shared_with_static_runtimes_F77=no
15030 archive_cmds_F77=
15031 archive_expsym_cmds_F77=
15032 old_archive_From_new_cmds_F77=
15033 old_archive_from_expsyms_cmds_F77=
15034 export_dynamic_flag_spec_F77=
15035 whole_archive_flag_spec_F77=
15036 thread_safe_flag_spec_F77=
15037 hardcode_libdir_flag_spec_F77=
15038 hardcode_libdir_flag_spec_ld_F77=
15039 hardcode_libdir_separator_F77=
15040 hardcode_direct_F77=no
15041 hardcode_minus_L_F77=no
15042 hardcode_shlibpath_var_F77=unsupported
15043 link_all_deplibs_F77=unknown
15044 hardcode_automatic_F77=no
15045 module_cmds_F77=
15046 module_expsym_cmds_F77=
15047 always_export_symbols_F77=no
15048 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15049 # include_expsyms should be a list of space-separated symbols to be *always*
15050 # included in the symbol list
15051 include_expsyms_F77=
15052 # exclude_expsyms can be an extended regexp of symbols to exclude
15053 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15054 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15055 # as well as any symbol that contains `d'.
15056 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15057 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15058 # platforms (ab)use it in PIC code, but their linkers get confused if
15059 # the symbol is explicitly referenced. Since portable code cannot
15060 # rely on this symbol name, it's probably fine to never include it in
15061 # preloaded symbol tables.
15062 extract_expsyms_cmds=
15063 # Just being paranoid about ensuring that cc_basename is set.
15064 for cc_temp in $compiler""; do
15065 case $cc_temp in
15066 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15067 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15068 \-*) ;;
15069 *) break;;
15070 esac
15071 done
15072 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15073
15074 case $host_os in
15075 cygwin* | mingw* | pw32*)
15076 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15077 # When not using gcc, we currently assume that we are using
15078 # Microsoft Visual C++.
15079 if test "$GCC" != yes; then
15080 with_gnu_ld=no
15081 fi
15082 ;;
15083 interix*)
15084 # we just hope/assume this is gcc and not c89 (= MSVC++)
15085 with_gnu_ld=yes
15086 ;;
15087 openbsd*)
15088 with_gnu_ld=no
15089 ;;
15090 esac
15091
15092 ld_shlibs_F77=yes
15093 if test "$with_gnu_ld" = yes; then
15094 # If archive_cmds runs LD, not CC, wlarc should be empty
15095 wlarc='${wl}'
15096
15097 # Set some defaults for GNU ld with shared library support. These
15098 # are reset later if shared libraries are not supported. Putting them
15099 # here allows them to be overridden if necessary.
15100 runpath_var=LD_RUN_PATH
15101 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15102 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15103 # ancient GNU ld didn't support --whole-archive et. al.
15104 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15105 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15106 else
15107 whole_archive_flag_spec_F77=
15108 fi
15109 supports_anon_versioning=no
15110 case `$LD -v 2>/dev/null` in
15111 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15112 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15113 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15114 *\ 2.11.*) ;; # other 2.11 versions
15115 *) supports_anon_versioning=yes ;;
15116 esac
15117
15118 # See if GNU ld supports shared libraries.
15119 case $host_os in
15120 aix3* | aix4* | aix5*)
15121 # On AIX/PPC, the GNU linker is very broken
15122 if test "$host_cpu" != ia64; then
15123 ld_shlibs_F77=no
15124 cat <<EOF 1>&2
15125
15126 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15127 *** to be unable to reliably create shared libraries on AIX.
15128 *** Therefore, libtool is disabling shared libraries support. If you
15129 *** really care for shared libraries, you may want to modify your PATH
15130 *** so that a non-GNU linker is found, and then restart.
15131
15132 EOF
15133 fi
15134 ;;
15135
15136 amigaos*)
15137 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)'
15138 hardcode_libdir_flag_spec_F77='-L$libdir'
15139 hardcode_minus_L_F77=yes
15140
15141 # Samuel A. Falvo II <[email protected]> reports
15142 # that the semantics of dynamic libraries on AmigaOS, at least up
15143 # to version 4, is to share data among multiple programs linked
15144 # with the same dynamic library. Since this doesn't match the
15145 # behavior of shared libraries on other platforms, we can't use
15146 # them.
15147 ld_shlibs_F77=no
15148 ;;
15149
15150 beos*)
15151 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15152 allow_undefined_flag_F77=unsupported
15153 # Joseph Beckenbach <[email protected]> says some releases of gcc
15154 # support --undefined. This deserves some investigation. FIXME
15155 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15156 else
15157 ld_shlibs_F77=no
15158 fi
15159 ;;
15160
15161 cygwin* | mingw* | pw32*)
15162 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15163 # as there is no search path for DLLs.
15164 hardcode_libdir_flag_spec_F77='-L$libdir'
15165 allow_undefined_flag_F77=unsupported
15166 always_export_symbols_F77=no
15167 enable_shared_with_static_runtimes_F77=yes
15168 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15169
15170 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15171 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15172 # If the export-symbols file already is a .def file (1st line
15173 # is EXPORTS), use it as is; otherwise, prepend...
15174 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15175 cp $export_symbols $output_objdir/$soname.def;
15176 else
15177 echo EXPORTS > $output_objdir/$soname.def;
15178 cat $export_symbols >> $output_objdir/$soname.def;
15179 fi~
15180 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15181 else
15182 ld_shlibs_F77=no
15183 fi
15184 ;;
15185
15186 interix3*)
15187 hardcode_direct_F77=no
15188 hardcode_shlibpath_var_F77=no
15189 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15190 export_dynamic_flag_spec_F77='${wl}-E'
15191 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15192 # Instead, shared libraries are loaded at an image base (0x10000000 by
15193 # default) and relocated if they conflict, which is a slow very memory
15194 # consuming and fragmenting process. To avoid this, we pick a random,
15195 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15196 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15197 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'
15198 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'
15199 ;;
15200
15201 linux*)
15202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15203 tmp_addflag=
15204 case $cc_basename,$host_cpu in
15205 pgcc*) # Portland Group C compiler
15206 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'
15207 tmp_addflag=' $pic_flag'
15208 ;;
15209 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15210 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'
15211 tmp_addflag=' $pic_flag -Mnomain' ;;
15212 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15213 tmp_addflag=' -i_dynamic' ;;
15214 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15215 tmp_addflag=' -i_dynamic -nofor_main' ;;
15216 ifc* | ifort*) # Intel Fortran compiler
15217 tmp_addflag=' -nofor_main' ;;
15218 esac
15219 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15220
15221 if test $supports_anon_versioning = yes; then
15222 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15224 $echo "local: *; };" >> $output_objdir/$libname.ver~
15225 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15226 fi
15227 else
15228 ld_shlibs_F77=no
15229 fi
15230 ;;
15231
15232 netbsd*)
15233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15234 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15235 wlarc=
15236 else
15237 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15238 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15239 fi
15240 ;;
15241
15242 solaris*)
15243 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15244 ld_shlibs_F77=no
15245 cat <<EOF 1>&2
15246
15247 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15248 *** create shared libraries on Solaris systems. Therefore, libtool
15249 *** is disabling shared libraries support. We urge you to upgrade GNU
15250 *** binutils to release 2.9.1 or newer. Another option is to modify
15251 *** your PATH or compiler configuration so that the native linker is
15252 *** used, and then restart.
15253
15254 EOF
15255 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15256 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15257 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15258 else
15259 ld_shlibs_F77=no
15260 fi
15261 ;;
15262
15263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15264 case `$LD -v 2>&1` in
15265 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15266 ld_shlibs_F77=no
15267 cat <<_LT_EOF 1>&2
15268
15269 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15270 *** reliably create shared libraries on SCO systems. Therefore, libtool
15271 *** is disabling shared libraries support. We urge you to upgrade GNU
15272 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15273 *** your PATH or compiler configuration so that the native linker is
15274 *** used, and then restart.
15275
15276 _LT_EOF
15277 ;;
15278 *)
15279 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15280 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15281 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15282 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15283 else
15284 ld_shlibs_F77=no
15285 fi
15286 ;;
15287 esac
15288 ;;
15289
15290 sunos4*)
15291 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15292 wlarc=
15293 hardcode_direct_F77=yes
15294 hardcode_shlibpath_var_F77=no
15295 ;;
15296
15297 *)
15298 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15299 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15300 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15301 else
15302 ld_shlibs_F77=no
15303 fi
15304 ;;
15305 esac
15306
15307 if test "$ld_shlibs_F77" = no; then
15308 runpath_var=
15309 hardcode_libdir_flag_spec_F77=
15310 export_dynamic_flag_spec_F77=
15311 whole_archive_flag_spec_F77=
15312 fi
15313 else
15314 # PORTME fill in a description of your system's linker (not GNU ld)
15315 case $host_os in
15316 aix3*)
15317 allow_undefined_flag_F77=unsupported
15318 always_export_symbols_F77=yes
15319 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'
15320 # Note: this linker hardcodes the directories in LIBPATH if there
15321 # are no directories specified by -L.
15322 hardcode_minus_L_F77=yes
15323 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15324 # Neither direct hardcoding nor static linking is supported with a
15325 # broken collect2.
15326 hardcode_direct_F77=unsupported
15327 fi
15328 ;;
15329
15330 aix4* | aix5*)
15331 if test "$host_cpu" = ia64; then
15332 # On IA64, the linker does run time linking by default, so we don't
15333 # have to do anything special.
15334 aix_use_runtimelinking=no
15335 exp_sym_flag='-Bexport'
15336 no_entry_flag=""
15337 else
15338 # If we're using GNU nm, then we don't want the "-C" option.
15339 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15340 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15341 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'
15342 else
15343 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'
15344 fi
15345 aix_use_runtimelinking=no
15346
15347 # Test if we are trying to use run time linking or normal
15348 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15349 # need to do runtime linking.
15350 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15351 for ld_flag in $LDFLAGS; do
15352 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15353 aix_use_runtimelinking=yes
15354 break
15355 fi
15356 done
15357 ;;
15358 esac
15359
15360 exp_sym_flag='-bexport'
15361 no_entry_flag='-bnoentry'
15362 fi
15363
15364 # When large executables or shared objects are built, AIX ld can
15365 # have problems creating the table of contents. If linking a library
15366 # or program results in "error TOC overflow" add -mminimal-toc to
15367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15369
15370 archive_cmds_F77=''
15371 hardcode_direct_F77=yes
15372 hardcode_libdir_separator_F77=':'
15373 link_all_deplibs_F77=yes
15374
15375 if test "$GCC" = yes; then
15376 case $host_os in aix4.[012]|aix4.[012].*)
15377 # We only want to do this on AIX 4.2 and lower, the check
15378 # below for broken collect2 doesn't work under 4.3+
15379 collect2name=`${CC} -print-prog-name=collect2`
15380 if test -f "$collect2name" && \
15381 strings "$collect2name" | grep resolve_lib_name >/dev/null
15382 then
15383 # We have reworked collect2
15384 hardcode_direct_F77=yes
15385 else
15386 # We have old collect2
15387 hardcode_direct_F77=unsupported
15388 # It fails to find uninstalled libraries when the uninstalled
15389 # path is not listed in the libpath. Setting hardcode_minus_L
15390 # to unsupported forces relinking
15391 hardcode_minus_L_F77=yes
15392 hardcode_libdir_flag_spec_F77='-L$libdir'
15393 hardcode_libdir_separator_F77=
15394 fi
15395 ;;
15396 esac
15397 shared_flag='-shared'
15398 if test "$aix_use_runtimelinking" = yes; then
15399 shared_flag="$shared_flag "'${wl}-G'
15400 fi
15401 else
15402 # not using gcc
15403 if test "$host_cpu" = ia64; then
15404 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15405 # chokes on -Wl,-G. The following line is correct:
15406 shared_flag='-G'
15407 else
15408 if test "$aix_use_runtimelinking" = yes; then
15409 shared_flag='${wl}-G'
15410 else
15411 shared_flag='${wl}-bM:SRE'
15412 fi
15413 fi
15414 fi
15415
15416 # It seems that -bexpall does not export symbols beginning with
15417 # underscore (_), so it is better to generate a list of symbols to export.
15418 always_export_symbols_F77=yes
15419 if test "$aix_use_runtimelinking" = yes; then
15420 # Warning - without using the other runtime loading flags (-brtl),
15421 # -berok will link without error, but may produce a broken library.
15422 allow_undefined_flag_F77='-berok'
15423 # Determine the default libpath from the value encoded in an empty executable.
15424 cat >conftest.$ac_ext <<_ACEOF
15425 program main
15426
15427 end
15428 _ACEOF
15429 rm -f conftest.$ac_objext conftest$ac_exeext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431 (eval $ac_link) 2>conftest.er1
15432 ac_status=$?
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -z "$ac_f77_werror_flag"
15439 || test ! -s conftest.err'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; } &&
15445 { ac_try='test -s conftest$ac_exeext'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15448 ac_status=$?
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15451
15452 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15453 }'`
15454 # Check for a 64-bit object if we didn't find anything.
15455 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; }
15456 }'`; fi
15457 else
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15460
15461 fi
15462 rm -f conftest.err conftest.$ac_objext \
15463 conftest$ac_exeext conftest.$ac_ext
15464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15465
15466 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15467 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"
15468 else
15469 if test "$host_cpu" = ia64; then
15470 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15471 allow_undefined_flag_F77="-z nodefs"
15472 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"
15473 else
15474 # Determine the default libpath from the value encoded in an empty executable.
15475 cat >conftest.$ac_ext <<_ACEOF
15476 program main
15477
15478 end
15479 _ACEOF
15480 rm -f conftest.$ac_objext conftest$ac_exeext
15481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15482 (eval $ac_link) 2>conftest.er1
15483 ac_status=$?
15484 grep -v '^ *+' conftest.er1 >conftest.err
15485 rm -f conftest.er1
15486 cat conftest.err >&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } &&
15489 { ac_try='test -z "$ac_f77_werror_flag"
15490 || test ! -s conftest.err'
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15493 ac_status=$?
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; } &&
15496 { ac_try='test -s conftest$ac_exeext'
15497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498 (eval $ac_try) 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; }; then
15502
15503 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15504 }'`
15505 # Check for a 64-bit object if we didn't find anything.
15506 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; }
15507 }'`; fi
15508 else
15509 echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15511
15512 fi
15513 rm -f conftest.err conftest.$ac_objext \
15514 conftest$ac_exeext conftest.$ac_ext
15515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15516
15517 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15518 # Warning - without using the other run time loading flags,
15519 # -berok will link without error, but may produce a broken library.
15520 no_undefined_flag_F77=' ${wl}-bernotok'
15521 allow_undefined_flag_F77=' ${wl}-berok'
15522 # Exported symbols can be pulled into shared objects from archives
15523 whole_archive_flag_spec_F77='$convenience'
15524 archive_cmds_need_lc_F77=yes
15525 # This is similar to how AIX traditionally builds its shared libraries.
15526 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'
15527 fi
15528 fi
15529 ;;
15530
15531 amigaos*)
15532 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)'
15533 hardcode_libdir_flag_spec_F77='-L$libdir'
15534 hardcode_minus_L_F77=yes
15535 # see comment about different semantics on the GNU ld section
15536 ld_shlibs_F77=no
15537 ;;
15538
15539 bsdi[45]*)
15540 export_dynamic_flag_spec_F77=-rdynamic
15541 ;;
15542
15543 cygwin* | mingw* | pw32*)
15544 # When not using gcc, we currently assume that we are using
15545 # Microsoft Visual C++.
15546 # hardcode_libdir_flag_spec is actually meaningless, as there is
15547 # no search path for DLLs.
15548 hardcode_libdir_flag_spec_F77=' '
15549 allow_undefined_flag_F77=unsupported
15550 # Tell ltmain to make .lib files, not .a files.
15551 libext=lib
15552 # Tell ltmain to make .dll files, not .so files.
15553 shrext_cmds=".dll"
15554 # FIXME: Setting linknames here is a bad hack.
15555 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15556 # The linker will automatically build a .lib file if we build a DLL.
15557 old_archive_From_new_cmds_F77='true'
15558 # FIXME: Should let the user specify the lib program.
15559 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15560 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15561 enable_shared_with_static_runtimes_F77=yes
15562 ;;
15563
15564 darwin* | rhapsody*)
15565 case $host_os in
15566 rhapsody* | darwin1.[012])
15567 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15568 ;;
15569 *) # Darwin 1.3 on
15570 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15571 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15572 else
15573 case ${MACOSX_DEPLOYMENT_TARGET} in
15574 10.[012])
15575 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15576 ;;
15577 10.*)
15578 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15579 ;;
15580 esac
15581 fi
15582 ;;
15583 esac
15584 archive_cmds_need_lc_F77=no
15585 hardcode_direct_F77=no
15586 hardcode_automatic_F77=yes
15587 hardcode_shlibpath_var_F77=unsupported
15588 whole_archive_flag_spec_F77=''
15589 link_all_deplibs_F77=yes
15590 if test "$GCC" = yes ; then
15591 output_verbose_link_cmd='echo'
15592 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15593 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15594 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15595 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}'
15596 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}'
15597 else
15598 case $cc_basename in
15599 xlc*)
15600 output_verbose_link_cmd='echo'
15601 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15602 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15603 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15604 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}'
15605 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}'
15606 ;;
15607 *)
15608 ld_shlibs_F77=no
15609 ;;
15610 esac
15611 fi
15612 ;;
15613
15614 dgux*)
15615 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15616 hardcode_libdir_flag_spec_F77='-L$libdir'
15617 hardcode_shlibpath_var_F77=no
15618 ;;
15619
15620 freebsd1*)
15621 ld_shlibs_F77=no
15622 ;;
15623
15624 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15625 # support. Future versions do this automatically, but an explicit c++rt0.o
15626 # does not break anything, and helps significantly (at the cost of a little
15627 # extra space).
15628 freebsd2.2*)
15629 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15630 hardcode_libdir_flag_spec_F77='-R$libdir'
15631 hardcode_direct_F77=yes
15632 hardcode_shlibpath_var_F77=no
15633 ;;
15634
15635 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15636 freebsd2*)
15637 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15638 hardcode_direct_F77=yes
15639 hardcode_minus_L_F77=yes
15640 hardcode_shlibpath_var_F77=no
15641 ;;
15642
15643 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15644 freebsd* | kfreebsd*-gnu | dragonfly*)
15645 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15646 hardcode_libdir_flag_spec_F77='-R$libdir'
15647 hardcode_direct_F77=yes
15648 hardcode_shlibpath_var_F77=no
15649 ;;
15650
15651 hpux9*)
15652 if test "$GCC" = yes; then
15653 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'
15654 else
15655 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'
15656 fi
15657 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15658 hardcode_libdir_separator_F77=:
15659 hardcode_direct_F77=yes
15660
15661 # hardcode_minus_L: Not really in the search PATH,
15662 # but as the default location of the library.
15663 hardcode_minus_L_F77=yes
15664 export_dynamic_flag_spec_F77='${wl}-E'
15665 ;;
15666
15667 hpux10*)
15668 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15669 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15670 else
15671 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15672 fi
15673 if test "$with_gnu_ld" = no; then
15674 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15675 hardcode_libdir_separator_F77=:
15676
15677 hardcode_direct_F77=yes
15678 export_dynamic_flag_spec_F77='${wl}-E'
15679
15680 # hardcode_minus_L: Not really in the search PATH,
15681 # but as the default location of the library.
15682 hardcode_minus_L_F77=yes
15683 fi
15684 ;;
15685
15686 hpux11*)
15687 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15688 case $host_cpu in
15689 hppa*64*)
15690 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15691 ;;
15692 ia64*)
15693 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15694 ;;
15695 *)
15696 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15697 ;;
15698 esac
15699 else
15700 case $host_cpu in
15701 hppa*64*)
15702 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15703 ;;
15704 ia64*)
15705 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15706 ;;
15707 *)
15708 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15709 ;;
15710 esac
15711 fi
15712 if test "$with_gnu_ld" = no; then
15713 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15714 hardcode_libdir_separator_F77=:
15715
15716 case $host_cpu in
15717 hppa*64*|ia64*)
15718 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15719 hardcode_direct_F77=no
15720 hardcode_shlibpath_var_F77=no
15721 ;;
15722 *)
15723 hardcode_direct_F77=yes
15724 export_dynamic_flag_spec_F77='${wl}-E'
15725
15726 # hardcode_minus_L: Not really in the search PATH,
15727 # but as the default location of the library.
15728 hardcode_minus_L_F77=yes
15729 ;;
15730 esac
15731 fi
15732 ;;
15733
15734 irix5* | irix6* | nonstopux*)
15735 if test "$GCC" = yes; then
15736 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'
15737 else
15738 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'
15739 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15740 fi
15741 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15742 hardcode_libdir_separator_F77=:
15743 link_all_deplibs_F77=yes
15744 ;;
15745
15746 netbsd*)
15747 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15748 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15749 else
15750 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15751 fi
15752 hardcode_libdir_flag_spec_F77='-R$libdir'
15753 hardcode_direct_F77=yes
15754 hardcode_shlibpath_var_F77=no
15755 ;;
15756
15757 newsos6)
15758 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15759 hardcode_direct_F77=yes
15760 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15761 hardcode_libdir_separator_F77=:
15762 hardcode_shlibpath_var_F77=no
15763 ;;
15764
15765 openbsd*)
15766 hardcode_direct_F77=yes
15767 hardcode_shlibpath_var_F77=no
15768 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15769 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15770 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15771 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15772 export_dynamic_flag_spec_F77='${wl}-E'
15773 else
15774 case $host_os in
15775 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15776 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15777 hardcode_libdir_flag_spec_F77='-R$libdir'
15778 ;;
15779 *)
15780 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15781 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15782 ;;
15783 esac
15784 fi
15785 ;;
15786
15787 os2*)
15788 hardcode_libdir_flag_spec_F77='-L$libdir'
15789 hardcode_minus_L_F77=yes
15790 allow_undefined_flag_F77=unsupported
15791 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'
15792 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15793 ;;
15794
15795 osf3*)
15796 if test "$GCC" = yes; then
15797 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15798 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'
15799 else
15800 allow_undefined_flag_F77=' -expect_unresolved \*'
15801 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'
15802 fi
15803 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15804 hardcode_libdir_separator_F77=:
15805 ;;
15806
15807 osf4* | osf5*) # as osf3* with the addition of -msym flag
15808 if test "$GCC" = yes; then
15809 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15810 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'
15811 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15812 else
15813 allow_undefined_flag_F77=' -expect_unresolved \*'
15814 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'
15815 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~
15816 $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'
15817
15818 # Both c and cxx compiler support -rpath directly
15819 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15820 fi
15821 hardcode_libdir_separator_F77=:
15822 ;;
15823
15824 solaris*)
15825 no_undefined_flag_F77=' -z text'
15826 if test "$GCC" = yes; then
15827 wlarc='${wl}'
15828 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15829 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15830 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15831 else
15832 wlarc=''
15833 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15834 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15835 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15836 fi
15837 hardcode_libdir_flag_spec_F77='-R$libdir'
15838 hardcode_shlibpath_var_F77=no
15839 case $host_os in
15840 solaris2.[0-5] | solaris2.[0-5].*) ;;
15841 *)
15842 # The compiler driver will combine linker options so we
15843 # cannot just pass the convience library names through
15844 # without $wl, iff we do not link with $LD.
15845 # Luckily, gcc supports the same syntax we need for Sun Studio.
15846 # Supported since Solaris 2.6 (maybe 2.5.1?)
15847 case $wlarc in
15848 '')
15849 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15850 *)
15851 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' ;;
15852 esac ;;
15853 esac
15854 link_all_deplibs_F77=yes
15855 ;;
15856
15857 sunos4*)
15858 if test "x$host_vendor" = xsequent; then
15859 # Use $CC to link under sequent, because it throws in some extra .o
15860 # files that make .init and .fini sections work.
15861 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15862 else
15863 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15864 fi
15865 hardcode_libdir_flag_spec_F77='-L$libdir'
15866 hardcode_direct_F77=yes
15867 hardcode_minus_L_F77=yes
15868 hardcode_shlibpath_var_F77=no
15869 ;;
15870
15871 sysv4)
15872 case $host_vendor in
15873 sni)
15874 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15875 hardcode_direct_F77=yes # is this really true???
15876 ;;
15877 siemens)
15878 ## LD is ld it makes a PLAMLIB
15879 ## CC just makes a GrossModule.
15880 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15881 reload_cmds_F77='$CC -r -o $output$reload_objs'
15882 hardcode_direct_F77=no
15883 ;;
15884 motorola)
15885 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15886 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15887 ;;
15888 esac
15889 runpath_var='LD_RUN_PATH'
15890 hardcode_shlibpath_var_F77=no
15891 ;;
15892
15893 sysv4.3*)
15894 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15895 hardcode_shlibpath_var_F77=no
15896 export_dynamic_flag_spec_F77='-Bexport'
15897 ;;
15898
15899 sysv4*MP*)
15900 if test -d /usr/nec; then
15901 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15902 hardcode_shlibpath_var_F77=no
15903 runpath_var=LD_RUN_PATH
15904 hardcode_runpath_var=yes
15905 ld_shlibs_F77=yes
15906 fi
15907 ;;
15908
15909 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15910 no_undefined_flag_F77='${wl}-z,text'
15911 archive_cmds_need_lc_F77=no
15912 hardcode_shlibpath_var_F77=no
15913 runpath_var='LD_RUN_PATH'
15914
15915 if test "$GCC" = yes; then
15916 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15917 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15918 else
15919 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15920 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15921 fi
15922 ;;
15923
15924 sysv5* | sco3.2v5* | sco5v6*)
15925 # Note: We can NOT use -z defs as we might desire, because we do not
15926 # link with -lc, and that would cause any symbols used from libc to
15927 # always be unresolved, which means just about no library would
15928 # ever link correctly. If we're not using GNU ld we use -z text
15929 # though, which does catch some bad symbols but isn't as heavy-handed
15930 # as -z defs.
15931 no_undefined_flag_F77='${wl}-z,text'
15932 allow_undefined_flag_F77='${wl}-z,nodefs'
15933 archive_cmds_need_lc_F77=no
15934 hardcode_shlibpath_var_F77=no
15935 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15936 hardcode_libdir_separator_F77=':'
15937 link_all_deplibs_F77=yes
15938 export_dynamic_flag_spec_F77='${wl}-Bexport'
15939 runpath_var='LD_RUN_PATH'
15940
15941 if test "$GCC" = yes; then
15942 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15943 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15944 else
15945 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15946 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15947 fi
15948 ;;
15949
15950 uts4*)
15951 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15952 hardcode_libdir_flag_spec_F77='-L$libdir'
15953 hardcode_shlibpath_var_F77=no
15954 ;;
15955
15956 *)
15957 ld_shlibs_F77=no
15958 ;;
15959 esac
15960 fi
15961
15962 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15963 echo "${ECHO_T}$ld_shlibs_F77" >&6
15964 test "$ld_shlibs_F77" = no && can_build_shared=no
15965
15966 #
15967 # Do we need to explicitly link libc?
15968 #
15969 case "x$archive_cmds_need_lc_F77" in
15970 x|xyes)
15971 # Assume -lc should be added
15972 archive_cmds_need_lc_F77=yes
15973
15974 if test "$enable_shared" = yes && test "$GCC" = yes; then
15975 case $archive_cmds_F77 in
15976 *'~'*)
15977 # FIXME: we may have to deal with multi-command sequences.
15978 ;;
15979 '$CC '*)
15980 # Test whether the compiler implicitly links with -lc since on some
15981 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15982 # to ld, don't add -lc before -lgcc.
15983 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15984 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15985 $rm conftest*
15986 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15987
15988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15989 (eval $ac_compile) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } 2>conftest.err; then
15993 soname=conftest
15994 lib=conftest
15995 libobjs=conftest.$ac_objext
15996 deplibs=
15997 wl=$lt_prog_compiler_wl_F77
15998 pic_flag=$lt_prog_compiler_pic_F77
15999 compiler_flags=-v
16000 linker_flags=-v
16001 verstring=
16002 output_objdir=.
16003 libname=conftest
16004 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16005 allow_undefined_flag_F77=
16006 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16007 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }
16011 then
16012 archive_cmds_need_lc_F77=no
16013 else
16014 archive_cmds_need_lc_F77=yes
16015 fi
16016 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16017 else
16018 cat conftest.err 1>&5
16019 fi
16020 $rm conftest*
16021 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16022 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16023 ;;
16024 esac
16025 fi
16026 ;;
16027 esac
16028
16029 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16030 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16031 library_names_spec=
16032 libname_spec='lib$name'
16033 soname_spec=
16034 shrext_cmds=".so"
16035 postinstall_cmds=
16036 postuninstall_cmds=
16037 finish_cmds=
16038 finish_eval=
16039 shlibpath_var=
16040 shlibpath_overrides_runpath=unknown
16041 version_type=none
16042 dynamic_linker="$host_os ld.so"
16043 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16044 if test "$GCC" = yes; then
16045 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16046 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16047 # if the path contains ";" then we assume it to be the separator
16048 # otherwise default to the standard path separator (i.e. ":") - it is
16049 # assumed that no part of a normal pathname contains ";" but that should
16050 # okay in the real world where ";" in dirpaths is itself problematic.
16051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16052 else
16053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16054 fi
16055 else
16056 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16057 fi
16058 need_lib_prefix=unknown
16059 hardcode_into_libs=no
16060
16061 # when you set need_version to no, make sure it does not cause -set_version
16062 # flags to be left without arguments
16063 need_version=unknown
16064
16065 case $host_os in
16066 aix3*)
16067 version_type=linux
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16069 shlibpath_var=LIBPATH
16070
16071 # AIX 3 has no versioning support, so we append a major version to the name.
16072 soname_spec='${libname}${release}${shared_ext}$major'
16073 ;;
16074
16075 aix4* | aix5*)
16076 version_type=linux
16077 need_lib_prefix=no
16078 need_version=no
16079 hardcode_into_libs=yes
16080 if test "$host_cpu" = ia64; then
16081 # AIX 5 supports IA64
16082 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16083 shlibpath_var=LD_LIBRARY_PATH
16084 else
16085 # With GCC up to 2.95.x, collect2 would create an import file
16086 # for dependence libraries. The import file would start with
16087 # the line `#! .'. This would cause the generated library to
16088 # depend on `.', always an invalid library. This was fixed in
16089 # development snapshots of GCC prior to 3.0.
16090 case $host_os in
16091 aix4 | aix4.[01] | aix4.[01].*)
16092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16093 echo ' yes '
16094 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16095 :
16096 else
16097 can_build_shared=no
16098 fi
16099 ;;
16100 esac
16101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16102 # soname into executable. Probably we can add versioning support to
16103 # collect2, so additional links can be useful in future.
16104 if test "$aix_use_runtimelinking" = yes; then
16105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16106 # instead of lib<name>.a to let people know that these are not
16107 # typical AIX shared libraries.
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109 else
16110 # We preserve .a as extension for shared libraries through AIX4.2
16111 # and later when we are not doing run time linking.
16112 library_names_spec='${libname}${release}.a $libname.a'
16113 soname_spec='${libname}${release}${shared_ext}$major'
16114 fi
16115 shlibpath_var=LIBPATH
16116 fi
16117 ;;
16118
16119 amigaos*)
16120 library_names_spec='$libname.ixlibrary $libname.a'
16121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16122 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'
16123 ;;
16124
16125 beos*)
16126 library_names_spec='${libname}${shared_ext}'
16127 dynamic_linker="$host_os ld.so"
16128 shlibpath_var=LIBRARY_PATH
16129 ;;
16130
16131 bsdi[45]*)
16132 version_type=linux
16133 need_version=no
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135 soname_spec='${libname}${release}${shared_ext}$major'
16136 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16137 shlibpath_var=LD_LIBRARY_PATH
16138 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16139 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16140 # the default ld.so.conf also contains /usr/contrib/lib and
16141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16142 # libtool to hard-code these into programs
16143 ;;
16144
16145 cygwin* | mingw* | pw32*)
16146 version_type=windows
16147 shrext_cmds=".dll"
16148 need_version=no
16149 need_lib_prefix=no
16150
16151 case $GCC,$host_os in
16152 yes,cygwin* | yes,mingw* | yes,pw32*)
16153 library_names_spec='$libname.dll.a'
16154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16155 postinstall_cmds='base_file=`basename \${file}`~
16156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16157 dldir=$destdir/`dirname \$dlpath`~
16158 test -d \$dldir || mkdir -p \$dldir~
16159 $install_prog $dir/$dlname \$dldir/$dlname~
16160 chmod a+x \$dldir/$dlname'
16161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16162 dlpath=$dir/\$dldll~
16163 $rm \$dlpath'
16164 shlibpath_overrides_runpath=yes
16165
16166 case $host_os in
16167 cygwin*)
16168 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16169 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16170 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16171 ;;
16172 mingw*)
16173 # MinGW DLLs use traditional 'lib' prefix
16174 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16175 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16176 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16177 # It is most probably a Windows format PATH printed by
16178 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16179 # path with ; separators, and with drive letters. We can handle the
16180 # drive letters (cygwin fileutils understands them), so leave them,
16181 # especially as we might pass files found there to a mingw objdump,
16182 # which wouldn't understand a cygwinified path. Ahh.
16183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16184 else
16185 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16186 fi
16187 ;;
16188 pw32*)
16189 # pw32 DLLs use 'pw' prefix rather than 'lib'
16190 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16191 ;;
16192 esac
16193 ;;
16194
16195 *)
16196 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16197 ;;
16198 esac
16199 dynamic_linker='Win32 ld.exe'
16200 # FIXME: first we should search . and the directory the executable is in
16201 shlibpath_var=PATH
16202 ;;
16203
16204 darwin* | rhapsody*)
16205 dynamic_linker="$host_os dyld"
16206 version_type=darwin
16207 need_lib_prefix=no
16208 need_version=no
16209 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16210 soname_spec='${libname}${release}${major}$shared_ext'
16211 shlibpath_overrides_runpath=yes
16212 shlibpath_var=DYLD_LIBRARY_PATH
16213 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16214 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16215 if test "$GCC" = yes; then
16216 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"`
16217 else
16218 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16219 fi
16220 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16221 ;;
16222
16223 dgux*)
16224 version_type=linux
16225 need_lib_prefix=no
16226 need_version=no
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 ;;
16231
16232 freebsd1*)
16233 dynamic_linker=no
16234 ;;
16235
16236 kfreebsd*-gnu)
16237 version_type=linux
16238 need_lib_prefix=no
16239 need_version=no
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16241 soname_spec='${libname}${release}${shared_ext}$major'
16242 shlibpath_var=LD_LIBRARY_PATH
16243 shlibpath_overrides_runpath=no
16244 hardcode_into_libs=yes
16245 dynamic_linker='GNU ld.so'
16246 ;;
16247
16248 freebsd* | dragonfly*)
16249 # DragonFly does not have aout. When/if they implement a new
16250 # versioning mechanism, adjust this.
16251 if test -x /usr/bin/objformat; then
16252 objformat=`/usr/bin/objformat`
16253 else
16254 case $host_os in
16255 freebsd[123]*) objformat=aout ;;
16256 *) objformat=elf ;;
16257 esac
16258 fi
16259 version_type=freebsd-$objformat
16260 case $version_type in
16261 freebsd-elf*)
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16263 need_version=no
16264 need_lib_prefix=no
16265 ;;
16266 freebsd-*)
16267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16268 need_version=yes
16269 ;;
16270 esac
16271 shlibpath_var=LD_LIBRARY_PATH
16272 case $host_os in
16273 freebsd2*)
16274 shlibpath_overrides_runpath=yes
16275 ;;
16276 freebsd3.[01]* | freebsdelf3.[01]*)
16277 shlibpath_overrides_runpath=yes
16278 hardcode_into_libs=yes
16279 ;;
16280 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16281 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16282 shlibpath_overrides_runpath=no
16283 hardcode_into_libs=yes
16284 ;;
16285 freebsd*) # from 4.6 on
16286 shlibpath_overrides_runpath=yes
16287 hardcode_into_libs=yes
16288 ;;
16289 esac
16290 ;;
16291
16292 gnu*)
16293 version_type=linux
16294 need_lib_prefix=no
16295 need_version=no
16296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16297 soname_spec='${libname}${release}${shared_ext}$major'
16298 shlibpath_var=LD_LIBRARY_PATH
16299 hardcode_into_libs=yes
16300 ;;
16301
16302 hpux9* | hpux10* | hpux11*)
16303 # Give a soname corresponding to the major version so that dld.sl refuses to
16304 # link against other versions.
16305 version_type=sunos
16306 need_lib_prefix=no
16307 need_version=no
16308 case $host_cpu in
16309 ia64*)
16310 shrext_cmds='.so'
16311 hardcode_into_libs=yes
16312 dynamic_linker="$host_os dld.so"
16313 shlibpath_var=LD_LIBRARY_PATH
16314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16316 soname_spec='${libname}${release}${shared_ext}$major'
16317 if test "X$HPUX_IA64_MODE" = X32; then
16318 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16319 else
16320 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16321 fi
16322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16323 ;;
16324 hppa*64*)
16325 shrext_cmds='.sl'
16326 hardcode_into_libs=yes
16327 dynamic_linker="$host_os dld.sl"
16328 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16331 soname_spec='${libname}${release}${shared_ext}$major'
16332 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16334 ;;
16335 *)
16336 shrext_cmds='.sl'
16337 dynamic_linker="$host_os dld.sl"
16338 shlibpath_var=SHLIB_PATH
16339 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16341 soname_spec='${libname}${release}${shared_ext}$major'
16342 ;;
16343 esac
16344 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16345 postinstall_cmds='chmod 555 $lib'
16346 ;;
16347
16348 interix3*)
16349 version_type=linux
16350 need_lib_prefix=no
16351 need_version=no
16352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16353 soname_spec='${libname}${release}${shared_ext}$major'
16354 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16355 shlibpath_var=LD_LIBRARY_PATH
16356 shlibpath_overrides_runpath=no
16357 hardcode_into_libs=yes
16358 ;;
16359
16360 irix5* | irix6* | nonstopux*)
16361 case $host_os in
16362 nonstopux*) version_type=nonstopux ;;
16363 *)
16364 if test "$lt_cv_prog_gnu_ld" = yes; then
16365 version_type=linux
16366 else
16367 version_type=irix
16368 fi ;;
16369 esac
16370 need_lib_prefix=no
16371 need_version=no
16372 soname_spec='${libname}${release}${shared_ext}$major'
16373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16374 case $host_os in
16375 irix5* | nonstopux*)
16376 libsuff= shlibsuff=
16377 ;;
16378 *)
16379 case $LD in # libtool.m4 will add one of these switches to LD
16380 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16381 libsuff= shlibsuff= libmagic=32-bit;;
16382 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16383 libsuff=32 shlibsuff=N32 libmagic=N32;;
16384 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16385 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16386 *) libsuff= shlibsuff= libmagic=never-match;;
16387 esac
16388 ;;
16389 esac
16390 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16391 shlibpath_overrides_runpath=no
16392 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16393 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16394 hardcode_into_libs=yes
16395 ;;
16396
16397 # No shared lib support for Linux oldld, aout, or coff.
16398 linux*oldld* | linux*aout* | linux*coff*)
16399 dynamic_linker=no
16400 ;;
16401
16402 # This must be Linux ELF.
16403 linux*)
16404 version_type=linux
16405 need_lib_prefix=no
16406 need_version=no
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408 soname_spec='${libname}${release}${shared_ext}$major'
16409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16410 shlibpath_var=LD_LIBRARY_PATH
16411 shlibpath_overrides_runpath=no
16412 # This implies no fast_install, which is unacceptable.
16413 # Some rework will be needed to allow for fast_install
16414 # before this can be enabled.
16415 hardcode_into_libs=yes
16416
16417 # Append ld.so.conf contents to the search path
16418 if test -f /etc/ld.so.conf; then
16419 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' ' '`
16420 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16421 fi
16422
16423 # We used to test for /lib/ld.so.1 and disable shared libraries on
16424 # powerpc, because MkLinux only supported shared libraries with the
16425 # GNU dynamic linker. Since this was broken with cross compilers,
16426 # most powerpc-linux boxes support dynamic linking these days and
16427 # people can always --disable-shared, the test was removed, and we
16428 # assume the GNU/Linux dynamic linker is in use.
16429 dynamic_linker='GNU/Linux ld.so'
16430 ;;
16431
16432 knetbsd*-gnu)
16433 version_type=linux
16434 need_lib_prefix=no
16435 need_version=no
16436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16437 soname_spec='${libname}${release}${shared_ext}$major'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 shlibpath_overrides_runpath=no
16440 hardcode_into_libs=yes
16441 dynamic_linker='GNU ld.so'
16442 ;;
16443
16444 netbsd*)
16445 version_type=sunos
16446 need_lib_prefix=no
16447 need_version=no
16448 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16451 dynamic_linker='NetBSD (a.out) ld.so'
16452 else
16453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16454 soname_spec='${libname}${release}${shared_ext}$major'
16455 dynamic_linker='NetBSD ld.elf_so'
16456 fi
16457 shlibpath_var=LD_LIBRARY_PATH
16458 shlibpath_overrides_runpath=yes
16459 hardcode_into_libs=yes
16460 ;;
16461
16462 newsos6)
16463 version_type=linux
16464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 shlibpath_overrides_runpath=yes
16467 ;;
16468
16469 nto-qnx*)
16470 version_type=linux
16471 need_lib_prefix=no
16472 need_version=no
16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474 soname_spec='${libname}${release}${shared_ext}$major'
16475 shlibpath_var=LD_LIBRARY_PATH
16476 shlibpath_overrides_runpath=yes
16477 ;;
16478
16479 openbsd*)
16480 version_type=sunos
16481 sys_lib_dlsearch_path_spec="/usr/lib"
16482 need_lib_prefix=no
16483 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16484 case $host_os in
16485 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16486 *) need_version=no ;;
16487 esac
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16490 shlibpath_var=LD_LIBRARY_PATH
16491 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16492 case $host_os in
16493 openbsd2.[89] | openbsd2.[89].*)
16494 shlibpath_overrides_runpath=no
16495 ;;
16496 *)
16497 shlibpath_overrides_runpath=yes
16498 ;;
16499 esac
16500 else
16501 shlibpath_overrides_runpath=yes
16502 fi
16503 ;;
16504
16505 os2*)
16506 libname_spec='$name'
16507 shrext_cmds=".dll"
16508 need_lib_prefix=no
16509 library_names_spec='$libname${shared_ext} $libname.a'
16510 dynamic_linker='OS/2 ld.exe'
16511 shlibpath_var=LIBPATH
16512 ;;
16513
16514 osf3* | osf4* | osf5*)
16515 version_type=osf
16516 need_lib_prefix=no
16517 need_version=no
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16522 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16523 ;;
16524
16525 solaris*)
16526 version_type=linux
16527 need_lib_prefix=no
16528 need_version=no
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16530 soname_spec='${libname}${release}${shared_ext}$major'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 shlibpath_overrides_runpath=yes
16533 hardcode_into_libs=yes
16534 # ldd complains unless libraries are executable
16535 postinstall_cmds='chmod +x $lib'
16536 ;;
16537
16538 sunos4*)
16539 version_type=sunos
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16541 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16542 shlibpath_var=LD_LIBRARY_PATH
16543 shlibpath_overrides_runpath=yes
16544 if test "$with_gnu_ld" = yes; then
16545 need_lib_prefix=no
16546 fi
16547 need_version=yes
16548 ;;
16549
16550 sysv4 | sysv4.3*)
16551 version_type=linux
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553 soname_spec='${libname}${release}${shared_ext}$major'
16554 shlibpath_var=LD_LIBRARY_PATH
16555 case $host_vendor in
16556 sni)
16557 shlibpath_overrides_runpath=no
16558 need_lib_prefix=no
16559 export_dynamic_flag_spec='${wl}-Blargedynsym'
16560 runpath_var=LD_RUN_PATH
16561 ;;
16562 siemens)
16563 need_lib_prefix=no
16564 ;;
16565 motorola)
16566 need_lib_prefix=no
16567 need_version=no
16568 shlibpath_overrides_runpath=no
16569 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16570 ;;
16571 esac
16572 ;;
16573
16574 sysv4*MP*)
16575 if test -d /usr/nec ;then
16576 version_type=linux
16577 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16578 soname_spec='$libname${shared_ext}.$major'
16579 shlibpath_var=LD_LIBRARY_PATH
16580 fi
16581 ;;
16582
16583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16584 version_type=freebsd-elf
16585 need_lib_prefix=no
16586 need_version=no
16587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16588 soname_spec='${libname}${release}${shared_ext}$major'
16589 shlibpath_var=LD_LIBRARY_PATH
16590 hardcode_into_libs=yes
16591 if test "$with_gnu_ld" = yes; then
16592 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16593 shlibpath_overrides_runpath=no
16594 else
16595 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16596 shlibpath_overrides_runpath=yes
16597 case $host_os in
16598 sco3.2v5*)
16599 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16600 ;;
16601 esac
16602 fi
16603 sys_lib_dlsearch_path_spec='/usr/lib'
16604 ;;
16605
16606 uts4*)
16607 version_type=linux
16608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16609 soname_spec='${libname}${release}${shared_ext}$major'
16610 shlibpath_var=LD_LIBRARY_PATH
16611 ;;
16612
16613 *)
16614 dynamic_linker=no
16615 ;;
16616 esac
16617 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16618 echo "${ECHO_T}$dynamic_linker" >&6
16619 test "$dynamic_linker" = no && can_build_shared=no
16620
16621 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16622 if test "$GCC" = yes; then
16623 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16624 fi
16625
16626 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16627 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16628 hardcode_action_F77=
16629 if test -n "$hardcode_libdir_flag_spec_F77" || \
16630 test -n "$runpath_var_F77" || \
16631 test "X$hardcode_automatic_F77" = "Xyes" ; then
16632
16633 # We can hardcode non-existant directories.
16634 if test "$hardcode_direct_F77" != no &&
16635 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16636 # have to relink, otherwise we might link with an installed library
16637 # when we should be linking with a yet-to-be-installed one
16638 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16639 test "$hardcode_minus_L_F77" != no; then
16640 # Linking always hardcodes the temporary library directory.
16641 hardcode_action_F77=relink
16642 else
16643 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16644 hardcode_action_F77=immediate
16645 fi
16646 else
16647 # We cannot hardcode anything, or else we can only hardcode existing
16648 # directories.
16649 hardcode_action_F77=unsupported
16650 fi
16651 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16652 echo "${ECHO_T}$hardcode_action_F77" >&6
16653
16654 if test "$hardcode_action_F77" = relink; then
16655 # Fast installation is not supported
16656 enable_fast_install=no
16657 elif test "$shlibpath_overrides_runpath" = yes ||
16658 test "$enable_shared" = no; then
16659 # Fast installation is not necessary
16660 enable_fast_install=needless
16661 fi
16662
16663
16664 # The else clause should only fire when bootstrapping the
16665 # libtool distribution, otherwise you forgot to ship ltmain.sh
16666 # with your package, and you will get complaints that there are
16667 # no rules to generate ltmain.sh.
16668 if test -f "$ltmain"; then
16669 # See if we are running on zsh, and set the options which allow our commands through
16670 # without removal of \ escapes.
16671 if test -n "${ZSH_VERSION+set}" ; then
16672 setopt NO_GLOB_SUBST
16673 fi
16674 # Now quote all the things that may contain metacharacters while being
16675 # careful not to overquote the AC_SUBSTed values. We take copies of the
16676 # variables and quote the copies for generation of the libtool script.
16677 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16678 SED SHELL STRIP \
16679 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16680 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16681 deplibs_check_method reload_flag reload_cmds need_locks \
16682 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16683 lt_cv_sys_global_symbol_to_c_name_address \
16684 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16685 old_postinstall_cmds old_postuninstall_cmds \
16686 compiler_F77 \
16687 CC_F77 \
16688 LD_F77 \
16689 lt_prog_compiler_wl_F77 \
16690 lt_prog_compiler_pic_F77 \
16691 lt_prog_compiler_static_F77 \
16692 lt_prog_compiler_no_builtin_flag_F77 \
16693 export_dynamic_flag_spec_F77 \
16694 thread_safe_flag_spec_F77 \
16695 whole_archive_flag_spec_F77 \
16696 enable_shared_with_static_runtimes_F77 \
16697 old_archive_cmds_F77 \
16698 old_archive_from_new_cmds_F77 \
16699 predep_objects_F77 \
16700 postdep_objects_F77 \
16701 predeps_F77 \
16702 postdeps_F77 \
16703 compiler_lib_search_path_F77 \
16704 archive_cmds_F77 \
16705 archive_expsym_cmds_F77 \
16706 postinstall_cmds_F77 \
16707 postuninstall_cmds_F77 \
16708 old_archive_from_expsyms_cmds_F77 \
16709 allow_undefined_flag_F77 \
16710 no_undefined_flag_F77 \
16711 export_symbols_cmds_F77 \
16712 hardcode_libdir_flag_spec_F77 \
16713 hardcode_libdir_flag_spec_ld_F77 \
16714 hardcode_libdir_separator_F77 \
16715 hardcode_automatic_F77 \
16716 module_cmds_F77 \
16717 module_expsym_cmds_F77 \
16718 lt_cv_prog_compiler_c_o_F77 \
16719 exclude_expsyms_F77 \
16720 include_expsyms_F77; do
16721
16722 case $var in
16723 old_archive_cmds_F77 | \
16724 old_archive_from_new_cmds_F77 | \
16725 archive_cmds_F77 | \
16726 archive_expsym_cmds_F77 | \
16727 module_cmds_F77 | \
16728 module_expsym_cmds_F77 | \
16729 old_archive_from_expsyms_cmds_F77 | \
16730 export_symbols_cmds_F77 | \
16731 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16732 postinstall_cmds | postuninstall_cmds | \
16733 old_postinstall_cmds | old_postuninstall_cmds | \
16734 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16735 # Double-quote double-evaled strings.
16736 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16737 ;;
16738 *)
16739 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16740 ;;
16741 esac
16742 done
16743
16744 case $lt_echo in
16745 *'\$0 --fallback-echo"')
16746 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16747 ;;
16748 esac
16749
16750 cfgfile="$ofile"
16751
16752 cat <<__EOF__ >> "$cfgfile"
16753 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16754
16755 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16756
16757 # Shell to use when invoking shell scripts.
16758 SHELL=$lt_SHELL
16759
16760 # Whether or not to build shared libraries.
16761 build_libtool_libs=$enable_shared
16762
16763 # Whether or not to build static libraries.
16764 build_old_libs=$enable_static
16765
16766 # Whether or not to add -lc for building shared libraries.
16767 build_libtool_need_lc=$archive_cmds_need_lc_F77
16768
16769 # Whether or not to disallow shared libs when runtime libs are static
16770 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16771
16772 # Whether or not to optimize for fast installation.
16773 fast_install=$enable_fast_install
16774
16775 # The host system.
16776 host_alias=$host_alias
16777 host=$host
16778 host_os=$host_os
16779
16780 # The build system.
16781 build_alias=$build_alias
16782 build=$build
16783 build_os=$build_os
16784
16785 # An echo program that does not interpret backslashes.
16786 echo=$lt_echo
16787
16788 # The archiver.
16789 AR=$lt_AR
16790 AR_FLAGS=$lt_AR_FLAGS
16791
16792 # A C compiler.
16793 LTCC=$lt_LTCC
16794
16795 # LTCC compiler flags.
16796 LTCFLAGS=$lt_LTCFLAGS
16797
16798 # A language-specific compiler.
16799 CC=$lt_compiler_F77
16800
16801 # Is the compiler the GNU C compiler?
16802 with_gcc=$GCC_F77
16803
16804 # An ERE matcher.
16805 EGREP=$lt_EGREP
16806
16807 # The linker used to build libraries.
16808 LD=$lt_LD_F77
16809
16810 # Whether we need hard or soft links.
16811 LN_S=$lt_LN_S
16812
16813 # A BSD-compatible nm program.
16814 NM=$lt_NM
16815
16816 # A symbol stripping program
16817 STRIP=$lt_STRIP
16818
16819 # Used to examine libraries when file_magic_cmd begins "file"
16820 MAGIC_CMD=$MAGIC_CMD
16821
16822 # Used on cygwin: DLL creation program.
16823 DLLTOOL="$DLLTOOL"
16824
16825 # Used on cygwin: object dumper.
16826 OBJDUMP="$OBJDUMP"
16827
16828 # Used on cygwin: assembler.
16829 AS="$AS"
16830
16831 # The name of the directory that contains temporary libtool files.
16832 objdir=$objdir
16833
16834 # How to create reloadable object files.
16835 reload_flag=$lt_reload_flag
16836 reload_cmds=$lt_reload_cmds
16837
16838 # How to pass a linker flag through the compiler.
16839 wl=$lt_lt_prog_compiler_wl_F77
16840
16841 # Object file suffix (normally "o").
16842 objext="$ac_objext"
16843
16844 # Old archive suffix (normally "a").
16845 libext="$libext"
16846
16847 # Shared library suffix (normally ".so").
16848 shrext_cmds='$shrext_cmds'
16849
16850 # Executable file suffix (normally "").
16851 exeext="$exeext"
16852
16853 # Additional compiler flags for building library objects.
16854 pic_flag=$lt_lt_prog_compiler_pic_F77
16855 pic_mode=$pic_mode
16856
16857 # What is the maximum length of a command?
16858 max_cmd_len=$lt_cv_sys_max_cmd_len
16859
16860 # Does compiler simultaneously support -c and -o options?
16861 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16862
16863 # Must we lock files when doing compilation?
16864 need_locks=$lt_need_locks
16865
16866 # Do we need the lib prefix for modules?
16867 need_lib_prefix=$need_lib_prefix
16868
16869 # Do we need a version for libraries?
16870 need_version=$need_version
16871
16872 # Whether dlopen is supported.
16873 dlopen_support=$enable_dlopen
16874
16875 # Whether dlopen of programs is supported.
16876 dlopen_self=$enable_dlopen_self
16877
16878 # Whether dlopen of statically linked programs is supported.
16879 dlopen_self_static=$enable_dlopen_self_static
16880
16881 # Compiler flag to prevent dynamic linking.
16882 link_static_flag=$lt_lt_prog_compiler_static_F77
16883
16884 # Compiler flag to turn off builtin functions.
16885 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16886
16887 # Compiler flag to allow reflexive dlopens.
16888 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16889
16890 # Compiler flag to generate shared objects directly from archives.
16891 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16892
16893 # Compiler flag to generate thread-safe objects.
16894 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16895
16896 # Library versioning type.
16897 version_type=$version_type
16898
16899 # Format of library name prefix.
16900 libname_spec=$lt_libname_spec
16901
16902 # List of archive names. First name is the real one, the rest are links.
16903 # The last name is the one that the linker finds with -lNAME.
16904 library_names_spec=$lt_library_names_spec
16905
16906 # The coded name of the library, if different from the real name.
16907 soname_spec=$lt_soname_spec
16908
16909 # Commands used to build and install an old-style archive.
16910 RANLIB=$lt_RANLIB
16911 old_archive_cmds=$lt_old_archive_cmds_F77
16912 old_postinstall_cmds=$lt_old_postinstall_cmds
16913 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16914
16915 # Create an old-style archive from a shared archive.
16916 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16917
16918 # Create a temporary old-style archive to link instead of a shared archive.
16919 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16920
16921 # Commands used to build and install a shared archive.
16922 archive_cmds=$lt_archive_cmds_F77
16923 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16924 postinstall_cmds=$lt_postinstall_cmds
16925 postuninstall_cmds=$lt_postuninstall_cmds
16926
16927 # Commands used to build a loadable module (assumed same as above if empty)
16928 module_cmds=$lt_module_cmds_F77
16929 module_expsym_cmds=$lt_module_expsym_cmds_F77
16930
16931 # Commands to strip libraries.
16932 old_striplib=$lt_old_striplib
16933 striplib=$lt_striplib
16934
16935 # Dependencies to place before the objects being linked to create a
16936 # shared library.
16937 predep_objects=$lt_predep_objects_F77
16938
16939 # Dependencies to place after the objects being linked to create a
16940 # shared library.
16941 postdep_objects=$lt_postdep_objects_F77
16942
16943 # Dependencies to place before the objects being linked to create a
16944 # shared library.
16945 predeps=$lt_predeps_F77
16946
16947 # Dependencies to place after the objects being linked to create a
16948 # shared library.
16949 postdeps=$lt_postdeps_F77
16950
16951 # The library search path used internally by the compiler when linking
16952 # a shared library.
16953 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16954
16955 # Method to check whether dependent libraries are shared objects.
16956 deplibs_check_method=$lt_deplibs_check_method
16957
16958 # Command to use when deplibs_check_method == file_magic.
16959 file_magic_cmd=$lt_file_magic_cmd
16960
16961 # Flag that allows shared libraries with undefined symbols to be built.
16962 allow_undefined_flag=$lt_allow_undefined_flag_F77
16963
16964 # Flag that forces no undefined symbols.
16965 no_undefined_flag=$lt_no_undefined_flag_F77
16966
16967 # Commands used to finish a libtool library installation in a directory.
16968 finish_cmds=$lt_finish_cmds
16969
16970 # Same as above, but a single script fragment to be evaled but not shown.
16971 finish_eval=$lt_finish_eval
16972
16973 # Take the output of nm and produce a listing of raw symbols and C names.
16974 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16975
16976 # Transform the output of nm in a proper C declaration
16977 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16978
16979 # Transform the output of nm in a C name address pair
16980 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16981
16982 # This is the shared library runtime path variable.
16983 runpath_var=$runpath_var
16984
16985 # This is the shared library path variable.
16986 shlibpath_var=$shlibpath_var
16987
16988 # Is shlibpath searched before the hard-coded library search path?
16989 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16990
16991 # How to hardcode a shared library path into an executable.
16992 hardcode_action=$hardcode_action_F77
16993
16994 # Whether we should hardcode library paths into libraries.
16995 hardcode_into_libs=$hardcode_into_libs
16996
16997 # Flag to hardcode \$libdir into a binary during linking.
16998 # This must work even if \$libdir does not exist.
16999 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17000
17001 # If ld is used when linking, flag to hardcode \$libdir into
17002 # a binary during linking. This must work even if \$libdir does
17003 # not exist.
17004 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17005
17006 # Whether we need a single -rpath flag with a separated argument.
17007 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17008
17009 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17010 # resulting binary.
17011 hardcode_direct=$hardcode_direct_F77
17012
17013 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17014 # resulting binary.
17015 hardcode_minus_L=$hardcode_minus_L_F77
17016
17017 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17018 # the resulting binary.
17019 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17020
17021 # Set to yes if building a shared library automatically hardcodes DIR into the library
17022 # and all subsequent libraries and executables linked against it.
17023 hardcode_automatic=$hardcode_automatic_F77
17024
17025 # Variables whose values should be saved in libtool wrapper scripts and
17026 # restored at relink time.
17027 variables_saved_for_relink="$variables_saved_for_relink"
17028
17029 # Whether libtool must link a program against all its dependency libraries.
17030 link_all_deplibs=$link_all_deplibs_F77
17031
17032 # Compile-time system search path for libraries
17033 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17034
17035 # Run-time system search path for libraries
17036 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17037
17038 # Fix the shell variable \$srcfile for the compiler.
17039 fix_srcfile_path="$fix_srcfile_path_F77"
17040
17041 # Set to yes if exported symbols are required.
17042 always_export_symbols=$always_export_symbols_F77
17043
17044 # The commands to list exported symbols.
17045 export_symbols_cmds=$lt_export_symbols_cmds_F77
17046
17047 # The commands to extract the exported symbol list from a shared archive.
17048 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17049
17050 # Symbols that should not be listed in the preloaded symbols.
17051 exclude_expsyms=$lt_exclude_expsyms_F77
17052
17053 # Symbols that must always be exported.
17054 include_expsyms=$lt_include_expsyms_F77
17055
17056 # ### END LIBTOOL TAG CONFIG: $tagname
17057
17058 __EOF__
17059
17060
17061 else
17062 # If there is no Makefile yet, we rely on a make rule to execute
17063 # `config.status --recheck' to rerun these tests and create the
17064 # libtool script then.
17065 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17066 if test -f "$ltmain_in"; then
17067 test -f Makefile && make "$ltmain"
17068 fi
17069 fi
17070
17071
17072 ac_ext=c
17073 ac_cpp='$CPP $CPPFLAGS'
17074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17077
17078 CC="$lt_save_CC"
17079
17080 else
17081 tagname=""
17082 fi
17083 ;;
17084
17085 GCJ)
17086 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17087
17088
17089
17090 # Source file extension for Java test sources.
17091 ac_ext=java
17092
17093 # Object file extension for compiled Java test sources.
17094 objext=o
17095 objext_GCJ=$objext
17096
17097 # Code to be used in simple compile tests
17098 lt_simple_compile_test_code="class foo {}\n"
17099
17100 # Code to be used in simple link tests
17101 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17102
17103 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17104
17105 # If no C compiler was specified, use CC.
17106 LTCC=${LTCC-"$CC"}
17107
17108 # If no C compiler flags were specified, use CFLAGS.
17109 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17110
17111 # Allow CC to be a program name with arguments.
17112 compiler=$CC
17113
17114
17115 # save warnings/boilerplate of simple test code
17116 ac_outfile=conftest.$ac_objext
17117 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17118 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17119 _lt_compiler_boilerplate=`cat conftest.err`
17120 $rm conftest*
17121
17122 ac_outfile=conftest.$ac_objext
17123 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17124 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17125 _lt_linker_boilerplate=`cat conftest.err`
17126 $rm conftest*
17127
17128
17129 # Allow CC to be a program name with arguments.
17130 lt_save_CC="$CC"
17131 CC=${GCJ-"gcj"}
17132 compiler=$CC
17133 compiler_GCJ=$CC
17134 for cc_temp in $compiler""; do
17135 case $cc_temp in
17136 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17137 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17138 \-*) ;;
17139 *) break;;
17140 esac
17141 done
17142 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17143
17144
17145 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17146 archive_cmds_need_lc_GCJ=no
17147
17148 old_archive_cmds_GCJ=$old_archive_cmds
17149
17150 ## CAVEAT EMPTOR:
17151 ## There is no encapsulation within the following macros, do not change
17152 ## the running order or otherwise move them around unless you know exactly
17153 ## what you are doing...
17154
17155 lt_prog_compiler_no_builtin_flag_GCJ=
17156
17157 if test "$GCC" = yes; then
17158 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17159
17160
17161 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17162 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17163 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17165 else
17166 lt_cv_prog_compiler_rtti_exceptions=no
17167 ac_outfile=conftest.$ac_objext
17168 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17169 lt_compiler_flag="-fno-rtti -fno-exceptions"
17170 # Insert the option either (1) after the last *FLAGS variable, or
17171 # (2) before a word containing "conftest.", or (3) at the end.
17172 # Note that $ac_compile itself does not contain backslashes and begins
17173 # with a dollar sign (not a hyphen), so the echo should work correctly.
17174 # The option is referenced via a variable to avoid confusing sed.
17175 lt_compile=`echo "$ac_compile" | $SED \
17176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17178 -e 's:$: $lt_compiler_flag:'`
17179 (eval echo "\"\$as_me:17179: $lt_compile\"" >&5)
17180 (eval "$lt_compile" 2>conftest.err)
17181 ac_status=$?
17182 cat conftest.err >&5
17183 echo "$as_me:17183: \$? = $ac_status" >&5
17184 if (exit $ac_status) && test -s "$ac_outfile"; then
17185 # The compiler can only warn and ignore the option if not recognized
17186 # So say no if there are warnings other than the usual output.
17187 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17189 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17190 lt_cv_prog_compiler_rtti_exceptions=yes
17191 fi
17192 fi
17193 $rm conftest*
17194
17195 fi
17196 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17197 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17198
17199 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17200 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17201 else
17202 :
17203 fi
17204
17205 fi
17206
17207 lt_prog_compiler_wl_GCJ=
17208 lt_prog_compiler_pic_GCJ=
17209 lt_prog_compiler_static_GCJ=
17210
17211 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17212 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17213
17214 if test "$GCC" = yes; then
17215 lt_prog_compiler_wl_GCJ='-Wl,'
17216 lt_prog_compiler_static_GCJ='-static'
17217
17218 case $host_os in
17219 aix*)
17220 # All AIX code is PIC.
17221 if test "$host_cpu" = ia64; then
17222 # AIX 5 now supports IA64 processor
17223 lt_prog_compiler_static_GCJ='-Bstatic'
17224 fi
17225 ;;
17226
17227 amigaos*)
17228 # FIXME: we need at least 68020 code to build shared libraries, but
17229 # adding the `-m68020' flag to GCC prevents building anything better,
17230 # like `-m68040'.
17231 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17232 ;;
17233
17234 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17235 # PIC is the default for these OSes.
17236 ;;
17237
17238 mingw* | pw32* | os2*)
17239 # This hack is so that the source file can tell whether it is being
17240 # built for inclusion in a dll (and should export symbols for example).
17241 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17242 ;;
17243
17244 darwin* | rhapsody*)
17245 # PIC is the default on this platform
17246 # Common symbols not allowed in MH_DYLIB files
17247 lt_prog_compiler_pic_GCJ='-fno-common'
17248 ;;
17249
17250 interix3*)
17251 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17252 # Instead, we relocate shared libraries at runtime.
17253 ;;
17254
17255 msdosdjgpp*)
17256 # Just because we use GCC doesn't mean we suddenly get shared libraries
17257 # on systems that don't support them.
17258 lt_prog_compiler_can_build_shared_GCJ=no
17259 enable_shared=no
17260 ;;
17261
17262 sysv4*MP*)
17263 if test -d /usr/nec; then
17264 lt_prog_compiler_pic_GCJ=-Kconform_pic
17265 fi
17266 ;;
17267
17268 hpux*)
17269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17270 # not for PA HP-UX.
17271 case $host_cpu in
17272 hppa*64*|ia64*)
17273 # +Z the default
17274 ;;
17275 *)
17276 lt_prog_compiler_pic_GCJ='-fPIC'
17277 ;;
17278 esac
17279 ;;
17280
17281 *)
17282 lt_prog_compiler_pic_GCJ='-fPIC'
17283 ;;
17284 esac
17285 else
17286 # PORTME Check for flag to pass linker flags through the system compiler.
17287 case $host_os in
17288 aix*)
17289 lt_prog_compiler_wl_GCJ='-Wl,'
17290 if test "$host_cpu" = ia64; then
17291 # AIX 5 now supports IA64 processor
17292 lt_prog_compiler_static_GCJ='-Bstatic'
17293 else
17294 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17295 fi
17296 ;;
17297 darwin*)
17298 # PIC is the default on this platform
17299 # Common symbols not allowed in MH_DYLIB files
17300 case $cc_basename in
17301 xlc*)
17302 lt_prog_compiler_pic_GCJ='-qnocommon'
17303 lt_prog_compiler_wl_GCJ='-Wl,'
17304 ;;
17305 esac
17306 ;;
17307
17308 mingw* | pw32* | os2*)
17309 # This hack is so that the source file can tell whether it is being
17310 # built for inclusion in a dll (and should export symbols for example).
17311 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17312 ;;
17313
17314 hpux9* | hpux10* | hpux11*)
17315 lt_prog_compiler_wl_GCJ='-Wl,'
17316 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17317 # not for PA HP-UX.
17318 case $host_cpu in
17319 hppa*64*|ia64*)
17320 # +Z the default
17321 ;;
17322 *)
17323 lt_prog_compiler_pic_GCJ='+Z'
17324 ;;
17325 esac
17326 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17327 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17328 ;;
17329
17330 irix5* | irix6* | nonstopux*)
17331 lt_prog_compiler_wl_GCJ='-Wl,'
17332 # PIC (with -KPIC) is the default.
17333 lt_prog_compiler_static_GCJ='-non_shared'
17334 ;;
17335
17336 newsos6)
17337 lt_prog_compiler_pic_GCJ='-KPIC'
17338 lt_prog_compiler_static_GCJ='-Bstatic'
17339 ;;
17340
17341 linux*)
17342 case $cc_basename in
17343 icc* | ecc*)
17344 lt_prog_compiler_wl_GCJ='-Wl,'
17345 lt_prog_compiler_pic_GCJ='-KPIC'
17346 lt_prog_compiler_static_GCJ='-static'
17347 ;;
17348 pgcc* | pgf77* | pgf90* | pgf95*)
17349 # Portland Group compilers (*not* the Pentium gcc compiler,
17350 # which looks to be a dead project)
17351 lt_prog_compiler_wl_GCJ='-Wl,'
17352 lt_prog_compiler_pic_GCJ='-fpic'
17353 lt_prog_compiler_static_GCJ='-Bstatic'
17354 ;;
17355 ccc*)
17356 lt_prog_compiler_wl_GCJ='-Wl,'
17357 # All Alpha code is PIC.
17358 lt_prog_compiler_static_GCJ='-non_shared'
17359 ;;
17360 esac
17361 ;;
17362
17363 osf3* | osf4* | osf5*)
17364 lt_prog_compiler_wl_GCJ='-Wl,'
17365 # All OSF/1 code is PIC.
17366 lt_prog_compiler_static_GCJ='-non_shared'
17367 ;;
17368
17369 solaris*)
17370 lt_prog_compiler_pic_GCJ='-KPIC'
17371 lt_prog_compiler_static_GCJ='-Bstatic'
17372 case $cc_basename in
17373 f77* | f90* | f95*)
17374 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17375 *)
17376 lt_prog_compiler_wl_GCJ='-Wl,';;
17377 esac
17378 ;;
17379
17380 sunos4*)
17381 lt_prog_compiler_wl_GCJ='-Qoption ld '
17382 lt_prog_compiler_pic_GCJ='-PIC'
17383 lt_prog_compiler_static_GCJ='-Bstatic'
17384 ;;
17385
17386 sysv4 | sysv4.2uw2* | sysv4.3*)
17387 lt_prog_compiler_wl_GCJ='-Wl,'
17388 lt_prog_compiler_pic_GCJ='-KPIC'
17389 lt_prog_compiler_static_GCJ='-Bstatic'
17390 ;;
17391
17392 sysv4*MP*)
17393 if test -d /usr/nec ;then
17394 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17395 lt_prog_compiler_static_GCJ='-Bstatic'
17396 fi
17397 ;;
17398
17399 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17400 lt_prog_compiler_wl_GCJ='-Wl,'
17401 lt_prog_compiler_pic_GCJ='-KPIC'
17402 lt_prog_compiler_static_GCJ='-Bstatic'
17403 ;;
17404
17405 unicos*)
17406 lt_prog_compiler_wl_GCJ='-Wl,'
17407 lt_prog_compiler_can_build_shared_GCJ=no
17408 ;;
17409
17410 uts4*)
17411 lt_prog_compiler_pic_GCJ='-pic'
17412 lt_prog_compiler_static_GCJ='-Bstatic'
17413 ;;
17414
17415 *)
17416 lt_prog_compiler_can_build_shared_GCJ=no
17417 ;;
17418 esac
17419 fi
17420
17421 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17422 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17423
17424 #
17425 # Check to make sure the PIC flag actually works.
17426 #
17427 if test -n "$lt_prog_compiler_pic_GCJ"; then
17428
17429 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17430 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17431 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 else
17434 lt_prog_compiler_pic_works_GCJ=no
17435 ac_outfile=conftest.$ac_objext
17436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17437 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17438 # Insert the option either (1) after the last *FLAGS variable, or
17439 # (2) before a word containing "conftest.", or (3) at the end.
17440 # Note that $ac_compile itself does not contain backslashes and begins
17441 # with a dollar sign (not a hyphen), so the echo should work correctly.
17442 # The option is referenced via a variable to avoid confusing sed.
17443 lt_compile=`echo "$ac_compile" | $SED \
17444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17446 -e 's:$: $lt_compiler_flag:'`
17447 (eval echo "\"\$as_me:17447: $lt_compile\"" >&5)
17448 (eval "$lt_compile" 2>conftest.err)
17449 ac_status=$?
17450 cat conftest.err >&5
17451 echo "$as_me:17451: \$? = $ac_status" >&5
17452 if (exit $ac_status) && test -s "$ac_outfile"; then
17453 # The compiler can only warn and ignore the option if not recognized
17454 # So say no if there are warnings other than the usual output.
17455 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17458 lt_prog_compiler_pic_works_GCJ=yes
17459 fi
17460 fi
17461 $rm conftest*
17462
17463 fi
17464 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17465 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17466
17467 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17468 case $lt_prog_compiler_pic_GCJ in
17469 "" | " "*) ;;
17470 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17471 esac
17472 else
17473 lt_prog_compiler_pic_GCJ=
17474 lt_prog_compiler_can_build_shared_GCJ=no
17475 fi
17476
17477 fi
17478 case $host_os in
17479 # For platforms which do not support PIC, -DPIC is meaningless:
17480 *djgpp*)
17481 lt_prog_compiler_pic_GCJ=
17482 ;;
17483 *)
17484 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17485 ;;
17486 esac
17487
17488 #
17489 # Check to make sure the static flag actually works.
17490 #
17491 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17492 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17493 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17494 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17496 else
17497 lt_prog_compiler_static_works_GCJ=no
17498 save_LDFLAGS="$LDFLAGS"
17499 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17500 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17501 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17502 # The linker can only warn and ignore the option if not recognized
17503 # So say no if there are warnings
17504 if test -s conftest.err; then
17505 # Append any errors to the config.log.
17506 cat conftest.err 1>&5
17507 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17509 if diff conftest.exp conftest.er2 >/dev/null; then
17510 lt_prog_compiler_static_works_GCJ=yes
17511 fi
17512 else
17513 lt_prog_compiler_static_works_GCJ=yes
17514 fi
17515 fi
17516 $rm conftest*
17517 LDFLAGS="$save_LDFLAGS"
17518
17519 fi
17520 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17521 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17522
17523 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17524 :
17525 else
17526 lt_prog_compiler_static_GCJ=
17527 fi
17528
17529
17530 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17531 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17532 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535 lt_cv_prog_compiler_c_o_GCJ=no
17536 $rm -r conftest 2>/dev/null
17537 mkdir conftest
17538 cd conftest
17539 mkdir out
17540 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17541
17542 lt_compiler_flag="-o out/conftest2.$ac_objext"
17543 # Insert the option either (1) after the last *FLAGS variable, or
17544 # (2) before a word containing "conftest.", or (3) at the end.
17545 # Note that $ac_compile itself does not contain backslashes and begins
17546 # with a dollar sign (not a hyphen), so the echo should work correctly.
17547 lt_compile=`echo "$ac_compile" | $SED \
17548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17550 -e 's:$: $lt_compiler_flag:'`
17551 (eval echo "\"\$as_me:17551: $lt_compile\"" >&5)
17552 (eval "$lt_compile" 2>out/conftest.err)
17553 ac_status=$?
17554 cat out/conftest.err >&5
17555 echo "$as_me:17555: \$? = $ac_status" >&5
17556 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17557 then
17558 # The compiler can only warn and ignore the option if not recognized
17559 # So say no if there are warnings
17560 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17561 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17562 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17563 lt_cv_prog_compiler_c_o_GCJ=yes
17564 fi
17565 fi
17566 chmod u+w . 2>&5
17567 $rm conftest*
17568 # SGI C++ compiler will create directory out/ii_files/ for
17569 # template instantiation
17570 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17571 $rm out/* && rmdir out
17572 cd ..
17573 rmdir conftest
17574 $rm conftest*
17575
17576 fi
17577 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17578 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17579
17580
17581 hard_links="nottested"
17582 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17583 # do not overwrite the value of need_locks provided by the user
17584 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17585 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17586 hard_links=yes
17587 $rm conftest*
17588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17589 touch conftest.a
17590 ln conftest.a conftest.b 2>&5 || hard_links=no
17591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17592 echo "$as_me:$LINENO: result: $hard_links" >&5
17593 echo "${ECHO_T}$hard_links" >&6
17594 if test "$hard_links" = no; then
17595 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17596 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17597 need_locks=warn
17598 fi
17599 else
17600 need_locks=no
17601 fi
17602
17603 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17604 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17605
17606 runpath_var=
17607 allow_undefined_flag_GCJ=
17608 enable_shared_with_static_runtimes_GCJ=no
17609 archive_cmds_GCJ=
17610 archive_expsym_cmds_GCJ=
17611 old_archive_From_new_cmds_GCJ=
17612 old_archive_from_expsyms_cmds_GCJ=
17613 export_dynamic_flag_spec_GCJ=
17614 whole_archive_flag_spec_GCJ=
17615 thread_safe_flag_spec_GCJ=
17616 hardcode_libdir_flag_spec_GCJ=
17617 hardcode_libdir_flag_spec_ld_GCJ=
17618 hardcode_libdir_separator_GCJ=
17619 hardcode_direct_GCJ=no
17620 hardcode_minus_L_GCJ=no
17621 hardcode_shlibpath_var_GCJ=unsupported
17622 link_all_deplibs_GCJ=unknown
17623 hardcode_automatic_GCJ=no
17624 module_cmds_GCJ=
17625 module_expsym_cmds_GCJ=
17626 always_export_symbols_GCJ=no
17627 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17628 # include_expsyms should be a list of space-separated symbols to be *always*
17629 # included in the symbol list
17630 include_expsyms_GCJ=
17631 # exclude_expsyms can be an extended regexp of symbols to exclude
17632 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17633 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17634 # as well as any symbol that contains `d'.
17635 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17636 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17637 # platforms (ab)use it in PIC code, but their linkers get confused if
17638 # the symbol is explicitly referenced. Since portable code cannot
17639 # rely on this symbol name, it's probably fine to never include it in
17640 # preloaded symbol tables.
17641 extract_expsyms_cmds=
17642 # Just being paranoid about ensuring that cc_basename is set.
17643 for cc_temp in $compiler""; do
17644 case $cc_temp in
17645 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17646 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17647 \-*) ;;
17648 *) break;;
17649 esac
17650 done
17651 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17652
17653 case $host_os in
17654 cygwin* | mingw* | pw32*)
17655 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17656 # When not using gcc, we currently assume that we are using
17657 # Microsoft Visual C++.
17658 if test "$GCC" != yes; then
17659 with_gnu_ld=no
17660 fi
17661 ;;
17662 interix*)
17663 # we just hope/assume this is gcc and not c89 (= MSVC++)
17664 with_gnu_ld=yes
17665 ;;
17666 openbsd*)
17667 with_gnu_ld=no
17668 ;;
17669 esac
17670
17671 ld_shlibs_GCJ=yes
17672 if test "$with_gnu_ld" = yes; then
17673 # If archive_cmds runs LD, not CC, wlarc should be empty
17674 wlarc='${wl}'
17675
17676 # Set some defaults for GNU ld with shared library support. These
17677 # are reset later if shared libraries are not supported. Putting them
17678 # here allows them to be overridden if necessary.
17679 runpath_var=LD_RUN_PATH
17680 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17681 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17682 # ancient GNU ld didn't support --whole-archive et. al.
17683 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17684 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17685 else
17686 whole_archive_flag_spec_GCJ=
17687 fi
17688 supports_anon_versioning=no
17689 case `$LD -v 2>/dev/null` in
17690 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17691 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17692 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17693 *\ 2.11.*) ;; # other 2.11 versions
17694 *) supports_anon_versioning=yes ;;
17695 esac
17696
17697 # See if GNU ld supports shared libraries.
17698 case $host_os in
17699 aix3* | aix4* | aix5*)
17700 # On AIX/PPC, the GNU linker is very broken
17701 if test "$host_cpu" != ia64; then
17702 ld_shlibs_GCJ=no
17703 cat <<EOF 1>&2
17704
17705 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17706 *** to be unable to reliably create shared libraries on AIX.
17707 *** Therefore, libtool is disabling shared libraries support. If you
17708 *** really care for shared libraries, you may want to modify your PATH
17709 *** so that a non-GNU linker is found, and then restart.
17710
17711 EOF
17712 fi
17713 ;;
17714
17715 amigaos*)
17716 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)'
17717 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17718 hardcode_minus_L_GCJ=yes
17719
17720 # Samuel A. Falvo II <[email protected]> reports
17721 # that the semantics of dynamic libraries on AmigaOS, at least up
17722 # to version 4, is to share data among multiple programs linked
17723 # with the same dynamic library. Since this doesn't match the
17724 # behavior of shared libraries on other platforms, we can't use
17725 # them.
17726 ld_shlibs_GCJ=no
17727 ;;
17728
17729 beos*)
17730 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17731 allow_undefined_flag_GCJ=unsupported
17732 # Joseph Beckenbach <[email protected]> says some releases of gcc
17733 # support --undefined. This deserves some investigation. FIXME
17734 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17735 else
17736 ld_shlibs_GCJ=no
17737 fi
17738 ;;
17739
17740 cygwin* | mingw* | pw32*)
17741 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17742 # as there is no search path for DLLs.
17743 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17744 allow_undefined_flag_GCJ=unsupported
17745 always_export_symbols_GCJ=no
17746 enable_shared_with_static_runtimes_GCJ=yes
17747 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17748
17749 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17750 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17751 # If the export-symbols file already is a .def file (1st line
17752 # is EXPORTS), use it as is; otherwise, prepend...
17753 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17754 cp $export_symbols $output_objdir/$soname.def;
17755 else
17756 echo EXPORTS > $output_objdir/$soname.def;
17757 cat $export_symbols >> $output_objdir/$soname.def;
17758 fi~
17759 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17760 else
17761 ld_shlibs_GCJ=no
17762 fi
17763 ;;
17764
17765 interix3*)
17766 hardcode_direct_GCJ=no
17767 hardcode_shlibpath_var_GCJ=no
17768 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17769 export_dynamic_flag_spec_GCJ='${wl}-E'
17770 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17771 # Instead, shared libraries are loaded at an image base (0x10000000 by
17772 # default) and relocated if they conflict, which is a slow very memory
17773 # consuming and fragmenting process. To avoid this, we pick a random,
17774 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17775 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17776 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'
17777 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'
17778 ;;
17779
17780 linux*)
17781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17782 tmp_addflag=
17783 case $cc_basename,$host_cpu in
17784 pgcc*) # Portland Group C compiler
17785 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'
17786 tmp_addflag=' $pic_flag'
17787 ;;
17788 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17789 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'
17790 tmp_addflag=' $pic_flag -Mnomain' ;;
17791 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17792 tmp_addflag=' -i_dynamic' ;;
17793 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17794 tmp_addflag=' -i_dynamic -nofor_main' ;;
17795 ifc* | ifort*) # Intel Fortran compiler
17796 tmp_addflag=' -nofor_main' ;;
17797 esac
17798 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17799
17800 if test $supports_anon_versioning = yes; then
17801 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17803 $echo "local: *; };" >> $output_objdir/$libname.ver~
17804 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17805 fi
17806 else
17807 ld_shlibs_GCJ=no
17808 fi
17809 ;;
17810
17811 netbsd*)
17812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17813 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17814 wlarc=
17815 else
17816 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17817 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17818 fi
17819 ;;
17820
17821 solaris*)
17822 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17823 ld_shlibs_GCJ=no
17824 cat <<EOF 1>&2
17825
17826 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17827 *** create shared libraries on Solaris systems. Therefore, libtool
17828 *** is disabling shared libraries support. We urge you to upgrade GNU
17829 *** binutils to release 2.9.1 or newer. Another option is to modify
17830 *** your PATH or compiler configuration so that the native linker is
17831 *** used, and then restart.
17832
17833 EOF
17834 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17835 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17836 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17837 else
17838 ld_shlibs_GCJ=no
17839 fi
17840 ;;
17841
17842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17843 case `$LD -v 2>&1` in
17844 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17845 ld_shlibs_GCJ=no
17846 cat <<_LT_EOF 1>&2
17847
17848 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17849 *** reliably create shared libraries on SCO systems. Therefore, libtool
17850 *** is disabling shared libraries support. We urge you to upgrade GNU
17851 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17852 *** your PATH or compiler configuration so that the native linker is
17853 *** used, and then restart.
17854
17855 _LT_EOF
17856 ;;
17857 *)
17858 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17859 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17860 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17861 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17862 else
17863 ld_shlibs_GCJ=no
17864 fi
17865 ;;
17866 esac
17867 ;;
17868
17869 sunos4*)
17870 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17871 wlarc=
17872 hardcode_direct_GCJ=yes
17873 hardcode_shlibpath_var_GCJ=no
17874 ;;
17875
17876 *)
17877 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17878 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17879 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17880 else
17881 ld_shlibs_GCJ=no
17882 fi
17883 ;;
17884 esac
17885
17886 if test "$ld_shlibs_GCJ" = no; then
17887 runpath_var=
17888 hardcode_libdir_flag_spec_GCJ=
17889 export_dynamic_flag_spec_GCJ=
17890 whole_archive_flag_spec_GCJ=
17891 fi
17892 else
17893 # PORTME fill in a description of your system's linker (not GNU ld)
17894 case $host_os in
17895 aix3*)
17896 allow_undefined_flag_GCJ=unsupported
17897 always_export_symbols_GCJ=yes
17898 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'
17899 # Note: this linker hardcodes the directories in LIBPATH if there
17900 # are no directories specified by -L.
17901 hardcode_minus_L_GCJ=yes
17902 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17903 # Neither direct hardcoding nor static linking is supported with a
17904 # broken collect2.
17905 hardcode_direct_GCJ=unsupported
17906 fi
17907 ;;
17908
17909 aix4* | aix5*)
17910 if test "$host_cpu" = ia64; then
17911 # On IA64, the linker does run time linking by default, so we don't
17912 # have to do anything special.
17913 aix_use_runtimelinking=no
17914 exp_sym_flag='-Bexport'
17915 no_entry_flag=""
17916 else
17917 # If we're using GNU nm, then we don't want the "-C" option.
17918 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17919 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17920 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'
17921 else
17922 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'
17923 fi
17924 aix_use_runtimelinking=no
17925
17926 # Test if we are trying to use run time linking or normal
17927 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17928 # need to do runtime linking.
17929 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17930 for ld_flag in $LDFLAGS; do
17931 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17932 aix_use_runtimelinking=yes
17933 break
17934 fi
17935 done
17936 ;;
17937 esac
17938
17939 exp_sym_flag='-bexport'
17940 no_entry_flag='-bnoentry'
17941 fi
17942
17943 # When large executables or shared objects are built, AIX ld can
17944 # have problems creating the table of contents. If linking a library
17945 # or program results in "error TOC overflow" add -mminimal-toc to
17946 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17947 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17948
17949 archive_cmds_GCJ=''
17950 hardcode_direct_GCJ=yes
17951 hardcode_libdir_separator_GCJ=':'
17952 link_all_deplibs_GCJ=yes
17953
17954 if test "$GCC" = yes; then
17955 case $host_os in aix4.[012]|aix4.[012].*)
17956 # We only want to do this on AIX 4.2 and lower, the check
17957 # below for broken collect2 doesn't work under 4.3+
17958 collect2name=`${CC} -print-prog-name=collect2`
17959 if test -f "$collect2name" && \
17960 strings "$collect2name" | grep resolve_lib_name >/dev/null
17961 then
17962 # We have reworked collect2
17963 hardcode_direct_GCJ=yes
17964 else
17965 # We have old collect2
17966 hardcode_direct_GCJ=unsupported
17967 # It fails to find uninstalled libraries when the uninstalled
17968 # path is not listed in the libpath. Setting hardcode_minus_L
17969 # to unsupported forces relinking
17970 hardcode_minus_L_GCJ=yes
17971 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17972 hardcode_libdir_separator_GCJ=
17973 fi
17974 ;;
17975 esac
17976 shared_flag='-shared'
17977 if test "$aix_use_runtimelinking" = yes; then
17978 shared_flag="$shared_flag "'${wl}-G'
17979 fi
17980 else
17981 # not using gcc
17982 if test "$host_cpu" = ia64; then
17983 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17984 # chokes on -Wl,-G. The following line is correct:
17985 shared_flag='-G'
17986 else
17987 if test "$aix_use_runtimelinking" = yes; then
17988 shared_flag='${wl}-G'
17989 else
17990 shared_flag='${wl}-bM:SRE'
17991 fi
17992 fi
17993 fi
17994
17995 # It seems that -bexpall does not export symbols beginning with
17996 # underscore (_), so it is better to generate a list of symbols to export.
17997 always_export_symbols_GCJ=yes
17998 if test "$aix_use_runtimelinking" = yes; then
17999 # Warning - without using the other runtime loading flags (-brtl),
18000 # -berok will link without error, but may produce a broken library.
18001 allow_undefined_flag_GCJ='-berok'
18002 # Determine the default libpath from the value encoded in an empty executable.
18003 cat >conftest.$ac_ext <<_ACEOF
18004 /* confdefs.h. */
18005 _ACEOF
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h. */
18009
18010 int
18011 main ()
18012 {
18013
18014 ;
18015 return 0;
18016 }
18017 _ACEOF
18018 rm -f conftest.$ac_objext conftest$ac_exeext
18019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18020 (eval $ac_link) 2>conftest.er1
18021 ac_status=$?
18022 grep -v '^ *+' conftest.er1 >conftest.err
18023 rm -f conftest.er1
18024 cat conftest.err >&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
18027 { ac_try='test -z "$ac_c_werror_flag"
18028 || test ! -s conftest.err'
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18031 ac_status=$?
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; } &&
18034 { ac_try='test -s conftest$ac_exeext'
18035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18036 (eval $ac_try) 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18040
18041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18042 }'`
18043 # Check for a 64-bit object if we didn't find anything.
18044 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; }
18045 }'`; fi
18046 else
18047 echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18049
18050 fi
18051 rm -f conftest.err conftest.$ac_objext \
18052 conftest$ac_exeext conftest.$ac_ext
18053 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18054
18055 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18056 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"
18057 else
18058 if test "$host_cpu" = ia64; then
18059 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18060 allow_undefined_flag_GCJ="-z nodefs"
18061 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"
18062 else
18063 # Determine the default libpath from the value encoded in an empty executable.
18064 cat >conftest.$ac_ext <<_ACEOF
18065 /* confdefs.h. */
18066 _ACEOF
18067 cat confdefs.h >>conftest.$ac_ext
18068 cat >>conftest.$ac_ext <<_ACEOF
18069 /* end confdefs.h. */
18070
18071 int
18072 main ()
18073 {
18074
18075 ;
18076 return 0;
18077 }
18078 _ACEOF
18079 rm -f conftest.$ac_objext conftest$ac_exeext
18080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18081 (eval $ac_link) 2>conftest.er1
18082 ac_status=$?
18083 grep -v '^ *+' conftest.er1 >conftest.err
18084 rm -f conftest.er1
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try='test -z "$ac_c_werror_flag"
18089 || test ! -s conftest.err'
18090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 (eval $ac_try) 2>&5
18092 ac_status=$?
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; } &&
18095 { ac_try='test -s conftest$ac_exeext'
18096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097 (eval $ac_try) 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; }; then
18101
18102 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18103 }'`
18104 # Check for a 64-bit object if we didn't find anything.
18105 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; }
18106 }'`; fi
18107 else
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18110
18111 fi
18112 rm -f conftest.err conftest.$ac_objext \
18113 conftest$ac_exeext conftest.$ac_ext
18114 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18115
18116 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18117 # Warning - without using the other run time loading flags,
18118 # -berok will link without error, but may produce a broken library.
18119 no_undefined_flag_GCJ=' ${wl}-bernotok'
18120 allow_undefined_flag_GCJ=' ${wl}-berok'
18121 # Exported symbols can be pulled into shared objects from archives
18122 whole_archive_flag_spec_GCJ='$convenience'
18123 archive_cmds_need_lc_GCJ=yes
18124 # This is similar to how AIX traditionally builds its shared libraries.
18125 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'
18126 fi
18127 fi
18128 ;;
18129
18130 amigaos*)
18131 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)'
18132 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18133 hardcode_minus_L_GCJ=yes
18134 # see comment about different semantics on the GNU ld section
18135 ld_shlibs_GCJ=no
18136 ;;
18137
18138 bsdi[45]*)
18139 export_dynamic_flag_spec_GCJ=-rdynamic
18140 ;;
18141
18142 cygwin* | mingw* | pw32*)
18143 # When not using gcc, we currently assume that we are using
18144 # Microsoft Visual C++.
18145 # hardcode_libdir_flag_spec is actually meaningless, as there is
18146 # no search path for DLLs.
18147 hardcode_libdir_flag_spec_GCJ=' '
18148 allow_undefined_flag_GCJ=unsupported
18149 # Tell ltmain to make .lib files, not .a files.
18150 libext=lib
18151 # Tell ltmain to make .dll files, not .so files.
18152 shrext_cmds=".dll"
18153 # FIXME: Setting linknames here is a bad hack.
18154 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18155 # The linker will automatically build a .lib file if we build a DLL.
18156 old_archive_From_new_cmds_GCJ='true'
18157 # FIXME: Should let the user specify the lib program.
18158 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18159 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18160 enable_shared_with_static_runtimes_GCJ=yes
18161 ;;
18162
18163 darwin* | rhapsody*)
18164 case $host_os in
18165 rhapsody* | darwin1.[012])
18166 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18167 ;;
18168 *) # Darwin 1.3 on
18169 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18170 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18171 else
18172 case ${MACOSX_DEPLOYMENT_TARGET} in
18173 10.[012])
18174 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18175 ;;
18176 10.*)
18177 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18178 ;;
18179 esac
18180 fi
18181 ;;
18182 esac
18183 archive_cmds_need_lc_GCJ=no
18184 hardcode_direct_GCJ=no
18185 hardcode_automatic_GCJ=yes
18186 hardcode_shlibpath_var_GCJ=unsupported
18187 whole_archive_flag_spec_GCJ=''
18188 link_all_deplibs_GCJ=yes
18189 if test "$GCC" = yes ; then
18190 output_verbose_link_cmd='echo'
18191 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18192 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18193 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18194 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}'
18195 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}'
18196 else
18197 case $cc_basename in
18198 xlc*)
18199 output_verbose_link_cmd='echo'
18200 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18201 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18202 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18203 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}'
18204 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}'
18205 ;;
18206 *)
18207 ld_shlibs_GCJ=no
18208 ;;
18209 esac
18210 fi
18211 ;;
18212
18213 dgux*)
18214 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18215 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18216 hardcode_shlibpath_var_GCJ=no
18217 ;;
18218
18219 freebsd1*)
18220 ld_shlibs_GCJ=no
18221 ;;
18222
18223 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18224 # support. Future versions do this automatically, but an explicit c++rt0.o
18225 # does not break anything, and helps significantly (at the cost of a little
18226 # extra space).
18227 freebsd2.2*)
18228 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18229 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18230 hardcode_direct_GCJ=yes
18231 hardcode_shlibpath_var_GCJ=no
18232 ;;
18233
18234 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18235 freebsd2*)
18236 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18237 hardcode_direct_GCJ=yes
18238 hardcode_minus_L_GCJ=yes
18239 hardcode_shlibpath_var_GCJ=no
18240 ;;
18241
18242 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18243 freebsd* | kfreebsd*-gnu | dragonfly*)
18244 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18245 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18246 hardcode_direct_GCJ=yes
18247 hardcode_shlibpath_var_GCJ=no
18248 ;;
18249
18250 hpux9*)
18251 if test "$GCC" = yes; then
18252 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'
18253 else
18254 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'
18255 fi
18256 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18257 hardcode_libdir_separator_GCJ=:
18258 hardcode_direct_GCJ=yes
18259
18260 # hardcode_minus_L: Not really in the search PATH,
18261 # but as the default location of the library.
18262 hardcode_minus_L_GCJ=yes
18263 export_dynamic_flag_spec_GCJ='${wl}-E'
18264 ;;
18265
18266 hpux10*)
18267 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18268 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18269 else
18270 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18271 fi
18272 if test "$with_gnu_ld" = no; then
18273 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18274 hardcode_libdir_separator_GCJ=:
18275
18276 hardcode_direct_GCJ=yes
18277 export_dynamic_flag_spec_GCJ='${wl}-E'
18278
18279 # hardcode_minus_L: Not really in the search PATH,
18280 # but as the default location of the library.
18281 hardcode_minus_L_GCJ=yes
18282 fi
18283 ;;
18284
18285 hpux11*)
18286 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18287 case $host_cpu in
18288 hppa*64*)
18289 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18290 ;;
18291 ia64*)
18292 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18293 ;;
18294 *)
18295 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18296 ;;
18297 esac
18298 else
18299 case $host_cpu in
18300 hppa*64*)
18301 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18302 ;;
18303 ia64*)
18304 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18305 ;;
18306 *)
18307 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18308 ;;
18309 esac
18310 fi
18311 if test "$with_gnu_ld" = no; then
18312 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18313 hardcode_libdir_separator_GCJ=:
18314
18315 case $host_cpu in
18316 hppa*64*|ia64*)
18317 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18318 hardcode_direct_GCJ=no
18319 hardcode_shlibpath_var_GCJ=no
18320 ;;
18321 *)
18322 hardcode_direct_GCJ=yes
18323 export_dynamic_flag_spec_GCJ='${wl}-E'
18324
18325 # hardcode_minus_L: Not really in the search PATH,
18326 # but as the default location of the library.
18327 hardcode_minus_L_GCJ=yes
18328 ;;
18329 esac
18330 fi
18331 ;;
18332
18333 irix5* | irix6* | nonstopux*)
18334 if test "$GCC" = yes; then
18335 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'
18336 else
18337 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'
18338 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18339 fi
18340 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18341 hardcode_libdir_separator_GCJ=:
18342 link_all_deplibs_GCJ=yes
18343 ;;
18344
18345 netbsd*)
18346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18347 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18348 else
18349 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18350 fi
18351 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18352 hardcode_direct_GCJ=yes
18353 hardcode_shlibpath_var_GCJ=no
18354 ;;
18355
18356 newsos6)
18357 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18358 hardcode_direct_GCJ=yes
18359 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18360 hardcode_libdir_separator_GCJ=:
18361 hardcode_shlibpath_var_GCJ=no
18362 ;;
18363
18364 openbsd*)
18365 hardcode_direct_GCJ=yes
18366 hardcode_shlibpath_var_GCJ=no
18367 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18368 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18369 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18370 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18371 export_dynamic_flag_spec_GCJ='${wl}-E'
18372 else
18373 case $host_os in
18374 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18375 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18376 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18377 ;;
18378 *)
18379 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18380 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18381 ;;
18382 esac
18383 fi
18384 ;;
18385
18386 os2*)
18387 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18388 hardcode_minus_L_GCJ=yes
18389 allow_undefined_flag_GCJ=unsupported
18390 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'
18391 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18392 ;;
18393
18394 osf3*)
18395 if test "$GCC" = yes; then
18396 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18397 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'
18398 else
18399 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18400 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'
18401 fi
18402 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18403 hardcode_libdir_separator_GCJ=:
18404 ;;
18405
18406 osf4* | osf5*) # as osf3* with the addition of -msym flag
18407 if test "$GCC" = yes; then
18408 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18409 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'
18410 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18411 else
18412 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18413 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'
18414 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~
18415 $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'
18416
18417 # Both c and cxx compiler support -rpath directly
18418 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18419 fi
18420 hardcode_libdir_separator_GCJ=:
18421 ;;
18422
18423 solaris*)
18424 no_undefined_flag_GCJ=' -z text'
18425 if test "$GCC" = yes; then
18426 wlarc='${wl}'
18427 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18428 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18429 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18430 else
18431 wlarc=''
18432 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18433 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18434 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18435 fi
18436 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18437 hardcode_shlibpath_var_GCJ=no
18438 case $host_os in
18439 solaris2.[0-5] | solaris2.[0-5].*) ;;
18440 *)
18441 # The compiler driver will combine linker options so we
18442 # cannot just pass the convience library names through
18443 # without $wl, iff we do not link with $LD.
18444 # Luckily, gcc supports the same syntax we need for Sun Studio.
18445 # Supported since Solaris 2.6 (maybe 2.5.1?)
18446 case $wlarc in
18447 '')
18448 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18449 *)
18450 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' ;;
18451 esac ;;
18452 esac
18453 link_all_deplibs_GCJ=yes
18454 ;;
18455
18456 sunos4*)
18457 if test "x$host_vendor" = xsequent; then
18458 # Use $CC to link under sequent, because it throws in some extra .o
18459 # files that make .init and .fini sections work.
18460 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18461 else
18462 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18463 fi
18464 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18465 hardcode_direct_GCJ=yes
18466 hardcode_minus_L_GCJ=yes
18467 hardcode_shlibpath_var_GCJ=no
18468 ;;
18469
18470 sysv4)
18471 case $host_vendor in
18472 sni)
18473 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18474 hardcode_direct_GCJ=yes # is this really true???
18475 ;;
18476 siemens)
18477 ## LD is ld it makes a PLAMLIB
18478 ## CC just makes a GrossModule.
18479 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18480 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18481 hardcode_direct_GCJ=no
18482 ;;
18483 motorola)
18484 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18485 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18486 ;;
18487 esac
18488 runpath_var='LD_RUN_PATH'
18489 hardcode_shlibpath_var_GCJ=no
18490 ;;
18491
18492 sysv4.3*)
18493 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18494 hardcode_shlibpath_var_GCJ=no
18495 export_dynamic_flag_spec_GCJ='-Bexport'
18496 ;;
18497
18498 sysv4*MP*)
18499 if test -d /usr/nec; then
18500 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18501 hardcode_shlibpath_var_GCJ=no
18502 runpath_var=LD_RUN_PATH
18503 hardcode_runpath_var=yes
18504 ld_shlibs_GCJ=yes
18505 fi
18506 ;;
18507
18508 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18509 no_undefined_flag_GCJ='${wl}-z,text'
18510 archive_cmds_need_lc_GCJ=no
18511 hardcode_shlibpath_var_GCJ=no
18512 runpath_var='LD_RUN_PATH'
18513
18514 if test "$GCC" = yes; then
18515 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18516 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18517 else
18518 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18519 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18520 fi
18521 ;;
18522
18523 sysv5* | sco3.2v5* | sco5v6*)
18524 # Note: We can NOT use -z defs as we might desire, because we do not
18525 # link with -lc, and that would cause any symbols used from libc to
18526 # always be unresolved, which means just about no library would
18527 # ever link correctly. If we're not using GNU ld we use -z text
18528 # though, which does catch some bad symbols but isn't as heavy-handed
18529 # as -z defs.
18530 no_undefined_flag_GCJ='${wl}-z,text'
18531 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18532 archive_cmds_need_lc_GCJ=no
18533 hardcode_shlibpath_var_GCJ=no
18534 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18535 hardcode_libdir_separator_GCJ=':'
18536 link_all_deplibs_GCJ=yes
18537 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18538 runpath_var='LD_RUN_PATH'
18539
18540 if test "$GCC" = yes; then
18541 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18542 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18543 else
18544 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18545 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18546 fi
18547 ;;
18548
18549 uts4*)
18550 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18551 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18552 hardcode_shlibpath_var_GCJ=no
18553 ;;
18554
18555 *)
18556 ld_shlibs_GCJ=no
18557 ;;
18558 esac
18559 fi
18560
18561 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18562 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18563 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18564
18565 #
18566 # Do we need to explicitly link libc?
18567 #
18568 case "x$archive_cmds_need_lc_GCJ" in
18569 x|xyes)
18570 # Assume -lc should be added
18571 archive_cmds_need_lc_GCJ=yes
18572
18573 if test "$enable_shared" = yes && test "$GCC" = yes; then
18574 case $archive_cmds_GCJ in
18575 *'~'*)
18576 # FIXME: we may have to deal with multi-command sequences.
18577 ;;
18578 '$CC '*)
18579 # Test whether the compiler implicitly links with -lc since on some
18580 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18581 # to ld, don't add -lc before -lgcc.
18582 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18583 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18584 $rm conftest*
18585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18586
18587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18588 (eval $ac_compile) 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } 2>conftest.err; then
18592 soname=conftest
18593 lib=conftest
18594 libobjs=conftest.$ac_objext
18595 deplibs=
18596 wl=$lt_prog_compiler_wl_GCJ
18597 pic_flag=$lt_prog_compiler_pic_GCJ
18598 compiler_flags=-v
18599 linker_flags=-v
18600 verstring=
18601 output_objdir=.
18602 libname=conftest
18603 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18604 allow_undefined_flag_GCJ=
18605 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18606 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }
18610 then
18611 archive_cmds_need_lc_GCJ=no
18612 else
18613 archive_cmds_need_lc_GCJ=yes
18614 fi
18615 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18616 else
18617 cat conftest.err 1>&5
18618 fi
18619 $rm conftest*
18620 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18621 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18622 ;;
18623 esac
18624 fi
18625 ;;
18626 esac
18627
18628 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18629 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18630 library_names_spec=
18631 libname_spec='lib$name'
18632 soname_spec=
18633 shrext_cmds=".so"
18634 postinstall_cmds=
18635 postuninstall_cmds=
18636 finish_cmds=
18637 finish_eval=
18638 shlibpath_var=
18639 shlibpath_overrides_runpath=unknown
18640 version_type=none
18641 dynamic_linker="$host_os ld.so"
18642 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18643 if test "$GCC" = yes; then
18644 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18645 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18646 # if the path contains ";" then we assume it to be the separator
18647 # otherwise default to the standard path separator (i.e. ":") - it is
18648 # assumed that no part of a normal pathname contains ";" but that should
18649 # okay in the real world where ";" in dirpaths is itself problematic.
18650 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18651 else
18652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18653 fi
18654 else
18655 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18656 fi
18657 need_lib_prefix=unknown
18658 hardcode_into_libs=no
18659
18660 # when you set need_version to no, make sure it does not cause -set_version
18661 # flags to be left without arguments
18662 need_version=unknown
18663
18664 case $host_os in
18665 aix3*)
18666 version_type=linux
18667 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18668 shlibpath_var=LIBPATH
18669
18670 # AIX 3 has no versioning support, so we append a major version to the name.
18671 soname_spec='${libname}${release}${shared_ext}$major'
18672 ;;
18673
18674 aix4* | aix5*)
18675 version_type=linux
18676 need_lib_prefix=no
18677 need_version=no
18678 hardcode_into_libs=yes
18679 if test "$host_cpu" = ia64; then
18680 # AIX 5 supports IA64
18681 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18682 shlibpath_var=LD_LIBRARY_PATH
18683 else
18684 # With GCC up to 2.95.x, collect2 would create an import file
18685 # for dependence libraries. The import file would start with
18686 # the line `#! .'. This would cause the generated library to
18687 # depend on `.', always an invalid library. This was fixed in
18688 # development snapshots of GCC prior to 3.0.
18689 case $host_os in
18690 aix4 | aix4.[01] | aix4.[01].*)
18691 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18692 echo ' yes '
18693 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18694 :
18695 else
18696 can_build_shared=no
18697 fi
18698 ;;
18699 esac
18700 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18701 # soname into executable. Probably we can add versioning support to
18702 # collect2, so additional links can be useful in future.
18703 if test "$aix_use_runtimelinking" = yes; then
18704 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18705 # instead of lib<name>.a to let people know that these are not
18706 # typical AIX shared libraries.
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18708 else
18709 # We preserve .a as extension for shared libraries through AIX4.2
18710 # and later when we are not doing run time linking.
18711 library_names_spec='${libname}${release}.a $libname.a'
18712 soname_spec='${libname}${release}${shared_ext}$major'
18713 fi
18714 shlibpath_var=LIBPATH
18715 fi
18716 ;;
18717
18718 amigaos*)
18719 library_names_spec='$libname.ixlibrary $libname.a'
18720 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18721 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'
18722 ;;
18723
18724 beos*)
18725 library_names_spec='${libname}${shared_ext}'
18726 dynamic_linker="$host_os ld.so"
18727 shlibpath_var=LIBRARY_PATH
18728 ;;
18729
18730 bsdi[45]*)
18731 version_type=linux
18732 need_version=no
18733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18734 soname_spec='${libname}${release}${shared_ext}$major'
18735 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18736 shlibpath_var=LD_LIBRARY_PATH
18737 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18738 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18739 # the default ld.so.conf also contains /usr/contrib/lib and
18740 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18741 # libtool to hard-code these into programs
18742 ;;
18743
18744 cygwin* | mingw* | pw32*)
18745 version_type=windows
18746 shrext_cmds=".dll"
18747 need_version=no
18748 need_lib_prefix=no
18749
18750 case $GCC,$host_os in
18751 yes,cygwin* | yes,mingw* | yes,pw32*)
18752 library_names_spec='$libname.dll.a'
18753 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18754 postinstall_cmds='base_file=`basename \${file}`~
18755 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18756 dldir=$destdir/`dirname \$dlpath`~
18757 test -d \$dldir || mkdir -p \$dldir~
18758 $install_prog $dir/$dlname \$dldir/$dlname~
18759 chmod a+x \$dldir/$dlname'
18760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18761 dlpath=$dir/\$dldll~
18762 $rm \$dlpath'
18763 shlibpath_overrides_runpath=yes
18764
18765 case $host_os in
18766 cygwin*)
18767 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18768 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18769 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18770 ;;
18771 mingw*)
18772 # MinGW DLLs use traditional 'lib' prefix
18773 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18774 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18775 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18776 # It is most probably a Windows format PATH printed by
18777 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18778 # path with ; separators, and with drive letters. We can handle the
18779 # drive letters (cygwin fileutils understands them), so leave them,
18780 # especially as we might pass files found there to a mingw objdump,
18781 # which wouldn't understand a cygwinified path. Ahh.
18782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18783 else
18784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18785 fi
18786 ;;
18787 pw32*)
18788 # pw32 DLLs use 'pw' prefix rather than 'lib'
18789 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18790 ;;
18791 esac
18792 ;;
18793
18794 *)
18795 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18796 ;;
18797 esac
18798 dynamic_linker='Win32 ld.exe'
18799 # FIXME: first we should search . and the directory the executable is in
18800 shlibpath_var=PATH
18801 ;;
18802
18803 darwin* | rhapsody*)
18804 dynamic_linker="$host_os dyld"
18805 version_type=darwin
18806 need_lib_prefix=no
18807 need_version=no
18808 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18809 soname_spec='${libname}${release}${major}$shared_ext'
18810 shlibpath_overrides_runpath=yes
18811 shlibpath_var=DYLD_LIBRARY_PATH
18812 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18813 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18814 if test "$GCC" = yes; then
18815 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"`
18816 else
18817 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18818 fi
18819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18820 ;;
18821
18822 dgux*)
18823 version_type=linux
18824 need_lib_prefix=no
18825 need_version=no
18826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18827 soname_spec='${libname}${release}${shared_ext}$major'
18828 shlibpath_var=LD_LIBRARY_PATH
18829 ;;
18830
18831 freebsd1*)
18832 dynamic_linker=no
18833 ;;
18834
18835 kfreebsd*-gnu)
18836 version_type=linux
18837 need_lib_prefix=no
18838 need_version=no
18839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18840 soname_spec='${libname}${release}${shared_ext}$major'
18841 shlibpath_var=LD_LIBRARY_PATH
18842 shlibpath_overrides_runpath=no
18843 hardcode_into_libs=yes
18844 dynamic_linker='GNU ld.so'
18845 ;;
18846
18847 freebsd* | dragonfly*)
18848 # DragonFly does not have aout. When/if they implement a new
18849 # versioning mechanism, adjust this.
18850 if test -x /usr/bin/objformat; then
18851 objformat=`/usr/bin/objformat`
18852 else
18853 case $host_os in
18854 freebsd[123]*) objformat=aout ;;
18855 *) objformat=elf ;;
18856 esac
18857 fi
18858 version_type=freebsd-$objformat
18859 case $version_type in
18860 freebsd-elf*)
18861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18862 need_version=no
18863 need_lib_prefix=no
18864 ;;
18865 freebsd-*)
18866 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18867 need_version=yes
18868 ;;
18869 esac
18870 shlibpath_var=LD_LIBRARY_PATH
18871 case $host_os in
18872 freebsd2*)
18873 shlibpath_overrides_runpath=yes
18874 ;;
18875 freebsd3.[01]* | freebsdelf3.[01]*)
18876 shlibpath_overrides_runpath=yes
18877 hardcode_into_libs=yes
18878 ;;
18879 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18880 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18881 shlibpath_overrides_runpath=no
18882 hardcode_into_libs=yes
18883 ;;
18884 freebsd*) # from 4.6 on
18885 shlibpath_overrides_runpath=yes
18886 hardcode_into_libs=yes
18887 ;;
18888 esac
18889 ;;
18890
18891 gnu*)
18892 version_type=linux
18893 need_lib_prefix=no
18894 need_version=no
18895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18896 soname_spec='${libname}${release}${shared_ext}$major'
18897 shlibpath_var=LD_LIBRARY_PATH
18898 hardcode_into_libs=yes
18899 ;;
18900
18901 hpux9* | hpux10* | hpux11*)
18902 # Give a soname corresponding to the major version so that dld.sl refuses to
18903 # link against other versions.
18904 version_type=sunos
18905 need_lib_prefix=no
18906 need_version=no
18907 case $host_cpu in
18908 ia64*)
18909 shrext_cmds='.so'
18910 hardcode_into_libs=yes
18911 dynamic_linker="$host_os dld.so"
18912 shlibpath_var=LD_LIBRARY_PATH
18913 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18915 soname_spec='${libname}${release}${shared_ext}$major'
18916 if test "X$HPUX_IA64_MODE" = X32; then
18917 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18918 else
18919 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18920 fi
18921 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18922 ;;
18923 hppa*64*)
18924 shrext_cmds='.sl'
18925 hardcode_into_libs=yes
18926 dynamic_linker="$host_os dld.sl"
18927 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18930 soname_spec='${libname}${release}${shared_ext}$major'
18931 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18933 ;;
18934 *)
18935 shrext_cmds='.sl'
18936 dynamic_linker="$host_os dld.sl"
18937 shlibpath_var=SHLIB_PATH
18938 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18940 soname_spec='${libname}${release}${shared_ext}$major'
18941 ;;
18942 esac
18943 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18944 postinstall_cmds='chmod 555 $lib'
18945 ;;
18946
18947 interix3*)
18948 version_type=linux
18949 need_lib_prefix=no
18950 need_version=no
18951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18952 soname_spec='${libname}${release}${shared_ext}$major'
18953 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18954 shlibpath_var=LD_LIBRARY_PATH
18955 shlibpath_overrides_runpath=no
18956 hardcode_into_libs=yes
18957 ;;
18958
18959 irix5* | irix6* | nonstopux*)
18960 case $host_os in
18961 nonstopux*) version_type=nonstopux ;;
18962 *)
18963 if test "$lt_cv_prog_gnu_ld" = yes; then
18964 version_type=linux
18965 else
18966 version_type=irix
18967 fi ;;
18968 esac
18969 need_lib_prefix=no
18970 need_version=no
18971 soname_spec='${libname}${release}${shared_ext}$major'
18972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18973 case $host_os in
18974 irix5* | nonstopux*)
18975 libsuff= shlibsuff=
18976 ;;
18977 *)
18978 case $LD in # libtool.m4 will add one of these switches to LD
18979 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18980 libsuff= shlibsuff= libmagic=32-bit;;
18981 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18982 libsuff=32 shlibsuff=N32 libmagic=N32;;
18983 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18984 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18985 *) libsuff= shlibsuff= libmagic=never-match;;
18986 esac
18987 ;;
18988 esac
18989 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18990 shlibpath_overrides_runpath=no
18991 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18992 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18993 hardcode_into_libs=yes
18994 ;;
18995
18996 # No shared lib support for Linux oldld, aout, or coff.
18997 linux*oldld* | linux*aout* | linux*coff*)
18998 dynamic_linker=no
18999 ;;
19000
19001 # This must be Linux ELF.
19002 linux*)
19003 version_type=linux
19004 need_lib_prefix=no
19005 need_version=no
19006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19007 soname_spec='${libname}${release}${shared_ext}$major'
19008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19009 shlibpath_var=LD_LIBRARY_PATH
19010 shlibpath_overrides_runpath=no
19011 # This implies no fast_install, which is unacceptable.
19012 # Some rework will be needed to allow for fast_install
19013 # before this can be enabled.
19014 hardcode_into_libs=yes
19015
19016 # Append ld.so.conf contents to the search path
19017 if test -f /etc/ld.so.conf; then
19018 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' ' '`
19019 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19020 fi
19021
19022 # We used to test for /lib/ld.so.1 and disable shared libraries on
19023 # powerpc, because MkLinux only supported shared libraries with the
19024 # GNU dynamic linker. Since this was broken with cross compilers,
19025 # most powerpc-linux boxes support dynamic linking these days and
19026 # people can always --disable-shared, the test was removed, and we
19027 # assume the GNU/Linux dynamic linker is in use.
19028 dynamic_linker='GNU/Linux ld.so'
19029 ;;
19030
19031 knetbsd*-gnu)
19032 version_type=linux
19033 need_lib_prefix=no
19034 need_version=no
19035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19036 soname_spec='${libname}${release}${shared_ext}$major'
19037 shlibpath_var=LD_LIBRARY_PATH
19038 shlibpath_overrides_runpath=no
19039 hardcode_into_libs=yes
19040 dynamic_linker='GNU ld.so'
19041 ;;
19042
19043 netbsd*)
19044 version_type=sunos
19045 need_lib_prefix=no
19046 need_version=no
19047 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19050 dynamic_linker='NetBSD (a.out) ld.so'
19051 else
19052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19053 soname_spec='${libname}${release}${shared_ext}$major'
19054 dynamic_linker='NetBSD ld.elf_so'
19055 fi
19056 shlibpath_var=LD_LIBRARY_PATH
19057 shlibpath_overrides_runpath=yes
19058 hardcode_into_libs=yes
19059 ;;
19060
19061 newsos6)
19062 version_type=linux
19063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19064 shlibpath_var=LD_LIBRARY_PATH
19065 shlibpath_overrides_runpath=yes
19066 ;;
19067
19068 nto-qnx*)
19069 version_type=linux
19070 need_lib_prefix=no
19071 need_version=no
19072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19073 soname_spec='${libname}${release}${shared_ext}$major'
19074 shlibpath_var=LD_LIBRARY_PATH
19075 shlibpath_overrides_runpath=yes
19076 ;;
19077
19078 openbsd*)
19079 version_type=sunos
19080 sys_lib_dlsearch_path_spec="/usr/lib"
19081 need_lib_prefix=no
19082 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19083 case $host_os in
19084 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19085 *) need_version=no ;;
19086 esac
19087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19089 shlibpath_var=LD_LIBRARY_PATH
19090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19091 case $host_os in
19092 openbsd2.[89] | openbsd2.[89].*)
19093 shlibpath_overrides_runpath=no
19094 ;;
19095 *)
19096 shlibpath_overrides_runpath=yes
19097 ;;
19098 esac
19099 else
19100 shlibpath_overrides_runpath=yes
19101 fi
19102 ;;
19103
19104 os2*)
19105 libname_spec='$name'
19106 shrext_cmds=".dll"
19107 need_lib_prefix=no
19108 library_names_spec='$libname${shared_ext} $libname.a'
19109 dynamic_linker='OS/2 ld.exe'
19110 shlibpath_var=LIBPATH
19111 ;;
19112
19113 osf3* | osf4* | osf5*)
19114 version_type=osf
19115 need_lib_prefix=no
19116 need_version=no
19117 soname_spec='${libname}${release}${shared_ext}$major'
19118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19119 shlibpath_var=LD_LIBRARY_PATH
19120 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19121 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19122 ;;
19123
19124 solaris*)
19125 version_type=linux
19126 need_lib_prefix=no
19127 need_version=no
19128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19129 soname_spec='${libname}${release}${shared_ext}$major'
19130 shlibpath_var=LD_LIBRARY_PATH
19131 shlibpath_overrides_runpath=yes
19132 hardcode_into_libs=yes
19133 # ldd complains unless libraries are executable
19134 postinstall_cmds='chmod +x $lib'
19135 ;;
19136
19137 sunos4*)
19138 version_type=sunos
19139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19140 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19141 shlibpath_var=LD_LIBRARY_PATH
19142 shlibpath_overrides_runpath=yes
19143 if test "$with_gnu_ld" = yes; then
19144 need_lib_prefix=no
19145 fi
19146 need_version=yes
19147 ;;
19148
19149 sysv4 | sysv4.3*)
19150 version_type=linux
19151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19152 soname_spec='${libname}${release}${shared_ext}$major'
19153 shlibpath_var=LD_LIBRARY_PATH
19154 case $host_vendor in
19155 sni)
19156 shlibpath_overrides_runpath=no
19157 need_lib_prefix=no
19158 export_dynamic_flag_spec='${wl}-Blargedynsym'
19159 runpath_var=LD_RUN_PATH
19160 ;;
19161 siemens)
19162 need_lib_prefix=no
19163 ;;
19164 motorola)
19165 need_lib_prefix=no
19166 need_version=no
19167 shlibpath_overrides_runpath=no
19168 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19169 ;;
19170 esac
19171 ;;
19172
19173 sysv4*MP*)
19174 if test -d /usr/nec ;then
19175 version_type=linux
19176 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19177 soname_spec='$libname${shared_ext}.$major'
19178 shlibpath_var=LD_LIBRARY_PATH
19179 fi
19180 ;;
19181
19182 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19183 version_type=freebsd-elf
19184 need_lib_prefix=no
19185 need_version=no
19186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19187 soname_spec='${libname}${release}${shared_ext}$major'
19188 shlibpath_var=LD_LIBRARY_PATH
19189 hardcode_into_libs=yes
19190 if test "$with_gnu_ld" = yes; then
19191 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19192 shlibpath_overrides_runpath=no
19193 else
19194 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19195 shlibpath_overrides_runpath=yes
19196 case $host_os in
19197 sco3.2v5*)
19198 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19199 ;;
19200 esac
19201 fi
19202 sys_lib_dlsearch_path_spec='/usr/lib'
19203 ;;
19204
19205 uts4*)
19206 version_type=linux
19207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19208 soname_spec='${libname}${release}${shared_ext}$major'
19209 shlibpath_var=LD_LIBRARY_PATH
19210 ;;
19211
19212 *)
19213 dynamic_linker=no
19214 ;;
19215 esac
19216 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19217 echo "${ECHO_T}$dynamic_linker" >&6
19218 test "$dynamic_linker" = no && can_build_shared=no
19219
19220 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19221 if test "$GCC" = yes; then
19222 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19223 fi
19224
19225 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19226 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19227 hardcode_action_GCJ=
19228 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19229 test -n "$runpath_var_GCJ" || \
19230 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19231
19232 # We can hardcode non-existant directories.
19233 if test "$hardcode_direct_GCJ" != no &&
19234 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19235 # have to relink, otherwise we might link with an installed library
19236 # when we should be linking with a yet-to-be-installed one
19237 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19238 test "$hardcode_minus_L_GCJ" != no; then
19239 # Linking always hardcodes the temporary library directory.
19240 hardcode_action_GCJ=relink
19241 else
19242 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19243 hardcode_action_GCJ=immediate
19244 fi
19245 else
19246 # We cannot hardcode anything, or else we can only hardcode existing
19247 # directories.
19248 hardcode_action_GCJ=unsupported
19249 fi
19250 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19251 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19252
19253 if test "$hardcode_action_GCJ" = relink; then
19254 # Fast installation is not supported
19255 enable_fast_install=no
19256 elif test "$shlibpath_overrides_runpath" = yes ||
19257 test "$enable_shared" = no; then
19258 # Fast installation is not necessary
19259 enable_fast_install=needless
19260 fi
19261
19262
19263 # The else clause should only fire when bootstrapping the
19264 # libtool distribution, otherwise you forgot to ship ltmain.sh
19265 # with your package, and you will get complaints that there are
19266 # no rules to generate ltmain.sh.
19267 if test -f "$ltmain"; then
19268 # See if we are running on zsh, and set the options which allow our commands through
19269 # without removal of \ escapes.
19270 if test -n "${ZSH_VERSION+set}" ; then
19271 setopt NO_GLOB_SUBST
19272 fi
19273 # Now quote all the things that may contain metacharacters while being
19274 # careful not to overquote the AC_SUBSTed values. We take copies of the
19275 # variables and quote the copies for generation of the libtool script.
19276 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19277 SED SHELL STRIP \
19278 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19279 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19280 deplibs_check_method reload_flag reload_cmds need_locks \
19281 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19282 lt_cv_sys_global_symbol_to_c_name_address \
19283 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19284 old_postinstall_cmds old_postuninstall_cmds \
19285 compiler_GCJ \
19286 CC_GCJ \
19287 LD_GCJ \
19288 lt_prog_compiler_wl_GCJ \
19289 lt_prog_compiler_pic_GCJ \
19290 lt_prog_compiler_static_GCJ \
19291 lt_prog_compiler_no_builtin_flag_GCJ \
19292 export_dynamic_flag_spec_GCJ \
19293 thread_safe_flag_spec_GCJ \
19294 whole_archive_flag_spec_GCJ \
19295 enable_shared_with_static_runtimes_GCJ \
19296 old_archive_cmds_GCJ \
19297 old_archive_from_new_cmds_GCJ \
19298 predep_objects_GCJ \
19299 postdep_objects_GCJ \
19300 predeps_GCJ \
19301 postdeps_GCJ \
19302 compiler_lib_search_path_GCJ \
19303 archive_cmds_GCJ \
19304 archive_expsym_cmds_GCJ \
19305 postinstall_cmds_GCJ \
19306 postuninstall_cmds_GCJ \
19307 old_archive_from_expsyms_cmds_GCJ \
19308 allow_undefined_flag_GCJ \
19309 no_undefined_flag_GCJ \
19310 export_symbols_cmds_GCJ \
19311 hardcode_libdir_flag_spec_GCJ \
19312 hardcode_libdir_flag_spec_ld_GCJ \
19313 hardcode_libdir_separator_GCJ \
19314 hardcode_automatic_GCJ \
19315 module_cmds_GCJ \
19316 module_expsym_cmds_GCJ \
19317 lt_cv_prog_compiler_c_o_GCJ \
19318 exclude_expsyms_GCJ \
19319 include_expsyms_GCJ; do
19320
19321 case $var in
19322 old_archive_cmds_GCJ | \
19323 old_archive_from_new_cmds_GCJ | \
19324 archive_cmds_GCJ | \
19325 archive_expsym_cmds_GCJ | \
19326 module_cmds_GCJ | \
19327 module_expsym_cmds_GCJ | \
19328 old_archive_from_expsyms_cmds_GCJ | \
19329 export_symbols_cmds_GCJ | \
19330 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19331 postinstall_cmds | postuninstall_cmds | \
19332 old_postinstall_cmds | old_postuninstall_cmds | \
19333 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19334 # Double-quote double-evaled strings.
19335 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19336 ;;
19337 *)
19338 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19339 ;;
19340 esac
19341 done
19342
19343 case $lt_echo in
19344 *'\$0 --fallback-echo"')
19345 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19346 ;;
19347 esac
19348
19349 cfgfile="$ofile"
19350
19351 cat <<__EOF__ >> "$cfgfile"
19352 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19353
19354 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19355
19356 # Shell to use when invoking shell scripts.
19357 SHELL=$lt_SHELL
19358
19359 # Whether or not to build shared libraries.
19360 build_libtool_libs=$enable_shared
19361
19362 # Whether or not to build static libraries.
19363 build_old_libs=$enable_static
19364
19365 # Whether or not to add -lc for building shared libraries.
19366 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19367
19368 # Whether or not to disallow shared libs when runtime libs are static
19369 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19370
19371 # Whether or not to optimize for fast installation.
19372 fast_install=$enable_fast_install
19373
19374 # The host system.
19375 host_alias=$host_alias
19376 host=$host
19377 host_os=$host_os
19378
19379 # The build system.
19380 build_alias=$build_alias
19381 build=$build
19382 build_os=$build_os
19383
19384 # An echo program that does not interpret backslashes.
19385 echo=$lt_echo
19386
19387 # The archiver.
19388 AR=$lt_AR
19389 AR_FLAGS=$lt_AR_FLAGS
19390
19391 # A C compiler.
19392 LTCC=$lt_LTCC
19393
19394 # LTCC compiler flags.
19395 LTCFLAGS=$lt_LTCFLAGS
19396
19397 # A language-specific compiler.
19398 CC=$lt_compiler_GCJ
19399
19400 # Is the compiler the GNU C compiler?
19401 with_gcc=$GCC_GCJ
19402
19403 # An ERE matcher.
19404 EGREP=$lt_EGREP
19405
19406 # The linker used to build libraries.
19407 LD=$lt_LD_GCJ
19408
19409 # Whether we need hard or soft links.
19410 LN_S=$lt_LN_S
19411
19412 # A BSD-compatible nm program.
19413 NM=$lt_NM
19414
19415 # A symbol stripping program
19416 STRIP=$lt_STRIP
19417
19418 # Used to examine libraries when file_magic_cmd begins "file"
19419 MAGIC_CMD=$MAGIC_CMD
19420
19421 # Used on cygwin: DLL creation program.
19422 DLLTOOL="$DLLTOOL"
19423
19424 # Used on cygwin: object dumper.
19425 OBJDUMP="$OBJDUMP"
19426
19427 # Used on cygwin: assembler.
19428 AS="$AS"
19429
19430 # The name of the directory that contains temporary libtool files.
19431 objdir=$objdir
19432
19433 # How to create reloadable object files.
19434 reload_flag=$lt_reload_flag
19435 reload_cmds=$lt_reload_cmds
19436
19437 # How to pass a linker flag through the compiler.
19438 wl=$lt_lt_prog_compiler_wl_GCJ
19439
19440 # Object file suffix (normally "o").
19441 objext="$ac_objext"
19442
19443 # Old archive suffix (normally "a").
19444 libext="$libext"
19445
19446 # Shared library suffix (normally ".so").
19447 shrext_cmds='$shrext_cmds'
19448
19449 # Executable file suffix (normally "").
19450 exeext="$exeext"
19451
19452 # Additional compiler flags for building library objects.
19453 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19454 pic_mode=$pic_mode
19455
19456 # What is the maximum length of a command?
19457 max_cmd_len=$lt_cv_sys_max_cmd_len
19458
19459 # Does compiler simultaneously support -c and -o options?
19460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19461
19462 # Must we lock files when doing compilation?
19463 need_locks=$lt_need_locks
19464
19465 # Do we need the lib prefix for modules?
19466 need_lib_prefix=$need_lib_prefix
19467
19468 # Do we need a version for libraries?
19469 need_version=$need_version
19470
19471 # Whether dlopen is supported.
19472 dlopen_support=$enable_dlopen
19473
19474 # Whether dlopen of programs is supported.
19475 dlopen_self=$enable_dlopen_self
19476
19477 # Whether dlopen of statically linked programs is supported.
19478 dlopen_self_static=$enable_dlopen_self_static
19479
19480 # Compiler flag to prevent dynamic linking.
19481 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19482
19483 # Compiler flag to turn off builtin functions.
19484 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19485
19486 # Compiler flag to allow reflexive dlopens.
19487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19488
19489 # Compiler flag to generate shared objects directly from archives.
19490 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19491
19492 # Compiler flag to generate thread-safe objects.
19493 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19494
19495 # Library versioning type.
19496 version_type=$version_type
19497
19498 # Format of library name prefix.
19499 libname_spec=$lt_libname_spec
19500
19501 # List of archive names. First name is the real one, the rest are links.
19502 # The last name is the one that the linker finds with -lNAME.
19503 library_names_spec=$lt_library_names_spec
19504
19505 # The coded name of the library, if different from the real name.
19506 soname_spec=$lt_soname_spec
19507
19508 # Commands used to build and install an old-style archive.
19509 RANLIB=$lt_RANLIB
19510 old_archive_cmds=$lt_old_archive_cmds_GCJ
19511 old_postinstall_cmds=$lt_old_postinstall_cmds
19512 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19513
19514 # Create an old-style archive from a shared archive.
19515 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19516
19517 # Create a temporary old-style archive to link instead of a shared archive.
19518 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19519
19520 # Commands used to build and install a shared archive.
19521 archive_cmds=$lt_archive_cmds_GCJ
19522 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19523 postinstall_cmds=$lt_postinstall_cmds
19524 postuninstall_cmds=$lt_postuninstall_cmds
19525
19526 # Commands used to build a loadable module (assumed same as above if empty)
19527 module_cmds=$lt_module_cmds_GCJ
19528 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19529
19530 # Commands to strip libraries.
19531 old_striplib=$lt_old_striplib
19532 striplib=$lt_striplib
19533
19534 # Dependencies to place before the objects being linked to create a
19535 # shared library.
19536 predep_objects=$lt_predep_objects_GCJ
19537
19538 # Dependencies to place after the objects being linked to create a
19539 # shared library.
19540 postdep_objects=$lt_postdep_objects_GCJ
19541
19542 # Dependencies to place before the objects being linked to create a
19543 # shared library.
19544 predeps=$lt_predeps_GCJ
19545
19546 # Dependencies to place after the objects being linked to create a
19547 # shared library.
19548 postdeps=$lt_postdeps_GCJ
19549
19550 # The library search path used internally by the compiler when linking
19551 # a shared library.
19552 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19553
19554 # Method to check whether dependent libraries are shared objects.
19555 deplibs_check_method=$lt_deplibs_check_method
19556
19557 # Command to use when deplibs_check_method == file_magic.
19558 file_magic_cmd=$lt_file_magic_cmd
19559
19560 # Flag that allows shared libraries with undefined symbols to be built.
19561 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19562
19563 # Flag that forces no undefined symbols.
19564 no_undefined_flag=$lt_no_undefined_flag_GCJ
19565
19566 # Commands used to finish a libtool library installation in a directory.
19567 finish_cmds=$lt_finish_cmds
19568
19569 # Same as above, but a single script fragment to be evaled but not shown.
19570 finish_eval=$lt_finish_eval
19571
19572 # Take the output of nm and produce a listing of raw symbols and C names.
19573 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19574
19575 # Transform the output of nm in a proper C declaration
19576 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19577
19578 # Transform the output of nm in a C name address pair
19579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19580
19581 # This is the shared library runtime path variable.
19582 runpath_var=$runpath_var
19583
19584 # This is the shared library path variable.
19585 shlibpath_var=$shlibpath_var
19586
19587 # Is shlibpath searched before the hard-coded library search path?
19588 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19589
19590 # How to hardcode a shared library path into an executable.
19591 hardcode_action=$hardcode_action_GCJ
19592
19593 # Whether we should hardcode library paths into libraries.
19594 hardcode_into_libs=$hardcode_into_libs
19595
19596 # Flag to hardcode \$libdir into a binary during linking.
19597 # This must work even if \$libdir does not exist.
19598 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19599
19600 # If ld is used when linking, flag to hardcode \$libdir into
19601 # a binary during linking. This must work even if \$libdir does
19602 # not exist.
19603 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19604
19605 # Whether we need a single -rpath flag with a separated argument.
19606 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19607
19608 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19609 # resulting binary.
19610 hardcode_direct=$hardcode_direct_GCJ
19611
19612 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19613 # resulting binary.
19614 hardcode_minus_L=$hardcode_minus_L_GCJ
19615
19616 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19617 # the resulting binary.
19618 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19619
19620 # Set to yes if building a shared library automatically hardcodes DIR into the library
19621 # and all subsequent libraries and executables linked against it.
19622 hardcode_automatic=$hardcode_automatic_GCJ
19623
19624 # Variables whose values should be saved in libtool wrapper scripts and
19625 # restored at relink time.
19626 variables_saved_for_relink="$variables_saved_for_relink"
19627
19628 # Whether libtool must link a program against all its dependency libraries.
19629 link_all_deplibs=$link_all_deplibs_GCJ
19630
19631 # Compile-time system search path for libraries
19632 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19633
19634 # Run-time system search path for libraries
19635 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19636
19637 # Fix the shell variable \$srcfile for the compiler.
19638 fix_srcfile_path="$fix_srcfile_path_GCJ"
19639
19640 # Set to yes if exported symbols are required.
19641 always_export_symbols=$always_export_symbols_GCJ
19642
19643 # The commands to list exported symbols.
19644 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19645
19646 # The commands to extract the exported symbol list from a shared archive.
19647 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19648
19649 # Symbols that should not be listed in the preloaded symbols.
19650 exclude_expsyms=$lt_exclude_expsyms_GCJ
19651
19652 # Symbols that must always be exported.
19653 include_expsyms=$lt_include_expsyms_GCJ
19654
19655 # ### END LIBTOOL TAG CONFIG: $tagname
19656
19657 __EOF__
19658
19659
19660 else
19661 # If there is no Makefile yet, we rely on a make rule to execute
19662 # `config.status --recheck' to rerun these tests and create the
19663 # libtool script then.
19664 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19665 if test -f "$ltmain_in"; then
19666 test -f Makefile && make "$ltmain"
19667 fi
19668 fi
19669
19670
19671 ac_ext=c
19672 ac_cpp='$CPP $CPPFLAGS'
19673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19676
19677 CC="$lt_save_CC"
19678
19679 else
19680 tagname=""
19681 fi
19682 ;;
19683
19684 RC)
19685
19686
19687
19688 # Source file extension for RC test sources.
19689 ac_ext=rc
19690
19691 # Object file extension for compiled RC test sources.
19692 objext=o
19693 objext_RC=$objext
19694
19695 # Code to be used in simple compile tests
19696 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19697
19698 # Code to be used in simple link tests
19699 lt_simple_link_test_code="$lt_simple_compile_test_code"
19700
19701 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19702
19703 # If no C compiler was specified, use CC.
19704 LTCC=${LTCC-"$CC"}
19705
19706 # If no C compiler flags were specified, use CFLAGS.
19707 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19708
19709 # Allow CC to be a program name with arguments.
19710 compiler=$CC
19711
19712
19713 # save warnings/boilerplate of simple test code
19714 ac_outfile=conftest.$ac_objext
19715 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19716 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19717 _lt_compiler_boilerplate=`cat conftest.err`
19718 $rm conftest*
19719
19720 ac_outfile=conftest.$ac_objext
19721 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19722 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19723 _lt_linker_boilerplate=`cat conftest.err`
19724 $rm conftest*
19725
19726
19727 # Allow CC to be a program name with arguments.
19728 lt_save_CC="$CC"
19729 CC=${RC-"windres"}
19730 compiler=$CC
19731 compiler_RC=$CC
19732 for cc_temp in $compiler""; do
19733 case $cc_temp in
19734 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19735 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19736 \-*) ;;
19737 *) break;;
19738 esac
19739 done
19740 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19741
19742 lt_cv_prog_compiler_c_o_RC=yes
19743
19744 # The else clause should only fire when bootstrapping the
19745 # libtool distribution, otherwise you forgot to ship ltmain.sh
19746 # with your package, and you will get complaints that there are
19747 # no rules to generate ltmain.sh.
19748 if test -f "$ltmain"; then
19749 # See if we are running on zsh, and set the options which allow our commands through
19750 # without removal of \ escapes.
19751 if test -n "${ZSH_VERSION+set}" ; then
19752 setopt NO_GLOB_SUBST
19753 fi
19754 # Now quote all the things that may contain metacharacters while being
19755 # careful not to overquote the AC_SUBSTed values. We take copies of the
19756 # variables and quote the copies for generation of the libtool script.
19757 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19758 SED SHELL STRIP \
19759 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19760 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19761 deplibs_check_method reload_flag reload_cmds need_locks \
19762 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19763 lt_cv_sys_global_symbol_to_c_name_address \
19764 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19765 old_postinstall_cmds old_postuninstall_cmds \
19766 compiler_RC \
19767 CC_RC \
19768 LD_RC \
19769 lt_prog_compiler_wl_RC \
19770 lt_prog_compiler_pic_RC \
19771 lt_prog_compiler_static_RC \
19772 lt_prog_compiler_no_builtin_flag_RC \
19773 export_dynamic_flag_spec_RC \
19774 thread_safe_flag_spec_RC \
19775 whole_archive_flag_spec_RC \
19776 enable_shared_with_static_runtimes_RC \
19777 old_archive_cmds_RC \
19778 old_archive_from_new_cmds_RC \
19779 predep_objects_RC \
19780 postdep_objects_RC \
19781 predeps_RC \
19782 postdeps_RC \
19783 compiler_lib_search_path_RC \
19784 archive_cmds_RC \
19785 archive_expsym_cmds_RC \
19786 postinstall_cmds_RC \
19787 postuninstall_cmds_RC \
19788 old_archive_from_expsyms_cmds_RC \
19789 allow_undefined_flag_RC \
19790 no_undefined_flag_RC \
19791 export_symbols_cmds_RC \
19792 hardcode_libdir_flag_spec_RC \
19793 hardcode_libdir_flag_spec_ld_RC \
19794 hardcode_libdir_separator_RC \
19795 hardcode_automatic_RC \
19796 module_cmds_RC \
19797 module_expsym_cmds_RC \
19798 lt_cv_prog_compiler_c_o_RC \
19799 exclude_expsyms_RC \
19800 include_expsyms_RC; do
19801
19802 case $var in
19803 old_archive_cmds_RC | \
19804 old_archive_from_new_cmds_RC | \
19805 archive_cmds_RC | \
19806 archive_expsym_cmds_RC | \
19807 module_cmds_RC | \
19808 module_expsym_cmds_RC | \
19809 old_archive_from_expsyms_cmds_RC | \
19810 export_symbols_cmds_RC | \
19811 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19812 postinstall_cmds | postuninstall_cmds | \
19813 old_postinstall_cmds | old_postuninstall_cmds | \
19814 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19815 # Double-quote double-evaled strings.
19816 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19817 ;;
19818 *)
19819 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19820 ;;
19821 esac
19822 done
19823
19824 case $lt_echo in
19825 *'\$0 --fallback-echo"')
19826 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19827 ;;
19828 esac
19829
19830 cfgfile="$ofile"
19831
19832 cat <<__EOF__ >> "$cfgfile"
19833 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19834
19835 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19836
19837 # Shell to use when invoking shell scripts.
19838 SHELL=$lt_SHELL
19839
19840 # Whether or not to build shared libraries.
19841 build_libtool_libs=$enable_shared
19842
19843 # Whether or not to build static libraries.
19844 build_old_libs=$enable_static
19845
19846 # Whether or not to add -lc for building shared libraries.
19847 build_libtool_need_lc=$archive_cmds_need_lc_RC
19848
19849 # Whether or not to disallow shared libs when runtime libs are static
19850 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19851
19852 # Whether or not to optimize for fast installation.
19853 fast_install=$enable_fast_install
19854
19855 # The host system.
19856 host_alias=$host_alias
19857 host=$host
19858 host_os=$host_os
19859
19860 # The build system.
19861 build_alias=$build_alias
19862 build=$build
19863 build_os=$build_os
19864
19865 # An echo program that does not interpret backslashes.
19866 echo=$lt_echo
19867
19868 # The archiver.
19869 AR=$lt_AR
19870 AR_FLAGS=$lt_AR_FLAGS
19871
19872 # A C compiler.
19873 LTCC=$lt_LTCC
19874
19875 # LTCC compiler flags.
19876 LTCFLAGS=$lt_LTCFLAGS
19877
19878 # A language-specific compiler.
19879 CC=$lt_compiler_RC
19880
19881 # Is the compiler the GNU C compiler?
19882 with_gcc=$GCC_RC
19883
19884 # An ERE matcher.
19885 EGREP=$lt_EGREP
19886
19887 # The linker used to build libraries.
19888 LD=$lt_LD_RC
19889
19890 # Whether we need hard or soft links.
19891 LN_S=$lt_LN_S
19892
19893 # A BSD-compatible nm program.
19894 NM=$lt_NM
19895
19896 # A symbol stripping program
19897 STRIP=$lt_STRIP
19898
19899 # Used to examine libraries when file_magic_cmd begins "file"
19900 MAGIC_CMD=$MAGIC_CMD
19901
19902 # Used on cygwin: DLL creation program.
19903 DLLTOOL="$DLLTOOL"
19904
19905 # Used on cygwin: object dumper.
19906 OBJDUMP="$OBJDUMP"
19907
19908 # Used on cygwin: assembler.
19909 AS="$AS"
19910
19911 # The name of the directory that contains temporary libtool files.
19912 objdir=$objdir
19913
19914 # How to create reloadable object files.
19915 reload_flag=$lt_reload_flag
19916 reload_cmds=$lt_reload_cmds
19917
19918 # How to pass a linker flag through the compiler.
19919 wl=$lt_lt_prog_compiler_wl_RC
19920
19921 # Object file suffix (normally "o").
19922 objext="$ac_objext"
19923
19924 # Old archive suffix (normally "a").
19925 libext="$libext"
19926
19927 # Shared library suffix (normally ".so").
19928 shrext_cmds='$shrext_cmds'
19929
19930 # Executable file suffix (normally "").
19931 exeext="$exeext"
19932
19933 # Additional compiler flags for building library objects.
19934 pic_flag=$lt_lt_prog_compiler_pic_RC
19935 pic_mode=$pic_mode
19936
19937 # What is the maximum length of a command?
19938 max_cmd_len=$lt_cv_sys_max_cmd_len
19939
19940 # Does compiler simultaneously support -c and -o options?
19941 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19942
19943 # Must we lock files when doing compilation?
19944 need_locks=$lt_need_locks
19945
19946 # Do we need the lib prefix for modules?
19947 need_lib_prefix=$need_lib_prefix
19948
19949 # Do we need a version for libraries?
19950 need_version=$need_version
19951
19952 # Whether dlopen is supported.
19953 dlopen_support=$enable_dlopen
19954
19955 # Whether dlopen of programs is supported.
19956 dlopen_self=$enable_dlopen_self
19957
19958 # Whether dlopen of statically linked programs is supported.
19959 dlopen_self_static=$enable_dlopen_self_static
19960
19961 # Compiler flag to prevent dynamic linking.
19962 link_static_flag=$lt_lt_prog_compiler_static_RC
19963
19964 # Compiler flag to turn off builtin functions.
19965 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19966
19967 # Compiler flag to allow reflexive dlopens.
19968 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19969
19970 # Compiler flag to generate shared objects directly from archives.
19971 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19972
19973 # Compiler flag to generate thread-safe objects.
19974 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19975
19976 # Library versioning type.
19977 version_type=$version_type
19978
19979 # Format of library name prefix.
19980 libname_spec=$lt_libname_spec
19981
19982 # List of archive names. First name is the real one, the rest are links.
19983 # The last name is the one that the linker finds with -lNAME.
19984 library_names_spec=$lt_library_names_spec
19985
19986 # The coded name of the library, if different from the real name.
19987 soname_spec=$lt_soname_spec
19988
19989 # Commands used to build and install an old-style archive.
19990 RANLIB=$lt_RANLIB
19991 old_archive_cmds=$lt_old_archive_cmds_RC
19992 old_postinstall_cmds=$lt_old_postinstall_cmds
19993 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19994
19995 # Create an old-style archive from a shared archive.
19996 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19997
19998 # Create a temporary old-style archive to link instead of a shared archive.
19999 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20000
20001 # Commands used to build and install a shared archive.
20002 archive_cmds=$lt_archive_cmds_RC
20003 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20004 postinstall_cmds=$lt_postinstall_cmds
20005 postuninstall_cmds=$lt_postuninstall_cmds
20006
20007 # Commands used to build a loadable module (assumed same as above if empty)
20008 module_cmds=$lt_module_cmds_RC
20009 module_expsym_cmds=$lt_module_expsym_cmds_RC
20010
20011 # Commands to strip libraries.
20012 old_striplib=$lt_old_striplib
20013 striplib=$lt_striplib
20014
20015 # Dependencies to place before the objects being linked to create a
20016 # shared library.
20017 predep_objects=$lt_predep_objects_RC
20018
20019 # Dependencies to place after the objects being linked to create a
20020 # shared library.
20021 postdep_objects=$lt_postdep_objects_RC
20022
20023 # Dependencies to place before the objects being linked to create a
20024 # shared library.
20025 predeps=$lt_predeps_RC
20026
20027 # Dependencies to place after the objects being linked to create a
20028 # shared library.
20029 postdeps=$lt_postdeps_RC
20030
20031 # The library search path used internally by the compiler when linking
20032 # a shared library.
20033 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20034
20035 # Method to check whether dependent libraries are shared objects.
20036 deplibs_check_method=$lt_deplibs_check_method
20037
20038 # Command to use when deplibs_check_method == file_magic.
20039 file_magic_cmd=$lt_file_magic_cmd
20040
20041 # Flag that allows shared libraries with undefined symbols to be built.
20042 allow_undefined_flag=$lt_allow_undefined_flag_RC
20043
20044 # Flag that forces no undefined symbols.
20045 no_undefined_flag=$lt_no_undefined_flag_RC
20046
20047 # Commands used to finish a libtool library installation in a directory.
20048 finish_cmds=$lt_finish_cmds
20049
20050 # Same as above, but a single script fragment to be evaled but not shown.
20051 finish_eval=$lt_finish_eval
20052
20053 # Take the output of nm and produce a listing of raw symbols and C names.
20054 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20055
20056 # Transform the output of nm in a proper C declaration
20057 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20058
20059 # Transform the output of nm in a C name address pair
20060 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20061
20062 # This is the shared library runtime path variable.
20063 runpath_var=$runpath_var
20064
20065 # This is the shared library path variable.
20066 shlibpath_var=$shlibpath_var
20067
20068 # Is shlibpath searched before the hard-coded library search path?
20069 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20070
20071 # How to hardcode a shared library path into an executable.
20072 hardcode_action=$hardcode_action_RC
20073
20074 # Whether we should hardcode library paths into libraries.
20075 hardcode_into_libs=$hardcode_into_libs
20076
20077 # Flag to hardcode \$libdir into a binary during linking.
20078 # This must work even if \$libdir does not exist.
20079 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20080
20081 # If ld is used when linking, flag to hardcode \$libdir into
20082 # a binary during linking. This must work even if \$libdir does
20083 # not exist.
20084 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20085
20086 # Whether we need a single -rpath flag with a separated argument.
20087 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20088
20089 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20090 # resulting binary.
20091 hardcode_direct=$hardcode_direct_RC
20092
20093 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20094 # resulting binary.
20095 hardcode_minus_L=$hardcode_minus_L_RC
20096
20097 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20098 # the resulting binary.
20099 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20100
20101 # Set to yes if building a shared library automatically hardcodes DIR into the library
20102 # and all subsequent libraries and executables linked against it.
20103 hardcode_automatic=$hardcode_automatic_RC
20104
20105 # Variables whose values should be saved in libtool wrapper scripts and
20106 # restored at relink time.
20107 variables_saved_for_relink="$variables_saved_for_relink"
20108
20109 # Whether libtool must link a program against all its dependency libraries.
20110 link_all_deplibs=$link_all_deplibs_RC
20111
20112 # Compile-time system search path for libraries
20113 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20114
20115 # Run-time system search path for libraries
20116 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20117
20118 # Fix the shell variable \$srcfile for the compiler.
20119 fix_srcfile_path="$fix_srcfile_path_RC"
20120
20121 # Set to yes if exported symbols are required.
20122 always_export_symbols=$always_export_symbols_RC
20123
20124 # The commands to list exported symbols.
20125 export_symbols_cmds=$lt_export_symbols_cmds_RC
20126
20127 # The commands to extract the exported symbol list from a shared archive.
20128 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20129
20130 # Symbols that should not be listed in the preloaded symbols.
20131 exclude_expsyms=$lt_exclude_expsyms_RC
20132
20133 # Symbols that must always be exported.
20134 include_expsyms=$lt_include_expsyms_RC
20135
20136 # ### END LIBTOOL TAG CONFIG: $tagname
20137
20138 __EOF__
20139
20140
20141 else
20142 # If there is no Makefile yet, we rely on a make rule to execute
20143 # `config.status --recheck' to rerun these tests and create the
20144 # libtool script then.
20145 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20146 if test -f "$ltmain_in"; then
20147 test -f Makefile && make "$ltmain"
20148 fi
20149 fi
20150
20151
20152 ac_ext=c
20153 ac_cpp='$CPP $CPPFLAGS'
20154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20157
20158 CC="$lt_save_CC"
20159
20160 ;;
20161
20162 *)
20163 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20164 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20165 { (exit 1); exit 1; }; }
20166 ;;
20167 esac
20168
20169 # Append the new tag name to the list of available tags.
20170 if test -n "$tagname" ; then
20171 available_tags="$available_tags $tagname"
20172 fi
20173 fi
20174 done
20175 IFS="$lt_save_ifs"
20176
20177 # Now substitute the updated list of available tags.
20178 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20179 mv "${ofile}T" "$ofile"
20180 chmod +x "$ofile"
20181 else
20182 rm -f "${ofile}T"
20183 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20184 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20185 { (exit 1); exit 1; }; }
20186 fi
20187 fi
20188
20189
20190
20191 # This can be used to rebuild libtool when needed
20192 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20193
20194 # Always use our own libtool.
20195 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20196
20197 # Prevent multiple expansion
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209 # No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20210 # AC_REQUIRE([AC_COIN_DLFCN_H])
20211
20212 # NEW: If libtool exists in the directory higher up, we use that one
20213 # instead of creating a new one
20214
20215 # It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20216 # out in front of this macro body. You'll notice that LIBTOOL is already
20217 # defined here. We'll have to count on this macro not being called if libtool
20218 # already exists, or at least move the libtool fixes outside the conditional.
20219 # AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20220 # This test is therefore removed. -- lh, 061214 --
20221 # if test "x$LIBTOOL" = x; then
20222
20223 # AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233 # AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20234
20235
20236
20237 { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20238 echo "$as_me: Build is \"$build\"." >&6;}
20239 # Extract the first word of "dos2unix", so it can be a program name with args.
20240 set dummy dos2unix; ac_word=$2
20241 echo "$as_me:$LINENO: checking for $ac_word" >&5
20242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20243 if test "${ac_cv_prog_dos2unix+set}" = set; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20245 else
20246 if test -n "$dos2unix"; then
20247 ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test.
20248 else
20249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20250 for as_dir in $PATH
20251 do
20252 IFS=$as_save_IFS
20253 test -z "$as_dir" && as_dir=.
20254 for ac_exec_ext in '' $ac_executable_extensions; do
20255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20256 ac_cv_prog_dos2unix="dos2unix"
20257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20258 break 2
20259 fi
20260 done
20261 done
20262
20263 fi
20264 fi
20265 dos2unix=$ac_cv_prog_dos2unix
20266 if test -n "$dos2unix"; then
20267 echo "$as_me:$LINENO: result: $dos2unix" >&5
20268 echo "${ECHO_T}$dos2unix" >&6
20269 else
20270 echo "$as_me:$LINENO: result: no" >&5
20271 echo "${ECHO_T}no" >&6
20272 fi
20273
20274 if test "$dos2unix" = dos2unix ; then
20275 mydos2unix="| dos2unix"
20276 fi
20277 case $build in
20278 *-mingw*)
20279 CYGPATH_W=echo
20280 ;;
20281 esac
20282
20283 case $build in
20284 # Here we need to check if -m32 is specified. If so, we need to correct
20285 # sys_lib_search_path_spec
20286 *-cygwin* | *-mingw*)
20287 case "$CXX" in
20288 clang* | */clang* )
20289 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20290 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20291 echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20292 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20293 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20294 -e 's|libext="lib"|libext="a"|' \
20295 libtool > conftest.bla
20296 ;;
20297 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20298 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20299 echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20300 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20301 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20302 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20303 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20304 -e 's%lib /OUT:%lib -OUT:%' \
20305 -e "s%cygpath -w%$CYGPATH_W%" \
20306 -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%' \
20307 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20308 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20309 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20310 -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"%' \
20311 libtool > conftest.bla
20312 ;;
20313 *)
20314 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20315 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20316 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20317 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20318 -e 's|libext="lib"|libext="a"|' \
20319 libtool > conftest.bla
20320 ;;
20321 esac
20322 mv conftest.bla libtool
20323 chmod 755 libtool
20324
20325 ;;
20326 *x86_64-*)
20327 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20328 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20329 echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20330 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20331 mv conftest.bla libtool
20332 chmod 755 libtool
20333 fi
20334 ;;
20335
20336 *-solaris*)
20337 if test "$GCC" = yes && \
20338 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20339 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20340 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20341 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20342 echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20343 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20344 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20345 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20346 # AC_MSG_NOTICE(Compensating for broken gcc)
20347 for lib in $fixlibtmp ; do
20348 if test -d "${lib}${hdwisa}" ; then
20349 syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20350 fi
20351 done
20352 syslibpath64="${syslibpath64} ${fixlibtmp}"
20353 else
20354 syslibpath64="$fixlibtmp"
20355 fi
20356 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20357 mv conftest.bla libtool
20358 chmod 755 libtool
20359 fi
20360 # AC_MSG_NOTICE(Result is )
20361 # $EGREP 'sys_lib_search_path_spec=' libtool
20362 fi
20363 ;;
20364 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20365 *-darwin*)
20366 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20367 echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20368 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"/' \
20369 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20370 libtool > conftest.bla
20371
20372 mv conftest.bla libtool
20373 chmod 755 libtool
20374 ;;
20375 esac
20376 # This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20377 # the macro. -- lh, 061214 --
20378 # fi
20379
20380 # AC_MSG_NOTICE([End libtool initialisation.])
20381
20382 # AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20383 # set RPATH_FLAGS to the compiler link flags required to hardcode location
20384 # of the shared objects
20385 RPATH_FLAGS=
20386
20387 if test $enable_shared = yes; then
20388 case $build in
20389 *-linux-*)
20390 if test "$GXX" = "yes"; then
20391 RPATH_FLAGS=
20392 for dir in $abs_lib_dir; do
20393 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20394 done
20395 fi ;;
20396 *-darwin*)
20397 RPATH_FLAGS=nothing ;;
20398 *-ibm-*)
20399 case "$CXX" in
20400 xlC* | */xlC* | mpxlC* | */mpxlC*)
20401 RPATH_FLAGS=nothing ;;
20402 esac ;;
20403 *-hp-*)
20404 RPATH_FLAGS=nothing ;;
20405 *-mingw32)
20406 RPATH_FLAGS=nothing ;;
20407 *-*-solaris*)
20408 RPATH_FLAGS=
20409 for dir in $abs_lib_dir; do
20410 RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20411 done
20412 esac
20413
20414 if test "$RPATH_FLAGS" = ""; then
20415 { 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
20416 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;}
20417 fi
20418 if test "$RPATH_FLAGS" = "nothing"; then
20419 RPATH_FLAGS=
20420 fi
20421 fi
20422
20423
20424
20425
20426 else
20427
20428 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20429 echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20430 # get all missing information from the config.log file
20431
20432 # output variables and defines
20433 as_save_IFS=$IFS
20434 IFS='
20435 '
20436 for oneline in `cat $coin_config_dir/config.status`; do
20437 case "$oneline" in
20438 # First some automake conditionals
20439 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \
20440 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20441 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20442 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* )
20443 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20444 # echo "$command"
20445 eval "$command"
20446 ;;
20447 s,@DEFS@* )
20448 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20449 # echo "$command"
20450 eval "$command"
20451 ;;
20452 esac
20453 done
20454 IFS=$as_save_IFS
20455
20456 # And some defines (assuming here that the packages base dir
20457 # doesn't have a config.h file
20458 for word in $defsline; do
20459 # echo word $word
20460 case $word in
20461 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20462 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20463 # echo dd $i
20464 echo $i >>confdefs.h
20465 ;;
20466 esac
20467 done
20468 fi
20469
20470 # AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20471
20472 # Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20473 if test "${enable_dependency_linking+set}" = set; then
20474 enableval="$enable_dependency_linking"
20475 dependency_linking="$enableval"
20476 else
20477 dependency_linking=auto
20478 fi;
20479
20480 if test "$dependency_linking" = auto; then
20481 # On Cygwin and AIX, building DLLs doesn't work
20482 dependency_linking=no
20483 if test x"$coin_disable_shared" = xno; then
20484 case $build in
20485 *-cygwin* | *-mingw*)
20486 case "$CC" in
20487 clang* | */clang* )
20488 dependency_linking=yes
20489 ;;
20490 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20491 dependency_linking=no
20492 ;;
20493 *gcc*)
20494 dependency_linking=yes
20495 ;;
20496 *)
20497 dependency_linking=yes
20498 ;;
20499 esac
20500 ;;
20501 *)
20502 dependency_linking=yes
20503 ;;
20504 esac
20505 fi
20506 fi
20507
20508 # Set up LT_LDFLAGS, user can initialize and we augment below
20509
20510
20511 if test "$dependency_linking" = yes ;
20512 then
20513 LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
20514 else
20515 LT_LDFLAGS="$LT_LDFLAGS"
20516 fi
20517
20518
20519
20520 if test "$dependency_linking" = yes; then
20521 DEPENDENCY_LINKING_TRUE=
20522 DEPENDENCY_LINKING_FALSE='#'
20523 else
20524 DEPENDENCY_LINKING_TRUE='#'
20525 DEPENDENCY_LINKING_FALSE=
20526 fi
20527
20528
20529 # Check if we want to set the library version
20530 echo "$as_me:$LINENO: checking if library version is set" >&5
20531 echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20532 if test x"$coin_libversion" != x; then
20533 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20534 echo "$as_me:$LINENO: result: $coin_libversion" >&5
20535 echo "${ECHO_T}$coin_libversion" >&6
20536 else
20537 echo "$as_me:$LINENO: result: no" >&5
20538 echo "${ECHO_T}no" >&6
20539 fi
20540
20541
20542
20543 #END
20544 }
20545
20546 #############################################################################
20547 # COIN-OR components #
20548 #############################################################################
20549
20550
20551
20552 # Check whether --enable-pkg-config or --disable-pkg-config was given.
20553 if test "${enable_pkg_config+set}" = set; then
20554 enableval="$enable_pkg_config"
20555 use_pkgconfig="$enableval"
20556 else
20557 if test x$coin_cc_is_cl = xtrue; then
20558 use_pkgconfig=no
20559 else
20560 use_pkgconfig=yes
20561 fi
20562 fi;
20563
20564 if test $use_pkgconfig = yes ; then
20565 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20566 if test -n "$ac_tool_prefix"; then
20567 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20568 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20569 echo "$as_me:$LINENO: checking for $ac_word" >&5
20570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20571 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20573 else
20574 if test -n "$PKG_CONFIG"; then
20575 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
20576 else
20577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20578 for as_dir in $PATH
20579 do
20580 IFS=$as_save_IFS
20581 test -z "$as_dir" && as_dir=.
20582 for ac_exec_ext in '' $ac_executable_extensions; do
20583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20584 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
20585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20586 break 2
20587 fi
20588 done
20589 done
20590
20591 fi
20592 fi
20593 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
20594 if test -n "$PKG_CONFIG"; then
20595 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20596 echo "${ECHO_T}$PKG_CONFIG" >&6
20597 else
20598 echo "$as_me:$LINENO: result: no" >&5
20599 echo "${ECHO_T}no" >&6
20600 fi
20601
20602 fi
20603 if test -z "$ac_cv_prog_PKG_CONFIG"; then
20604 ac_ct_PKG_CONFIG=$PKG_CONFIG
20605 # Extract the first word of "pkg-config", so it can be a program name with args.
20606 set dummy pkg-config; ac_word=$2
20607 echo "$as_me:$LINENO: checking for $ac_word" >&5
20608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20609 if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612 if test -n "$ac_ct_PKG_CONFIG"; then
20613 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
20614 else
20615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20616 for as_dir in $PATH
20617 do
20618 IFS=$as_save_IFS
20619 test -z "$as_dir" && as_dir=.
20620 for ac_exec_ext in '' $ac_executable_extensions; do
20621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20622 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
20623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20624 break 2
20625 fi
20626 done
20627 done
20628
20629 fi
20630 fi
20631 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
20632 if test -n "$ac_ct_PKG_CONFIG"; then
20633 echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
20634 echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
20635 else
20636 echo "$as_me:$LINENO: result: no" >&5
20637 echo "${ECHO_T}no" >&6
20638 fi
20639
20640 PKG_CONFIG=$ac_ct_PKG_CONFIG
20641 else
20642 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
20643 fi
20644
20645 fi
20646 if test -n "$PKG_CONFIG"; then
20647 _pkg_min_version=0.16.0
20648 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20649 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20650 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20651 echo "$as_me:$LINENO: result: yes" >&5
20652 echo "${ECHO_T}yes" >&6
20653 else
20654 echo "$as_me:$LINENO: result: no" >&5
20655 echo "${ECHO_T}no" >&6
20656 PKG_CONFIG=""
20657 fi
20658 fi
20659
20660 # check if pkg-config supports the short-errors flag
20661 if test -n "$PKG_CONFIG" && \
20662 $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20663 pkg_short_errors=" --short-errors "
20664 else
20665 pkg_short_errors=""
20666 fi
20667 fi
20668
20669
20670
20671 if test -n "$PKG_CONFIG"; then
20672 COIN_HAS_PKGCONFIG_TRUE=
20673 COIN_HAS_PKGCONFIG_FALSE='#'
20674 else
20675 COIN_HAS_PKGCONFIG_TRUE='#'
20676 COIN_HAS_PKGCONFIG_FALSE=
20677 fi
20678
20679
20680
20681 # assemble pkg-config search path for installed projects
20682 COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20683
20684 # 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
20685 # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
20686 # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
20687 if test "x${prefix}" = xNONE ; then
20688 COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20689 else
20690 COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20691 fi
20692
20693
20694 # Check whether --with-coin-instdir or --without-coin-instdir was given.
20695 if test "${with_coin_instdir+set}" = set; then
20696 withval="$with_coin_instdir"
20697 if test -d "$withval"; then : ; else
20698 { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
20699 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
20700 { (exit 1); exit 1; }; }
20701 fi
20702 COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20703
20704 fi;
20705
20706
20707
20708 # assemble additional pkg-config search paths for uninstalled projects
20709 if test x$coin_projectdir = xyes ; then
20710 # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
20711 # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
20712 # unfortunately, if the user set prefix, then we do not know where the project base directory is located
20713 # 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)
20714 COIN_PKG_CONFIG_PATH_UNINSTALLED=
20715 if test -f ../coin_subdirs.txt ; then
20716 for i in `cat ../coin_subdirs.txt` ; do
20717 if test -d ../$i ; then
20718 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20719 fi
20720 if test -d ../$i/pkgconfig ; then
20721 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20722 fi
20723 done
20724 fi
20725
20726 if test -f ../../coin_subdirs.txt ; then
20727 for i in `cat ../../coin_subdirs.txt` ; do
20728 if test -d ../../$i ; then
20729 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20730 fi
20731 if test -d ../../$i/pkgconfig ; then
20732 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20733 fi
20734 done
20735 fi
20736
20737 if test -f ../../../coin_subdirs.txt ; then
20738 for i in `cat ../../../coin_subdirs.txt` ; do
20739 if test -d ../../../$i ; then
20740 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20741 fi
20742 if test -d ../../../$i/pkgconfig ; then
20743 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20744 fi
20745 done
20746 fi
20747
20748
20749 fi
20750
20751 if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
20752 { 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
20753 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;}
20754 fi
20755
20756
20757
20758 echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils" >&5
20759 echo $ECHO_N "checking for COIN-OR package CoinUtils... $ECHO_C" >&6
20760
20761 coin_has_coinutils=notGiven
20762
20763 # check if user wants to skip package in any case
20764 if test x"$COIN_SKIP_PROJECTS" != x; then
20765 for dir in $COIN_SKIP_PROJECTS; do
20766 if test $dir = "CoinUtils"; then
20767 coin_has_coinutils=skipping
20768 fi
20769 done
20770 fi
20771
20772 if test "$coin_has_coinutils" != skipping; then
20773
20774 # Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
20775 if test "${with_coinutils+set}" = set; then
20776 withval="$with_coinutils"
20777 if test "$withval" = no ; then
20778 coin_has_coinutils=skipping
20779 fi
20780
20781 fi;
20782 fi
20783
20784 COINUTILS_LIBS=
20785 COINUTILS_CFLAGS=
20786 COINUTILS_DATA=
20787 COINUTILS_DEPENDENCIES=
20788 COINUTILS_PCLIBS=
20789 COINUTILS_PCREQUIRES=
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
20808 if test $coin_has_coinutils != skipping; then
20809
20810 # Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
20811 if test "${with_coinutils_lib+set}" = set; then
20812 withval="$with_coinutils_lib"
20813 if test "$withval" = no ; then
20814 coin_has_coinutils=skipping
20815 else
20816 coin_has_coinutils=yes
20817 COINUTILS_LIBS="$withval"
20818 COINUTILS_PCLIBS="$withval"
20819
20820 OSILIB_PCLIBS="$withval $OSILIB_PCLIBS"
20821 OSILIB_LIBS="$withval $OSILIB_LIBS"
20822
20823 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20824 if test -z "$PKG_CONFIG" ; then
20825 COINUTILS_LIBS_INSTALLED="$withval"
20826 OSILIB_LIBS_INSTALLED="$withval $OSILIB_LIBS_INSTALLED"
20827 fi
20828 fi
20829
20830 fi;
20831 fi
20832
20833 if test $coin_has_coinutils != skipping; then
20834
20835 # Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
20836 if test "${with_coinutils_incdir+set}" = set; then
20837 withval="$with_coinutils_incdir"
20838 if test "$withval" = no ; then
20839 coin_has_coinutils=skipping
20840 else
20841 coin_has_coinutils=yes
20842 COINUTILS_CFLAGS="-I`${CYGPATH_W} $withval`"
20843 OSILIB_CFLAGS="-I`${CYGPATH_W} $withval` $OSILIB_CFLAGS"
20844 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20845 if test -z "$PKG_CONFIG" ; then
20846 COINUTILS_CFLAGS_INSTALLED="$COINUTILS_CFLAGS"
20847 OSILIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS $OSILIB_CFLAGS_INSTALLED"
20848 fi
20849 fi
20850
20851 fi;
20852 fi
20853
20854 if test $coin_has_coinutils != skipping; then
20855
20856 # Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
20857 if test "${with_coinutils_datadir+set}" = set; then
20858 withval="$with_coinutils_datadir"
20859 if test "$withval" = no ; then
20860 coin_has_coinutils=skipping
20861 else
20862 coin_has_coinutils=yes
20863 COINUTILS_DATA="$withval"
20864 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20865 if test -z "$PKG_CONFIG" ; then
20866 COINUTILS_DATA_INSTALLED="$withval"
20867 fi
20868 fi
20869
20870 fi;
20871 fi
20872
20873 if test $coin_has_coinutils = notGiven; then
20874 if test -n "$PKG_CONFIG" ; then
20875 # set search path for pkg-config
20876 # need to export variable to be sure that the following pkg-config gets these values
20877 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20878 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
20879 export PKG_CONFIG_PATH
20880
20881 # let pkg-config do it's magic
20882
20883
20884
20885 if test -n "$PKG_CONFIG" ; then
20886 if $PKG_CONFIG --exists "coinutils"; then
20887 COINUTILS_VERSIONS=`$PKG_CONFIG --modversion "coinutils" 2>/dev/null | tr '\n' ' '`
20888 cflags=`$PKG_CONFIG --cflags "coinutils" 2>/dev/null`
20889 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
20890 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
20891 # but only do this if is not trivial
20892 if test "$CYGPATH_W" != "echo" ; then
20893 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
20894 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
20895 fi
20896 COINUTILS_CFLAGS="$cflags"
20897 COINUTILS_LIBS=`$PKG_CONFIG --libs "coinutils" 2>/dev/null`
20898 COINUTILS_DATA=`$PKG_CONFIG --variable=datadir "coinutils" 2>/dev/null`
20899 coin_has_coinutils=yes
20900 echo "$as_me:$LINENO: result: yes: $COINUTILS_VERSIONS" >&5
20901 echo "${ECHO_T}yes: $COINUTILS_VERSIONS" >&6
20902
20903 # adjust linker flags for (i)cl compiler
20904 # 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)
20905 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
20906 then
20907 COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
20908 fi
20909 COINUTILS_PCREQUIRES="coinutils"
20910
20911 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in OsiLib
20912
20913 OSILIB_PCREQUIRES="coinutils $OSILIB_PCREQUIRES"
20914 OSILIB_CFLAGS="$COINUTILS_CFLAGS $OSILIB_CFLAGS"
20915 OSILIB_LIBS="$COINUTILS_LIBS $OSILIB_LIBS"
20916
20917
20918
20919 else
20920 COINUTILS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinutils"`
20921 coin_has_coinutils=notGiven
20922 echo "$as_me:$LINENO: result: not given: $COINUTILS_PKG_ERRORS" >&5
20923 echo "${ECHO_T}not given: $COINUTILS_PKG_ERRORS" >&6
20924
20925 fi
20926 else
20927 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&5
20928 echo "$as_me: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&2;}
20929 { (exit 1); exit 1; }; }
20930 fi
20931
20932
20933
20934
20935 # reset PKG_CONFIG_PATH variable
20936 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
20937 export PKG_CONFIG_PATH
20938
20939 else
20940 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
20941 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
20942
20943 echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils (fallback)" >&5
20944 echo $ECHO_N "checking for COIN-OR package CoinUtils (fallback)... $ECHO_C" >&6
20945
20946 coin_has_coinutils=notGiven
20947 COINUTILS_LIBS=
20948 COINUTILS_LIBS_INSTALLED=
20949 COINUTILS_CFLAGS=
20950 COINUTILS_CFLAGS_INSTALLED=
20951 COINUTILS_DATA=
20952 COINUTILS_DATA_INSTALLED=
20953 COINUTILS_PCLIBS=
20954 COINUTILS_PCREQUIRES=
20955
20956 # initial list of dependencies is "coinutils", but we need to filter out version number specifications (= x, <= x, >= x, != x)
20957 projtoprocess="coinutils"
20958
20959 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
20960 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
20961 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
20962 # also, we setup the DATA variable
20963 allproj=""
20964 allpcfiles=""
20965 allpcifiles=""
20966 while test "x$projtoprocess" != x ; do
20967
20968 for proj in $projtoprocess ; do
20969 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
20970 pcfile=""
20971 save_IFS="$IFS"
20972 IFS=":"
20973 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
20974 # 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
20975 if test -r "$dir/${proj}-uninstalled.pc" ; then
20976 pcfile="$dir/$proj-uninstalled.pc"
20977 if test -r "$dir/${proj}.pc" ; then
20978 pcifile="$dir/${proj}.pc"
20979 else
20980 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
20981 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
20982 pcifile=
20983 fi
20984 break
20985 fi
20986 done
20987 IFS="$save_IFS"
20988
20989 if test "x$pcfile" != x ; then
20990 # read dependencies from $pcfile and filter it
20991 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
20992
20993 # add projrequires to the front of the list of projects that have to be processed next
20994 # at the same time, remove $proj from this list
20995 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
20996
20997 # read DATA from $pcfile, if _DATA is still empty
20998 if test "x$COINUTILS_DATA" = x ; then
20999 projdatadir=
21000 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21001 eval `sh -c "$pcfilemod"`
21002 COINUTILS_DATA="$projdatadir"
21003 fi
21004
21005 allproj="$allproj $proj"
21006 allpcfiles="$pcfile:$allpcfiles"
21007
21008 else
21009 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21010 echo "${ECHO_T}no, dependency $proj not available" >&6
21011 allproj=fail
21012 break 2
21013 fi
21014
21015 if test "x$pcifile" != x ; then
21016 allpcifiles="$pcifile:$allpcifiles"
21017
21018 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21019 if test "x$COINUTILS_DATA_INSTALLED" = x ; then
21020 projdatadir=
21021 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21022 eval `sh -c "$pcifilemod"`
21023 if test "${CYGPATH_W}" != "echo"; then
21024 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21025 fi
21026 COINUTILS_DATA_INSTALLED="$projdatadir"
21027 fi
21028
21029 fi
21030
21031 break
21032 done
21033
21034 # remove spaces on begin of $projtoprocess
21035 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21036
21037 done
21038
21039 if test "$allproj" != fail ; then
21040
21041 # now go through the list of .pc files and assemble compiler and linker flags
21042 # important is here to obey the reverse order that has been setup before,
21043 # since then libraries that are required by several others should be after these other libraries
21044 pcfilesprocessed=""
21045
21046 save_IFS="$IFS"
21047 IFS=":"
21048 for pcfile in $allpcfiles ; do
21049
21050 # if $pcfile has been processed already, skip this round
21051 if test "x$pcfilesprocessed" != x ; then
21052 for pcfiledone in $pcfilesprocessed ; do
21053 if test "$pcfiledone" = "$pcfile" ; then
21054 continue 2
21055 fi
21056 done
21057 fi
21058
21059 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21060 # replace "Libs:" by "echo projlibs="
21061 # replace "Cflags:" by "echo projcflags="
21062 # remove every line starting with <some word>:
21063 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21064
21065 # set projcflags and projlibs variables by running $pcfilemod
21066 # 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
21067 projcflags=
21068 projlibs=
21069 IFS="$save_IFS"
21070 eval `sh -c "$pcfilemod"`
21071 IFS=":"
21072
21073 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21074 if test "${CYGPATH_W}" != "echo"; then
21075 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21076 fi
21077 COINUTILS_CFLAGS="$projcflags $COINUTILS_CFLAGS"
21078
21079 # set LIBS variable
21080 COINUTILS_LIBS="$projlibs $COINUTILS_LIBS"
21081
21082 # remember that we have processed $pcfile
21083 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21084
21085 done
21086 IFS="$save_IFS"
21087
21088
21089 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21090 # important is here again to obey the reverse order that has been setup before,
21091 # since then libraries that are required by several others should be after these other libraries
21092 pcfilesprocessed=""
21093
21094 save_IFS="$IFS"
21095 IFS=":"
21096 for pcfile in $allpcifiles ; do
21097
21098 # if $pcfile has been processed already, skip this round
21099 if test "x$pcfilesprocessed" != x ; then
21100 for pcfiledone in $pcfilesprocessed ; do
21101 if test "$pcfiledone" = "$pcfile" ; then
21102 continue 2
21103 fi
21104 done
21105 fi
21106
21107 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21108 # replace "Libs:" by "echo projlibs="
21109 # replace "Cflags:" by "echo projcflags="
21110 # remove every line starting with <some word>:
21111 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21112
21113 # set projcflags and projlibs variables by running $pcfilemod
21114 # 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
21115 projcflags=
21116 projlibs=
21117 IFS="$save_IFS"
21118 eval `sh -c "$pcfilemod"`
21119 IFS=":"
21120
21121 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21122 if test "${CYGPATH_W}" != "echo"; then
21123 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21124 fi
21125 COINUTILS_CFLAGS_INSTALLED="$projcflags $COINUTILS_CFLAGS_INSTALLED"
21126
21127 # set LIBS variable
21128 COINUTILS_LIBS_INSTALLED="$projlibs $COINUTILS_LIBS_INSTALLED"
21129
21130 # remember that we have processed $pcfile
21131 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21132
21133 done
21134 IFS="$save_IFS"
21135
21136
21137 # finish up
21138 coin_has_coinutils=yes
21139 echo "$as_me:$LINENO: result: yes" >&5
21140 echo "${ECHO_T}yes" >&6
21141
21142 cat >>confdefs.h <<\_ACEOF
21143 #define COIN_HAS_COINUTILS 1
21144 _ACEOF
21145
21146
21147 # adjust linker flags for (i)cl compiler
21148 # 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),
21149 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21150 # everything of the form "-lname" by "libname.lib", and
21151 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21152 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21153 then
21154 COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21155 COINUTILS_LIBS_INSTALLED=`echo " $COINUTILS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21156 fi
21157
21158 COINUTILS_PCREQUIRES="coinutils"
21159
21160 OSILIB_PCREQUIRES="coinutils $OSILIB_PCREQUIRES"
21161 OSILIB_CFLAGS="$COINUTILS_CFLAGS $OSILIB_CFLAGS"
21162 OSILIB_LIBS="$COINUTILS_LIBS $OSILIB_LIBS"
21163 OSILIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS_INSTALLED $OSILIB_CFLAGS_INSTALLED"
21164 OSILIB_LIBS_INSTALLED="$COINUTILS_LIBS_INSTALLED $OSILIB_LIBS_INSTALLED"
21165
21166
21167 fi
21168
21169
21170
21171 if test $coin_has_coinutils != notGiven &&
21172 test $coin_has_coinutils != skipping; then
21173 COIN_HAS_COINUTILS_TRUE=
21174 COIN_HAS_COINUTILS_FALSE='#'
21175 else
21176 COIN_HAS_COINUTILS_TRUE='#'
21177 COIN_HAS_COINUTILS_FALSE=
21178 fi
21179
21180
21181
21182 fi
21183
21184 else
21185 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
21186 echo "${ECHO_T}$coin_has_coinutils" >&6
21187 fi
21188
21189 if test $coin_has_coinutils != skipping &&
21190 test $coin_has_coinutils != notGiven ; then
21191
21192 cat >>confdefs.h <<\_ACEOF
21193 #define COIN_HAS_COINUTILS 1
21194 _ACEOF
21195
21196
21197 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21198 if test "${enable_interpackage_dependencies+set}" = set; then
21199 enableval="$enable_interpackage_dependencies"
21200
21201 else
21202 enable_interpackage_dependencies=yes
21203 fi;
21204
21205 if test $enable_interpackage_dependencies = yes ; then
21206 # construct dependencies variables from LIBS variables
21207 # we add an extra space in LIBS so we can substitute out everything starting with " -"
21208 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21209 # then remove everything of the form -xxx
21210 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21211 COINUTILS_DEPENDENCIES=`echo " $COINUTILS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21212
21213 OSILIB_DEPENDENCIES=`echo " $OSILIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21214
21215 fi
21216
21217 if test 1 = 0 ; then #change this test to enable a bit of debugging output
21218 if test -n "$COINUTILS_CFLAGS" ; then
21219 { echo "$as_me:$LINENO: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&5
21220 echo "$as_me: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&6;}
21221 fi
21222 if test -n "$COINUTILS_LIBS" ; then
21223 { echo "$as_me:$LINENO: CoinUtils LIBS are $COINUTILS_LIBS" >&5
21224 echo "$as_me: CoinUtils LIBS are $COINUTILS_LIBS" >&6;}
21225 fi
21226 if test -n "$COINUTILS_DEPENDENCIES" ; then
21227 { echo "$as_me:$LINENO: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&5
21228 echo "$as_me: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&6;}
21229 fi
21230 if test -n "$COINUTILS_DATA" ; then
21231 { echo "$as_me:$LINENO: CoinUtils DATA is $COINUTILS_DATA" >&5
21232 echo "$as_me: CoinUtils DATA is $COINUTILS_DATA" >&6;}
21233 fi
21234 if test -n "$COINUTILS_PCLIBS" ; then
21235 { echo "$as_me:$LINENO: CoinUtils PCLIBS are $COINUTILS_PCLIBS" >&5
21236 echo "$as_me: CoinUtils PCLIBS are $COINUTILS_PCLIBS" >&6;}
21237 fi
21238 if test -n "$COINUTILS_PCREQUIRES" ; then
21239 { echo "$as_me:$LINENO: CoinUtils PCREQUIRES are $COINUTILS_PCREQUIRES" >&5
21240 echo "$as_me: CoinUtils PCREQUIRES are $COINUTILS_PCREQUIRES" >&6;}
21241 fi
21242
21243 { echo "$as_me:$LINENO: OsiLib CFLAGS are $OSILIB_CFLAGS" >&5
21244 echo "$as_me: OsiLib CFLAGS are $OSILIB_CFLAGS" >&6;}
21245 { echo "$as_me:$LINENO: OsiLib LIBS are $OSILIB_LIBS" >&5
21246 echo "$as_me: OsiLib LIBS are $OSILIB_LIBS" >&6;}
21247 { echo "$as_me:$LINENO: OsiLib DEPENDENCIES are $OSILIB_DEPENDENCIES" >&5
21248 echo "$as_me: OsiLib DEPENDENCIES are $OSILIB_DEPENDENCIES" >&6;}
21249
21250 fi
21251 fi
21252
21253 # Define the Makefile conditional
21254
21255
21256 if test $coin_has_coinutils != notGiven &&
21257 test $coin_has_coinutils != skipping; then
21258 COIN_HAS_COINUTILS_TRUE=
21259 COIN_HAS_COINUTILS_FALSE='#'
21260 else
21261 COIN_HAS_COINUTILS_TRUE='#'
21262 COIN_HAS_COINUTILS_FALSE=
21263 fi
21264
21265
21266
21267 if test $coin_has_coinutils != yes ; then
21268 { { echo "$as_me:$LINENO: error: Required package CoinUtils not available." >&5
21269 echo "$as_me: error: Required package CoinUtils not available." >&2;}
21270 { (exit 1); exit 1; }; }
21271 fi
21272
21273 echo "$as_me:$LINENO: checking for COIN-OR package Glpk" >&5
21274 echo $ECHO_N "checking for COIN-OR package Glpk... $ECHO_C" >&6
21275
21276 coin_has_glpk=notGiven
21277
21278 # check if user wants to skip package in any case
21279 if test x"$COIN_SKIP_PROJECTS" != x; then
21280 for dir in $COIN_SKIP_PROJECTS; do
21281 if test $dir = "Glpk"; then
21282 coin_has_glpk=skipping
21283 fi
21284 done
21285 fi
21286
21287 if test "$coin_has_glpk" != skipping; then
21288
21289 # Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
21290 if test "${with_glpk+set}" = set; then
21291 withval="$with_glpk"
21292 if test "$withval" = no ; then
21293 coin_has_glpk=skipping
21294 fi
21295
21296 fi;
21297 fi
21298
21299 GLPK_LIBS=
21300 GLPK_CFLAGS=
21301 GLPK_DATA=
21302 GLPK_DEPENDENCIES=
21303 GLPK_PCLIBS=
21304 GLPK_PCREQUIRES=
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21323 if test $coin_has_glpk != skipping; then
21324
21325 # Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
21326 if test "${with_glpk_lib+set}" = set; then
21327 withval="$with_glpk_lib"
21328 if test "$withval" = no ; then
21329 coin_has_glpk=skipping
21330 else
21331 coin_has_glpk=yes
21332 GLPK_LIBS="$withval"
21333 GLPK_PCLIBS="$withval"
21334
21335 OSIGLPKLIB_PCLIBS="$withval $OSIGLPKLIB_PCLIBS"
21336 OSIGLPKLIB_LIBS="$withval $OSIGLPKLIB_LIBS"
21337
21338 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21339 if test -z "$PKG_CONFIG" ; then
21340 GLPK_LIBS_INSTALLED="$withval"
21341 OSIGLPKLIB_LIBS_INSTALLED="$withval $OSIGLPKLIB_LIBS_INSTALLED"
21342 fi
21343 fi
21344
21345 fi;
21346 fi
21347
21348 if test $coin_has_glpk != skipping; then
21349
21350 # Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
21351 if test "${with_glpk_incdir+set}" = set; then
21352 withval="$with_glpk_incdir"
21353 if test "$withval" = no ; then
21354 coin_has_glpk=skipping
21355 else
21356 coin_has_glpk=yes
21357 GLPK_CFLAGS="-I`${CYGPATH_W} $withval`"
21358 OSIGLPKLIB_CFLAGS="-I`${CYGPATH_W} $withval` $OSIGLPKLIB_CFLAGS"
21359 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21360 if test -z "$PKG_CONFIG" ; then
21361 GLPK_CFLAGS_INSTALLED="$GLPK_CFLAGS"
21362 OSIGLPKLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS $OSIGLPKLIB_CFLAGS_INSTALLED"
21363 fi
21364 fi
21365
21366 fi;
21367 fi
21368
21369 if test $coin_has_glpk != skipping; then
21370
21371 # Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
21372 if test "${with_glpk_datadir+set}" = set; then
21373 withval="$with_glpk_datadir"
21374 if test "$withval" = no ; then
21375 coin_has_glpk=skipping
21376 else
21377 coin_has_glpk=yes
21378 GLPK_DATA="$withval"
21379 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21380 if test -z "$PKG_CONFIG" ; then
21381 GLPK_DATA_INSTALLED="$withval"
21382 fi
21383 fi
21384
21385 fi;
21386 fi
21387
21388 if test $coin_has_glpk = notGiven; then
21389 if test -n "$PKG_CONFIG" ; then
21390 # set search path for pkg-config
21391 # need to export variable to be sure that the following pkg-config gets these values
21392 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21393 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21394 export PKG_CONFIG_PATH
21395
21396 # let pkg-config do it's magic
21397
21398
21399
21400 if test -n "$PKG_CONFIG" ; then
21401 if $PKG_CONFIG --exists "coinglpk"; then
21402 GLPK_VERSIONS=`$PKG_CONFIG --modversion "coinglpk" 2>/dev/null | tr '\n' ' '`
21403 cflags=`$PKG_CONFIG --cflags "coinglpk" 2>/dev/null`
21404 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21405 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21406 # but only do this if is not trivial
21407 if test "$CYGPATH_W" != "echo" ; then
21408 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21409 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21410 fi
21411 GLPK_CFLAGS="$cflags"
21412 GLPK_LIBS=`$PKG_CONFIG --libs "coinglpk" 2>/dev/null`
21413 GLPK_DATA=`$PKG_CONFIG --variable=datadir "coinglpk" 2>/dev/null`
21414 coin_has_glpk=yes
21415 echo "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5
21416 echo "${ECHO_T}yes: $GLPK_VERSIONS" >&6
21417
21418 # adjust linker flags for (i)cl compiler
21419 # 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)
21420 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21421 then
21422 GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21423 fi
21424 GLPK_PCREQUIRES="coinglpk"
21425
21426 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in OsiGlpkLib
21427
21428 OSIGLPKLIB_PCREQUIRES="coinglpk $OSIGLPKLIB_PCREQUIRES"
21429 OSIGLPKLIB_CFLAGS="$GLPK_CFLAGS $OSIGLPKLIB_CFLAGS"
21430 OSIGLPKLIB_LIBS="$GLPK_LIBS $OSIGLPKLIB_LIBS"
21431
21432
21433
21434 else
21435 GLPK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinglpk"`
21436 coin_has_glpk=notGiven
21437 echo "$as_me:$LINENO: result: not given: $GLPK_PKG_ERRORS" >&5
21438 echo "${ECHO_T}not given: $GLPK_PKG_ERRORS" >&6
21439
21440 fi
21441 else
21442 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&5
21443 echo "$as_me: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&2;}
21444 { (exit 1); exit 1; }; }
21445 fi
21446
21447
21448
21449
21450 # reset PKG_CONFIG_PATH variable
21451 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21452 export PKG_CONFIG_PATH
21453
21454 else
21455 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21456 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21457
21458 echo "$as_me:$LINENO: checking for COIN-OR package Glpk (fallback)" >&5
21459 echo $ECHO_N "checking for COIN-OR package Glpk (fallback)... $ECHO_C" >&6
21460
21461 coin_has_glpk=notGiven
21462 GLPK_LIBS=
21463 GLPK_LIBS_INSTALLED=
21464 GLPK_CFLAGS=
21465 GLPK_CFLAGS_INSTALLED=
21466 GLPK_DATA=
21467 GLPK_DATA_INSTALLED=
21468 GLPK_PCLIBS=
21469 GLPK_PCREQUIRES=
21470
21471 # initial list of dependencies is "coinglpk", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21472 projtoprocess="coinglpk"
21473
21474 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
21475 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
21476 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
21477 # also, we setup the DATA variable
21478 allproj=""
21479 allpcfiles=""
21480 allpcifiles=""
21481 while test "x$projtoprocess" != x ; do
21482
21483 for proj in $projtoprocess ; do
21484 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21485 pcfile=""
21486 save_IFS="$IFS"
21487 IFS=":"
21488 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21489 # 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
21490 if test -r "$dir/${proj}-uninstalled.pc" ; then
21491 pcfile="$dir/$proj-uninstalled.pc"
21492 if test -r "$dir/${proj}.pc" ; then
21493 pcifile="$dir/${proj}.pc"
21494 else
21495 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
21496 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
21497 pcifile=
21498 fi
21499 break
21500 fi
21501 done
21502 IFS="$save_IFS"
21503
21504 if test "x$pcfile" != x ; then
21505 # read dependencies from $pcfile and filter it
21506 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
21507
21508 # add projrequires to the front of the list of projects that have to be processed next
21509 # at the same time, remove $proj from this list
21510 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21511
21512 # read DATA from $pcfile, if _DATA is still empty
21513 if test "x$GLPK_DATA" = x ; then
21514 projdatadir=
21515 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21516 eval `sh -c "$pcfilemod"`
21517 GLPK_DATA="$projdatadir"
21518 fi
21519
21520 allproj="$allproj $proj"
21521 allpcfiles="$pcfile:$allpcfiles"
21522
21523 else
21524 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21525 echo "${ECHO_T}no, dependency $proj not available" >&6
21526 allproj=fail
21527 break 2
21528 fi
21529
21530 if test "x$pcifile" != x ; then
21531 allpcifiles="$pcifile:$allpcifiles"
21532
21533 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21534 if test "x$GLPK_DATA_INSTALLED" = x ; then
21535 projdatadir=
21536 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21537 eval `sh -c "$pcifilemod"`
21538 if test "${CYGPATH_W}" != "echo"; then
21539 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21540 fi
21541 GLPK_DATA_INSTALLED="$projdatadir"
21542 fi
21543
21544 fi
21545
21546 break
21547 done
21548
21549 # remove spaces on begin of $projtoprocess
21550 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21551
21552 done
21553
21554 if test "$allproj" != fail ; then
21555
21556 # now go through the list of .pc files and assemble compiler and linker flags
21557 # important is here to obey the reverse order that has been setup before,
21558 # since then libraries that are required by several others should be after these other libraries
21559 pcfilesprocessed=""
21560
21561 save_IFS="$IFS"
21562 IFS=":"
21563 for pcfile in $allpcfiles ; do
21564
21565 # if $pcfile has been processed already, skip this round
21566 if test "x$pcfilesprocessed" != x ; then
21567 for pcfiledone in $pcfilesprocessed ; do
21568 if test "$pcfiledone" = "$pcfile" ; then
21569 continue 2
21570 fi
21571 done
21572 fi
21573
21574 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21575 # replace "Libs:" by "echo projlibs="
21576 # replace "Cflags:" by "echo projcflags="
21577 # remove every line starting with <some word>:
21578 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21579
21580 # set projcflags and projlibs variables by running $pcfilemod
21581 # 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
21582 projcflags=
21583 projlibs=
21584 IFS="$save_IFS"
21585 eval `sh -c "$pcfilemod"`
21586 IFS=":"
21587
21588 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21589 if test "${CYGPATH_W}" != "echo"; then
21590 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21591 fi
21592 GLPK_CFLAGS="$projcflags $GLPK_CFLAGS"
21593
21594 # set LIBS variable
21595 GLPK_LIBS="$projlibs $GLPK_LIBS"
21596
21597 # remember that we have processed $pcfile
21598 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21599
21600 done
21601 IFS="$save_IFS"
21602
21603
21604 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21605 # important is here again to obey the reverse order that has been setup before,
21606 # since then libraries that are required by several others should be after these other libraries
21607 pcfilesprocessed=""
21608
21609 save_IFS="$IFS"
21610 IFS=":"
21611 for pcfile in $allpcifiles ; do
21612
21613 # if $pcfile has been processed already, skip this round
21614 if test "x$pcfilesprocessed" != x ; then
21615 for pcfiledone in $pcfilesprocessed ; do
21616 if test "$pcfiledone" = "$pcfile" ; then
21617 continue 2
21618 fi
21619 done
21620 fi
21621
21622 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21623 # replace "Libs:" by "echo projlibs="
21624 # replace "Cflags:" by "echo projcflags="
21625 # remove every line starting with <some word>:
21626 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21627
21628 # set projcflags and projlibs variables by running $pcfilemod
21629 # 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
21630 projcflags=
21631 projlibs=
21632 IFS="$save_IFS"
21633 eval `sh -c "$pcfilemod"`
21634 IFS=":"
21635
21636 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21637 if test "${CYGPATH_W}" != "echo"; then
21638 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21639 fi
21640 GLPK_CFLAGS_INSTALLED="$projcflags $GLPK_CFLAGS_INSTALLED"
21641
21642 # set LIBS variable
21643 GLPK_LIBS_INSTALLED="$projlibs $GLPK_LIBS_INSTALLED"
21644
21645 # remember that we have processed $pcfile
21646 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21647
21648 done
21649 IFS="$save_IFS"
21650
21651
21652 # finish up
21653 coin_has_glpk=yes
21654 echo "$as_me:$LINENO: result: yes" >&5
21655 echo "${ECHO_T}yes" >&6
21656
21657 cat >>confdefs.h <<\_ACEOF
21658 #define COIN_HAS_GLPK 1
21659 _ACEOF
21660
21661
21662 # adjust linker flags for (i)cl compiler
21663 # 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),
21664 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21665 # everything of the form "-lname" by "libname.lib", and
21666 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21667 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21668 then
21669 GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21670 GLPK_LIBS_INSTALLED=`echo " $GLPK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21671 fi
21672
21673 GLPK_PCREQUIRES="coinglpk"
21674
21675 OSIGLPKLIB_PCREQUIRES="coinglpk $OSIGLPKLIB_PCREQUIRES"
21676 OSIGLPKLIB_CFLAGS="$GLPK_CFLAGS $OSIGLPKLIB_CFLAGS"
21677 OSIGLPKLIB_LIBS="$GLPK_LIBS $OSIGLPKLIB_LIBS"
21678 OSIGLPKLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS_INSTALLED $OSIGLPKLIB_CFLAGS_INSTALLED"
21679 OSIGLPKLIB_LIBS_INSTALLED="$GLPK_LIBS_INSTALLED $OSIGLPKLIB_LIBS_INSTALLED"
21680
21681
21682 fi
21683
21684
21685
21686 if test $coin_has_glpk != notGiven &&
21687 test $coin_has_glpk != skipping; then
21688 COIN_HAS_GLPK_TRUE=
21689 COIN_HAS_GLPK_FALSE='#'
21690 else
21691 COIN_HAS_GLPK_TRUE='#'
21692 COIN_HAS_GLPK_FALSE=
21693 fi
21694
21695
21696
21697 fi
21698
21699 else
21700 echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
21701 echo "${ECHO_T}$coin_has_glpk" >&6
21702 fi
21703
21704 if test $coin_has_glpk != skipping &&
21705 test $coin_has_glpk != notGiven ; then
21706
21707 cat >>confdefs.h <<\_ACEOF
21708 #define COIN_HAS_GLPK 1
21709 _ACEOF
21710
21711
21712 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21713 if test "${enable_interpackage_dependencies+set}" = set; then
21714 enableval="$enable_interpackage_dependencies"
21715
21716 else
21717 enable_interpackage_dependencies=yes
21718 fi;
21719
21720 if test $enable_interpackage_dependencies = yes ; then
21721 # construct dependencies variables from LIBS variables
21722 # we add an extra space in LIBS so we can substitute out everything starting with " -"
21723 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21724 # then remove everything of the form -xxx
21725 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21726 GLPK_DEPENDENCIES=`echo " $GLPK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21727
21728 OSIGLPKLIB_DEPENDENCIES=`echo " $OSIGLPKLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21729
21730 fi
21731
21732 if test 1 = 0 ; then #change this test to enable a bit of debugging output
21733 if test -n "$GLPK_CFLAGS" ; then
21734 { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
21735 echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
21736 fi
21737 if test -n "$GLPK_LIBS" ; then
21738 { echo "$as_me:$LINENO: Glpk LIBS are $GLPK_LIBS" >&5
21739 echo "$as_me: Glpk LIBS are $GLPK_LIBS" >&6;}
21740 fi
21741 if test -n "$GLPK_DEPENDENCIES" ; then
21742 { echo "$as_me:$LINENO: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&5
21743 echo "$as_me: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&6;}
21744 fi
21745 if test -n "$GLPK_DATA" ; then
21746 { echo "$as_me:$LINENO: Glpk DATA is $GLPK_DATA" >&5
21747 echo "$as_me: Glpk DATA is $GLPK_DATA" >&6;}
21748 fi
21749 if test -n "$GLPK_PCLIBS" ; then
21750 { echo "$as_me:$LINENO: Glpk PCLIBS are $GLPK_PCLIBS" >&5
21751 echo "$as_me: Glpk PCLIBS are $GLPK_PCLIBS" >&6;}
21752 fi
21753 if test -n "$GLPK_PCREQUIRES" ; then
21754 { echo "$as_me:$LINENO: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&5
21755 echo "$as_me: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&6;}
21756 fi
21757
21758 { echo "$as_me:$LINENO: OsiGlpkLib CFLAGS are $OSIGLPKLIB_CFLAGS" >&5
21759 echo "$as_me: OsiGlpkLib CFLAGS are $OSIGLPKLIB_CFLAGS" >&6;}
21760 { echo "$as_me:$LINENO: OsiGlpkLib LIBS are $OSIGLPKLIB_LIBS" >&5
21761 echo "$as_me: OsiGlpkLib LIBS are $OSIGLPKLIB_LIBS" >&6;}
21762 { echo "$as_me:$LINENO: OsiGlpkLib DEPENDENCIES are $OSIGLPKLIB_DEPENDENCIES" >&5
21763 echo "$as_me: OsiGlpkLib DEPENDENCIES are $OSIGLPKLIB_DEPENDENCIES" >&6;}
21764
21765 fi
21766 fi
21767
21768 # Define the Makefile conditional
21769
21770
21771 if test $coin_has_glpk != notGiven &&
21772 test $coin_has_glpk != skipping; then
21773 COIN_HAS_GLPK_TRUE=
21774 COIN_HAS_GLPK_FALSE='#'
21775 else
21776 COIN_HAS_GLPK_TRUE='#'
21777 COIN_HAS_GLPK_FALSE=
21778 fi
21779
21780
21781
21782
21783 echo "$as_me:$LINENO: checking for COIN-OR package SoPlex" >&5
21784 echo $ECHO_N "checking for COIN-OR package SoPlex... $ECHO_C" >&6
21785
21786 coin_has_soplex=notGiven
21787
21788 # check if user wants to skip package in any case
21789 if test x"$COIN_SKIP_PROJECTS" != x; then
21790 for dir in $COIN_SKIP_PROJECTS; do
21791 if test $dir = "SoPlex"; then
21792 coin_has_soplex=skipping
21793 fi
21794 done
21795 fi
21796
21797 if test "$coin_has_soplex" != skipping; then
21798
21799 # Check whether --with-m4_tolower(SoPlex) or --without-m4_tolower(SoPlex) was given.
21800 if test "${with_soplex+set}" = set; then
21801 withval="$with_soplex"
21802 if test "$withval" = no ; then
21803 coin_has_soplex=skipping
21804 fi
21805
21806 fi;
21807 fi
21808
21809 SOPLEX_LIBS=
21810 SOPLEX_CFLAGS=
21811 SOPLEX_DATA=
21812 SOPLEX_DEPENDENCIES=
21813 SOPLEX_PCLIBS=
21814 SOPLEX_PCREQUIRES=
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21833 if test $coin_has_soplex != skipping; then
21834
21835 # Check whether --with-m4_tolower(SoPlex)-lib or --without-m4_tolower(SoPlex)-lib was given.
21836 if test "${with_soplex_lib+set}" = set; then
21837 withval="$with_soplex_lib"
21838 if test "$withval" = no ; then
21839 coin_has_soplex=skipping
21840 else
21841 coin_has_soplex=yes
21842 SOPLEX_LIBS="$withval"
21843 SOPLEX_PCLIBS="$withval"
21844
21845 OSISPXLIB_PCLIBS="$withval $OSISPXLIB_PCLIBS"
21846 OSISPXLIB_LIBS="$withval $OSISPXLIB_LIBS"
21847
21848 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21849 if test -z "$PKG_CONFIG" ; then
21850 SOPLEX_LIBS_INSTALLED="$withval"
21851 OSISPXLIB_LIBS_INSTALLED="$withval $OSISPXLIB_LIBS_INSTALLED"
21852 fi
21853 fi
21854
21855 fi;
21856 fi
21857
21858 if test $coin_has_soplex != skipping; then
21859
21860 # Check whether --with-m4_tolower(SoPlex)-incdir or --without-m4_tolower(SoPlex)-incdir was given.
21861 if test "${with_soplex_incdir+set}" = set; then
21862 withval="$with_soplex_incdir"
21863 if test "$withval" = no ; then
21864 coin_has_soplex=skipping
21865 else
21866 coin_has_soplex=yes
21867 SOPLEX_CFLAGS="-I`${CYGPATH_W} $withval`"
21868 OSISPXLIB_CFLAGS="-I`${CYGPATH_W} $withval` $OSISPXLIB_CFLAGS"
21869 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21870 if test -z "$PKG_CONFIG" ; then
21871 SOPLEX_CFLAGS_INSTALLED="$SOPLEX_CFLAGS"
21872 OSISPXLIB_CFLAGS_INSTALLED="$SOPLEX_CFLAGS $OSISPXLIB_CFLAGS_INSTALLED"
21873 fi
21874 fi
21875
21876 fi;
21877 fi
21878
21879 if test $coin_has_soplex != skipping; then
21880
21881 # Check whether --with-m4_tolower(SoPlex)-datadir or --without-m4_tolower(SoPlex)-datadir was given.
21882 if test "${with_soplex_datadir+set}" = set; then
21883 withval="$with_soplex_datadir"
21884 if test "$withval" = no ; then
21885 coin_has_soplex=skipping
21886 else
21887 coin_has_soplex=yes
21888 SOPLEX_DATA="$withval"
21889 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21890 if test -z "$PKG_CONFIG" ; then
21891 SOPLEX_DATA_INSTALLED="$withval"
21892 fi
21893 fi
21894
21895 fi;
21896 fi
21897
21898 if test $coin_has_soplex = notGiven; then
21899 if test -n "$PKG_CONFIG" ; then
21900 # set search path for pkg-config
21901 # need to export variable to be sure that the following pkg-config gets these values
21902 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21903 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21904 export PKG_CONFIG_PATH
21905
21906 # let pkg-config do it's magic
21907
21908
21909
21910 if test -n "$PKG_CONFIG" ; then
21911 if $PKG_CONFIG --exists "coinsoplex < 1.7"; then
21912 SOPLEX_VERSIONS=`$PKG_CONFIG --modversion "coinsoplex < 1.7" 2>/dev/null | tr '\n' ' '`
21913 cflags=`$PKG_CONFIG --cflags "coinsoplex < 1.7" 2>/dev/null`
21914 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21915 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21916 # but only do this if is not trivial
21917 if test "$CYGPATH_W" != "echo" ; then
21918 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21919 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21920 fi
21921 SOPLEX_CFLAGS="$cflags"
21922 SOPLEX_LIBS=`$PKG_CONFIG --libs "coinsoplex < 1.7" 2>/dev/null`
21923 SOPLEX_DATA=`$PKG_CONFIG --variable=datadir "coinsoplex < 1.7" 2>/dev/null`
21924 coin_has_soplex=yes
21925 echo "$as_me:$LINENO: result: yes: $SOPLEX_VERSIONS" >&5
21926 echo "${ECHO_T}yes: $SOPLEX_VERSIONS" >&6
21927
21928 # adjust linker flags for (i)cl compiler
21929 # 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)
21930 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21931 then
21932 SOPLEX_LIBS=`echo " $SOPLEX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21933 fi
21934 SOPLEX_PCREQUIRES="coinsoplex < 1.7"
21935
21936 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in OsiSpxLib
21937
21938 OSISPXLIB_PCREQUIRES="coinsoplex < 1.7 $OSISPXLIB_PCREQUIRES"
21939 OSISPXLIB_CFLAGS="$SOPLEX_CFLAGS $OSISPXLIB_CFLAGS"
21940 OSISPXLIB_LIBS="$SOPLEX_LIBS $OSISPXLIB_LIBS"
21941
21942
21943
21944 else
21945 SOPLEX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinsoplex < 1.7"`
21946 coin_has_soplex=notGiven
21947 echo "$as_me:$LINENO: result: not given: $SOPLEX_PKG_ERRORS" >&5
21948 echo "${ECHO_T}not given: $SOPLEX_PKG_ERRORS" >&6
21949
21950 fi
21951 else
21952 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module SoPlex without pkg-config\"" >&5
21953 echo "$as_me: error: \"Cannot check for existance of module SoPlex without pkg-config\"" >&2;}
21954 { (exit 1); exit 1; }; }
21955 fi
21956
21957
21958
21959
21960 # reset PKG_CONFIG_PATH variable
21961 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21962 export PKG_CONFIG_PATH
21963
21964 else
21965 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21966 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21967
21968 echo "$as_me:$LINENO: checking for COIN-OR package SoPlex (fallback)" >&5
21969 echo $ECHO_N "checking for COIN-OR package SoPlex (fallback)... $ECHO_C" >&6
21970
21971 coin_has_soplex=notGiven
21972 SOPLEX_LIBS=
21973 SOPLEX_LIBS_INSTALLED=
21974 SOPLEX_CFLAGS=
21975 SOPLEX_CFLAGS_INSTALLED=
21976 SOPLEX_DATA=
21977 SOPLEX_DATA_INSTALLED=
21978 SOPLEX_PCLIBS=
21979 SOPLEX_PCREQUIRES=
21980
21981 # initial list of dependencies is "coinsoplex < 1.7", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21982 projtoprocess="coinsoplex < 1.7"
21983
21984 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
21985 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
21986 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
21987 # also, we setup the DATA variable
21988 allproj=""
21989 allpcfiles=""
21990 allpcifiles=""
21991 while test "x$projtoprocess" != x ; do
21992
21993 for proj in $projtoprocess ; do
21994 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21995 pcfile=""
21996 save_IFS="$IFS"
21997 IFS=":"
21998 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21999 # 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
22000 if test -r "$dir/${proj}-uninstalled.pc" ; then
22001 pcfile="$dir/$proj-uninstalled.pc"
22002 if test -r "$dir/${proj}.pc" ; then
22003 pcifile="$dir/${proj}.pc"
22004 else
22005 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22006 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22007 pcifile=
22008 fi
22009 break
22010 fi
22011 done
22012 IFS="$save_IFS"
22013
22014 if test "x$pcfile" != x ; then
22015 # read dependencies from $pcfile and filter it
22016 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
22017
22018 # add projrequires to the front of the list of projects that have to be processed next
22019 # at the same time, remove $proj from this list
22020 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22021
22022 # read DATA from $pcfile, if _DATA is still empty
22023 if test "x$SOPLEX_DATA" = x ; then
22024 projdatadir=
22025 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22026 eval `sh -c "$pcfilemod"`
22027 SOPLEX_DATA="$projdatadir"
22028 fi
22029
22030 allproj="$allproj $proj"
22031 allpcfiles="$pcfile:$allpcfiles"
22032
22033 else
22034 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22035 echo "${ECHO_T}no, dependency $proj not available" >&6
22036 allproj=fail
22037 break 2
22038 fi
22039
22040 if test "x$pcifile" != x ; then
22041 allpcifiles="$pcifile:$allpcifiles"
22042
22043 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22044 if test "x$SOPLEX_DATA_INSTALLED" = x ; then
22045 projdatadir=
22046 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22047 eval `sh -c "$pcifilemod"`
22048 if test "${CYGPATH_W}" != "echo"; then
22049 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22050 fi
22051 SOPLEX_DATA_INSTALLED="$projdatadir"
22052 fi
22053
22054 fi
22055
22056 break
22057 done
22058
22059 # remove spaces on begin of $projtoprocess
22060 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22061
22062 done
22063
22064 if test "$allproj" != fail ; then
22065
22066 # now go through the list of .pc files and assemble compiler and linker flags
22067 # important is here to obey the reverse order that has been setup before,
22068 # since then libraries that are required by several others should be after these other libraries
22069 pcfilesprocessed=""
22070
22071 save_IFS="$IFS"
22072 IFS=":"
22073 for pcfile in $allpcfiles ; do
22074
22075 # if $pcfile has been processed already, skip this round
22076 if test "x$pcfilesprocessed" != x ; then
22077 for pcfiledone in $pcfilesprocessed ; do
22078 if test "$pcfiledone" = "$pcfile" ; then
22079 continue 2
22080 fi
22081 done
22082 fi
22083
22084 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22085 # replace "Libs:" by "echo projlibs="
22086 # replace "Cflags:" by "echo projcflags="
22087 # remove every line starting with <some word>:
22088 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22089
22090 # set projcflags and projlibs variables by running $pcfilemod
22091 # 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
22092 projcflags=
22093 projlibs=
22094 IFS="$save_IFS"
22095 eval `sh -c "$pcfilemod"`
22096 IFS=":"
22097
22098 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22099 if test "${CYGPATH_W}" != "echo"; then
22100 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22101 fi
22102 SOPLEX_CFLAGS="$projcflags $SOPLEX_CFLAGS"
22103
22104 # set LIBS variable
22105 SOPLEX_LIBS="$projlibs $SOPLEX_LIBS"
22106
22107 # remember that we have processed $pcfile
22108 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22109
22110 done
22111 IFS="$save_IFS"
22112
22113
22114 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22115 # important is here again to obey the reverse order that has been setup before,
22116 # since then libraries that are required by several others should be after these other libraries
22117 pcfilesprocessed=""
22118
22119 save_IFS="$IFS"
22120 IFS=":"
22121 for pcfile in $allpcifiles ; do
22122
22123 # if $pcfile has been processed already, skip this round
22124 if test "x$pcfilesprocessed" != x ; then
22125 for pcfiledone in $pcfilesprocessed ; do
22126 if test "$pcfiledone" = "$pcfile" ; then
22127 continue 2
22128 fi
22129 done
22130 fi
22131
22132 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22133 # replace "Libs:" by "echo projlibs="
22134 # replace "Cflags:" by "echo projcflags="
22135 # remove every line starting with <some word>:
22136 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22137
22138 # set projcflags and projlibs variables by running $pcfilemod
22139 # 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
22140 projcflags=
22141 projlibs=
22142 IFS="$save_IFS"
22143 eval `sh -c "$pcfilemod"`
22144 IFS=":"
22145
22146 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22147 if test "${CYGPATH_W}" != "echo"; then
22148 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22149 fi
22150 SOPLEX_CFLAGS_INSTALLED="$projcflags $SOPLEX_CFLAGS_INSTALLED"
22151
22152 # set LIBS variable
22153 SOPLEX_LIBS_INSTALLED="$projlibs $SOPLEX_LIBS_INSTALLED"
22154
22155 # remember that we have processed $pcfile
22156 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22157
22158 done
22159 IFS="$save_IFS"
22160
22161
22162 # finish up
22163 coin_has_soplex=yes
22164 echo "$as_me:$LINENO: result: yes" >&5
22165 echo "${ECHO_T}yes" >&6
22166
22167 cat >>confdefs.h <<\_ACEOF
22168 #define COIN_HAS_SOPLEX 1
22169 _ACEOF
22170
22171
22172 # adjust linker flags for (i)cl compiler
22173 # 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),
22174 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22175 # everything of the form "-lname" by "libname.lib", and
22176 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22177 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22178 then
22179 SOPLEX_LIBS=`echo " $SOPLEX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22180 SOPLEX_LIBS_INSTALLED=`echo " $SOPLEX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22181 fi
22182
22183 SOPLEX_PCREQUIRES="coinsoplex < 1.7"
22184
22185 OSISPXLIB_PCREQUIRES="coinsoplex < 1.7 $OSISPXLIB_PCREQUIRES"
22186 OSISPXLIB_CFLAGS="$SOPLEX_CFLAGS $OSISPXLIB_CFLAGS"
22187 OSISPXLIB_LIBS="$SOPLEX_LIBS $OSISPXLIB_LIBS"
22188 OSISPXLIB_CFLAGS_INSTALLED="$SOPLEX_CFLAGS_INSTALLED $OSISPXLIB_CFLAGS_INSTALLED"
22189 OSISPXLIB_LIBS_INSTALLED="$SOPLEX_LIBS_INSTALLED $OSISPXLIB_LIBS_INSTALLED"
22190
22191
22192 fi
22193
22194
22195
22196 if test $coin_has_soplex != notGiven &&
22197 test $coin_has_soplex != skipping; then
22198 COIN_HAS_SOPLEX_TRUE=
22199 COIN_HAS_SOPLEX_FALSE='#'
22200 else
22201 COIN_HAS_SOPLEX_TRUE='#'
22202 COIN_HAS_SOPLEX_FALSE=
22203 fi
22204
22205
22206
22207 fi
22208
22209 else
22210 echo "$as_me:$LINENO: result: $coin_has_soplex" >&5
22211 echo "${ECHO_T}$coin_has_soplex" >&6
22212 fi
22213
22214 if test $coin_has_soplex != skipping &&
22215 test $coin_has_soplex != notGiven ; then
22216
22217 cat >>confdefs.h <<\_ACEOF
22218 #define COIN_HAS_SOPLEX 1
22219 _ACEOF
22220
22221
22222 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22223 if test "${enable_interpackage_dependencies+set}" = set; then
22224 enableval="$enable_interpackage_dependencies"
22225
22226 else
22227 enable_interpackage_dependencies=yes
22228 fi;
22229
22230 if test $enable_interpackage_dependencies = yes ; then
22231 # construct dependencies variables from LIBS variables
22232 # we add an extra space in LIBS so we can substitute out everything starting with " -"
22233 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22234 # then remove everything of the form -xxx
22235 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22236 SOPLEX_DEPENDENCIES=`echo " $SOPLEX_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22237
22238 OSISPXLIB_DEPENDENCIES=`echo " $OSISPXLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22239
22240 fi
22241
22242 if test 1 = 0 ; then #change this test to enable a bit of debugging output
22243 if test -n "$SOPLEX_CFLAGS" ; then
22244 { echo "$as_me:$LINENO: SoPlex CFLAGS are $SOPLEX_CFLAGS" >&5
22245 echo "$as_me: SoPlex CFLAGS are $SOPLEX_CFLAGS" >&6;}
22246 fi
22247 if test -n "$SOPLEX_LIBS" ; then
22248 { echo "$as_me:$LINENO: SoPlex LIBS are $SOPLEX_LIBS" >&5
22249 echo "$as_me: SoPlex LIBS are $SOPLEX_LIBS" >&6;}
22250 fi
22251 if test -n "$SOPLEX_DEPENDENCIES" ; then
22252 { echo "$as_me:$LINENO: SoPlex DEPENDENCIES are $SOPLEX_DEPENDENCIES" >&5
22253 echo "$as_me: SoPlex DEPENDENCIES are $SOPLEX_DEPENDENCIES" >&6;}
22254 fi
22255 if test -n "$SOPLEX_DATA" ; then
22256 { echo "$as_me:$LINENO: SoPlex DATA is $SOPLEX_DATA" >&5
22257 echo "$as_me: SoPlex DATA is $SOPLEX_DATA" >&6;}
22258 fi
22259 if test -n "$SOPLEX_PCLIBS" ; then
22260 { echo "$as_me:$LINENO: SoPlex PCLIBS are $SOPLEX_PCLIBS" >&5
22261 echo "$as_me: SoPlex PCLIBS are $SOPLEX_PCLIBS" >&6;}
22262 fi
22263 if test -n "$SOPLEX_PCREQUIRES" ; then
22264 { echo "$as_me:$LINENO: SoPlex PCREQUIRES are $SOPLEX_PCREQUIRES" >&5
22265 echo "$as_me: SoPlex PCREQUIRES are $SOPLEX_PCREQUIRES" >&6;}
22266 fi
22267
22268 { echo "$as_me:$LINENO: OsiSpxLib CFLAGS are $OSISPXLIB_CFLAGS" >&5
22269 echo "$as_me: OsiSpxLib CFLAGS are $OSISPXLIB_CFLAGS" >&6;}
22270 { echo "$as_me:$LINENO: OsiSpxLib LIBS are $OSISPXLIB_LIBS" >&5
22271 echo "$as_me: OsiSpxLib LIBS are $OSISPXLIB_LIBS" >&6;}
22272 { echo "$as_me:$LINENO: OsiSpxLib DEPENDENCIES are $OSISPXLIB_DEPENDENCIES" >&5
22273 echo "$as_me: OsiSpxLib DEPENDENCIES are $OSISPXLIB_DEPENDENCIES" >&6;}
22274
22275 fi
22276 fi
22277
22278 # Define the Makefile conditional
22279
22280
22281 if test $coin_has_soplex != notGiven &&
22282 test $coin_has_soplex != skipping; then
22283 COIN_HAS_SOPLEX_TRUE=
22284 COIN_HAS_SOPLEX_FALSE='#'
22285 else
22286 COIN_HAS_SOPLEX_TRUE='#'
22287 COIN_HAS_SOPLEX_FALSE=
22288 fi
22289
22290
22291
22292
22293 echo "$as_me:$LINENO: checking for COIN-OR package Sample" >&5
22294 echo $ECHO_N "checking for COIN-OR package Sample... $ECHO_C" >&6
22295
22296 coin_has_sample=notGiven
22297
22298 # check if user wants to skip package in any case
22299 if test x"$COIN_SKIP_PROJECTS" != x; then
22300 for dir in $COIN_SKIP_PROJECTS; do
22301 if test $dir = "Sample"; then
22302 coin_has_sample=skipping
22303 fi
22304 done
22305 fi
22306
22307 if test "$coin_has_sample" != skipping; then
22308
22309 # Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
22310 if test "${with_sample+set}" = set; then
22311 withval="$with_sample"
22312 if test "$withval" = no ; then
22313 coin_has_sample=skipping
22314 fi
22315
22316 fi;
22317 fi
22318
22319 SAMPLE_LIBS=
22320 SAMPLE_CFLAGS=
22321 SAMPLE_DATA=
22322 SAMPLE_DEPENDENCIES=
22323 SAMPLE_PCLIBS=
22324 SAMPLE_PCREQUIRES=
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
22335 if test $coin_has_sample != skipping; then
22336
22337 # Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
22338 if test "${with_sample_lib+set}" = set; then
22339 withval="$with_sample_lib"
22340 if test "$withval" = no ; then
22341 coin_has_sample=skipping
22342 else
22343 coin_has_sample=yes
22344 SAMPLE_LIBS="$withval"
22345 SAMPLE_PCLIBS="$withval"
22346
22347 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22348 if test -z "$PKG_CONFIG" ; then
22349 SAMPLE_LIBS_INSTALLED="$withval"
22350
22351 fi
22352 fi
22353
22354 fi;
22355 fi
22356
22357 if test $coin_has_sample != skipping; then
22358
22359 # Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
22360 if test "${with_sample_incdir+set}" = set; then
22361 withval="$with_sample_incdir"
22362 if test "$withval" = no ; then
22363 coin_has_sample=skipping
22364 else
22365 coin_has_sample=yes
22366 SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`"
22367
22368 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22369 if test -z "$PKG_CONFIG" ; then
22370 SAMPLE_CFLAGS_INSTALLED="$SAMPLE_CFLAGS"
22371
22372 fi
22373 fi
22374
22375 fi;
22376 fi
22377
22378 if test $coin_has_sample != skipping; then
22379
22380 # Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
22381 if test "${with_sample_datadir+set}" = set; then
22382 withval="$with_sample_datadir"
22383 if test "$withval" = no ; then
22384 coin_has_sample=skipping
22385 else
22386 coin_has_sample=yes
22387 SAMPLE_DATA="$withval"
22388 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22389 if test -z "$PKG_CONFIG" ; then
22390 SAMPLE_DATA_INSTALLED="$withval"
22391 fi
22392 fi
22393
22394 fi;
22395 fi
22396
22397 if test $coin_has_sample = notGiven; then
22398 if test -n "$PKG_CONFIG" ; then
22399 # set search path for pkg-config
22400 # need to export variable to be sure that the following pkg-config gets these values
22401 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22402 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
22403 export PKG_CONFIG_PATH
22404
22405 # let pkg-config do it's magic
22406
22407
22408
22409 if test -n "$PKG_CONFIG" ; then
22410 if $PKG_CONFIG --exists "coindatasample"; then
22411 SAMPLE_VERSIONS=`$PKG_CONFIG --modversion "coindatasample" 2>/dev/null | tr '\n' ' '`
22412 cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null`
22413 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
22414 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
22415 # but only do this if is not trivial
22416 if test "$CYGPATH_W" != "echo" ; then
22417 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
22418 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22419 fi
22420 SAMPLE_CFLAGS="$cflags"
22421 SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`
22422 SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null`
22423 coin_has_sample=yes
22424 echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5
22425 echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6
22426
22427 # adjust linker flags for (i)cl compiler
22428 # 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)
22429 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22430 then
22431 SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22432 fi
22433 SAMPLE_PCREQUIRES="coindatasample"
22434
22435 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
22436
22437
22438
22439 else
22440 SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatasample"`
22441 coin_has_sample=notGiven
22442 echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5
22443 echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6
22444
22445 fi
22446 else
22447 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5
22448 echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;}
22449 { (exit 1); exit 1; }; }
22450 fi
22451
22452
22453
22454
22455 # reset PKG_CONFIG_PATH variable
22456 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
22457 export PKG_CONFIG_PATH
22458
22459 else
22460 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22461 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22462
22463 echo "$as_me:$LINENO: checking for COIN-OR package Sample (fallback)" >&5
22464 echo $ECHO_N "checking for COIN-OR package Sample (fallback)... $ECHO_C" >&6
22465
22466 coin_has_sample=notGiven
22467 SAMPLE_LIBS=
22468 SAMPLE_LIBS_INSTALLED=
22469 SAMPLE_CFLAGS=
22470 SAMPLE_CFLAGS_INSTALLED=
22471 SAMPLE_DATA=
22472 SAMPLE_DATA_INSTALLED=
22473 SAMPLE_PCLIBS=
22474 SAMPLE_PCREQUIRES=
22475
22476 # initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22477 projtoprocess="coindatasample"
22478
22479 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22480 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22481 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22482 # also, we setup the DATA variable
22483 allproj=""
22484 allpcfiles=""
22485 allpcifiles=""
22486 while test "x$projtoprocess" != x ; do
22487
22488 for proj in $projtoprocess ; do
22489 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22490 pcfile=""
22491 save_IFS="$IFS"
22492 IFS=":"
22493 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22494 # 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
22495 if test -r "$dir/${proj}-uninstalled.pc" ; then
22496 pcfile="$dir/$proj-uninstalled.pc"
22497 if test -r "$dir/${proj}.pc" ; then
22498 pcifile="$dir/${proj}.pc"
22499 else
22500 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22501 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22502 pcifile=
22503 fi
22504 break
22505 fi
22506 done
22507 IFS="$save_IFS"
22508
22509 if test "x$pcfile" != x ; then
22510 # read dependencies from $pcfile and filter it
22511 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
22512
22513 # add projrequires to the front of the list of projects that have to be processed next
22514 # at the same time, remove $proj from this list
22515 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22516
22517 # read DATA from $pcfile, if _DATA is still empty
22518 if test "x$SAMPLE_DATA" = x ; then
22519 projdatadir=
22520 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22521 eval `sh -c "$pcfilemod"`
22522 SAMPLE_DATA="$projdatadir"
22523 fi
22524
22525 allproj="$allproj $proj"
22526 allpcfiles="$pcfile:$allpcfiles"
22527
22528 else
22529 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22530 echo "${ECHO_T}no, dependency $proj not available" >&6
22531 allproj=fail
22532 break 2
22533 fi
22534
22535 if test "x$pcifile" != x ; then
22536 allpcifiles="$pcifile:$allpcifiles"
22537
22538 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22539 if test "x$SAMPLE_DATA_INSTALLED" = x ; then
22540 projdatadir=
22541 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22542 eval `sh -c "$pcifilemod"`
22543 if test "${CYGPATH_W}" != "echo"; then
22544 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22545 fi
22546 SAMPLE_DATA_INSTALLED="$projdatadir"
22547 fi
22548
22549 fi
22550
22551 break
22552 done
22553
22554 # remove spaces on begin of $projtoprocess
22555 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22556
22557 done
22558
22559 if test "$allproj" != fail ; then
22560
22561 # now go through the list of .pc files and assemble compiler and linker flags
22562 # important is here to obey the reverse order that has been setup before,
22563 # since then libraries that are required by several others should be after these other libraries
22564 pcfilesprocessed=""
22565
22566 save_IFS="$IFS"
22567 IFS=":"
22568 for pcfile in $allpcfiles ; do
22569
22570 # if $pcfile has been processed already, skip this round
22571 if test "x$pcfilesprocessed" != x ; then
22572 for pcfiledone in $pcfilesprocessed ; do
22573 if test "$pcfiledone" = "$pcfile" ; then
22574 continue 2
22575 fi
22576 done
22577 fi
22578
22579 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22580 # replace "Libs:" by "echo projlibs="
22581 # replace "Cflags:" by "echo projcflags="
22582 # remove every line starting with <some word>:
22583 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22584
22585 # set projcflags and projlibs variables by running $pcfilemod
22586 # 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
22587 projcflags=
22588 projlibs=
22589 IFS="$save_IFS"
22590 eval `sh -c "$pcfilemod"`
22591 IFS=":"
22592
22593 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22594 if test "${CYGPATH_W}" != "echo"; then
22595 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22596 fi
22597 SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS"
22598
22599 # set LIBS variable
22600 SAMPLE_LIBS="$projlibs $SAMPLE_LIBS"
22601
22602 # remember that we have processed $pcfile
22603 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22604
22605 done
22606 IFS="$save_IFS"
22607
22608
22609 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22610 # important is here again to obey the reverse order that has been setup before,
22611 # since then libraries that are required by several others should be after these other libraries
22612 pcfilesprocessed=""
22613
22614 save_IFS="$IFS"
22615 IFS=":"
22616 for pcfile in $allpcifiles ; do
22617
22618 # if $pcfile has been processed already, skip this round
22619 if test "x$pcfilesprocessed" != x ; then
22620 for pcfiledone in $pcfilesprocessed ; do
22621 if test "$pcfiledone" = "$pcfile" ; then
22622 continue 2
22623 fi
22624 done
22625 fi
22626
22627 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22628 # replace "Libs:" by "echo projlibs="
22629 # replace "Cflags:" by "echo projcflags="
22630 # remove every line starting with <some word>:
22631 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22632
22633 # set projcflags and projlibs variables by running $pcfilemod
22634 # 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
22635 projcflags=
22636 projlibs=
22637 IFS="$save_IFS"
22638 eval `sh -c "$pcfilemod"`
22639 IFS=":"
22640
22641 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22642 if test "${CYGPATH_W}" != "echo"; then
22643 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22644 fi
22645 SAMPLE_CFLAGS_INSTALLED="$projcflags $SAMPLE_CFLAGS_INSTALLED"
22646
22647 # set LIBS variable
22648 SAMPLE_LIBS_INSTALLED="$projlibs $SAMPLE_LIBS_INSTALLED"
22649
22650 # remember that we have processed $pcfile
22651 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22652
22653 done
22654 IFS="$save_IFS"
22655
22656
22657 # finish up
22658 coin_has_sample=yes
22659 echo "$as_me:$LINENO: result: yes" >&5
22660 echo "${ECHO_T}yes" >&6
22661
22662 cat >>confdefs.h <<\_ACEOF
22663 #define COIN_HAS_SAMPLE 1
22664 _ACEOF
22665
22666
22667 # adjust linker flags for (i)cl compiler
22668 # 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),
22669 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22670 # everything of the form "-lname" by "libname.lib", and
22671 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22672 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22673 then
22674 SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22675 SAMPLE_LIBS_INSTALLED=`echo " $SAMPLE_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22676 fi
22677
22678 SAMPLE_PCREQUIRES="coindatasample"
22679
22680
22681 fi
22682
22683
22684
22685 if test $coin_has_sample != notGiven &&
22686 test $coin_has_sample != skipping; then
22687 COIN_HAS_SAMPLE_TRUE=
22688 COIN_HAS_SAMPLE_FALSE='#'
22689 else
22690 COIN_HAS_SAMPLE_TRUE='#'
22691 COIN_HAS_SAMPLE_FALSE=
22692 fi
22693
22694
22695
22696 fi
22697
22698 else
22699 echo "$as_me:$LINENO: result: $coin_has_sample" >&5
22700 echo "${ECHO_T}$coin_has_sample" >&6
22701 fi
22702
22703 if test $coin_has_sample != skipping &&
22704 test $coin_has_sample != notGiven ; then
22705
22706 cat >>confdefs.h <<\_ACEOF
22707 #define COIN_HAS_SAMPLE 1
22708 _ACEOF
22709
22710
22711 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22712 if test "${enable_interpackage_dependencies+set}" = set; then
22713 enableval="$enable_interpackage_dependencies"
22714
22715 else
22716 enable_interpackage_dependencies=yes
22717 fi;
22718
22719 if test $enable_interpackage_dependencies = yes ; then
22720 # construct dependencies variables from LIBS variables
22721 # we add an extra space in LIBS so we can substitute out everything starting with " -"
22722 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22723 # then remove everything of the form -xxx
22724 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22725 SAMPLE_DEPENDENCIES=`echo " $SAMPLE_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22726
22727 fi
22728
22729 if test 1 = 0 ; then #change this test to enable a bit of debugging output
22730 if test -n "$SAMPLE_CFLAGS" ; then
22731 { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
22732 echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
22733 fi
22734 if test -n "$SAMPLE_LIBS" ; then
22735 { echo "$as_me:$LINENO: Sample LIBS are $SAMPLE_LIBS" >&5
22736 echo "$as_me: Sample LIBS are $SAMPLE_LIBS" >&6;}
22737 fi
22738 if test -n "$SAMPLE_DEPENDENCIES" ; then
22739 { echo "$as_me:$LINENO: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&5
22740 echo "$as_me: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&6;}
22741 fi
22742 if test -n "$SAMPLE_DATA" ; then
22743 { echo "$as_me:$LINENO: Sample DATA is $SAMPLE_DATA" >&5
22744 echo "$as_me: Sample DATA is $SAMPLE_DATA" >&6;}
22745 fi
22746 if test -n "$SAMPLE_PCLIBS" ; then
22747 { echo "$as_me:$LINENO: Sample PCLIBS are $SAMPLE_PCLIBS" >&5
22748 echo "$as_me: Sample PCLIBS are $SAMPLE_PCLIBS" >&6;}
22749 fi
22750 if test -n "$SAMPLE_PCREQUIRES" ; then
22751 { echo "$as_me:$LINENO: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&5
22752 echo "$as_me: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&6;}
22753 fi
22754
22755 fi
22756 fi
22757
22758 # Define the Makefile conditional
22759
22760
22761 if test $coin_has_sample != notGiven &&
22762 test $coin_has_sample != skipping; then
22763 COIN_HAS_SAMPLE_TRUE=
22764 COIN_HAS_SAMPLE_FALSE='#'
22765 else
22766 COIN_HAS_SAMPLE_TRUE='#'
22767 COIN_HAS_SAMPLE_FALSE=
22768 fi
22769
22770
22771
22772
22773 echo "$as_me:$LINENO: checking for COIN-OR package Netlib" >&5
22774 echo $ECHO_N "checking for COIN-OR package Netlib... $ECHO_C" >&6
22775
22776 coin_has_netlib=notGiven
22777
22778 # check if user wants to skip package in any case
22779 if test x"$COIN_SKIP_PROJECTS" != x; then
22780 for dir in $COIN_SKIP_PROJECTS; do
22781 if test $dir = "Netlib"; then
22782 coin_has_netlib=skipping
22783 fi
22784 done
22785 fi
22786
22787 if test "$coin_has_netlib" != skipping; then
22788
22789 # Check whether --with-m4_tolower(Netlib) or --without-m4_tolower(Netlib) was given.
22790 if test "${with_netlib+set}" = set; then
22791 withval="$with_netlib"
22792 if test "$withval" = no ; then
22793 coin_has_netlib=skipping
22794 fi
22795
22796 fi;
22797 fi
22798
22799 NETLIB_LIBS=
22800 NETLIB_CFLAGS=
22801 NETLIB_DATA=
22802 NETLIB_DEPENDENCIES=
22803 NETLIB_PCLIBS=
22804 NETLIB_PCREQUIRES=
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
22815 if test $coin_has_netlib != skipping; then
22816
22817 # Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
22818 if test "${with_netlib_lib+set}" = set; then
22819 withval="$with_netlib_lib"
22820 if test "$withval" = no ; then
22821 coin_has_netlib=skipping
22822 else
22823 coin_has_netlib=yes
22824 NETLIB_LIBS="$withval"
22825 NETLIB_PCLIBS="$withval"
22826
22827 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22828 if test -z "$PKG_CONFIG" ; then
22829 NETLIB_LIBS_INSTALLED="$withval"
22830
22831 fi
22832 fi
22833
22834 fi;
22835 fi
22836
22837 if test $coin_has_netlib != skipping; then
22838
22839 # Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
22840 if test "${with_netlib_incdir+set}" = set; then
22841 withval="$with_netlib_incdir"
22842 if test "$withval" = no ; then
22843 coin_has_netlib=skipping
22844 else
22845 coin_has_netlib=yes
22846 NETLIB_CFLAGS="-I`${CYGPATH_W} $withval`"
22847
22848 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22849 if test -z "$PKG_CONFIG" ; then
22850 NETLIB_CFLAGS_INSTALLED="$NETLIB_CFLAGS"
22851
22852 fi
22853 fi
22854
22855 fi;
22856 fi
22857
22858 if test $coin_has_netlib != skipping; then
22859
22860 # Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
22861 if test "${with_netlib_datadir+set}" = set; then
22862 withval="$with_netlib_datadir"
22863 if test "$withval" = no ; then
22864 coin_has_netlib=skipping
22865 else
22866 coin_has_netlib=yes
22867 NETLIB_DATA="$withval"
22868 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22869 if test -z "$PKG_CONFIG" ; then
22870 NETLIB_DATA_INSTALLED="$withval"
22871 fi
22872 fi
22873
22874 fi;
22875 fi
22876
22877 if test $coin_has_netlib = notGiven; then
22878 if test -n "$PKG_CONFIG" ; then
22879 # set search path for pkg-config
22880 # need to export variable to be sure that the following pkg-config gets these values
22881 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22882 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
22883 export PKG_CONFIG_PATH
22884
22885 # let pkg-config do it's magic
22886
22887
22888
22889 if test -n "$PKG_CONFIG" ; then
22890 if $PKG_CONFIG --exists "coindatanetlib"; then
22891 NETLIB_VERSIONS=`$PKG_CONFIG --modversion "coindatanetlib" 2>/dev/null | tr '\n' ' '`
22892 cflags=`$PKG_CONFIG --cflags "coindatanetlib" 2>/dev/null`
22893 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
22894 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
22895 # but only do this if is not trivial
22896 if test "$CYGPATH_W" != "echo" ; then
22897 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
22898 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22899 fi
22900 NETLIB_CFLAGS="$cflags"
22901 NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/null`
22902 NETLIB_DATA=`$PKG_CONFIG --variable=datadir "coindatanetlib" 2>/dev/null`
22903 coin_has_netlib=yes
22904 echo "$as_me:$LINENO: result: yes: $NETLIB_VERSIONS" >&5
22905 echo "${ECHO_T}yes: $NETLIB_VERSIONS" >&6
22906
22907 # adjust linker flags for (i)cl compiler
22908 # 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)
22909 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22910 then
22911 NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22912 fi
22913 NETLIB_PCREQUIRES="coindatanetlib"
22914
22915 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
22916
22917
22918
22919 else
22920 NETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatanetlib"`
22921 coin_has_netlib=notGiven
22922 echo "$as_me:$LINENO: result: not given: $NETLIB_PKG_ERRORS" >&5
22923 echo "${ECHO_T}not given: $NETLIB_PKG_ERRORS" >&6
22924
22925 fi
22926 else
22927 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&5
22928 echo "$as_me: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&2;}
22929 { (exit 1); exit 1; }; }
22930 fi
22931
22932
22933
22934
22935 # reset PKG_CONFIG_PATH variable
22936 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
22937 export PKG_CONFIG_PATH
22938
22939 else
22940 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22941 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22942
22943 echo "$as_me:$LINENO: checking for COIN-OR package Netlib (fallback)" >&5
22944 echo $ECHO_N "checking for COIN-OR package Netlib (fallback)... $ECHO_C" >&6
22945
22946 coin_has_netlib=notGiven
22947 NETLIB_LIBS=
22948 NETLIB_LIBS_INSTALLED=
22949 NETLIB_CFLAGS=
22950 NETLIB_CFLAGS_INSTALLED=
22951 NETLIB_DATA=
22952 NETLIB_DATA_INSTALLED=
22953 NETLIB_PCLIBS=
22954 NETLIB_PCREQUIRES=
22955
22956 # initial list of dependencies is "coindatanetlib", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22957 projtoprocess="coindatanetlib"
22958
22959 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22960 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22961 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22962 # also, we setup the DATA variable
22963 allproj=""
22964 allpcfiles=""
22965 allpcifiles=""
22966 while test "x$projtoprocess" != x ; do
22967
22968 for proj in $projtoprocess ; do
22969 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22970 pcfile=""
22971 save_IFS="$IFS"
22972 IFS=":"
22973 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22974 # 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
22975 if test -r "$dir/${proj}-uninstalled.pc" ; then
22976 pcfile="$dir/$proj-uninstalled.pc"
22977 if test -r "$dir/${proj}.pc" ; then
22978 pcifile="$dir/${proj}.pc"
22979 else
22980 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22981 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22982 pcifile=
22983 fi
22984 break
22985 fi
22986 done
22987 IFS="$save_IFS"
22988
22989 if test "x$pcfile" != x ; then
22990 # read dependencies from $pcfile and filter it
22991 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
22992
22993 # add projrequires to the front of the list of projects that have to be processed next
22994 # at the same time, remove $proj from this list
22995 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22996
22997 # read DATA from $pcfile, if _DATA is still empty
22998 if test "x$NETLIB_DATA" = x ; then
22999 projdatadir=
23000 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
23001 eval `sh -c "$pcfilemod"`
23002 NETLIB_DATA="$projdatadir"
23003 fi
23004
23005 allproj="$allproj $proj"
23006 allpcfiles="$pcfile:$allpcfiles"
23007
23008 else
23009 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
23010 echo "${ECHO_T}no, dependency $proj not available" >&6
23011 allproj=fail
23012 break 2
23013 fi
23014
23015 if test "x$pcifile" != x ; then
23016 allpcifiles="$pcifile:$allpcifiles"
23017
23018 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
23019 if test "x$NETLIB_DATA_INSTALLED" = x ; then
23020 projdatadir=
23021 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
23022 eval `sh -c "$pcifilemod"`
23023 if test "${CYGPATH_W}" != "echo"; then
23024 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
23025 fi
23026 NETLIB_DATA_INSTALLED="$projdatadir"
23027 fi
23028
23029 fi
23030
23031 break
23032 done
23033
23034 # remove spaces on begin of $projtoprocess
23035 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
23036
23037 done
23038
23039 if test "$allproj" != fail ; then
23040
23041 # now go through the list of .pc files and assemble compiler and linker flags
23042 # important is here to obey the reverse order that has been setup before,
23043 # since then libraries that are required by several others should be after these other libraries
23044 pcfilesprocessed=""
23045
23046 save_IFS="$IFS"
23047 IFS=":"
23048 for pcfile in $allpcfiles ; do
23049
23050 # if $pcfile has been processed already, skip this round
23051 if test "x$pcfilesprocessed" != x ; then
23052 for pcfiledone in $pcfilesprocessed ; do
23053 if test "$pcfiledone" = "$pcfile" ; then
23054 continue 2
23055 fi
23056 done
23057 fi
23058
23059 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23060 # replace "Libs:" by "echo projlibs="
23061 # replace "Cflags:" by "echo projcflags="
23062 # remove every line starting with <some word>:
23063 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23064
23065 # set projcflags and projlibs variables by running $pcfilemod
23066 # 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
23067 projcflags=
23068 projlibs=
23069 IFS="$save_IFS"
23070 eval `sh -c "$pcfilemod"`
23071 IFS=":"
23072
23073 # add CYGPATH_W cludge into include flags and set CFLAGS variable
23074 if test "${CYGPATH_W}" != "echo"; then
23075 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23076 fi
23077 NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS"
23078
23079 # set LIBS variable
23080 NETLIB_LIBS="$projlibs $NETLIB_LIBS"
23081
23082 # remember that we have processed $pcfile
23083 pcfilesprocessed="$pcfilesprocessed:$pcfile"
23084
23085 done
23086 IFS="$save_IFS"
23087
23088
23089 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
23090 # important is here again to obey the reverse order that has been setup before,
23091 # since then libraries that are required by several others should be after these other libraries
23092 pcfilesprocessed=""
23093
23094 save_IFS="$IFS"
23095 IFS=":"
23096 for pcfile in $allpcifiles ; do
23097
23098 # if $pcfile has been processed already, skip this round
23099 if test "x$pcfilesprocessed" != x ; then
23100 for pcfiledone in $pcfilesprocessed ; do
23101 if test "$pcfiledone" = "$pcfile" ; then
23102 continue 2
23103 fi
23104 done
23105 fi
23106
23107 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23108 # replace "Libs:" by "echo projlibs="
23109 # replace "Cflags:" by "echo projcflags="
23110 # remove every line starting with <some word>:
23111 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23112
23113 # set projcflags and projlibs variables by running $pcfilemod
23114 # 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
23115 projcflags=
23116 projlibs=
23117 IFS="$save_IFS"
23118 eval `sh -c "$pcfilemod"`
23119 IFS=":"
23120
23121 # add CYGPATH_W cludge into include flags and set CFLAGS variable
23122 if test "${CYGPATH_W}" != "echo"; then
23123 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23124 fi
23125 NETLIB_CFLAGS_INSTALLED="$projcflags $NETLIB_CFLAGS_INSTALLED"
23126
23127 # set LIBS variable
23128 NETLIB_LIBS_INSTALLED="$projlibs $NETLIB_LIBS_INSTALLED"
23129
23130 # remember that we have processed $pcfile
23131 pcfilesprocessed="$pcfilesprocessed:$pcfile"
23132
23133 done
23134 IFS="$save_IFS"
23135
23136
23137 # finish up
23138 coin_has_netlib=yes
23139 echo "$as_me:$LINENO: result: yes" >&5
23140 echo "${ECHO_T}yes" >&6
23141
23142 cat >>confdefs.h <<\_ACEOF
23143 #define COIN_HAS_NETLIB 1
23144 _ACEOF
23145
23146
23147 # adjust linker flags for (i)cl compiler
23148 # 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),
23149 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
23150 # everything of the form "-lname" by "libname.lib", and
23151 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
23152 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23153 then
23154 NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
23155 NETLIB_LIBS_INSTALLED=`echo " $NETLIB_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
23156 fi
23157
23158 NETLIB_PCREQUIRES="coindatanetlib"
23159
23160
23161 fi
23162
23163
23164
23165 if test $coin_has_netlib != notGiven &&
23166 test $coin_has_netlib != skipping; then
23167 COIN_HAS_NETLIB_TRUE=
23168 COIN_HAS_NETLIB_FALSE='#'
23169 else
23170 COIN_HAS_NETLIB_TRUE='#'
23171 COIN_HAS_NETLIB_FALSE=
23172 fi
23173
23174
23175
23176 fi
23177
23178 else
23179 echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
23180 echo "${ECHO_T}$coin_has_netlib" >&6
23181 fi
23182
23183 if test $coin_has_netlib != skipping &&
23184 test $coin_has_netlib != notGiven ; then
23185
23186 cat >>confdefs.h <<\_ACEOF
23187 #define COIN_HAS_NETLIB 1
23188 _ACEOF
23189
23190
23191 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
23192 if test "${enable_interpackage_dependencies+set}" = set; then
23193 enableval="$enable_interpackage_dependencies"
23194
23195 else
23196 enable_interpackage_dependencies=yes
23197 fi;
23198
23199 if test $enable_interpackage_dependencies = yes ; then
23200 # construct dependencies variables from LIBS variables
23201 # we add an extra space in LIBS so we can substitute out everything starting with " -"
23202 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
23203 # then remove everything of the form -xxx
23204 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
23205 NETLIB_DEPENDENCIES=`echo " $NETLIB_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
23206
23207 fi
23208
23209 if test 1 = 0 ; then #change this test to enable a bit of debugging output
23210 if test -n "$NETLIB_CFLAGS" ; then
23211 { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
23212 echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
23213 fi
23214 if test -n "$NETLIB_LIBS" ; then
23215 { echo "$as_me:$LINENO: Netlib LIBS are $NETLIB_LIBS" >&5
23216 echo "$as_me: Netlib LIBS are $NETLIB_LIBS" >&6;}
23217 fi
23218 if test -n "$NETLIB_DEPENDENCIES" ; then
23219 { echo "$as_me:$LINENO: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&5
23220 echo "$as_me: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&6;}
23221 fi
23222 if test -n "$NETLIB_DATA" ; then
23223 { echo "$as_me:$LINENO: Netlib DATA is $NETLIB_DATA" >&5
23224 echo "$as_me: Netlib DATA is $NETLIB_DATA" >&6;}
23225 fi
23226 if test -n "$NETLIB_PCLIBS" ; then
23227 { echo "$as_me:$LINENO: Netlib PCLIBS are $NETLIB_PCLIBS" >&5
23228 echo "$as_me: Netlib PCLIBS are $NETLIB_PCLIBS" >&6;}
23229 fi
23230 if test -n "$NETLIB_PCREQUIRES" ; then
23231 { echo "$as_me:$LINENO: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&5
23232 echo "$as_me: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&6;}
23233 fi
23234
23235 fi
23236 fi
23237
23238 # Define the Makefile conditional
23239
23240
23241 if test $coin_has_netlib != notGiven &&
23242 test $coin_has_netlib != skipping; then
23243 COIN_HAS_NETLIB_TRUE=
23244 COIN_HAS_NETLIB_FALSE='#'
23245 else
23246 COIN_HAS_NETLIB_TRUE='#'
23247 COIN_HAS_NETLIB_FALSE=
23248 fi
23249
23250
23251
23252
23253 #############################################################################
23254 # Third party solvers #
23255 #############################################################################
23256
23257 # Check which third party solvers are available. Cplex detection has been
23258 # tested on a semi-regular basis, and Mosek detection most likely works. For
23259 # the rest, it's anyone's guess. -- lh, 080529 --
23260 # fixed detection of Mosek and Xpress -- stefan, 091003 (linux32, gcc) --
23261
23262
23263 echo "$as_me:$LINENO: checking if user provides library for Cplex" >&5
23264 echo $ECHO_N "checking if user provides library for Cplex... $ECHO_C" >&6
23265
23266 # Check for header file directory
23267
23268
23269 # Check whether --with-cplex-incdir or --without-cplex-incdir was given.
23270 if test "${with_cplex_incdir+set}" = set; then
23271 withval="$with_cplex_incdir"
23272 CPXINCDIR=`cd $withval; pwd`
23273 fi;
23274
23275 # Check for library directory
23276
23277
23278 # Check whether --with-cplex-lib or --without-cplex-lib was given.
23279 if test "${with_cplex_lib+set}" = set; then
23280 withval="$with_cplex_lib"
23281 CPXLIB=$withval
23282 fi;
23283
23284 # Switch to disable library check if requested
23285
23286 # Check whether --enable-cplex-libcheck or --disable-cplex-libcheck was given.
23287 if test "${enable_cplex_libcheck+set}" = set; then
23288 enableval="$enable_cplex_libcheck"
23289 cplex_libcheck=$enableval
23290 else
23291 cplex_libcheck=yes
23292 fi;
23293
23294 # At this point, if we're going to use the library, both LBRYINCDIR and
23295 # LBRYLIB must be defined and not empty.
23296
23297 if test x"$CPXINCDIR" != x || test x"$CPXLIB" != x; then
23298 if test x"$CPXINCDIR" = x || test x"$CPXLIB" = x; then
23299 { { 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
23300 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;}
23301 { (exit 1); exit 1; }; }
23302 fi
23303 coin_has_cpx=true
23304 echo "$as_me:$LINENO: result: yes" >&5
23305 echo "${ECHO_T}yes" >&6
23306 else
23307 coin_has_cpx=false
23308 echo "$as_me:$LINENO: result: no" >&5
23309 echo "${ECHO_T}no" >&6
23310 fi
23311
23312 # If we have instructions for use, consider header and link checks.
23313
23314 if test $coin_has_cpx = true; then
23315
23316 # If argument 3 (file) is given, check for the file. Typically this will be a
23317 # header file, but that's not assumed.
23318
23319 if test -r $CPXINCDIR/cplex.h; then
23320
23321 :
23322 else
23323 { { echo "$as_me:$LINENO: error: Cannot find file cplex.h in $CPXINCDIR" >&5
23324 echo "$as_me: error: Cannot find file cplex.h in $CPXINCDIR" >&2;}
23325 { (exit 1); exit 1; }; }
23326 :
23327 fi
23328
23329
23330 # Now see if we can link the function. There are arguments for and against
23331 # assuming argument 3 is a header file declaring the function. A correct
23332 # function declaration is the main argument in favour. Having to cope with
23333 # possible dependencies or other oddities are the main arguments against.
23334 # Force the use of C as the best single choice amongst C++, C, and Fortran.
23335 # Obviously, this has limits.
23336
23337 if test x"$cplex_libcheck" != xno; then
23338 coin_save_LIBS="$LIBS"
23339 LIBS="$CPXLIB "
23340 coin_CPX_link=no
23341 ac_ext=c
23342 ac_cpp='$CPP $CPPFLAGS'
23343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23346
23347 for fnm in CPXgetstat ; do
23348 echo "$as_me:$LINENO: checking whether symbol $fnm is available with CPX" >&5
23349 echo $ECHO_N "checking whether symbol $fnm is available with CPX... $ECHO_C" >&6
23350 cat >conftest.$ac_ext <<_ACEOF
23351 /* confdefs.h. */
23352 _ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h. */
23356
23357 int
23358 main ()
23359 {
23360 $fnm()
23361 ;
23362 return 0;
23363 }
23364 _ACEOF
23365 rm -f conftest.$ac_objext conftest$ac_exeext
23366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23367 (eval $ac_link) 2>conftest.er1
23368 ac_status=$?
23369 grep -v '^ *+' conftest.er1 >conftest.err
23370 rm -f conftest.er1
23371 cat conftest.err >&5
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); } &&
23374 { ac_try='test -z "$ac_c_werror_flag"
23375 || test ! -s conftest.err'
23376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23377 (eval $ac_try) 2>&5
23378 ac_status=$?
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); }; } &&
23381 { ac_try='test -s conftest$ac_exeext'
23382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23383 (eval $ac_try) 2>&5
23384 ac_status=$?
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); }; }; then
23387 echo "$as_me:$LINENO: result: yes" >&5
23388 echo "${ECHO_T}yes" >&6
23389 coin_CPX_link=yes
23390 break
23391 else
23392 echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23394
23395 echo "$as_me:$LINENO: result: no" >&5
23396 echo "${ECHO_T}no" >&6
23397 fi
23398 rm -f conftest.err conftest.$ac_objext \
23399 conftest$ac_exeext conftest.$ac_ext
23400 done
23401 ac_ext=c
23402 ac_cpp='$CPP $CPPFLAGS'
23403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23406
23407 LIBS="$coin_save_LIBS"
23408 if test x"$coin_CPX_link" != xyes ; then
23409 { { echo "$as_me:$LINENO: error: Cannot find symbol(s) CPXgetstat with CPX" >&5
23410 echo "$as_me: error: Cannot find symbol(s) CPXgetstat with CPX" >&2;}
23411 { (exit 1); exit 1; }; }
23412 fi
23413 fi
23414
23415
23416 # If we make it this far, we've verified the file and linked the function. Add
23417 # the necessary link flags to _{PC}LIBS and define the preprocessor symbol
23418 # COIN_HAS_LBRY.
23419
23420
23421
23422
23423 cat >>confdefs.h <<\_ACEOF
23424 #define COIN_HAS_CPX 1
23425 _ACEOF
23426
23427 fi
23428
23429 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
23430 # automake conditional. These actions must occur unconditionally.
23431
23432
23433
23434
23435
23436 if test $coin_has_cpx = true; then
23437 COIN_HAS_CPX_TRUE=
23438 COIN_HAS_CPX_FALSE='#'
23439 else
23440 COIN_HAS_CPX_TRUE='#'
23441 COIN_HAS_CPX_FALSE=
23442 fi
23443
23444
23445
23446 echo "$as_me:$LINENO: checking if user provides library for Mosek" >&5
23447 echo $ECHO_N "checking if user provides library for Mosek... $ECHO_C" >&6
23448
23449 # Check for header file directory
23450
23451
23452 # Check whether --with-mosek-incdir or --without-mosek-incdir was given.
23453 if test "${with_mosek_incdir+set}" = set; then
23454 withval="$with_mosek_incdir"
23455 MSKINCDIR=`cd $withval; pwd`
23456 fi;
23457
23458 # Check for library directory
23459
23460
23461 # Check whether --with-mosek-lib or --without-mosek-lib was given.
23462 if test "${with_mosek_lib+set}" = set; then
23463 withval="$with_mosek_lib"
23464 MSKLIB=$withval
23465 fi;
23466
23467 # Switch to disable library check if requested
23468
23469 # Check whether --enable-mosek-libcheck or --disable-mosek-libcheck was given.
23470 if test "${enable_mosek_libcheck+set}" = set; then
23471 enableval="$enable_mosek_libcheck"
23472 mosek_libcheck=$enableval
23473 else
23474 mosek_libcheck=yes
23475 fi;
23476
23477 # At this point, if we're going to use the library, both LBRYINCDIR and
23478 # LBRYLIB must be defined and not empty.
23479
23480 if test x"$MSKINCDIR" != x || test x"$MSKLIB" != x; then
23481 if test x"$MSKINCDIR" = x || test x"$MSKLIB" = x; then
23482 { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Mosek. Use --with-mosek-incdir of environment variable $MSKINCDIR to specify the include directory. Use --with-mosek-lib or environment variable $MSKLIB to specify link flags." >&5
23483 echo "$as_me: error: You need to specify both an include directory and link flags to use library Mosek. Use --with-mosek-incdir of environment variable $MSKINCDIR to specify the include directory. Use --with-mosek-lib or environment variable $MSKLIB to specify link flags." >&2;}
23484 { (exit 1); exit 1; }; }
23485 fi
23486 coin_has_msk=true
23487 echo "$as_me:$LINENO: result: yes" >&5
23488 echo "${ECHO_T}yes" >&6
23489 else
23490 coin_has_msk=false
23491 echo "$as_me:$LINENO: result: no" >&5
23492 echo "${ECHO_T}no" >&6
23493 fi
23494
23495 # If we have instructions for use, consider header and link checks.
23496
23497 if test $coin_has_msk = true; then
23498
23499 # If argument 3 (file) is given, check for the file. Typically this will be a
23500 # header file, but that's not assumed.
23501
23502 if test -r $MSKINCDIR/mosek.h; then
23503
23504 :
23505 else
23506 { { echo "$as_me:$LINENO: error: Cannot find file mosek.h in $MSKINCDIR" >&5
23507 echo "$as_me: error: Cannot find file mosek.h in $MSKINCDIR" >&2;}
23508 { (exit 1); exit 1; }; }
23509 :
23510 fi
23511
23512
23513 # Now see if we can link the function. There are arguments for and against
23514 # assuming argument 3 is a header file declaring the function. A correct
23515 # function declaration is the main argument in favour. Having to cope with
23516 # possible dependencies or other oddities are the main arguments against.
23517 # Force the use of C as the best single choice amongst C++, C, and Fortran.
23518 # Obviously, this has limits.
23519
23520 if test x"$mosek_libcheck" != xno; then
23521 coin_save_LIBS="$LIBS"
23522 LIBS="$MSKLIB "
23523 coin_MSK_link=no
23524 ac_ext=c
23525 ac_cpp='$CPP $CPPFLAGS'
23526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23529
23530 for fnm in MSK_makeenv ; do
23531 echo "$as_me:$LINENO: checking whether symbol $fnm is available with MSK" >&5
23532 echo $ECHO_N "checking whether symbol $fnm is available with MSK... $ECHO_C" >&6
23533 cat >conftest.$ac_ext <<_ACEOF
23534 /* confdefs.h. */
23535 _ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h. */
23539
23540 int
23541 main ()
23542 {
23543 $fnm()
23544 ;
23545 return 0;
23546 }
23547 _ACEOF
23548 rm -f conftest.$ac_objext conftest$ac_exeext
23549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23550 (eval $ac_link) 2>conftest.er1
23551 ac_status=$?
23552 grep -v '^ *+' conftest.er1 >conftest.err
23553 rm -f conftest.er1
23554 cat conftest.err >&5
23555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); } &&
23557 { ac_try='test -z "$ac_c_werror_flag"
23558 || test ! -s conftest.err'
23559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23560 (eval $ac_try) 2>&5
23561 ac_status=$?
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); }; } &&
23564 { ac_try='test -s conftest$ac_exeext'
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5
23567 ac_status=$?
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; }; then
23570 echo "$as_me:$LINENO: result: yes" >&5
23571 echo "${ECHO_T}yes" >&6
23572 coin_MSK_link=yes
23573 break
23574 else
23575 echo "$as_me: failed program was:" >&5
23576 sed 's/^/| /' conftest.$ac_ext >&5
23577
23578 echo "$as_me:$LINENO: result: no" >&5
23579 echo "${ECHO_T}no" >&6
23580 fi
23581 rm -f conftest.err conftest.$ac_objext \
23582 conftest$ac_exeext conftest.$ac_ext
23583 done
23584 ac_ext=c
23585 ac_cpp='$CPP $CPPFLAGS'
23586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23589
23590 LIBS="$coin_save_LIBS"
23591 if test x"$coin_MSK_link" != xyes ; then
23592 { { echo "$as_me:$LINENO: error: Cannot find symbol(s) MSK_makeenv with MSK" >&5
23593 echo "$as_me: error: Cannot find symbol(s) MSK_makeenv with MSK" >&2;}
23594 { (exit 1); exit 1; }; }
23595 fi
23596 fi
23597
23598
23599 # If we make it this far, we've verified the file and linked the function. Add
23600 # the necessary link flags to _{PC}LIBS and define the preprocessor symbol
23601 # COIN_HAS_LBRY.
23602
23603
23604
23605
23606 cat >>confdefs.h <<\_ACEOF
23607 #define COIN_HAS_MSK 1
23608 _ACEOF
23609
23610 fi
23611
23612 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
23613 # automake conditional. These actions must occur unconditionally.
23614
23615
23616
23617
23618
23619 if test $coin_has_msk = true; then
23620 COIN_HAS_MSK_TRUE=
23621 COIN_HAS_MSK_FALSE='#'
23622 else
23623 COIN_HAS_MSK_TRUE='#'
23624 COIN_HAS_MSK_FALSE=
23625 fi
23626
23627
23628
23629 echo "$as_me:$LINENO: checking if user provides library for Xpress" >&5
23630 echo $ECHO_N "checking if user provides library for Xpress... $ECHO_C" >&6
23631
23632 # Check for header file directory
23633
23634
23635 # Check whether --with-xpress-incdir or --without-xpress-incdir was given.
23636 if test "${with_xpress_incdir+set}" = set; then
23637 withval="$with_xpress_incdir"
23638 XPRINCDIR=`cd $withval; pwd`
23639 fi;
23640
23641 # Check for library directory
23642
23643
23644 # Check whether --with-xpress-lib or --without-xpress-lib was given.
23645 if test "${with_xpress_lib+set}" = set; then
23646 withval="$with_xpress_lib"
23647 XPRLIB=$withval
23648 fi;
23649
23650 # Switch to disable library check if requested
23651
23652 # Check whether --enable-xpress-libcheck or --disable-xpress-libcheck was given.
23653 if test "${enable_xpress_libcheck+set}" = set; then
23654 enableval="$enable_xpress_libcheck"
23655 xpress_libcheck=$enableval
23656 else
23657 xpress_libcheck=yes
23658 fi;
23659
23660 # At this point, if we're going to use the library, both LBRYINCDIR and
23661 # LBRYLIB must be defined and not empty.
23662
23663 if test x"$XPRINCDIR" != x || test x"$XPRLIB" != x; then
23664 if test x"$XPRINCDIR" = x || test x"$XPRLIB" = x; then
23665 { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Xpress. Use --with-xpress-incdir of environment variable $XPRINCDIR to specify the include directory. Use --with-xpress-lib or environment variable $XPRLIB to specify link flags." >&5
23666 echo "$as_me: error: You need to specify both an include directory and link flags to use library Xpress. Use --with-xpress-incdir of environment variable $XPRINCDIR to specify the include directory. Use --with-xpress-lib or environment variable $XPRLIB to specify link flags." >&2;}
23667 { (exit 1); exit 1; }; }
23668 fi
23669 coin_has_xpr=true
23670 echo "$as_me:$LINENO: result: yes" >&5
23671 echo "${ECHO_T}yes" >&6
23672 else
23673 coin_has_xpr=false
23674 echo "$as_me:$LINENO: result: no" >&5
23675 echo "${ECHO_T}no" >&6
23676 fi
23677
23678 # If we have instructions for use, consider header and link checks.
23679
23680 if test $coin_has_xpr = true; then
23681
23682 # If argument 3 (file) is given, check for the file. Typically this will be a
23683 # header file, but that's not assumed.
23684
23685 if test -r $XPRINCDIR/xprs.h; then
23686
23687 :
23688 else
23689 { { echo "$as_me:$LINENO: error: Cannot find file xprs.h in $XPRINCDIR" >&5
23690 echo "$as_me: error: Cannot find file xprs.h in $XPRINCDIR" >&2;}
23691 { (exit 1); exit 1; }; }
23692 :
23693 fi
23694
23695
23696 # Now see if we can link the function. There are arguments for and against
23697 # assuming argument 3 is a header file declaring the function. A correct
23698 # function declaration is the main argument in favour. Having to cope with
23699 # possible dependencies or other oddities are the main arguments against.
23700 # Force the use of C as the best single choice amongst C++, C, and Fortran.
23701 # Obviously, this has limits.
23702
23703 if test x"$xpress_libcheck" != xno; then
23704 coin_save_LIBS="$LIBS"
23705 LIBS="$XPRLIB "
23706 coin_XPR_link=no
23707 ac_ext=c
23708 ac_cpp='$CPP $CPPFLAGS'
23709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23712
23713 for fnm in XPRSinit ; do
23714 echo "$as_me:$LINENO: checking whether symbol $fnm is available with XPR" >&5
23715 echo $ECHO_N "checking whether symbol $fnm is available with XPR... $ECHO_C" >&6
23716 cat >conftest.$ac_ext <<_ACEOF
23717 /* confdefs.h. */
23718 _ACEOF
23719 cat confdefs.h >>conftest.$ac_ext
23720 cat >>conftest.$ac_ext <<_ACEOF
23721 /* end confdefs.h. */
23722
23723 int
23724 main ()
23725 {
23726 $fnm()
23727 ;
23728 return 0;
23729 }
23730 _ACEOF
23731 rm -f conftest.$ac_objext conftest$ac_exeext
23732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23733 (eval $ac_link) 2>conftest.er1
23734 ac_status=$?
23735 grep -v '^ *+' conftest.er1 >conftest.err
23736 rm -f conftest.er1
23737 cat conftest.err >&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } &&
23740 { ac_try='test -z "$ac_c_werror_flag"
23741 || test ! -s conftest.err'
23742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23743 (eval $ac_try) 2>&5
23744 ac_status=$?
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); }; } &&
23747 { ac_try='test -s conftest$ac_exeext'
23748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23749 (eval $ac_try) 2>&5
23750 ac_status=$?
23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); }; }; then
23753 echo "$as_me:$LINENO: result: yes" >&5
23754 echo "${ECHO_T}yes" >&6
23755 coin_XPR_link=yes
23756 break
23757 else
23758 echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23760
23761 echo "$as_me:$LINENO: result: no" >&5
23762 echo "${ECHO_T}no" >&6
23763 fi
23764 rm -f conftest.err conftest.$ac_objext \
23765 conftest$ac_exeext conftest.$ac_ext
23766 done
23767 ac_ext=c
23768 ac_cpp='$CPP $CPPFLAGS'
23769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23772
23773 LIBS="$coin_save_LIBS"
23774 if test x"$coin_XPR_link" != xyes ; then
23775 { { echo "$as_me:$LINENO: error: Cannot find symbol(s) XPRSinit with XPR" >&5
23776 echo "$as_me: error: Cannot find symbol(s) XPRSinit with XPR" >&2;}
23777 { (exit 1); exit 1; }; }
23778 fi
23779 fi
23780
23781
23782 # If we make it this far, we've verified the file and linked the function. Add
23783 # the necessary link flags to _{PC}LIBS and define the preprocessor symbol
23784 # COIN_HAS_LBRY.
23785
23786
23787
23788
23789 cat >>confdefs.h <<\_ACEOF
23790 #define COIN_HAS_XPR 1
23791 _ACEOF
23792
23793 fi
23794
23795 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
23796 # automake conditional. These actions must occur unconditionally.
23797
23798
23799
23800
23801
23802 if test $coin_has_xpr = true; then
23803 COIN_HAS_XPR_TRUE=
23804 COIN_HAS_XPR_FALSE='#'
23805 else
23806 COIN_HAS_XPR_TRUE='#'
23807 COIN_HAS_XPR_FALSE=
23808 fi
23809
23810
23811
23812 echo "$as_me:$LINENO: checking if user provides library for Gurobi" >&5
23813 echo $ECHO_N "checking if user provides library for Gurobi... $ECHO_C" >&6
23814
23815 # Check for header file directory
23816
23817
23818 # Check whether --with-gurobi-incdir or --without-gurobi-incdir was given.
23819 if test "${with_gurobi_incdir+set}" = set; then
23820 withval="$with_gurobi_incdir"
23821 GRBINCDIR=`cd $withval; pwd`
23822 fi;
23823
23824 # Check for library directory
23825
23826
23827 # Check whether --with-gurobi-lib or --without-gurobi-lib was given.
23828 if test "${with_gurobi_lib+set}" = set; then
23829 withval="$with_gurobi_lib"
23830 GRBLIB=$withval
23831 fi;
23832
23833 # Switch to disable library check if requested
23834
23835 # Check whether --enable-gurobi-libcheck or --disable-gurobi-libcheck was given.
23836 if test "${enable_gurobi_libcheck+set}" = set; then
23837 enableval="$enable_gurobi_libcheck"
23838 gurobi_libcheck=$enableval
23839 else
23840 gurobi_libcheck=yes
23841 fi;
23842
23843 # At this point, if we're going to use the library, both LBRYINCDIR and
23844 # LBRYLIB must be defined and not empty.
23845
23846 if test x"$GRBINCDIR" != x || test x"$GRBLIB" != x; then
23847 if test x"$GRBINCDIR" = x || test x"$GRBLIB" = x; then
23848 { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Gurobi. Use --with-gurobi-incdir of environment variable $GRBINCDIR to specify the include directory. Use --with-gurobi-lib or environment variable $GRBLIB to specify link flags." >&5
23849 echo "$as_me: error: You need to specify both an include directory and link flags to use library Gurobi. Use --with-gurobi-incdir of environment variable $GRBINCDIR to specify the include directory. Use --with-gurobi-lib or environment variable $GRBLIB to specify link flags." >&2;}
23850 { (exit 1); exit 1; }; }
23851 fi
23852 coin_has_grb=true
23853 echo "$as_me:$LINENO: result: yes" >&5
23854 echo "${ECHO_T}yes" >&6
23855 else
23856 coin_has_grb=false
23857 echo "$as_me:$LINENO: result: no" >&5
23858 echo "${ECHO_T}no" >&6
23859 fi
23860
23861 # If we have instructions for use, consider header and link checks.
23862
23863 if test $coin_has_grb = true; then
23864
23865 # If argument 3 (file) is given, check for the file. Typically this will be a
23866 # header file, but that's not assumed.
23867
23868 if test -r $GRBINCDIR/gurobi_c.h; then
23869
23870 :
23871 else
23872 { { echo "$as_me:$LINENO: error: Cannot find file gurobi_c.h in $GRBINCDIR" >&5
23873 echo "$as_me: error: Cannot find file gurobi_c.h in $GRBINCDIR" >&2;}
23874 { (exit 1); exit 1; }; }
23875 :
23876 fi
23877
23878
23879 # Now see if we can link the function. There are arguments for and against
23880 # assuming argument 3 is a header file declaring the function. A correct
23881 # function declaration is the main argument in favour. Having to cope with
23882 # possible dependencies or other oddities are the main arguments against.
23883 # Force the use of C as the best single choice amongst C++, C, and Fortran.
23884 # Obviously, this has limits.
23885
23886 if test x"$gurobi_libcheck" != xno; then
23887 coin_save_LIBS="$LIBS"
23888 LIBS="$GRBLIB "
23889 coin_GRB_link=no
23890 ac_ext=c
23891 ac_cpp='$CPP $CPPFLAGS'
23892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23895
23896 for fnm in GRBloadenv ; do
23897 echo "$as_me:$LINENO: checking whether symbol $fnm is available with GRB" >&5
23898 echo $ECHO_N "checking whether symbol $fnm is available with GRB... $ECHO_C" >&6
23899 cat >conftest.$ac_ext <<_ACEOF
23900 /* confdefs.h. */
23901 _ACEOF
23902 cat confdefs.h >>conftest.$ac_ext
23903 cat >>conftest.$ac_ext <<_ACEOF
23904 /* end confdefs.h. */
23905
23906 int
23907 main ()
23908 {
23909 $fnm()
23910 ;
23911 return 0;
23912 }
23913 _ACEOF
23914 rm -f conftest.$ac_objext conftest$ac_exeext
23915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23916 (eval $ac_link) 2>conftest.er1
23917 ac_status=$?
23918 grep -v '^ *+' conftest.er1 >conftest.err
23919 rm -f conftest.er1
23920 cat conftest.err >&5
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); } &&
23923 { ac_try='test -z "$ac_c_werror_flag"
23924 || test ! -s conftest.err'
23925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23926 (eval $ac_try) 2>&5
23927 ac_status=$?
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); }; } &&
23930 { ac_try='test -s conftest$ac_exeext'
23931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932 (eval $ac_try) 2>&5
23933 ac_status=$?
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); }; }; then
23936 echo "$as_me:$LINENO: result: yes" >&5
23937 echo "${ECHO_T}yes" >&6
23938 coin_GRB_link=yes
23939 break
23940 else
23941 echo "$as_me: failed program was:" >&5
23942 sed 's/^/| /' conftest.$ac_ext >&5
23943
23944 echo "$as_me:$LINENO: result: no" >&5
23945 echo "${ECHO_T}no" >&6
23946 fi
23947 rm -f conftest.err conftest.$ac_objext \
23948 conftest$ac_exeext conftest.$ac_ext
23949 done
23950 ac_ext=c
23951 ac_cpp='$CPP $CPPFLAGS'
23952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23955
23956 LIBS="$coin_save_LIBS"
23957 if test x"$coin_GRB_link" != xyes ; then
23958 { { echo "$as_me:$LINENO: error: Cannot find symbol(s) GRBloadenv with GRB" >&5
23959 echo "$as_me: error: Cannot find symbol(s) GRBloadenv with GRB" >&2;}
23960 { (exit 1); exit 1; }; }
23961 fi
23962 fi
23963
23964
23965 # If we make it this far, we've verified the file and linked the function. Add
23966 # the necessary link flags to _{PC}LIBS and define the preprocessor symbol
23967 # COIN_HAS_LBRY.
23968
23969
23970
23971
23972 cat >>confdefs.h <<\_ACEOF
23973 #define COIN_HAS_GRB 1
23974 _ACEOF
23975
23976 fi
23977
23978 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
23979 # automake conditional. These actions must occur unconditionally.
23980
23981
23982
23983
23984
23985 if test $coin_has_grb = true; then
23986 COIN_HAS_GRB_TRUE=
23987 COIN_HAS_GRB_FALSE='#'
23988 else
23989 COIN_HAS_GRB_TRUE='#'
23990 COIN_HAS_GRB_FALSE=
23991 fi
23992
23993
23994
23995 #############################################################################
23996 # Examples solver #
23997 #############################################################################
23998
23999 # choose a solver interface that can be used in the examples
24000
24001 if test $coin_has_glpk = yes ; then
24002 OSI_EXAMPLES_SOLVER_NAME=OsiGlpkSolverInterface
24003 OSI_EXAMPLES_SOLVER_CFLAGS="$GLPK_CFLAGS"
24004 OSI_EXAMPLES_SOLVER_LIBS="-lOsiGlpk $GLPK_LIBS_INSTALLED"
24005 OSI_EXAMPLES_SOLVER_PCNAME=osi-glpk
24006 elif test $coin_has_cpx = true ; then
24007 OSI_EXAMPLES_SOLVER_NAME=OsiCpxSolverInterface
24008 OSI_EXAMPLES_SOLVER_CFLAGS="-I$CPXINCDIR"
24009 OSI_EXAMPLES_SOLVER_LIBS="-lOsiCpx $CPXLIB"
24010 OSI_EXAMPLES_SOLVER_PCNAME=osi-cplex
24011 elif test $coin_has_grb = true ; then
24012 OSI_EXAMPLES_SOLVER_NAME=OsiGrbSolverInterface
24013 OSI_EXAMPLES_SOLVER_CFLAGS="-I$GRBINCDIR"
24014 OSI_EXAMPLES_SOLVER_LIBS="-lOsiGrb $GRBLIB"
24015 OSI_EXAMPLES_SOLVER_PCNAME=osi-gurobi
24016 elif test $coin_has_msk = true ; then
24017 OSI_EXAMPLES_SOLVER_NAME=OsiMskSolverInterface
24018 OSI_EXAMPLES_SOLVER_CFLAGS="-I$MSKINCDIR"
24019 OSI_EXAMPLES_SOLVER_LIBS="-lOsiMsk $MSKLIB"
24020 OSI_EXAMPLES_SOLVER_PCNAME=osi-mosek
24021 elif test $coin_has_xpr = true ; then
24022 OSI_EXAMPLES_SOLVER_NAME=OsiXprSolverInterface
24023 OSI_EXAMPLES_SOLVER_CFLAGS="-I$XPRINCDIR"
24024 OSI_EXAMPLES_SOLVER_LIBS="-lOsiXpr $XPRLIB"
24025 OSI_EXAMPLES_SOLVER_PCNAME=osi-xpress
24026 elif test $coin_has_soplex = yes ; then
24027 OSI_EXAMPLES_SOLVER_NAME=OsiSpxSolverInterface
24028 OSI_EXAMPLES_SOLVER_CFLAGS="$SOPLEX_CFLAGS"
24029 OSI_EXAMPLES_SOLVER_LIBS="-lOsiSpx $SOPLEX_LIBS_INSTALLED"
24030 OSI_EXAMPLES_SOLVER_PCNAME=osi-soplex
24031 else
24032 { echo "$as_me:$LINENO: WARNING: No solver available, examples will not work." >&5
24033 echo "$as_me: WARNING: No solver available, examples will not work." >&2;}
24034 fi
24035
24036 # adjust linker flags for (i)cl compiler
24037 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24038 then
24039 OSI_EXAMPLES_SOLVER_LIBS=`echo " $OSI_EXAMPLES_SOLVER_LIBS" | sed -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
24040 fi
24041
24042
24043
24044
24045
24046
24047
24048 #############################################################################
24049 # Configuration options for individual OSIs #
24050 #############################################################################
24051
24052 # If any of the tests performed in this section actually require the presence
24053 # of the solver (file presence, link checks, etc.) be sure to guard the call.
24054
24055 # We assume that GLPK is not too old
24056
24057
24058 cat >>confdefs.h <<\_ACEOF
24059 #define GLPK_HAS_INTOPT 1
24060 _ACEOF
24061
24062
24063 #############################################################################
24064 # Check for doxygen #
24065 #############################################################################
24066
24067
24068
24069 { echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
24070 echo "$as_me: configuring doxygen documentation options" >&6;}
24071
24072 # Check to see if doxygen is available.
24073
24074 # Extract the first word of "doxygen", so it can be a program name with args.
24075 set dummy doxygen; ac_word=$2
24076 echo "$as_me:$LINENO: checking for $ac_word" >&5
24077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24078 if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
24079 echo $ECHO_N "(cached) $ECHO_C" >&6
24080 else
24081 if test -n "$coin_have_doxygen"; then
24082 ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
24083 else
24084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24085 for as_dir in $PATH
24086 do
24087 IFS=$as_save_IFS
24088 test -z "$as_dir" && as_dir=.
24089 for ac_exec_ext in '' $ac_executable_extensions; do
24090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24091 ac_cv_prog_coin_have_doxygen="yes"
24092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24093 break 2
24094 fi
24095 done
24096 done
24097
24098 test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
24099 fi
24100 fi
24101 coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
24102 if test -n "$coin_have_doxygen"; then
24103 echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
24104 echo "${ECHO_T}$coin_have_doxygen" >&6
24105 else
24106 echo "$as_me:$LINENO: result: no" >&5
24107 echo "${ECHO_T}no" >&6
24108 fi
24109
24110 # Extract the first word of "latex", so it can be a program name with args.
24111 set dummy latex; ac_word=$2
24112 echo "$as_me:$LINENO: checking for $ac_word" >&5
24113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24114 if test "${ac_cv_prog_coin_have_latex+set}" = set; then
24115 echo $ECHO_N "(cached) $ECHO_C" >&6
24116 else
24117 if test -n "$coin_have_latex"; then
24118 ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
24119 else
24120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24121 for as_dir in $PATH
24122 do
24123 IFS=$as_save_IFS
24124 test -z "$as_dir" && as_dir=.
24125 for ac_exec_ext in '' $ac_executable_extensions; do
24126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24127 ac_cv_prog_coin_have_latex="yes"
24128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24129 break 2
24130 fi
24131 done
24132 done
24133
24134 test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
24135 fi
24136 fi
24137 coin_have_latex=$ac_cv_prog_coin_have_latex
24138 if test -n "$coin_have_latex"; then
24139 echo "$as_me:$LINENO: result: $coin_have_latex" >&5
24140 echo "${ECHO_T}$coin_have_latex" >&6
24141 else
24142 echo "$as_me:$LINENO: result: no" >&5
24143 echo "${ECHO_T}no" >&6
24144 fi
24145
24146
24147 # Look for the dot tool from the graphviz package, unless the user has
24148 # disabled it.
24149
24150
24151 # Check whether --with-dot or --without-dot was given.
24152 if test "${with_dot+set}" = set; then
24153 withval="$with_dot"
24154
24155 else
24156 withval=yes
24157 fi;
24158 if test x"$withval" = xno ; then
24159 coin_doxy_usedot=NO
24160 echo "$as_me:$LINENO: checking for dot " >&5
24161 echo $ECHO_N "checking for dot ... $ECHO_C" >&6
24162 echo "$as_me:$LINENO: result: disabled" >&5
24163 echo "${ECHO_T}disabled" >&6
24164 else
24165 # Extract the first word of "dot", so it can be a program name with args.
24166 set dummy dot; ac_word=$2
24167 echo "$as_me:$LINENO: checking for $ac_word" >&5
24168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24169 if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
24170 echo $ECHO_N "(cached) $ECHO_C" >&6
24171 else
24172 if test -n "$coin_doxy_usedot"; then
24173 ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
24174 else
24175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24176 for as_dir in $PATH
24177 do
24178 IFS=$as_save_IFS
24179 test -z "$as_dir" && as_dir=.
24180 for ac_exec_ext in '' $ac_executable_extensions; do
24181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24182 ac_cv_prog_coin_doxy_usedot="YES"
24183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24184 break 2
24185 fi
24186 done
24187 done
24188
24189 test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
24190 fi
24191 fi
24192 coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
24193 if test -n "$coin_doxy_usedot"; then
24194 echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
24195 echo "${ECHO_T}$coin_doxy_usedot" >&6
24196 else
24197 echo "$as_me:$LINENO: result: no" >&5
24198 echo "${ECHO_T}no" >&6
24199 fi
24200
24201 fi
24202
24203 # Generate a tag file name and a log file name
24204
24205 coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
24206
24207 coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
24208
24209
24210
24211 if test $coin_have_doxygen = yes; then
24212 COIN_HAS_DOXYGEN_TRUE=
24213 COIN_HAS_DOXYGEN_FALSE='#'
24214 else
24215 COIN_HAS_DOXYGEN_TRUE='#'
24216 COIN_HAS_DOXYGEN_FALSE=
24217 fi
24218
24219
24220
24221 if test $coin_have_latex = yes; then
24222 COIN_HAS_LATEX_TRUE=
24223 COIN_HAS_LATEX_FALSE='#'
24224 else
24225 COIN_HAS_LATEX_TRUE='#'
24226 COIN_HAS_LATEX_FALSE=
24227 fi
24228
24229
24230 # Process the list of project names and massage them into possible doxygen
24231 # doc'n directories. Prefer 1) classic external, source processed using
24232 # a project-specific doxygen.conf, we use the tag file; 2) classic
24233 # external, source processed using package doxygen.conf; 3) installed
24234 # doxydoc. Alternatives 1) and 2) are only possible if the directory will be
24235 # configured, which we can't know unless this is the package base configure,
24236 # since coin_subdirs is only set there. Hence it's sufficient to check for
24237 # membership. If we use a tag file from a classic external, exclude the
24238 # source from doxygen processing when doxygen runs in the base directory.
24239
24240 coin_doxy_tagfiles=
24241 coin_doxy_excludes=
24242 tmp="CoinUtils"
24243 for proj in $tmp ; do
24244 lc_proj=`echo $proj | tr [A-Z] [a-z]`
24245 echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
24246 echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
24247 doxytag=${lc_proj}_doxy.tag
24248 doxyfound=no
24249 # proj will be configured, hence doxydoc present in build tree
24250 doxysrcdir="${srcdir}/../${proj}"
24251 # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
24252 if test -d "$doxysrcdir" ; then
24253 # with a doxydoc directory?
24254 doxydir="$doxysrcdir/doxydoc"
24255 # AC_MSG_NOTICE([Considering $doxydir (base)])
24256 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
24257 if test -d "$doxydir" ; then
24258 # use tag file; don't process source
24259 doxydir="../${proj}/doxydoc"
24260 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
24261 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
24262 echo "${ECHO_T}$doxydir (tag)" >&6
24263 coin_doxy_excludes="$coin_doxy_excludes */${proj}"
24264 else
24265 # will process the source -- nothing further to be done here
24266 echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
24267 echo "${ECHO_T}$doxysrcdir (src)" >&6
24268 fi
24269 doxyfound=yes
24270 fi
24271 # Not built, fall back to installed tag file
24272 if test $doxyfound = no ; then
24273 eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
24274 # AC_MSG_NOTICE([Considering $doxydir (install)])
24275 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
24276 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
24277 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
24278 echo "${ECHO_T}$doxydir (tag)" >&6
24279 fi
24280 done
24281
24282
24283
24284
24285
24286 #############################################################################
24287 # System header #
24288 #############################################################################
24289
24290
24291 ac_ext=cc
24292 ac_cpp='$CXXCPP $CPPFLAGS'
24293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24296
24297 #if test x"" = x; then
24298 # hdr="#include <cmath>"
24299 #else
24300 # hdr=""
24301 #fi
24302 #AC_CHECK_HEADERS([cmath],[],[],[$hdr])
24303
24304 for ac_header in cmath
24305 do
24306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24308 echo "$as_me:$LINENO: checking for $ac_header" >&5
24309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24311 echo $ECHO_N "(cached) $ECHO_C" >&6
24312 fi
24313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24315 else
24316 # Is the header compilable?
24317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24319 cat >conftest.$ac_ext <<_ACEOF
24320 /* confdefs.h. */
24321 _ACEOF
24322 cat confdefs.h >>conftest.$ac_ext
24323 cat >>conftest.$ac_ext <<_ACEOF
24324 /* end confdefs.h. */
24325 $ac_includes_default
24326 #include <$ac_header>
24327 _ACEOF
24328 rm -f conftest.$ac_objext
24329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24330 (eval $ac_compile) 2>conftest.er1
24331 ac_status=$?
24332 grep -v '^ *+' conftest.er1 >conftest.err
24333 rm -f conftest.er1
24334 cat conftest.err >&5
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); } &&
24337 { ac_try='test -z "$ac_cxx_werror_flag"
24338 || test ! -s conftest.err'
24339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24340 (eval $ac_try) 2>&5
24341 ac_status=$?
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); }; } &&
24344 { ac_try='test -s conftest.$ac_objext'
24345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24346 (eval $ac_try) 2>&5
24347 ac_status=$?
24348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349 (exit $ac_status); }; }; then
24350 ac_header_compiler=yes
24351 else
24352 echo "$as_me: failed program was:" >&5
24353 sed 's/^/| /' conftest.$ac_ext >&5
24354
24355 ac_header_compiler=no
24356 fi
24357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24359 echo "${ECHO_T}$ac_header_compiler" >&6
24360
24361 # Is the header present?
24362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24364 cat >conftest.$ac_ext <<_ACEOF
24365 /* confdefs.h. */
24366 _ACEOF
24367 cat confdefs.h >>conftest.$ac_ext
24368 cat >>conftest.$ac_ext <<_ACEOF
24369 /* end confdefs.h. */
24370 #include <$ac_header>
24371 _ACEOF
24372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24374 ac_status=$?
24375 grep -v '^ *+' conftest.er1 >conftest.err
24376 rm -f conftest.er1
24377 cat conftest.err >&5
24378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); } >/dev/null; then
24380 if test -s conftest.err; then
24381 ac_cpp_err=$ac_cxx_preproc_warn_flag
24382 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24383 else
24384 ac_cpp_err=
24385 fi
24386 else
24387 ac_cpp_err=yes
24388 fi
24389 if test -z "$ac_cpp_err"; then
24390 ac_header_preproc=yes
24391 else
24392 echo "$as_me: failed program was:" >&5
24393 sed 's/^/| /' conftest.$ac_ext >&5
24394
24395 ac_header_preproc=no
24396 fi
24397 rm -f conftest.err conftest.$ac_ext
24398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24399 echo "${ECHO_T}$ac_header_preproc" >&6
24400
24401 # So? What about this header?
24402 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24403 yes:no: )
24404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24408 ac_header_preproc=yes
24409 ;;
24410 no:yes:* )
24411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24423 (
24424 cat <<\_ASBOX
24425 ## ----------------------------------- ##
24426 ## Report this to [email protected] ##
24427 ## ----------------------------------- ##
24428 _ASBOX
24429 ) |
24430 sed "s/^/$as_me: WARNING: /" >&2
24431 ;;
24432 esac
24433 echo "$as_me:$LINENO: checking for $ac_header" >&5
24434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24436 echo $ECHO_N "(cached) $ECHO_C" >&6
24437 else
24438 eval "$as_ac_Header=\$ac_header_preproc"
24439 fi
24440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24442
24443 fi
24444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24445 cat >>confdefs.h <<_ACEOF
24446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24447 _ACEOF
24448
24449 fi
24450
24451 done
24452
24453
24454 if test "$ac_cv_header_cmath" != "yes"; then
24455 #if test x"" = x; then
24456 # hdr="#include <math.h>"
24457 #else
24458 # hdr=""
24459 #fi
24460 #AC_CHECK_HEADERS([math.h],[],[],[$hdr])
24461
24462 for ac_header in math.h
24463 do
24464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24466 echo "$as_me:$LINENO: checking for $ac_header" >&5
24467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24469 echo $ECHO_N "(cached) $ECHO_C" >&6
24470 fi
24471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24473 else
24474 # Is the header compilable?
24475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24477 cat >conftest.$ac_ext <<_ACEOF
24478 /* confdefs.h. */
24479 _ACEOF
24480 cat confdefs.h >>conftest.$ac_ext
24481 cat >>conftest.$ac_ext <<_ACEOF
24482 /* end confdefs.h. */
24483 $ac_includes_default
24484 #include <$ac_header>
24485 _ACEOF
24486 rm -f conftest.$ac_objext
24487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24488 (eval $ac_compile) 2>conftest.er1
24489 ac_status=$?
24490 grep -v '^ *+' conftest.er1 >conftest.err
24491 rm -f conftest.er1
24492 cat conftest.err >&5
24493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); } &&
24495 { ac_try='test -z "$ac_cxx_werror_flag"
24496 || test ! -s conftest.err'
24497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24498 (eval $ac_try) 2>&5
24499 ac_status=$?
24500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501 (exit $ac_status); }; } &&
24502 { ac_try='test -s conftest.$ac_objext'
24503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24504 (eval $ac_try) 2>&5
24505 ac_status=$?
24506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507 (exit $ac_status); }; }; then
24508 ac_header_compiler=yes
24509 else
24510 echo "$as_me: failed program was:" >&5
24511 sed 's/^/| /' conftest.$ac_ext >&5
24512
24513 ac_header_compiler=no
24514 fi
24515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24517 echo "${ECHO_T}$ac_header_compiler" >&6
24518
24519 # Is the header present?
24520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24522 cat >conftest.$ac_ext <<_ACEOF
24523 /* confdefs.h. */
24524 _ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h. */
24528 #include <$ac_header>
24529 _ACEOF
24530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24532 ac_status=$?
24533 grep -v '^ *+' conftest.er1 >conftest.err
24534 rm -f conftest.er1
24535 cat conftest.err >&5
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); } >/dev/null; then
24538 if test -s conftest.err; then
24539 ac_cpp_err=$ac_cxx_preproc_warn_flag
24540 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24541 else
24542 ac_cpp_err=
24543 fi
24544 else
24545 ac_cpp_err=yes
24546 fi
24547 if test -z "$ac_cpp_err"; then
24548 ac_header_preproc=yes
24549 else
24550 echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24552
24553 ac_header_preproc=no
24554 fi
24555 rm -f conftest.err conftest.$ac_ext
24556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24557 echo "${ECHO_T}$ac_header_preproc" >&6
24558
24559 # So? What about this header?
24560 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24561 yes:no: )
24562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24566 ac_header_preproc=yes
24567 ;;
24568 no:yes:* )
24569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24581 (
24582 cat <<\_ASBOX
24583 ## ----------------------------------- ##
24584 ## Report this to [email protected] ##
24585 ## ----------------------------------- ##
24586 _ASBOX
24587 ) |
24588 sed "s/^/$as_me: WARNING: /" >&2
24589 ;;
24590 esac
24591 echo "$as_me:$LINENO: checking for $ac_header" >&5
24592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24594 echo $ECHO_N "(cached) $ECHO_C" >&6
24595 else
24596 eval "$as_ac_Header=\$ac_header_preproc"
24597 fi
24598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24600
24601 fi
24602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24603 cat >>confdefs.h <<_ACEOF
24604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24605 _ACEOF
24606
24607 fi
24608
24609 done
24610
24611
24612 fi
24613 ac_ext=c
24614 ac_cpp='$CPP $CPPFLAGS'
24615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24618
24619
24620 ac_ext=cc
24621 ac_cpp='$CXXCPP $CPPFLAGS'
24622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24625
24626 #if test x"" = x; then
24627 # hdr="#include <cfloat>"
24628 #else
24629 # hdr=""
24630 #fi
24631 #AC_CHECK_HEADERS([cfloat],[],[],[$hdr])
24632
24633 for ac_header in cfloat
24634 do
24635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24637 echo "$as_me:$LINENO: checking for $ac_header" >&5
24638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24640 echo $ECHO_N "(cached) $ECHO_C" >&6
24641 fi
24642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24644 else
24645 # Is the header compilable?
24646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24648 cat >conftest.$ac_ext <<_ACEOF
24649 /* confdefs.h. */
24650 _ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h. */
24654 $ac_includes_default
24655 #include <$ac_header>
24656 _ACEOF
24657 rm -f conftest.$ac_objext
24658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24659 (eval $ac_compile) 2>conftest.er1
24660 ac_status=$?
24661 grep -v '^ *+' conftest.er1 >conftest.err
24662 rm -f conftest.er1
24663 cat conftest.err >&5
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } &&
24666 { ac_try='test -z "$ac_cxx_werror_flag"
24667 || test ! -s conftest.err'
24668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24669 (eval $ac_try) 2>&5
24670 ac_status=$?
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); }; } &&
24673 { ac_try='test -s conftest.$ac_objext'
24674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675 (eval $ac_try) 2>&5
24676 ac_status=$?
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); }; }; then
24679 ac_header_compiler=yes
24680 else
24681 echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24683
24684 ac_header_compiler=no
24685 fi
24686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24688 echo "${ECHO_T}$ac_header_compiler" >&6
24689
24690 # Is the header present?
24691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24693 cat >conftest.$ac_ext <<_ACEOF
24694 /* confdefs.h. */
24695 _ACEOF
24696 cat confdefs.h >>conftest.$ac_ext
24697 cat >>conftest.$ac_ext <<_ACEOF
24698 /* end confdefs.h. */
24699 #include <$ac_header>
24700 _ACEOF
24701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24703 ac_status=$?
24704 grep -v '^ *+' conftest.er1 >conftest.err
24705 rm -f conftest.er1
24706 cat conftest.err >&5
24707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708 (exit $ac_status); } >/dev/null; then
24709 if test -s conftest.err; then
24710 ac_cpp_err=$ac_cxx_preproc_warn_flag
24711 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24712 else
24713 ac_cpp_err=
24714 fi
24715 else
24716 ac_cpp_err=yes
24717 fi
24718 if test -z "$ac_cpp_err"; then
24719 ac_header_preproc=yes
24720 else
24721 echo "$as_me: failed program was:" >&5
24722 sed 's/^/| /' conftest.$ac_ext >&5
24723
24724 ac_header_preproc=no
24725 fi
24726 rm -f conftest.err conftest.$ac_ext
24727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24728 echo "${ECHO_T}$ac_header_preproc" >&6
24729
24730 # So? What about this header?
24731 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24732 yes:no: )
24733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24737 ac_header_preproc=yes
24738 ;;
24739 no:yes:* )
24740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24752 (
24753 cat <<\_ASBOX
24754 ## ----------------------------------- ##
24755 ## Report this to [email protected] ##
24756 ## ----------------------------------- ##
24757 _ASBOX
24758 ) |
24759 sed "s/^/$as_me: WARNING: /" >&2
24760 ;;
24761 esac
24762 echo "$as_me:$LINENO: checking for $ac_header" >&5
24763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24765 echo $ECHO_N "(cached) $ECHO_C" >&6
24766 else
24767 eval "$as_ac_Header=\$ac_header_preproc"
24768 fi
24769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24771
24772 fi
24773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24774 cat >>confdefs.h <<_ACEOF
24775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24776 _ACEOF
24777
24778 fi
24779
24780 done
24781
24782
24783 if test "$ac_cv_header_cfloat" != "yes"; then
24784 #if test x"" = x; then
24785 # hdr="#include <float.h>"
24786 #else
24787 # hdr=""
24788 #fi
24789 #AC_CHECK_HEADERS([float.h],[],[],[$hdr])
24790
24791 for ac_header in float.h
24792 do
24793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24795 echo "$as_me:$LINENO: checking for $ac_header" >&5
24796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24798 echo $ECHO_N "(cached) $ECHO_C" >&6
24799 fi
24800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24802 else
24803 # Is the header compilable?
24804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24806 cat >conftest.$ac_ext <<_ACEOF
24807 /* confdefs.h. */
24808 _ACEOF
24809 cat confdefs.h >>conftest.$ac_ext
24810 cat >>conftest.$ac_ext <<_ACEOF
24811 /* end confdefs.h. */
24812 $ac_includes_default
24813 #include <$ac_header>
24814 _ACEOF
24815 rm -f conftest.$ac_objext
24816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24817 (eval $ac_compile) 2>conftest.er1
24818 ac_status=$?
24819 grep -v '^ *+' conftest.er1 >conftest.err
24820 rm -f conftest.er1
24821 cat conftest.err >&5
24822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823 (exit $ac_status); } &&
24824 { ac_try='test -z "$ac_cxx_werror_flag"
24825 || test ! -s conftest.err'
24826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24827 (eval $ac_try) 2>&5
24828 ac_status=$?
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); }; } &&
24831 { ac_try='test -s conftest.$ac_objext'
24832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24833 (eval $ac_try) 2>&5
24834 ac_status=$?
24835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836 (exit $ac_status); }; }; then
24837 ac_header_compiler=yes
24838 else
24839 echo "$as_me: failed program was:" >&5
24840 sed 's/^/| /' conftest.$ac_ext >&5
24841
24842 ac_header_compiler=no
24843 fi
24844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24846 echo "${ECHO_T}$ac_header_compiler" >&6
24847
24848 # Is the header present?
24849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24851 cat >conftest.$ac_ext <<_ACEOF
24852 /* confdefs.h. */
24853 _ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h. */
24857 #include <$ac_header>
24858 _ACEOF
24859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24861 ac_status=$?
24862 grep -v '^ *+' conftest.er1 >conftest.err
24863 rm -f conftest.er1
24864 cat conftest.err >&5
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); } >/dev/null; then
24867 if test -s conftest.err; then
24868 ac_cpp_err=$ac_cxx_preproc_warn_flag
24869 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24870 else
24871 ac_cpp_err=
24872 fi
24873 else
24874 ac_cpp_err=yes
24875 fi
24876 if test -z "$ac_cpp_err"; then
24877 ac_header_preproc=yes
24878 else
24879 echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24881
24882 ac_header_preproc=no
24883 fi
24884 rm -f conftest.err conftest.$ac_ext
24885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24886 echo "${ECHO_T}$ac_header_preproc" >&6
24887
24888 # So? What about this header?
24889 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24890 yes:no: )
24891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24895 ac_header_preproc=yes
24896 ;;
24897 no:yes:* )
24898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24905 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24910 (
24911 cat <<\_ASBOX
24912 ## ----------------------------------- ##
24913 ## Report this to [email protected] ##
24914 ## ----------------------------------- ##
24915 _ASBOX
24916 ) |
24917 sed "s/^/$as_me: WARNING: /" >&2
24918 ;;
24919 esac
24920 echo "$as_me:$LINENO: checking for $ac_header" >&5
24921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24923 echo $ECHO_N "(cached) $ECHO_C" >&6
24924 else
24925 eval "$as_ac_Header=\$ac_header_preproc"
24926 fi
24927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24929
24930 fi
24931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24932 cat >>confdefs.h <<_ACEOF
24933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24934 _ACEOF
24935
24936 fi
24937
24938 done
24939
24940
24941 fi
24942 ac_ext=c
24943 ac_cpp='$CPP $CPPFLAGS'
24944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24947
24948
24949 ac_ext=cc
24950 ac_cpp='$CXXCPP $CPPFLAGS'
24951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24954
24955 #if test x"" = x; then
24956 # hdr="#include <cieeefp>"
24957 #else
24958 # hdr=""
24959 #fi
24960 #AC_CHECK_HEADERS([cieeefp],[],[],[$hdr])
24961
24962 for ac_header in cieeefp
24963 do
24964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24966 echo "$as_me:$LINENO: checking for $ac_header" >&5
24967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24969 echo $ECHO_N "(cached) $ECHO_C" >&6
24970 fi
24971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24973 else
24974 # Is the header compilable?
24975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24977 cat >conftest.$ac_ext <<_ACEOF
24978 /* confdefs.h. */
24979 _ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h. */
24983 $ac_includes_default
24984 #include <$ac_header>
24985 _ACEOF
24986 rm -f conftest.$ac_objext
24987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24988 (eval $ac_compile) 2>conftest.er1
24989 ac_status=$?
24990 grep -v '^ *+' conftest.er1 >conftest.err
24991 rm -f conftest.er1
24992 cat conftest.err >&5
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); } &&
24995 { ac_try='test -z "$ac_cxx_werror_flag"
24996 || test ! -s conftest.err'
24997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24998 (eval $ac_try) 2>&5
24999 ac_status=$?
25000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); }; } &&
25002 { ac_try='test -s conftest.$ac_objext'
25003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25004 (eval $ac_try) 2>&5
25005 ac_status=$?
25006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); }; }; then
25008 ac_header_compiler=yes
25009 else
25010 echo "$as_me: failed program was:" >&5
25011 sed 's/^/| /' conftest.$ac_ext >&5
25012
25013 ac_header_compiler=no
25014 fi
25015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25017 echo "${ECHO_T}$ac_header_compiler" >&6
25018
25019 # Is the header present?
25020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25022 cat >conftest.$ac_ext <<_ACEOF
25023 /* confdefs.h. */
25024 _ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h. */
25028 #include <$ac_header>
25029 _ACEOF
25030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25032 ac_status=$?
25033 grep -v '^ *+' conftest.er1 >conftest.err
25034 rm -f conftest.er1
25035 cat conftest.err >&5
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); } >/dev/null; then
25038 if test -s conftest.err; then
25039 ac_cpp_err=$ac_cxx_preproc_warn_flag
25040 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25041 else
25042 ac_cpp_err=
25043 fi
25044 else
25045 ac_cpp_err=yes
25046 fi
25047 if test -z "$ac_cpp_err"; then
25048 ac_header_preproc=yes
25049 else
25050 echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25052
25053 ac_header_preproc=no
25054 fi
25055 rm -f conftest.err conftest.$ac_ext
25056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25057 echo "${ECHO_T}$ac_header_preproc" >&6
25058
25059 # So? What about this header?
25060 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25061 yes:no: )
25062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25066 ac_header_preproc=yes
25067 ;;
25068 no:yes:* )
25069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25081 (
25082 cat <<\_ASBOX
25083 ## ----------------------------------- ##
25084 ## Report this to [email protected] ##
25085 ## ----------------------------------- ##
25086 _ASBOX
25087 ) |
25088 sed "s/^/$as_me: WARNING: /" >&2
25089 ;;
25090 esac
25091 echo "$as_me:$LINENO: checking for $ac_header" >&5
25092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25094 echo $ECHO_N "(cached) $ECHO_C" >&6
25095 else
25096 eval "$as_ac_Header=\$ac_header_preproc"
25097 fi
25098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25100
25101 fi
25102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25103 cat >>confdefs.h <<_ACEOF
25104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25105 _ACEOF
25106
25107 fi
25108
25109 done
25110
25111
25112 if test "$ac_cv_header_cieeefp" != "yes"; then
25113 #if test x"" = x; then
25114 # hdr="#include <ieeefp.h>"
25115 #else
25116 # hdr=""
25117 #fi
25118 #AC_CHECK_HEADERS([ieeefp.h],[],[],[$hdr])
25119
25120 for ac_header in ieeefp.h
25121 do
25122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25124 echo "$as_me:$LINENO: checking for $ac_header" >&5
25125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25127 echo $ECHO_N "(cached) $ECHO_C" >&6
25128 fi
25129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25131 else
25132 # Is the header compilable?
25133 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25135 cat >conftest.$ac_ext <<_ACEOF
25136 /* confdefs.h. */
25137 _ACEOF
25138 cat confdefs.h >>conftest.$ac_ext
25139 cat >>conftest.$ac_ext <<_ACEOF
25140 /* end confdefs.h. */
25141 $ac_includes_default
25142 #include <$ac_header>
25143 _ACEOF
25144 rm -f conftest.$ac_objext
25145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25146 (eval $ac_compile) 2>conftest.er1
25147 ac_status=$?
25148 grep -v '^ *+' conftest.er1 >conftest.err
25149 rm -f conftest.er1
25150 cat conftest.err >&5
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); } &&
25153 { ac_try='test -z "$ac_cxx_werror_flag"
25154 || test ! -s conftest.err'
25155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25156 (eval $ac_try) 2>&5
25157 ac_status=$?
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); }; } &&
25160 { ac_try='test -s conftest.$ac_objext'
25161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25162 (eval $ac_try) 2>&5
25163 ac_status=$?
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); }; }; then
25166 ac_header_compiler=yes
25167 else
25168 echo "$as_me: failed program was:" >&5
25169 sed 's/^/| /' conftest.$ac_ext >&5
25170
25171 ac_header_compiler=no
25172 fi
25173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25175 echo "${ECHO_T}$ac_header_compiler" >&6
25176
25177 # Is the header present?
25178 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25180 cat >conftest.$ac_ext <<_ACEOF
25181 /* confdefs.h. */
25182 _ACEOF
25183 cat confdefs.h >>conftest.$ac_ext
25184 cat >>conftest.$ac_ext <<_ACEOF
25185 /* end confdefs.h. */
25186 #include <$ac_header>
25187 _ACEOF
25188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25190 ac_status=$?
25191 grep -v '^ *+' conftest.er1 >conftest.err
25192 rm -f conftest.er1
25193 cat conftest.err >&5
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); } >/dev/null; then
25196 if test -s conftest.err; then
25197 ac_cpp_err=$ac_cxx_preproc_warn_flag
25198 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25199 else
25200 ac_cpp_err=
25201 fi
25202 else
25203 ac_cpp_err=yes
25204 fi
25205 if test -z "$ac_cpp_err"; then
25206 ac_header_preproc=yes
25207 else
25208 echo "$as_me: failed program was:" >&5
25209 sed 's/^/| /' conftest.$ac_ext >&5
25210
25211 ac_header_preproc=no
25212 fi
25213 rm -f conftest.err conftest.$ac_ext
25214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25215 echo "${ECHO_T}$ac_header_preproc" >&6
25216
25217 # So? What about this header?
25218 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25219 yes:no: )
25220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25224 ac_header_preproc=yes
25225 ;;
25226 no:yes:* )
25227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25234 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25239 (
25240 cat <<\_ASBOX
25241 ## ----------------------------------- ##
25242 ## Report this to [email protected] ##
25243 ## ----------------------------------- ##
25244 _ASBOX
25245 ) |
25246 sed "s/^/$as_me: WARNING: /" >&2
25247 ;;
25248 esac
25249 echo "$as_me:$LINENO: checking for $ac_header" >&5
25250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25252 echo $ECHO_N "(cached) $ECHO_C" >&6
25253 else
25254 eval "$as_ac_Header=\$ac_header_preproc"
25255 fi
25256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25258
25259 fi
25260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25261 cat >>confdefs.h <<_ACEOF
25262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25263 _ACEOF
25264
25265 fi
25266
25267 done
25268
25269
25270 fi
25271 ac_ext=c
25272 ac_cpp='$CPP $CPPFLAGS'
25273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25276
25277
25278
25279 ##############################################################################
25280 # Finishing up by writing all the output #
25281 ##############################################################################
25282
25283 # Here list all the files that configure should create (except for the
25284 # configuration header file)
25285 ac_config_files="$ac_config_files Makefile examples/Makefile src/Osi/Makefile src/OsiCpx/Makefile src/OsiGlpk/Makefile src/OsiMsk/Makefile src/OsiXpr/Makefile src/OsiGrb/Makefile src/OsiSpx/Makefile src/OsiCommonTest/Makefile test/Makefile osi.pc osi-uninstalled.pc osi-unittests.pc osi-unittests-uninstalled.pc"
25286
25287
25288 if test $coin_has_cpx = true ; then
25289 ac_config_files="$ac_config_files osi-cplex.pc:src/OsiCpx/osi-cplex.pc.in osi-cplex-uninstalled.pc:src/OsiCpx/osi-cplex-uninstalled.pc.in"
25290
25291 fi
25292
25293 if test $coin_has_glpk = yes ; then
25294 ac_config_files="$ac_config_files osi-glpk.pc:src/OsiGlpk/osi-glpk.pc.in osi-glpk-uninstalled.pc:src/OsiGlpk/osi-glpk-uninstalled.pc.in"
25295
25296 fi
25297
25298 if test $coin_has_grb = true ; then
25299 ac_config_files="$ac_config_files osi-gurobi.pc:src/OsiGrb/osi-gurobi.pc.in osi-gurobi-uninstalled.pc:src/OsiGrb/osi-gurobi-uninstalled.pc.in"
25300
25301 fi
25302
25303 if test $coin_has_msk = true ; then
25304 ac_config_files="$ac_config_files osi-mosek.pc:src/OsiMsk/osi-mosek.pc.in osi-mosek-uninstalled.pc:src/OsiMsk/osi-mosek-uninstalled.pc.in"
25305
25306 fi
25307
25308 if test $coin_has_xpr = true ; then
25309 ac_config_files="$ac_config_files osi-xpress.pc:src/OsiXpr/osi-xpress.pc.in osi-xpress-uninstalled.pc:src/OsiXpr/osi-xpress-uninstalled.pc.in"
25310
25311 fi
25312
25313 if test $coin_has_soplex = yes ; then
25314 ac_config_files="$ac_config_files osi-soplex.pc:src/OsiSpx/osi-soplex.pc.in osi-soplex-uninstalled.pc:src/OsiSpx/osi-soplex-uninstalled.pc.in"
25315
25316 fi
25317
25318 ac_config_files="$ac_config_files doxydoc/doxygen.conf"
25319
25320
25321 # Here put the location and name of the configuration header file
25322 ac_config_headers="$ac_config_headers src/Osi/config.h src/Osi/config_osi.h"
25323
25324
25325 # Finally, we let configure write all the output...
25326
25327
25328
25329
25330 echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
25331 echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
25332 coin_link_input_cmd="$LN_S"
25333 case "$CC" in
25334 clang* | */clang* ) ;;
25335 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
25336 coin_link_input_cmd=cp ;;
25337 esac
25338 echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
25339 echo "${ECHO_T}$coin_link_input_cmd" >&6
25340
25341
25342
25343 if test x$coin_skip_ac_output != xyes; then
25344
25345 # library extension
25346
25347 case "$CC" in
25348 clang* | */clang* )
25349 LIBEXT=a ;;
25350 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
25351 LIBEXT=lib ;;
25352 *) LIBEXT=a ;;
25353 esac
25354
25355 # Define VPATH_DISTCLEANFILES to be everything that needs to be
25356 # cleaned for distclean in a vpath configuration
25357
25358 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
25359
25360 # Take out subdirectories if their configuration concluded that they
25361 # don't need to be compiled
25362 if test x"$coin_ac_skip_subdirs" != x; then
25363 new_subdirs=
25364 for i in $subdirs; do
25365 skipme=no
25366 for j in $coin_ac_skip_subdirs; do
25367 if test $i = $j; then
25368 skipme=yes;
25369 fi
25370 done
25371 if test $skipme = no; then
25372 new_subdirs="$new_subdirs $i"
25373 fi
25374 done
25375 subdirs="$new_subdirs"
25376 fi
25377
25378 # need to come before AC_OUTPUT
25379 if test x$coin_projectdir != xyes; then
25380 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
25381 echo $coin_subdirs > coin_subdirs.txt
25382 else
25383 # substitute for OBJDIR, needed to setup .pc file for uninstalled project
25384 ABSBUILDDIR="`pwd`"
25385
25386 fi
25387
25388 cat >confcache <<\_ACEOF
25389 # This file is a shell script that caches the results of configure
25390 # tests run on this system so they can be shared between configure
25391 # scripts and configure runs, see configure's option --config-cache.
25392 # It is not useful on other systems. If it contains results you don't
25393 # want to keep, you may remove or edit it.
25394 #
25395 # config.status only pays attention to the cache file if you give it
25396 # the --recheck option to rerun configure.
25397 #
25398 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25400 # following values.
25401
25402 _ACEOF
25403
25404 # The following way of writing the cache mishandles newlines in values,
25405 # but we know of no workaround that is simple, portable, and efficient.
25406 # So, don't put newlines in cache variables' values.
25407 # Ultrix sh set writes to stderr and can't be redirected directly,
25408 # and sets the high bit in the cache file unless we assign to the vars.
25409 {
25410 (set) 2>&1 |
25411 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25412 *ac_space=\ *)
25413 # `set' does not quote correctly, so add quotes (double-quote
25414 # substitution turns \\\\ into \\, and sed turns \\ into \).
25415 sed -n \
25416 "s/'/'\\\\''/g;
25417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25418 ;;
25419 *)
25420 # `set' quotes correctly as required by POSIX, so do not add quotes.
25421 sed -n \
25422 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25423 ;;
25424 esac;
25425 } |
25426 sed '
25427 t clear
25428 : clear
25429 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25430 t end
25431 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25432 : end' >>confcache
25433 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25434 if test -w $cache_file; then
25435 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25436 cat confcache >$cache_file
25437 else
25438 echo "not updating unwritable cache $cache_file"
25439 fi
25440 fi
25441 rm -f confcache
25442
25443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25444 # Let make expand exec_prefix.
25445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25446
25447 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25448 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25449 # trailing colons and then remove the whole line if VPATH becomes empty
25450 # (actually we leave an empty line to preserve line numbers).
25451 if test "x$srcdir" = x.; then
25452 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25453 s/:*\$(srcdir):*/:/;
25454 s/:*\${srcdir}:*/:/;
25455 s/:*@srcdir@:*/:/;
25456 s/^\([^=]*=[ ]*\):*/\1/;
25457 s/:*$//;
25458 s/^[^=]*=[ ]*$//;
25459 }'
25460 fi
25461
25462 DEFS=-DHAVE_CONFIG_H
25463
25464 ac_libobjs=
25465 ac_ltlibobjs=
25466 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25467 # 1. Remove the extension, and $U if already installed.
25468 ac_i=`echo "$ac_i" |
25469 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25470 # 2. Add them.
25471 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25472 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25473 done
25474 LIBOBJS=$ac_libobjs
25475
25476 LTLIBOBJS=$ac_ltlibobjs
25477
25478
25479 if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
25480 { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
25481 Usually this means the macro was only invoked conditionally." >&5
25482 echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
25483 Usually this means the macro was only invoked conditionally." >&2;}
25484 { (exit 1); exit 1; }; }
25485 fi
25486 if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
25487 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
25488 Usually this means the macro was only invoked conditionally." >&5
25489 echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
25490 Usually this means the macro was only invoked conditionally." >&2;}
25491 { (exit 1); exit 1; }; }
25492 fi
25493 if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
25494 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
25495 Usually this means the macro was only invoked conditionally." >&5
25496 echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
25497 Usually this means the macro was only invoked conditionally." >&2;}
25498 { (exit 1); exit 1; }; }
25499 fi
25500 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25501 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25502 Usually this means the macro was only invoked conditionally." >&5
25503 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25504 Usually this means the macro was only invoked conditionally." >&2;}
25505 { (exit 1); exit 1; }; }
25506 fi
25507 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25508 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25509 Usually this means the macro was only invoked conditionally." >&5
25510 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25511 Usually this means the macro was only invoked conditionally." >&2;}
25512 { (exit 1); exit 1; }; }
25513 fi
25514 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25515 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25516 Usually this means the macro was only invoked conditionally." >&5
25517 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25518 Usually this means the macro was only invoked conditionally." >&2;}
25519 { (exit 1); exit 1; }; }
25520 fi
25521 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25522 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25523 Usually this means the macro was only invoked conditionally." >&5
25524 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25525 Usually this means the macro was only invoked conditionally." >&2;}
25526 { (exit 1); exit 1; }; }
25527 fi
25528 if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
25529 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
25530 Usually this means the macro was only invoked conditionally." >&5
25531 echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
25532 Usually this means the macro was only invoked conditionally." >&2;}
25533 { (exit 1); exit 1; }; }
25534 fi
25535 if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
25536 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
25537 Usually this means the macro was only invoked conditionally." >&5
25538 echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
25539 Usually this means the macro was only invoked conditionally." >&2;}
25540 { (exit 1); exit 1; }; }
25541 fi
25542 if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
25543 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
25544 Usually this means the macro was only invoked conditionally." >&5
25545 echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
25546 Usually this means the macro was only invoked conditionally." >&2;}
25547 { (exit 1); exit 1; }; }
25548 fi
25549 if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
25550 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
25551 Usually this means the macro was only invoked conditionally." >&5
25552 echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
25553 Usually this means the macro was only invoked conditionally." >&2;}
25554 { (exit 1); exit 1; }; }
25555 fi
25556 if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
25557 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
25558 Usually this means the macro was only invoked conditionally." >&5
25559 echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
25560 Usually this means the macro was only invoked conditionally." >&2;}
25561 { (exit 1); exit 1; }; }
25562 fi
25563 if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
25564 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
25565 Usually this means the macro was only invoked conditionally." >&5
25566 echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
25567 Usually this means the macro was only invoked conditionally." >&2;}
25568 { (exit 1); exit 1; }; }
25569 fi
25570 if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
25571 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
25572 Usually this means the macro was only invoked conditionally." >&5
25573 echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
25574 Usually this means the macro was only invoked conditionally." >&2;}
25575 { (exit 1); exit 1; }; }
25576 fi
25577 if test -z "${COIN_HAS_SOPLEX_TRUE}" && test -z "${COIN_HAS_SOPLEX_FALSE}"; then
25578 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SOPLEX\" was never defined.
25579 Usually this means the macro was only invoked conditionally." >&5
25580 echo "$as_me: error: conditional \"COIN_HAS_SOPLEX\" was never defined.
25581 Usually this means the macro was only invoked conditionally." >&2;}
25582 { (exit 1); exit 1; }; }
25583 fi
25584 if test -z "${COIN_HAS_SOPLEX_TRUE}" && test -z "${COIN_HAS_SOPLEX_FALSE}"; then
25585 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SOPLEX\" was never defined.
25586 Usually this means the macro was only invoked conditionally." >&5
25587 echo "$as_me: error: conditional \"COIN_HAS_SOPLEX\" was never defined.
25588 Usually this means the macro was only invoked conditionally." >&2;}
25589 { (exit 1); exit 1; }; }
25590 fi
25591 if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
25592 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
25593 Usually this means the macro was only invoked conditionally." >&5
25594 echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
25595 Usually this means the macro was only invoked conditionally." >&2;}
25596 { (exit 1); exit 1; }; }
25597 fi
25598 if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
25599 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
25600 Usually this means the macro was only invoked conditionally." >&5
25601 echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
25602 Usually this means the macro was only invoked conditionally." >&2;}
25603 { (exit 1); exit 1; }; }
25604 fi
25605 if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
25606 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
25607 Usually this means the macro was only invoked conditionally." >&5
25608 echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
25609 Usually this means the macro was only invoked conditionally." >&2;}
25610 { (exit 1); exit 1; }; }
25611 fi
25612 if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
25613 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
25614 Usually this means the macro was only invoked conditionally." >&5
25615 echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
25616 Usually this means the macro was only invoked conditionally." >&2;}
25617 { (exit 1); exit 1; }; }
25618 fi
25619 if test -z "${COIN_HAS_CPX_TRUE}" && test -z "${COIN_HAS_CPX_FALSE}"; then
25620 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CPX\" was never defined.
25621 Usually this means the macro was only invoked conditionally." >&5
25622 echo "$as_me: error: conditional \"COIN_HAS_CPX\" was never defined.
25623 Usually this means the macro was only invoked conditionally." >&2;}
25624 { (exit 1); exit 1; }; }
25625 fi
25626 if test -z "${COIN_HAS_MSK_TRUE}" && test -z "${COIN_HAS_MSK_FALSE}"; then
25627 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MSK\" was never defined.
25628 Usually this means the macro was only invoked conditionally." >&5
25629 echo "$as_me: error: conditional \"COIN_HAS_MSK\" was never defined.
25630 Usually this means the macro was only invoked conditionally." >&2;}
25631 { (exit 1); exit 1; }; }
25632 fi
25633 if test -z "${COIN_HAS_XPR_TRUE}" && test -z "${COIN_HAS_XPR_FALSE}"; then
25634 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_XPR\" was never defined.
25635 Usually this means the macro was only invoked conditionally." >&5
25636 echo "$as_me: error: conditional \"COIN_HAS_XPR\" was never defined.
25637 Usually this means the macro was only invoked conditionally." >&2;}
25638 { (exit 1); exit 1; }; }
25639 fi
25640 if test -z "${COIN_HAS_GRB_TRUE}" && test -z "${COIN_HAS_GRB_FALSE}"; then
25641 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GRB\" was never defined.
25642 Usually this means the macro was only invoked conditionally." >&5
25643 echo "$as_me: error: conditional \"COIN_HAS_GRB\" was never defined.
25644 Usually this means the macro was only invoked conditionally." >&2;}
25645 { (exit 1); exit 1; }; }
25646 fi
25647 if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
25648 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
25649 Usually this means the macro was only invoked conditionally." >&5
25650 echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
25651 Usually this means the macro was only invoked conditionally." >&2;}
25652 { (exit 1); exit 1; }; }
25653 fi
25654 if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
25655 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
25656 Usually this means the macro was only invoked conditionally." >&5
25657 echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
25658 Usually this means the macro was only invoked conditionally." >&2;}
25659 { (exit 1); exit 1; }; }
25660 fi
25661
25662 : ${CONFIG_STATUS=./config.status}
25663 ac_clean_files_save=$ac_clean_files
25664 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25665 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25666 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25667 cat >$CONFIG_STATUS <<_ACEOF
25668 #! $SHELL
25669 # Generated by $as_me.
25670 # Run this file to recreate the current configuration.
25671 # Compiler output produced by configure, useful for debugging
25672 # configure, is in config.log if it exists.
25673
25674 debug=false
25675 ac_cs_recheck=false
25676 ac_cs_silent=false
25677 SHELL=\${CONFIG_SHELL-$SHELL}
25678 _ACEOF
25679
25680 cat >>$CONFIG_STATUS <<\_ACEOF
25681 ## --------------------- ##
25682 ## M4sh Initialization. ##
25683 ## --------------------- ##
25684
25685 # Be Bourne compatible
25686 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25687 emulate sh
25688 NULLCMD=:
25689 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25690 # is contrary to our usage. Disable this feature.
25691 alias -g '${1+"$@"}'='"$@"'
25692 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25693 set -o posix
25694 fi
25695 DUALCASE=1; export DUALCASE # for MKS sh
25696
25697 # Support unset when possible.
25698 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25699 as_unset=unset
25700 else
25701 as_unset=false
25702 fi
25703
25704
25705 # Work around bugs in pre-3.0 UWIN ksh.
25706 $as_unset ENV MAIL MAILPATH
25707 PS1='$ '
25708 PS2='> '
25709 PS4='+ '
25710
25711 # NLS nuisances.
25712 for as_var in \
25713 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25714 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25715 LC_TELEPHONE LC_TIME
25716 do
25717 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25718 eval $as_var=C; export $as_var
25719 else
25720 $as_unset $as_var
25721 fi
25722 done
25723
25724 # Required to use basename.
25725 if expr a : '\(a\)' >/dev/null 2>&1; then
25726 as_expr=expr
25727 else
25728 as_expr=false
25729 fi
25730
25731 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25732 as_basename=basename
25733 else
25734 as_basename=false
25735 fi
25736
25737
25738 # Name of the executable.
25739 as_me=`$as_basename "$0" ||
25740 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25741 X"$0" : 'X\(//\)$' \| \
25742 X"$0" : 'X\(/\)$' \| \
25743 . : '\(.\)' 2>/dev/null ||
25744 echo X/"$0" |
25745 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25746 /^X\/\(\/\/\)$/{ s//\1/; q; }
25747 /^X\/\(\/\).*/{ s//\1/; q; }
25748 s/.*/./; q'`
25749
25750
25751 # PATH needs CR, and LINENO needs CR and PATH.
25752 # Avoid depending upon Character Ranges.
25753 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25754 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25755 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25756 as_cr_digits='0123456789'
25757 as_cr_alnum=$as_cr_Letters$as_cr_digits
25758
25759 # The user is always right.
25760 if test "${PATH_SEPARATOR+set}" != set; then
25761 echo "#! /bin/sh" >conf$$.sh
25762 echo "exit 0" >>conf$$.sh
25763 chmod +x conf$$.sh
25764 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25765 PATH_SEPARATOR=';'
25766 else
25767 PATH_SEPARATOR=:
25768 fi
25769 rm -f conf$$.sh
25770 fi
25771
25772
25773 as_lineno_1=$LINENO
25774 as_lineno_2=$LINENO
25775 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25776 test "x$as_lineno_1" != "x$as_lineno_2" &&
25777 test "x$as_lineno_3" = "x$as_lineno_2" || {
25778 # Find who we are. Look in the path if we contain no path at all
25779 # relative or not.
25780 case $0 in
25781 *[\\/]* ) as_myself=$0 ;;
25782 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25783 for as_dir in $PATH
25784 do
25785 IFS=$as_save_IFS
25786 test -z "$as_dir" && as_dir=.
25787 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25788 done
25789
25790 ;;
25791 esac
25792 # We did not find ourselves, most probably we were run as `sh COMMAND'
25793 # in which case we are not to be found in the path.
25794 if test "x$as_myself" = x; then
25795 as_myself=$0
25796 fi
25797 if test ! -f "$as_myself"; then
25798 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25799 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25800 { (exit 1); exit 1; }; }
25801 fi
25802 case $CONFIG_SHELL in
25803 '')
25804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25805 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25806 do
25807 IFS=$as_save_IFS
25808 test -z "$as_dir" && as_dir=.
25809 for as_base in sh bash ksh sh5; do
25810 case $as_dir in
25811 /*)
25812 if ("$as_dir/$as_base" -c '
25813 as_lineno_1=$LINENO
25814 as_lineno_2=$LINENO
25815 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25816 test "x$as_lineno_1" != "x$as_lineno_2" &&
25817 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25818 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25819 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25820 CONFIG_SHELL=$as_dir/$as_base
25821 export CONFIG_SHELL
25822 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25823 fi;;
25824 esac
25825 done
25826 done
25827 ;;
25828 esac
25829
25830 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25831 # uniformly replaced by the line number. The first 'sed' inserts a
25832 # line-number line before each line; the second 'sed' does the real
25833 # work. The second script uses 'N' to pair each line-number line
25834 # with the numbered line, and appends trailing '-' during
25835 # substitution so that $LINENO is not a special case at line end.
25836 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25837 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25838 sed '=' <$as_myself |
25839 sed '
25840 N
25841 s,$,-,
25842 : loop
25843 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25844 t loop
25845 s,-$,,
25846 s,^['$as_cr_digits']*\n,,
25847 ' >$as_me.lineno &&
25848 chmod +x $as_me.lineno ||
25849 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25850 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25851 { (exit 1); exit 1; }; }
25852
25853 # Don't try to exec as it changes $[0], causing all sort of problems
25854 # (the dirname of $[0] is not the place where we might find the
25855 # original and so on. Autoconf is especially sensible to this).
25856 . ./$as_me.lineno
25857 # Exit status is that of the last command.
25858 exit
25859 }
25860
25861
25862 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25863 *c*,-n*) ECHO_N= ECHO_C='
25864 ' ECHO_T=' ' ;;
25865 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25866 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25867 esac
25868
25869 if expr a : '\(a\)' >/dev/null 2>&1; then
25870 as_expr=expr
25871 else
25872 as_expr=false
25873 fi
25874
25875 rm -f conf$$ conf$$.exe conf$$.file
25876 echo >conf$$.file
25877 if ln -s conf$$.file conf$$ 2>/dev/null; then
25878 # We could just check for DJGPP; but this test a) works b) is more generic
25879 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25880 if test -f conf$$.exe; then
25881 # Don't use ln at all; we don't have any links
25882 as_ln_s='cp -p'
25883 else
25884 as_ln_s='ln -s'
25885 fi
25886 elif ln conf$$.file conf$$ 2>/dev/null; then
25887 as_ln_s=ln
25888 else
25889 as_ln_s='cp -p'
25890 fi
25891 rm -f conf$$ conf$$.exe conf$$.file
25892
25893 if mkdir -p . 2>/dev/null; then
25894 as_mkdir_p=:
25895 else
25896 test -d ./-p && rmdir ./-p
25897 as_mkdir_p=false
25898 fi
25899
25900 as_executable_p="test -f"
25901
25902 # Sed expression to map a string onto a valid CPP name.
25903 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25904
25905 # Sed expression to map a string onto a valid variable name.
25906 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25907
25908
25909 # IFS
25910 # We need space, tab and new line, in precisely that order.
25911 as_nl='
25912 '
25913 IFS=" $as_nl"
25914
25915 # CDPATH.
25916 $as_unset CDPATH
25917
25918 exec 6>&1
25919
25920 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25921 # report actual input values of CONFIG_FILES etc. instead of their
25922 # values after options handling. Logging --version etc. is OK.
25923 exec 5>>config.log
25924 {
25925 echo
25926 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25927 ## Running $as_me. ##
25928 _ASBOX
25929 } >&5
25930 cat >&5 <<_CSEOF
25931
25932 This file was extended by Osi $as_me 0.108.11, which was
25933 generated by GNU Autoconf 2.59. Invocation command line was
25934
25935 CONFIG_FILES = $CONFIG_FILES
25936 CONFIG_HEADERS = $CONFIG_HEADERS
25937 CONFIG_LINKS = $CONFIG_LINKS
25938 CONFIG_COMMANDS = $CONFIG_COMMANDS
25939 $ $0 $@
25940
25941 _CSEOF
25942 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25943 echo >&5
25944 _ACEOF
25945
25946 # Files that config.status was made for.
25947 if test -n "$ac_config_files"; then
25948 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25949 fi
25950
25951 if test -n "$ac_config_headers"; then
25952 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25953 fi
25954
25955 if test -n "$ac_config_links"; then
25956 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25957 fi
25958
25959 if test -n "$ac_config_commands"; then
25960 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25961 fi
25962
25963 cat >>$CONFIG_STATUS <<\_ACEOF
25964
25965 ac_cs_usage="\
25966 \`$as_me' instantiates files from templates according to the
25967 current configuration.
25968
25969 Usage: $0 [OPTIONS] [FILE]...
25970
25971 -h, --help print this help, then exit
25972 -V, --version print version number, then exit
25973 -q, --quiet do not print progress messages
25974 -d, --debug don't remove temporary files
25975 --recheck update $as_me by reconfiguring in the same conditions
25976 --file=FILE[:TEMPLATE]
25977 instantiate the configuration file FILE
25978 --header=FILE[:TEMPLATE]
25979 instantiate the configuration header FILE
25980
25981 Configuration files:
25982 $config_files
25983
25984 Configuration headers:
25985 $config_headers
25986
25987 Configuration commands:
25988 $config_commands
25989
25990 Report bugs to <[email protected]>."
25991 _ACEOF
25992
25993 cat >>$CONFIG_STATUS <<_ACEOF
25994 ac_cs_version="\\
25995 Osi config.status 0.108.11
25996 configured by $0, generated by GNU Autoconf 2.59,
25997 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25998
25999 Copyright (C) 2003 Free Software Foundation, Inc.
26000 This config.status script is free software; the Free Software Foundation
26001 gives unlimited permission to copy, distribute and modify it."
26002 srcdir=$srcdir
26003 INSTALL="$INSTALL"
26004 _ACEOF
26005
26006 cat >>$CONFIG_STATUS <<\_ACEOF
26007 # If no file are specified by the user, then we need to provide default
26008 # value. By we need to know if files were specified by the user.
26009 ac_need_defaults=:
26010 while test $# != 0
26011 do
26012 case $1 in
26013 --*=*)
26014 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26015 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26016 ac_shift=:
26017 ;;
26018 -*)
26019 ac_option=$1
26020 ac_optarg=$2
26021 ac_shift=shift
26022 ;;
26023 *) # This is not an option, so the user has probably given explicit
26024 # arguments.
26025 ac_option=$1
26026 ac_need_defaults=false;;
26027 esac
26028
26029 case $ac_option in
26030 # Handling of the options.
26031 _ACEOF
26032 cat >>$CONFIG_STATUS <<\_ACEOF
26033 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26034 ac_cs_recheck=: ;;
26035 --version | --vers* | -V )
26036 echo "$ac_cs_version"; exit 0 ;;
26037 --he | --h)
26038 # Conflict between --help and --header
26039 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26040 Try \`$0 --help' for more information." >&5
26041 echo "$as_me: error: ambiguous option: $1
26042 Try \`$0 --help' for more information." >&2;}
26043 { (exit 1); exit 1; }; };;
26044 --help | --hel | -h )
26045 echo "$ac_cs_usage"; exit 0 ;;
26046 --debug | --d* | -d )
26047 debug=: ;;
26048 --file | --fil | --fi | --f )
26049 $ac_shift
26050 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26051 ac_need_defaults=false;;
26052 --header | --heade | --head | --hea )
26053 $ac_shift
26054 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26055 ac_need_defaults=false;;
26056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26057 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26058 ac_cs_silent=: ;;
26059
26060 # This is an error.
26061 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26062 Try \`$0 --help' for more information." >&5
26063 echo "$as_me: error: unrecognized option: $1
26064 Try \`$0 --help' for more information." >&2;}
26065 { (exit 1); exit 1; }; } ;;
26066
26067 *) ac_config_targets="$ac_config_targets $1" ;;
26068
26069 esac
26070 shift
26071 done
26072
26073 ac_configure_extra_args=
26074
26075 if $ac_cs_silent; then
26076 exec 6>/dev/null
26077 ac_configure_extra_args="$ac_configure_extra_args --silent"
26078 fi
26079
26080 _ACEOF
26081 cat >>$CONFIG_STATUS <<_ACEOF
26082 if \$ac_cs_recheck; then
26083 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26084 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26085 fi
26086
26087 _ACEOF
26088
26089 cat >>$CONFIG_STATUS <<_ACEOF
26090 #
26091 # INIT-COMMANDS section.
26092 #
26093
26094 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26095
26096 _ACEOF
26097
26098
26099
26100 cat >>$CONFIG_STATUS <<\_ACEOF
26101 for ac_config_target in $ac_config_targets
26102 do
26103 case "$ac_config_target" in
26104 # Handling of arguments.
26105 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26106 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26107 "src/Osi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Osi/Makefile" ;;
26108 "src/OsiCpx/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiCpx/Makefile" ;;
26109 "src/OsiGlpk/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiGlpk/Makefile" ;;
26110 "src/OsiMsk/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiMsk/Makefile" ;;
26111 "src/OsiXpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiXpr/Makefile" ;;
26112 "src/OsiGrb/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiGrb/Makefile" ;;
26113 "src/OsiSpx/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiSpx/Makefile" ;;
26114 "src/OsiCommonTest/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiCommonTest/Makefile" ;;
26115 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
26116 "osi.pc" ) CONFIG_FILES="$CONFIG_FILES osi.pc" ;;
26117 "osi-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-uninstalled.pc" ;;
26118 "osi-unittests.pc" ) CONFIG_FILES="$CONFIG_FILES osi-unittests.pc" ;;
26119 "osi-unittests-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-unittests-uninstalled.pc" ;;
26120 "osi-cplex.pc" ) CONFIG_FILES="$CONFIG_FILES osi-cplex.pc:src/OsiCpx/osi-cplex.pc.in" ;;
26121 "osi-cplex-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-cplex-uninstalled.pc:src/OsiCpx/osi-cplex-uninstalled.pc.in" ;;
26122 "osi-glpk.pc" ) CONFIG_FILES="$CONFIG_FILES osi-glpk.pc:src/OsiGlpk/osi-glpk.pc.in" ;;
26123 "osi-glpk-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-glpk-uninstalled.pc:src/OsiGlpk/osi-glpk-uninstalled.pc.in" ;;
26124 "osi-gurobi.pc" ) CONFIG_FILES="$CONFIG_FILES osi-gurobi.pc:src/OsiGrb/osi-gurobi.pc.in" ;;
26125 "osi-gurobi-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-gurobi-uninstalled.pc:src/OsiGrb/osi-gurobi-uninstalled.pc.in" ;;
26126 "osi-mosek.pc" ) CONFIG_FILES="$CONFIG_FILES osi-mosek.pc:src/OsiMsk/osi-mosek.pc.in" ;;
26127 "osi-mosek-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-mosek-uninstalled.pc:src/OsiMsk/osi-mosek-uninstalled.pc.in" ;;
26128 "osi-xpress.pc" ) CONFIG_FILES="$CONFIG_FILES osi-xpress.pc:src/OsiXpr/osi-xpress.pc.in" ;;
26129 "osi-xpress-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-xpress-uninstalled.pc:src/OsiXpr/osi-xpress-uninstalled.pc.in" ;;
26130 "osi-soplex.pc" ) CONFIG_FILES="$CONFIG_FILES osi-soplex.pc:src/OsiSpx/osi-soplex.pc.in" ;;
26131 "osi-soplex-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-soplex-uninstalled.pc:src/OsiSpx/osi-soplex-uninstalled.pc.in" ;;
26132 "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
26133 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26134 "src/Osi/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/Osi/config.h" ;;
26135 "src/Osi/config_osi.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/Osi/config_osi.h" ;;
26136 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26137 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26138 { (exit 1); exit 1; }; };;
26139 esac
26140 done
26141
26142 # If the user did not use the arguments to specify the items to instantiate,
26143 # then the envvar interface is used. Set only those that are not.
26144 # We use the long form for the default assignment because of an extremely
26145 # bizarre bug on SunOS 4.1.3.
26146 if $ac_need_defaults; then
26147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26149 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26150 fi
26151
26152 # Have a temporary directory for convenience. Make it in the build tree
26153 # simply because there is no reason to put it here, and in addition,
26154 # creating and moving files from /tmp can sometimes cause problems.
26155 # Create a temporary directory, and hook for its removal unless debugging.
26156 $debug ||
26157 {
26158 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26159 trap '{ (exit 1); exit 1; }' 1 2 13 15
26160 }
26161
26162 # Create a (secure) tmp directory for tmp files.
26163
26164 {
26165 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26166 test -n "$tmp" && test -d "$tmp"
26167 } ||
26168 {
26169 tmp=./confstat$$-$RANDOM
26170 (umask 077 && mkdir $tmp)
26171 } ||
26172 {
26173 echo "$me: cannot create a temporary directory in ." >&2
26174 { (exit 1); exit 1; }
26175 }
26176
26177 _ACEOF
26178
26179 cat >>$CONFIG_STATUS <<_ACEOF
26180
26181 #
26182 # CONFIG_FILES section.
26183 #
26184
26185 # No need to generate the scripts if there are no CONFIG_FILES.
26186 # This happens for instance when ./config.status config.h
26187 if test -n "\$CONFIG_FILES"; then
26188 # Protect against being on the right side of a sed subst in config.status.
26189 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26190 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26191 s,@SHELL@,$SHELL,;t t
26192 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26193 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26194 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26195 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26196 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26197 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26198 s,@exec_prefix@,$exec_prefix,;t t
26199 s,@prefix@,$prefix,;t t
26200 s,@program_transform_name@,$program_transform_name,;t t
26201 s,@bindir@,$bindir,;t t
26202 s,@sbindir@,$sbindir,;t t
26203 s,@libexecdir@,$libexecdir,;t t
26204 s,@datadir@,$datadir,;t t
26205 s,@sysconfdir@,$sysconfdir,;t t
26206 s,@sharedstatedir@,$sharedstatedir,;t t
26207 s,@localstatedir@,$localstatedir,;t t
26208 s,@libdir@,$libdir,;t t
26209 s,@includedir@,$includedir,;t t
26210 s,@oldincludedir@,$oldincludedir,;t t
26211 s,@infodir@,$infodir,;t t
26212 s,@mandir@,$mandir,;t t
26213 s,@build_alias@,$build_alias,;t t
26214 s,@host_alias@,$host_alias,;t t
26215 s,@target_alias@,$target_alias,;t t
26216 s,@DEFS@,$DEFS,;t t
26217 s,@ECHO_C@,$ECHO_C,;t t
26218 s,@ECHO_N@,$ECHO_N,;t t
26219 s,@ECHO_T@,$ECHO_T,;t t
26220 s,@LIBS@,$LIBS,;t t
26221 s,@build@,$build,;t t
26222 s,@build_cpu@,$build_cpu,;t t
26223 s,@build_vendor@,$build_vendor,;t t
26224 s,@build_os@,$build_os,;t t
26225 s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
26226 s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
26227 s,@have_svnversion@,$have_svnversion,;t t
26228 s,@OSI_SVN_REV@,$OSI_SVN_REV,;t t
26229 s,@CDEFS@,$CDEFS,;t t
26230 s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
26231 s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
26232 s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
26233 s,@sol_cc_compiler@,$sol_cc_compiler,;t t
26234 s,@CC@,$CC,;t t
26235 s,@CFLAGS@,$CFLAGS,;t t
26236 s,@LDFLAGS@,$LDFLAGS,;t t
26237 s,@CPPFLAGS@,$CPPFLAGS,;t t
26238 s,@ac_ct_CC@,$ac_ct_CC,;t t
26239 s,@EXEEXT@,$EXEEXT,;t t
26240 s,@OBJEXT@,$OBJEXT,;t t
26241 s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
26242 s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
26243 s,@MPICC@,$MPICC,;t t
26244 s,@CXXDEFS@,$CXXDEFS,;t t
26245 s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
26246 s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
26247 s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
26248 s,@CXX@,$CXX,;t t
26249 s,@CXXFLAGS@,$CXXFLAGS,;t t
26250 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26251 s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
26252 s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
26253 s,@MPICXX@,$MPICXX,;t t
26254 s,@EGREP@,$EGREP,;t t
26255 s,@LN_S@,$LN_S,;t t
26256 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26257 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26258 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26259 s,@CYGPATH_W@,$CYGPATH_W,;t t
26260 s,@PACKAGE@,$PACKAGE,;t t
26261 s,@VERSION@,$VERSION,;t t
26262 s,@ACLOCAL@,$ACLOCAL,;t t
26263 s,@AUTOCONF@,$AUTOCONF,;t t
26264 s,@AUTOMAKE@,$AUTOMAKE,;t t
26265 s,@AUTOHEADER@,$AUTOHEADER,;t t
26266 s,@MAKEINFO@,$MAKEINFO,;t t
26267 s,@install_sh@,$install_sh,;t t
26268 s,@STRIP@,$STRIP,;t t
26269 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26270 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26271 s,@mkdir_p@,$mkdir_p,;t t
26272 s,@AWK@,$AWK,;t t
26273 s,@SET_MAKE@,$SET_MAKE,;t t
26274 s,@am__leading_dot@,$am__leading_dot,;t t
26275 s,@AMTAR@,$AMTAR,;t t
26276 s,@am__tar@,$am__tar,;t t
26277 s,@am__untar@,$am__untar,;t t
26278 s,@DEPDIR@,$DEPDIR,;t t
26279 s,@am__include@,$am__include,;t t
26280 s,@am__quote@,$am__quote,;t t
26281 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26282 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26283 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26284 s,@CCDEPMODE@,$CCDEPMODE,;t t
26285 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26286 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26287 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26288 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26289 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26290 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26291 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26292 s,@MAINT@,$MAINT,;t t
26293 s,@LIBTOOLM4@,$LIBTOOLM4,;t t
26294 s,@have_autoconf@,$have_autoconf,;t t
26295 s,@have_automake@,$have_automake,;t t
26296 s,@have_svn@,$have_svn,;t t
26297 s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
26298 s,@AUX_DIR@,$AUX_DIR,;t t
26299 s,@abs_source_dir@,$abs_source_dir,;t t
26300 s,@abs_lib_dir@,$abs_lib_dir,;t t
26301 s,@abs_include_dir@,$abs_include_dir,;t t
26302 s,@abs_bin_dir@,$abs_bin_dir,;t t
26303 s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
26304 s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
26305 s,@host@,$host,;t t
26306 s,@host_cpu@,$host_cpu,;t t
26307 s,@host_vendor@,$host_vendor,;t t
26308 s,@host_os@,$host_os,;t t
26309 s,@ECHO@,$ECHO,;t t
26310 s,@AR@,$AR,;t t
26311 s,@ac_ct_AR@,$ac_ct_AR,;t t
26312 s,@RANLIB@,$RANLIB,;t t
26313 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26314 s,@CPP@,$CPP,;t t
26315 s,@CXXCPP@,$CXXCPP,;t t
26316 s,@F77@,$F77,;t t
26317 s,@FFLAGS@,$FFLAGS,;t t
26318 s,@ac_ct_F77@,$ac_ct_F77,;t t
26319 s,@LIBTOOL@,$LIBTOOL,;t t
26320 s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
26321 s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
26322 s,@dos2unix@,$dos2unix,;t t
26323 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
26324 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
26325 s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
26326 s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
26327 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
26328 s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
26329 s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
26330 s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
26331 s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
26332 s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
26333 s,@COINUTILS_LIBS@,$COINUTILS_LIBS,;t t
26334 s,@COINUTILS_CFLAGS@,$COINUTILS_CFLAGS,;t t
26335 s,@COINUTILS_DATA@,$COINUTILS_DATA,;t t
26336 s,@COINUTILS_DEPENDENCIES@,$COINUTILS_DEPENDENCIES,;t t
26337 s,@COINUTILS_LIBS_INSTALLED@,$COINUTILS_LIBS_INSTALLED,;t t
26338 s,@COINUTILS_CFLAGS_INSTALLED@,$COINUTILS_CFLAGS_INSTALLED,;t t
26339 s,@COINUTILS_DATA_INSTALLED@,$COINUTILS_DATA_INSTALLED,;t t
26340 s,@OSILIB_CFLAGS@,$OSILIB_CFLAGS,;t t
26341 s,@OSILIB_LIBS@,$OSILIB_LIBS,;t t
26342 s,@OSILIB_PCLIBS@,$OSILIB_PCLIBS,;t t
26343 s,@OSILIB_PCREQUIRES@,$OSILIB_PCREQUIRES,;t t
26344 s,@OSILIB_DEPENDENCIES@,$OSILIB_DEPENDENCIES,;t t
26345 s,@OSILIB_CFLAGS_INSTALLED@,$OSILIB_CFLAGS_INSTALLED,;t t
26346 s,@OSILIB_LIBS_INSTALLED@,$OSILIB_LIBS_INSTALLED,;t t
26347 s,@COIN_HAS_COINUTILS_TRUE@,$COIN_HAS_COINUTILS_TRUE,;t t
26348 s,@COIN_HAS_COINUTILS_FALSE@,$COIN_HAS_COINUTILS_FALSE,;t t
26349 s,@GLPK_LIBS@,$GLPK_LIBS,;t t
26350 s,@GLPK_CFLAGS@,$GLPK_CFLAGS,;t t
26351 s,@GLPK_DATA@,$GLPK_DATA,;t t
26352 s,@GLPK_DEPENDENCIES@,$GLPK_DEPENDENCIES,;t t
26353 s,@GLPK_LIBS_INSTALLED@,$GLPK_LIBS_INSTALLED,;t t
26354 s,@GLPK_CFLAGS_INSTALLED@,$GLPK_CFLAGS_INSTALLED,;t t
26355 s,@GLPK_DATA_INSTALLED@,$GLPK_DATA_INSTALLED,;t t
26356 s,@OSIGLPKLIB_CFLAGS@,$OSIGLPKLIB_CFLAGS,;t t
26357 s,@OSIGLPKLIB_LIBS@,$OSIGLPKLIB_LIBS,;t t
26358 s,@OSIGLPKLIB_PCLIBS@,$OSIGLPKLIB_PCLIBS,;t t
26359 s,@OSIGLPKLIB_PCREQUIRES@,$OSIGLPKLIB_PCREQUIRES,;t t
26360 s,@OSIGLPKLIB_DEPENDENCIES@,$OSIGLPKLIB_DEPENDENCIES,;t t
26361 s,@OSIGLPKLIB_CFLAGS_INSTALLED@,$OSIGLPKLIB_CFLAGS_INSTALLED,;t t
26362 s,@OSIGLPKLIB_LIBS_INSTALLED@,$OSIGLPKLIB_LIBS_INSTALLED,;t t
26363 s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t
26364 s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t
26365 s,@SOPLEX_LIBS@,$SOPLEX_LIBS,;t t
26366 s,@SOPLEX_CFLAGS@,$SOPLEX_CFLAGS,;t t
26367 s,@SOPLEX_DATA@,$SOPLEX_DATA,;t t
26368 s,@SOPLEX_DEPENDENCIES@,$SOPLEX_DEPENDENCIES,;t t
26369 s,@SOPLEX_LIBS_INSTALLED@,$SOPLEX_LIBS_INSTALLED,;t t
26370 s,@SOPLEX_CFLAGS_INSTALLED@,$SOPLEX_CFLAGS_INSTALLED,;t t
26371 s,@SOPLEX_DATA_INSTALLED@,$SOPLEX_DATA_INSTALLED,;t t
26372 s,@OSISPXLIB_CFLAGS@,$OSISPXLIB_CFLAGS,;t t
26373 s,@OSISPXLIB_LIBS@,$OSISPXLIB_LIBS,;t t
26374 s,@OSISPXLIB_PCLIBS@,$OSISPXLIB_PCLIBS,;t t
26375 s,@OSISPXLIB_PCREQUIRES@,$OSISPXLIB_PCREQUIRES,;t t
26376 s,@OSISPXLIB_DEPENDENCIES@,$OSISPXLIB_DEPENDENCIES,;t t
26377 s,@OSISPXLIB_CFLAGS_INSTALLED@,$OSISPXLIB_CFLAGS_INSTALLED,;t t
26378 s,@OSISPXLIB_LIBS_INSTALLED@,$OSISPXLIB_LIBS_INSTALLED,;t t
26379 s,@COIN_HAS_SOPLEX_TRUE@,$COIN_HAS_SOPLEX_TRUE,;t t
26380 s,@COIN_HAS_SOPLEX_FALSE@,$COIN_HAS_SOPLEX_FALSE,;t t
26381 s,@SAMPLE_LIBS@,$SAMPLE_LIBS,;t t
26382 s,@SAMPLE_CFLAGS@,$SAMPLE_CFLAGS,;t t
26383 s,@SAMPLE_DATA@,$SAMPLE_DATA,;t t
26384 s,@SAMPLE_DEPENDENCIES@,$SAMPLE_DEPENDENCIES,;t t
26385 s,@SAMPLE_LIBS_INSTALLED@,$SAMPLE_LIBS_INSTALLED,;t t
26386 s,@SAMPLE_CFLAGS_INSTALLED@,$SAMPLE_CFLAGS_INSTALLED,;t t
26387 s,@SAMPLE_DATA_INSTALLED@,$SAMPLE_DATA_INSTALLED,;t t
26388 s,@COIN_HAS_SAMPLE_TRUE@,$COIN_HAS_SAMPLE_TRUE,;t t
26389 s,@COIN_HAS_SAMPLE_FALSE@,$COIN_HAS_SAMPLE_FALSE,;t t
26390 s,@NETLIB_LIBS@,$NETLIB_LIBS,;t t
26391 s,@NETLIB_CFLAGS@,$NETLIB_CFLAGS,;t t
26392 s,@NETLIB_DATA@,$NETLIB_DATA,;t t
26393 s,@NETLIB_DEPENDENCIES@,$NETLIB_DEPENDENCIES,;t t
26394 s,@NETLIB_LIBS_INSTALLED@,$NETLIB_LIBS_INSTALLED,;t t
26395 s,@NETLIB_CFLAGS_INSTALLED@,$NETLIB_CFLAGS_INSTALLED,;t t
26396 s,@NETLIB_DATA_INSTALLED@,$NETLIB_DATA_INSTALLED,;t t
26397 s,@COIN_HAS_NETLIB_TRUE@,$COIN_HAS_NETLIB_TRUE,;t t
26398 s,@COIN_HAS_NETLIB_FALSE@,$COIN_HAS_NETLIB_FALSE,;t t
26399 s,@CPXINCDIR@,$CPXINCDIR,;t t
26400 s,@CPXLIB@,$CPXLIB,;t t
26401 s,@COIN_HAS_CPX_TRUE@,$COIN_HAS_CPX_TRUE,;t t
26402 s,@COIN_HAS_CPX_FALSE@,$COIN_HAS_CPX_FALSE,;t t
26403 s,@MSKINCDIR@,$MSKINCDIR,;t t
26404 s,@MSKLIB@,$MSKLIB,;t t
26405 s,@COIN_HAS_MSK_TRUE@,$COIN_HAS_MSK_TRUE,;t t
26406 s,@COIN_HAS_MSK_FALSE@,$COIN_HAS_MSK_FALSE,;t t
26407 s,@XPRINCDIR@,$XPRINCDIR,;t t
26408 s,@XPRLIB@,$XPRLIB,;t t
26409 s,@COIN_HAS_XPR_TRUE@,$COIN_HAS_XPR_TRUE,;t t
26410 s,@COIN_HAS_XPR_FALSE@,$COIN_HAS_XPR_FALSE,;t t
26411 s,@GRBINCDIR@,$GRBINCDIR,;t t
26412 s,@GRBLIB@,$GRBLIB,;t t
26413 s,@COIN_HAS_GRB_TRUE@,$COIN_HAS_GRB_TRUE,;t t
26414 s,@COIN_HAS_GRB_FALSE@,$COIN_HAS_GRB_FALSE,;t t
26415 s,@OSI_EXAMPLES_SOLVER_NAME@,$OSI_EXAMPLES_SOLVER_NAME,;t t
26416 s,@OSI_EXAMPLES_SOLVER_CFLAGS@,$OSI_EXAMPLES_SOLVER_CFLAGS,;t t
26417 s,@OSI_EXAMPLES_SOLVER_LIBS@,$OSI_EXAMPLES_SOLVER_LIBS,;t t
26418 s,@OSI_EXAMPLES_SOLVER_PCNAME@,$OSI_EXAMPLES_SOLVER_PCNAME,;t t
26419 s,@coin_have_doxygen@,$coin_have_doxygen,;t t
26420 s,@coin_have_latex@,$coin_have_latex,;t t
26421 s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
26422 s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
26423 s,@coin_doxy_logname@,$coin_doxy_logname,;t t
26424 s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
26425 s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
26426 s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
26427 s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
26428 s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
26429 s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
26430 s,@LIBEXT@,$LIBEXT,;t t
26431 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
26432 s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
26433 s,@LIBOBJS@,$LIBOBJS,;t t
26434 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26435 CEOF
26436
26437 _ACEOF
26438
26439 cat >>$CONFIG_STATUS <<\_ACEOF
26440 # Split the substitutions into bite-sized pieces for seds with
26441 # small command number limits, like on Digital OSF/1 and HP-UX.
26442 ac_max_sed_lines=48
26443 ac_sed_frag=1 # Number of current file.
26444 ac_beg=1 # First line for current file.
26445 ac_end=$ac_max_sed_lines # Line after last line for current file.
26446 ac_more_lines=:
26447 ac_sed_cmds=
26448 while $ac_more_lines; do
26449 if test $ac_beg -gt 1; then
26450 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26451 else
26452 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26453 fi
26454 if test ! -s $tmp/subs.frag; then
26455 ac_more_lines=false
26456 else
26457 # The purpose of the label and of the branching condition is to
26458 # speed up the sed processing (if there are no `@' at all, there
26459 # is no need to browse any of the substitutions).
26460 # These are the two extra sed commands mentioned above.
26461 (echo ':t
26462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26463 if test -z "$ac_sed_cmds"; then
26464 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26465 else
26466 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26467 fi
26468 ac_sed_frag=`expr $ac_sed_frag + 1`
26469 ac_beg=$ac_end
26470 ac_end=`expr $ac_end + $ac_max_sed_lines`
26471 fi
26472 done
26473 if test -z "$ac_sed_cmds"; then
26474 ac_sed_cmds=cat
26475 fi
26476 fi # test -n "$CONFIG_FILES"
26477
26478 _ACEOF
26479 cat >>$CONFIG_STATUS <<\_ACEOF
26480 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26481 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26482 case $ac_file in
26483 - | *:- | *:-:* ) # input from stdin
26484 cat >$tmp/stdin
26485 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26486 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26487 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26488 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26489 * ) ac_file_in=$ac_file.in ;;
26490 esac
26491
26492 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26493 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26495 X"$ac_file" : 'X\(//\)[^/]' \| \
26496 X"$ac_file" : 'X\(//\)$' \| \
26497 X"$ac_file" : 'X\(/\)' \| \
26498 . : '\(.\)' 2>/dev/null ||
26499 echo X"$ac_file" |
26500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26502 /^X\(\/\/\)$/{ s//\1/; q; }
26503 /^X\(\/\).*/{ s//\1/; q; }
26504 s/.*/./; q'`
26505 { if $as_mkdir_p; then
26506 mkdir -p "$ac_dir"
26507 else
26508 as_dir="$ac_dir"
26509 as_dirs=
26510 while test ! -d "$as_dir"; do
26511 as_dirs="$as_dir $as_dirs"
26512 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26514 X"$as_dir" : 'X\(//\)[^/]' \| \
26515 X"$as_dir" : 'X\(//\)$' \| \
26516 X"$as_dir" : 'X\(/\)' \| \
26517 . : '\(.\)' 2>/dev/null ||
26518 echo X"$as_dir" |
26519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26520 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26521 /^X\(\/\/\)$/{ s//\1/; q; }
26522 /^X\(\/\).*/{ s//\1/; q; }
26523 s/.*/./; q'`
26524 done
26525 test ! -n "$as_dirs" || mkdir $as_dirs
26526 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26527 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26528 { (exit 1); exit 1; }; }; }
26529
26530 ac_builddir=.
26531
26532 if test "$ac_dir" != .; then
26533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26534 # A "../" for each directory in $ac_dir_suffix.
26535 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26536 else
26537 ac_dir_suffix= ac_top_builddir=
26538 fi
26539
26540 case $srcdir in
26541 .) # No --srcdir option. We are building in place.
26542 ac_srcdir=.
26543 if test -z "$ac_top_builddir"; then
26544 ac_top_srcdir=.
26545 else
26546 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26547 fi ;;
26548 [\\/]* | ?:[\\/]* ) # Absolute path.
26549 ac_srcdir=$srcdir$ac_dir_suffix;
26550 ac_top_srcdir=$srcdir ;;
26551 *) # Relative path.
26552 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26553 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26554 esac
26555
26556 # Do not use `cd foo && pwd` to compute absolute paths, because
26557 # the directories may not exist.
26558 case `pwd` in
26559 .) ac_abs_builddir="$ac_dir";;
26560 *)
26561 case "$ac_dir" in
26562 .) ac_abs_builddir=`pwd`;;
26563 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26564 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26565 esac;;
26566 esac
26567 case $ac_abs_builddir in
26568 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26569 *)
26570 case ${ac_top_builddir}. in
26571 .) ac_abs_top_builddir=$ac_abs_builddir;;
26572 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26573 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26574 esac;;
26575 esac
26576 case $ac_abs_builddir in
26577 .) ac_abs_srcdir=$ac_srcdir;;
26578 *)
26579 case $ac_srcdir in
26580 .) ac_abs_srcdir=$ac_abs_builddir;;
26581 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26582 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26583 esac;;
26584 esac
26585 case $ac_abs_builddir in
26586 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26587 *)
26588 case $ac_top_srcdir in
26589 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26590 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26591 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26592 esac;;
26593 esac
26594
26595
26596 case $INSTALL in
26597 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26598 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26599 esac
26600
26601 if test x"$ac_file" != x-; then
26602 { echo "$as_me:$LINENO: creating $ac_file" >&5
26603 echo "$as_me: creating $ac_file" >&6;}
26604 rm -f "$ac_file"
26605 fi
26606 # Let's still pretend it is `configure' which instantiates (i.e., don't
26607 # use $as_me), people would be surprised to read:
26608 # /* config.h. Generated by config.status. */
26609 if test x"$ac_file" = x-; then
26610 configure_input=
26611 else
26612 configure_input="$ac_file. "
26613 fi
26614 configure_input=$configure_input"Generated from `echo $ac_file_in |
26615 sed 's,.*/,,'` by configure."
26616
26617 # First look for the input files in the build tree, otherwise in the
26618 # src tree.
26619 ac_file_inputs=`IFS=:
26620 for f in $ac_file_in; do
26621 case $f in
26622 -) echo $tmp/stdin ;;
26623 [\\/$]*)
26624 # Absolute (can't be DOS-style, as IFS=:)
26625 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26626 echo "$as_me: error: cannot find input file: $f" >&2;}
26627 { (exit 1); exit 1; }; }
26628 echo "$f";;
26629 *) # Relative
26630 if test -f "$f"; then
26631 # Build tree
26632 echo "$f"
26633 elif test -f "$srcdir/$f"; then
26634 # Source tree
26635 echo "$srcdir/$f"
26636 else
26637 # /dev/null tree
26638 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26639 echo "$as_me: error: cannot find input file: $f" >&2;}
26640 { (exit 1); exit 1; }; }
26641 fi;;
26642 esac
26643 done` || { (exit 1); exit 1; }
26644 _ACEOF
26645 cat >>$CONFIG_STATUS <<_ACEOF
26646 sed "$ac_vpsub
26647 $extrasub
26648 _ACEOF
26649 cat >>$CONFIG_STATUS <<\_ACEOF
26650 :t
26651 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26652 s,@configure_input@,$configure_input,;t t
26653 s,@srcdir@,$ac_srcdir,;t t
26654 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26655 s,@top_srcdir@,$ac_top_srcdir,;t t
26656 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26657 s,@builddir@,$ac_builddir,;t t
26658 s,@abs_builddir@,$ac_abs_builddir,;t t
26659 s,@top_builddir@,$ac_top_builddir,;t t
26660 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26661 s,@INSTALL@,$ac_INSTALL,;t t
26662 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26663 rm -f $tmp/stdin
26664 if test x"$ac_file" != x-; then
26665 mv $tmp/out $ac_file
26666 else
26667 cat $tmp/out
26668 rm -f $tmp/out
26669 fi
26670
26671 done
26672 _ACEOF
26673 cat >>$CONFIG_STATUS <<\_ACEOF
26674
26675 #
26676 # CONFIG_HEADER section.
26677 #
26678
26679 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26680 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26681 #
26682 # ac_d sets the value in "#define NAME VALUE" lines.
26683 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26684 ac_dB='[ ].*$,\1#\2'
26685 ac_dC=' '
26686 ac_dD=',;t'
26687 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26688 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26689 ac_uB='$,\1#\2define\3'
26690 ac_uC=' '
26691 ac_uD=',;t'
26692
26693 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26694 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26695 case $ac_file in
26696 - | *:- | *:-:* ) # input from stdin
26697 cat >$tmp/stdin
26698 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26699 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26700 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26701 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26702 * ) ac_file_in=$ac_file.in ;;
26703 esac
26704
26705 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26706 echo "$as_me: creating $ac_file" >&6;}
26707
26708 # First look for the input files in the build tree, otherwise in the
26709 # src tree.
26710 ac_file_inputs=`IFS=:
26711 for f in $ac_file_in; do
26712 case $f in
26713 -) echo $tmp/stdin ;;
26714 [\\/$]*)
26715 # Absolute (can't be DOS-style, as IFS=:)
26716 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26717 echo "$as_me: error: cannot find input file: $f" >&2;}
26718 { (exit 1); exit 1; }; }
26719 # Do quote $f, to prevent DOS paths from being IFS'd.
26720 echo "$f";;
26721 *) # Relative
26722 if test -f "$f"; then
26723 # Build tree
26724 echo "$f"
26725 elif test -f "$srcdir/$f"; then
26726 # Source tree
26727 echo "$srcdir/$f"
26728 else
26729 # /dev/null tree
26730 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26731 echo "$as_me: error: cannot find input file: $f" >&2;}
26732 { (exit 1); exit 1; }; }
26733 fi;;
26734 esac
26735 done` || { (exit 1); exit 1; }
26736 # Remove the trailing spaces.
26737 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26738
26739 _ACEOF
26740
26741 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26742 # `conftest.undefs', that substitutes the proper values into
26743 # config.h.in to produce config.h. The first handles `#define'
26744 # templates, and the second `#undef' templates.
26745 # And first: Protect against being on the right side of a sed subst in
26746 # config.status. Protect against being in an unquoted here document
26747 # in config.status.
26748 rm -f conftest.defines conftest.undefs
26749 # Using a here document instead of a string reduces the quoting nightmare.
26750 # Putting comments in sed scripts is not portable.
26751 #
26752 # `end' is used to avoid that the second main sed command (meant for
26753 # 0-ary CPP macros) applies to n-ary macro definitions.
26754 # See the Autoconf documentation for `clear'.
26755 cat >confdef2sed.sed <<\_ACEOF
26756 s/[\\&,]/\\&/g
26757 s,[\\$`],\\&,g
26758 t clear
26759 : clear
26760 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26761 t end
26762 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26763 : end
26764 _ACEOF
26765 # If some macros were called several times there might be several times
26766 # the same #defines, which is useless. Nevertheless, we may not want to
26767 # sort them, since we want the *last* AC-DEFINE to be honored.
26768 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26769 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26770 rm -f confdef2sed.sed
26771
26772 # This sed command replaces #undef with comments. This is necessary, for
26773 # example, in the case of _POSIX_SOURCE, which is predefined and required
26774 # on some systems where configure will not decide to define it.
26775 cat >>conftest.undefs <<\_ACEOF
26776 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26777 _ACEOF
26778
26779 # Break up conftest.defines because some shells have a limit on the size
26780 # of here documents, and old seds have small limits too (100 cmds).
26781 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26782 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26783 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26784 echo ' :' >>$CONFIG_STATUS
26785 rm -f conftest.tail
26786 while grep . conftest.defines >/dev/null
26787 do
26788 # Write a limited-size here document to $tmp/defines.sed.
26789 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26790 # Speed up: don't consider the non `#define' lines.
26791 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26792 # Work around the forget-to-reset-the-flag bug.
26793 echo 't clr' >>$CONFIG_STATUS
26794 echo ': clr' >>$CONFIG_STATUS
26795 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26796 echo 'CEOF
26797 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26798 rm -f $tmp/in
26799 mv $tmp/out $tmp/in
26800 ' >>$CONFIG_STATUS
26801 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26802 rm -f conftest.defines
26803 mv conftest.tail conftest.defines
26804 done
26805 rm -f conftest.defines
26806 echo ' fi # grep' >>$CONFIG_STATUS
26807 echo >>$CONFIG_STATUS
26808
26809 # Break up conftest.undefs because some shells have a limit on the size
26810 # of here documents, and old seds have small limits too (100 cmds).
26811 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26812 rm -f conftest.tail
26813 while grep . conftest.undefs >/dev/null
26814 do
26815 # Write a limited-size here document to $tmp/undefs.sed.
26816 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26817 # Speed up: don't consider the non `#undef'
26818 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26819 # Work around the forget-to-reset-the-flag bug.
26820 echo 't clr' >>$CONFIG_STATUS
26821 echo ': clr' >>$CONFIG_STATUS
26822 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26823 echo 'CEOF
26824 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26825 rm -f $tmp/in
26826 mv $tmp/out $tmp/in
26827 ' >>$CONFIG_STATUS
26828 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26829 rm -f conftest.undefs
26830 mv conftest.tail conftest.undefs
26831 done
26832 rm -f conftest.undefs
26833
26834 cat >>$CONFIG_STATUS <<\_ACEOF
26835 # Let's still pretend it is `configure' which instantiates (i.e., don't
26836 # use $as_me), people would be surprised to read:
26837 # /* config.h. Generated by config.status. */
26838 if test x"$ac_file" = x-; then
26839 echo "/* Generated by configure. */" >$tmp/config.h
26840 else
26841 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26842 fi
26843 cat $tmp/in >>$tmp/config.h
26844 rm -f $tmp/in
26845 if test x"$ac_file" != x-; then
26846 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26847 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26848 echo "$as_me: $ac_file is unchanged" >&6;}
26849 else
26850 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26851 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26852 X"$ac_file" : 'X\(//\)[^/]' \| \
26853 X"$ac_file" : 'X\(//\)$' \| \
26854 X"$ac_file" : 'X\(/\)' \| \
26855 . : '\(.\)' 2>/dev/null ||
26856 echo X"$ac_file" |
26857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26859 /^X\(\/\/\)$/{ s//\1/; q; }
26860 /^X\(\/\).*/{ s//\1/; q; }
26861 s/.*/./; q'`
26862 { if $as_mkdir_p; then
26863 mkdir -p "$ac_dir"
26864 else
26865 as_dir="$ac_dir"
26866 as_dirs=
26867 while test ! -d "$as_dir"; do
26868 as_dirs="$as_dir $as_dirs"
26869 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26871 X"$as_dir" : 'X\(//\)[^/]' \| \
26872 X"$as_dir" : 'X\(//\)$' \| \
26873 X"$as_dir" : 'X\(/\)' \| \
26874 . : '\(.\)' 2>/dev/null ||
26875 echo X"$as_dir" |
26876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26878 /^X\(\/\/\)$/{ s//\1/; q; }
26879 /^X\(\/\).*/{ s//\1/; q; }
26880 s/.*/./; q'`
26881 done
26882 test ! -n "$as_dirs" || mkdir $as_dirs
26883 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26884 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26885 { (exit 1); exit 1; }; }; }
26886
26887 rm -f $ac_file
26888 mv $tmp/config.h $ac_file
26889 fi
26890 else
26891 cat $tmp/config.h
26892 rm -f $tmp/config.h
26893 fi
26894 # Compute $ac_file's index in $config_headers.
26895 _am_stamp_count=1
26896 for _am_header in $config_headers :; do
26897 case $_am_header in
26898 $ac_file | $ac_file:* )
26899 break ;;
26900 * )
26901 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26902 esac
26903 done
26904 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26905 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26906 X$ac_file : 'X\(//\)[^/]' \| \
26907 X$ac_file : 'X\(//\)$' \| \
26908 X$ac_file : 'X\(/\)' \| \
26909 . : '\(.\)' 2>/dev/null ||
26910 echo X$ac_file |
26911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26913 /^X\(\/\/\)$/{ s//\1/; q; }
26914 /^X\(\/\).*/{ s//\1/; q; }
26915 s/.*/./; q'`/stamp-h$_am_stamp_count
26916 done
26917 _ACEOF
26918 cat >>$CONFIG_STATUS <<\_ACEOF
26919
26920 #
26921 # CONFIG_COMMANDS section.
26922 #
26923 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26924 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26925 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26926 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26927 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26928 X"$ac_dest" : 'X\(//\)[^/]' \| \
26929 X"$ac_dest" : 'X\(//\)$' \| \
26930 X"$ac_dest" : 'X\(/\)' \| \
26931 . : '\(.\)' 2>/dev/null ||
26932 echo X"$ac_dest" |
26933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26935 /^X\(\/\/\)$/{ s//\1/; q; }
26936 /^X\(\/\).*/{ s//\1/; q; }
26937 s/.*/./; q'`
26938 { if $as_mkdir_p; then
26939 mkdir -p "$ac_dir"
26940 else
26941 as_dir="$ac_dir"
26942 as_dirs=
26943 while test ! -d "$as_dir"; do
26944 as_dirs="$as_dir $as_dirs"
26945 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26947 X"$as_dir" : 'X\(//\)[^/]' \| \
26948 X"$as_dir" : 'X\(//\)$' \| \
26949 X"$as_dir" : 'X\(/\)' \| \
26950 . : '\(.\)' 2>/dev/null ||
26951 echo X"$as_dir" |
26952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26953 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26954 /^X\(\/\/\)$/{ s//\1/; q; }
26955 /^X\(\/\).*/{ s//\1/; q; }
26956 s/.*/./; q'`
26957 done
26958 test ! -n "$as_dirs" || mkdir $as_dirs
26959 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26960 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26961 { (exit 1); exit 1; }; }; }
26962
26963 ac_builddir=.
26964
26965 if test "$ac_dir" != .; then
26966 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26967 # A "../" for each directory in $ac_dir_suffix.
26968 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26969 else
26970 ac_dir_suffix= ac_top_builddir=
26971 fi
26972
26973 case $srcdir in
26974 .) # No --srcdir option. We are building in place.
26975 ac_srcdir=.
26976 if test -z "$ac_top_builddir"; then
26977 ac_top_srcdir=.
26978 else
26979 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26980 fi ;;
26981 [\\/]* | ?:[\\/]* ) # Absolute path.
26982 ac_srcdir=$srcdir$ac_dir_suffix;
26983 ac_top_srcdir=$srcdir ;;
26984 *) # Relative path.
26985 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26986 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26987 esac
26988
26989 # Do not use `cd foo && pwd` to compute absolute paths, because
26990 # the directories may not exist.
26991 case `pwd` in
26992 .) ac_abs_builddir="$ac_dir";;
26993 *)
26994 case "$ac_dir" in
26995 .) ac_abs_builddir=`pwd`;;
26996 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26997 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26998 esac;;
26999 esac
27000 case $ac_abs_builddir in
27001 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27002 *)
27003 case ${ac_top_builddir}. in
27004 .) ac_abs_top_builddir=$ac_abs_builddir;;
27005 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27006 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27007 esac;;
27008 esac
27009 case $ac_abs_builddir in
27010 .) ac_abs_srcdir=$ac_srcdir;;
27011 *)
27012 case $ac_srcdir in
27013 .) ac_abs_srcdir=$ac_abs_builddir;;
27014 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27015 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27016 esac;;
27017 esac
27018 case $ac_abs_builddir in
27019 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27020 *)
27021 case $ac_top_srcdir in
27022 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27023 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27024 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27025 esac;;
27026 esac
27027
27028
27029 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27030 echo "$as_me: executing $ac_dest commands" >&6;}
27031 case $ac_dest in
27032 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27033 # Strip MF so we end up with the name of the file.
27034 mf=`echo "$mf" | sed -e 's/:.*$//'`
27035 # Check whether this is an Automake generated Makefile or not.
27036 # We used to match only the files named `Makefile.in', but
27037 # some people rename them; so instead we look at the file content.
27038 # Grep'ing the first line is not enough: some people post-process
27039 # each Makefile.in and add a new line on top of each file to say so.
27040 # So let's grep whole file.
27041 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27042 dirpart=`(dirname "$mf") 2>/dev/null ||
27043 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27044 X"$mf" : 'X\(//\)[^/]' \| \
27045 X"$mf" : 'X\(//\)$' \| \
27046 X"$mf" : 'X\(/\)' \| \
27047 . : '\(.\)' 2>/dev/null ||
27048 echo X"$mf" |
27049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27051 /^X\(\/\/\)$/{ s//\1/; q; }
27052 /^X\(\/\).*/{ s//\1/; q; }
27053 s/.*/./; q'`
27054 else
27055 continue
27056 fi
27057 # Extract the definition of DEPDIR, am__include, and am__quote
27058 # from the Makefile without running `make'.
27059 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27060 test -z "$DEPDIR" && continue
27061 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27062 test -z "am__include" && continue
27063 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27064 # When using ansi2knr, U may be empty or an underscore; expand it
27065 U=`sed -n 's/^U = //p' < "$mf"`
27066 # Find all dependency output files, they are included files with
27067 # $(DEPDIR) in their names. We invoke sed twice because it is the
27068 # simplest approach to changing $(DEPDIR) to its actual value in the
27069 # expansion.
27070 for file in `sed -n "
27071 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27072 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27073 # Make sure the directory exists.
27074 test -f "$dirpart/$file" && continue
27075 fdir=`(dirname "$file") 2>/dev/null ||
27076 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27077 X"$file" : 'X\(//\)[^/]' \| \
27078 X"$file" : 'X\(//\)$' \| \
27079 X"$file" : 'X\(/\)' \| \
27080 . : '\(.\)' 2>/dev/null ||
27081 echo X"$file" |
27082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27084 /^X\(\/\/\)$/{ s//\1/; q; }
27085 /^X\(\/\).*/{ s//\1/; q; }
27086 s/.*/./; q'`
27087 { if $as_mkdir_p; then
27088 mkdir -p $dirpart/$fdir
27089 else
27090 as_dir=$dirpart/$fdir
27091 as_dirs=
27092 while test ! -d "$as_dir"; do
27093 as_dirs="$as_dir $as_dirs"
27094 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27096 X"$as_dir" : 'X\(//\)[^/]' \| \
27097 X"$as_dir" : 'X\(//\)$' \| \
27098 X"$as_dir" : 'X\(/\)' \| \
27099 . : '\(.\)' 2>/dev/null ||
27100 echo X"$as_dir" |
27101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27103 /^X\(\/\/\)$/{ s//\1/; q; }
27104 /^X\(\/\).*/{ s//\1/; q; }
27105 s/.*/./; q'`
27106 done
27107 test ! -n "$as_dirs" || mkdir $as_dirs
27108 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27109 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27110 { (exit 1); exit 1; }; }; }
27111
27112 # echo "creating $dirpart/$file"
27113 echo '# dummy' > "$dirpart/$file"
27114 done
27115 done
27116 ;;
27117 esac
27118 done
27119 _ACEOF
27120
27121 cat >>$CONFIG_STATUS <<\_ACEOF
27122
27123 { (exit 0); exit 0; }
27124 _ACEOF
27125 chmod +x $CONFIG_STATUS
27126 ac_clean_files=$ac_clean_files_save
27127
27128
27129 # configure is writing to config.log, and then calls config.status.
27130 # config.status does its own redirection, appending to config.log.
27131 # Unfortunately, on DOS this fails, as config.log is still kept open
27132 # by configure, so config.status won't be able to write to it; its
27133 # output is simply discarded. So we exec the FD to /dev/null,
27134 # effectively closing config.log, so it can be properly (re)opened and
27135 # appended to by config.status. When coming back to configure, we
27136 # need to make the FD available again.
27137 if test "$no_create" != yes; then
27138 ac_cs_success=:
27139 ac_config_status_args=
27140 test "$silent" = yes &&
27141 ac_config_status_args="$ac_config_status_args --quiet"
27142 exec 5>/dev/null
27143 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27144 exec 5>>config.log
27145 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27146 # would make configure fail if this is the last instruction.
27147 $ac_cs_success || { (exit 1); exit 1; }
27148 fi
27149
27150
27151 if test x"$coin_vpath_link_files" = x; then : ; else
27152 lnkcmd="$coin_link_input_cmd"
27153 if test "$lnkcmd" = cp; then
27154 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
27155 echo "$as_me: Copying data files for VPATH configuration" >&6;}
27156 else
27157 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
27158 echo "$as_me: Creating VPATH links for data files" >&6;}
27159 fi
27160 for file in $coin_vpath_link_files; do
27161 dir=`(dirname "./$file") 2>/dev/null ||
27162 $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27163 X"./$file" : 'X\(//\)[^/]' \| \
27164 X"./$file" : 'X\(//\)$' \| \
27165 X"./$file" : 'X\(/\)' \| \
27166 . : '\(.\)' 2>/dev/null ||
27167 echo X"./$file" |
27168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27170 /^X\(\/\/\)$/{ s//\1/; q; }
27171 /^X\(\/\).*/{ s//\1/; q; }
27172 s/.*/./; q'`
27173 if test -d $dir; then : ; else
27174 { if $as_mkdir_p; then
27175 mkdir -p $dir
27176 else
27177 as_dir=$dir
27178 as_dirs=
27179 while test ! -d "$as_dir"; do
27180 as_dirs="$as_dir $as_dirs"
27181 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27183 X"$as_dir" : 'X\(//\)[^/]' \| \
27184 X"$as_dir" : 'X\(//\)$' \| \
27185 X"$as_dir" : 'X\(/\)' \| \
27186 . : '\(.\)' 2>/dev/null ||
27187 echo X"$as_dir" |
27188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27189 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27190 /^X\(\/\/\)$/{ s//\1/; q; }
27191 /^X\(\/\).*/{ s//\1/; q; }
27192 s/.*/./; q'`
27193 done
27194 test ! -n "$as_dirs" || mkdir $as_dirs
27195 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
27196 echo "$as_me: error: cannot create directory $dir" >&2;}
27197 { (exit 1); exit 1; }; }; }
27198
27199 fi
27200 rm -f $file
27201 $lnkcmd $abs_source_dir/$file $file
27202 done
27203 fi
27204
27205 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://github.com/coin-or-tools/BuildTools/wiki/user-troubleshooting" >&5
27206 echo "$as_me: In case of trouble, first consult the troubleshooting page at https://github.com/coin-or-tools/BuildTools/wiki/user-troubleshooting" >&6;}
27207 if test x$coin_projectdir = xyes; then
27208 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
27209 echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
27210 else
27211 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
27212 echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
27213 fi
27214 else
27215 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
27216 echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
27217 fi
27218
27219