Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac 0.9.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for Cbc 2.10.13.
5 #
6 # Report bugs to <[email protected]>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 #
13 # Copyright 2006 International Business Machines and others.
14 # All Rights Reserved.
15 # This file is part of the open source package Coin which is distributed
16 # under the Eclipse Public License.
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29 set -o posix
30 fi
31 DUALCASE=1; export DUALCASE # for MKS sh
32
33 # Support unset when possible.
34 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 as_unset=unset
36 else
37 as_unset=false
38 fi
39
40
41 # Work around bugs in pre-3.0 UWIN ksh.
42 $as_unset ENV MAIL MAILPATH
43 PS1='$ '
44 PS2='> '
45 PS4='+ '
46
47 # NLS nuisances.
48 for as_var in \
49 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51 LC_TELEPHONE LC_TIME
52 do
53 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54 eval $as_var=C; export $as_var
55 else
56 $as_unset $as_var
57 fi
58 done
59
60 # Required to use basename.
61 if expr a : '\(a\)' >/dev/null 2>&1; then
62 as_expr=expr
63 else
64 as_expr=false
65 fi
66
67 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 as_basename=basename
69 else
70 as_basename=false
71 fi
72
73
74 # Name of the executable.
75 as_me=`$as_basename "$0" ||
76 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77 X"$0" : 'X\(//\)$' \| \
78 X"$0" : 'X\(/\)$' \| \
79 . : '\(.\)' 2>/dev/null ||
80 echo X/"$0" |
81 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82 /^X\/\(\/\/\)$/{ s//\1/; q; }
83 /^X\/\(\/\).*/{ s//\1/; q; }
84 s/.*/./; q'`
85
86
87 # PATH needs CR, and LINENO needs CR and PATH.
88 # Avoid depending upon Character Ranges.
89 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92 as_cr_digits='0123456789'
93 as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95 # The user is always right.
96 if test "${PATH_SEPARATOR+set}" != set; then
97 echo "#! /bin/sh" >conf$$.sh
98 echo "exit 0" >>conf$$.sh
99 chmod +x conf$$.sh
100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101 PATH_SEPARATOR=';'
102 else
103 PATH_SEPARATOR=:
104 fi
105 rm -f conf$$.sh
106 fi
107
108
109 as_lineno_1=$LINENO
110 as_lineno_2=$LINENO
111 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112 test "x$as_lineno_1" != "x$as_lineno_2" &&
113 test "x$as_lineno_3" = "x$as_lineno_2" || {
114 # Find who we are. Look in the path if we contain no path at all
115 # relative or not.
116 case $0 in
117 *[\\/]* ) as_myself=$0 ;;
118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119 for as_dir in $PATH
120 do
121 IFS=$as_save_IFS
122 test -z "$as_dir" && as_dir=.
123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124 done
125
126 ;;
127 esac
128 # We did not find ourselves, most probably we were run as `sh COMMAND'
129 # in which case we are not to be found in the path.
130 if test "x$as_myself" = x; then
131 as_myself=$0
132 fi
133 if test ! -f "$as_myself"; then
134 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135 { (exit 1); exit 1; }; }
136 fi
137 case $CONFIG_SHELL in
138 '')
139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141 do
142 IFS=$as_save_IFS
143 test -z "$as_dir" && as_dir=.
144 for as_base in sh bash ksh sh5; do
145 case $as_dir in
146 /*)
147 if ("$as_dir/$as_base" -c '
148 as_lineno_1=$LINENO
149 as_lineno_2=$LINENO
150 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151 test "x$as_lineno_1" != "x$as_lineno_2" &&
152 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
153 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155 CONFIG_SHELL=$as_dir/$as_base
156 export CONFIG_SHELL
157 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 fi;;
159 esac
160 done
161 done
162 ;;
163 esac
164
165 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166 # uniformly replaced by the line number. The first 'sed' inserts a
167 # line-number line before each line; the second 'sed' does the real
168 # work. The second script uses 'N' to pair each line-number line
169 # with the numbered line, and appends trailing '-' during
170 # substitution so that $LINENO is not a special case at line end.
171 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
173 sed '=' <$as_myself |
174 sed '
175 N
176 s,$,-,
177 : loop
178 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179 t loop
180 s,-$,,
181 s,^['$as_cr_digits']*\n,,
182 ' >$as_me.lineno &&
183 chmod +x $as_me.lineno ||
184 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185 { (exit 1); exit 1; }; }
186
187 # Don't try to exec as it changes $[0], causing all sort of problems
188 # (the dirname of $[0] is not the place where we might find the
189 # original and so on. Autoconf is especially sensible to this).
190 . ./$as_me.lineno
191 # Exit status is that of the last command.
192 exit
193 }
194
195
196 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197 *c*,-n*) ECHO_N= ECHO_C='
198 ' ECHO_T=' ' ;;
199 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
201 esac
202
203 if expr a : '\(a\)' >/dev/null 2>&1; then
204 as_expr=expr
205 else
206 as_expr=false
207 fi
208
209 rm -f conf$$ conf$$.exe conf$$.file
210 echo >conf$$.file
211 if ln -s conf$$.file conf$$ 2>/dev/null; then
212 # We could just check for DJGPP; but this test a) works b) is more generic
213 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214 if test -f conf$$.exe; then
215 # Don't use ln at all; we don't have any links
216 as_ln_s='cp -p'
217 else
218 as_ln_s='ln -s'
219 fi
220 elif ln conf$$.file conf$$ 2>/dev/null; then
221 as_ln_s=ln
222 else
223 as_ln_s='cp -p'
224 fi
225 rm -f conf$$ conf$$.exe conf$$.file
226
227 if mkdir -p . 2>/dev/null; then
228 as_mkdir_p=:
229 else
230 test -d ./-p && rmdir ./-p
231 as_mkdir_p=false
232 fi
233
234 as_executable_p="test -f"
235
236 # Sed expression to map a string onto a valid CPP name.
237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239 # Sed expression to map a string onto a valid variable name.
240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243 # IFS
244 # We need space, tab and new line, in precisely that order.
245 as_nl='
246 '
247 IFS=" $as_nl"
248
249 # CDPATH.
250 $as_unset CDPATH
251
252
253
254 # Check that we are running under the correct shell.
255 SHELL=${CONFIG_SHELL-/bin/sh}
256
257 case X$ECHO in
258 X*--fallback-echo)
259 # Remove one level of quotation (which was required for Make).
260 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261 ;;
262 esac
263
264 echo=${ECHO-echo}
265 if test "X$1" = X--no-reexec; then
266 # Discard the --no-reexec flag, and continue.
267 shift
268 elif test "X$1" = X--fallback-echo; then
269 # Avoid inline document here, it may be left over
270 :
271 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272 # Yippee, $echo works!
273 :
274 else
275 # Restart under the correct shell.
276 exec $SHELL "$0" --no-reexec ${1+"$@"}
277 fi
278
279 if test "X$1" = X--fallback-echo; then
280 # used as fallback echo
281 shift
282 cat <<EOF
283 $*
284 EOF
285 exit 0
286 fi
287
288 # The HP-UX ksh and POSIX shell print the target directory to stdout
289 # if CDPATH is set.
290 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292 if test -z "$ECHO"; then
293 if test "X${echo_test_string+set}" != Xset; then
294 # find a string as large as possible, as long as the shell can cope with it
295 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298 echo_test_string=`eval $cmd` &&
299 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300 then
301 break
302 fi
303 done
304 fi
305
306 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308 test "X$echo_testing_string" = "X$echo_test_string"; then
309 :
310 else
311 # The Solaris, AIX, and Digital Unix default echo programs unquote
312 # backslashes. This makes it impossible to quote backslashes using
313 # echo "$something" | sed 's/\\/\\\\/g'
314 #
315 # So, first we look for a working echo in the user's PATH.
316
317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318 for dir in $PATH /usr/ucb; do
319 IFS="$lt_save_ifs"
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$lt_save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running configure again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390 fi
391 fi
392
393 # Copy echo and quote the copy suitably for passing to libtool from
394 # the Makefile, instead of quoting the original, which is used later.
395 ECHO=$echo
396 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 fi
399
400
401
402
403 tagnames=${tagnames+${tagnames},}CXX
404
405 tagnames=${tagnames+${tagnames},}F77
406
407 # Name of the host.
408 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409 # so uname gets run too.
410 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412 exec 6>&1
413
414 #
415 # Initializations.
416 #
417 ac_default_prefix=/usr/local
418 ac_config_libobj_dir=.
419 cross_compiling=no
420 subdirs=
421 MFLAGS=
422 MAKEFLAGS=
423 SHELL=${CONFIG_SHELL-/bin/sh}
424
425 # Maximum number of lines to put in a shell here document.
426 # This variable seems obsolete. It should probably be removed, and
427 # only ac_max_sed_lines should be used.
428 : ${ac_max_here_lines=38}
429
430 # Identity of this package.
431 PACKAGE_NAME='Cbc'
432 PACKAGE_TARNAME='cbc'
433 PACKAGE_VERSION='2.10.13'
434 PACKAGE_STRING='Cbc 2.10.13'
435 PACKAGE_BUGREPORT='[email protected]'
436
437 ac_unique_file="configure.ac"
438 ac_default_prefix=`pwd`
439 # Factoring default headers for most tests.
440 ac_includes_default="\
441 #include <stdio.h>
442 #if HAVE_SYS_TYPES_H
443 # include <sys/types.h>
444 #endif
445 #if HAVE_SYS_STAT_H
446 # include <sys/stat.h>
447 #endif
448 #if STDC_HEADERS
449 # include <stdlib.h>
450 # include <stddef.h>
451 #else
452 # if HAVE_STDLIB_H
453 # include <stdlib.h>
454 # endif
455 #endif
456 #if HAVE_STRING_H
457 # if !STDC_HEADERS && HAVE_MEMORY_H
458 # include <memory.h>
459 # endif
460 # include <string.h>
461 #endif
462 #if HAVE_STRINGS_H
463 # include <strings.h>
464 #endif
465 #if HAVE_INTTYPES_H
466 # include <inttypes.h>
467 #else
468 # if HAVE_STDINT_H
469 # include <stdint.h>
470 # endif
471 #endif
472 #if HAVE_UNISTD_H
473 # include <unistd.h>
474 #endif"
475
476 ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
477 ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
478 ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
479 ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
480 ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
481 ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
482 ac_subdirs_all="$ac_subdirs_all Data/Sample"
483 ac_subdirs_all="$ac_subdirs_all Data/Netlib"
484 ac_subdirs_all="$ac_subdirs_all Data/miplib3"
485 ac_subdirs_all="$ac_subdirs_all CoinUtils"
486 ac_subdirs_all="$ac_subdirs_all Osi"
487 ac_subdirs_all="$ac_subdirs_all Clp"
488 ac_subdirs_all="$ac_subdirs_all DyLP"
489 ac_subdirs_all="$ac_subdirs_all Vol"
490 ac_subdirs_all="$ac_subdirs_all Cgl"
491 ac_subdirs_all="$ac_subdirs_all Cbc"
492 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 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 ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 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 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag dos2unix RPATH_FLAGS LT_LDFLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE COIN_SKIP_PROJECTS subdirs 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'
493 ac_subst_files=''
494
495 # Initialize some variables set by options.
496 ac_init_help=
497 ac_init_version=false
498 # The variables have the same names as the options, with
499 # dashes changed to underlines.
500 cache_file=/dev/null
501 exec_prefix=NONE
502 no_create=
503 no_recursion=
504 prefix=NONE
505 program_prefix=NONE
506 program_suffix=NONE
507 program_transform_name=s,x,x,
508 silent=
509 site=
510 srcdir=
511 verbose=
512 x_includes=NONE
513 x_libraries=NONE
514
515 # Installation directory options.
516 # These are left unexpanded so users can "make install exec_prefix=/foo"
517 # and all the variables that are supposed to be based on exec_prefix
518 # by default will actually change.
519 # Use braces instead of parens because sh, perl, etc. also accept them.
520 bindir='${exec_prefix}/bin'
521 sbindir='${exec_prefix}/sbin'
522 libexecdir='${exec_prefix}/libexec'
523 datadir='${prefix}/share'
524 sysconfdir='${prefix}/etc'
525 sharedstatedir='${prefix}/com'
526 localstatedir='${prefix}/var'
527 libdir='${exec_prefix}/lib'
528 includedir='${prefix}/include'
529 oldincludedir='/usr/include'
530 infodir='${prefix}/info'
531 mandir='${prefix}/man'
532
533 ac_prev=
534 for ac_option
535 do
536 # If the previous option needs an argument, assign it.
537 if test -n "$ac_prev"; then
538 eval "$ac_prev=\$ac_option"
539 ac_prev=
540 continue
541 fi
542
543 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
544
545 # Accept the important Cygnus configure options, so we can diagnose typos.
546
547 case $ac_option in
548
549 -bindir | --bindir | --bindi | --bind | --bin | --bi)
550 ac_prev=bindir ;;
551 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
552 bindir=$ac_optarg ;;
553
554 -build | --build | --buil | --bui | --bu)
555 ac_prev=build_alias ;;
556 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
557 build_alias=$ac_optarg ;;
558
559 -cache-file | --cache-file | --cache-fil | --cache-fi \
560 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
561 ac_prev=cache_file ;;
562 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
563 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
564 cache_file=$ac_optarg ;;
565
566 --config-cache | -C)
567 cache_file=config.cache ;;
568
569 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
570 ac_prev=datadir ;;
571 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
572 | --da=*)
573 datadir=$ac_optarg ;;
574
575 -disable-* | --disable-*)
576 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
577 # Reject names that are not valid shell variable names.
578 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
579 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
580 { (exit 1); exit 1; }; }
581 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
582 eval "enable_$ac_feature=no" ;;
583
584 -enable-* | --enable-*)
585 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
589 { (exit 1); exit 1; }; }
590 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
591 case $ac_option in
592 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593 *) ac_optarg=yes ;;
594 esac
595 eval "enable_$ac_feature='$ac_optarg'" ;;
596
597 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
598 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
599 | --exec | --exe | --ex)
600 ac_prev=exec_prefix ;;
601 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
602 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
603 | --exec=* | --exe=* | --ex=*)
604 exec_prefix=$ac_optarg ;;
605
606 -gas | --gas | --ga | --g)
607 # Obsolete; use --with-gas.
608 with_gas=yes ;;
609
610 -help | --help | --hel | --he | -h)
611 ac_init_help=long ;;
612 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
613 ac_init_help=recursive ;;
614 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
615 ac_init_help=short ;;
616
617 -host | --host | --hos | --ho)
618 ac_prev=host_alias ;;
619 -host=* | --host=* | --hos=* | --ho=*)
620 host_alias=$ac_optarg ;;
621
622 -includedir | --includedir | --includedi | --included | --include \
623 | --includ | --inclu | --incl | --inc)
624 ac_prev=includedir ;;
625 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
626 | --includ=* | --inclu=* | --incl=* | --inc=*)
627 includedir=$ac_optarg ;;
628
629 -infodir | --infodir | --infodi | --infod | --info | --inf)
630 ac_prev=infodir ;;
631 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
632 infodir=$ac_optarg ;;
633
634 -libdir | --libdir | --libdi | --libd)
635 ac_prev=libdir ;;
636 -libdir=* | --libdir=* | --libdi=* | --libd=*)
637 libdir=$ac_optarg ;;
638
639 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
640 | --libexe | --libex | --libe)
641 ac_prev=libexecdir ;;
642 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
643 | --libexe=* | --libex=* | --libe=*)
644 libexecdir=$ac_optarg ;;
645
646 -localstatedir | --localstatedir | --localstatedi | --localstated \
647 | --localstate | --localstat | --localsta | --localst \
648 | --locals | --local | --loca | --loc | --lo)
649 ac_prev=localstatedir ;;
650 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
651 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
652 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
653 localstatedir=$ac_optarg ;;
654
655 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
656 ac_prev=mandir ;;
657 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
658 mandir=$ac_optarg ;;
659
660 -nfp | --nfp | --nf)
661 # Obsolete; use --without-fp.
662 with_fp=no ;;
663
664 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
665 | --no-cr | --no-c | -n)
666 no_create=yes ;;
667
668 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
669 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
670 no_recursion=yes ;;
671
672 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
673 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
674 | --oldin | --oldi | --old | --ol | --o)
675 ac_prev=oldincludedir ;;
676 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
677 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
678 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
679 oldincludedir=$ac_optarg ;;
680
681 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
682 ac_prev=prefix ;;
683 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
684 prefix=$ac_optarg ;;
685
686 -program-prefix | --program-prefix | --program-prefi | --program-pref \
687 | --program-pre | --program-pr | --program-p)
688 ac_prev=program_prefix ;;
689 -program-prefix=* | --program-prefix=* | --program-prefi=* \
690 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
691 program_prefix=$ac_optarg ;;
692
693 -program-suffix | --program-suffix | --program-suffi | --program-suff \
694 | --program-suf | --program-su | --program-s)
695 ac_prev=program_suffix ;;
696 -program-suffix=* | --program-suffix=* | --program-suffi=* \
697 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698 program_suffix=$ac_optarg ;;
699
700 -program-transform-name | --program-transform-name \
701 | --program-transform-nam | --program-transform-na \
702 | --program-transform-n | --program-transform- \
703 | --program-transform | --program-transfor \
704 | --program-transfo | --program-transf \
705 | --program-trans | --program-tran \
706 | --progr-tra | --program-tr | --program-t)
707 ac_prev=program_transform_name ;;
708 -program-transform-name=* | --program-transform-name=* \
709 | --program-transform-nam=* | --program-transform-na=* \
710 | --program-transform-n=* | --program-transform-=* \
711 | --program-transform=* | --program-transfor=* \
712 | --program-transfo=* | --program-transf=* \
713 | --program-trans=* | --program-tran=* \
714 | --progr-tra=* | --program-tr=* | --program-t=*)
715 program_transform_name=$ac_optarg ;;
716
717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
718 | -silent | --silent | --silen | --sile | --sil)
719 silent=yes ;;
720
721 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
722 ac_prev=sbindir ;;
723 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
724 | --sbi=* | --sb=*)
725 sbindir=$ac_optarg ;;
726
727 -sharedstatedir | --sharedstatedir | --sharedstatedi \
728 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
729 | --sharedst | --shareds | --shared | --share | --shar \
730 | --sha | --sh)
731 ac_prev=sharedstatedir ;;
732 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
733 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
734 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
735 | --sha=* | --sh=*)
736 sharedstatedir=$ac_optarg ;;
737
738 -site | --site | --sit)
739 ac_prev=site ;;
740 -site=* | --site=* | --sit=*)
741 site=$ac_optarg ;;
742
743 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
744 ac_prev=srcdir ;;
745 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
746 srcdir=$ac_optarg ;;
747
748 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
749 | --syscon | --sysco | --sysc | --sys | --sy)
750 ac_prev=sysconfdir ;;
751 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
752 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
753 sysconfdir=$ac_optarg ;;
754
755 -target | --target | --targe | --targ | --tar | --ta | --t)
756 ac_prev=target_alias ;;
757 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
758 target_alias=$ac_optarg ;;
759
760 -v | -verbose | --verbose | --verbos | --verbo | --verb)
761 verbose=yes ;;
762
763 -version | --version | --versio | --versi | --vers | -V)
764 ac_init_version=: ;;
765
766 -with-* | --with-*)
767 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package| sed 's/-/_/g'`
773 case $ac_option in
774 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
775 *) ac_optarg=yes ;;
776 esac
777 eval "with_$ac_package='$ac_optarg'" ;;
778
779 -without-* | --without-*)
780 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid package name: $ac_package" >&2
784 { (exit 1); exit 1; }; }
785 ac_package=`echo $ac_package | sed 's/-/_/g'`
786 eval "with_$ac_package=no" ;;
787
788 --x)
789 # Obsolete; use --with-x.
790 with_x=yes ;;
791
792 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
793 | --x-incl | --x-inc | --x-in | --x-i)
794 ac_prev=x_includes ;;
795 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
796 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
797 x_includes=$ac_optarg ;;
798
799 -x-libraries | --x-libraries | --x-librarie | --x-librari \
800 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
801 ac_prev=x_libraries ;;
802 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
803 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
804 x_libraries=$ac_optarg ;;
805
806 -*) { echo "$as_me: error: unrecognized option: $ac_option
807 Try \`$0 --help' for more information." >&2
808 { (exit 1); exit 1; }; }
809 ;;
810
811 *=*)
812 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
813 # Reject names that are not valid shell variable names.
814 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
815 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
816 { (exit 1); exit 1; }; }
817 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
818 eval "$ac_envvar='$ac_optarg'"
819 export $ac_envvar ;;
820
821 *)
822 # FIXME: should be removed in autoconf 3.0.
823 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
824 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
825 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
826 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
827 ;;
828
829 esac
830 done
831
832 if test -n "$ac_prev"; then
833 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
834 { echo "$as_me: error: missing argument to $ac_option" >&2
835 { (exit 1); exit 1; }; }
836 fi
837
838 # Be sure to have absolute paths.
839 for ac_var in exec_prefix prefix
840 do
841 eval ac_val=$`echo $ac_var`
842 case $ac_val in
843 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
844 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845 { (exit 1); exit 1; }; };;
846 esac
847 done
848
849 # Be sure to have absolute paths.
850 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
851 localstatedir libdir includedir oldincludedir infodir mandir
852 do
853 eval ac_val=$`echo $ac_var`
854 case $ac_val in
855 [\\/$]* | ?:[\\/]* ) ;;
856 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
857 { (exit 1); exit 1; }; };;
858 esac
859 done
860
861 # There might be people who depend on the old broken behavior: `$host'
862 # used to hold the argument of --host etc.
863 # FIXME: To remove some day.
864 build=$build_alias
865 host=$host_alias
866 target=$target_alias
867
868 # FIXME: To remove some day.
869 if test "x$host_alias" != x; then
870 if test "x$build_alias" = x; then
871 cross_compiling=maybe
872 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
873 If a cross compiler is detected then cross compile mode will be used." >&2
874 elif test "x$build_alias" != "x$host_alias"; then
875 cross_compiling=yes
876 fi
877 fi
878
879 ac_tool_prefix=
880 test -n "$host_alias" && ac_tool_prefix=$host_alias-
881
882 test "$silent" = yes && exec 6>/dev/null
883
884
885 # Find the source files, if location was not specified.
886 if test -z "$srcdir"; then
887 ac_srcdir_defaulted=yes
888 # Try the directory containing this script, then its parent.
889 ac_confdir=`(dirname "$0") 2>/dev/null ||
890 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
891 X"$0" : 'X\(//\)[^/]' \| \
892 X"$0" : 'X\(//\)$' \| \
893 X"$0" : 'X\(/\)' \| \
894 . : '\(.\)' 2>/dev/null ||
895 echo X"$0" |
896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
898 /^X\(\/\/\)$/{ s//\1/; q; }
899 /^X\(\/\).*/{ s//\1/; q; }
900 s/.*/./; q'`
901 srcdir=$ac_confdir
902 if test ! -r $srcdir/$ac_unique_file; then
903 srcdir=..
904 fi
905 else
906 ac_srcdir_defaulted=no
907 fi
908 if test ! -r $srcdir/$ac_unique_file; then
909 if test "$ac_srcdir_defaulted" = yes; then
910 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
911 { (exit 1); exit 1; }; }
912 else
913 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
914 { (exit 1); exit 1; }; }
915 fi
916 fi
917 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
918 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
919 { (exit 1); exit 1; }; }
920 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
921 ac_env_build_alias_set=${build_alias+set}
922 ac_env_build_alias_value=$build_alias
923 ac_cv_env_build_alias_set=${build_alias+set}
924 ac_cv_env_build_alias_value=$build_alias
925 ac_env_host_alias_set=${host_alias+set}
926 ac_env_host_alias_value=$host_alias
927 ac_cv_env_host_alias_set=${host_alias+set}
928 ac_cv_env_host_alias_value=$host_alias
929 ac_env_target_alias_set=${target_alias+set}
930 ac_env_target_alias_value=$target_alias
931 ac_cv_env_target_alias_set=${target_alias+set}
932 ac_cv_env_target_alias_value=$target_alias
933 ac_env_CDEFS_set=${CDEFS+set}
934 ac_env_CDEFS_value=$CDEFS
935 ac_cv_env_CDEFS_set=${CDEFS+set}
936 ac_cv_env_CDEFS_value=$CDEFS
937 ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
938 ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
939 ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
940 ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
941 ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
942 ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
943 ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
944 ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
945 ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
946 ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
947 ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
948 ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
949 ac_env_CC_set=${CC+set}
950 ac_env_CC_value=$CC
951 ac_cv_env_CC_set=${CC+set}
952 ac_cv_env_CC_value=$CC
953 ac_env_CFLAGS_set=${CFLAGS+set}
954 ac_env_CFLAGS_value=$CFLAGS
955 ac_cv_env_CFLAGS_set=${CFLAGS+set}
956 ac_cv_env_CFLAGS_value=$CFLAGS
957 ac_env_LDFLAGS_set=${LDFLAGS+set}
958 ac_env_LDFLAGS_value=$LDFLAGS
959 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
960 ac_cv_env_LDFLAGS_value=$LDFLAGS
961 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
962 ac_env_CPPFLAGS_value=$CPPFLAGS
963 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
964 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
965 ac_env_MPICC_set=${MPICC+set}
966 ac_env_MPICC_value=$MPICC
967 ac_cv_env_MPICC_set=${MPICC+set}
968 ac_cv_env_MPICC_value=$MPICC
969 ac_env_CXXDEFS_set=${CXXDEFS+set}
970 ac_env_CXXDEFS_value=$CXXDEFS
971 ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
972 ac_cv_env_CXXDEFS_value=$CXXDEFS
973 ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
974 ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
975 ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
976 ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
977 ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
978 ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
979 ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
980 ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
981 ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
982 ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
983 ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
984 ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
985 ac_env_CXX_set=${CXX+set}
986 ac_env_CXX_value=$CXX
987 ac_cv_env_CXX_set=${CXX+set}
988 ac_cv_env_CXX_value=$CXX
989 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
990 ac_env_CXXFLAGS_value=$CXXFLAGS
991 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
992 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
993 ac_env_MPICXX_set=${MPICXX+set}
994 ac_env_MPICXX_value=$MPICXX
995 ac_cv_env_MPICXX_set=${MPICXX+set}
996 ac_cv_env_MPICXX_value=$MPICXX
997 ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
998 ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
999 ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1000 ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1001 ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1002 ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1003 ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1004 ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1005 ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1006 ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1007 ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1008 ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1009 ac_env_F77_set=${F77+set}
1010 ac_env_F77_value=$F77
1011 ac_cv_env_F77_set=${F77+set}
1012 ac_cv_env_F77_value=$F77
1013 ac_env_FFLAGS_set=${FFLAGS+set}
1014 ac_env_FFLAGS_value=$FFLAGS
1015 ac_cv_env_FFLAGS_set=${FFLAGS+set}
1016 ac_cv_env_FFLAGS_value=$FFLAGS
1017 ac_env_MPIF77_set=${MPIF77+set}
1018 ac_env_MPIF77_value=$MPIF77
1019 ac_cv_env_MPIF77_set=${MPIF77+set}
1020 ac_cv_env_MPIF77_value=$MPIF77
1021 ac_env_CPP_set=${CPP+set}
1022 ac_env_CPP_value=$CPP
1023 ac_cv_env_CPP_set=${CPP+set}
1024 ac_cv_env_CPP_value=$CPP
1025 ac_env_CXXCPP_set=${CXXCPP+set}
1026 ac_env_CXXCPP_value=$CXXCPP
1027 ac_cv_env_CXXCPP_set=${CXXCPP+set}
1028 ac_cv_env_CXXCPP_value=$CXXCPP
1029 ac_env_LT_LDFLAGS_set=${LT_LDFLAGS+set}
1030 ac_env_LT_LDFLAGS_value=$LT_LDFLAGS
1031 ac_cv_env_LT_LDFLAGS_set=${LT_LDFLAGS+set}
1032 ac_cv_env_LT_LDFLAGS_value=$LT_LDFLAGS
1033 ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1034 ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1035 ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1036 ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1037
1038 #
1039 # Report the --help message.
1040 #
1041 if test "$ac_init_help" = "long"; then
1042 # Omit some internal or obsolete options to make the list less imposing.
1043 # This message is too long to be a string in the A/UX 3.1 sh.
1044 cat <<_ACEOF
1045 \`configure' configures Cbc 2.10.13 to adapt to many kinds of systems.
1046
1047 Usage: $0 [OPTION]... [VAR=VALUE]...
1048
1049 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1050 VAR=VALUE. See below for descriptions of some of the useful variables.
1051
1052 Defaults for the options are specified in brackets.
1053
1054 Configuration:
1055 -h, --help display this help and exit
1056 --help=short display options specific to this package
1057 --help=recursive display the short help of all the included packages
1058 -V, --version display version information and exit
1059 -q, --quiet, --silent do not print \`checking...' messages
1060 --cache-file=FILE cache test results in FILE [disabled]
1061 -C, --config-cache alias for \`--cache-file=config.cache'
1062 -n, --no-create do not create output files
1063 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1064
1065 _ACEOF
1066
1067 cat <<_ACEOF
1068 Installation directories:
1069 --prefix=PREFIX install architecture-independent files in PREFIX
1070 [$ac_default_prefix]
1071 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1072 [PREFIX]
1073
1074 By default, \`make install' will install all the files in
1075 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1076 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1077 for instance \`--prefix=\$HOME'.
1078
1079 For better control, use the options below.
1080
1081 Fine tuning of the installation directories:
1082 --bindir=DIR user executables [EPREFIX/bin]
1083 --sbindir=DIR system admin executables [EPREFIX/sbin]
1084 --libexecdir=DIR program executables [EPREFIX/libexec]
1085 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1086 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1087 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1088 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1089 --libdir=DIR object code libraries [EPREFIX/lib]
1090 --includedir=DIR C header files [PREFIX/include]
1091 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1092 --infodir=DIR info documentation [PREFIX/info]
1093 --mandir=DIR man documentation [PREFIX/man]
1094 _ACEOF
1095
1096 cat <<\_ACEOF
1097
1098 Program names:
1099 --program-prefix=PREFIX prepend PREFIX to installed program names
1100 --program-suffix=SUFFIX append SUFFIX to installed program names
1101 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1102
1103 System types:
1104 --build=BUILD configure for building on BUILD [guessed]
1105 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1106 _ACEOF
1107 fi
1108
1109 if test -n "$ac_init_help"; then
1110 case $ac_init_help in
1111 short | recursive ) echo "Configuration of Cbc 2.10.13:";;
1112 esac
1113 cat <<\_ACEOF
1114
1115 Optional Features:
1116 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1117 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1118 --enable-debug compile all projects with debug options tests
1119 (implies --disable-shared)
1120
1121 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1122 --enable-static[=PKGS]
1123 build static libraries [default=no]
1124 --disable-dependency-tracking speeds up one-time build
1125 --enable-dependency-tracking do not reject slow dependency extractors
1126 --enable-maintainer-mode enable make rules and dependencies not useful
1127 (and sometimes confusing) to the casual installer
1128 --enable-shared[=PKGS]
1129 build shared libraries [default=yes]
1130 --enable-fast-install[=PKGS]
1131 optimize for fast installation [default=yes]
1132 --disable-libtool-lock avoid locking (might break parallel builds)
1133 --disable-dependency-linking
1134 disable linking library dependencies into shared
1135 libraries
1136
1137 Optional Packages:
1138 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1139 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1140 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1141 --with-pic try to use only PIC/non-PIC objects [default=use
1142 both]
1143 --with-tags[=TAGS]
1144 include additional configurations [automatic]
1145
1146 --with-asl-lib linker flags for using project ASL
1147 --with-asl-incdir directory with header files for using project ASL
1148 --with-asl-datadir directory with data files for using project ASL
1149 --with-blas-lib linker flags for using project Blas
1150 --with-blas-incdir directory with header files for using project Blas
1151 --with-blas-datadir directory with data files for using project Blas
1152 --with-blas specify BLAS library (or BUILD to enforce use of
1153 ThirdParty/Blas)
1154 --with-lapack-lib linker flags for using project Lapack
1155 --with-lapack-incdir directory with header files for using project Lapack
1156 --with-lapack-datadir directory with data files for using project Lapack
1157 --with-lapack specify LAPACK library (or BUILD to enforce use of
1158 ThirdParty/Lapack)
1159 --with-glpk-lib linker flags for using project Glpk
1160 --with-glpk-incdir directory with header files for using project Glpk
1161 --with-glpk-datadir directory with data files for using project Glpk
1162 --with-metis-lib linker flags for using project Metis
1163 --with-metis-incdir directory with header files for using project Metis
1164 --with-metis-datadir directory with data files for using project Metis
1165 --with-mumps-lib linker flags for using project Mumps
1166 --with-mumps-incdir directory with header files for using project Mumps
1167 --with-mumps-datadir directory with data files for using project Mumps
1168 --with-sample-lib linker flags for using project Sample
1169 --with-sample-incdir directory with header files for using project Sample
1170 --with-sample-datadir directory with data files for using project Sample
1171 --with-netlib-lib linker flags for using project Netlib
1172 --with-netlib-incdir directory with header files for using project Netlib
1173 --with-netlib-datadir directory with data files for using project Netlib
1174 --with-miplib3-lib linker flags for using project miplib3
1175 --with-miplib3-incdir directory with header files for using project miplib3
1176 --with-miplib3-datadir directory with data files for using project miplib3
1177 --with-coinutils-lib linker flags for using project CoinUtils
1178 --with-coinutils-incdir directory with header files for using project
1179 CoinUtils
1180 --with-coinutils-datadir
1181 directory with data files for using project
1182 CoinUtils
1183 --with-osi-lib linker flags for using project Osi
1184 --with-osi-incdir directory with header files for using project Osi
1185 --with-osi-datadir directory with data files for using project Osi
1186 --with-clp-lib linker flags for using project Clp
1187 --with-clp-incdir directory with header files for using project Clp
1188 --with-clp-datadir directory with data files for using project Clp
1189 --with-dylp-lib linker flags for using project DyLP
1190 --with-dylp-incdir directory with header files for using project DyLP
1191 --with-dylp-datadir directory with data files for using project DyLP
1192 --with-vol-lib linker flags for using project Vol
1193 --with-vol-incdir directory with header files for using project Vol
1194 --with-vol-datadir directory with data files for using project Vol
1195 --with-cgl-lib linker flags for using project Cgl
1196 --with-cgl-incdir directory with header files for using project Cgl
1197 --with-cgl-datadir directory with data files for using project Cgl
1198 --with-cbc-lib linker flags for using project Cbc
1199 --with-cbc-incdir directory with header files for using project Cbc
1200 --with-cbc-datadir directory with data files for using project Cbc
1201 --with-dot use dot (from graphviz) when creating documentation
1202 with doxygen if available; --without-dot to disable
1203
1204 Some influential environment variables:
1205 CDEFS Additional -D flags to be used when compiling C code.
1206 ADD_CFLAGS Additional C compiler options
1207 DBG_CFLAGS Debug C compiler options
1208 OPT_CFLAGS Optimize C compiler options
1209 CC C compiler command
1210 CFLAGS C compiler flags
1211 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1212 nonstandard directory <lib dir>
1213 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1214 headers in a nonstandard directory <include dir>
1215 MPICC C MPI Compiler
1216 CXXDEFS Additional -D flags to be used when compiling C++ code.
1217 ADD_CXXFLAGS
1218 Additional C++ compiler options
1219 DBG_CXXFLAGS
1220 Debug C++ compiler options
1221 OPT_CXXFLAGS
1222 Optimize C++ compiler options
1223 CXX C++ compiler command
1224 CXXFLAGS C++ compiler flags
1225 MPICXX C++ MPI Compiler
1226 ADD_FFLAGS Additional Fortran compiler options
1227 DBG_FFLAGS Debug Fortran compiler options
1228 OPT_FFLAGS Optimize Fortran compiler options
1229 F77 Fortran 77 compiler command
1230 FFLAGS Fortran 77 compiler flags
1231 MPIF77 Fortran MPI Compiler
1232 CPP C preprocessor
1233 CXXCPP C++ preprocessor
1234 LT_LDFLAGS Flags passed to libtool when building libraries or executables
1235 that are installed
1236 COIN_SKIP_PROJECTS
1237 Set to the subdirectories of projects that should be skipped in
1238 the configuration
1239
1240 Use these variables to override the choices made by `configure' or to help
1241 it to find libraries and programs with nonstandard names/locations.
1242
1243 Report bugs to <[email protected]>.
1244 _ACEOF
1245 fi
1246
1247 if test "$ac_init_help" = "recursive"; then
1248 # If there are subdirs, report their specific --help.
1249 ac_popdir=`pwd`
1250 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1251 test -d $ac_dir || continue
1252 ac_builddir=.
1253
1254 if test "$ac_dir" != .; then
1255 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1256 # A "../" for each directory in $ac_dir_suffix.
1257 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1258 else
1259 ac_dir_suffix= ac_top_builddir=
1260 fi
1261
1262 case $srcdir in
1263 .) # No --srcdir option. We are building in place.
1264 ac_srcdir=.
1265 if test -z "$ac_top_builddir"; then
1266 ac_top_srcdir=.
1267 else
1268 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1269 fi ;;
1270 [\\/]* | ?:[\\/]* ) # Absolute path.
1271 ac_srcdir=$srcdir$ac_dir_suffix;
1272 ac_top_srcdir=$srcdir ;;
1273 *) # Relative path.
1274 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1275 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1276 esac
1277
1278 # Do not use `cd foo && pwd` to compute absolute paths, because
1279 # the directories may not exist.
1280 case `pwd` in
1281 .) ac_abs_builddir="$ac_dir";;
1282 *)
1283 case "$ac_dir" in
1284 .) ac_abs_builddir=`pwd`;;
1285 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1286 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1287 esac;;
1288 esac
1289 case $ac_abs_builddir in
1290 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1291 *)
1292 case ${ac_top_builddir}. in
1293 .) ac_abs_top_builddir=$ac_abs_builddir;;
1294 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1295 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1296 esac;;
1297 esac
1298 case $ac_abs_builddir in
1299 .) ac_abs_srcdir=$ac_srcdir;;
1300 *)
1301 case $ac_srcdir in
1302 .) ac_abs_srcdir=$ac_abs_builddir;;
1303 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1304 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1305 esac;;
1306 esac
1307 case $ac_abs_builddir in
1308 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1309 *)
1310 case $ac_top_srcdir in
1311 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1312 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1313 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1314 esac;;
1315 esac
1316
1317 cd $ac_dir
1318 # Check for guested configure; otherwise get Cygnus style configure.
1319 if test -f $ac_srcdir/configure.gnu; then
1320 echo
1321 $SHELL $ac_srcdir/configure.gnu --help=recursive
1322 elif test -f $ac_srcdir/configure; then
1323 echo
1324 $SHELL $ac_srcdir/configure --help=recursive
1325 elif test -f $ac_srcdir/configure.ac ||
1326 test -f $ac_srcdir/configure.in; then
1327 echo
1328 $ac_configure --help
1329 else
1330 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1331 fi
1332 cd $ac_popdir
1333 done
1334 fi
1335
1336 test -n "$ac_init_help" && exit 0
1337 if $ac_init_version; then
1338 cat <<\_ACEOF
1339 Cbc configure 2.10.13
1340 generated by GNU Autoconf 2.59
1341
1342 Copyright (C) 2003 Free Software Foundation, Inc.
1343 This configure script is free software; the Free Software Foundation
1344 gives unlimited permission to copy, distribute and modify it.
1345
1346
1347 Copyright 2006 International Business Machines and others.
1348 All Rights Reserved.
1349 This file is part of the open source package Coin which is distributed
1350 under the Eclipse Public License.
1351 _ACEOF
1352 exit 0
1353 fi
1354 exec 5>config.log
1355 cat >&5 <<_ACEOF
1356 This file contains any messages produced by compilers while
1357 running configure, to aid debugging if configure makes a mistake.
1358
1359 It was created by Cbc $as_me 2.10.13, which was
1360 generated by GNU Autoconf 2.59. Invocation command line was
1361
1362 $ $0 $@
1363
1364 _ACEOF
1365 {
1366 cat <<_ASUNAME
1367 ## --------- ##
1368 ## Platform. ##
1369 ## --------- ##
1370
1371 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1372 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1373 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1374 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1375 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1376
1377 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1378 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1379
1380 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1381 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1382 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1383 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1384 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1385 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1386 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1387
1388 _ASUNAME
1389
1390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1391 for as_dir in $PATH
1392 do
1393 IFS=$as_save_IFS
1394 test -z "$as_dir" && as_dir=.
1395 echo "PATH: $as_dir"
1396 done
1397
1398 } >&5
1399
1400 cat >&5 <<_ACEOF
1401
1402
1403 ## ----------- ##
1404 ## Core tests. ##
1405 ## ----------- ##
1406
1407 _ACEOF
1408
1409
1410 # Keep a trace of the command line.
1411 # Strip out --no-create and --no-recursion so they do not pile up.
1412 # Strip out --silent because we don't want to record it for future runs.
1413 # Also quote any args containing shell meta-characters.
1414 # Make two passes to allow for proper duplicate-argument suppression.
1415 ac_configure_args=
1416 ac_configure_args0=
1417 ac_configure_args1=
1418 ac_sep=
1419 ac_must_keep_next=false
1420 for ac_pass in 1 2
1421 do
1422 for ac_arg
1423 do
1424 case $ac_arg in
1425 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1427 | -silent | --silent | --silen | --sile | --sil)
1428 continue ;;
1429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1431 esac
1432 case $ac_pass in
1433 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1434 2)
1435 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1436 if test $ac_must_keep_next = true; then
1437 ac_must_keep_next=false # Got value, back to normal.
1438 else
1439 case $ac_arg in
1440 *=* | --config-cache | -C | -disable-* | --disable-* \
1441 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1442 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1443 | -with-* | --with-* | -without-* | --without-* | --x)
1444 case "$ac_configure_args0 " in
1445 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1446 esac
1447 ;;
1448 -* ) ac_must_keep_next=true ;;
1449 esac
1450 fi
1451 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1452 # Get rid of the leading space.
1453 ac_sep=" "
1454 ;;
1455 esac
1456 done
1457 done
1458 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1459 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1460
1461 # When interrupted or exit'd, cleanup temporary files, and complete
1462 # config.log. We remove comments because anyway the quotes in there
1463 # would cause problems or look ugly.
1464 # WARNING: Be sure not to use single quotes in there, as some shells,
1465 # such as our DU 5.0 friend, will then `close' the trap.
1466 trap 'exit_status=$?
1467 # Save into config.log some information that might help in debugging.
1468 {
1469 echo
1470
1471 cat <<\_ASBOX
1472 ## ---------------- ##
1473 ## Cache variables. ##
1474 ## ---------------- ##
1475 _ASBOX
1476 echo
1477 # The following way of writing the cache mishandles newlines in values,
1478 {
1479 (set) 2>&1 |
1480 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1481 *ac_space=\ *)
1482 sed -n \
1483 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1485 ;;
1486 *)
1487 sed -n \
1488 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1489 ;;
1490 esac;
1491 }
1492 echo
1493
1494 cat <<\_ASBOX
1495 ## ----------------- ##
1496 ## Output variables. ##
1497 ## ----------------- ##
1498 _ASBOX
1499 echo
1500 for ac_var in $ac_subst_vars
1501 do
1502 eval ac_val=$`echo $ac_var`
1503 echo "$ac_var='"'"'$ac_val'"'"'"
1504 done | sort
1505 echo
1506
1507 if test -n "$ac_subst_files"; then
1508 cat <<\_ASBOX
1509 ## ------------- ##
1510 ## Output files. ##
1511 ## ------------- ##
1512 _ASBOX
1513 echo
1514 for ac_var in $ac_subst_files
1515 do
1516 eval ac_val=$`echo $ac_var`
1517 echo "$ac_var='"'"'$ac_val'"'"'"
1518 done | sort
1519 echo
1520 fi
1521
1522 if test -s confdefs.h; then
1523 cat <<\_ASBOX
1524 ## ----------- ##
1525 ## confdefs.h. ##
1526 ## ----------- ##
1527 _ASBOX
1528 echo
1529 sed "/^$/d" confdefs.h | sort
1530 echo
1531 fi
1532 test "$ac_signal" != 0 &&
1533 echo "$as_me: caught signal $ac_signal"
1534 echo "$as_me: exit $exit_status"
1535 } >&5
1536 rm -f core *.core &&
1537 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1538 exit $exit_status
1539 ' 0
1540 for ac_signal in 1 2 13 15; do
1541 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1542 done
1543 ac_signal=0
1544
1545 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1546 rm -rf conftest* confdefs.h
1547 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1548 echo >confdefs.h
1549
1550 # Predefined preprocessor variables.
1551
1552 cat >>confdefs.h <<_ACEOF
1553 #define PACKAGE_NAME "$PACKAGE_NAME"
1554 _ACEOF
1555
1556
1557 cat >>confdefs.h <<_ACEOF
1558 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1559 _ACEOF
1560
1561
1562 cat >>confdefs.h <<_ACEOF
1563 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1564 _ACEOF
1565
1566
1567 cat >>confdefs.h <<_ACEOF
1568 #define PACKAGE_STRING "$PACKAGE_STRING"
1569 _ACEOF
1570
1571
1572 cat >>confdefs.h <<_ACEOF
1573 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1574 _ACEOF
1575
1576
1577 # Let the site file select an alternate cache file if it wants to.
1578 # Prefer explicitly selected file to automatically selected ones.
1579 if test -z "$CONFIG_SITE"; then
1580 if test "x$prefix" != xNONE; then
1581 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1582 else
1583 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1584 fi
1585 fi
1586 for ac_site_file in $CONFIG_SITE; do
1587 if test -r "$ac_site_file"; then
1588 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1589 echo "$as_me: loading site script $ac_site_file" >&6;}
1590 sed 's/^/| /' "$ac_site_file" >&5
1591 . "$ac_site_file"
1592 fi
1593 done
1594
1595 if test -r "$cache_file"; then
1596 # Some versions of bash will fail to source /dev/null (special
1597 # files actually), so we avoid doing that.
1598 if test -f "$cache_file"; then
1599 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1600 echo "$as_me: loading cache $cache_file" >&6;}
1601 case $cache_file in
1602 [\\/]* | ?:[\\/]* ) . $cache_file;;
1603 *) . ./$cache_file;;
1604 esac
1605 fi
1606 else
1607 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1608 echo "$as_me: creating cache $cache_file" >&6;}
1609 >$cache_file
1610 fi
1611
1612 # Check that the precious variables saved in the cache have kept the same
1613 # value.
1614 ac_cache_corrupted=false
1615 for ac_var in `(set) 2>&1 |
1616 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1617 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1618 eval ac_new_set=\$ac_env_${ac_var}_set
1619 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1620 eval ac_new_val="\$ac_env_${ac_var}_value"
1621 case $ac_old_set,$ac_new_set in
1622 set,)
1623 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1624 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1625 ac_cache_corrupted=: ;;
1626 ,set)
1627 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1628 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1629 ac_cache_corrupted=: ;;
1630 ,);;
1631 *)
1632 if test "x$ac_old_val" != "x$ac_new_val"; then
1633 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1634 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1635 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1636 echo "$as_me: former value: $ac_old_val" >&2;}
1637 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1638 echo "$as_me: current value: $ac_new_val" >&2;}
1639 ac_cache_corrupted=:
1640 fi;;
1641 esac
1642 # Pass precious variables to config.status.
1643 if test "$ac_new_set" = set; then
1644 case $ac_new_val in
1645 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1646 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 *) ac_arg=$ac_var=$ac_new_val ;;
1648 esac
1649 case " $ac_configure_args " in
1650 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1651 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1652 esac
1653 fi
1654 done
1655 if $ac_cache_corrupted; then
1656 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1657 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1658 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1659 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1660 { (exit 1); exit 1; }; }
1661 fi
1662
1663 ac_ext=c
1664 ac_cpp='$CPP $CPPFLAGS'
1665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700 # List one file in the package so that the configure script can test
1701 # whether the package is actually there
1702
1703
1704 # Where should everything be installed by default? Here, we want it
1705 # to be installed directly in 'bin', 'lib', 'include' subdirectories
1706 # of the directory where configure is run. The default would be
1707 # /usr/local.
1708
1709
1710 #############################################################################
1711 # Do the tests necessary to configure compilers and initialise autotools #
1712 #############################################################################
1713
1714 ac_aux_dir=
1715 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1716 if test -f $ac_dir/install-sh; then
1717 ac_aux_dir=$ac_dir
1718 ac_install_sh="$ac_aux_dir/install-sh -c"
1719 break
1720 elif test -f $ac_dir/install.sh; then
1721 ac_aux_dir=$ac_dir
1722 ac_install_sh="$ac_aux_dir/install.sh -c"
1723 break
1724 elif test -f $ac_dir/shtool; then
1725 ac_aux_dir=$ac_dir
1726 ac_install_sh="$ac_aux_dir/shtool install -c"
1727 break
1728 fi
1729 done
1730 if test -z "$ac_aux_dir"; then
1731 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1732 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1733 { (exit 1); exit 1; }; }
1734 fi
1735 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1736 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1737 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1738
1739 # Make sure we can run config.sub.
1740 $ac_config_sub sun4 >/dev/null 2>&1 ||
1741 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1742 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1743 { (exit 1); exit 1; }; }
1744
1745 echo "$as_me:$LINENO: checking build system type" >&5
1746 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1747 if test "${ac_cv_build+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750 ac_cv_build_alias=$build_alias
1751 test -z "$ac_cv_build_alias" &&
1752 ac_cv_build_alias=`$ac_config_guess`
1753 test -z "$ac_cv_build_alias" &&
1754 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1755 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1756 { (exit 1); exit 1; }; }
1757 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1758 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1759 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1760 { (exit 1); exit 1; }; }
1761
1762 fi
1763 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1764 echo "${ECHO_T}$ac_cv_build" >&6
1765 build=$ac_cv_build
1766 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1767 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1768 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1769
1770
1771
1772 # Check if user wants to produce debugging code
1773
1774 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1775 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1776
1777 # Check whether --enable-debug or --disable-debug was given.
1778 if test "${enable_debug+set}" = set; then
1779 enableval="$enable_debug"
1780 case "${enableval}" in
1781 yes) coin_debug_compile=true
1782 if test "${enable_shared+set}" = set; then :; else
1783 enable_shared=no
1784 fi
1785 ;;
1786 no) coin_debug_compile=false
1787 ;;
1788 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1789 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1790 { (exit 1); exit 1; }; }
1791 ;;
1792 esac
1793 else
1794 coin_debug_compile=false
1795 fi;
1796
1797 # m4_ifvaln([],
1798
1799 if test $coin_debug_compile = true; then
1800 echo "$as_me:$LINENO: result: yes" >&5
1801 echo "${ECHO_T}yes" >&6
1802 else
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805 fi
1806
1807 # m4_ifvaln([],
1808
1809
1810
1811 # Get the name of the C compiler and appropriate compiler options
1812
1813
1814 # for backward compatibility
1815 # Check whether --enable-doscompile or --disable-doscompile was given.
1816 if test "${enable_doscompile+set}" = set; then
1817 enableval="$enable_doscompile"
1818 enable_doscompile=$enableval
1819 else
1820 enable_doscompile=no
1821 fi;
1822
1823 # Check whether --enable-msvc or --disable-msvc was given.
1824 if test "${enable_msvc+set}" = set; then
1825 enableval="$enable_msvc"
1826 enable_msvc=$enableval
1827 else
1828 enable_msvc=no
1829 if test "$enable_doscompile" = msvc ; then
1830 enable_msvc=yes
1831 elif test "$enable_doscompile" != no ; then
1832 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1833 echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1834 { (exit 1); exit 1; }; }
1835 fi
1836
1837 fi;
1838
1839 if test "$enable_msvc" = MD; then
1840 enable_shared=yes
1841 enable_msvc=yes
1842 fi
1843
1844 if test "$enable_msvc" = yes; then
1845 case $build in
1846 *-cygwin* | *-mingw*) ;;
1847 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1848 echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1849 { (exit 1); exit 1; }; } ;;
1850 esac
1851 fi
1852
1853
1854
1855 ac_ext=c
1856 ac_cpp='$CPP $CPPFLAGS'
1857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1860
1861
1862 # For consistency, we set the C compiler to the same value of the C++
1863 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1864 if test x"$CXX" != x; then
1865 case "$CXX" in
1866 clang* | */clang* ) ;;
1867 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1868 if test x"$CC" = x; then
1869 CC="$CXX"
1870 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1871 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1872 fi
1873 ;;
1874 esac
1875 fi
1876
1877
1878
1879
1880
1881
1882 coin_has_cc=yes
1883
1884 save_cflags="$CFLAGS"
1885
1886 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1887 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
1888 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
1889 # compiler. In this case, put cc after gcc.
1890
1891 case $build in
1892 *-cygwin* | *-mingw*)
1893 if test "$enable_msvc" = yes ; then
1894 comps="icl cl gcc"
1895 else
1896 comps="gcc icl cl"
1897 fi ;;
1898 *-*-solaris*)
1899 # Extract the first word of "cc", so it can be a program name with args.
1900 set dummy cc; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906 if test -n "$sol_cc_compiler"; then
1907 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1908 else
1909 ac_prog_rejected=no
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1912 do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1918 ac_prog_rejected=yes
1919 continue
1920 fi
1921 ac_cv_prog_sol_cc_compiler="cc"
1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 break 2
1924 fi
1925 done
1926 done
1927
1928 if test $ac_prog_rejected = yes; then
1929 # We found a bogon in the path, so make sure we never use it.
1930 set dummy $ac_cv_prog_sol_cc_compiler
1931 shift
1932 if test $# != 0; then
1933 # We chose a different compiler from the bogus one.
1934 # However, it has the same basename, so the bogon will be chosen
1935 # first if we set sol_cc_compiler to just the basename; use the full file name.
1936 shift
1937 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1938 fi
1939 fi
1940 fi
1941 fi
1942 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1943 if test -n "$sol_cc_compiler"; then
1944 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1945 echo "${ECHO_T}$sol_cc_compiler" >&6
1946 else
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 fi
1950
1951 if test "$sol_cc_compiler" = "cc" ; then
1952 comps="cc xlc gcc pgcc icc"
1953 else
1954 comps="xlc gcc pgcc icc cc"
1955 fi
1956 ;;
1957 *-*-darwin*) comps="clang gcc cc" ;;
1958 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1959 *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1960 *) comps="xlc_r xlc cc gcc pgcc icc" ;;
1961 esac
1962
1963 # We delete the cached value, since the test might not have been
1964 # performed with our choice of compilers earlier
1965 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1966 # AC_MSG_NOTICE([C compiler candidates: $comps])
1967 ac_ext=c
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972 if test -n "$ac_tool_prefix"; then
1973 for ac_prog in $comps
1974 do
1975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1984 else
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 break 2
1995 fi
1996 done
1997 done
1998
1999 fi
2000 fi
2001 CC=$ac_cv_prog_CC
2002 if test -n "$CC"; then
2003 echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6
2005 else
2006 echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2008 fi
2009
2010 test -n "$CC" && break
2011 done
2012 fi
2013 if test -z "$CC"; then
2014 ac_ct_CC=$CC
2015 for ac_prog in $comps
2016 do
2017 # Extract the first word of "$ac_prog", so it can be a program name with args.
2018 set dummy $ac_prog; ac_word=$2
2019 echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024 if test -n "$ac_ct_CC"; then
2025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026 else
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2029 do
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034 ac_cv_prog_ac_ct_CC="$ac_prog"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 break 2
2037 fi
2038 done
2039 done
2040
2041 fi
2042 fi
2043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044 if test -n "$ac_ct_CC"; then
2045 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046 echo "${ECHO_T}$ac_ct_CC" >&6
2047 else
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2050 fi
2051
2052 test -n "$ac_ct_CC" && break
2053 done
2054
2055 CC=$ac_ct_CC
2056 fi
2057
2058
2059 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&2;}
2063 { (exit 1); exit 1; }; }
2064
2065 # Provide some information about the compiler.
2066 echo "$as_me:$LINENO:" \
2067 "checking for C compiler version" >&5
2068 ac_compiler=`set X $ac_compile; echo $2`
2069 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2070 (eval $ac_compiler --version </dev/null >&5) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }
2074 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2075 (eval $ac_compiler -v </dev/null >&5) 2>&5
2076 ac_status=$?
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }
2079 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2080 (eval $ac_compiler -V </dev/null >&5) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }
2084
2085 cat >conftest.$ac_ext <<_ACEOF
2086 /* confdefs.h. */
2087 _ACEOF
2088 cat confdefs.h >>conftest.$ac_ext
2089 cat >>conftest.$ac_ext <<_ACEOF
2090 /* end confdefs.h. */
2091
2092 int
2093 main ()
2094 {
2095
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 ac_clean_files_save=$ac_clean_files
2101 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2102 # Try to create an executable without -o first, disregard a.out.
2103 # It will help us diagnose broken compilers, and finding out an intuition
2104 # of exeext.
2105 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2106 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2107 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2108 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2109 (eval $ac_link_default) 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; then
2113 # Find the output, starting from the most likely. This scheme is
2114 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2115 # resort.
2116
2117 # Be careful to initialize this variable, since it used to be cached.
2118 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2119 ac_cv_exeext=
2120 # b.out is created by i960 compilers.
2121 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2122 do
2123 test -f "$ac_file" || continue
2124 case $ac_file in
2125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2126 ;;
2127 conftest.$ac_ext )
2128 # This is the source file.
2129 ;;
2130 [ab].out )
2131 # We found the default executable, but exeext='' is most
2132 # certainly right.
2133 break;;
2134 *.* )
2135 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2136 # FIXME: I believe we export ac_cv_exeext for Libtool,
2137 # but it would be cool to find out if it's true. Does anybody
2138 # maintain Libtool? --akim.
2139 export ac_cv_exeext
2140 break;;
2141 * )
2142 break;;
2143 esac
2144 done
2145 else
2146 echo "$as_me: failed program was:" >&5
2147 sed 's/^/| /' conftest.$ac_ext >&5
2148
2149 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2150 See \`config.log' for more details." >&5
2151 echo "$as_me: error: C compiler cannot create executables
2152 See \`config.log' for more details." >&2;}
2153 { (exit 77); exit 77; }; }
2154 fi
2155
2156 ac_exeext=$ac_cv_exeext
2157 echo "$as_me:$LINENO: result: $ac_file" >&5
2158 echo "${ECHO_T}$ac_file" >&6
2159
2160 # Check the compiler produces executables we can run. If not, either
2161 # the compiler is broken, or we cross compile.
2162 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2163 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2164 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2165 # If not cross compiling, check that we can run a simple program.
2166 if test "$cross_compiling" != yes; then
2167 if { ac_try='./$ac_file'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 (eval $ac_try) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; }; then
2173 cross_compiling=no
2174 else
2175 if test "$cross_compiling" = maybe; then
2176 cross_compiling=yes
2177 else
2178 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2179 If you meant to cross compile, use \`--host'.
2180 See \`config.log' for more details." >&5
2181 echo "$as_me: error: cannot run C compiled programs.
2182 If you meant to cross compile, use \`--host'.
2183 See \`config.log' for more details." >&2;}
2184 { (exit 1); exit 1; }; }
2185 fi
2186 fi
2187 fi
2188 echo "$as_me:$LINENO: result: yes" >&5
2189 echo "${ECHO_T}yes" >&6
2190
2191 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2192 ac_clean_files=$ac_clean_files_save
2193 # Check the compiler produces executables we can run. If not, either
2194 # the compiler is broken, or we cross compile.
2195 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2196 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2197 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2198 echo "${ECHO_T}$cross_compiling" >&6
2199
2200 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2201 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2203 (eval $ac_link) 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; then
2207 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2208 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2209 # work properly (i.e., refer to `conftest.exe'), while it won't with
2210 # `rm'.
2211 for ac_file in conftest.exe conftest conftest.*; do
2212 test -f "$ac_file" || continue
2213 case $ac_file in
2214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2215 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216 export ac_cv_exeext
2217 break;;
2218 * ) break;;
2219 esac
2220 done
2221 else
2222 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2225 See \`config.log' for more details." >&2;}
2226 { (exit 1); exit 1; }; }
2227 fi
2228
2229 rm -f conftest$ac_cv_exeext
2230 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2231 echo "${ECHO_T}$ac_cv_exeext" >&6
2232
2233 rm -f conftest.$ac_ext
2234 EXEEXT=$ac_cv_exeext
2235 ac_exeext=$EXEEXT
2236 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2237 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2238 if test "${ac_cv_objext+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241 cat >conftest.$ac_ext <<_ACEOF
2242 /* confdefs.h. */
2243 _ACEOF
2244 cat confdefs.h >>conftest.$ac_ext
2245 cat >>conftest.$ac_ext <<_ACEOF
2246 /* end confdefs.h. */
2247
2248 int
2249 main ()
2250 {
2251
2252 ;
2253 return 0;
2254 }
2255 _ACEOF
2256 rm -f conftest.o conftest.obj
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; then
2262 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2263 case $ac_file in
2264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2265 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2266 break;;
2267 esac
2268 done
2269 else
2270 echo "$as_me: failed program was:" >&5
2271 sed 's/^/| /' conftest.$ac_ext >&5
2272
2273 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2276 See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
2278 fi
2279
2280 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2281 fi
2282 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2283 echo "${ECHO_T}$ac_cv_objext" >&6
2284 OBJEXT=$ac_cv_objext
2285 ac_objext=$OBJEXT
2286 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2287 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2288 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291 cat >conftest.$ac_ext <<_ACEOF
2292 /* confdefs.h. */
2293 _ACEOF
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h. */
2297
2298 int
2299 main ()
2300 {
2301 #ifndef __GNUC__
2302 choke me
2303 #endif
2304
2305 ;
2306 return 0;
2307 }
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2312 ac_status=$?
2313 grep -v '^ *+' conftest.er1 >conftest.err
2314 rm -f conftest.er1
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -z "$ac_c_werror_flag"
2319 || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 ac_compiler_gnu=yes
2332 else
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2335
2336 ac_compiler_gnu=no
2337 fi
2338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2340
2341 fi
2342 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2343 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2344 GCC=`test $ac_compiler_gnu = yes && echo yes`
2345 ac_test_CFLAGS=${CFLAGS+set}
2346 ac_save_CFLAGS=$CFLAGS
2347 CFLAGS="-g"
2348 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2349 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2350 if test "${ac_cv_prog_cc_g+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353 cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h. */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2359
2360 int
2361 main ()
2362 {
2363
2364 ;
2365 return 0;
2366 }
2367 _ACEOF
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370 (eval $ac_compile) 2>conftest.er1
2371 ac_status=$?
2372 grep -v '^ *+' conftest.er1 >conftest.err
2373 rm -f conftest.er1
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag"
2378 || test ! -s conftest.err'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 (eval $ac_try) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2390 ac_cv_prog_cc_g=yes
2391 else
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 ac_cv_prog_cc_g=no
2396 fi
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398 fi
2399 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2400 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2401 if test "$ac_test_CFLAGS" = set; then
2402 CFLAGS=$ac_save_CFLAGS
2403 elif test $ac_cv_prog_cc_g = yes; then
2404 if test "$GCC" = yes; then
2405 CFLAGS="-g -O2"
2406 else
2407 CFLAGS="-g"
2408 fi
2409 else
2410 if test "$GCC" = yes; then
2411 CFLAGS="-O2"
2412 else
2413 CFLAGS=
2414 fi
2415 fi
2416 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2417 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2418 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421 ac_cv_prog_cc_stdc=no
2422 ac_save_CC=$CC
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2429 #include <stdarg.h>
2430 #include <stdio.h>
2431 #include <sys/types.h>
2432 #include <sys/stat.h>
2433 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2434 struct buf { int x; };
2435 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2436 static char *e (p, i)
2437 char **p;
2438 int i;
2439 {
2440 return p[i];
2441 }
2442 static char *f (char * (*g) (char **, int), char **p, ...)
2443 {
2444 char *s;
2445 va_list v;
2446 va_start (v,p);
2447 s = g (p, va_arg (v,int));
2448 va_end (v);
2449 return s;
2450 }
2451
2452 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2453 function prototypes and stuff, but not '\xHH' hex character constants.
2454 These don't provoke an error unfortunately, instead are silently treated
2455 as 'x'. The following induces an error, until -std1 is added to get
2456 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2457 array size at least. It's necessary to write '\x00'==0 to get something
2458 that's true only with -std1. */
2459 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2460
2461 int test (int i, double x);
2462 struct s1 {int (*f) (int a);};
2463 struct s2 {int (*f) (double a);};
2464 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2465 int argc;
2466 char **argv;
2467 int
2468 main ()
2469 {
2470 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2471 ;
2472 return 0;
2473 }
2474 _ACEOF
2475 # Don't try gcc -ansi; that turns off useful extensions and
2476 # breaks some systems' header files.
2477 # AIX -qlanglvl=ansi
2478 # Ultrix and OSF/1 -std1
2479 # HP-UX 10.20 and later -Ae
2480 # HP-UX older versions -Aa -D_HPUX_SOURCE
2481 # SVR4 -Xc -D__EXTENSIONS__
2482 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2483 do
2484 CC="$ac_save_CC $ac_arg"
2485 rm -f conftest.$ac_objext
2486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487 (eval $ac_compile) 2>conftest.er1
2488 ac_status=$?
2489 grep -v '^ *+' conftest.er1 >conftest.err
2490 rm -f conftest.er1
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -z "$ac_c_werror_flag"
2495 || test ! -s conftest.err'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2507 ac_cv_prog_cc_stdc=$ac_arg
2508 break
2509 else
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512
2513 fi
2514 rm -f conftest.err conftest.$ac_objext
2515 done
2516 rm -f conftest.$ac_ext conftest.$ac_objext
2517 CC=$ac_save_CC
2518
2519 fi
2520
2521 case "x$ac_cv_prog_cc_stdc" in
2522 x|xno)
2523 echo "$as_me:$LINENO: result: none needed" >&5
2524 echo "${ECHO_T}none needed" >&6 ;;
2525 *)
2526 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2527 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2528 CC="$CC $ac_cv_prog_cc_stdc" ;;
2529 esac
2530
2531 # Some people use a C++ compiler to compile C. Since we use `exit',
2532 # in C++ we need to declare it. In case someone uses the same compiler
2533 # for both compiling C and C++ we need to have the C++ compiler decide
2534 # the declaration of exit, since it's the most demanding environment.
2535 cat >conftest.$ac_ext <<_ACEOF
2536 #ifndef __cplusplus
2537 choke me
2538 #endif
2539 _ACEOF
2540 rm -f conftest.$ac_objext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542 (eval $ac_compile) 2>conftest.er1
2543 ac_status=$?
2544 grep -v '^ *+' conftest.er1 >conftest.err
2545 rm -f conftest.er1
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_c_werror_flag"
2550 || test ! -s conftest.err'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 (eval $ac_try) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; } &&
2556 { ac_try='test -s conftest.$ac_objext'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2562 for ac_declaration in \
2563 '' \
2564 'extern "C" void std::exit (int) throw (); using std::exit;' \
2565 'extern "C" void std::exit (int); using std::exit;' \
2566 'extern "C" void exit (int) throw ();' \
2567 'extern "C" void exit (int);' \
2568 'void exit (int);'
2569 do
2570 cat >conftest.$ac_ext <<_ACEOF
2571 /* confdefs.h. */
2572 _ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2576 $ac_declaration
2577 #include <stdlib.h>
2578 int
2579 main ()
2580 {
2581 exit (42);
2582 ;
2583 return 0;
2584 }
2585 _ACEOF
2586 rm -f conftest.$ac_objext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588 (eval $ac_compile) 2>conftest.er1
2589 ac_status=$?
2590 grep -v '^ *+' conftest.er1 >conftest.err
2591 rm -f conftest.er1
2592 cat conftest.err >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } &&
2595 { ac_try='test -z "$ac_c_werror_flag"
2596 || test ! -s conftest.err'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 (eval $ac_try) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; } &&
2602 { ac_try='test -s conftest.$ac_objext'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 (eval $ac_try) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2608 :
2609 else
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613 continue
2614 fi
2615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2616 cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h. */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2622 $ac_declaration
2623 int
2624 main ()
2625 {
2626 exit (42);
2627 ;
2628 return 0;
2629 }
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633 (eval $ac_compile) 2>conftest.er1
2634 ac_status=$?
2635 grep -v '^ *+' conftest.er1 >conftest.err
2636 rm -f conftest.er1
2637 cat conftest.err >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } &&
2640 { ac_try='test -z "$ac_c_werror_flag"
2641 || test ! -s conftest.err'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; } &&
2647 { ac_try='test -s conftest.$ac_objext'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 (eval $ac_try) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; }; then
2653 break
2654 else
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 fi
2659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2660 done
2661 rm -f conftest*
2662 if test -n "$ac_declaration"; then
2663 echo '#ifdef __cplusplus' >>confdefs.h
2664 echo $ac_declaration >>confdefs.h
2665 echo '#endif' >>confdefs.h
2666 fi
2667
2668 else
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2671
2672 fi
2673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674 ac_ext=c
2675 ac_cpp='$CPP $CPPFLAGS'
2676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679
2680 if test -z "$CC" ; then
2681 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2682 echo "$as_me: error: Failed to find a C compiler!" >&2;}
2683 { (exit 1); exit 1; }; }
2684 fi
2685 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2686 case "$CC" in
2687 clang* | */clang* ) ;;
2688 cl* | */cl* | CL* | */CL* )
2689 if test "$ac_cv_prog_cc_g" = yes ; then
2690 ac_cv_prog_cc_g=no
2691 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2692 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2693 fi ;;
2694 * )
2695 if test x"$CYGPATH_W" = x ; then
2696 CYGPATH_W=echo
2697 fi
2698 ;;
2699 esac
2700 CFLAGS="$save_cflags"
2701
2702 # add automake conditional so we can recognize cl compiler in makefile
2703 coin_cc_is_cl=false
2704 case "$CC" in
2705 clang* | */clang* ) ;;
2706 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2707 coin_cc_is_cl=true
2708 ;;
2709 esac
2710
2711
2712 if test $coin_cc_is_cl = true; then
2713 COIN_CC_IS_CL_TRUE=
2714 COIN_CC_IS_CL_FALSE='#'
2715 else
2716 COIN_CC_IS_CL_TRUE='#'
2717 COIN_CC_IS_CL_FALSE=
2718 fi
2719
2720
2721 # Check if a project specific CFLAGS variable has been set
2722 if test x$COIN_PRJCT != x; then
2723 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2724 if test x$coin_tmp = xset; then
2725 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2726 fi
2727 fi
2728
2729 if test x"$CFLAGS" = x; then
2730
2731 coin_add_cflags=
2732 coin_opt_cflags=
2733 coin_dbg_cflags=
2734 coin_warn_cflags=
2735
2736 if test "$GCC" = "yes"; then
2737 case "$CC" in
2738 icc* | */icc*)
2739 ;;
2740 *)
2741 coin_opt_cflags="-O3"
2742 coin_add_cflags="-pipe"
2743 coin_dbg_cflags="-g -O0"
2744 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2745 esac
2746 fi
2747 if test -z "$coin_opt_cflags"; then
2748 case $build in
2749 *-cygwin* | *-mingw*)
2750 case "$CC" in
2751 clang* | */clang* ) ;;
2752 cl* | */cl* | CL* | */CL*)
2753 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2754 coin_opt_cflags='-MD -O2'
2755 coin_dbg_cflags='-MDd'
2756 else
2757 coin_opt_cflags='-MT -O2'
2758 coin_dbg_cflags='-MTd'
2759 fi
2760 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2761 ;;
2762 icl* | */icl* | ICL* | */ICL*)
2763 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2764 coin_opt_cflags='-MD -Ox'
2765 coin_dbg_cflags='-MDd -debug'
2766 else
2767 coin_opt_cflags='-MT -Ox'
2768 coin_dbg_cflags='-MTd -debug'
2769 fi
2770 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2771 ;;
2772 esac
2773 ;;
2774 *-linux-*)
2775 case "$CC" in
2776 icc* | */icc*)
2777 coin_opt_cflags="-O3 -ip -mp1"
2778 coin_add_cflags=""
2779 coin_dbg_cflags="-g"
2780 # Check if -i_dynamic is necessary (for new glibc library)
2781 CFLAGS=
2782 cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h. */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2788
2789 int
2790 main ()
2791 {
2792 int i=0; i++;
2793 ;
2794 return 0;
2795 }
2796 _ACEOF
2797 rm -f conftest.$ac_objext conftest$ac_exeext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2799 (eval $ac_link) 2>conftest.er1
2800 ac_status=$?
2801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
2806 { ac_try='test -z "$ac_c_werror_flag"
2807 || test ! -s conftest.err'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 (eval $ac_try) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; } &&
2813 { ac_try='test -s conftest$ac_exeext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 :
2820 else
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 coin_add_cflags="-i_dynamic $coin_add_cflags"
2825 fi
2826 rm -f conftest.err conftest.$ac_objext \
2827 conftest$ac_exeext conftest.$ac_ext
2828 ;;
2829 pgcc* | */pgcc*)
2830 coin_opt_cflags="-fast"
2831 coin_add_cflags="-Kieee -pc 64"
2832 coin_dbg_cflags="-g"
2833 ;;
2834 esac
2835 ;;
2836 *-ibm-*)
2837 case "$CC" in
2838 xlc* | */xlc* | mpxlc* | */mpxlc*)
2839 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2840 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2841 coin_dbg_cflags="-g"
2842 ;;
2843 esac
2844 ;;
2845 *-hp-*)
2846 coin_opt_cflags="-O"
2847 coin_add_cflags="-Ae"
2848 coin_dbg_cflags="-g"
2849 ;;
2850 *-*-solaris*)
2851 coin_opt_cflags="-xO4"
2852 coin_dbg_cflags="-g"
2853 ;;
2854 *-sgi-*)
2855 coin_opt_cflags="-O -OPT:Olimit=0"
2856 coin_dbg_cflags="-g"
2857 ;;
2858 esac
2859 fi
2860
2861 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2862 coin_dbg_cflags="-g"
2863 fi
2864
2865 if test -z "$coin_opt_cflags"; then
2866 # Try if -O option works if nothing else is set
2867 CFLAGS="-O"
2868 cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h. */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2874
2875 int
2876 main ()
2877 {
2878 int i=0; i++;
2879 ;
2880 return 0;
2881 }
2882 _ACEOF
2883 rm -f conftest.$ac_objext conftest$ac_exeext
2884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2885 (eval $ac_link) 2>conftest.er1
2886 ac_status=$?
2887 grep -v '^ *+' conftest.er1 >conftest.err
2888 rm -f conftest.er1
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } &&
2892 { ac_try='test -z "$ac_c_werror_flag"
2893 || test ! -s conftest.err'
2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 (eval $ac_try) 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; } &&
2899 { ac_try='test -s conftest$ac_exeext'
2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 (eval $ac_try) 2>&5
2902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; }; then
2905 coin_opt_cflags="-O"
2906 else
2907 echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.$ac_ext >&5
2909
2910 fi
2911 rm -f conftest.err conftest.$ac_objext \
2912 conftest$ac_exeext conftest.$ac_ext
2913 fi
2914
2915 # if PM doesn't want the warning messages, take them out
2916 if test x"$coin_skip_warn_cflags" = xyes; then
2917 coin_warn_cflags=
2918 fi
2919
2920 if test x${DBG_CFLAGS+set} != xset; then
2921 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2922 fi
2923 if test x${OPT_CFLAGS+set} != xset; then
2924 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2925 fi
2926
2927 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2928 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2929
2930 if test "$coin_debug_compile" = "true"; then
2931 CFLAGS="$DBG_CFLAGS"
2932 else
2933 CFLAGS="$OPT_CFLAGS"
2934 fi
2935 else
2936 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2937 if test x${DBG_CFLAGS+set} != xset; then
2938 DBG_CFLAGS="$CFLAGS"
2939 fi
2940 if test x${OPT_CFLAGS+set} != xset; then
2941 OPT_CFLAGS="$CFLAGS"
2942 fi
2943 fi
2944
2945 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2946 if test x$COIN_PRJCT != x; then
2947 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2948 fi
2949
2950 # Try if CFLAGS works
2951 save_CFLAGS="$CFLAGS"
2952 cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h. */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2958
2959 int
2960 main ()
2961 {
2962 int i=0; i++;
2963 ;
2964 return 0;
2965 }
2966 _ACEOF
2967 rm -f conftest.$ac_objext conftest$ac_exeext
2968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2969 (eval $ac_link) 2>conftest.er1
2970 ac_status=$?
2971 grep -v '^ *+' conftest.er1 >conftest.err
2972 rm -f conftest.er1
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try='test -z "$ac_c_werror_flag"
2977 || test ! -s conftest.err'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 (eval $ac_try) 2>&5
2980 ac_status=$?
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; } &&
2983 { ac_try='test -s conftest$ac_exeext'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 (eval $ac_try) 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2989 :
2990 else
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2993
2994 CFLAGS=
2995 fi
2996 rm -f conftest.err conftest.$ac_objext \
2997 conftest$ac_exeext conftest.$ac_ext
2998 if test -z "$CFLAGS"; then
2999 { 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
3000 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;}
3001 CFLAGS='-O'
3002 cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h. */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3008
3009 int
3010 main ()
3011 {
3012 int i=0; i++;
3013 ;
3014 return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.$ac_objext conftest$ac_exeext
3018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3019 (eval $ac_link) 2>conftest.er1
3020 ac_status=$?
3021 grep -v '^ *+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -z "$ac_c_werror_flag"
3027 || test ! -s conftest.err'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; } &&
3033 { ac_try='test -s conftest$ac_exeext'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 :
3040 else
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 CFLAGS=
3045 fi
3046 rm -f conftest.err conftest.$ac_objext \
3047 conftest$ac_exeext conftest.$ac_ext
3048 if test -z "$CFLAGS"; then
3049 { 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
3050 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;}
3051 fi
3052 fi
3053
3054 { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3055 echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3056
3057
3058 if test x"$MPICC" = x; then :; else
3059 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3060 echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3061 CC="$MPICC"
3062 fi
3063
3064 # Correct the LD variable if we are using the MS or Intel-windows compiler
3065 case "$CC" in
3066 clang* | */clang* ) ;;
3067 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3068 LD=link
3069 ;;
3070 esac
3071
3072 ac_ext=c
3073 ac_cpp='$CPP $CPPFLAGS'
3074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077
3078
3079
3080 # Get the name of the C++ compiler and appropriate compiler options
3081
3082 #Let's try if that overcomes configuration problem with VC++ 6.0
3083
3084 ac_ext=cc
3085 ac_cpp='$CXXCPP $CPPFLAGS'
3086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3089
3090
3091
3092
3093
3094
3095
3096 coin_has_cxx=yes
3097
3098 save_cxxflags="$CXXFLAGS"
3099 # For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3100 case $build in
3101 *-cygwin* | *-mingw*)
3102 if test "$enable_msvc" = yes ; then
3103 comps="icl cl g++"
3104 else
3105 comps="g++ icl cl"
3106 fi ;;
3107 *-*-solaris*)
3108 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3109 *-darwin*) comps="clang++ g++ c++ CC" ;;
3110 *-linux-gnu*)
3111 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3112 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3113 esac
3114
3115 # We delete the cached value, since the test might not have been
3116 # performed with our choice of compilers earlier
3117 $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3118 # AC_MSG_NOTICE([C++ compiler candidates: $comps])
3119 ac_ext=cc
3120 ac_cpp='$CXXCPP $CPPFLAGS'
3121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3124 if test -n "$ac_tool_prefix"; then
3125 for ac_prog in $CCC $comps
3126 do
3127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3129 echo "$as_me:$LINENO: checking for $ac_word" >&5
3130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3131 if test "${ac_cv_prog_CXX+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134 if test -n "$CXX"; then
3135 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3147 fi
3148 done
3149 done
3150
3151 fi
3152 fi
3153 CXX=$ac_cv_prog_CXX
3154 if test -n "$CXX"; then
3155 echo "$as_me:$LINENO: result: $CXX" >&5
3156 echo "${ECHO_T}$CXX" >&6
3157 else
3158 echo "$as_me:$LINENO: result: no" >&5
3159 echo "${ECHO_T}no" >&6
3160 fi
3161
3162 test -n "$CXX" && break
3163 done
3164 fi
3165 if test -z "$CXX"; then
3166 ac_ct_CXX=$CXX
3167 for ac_prog in $CCC $comps
3168 do
3169 # Extract the first word of "$ac_prog", so it can be a program name with args.
3170 set dummy $ac_prog; ac_word=$2
3171 echo "$as_me:$LINENO: checking for $ac_word" >&5
3172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3173 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176 if test -n "$ac_ct_CXX"; then
3177 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186 ac_cv_prog_ac_ct_CXX="$ac_prog"
3187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3189 fi
3190 done
3191 done
3192
3193 fi
3194 fi
3195 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3196 if test -n "$ac_ct_CXX"; then
3197 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3198 echo "${ECHO_T}$ac_ct_CXX" >&6
3199 else
3200 echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6
3202 fi
3203
3204 test -n "$ac_ct_CXX" && break
3205 done
3206 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3207
3208 CXX=$ac_ct_CXX
3209 fi
3210
3211
3212 # Provide some information about the compiler.
3213 echo "$as_me:$LINENO:" \
3214 "checking for C++ compiler version" >&5
3215 ac_compiler=`set X $ac_compile; echo $2`
3216 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3217 (eval $ac_compiler --version </dev/null >&5) 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }
3221 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3222 (eval $ac_compiler -v </dev/null >&5) 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }
3226 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3227 (eval $ac_compiler -V </dev/null >&5) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }
3231
3232 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3233 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3234 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h. */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3243
3244 int
3245 main ()
3246 {
3247 #ifndef __GNUC__
3248 choke me
3249 #endif
3250
3251 ;
3252 return 0;
3253 }
3254 _ACEOF
3255 rm -f conftest.$ac_objext
3256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257 (eval $ac_compile) 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -z "$ac_cxx_werror_flag"
3265 || test ! -s conftest.err'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; } &&
3271 { ac_try='test -s conftest.$ac_objext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 ac_compiler_gnu=yes
3278 else
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 ac_compiler_gnu=no
3283 fi
3284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3285 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3286
3287 fi
3288 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3289 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3290 GXX=`test $ac_compiler_gnu = yes && echo yes`
3291 ac_test_CXXFLAGS=${CXXFLAGS+set}
3292 ac_save_CXXFLAGS=$CXXFLAGS
3293 CXXFLAGS="-g"
3294 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3295 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3296 if test "${ac_cv_prog_cxx_g+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h. */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3305
3306 int
3307 main ()
3308 {
3309
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 rm -f conftest.$ac_objext
3315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3316 (eval $ac_compile) 2>conftest.er1
3317 ac_status=$?
3318 grep -v '^ *+' conftest.er1 >conftest.err
3319 rm -f conftest.er1
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try='test -z "$ac_cxx_werror_flag"
3324 || test ! -s conftest.err'
3325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 (eval $ac_try) 2>&5
3327 ac_status=$?
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); }; } &&
3330 { ac_try='test -s conftest.$ac_objext'
3331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 (eval $ac_try) 2>&5
3333 ac_status=$?
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; }; then
3336 ac_cv_prog_cxx_g=yes
3337 else
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3340
3341 ac_cv_prog_cxx_g=no
3342 fi
3343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3344 fi
3345 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3347 if test "$ac_test_CXXFLAGS" = set; then
3348 CXXFLAGS=$ac_save_CXXFLAGS
3349 elif test $ac_cv_prog_cxx_g = yes; then
3350 if test "$GXX" = yes; then
3351 CXXFLAGS="-g -O2"
3352 else
3353 CXXFLAGS="-g"
3354 fi
3355 else
3356 if test "$GXX" = yes; then
3357 CXXFLAGS="-O2"
3358 else
3359 CXXFLAGS=
3360 fi
3361 fi
3362 for ac_declaration in \
3363 '' \
3364 'extern "C" void std::exit (int) throw (); using std::exit;' \
3365 'extern "C" void std::exit (int); using std::exit;' \
3366 'extern "C" void exit (int) throw ();' \
3367 'extern "C" void exit (int);' \
3368 'void exit (int);'
3369 do
3370 cat >conftest.$ac_ext <<_ACEOF
3371 /* confdefs.h. */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3376 $ac_declaration
3377 #include <stdlib.h>
3378 int
3379 main ()
3380 {
3381 exit (42);
3382 ;
3383 return 0;
3384 }
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388 (eval $ac_compile) 2>conftest.er1
3389 ac_status=$?
3390 grep -v '^ *+' conftest.er1 >conftest.err
3391 rm -f conftest.er1
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } &&
3395 { ac_try='test -z "$ac_cxx_werror_flag"
3396 || test ! -s conftest.err'
3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 (eval $ac_try) 2>&5
3399 ac_status=$?
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; } &&
3402 { ac_try='test -s conftest.$ac_objext'
3403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 (eval $ac_try) 2>&5
3405 ac_status=$?
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; }; then
3408 :
3409 else
3410 echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3412
3413 continue
3414 fi
3415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3416 cat >conftest.$ac_ext <<_ACEOF
3417 /* confdefs.h. */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422 $ac_declaration
3423 int
3424 main ()
3425 {
3426 exit (42);
3427 ;
3428 return 0;
3429 }
3430 _ACEOF
3431 rm -f conftest.$ac_objext
3432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3433 (eval $ac_compile) 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } &&
3440 { ac_try='test -z "$ac_cxx_werror_flag"
3441 || test ! -s conftest.err'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; } &&
3447 { ac_try='test -s conftest.$ac_objext'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 (eval $ac_try) 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; }; then
3453 break
3454 else
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458 fi
3459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3460 done
3461 rm -f conftest*
3462 if test -n "$ac_declaration"; then
3463 echo '#ifdef __cplusplus' >>confdefs.h
3464 echo $ac_declaration >>confdefs.h
3465 echo '#endif' >>confdefs.h
3466 fi
3467
3468 ac_ext=cc
3469 ac_cpp='$CXXCPP $CPPFLAGS'
3470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3473
3474
3475 #AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3476 #thus, we test here whether $CXX is actually working
3477 ac_ext=cc
3478 ac_cpp='$CXXCPP $CPPFLAGS'
3479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3482
3483 echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3484 echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3485 cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h. */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3491
3492 int
3493 main ()
3494 {
3495 int i=0;
3496 ;
3497 return 0;
3498 }
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -z "$ac_cxx_werror_flag"
3510 || test ! -s conftest.err'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 echo "$as_me:$LINENO: result: yes" >&5
3523 echo "${ECHO_T}yes" >&6
3524 else
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3527
3528 echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6
3530 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3531 echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3532 { (exit 1); exit 1; }; }
3533
3534 fi
3535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536 ac_ext=cc
3537 ac_cpp='$CXXCPP $CPPFLAGS'
3538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3541
3542
3543 coin_cxx_is_cl=false
3544 # It seems that we need to cleanup something here for the Windows
3545 case "$CXX" in
3546 clang* | */clang*) ;;
3547 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3548 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3549 mv confdefs.hh confdefs.h
3550 coin_cxx_is_cl=true
3551 ;;
3552 esac
3553
3554 # add automake conditional so we can recognize cl compiler in makefile
3555
3556
3557 if test $coin_cxx_is_cl = true; then
3558 COIN_CXX_IS_CL_TRUE=
3559 COIN_CXX_IS_CL_FALSE='#'
3560 else
3561 COIN_CXX_IS_CL_TRUE='#'
3562 COIN_CXX_IS_CL_FALSE=
3563 fi
3564
3565
3566 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3567 case "$CXX" in
3568 clang* | */clang* ) ;;
3569 cl* | */cl* | CL* | */CL* )
3570 if test "$ac_cv_prog_cxx_g" = yes ; then
3571 ac_cv_prog_cxx_g=no
3572 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3573 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3574 fi ;;
3575 * )
3576 if test x"$CYGPATH_W" = x ; then
3577 CYGPATH_W=echo
3578 fi
3579 ;;
3580 esac
3581 CXXFLAGS="$save_cxxflags"
3582
3583 # Check if a project specific CXXFLAGS variable has been set
3584 if test x$COIN_PRJCT != x; then
3585 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3586 if test x$coin_tmp = xset; then
3587 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3588 fi
3589 fi
3590
3591 if test x"$CXXFLAGS" = x; then
3592
3593 # ToDo decide whether we want -DNDEBUG for optimization
3594 coin_add_cxxflags=
3595 coin_opt_cxxflags=
3596 coin_dbg_cxxflags=
3597 coin_warn_cxxflags=
3598
3599 if test "$GXX" = "yes"; then
3600 case "$CXX" in
3601 icpc* | */icpc*)
3602 ;;
3603 *)
3604 # ToDo decide about unroll-loops
3605 coin_opt_cxxflags="-O3"
3606 coin_add_cxxflags="-pipe"
3607 coin_dbg_cxxflags="-g -O0"
3608 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3609 esac
3610 fi
3611
3612 # Note that we do not need to cover GCC in the following tests.
3613
3614 if test -z "$coin_opt_cxxflags"; then
3615 case $build in
3616 *-cygwin* | *-mingw*)
3617 case "$CXX" in
3618 clang* | */clang* ) ;;
3619 cl* | */cl* | CL* | */CL*)
3620 # The MT and MTd options are mutually exclusive
3621 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3622 coin_opt_cxxflags='-MD -O2'
3623 coin_dbg_cxxflags='-MDd'
3624 else
3625 coin_opt_cxxflags='-MT -O2'
3626 coin_dbg_cxxflags='-MTd'
3627 fi
3628 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3629 ;;
3630 icl* | */icl* | ICL* | */ICL*)
3631 # The MT and MTd options are mutually exclusive
3632 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3633 coin_opt_cxxflags='-MD -Ox'
3634 coin_dbg_cxxflags='-MDd -debug'
3635 else
3636 coin_opt_cxxflags='-MT -Ox'
3637 coin_dbg_cxxflags='-MTd -debug'
3638 fi
3639 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3640 ;;
3641 esac
3642 ;;
3643 *-linux-*)
3644 case "$CXX" in
3645 icpc* | */icpc*)
3646 coin_opt_cxxflags="-O3 -ip -mp1"
3647 coin_add_cxxflags=""
3648 coin_dbg_cxxflags="-g"
3649 # Check if -i_dynamic is necessary (for new glibc library)
3650 CXXFLAGS=
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3657
3658 int
3659 main ()
3660 {
3661 int i=0; i++;
3662 ;
3663 return 0;
3664 }
3665 _ACEOF
3666 rm -f conftest.$ac_objext conftest$ac_exeext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3668 (eval $ac_link) 2>conftest.er1
3669 ac_status=$?
3670 grep -v '^ *+' conftest.er1 >conftest.err
3671 rm -f conftest.er1
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -z "$ac_cxx_werror_flag"
3676 || test ! -s conftest.err'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; } &&
3682 { ac_try='test -s conftest$ac_exeext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 :
3689 else
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693 coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3694 fi
3695 rm -f conftest.err conftest.$ac_objext \
3696 conftest$ac_exeext conftest.$ac_ext
3697 ;;
3698 pgCC* | */pgCC*)
3699 coin_opt_cxxflags="-fast"
3700 coin_add_cxxflags="-Kieee -pc 64"
3701 coin_dbg_cxxflags="-g"
3702 ;;
3703 esac
3704 ;;
3705 *-ibm-*)
3706 case "$CXX" in
3707 xlC* | */xlC* | mpxlC* | */mpxlC*)
3708 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3709 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3710 coin_dbg_cxxflags="-g"
3711 ;;
3712 esac
3713 ;;
3714 *-hp-*)
3715 case "$CXX" in
3716 aCC* | */aCC* )
3717 coin_opt_cxxflags="-O"
3718 coin_add_cxxflags="-AA"
3719 coin_dbg_cxxflags="-g"
3720 ;;
3721 esac
3722 ;;
3723 *-*-solaris*)
3724 coin_opt_cxxflags="-O4"
3725 coin_dbg_cxxflags="-g"
3726 ;;
3727 esac
3728 fi
3729
3730 # Generic flag settings. If these don't work, add a case above.
3731
3732 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3733 coin_dbg_cxxflags="-g"
3734 fi
3735
3736 if test -z "$coin_opt_cxxflags"; then
3737 # Try if -O option works if nothing else is set
3738 CXXFLAGS=-O
3739 cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h. */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745
3746 int
3747 main ()
3748 {
3749 int i=0; i++;
3750 ;
3751 return 0;
3752 }
3753 _ACEOF
3754 rm -f conftest.$ac_objext conftest$ac_exeext
3755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3756 (eval $ac_link) 2>conftest.er1
3757 ac_status=$?
3758 grep -v '^ *+' conftest.er1 >conftest.err
3759 rm -f conftest.er1
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 { ac_try='test -z "$ac_cxx_werror_flag"
3764 || test ! -s conftest.err'
3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766 (eval $ac_try) 2>&5
3767 ac_status=$?
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; } &&
3770 { ac_try='test -s conftest$ac_exeext'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 (eval $ac_try) 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; }; then
3776 coin_opt_cxxflags="-O"
3777 else
3778 echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3780
3781 fi
3782 rm -f conftest.err conftest.$ac_objext \
3783 conftest$ac_exeext conftest.$ac_ext
3784 fi
3785
3786 # if PM doesn't want the warning messages, take them out
3787 if test x"$coin_skip_warn_cxxflags" = xyes; then
3788 coin_warn_cxxflags=
3789 fi
3790
3791 # Do final setup of flags based on values determined above.
3792
3793 if test x${DBG_CXXFLAGS+set} != xset; then
3794 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3795 fi
3796 if test x${OPT_CXXFLAGS+set} != xset; then
3797 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3798 fi
3799
3800 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3801 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3802
3803 if test "$coin_debug_compile" = "true"; then
3804 CXXFLAGS="$DBG_CXXFLAGS"
3805 else
3806 CXXFLAGS="$OPT_CXXFLAGS"
3807 fi
3808
3809 # Handle the case where CXXFLAGS was set externally.
3810 else
3811 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3812 if test x${DBG_CXXFLAGS+set} != xset; then
3813 DBG_CXXFLAGS="$CXXFLAGS"
3814 fi
3815 if test x${OPT_CXXFLAGS+set} != xset; then
3816 OPT_CXXFLAGS="$CXXFLAGS"
3817 fi
3818 fi
3819
3820 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3821 if test x$COIN_PRJCT != x; then
3822 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3823 fi
3824
3825 # Try if CXXFLAGS works
3826 save_CXXFLAGS="$CXXFLAGS"
3827 cat >conftest.$ac_ext <<_ACEOF
3828 /* confdefs.h. */
3829 _ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833
3834 int
3835 main ()
3836 {
3837 int i=0; i++;
3838 ;
3839 return 0;
3840 }
3841 _ACEOF
3842 rm -f conftest.$ac_objext conftest$ac_exeext
3843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844 (eval $ac_link) 2>conftest.er1
3845 ac_status=$?
3846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_cxx_werror_flag"
3852 || test ! -s conftest.err'
3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 (eval $ac_try) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; } &&
3858 { ac_try='test -s conftest$ac_exeext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 :
3865 else
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3868
3869 CXXFLAGS=
3870 fi
3871 rm -f conftest.err conftest.$ac_objext \
3872 conftest$ac_exeext conftest.$ac_ext
3873 if test -z "$CXXFLAGS"; then
3874 { 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
3875 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;}
3876 CXXFLAGS='-O'
3877 cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h. */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3883
3884 int
3885 main ()
3886 {
3887 int i=0; i++;
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 rm -f conftest.$ac_objext conftest$ac_exeext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894 (eval $ac_link) 2>conftest.er1
3895 ac_status=$?
3896 grep -v '^ *+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try='test -z "$ac_cxx_werror_flag"
3902 || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest$ac_exeext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 :
3915 else
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 CXXFLAGS=
3920 fi
3921 rm -f conftest.err conftest.$ac_objext \
3922 conftest$ac_exeext conftest.$ac_ext
3923 if test -z "$CXXFLAGS"; then
3924 { 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
3925 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;}
3926 fi
3927 fi
3928
3929 { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3930 echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3931
3932
3933 if test x"$MPICXX" = x; then :; else
3934 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3935 echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3936 CXX="$MPICXX"
3937 fi
3938
3939 # correct the LD variable in a build with MS or Intel-windows compiler
3940 case "$CXX" in
3941 clang* | */clang* ) ;;
3942 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3943 LD=link
3944 ;;
3945 esac
3946
3947 ac_ext=c
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953
3954
3955 # Get the name of the Fortran compiler and appropriate compiler options
3956 case $build in
3957 *-cygwin* | *-mingw*)
3958 if test "$enable_msvc" = yes ; then
3959 coin_f77_comps="ifort fl32 compile_f2c"
3960 else
3961 coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3962 fi ;;
3963 *-*-solaris*)
3964 coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3965 *-linux-gnu*)
3966 coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3967 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3968 esac
3969
3970
3971
3972
3973
3974 ac_ext=f
3975 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3976 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3978
3979
3980
3981
3982
3983
3984 coin_has_f77=yes
3985
3986 save_fflags="$FFLAGS"
3987
3988 # We delete the cached value, since the test might not have been
3989 # performed with our choice of compilers earlier
3990 $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3991
3992 # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3993 # coin_f77_comps to see if there's a program that matches one of the names.
3994 # If there's no such program, F77 = unavailable. If we match the name,
3995 # feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3996 # compiler.
3997 # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3998
3999
4000 { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4001 echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4002 if test -n "$ac_tool_prefix"; then
4003 for ac_prog in $coin_f77_comps
4004 do
4005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4007 echo "$as_me:$LINENO: checking for $ac_word" >&5
4008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4009 if test "${ac_cv_prog_F77+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012 if test -n "$F77"; then
4013 ac_cv_prog_F77="$F77" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018 IFS=$as_save_IFS
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 break 2
4025 fi
4026 done
4027 done
4028
4029 fi
4030 fi
4031 F77=$ac_cv_prog_F77
4032 if test -n "$F77"; then
4033 echo "$as_me:$LINENO: result: $F77" >&5
4034 echo "${ECHO_T}$F77" >&6
4035 else
4036 echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4038 fi
4039
4040 test -n "$F77" && break
4041 done
4042 fi
4043 if test -z "$F77"; then
4044 ac_ct_F77=$F77
4045 for ac_prog in $coin_f77_comps
4046 do
4047 # Extract the first word of "$ac_prog", so it can be a program name with args.
4048 set dummy $ac_prog; ac_word=$2
4049 echo "$as_me:$LINENO: checking for $ac_word" >&5
4050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4051 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054 if test -n "$ac_ct_F77"; then
4055 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4056 else
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4059 do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064 ac_cv_prog_ac_ct_F77="$ac_prog"
4065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 break 2
4067 fi
4068 done
4069 done
4070
4071 fi
4072 fi
4073 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4074 if test -n "$ac_ct_F77"; then
4075 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4076 echo "${ECHO_T}$ac_ct_F77" >&6
4077 else
4078 echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6
4080 fi
4081
4082 test -n "$ac_ct_F77" && break
4083 done
4084 test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4085
4086 F77=$ac_ct_F77
4087 fi
4088
4089
4090 if test "$F77" != "unavailable" ; then
4091 ac_ext=f
4092 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4093 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4094 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4095 if test -n "$ac_tool_prefix"; then
4096 for ac_prog in $coin_f77_comps
4097 do
4098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_prog_F77+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 if test -n "$F77"; then
4106 ac_cv_prog_F77="$F77" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4110 do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4118 fi
4119 done
4120 done
4121
4122 fi
4123 fi
4124 F77=$ac_cv_prog_F77
4125 if test -n "$F77"; then
4126 echo "$as_me:$LINENO: result: $F77" >&5
4127 echo "${ECHO_T}$F77" >&6
4128 else
4129 echo "$as_me:$LINENO: result: no" >&5
4130 echo "${ECHO_T}no" >&6
4131 fi
4132
4133 test -n "$F77" && break
4134 done
4135 fi
4136 if test -z "$F77"; then
4137 ac_ct_F77=$F77
4138 for ac_prog in $coin_f77_comps
4139 do
4140 # Extract the first word of "$ac_prog", so it can be a program name with args.
4141 set dummy $ac_prog; ac_word=$2
4142 echo "$as_me:$LINENO: checking for $ac_word" >&5
4143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4144 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147 if test -n "$ac_ct_F77"; then
4148 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_prog_ac_ct_F77="$ac_prog"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4160 fi
4161 done
4162 done
4163
4164 fi
4165 fi
4166 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4167 if test -n "$ac_ct_F77"; then
4168 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4169 echo "${ECHO_T}$ac_ct_F77" >&6
4170 else
4171 echo "$as_me:$LINENO: result: no" >&5
4172 echo "${ECHO_T}no" >&6
4173 fi
4174
4175 test -n "$ac_ct_F77" && break
4176 done
4177
4178 F77=$ac_ct_F77
4179 fi
4180
4181
4182 # Provide some information about the compiler.
4183 echo "$as_me:4183:" \
4184 "checking for Fortran 77 compiler version" >&5
4185 ac_compiler=`set X $ac_compile; echo $2`
4186 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4187 (eval $ac_compiler --version </dev/null >&5) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }
4191 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4192 (eval $ac_compiler -v </dev/null >&5) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }
4196 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4197 (eval $ac_compiler -V </dev/null >&5) 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }
4201 rm -f a.out
4202
4203 # If we don't use `.F' as extension, the preprocessor is not run on the
4204 # input file. (Note that this only needs to work for GNU compilers.)
4205 ac_save_ext=$ac_ext
4206 ac_ext=F
4207 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4208 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4209 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212 cat >conftest.$ac_ext <<_ACEOF
4213 program main
4214 #ifndef __GNUC__
4215 choke me
4216 #endif
4217
4218 end
4219 _ACEOF
4220 rm -f conftest.$ac_objext
4221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4222 (eval $ac_compile) 2>conftest.er1
4223 ac_status=$?
4224 grep -v '^ *+' conftest.er1 >conftest.err
4225 rm -f conftest.er1
4226 cat conftest.err >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } &&
4229 { ac_try='test -z "$ac_f77_werror_flag"
4230 || test ! -s conftest.err'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 (eval $ac_try) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 ac_compiler_gnu=yes
4243 else
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4246
4247 ac_compiler_gnu=no
4248 fi
4249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4250 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4251
4252 fi
4253 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4254 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4255 ac_ext=$ac_save_ext
4256 ac_test_FFLAGS=${FFLAGS+set}
4257 ac_save_FFLAGS=$FFLAGS
4258 FFLAGS=
4259 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4260 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4261 if test "${ac_cv_prog_f77_g+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264 FFLAGS=-g
4265 cat >conftest.$ac_ext <<_ACEOF
4266 program main
4267
4268 end
4269 _ACEOF
4270 rm -f conftest.$ac_objext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272 (eval $ac_compile) 2>conftest.er1
4273 ac_status=$?
4274 grep -v '^ *+' conftest.er1 >conftest.err
4275 rm -f conftest.er1
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try='test -z "$ac_f77_werror_flag"
4280 || test ! -s conftest.err'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; } &&
4286 { ac_try='test -s conftest.$ac_objext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 (eval $ac_try) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 ac_cv_prog_f77_g=yes
4293 else
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4296
4297 ac_cv_prog_f77_g=no
4298 fi
4299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4300
4301 fi
4302 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4303 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4304 if test "$ac_test_FFLAGS" = set; then
4305 FFLAGS=$ac_save_FFLAGS
4306 elif test $ac_cv_prog_f77_g = yes; then
4307 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4308 FFLAGS="-g -O2"
4309 else
4310 FFLAGS="-g"
4311 fi
4312 else
4313 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4314 FFLAGS="-O2"
4315 else
4316 FFLAGS=
4317 fi
4318 fi
4319
4320 G77=`test $ac_compiler_gnu = yes && echo yes`
4321 ac_ext=f
4322 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4323 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4325
4326 else
4327 { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4328 echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4329 fi
4330
4331 FFLAGS="$save_fflags"
4332
4333 # Check if a project specific FFLAGS variable has been set
4334 if test x$COIN_PRJCT != x; then
4335 eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4336 if test x$coin_tmp = xset; then
4337 eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4338 fi
4339 fi
4340
4341 if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4342
4343 coin_add_fflags=
4344 coin_opt_fflags=
4345 coin_dbg_fflags=
4346 coin_warn_fflags=
4347
4348 if test "$G77" = "yes"; then
4349 coin_opt_fflags="-O3"
4350 coin_add_fflags="-pipe"
4351 coin_dbg_fflags="-g -O0"
4352 else
4353 case $build in
4354 *-cygwin* | *-mingw*)
4355 case $F77 in
4356 ifort* | */ifort* | IFORT* | */IFORT* )
4357 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4358 coin_opt_fflags='-MD -O3'
4359 coin_dbg_fflags='-MDd -debug'
4360 else
4361 coin_opt_fflags='-MT -O3'
4362 coin_dbg_fflags='-MTd -debug'
4363 fi
4364 coin_add_fflags='-fpp -nologo'
4365 ;;
4366 compile_f2c*)
4367 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4368 coin_opt_fflags='-MD -O2'
4369 coin_dbg_fflags='-MDd'
4370 else
4371 coin_opt_fflags='-MT -O2'
4372 coin_dbg_fflags='-MTd'
4373 fi
4374 coin_add_fflags='-nologo -wd4996'
4375 ;;
4376 esac
4377 ;;
4378 *-linux-*)
4379 case $F77 in
4380 ifc* | */ifc* | ifort* | */ifort*)
4381 coin_opt_fflags="-O3 -ip"
4382 coin_add_fflags="-cm -w90 -w95"
4383 coin_dbg_fflags="-g -CA -CB -CS"
4384 # Check if -i_dynamic is necessary (for new glibc library)
4385 FFLAGS=
4386 cat >conftest.$ac_ext <<_ACEOF
4387 program main
4388 write(*,*) 'Hello world'
4389 end
4390 _ACEOF
4391 rm -f conftest.$ac_objext conftest$ac_exeext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -z "$ac_f77_werror_flag"
4401 || test ! -s conftest.err'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; } &&
4407 { ac_try='test -s conftest$ac_exeext'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4413 :
4414 else
4415 echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4417
4418 coin_add_fflags="-i_dynamic $coin_add_fflags"
4419 fi
4420 rm -f conftest.err conftest.$ac_objext \
4421 conftest$ac_exeext conftest.$ac_ext
4422 ;;
4423 pgf77* | */pgf77* | pgf90* | */pgf90*)
4424 coin_opt_fflags="-fast"
4425 coin_add_fflags="-Kieee -pc 64"
4426 coin_dbg_fflags="-g"
4427 ;;
4428 esac
4429 ;;
4430 *-ibm-*)
4431 case "$F77" in
4432 xlf* | */xlf* | mpxlf* | */mpxlf* )
4433 coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4434 coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4435 coin_dbg_fflags="-g -C"
4436 ;;
4437 esac
4438 ;;
4439 *-hp-*)
4440 coin_opt_fflags="+O3"
4441 coin_add_fflags="+U77"
4442 coin_dbg_fflags="-C -g"
4443 ;;
4444 *-*-solaris*)
4445 coin_opt_fflags="-O4"
4446 coin_dbg_fflags="-g"
4447 ;;
4448 *-sgi-*)
4449 coin_opt_fflags="-O5 -OPT:Olimit=0"
4450 coin_dbg_fflags="-g"
4451 ;;
4452 esac
4453 fi
4454
4455 if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4456 coin_dbg_fflags="-g"
4457 fi
4458
4459 if test -z "$coin_opt_fflags"; then
4460 # Try if -O option works if nothing else is set
4461 FFLAGS=-O
4462 cat >conftest.$ac_ext <<_ACEOF
4463 program main
4464 integer i
4465 end
4466 _ACEOF
4467 rm -f conftest.$ac_objext conftest$ac_exeext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469 (eval $ac_link) 2>conftest.er1
4470 ac_status=$?
4471 grep -v '^ *+' conftest.er1 >conftest.err
4472 rm -f conftest.er1
4473 cat conftest.err >&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } &&
4476 { ac_try='test -z "$ac_f77_werror_flag"
4477 || test ! -s conftest.err'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try='test -s conftest$ac_exeext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 coin_opt_fflags="-O"
4490 else
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494 fi
4495 rm -f conftest.err conftest.$ac_objext \
4496 conftest$ac_exeext conftest.$ac_ext
4497 fi
4498
4499 # if PM doesn't want the warning messages, take them out
4500 if test x"$coin_skip_warn_fflags" = xyes; then
4501 coin_warn_fflags=
4502 fi
4503
4504 if test x${DBG_FFLAGS+set} != xset; then
4505 DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4506 fi
4507 if test x${OPT_FFLAGS+set} != xset; then
4508 OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4509 fi
4510
4511 DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4512 OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4513
4514 if test "$coin_debug_compile" = "true"; then
4515 FFLAGS="$DBG_FFLAGS"
4516 else
4517 FFLAGS="$OPT_FFLAGS"
4518 fi
4519 else
4520 FFLAGS="$FFLAGS $ADD_FFLAGS"
4521 if test x${DBG_FFLAGS+set} != xset; then
4522 DBG_FFLAGS="$FFLAGS"
4523 fi
4524 if test x${OPT_FFLAGS+set} != xset; then
4525 OPT_FFLAGS="$FFLAGS"
4526 fi
4527 fi
4528
4529 # Try if FFLAGS works
4530 if test "$F77" != "unavailable" ; then
4531 orig_FFLAGS="FFLAGS"
4532 cat >conftest.$ac_ext <<_ACEOF
4533 program main
4534 integer i
4535 end
4536 _ACEOF
4537 rm -f conftest.$ac_objext conftest$ac_exeext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4539 (eval $ac_link) 2>conftest.er1
4540 ac_status=$?
4541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -z "$ac_f77_werror_flag"
4547 || test ! -s conftest.err'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try='test -s conftest$ac_exeext'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4559 :
4560 else
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564 FFLAGS=
4565 fi
4566 rm -f conftest.err conftest.$ac_objext \
4567 conftest$ac_exeext conftest.$ac_ext
4568 if test -z "$FFLAGS"; then
4569 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&5
4570 echo "$as_me: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4571 FFLAGS='-O'
4572 cat >conftest.$ac_ext <<_ACEOF
4573 program main
4574 integer i
4575 end
4576 _ACEOF
4577 rm -f conftest.$ac_objext conftest$ac_exeext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4579 (eval $ac_link) 2>conftest.er1
4580 ac_status=$?
4581 grep -v '^ *+' conftest.er1 >conftest.err
4582 rm -f conftest.er1
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try='test -z "$ac_f77_werror_flag"
4587 || test ! -s conftest.err'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589 (eval $ac_try) 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; } &&
4593 { ac_try='test -s conftest$ac_exeext'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4599 :
4600 else
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4603
4604 FFLAGS=
4605 fi
4606 rm -f conftest.err conftest.$ac_objext \
4607 conftest$ac_exeext conftest.$ac_ext
4608 if test -z "$FFLAGS"; then
4609 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4610 echo "$as_me: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4611 fi
4612 fi
4613 fi
4614
4615 { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4616 echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4617
4618
4619 if test x"$MPIF77" = x; then :; else
4620 { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4621 echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4622 F77="$MPIF77"
4623 fi
4624
4625 # correct the LD variable if we use the intel fortran compiler in windows
4626 case $build in
4627 *-cygwin* | *-mingw*)
4628 case "$F77" in
4629 ifort* | */ifort* | IFORT* | */IFORT*)
4630 LD=link
4631 ;;
4632 esac
4633 ;;
4634 esac
4635
4636 ac_ext=c
4637 ac_cpp='$CPP $CPPFLAGS'
4638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641
4642
4643
4644 # Initialize automake and libtool
4645 # AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4646 {
4647
4648
4649
4650 # START
4651
4652 coin_disable_shared=no
4653 # Test if force_shared has been set
4654 if test "x" = xforce_shared; then
4655 if test x$enable_shared = xno; then
4656 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4657 echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4658 { (exit 1); exit 1; }; }
4659 fi
4660 enable_shared=yes;
4661 else
4662 case $build in
4663 *-cygwin* | *-mingw*)
4664 coin_disable_shared=yes
4665 if test x"$enable_shared" = xyes; then
4666 case "$CC" in
4667 clang* | */clang* )
4668 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4669 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4670 ;;
4671 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4672 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4673 echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4674 ;;
4675 *gcc*)
4676 if test x"$enable_dependency_linking" = xyes; then
4677 coin_disable_shared=no
4678 else
4679 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4680 echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4681 fi
4682 ;;
4683 *)
4684 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4685 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4686 ;;
4687 esac
4688 fi
4689 ;;
4690 *-aix*)
4691 coin_disable_shared=yes
4692 platform=AIX
4693 if test x"$enable_shared" = xyes; then
4694 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4695 echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4696 fi
4697 ;;
4698 esac
4699 fi
4700 if test x"$coin_disable_shared" = xyes; then
4701 if test x"$enable_shared" = xyes; then
4702 :
4703 else
4704 # we don't disable shared, because it was not selected anyway
4705 coin_disable_shared=no
4706 fi
4707 enable_shared=no
4708 fi
4709 # By default, we only want the shared objects to be compiled
4710 # Check whether --enable-static or --disable-static was given.
4711 if test "${enable_static+set}" = set; then
4712 enableval="$enable_static"
4713 p=${PACKAGE-default}
4714 case $enableval in
4715 yes) enable_static=yes ;;
4716 no) enable_static=no ;;
4717 *)
4718 enable_static=no
4719 # Look at the argument we got. We use all the common list separators.
4720 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4721 for pkg in $enableval; do
4722 IFS="$lt_save_ifs"
4723 if test "X$pkg" = "X$p"; then
4724 enable_static=yes
4725 fi
4726 done
4727 IFS="$lt_save_ifs"
4728 ;;
4729 esac
4730 else
4731 enable_static=no
4732 fi;
4733
4734
4735
4736
4737 # Initialize automake
4738 echo "$as_me:$LINENO: checking for egrep" >&5
4739 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4740 if test "${ac_cv_prog_egrep+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4744 then ac_cv_prog_egrep='grep -E'
4745 else ac_cv_prog_egrep='egrep'
4746 fi
4747 fi
4748 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4749 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4750 EGREP=$ac_cv_prog_egrep
4751
4752
4753 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4754 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4755 LN_S=$as_ln_s
4756 if test "$LN_S" = "ln -s"; then
4757 echo "$as_me:$LINENO: result: yes" >&5
4758 echo "${ECHO_T}yes" >&6
4759 else
4760 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4761 echo "${ECHO_T}no, using $LN_S" >&6
4762 fi
4763
4764 am__api_version="1.9"
4765 # Find a good install program. We prefer a C program (faster),
4766 # so one script is as good as another. But avoid the broken or
4767 # incompatible versions:
4768 # SysV /etc/install, /usr/sbin/install
4769 # SunOS /usr/etc/install
4770 # IRIX /sbin/install
4771 # AIX /bin/install
4772 # AmigaOS /C/install, which installs bootblocks on floppy discs
4773 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4774 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4775 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4776 # OS/2's system install, which has a completely different semantic
4777 # ./install, which can be erroneously created by make from ./install.sh.
4778 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4779 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4780 if test -z "$INSTALL"; then
4781 if test "${ac_cv_path_install+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 # Account for people who put trailing slashes in PATH elements.
4790 case $as_dir/ in
4791 ./ | .// | /cC/* | \
4792 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4793 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4794 /usr/ucb/* ) ;;
4795 *)
4796 # OSF1 and SCO ODT 3.0 have their own names for install.
4797 # Don't use installbsd from OSF since it installs stuff as root
4798 # by default.
4799 for ac_prog in ginstall scoinst install; do
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4802 if test $ac_prog = install &&
4803 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4804 # AIX install. It has an incompatible calling convention.
4805 :
4806 elif test $ac_prog = install &&
4807 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4808 # program-specific install script used by HP pwplus--don't use.
4809 :
4810 else
4811 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4812 break 3
4813 fi
4814 fi
4815 done
4816 done
4817 ;;
4818 esac
4819 done
4820
4821
4822 fi
4823 if test "${ac_cv_path_install+set}" = set; then
4824 INSTALL=$ac_cv_path_install
4825 else
4826 # As a last resort, use the slow shell script. We don't cache a
4827 # path for INSTALL within a source directory, because that will
4828 # break other packages using the cache if that directory is
4829 # removed, or if the path is relative.
4830 INSTALL=$ac_install_sh
4831 fi
4832 fi
4833 echo "$as_me:$LINENO: result: $INSTALL" >&5
4834 echo "${ECHO_T}$INSTALL" >&6
4835
4836 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4837 # It thinks the first close brace ends the variable substitution.
4838 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4839
4840 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4841
4842 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4843
4844 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4845 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4846 # Just in case
4847 sleep 1
4848 echo timestamp > conftest.file
4849 # Do `set' in a subshell so we don't clobber the current shell's
4850 # arguments. Must try -L first in case configure is actually a
4851 # symlink; some systems play weird games with the mod time of symlinks
4852 # (eg FreeBSD returns the mod time of the symlink's containing
4853 # directory).
4854 if (
4855 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4856 if test "$*" = "X"; then
4857 # -L didn't work.
4858 set X `ls -t $srcdir/configure conftest.file`
4859 fi
4860 rm -f conftest.file
4861 if test "$*" != "X $srcdir/configure conftest.file" \
4862 && test "$*" != "X conftest.file $srcdir/configure"; then
4863
4864 # If neither matched, then we have a broken ls. This can happen
4865 # if, for instance, CONFIG_SHELL is bash and it inherits a
4866 # broken ls alias from the environment. This has actually
4867 # happened. Such a system could not be considered "sane".
4868 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4869 alias in your environment" >&5
4870 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4871 alias in your environment" >&2;}
4872 { (exit 1); exit 1; }; }
4873 fi
4874
4875 test "$2" = conftest.file
4876 )
4877 then
4878 # Ok.
4879 :
4880 else
4881 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4882 Check your system clock" >&5
4883 echo "$as_me: error: newly created file is older than distributed files!
4884 Check your system clock" >&2;}
4885 { (exit 1); exit 1; }; }
4886 fi
4887 echo "$as_me:$LINENO: result: yes" >&5
4888 echo "${ECHO_T}yes" >&6
4889 test "$program_prefix" != NONE &&
4890 program_transform_name="s,^,$program_prefix,;$program_transform_name"
4891 # Use a double $ so make ignores it.
4892 test "$program_suffix" != NONE &&
4893 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4894 # Double any \ or $. echo might interpret backslashes.
4895 # By default was `s,x,x', remove it if useless.
4896 cat <<\_ACEOF >conftest.sed
4897 s/[\\$]/&&/g;s/;s,x,x,$//
4898 _ACEOF
4899 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4900 rm conftest.sed
4901
4902 # expand $ac_aux_dir to an absolute path
4903 am_aux_dir=`cd $ac_aux_dir && pwd`
4904
4905 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4906 # Use eval to expand $SHELL
4907 if eval "$MISSING --run true"; then
4908 am_missing_run="$MISSING --run "
4909 else
4910 am_missing_run=
4911 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4912 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4913 fi
4914
4915 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4916 # We used to keeping the `.' as first argument, in order to
4917 # allow $(mkdir_p) to be used without argument. As in
4918 # $(mkdir_p) $(somedir)
4919 # where $(somedir) is conditionally defined. However this is wrong
4920 # for two reasons:
4921 # 1. if the package is installed by a user who cannot write `.'
4922 # make install will fail,
4923 # 2. the above comment should most certainly read
4924 # $(mkdir_p) $(DESTDIR)$(somedir)
4925 # so it does not work when $(somedir) is undefined and
4926 # $(DESTDIR) is not.
4927 # To support the latter case, we have to write
4928 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4929 # so the `.' trick is pointless.
4930 mkdir_p='mkdir -p --'
4931 else
4932 # On NextStep and OpenStep, the `mkdir' command does not
4933 # recognize any option. It will interpret all options as
4934 # directories to create, and then abort because `.' already
4935 # exists.
4936 for d in ./-p ./--version;
4937 do
4938 test -d $d && rmdir $d
4939 done
4940 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4941 if test -f "$ac_aux_dir/mkinstalldirs"; then
4942 mkdir_p='$(mkinstalldirs)'
4943 else
4944 mkdir_p='$(install_sh) -d'
4945 fi
4946 fi
4947
4948 for ac_prog in gawk mawk nawk awk
4949 do
4950 # Extract the first word of "$ac_prog", so it can be a program name with args.
4951 set dummy $ac_prog; ac_word=$2
4952 echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4954 if test "${ac_cv_prog_AWK+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957 if test -n "$AWK"; then
4958 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_prog_AWK="$ac_prog"
4968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4970 fi
4971 done
4972 done
4973
4974 fi
4975 fi
4976 AWK=$ac_cv_prog_AWK
4977 if test -n "$AWK"; then
4978 echo "$as_me:$LINENO: result: $AWK" >&5
4979 echo "${ECHO_T}$AWK" >&6
4980 else
4981 echo "$as_me:$LINENO: result: no" >&5
4982 echo "${ECHO_T}no" >&6
4983 fi
4984
4985 test -n "$AWK" && break
4986 done
4987
4988 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4989 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4990 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4991 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 cat >conftest.make <<\_ACEOF
4995 all:
4996 @echo 'ac_maketemp="$(MAKE)"'
4997 _ACEOF
4998 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4999 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5000 if test -n "$ac_maketemp"; then
5001 eval ac_cv_prog_make_${ac_make}_set=yes
5002 else
5003 eval ac_cv_prog_make_${ac_make}_set=no
5004 fi
5005 rm -f conftest.make
5006 fi
5007 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5008 echo "$as_me:$LINENO: result: yes" >&5
5009 echo "${ECHO_T}yes" >&6
5010 SET_MAKE=
5011 else
5012 echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6
5014 SET_MAKE="MAKE=${MAKE-make}"
5015 fi
5016
5017 rm -rf .tst 2>/dev/null
5018 mkdir .tst 2>/dev/null
5019 if test -d .tst; then
5020 am__leading_dot=.
5021 else
5022 am__leading_dot=_
5023 fi
5024 rmdir .tst 2>/dev/null
5025
5026 DEPDIR="${am__leading_dot}deps"
5027
5028 ac_config_commands="$ac_config_commands depfiles"
5029
5030
5031 am_make=${MAKE-make}
5032 cat > confinc << 'END'
5033 am__doit:
5034 @echo done
5035 .PHONY: am__doit
5036 END
5037 # If we don't find an include directive, just comment out the code.
5038 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5039 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5040 am__include="#"
5041 am__quote=
5042 _am_result=none
5043 # First try GNU make style include.
5044 echo "include confinc" > confmf
5045 # We grep out `Entering directory' and `Leaving directory'
5046 # messages which can occur if `w' ends up in MAKEFLAGS.
5047 # In particular we don't look at `^make:' because GNU make might
5048 # be invoked under some other name (usually "gmake"), in which
5049 # case it prints its new name instead of `make'.
5050 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5051 am__include=include
5052 am__quote=
5053 _am_result=GNU
5054 fi
5055 # Now try BSD make style include.
5056 if test "$am__include" = "#"; then
5057 echo '.include "confinc"' > confmf
5058 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5059 am__include=.include
5060 am__quote="\""
5061 _am_result=BSD
5062 fi
5063 fi
5064
5065
5066 echo "$as_me:$LINENO: result: $_am_result" >&5
5067 echo "${ECHO_T}$_am_result" >&6
5068 rm -f confinc confmf
5069
5070 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5071 if test "${enable_dependency_tracking+set}" = set; then
5072 enableval="$enable_dependency_tracking"
5073
5074 fi;
5075 if test "x$enable_dependency_tracking" != xno; then
5076 am_depcomp="$ac_aux_dir/depcomp"
5077 AMDEPBACKSLASH='\'
5078 fi
5079
5080
5081 if test "x$enable_dependency_tracking" != xno; then
5082 AMDEP_TRUE=
5083 AMDEP_FALSE='#'
5084 else
5085 AMDEP_TRUE='#'
5086 AMDEP_FALSE=
5087 fi
5088
5089
5090
5091
5092
5093
5094 # AC_MSG_NOTICE([Beginning automake initialisation.])
5095 # Stuff for automake
5096 # test to see if srcdir already configured
5097 if test "`cd $srcdir && pwd`" != "`pwd`" &&
5098 test -f $srcdir/config.status; then
5099 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5100 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5101 { (exit 1); exit 1; }; }
5102 fi
5103
5104 # test whether we have cygpath
5105 if test -z "$CYGPATH_W"; then
5106 if (cygpath --version) >/dev/null 2>/dev/null; then
5107 CYGPATH_W='cygpath -w'
5108 else
5109 CYGPATH_W=echo
5110 fi
5111 fi
5112
5113
5114 # Define the identity of the package.
5115 PACKAGE='cbc'
5116 VERSION='2.10.13'
5117
5118
5119 cat >>confdefs.h <<_ACEOF
5120 #define PACKAGE "$PACKAGE"
5121 _ACEOF
5122
5123
5124 cat >>confdefs.h <<_ACEOF
5125 #define VERSION "$VERSION"
5126 _ACEOF
5127
5128 # Some tools Automake needs.
5129
5130 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5131
5132
5133 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5134
5135
5136 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5137
5138
5139 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5140
5141
5142 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5143
5144 install_sh=${install_sh-"$am_aux_dir/install-sh"}
5145
5146 # Installed binaries are usually stripped using `strip' when the user
5147 # run `make install-strip'. However `strip' might not be the right
5148 # tool to use in cross-compilation environments, therefore Automake
5149 # will honor the `STRIP' environment variable to overrule this program.
5150 if test "$cross_compiling" != no; then
5151 if test -n "$ac_tool_prefix"; then
5152 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5153 set dummy ${ac_tool_prefix}strip; ac_word=$2
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_prog_STRIP+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 if test -n "$STRIP"; then
5160 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173 done
5174 done
5175
5176 fi
5177 fi
5178 STRIP=$ac_cv_prog_STRIP
5179 if test -n "$STRIP"; then
5180 echo "$as_me:$LINENO: result: $STRIP" >&5
5181 echo "${ECHO_T}$STRIP" >&6
5182 else
5183 echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6
5185 fi
5186
5187 fi
5188 if test -z "$ac_cv_prog_STRIP"; then
5189 ac_ct_STRIP=$STRIP
5190 # Extract the first word of "strip", so it can be a program name with args.
5191 set dummy strip; ac_word=$2
5192 echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197 if test -n "$ac_ct_STRIP"; then
5198 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 ac_cv_prog_ac_ct_STRIP="strip"
5208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211 done
5212 done
5213
5214 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5215 fi
5216 fi
5217 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5218 if test -n "$ac_ct_STRIP"; then
5219 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5220 echo "${ECHO_T}$ac_ct_STRIP" >&6
5221 else
5222 echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6
5224 fi
5225
5226 STRIP=$ac_ct_STRIP
5227 else
5228 STRIP="$ac_cv_prog_STRIP"
5229 fi
5230
5231 fi
5232 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5233
5234 # We need awk for the "check" target. The system "awk" is bad on
5235 # some platforms.
5236 # Always define AMTAR for backward compatibility.
5237
5238 AMTAR=${AMTAR-"${am_missing_run}tar"}
5239
5240 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5241
5242
5243
5244
5245 depcc="$CC" am_compiler_list=
5246
5247 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5248 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5249 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5253 # We make a subdir and do the tests there. Otherwise we can end up
5254 # making bogus files that we don't know about and never remove. For
5255 # instance it was reported that on HP-UX the gcc test will end up
5256 # making a dummy file named `D' -- because `-MD' means `put the output
5257 # in D'.
5258 mkdir conftest.dir
5259 # Copy depcomp to subdir because otherwise we won't find it if we're
5260 # using a relative directory.
5261 cp "$am_depcomp" conftest.dir
5262 cd conftest.dir
5263 # We will build objects and dependencies in a subdirectory because
5264 # it helps to detect inapplicable dependency modes. For instance
5265 # both Tru64's cc and ICC support -MD to output dependencies as a
5266 # side effect of compilation, but ICC will put the dependencies in
5267 # the current directory while Tru64 will put them in the object
5268 # directory.
5269 mkdir sub
5270
5271 am_cv_CC_dependencies_compiler_type=none
5272 if test "$am_compiler_list" = ""; then
5273 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5274 fi
5275 for depmode in $am_compiler_list; do
5276 # Setup a source with many dependencies, because some compilers
5277 # like to wrap large dependency lists on column 80 (with \), and
5278 # we should not choose a depcomp mode which is confused by this.
5279 #
5280 # We need to recreate these files for each test, as the compiler may
5281 # overwrite some of them when testing with obscure command lines.
5282 # This happens at least with the AIX C compiler.
5283 : > sub/conftest.c
5284 for i in 1 2 3 4 5 6; do
5285 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5286 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5287 # Solaris 8's {/usr,}/bin/sh.
5288 touch sub/conftst$i.h
5289 done
5290 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5291
5292 case $depmode in
5293 nosideeffect)
5294 # after this tag, mechanisms are not by side-effect, so they'll
5295 # only be used when explicitly requested
5296 if test "x$enable_dependency_tracking" = xyes; then
5297 continue
5298 else
5299 break
5300 fi
5301 ;;
5302 none) break ;;
5303 esac
5304 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5305 # mode. It turns out that the SunPro C++ compiler does not properly
5306 # handle `-M -o', and we need to detect this.
5307 if depmode=$depmode \
5308 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5309 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5310 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5311 >/dev/null 2>conftest.err &&
5312 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5313 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5314 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5315 # icc doesn't choke on unknown options, it will just issue warnings
5316 # or remarks (even with -Werror). So we grep stderr for any message
5317 # that says an option was ignored or not supported.
5318 # When given -MP, icc 7.0 and 7.1 complain thusly:
5319 # icc: Command line warning: ignoring option '-M'; no argument required
5320 # The diagnosis changed in icc 8.0:
5321 # icc: Command line remark: option '-MP' not supported
5322 if (grep 'ignoring option' conftest.err ||
5323 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5324 am_cv_CC_dependencies_compiler_type=$depmode
5325 break
5326 fi
5327 fi
5328 done
5329
5330 cd ..
5331 rm -rf conftest.dir
5332 else
5333 am_cv_CC_dependencies_compiler_type=none
5334 fi
5335
5336 fi
5337 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5338 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5339 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5340
5341
5342
5343 if
5344 test "x$enable_dependency_tracking" != xno \
5345 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5346 am__fastdepCC_TRUE=
5347 am__fastdepCC_FALSE='#'
5348 else
5349 am__fastdepCC_TRUE='#'
5350 am__fastdepCC_FALSE=
5351 fi
5352
5353
5354 depcc="$CXX" am_compiler_list=
5355
5356 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5357 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5358 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5362 # We make a subdir and do the tests there. Otherwise we can end up
5363 # making bogus files that we don't know about and never remove. For
5364 # instance it was reported that on HP-UX the gcc test will end up
5365 # making a dummy file named `D' -- because `-MD' means `put the output
5366 # in D'.
5367 mkdir conftest.dir
5368 # Copy depcomp to subdir because otherwise we won't find it if we're
5369 # using a relative directory.
5370 cp "$am_depcomp" conftest.dir
5371 cd conftest.dir
5372 # We will build objects and dependencies in a subdirectory because
5373 # it helps to detect inapplicable dependency modes. For instance
5374 # both Tru64's cc and ICC support -MD to output dependencies as a
5375 # side effect of compilation, but ICC will put the dependencies in
5376 # the current directory while Tru64 will put them in the object
5377 # directory.
5378 mkdir sub
5379
5380 am_cv_CXX_dependencies_compiler_type=none
5381 if test "$am_compiler_list" = ""; then
5382 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5383 fi
5384 for depmode in $am_compiler_list; do
5385 # Setup a source with many dependencies, because some compilers
5386 # like to wrap large dependency lists on column 80 (with \), and
5387 # we should not choose a depcomp mode which is confused by this.
5388 #
5389 # We need to recreate these files for each test, as the compiler may
5390 # overwrite some of them when testing with obscure command lines.
5391 # This happens at least with the AIX C compiler.
5392 : > sub/conftest.c
5393 for i in 1 2 3 4 5 6; do
5394 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5395 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5396 # Solaris 8's {/usr,}/bin/sh.
5397 touch sub/conftst$i.h
5398 done
5399 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5400
5401 case $depmode in
5402 nosideeffect)
5403 # after this tag, mechanisms are not by side-effect, so they'll
5404 # only be used when explicitly requested
5405 if test "x$enable_dependency_tracking" = xyes; then
5406 continue
5407 else
5408 break
5409 fi
5410 ;;
5411 none) break ;;
5412 esac
5413 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5414 # mode. It turns out that the SunPro C++ compiler does not properly
5415 # handle `-M -o', and we need to detect this.
5416 if depmode=$depmode \
5417 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5418 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5419 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5420 >/dev/null 2>conftest.err &&
5421 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5422 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5423 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5424 # icc doesn't choke on unknown options, it will just issue warnings
5425 # or remarks (even with -Werror). So we grep stderr for any message
5426 # that says an option was ignored or not supported.
5427 # When given -MP, icc 7.0 and 7.1 complain thusly:
5428 # icc: Command line warning: ignoring option '-M'; no argument required
5429 # The diagnosis changed in icc 8.0:
5430 # icc: Command line remark: option '-MP' not supported
5431 if (grep 'ignoring option' conftest.err ||
5432 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5433 am_cv_CXX_dependencies_compiler_type=$depmode
5434 break
5435 fi
5436 fi
5437 done
5438
5439 cd ..
5440 rm -rf conftest.dir
5441 else
5442 am_cv_CXX_dependencies_compiler_type=none
5443 fi
5444
5445 fi
5446 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5447 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5448 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5449
5450
5451
5452 if
5453 test "x$enable_dependency_tracking" != xno \
5454 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5455 am__fastdepCXX_TRUE=
5456 am__fastdepCXX_FALSE='#'
5457 else
5458 am__fastdepCXX_TRUE='#'
5459 am__fastdepCXX_FALSE=
5460 fi
5461
5462
5463
5464 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5465 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5466 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5467 if test "${enable_maintainer_mode+set}" = set; then
5468 enableval="$enable_maintainer_mode"
5469 USE_MAINTAINER_MODE=$enableval
5470 else
5471 USE_MAINTAINER_MODE=no
5472 fi;
5473 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5474 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5475
5476
5477 if test $USE_MAINTAINER_MODE = yes; then
5478 MAINTAINER_MODE_TRUE=
5479 MAINTAINER_MODE_FALSE='#'
5480 else
5481 MAINTAINER_MODE_TRUE='#'
5482 MAINTAINER_MODE_FALSE=
5483 fi
5484
5485 MAINT=$MAINTAINER_MODE_TRUE
5486
5487
5488
5489 coin_have_externals=no
5490 if test "$enable_maintainer_mode" = yes; then
5491
5492 # If maintainer mode is chosen, we make sure that the correct versions
5493 # of the tools are used, and that we know where libtool.m4 is (to
5494 # recreate acinclude.m4)
5495
5496
5497 LIBTOOLM4=
5498 # Normally, $HOME
5499 AUTOTOOLS_DFLT=$HOME
5500
5501 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5502 echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5503 if test "${ac_cv_use_correct_autotools+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506 ac_cv_use_correct_autotools=check
5507 fi
5508 echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5509 echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5510
5511 if test $ac_cv_use_correct_autotools = check; then
5512 ac_cv_use_correct_autotools=yes
5513 # Check if we have autoconf
5514 # Extract the first word of "autoconf", so it can be a program name with args.
5515 set dummy autoconf; ac_word=$2
5516 echo "$as_me:$LINENO: checking for $ac_word" >&5
5517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5518 if test "${ac_cv_prog_have_autoconf+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521 if test -n "$have_autoconf"; then
5522 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5523 else
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5526 do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_prog_have_autoconf="yes"
5532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535 done
5536 done
5537
5538 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5539 fi
5540 fi
5541 have_autoconf=$ac_cv_prog_have_autoconf
5542 if test -n "$have_autoconf"; then
5543 echo "$as_me:$LINENO: result: $have_autoconf" >&5
5544 echo "${ECHO_T}$have_autoconf" >&6
5545 else
5546 echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5548 fi
5549
5550 if test $have_autoconf = no; then
5551 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5552 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5553 { (exit 1); exit 1; }; }
5554 fi
5555
5556 # Check whether autoconf is the correct version
5557 correct_version='2.59'
5558 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5559 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5560 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5561 autoconf --version > confauto.out 2>&1
5562 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5563 echo "$as_me:$LINENO: result: yes" >&5
5564 echo "${ECHO_T}yes" >&6
5565 else
5566 rm -f confauto.out
5567 echo "$as_me:$LINENO: result: no" >&5
5568 echo "${ECHO_T}no" >&6
5569 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5570 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5571 { (exit 1); exit 1; }; }
5572 fi
5573 rm -f confauto.out
5574
5575 # Check if the executable autoconf is picked up from the correct location
5576 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5577 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5578 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5579 autoconf_dir=`cd $autoconf_dir; pwd`
5580 if test x$AUTOTOOLS_DIR = x; then
5581 want_dir=$AUTOTOOLS_DFLT/bin
5582 else
5583 want_dir=$AUTOTOOLS_DIR/bin
5584 fi
5585 if test $autoconf_dir = `cd $want_dir; pwd`; then
5586 echo "$as_me:$LINENO: result: yes" >&5
5587 echo "${ECHO_T}yes" >&6
5588 else
5589 rm -f confauto.out
5590 echo "$as_me:$LINENO: result: no" >&5
5591 echo "${ECHO_T}no" >&6
5592 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5593 echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5594 { (exit 1); exit 1; }; }
5595 fi
5596
5597 # Check if we have automake
5598 # Extract the first word of "automake", so it can be a program name with args.
5599 set dummy automake; ac_word=$2
5600 echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5602 if test "${ac_cv_prog_have_automake+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605 if test -n "$have_automake"; then
5606 ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_have_automake="yes"
5616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619 done
5620 done
5621
5622 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5623 fi
5624 fi
5625 have_automake=$ac_cv_prog_have_automake
5626 if test -n "$have_automake"; then
5627 echo "$as_me:$LINENO: result: $have_automake" >&5
5628 echo "${ECHO_T}$have_automake" >&6
5629 else
5630 echo "$as_me:$LINENO: result: no" >&5
5631 echo "${ECHO_T}no" >&6
5632 fi
5633
5634 if test $have_automake = no; then
5635 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5636 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5637 { (exit 1); exit 1; }; }
5638 fi
5639
5640 # Check whether automake is the correct version
5641 correct_version='1.9.6'
5642 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5643 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5644 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5645 automake --version > confauto.out 2>&1
5646 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5647 echo "$as_me:$LINENO: result: yes" >&5
5648 echo "${ECHO_T}yes" >&6
5649 else
5650 rm -f confauto.out
5651 echo "$as_me:$LINENO: result: no" >&5
5652 echo "${ECHO_T}no" >&6
5653 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5654 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5655 { (exit 1); exit 1; }; }
5656 fi
5657 rm -f confauto.out
5658
5659 # Check if the executable automake is picked up from the correct location
5660 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5661 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5662 automake_dir=`which automake | sed -e 's=/automake=='`
5663 automake_dir=`cd $automake_dir; pwd`
5664 if test x$AUTOTOOLS_DIR = x; then
5665 want_dir=$AUTOTOOLS_DFLT/bin
5666 else
5667 want_dir=$AUTOTOOLS_DIR/bin
5668 fi
5669 if test $automake_dir = `cd $want_dir; pwd`; then
5670 echo "$as_me:$LINENO: result: yes" >&5
5671 echo "${ECHO_T}yes" >&6
5672 else
5673 rm -f confauto.out
5674 echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6
5676 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5677 echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5678 { (exit 1); exit 1; }; }
5679 fi
5680
5681 # Check if this is the correct version of libtool (with escaped dots)
5682 if test x$AUTOTOOLS_DIR = x; then
5683 want_dir=$AUTOTOOLS_DFLT/share
5684 else
5685 want_dir=$AUTOTOOLS_DIR/share
5686 fi
5687 correct_version='1.5.22'
5688 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5689 if test -r $want_dir/libtool/ltmain.sh; then
5690 have_ltmain=yes
5691 :
5692 else
5693 have_ltmain=no
5694 :
5695 fi
5696
5697 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5698 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5699 if test $have_ltmain = yes; then
5700 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5701 echo "$as_me:$LINENO: result: yes" >&5
5702 echo "${ECHO_T}yes" >&6
5703 else
5704 echo "$as_me:$LINENO: result: no" >&5
5705 echo "${ECHO_T}no" >&6
5706 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5707 echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5708 { (exit 1); exit 1; }; }
5709 fi
5710 else
5711 echo "$as_me:$LINENO: result: no" >&5
5712 echo "${ECHO_T}no" >&6
5713 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5714 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5715 { (exit 1); exit 1; }; }
5716 fi
5717 fi
5718
5719 # Check if we can find the libtool file
5720 if test x$AUTOTOOLS_DIR = x; then
5721 want_dir=$AUTOTOOLS_DFLT/share
5722 else
5723 want_dir=$AUTOTOOLS_DIR/share
5724 fi
5725 if test -r $want_dir/aclocal/libtool.m4; then
5726 LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5727 :
5728 else
5729 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5730 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5731 { (exit 1); exit 1; }; }
5732 :
5733 fi
5734
5735
5736 # Check if we have an Dependencies file
5737 if test -r $srcdir/Dependencies; then
5738 coin_have_externals=yes
5739 fi
5740 # Check if subversion is installed and understands https
5741 # Extract the first word of "svn", so it can be a program name with args.
5742 set dummy svn; ac_word=$2
5743 echo "$as_me:$LINENO: checking for $ac_word" >&5
5744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5745 if test "${ac_cv_prog_have_svn+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748 if test -n "$have_svn"; then
5749 ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_have_svn="yes"
5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762 done
5763 done
5764
5765 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5766 fi
5767 fi
5768 have_svn=$ac_cv_prog_have_svn
5769 if test -n "$have_svn"; then
5770 echo "$as_me:$LINENO: result: $have_svn" >&5
5771 echo "${ECHO_T}$have_svn" >&6
5772 else
5773 echo "$as_me:$LINENO: result: no" >&5
5774 echo "${ECHO_T}no" >&6
5775 fi
5776
5777 if test x$have_svn = xyes; then
5778 echo "$as_me:$LINENO: checking whether svn understands https" >&5
5779 echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5780 if test "${ac_cv_svn_understands_https+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 svn --version > confauto.out 2>&1
5784 if $EGREP https confauto.out >/dev/null 2>&1; then
5785 ac_cv_svn_understands_https=yes
5786 else
5787 ac_cv_svn_understands_https=no
5788 have_svn=no
5789 ac_cv_prog_have_svn=no
5790 fi
5791 rm -f confauto.out
5792 fi
5793 echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5794 echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5795 fi
5796
5797 # Find the location of the BuildTools directory
5798 BUILDTOOLSDIR=
5799 if test -r $srcdir/BuildTools/coin.m4; then
5800 BUILDTOOLSDIR=$srcdir/BuildTools
5801 elif test -r $srcdir/../BuildTools/coin.m4; then
5802 BUILDTOOLSDIR=$srcdir/../BuildTools
5803 elif test -r $srcdir/../../BuildTools/coin.m4; then
5804 BUILDTOOLSDIR=$srcdir/../../BuildTools
5805 elif test -r $srcdir/../../../BuildTools/coin.m4; then
5806 BUILDTOOLSDIR=$srcdir/../../../BuildTools
5807 else
5808 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5809 echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5810 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5811 fi
5812
5813
5814 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5815 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5816 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5817 fi
5818
5819 # The following variable is set to the name of the directory where
5820 # the autotool scripts are located
5821
5822 AUX_DIR=$ac_aux_dir
5823 fi
5824
5825 # helpful variable for the base directory of this package
5826 abs_source_dir=`cd $srcdir; pwd`
5827
5828
5829 # Stuff for example Makefiles
5830 if test x$prefix = xNONE; then
5831 full_prefix=$ac_default_prefix
5832 else
5833 full_prefix=$prefix
5834 fi
5835
5836
5837 abs_lib_dir=$full_prefix/lib
5838
5839 abs_include_dir=$full_prefix/include
5840
5841 abs_bin_dir=$full_prefix/bin
5842
5843
5844
5845 if test $coin_have_externals = yes && test x$have_svn = xyes; then
5846 HAVE_EXTERNALS_TRUE=
5847 HAVE_EXTERNALS_FALSE='#'
5848 else
5849 HAVE_EXTERNALS_TRUE='#'
5850 HAVE_EXTERNALS_FALSE=
5851 fi
5852
5853
5854 # AC_MSG_NOTICE([End automake initialisation.])
5855
5856
5857
5858 LIBTOOL=
5859 if test -f ../libtool; then
5860 coin_config_dir=..
5861 LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5862 fi
5863 if test "x$LIBTOOL" = x; then
5864 if test -f ../../libtool; then
5865 coin_config_dir=../..
5866 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5867 fi
5868 fi
5869
5870 if test "x$LIBTOOL" = x; then
5871 # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5872 # Stuff for libtool
5873 # Check whether --enable-shared or --disable-shared was given.
5874 if test "${enable_shared+set}" = set; then
5875 enableval="$enable_shared"
5876 p=${PACKAGE-default}
5877 case $enableval in
5878 yes) enable_shared=yes ;;
5879 no) enable_shared=no ;;
5880 *)
5881 enable_shared=no
5882 # Look at the argument we got. We use all the common list separators.
5883 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5884 for pkg in $enableval; do
5885 IFS="$lt_save_ifs"
5886 if test "X$pkg" = "X$p"; then
5887 enable_shared=yes
5888 fi
5889 done
5890 IFS="$lt_save_ifs"
5891 ;;
5892 esac
5893 else
5894 enable_shared=yes
5895 fi;
5896
5897 # Check whether --enable-fast-install or --disable-fast-install was given.
5898 if test "${enable_fast_install+set}" = set; then
5899 enableval="$enable_fast_install"
5900 p=${PACKAGE-default}
5901 case $enableval in
5902 yes) enable_fast_install=yes ;;
5903 no) enable_fast_install=no ;;
5904 *)
5905 enable_fast_install=no
5906 # Look at the argument we got. We use all the common list separators.
5907 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5908 for pkg in $enableval; do
5909 IFS="$lt_save_ifs"
5910 if test "X$pkg" = "X$p"; then
5911 enable_fast_install=yes
5912 fi
5913 done
5914 IFS="$lt_save_ifs"
5915 ;;
5916 esac
5917 else
5918 enable_fast_install=yes
5919 fi;
5920
5921 echo "$as_me:$LINENO: checking host system type" >&5
5922 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5923 if test "${ac_cv_host+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926 ac_cv_host_alias=$host_alias
5927 test -z "$ac_cv_host_alias" &&
5928 ac_cv_host_alias=$ac_cv_build_alias
5929 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5930 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5931 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5932 { (exit 1); exit 1; }; }
5933
5934 fi
5935 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5936 echo "${ECHO_T}$ac_cv_host" >&6
5937 host=$ac_cv_host
5938 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5939 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5940 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5941
5942
5943 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5944 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5945 if test "${lt_cv_path_SED+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 # Loop through the user's path and test for sed and gsed.
5949 # Then use that list of sed's as ones to test for truncation.
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
5955 for lt_ac_prog in sed gsed; do
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5958 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5959 fi
5960 done
5961 done
5962 done
5963 lt_ac_max=0
5964 lt_ac_count=0
5965 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5966 # along with /bin/sed that truncates output.
5967 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5968 test ! -f $lt_ac_sed && continue
5969 cat /dev/null > conftest.in
5970 lt_ac_count=0
5971 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5972 # Check for GNU sed and select it if it is found.
5973 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5974 lt_cv_path_SED=$lt_ac_sed
5975 break
5976 fi
5977 while true; do
5978 cat conftest.in conftest.in >conftest.tmp
5979 mv conftest.tmp conftest.in
5980 cp conftest.in conftest.nl
5981 echo >>conftest.nl
5982 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5983 cmp -s conftest.out conftest.nl || break
5984 # 10000 chars as input seems more than enough
5985 test $lt_ac_count -gt 10 && break
5986 lt_ac_count=`expr $lt_ac_count + 1`
5987 if test $lt_ac_count -gt $lt_ac_max; then
5988 lt_ac_max=$lt_ac_count
5989 lt_cv_path_SED=$lt_ac_sed
5990 fi
5991 done
5992 done
5993
5994 fi
5995
5996 SED=$lt_cv_path_SED
5997 echo "$as_me:$LINENO: result: $SED" >&5
5998 echo "${ECHO_T}$SED" >&6
5999
6000
6001 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6002 if test "${with_gnu_ld+set}" = set; then
6003 withval="$with_gnu_ld"
6004 test "$withval" = no || with_gnu_ld=yes
6005 else
6006 with_gnu_ld=no
6007 fi;
6008 ac_prog=ld
6009 if test "$GCC" = yes; then
6010 # Check if gcc -print-prog-name=ld gives a path.
6011 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6012 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6013 case $host in
6014 *-*-mingw*)
6015 # gcc leaves a trailing carriage return which upsets mingw
6016 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6017 *)
6018 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6019 esac
6020 case $ac_prog in
6021 # Accept absolute paths.
6022 [\\/]* | ?:[\\/]*)
6023 re_direlt='/[^/][^/]*/\.\./'
6024 # Canonicalize the pathname of ld
6025 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6026 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6027 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6028 done
6029 test -z "$LD" && LD="$ac_prog"
6030 ;;
6031 "")
6032 # If it fails, then pretend we aren't using GCC.
6033 ac_prog=ld
6034 ;;
6035 *)
6036 # If it is relative, then search for the first ld in PATH.
6037 with_gnu_ld=unknown
6038 ;;
6039 esac
6040 elif test "$with_gnu_ld" = yes; then
6041 echo "$as_me:$LINENO: checking for GNU ld" >&5
6042 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6043 else
6044 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6045 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6046 fi
6047 if test "${lt_cv_path_LD+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 if test -z "$LD"; then
6051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6052 for ac_dir in $PATH; do
6053 IFS="$lt_save_ifs"
6054 test -z "$ac_dir" && ac_dir=.
6055 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6056 lt_cv_path_LD="$ac_dir/$ac_prog"
6057 # Check to see if the program is GNU ld. I'd rather use --version,
6058 # but apparently some variants of GNU ld only accept -v.
6059 # Break only if it was the GNU/non-GNU ld that we prefer.
6060 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6061 *GNU* | *'with BFD'*)
6062 test "$with_gnu_ld" != no && break
6063 ;;
6064 *)
6065 test "$with_gnu_ld" != yes && break
6066 ;;
6067 esac
6068 fi
6069 done
6070 IFS="$lt_save_ifs"
6071 else
6072 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6073 fi
6074 fi
6075
6076 LD="$lt_cv_path_LD"
6077 if test -n "$LD"; then
6078 echo "$as_me:$LINENO: result: $LD" >&5
6079 echo "${ECHO_T}$LD" >&6
6080 else
6081 echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6
6083 fi
6084 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6085 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6086 { (exit 1); exit 1; }; }
6087 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6088 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6089 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6093 case `$LD -v 2>&1 </dev/null` in
6094 *GNU* | *'with BFD'*)
6095 lt_cv_prog_gnu_ld=yes
6096 ;;
6097 *)
6098 lt_cv_prog_gnu_ld=no
6099 ;;
6100 esac
6101 fi
6102 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6103 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6104 with_gnu_ld=$lt_cv_prog_gnu_ld
6105
6106
6107 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6108 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6109 if test "${lt_cv_ld_reload_flag+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 lt_cv_ld_reload_flag='-r'
6113 fi
6114 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6115 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6116 reload_flag=$lt_cv_ld_reload_flag
6117 case $reload_flag in
6118 "" | " "*) ;;
6119 *) reload_flag=" $reload_flag" ;;
6120 esac
6121 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6122 case $host_os in
6123 darwin*)
6124 if test "$GCC" = yes; then
6125 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6126 else
6127 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6128 fi
6129 ;;
6130 esac
6131
6132 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6133 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6134 if test "${lt_cv_path_NM+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137 if test -n "$NM"; then
6138 # Let the user override the test.
6139 lt_cv_path_NM="$NM"
6140 else
6141 lt_nm_to_check="${ac_tool_prefix}nm"
6142 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6143 lt_nm_to_check="$lt_nm_to_check nm"
6144 fi
6145 for lt_tmp_nm in $lt_nm_to_check; do
6146 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6147 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6148 IFS="$lt_save_ifs"
6149 test -z "$ac_dir" && ac_dir=.
6150 tmp_nm="$ac_dir/$lt_tmp_nm"
6151 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6152 # Check to see if the nm accepts a BSD-compat flag.
6153 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6154 # nm: unknown option "B" ignored
6155 # Tru64's nm complains that /dev/null is an invalid object file
6156 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6157 */dev/null* | *'Invalid file or object type'*)
6158 lt_cv_path_NM="$tmp_nm -B"
6159 break
6160 ;;
6161 *)
6162 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6163 */dev/null*)
6164 lt_cv_path_NM="$tmp_nm -p"
6165 break
6166 ;;
6167 *)
6168 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6169 continue # so that we can try to find one that supports BSD flags
6170 ;;
6171 esac
6172 ;;
6173 esac
6174 fi
6175 done
6176 IFS="$lt_save_ifs"
6177 done
6178 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6179 fi
6180 fi
6181 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6182 echo "${ECHO_T}$lt_cv_path_NM" >&6
6183 NM="$lt_cv_path_NM"
6184
6185 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6186 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6187 if test "${lt_cv_deplibs_check_method+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190 lt_cv_file_magic_cmd='$MAGIC_CMD'
6191 lt_cv_file_magic_test_file=
6192 lt_cv_deplibs_check_method='unknown'
6193 # Need to set the preceding variable on all platforms that support
6194 # interlibrary dependencies.
6195 # 'none' -- dependencies not supported.
6196 # `unknown' -- same as none, but documents that we really don't know.
6197 # 'pass_all' -- all dependencies passed with no checks.
6198 # 'test_compile' -- check by making test program.
6199 # 'file_magic [[regex]]' -- check by looking for files in library path
6200 # which responds to the $file_magic_cmd with a given extended regex.
6201 # If you have `file' or equivalent on your system and you're not sure
6202 # whether `pass_all' will *always* work, you probably want this one.
6203
6204 case $host_os in
6205 aix4* | aix5*)
6206 lt_cv_deplibs_check_method=pass_all
6207 ;;
6208
6209 beos*)
6210 lt_cv_deplibs_check_method=pass_all
6211 ;;
6212
6213 bsdi[45]*)
6214 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6215 lt_cv_file_magic_cmd='/usr/bin/file -L'
6216 lt_cv_file_magic_test_file=/shlib/libc.so
6217 ;;
6218
6219 cygwin*)
6220 # func_win32_libid is a shell function defined in ltmain.sh
6221 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6222 lt_cv_file_magic_cmd='func_win32_libid'
6223 ;;
6224
6225 mingw* | pw32*)
6226 # Base MSYS/MinGW do not provide the 'file' command needed by
6227 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6228 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6229 lt_cv_file_magic_cmd='$OBJDUMP -f'
6230 ;;
6231
6232 darwin* | rhapsody*)
6233 lt_cv_deplibs_check_method=pass_all
6234 ;;
6235
6236 freebsd* | kfreebsd*-gnu | dragonfly*)
6237 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6238 case $host_cpu in
6239 i*86 )
6240 # Not sure whether the presence of OpenBSD here was a mistake.
6241 # Let's accept both of them until this is cleared up.
6242 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6243 lt_cv_file_magic_cmd=/usr/bin/file
6244 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6245 ;;
6246 esac
6247 else
6248 lt_cv_deplibs_check_method=pass_all
6249 fi
6250 ;;
6251
6252 gnu*)
6253 lt_cv_deplibs_check_method=pass_all
6254 ;;
6255
6256 hpux10.20* | hpux11*)
6257 lt_cv_file_magic_cmd=/usr/bin/file
6258 case $host_cpu in
6259 ia64*)
6260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6261 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6262 ;;
6263 hppa*64*)
6264 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]'
6265 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6266 ;;
6267 *)
6268 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6269 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6270 ;;
6271 esac
6272 ;;
6273
6274 interix3*)
6275 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6277 ;;
6278
6279 irix5* | irix6* | nonstopux*)
6280 case $LD in
6281 *-32|*"-32 ") libmagic=32-bit;;
6282 *-n32|*"-n32 ") libmagic=N32;;
6283 *-64|*"-64 ") libmagic=64-bit;;
6284 *) libmagic=never-match;;
6285 esac
6286 lt_cv_deplibs_check_method=pass_all
6287 ;;
6288
6289 # This must be Linux ELF.
6290 linux*)
6291 lt_cv_deplibs_check_method=pass_all
6292 ;;
6293
6294 netbsd*)
6295 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6297 else
6298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6299 fi
6300 ;;
6301
6302 newos6*)
6303 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6304 lt_cv_file_magic_cmd=/usr/bin/file
6305 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6306 ;;
6307
6308 nto-qnx*)
6309 lt_cv_deplibs_check_method=unknown
6310 ;;
6311
6312 openbsd*)
6313 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6315 else
6316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6317 fi
6318 ;;
6319
6320 osf3* | osf4* | osf5*)
6321 lt_cv_deplibs_check_method=pass_all
6322 ;;
6323
6324 solaris*)
6325 lt_cv_deplibs_check_method=pass_all
6326 ;;
6327
6328 sysv4 | sysv4.3*)
6329 case $host_vendor in
6330 motorola)
6331 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]'
6332 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6333 ;;
6334 ncr)
6335 lt_cv_deplibs_check_method=pass_all
6336 ;;
6337 sequent)
6338 lt_cv_file_magic_cmd='/bin/file'
6339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6340 ;;
6341 sni)
6342 lt_cv_file_magic_cmd='/bin/file'
6343 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6344 lt_cv_file_magic_test_file=/lib/libc.so
6345 ;;
6346 siemens)
6347 lt_cv_deplibs_check_method=pass_all
6348 ;;
6349 pc)
6350 lt_cv_deplibs_check_method=pass_all
6351 ;;
6352 esac
6353 ;;
6354
6355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
6358 esac
6359
6360 fi
6361 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6362 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6363 file_magic_cmd=$lt_cv_file_magic_cmd
6364 deplibs_check_method=$lt_cv_deplibs_check_method
6365 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6366
6367
6368
6369
6370 # If no C compiler was specified, use CC.
6371 LTCC=${LTCC-"$CC"}
6372
6373 # If no C compiler flags were specified, use CFLAGS.
6374 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6375
6376 # Allow CC to be a program name with arguments.
6377 compiler=$CC
6378
6379 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6380 if test "${enable_libtool_lock+set}" = set; then
6381 enableval="$enable_libtool_lock"
6382
6383 fi;
6384 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6385
6386 # Some flags need to be propagated to the compiler or linker for good
6387 # libtool support.
6388 case $host in
6389 ia64-*-hpux*)
6390 # Find out which ABI we are using.
6391 echo 'int i;' > conftest.$ac_ext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393 (eval $ac_compile) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; then
6397 case `/usr/bin/file conftest.$ac_objext` in
6398 *ELF-32*)
6399 HPUX_IA64_MODE="32"
6400 ;;
6401 *ELF-64*)
6402 HPUX_IA64_MODE="64"
6403 ;;
6404 esac
6405 fi
6406 rm -rf conftest*
6407 ;;
6408 *-*-irix6*)
6409 # Find out which ABI we are using.
6410 echo '#line 6410 "configure"' > conftest.$ac_ext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412 (eval $ac_compile) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; then
6416 if test "$lt_cv_prog_gnu_ld" = yes; then
6417 case `/usr/bin/file conftest.$ac_objext` in
6418 *32-bit*)
6419 LD="${LD-ld} -melf32bsmip"
6420 ;;
6421 *N32*)
6422 LD="${LD-ld} -melf32bmipn32"
6423 ;;
6424 *64-bit*)
6425 LD="${LD-ld} -melf64bmip"
6426 ;;
6427 esac
6428 else
6429 case `/usr/bin/file conftest.$ac_objext` in
6430 *32-bit*)
6431 LD="${LD-ld} -32"
6432 ;;
6433 *N32*)
6434 LD="${LD-ld} -n32"
6435 ;;
6436 *64-bit*)
6437 LD="${LD-ld} -64"
6438 ;;
6439 esac
6440 fi
6441 fi
6442 rm -rf conftest*
6443 ;;
6444
6445 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6446 # Find out which ABI we are using.
6447 echo 'int i;' > conftest.$ac_ext
6448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6449 (eval $ac_compile) 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; then
6453 case `/usr/bin/file conftest.o` in
6454 *32-bit*)
6455 case $host in
6456 x86_64-*linux*)
6457 LD="${LD-ld} -m elf_i386"
6458 ;;
6459 ppc64-*linux*|powerpc64-*linux*)
6460 LD="${LD-ld} -m elf32ppclinux"
6461 ;;
6462 s390x-*linux*)
6463 LD="${LD-ld} -m elf_s390"
6464 ;;
6465 sparc64-*linux*)
6466 LD="${LD-ld} -m elf32_sparc"
6467 ;;
6468 esac
6469 ;;
6470 *64-bit*)
6471 case $host in
6472 x86_64-*linux*)
6473 LD="${LD-ld} -m elf_x86_64"
6474 ;;
6475 ppc*-*linux*|powerpc*-*linux*)
6476 LD="${LD-ld} -m elf64ppc"
6477 ;;
6478 s390*-*linux*)
6479 LD="${LD-ld} -m elf64_s390"
6480 ;;
6481 sparc*-*linux*)
6482 LD="${LD-ld} -m elf64_sparc"
6483 ;;
6484 esac
6485 ;;
6486 esac
6487 fi
6488 rm -rf conftest*
6489 ;;
6490
6491 *-*-sco3.2v5*)
6492 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6493 SAVE_CFLAGS="$CFLAGS"
6494 CFLAGS="$CFLAGS -belf"
6495 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6496 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6497 if test "${lt_cv_cc_needs_belf+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 else
6500 ac_ext=c
6501 ac_cpp='$CPP $CPPFLAGS'
6502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6505
6506 cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h. */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6512
6513 int
6514 main ()
6515 {
6516
6517 ;
6518 return 0;
6519 }
6520 _ACEOF
6521 rm -f conftest.$ac_objext conftest$ac_exeext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6523 (eval $ac_link) 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -z "$ac_c_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try='test -s conftest$ac_exeext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 lt_cv_cc_needs_belf=yes
6544 else
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 lt_cv_cc_needs_belf=no
6549 fi
6550 rm -f conftest.err conftest.$ac_objext \
6551 conftest$ac_exeext conftest.$ac_ext
6552 ac_ext=c
6553 ac_cpp='$CPP $CPPFLAGS'
6554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6557
6558 fi
6559 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6560 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6561 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6562 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6563 CFLAGS="$SAVE_CFLAGS"
6564 fi
6565 ;;
6566 sparc*-*solaris*)
6567 # Find out which ABI we are using.
6568 echo 'int i;' > conftest.$ac_ext
6569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6570 (eval $ac_compile) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; then
6574 case `/usr/bin/file conftest.o` in
6575 *64-bit*)
6576 case $lt_cv_prog_gnu_ld in
6577 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6578 *) LD="${LD-ld} -64" ;;
6579 esac
6580 ;;
6581 esac
6582 fi
6583 rm -rf conftest*
6584 ;;
6585
6586
6587 esac
6588
6589 need_locks="$enable_libtool_lock"
6590
6591
6592 ac_ext=c
6593 ac_cpp='$CPP $CPPFLAGS'
6594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6598 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6599 # On Suns, sometimes $CPP names a directory.
6600 if test -n "$CPP" && test -d "$CPP"; then
6601 CPP=
6602 fi
6603 if test -z "$CPP"; then
6604 if test "${ac_cv_prog_CPP+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607 # Double quotes because CPP needs to be expanded
6608 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6609 do
6610 ac_preproc_ok=false
6611 for ac_c_preproc_warn_flag in '' yes
6612 do
6613 # Use a header file that comes with gcc, so configuring glibc
6614 # with a fresh cross-compiler works.
6615 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6616 # <limits.h> exists even on freestanding compilers.
6617 # On the NeXT, cc -E runs the code through the compiler's parser,
6618 # not just through cpp. "Syntax error" is here to catch this case.
6619 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 #ifdef __STDC__
6626 # include <limits.h>
6627 #else
6628 # include <assert.h>
6629 #endif
6630 Syntax error
6631 _ACEOF
6632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6634 ac_status=$?
6635 grep -v '^ *+' conftest.er1 >conftest.err
6636 rm -f conftest.er1
6637 cat conftest.err >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } >/dev/null; then
6640 if test -s conftest.err; then
6641 ac_cpp_err=$ac_c_preproc_warn_flag
6642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6643 else
6644 ac_cpp_err=
6645 fi
6646 else
6647 ac_cpp_err=yes
6648 fi
6649 if test -z "$ac_cpp_err"; then
6650 :
6651 else
6652 echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6654
6655 # Broken: fails on valid input.
6656 continue
6657 fi
6658 rm -f conftest.err conftest.$ac_ext
6659
6660 # OK, works on sane cases. Now check whether non-existent headers
6661 # can be detected and how.
6662 cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h. */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668 #include <ac_nonexistent.h>
6669 _ACEOF
6670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } >/dev/null; then
6678 if test -s conftest.err; then
6679 ac_cpp_err=$ac_c_preproc_warn_flag
6680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6681 else
6682 ac_cpp_err=
6683 fi
6684 else
6685 ac_cpp_err=yes
6686 fi
6687 if test -z "$ac_cpp_err"; then
6688 # Broken: success on invalid input.
6689 continue
6690 else
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6693
6694 # Passes both tests.
6695 ac_preproc_ok=:
6696 break
6697 fi
6698 rm -f conftest.err conftest.$ac_ext
6699
6700 done
6701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6702 rm -f conftest.err conftest.$ac_ext
6703 if $ac_preproc_ok; then
6704 break
6705 fi
6706
6707 done
6708 ac_cv_prog_CPP=$CPP
6709
6710 fi
6711 CPP=$ac_cv_prog_CPP
6712 else
6713 ac_cv_prog_CPP=$CPP
6714 fi
6715 echo "$as_me:$LINENO: result: $CPP" >&5
6716 echo "${ECHO_T}$CPP" >&6
6717 ac_preproc_ok=false
6718 for ac_c_preproc_warn_flag in '' yes
6719 do
6720 # Use a header file that comes with gcc, so configuring glibc
6721 # with a fresh cross-compiler works.
6722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6723 # <limits.h> exists even on freestanding compilers.
6724 # On the NeXT, cc -E runs the code through the compiler's parser,
6725 # not just through cpp. "Syntax error" is here to catch this case.
6726 cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h. */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6732 #ifdef __STDC__
6733 # include <limits.h>
6734 #else
6735 # include <assert.h>
6736 #endif
6737 Syntax error
6738 _ACEOF
6739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6741 ac_status=$?
6742 grep -v '^ *+' conftest.er1 >conftest.err
6743 rm -f conftest.er1
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } >/dev/null; then
6747 if test -s conftest.err; then
6748 ac_cpp_err=$ac_c_preproc_warn_flag
6749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6750 else
6751 ac_cpp_err=
6752 fi
6753 else
6754 ac_cpp_err=yes
6755 fi
6756 if test -z "$ac_cpp_err"; then
6757 :
6758 else
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762 # Broken: fails on valid input.
6763 continue
6764 fi
6765 rm -f conftest.err conftest.$ac_ext
6766
6767 # OK, works on sane cases. Now check whether non-existent headers
6768 # can be detected and how.
6769 cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h. */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 #include <ac_nonexistent.h>
6776 _ACEOF
6777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6779 ac_status=$?
6780 grep -v '^ *+' conftest.er1 >conftest.err
6781 rm -f conftest.er1
6782 cat conftest.err >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } >/dev/null; then
6785 if test -s conftest.err; then
6786 ac_cpp_err=$ac_c_preproc_warn_flag
6787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6788 else
6789 ac_cpp_err=
6790 fi
6791 else
6792 ac_cpp_err=yes
6793 fi
6794 if test -z "$ac_cpp_err"; then
6795 # Broken: success on invalid input.
6796 continue
6797 else
6798 echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6800
6801 # Passes both tests.
6802 ac_preproc_ok=:
6803 break
6804 fi
6805 rm -f conftest.err conftest.$ac_ext
6806
6807 done
6808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6809 rm -f conftest.err conftest.$ac_ext
6810 if $ac_preproc_ok; then
6811 :
6812 else
6813 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6814 See \`config.log' for more details." >&5
6815 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6816 See \`config.log' for more details." >&2;}
6817 { (exit 1); exit 1; }; }
6818 fi
6819
6820 ac_ext=c
6821 ac_cpp='$CPP $CPPFLAGS'
6822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6825
6826
6827 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6829 if test "${ac_cv_header_stdc+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832 cat >conftest.$ac_ext <<_ACEOF
6833 /* confdefs.h. */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6838 #include <stdlib.h>
6839 #include <stdarg.h>
6840 #include <string.h>
6841 #include <float.h>
6842
6843 int
6844 main ()
6845 {
6846
6847 ;
6848 return 0;
6849 }
6850 _ACEOF
6851 rm -f conftest.$ac_objext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6853 (eval $ac_compile) 2>conftest.er1
6854 ac_status=$?
6855 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } &&
6860 { ac_try='test -z "$ac_c_werror_flag"
6861 || test ! -s conftest.err'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 (eval $ac_try) 2>&5
6864 ac_status=$?
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; } &&
6867 { ac_try='test -s conftest.$ac_objext'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 (eval $ac_try) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; }; then
6873 ac_cv_header_stdc=yes
6874 else
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6877
6878 ac_cv_header_stdc=no
6879 fi
6880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6881
6882 if test $ac_cv_header_stdc = yes; then
6883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6884 cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h. */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 #include <string.h>
6891
6892 _ACEOF
6893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6894 $EGREP "memchr" >/dev/null 2>&1; then
6895 :
6896 else
6897 ac_cv_header_stdc=no
6898 fi
6899 rm -f conftest*
6900
6901 fi
6902
6903 if test $ac_cv_header_stdc = yes; then
6904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6905 cat >conftest.$ac_ext <<_ACEOF
6906 /* confdefs.h. */
6907 _ACEOF
6908 cat confdefs.h >>conftest.$ac_ext
6909 cat >>conftest.$ac_ext <<_ACEOF
6910 /* end confdefs.h. */
6911 #include <stdlib.h>
6912
6913 _ACEOF
6914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6915 $EGREP "free" >/dev/null 2>&1; then
6916 :
6917 else
6918 ac_cv_header_stdc=no
6919 fi
6920 rm -f conftest*
6921
6922 fi
6923
6924 if test $ac_cv_header_stdc = yes; then
6925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6926 if test "$cross_compiling" = yes; then
6927 :
6928 else
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 #include <ctype.h>
6936 #if ((' ' & 0x0FF) == 0x020)
6937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6939 #else
6940 # define ISLOWER(c) \
6941 (('a' <= (c) && (c) <= 'i') \
6942 || ('j' <= (c) && (c) <= 'r') \
6943 || ('s' <= (c) && (c) <= 'z'))
6944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6945 #endif
6946
6947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6948 int
6949 main ()
6950 {
6951 int i;
6952 for (i = 0; i < 256; i++)
6953 if (XOR (islower (i), ISLOWER (i))
6954 || toupper (i) != TOUPPER (i))
6955 exit(2);
6956 exit (0);
6957 }
6958 _ACEOF
6959 rm -f conftest$ac_exeext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961 (eval $ac_link) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 (eval $ac_try) 2>&5
6967 ac_status=$?
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; }; then
6970 :
6971 else
6972 echo "$as_me: program exited with status $ac_status" >&5
6973 echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6975
6976 ( exit $ac_status )
6977 ac_cv_header_stdc=no
6978 fi
6979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6980 fi
6981 fi
6982 fi
6983 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6984 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6985 if test $ac_cv_header_stdc = yes; then
6986
6987 cat >>confdefs.h <<\_ACEOF
6988 #define STDC_HEADERS 1
6989 _ACEOF
6990
6991 fi
6992
6993 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7004 inttypes.h stdint.h unistd.h
7005 do
7006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007 echo "$as_me:$LINENO: checking for $ac_header" >&5
7008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h. */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7019
7020 #include <$ac_header>
7021 _ACEOF
7022 rm -f conftest.$ac_objext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>conftest.er1
7025 ac_status=$?
7026 grep -v '^ *+' conftest.er1 >conftest.err
7027 rm -f conftest.er1
7028 cat conftest.err >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try='test -z "$ac_c_werror_flag"
7032 || test ! -s conftest.err'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try='test -s conftest.$ac_objext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 eval "$as_ac_Header=yes"
7045 else
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7048
7049 eval "$as_ac_Header=no"
7050 fi
7051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7052 fi
7053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7056 cat >>confdefs.h <<_ACEOF
7057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7058 _ACEOF
7059
7060 fi
7061
7062 done
7063
7064
7065
7066 for ac_header in dlfcn.h
7067 do
7068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7070 echo "$as_me:$LINENO: checking for $ac_header" >&5
7071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 fi
7075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7077 else
7078 # Is the header compilable?
7079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7081 cat >conftest.$ac_ext <<_ACEOF
7082 /* confdefs.h. */
7083 _ACEOF
7084 cat confdefs.h >>conftest.$ac_ext
7085 cat >>conftest.$ac_ext <<_ACEOF
7086 /* end confdefs.h. */
7087 $ac_includes_default
7088 #include <$ac_header>
7089 _ACEOF
7090 rm -f conftest.$ac_objext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>conftest.er1
7093 ac_status=$?
7094 grep -v '^ *+' conftest.er1 >conftest.err
7095 rm -f conftest.er1
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
7099 { ac_try='test -z "$ac_c_werror_flag"
7100 || test ! -s conftest.err'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 (eval $ac_try) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; } &&
7106 { ac_try='test -s conftest.$ac_objext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 ac_header_compiler=yes
7113 else
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7116
7117 ac_header_compiler=no
7118 fi
7119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7121 echo "${ECHO_T}$ac_header_compiler" >&6
7122
7123 # Is the header present?
7124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7126 cat >conftest.$ac_ext <<_ACEOF
7127 /* confdefs.h. */
7128 _ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7132 #include <$ac_header>
7133 _ACEOF
7134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7136 ac_status=$?
7137 grep -v '^ *+' conftest.er1 >conftest.err
7138 rm -f conftest.er1
7139 cat conftest.err >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } >/dev/null; then
7142 if test -s conftest.err; then
7143 ac_cpp_err=$ac_c_preproc_warn_flag
7144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7145 else
7146 ac_cpp_err=
7147 fi
7148 else
7149 ac_cpp_err=yes
7150 fi
7151 if test -z "$ac_cpp_err"; then
7152 ac_header_preproc=yes
7153 else
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7156
7157 ac_header_preproc=no
7158 fi
7159 rm -f conftest.err conftest.$ac_ext
7160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7161 echo "${ECHO_T}$ac_header_preproc" >&6
7162
7163 # So? What about this header?
7164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7165 yes:no: )
7166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7170 ac_header_preproc=yes
7171 ;;
7172 no:yes:* )
7173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7185 (
7186 cat <<\_ASBOX
7187 ## ------------------------------------ ##
7188 ## Report this to [email protected] ##
7189 ## ------------------------------------ ##
7190 _ASBOX
7191 ) |
7192 sed "s/^/$as_me: WARNING: /" >&2
7193 ;;
7194 esac
7195 echo "$as_me:$LINENO: checking for $ac_header" >&5
7196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200 eval "$as_ac_Header=\$ac_header_preproc"
7201 fi
7202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7204
7205 fi
7206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7207 cat >>confdefs.h <<_ACEOF
7208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7209 _ACEOF
7210
7211 fi
7212
7213 done
7214
7215
7216
7217 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7218 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7219 (test "X$CXX" != "Xg++"))) ; then
7220 ac_ext=cc
7221 ac_cpp='$CXXCPP $CPPFLAGS'
7222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7225 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7226 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7227 if test -z "$CXXCPP"; then
7228 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231 # Double quotes because CXXCPP needs to be expanded
7232 for CXXCPP in "$CXX -E" "/lib/cpp"
7233 do
7234 ac_preproc_ok=false
7235 for ac_cxx_preproc_warn_flag in '' yes
7236 do
7237 # Use a header file that comes with gcc, so configuring glibc
7238 # with a fresh cross-compiler works.
7239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7240 # <limits.h> exists even on freestanding compilers.
7241 # On the NeXT, cc -E runs the code through the compiler's parser,
7242 # not just through cpp. "Syntax error" is here to catch this case.
7243 cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h. */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 #ifdef __STDC__
7250 # include <limits.h>
7251 #else
7252 # include <assert.h>
7253 #endif
7254 Syntax error
7255 _ACEOF
7256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7258 ac_status=$?
7259 grep -v '^ *+' conftest.er1 >conftest.err
7260 rm -f conftest.er1
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } >/dev/null; then
7264 if test -s conftest.err; then
7265 ac_cpp_err=$ac_cxx_preproc_warn_flag
7266 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7267 else
7268 ac_cpp_err=
7269 fi
7270 else
7271 ac_cpp_err=yes
7272 fi
7273 if test -z "$ac_cpp_err"; then
7274 :
7275 else
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7278
7279 # Broken: fails on valid input.
7280 continue
7281 fi
7282 rm -f conftest.err conftest.$ac_ext
7283
7284 # OK, works on sane cases. Now check whether non-existent headers
7285 # can be detected and how.
7286 cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h. */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7292 #include <ac_nonexistent.h>
7293 _ACEOF
7294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7296 ac_status=$?
7297 grep -v '^ *+' conftest.er1 >conftest.err
7298 rm -f conftest.er1
7299 cat conftest.err >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } >/dev/null; then
7302 if test -s conftest.err; then
7303 ac_cpp_err=$ac_cxx_preproc_warn_flag
7304 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7305 else
7306 ac_cpp_err=
7307 fi
7308 else
7309 ac_cpp_err=yes
7310 fi
7311 if test -z "$ac_cpp_err"; then
7312 # Broken: success on invalid input.
7313 continue
7314 else
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7317
7318 # Passes both tests.
7319 ac_preproc_ok=:
7320 break
7321 fi
7322 rm -f conftest.err conftest.$ac_ext
7323
7324 done
7325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7326 rm -f conftest.err conftest.$ac_ext
7327 if $ac_preproc_ok; then
7328 break
7329 fi
7330
7331 done
7332 ac_cv_prog_CXXCPP=$CXXCPP
7333
7334 fi
7335 CXXCPP=$ac_cv_prog_CXXCPP
7336 else
7337 ac_cv_prog_CXXCPP=$CXXCPP
7338 fi
7339 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7340 echo "${ECHO_T}$CXXCPP" >&6
7341 ac_preproc_ok=false
7342 for ac_cxx_preproc_warn_flag in '' yes
7343 do
7344 # Use a header file that comes with gcc, so configuring glibc
7345 # with a fresh cross-compiler works.
7346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7347 # <limits.h> exists even on freestanding compilers.
7348 # On the NeXT, cc -E runs the code through the compiler's parser,
7349 # not just through cpp. "Syntax error" is here to catch this case.
7350 cat >conftest.$ac_ext <<_ACEOF
7351 /* confdefs.h. */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 #ifdef __STDC__
7357 # include <limits.h>
7358 #else
7359 # include <assert.h>
7360 #endif
7361 Syntax error
7362 _ACEOF
7363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7365 ac_status=$?
7366 grep -v '^ *+' conftest.er1 >conftest.err
7367 rm -f conftest.er1
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } >/dev/null; then
7371 if test -s conftest.err; then
7372 ac_cpp_err=$ac_cxx_preproc_warn_flag
7373 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7374 else
7375 ac_cpp_err=
7376 fi
7377 else
7378 ac_cpp_err=yes
7379 fi
7380 if test -z "$ac_cpp_err"; then
7381 :
7382 else
7383 echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7385
7386 # Broken: fails on valid input.
7387 continue
7388 fi
7389 rm -f conftest.err conftest.$ac_ext
7390
7391 # OK, works on sane cases. Now check whether non-existent headers
7392 # can be detected and how.
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h. */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 #include <ac_nonexistent.h>
7400 _ACEOF
7401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7403 ac_status=$?
7404 grep -v '^ *+' conftest.er1 >conftest.err
7405 rm -f conftest.er1
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } >/dev/null; then
7409 if test -s conftest.err; then
7410 ac_cpp_err=$ac_cxx_preproc_warn_flag
7411 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7412 else
7413 ac_cpp_err=
7414 fi
7415 else
7416 ac_cpp_err=yes
7417 fi
7418 if test -z "$ac_cpp_err"; then
7419 # Broken: success on invalid input.
7420 continue
7421 else
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7424
7425 # Passes both tests.
7426 ac_preproc_ok=:
7427 break
7428 fi
7429 rm -f conftest.err conftest.$ac_ext
7430
7431 done
7432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7433 rm -f conftest.err conftest.$ac_ext
7434 if $ac_preproc_ok; then
7435 :
7436 else
7437 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7438 See \`config.log' for more details." >&5
7439 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7440 See \`config.log' for more details." >&2;}
7441 { (exit 1); exit 1; }; }
7442 fi
7443
7444 ac_ext=cc
7445 ac_cpp='$CXXCPP $CPPFLAGS'
7446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7449
7450 fi
7451
7452
7453 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7454
7455 # find the maximum length of command line arguments
7456 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7457 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7458 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 else
7461 i=0
7462 teststring="ABCD"
7463
7464 case $build_os in
7465 msdosdjgpp*)
7466 # On DJGPP, this test can blow up pretty badly due to problems in libc
7467 # (any single argument exceeding 2000 bytes causes a buffer overrun
7468 # during glob expansion). Even if it were fixed, the result of this
7469 # check would be larger than it should be.
7470 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7471 ;;
7472
7473 gnu*)
7474 # Under GNU Hurd, this test is not required because there is
7475 # no limit to the length of command line arguments.
7476 # Libtool will interpret -1 as no limit whatsoever
7477 lt_cv_sys_max_cmd_len=-1;
7478 ;;
7479
7480 cygwin* | mingw*)
7481 # On Win9x/ME, this test blows up -- it succeeds, but takes
7482 # about 5 minutes as the teststring grows exponentially.
7483 # Worse, since 9x/ME are not pre-emptively multitasking,
7484 # you end up with a "frozen" computer, even though with patience
7485 # the test eventually succeeds (with a max line length of 256k).
7486 # Instead, let's just punt: use the minimum linelength reported by
7487 # all of the supported platforms: 8192 (on NT/2K/XP).
7488 lt_cv_sys_max_cmd_len=8192;
7489 ;;
7490
7491 amigaos*)
7492 # On AmigaOS with pdksh, this test takes hours, literally.
7493 # So we just punt and use a minimum line length of 8192.
7494 lt_cv_sys_max_cmd_len=8192;
7495 ;;
7496
7497 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7498 # This has been around since 386BSD, at least. Likely further.
7499 if test -x /sbin/sysctl; then
7500 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7501 elif test -x /usr/sbin/sysctl; then
7502 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7503 else
7504 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7505 fi
7506 # And add a safety zone
7507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7508 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7509 ;;
7510
7511 interix*)
7512 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7513 lt_cv_sys_max_cmd_len=196608
7514 ;;
7515
7516 osf*)
7517 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7518 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7519 # nice to cause kernel panics so lets avoid the loop below.
7520 # First set a reasonable default.
7521 lt_cv_sys_max_cmd_len=16384
7522 #
7523 if test -x /sbin/sysconfig; then
7524 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7525 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7526 esac
7527 fi
7528 ;;
7529 sco3.2v5*)
7530 lt_cv_sys_max_cmd_len=102400
7531 ;;
7532 sysv5* | sco5v6* | sysv4.2uw2*)
7533 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7534 if test -n "$kargmax"; then
7535 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7536 else
7537 lt_cv_sys_max_cmd_len=32768
7538 fi
7539 ;;
7540 *)
7541 # If test is not a shell built-in, we'll probably end up computing a
7542 # maximum length that is only half of the actual maximum length, but
7543 # we can't tell.
7544 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7545 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7546 = "XX$teststring") >/dev/null 2>&1 &&
7547 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7548 lt_cv_sys_max_cmd_len=$new_result &&
7549 test $i != 17 # 1/2 MB should be enough
7550 do
7551 i=`expr $i + 1`
7552 teststring=$teststring$teststring
7553 done
7554 teststring=
7555 # Add a significant safety factor because C++ compilers can tack on massive
7556 # amounts of additional arguments before passing them to the linker.
7557 # It appears as though 1/2 is a usable value.
7558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7559 ;;
7560 esac
7561
7562 fi
7563
7564 if test -n $lt_cv_sys_max_cmd_len ; then
7565 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7566 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7567 else
7568 echo "$as_me:$LINENO: result: none" >&5
7569 echo "${ECHO_T}none" >&6
7570 fi
7571
7572
7573
7574
7575 # Check for command to grab the raw symbol name followed by C symbol from nm.
7576 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7577 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7578 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581
7582 # These are sane defaults that work on at least a few old systems.
7583 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7584
7585 # Character class describing NM global symbol codes.
7586 symcode='[BCDEGRST]'
7587
7588 # Regexp to match symbols that can be accessed directly from C.
7589 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7590
7591 # Transform an extracted symbol line into a proper C declaration
7592 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7593
7594 # Transform an extracted symbol line into symbol name and symbol address
7595 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'"
7596
7597 # Define system-specific variables.
7598 case $host_os in
7599 aix*)
7600 symcode='[BCDT]'
7601 ;;
7602 cygwin* | mingw* | pw32*)
7603 symcode='[ABCDGISTW]'
7604 ;;
7605 hpux*) # Its linker distinguishes data from code symbols
7606 if test "$host_cpu" = ia64; then
7607 symcode='[ABCDEGRST]'
7608 fi
7609 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7610 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'"
7611 ;;
7612 linux*)
7613 if test "$host_cpu" = ia64; then
7614 symcode='[ABCDGIRSTW]'
7615 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7616 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'"
7617 fi
7618 ;;
7619 irix* | nonstopux*)
7620 symcode='[BCDEGRST]'
7621 ;;
7622 osf*)
7623 symcode='[BCDEGQRST]'
7624 ;;
7625 solaris*)
7626 symcode='[BDRT]'
7627 ;;
7628 sco3.2v5*)
7629 symcode='[DT]'
7630 ;;
7631 sysv4.2uw2*)
7632 symcode='[DT]'
7633 ;;
7634 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7635 symcode='[ABDT]'
7636 ;;
7637 sysv4)
7638 symcode='[DFNSTU]'
7639 ;;
7640 esac
7641
7642 # Handle CRLF in mingw tool chain
7643 opt_cr=
7644 case $build_os in
7645 mingw*)
7646 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7647 ;;
7648 esac
7649
7650 # If we're using GNU nm, then use its standard symbol codes.
7651 case `$NM -V 2>&1` in
7652 *GNU* | *'with BFD'*)
7653 symcode='[ABCDGIRSTW]' ;;
7654 esac
7655
7656 # Try without a prefix undercore, then with it.
7657 for ac_symprfx in "" "_"; do
7658
7659 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7660 symxfrm="\\1 $ac_symprfx\\2 \\2"
7661
7662 # Write the raw and C identifiers.
7663 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7664
7665 # Check to see that the pipe works correctly.
7666 pipe_works=no
7667
7668 rm -f conftest*
7669 cat > conftest.$ac_ext <<EOF
7670 #ifdef __cplusplus
7671 extern "C" {
7672 #endif
7673 char nm_test_var;
7674 void nm_test_func(){}
7675 #ifdef __cplusplus
7676 }
7677 #endif
7678 int main(){nm_test_var='a';nm_test_func();return(0);}
7679 EOF
7680
7681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7682 (eval $ac_compile) 2>&5
7683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; then
7686 # Now try to grab the symbols.
7687 nlist=conftest.nm
7688 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7689 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && test -s "$nlist"; then
7693 # Try sorting and uniquifying the output.
7694 if sort "$nlist" | uniq > "$nlist"T; then
7695 mv -f "$nlist"T "$nlist"
7696 else
7697 rm -f "$nlist"T
7698 fi
7699
7700 # Make sure that we snagged all the symbols we need.
7701 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7702 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7703 cat <<EOF > conftest.$ac_ext
7704 #ifdef __cplusplus
7705 extern "C" {
7706 #endif
7707
7708 EOF
7709 # Now generate the symbol file.
7710 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7711
7712 cat <<EOF >> conftest.$ac_ext
7713 #if defined (__STDC__) && __STDC__
7714 # define lt_ptr_t void *
7715 #else
7716 # define lt_ptr_t char *
7717 # define const
7718 #endif
7719
7720 /* The mapping between symbol names and symbols. */
7721 const struct {
7722 const char *name;
7723 lt_ptr_t address;
7724 }
7725 lt_preloaded_symbols[] =
7726 {
7727 EOF
7728 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7729 cat <<\EOF >> conftest.$ac_ext
7730 {0, (lt_ptr_t) 0}
7731 };
7732
7733 #ifdef __cplusplus
7734 }
7735 #endif
7736 EOF
7737 # Now try linking the two files.
7738 mv conftest.$ac_objext conftstm.$ac_objext
7739 lt_save_LIBS="$LIBS"
7740 lt_save_CFLAGS="$CFLAGS"
7741 LIBS="conftstm.$ac_objext"
7742 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744 (eval $ac_link) 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7748 pipe_works=yes
7749 fi
7750 LIBS="$lt_save_LIBS"
7751 CFLAGS="$lt_save_CFLAGS"
7752 else
7753 echo "cannot find nm_test_func in $nlist" >&5
7754 fi
7755 else
7756 echo "cannot find nm_test_var in $nlist" >&5
7757 fi
7758 else
7759 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7760 fi
7761 else
7762 echo "$progname: failed program was:" >&5
7763 cat conftest.$ac_ext >&5
7764 fi
7765 rm -f conftest* conftst*
7766
7767 # Do not use the global_symbol_pipe unless it works.
7768 if test "$pipe_works" = yes; then
7769 break
7770 else
7771 lt_cv_sys_global_symbol_pipe=
7772 fi
7773 done
7774
7775 fi
7776
7777 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7778 lt_cv_sys_global_symbol_to_cdecl=
7779 fi
7780 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7781 echo "$as_me:$LINENO: result: failed" >&5
7782 echo "${ECHO_T}failed" >&6
7783 else
7784 echo "$as_me:$LINENO: result: ok" >&5
7785 echo "${ECHO_T}ok" >&6
7786 fi
7787
7788 echo "$as_me:$LINENO: checking for objdir" >&5
7789 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7790 if test "${lt_cv_objdir+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793 rm -f .libs 2>/dev/null
7794 mkdir .libs 2>/dev/null
7795 if test -d .libs; then
7796 lt_cv_objdir=.libs
7797 else
7798 # MS-DOS does not allow filenames that begin with a dot.
7799 lt_cv_objdir=_libs
7800 fi
7801 rmdir .libs 2>/dev/null
7802 fi
7803 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7804 echo "${ECHO_T}$lt_cv_objdir" >&6
7805 objdir=$lt_cv_objdir
7806
7807
7808
7809
7810
7811 case $host_os in
7812 aix3*)
7813 # AIX sometimes has problems with the GCC collect2 program. For some
7814 # reason, if we set the COLLECT_NAMES environment variable, the problems
7815 # vanish in a puff of smoke.
7816 if test "X${COLLECT_NAMES+set}" != Xset; then
7817 COLLECT_NAMES=
7818 export COLLECT_NAMES
7819 fi
7820 ;;
7821 esac
7822
7823 # Sed substitution that helps us do robust quoting. It backslashifies
7824 # metacharacters that are still active within double-quoted strings.
7825 Xsed='sed -e 1s/^X//'
7826 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7827
7828 # Same as above, but do not quote variable references.
7829 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7830
7831 # Sed substitution to delay expansion of an escaped shell variable in a
7832 # double_quote_subst'ed string.
7833 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7834
7835 # Sed substitution to avoid accidental globbing in evaled expressions
7836 no_glob_subst='s/\*/\\\*/g'
7837
7838 # Constants:
7839 rm="rm -f"
7840
7841 # Global variables:
7842 default_ofile=libtool
7843 can_build_shared=yes
7844
7845 # All known linkers require a `.a' archive for static linking (except MSVC,
7846 # which needs '.lib').
7847 libext=a
7848 ltmain="$ac_aux_dir/ltmain.sh"
7849 ofile="$default_ofile"
7850 with_gnu_ld="$lt_cv_prog_gnu_ld"
7851
7852 if test -n "$ac_tool_prefix"; then
7853 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7854 set dummy ${ac_tool_prefix}ar; ac_word=$2
7855 echo "$as_me:$LINENO: checking for $ac_word" >&5
7856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7857 if test "${ac_cv_prog_AR+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860 if test -n "$AR"; then
7861 ac_cv_prog_AR="$AR" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7865 do
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7870 ac_cv_prog_AR="${ac_tool_prefix}ar"
7871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7873 fi
7874 done
7875 done
7876
7877 fi
7878 fi
7879 AR=$ac_cv_prog_AR
7880 if test -n "$AR"; then
7881 echo "$as_me:$LINENO: result: $AR" >&5
7882 echo "${ECHO_T}$AR" >&6
7883 else
7884 echo "$as_me:$LINENO: result: no" >&5
7885 echo "${ECHO_T}no" >&6
7886 fi
7887
7888 fi
7889 if test -z "$ac_cv_prog_AR"; then
7890 ac_ct_AR=$AR
7891 # Extract the first word of "ar", so it can be a program name with args.
7892 set dummy ar; ac_word=$2
7893 echo "$as_me:$LINENO: checking for $ac_word" >&5
7894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7895 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898 if test -n "$ac_ct_AR"; then
7899 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7900 else
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 for as_dir in $PATH
7903 do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7908 ac_cv_prog_ac_ct_AR="ar"
7909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 break 2
7911 fi
7912 done
7913 done
7914
7915 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7916 fi
7917 fi
7918 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7919 if test -n "$ac_ct_AR"; then
7920 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7921 echo "${ECHO_T}$ac_ct_AR" >&6
7922 else
7923 echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6
7925 fi
7926
7927 AR=$ac_ct_AR
7928 else
7929 AR="$ac_cv_prog_AR"
7930 fi
7931
7932 if test -n "$ac_tool_prefix"; then
7933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7935 echo "$as_me:$LINENO: checking for $ac_word" >&5
7936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7937 if test "${ac_cv_prog_RANLIB+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940 if test -n "$RANLIB"; then
7941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7945 do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954 done
7955 done
7956
7957 fi
7958 fi
7959 RANLIB=$ac_cv_prog_RANLIB
7960 if test -n "$RANLIB"; then
7961 echo "$as_me:$LINENO: result: $RANLIB" >&5
7962 echo "${ECHO_T}$RANLIB" >&6
7963 else
7964 echo "$as_me:$LINENO: result: no" >&5
7965 echo "${ECHO_T}no" >&6
7966 fi
7967
7968 fi
7969 if test -z "$ac_cv_prog_RANLIB"; then
7970 ac_ct_RANLIB=$RANLIB
7971 # Extract the first word of "ranlib", so it can be a program name with args.
7972 set dummy ranlib; ac_word=$2
7973 echo "$as_me:$LINENO: checking for $ac_word" >&5
7974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7975 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978 if test -n "$ac_ct_RANLIB"; then
7979 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988 ac_cv_prog_ac_ct_RANLIB="ranlib"
7989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 break 2
7991 fi
7992 done
7993 done
7994
7995 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7996 fi
7997 fi
7998 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7999 if test -n "$ac_ct_RANLIB"; then
8000 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8001 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8002 else
8003 echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6
8005 fi
8006
8007 RANLIB=$ac_ct_RANLIB
8008 else
8009 RANLIB="$ac_cv_prog_RANLIB"
8010 fi
8011
8012 if test -n "$ac_tool_prefix"; then
8013 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8014 set dummy ${ac_tool_prefix}strip; ac_word=$2
8015 echo "$as_me:$LINENO: checking for $ac_word" >&5
8016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8017 if test "${ac_cv_prog_STRIP+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020 if test -n "$STRIP"; then
8021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8022 else
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8025 do
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034 done
8035 done
8036
8037 fi
8038 fi
8039 STRIP=$ac_cv_prog_STRIP
8040 if test -n "$STRIP"; then
8041 echo "$as_me:$LINENO: result: $STRIP" >&5
8042 echo "${ECHO_T}$STRIP" >&6
8043 else
8044 echo "$as_me:$LINENO: result: no" >&5
8045 echo "${ECHO_T}no" >&6
8046 fi
8047
8048 fi
8049 if test -z "$ac_cv_prog_STRIP"; then
8050 ac_ct_STRIP=$STRIP
8051 # Extract the first word of "strip", so it can be a program name with args.
8052 set dummy strip; ac_word=$2
8053 echo "$as_me:$LINENO: checking for $ac_word" >&5
8054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8055 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058 if test -n "$ac_ct_STRIP"; then
8059 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8060 else
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8063 do
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8068 ac_cv_prog_ac_ct_STRIP="strip"
8069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 break 2
8071 fi
8072 done
8073 done
8074
8075 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8076 fi
8077 fi
8078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8079 if test -n "$ac_ct_STRIP"; then
8080 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8081 echo "${ECHO_T}$ac_ct_STRIP" >&6
8082 else
8083 echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6
8085 fi
8086
8087 STRIP=$ac_ct_STRIP
8088 else
8089 STRIP="$ac_cv_prog_STRIP"
8090 fi
8091
8092
8093 old_CC="$CC"
8094 old_CFLAGS="$CFLAGS"
8095
8096 # Set sane defaults for various variables
8097 test -z "$AR" && AR=ar
8098 test -z "$AR_FLAGS" && AR_FLAGS=cru
8099 test -z "$AS" && AS=as
8100 test -z "$CC" && CC=cc
8101 test -z "$LTCC" && LTCC=$CC
8102 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8103 test -z "$DLLTOOL" && DLLTOOL=dlltool
8104 test -z "$LD" && LD=ld
8105 test -z "$LN_S" && LN_S="ln -s"
8106 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8107 test -z "$NM" && NM=nm
8108 test -z "$SED" && SED=sed
8109 test -z "$OBJDUMP" && OBJDUMP=objdump
8110 test -z "$RANLIB" && RANLIB=:
8111 test -z "$STRIP" && STRIP=:
8112 test -z "$ac_objext" && ac_objext=o
8113
8114 # Determine commands to create old-style static archives.
8115 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8116 old_postinstall_cmds='chmod 644 $oldlib'
8117 old_postuninstall_cmds=
8118
8119 if test -n "$RANLIB"; then
8120 case $host_os in
8121 openbsd*)
8122 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8123 ;;
8124 *)
8125 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8126 ;;
8127 esac
8128 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8129 fi
8130
8131 for cc_temp in $compiler""; do
8132 case $cc_temp in
8133 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8134 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8135 \-*) ;;
8136 *) break;;
8137 esac
8138 done
8139 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8140
8141
8142 # Only perform the check for file, if the check method requires it
8143 case $deplibs_check_method in
8144 file_magic*)
8145 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8146 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8147 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8148 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151 case $MAGIC_CMD in
8152 [\\/*] | ?:[\\/]*)
8153 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8154 ;;
8155 *)
8156 lt_save_MAGIC_CMD="$MAGIC_CMD"
8157 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8158 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8159 for ac_dir in $ac_dummy; do
8160 IFS="$lt_save_ifs"
8161 test -z "$ac_dir" && ac_dir=.
8162 if test -f $ac_dir/${ac_tool_prefix}file; then
8163 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8164 if test -n "$file_magic_test_file"; then
8165 case $deplibs_check_method in
8166 "file_magic "*)
8167 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8169 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8170 $EGREP "$file_magic_regex" > /dev/null; then
8171 :
8172 else
8173 cat <<EOF 1>&2
8174
8175 *** Warning: the command libtool uses to detect shared libraries,
8176 *** $file_magic_cmd, produces output that libtool cannot recognize.
8177 *** The result is that libtool may fail to recognize shared libraries
8178 *** as such. This will affect the creation of libtool libraries that
8179 *** depend on shared libraries, but programs linked with such libtool
8180 *** libraries will work regardless of this problem. Nevertheless, you
8181 *** may want to report the problem to your system manager and/or to
8182 *** [email protected]
8183
8184 EOF
8185 fi ;;
8186 esac
8187 fi
8188 break
8189 fi
8190 done
8191 IFS="$lt_save_ifs"
8192 MAGIC_CMD="$lt_save_MAGIC_CMD"
8193 ;;
8194 esac
8195 fi
8196
8197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8198 if test -n "$MAGIC_CMD"; then
8199 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8200 echo "${ECHO_T}$MAGIC_CMD" >&6
8201 else
8202 echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8204 fi
8205
8206 if test -z "$lt_cv_path_MAGIC_CMD"; then
8207 if test -n "$ac_tool_prefix"; then
8208 echo "$as_me:$LINENO: checking for file" >&5
8209 echo $ECHO_N "checking for file... $ECHO_C" >&6
8210 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 else
8213 case $MAGIC_CMD in
8214 [\\/*] | ?:[\\/]*)
8215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8216 ;;
8217 *)
8218 lt_save_MAGIC_CMD="$MAGIC_CMD"
8219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8221 for ac_dir in $ac_dummy; do
8222 IFS="$lt_save_ifs"
8223 test -z "$ac_dir" && ac_dir=.
8224 if test -f $ac_dir/file; then
8225 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8226 if test -n "$file_magic_test_file"; then
8227 case $deplibs_check_method in
8228 "file_magic "*)
8229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8232 $EGREP "$file_magic_regex" > /dev/null; then
8233 :
8234 else
8235 cat <<EOF 1>&2
8236
8237 *** Warning: the command libtool uses to detect shared libraries,
8238 *** $file_magic_cmd, produces output that libtool cannot recognize.
8239 *** The result is that libtool may fail to recognize shared libraries
8240 *** as such. This will affect the creation of libtool libraries that
8241 *** depend on shared libraries, but programs linked with such libtool
8242 *** libraries will work regardless of this problem. Nevertheless, you
8243 *** may want to report the problem to your system manager and/or to
8244 *** [email protected]
8245
8246 EOF
8247 fi ;;
8248 esac
8249 fi
8250 break
8251 fi
8252 done
8253 IFS="$lt_save_ifs"
8254 MAGIC_CMD="$lt_save_MAGIC_CMD"
8255 ;;
8256 esac
8257 fi
8258
8259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8260 if test -n "$MAGIC_CMD"; then
8261 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8262 echo "${ECHO_T}$MAGIC_CMD" >&6
8263 else
8264 echo "$as_me:$LINENO: result: no" >&5
8265 echo "${ECHO_T}no" >&6
8266 fi
8267
8268 else
8269 MAGIC_CMD=:
8270 fi
8271 fi
8272
8273 fi
8274 ;;
8275 esac
8276
8277 enable_dlopen=no
8278 enable_win32_dll=no
8279
8280 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8281 if test "${enable_libtool_lock+set}" = set; then
8282 enableval="$enable_libtool_lock"
8283
8284 fi;
8285 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8286
8287
8288 # Check whether --with-pic or --without-pic was given.
8289 if test "${with_pic+set}" = set; then
8290 withval="$with_pic"
8291 pic_mode="$withval"
8292 else
8293 pic_mode=default
8294 fi;
8295 test -z "$pic_mode" && pic_mode=default
8296
8297 # Use C for the default configuration in the libtool script
8298 tagname=
8299 lt_save_CC="$CC"
8300 ac_ext=c
8301 ac_cpp='$CPP $CPPFLAGS'
8302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8305
8306
8307 # Source file extension for C test sources.
8308 ac_ext=c
8309
8310 # Object file extension for compiled C test sources.
8311 objext=o
8312 objext=$objext
8313
8314 # Code to be used in simple compile tests
8315 lt_simple_compile_test_code="int some_variable = 0;\n"
8316
8317 # Code to be used in simple link tests
8318 lt_simple_link_test_code='int main(){return(0);}\n'
8319
8320
8321 # If no C compiler was specified, use CC.
8322 LTCC=${LTCC-"$CC"}
8323
8324 # If no C compiler flags were specified, use CFLAGS.
8325 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8326
8327 # Allow CC to be a program name with arguments.
8328 compiler=$CC
8329
8330
8331 # save warnings/boilerplate of simple test code
8332 ac_outfile=conftest.$ac_objext
8333 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8334 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8335 _lt_compiler_boilerplate=`cat conftest.err`
8336 $rm conftest*
8337
8338 ac_outfile=conftest.$ac_objext
8339 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8340 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8341 _lt_linker_boilerplate=`cat conftest.err`
8342 $rm conftest*
8343
8344
8345 ## CAVEAT EMPTOR:
8346 ## There is no encapsulation within the following macros, do not change
8347 ## the running order or otherwise move them around unless you know exactly
8348 ## what you are doing...
8349
8350 lt_prog_compiler_no_builtin_flag=
8351
8352 if test "$GCC" = yes; then
8353 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8354
8355
8356 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8357 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8358 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361 lt_cv_prog_compiler_rtti_exceptions=no
8362 ac_outfile=conftest.$ac_objext
8363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8364 lt_compiler_flag="-fno-rtti -fno-exceptions"
8365 # Insert the option either (1) after the last *FLAGS variable, or
8366 # (2) before a word containing "conftest.", or (3) at the end.
8367 # Note that $ac_compile itself does not contain backslashes and begins
8368 # with a dollar sign (not a hyphen), so the echo should work correctly.
8369 # The option is referenced via a variable to avoid confusing sed.
8370 lt_compile=`echo "$ac_compile" | $SED \
8371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8373 -e 's:$: $lt_compiler_flag:'`
8374 (eval echo "\"\$as_me:8374: $lt_compile\"" >&5)
8375 (eval "$lt_compile" 2>conftest.err)
8376 ac_status=$?
8377 cat conftest.err >&5
8378 echo "$as_me:8378: \$? = $ac_status" >&5
8379 if (exit $ac_status) && test -s "$ac_outfile"; then
8380 # The compiler can only warn and ignore the option if not recognized
8381 # So say no if there are warnings other than the usual output.
8382 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8384 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8385 lt_cv_prog_compiler_rtti_exceptions=yes
8386 fi
8387 fi
8388 $rm conftest*
8389
8390 fi
8391 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8392 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8393
8394 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8395 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8396 else
8397 :
8398 fi
8399
8400 fi
8401
8402 lt_prog_compiler_wl=
8403 lt_prog_compiler_pic=
8404 lt_prog_compiler_static=
8405
8406 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8407 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8408
8409 if test "$GCC" = yes; then
8410 lt_prog_compiler_wl='-Wl,'
8411 lt_prog_compiler_static='-static'
8412
8413 case $host_os in
8414 aix*)
8415 # All AIX code is PIC.
8416 if test "$host_cpu" = ia64; then
8417 # AIX 5 now supports IA64 processor
8418 lt_prog_compiler_static='-Bstatic'
8419 fi
8420 ;;
8421
8422 amigaos*)
8423 # FIXME: we need at least 68020 code to build shared libraries, but
8424 # adding the `-m68020' flag to GCC prevents building anything better,
8425 # like `-m68040'.
8426 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8427 ;;
8428
8429 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8430 # PIC is the default for these OSes.
8431 ;;
8432
8433 mingw* | pw32* | os2*)
8434 # This hack is so that the source file can tell whether it is being
8435 # built for inclusion in a dll (and should export symbols for example).
8436 lt_prog_compiler_pic='-DDLL_EXPORT'
8437 ;;
8438
8439 darwin* | rhapsody*)
8440 # PIC is the default on this platform
8441 # Common symbols not allowed in MH_DYLIB files
8442 lt_prog_compiler_pic='-fno-common'
8443 ;;
8444
8445 interix3*)
8446 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8447 # Instead, we relocate shared libraries at runtime.
8448 ;;
8449
8450 msdosdjgpp*)
8451 # Just because we use GCC doesn't mean we suddenly get shared libraries
8452 # on systems that don't support them.
8453 lt_prog_compiler_can_build_shared=no
8454 enable_shared=no
8455 ;;
8456
8457 sysv4*MP*)
8458 if test -d /usr/nec; then
8459 lt_prog_compiler_pic=-Kconform_pic
8460 fi
8461 ;;
8462
8463 hpux*)
8464 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8465 # not for PA HP-UX.
8466 case $host_cpu in
8467 hppa*64*|ia64*)
8468 # +Z the default
8469 ;;
8470 *)
8471 lt_prog_compiler_pic='-fPIC'
8472 ;;
8473 esac
8474 ;;
8475
8476 *)
8477 lt_prog_compiler_pic='-fPIC'
8478 ;;
8479 esac
8480 else
8481 # PORTME Check for flag to pass linker flags through the system compiler.
8482 case $host_os in
8483 aix*)
8484 lt_prog_compiler_wl='-Wl,'
8485 if test "$host_cpu" = ia64; then
8486 # AIX 5 now supports IA64 processor
8487 lt_prog_compiler_static='-Bstatic'
8488 else
8489 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8490 fi
8491 ;;
8492 darwin*)
8493 # PIC is the default on this platform
8494 # Common symbols not allowed in MH_DYLIB files
8495 case $cc_basename in
8496 xlc*)
8497 lt_prog_compiler_pic='-qnocommon'
8498 lt_prog_compiler_wl='-Wl,'
8499 ;;
8500 esac
8501 ;;
8502
8503 mingw* | pw32* | os2*)
8504 # This hack is so that the source file can tell whether it is being
8505 # built for inclusion in a dll (and should export symbols for example).
8506 lt_prog_compiler_pic='-DDLL_EXPORT'
8507 ;;
8508
8509 hpux9* | hpux10* | hpux11*)
8510 lt_prog_compiler_wl='-Wl,'
8511 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8512 # not for PA HP-UX.
8513 case $host_cpu in
8514 hppa*64*|ia64*)
8515 # +Z the default
8516 ;;
8517 *)
8518 lt_prog_compiler_pic='+Z'
8519 ;;
8520 esac
8521 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8522 lt_prog_compiler_static='${wl}-a ${wl}archive'
8523 ;;
8524
8525 irix5* | irix6* | nonstopux*)
8526 lt_prog_compiler_wl='-Wl,'
8527 # PIC (with -KPIC) is the default.
8528 lt_prog_compiler_static='-non_shared'
8529 ;;
8530
8531 newsos6)
8532 lt_prog_compiler_pic='-KPIC'
8533 lt_prog_compiler_static='-Bstatic'
8534 ;;
8535
8536 linux*)
8537 case $cc_basename in
8538 icc* | ecc*)
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_pic='-KPIC'
8541 lt_prog_compiler_static='-static'
8542 ;;
8543 pgcc* | pgf77* | pgf90* | pgf95*)
8544 # Portland Group compilers (*not* the Pentium gcc compiler,
8545 # which looks to be a dead project)
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='-fpic'
8548 lt_prog_compiler_static='-Bstatic'
8549 ;;
8550 ccc*)
8551 lt_prog_compiler_wl='-Wl,'
8552 # All Alpha code is PIC.
8553 lt_prog_compiler_static='-non_shared'
8554 ;;
8555 esac
8556 ;;
8557
8558 osf3* | osf4* | osf5*)
8559 lt_prog_compiler_wl='-Wl,'
8560 # All OSF/1 code is PIC.
8561 lt_prog_compiler_static='-non_shared'
8562 ;;
8563
8564 solaris*)
8565 lt_prog_compiler_pic='-KPIC'
8566 lt_prog_compiler_static='-Bstatic'
8567 case $cc_basename in
8568 f77* | f90* | f95*)
8569 lt_prog_compiler_wl='-Qoption ld ';;
8570 *)
8571 lt_prog_compiler_wl='-Wl,';;
8572 esac
8573 ;;
8574
8575 sunos4*)
8576 lt_prog_compiler_wl='-Qoption ld '
8577 lt_prog_compiler_pic='-PIC'
8578 lt_prog_compiler_static='-Bstatic'
8579 ;;
8580
8581 sysv4 | sysv4.2uw2* | sysv4.3*)
8582 lt_prog_compiler_wl='-Wl,'
8583 lt_prog_compiler_pic='-KPIC'
8584 lt_prog_compiler_static='-Bstatic'
8585 ;;
8586
8587 sysv4*MP*)
8588 if test -d /usr/nec ;then
8589 lt_prog_compiler_pic='-Kconform_pic'
8590 lt_prog_compiler_static='-Bstatic'
8591 fi
8592 ;;
8593
8594 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8595 lt_prog_compiler_wl='-Wl,'
8596 lt_prog_compiler_pic='-KPIC'
8597 lt_prog_compiler_static='-Bstatic'
8598 ;;
8599
8600 unicos*)
8601 lt_prog_compiler_wl='-Wl,'
8602 lt_prog_compiler_can_build_shared=no
8603 ;;
8604
8605 uts4*)
8606 lt_prog_compiler_pic='-pic'
8607 lt_prog_compiler_static='-Bstatic'
8608 ;;
8609
8610 *)
8611 lt_prog_compiler_can_build_shared=no
8612 ;;
8613 esac
8614 fi
8615
8616 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8617 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8618
8619 #
8620 # Check to make sure the PIC flag actually works.
8621 #
8622 if test -n "$lt_prog_compiler_pic"; then
8623
8624 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8625 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8626 if test "${lt_prog_compiler_pic_works+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 else
8629 lt_prog_compiler_pic_works=no
8630 ac_outfile=conftest.$ac_objext
8631 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8632 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8633 # Insert the option either (1) after the last *FLAGS variable, or
8634 # (2) before a word containing "conftest.", or (3) at the end.
8635 # Note that $ac_compile itself does not contain backslashes and begins
8636 # with a dollar sign (not a hyphen), so the echo should work correctly.
8637 # The option is referenced via a variable to avoid confusing sed.
8638 lt_compile=`echo "$ac_compile" | $SED \
8639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8641 -e 's:$: $lt_compiler_flag:'`
8642 (eval echo "\"\$as_me:8642: $lt_compile\"" >&5)
8643 (eval "$lt_compile" 2>conftest.err)
8644 ac_status=$?
8645 cat conftest.err >&5
8646 echo "$as_me:8646: \$? = $ac_status" >&5
8647 if (exit $ac_status) && test -s "$ac_outfile"; then
8648 # The compiler can only warn and ignore the option if not recognized
8649 # So say no if there are warnings other than the usual output.
8650 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8653 lt_prog_compiler_pic_works=yes
8654 fi
8655 fi
8656 $rm conftest*
8657
8658 fi
8659 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8660 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8661
8662 if test x"$lt_prog_compiler_pic_works" = xyes; then
8663 case $lt_prog_compiler_pic in
8664 "" | " "*) ;;
8665 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8666 esac
8667 else
8668 lt_prog_compiler_pic=
8669 lt_prog_compiler_can_build_shared=no
8670 fi
8671
8672 fi
8673 case $host_os in
8674 # For platforms which do not support PIC, -DPIC is meaningless:
8675 *djgpp*)
8676 lt_prog_compiler_pic=
8677 ;;
8678 *)
8679 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8680 ;;
8681 esac
8682
8683 #
8684 # Check to make sure the static flag actually works.
8685 #
8686 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8687 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8688 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8689 if test "${lt_prog_compiler_static_works+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692 lt_prog_compiler_static_works=no
8693 save_LDFLAGS="$LDFLAGS"
8694 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8695 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8697 # The linker can only warn and ignore the option if not recognized
8698 # So say no if there are warnings
8699 if test -s conftest.err; then
8700 # Append any errors to the config.log.
8701 cat conftest.err 1>&5
8702 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8704 if diff conftest.exp conftest.er2 >/dev/null; then
8705 lt_prog_compiler_static_works=yes
8706 fi
8707 else
8708 lt_prog_compiler_static_works=yes
8709 fi
8710 fi
8711 $rm conftest*
8712 LDFLAGS="$save_LDFLAGS"
8713
8714 fi
8715 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8716 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8717
8718 if test x"$lt_prog_compiler_static_works" = xyes; then
8719 :
8720 else
8721 lt_prog_compiler_static=
8722 fi
8723
8724
8725 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8726 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8727 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730 lt_cv_prog_compiler_c_o=no
8731 $rm -r conftest 2>/dev/null
8732 mkdir conftest
8733 cd conftest
8734 mkdir out
8735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8736
8737 lt_compiler_flag="-o out/conftest2.$ac_objext"
8738 # Insert the option either (1) after the last *FLAGS variable, or
8739 # (2) before a word containing "conftest.", or (3) at the end.
8740 # Note that $ac_compile itself does not contain backslashes and begins
8741 # with a dollar sign (not a hyphen), so the echo should work correctly.
8742 lt_compile=`echo "$ac_compile" | $SED \
8743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8745 -e 's:$: $lt_compiler_flag:'`
8746 (eval echo "\"\$as_me:8746: $lt_compile\"" >&5)
8747 (eval "$lt_compile" 2>out/conftest.err)
8748 ac_status=$?
8749 cat out/conftest.err >&5
8750 echo "$as_me:8750: \$? = $ac_status" >&5
8751 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8752 then
8753 # The compiler can only warn and ignore the option if not recognized
8754 # So say no if there are warnings
8755 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8756 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8757 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8758 lt_cv_prog_compiler_c_o=yes
8759 fi
8760 fi
8761 chmod u+w . 2>&5
8762 $rm conftest*
8763 # SGI C++ compiler will create directory out/ii_files/ for
8764 # template instantiation
8765 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8766 $rm out/* && rmdir out
8767 cd ..
8768 rmdir conftest
8769 $rm conftest*
8770
8771 fi
8772 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8773 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8774
8775
8776 hard_links="nottested"
8777 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8778 # do not overwrite the value of need_locks provided by the user
8779 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8780 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8781 hard_links=yes
8782 $rm conftest*
8783 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8784 touch conftest.a
8785 ln conftest.a conftest.b 2>&5 || hard_links=no
8786 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8787 echo "$as_me:$LINENO: result: $hard_links" >&5
8788 echo "${ECHO_T}$hard_links" >&6
8789 if test "$hard_links" = no; then
8790 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8791 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8792 need_locks=warn
8793 fi
8794 else
8795 need_locks=no
8796 fi
8797
8798 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8799 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8800
8801 runpath_var=
8802 allow_undefined_flag=
8803 enable_shared_with_static_runtimes=no
8804 archive_cmds=
8805 archive_expsym_cmds=
8806 old_archive_From_new_cmds=
8807 old_archive_from_expsyms_cmds=
8808 export_dynamic_flag_spec=
8809 whole_archive_flag_spec=
8810 thread_safe_flag_spec=
8811 hardcode_libdir_flag_spec=
8812 hardcode_libdir_flag_spec_ld=
8813 hardcode_libdir_separator=
8814 hardcode_direct=no
8815 hardcode_minus_L=no
8816 hardcode_shlibpath_var=unsupported
8817 link_all_deplibs=unknown
8818 hardcode_automatic=no
8819 module_cmds=
8820 module_expsym_cmds=
8821 always_export_symbols=no
8822 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8823 # include_expsyms should be a list of space-separated symbols to be *always*
8824 # included in the symbol list
8825 include_expsyms=
8826 # exclude_expsyms can be an extended regexp of symbols to exclude
8827 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8828 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8829 # as well as any symbol that contains `d'.
8830 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8831 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8832 # platforms (ab)use it in PIC code, but their linkers get confused if
8833 # the symbol is explicitly referenced. Since portable code cannot
8834 # rely on this symbol name, it's probably fine to never include it in
8835 # preloaded symbol tables.
8836 extract_expsyms_cmds=
8837 # Just being paranoid about ensuring that cc_basename is set.
8838 for cc_temp in $compiler""; do
8839 case $cc_temp in
8840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8842 \-*) ;;
8843 *) break;;
8844 esac
8845 done
8846 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8847
8848 case $host_os in
8849 cygwin* | mingw* | pw32*)
8850 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8851 # When not using gcc, we currently assume that we are using
8852 # Microsoft Visual C++.
8853 if test "$GCC" != yes; then
8854 with_gnu_ld=no
8855 fi
8856 ;;
8857 interix*)
8858 # we just hope/assume this is gcc and not c89 (= MSVC++)
8859 with_gnu_ld=yes
8860 ;;
8861 openbsd*)
8862 with_gnu_ld=no
8863 ;;
8864 esac
8865
8866 ld_shlibs=yes
8867 if test "$with_gnu_ld" = yes; then
8868 # If archive_cmds runs LD, not CC, wlarc should be empty
8869 wlarc='${wl}'
8870
8871 # Set some defaults for GNU ld with shared library support. These
8872 # are reset later if shared libraries are not supported. Putting them
8873 # here allows them to be overridden if necessary.
8874 runpath_var=LD_RUN_PATH
8875 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8876 export_dynamic_flag_spec='${wl}--export-dynamic'
8877 # ancient GNU ld didn't support --whole-archive et. al.
8878 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8879 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8880 else
8881 whole_archive_flag_spec=
8882 fi
8883 supports_anon_versioning=no
8884 case `$LD -v 2>/dev/null` in
8885 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8886 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8887 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8888 *\ 2.11.*) ;; # other 2.11 versions
8889 *) supports_anon_versioning=yes ;;
8890 esac
8891
8892 # See if GNU ld supports shared libraries.
8893 case $host_os in
8894 aix3* | aix4* | aix5*)
8895 # On AIX/PPC, the GNU linker is very broken
8896 if test "$host_cpu" != ia64; then
8897 ld_shlibs=no
8898 cat <<EOF 1>&2
8899
8900 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8901 *** to be unable to reliably create shared libraries on AIX.
8902 *** Therefore, libtool is disabling shared libraries support. If you
8903 *** really care for shared libraries, you may want to modify your PATH
8904 *** so that a non-GNU linker is found, and then restart.
8905
8906 EOF
8907 fi
8908 ;;
8909
8910 amigaos*)
8911 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)'
8912 hardcode_libdir_flag_spec='-L$libdir'
8913 hardcode_minus_L=yes
8914
8915 # Samuel A. Falvo II <[email protected]> reports
8916 # that the semantics of dynamic libraries on AmigaOS, at least up
8917 # to version 4, is to share data among multiple programs linked
8918 # with the same dynamic library. Since this doesn't match the
8919 # behavior of shared libraries on other platforms, we can't use
8920 # them.
8921 ld_shlibs=no
8922 ;;
8923
8924 beos*)
8925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8926 allow_undefined_flag=unsupported
8927 # Joseph Beckenbach <[email protected]> says some releases of gcc
8928 # support --undefined. This deserves some investigation. FIXME
8929 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8930 else
8931 ld_shlibs=no
8932 fi
8933 ;;
8934
8935 cygwin* | mingw* | pw32*)
8936 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8937 # as there is no search path for DLLs.
8938 hardcode_libdir_flag_spec='-L$libdir'
8939 allow_undefined_flag=unsupported
8940 always_export_symbols=no
8941 enable_shared_with_static_runtimes=yes
8942 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8943
8944 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8946 # If the export-symbols file already is a .def file (1st line
8947 # is EXPORTS), use it as is; otherwise, prepend...
8948 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8949 cp $export_symbols $output_objdir/$soname.def;
8950 else
8951 echo EXPORTS > $output_objdir/$soname.def;
8952 cat $export_symbols >> $output_objdir/$soname.def;
8953 fi~
8954 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8955 else
8956 ld_shlibs=no
8957 fi
8958 ;;
8959
8960 interix3*)
8961 hardcode_direct=no
8962 hardcode_shlibpath_var=no
8963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8964 export_dynamic_flag_spec='${wl}-E'
8965 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8966 # Instead, shared libraries are loaded at an image base (0x10000000 by
8967 # default) and relocated if they conflict, which is a slow very memory
8968 # consuming and fragmenting process. To avoid this, we pick a random,
8969 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8970 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8972 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'
8973 ;;
8974
8975 linux*)
8976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8977 tmp_addflag=
8978 case $cc_basename,$host_cpu in
8979 pgcc*) # Portland Group C compiler
8980 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'
8981 tmp_addflag=' $pic_flag'
8982 ;;
8983 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8984 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'
8985 tmp_addflag=' $pic_flag -Mnomain' ;;
8986 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8987 tmp_addflag=' -i_dynamic' ;;
8988 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8989 tmp_addflag=' -i_dynamic -nofor_main' ;;
8990 ifc* | ifort*) # Intel Fortran compiler
8991 tmp_addflag=' -nofor_main' ;;
8992 esac
8993 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994
8995 if test $supports_anon_versioning = yes; then
8996 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8997 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8998 $echo "local: *; };" >> $output_objdir/$libname.ver~
8999 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9000 fi
9001 else
9002 ld_shlibs=no
9003 fi
9004 ;;
9005
9006 netbsd*)
9007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9008 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9009 wlarc=
9010 else
9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9013 fi
9014 ;;
9015
9016 solaris*)
9017 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9018 ld_shlibs=no
9019 cat <<EOF 1>&2
9020
9021 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9022 *** create shared libraries on Solaris systems. Therefore, libtool
9023 *** is disabling shared libraries support. We urge you to upgrade GNU
9024 *** binutils to release 2.9.1 or newer. Another option is to modify
9025 *** your PATH or compiler configuration so that the native linker is
9026 *** used, and then restart.
9027
9028 EOF
9029 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9032 else
9033 ld_shlibs=no
9034 fi
9035 ;;
9036
9037 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9038 case `$LD -v 2>&1` in
9039 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9040 ld_shlibs=no
9041 cat <<_LT_EOF 1>&2
9042
9043 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9044 *** reliably create shared libraries on SCO systems. Therefore, libtool
9045 *** is disabling shared libraries support. We urge you to upgrade GNU
9046 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9047 *** your PATH or compiler configuration so that the native linker is
9048 *** used, and then restart.
9049
9050 _LT_EOF
9051 ;;
9052 *)
9053 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9054 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9057 else
9058 ld_shlibs=no
9059 fi
9060 ;;
9061 esac
9062 ;;
9063
9064 sunos4*)
9065 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9066 wlarc=
9067 hardcode_direct=yes
9068 hardcode_shlibpath_var=no
9069 ;;
9070
9071 *)
9072 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9074 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9075 else
9076 ld_shlibs=no
9077 fi
9078 ;;
9079 esac
9080
9081 if test "$ld_shlibs" = no; then
9082 runpath_var=
9083 hardcode_libdir_flag_spec=
9084 export_dynamic_flag_spec=
9085 whole_archive_flag_spec=
9086 fi
9087 else
9088 # PORTME fill in a description of your system's linker (not GNU ld)
9089 case $host_os in
9090 aix3*)
9091 allow_undefined_flag=unsupported
9092 always_export_symbols=yes
9093 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'
9094 # Note: this linker hardcodes the directories in LIBPATH if there
9095 # are no directories specified by -L.
9096 hardcode_minus_L=yes
9097 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9098 # Neither direct hardcoding nor static linking is supported with a
9099 # broken collect2.
9100 hardcode_direct=unsupported
9101 fi
9102 ;;
9103
9104 aix4* | aix5*)
9105 if test "$host_cpu" = ia64; then
9106 # On IA64, the linker does run time linking by default, so we don't
9107 # have to do anything special.
9108 aix_use_runtimelinking=no
9109 exp_sym_flag='-Bexport'
9110 no_entry_flag=""
9111 else
9112 # If we're using GNU nm, then we don't want the "-C" option.
9113 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9114 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9115 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'
9116 else
9117 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'
9118 fi
9119 aix_use_runtimelinking=no
9120
9121 # Test if we are trying to use run time linking or normal
9122 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9123 # need to do runtime linking.
9124 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9125 for ld_flag in $LDFLAGS; do
9126 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9127 aix_use_runtimelinking=yes
9128 break
9129 fi
9130 done
9131 ;;
9132 esac
9133
9134 exp_sym_flag='-bexport'
9135 no_entry_flag='-bnoentry'
9136 fi
9137
9138 # When large executables or shared objects are built, AIX ld can
9139 # have problems creating the table of contents. If linking a library
9140 # or program results in "error TOC overflow" add -mminimal-toc to
9141 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9142 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9143
9144 archive_cmds=''
9145 hardcode_direct=yes
9146 hardcode_libdir_separator=':'
9147 link_all_deplibs=yes
9148
9149 if test "$GCC" = yes; then
9150 case $host_os in aix4.[012]|aix4.[012].*)
9151 # We only want to do this on AIX 4.2 and lower, the check
9152 # below for broken collect2 doesn't work under 4.3+
9153 collect2name=`${CC} -print-prog-name=collect2`
9154 if test -f "$collect2name" && \
9155 strings "$collect2name" | grep resolve_lib_name >/dev/null
9156 then
9157 # We have reworked collect2
9158 hardcode_direct=yes
9159 else
9160 # We have old collect2
9161 hardcode_direct=unsupported
9162 # It fails to find uninstalled libraries when the uninstalled
9163 # path is not listed in the libpath. Setting hardcode_minus_L
9164 # to unsupported forces relinking
9165 hardcode_minus_L=yes
9166 hardcode_libdir_flag_spec='-L$libdir'
9167 hardcode_libdir_separator=
9168 fi
9169 ;;
9170 esac
9171 shared_flag='-shared'
9172 if test "$aix_use_runtimelinking" = yes; then
9173 shared_flag="$shared_flag "'${wl}-G'
9174 fi
9175 else
9176 # not using gcc
9177 if test "$host_cpu" = ia64; then
9178 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9179 # chokes on -Wl,-G. The following line is correct:
9180 shared_flag='-G'
9181 else
9182 if test "$aix_use_runtimelinking" = yes; then
9183 shared_flag='${wl}-G'
9184 else
9185 shared_flag='${wl}-bM:SRE'
9186 fi
9187 fi
9188 fi
9189
9190 # It seems that -bexpall does not export symbols beginning with
9191 # underscore (_), so it is better to generate a list of symbols to export.
9192 always_export_symbols=yes
9193 if test "$aix_use_runtimelinking" = yes; then
9194 # Warning - without using the other runtime loading flags (-brtl),
9195 # -berok will link without error, but may produce a broken library.
9196 allow_undefined_flag='-berok'
9197 # Determine the default libpath from the value encoded in an empty executable.
9198 cat >conftest.$ac_ext <<_ACEOF
9199 /* confdefs.h. */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9204
9205 int
9206 main ()
9207 {
9208
9209 ;
9210 return 0;
9211 }
9212 _ACEOF
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9215 (eval $ac_link) 2>conftest.er1
9216 ac_status=$?
9217 grep -v '^ *+' conftest.er1 >conftest.err
9218 rm -f conftest.er1
9219 cat conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } &&
9222 { ac_try='test -z "$ac_c_werror_flag"
9223 || test ! -s conftest.err'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 (eval $ac_try) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; } &&
9229 { ac_try='test -s conftest$ac_exeext'
9230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 (eval $ac_try) 2>&5
9232 ac_status=$?
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); }; }; then
9235
9236 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9237 }'`
9238 # Check for a 64-bit object if we didn't find anything.
9239 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; }
9240 }'`; fi
9241 else
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9244
9245 fi
9246 rm -f conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9249
9250 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9251 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"
9252 else
9253 if test "$host_cpu" = ia64; then
9254 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9255 allow_undefined_flag="-z nodefs"
9256 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"
9257 else
9258 # Determine the default libpath from the value encoded in an empty executable.
9259 cat >conftest.$ac_ext <<_ACEOF
9260 /* confdefs.h. */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9265
9266 int
9267 main ()
9268 {
9269
9270 ;
9271 return 0;
9272 }
9273 _ACEOF
9274 rm -f conftest.$ac_objext conftest$ac_exeext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9276 (eval $ac_link) 2>conftest.er1
9277 ac_status=$?
9278 grep -v '^ *+' conftest.er1 >conftest.err
9279 rm -f conftest.er1
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try='test -z "$ac_c_werror_flag"
9284 || test ! -s conftest.err'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 (eval $ac_try) 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; } &&
9290 { ac_try='test -s conftest$ac_exeext'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 (eval $ac_try) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; }; then
9296
9297 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9298 }'`
9299 # Check for a 64-bit object if we didn't find anything.
9300 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; }
9301 }'`; fi
9302 else
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9305
9306 fi
9307 rm -f conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
9309 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9310
9311 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9312 # Warning - without using the other run time loading flags,
9313 # -berok will link without error, but may produce a broken library.
9314 no_undefined_flag=' ${wl}-bernotok'
9315 allow_undefined_flag=' ${wl}-berok'
9316 # Exported symbols can be pulled into shared objects from archives
9317 whole_archive_flag_spec='$convenience'
9318 archive_cmds_need_lc=yes
9319 # This is similar to how AIX traditionally builds its shared libraries.
9320 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'
9321 fi
9322 fi
9323 ;;
9324
9325 amigaos*)
9326 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)'
9327 hardcode_libdir_flag_spec='-L$libdir'
9328 hardcode_minus_L=yes
9329 # see comment about different semantics on the GNU ld section
9330 ld_shlibs=no
9331 ;;
9332
9333 bsdi[45]*)
9334 export_dynamic_flag_spec=-rdynamic
9335 ;;
9336
9337 cygwin* | mingw* | pw32*)
9338 # When not using gcc, we currently assume that we are using
9339 # Microsoft Visual C++.
9340 # hardcode_libdir_flag_spec is actually meaningless, as there is
9341 # no search path for DLLs.
9342 hardcode_libdir_flag_spec=' '
9343 allow_undefined_flag=unsupported
9344 # Tell ltmain to make .lib files, not .a files.
9345 libext=lib
9346 # Tell ltmain to make .dll files, not .so files.
9347 shrext_cmds=".dll"
9348 # FIXME: Setting linknames here is a bad hack.
9349 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9350 # The linker will automatically build a .lib file if we build a DLL.
9351 old_archive_From_new_cmds='true'
9352 # FIXME: Should let the user specify the lib program.
9353 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9354 fix_srcfile_path='`cygpath -w "$srcfile"`'
9355 enable_shared_with_static_runtimes=yes
9356 ;;
9357
9358 darwin* | rhapsody*)
9359 case $host_os in
9360 rhapsody* | darwin1.[012])
9361 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9362 ;;
9363 *) # Darwin 1.3 on
9364 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9365 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9366 else
9367 case ${MACOSX_DEPLOYMENT_TARGET} in
9368 10.[012])
9369 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9370 ;;
9371 10.*)
9372 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9373 ;;
9374 esac
9375 fi
9376 ;;
9377 esac
9378 archive_cmds_need_lc=no
9379 hardcode_direct=no
9380 hardcode_automatic=yes
9381 hardcode_shlibpath_var=unsupported
9382 whole_archive_flag_spec=''
9383 link_all_deplibs=yes
9384 if test "$GCC" = yes ; then
9385 output_verbose_link_cmd='echo'
9386 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9387 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9388 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9389 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}'
9390 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}'
9391 else
9392 case $cc_basename in
9393 xlc*)
9394 output_verbose_link_cmd='echo'
9395 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9396 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9397 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9398 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}'
9399 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}'
9400 ;;
9401 *)
9402 ld_shlibs=no
9403 ;;
9404 esac
9405 fi
9406 ;;
9407
9408 dgux*)
9409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9410 hardcode_libdir_flag_spec='-L$libdir'
9411 hardcode_shlibpath_var=no
9412 ;;
9413
9414 freebsd1*)
9415 ld_shlibs=no
9416 ;;
9417
9418 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9419 # support. Future versions do this automatically, but an explicit c++rt0.o
9420 # does not break anything, and helps significantly (at the cost of a little
9421 # extra space).
9422 freebsd2.2*)
9423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9424 hardcode_libdir_flag_spec='-R$libdir'
9425 hardcode_direct=yes
9426 hardcode_shlibpath_var=no
9427 ;;
9428
9429 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9430 freebsd2*)
9431 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9432 hardcode_direct=yes
9433 hardcode_minus_L=yes
9434 hardcode_shlibpath_var=no
9435 ;;
9436
9437 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9438 freebsd* | kfreebsd*-gnu | dragonfly*)
9439 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9440 hardcode_libdir_flag_spec='-R$libdir'
9441 hardcode_direct=yes
9442 hardcode_shlibpath_var=no
9443 ;;
9444
9445 hpux9*)
9446 if test "$GCC" = yes; then
9447 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'
9448 else
9449 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'
9450 fi
9451 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9452 hardcode_libdir_separator=:
9453 hardcode_direct=yes
9454
9455 # hardcode_minus_L: Not really in the search PATH,
9456 # but as the default location of the library.
9457 hardcode_minus_L=yes
9458 export_dynamic_flag_spec='${wl}-E'
9459 ;;
9460
9461 hpux10*)
9462 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9463 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9464 else
9465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9466 fi
9467 if test "$with_gnu_ld" = no; then
9468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9469 hardcode_libdir_separator=:
9470
9471 hardcode_direct=yes
9472 export_dynamic_flag_spec='${wl}-E'
9473
9474 # hardcode_minus_L: Not really in the search PATH,
9475 # but as the default location of the library.
9476 hardcode_minus_L=yes
9477 fi
9478 ;;
9479
9480 hpux11*)
9481 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9482 case $host_cpu in
9483 hppa*64*)
9484 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9485 ;;
9486 ia64*)
9487 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9488 ;;
9489 *)
9490 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9491 ;;
9492 esac
9493 else
9494 case $host_cpu in
9495 hppa*64*)
9496 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9497 ;;
9498 ia64*)
9499 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9500 ;;
9501 *)
9502 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9503 ;;
9504 esac
9505 fi
9506 if test "$with_gnu_ld" = no; then
9507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9508 hardcode_libdir_separator=:
9509
9510 case $host_cpu in
9511 hppa*64*|ia64*)
9512 hardcode_libdir_flag_spec_ld='+b $libdir'
9513 hardcode_direct=no
9514 hardcode_shlibpath_var=no
9515 ;;
9516 *)
9517 hardcode_direct=yes
9518 export_dynamic_flag_spec='${wl}-E'
9519
9520 # hardcode_minus_L: Not really in the search PATH,
9521 # but as the default location of the library.
9522 hardcode_minus_L=yes
9523 ;;
9524 esac
9525 fi
9526 ;;
9527
9528 irix5* | irix6* | nonstopux*)
9529 if test "$GCC" = yes; then
9530 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'
9531 else
9532 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'
9533 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9534 fi
9535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9536 hardcode_libdir_separator=:
9537 link_all_deplibs=yes
9538 ;;
9539
9540 netbsd*)
9541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9543 else
9544 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9545 fi
9546 hardcode_libdir_flag_spec='-R$libdir'
9547 hardcode_direct=yes
9548 hardcode_shlibpath_var=no
9549 ;;
9550
9551 newsos6)
9552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9553 hardcode_direct=yes
9554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9555 hardcode_libdir_separator=:
9556 hardcode_shlibpath_var=no
9557 ;;
9558
9559 openbsd*)
9560 hardcode_direct=yes
9561 hardcode_shlibpath_var=no
9562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9564 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9566 export_dynamic_flag_spec='${wl}-E'
9567 else
9568 case $host_os in
9569 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9571 hardcode_libdir_flag_spec='-R$libdir'
9572 ;;
9573 *)
9574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9576 ;;
9577 esac
9578 fi
9579 ;;
9580
9581 os2*)
9582 hardcode_libdir_flag_spec='-L$libdir'
9583 hardcode_minus_L=yes
9584 allow_undefined_flag=unsupported
9585 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'
9586 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9587 ;;
9588
9589 osf3*)
9590 if test "$GCC" = yes; then
9591 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9592 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'
9593 else
9594 allow_undefined_flag=' -expect_unresolved \*'
9595 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'
9596 fi
9597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598 hardcode_libdir_separator=:
9599 ;;
9600
9601 osf4* | osf5*) # as osf3* with the addition of -msym flag
9602 if test "$GCC" = yes; then
9603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9604 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'
9605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606 else
9607 allow_undefined_flag=' -expect_unresolved \*'
9608 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'
9609 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9610 $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'
9611
9612 # Both c and cxx compiler support -rpath directly
9613 hardcode_libdir_flag_spec='-rpath $libdir'
9614 fi
9615 hardcode_libdir_separator=:
9616 ;;
9617
9618 solaris*)
9619 no_undefined_flag=' -z text'
9620 if test "$GCC" = yes; then
9621 wlarc='${wl}'
9622 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9624 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9625 else
9626 wlarc=''
9627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9630 fi
9631 hardcode_libdir_flag_spec='-R$libdir'
9632 hardcode_shlibpath_var=no
9633 case $host_os in
9634 solaris2.[0-5] | solaris2.[0-5].*) ;;
9635 *)
9636 # The compiler driver will combine linker options so we
9637 # cannot just pass the convience library names through
9638 # without $wl, iff we do not link with $LD.
9639 # Luckily, gcc supports the same syntax we need for Sun Studio.
9640 # Supported since Solaris 2.6 (maybe 2.5.1?)
9641 case $wlarc in
9642 '')
9643 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9644 *)
9645 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' ;;
9646 esac ;;
9647 esac
9648 link_all_deplibs=yes
9649 ;;
9650
9651 sunos4*)
9652 if test "x$host_vendor" = xsequent; then
9653 # Use $CC to link under sequent, because it throws in some extra .o
9654 # files that make .init and .fini sections work.
9655 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9656 else
9657 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9658 fi
9659 hardcode_libdir_flag_spec='-L$libdir'
9660 hardcode_direct=yes
9661 hardcode_minus_L=yes
9662 hardcode_shlibpath_var=no
9663 ;;
9664
9665 sysv4)
9666 case $host_vendor in
9667 sni)
9668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669 hardcode_direct=yes # is this really true???
9670 ;;
9671 siemens)
9672 ## LD is ld it makes a PLAMLIB
9673 ## CC just makes a GrossModule.
9674 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9675 reload_cmds='$CC -r -o $output$reload_objs'
9676 hardcode_direct=no
9677 ;;
9678 motorola)
9679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9681 ;;
9682 esac
9683 runpath_var='LD_RUN_PATH'
9684 hardcode_shlibpath_var=no
9685 ;;
9686
9687 sysv4.3*)
9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689 hardcode_shlibpath_var=no
9690 export_dynamic_flag_spec='-Bexport'
9691 ;;
9692
9693 sysv4*MP*)
9694 if test -d /usr/nec; then
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_shlibpath_var=no
9697 runpath_var=LD_RUN_PATH
9698 hardcode_runpath_var=yes
9699 ld_shlibs=yes
9700 fi
9701 ;;
9702
9703 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9704 no_undefined_flag='${wl}-z,text'
9705 archive_cmds_need_lc=no
9706 hardcode_shlibpath_var=no
9707 runpath_var='LD_RUN_PATH'
9708
9709 if test "$GCC" = yes; then
9710 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9711 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9712 else
9713 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 fi
9716 ;;
9717
9718 sysv5* | sco3.2v5* | sco5v6*)
9719 # Note: We can NOT use -z defs as we might desire, because we do not
9720 # link with -lc, and that would cause any symbols used from libc to
9721 # always be unresolved, which means just about no library would
9722 # ever link correctly. If we're not using GNU ld we use -z text
9723 # though, which does catch some bad symbols but isn't as heavy-handed
9724 # as -z defs.
9725 no_undefined_flag='${wl}-z,text'
9726 allow_undefined_flag='${wl}-z,nodefs'
9727 archive_cmds_need_lc=no
9728 hardcode_shlibpath_var=no
9729 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9730 hardcode_libdir_separator=':'
9731 link_all_deplibs=yes
9732 export_dynamic_flag_spec='${wl}-Bexport'
9733 runpath_var='LD_RUN_PATH'
9734
9735 if test "$GCC" = yes; then
9736 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9737 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 else
9739 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9741 fi
9742 ;;
9743
9744 uts4*)
9745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746 hardcode_libdir_flag_spec='-L$libdir'
9747 hardcode_shlibpath_var=no
9748 ;;
9749
9750 *)
9751 ld_shlibs=no
9752 ;;
9753 esac
9754 fi
9755
9756 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9757 echo "${ECHO_T}$ld_shlibs" >&6
9758 test "$ld_shlibs" = no && can_build_shared=no
9759
9760 #
9761 # Do we need to explicitly link libc?
9762 #
9763 case "x$archive_cmds_need_lc" in
9764 x|xyes)
9765 # Assume -lc should be added
9766 archive_cmds_need_lc=yes
9767
9768 if test "$enable_shared" = yes && test "$GCC" = yes; then
9769 case $archive_cmds in
9770 *'~'*)
9771 # FIXME: we may have to deal with multi-command sequences.
9772 ;;
9773 '$CC '*)
9774 # Test whether the compiler implicitly links with -lc since on some
9775 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9776 # to ld, don't add -lc before -lgcc.
9777 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9778 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9779 $rm conftest*
9780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9781
9782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9783 (eval $ac_compile) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } 2>conftest.err; then
9787 soname=conftest
9788 lib=conftest
9789 libobjs=conftest.$ac_objext
9790 deplibs=
9791 wl=$lt_prog_compiler_wl
9792 pic_flag=$lt_prog_compiler_pic
9793 compiler_flags=-v
9794 linker_flags=-v
9795 verstring=
9796 output_objdir=.
9797 libname=conftest
9798 lt_save_allow_undefined_flag=$allow_undefined_flag
9799 allow_undefined_flag=
9800 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9801 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9802 ac_status=$?
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }
9805 then
9806 archive_cmds_need_lc=no
9807 else
9808 archive_cmds_need_lc=yes
9809 fi
9810 allow_undefined_flag=$lt_save_allow_undefined_flag
9811 else
9812 cat conftest.err 1>&5
9813 fi
9814 $rm conftest*
9815 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9816 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9817 ;;
9818 esac
9819 fi
9820 ;;
9821 esac
9822
9823 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9824 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9825 library_names_spec=
9826 libname_spec='lib$name'
9827 soname_spec=
9828 shrext_cmds=".so"
9829 postinstall_cmds=
9830 postuninstall_cmds=
9831 finish_cmds=
9832 finish_eval=
9833 shlibpath_var=
9834 shlibpath_overrides_runpath=unknown
9835 version_type=none
9836 dynamic_linker="$host_os ld.so"
9837 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9838 if test "$GCC" = yes; then
9839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9840 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9841 # if the path contains ";" then we assume it to be the separator
9842 # otherwise default to the standard path separator (i.e. ":") - it is
9843 # assumed that no part of a normal pathname contains ";" but that should
9844 # okay in the real world where ";" in dirpaths is itself problematic.
9845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9846 else
9847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9848 fi
9849 else
9850 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9851 fi
9852 need_lib_prefix=unknown
9853 hardcode_into_libs=no
9854
9855 # when you set need_version to no, make sure it does not cause -set_version
9856 # flags to be left without arguments
9857 need_version=unknown
9858
9859 case $host_os in
9860 aix3*)
9861 version_type=linux
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9863 shlibpath_var=LIBPATH
9864
9865 # AIX 3 has no versioning support, so we append a major version to the name.
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 ;;
9868
9869 aix4* | aix5*)
9870 version_type=linux
9871 need_lib_prefix=no
9872 need_version=no
9873 hardcode_into_libs=yes
9874 if test "$host_cpu" = ia64; then
9875 # AIX 5 supports IA64
9876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9877 shlibpath_var=LD_LIBRARY_PATH
9878 else
9879 # With GCC up to 2.95.x, collect2 would create an import file
9880 # for dependence libraries. The import file would start with
9881 # the line `#! .'. This would cause the generated library to
9882 # depend on `.', always an invalid library. This was fixed in
9883 # development snapshots of GCC prior to 3.0.
9884 case $host_os in
9885 aix4 | aix4.[01] | aix4.[01].*)
9886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9887 echo ' yes '
9888 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9889 :
9890 else
9891 can_build_shared=no
9892 fi
9893 ;;
9894 esac
9895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9896 # soname into executable. Probably we can add versioning support to
9897 # collect2, so additional links can be useful in future.
9898 if test "$aix_use_runtimelinking" = yes; then
9899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9900 # instead of lib<name>.a to let people know that these are not
9901 # typical AIX shared libraries.
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903 else
9904 # We preserve .a as extension for shared libraries through AIX4.2
9905 # and later when we are not doing run time linking.
9906 library_names_spec='${libname}${release}.a $libname.a'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 fi
9909 shlibpath_var=LIBPATH
9910 fi
9911 ;;
9912
9913 amigaos*)
9914 library_names_spec='$libname.ixlibrary $libname.a'
9915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9916 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'
9917 ;;
9918
9919 beos*)
9920 library_names_spec='${libname}${shared_ext}'
9921 dynamic_linker="$host_os ld.so"
9922 shlibpath_var=LIBRARY_PATH
9923 ;;
9924
9925 bsdi[45]*)
9926 version_type=linux
9927 need_version=no
9928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9929 soname_spec='${libname}${release}${shared_ext}$major'
9930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9931 shlibpath_var=LD_LIBRARY_PATH
9932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9934 # the default ld.so.conf also contains /usr/contrib/lib and
9935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9936 # libtool to hard-code these into programs
9937 ;;
9938
9939 cygwin* | mingw* | pw32*)
9940 version_type=windows
9941 shrext_cmds=".dll"
9942 need_version=no
9943 need_lib_prefix=no
9944
9945 case $GCC,$host_os in
9946 yes,cygwin* | yes,mingw* | yes,pw32*)
9947 library_names_spec='$libname.dll.a'
9948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9949 postinstall_cmds='base_file=`basename \${file}`~
9950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9951 dldir=$destdir/`dirname \$dlpath`~
9952 test -d \$dldir || mkdir -p \$dldir~
9953 $install_prog $dir/$dlname \$dldir/$dlname~
9954 chmod a+x \$dldir/$dlname'
9955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9956 dlpath=$dir/\$dldll~
9957 $rm \$dlpath'
9958 shlibpath_overrides_runpath=yes
9959
9960 case $host_os in
9961 cygwin*)
9962 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9963 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9964 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9965 ;;
9966 mingw*)
9967 # MinGW DLLs use traditional 'lib' prefix
9968 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9970 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9971 # It is most probably a Windows format PATH printed by
9972 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9973 # path with ; separators, and with drive letters. We can handle the
9974 # drive letters (cygwin fileutils understands them), so leave them,
9975 # especially as we might pass files found there to a mingw objdump,
9976 # which wouldn't understand a cygwinified path. Ahh.
9977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9978 else
9979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9980 fi
9981 ;;
9982 pw32*)
9983 # pw32 DLLs use 'pw' prefix rather than 'lib'
9984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9985 ;;
9986 esac
9987 ;;
9988
9989 *)
9990 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9991 ;;
9992 esac
9993 dynamic_linker='Win32 ld.exe'
9994 # FIXME: first we should search . and the directory the executable is in
9995 shlibpath_var=PATH
9996 ;;
9997
9998 darwin* | rhapsody*)
9999 dynamic_linker="$host_os dyld"
10000 version_type=darwin
10001 need_lib_prefix=no
10002 need_version=no
10003 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10004 soname_spec='${libname}${release}${major}$shared_ext'
10005 shlibpath_overrides_runpath=yes
10006 shlibpath_var=DYLD_LIBRARY_PATH
10007 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10008 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10009 if test "$GCC" = yes; then
10010 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"`
10011 else
10012 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10013 fi
10014 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10015 ;;
10016
10017 dgux*)
10018 version_type=linux
10019 need_lib_prefix=no
10020 need_version=no
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10022 soname_spec='${libname}${release}${shared_ext}$major'
10023 shlibpath_var=LD_LIBRARY_PATH
10024 ;;
10025
10026 freebsd1*)
10027 dynamic_linker=no
10028 ;;
10029
10030 kfreebsd*-gnu)
10031 version_type=linux
10032 need_lib_prefix=no
10033 need_version=no
10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10035 soname_spec='${libname}${release}${shared_ext}$major'
10036 shlibpath_var=LD_LIBRARY_PATH
10037 shlibpath_overrides_runpath=no
10038 hardcode_into_libs=yes
10039 dynamic_linker='GNU ld.so'
10040 ;;
10041
10042 freebsd* | dragonfly*)
10043 # DragonFly does not have aout. When/if they implement a new
10044 # versioning mechanism, adjust this.
10045 if test -x /usr/bin/objformat; then
10046 objformat=`/usr/bin/objformat`
10047 else
10048 case $host_os in
10049 freebsd[123]*) objformat=aout ;;
10050 *) objformat=elf ;;
10051 esac
10052 fi
10053 version_type=freebsd-$objformat
10054 case $version_type in
10055 freebsd-elf*)
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10057 need_version=no
10058 need_lib_prefix=no
10059 ;;
10060 freebsd-*)
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10062 need_version=yes
10063 ;;
10064 esac
10065 shlibpath_var=LD_LIBRARY_PATH
10066 case $host_os in
10067 freebsd2*)
10068 shlibpath_overrides_runpath=yes
10069 ;;
10070 freebsd3.[01]* | freebsdelf3.[01]*)
10071 shlibpath_overrides_runpath=yes
10072 hardcode_into_libs=yes
10073 ;;
10074 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10075 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10076 shlibpath_overrides_runpath=no
10077 hardcode_into_libs=yes
10078 ;;
10079 freebsd*) # from 4.6 on
10080 shlibpath_overrides_runpath=yes
10081 hardcode_into_libs=yes
10082 ;;
10083 esac
10084 ;;
10085
10086 gnu*)
10087 version_type=linux
10088 need_lib_prefix=no
10089 need_version=no
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 hardcode_into_libs=yes
10094 ;;
10095
10096 hpux9* | hpux10* | hpux11*)
10097 # Give a soname corresponding to the major version so that dld.sl refuses to
10098 # link against other versions.
10099 version_type=sunos
10100 need_lib_prefix=no
10101 need_version=no
10102 case $host_cpu in
10103 ia64*)
10104 shrext_cmds='.so'
10105 hardcode_into_libs=yes
10106 dynamic_linker="$host_os dld.so"
10107 shlibpath_var=LD_LIBRARY_PATH
10108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 if test "X$HPUX_IA64_MODE" = X32; then
10112 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10113 else
10114 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10115 fi
10116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10117 ;;
10118 hppa*64*)
10119 shrext_cmds='.sl'
10120 hardcode_into_libs=yes
10121 dynamic_linker="$host_os dld.sl"
10122 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10128 ;;
10129 *)
10130 shrext_cmds='.sl'
10131 dynamic_linker="$host_os dld.sl"
10132 shlibpath_var=SHLIB_PATH
10133 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 ;;
10137 esac
10138 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10139 postinstall_cmds='chmod 555 $lib'
10140 ;;
10141
10142 interix3*)
10143 version_type=linux
10144 need_lib_prefix=no
10145 need_version=no
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10147 soname_spec='${libname}${release}${shared_ext}$major'
10148 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10149 shlibpath_var=LD_LIBRARY_PATH
10150 shlibpath_overrides_runpath=no
10151 hardcode_into_libs=yes
10152 ;;
10153
10154 irix5* | irix6* | nonstopux*)
10155 case $host_os in
10156 nonstopux*) version_type=nonstopux ;;
10157 *)
10158 if test "$lt_cv_prog_gnu_ld" = yes; then
10159 version_type=linux
10160 else
10161 version_type=irix
10162 fi ;;
10163 esac
10164 need_lib_prefix=no
10165 need_version=no
10166 soname_spec='${libname}${release}${shared_ext}$major'
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10168 case $host_os in
10169 irix5* | nonstopux*)
10170 libsuff= shlibsuff=
10171 ;;
10172 *)
10173 case $LD in # libtool.m4 will add one of these switches to LD
10174 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10175 libsuff= shlibsuff= libmagic=32-bit;;
10176 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10177 libsuff=32 shlibsuff=N32 libmagic=N32;;
10178 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10179 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10180 *) libsuff= shlibsuff= libmagic=never-match;;
10181 esac
10182 ;;
10183 esac
10184 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10185 shlibpath_overrides_runpath=no
10186 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10187 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10188 hardcode_into_libs=yes
10189 ;;
10190
10191 # No shared lib support for Linux oldld, aout, or coff.
10192 linux*oldld* | linux*aout* | linux*coff*)
10193 dynamic_linker=no
10194 ;;
10195
10196 # This must be Linux ELF.
10197 linux*)
10198 version_type=linux
10199 need_lib_prefix=no
10200 need_version=no
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202 soname_spec='${libname}${release}${shared_ext}$major'
10203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 shlibpath_overrides_runpath=no
10206 # This implies no fast_install, which is unacceptable.
10207 # Some rework will be needed to allow for fast_install
10208 # before this can be enabled.
10209 hardcode_into_libs=yes
10210
10211 # Append ld.so.conf contents to the search path
10212 if test -f /etc/ld.so.conf; then
10213 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' ' '`
10214 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10215 fi
10216
10217 # We used to test for /lib/ld.so.1 and disable shared libraries on
10218 # powerpc, because MkLinux only supported shared libraries with the
10219 # GNU dynamic linker. Since this was broken with cross compilers,
10220 # most powerpc-linux boxes support dynamic linking these days and
10221 # people can always --disable-shared, the test was removed, and we
10222 # assume the GNU/Linux dynamic linker is in use.
10223 dynamic_linker='GNU/Linux ld.so'
10224 ;;
10225
10226 knetbsd*-gnu)
10227 version_type=linux
10228 need_lib_prefix=no
10229 need_version=no
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 shlibpath_overrides_runpath=no
10234 hardcode_into_libs=yes
10235 dynamic_linker='GNU ld.so'
10236 ;;
10237
10238 netbsd*)
10239 version_type=sunos
10240 need_lib_prefix=no
10241 need_version=no
10242 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10245 dynamic_linker='NetBSD (a.out) ld.so'
10246 else
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10248 soname_spec='${libname}${release}${shared_ext}$major'
10249 dynamic_linker='NetBSD ld.elf_so'
10250 fi
10251 shlibpath_var=LD_LIBRARY_PATH
10252 shlibpath_overrides_runpath=yes
10253 hardcode_into_libs=yes
10254 ;;
10255
10256 newsos6)
10257 version_type=linux
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 shlibpath_overrides_runpath=yes
10261 ;;
10262
10263 nto-qnx*)
10264 version_type=linux
10265 need_lib_prefix=no
10266 need_version=no
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268 soname_spec='${libname}${release}${shared_ext}$major'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes
10271 ;;
10272
10273 openbsd*)
10274 version_type=sunos
10275 sys_lib_dlsearch_path_spec="/usr/lib"
10276 need_lib_prefix=no
10277 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10278 case $host_os in
10279 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10280 *) need_version=no ;;
10281 esac
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10284 shlibpath_var=LD_LIBRARY_PATH
10285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10286 case $host_os in
10287 openbsd2.[89] | openbsd2.[89].*)
10288 shlibpath_overrides_runpath=no
10289 ;;
10290 *)
10291 shlibpath_overrides_runpath=yes
10292 ;;
10293 esac
10294 else
10295 shlibpath_overrides_runpath=yes
10296 fi
10297 ;;
10298
10299 os2*)
10300 libname_spec='$name'
10301 shrext_cmds=".dll"
10302 need_lib_prefix=no
10303 library_names_spec='$libname${shared_ext} $libname.a'
10304 dynamic_linker='OS/2 ld.exe'
10305 shlibpath_var=LIBPATH
10306 ;;
10307
10308 osf3* | osf4* | osf5*)
10309 version_type=osf
10310 need_lib_prefix=no
10311 need_version=no
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10316 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10317 ;;
10318
10319 solaris*)
10320 version_type=linux
10321 need_lib_prefix=no
10322 need_version=no
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath=yes
10327 hardcode_into_libs=yes
10328 # ldd complains unless libraries are executable
10329 postinstall_cmds='chmod +x $lib'
10330 ;;
10331
10332 sunos4*)
10333 version_type=sunos
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10336 shlibpath_var=LD_LIBRARY_PATH
10337 shlibpath_overrides_runpath=yes
10338 if test "$with_gnu_ld" = yes; then
10339 need_lib_prefix=no
10340 fi
10341 need_version=yes
10342 ;;
10343
10344 sysv4 | sysv4.3*)
10345 version_type=linux
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 case $host_vendor in
10350 sni)
10351 shlibpath_overrides_runpath=no
10352 need_lib_prefix=no
10353 export_dynamic_flag_spec='${wl}-Blargedynsym'
10354 runpath_var=LD_RUN_PATH
10355 ;;
10356 siemens)
10357 need_lib_prefix=no
10358 ;;
10359 motorola)
10360 need_lib_prefix=no
10361 need_version=no
10362 shlibpath_overrides_runpath=no
10363 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10364 ;;
10365 esac
10366 ;;
10367
10368 sysv4*MP*)
10369 if test -d /usr/nec ;then
10370 version_type=linux
10371 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10372 soname_spec='$libname${shared_ext}.$major'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 fi
10375 ;;
10376
10377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10378 version_type=freebsd-elf
10379 need_lib_prefix=no
10380 need_version=no
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 shlibpath_var=LD_LIBRARY_PATH
10384 hardcode_into_libs=yes
10385 if test "$with_gnu_ld" = yes; then
10386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10387 shlibpath_overrides_runpath=no
10388 else
10389 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10390 shlibpath_overrides_runpath=yes
10391 case $host_os in
10392 sco3.2v5*)
10393 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10394 ;;
10395 esac
10396 fi
10397 sys_lib_dlsearch_path_spec='/usr/lib'
10398 ;;
10399
10400 uts4*)
10401 version_type=linux
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10403 soname_spec='${libname}${release}${shared_ext}$major'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 ;;
10406
10407 *)
10408 dynamic_linker=no
10409 ;;
10410 esac
10411 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10412 echo "${ECHO_T}$dynamic_linker" >&6
10413 test "$dynamic_linker" = no && can_build_shared=no
10414
10415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10416 if test "$GCC" = yes; then
10417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10418 fi
10419
10420 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10421 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10422 hardcode_action=
10423 if test -n "$hardcode_libdir_flag_spec" || \
10424 test -n "$runpath_var" || \
10425 test "X$hardcode_automatic" = "Xyes" ; then
10426
10427 # We can hardcode non-existant directories.
10428 if test "$hardcode_direct" != no &&
10429 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10430 # have to relink, otherwise we might link with an installed library
10431 # when we should be linking with a yet-to-be-installed one
10432 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10433 test "$hardcode_minus_L" != no; then
10434 # Linking always hardcodes the temporary library directory.
10435 hardcode_action=relink
10436 else
10437 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10438 hardcode_action=immediate
10439 fi
10440 else
10441 # We cannot hardcode anything, or else we can only hardcode existing
10442 # directories.
10443 hardcode_action=unsupported
10444 fi
10445 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10446 echo "${ECHO_T}$hardcode_action" >&6
10447
10448 if test "$hardcode_action" = relink; then
10449 # Fast installation is not supported
10450 enable_fast_install=no
10451 elif test "$shlibpath_overrides_runpath" = yes ||
10452 test "$enable_shared" = no; then
10453 # Fast installation is not necessary
10454 enable_fast_install=needless
10455 fi
10456
10457 striplib=
10458 old_striplib=
10459 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10460 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10461 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10462 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10463 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10464 echo "$as_me:$LINENO: result: yes" >&5
10465 echo "${ECHO_T}yes" >&6
10466 else
10467 # FIXME - insert some real tests, host_os isn't really good enough
10468 case $host_os in
10469 darwin*)
10470 if test -n "$STRIP" ; then
10471 striplib="$STRIP -x"
10472 echo "$as_me:$LINENO: result: yes" >&5
10473 echo "${ECHO_T}yes" >&6
10474 else
10475 echo "$as_me:$LINENO: result: no" >&5
10476 echo "${ECHO_T}no" >&6
10477 fi
10478 ;;
10479 *)
10480 echo "$as_me:$LINENO: result: no" >&5
10481 echo "${ECHO_T}no" >&6
10482 ;;
10483 esac
10484 fi
10485
10486 if test "x$enable_dlopen" != xyes; then
10487 enable_dlopen=unknown
10488 enable_dlopen_self=unknown
10489 enable_dlopen_self_static=unknown
10490 else
10491 lt_cv_dlopen=no
10492 lt_cv_dlopen_libs=
10493
10494 case $host_os in
10495 beos*)
10496 lt_cv_dlopen="load_add_on"
10497 lt_cv_dlopen_libs=
10498 lt_cv_dlopen_self=yes
10499 ;;
10500
10501 mingw* | pw32*)
10502 lt_cv_dlopen="LoadLibrary"
10503 lt_cv_dlopen_libs=
10504 ;;
10505
10506 cygwin*)
10507 lt_cv_dlopen="dlopen"
10508 lt_cv_dlopen_libs=
10509 ;;
10510
10511 darwin*)
10512 # if libdl is installed we need to link against it
10513 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10514 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10515 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518 ac_check_lib_save_LIBS=$LIBS
10519 LIBS="-ldl $LIBS"
10520 cat >conftest.$ac_ext <<_ACEOF
10521 /* confdefs.h. */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526
10527 /* Override any gcc2 internal prototype to avoid an error. */
10528 #ifdef __cplusplus
10529 extern "C"
10530 #endif
10531 /* We use char because int might match the return type of a gcc2
10532 builtin and then its argument prototype would still apply. */
10533 char dlopen ();
10534 int
10535 main ()
10536 {
10537 dlopen ();
10538 ;
10539 return 0;
10540 }
10541 _ACEOF
10542 rm -f conftest.$ac_objext conftest$ac_exeext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10544 (eval $ac_link) 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -z "$ac_c_werror_flag"
10552 || test ! -s conftest.err'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try='test -s conftest$ac_exeext'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10561 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; }; then
10564 ac_cv_lib_dl_dlopen=yes
10565 else
10566 echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10568
10569 ac_cv_lib_dl_dlopen=no
10570 fi
10571 rm -f conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10573 LIBS=$ac_check_lib_save_LIBS
10574 fi
10575 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10576 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10577 if test $ac_cv_lib_dl_dlopen = yes; then
10578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10579 else
10580
10581 lt_cv_dlopen="dyld"
10582 lt_cv_dlopen_libs=
10583 lt_cv_dlopen_self=yes
10584
10585 fi
10586
10587 ;;
10588
10589 *)
10590 echo "$as_me:$LINENO: checking for shl_load" >&5
10591 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10592 if test "${ac_cv_func_shl_load+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h. */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10603 #define shl_load innocuous_shl_load
10604
10605 /* System header to define __stub macros and hopefully few prototypes,
10606 which can conflict with char shl_load (); below.
10607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10608 <limits.h> exists even on freestanding compilers. */
10609
10610 #ifdef __STDC__
10611 # include <limits.h>
10612 #else
10613 # include <assert.h>
10614 #endif
10615
10616 #undef shl_load
10617
10618 /* Override any gcc2 internal prototype to avoid an error. */
10619 #ifdef __cplusplus
10620 extern "C"
10621 {
10622 #endif
10623 /* We use char because int might match the return type of a gcc2
10624 builtin and then its argument prototype would still apply. */
10625 char shl_load ();
10626 /* The GNU C library defines this for functions which it implements
10627 to always fail with ENOSYS. Some functions are actually named
10628 something starting with __ and the normal name is an alias. */
10629 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10630 choke me
10631 #else
10632 char (*f) () = shl_load;
10633 #endif
10634 #ifdef __cplusplus
10635 }
10636 #endif
10637
10638 int
10639 main ()
10640 {
10641 return f != shl_load;
10642 ;
10643 return 0;
10644 }
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648 (eval $ac_link) 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try='test -z "$ac_c_werror_flag"
10656 || test ! -s conftest.err'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; } &&
10662 { ac_try='test -s conftest$ac_exeext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 ac_cv_func_shl_load=yes
10669 else
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673 ac_cv_func_shl_load=no
10674 fi
10675 rm -f conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
10677 fi
10678 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10679 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10680 if test $ac_cv_func_shl_load = yes; then
10681 lt_cv_dlopen="shl_load"
10682 else
10683 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10684 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10685 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688 ac_check_lib_save_LIBS=$LIBS
10689 LIBS="-ldld $LIBS"
10690 cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h. */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696
10697 /* Override any gcc2 internal prototype to avoid an error. */
10698 #ifdef __cplusplus
10699 extern "C"
10700 #endif
10701 /* We use char because int might match the return type of a gcc2
10702 builtin and then its argument prototype would still apply. */
10703 char shl_load ();
10704 int
10705 main ()
10706 {
10707 shl_load ();
10708 ;
10709 return 0;
10710 }
10711 _ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10714 (eval $ac_link) 2>conftest.er1
10715 ac_status=$?
10716 grep -v '^ *+' conftest.er1 >conftest.err
10717 rm -f conftest.er1
10718 cat conftest.err >&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } &&
10721 { ac_try='test -z "$ac_c_werror_flag"
10722 || test ! -s conftest.err'
10723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10725 ac_status=$?
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; } &&
10728 { ac_try='test -s conftest$ac_exeext'
10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 (eval $ac_try) 2>&5
10731 ac_status=$?
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; }; then
10734 ac_cv_lib_dld_shl_load=yes
10735 else
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10738
10739 ac_cv_lib_dld_shl_load=no
10740 fi
10741 rm -f conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10744 fi
10745 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10746 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10747 if test $ac_cv_lib_dld_shl_load = yes; then
10748 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10749 else
10750 echo "$as_me:$LINENO: checking for dlopen" >&5
10751 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10752 if test "${ac_cv_func_dlopen+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h. */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10763 #define dlopen innocuous_dlopen
10764
10765 /* System header to define __stub macros and hopefully few prototypes,
10766 which can conflict with char dlopen (); below.
10767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10768 <limits.h> exists even on freestanding compilers. */
10769
10770 #ifdef __STDC__
10771 # include <limits.h>
10772 #else
10773 # include <assert.h>
10774 #endif
10775
10776 #undef dlopen
10777
10778 /* Override any gcc2 internal prototype to avoid an error. */
10779 #ifdef __cplusplus
10780 extern "C"
10781 {
10782 #endif
10783 /* We use char because int might match the return type of a gcc2
10784 builtin and then its argument prototype would still apply. */
10785 char dlopen ();
10786 /* The GNU C library defines this for functions which it implements
10787 to always fail with ENOSYS. Some functions are actually named
10788 something starting with __ and the normal name is an alias. */
10789 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10790 choke me
10791 #else
10792 char (*f) () = dlopen;
10793 #endif
10794 #ifdef __cplusplus
10795 }
10796 #endif
10797
10798 int
10799 main ()
10800 {
10801 return f != dlopen;
10802 ;
10803 return 0;
10804 }
10805 _ACEOF
10806 rm -f conftest.$ac_objext conftest$ac_exeext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10808 (eval $ac_link) 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try='test -z "$ac_c_werror_flag"
10816 || test ! -s conftest.err'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; } &&
10822 { ac_try='test -s conftest$ac_exeext'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
10828 ac_cv_func_dlopen=yes
10829 else
10830 echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10832
10833 ac_cv_func_dlopen=no
10834 fi
10835 rm -f conftest.err conftest.$ac_objext \
10836 conftest$ac_exeext conftest.$ac_ext
10837 fi
10838 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10839 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10840 if test $ac_cv_func_dlopen = yes; then
10841 lt_cv_dlopen="dlopen"
10842 else
10843 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10844 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10845 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848 ac_check_lib_save_LIBS=$LIBS
10849 LIBS="-ldl $LIBS"
10850 cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h. */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856
10857 /* Override any gcc2 internal prototype to avoid an error. */
10858 #ifdef __cplusplus
10859 extern "C"
10860 #endif
10861 /* We use char because int might match the return type of a gcc2
10862 builtin and then its argument prototype would still apply. */
10863 char dlopen ();
10864 int
10865 main ()
10866 {
10867 dlopen ();
10868 ;
10869 return 0;
10870 }
10871 _ACEOF
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10874 (eval $ac_link) 2>conftest.er1
10875 ac_status=$?
10876 grep -v '^ *+' conftest.er1 >conftest.err
10877 rm -f conftest.er1
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } &&
10881 { ac_try='test -z "$ac_c_werror_flag"
10882 || test ! -s conftest.err'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; } &&
10888 { ac_try='test -s conftest$ac_exeext'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 ac_cv_lib_dl_dlopen=yes
10895 else
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10898
10899 ac_cv_lib_dl_dlopen=no
10900 fi
10901 rm -f conftest.err conftest.$ac_objext \
10902 conftest$ac_exeext conftest.$ac_ext
10903 LIBS=$ac_check_lib_save_LIBS
10904 fi
10905 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10906 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10907 if test $ac_cv_lib_dl_dlopen = yes; then
10908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10909 else
10910 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10911 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10912 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 else
10915 ac_check_lib_save_LIBS=$LIBS
10916 LIBS="-lsvld $LIBS"
10917 cat >conftest.$ac_ext <<_ACEOF
10918 /* confdefs.h. */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10923
10924 /* Override any gcc2 internal prototype to avoid an error. */
10925 #ifdef __cplusplus
10926 extern "C"
10927 #endif
10928 /* We use char because int might match the return type of a gcc2
10929 builtin and then its argument prototype would still apply. */
10930 char dlopen ();
10931 int
10932 main ()
10933 {
10934 dlopen ();
10935 ;
10936 return 0;
10937 }
10938 _ACEOF
10939 rm -f conftest.$ac_objext conftest$ac_exeext
10940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10941 (eval $ac_link) 2>conftest.er1
10942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try='test -z "$ac_c_werror_flag"
10949 || test ! -s conftest.err'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; } &&
10955 { ac_try='test -s conftest$ac_exeext'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_cv_lib_svld_dlopen=yes
10962 else
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10965
10966 ac_cv_lib_svld_dlopen=no
10967 fi
10968 rm -f conftest.err conftest.$ac_objext \
10969 conftest$ac_exeext conftest.$ac_ext
10970 LIBS=$ac_check_lib_save_LIBS
10971 fi
10972 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10973 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10974 if test $ac_cv_lib_svld_dlopen = yes; then
10975 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10976 else
10977 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10978 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10979 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10981 else
10982 ac_check_lib_save_LIBS=$LIBS
10983 LIBS="-ldld $LIBS"
10984 cat >conftest.$ac_ext <<_ACEOF
10985 /* confdefs.h. */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10990
10991 /* Override any gcc2 internal prototype to avoid an error. */
10992 #ifdef __cplusplus
10993 extern "C"
10994 #endif
10995 /* We use char because int might match the return type of a gcc2
10996 builtin and then its argument prototype would still apply. */
10997 char dld_link ();
10998 int
10999 main ()
11000 {
11001 dld_link ();
11002 ;
11003 return 0;
11004 }
11005 _ACEOF
11006 rm -f conftest.$ac_objext conftest$ac_exeext
11007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11008 (eval $ac_link) 2>conftest.er1
11009 ac_status=$?
11010 grep -v '^ *+' conftest.er1 >conftest.err
11011 rm -f conftest.er1
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag"
11016 || test ! -s conftest.err'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; } &&
11022 { ac_try='test -s conftest$ac_exeext'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 ac_cv_lib_dld_dld_link=yes
11029 else
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11032
11033 ac_cv_lib_dld_dld_link=no
11034 fi
11035 rm -f conftest.err conftest.$ac_objext \
11036 conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11038 fi
11039 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11040 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11041 if test $ac_cv_lib_dld_dld_link = yes; then
11042 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11043 fi
11044
11045
11046 fi
11047
11048
11049 fi
11050
11051
11052 fi
11053
11054
11055 fi
11056
11057
11058 fi
11059
11060 ;;
11061 esac
11062
11063 if test "x$lt_cv_dlopen" != xno; then
11064 enable_dlopen=yes
11065 else
11066 enable_dlopen=no
11067 fi
11068
11069 case $lt_cv_dlopen in
11070 dlopen)
11071 save_CPPFLAGS="$CPPFLAGS"
11072 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11073
11074 save_LDFLAGS="$LDFLAGS"
11075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11076
11077 save_LIBS="$LIBS"
11078 LIBS="$lt_cv_dlopen_libs $LIBS"
11079
11080 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11081 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11082 if test "${lt_cv_dlopen_self+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 else
11085 if test "$cross_compiling" = yes; then :
11086 lt_cv_dlopen_self=cross
11087 else
11088 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11089 lt_status=$lt_dlunknown
11090 cat > conftest.$ac_ext <<EOF
11091 #line 11091 "configure"
11092 #include "confdefs.h"
11093
11094 #if HAVE_DLFCN_H
11095 #include <dlfcn.h>
11096 #endif
11097
11098 #include <stdio.h>
11099
11100 #ifdef RTLD_GLOBAL
11101 # define LT_DLGLOBAL RTLD_GLOBAL
11102 #else
11103 # ifdef DL_GLOBAL
11104 # define LT_DLGLOBAL DL_GLOBAL
11105 # else
11106 # define LT_DLGLOBAL 0
11107 # endif
11108 #endif
11109
11110 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11111 find out it does not work in some platform. */
11112 #ifndef LT_DLLAZY_OR_NOW
11113 # ifdef RTLD_LAZY
11114 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11115 # else
11116 # ifdef DL_LAZY
11117 # define LT_DLLAZY_OR_NOW DL_LAZY
11118 # else
11119 # ifdef RTLD_NOW
11120 # define LT_DLLAZY_OR_NOW RTLD_NOW
11121 # else
11122 # ifdef DL_NOW
11123 # define LT_DLLAZY_OR_NOW DL_NOW
11124 # else
11125 # define LT_DLLAZY_OR_NOW 0
11126 # endif
11127 # endif
11128 # endif
11129 # endif
11130 #endif
11131
11132 #ifdef __cplusplus
11133 extern "C" void exit (int);
11134 #endif
11135
11136 void fnord() { int i=42;}
11137 int main ()
11138 {
11139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11140 int status = $lt_dlunknown;
11141
11142 if (self)
11143 {
11144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11145 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11146 /* dlclose (self); */
11147 }
11148 else
11149 puts (dlerror ());
11150
11151 exit (status);
11152 }
11153 EOF
11154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11155 (eval $ac_link) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11159 (./conftest; exit; ) >&5 2>/dev/null
11160 lt_status=$?
11161 case x$lt_status in
11162 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11163 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11164 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11165 esac
11166 else :
11167 # compilation failed
11168 lt_cv_dlopen_self=no
11169 fi
11170 fi
11171 rm -fr conftest*
11172
11173
11174 fi
11175 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11176 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11177
11178 if test "x$lt_cv_dlopen_self" = xyes; then
11179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11180 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11181 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11182 if test "${lt_cv_dlopen_self_static+set}" = set; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 else
11185 if test "$cross_compiling" = yes; then :
11186 lt_cv_dlopen_self_static=cross
11187 else
11188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11189 lt_status=$lt_dlunknown
11190 cat > conftest.$ac_ext <<EOF
11191 #line 11191 "configure"
11192 #include "confdefs.h"
11193
11194 #if HAVE_DLFCN_H
11195 #include <dlfcn.h>
11196 #endif
11197
11198 #include <stdio.h>
11199
11200 #ifdef RTLD_GLOBAL
11201 # define LT_DLGLOBAL RTLD_GLOBAL
11202 #else
11203 # ifdef DL_GLOBAL
11204 # define LT_DLGLOBAL DL_GLOBAL
11205 # else
11206 # define LT_DLGLOBAL 0
11207 # endif
11208 #endif
11209
11210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11211 find out it does not work in some platform. */
11212 #ifndef LT_DLLAZY_OR_NOW
11213 # ifdef RTLD_LAZY
11214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11215 # else
11216 # ifdef DL_LAZY
11217 # define LT_DLLAZY_OR_NOW DL_LAZY
11218 # else
11219 # ifdef RTLD_NOW
11220 # define LT_DLLAZY_OR_NOW RTLD_NOW
11221 # else
11222 # ifdef DL_NOW
11223 # define LT_DLLAZY_OR_NOW DL_NOW
11224 # else
11225 # define LT_DLLAZY_OR_NOW 0
11226 # endif
11227 # endif
11228 # endif
11229 # endif
11230 #endif
11231
11232 #ifdef __cplusplus
11233 extern "C" void exit (int);
11234 #endif
11235
11236 void fnord() { int i=42;}
11237 int main ()
11238 {
11239 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11240 int status = $lt_dlunknown;
11241
11242 if (self)
11243 {
11244 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11245 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11246 /* dlclose (self); */
11247 }
11248 else
11249 puts (dlerror ());
11250
11251 exit (status);
11252 }
11253 EOF
11254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11255 (eval $ac_link) 2>&5
11256 ac_status=$?
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11259 (./conftest; exit; ) >&5 2>/dev/null
11260 lt_status=$?
11261 case x$lt_status in
11262 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11263 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11264 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11265 esac
11266 else :
11267 # compilation failed
11268 lt_cv_dlopen_self_static=no
11269 fi
11270 fi
11271 rm -fr conftest*
11272
11273
11274 fi
11275 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11276 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11277 fi
11278
11279 CPPFLAGS="$save_CPPFLAGS"
11280 LDFLAGS="$save_LDFLAGS"
11281 LIBS="$save_LIBS"
11282 ;;
11283 esac
11284
11285 case $lt_cv_dlopen_self in
11286 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11287 *) enable_dlopen_self=unknown ;;
11288 esac
11289
11290 case $lt_cv_dlopen_self_static in
11291 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11292 *) enable_dlopen_self_static=unknown ;;
11293 esac
11294 fi
11295
11296
11297 # Report which library types will actually be built
11298 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11299 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11300 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11301 echo "${ECHO_T}$can_build_shared" >&6
11302
11303 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11304 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11305 test "$can_build_shared" = "no" && enable_shared=no
11306
11307 # On AIX, shared libraries and static libraries use the same namespace, and
11308 # are all built from PIC.
11309 case $host_os in
11310 aix3*)
11311 test "$enable_shared" = yes && enable_static=no
11312 if test -n "$RANLIB"; then
11313 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11314 postinstall_cmds='$RANLIB $lib'
11315 fi
11316 ;;
11317
11318 aix4* | aix5*)
11319 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11320 test "$enable_shared" = yes && enable_static=no
11321 fi
11322 ;;
11323 esac
11324 echo "$as_me:$LINENO: result: $enable_shared" >&5
11325 echo "${ECHO_T}$enable_shared" >&6
11326
11327 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11328 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11329 # Make sure either enable_shared or enable_static is yes.
11330 test "$enable_shared" = yes || enable_static=yes
11331 echo "$as_me:$LINENO: result: $enable_static" >&5
11332 echo "${ECHO_T}$enable_static" >&6
11333
11334 # The else clause should only fire when bootstrapping the
11335 # libtool distribution, otherwise you forgot to ship ltmain.sh
11336 # with your package, and you will get complaints that there are
11337 # no rules to generate ltmain.sh.
11338 if test -f "$ltmain"; then
11339 # See if we are running on zsh, and set the options which allow our commands through
11340 # without removal of \ escapes.
11341 if test -n "${ZSH_VERSION+set}" ; then
11342 setopt NO_GLOB_SUBST
11343 fi
11344 # Now quote all the things that may contain metacharacters while being
11345 # careful not to overquote the AC_SUBSTed values. We take copies of the
11346 # variables and quote the copies for generation of the libtool script.
11347 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11348 SED SHELL STRIP \
11349 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11350 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11351 deplibs_check_method reload_flag reload_cmds need_locks \
11352 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11353 lt_cv_sys_global_symbol_to_c_name_address \
11354 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11355 old_postinstall_cmds old_postuninstall_cmds \
11356 compiler \
11357 CC \
11358 LD \
11359 lt_prog_compiler_wl \
11360 lt_prog_compiler_pic \
11361 lt_prog_compiler_static \
11362 lt_prog_compiler_no_builtin_flag \
11363 export_dynamic_flag_spec \
11364 thread_safe_flag_spec \
11365 whole_archive_flag_spec \
11366 enable_shared_with_static_runtimes \
11367 old_archive_cmds \
11368 old_archive_from_new_cmds \
11369 predep_objects \
11370 postdep_objects \
11371 predeps \
11372 postdeps \
11373 compiler_lib_search_path \
11374 archive_cmds \
11375 archive_expsym_cmds \
11376 postinstall_cmds \
11377 postuninstall_cmds \
11378 old_archive_from_expsyms_cmds \
11379 allow_undefined_flag \
11380 no_undefined_flag \
11381 export_symbols_cmds \
11382 hardcode_libdir_flag_spec \
11383 hardcode_libdir_flag_spec_ld \
11384 hardcode_libdir_separator \
11385 hardcode_automatic \
11386 module_cmds \
11387 module_expsym_cmds \
11388 lt_cv_prog_compiler_c_o \
11389 exclude_expsyms \
11390 include_expsyms; do
11391
11392 case $var in
11393 old_archive_cmds | \
11394 old_archive_from_new_cmds | \
11395 archive_cmds | \
11396 archive_expsym_cmds | \
11397 module_cmds | \
11398 module_expsym_cmds | \
11399 old_archive_from_expsyms_cmds | \
11400 export_symbols_cmds | \
11401 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11402 postinstall_cmds | postuninstall_cmds | \
11403 old_postinstall_cmds | old_postuninstall_cmds | \
11404 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11405 # Double-quote double-evaled strings.
11406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11407 ;;
11408 *)
11409 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11410 ;;
11411 esac
11412 done
11413
11414 case $lt_echo in
11415 *'\$0 --fallback-echo"')
11416 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11417 ;;
11418 esac
11419
11420 cfgfile="${ofile}T"
11421 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11422 $rm -f "$cfgfile"
11423 { echo "$as_me:$LINENO: creating $ofile" >&5
11424 echo "$as_me: creating $ofile" >&6;}
11425
11426 cat <<__EOF__ >> "$cfgfile"
11427 #! $SHELL
11428
11429 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11430 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11431 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11432 #
11433 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11434 # Free Software Foundation, Inc.
11435 #
11436 # This file is part of GNU Libtool:
11437 # Originally by Gordon Matzigkeit <[email protected]>, 1996
11438 #
11439 # This program is free software; you can redistribute it and/or modify
11440 # it under the terms of the GNU General Public License as published by
11441 # the Free Software Foundation; either version 2 of the License, or
11442 # (at your option) any later version.
11443 #
11444 # This program is distributed in the hope that it will be useful, but
11445 # WITHOUT ANY WARRANTY; without even the implied warranty of
11446 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11447 # General Public License for more details.
11448 #
11449 # You should have received a copy of the GNU General Public License
11450 # along with this program; if not, write to the Free Software
11451 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11452 #
11453 # As a special exception to the GNU General Public License, if you
11454 # distribute this file as part of a program that contains a
11455 # configuration script generated by Autoconf, you may include it under
11456 # the same distribution terms that you use for the rest of that program.
11457
11458 # A sed program that does not truncate output.
11459 SED=$lt_SED
11460
11461 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11462 Xsed="$SED -e 1s/^X//"
11463
11464 # The HP-UX ksh and POSIX shell print the target directory to stdout
11465 # if CDPATH is set.
11466 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11467
11468 # The names of the tagged configurations supported by this script.
11469 available_tags=
11470
11471 # ### BEGIN LIBTOOL CONFIG
11472
11473 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11474
11475 # Shell to use when invoking shell scripts.
11476 SHELL=$lt_SHELL
11477
11478 # Whether or not to build shared libraries.
11479 build_libtool_libs=$enable_shared
11480
11481 # Whether or not to build static libraries.
11482 build_old_libs=$enable_static
11483
11484 # Whether or not to add -lc for building shared libraries.
11485 build_libtool_need_lc=$archive_cmds_need_lc
11486
11487 # Whether or not to disallow shared libs when runtime libs are static
11488 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11489
11490 # Whether or not to optimize for fast installation.
11491 fast_install=$enable_fast_install
11492
11493 # The host system.
11494 host_alias=$host_alias
11495 host=$host
11496 host_os=$host_os
11497
11498 # The build system.
11499 build_alias=$build_alias
11500 build=$build
11501 build_os=$build_os
11502
11503 # An echo program that does not interpret backslashes.
11504 echo=$lt_echo
11505
11506 # The archiver.
11507 AR=$lt_AR
11508 AR_FLAGS=$lt_AR_FLAGS
11509
11510 # A C compiler.
11511 LTCC=$lt_LTCC
11512
11513 # LTCC compiler flags.
11514 LTCFLAGS=$lt_LTCFLAGS
11515
11516 # A language-specific compiler.
11517 CC=$lt_compiler
11518
11519 # Is the compiler the GNU C compiler?
11520 with_gcc=$GCC
11521
11522 # An ERE matcher.
11523 EGREP=$lt_EGREP
11524
11525 # The linker used to build libraries.
11526 LD=$lt_LD
11527
11528 # Whether we need hard or soft links.
11529 LN_S=$lt_LN_S
11530
11531 # A BSD-compatible nm program.
11532 NM=$lt_NM
11533
11534 # A symbol stripping program
11535 STRIP=$lt_STRIP
11536
11537 # Used to examine libraries when file_magic_cmd begins "file"
11538 MAGIC_CMD=$MAGIC_CMD
11539
11540 # Used on cygwin: DLL creation program.
11541 DLLTOOL="$DLLTOOL"
11542
11543 # Used on cygwin: object dumper.
11544 OBJDUMP="$OBJDUMP"
11545
11546 # Used on cygwin: assembler.
11547 AS="$AS"
11548
11549 # The name of the directory that contains temporary libtool files.
11550 objdir=$objdir
11551
11552 # How to create reloadable object files.
11553 reload_flag=$lt_reload_flag
11554 reload_cmds=$lt_reload_cmds
11555
11556 # How to pass a linker flag through the compiler.
11557 wl=$lt_lt_prog_compiler_wl
11558
11559 # Object file suffix (normally "o").
11560 objext="$ac_objext"
11561
11562 # Old archive suffix (normally "a").
11563 libext="$libext"
11564
11565 # Shared library suffix (normally ".so").
11566 shrext_cmds='$shrext_cmds'
11567
11568 # Executable file suffix (normally "").
11569 exeext="$exeext"
11570
11571 # Additional compiler flags for building library objects.
11572 pic_flag=$lt_lt_prog_compiler_pic
11573 pic_mode=$pic_mode
11574
11575 # What is the maximum length of a command?
11576 max_cmd_len=$lt_cv_sys_max_cmd_len
11577
11578 # Does compiler simultaneously support -c and -o options?
11579 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11580
11581 # Must we lock files when doing compilation?
11582 need_locks=$lt_need_locks
11583
11584 # Do we need the lib prefix for modules?
11585 need_lib_prefix=$need_lib_prefix
11586
11587 # Do we need a version for libraries?
11588 need_version=$need_version
11589
11590 # Whether dlopen is supported.
11591 dlopen_support=$enable_dlopen
11592
11593 # Whether dlopen of programs is supported.
11594 dlopen_self=$enable_dlopen_self
11595
11596 # Whether dlopen of statically linked programs is supported.
11597 dlopen_self_static=$enable_dlopen_self_static
11598
11599 # Compiler flag to prevent dynamic linking.
11600 link_static_flag=$lt_lt_prog_compiler_static
11601
11602 # Compiler flag to turn off builtin functions.
11603 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11604
11605 # Compiler flag to allow reflexive dlopens.
11606 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11607
11608 # Compiler flag to generate shared objects directly from archives.
11609 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11610
11611 # Compiler flag to generate thread-safe objects.
11612 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11613
11614 # Library versioning type.
11615 version_type=$version_type
11616
11617 # Format of library name prefix.
11618 libname_spec=$lt_libname_spec
11619
11620 # List of archive names. First name is the real one, the rest are links.
11621 # The last name is the one that the linker finds with -lNAME.
11622 library_names_spec=$lt_library_names_spec
11623
11624 # The coded name of the library, if different from the real name.
11625 soname_spec=$lt_soname_spec
11626
11627 # Commands used to build and install an old-style archive.
11628 RANLIB=$lt_RANLIB
11629 old_archive_cmds=$lt_old_archive_cmds
11630 old_postinstall_cmds=$lt_old_postinstall_cmds
11631 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11632
11633 # Create an old-style archive from a shared archive.
11634 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11635
11636 # Create a temporary old-style archive to link instead of a shared archive.
11637 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11638
11639 # Commands used to build and install a shared archive.
11640 archive_cmds=$lt_archive_cmds
11641 archive_expsym_cmds=$lt_archive_expsym_cmds
11642 postinstall_cmds=$lt_postinstall_cmds
11643 postuninstall_cmds=$lt_postuninstall_cmds
11644
11645 # Commands used to build a loadable module (assumed same as above if empty)
11646 module_cmds=$lt_module_cmds
11647 module_expsym_cmds=$lt_module_expsym_cmds
11648
11649 # Commands to strip libraries.
11650 old_striplib=$lt_old_striplib
11651 striplib=$lt_striplib
11652
11653 # Dependencies to place before the objects being linked to create a
11654 # shared library.
11655 predep_objects=$lt_predep_objects
11656
11657 # Dependencies to place after the objects being linked to create a
11658 # shared library.
11659 postdep_objects=$lt_postdep_objects
11660
11661 # Dependencies to place before the objects being linked to create a
11662 # shared library.
11663 predeps=$lt_predeps
11664
11665 # Dependencies to place after the objects being linked to create a
11666 # shared library.
11667 postdeps=$lt_postdeps
11668
11669 # The library search path used internally by the compiler when linking
11670 # a shared library.
11671 compiler_lib_search_path=$lt_compiler_lib_search_path
11672
11673 # Method to check whether dependent libraries are shared objects.
11674 deplibs_check_method=$lt_deplibs_check_method
11675
11676 # Command to use when deplibs_check_method == file_magic.
11677 file_magic_cmd=$lt_file_magic_cmd
11678
11679 # Flag that allows shared libraries with undefined symbols to be built.
11680 allow_undefined_flag=$lt_allow_undefined_flag
11681
11682 # Flag that forces no undefined symbols.
11683 no_undefined_flag=$lt_no_undefined_flag
11684
11685 # Commands used to finish a libtool library installation in a directory.
11686 finish_cmds=$lt_finish_cmds
11687
11688 # Same as above, but a single script fragment to be evaled but not shown.
11689 finish_eval=$lt_finish_eval
11690
11691 # Take the output of nm and produce a listing of raw symbols and C names.
11692 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11693
11694 # Transform the output of nm in a proper C declaration
11695 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11696
11697 # Transform the output of nm in a C name address pair
11698 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11699
11700 # This is the shared library runtime path variable.
11701 runpath_var=$runpath_var
11702
11703 # This is the shared library path variable.
11704 shlibpath_var=$shlibpath_var
11705
11706 # Is shlibpath searched before the hard-coded library search path?
11707 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11708
11709 # How to hardcode a shared library path into an executable.
11710 hardcode_action=$hardcode_action
11711
11712 # Whether we should hardcode library paths into libraries.
11713 hardcode_into_libs=$hardcode_into_libs
11714
11715 # Flag to hardcode \$libdir into a binary during linking.
11716 # This must work even if \$libdir does not exist.
11717 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11718
11719 # If ld is used when linking, flag to hardcode \$libdir into
11720 # a binary during linking. This must work even if \$libdir does
11721 # not exist.
11722 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11723
11724 # Whether we need a single -rpath flag with a separated argument.
11725 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11726
11727 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11728 # resulting binary.
11729 hardcode_direct=$hardcode_direct
11730
11731 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11732 # resulting binary.
11733 hardcode_minus_L=$hardcode_minus_L
11734
11735 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11736 # the resulting binary.
11737 hardcode_shlibpath_var=$hardcode_shlibpath_var
11738
11739 # Set to yes if building a shared library automatically hardcodes DIR into the library
11740 # and all subsequent libraries and executables linked against it.
11741 hardcode_automatic=$hardcode_automatic
11742
11743 # Variables whose values should be saved in libtool wrapper scripts and
11744 # restored at relink time.
11745 variables_saved_for_relink="$variables_saved_for_relink"
11746
11747 # Whether libtool must link a program against all its dependency libraries.
11748 link_all_deplibs=$link_all_deplibs
11749
11750 # Compile-time system search path for libraries
11751 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11752
11753 # Run-time system search path for libraries
11754 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11755
11756 # Fix the shell variable \$srcfile for the compiler.
11757 fix_srcfile_path="$fix_srcfile_path"
11758
11759 # Set to yes if exported symbols are required.
11760 always_export_symbols=$always_export_symbols
11761
11762 # The commands to list exported symbols.
11763 export_symbols_cmds=$lt_export_symbols_cmds
11764
11765 # The commands to extract the exported symbol list from a shared archive.
11766 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11767
11768 # Symbols that should not be listed in the preloaded symbols.
11769 exclude_expsyms=$lt_exclude_expsyms
11770
11771 # Symbols that must always be exported.
11772 include_expsyms=$lt_include_expsyms
11773
11774 # ### END LIBTOOL CONFIG
11775
11776 __EOF__
11777
11778
11779 case $host_os in
11780 aix3*)
11781 cat <<\EOF >> "$cfgfile"
11782
11783 # AIX sometimes has problems with the GCC collect2 program. For some
11784 # reason, if we set the COLLECT_NAMES environment variable, the problems
11785 # vanish in a puff of smoke.
11786 if test "X${COLLECT_NAMES+set}" != Xset; then
11787 COLLECT_NAMES=
11788 export COLLECT_NAMES
11789 fi
11790 EOF
11791 ;;
11792 esac
11793
11794 # We use sed instead of cat because bash on DJGPP gets confused if
11795 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11796 # text mode, it properly converts lines to CR/LF. This bash problem
11797 # is reportedly fixed, but why not run on old versions too?
11798 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11799
11800 mv -f "$cfgfile" "$ofile" || \
11801 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11802 chmod +x "$ofile"
11803
11804 else
11805 # If there is no Makefile yet, we rely on a make rule to execute
11806 # `config.status --recheck' to rerun these tests and create the
11807 # libtool script then.
11808 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11809 if test -f "$ltmain_in"; then
11810 test -f Makefile && make "$ltmain"
11811 fi
11812 fi
11813
11814
11815 ac_ext=c
11816 ac_cpp='$CPP $CPPFLAGS'
11817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11820
11821 CC="$lt_save_CC"
11822
11823
11824 # Check whether --with-tags or --without-tags was given.
11825 if test "${with_tags+set}" = set; then
11826 withval="$with_tags"
11827 tagnames="$withval"
11828 fi;
11829
11830 if test -f "$ltmain" && test -n "$tagnames"; then
11831 if test ! -f "${ofile}"; then
11832 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11833 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11834 fi
11835
11836 if test -z "$LTCC"; then
11837 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11838 if test -z "$LTCC"; then
11839 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11840 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11841 else
11842 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11843 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11844 fi
11845 fi
11846 if test -z "$LTCFLAGS"; then
11847 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11848 fi
11849
11850 # Extract list of available tagged configurations in $ofile.
11851 # Note that this assumes the entire list is on one line.
11852 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11853
11854 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11855 for tagname in $tagnames; do
11856 IFS="$lt_save_ifs"
11857 # Check whether tagname contains only valid characters
11858 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11859 "") ;;
11860 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11861 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11862 { (exit 1); exit 1; }; }
11863 ;;
11864 esac
11865
11866 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11867 then
11868 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11869 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11870 { (exit 1); exit 1; }; }
11871 fi
11872
11873 # Update the list of available tags.
11874 if test -n "$tagname"; then
11875 echo appending configuration tag \"$tagname\" to $ofile
11876
11877 case $tagname in
11878 CXX)
11879 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11880 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11881 (test "X$CXX" != "Xg++"))) ; then
11882 ac_ext=cc
11883 ac_cpp='$CXXCPP $CPPFLAGS'
11884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11887
11888
11889
11890
11891 archive_cmds_need_lc_CXX=no
11892 allow_undefined_flag_CXX=
11893 always_export_symbols_CXX=no
11894 archive_expsym_cmds_CXX=
11895 export_dynamic_flag_spec_CXX=
11896 hardcode_direct_CXX=no
11897 hardcode_libdir_flag_spec_CXX=
11898 hardcode_libdir_flag_spec_ld_CXX=
11899 hardcode_libdir_separator_CXX=
11900 hardcode_minus_L_CXX=no
11901 hardcode_shlibpath_var_CXX=unsupported
11902 hardcode_automatic_CXX=no
11903 module_cmds_CXX=
11904 module_expsym_cmds_CXX=
11905 link_all_deplibs_CXX=unknown
11906 old_archive_cmds_CXX=$old_archive_cmds
11907 no_undefined_flag_CXX=
11908 whole_archive_flag_spec_CXX=
11909 enable_shared_with_static_runtimes_CXX=no
11910
11911 # Dependencies to place before and after the object being linked:
11912 predep_objects_CXX=
11913 postdep_objects_CXX=
11914 predeps_CXX=
11915 postdeps_CXX=
11916 compiler_lib_search_path_CXX=
11917
11918 # Source file extension for C++ test sources.
11919 ac_ext=cpp
11920
11921 # Object file extension for compiled C++ test sources.
11922 objext=o
11923 objext_CXX=$objext
11924
11925 # Code to be used in simple compile tests
11926 lt_simple_compile_test_code="int some_variable = 0;\n"
11927
11928 # Code to be used in simple link tests
11929 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11930
11931 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11932
11933 # If no C compiler was specified, use CC.
11934 LTCC=${LTCC-"$CC"}
11935
11936 # If no C compiler flags were specified, use CFLAGS.
11937 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11938
11939 # Allow CC to be a program name with arguments.
11940 compiler=$CC
11941
11942
11943 # save warnings/boilerplate of simple test code
11944 ac_outfile=conftest.$ac_objext
11945 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11946 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11947 _lt_compiler_boilerplate=`cat conftest.err`
11948 $rm conftest*
11949
11950 ac_outfile=conftest.$ac_objext
11951 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11952 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11953 _lt_linker_boilerplate=`cat conftest.err`
11954 $rm conftest*
11955
11956
11957 # Allow CC to be a program name with arguments.
11958 lt_save_CC=$CC
11959 lt_save_LD=$LD
11960 lt_save_GCC=$GCC
11961 GCC=$GXX
11962 lt_save_with_gnu_ld=$with_gnu_ld
11963 lt_save_path_LD=$lt_cv_path_LD
11964 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11965 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11966 else
11967 $as_unset lt_cv_prog_gnu_ld
11968 fi
11969 if test -n "${lt_cv_path_LDCXX+set}"; then
11970 lt_cv_path_LD=$lt_cv_path_LDCXX
11971 else
11972 $as_unset lt_cv_path_LD
11973 fi
11974 test -z "${LDCXX+set}" || LD=$LDCXX
11975 CC=${CXX-"c++"}
11976 compiler=$CC
11977 compiler_CXX=$CC
11978 for cc_temp in $compiler""; do
11979 case $cc_temp in
11980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11982 \-*) ;;
11983 *) break;;
11984 esac
11985 done
11986 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11987
11988
11989 # We don't want -fno-exception wen compiling C++ code, so set the
11990 # no_builtin_flag separately
11991 if test "$GXX" = yes; then
11992 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11993 else
11994 lt_prog_compiler_no_builtin_flag_CXX=
11995 fi
11996
11997 if test "$GXX" = yes; then
11998 # Set up default GNU C++ configuration
11999
12000
12001 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12002 if test "${with_gnu_ld+set}" = set; then
12003 withval="$with_gnu_ld"
12004 test "$withval" = no || with_gnu_ld=yes
12005 else
12006 with_gnu_ld=no
12007 fi;
12008 ac_prog=ld
12009 if test "$GCC" = yes; then
12010 # Check if gcc -print-prog-name=ld gives a path.
12011 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12012 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12013 case $host in
12014 *-*-mingw*)
12015 # gcc leaves a trailing carriage return which upsets mingw
12016 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12017 *)
12018 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12019 esac
12020 case $ac_prog in
12021 # Accept absolute paths.
12022 [\\/]* | ?:[\\/]*)
12023 re_direlt='/[^/][^/]*/\.\./'
12024 # Canonicalize the pathname of ld
12025 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12026 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12027 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12028 done
12029 test -z "$LD" && LD="$ac_prog"
12030 ;;
12031 "")
12032 # If it fails, then pretend we aren't using GCC.
12033 ac_prog=ld
12034 ;;
12035 *)
12036 # If it is relative, then search for the first ld in PATH.
12037 with_gnu_ld=unknown
12038 ;;
12039 esac
12040 elif test "$with_gnu_ld" = yes; then
12041 echo "$as_me:$LINENO: checking for GNU ld" >&5
12042 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12043 else
12044 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12045 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12046 fi
12047 if test "${lt_cv_path_LD+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 if test -z "$LD"; then
12051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12052 for ac_dir in $PATH; do
12053 IFS="$lt_save_ifs"
12054 test -z "$ac_dir" && ac_dir=.
12055 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12056 lt_cv_path_LD="$ac_dir/$ac_prog"
12057 # Check to see if the program is GNU ld. I'd rather use --version,
12058 # but apparently some variants of GNU ld only accept -v.
12059 # Break only if it was the GNU/non-GNU ld that we prefer.
12060 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12061 *GNU* | *'with BFD'*)
12062 test "$with_gnu_ld" != no && break
12063 ;;
12064 *)
12065 test "$with_gnu_ld" != yes && break
12066 ;;
12067 esac
12068 fi
12069 done
12070 IFS="$lt_save_ifs"
12071 else
12072 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12073 fi
12074 fi
12075
12076 LD="$lt_cv_path_LD"
12077 if test -n "$LD"; then
12078 echo "$as_me:$LINENO: result: $LD" >&5
12079 echo "${ECHO_T}$LD" >&6
12080 else
12081 echo "$as_me:$LINENO: result: no" >&5
12082 echo "${ECHO_T}no" >&6
12083 fi
12084 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12085 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12086 { (exit 1); exit 1; }; }
12087 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12088 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12089 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12093 case `$LD -v 2>&1 </dev/null` in
12094 *GNU* | *'with BFD'*)
12095 lt_cv_prog_gnu_ld=yes
12096 ;;
12097 *)
12098 lt_cv_prog_gnu_ld=no
12099 ;;
12100 esac
12101 fi
12102 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12103 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12104 with_gnu_ld=$lt_cv_prog_gnu_ld
12105
12106
12107
12108 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12109 # archiving commands below assume that GNU ld is being used.
12110 if test "$with_gnu_ld" = yes; then
12111 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12112 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'
12113
12114 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12115 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12116
12117 # If archive_cmds runs LD, not CC, wlarc should be empty
12118 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12119 # investigate it a little bit more. (MM)
12120 wlarc='${wl}'
12121
12122 # ancient GNU ld didn't support --whole-archive et. al.
12123 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12124 grep 'no-whole-archive' > /dev/null; then
12125 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12126 else
12127 whole_archive_flag_spec_CXX=
12128 fi
12129 else
12130 with_gnu_ld=no
12131 wlarc=
12132
12133 # A generic and very simple default shared library creation
12134 # command for GNU C++ for the case where it uses the native
12135 # linker, instead of GNU ld. If possible, this setting should
12136 # overridden to take advantage of the native linker features on
12137 # the platform it is being used on.
12138 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12139 fi
12140
12141 # Commands to make compiler produce verbose output that lists
12142 # what "hidden" libraries, object files and flags are used when
12143 # linking a shared library.
12144 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12145
12146 else
12147 GXX=no
12148 with_gnu_ld=no
12149 wlarc=
12150 fi
12151
12152 # PORTME: fill in a description of your system's C++ link characteristics
12153 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12154 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12155 ld_shlibs_CXX=yes
12156 case $host_os in
12157 aix3*)
12158 # FIXME: insert proper C++ library support
12159 ld_shlibs_CXX=no
12160 ;;
12161 aix4* | aix5*)
12162 if test "$host_cpu" = ia64; then
12163 # On IA64, the linker does run time linking by default, so we don't
12164 # have to do anything special.
12165 aix_use_runtimelinking=no
12166 exp_sym_flag='-Bexport'
12167 no_entry_flag=""
12168 else
12169 aix_use_runtimelinking=no
12170
12171 # Test if we are trying to use run time linking or normal
12172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12173 # need to do runtime linking.
12174 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12175 for ld_flag in $LDFLAGS; do
12176 case $ld_flag in
12177 *-brtl*)
12178 aix_use_runtimelinking=yes
12179 break
12180 ;;
12181 esac
12182 done
12183 ;;
12184 esac
12185
12186 exp_sym_flag='-bexport'
12187 no_entry_flag='-bnoentry'
12188 fi
12189
12190 # When large executables or shared objects are built, AIX ld can
12191 # have problems creating the table of contents. If linking a library
12192 # or program results in "error TOC overflow" add -mminimal-toc to
12193 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12194 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12195
12196 archive_cmds_CXX=''
12197 hardcode_direct_CXX=yes
12198 hardcode_libdir_separator_CXX=':'
12199 link_all_deplibs_CXX=yes
12200
12201 if test "$GXX" = yes; then
12202 case $host_os in aix4.[012]|aix4.[012].*)
12203 # We only want to do this on AIX 4.2 and lower, the check
12204 # below for broken collect2 doesn't work under 4.3+
12205 collect2name=`${CC} -print-prog-name=collect2`
12206 if test -f "$collect2name" && \
12207 strings "$collect2name" | grep resolve_lib_name >/dev/null
12208 then
12209 # We have reworked collect2
12210 hardcode_direct_CXX=yes
12211 else
12212 # We have old collect2
12213 hardcode_direct_CXX=unsupported
12214 # It fails to find uninstalled libraries when the uninstalled
12215 # path is not listed in the libpath. Setting hardcode_minus_L
12216 # to unsupported forces relinking
12217 hardcode_minus_L_CXX=yes
12218 hardcode_libdir_flag_spec_CXX='-L$libdir'
12219 hardcode_libdir_separator_CXX=
12220 fi
12221 ;;
12222 esac
12223 shared_flag='-shared'
12224 if test "$aix_use_runtimelinking" = yes; then
12225 shared_flag="$shared_flag "'${wl}-G'
12226 fi
12227 else
12228 # not using gcc
12229 if test "$host_cpu" = ia64; then
12230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12231 # chokes on -Wl,-G. The following line is correct:
12232 shared_flag='-G'
12233 else
12234 if test "$aix_use_runtimelinking" = yes; then
12235 shared_flag='${wl}-G'
12236 else
12237 shared_flag='${wl}-bM:SRE'
12238 fi
12239 fi
12240 fi
12241
12242 # It seems that -bexpall does not export symbols beginning with
12243 # underscore (_), so it is better to generate a list of symbols to export.
12244 always_export_symbols_CXX=yes
12245 if test "$aix_use_runtimelinking" = yes; then
12246 # Warning - without using the other runtime loading flags (-brtl),
12247 # -berok will link without error, but may produce a broken library.
12248 allow_undefined_flag_CXX='-berok'
12249 # Determine the default libpath from the value encoded in an empty executable.
12250 cat >conftest.$ac_ext <<_ACEOF
12251 /* confdefs.h. */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12256
12257 int
12258 main ()
12259 {
12260
12261 ;
12262 return 0;
12263 }
12264 _ACEOF
12265 rm -f conftest.$ac_objext conftest$ac_exeext
12266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12267 (eval $ac_link) 2>conftest.er1
12268 ac_status=$?
12269 grep -v '^ *+' conftest.er1 >conftest.err
12270 rm -f conftest.er1
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
12274 { ac_try='test -z "$ac_cxx_werror_flag"
12275 || test ! -s conftest.err'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; } &&
12281 { ac_try='test -s conftest$ac_exeext'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287
12288 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12289 }'`
12290 # Check for a 64-bit object if we didn't find anything.
12291 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; }
12292 }'`; fi
12293 else
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12296
12297 fi
12298 rm -f conftest.err conftest.$ac_objext \
12299 conftest$ac_exeext conftest.$ac_ext
12300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12301
12302 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12303
12304 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"
12305 else
12306 if test "$host_cpu" = ia64; then
12307 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12308 allow_undefined_flag_CXX="-z nodefs"
12309 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"
12310 else
12311 # Determine the default libpath from the value encoded in an empty executable.
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h. */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318
12319 int
12320 main ()
12321 {
12322
12323 ;
12324 return 0;
12325 }
12326 _ACEOF
12327 rm -f conftest.$ac_objext conftest$ac_exeext
12328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12329 (eval $ac_link) 2>conftest.er1
12330 ac_status=$?
12331 grep -v '^ *+' conftest.er1 >conftest.err
12332 rm -f conftest.er1
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
12336 { ac_try='test -z "$ac_cxx_werror_flag"
12337 || test ! -s conftest.err'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; } &&
12343 { ac_try='test -s conftest$ac_exeext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349
12350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12351 }'`
12352 # Check for a 64-bit object if we didn't find anything.
12353 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; }
12354 }'`; fi
12355 else
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359 fi
12360 rm -f conftest.err conftest.$ac_objext \
12361 conftest$ac_exeext conftest.$ac_ext
12362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12363
12364 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12365 # Warning - without using the other run time loading flags,
12366 # -berok will link without error, but may produce a broken library.
12367 no_undefined_flag_CXX=' ${wl}-bernotok'
12368 allow_undefined_flag_CXX=' ${wl}-berok'
12369 # Exported symbols can be pulled into shared objects from archives
12370 whole_archive_flag_spec_CXX='$convenience'
12371 archive_cmds_need_lc_CXX=yes
12372 # This is similar to how AIX traditionally builds its shared libraries.
12373 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'
12374 fi
12375 fi
12376 ;;
12377
12378 beos*)
12379 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12380 allow_undefined_flag_CXX=unsupported
12381 # Joseph Beckenbach <[email protected]> says some releases of gcc
12382 # support --undefined. This deserves some investigation. FIXME
12383 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12384 else
12385 ld_shlibs_CXX=no
12386 fi
12387 ;;
12388
12389 chorus*)
12390 case $cc_basename in
12391 *)
12392 # FIXME: insert proper C++ library support
12393 ld_shlibs_CXX=no
12394 ;;
12395 esac
12396 ;;
12397
12398 cygwin* | mingw* | pw32*)
12399 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12400 # as there is no search path for DLLs.
12401 hardcode_libdir_flag_spec_CXX='-L$libdir'
12402 allow_undefined_flag_CXX=unsupported
12403 always_export_symbols_CXX=no
12404 enable_shared_with_static_runtimes_CXX=yes
12405
12406 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12407 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'
12408 # If the export-symbols file already is a .def file (1st line
12409 # is EXPORTS), use it as is; otherwise, prepend...
12410 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12411 cp $export_symbols $output_objdir/$soname.def;
12412 else
12413 echo EXPORTS > $output_objdir/$soname.def;
12414 cat $export_symbols >> $output_objdir/$soname.def;
12415 fi~
12416 $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'
12417 else
12418 ld_shlibs_CXX=no
12419 fi
12420 ;;
12421 darwin* | rhapsody*)
12422 case $host_os in
12423 rhapsody* | darwin1.[012])
12424 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12425 ;;
12426 *) # Darwin 1.3 on
12427 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12428 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12429 else
12430 case ${MACOSX_DEPLOYMENT_TARGET} in
12431 10.[012])
12432 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12433 ;;
12434 10.*)
12435 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12436 ;;
12437 esac
12438 fi
12439 ;;
12440 esac
12441 archive_cmds_need_lc_CXX=no
12442 hardcode_direct_CXX=no
12443 hardcode_automatic_CXX=yes
12444 hardcode_shlibpath_var_CXX=unsupported
12445 whole_archive_flag_spec_CXX=''
12446 link_all_deplibs_CXX=yes
12447
12448 if test "$GXX" = yes ; then
12449 lt_int_apple_cc_single_mod=no
12450 output_verbose_link_cmd='echo'
12451 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12452 lt_int_apple_cc_single_mod=yes
12453 fi
12454 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12455 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12456 else
12457 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'
12458 fi
12459 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12460 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12461 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12462 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}'
12463 else
12464 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}'
12465 fi
12466 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}'
12467 else
12468 case $cc_basename in
12469 xlc*)
12470 output_verbose_link_cmd='echo'
12471 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'
12472 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12473 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12474 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}'
12475 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}'
12476 ;;
12477 *)
12478 ld_shlibs_CXX=no
12479 ;;
12480 esac
12481 fi
12482 ;;
12483
12484 dgux*)
12485 case $cc_basename in
12486 ec++*)
12487 # FIXME: insert proper C++ library support
12488 ld_shlibs_CXX=no
12489 ;;
12490 ghcx*)
12491 # Green Hills C++ Compiler
12492 # FIXME: insert proper C++ library support
12493 ld_shlibs_CXX=no
12494 ;;
12495 *)
12496 # FIXME: insert proper C++ library support
12497 ld_shlibs_CXX=no
12498 ;;
12499 esac
12500 ;;
12501 freebsd[12]*)
12502 # C++ shared libraries reported to be fairly broken before switch to ELF
12503 ld_shlibs_CXX=no
12504 ;;
12505 freebsd-elf*)
12506 archive_cmds_need_lc_CXX=no
12507 ;;
12508 freebsd* | kfreebsd*-gnu | dragonfly*)
12509 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12510 # conventions
12511 ld_shlibs_CXX=yes
12512 ;;
12513 gnu*)
12514 ;;
12515 hpux9*)
12516 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12517 hardcode_libdir_separator_CXX=:
12518 export_dynamic_flag_spec_CXX='${wl}-E'
12519 hardcode_direct_CXX=yes
12520 hardcode_minus_L_CXX=yes # Not in the search PATH,
12521 # but as the default
12522 # location of the library.
12523
12524 case $cc_basename in
12525 CC*)
12526 # FIXME: insert proper C++ library support
12527 ld_shlibs_CXX=no
12528 ;;
12529 aCC*)
12530 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'
12531 # Commands to make compiler produce verbose output that lists
12532 # what "hidden" libraries, object files and flags are used when
12533 # linking a shared library.
12534 #
12535 # There doesn't appear to be a way to prevent this compiler from
12536 # explicitly linking system object files so we need to strip them
12537 # from the output so that they don't get included in the library
12538 # dependencies.
12539 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'
12540 ;;
12541 *)
12542 if test "$GXX" = yes; then
12543 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'
12544 else
12545 # FIXME: insert proper C++ library support
12546 ld_shlibs_CXX=no
12547 fi
12548 ;;
12549 esac
12550 ;;
12551 hpux10*|hpux11*)
12552 if test $with_gnu_ld = no; then
12553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12554 hardcode_libdir_separator_CXX=:
12555
12556 case $host_cpu in
12557 hppa*64*|ia64*)
12558 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12559 ;;
12560 *)
12561 export_dynamic_flag_spec_CXX='${wl}-E'
12562 ;;
12563 esac
12564 fi
12565 case $host_cpu in
12566 hppa*64*|ia64*)
12567 hardcode_direct_CXX=no
12568 hardcode_shlibpath_var_CXX=no
12569 ;;
12570 *)
12571 hardcode_direct_CXX=yes
12572 hardcode_minus_L_CXX=yes # Not in the search PATH,
12573 # but as the default
12574 # location of the library.
12575 ;;
12576 esac
12577
12578 case $cc_basename in
12579 CC*)
12580 # FIXME: insert proper C++ library support
12581 ld_shlibs_CXX=no
12582 ;;
12583 aCC*)
12584 case $host_cpu in
12585 hppa*64*)
12586 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12587 ;;
12588 ia64*)
12589 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12590 ;;
12591 *)
12592 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12593 ;;
12594 esac
12595 # Commands to make compiler produce verbose output that lists
12596 # what "hidden" libraries, object files and flags are used when
12597 # linking a shared library.
12598 #
12599 # There doesn't appear to be a way to prevent this compiler from
12600 # explicitly linking system object files so we need to strip them
12601 # from the output so that they don't get included in the library
12602 # dependencies.
12603 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'
12604 ;;
12605 *)
12606 if test "$GXX" = yes; then
12607 if test $with_gnu_ld = no; then
12608 case $host_cpu in
12609 hppa*64*)
12610 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12611 ;;
12612 ia64*)
12613 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12614 ;;
12615 *)
12616 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'
12617 ;;
12618 esac
12619 fi
12620 else
12621 # FIXME: insert proper C++ library support
12622 ld_shlibs_CXX=no
12623 fi
12624 ;;
12625 esac
12626 ;;
12627 interix3*)
12628 hardcode_direct_CXX=no
12629 hardcode_shlibpath_var_CXX=no
12630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12631 export_dynamic_flag_spec_CXX='${wl}-E'
12632 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12633 # Instead, shared libraries are loaded at an image base (0x10000000 by
12634 # default) and relocated if they conflict, which is a slow very memory
12635 # consuming and fragmenting process. To avoid this, we pick a random,
12636 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12637 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12638 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'
12639 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'
12640 ;;
12641 irix5* | irix6*)
12642 case $cc_basename in
12643 CC*)
12644 # SGI C++
12645 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'
12646
12647 # Archives containing C++ object files must be created using
12648 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12649 # necessary to make sure instantiated templates are included
12650 # in the archive.
12651 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12652 ;;
12653 *)
12654 if test "$GXX" = yes; then
12655 if test "$with_gnu_ld" = no; then
12656 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'
12657 else
12658 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'
12659 fi
12660 fi
12661 link_all_deplibs_CXX=yes
12662 ;;
12663 esac
12664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12665 hardcode_libdir_separator_CXX=:
12666 ;;
12667 linux*)
12668 case $cc_basename in
12669 KCC*)
12670 # Kuck and Associates, Inc. (KAI) C++ Compiler
12671
12672 # KCC will only create a shared library if the output file
12673 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12674 # to its proper name (with version) after linking.
12675 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'
12676 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'
12677 # Commands to make compiler produce verbose output that lists
12678 # what "hidden" libraries, object files and flags are used when
12679 # linking a shared library.
12680 #
12681 # There doesn't appear to be a way to prevent this compiler from
12682 # explicitly linking system object files so we need to strip them
12683 # from the output so that they don't get included in the library
12684 # dependencies.
12685 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'
12686
12687 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12689
12690 # Archives containing C++ object files must be created using
12691 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12692 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12693 ;;
12694 icpc*)
12695 # Intel C++
12696 with_gnu_ld=yes
12697 # version 8.0 and above of icpc choke on multiply defined symbols
12698 # if we add $predep_objects and $postdep_objects, however 7.1 and
12699 # earlier do not add the objects themselves.
12700 case `$CC -V 2>&1` in
12701 *"Version 7."*)
12702 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12703 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'
12704 ;;
12705 *) # Version 8.0 or newer
12706 tmp_idyn=
12707 case $host_cpu in
12708 ia64*) tmp_idyn=' -i_dynamic';;
12709 esac
12710 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12711 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'
12712 ;;
12713 esac
12714 archive_cmds_need_lc_CXX=no
12715 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12716 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12717 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12718 ;;
12719 pgCC*)
12720 # Portland Group C++ compiler
12721 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12722 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'
12723
12724 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12726 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'
12727 ;;
12728 cxx*)
12729 # Compaq C++
12730 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12731 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'
12732
12733 runpath_var=LD_RUN_PATH
12734 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12735 hardcode_libdir_separator_CXX=:
12736
12737 # Commands to make compiler produce verbose output that lists
12738 # what "hidden" libraries, object files and flags are used when
12739 # linking a shared library.
12740 #
12741 # There doesn't appear to be a way to prevent this compiler from
12742 # explicitly linking system object files so we need to strip them
12743 # from the output so that they don't get included in the library
12744 # dependencies.
12745 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'
12746 ;;
12747 esac
12748 ;;
12749 lynxos*)
12750 # FIXME: insert proper C++ library support
12751 ld_shlibs_CXX=no
12752 ;;
12753 m88k*)
12754 # FIXME: insert proper C++ library support
12755 ld_shlibs_CXX=no
12756 ;;
12757 mvs*)
12758 case $cc_basename in
12759 cxx*)
12760 # FIXME: insert proper C++ library support
12761 ld_shlibs_CXX=no
12762 ;;
12763 *)
12764 # FIXME: insert proper C++ library support
12765 ld_shlibs_CXX=no
12766 ;;
12767 esac
12768 ;;
12769 netbsd*)
12770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12771 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12772 wlarc=
12773 hardcode_libdir_flag_spec_CXX='-R$libdir'
12774 hardcode_direct_CXX=yes
12775 hardcode_shlibpath_var_CXX=no
12776 fi
12777 # Workaround some broken pre-1.5 toolchains
12778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12779 ;;
12780 openbsd2*)
12781 # C++ shared libraries are fairly broken
12782 ld_shlibs_CXX=no
12783 ;;
12784 openbsd*)
12785 hardcode_direct_CXX=yes
12786 hardcode_shlibpath_var_CXX=no
12787 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12789 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12790 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12791 export_dynamic_flag_spec_CXX='${wl}-E'
12792 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12793 fi
12794 output_verbose_link_cmd='echo'
12795 ;;
12796 osf3*)
12797 case $cc_basename in
12798 KCC*)
12799 # Kuck and Associates, Inc. (KAI) C++ Compiler
12800
12801 # KCC will only create a shared library if the output file
12802 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12803 # to its proper name (with version) after linking.
12804 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'
12805
12806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12807 hardcode_libdir_separator_CXX=:
12808
12809 # Archives containing C++ object files must be created using
12810 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12811 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12812
12813 ;;
12814 RCC*)
12815 # Rational C++ 2.4.1
12816 # FIXME: insert proper C++ library support
12817 ld_shlibs_CXX=no
12818 ;;
12819 cxx*)
12820 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12821 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'
12822
12823 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12824 hardcode_libdir_separator_CXX=:
12825
12826 # Commands to make compiler produce verbose output that lists
12827 # what "hidden" libraries, object files and flags are used when
12828 # linking a shared library.
12829 #
12830 # There doesn't appear to be a way to prevent this compiler from
12831 # explicitly linking system object files so we need to strip them
12832 # from the output so that they don't get included in the library
12833 # dependencies.
12834 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'
12835 ;;
12836 *)
12837 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12838 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12839 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'
12840
12841 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12842 hardcode_libdir_separator_CXX=:
12843
12844 # Commands to make compiler produce verbose output that lists
12845 # what "hidden" libraries, object files and flags are used when
12846 # linking a shared library.
12847 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12848
12849 else
12850 # FIXME: insert proper C++ library support
12851 ld_shlibs_CXX=no
12852 fi
12853 ;;
12854 esac
12855 ;;
12856 osf4* | osf5*)
12857 case $cc_basename in
12858 KCC*)
12859 # Kuck and Associates, Inc. (KAI) C++ Compiler
12860
12861 # KCC will only create a shared library if the output file
12862 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12863 # to its proper name (with version) after linking.
12864 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'
12865
12866 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12867 hardcode_libdir_separator_CXX=:
12868
12869 # Archives containing C++ object files must be created using
12870 # the KAI C++ compiler.
12871 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12872 ;;
12873 RCC*)
12874 # Rational C++ 2.4.1
12875 # FIXME: insert proper C++ library support
12876 ld_shlibs_CXX=no
12877 ;;
12878 cxx*)
12879 allow_undefined_flag_CXX=' -expect_unresolved \*'
12880 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'
12881 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12882 echo "-hidden">> $lib.exp~
12883 $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~
12884 $rm $lib.exp'
12885
12886 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12887 hardcode_libdir_separator_CXX=:
12888
12889 # Commands to make compiler produce verbose output that lists
12890 # what "hidden" libraries, object files and flags are used when
12891 # linking a shared library.
12892 #
12893 # There doesn't appear to be a way to prevent this compiler from
12894 # explicitly linking system object files so we need to strip them
12895 # from the output so that they don't get included in the library
12896 # dependencies.
12897 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'
12898 ;;
12899 *)
12900 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12901 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12902 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'
12903
12904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12905 hardcode_libdir_separator_CXX=:
12906
12907 # Commands to make compiler produce verbose output that lists
12908 # what "hidden" libraries, object files and flags are used when
12909 # linking a shared library.
12910 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12911
12912 else
12913 # FIXME: insert proper C++ library support
12914 ld_shlibs_CXX=no
12915 fi
12916 ;;
12917 esac
12918 ;;
12919 psos*)
12920 # FIXME: insert proper C++ library support
12921 ld_shlibs_CXX=no
12922 ;;
12923 sunos4*)
12924 case $cc_basename in
12925 CC*)
12926 # Sun C++ 4.x
12927 # FIXME: insert proper C++ library support
12928 ld_shlibs_CXX=no
12929 ;;
12930 lcc*)
12931 # Lucid
12932 # FIXME: insert proper C++ library support
12933 ld_shlibs_CXX=no
12934 ;;
12935 *)
12936 # FIXME: insert proper C++ library support
12937 ld_shlibs_CXX=no
12938 ;;
12939 esac
12940 ;;
12941 solaris*)
12942 case $cc_basename in
12943 CC*)
12944 # Sun C++ 4.2, 5.x and Centerline C++
12945 archive_cmds_need_lc_CXX=yes
12946 no_undefined_flag_CXX=' -zdefs'
12947 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12948 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12949 $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'
12950
12951 hardcode_libdir_flag_spec_CXX='-R$libdir'
12952 hardcode_shlibpath_var_CXX=no
12953 case $host_os in
12954 solaris2.[0-5] | solaris2.[0-5].*) ;;
12955 *)
12956 # The C++ compiler is used as linker so we must use $wl
12957 # flag to pass the commands to the underlying system
12958 # linker. We must also pass each convience library through
12959 # to the system linker between allextract/defaultextract.
12960 # The C++ compiler will combine linker options so we
12961 # cannot just pass the convience library names through
12962 # without $wl.
12963 # Supported since Solaris 2.6 (maybe 2.5.1?)
12964 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'
12965 ;;
12966 esac
12967 link_all_deplibs_CXX=yes
12968
12969 output_verbose_link_cmd='echo'
12970
12971 # Archives containing C++ object files must be created using
12972 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12973 # necessary to make sure instantiated templates are included
12974 # in the archive.
12975 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12976 ;;
12977 gcx*)
12978 # Green Hills C++ Compiler
12979 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12980
12981 # The C++ compiler must be used to create the archive.
12982 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12983 ;;
12984 *)
12985 # GNU C++ compiler with Solaris linker
12986 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12987 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12988 if $CC --version | grep -v '^2\.7' > /dev/null; then
12989 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12990 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12991 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12992
12993 # Commands to make compiler produce verbose output that lists
12994 # what "hidden" libraries, object files and flags are used when
12995 # linking a shared library.
12996 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12997 else
12998 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12999 # platform.
13000 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13001 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13002 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13003
13004 # Commands to make compiler produce verbose output that lists
13005 # what "hidden" libraries, object files and flags are used when
13006 # linking a shared library.
13007 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13008 fi
13009
13010 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13011 fi
13012 ;;
13013 esac
13014 ;;
13015 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13016 no_undefined_flag_CXX='${wl}-z,text'
13017 archive_cmds_need_lc_CXX=no
13018 hardcode_shlibpath_var_CXX=no
13019 runpath_var='LD_RUN_PATH'
13020
13021 case $cc_basename in
13022 CC*)
13023 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13024 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13025 ;;
13026 *)
13027 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13028 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13029 ;;
13030 esac
13031 ;;
13032 sysv5* | sco3.2v5* | sco5v6*)
13033 # Note: We can NOT use -z defs as we might desire, because we do not
13034 # link with -lc, and that would cause any symbols used from libc to
13035 # always be unresolved, which means just about no library would
13036 # ever link correctly. If we're not using GNU ld we use -z text
13037 # though, which does catch some bad symbols but isn't as heavy-handed
13038 # as -z defs.
13039 # For security reasons, it is highly recommended that you always
13040 # use absolute paths for naming shared libraries, and exclude the
13041 # DT_RUNPATH tag from executables and libraries. But doing so
13042 # requires that you compile everything twice, which is a pain.
13043 # So that behaviour is only enabled if SCOABSPATH is set to a
13044 # non-empty value in the environment. Most likely only useful for
13045 # creating official distributions of packages.
13046 # This is a hack until libtool officially supports absolute path
13047 # names for shared libraries.
13048 no_undefined_flag_CXX='${wl}-z,text'
13049 allow_undefined_flag_CXX='${wl}-z,nodefs'
13050 archive_cmds_need_lc_CXX=no
13051 hardcode_shlibpath_var_CXX=no
13052 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13053 hardcode_libdir_separator_CXX=':'
13054 link_all_deplibs_CXX=yes
13055 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13056 runpath_var='LD_RUN_PATH'
13057
13058 case $cc_basename in
13059 CC*)
13060 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13061 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13062 ;;
13063 *)
13064 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13065 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13066 ;;
13067 esac
13068 ;;
13069 tandem*)
13070 case $cc_basename in
13071 NCC*)
13072 # NonStop-UX NCC 3.20
13073 # FIXME: insert proper C++ library support
13074 ld_shlibs_CXX=no
13075 ;;
13076 *)
13077 # FIXME: insert proper C++ library support
13078 ld_shlibs_CXX=no
13079 ;;
13080 esac
13081 ;;
13082 vxworks*)
13083 # FIXME: insert proper C++ library support
13084 ld_shlibs_CXX=no
13085 ;;
13086 *)
13087 # FIXME: insert proper C++ library support
13088 ld_shlibs_CXX=no
13089 ;;
13090 esac
13091 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13092 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13093 test "$ld_shlibs_CXX" = no && can_build_shared=no
13094
13095 GCC_CXX="$GXX"
13096 LD_CXX="$LD"
13097
13098 ## CAVEAT EMPTOR:
13099 ## There is no encapsulation within the following macros, do not change
13100 ## the running order or otherwise move them around unless you know exactly
13101 ## what you are doing...
13102
13103 cat > conftest.$ac_ext <<EOF
13104 class Foo
13105 {
13106 public:
13107 Foo (void) { a = 0; }
13108 private:
13109 int a;
13110 };
13111 EOF
13112
13113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13114 (eval $ac_compile) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; then
13118 # Parse the compiler output and extract the necessary
13119 # objects, libraries and library flags.
13120
13121 # Sentinel used to keep track of whether or not we are before
13122 # the conftest object file.
13123 pre_test_object_deps_done=no
13124
13125 # The `*' in the case matches for architectures that use `case' in
13126 # $output_verbose_cmd can trigger glob expansion during the loop
13127 # eval without this substitution.
13128 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13129
13130 for p in `eval $output_verbose_link_cmd`; do
13131 case $p in
13132
13133 -L* | -R* | -l*)
13134 # Some compilers place space between "-{L,R}" and the path.
13135 # Remove the space.
13136 if test $p = "-L" \
13137 || test $p = "-R"; then
13138 prev=$p
13139 continue
13140 else
13141 prev=
13142 fi
13143
13144 if test "$pre_test_object_deps_done" = no; then
13145 case $p in
13146 -L* | -R*)
13147 # Internal compiler library paths should come after those
13148 # provided the user. The postdeps already come after the
13149 # user supplied libs so there is no need to process them.
13150 if test -z "$compiler_lib_search_path_CXX"; then
13151 compiler_lib_search_path_CXX="${prev}${p}"
13152 else
13153 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13154 fi
13155 ;;
13156 # The "-l" case would never come before the object being
13157 # linked, so don't bother handling this case.
13158 esac
13159 else
13160 if test -z "$postdeps_CXX"; then
13161 postdeps_CXX="${prev}${p}"
13162 else
13163 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13164 fi
13165 fi
13166 ;;
13167
13168 *.$objext)
13169 # This assumes that the test object file only shows up
13170 # once in the compiler output.
13171 if test "$p" = "conftest.$objext"; then
13172 pre_test_object_deps_done=yes
13173 continue
13174 fi
13175
13176 if test "$pre_test_object_deps_done" = no; then
13177 if test -z "$predep_objects_CXX"; then
13178 predep_objects_CXX="$p"
13179 else
13180 predep_objects_CXX="$predep_objects_CXX $p"
13181 fi
13182 else
13183 if test -z "$postdep_objects_CXX"; then
13184 postdep_objects_CXX="$p"
13185 else
13186 postdep_objects_CXX="$postdep_objects_CXX $p"
13187 fi
13188 fi
13189 ;;
13190
13191 *) ;; # Ignore the rest.
13192
13193 esac
13194 done
13195
13196 # Clean up.
13197 rm -f a.out a.exe
13198 else
13199 echo "libtool.m4: error: problem compiling CXX test program"
13200 fi
13201
13202 $rm -f confest.$objext
13203
13204 # PORTME: override above test on systems where it is broken
13205 case $host_os in
13206 interix3*)
13207 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13208 # hack all around it, let's just trust "g++" to DTRT.
13209 predep_objects_CXX=
13210 postdep_objects_CXX=
13211 postdeps_CXX=
13212 ;;
13213
13214 solaris*)
13215 case $cc_basename in
13216 CC*)
13217 # Adding this requires a known-good setup of shared libraries for
13218 # Sun compiler versions before 5.6, else PIC objects from an old
13219 # archive will be linked into the output, leading to subtle bugs.
13220 postdeps_CXX='-lCstd -lCrun'
13221 ;;
13222 esac
13223 ;;
13224 esac
13225
13226
13227 case " $postdeps_CXX " in
13228 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13229 esac
13230
13231 lt_prog_compiler_wl_CXX=
13232 lt_prog_compiler_pic_CXX=
13233 lt_prog_compiler_static_CXX=
13234
13235 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13236 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13237
13238 # C++ specific cases for pic, static, wl, etc.
13239 if test "$GXX" = yes; then
13240 lt_prog_compiler_wl_CXX='-Wl,'
13241 lt_prog_compiler_static_CXX='-static'
13242
13243 case $host_os in
13244 aix*)
13245 # All AIX code is PIC.
13246 if test "$host_cpu" = ia64; then
13247 # AIX 5 now supports IA64 processor
13248 lt_prog_compiler_static_CXX='-Bstatic'
13249 fi
13250 ;;
13251 amigaos*)
13252 # FIXME: we need at least 68020 code to build shared libraries, but
13253 # adding the `-m68020' flag to GCC prevents building anything better,
13254 # like `-m68040'.
13255 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13256 ;;
13257 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13258 # PIC is the default for these OSes.
13259 ;;
13260 mingw* | os2* | pw32*)
13261 # This hack is so that the source file can tell whether it is being
13262 # built for inclusion in a dll (and should export symbols for example).
13263 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13264 ;;
13265 darwin* | rhapsody*)
13266 # PIC is the default on this platform
13267 # Common symbols not allowed in MH_DYLIB files
13268 lt_prog_compiler_pic_CXX='-fno-common'
13269 ;;
13270 *djgpp*)
13271 # DJGPP does not support shared libraries at all
13272 lt_prog_compiler_pic_CXX=
13273 ;;
13274 interix3*)
13275 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13276 # Instead, we relocate shared libraries at runtime.
13277 ;;
13278 sysv4*MP*)
13279 if test -d /usr/nec; then
13280 lt_prog_compiler_pic_CXX=-Kconform_pic
13281 fi
13282 ;;
13283 hpux*)
13284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13285 # not for PA HP-UX.
13286 case $host_cpu in
13287 hppa*64*|ia64*)
13288 ;;
13289 *)
13290 lt_prog_compiler_pic_CXX='-fPIC'
13291 ;;
13292 esac
13293 ;;
13294 *)
13295 lt_prog_compiler_pic_CXX='-fPIC'
13296 ;;
13297 esac
13298 else
13299 case $host_os in
13300 aix4* | aix5*)
13301 # All AIX code is PIC.
13302 if test "$host_cpu" = ia64; then
13303 # AIX 5 now supports IA64 processor
13304 lt_prog_compiler_static_CXX='-Bstatic'
13305 else
13306 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13307 fi
13308 ;;
13309 chorus*)
13310 case $cc_basename in
13311 cxch68*)
13312 # Green Hills C++ Compiler
13313 # _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"
13314 ;;
13315 esac
13316 ;;
13317 darwin*)
13318 # PIC is the default on this platform
13319 # Common symbols not allowed in MH_DYLIB files
13320 case $cc_basename in
13321 xlc*)
13322 lt_prog_compiler_pic_CXX='-qnocommon'
13323 lt_prog_compiler_wl_CXX='-Wl,'
13324 ;;
13325 esac
13326 ;;
13327 dgux*)
13328 case $cc_basename in
13329 ec++*)
13330 lt_prog_compiler_pic_CXX='-KPIC'
13331 ;;
13332 ghcx*)
13333 # Green Hills C++ Compiler
13334 lt_prog_compiler_pic_CXX='-pic'
13335 ;;
13336 *)
13337 ;;
13338 esac
13339 ;;
13340 freebsd* | kfreebsd*-gnu | dragonfly*)
13341 # FreeBSD uses GNU C++
13342 ;;
13343 hpux9* | hpux10* | hpux11*)
13344 case $cc_basename in
13345 CC*)
13346 lt_prog_compiler_wl_CXX='-Wl,'
13347 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13348 if test "$host_cpu" != ia64; then
13349 lt_prog_compiler_pic_CXX='+Z'
13350 fi
13351 ;;
13352 aCC*)
13353 lt_prog_compiler_wl_CXX='-Wl,'
13354 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13355 case $host_cpu in
13356 hppa*64*|ia64*)
13357 # +Z the default
13358 ;;
13359 *)
13360 lt_prog_compiler_pic_CXX='+Z'
13361 ;;
13362 esac
13363 ;;
13364 *)
13365 ;;
13366 esac
13367 ;;
13368 interix*)
13369 # This is c89, which is MS Visual C++ (no shared libs)
13370 # Anyone wants to do a port?
13371 ;;
13372 irix5* | irix6* | nonstopux*)
13373 case $cc_basename in
13374 CC*)
13375 lt_prog_compiler_wl_CXX='-Wl,'
13376 lt_prog_compiler_static_CXX='-non_shared'
13377 # CC pic flag -KPIC is the default.
13378 ;;
13379 *)
13380 ;;
13381 esac
13382 ;;
13383 linux*)
13384 case $cc_basename in
13385 KCC*)
13386 # KAI C++ Compiler
13387 lt_prog_compiler_wl_CXX='--backend -Wl,'
13388 lt_prog_compiler_pic_CXX='-fPIC'
13389 ;;
13390 icpc* | ecpc*)
13391 # Intel C++
13392 lt_prog_compiler_wl_CXX='-Wl,'
13393 lt_prog_compiler_pic_CXX='-KPIC'
13394 lt_prog_compiler_static_CXX='-static'
13395 ;;
13396 pgCC*)
13397 # Portland Group C++ compiler.
13398 lt_prog_compiler_wl_CXX='-Wl,'
13399 lt_prog_compiler_pic_CXX='-fpic'
13400 lt_prog_compiler_static_CXX='-Bstatic'
13401 ;;
13402 cxx*)
13403 # Compaq C++
13404 # Make sure the PIC flag is empty. It appears that all Alpha
13405 # Linux and Compaq Tru64 Unix objects are PIC.
13406 lt_prog_compiler_pic_CXX=
13407 lt_prog_compiler_static_CXX='-non_shared'
13408 ;;
13409 *)
13410 ;;
13411 esac
13412 ;;
13413 lynxos*)
13414 ;;
13415 m88k*)
13416 ;;
13417 mvs*)
13418 case $cc_basename in
13419 cxx*)
13420 lt_prog_compiler_pic_CXX='-W c,exportall'
13421 ;;
13422 *)
13423 ;;
13424 esac
13425 ;;
13426 netbsd*)
13427 ;;
13428 osf3* | osf4* | osf5*)
13429 case $cc_basename in
13430 KCC*)
13431 lt_prog_compiler_wl_CXX='--backend -Wl,'
13432 ;;
13433 RCC*)
13434 # Rational C++ 2.4.1
13435 lt_prog_compiler_pic_CXX='-pic'
13436 ;;
13437 cxx*)
13438 # Digital/Compaq C++
13439 lt_prog_compiler_wl_CXX='-Wl,'
13440 # Make sure the PIC flag is empty. It appears that all Alpha
13441 # Linux and Compaq Tru64 Unix objects are PIC.
13442 lt_prog_compiler_pic_CXX=
13443 lt_prog_compiler_static_CXX='-non_shared'
13444 ;;
13445 *)
13446 ;;
13447 esac
13448 ;;
13449 psos*)
13450 ;;
13451 solaris*)
13452 case $cc_basename in
13453 CC*)
13454 # Sun C++ 4.2, 5.x and Centerline C++
13455 lt_prog_compiler_pic_CXX='-KPIC'
13456 lt_prog_compiler_static_CXX='-Bstatic'
13457 lt_prog_compiler_wl_CXX='-Qoption ld '
13458 ;;
13459 gcx*)
13460 # Green Hills C++ Compiler
13461 lt_prog_compiler_pic_CXX='-PIC'
13462 ;;
13463 *)
13464 ;;
13465 esac
13466 ;;
13467 sunos4*)
13468 case $cc_basename in
13469 CC*)
13470 # Sun C++ 4.x
13471 lt_prog_compiler_pic_CXX='-pic'
13472 lt_prog_compiler_static_CXX='-Bstatic'
13473 ;;
13474 lcc*)
13475 # Lucid
13476 lt_prog_compiler_pic_CXX='-pic'
13477 ;;
13478 *)
13479 ;;
13480 esac
13481 ;;
13482 tandem*)
13483 case $cc_basename in
13484 NCC*)
13485 # NonStop-UX NCC 3.20
13486 lt_prog_compiler_pic_CXX='-KPIC'
13487 ;;
13488 *)
13489 ;;
13490 esac
13491 ;;
13492 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13493 case $cc_basename in
13494 CC*)
13495 lt_prog_compiler_wl_CXX='-Wl,'
13496 lt_prog_compiler_pic_CXX='-KPIC'
13497 lt_prog_compiler_static_CXX='-Bstatic'
13498 ;;
13499 esac
13500 ;;
13501 vxworks*)
13502 ;;
13503 *)
13504 lt_prog_compiler_can_build_shared_CXX=no
13505 ;;
13506 esac
13507 fi
13508
13509 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13510 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13511
13512 #
13513 # Check to make sure the PIC flag actually works.
13514 #
13515 if test -n "$lt_prog_compiler_pic_CXX"; then
13516
13517 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13518 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13519 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13521 else
13522 lt_prog_compiler_pic_works_CXX=no
13523 ac_outfile=conftest.$ac_objext
13524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13525 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13526 # Insert the option either (1) after the last *FLAGS variable, or
13527 # (2) before a word containing "conftest.", or (3) at the end.
13528 # Note that $ac_compile itself does not contain backslashes and begins
13529 # with a dollar sign (not a hyphen), so the echo should work correctly.
13530 # The option is referenced via a variable to avoid confusing sed.
13531 lt_compile=`echo "$ac_compile" | $SED \
13532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13534 -e 's:$: $lt_compiler_flag:'`
13535 (eval echo "\"\$as_me:13535: $lt_compile\"" >&5)
13536 (eval "$lt_compile" 2>conftest.err)
13537 ac_status=$?
13538 cat conftest.err >&5
13539 echo "$as_me:13539: \$? = $ac_status" >&5
13540 if (exit $ac_status) && test -s "$ac_outfile"; then
13541 # The compiler can only warn and ignore the option if not recognized
13542 # So say no if there are warnings other than the usual output.
13543 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13545 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13546 lt_prog_compiler_pic_works_CXX=yes
13547 fi
13548 fi
13549 $rm conftest*
13550
13551 fi
13552 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13553 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13554
13555 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13556 case $lt_prog_compiler_pic_CXX in
13557 "" | " "*) ;;
13558 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13559 esac
13560 else
13561 lt_prog_compiler_pic_CXX=
13562 lt_prog_compiler_can_build_shared_CXX=no
13563 fi
13564
13565 fi
13566 case $host_os in
13567 # For platforms which do not support PIC, -DPIC is meaningless:
13568 *djgpp*)
13569 lt_prog_compiler_pic_CXX=
13570 ;;
13571 *)
13572 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13573 ;;
13574 esac
13575
13576 #
13577 # Check to make sure the static flag actually works.
13578 #
13579 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13580 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13581 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13582 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 else
13585 lt_prog_compiler_static_works_CXX=no
13586 save_LDFLAGS="$LDFLAGS"
13587 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13588 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13589 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13590 # The linker can only warn and ignore the option if not recognized
13591 # So say no if there are warnings
13592 if test -s conftest.err; then
13593 # Append any errors to the config.log.
13594 cat conftest.err 1>&5
13595 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13597 if diff conftest.exp conftest.er2 >/dev/null; then
13598 lt_prog_compiler_static_works_CXX=yes
13599 fi
13600 else
13601 lt_prog_compiler_static_works_CXX=yes
13602 fi
13603 fi
13604 $rm conftest*
13605 LDFLAGS="$save_LDFLAGS"
13606
13607 fi
13608 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13609 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13610
13611 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13612 :
13613 else
13614 lt_prog_compiler_static_CXX=
13615 fi
13616
13617
13618 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13619 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13620 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623 lt_cv_prog_compiler_c_o_CXX=no
13624 $rm -r conftest 2>/dev/null
13625 mkdir conftest
13626 cd conftest
13627 mkdir out
13628 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13629
13630 lt_compiler_flag="-o out/conftest2.$ac_objext"
13631 # Insert the option either (1) after the last *FLAGS variable, or
13632 # (2) before a word containing "conftest.", or (3) at the end.
13633 # Note that $ac_compile itself does not contain backslashes and begins
13634 # with a dollar sign (not a hyphen), so the echo should work correctly.
13635 lt_compile=`echo "$ac_compile" | $SED \
13636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13638 -e 's:$: $lt_compiler_flag:'`
13639 (eval echo "\"\$as_me:13639: $lt_compile\"" >&5)
13640 (eval "$lt_compile" 2>out/conftest.err)
13641 ac_status=$?
13642 cat out/conftest.err >&5
13643 echo "$as_me:13643: \$? = $ac_status" >&5
13644 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13645 then
13646 # The compiler can only warn and ignore the option if not recognized
13647 # So say no if there are warnings
13648 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13649 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13650 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13651 lt_cv_prog_compiler_c_o_CXX=yes
13652 fi
13653 fi
13654 chmod u+w . 2>&5
13655 $rm conftest*
13656 # SGI C++ compiler will create directory out/ii_files/ for
13657 # template instantiation
13658 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13659 $rm out/* && rmdir out
13660 cd ..
13661 rmdir conftest
13662 $rm conftest*
13663
13664 fi
13665 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13666 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13667
13668
13669 hard_links="nottested"
13670 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13671 # do not overwrite the value of need_locks provided by the user
13672 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13673 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13674 hard_links=yes
13675 $rm conftest*
13676 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13677 touch conftest.a
13678 ln conftest.a conftest.b 2>&5 || hard_links=no
13679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13680 echo "$as_me:$LINENO: result: $hard_links" >&5
13681 echo "${ECHO_T}$hard_links" >&6
13682 if test "$hard_links" = no; then
13683 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13684 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13685 need_locks=warn
13686 fi
13687 else
13688 need_locks=no
13689 fi
13690
13691 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13692 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13693
13694 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13695 case $host_os in
13696 aix4* | aix5*)
13697 # If we're using GNU nm, then we don't want the "-C" option.
13698 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13699 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13700 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'
13701 else
13702 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'
13703 fi
13704 ;;
13705 pw32*)
13706 export_symbols_cmds_CXX="$ltdll_cmds"
13707 ;;
13708 cygwin* | mingw*)
13709 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'
13710 ;;
13711 *)
13712 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13713 ;;
13714 esac
13715
13716 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13717 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13718 test "$ld_shlibs_CXX" = no && can_build_shared=no
13719
13720 #
13721 # Do we need to explicitly link libc?
13722 #
13723 case "x$archive_cmds_need_lc_CXX" in
13724 x|xyes)
13725 # Assume -lc should be added
13726 archive_cmds_need_lc_CXX=yes
13727
13728 if test "$enable_shared" = yes && test "$GCC" = yes; then
13729 case $archive_cmds_CXX in
13730 *'~'*)
13731 # FIXME: we may have to deal with multi-command sequences.
13732 ;;
13733 '$CC '*)
13734 # Test whether the compiler implicitly links with -lc since on some
13735 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13736 # to ld, don't add -lc before -lgcc.
13737 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13738 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13739 $rm conftest*
13740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13741
13742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13743 (eval $ac_compile) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } 2>conftest.err; then
13747 soname=conftest
13748 lib=conftest
13749 libobjs=conftest.$ac_objext
13750 deplibs=
13751 wl=$lt_prog_compiler_wl_CXX
13752 pic_flag=$lt_prog_compiler_pic_CXX
13753 compiler_flags=-v
13754 linker_flags=-v
13755 verstring=
13756 output_objdir=.
13757 libname=conftest
13758 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13759 allow_undefined_flag_CXX=
13760 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13761 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13762 ac_status=$?
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }
13765 then
13766 archive_cmds_need_lc_CXX=no
13767 else
13768 archive_cmds_need_lc_CXX=yes
13769 fi
13770 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13771 else
13772 cat conftest.err 1>&5
13773 fi
13774 $rm conftest*
13775 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13776 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13777 ;;
13778 esac
13779 fi
13780 ;;
13781 esac
13782
13783 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13784 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13785 library_names_spec=
13786 libname_spec='lib$name'
13787 soname_spec=
13788 shrext_cmds=".so"
13789 postinstall_cmds=
13790 postuninstall_cmds=
13791 finish_cmds=
13792 finish_eval=
13793 shlibpath_var=
13794 shlibpath_overrides_runpath=unknown
13795 version_type=none
13796 dynamic_linker="$host_os ld.so"
13797 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13798 if test "$GCC" = yes; then
13799 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13800 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13801 # if the path contains ";" then we assume it to be the separator
13802 # otherwise default to the standard path separator (i.e. ":") - it is
13803 # assumed that no part of a normal pathname contains ";" but that should
13804 # okay in the real world where ";" in dirpaths is itself problematic.
13805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13806 else
13807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13808 fi
13809 else
13810 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13811 fi
13812 need_lib_prefix=unknown
13813 hardcode_into_libs=no
13814
13815 # when you set need_version to no, make sure it does not cause -set_version
13816 # flags to be left without arguments
13817 need_version=unknown
13818
13819 case $host_os in
13820 aix3*)
13821 version_type=linux
13822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13823 shlibpath_var=LIBPATH
13824
13825 # AIX 3 has no versioning support, so we append a major version to the name.
13826 soname_spec='${libname}${release}${shared_ext}$major'
13827 ;;
13828
13829 aix4* | aix5*)
13830 version_type=linux
13831 need_lib_prefix=no
13832 need_version=no
13833 hardcode_into_libs=yes
13834 if test "$host_cpu" = ia64; then
13835 # AIX 5 supports IA64
13836 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13837 shlibpath_var=LD_LIBRARY_PATH
13838 else
13839 # With GCC up to 2.95.x, collect2 would create an import file
13840 # for dependence libraries. The import file would start with
13841 # the line `#! .'. This would cause the generated library to
13842 # depend on `.', always an invalid library. This was fixed in
13843 # development snapshots of GCC prior to 3.0.
13844 case $host_os in
13845 aix4 | aix4.[01] | aix4.[01].*)
13846 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13847 echo ' yes '
13848 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13849 :
13850 else
13851 can_build_shared=no
13852 fi
13853 ;;
13854 esac
13855 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13856 # soname into executable. Probably we can add versioning support to
13857 # collect2, so additional links can be useful in future.
13858 if test "$aix_use_runtimelinking" = yes; then
13859 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13860 # instead of lib<name>.a to let people know that these are not
13861 # typical AIX shared libraries.
13862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13863 else
13864 # We preserve .a as extension for shared libraries through AIX4.2
13865 # and later when we are not doing run time linking.
13866 library_names_spec='${libname}${release}.a $libname.a'
13867 soname_spec='${libname}${release}${shared_ext}$major'
13868 fi
13869 shlibpath_var=LIBPATH
13870 fi
13871 ;;
13872
13873 amigaos*)
13874 library_names_spec='$libname.ixlibrary $libname.a'
13875 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13876 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'
13877 ;;
13878
13879 beos*)
13880 library_names_spec='${libname}${shared_ext}'
13881 dynamic_linker="$host_os ld.so"
13882 shlibpath_var=LIBRARY_PATH
13883 ;;
13884
13885 bsdi[45]*)
13886 version_type=linux
13887 need_version=no
13888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13889 soname_spec='${libname}${release}${shared_ext}$major'
13890 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13891 shlibpath_var=LD_LIBRARY_PATH
13892 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13893 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13894 # the default ld.so.conf also contains /usr/contrib/lib and
13895 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13896 # libtool to hard-code these into programs
13897 ;;
13898
13899 cygwin* | mingw* | pw32*)
13900 version_type=windows
13901 shrext_cmds=".dll"
13902 need_version=no
13903 need_lib_prefix=no
13904
13905 case $GCC,$host_os in
13906 yes,cygwin* | yes,mingw* | yes,pw32*)
13907 library_names_spec='$libname.dll.a'
13908 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13909 postinstall_cmds='base_file=`basename \${file}`~
13910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13911 dldir=$destdir/`dirname \$dlpath`~
13912 test -d \$dldir || mkdir -p \$dldir~
13913 $install_prog $dir/$dlname \$dldir/$dlname~
13914 chmod a+x \$dldir/$dlname'
13915 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13916 dlpath=$dir/\$dldll~
13917 $rm \$dlpath'
13918 shlibpath_overrides_runpath=yes
13919
13920 case $host_os in
13921 cygwin*)
13922 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13923 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13924 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13925 ;;
13926 mingw*)
13927 # MinGW DLLs use traditional 'lib' prefix
13928 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13929 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13930 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13931 # It is most probably a Windows format PATH printed by
13932 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13933 # path with ; separators, and with drive letters. We can handle the
13934 # drive letters (cygwin fileutils understands them), so leave them,
13935 # especially as we might pass files found there to a mingw objdump,
13936 # which wouldn't understand a cygwinified path. Ahh.
13937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13938 else
13939 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13940 fi
13941 ;;
13942 pw32*)
13943 # pw32 DLLs use 'pw' prefix rather than 'lib'
13944 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13945 ;;
13946 esac
13947 ;;
13948
13949 *)
13950 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13951 ;;
13952 esac
13953 dynamic_linker='Win32 ld.exe'
13954 # FIXME: first we should search . and the directory the executable is in
13955 shlibpath_var=PATH
13956 ;;
13957
13958 darwin* | rhapsody*)
13959 dynamic_linker="$host_os dyld"
13960 version_type=darwin
13961 need_lib_prefix=no
13962 need_version=no
13963 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13964 soname_spec='${libname}${release}${major}$shared_ext'
13965 shlibpath_overrides_runpath=yes
13966 shlibpath_var=DYLD_LIBRARY_PATH
13967 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13968 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13969 if test "$GCC" = yes; then
13970 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"`
13971 else
13972 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13973 fi
13974 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13975 ;;
13976
13977 dgux*)
13978 version_type=linux
13979 need_lib_prefix=no
13980 need_version=no
13981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13982 soname_spec='${libname}${release}${shared_ext}$major'
13983 shlibpath_var=LD_LIBRARY_PATH
13984 ;;
13985
13986 freebsd1*)
13987 dynamic_linker=no
13988 ;;
13989
13990 kfreebsd*-gnu)
13991 version_type=linux
13992 need_lib_prefix=no
13993 need_version=no
13994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13995 soname_spec='${libname}${release}${shared_ext}$major'
13996 shlibpath_var=LD_LIBRARY_PATH
13997 shlibpath_overrides_runpath=no
13998 hardcode_into_libs=yes
13999 dynamic_linker='GNU ld.so'
14000 ;;
14001
14002 freebsd* | dragonfly*)
14003 # DragonFly does not have aout. When/if they implement a new
14004 # versioning mechanism, adjust this.
14005 if test -x /usr/bin/objformat; then
14006 objformat=`/usr/bin/objformat`
14007 else
14008 case $host_os in
14009 freebsd[123]*) objformat=aout ;;
14010 *) objformat=elf ;;
14011 esac
14012 fi
14013 version_type=freebsd-$objformat
14014 case $version_type in
14015 freebsd-elf*)
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14017 need_version=no
14018 need_lib_prefix=no
14019 ;;
14020 freebsd-*)
14021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14022 need_version=yes
14023 ;;
14024 esac
14025 shlibpath_var=LD_LIBRARY_PATH
14026 case $host_os in
14027 freebsd2*)
14028 shlibpath_overrides_runpath=yes
14029 ;;
14030 freebsd3.[01]* | freebsdelf3.[01]*)
14031 shlibpath_overrides_runpath=yes
14032 hardcode_into_libs=yes
14033 ;;
14034 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14035 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14036 shlibpath_overrides_runpath=no
14037 hardcode_into_libs=yes
14038 ;;
14039 freebsd*) # from 4.6 on
14040 shlibpath_overrides_runpath=yes
14041 hardcode_into_libs=yes
14042 ;;
14043 esac
14044 ;;
14045
14046 gnu*)
14047 version_type=linux
14048 need_lib_prefix=no
14049 need_version=no
14050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14051 soname_spec='${libname}${release}${shared_ext}$major'
14052 shlibpath_var=LD_LIBRARY_PATH
14053 hardcode_into_libs=yes
14054 ;;
14055
14056 hpux9* | hpux10* | hpux11*)
14057 # Give a soname corresponding to the major version so that dld.sl refuses to
14058 # link against other versions.
14059 version_type=sunos
14060 need_lib_prefix=no
14061 need_version=no
14062 case $host_cpu in
14063 ia64*)
14064 shrext_cmds='.so'
14065 hardcode_into_libs=yes
14066 dynamic_linker="$host_os dld.so"
14067 shlibpath_var=LD_LIBRARY_PATH
14068 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14070 soname_spec='${libname}${release}${shared_ext}$major'
14071 if test "X$HPUX_IA64_MODE" = X32; then
14072 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14073 else
14074 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14075 fi
14076 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14077 ;;
14078 hppa*64*)
14079 shrext_cmds='.sl'
14080 hardcode_into_libs=yes
14081 dynamic_linker="$host_os dld.sl"
14082 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14085 soname_spec='${libname}${release}${shared_ext}$major'
14086 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14087 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14088 ;;
14089 *)
14090 shrext_cmds='.sl'
14091 dynamic_linker="$host_os dld.sl"
14092 shlibpath_var=SHLIB_PATH
14093 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14095 soname_spec='${libname}${release}${shared_ext}$major'
14096 ;;
14097 esac
14098 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14099 postinstall_cmds='chmod 555 $lib'
14100 ;;
14101
14102 interix3*)
14103 version_type=linux
14104 need_lib_prefix=no
14105 need_version=no
14106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14107 soname_spec='${libname}${release}${shared_ext}$major'
14108 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14109 shlibpath_var=LD_LIBRARY_PATH
14110 shlibpath_overrides_runpath=no
14111 hardcode_into_libs=yes
14112 ;;
14113
14114 irix5* | irix6* | nonstopux*)
14115 case $host_os in
14116 nonstopux*) version_type=nonstopux ;;
14117 *)
14118 if test "$lt_cv_prog_gnu_ld" = yes; then
14119 version_type=linux
14120 else
14121 version_type=irix
14122 fi ;;
14123 esac
14124 need_lib_prefix=no
14125 need_version=no
14126 soname_spec='${libname}${release}${shared_ext}$major'
14127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14128 case $host_os in
14129 irix5* | nonstopux*)
14130 libsuff= shlibsuff=
14131 ;;
14132 *)
14133 case $LD in # libtool.m4 will add one of these switches to LD
14134 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14135 libsuff= shlibsuff= libmagic=32-bit;;
14136 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14137 libsuff=32 shlibsuff=N32 libmagic=N32;;
14138 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14139 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14140 *) libsuff= shlibsuff= libmagic=never-match;;
14141 esac
14142 ;;
14143 esac
14144 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14145 shlibpath_overrides_runpath=no
14146 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14147 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14148 hardcode_into_libs=yes
14149 ;;
14150
14151 # No shared lib support for Linux oldld, aout, or coff.
14152 linux*oldld* | linux*aout* | linux*coff*)
14153 dynamic_linker=no
14154 ;;
14155
14156 # This must be Linux ELF.
14157 linux*)
14158 version_type=linux
14159 need_lib_prefix=no
14160 need_version=no
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162 soname_spec='${libname}${release}${shared_ext}$major'
14163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14164 shlibpath_var=LD_LIBRARY_PATH
14165 shlibpath_overrides_runpath=no
14166 # This implies no fast_install, which is unacceptable.
14167 # Some rework will be needed to allow for fast_install
14168 # before this can be enabled.
14169 hardcode_into_libs=yes
14170
14171 # Append ld.so.conf contents to the search path
14172 if test -f /etc/ld.so.conf; then
14173 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' ' '`
14174 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14175 fi
14176
14177 # We used to test for /lib/ld.so.1 and disable shared libraries on
14178 # powerpc, because MkLinux only supported shared libraries with the
14179 # GNU dynamic linker. Since this was broken with cross compilers,
14180 # most powerpc-linux boxes support dynamic linking these days and
14181 # people can always --disable-shared, the test was removed, and we
14182 # assume the GNU/Linux dynamic linker is in use.
14183 dynamic_linker='GNU/Linux ld.so'
14184 ;;
14185
14186 knetbsd*-gnu)
14187 version_type=linux
14188 need_lib_prefix=no
14189 need_version=no
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14191 soname_spec='${libname}${release}${shared_ext}$major'
14192 shlibpath_var=LD_LIBRARY_PATH
14193 shlibpath_overrides_runpath=no
14194 hardcode_into_libs=yes
14195 dynamic_linker='GNU ld.so'
14196 ;;
14197
14198 netbsd*)
14199 version_type=sunos
14200 need_lib_prefix=no
14201 need_version=no
14202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14205 dynamic_linker='NetBSD (a.out) ld.so'
14206 else
14207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14208 soname_spec='${libname}${release}${shared_ext}$major'
14209 dynamic_linker='NetBSD ld.elf_so'
14210 fi
14211 shlibpath_var=LD_LIBRARY_PATH
14212 shlibpath_overrides_runpath=yes
14213 hardcode_into_libs=yes
14214 ;;
14215
14216 newsos6)
14217 version_type=linux
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14219 shlibpath_var=LD_LIBRARY_PATH
14220 shlibpath_overrides_runpath=yes
14221 ;;
14222
14223 nto-qnx*)
14224 version_type=linux
14225 need_lib_prefix=no
14226 need_version=no
14227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14228 soname_spec='${libname}${release}${shared_ext}$major'
14229 shlibpath_var=LD_LIBRARY_PATH
14230 shlibpath_overrides_runpath=yes
14231 ;;
14232
14233 openbsd*)
14234 version_type=sunos
14235 sys_lib_dlsearch_path_spec="/usr/lib"
14236 need_lib_prefix=no
14237 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14238 case $host_os in
14239 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14240 *) need_version=no ;;
14241 esac
14242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14244 shlibpath_var=LD_LIBRARY_PATH
14245 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14246 case $host_os in
14247 openbsd2.[89] | openbsd2.[89].*)
14248 shlibpath_overrides_runpath=no
14249 ;;
14250 *)
14251 shlibpath_overrides_runpath=yes
14252 ;;
14253 esac
14254 else
14255 shlibpath_overrides_runpath=yes
14256 fi
14257 ;;
14258
14259 os2*)
14260 libname_spec='$name'
14261 shrext_cmds=".dll"
14262 need_lib_prefix=no
14263 library_names_spec='$libname${shared_ext} $libname.a'
14264 dynamic_linker='OS/2 ld.exe'
14265 shlibpath_var=LIBPATH
14266 ;;
14267
14268 osf3* | osf4* | osf5*)
14269 version_type=osf
14270 need_lib_prefix=no
14271 need_version=no
14272 soname_spec='${libname}${release}${shared_ext}$major'
14273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14274 shlibpath_var=LD_LIBRARY_PATH
14275 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14276 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14277 ;;
14278
14279 solaris*)
14280 version_type=linux
14281 need_lib_prefix=no
14282 need_version=no
14283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14284 soname_spec='${libname}${release}${shared_ext}$major'
14285 shlibpath_var=LD_LIBRARY_PATH
14286 shlibpath_overrides_runpath=yes
14287 hardcode_into_libs=yes
14288 # ldd complains unless libraries are executable
14289 postinstall_cmds='chmod +x $lib'
14290 ;;
14291
14292 sunos4*)
14293 version_type=sunos
14294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14295 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14296 shlibpath_var=LD_LIBRARY_PATH
14297 shlibpath_overrides_runpath=yes
14298 if test "$with_gnu_ld" = yes; then
14299 need_lib_prefix=no
14300 fi
14301 need_version=yes
14302 ;;
14303
14304 sysv4 | sysv4.3*)
14305 version_type=linux
14306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14307 soname_spec='${libname}${release}${shared_ext}$major'
14308 shlibpath_var=LD_LIBRARY_PATH
14309 case $host_vendor in
14310 sni)
14311 shlibpath_overrides_runpath=no
14312 need_lib_prefix=no
14313 export_dynamic_flag_spec='${wl}-Blargedynsym'
14314 runpath_var=LD_RUN_PATH
14315 ;;
14316 siemens)
14317 need_lib_prefix=no
14318 ;;
14319 motorola)
14320 need_lib_prefix=no
14321 need_version=no
14322 shlibpath_overrides_runpath=no
14323 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14324 ;;
14325 esac
14326 ;;
14327
14328 sysv4*MP*)
14329 if test -d /usr/nec ;then
14330 version_type=linux
14331 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14332 soname_spec='$libname${shared_ext}.$major'
14333 shlibpath_var=LD_LIBRARY_PATH
14334 fi
14335 ;;
14336
14337 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14338 version_type=freebsd-elf
14339 need_lib_prefix=no
14340 need_version=no
14341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14342 soname_spec='${libname}${release}${shared_ext}$major'
14343 shlibpath_var=LD_LIBRARY_PATH
14344 hardcode_into_libs=yes
14345 if test "$with_gnu_ld" = yes; then
14346 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14347 shlibpath_overrides_runpath=no
14348 else
14349 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14350 shlibpath_overrides_runpath=yes
14351 case $host_os in
14352 sco3.2v5*)
14353 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14354 ;;
14355 esac
14356 fi
14357 sys_lib_dlsearch_path_spec='/usr/lib'
14358 ;;
14359
14360 uts4*)
14361 version_type=linux
14362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14363 soname_spec='${libname}${release}${shared_ext}$major'
14364 shlibpath_var=LD_LIBRARY_PATH
14365 ;;
14366
14367 *)
14368 dynamic_linker=no
14369 ;;
14370 esac
14371 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14372 echo "${ECHO_T}$dynamic_linker" >&6
14373 test "$dynamic_linker" = no && can_build_shared=no
14374
14375 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14376 if test "$GCC" = yes; then
14377 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14378 fi
14379
14380 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14381 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14382 hardcode_action_CXX=
14383 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14384 test -n "$runpath_var_CXX" || \
14385 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14386
14387 # We can hardcode non-existant directories.
14388 if test "$hardcode_direct_CXX" != no &&
14389 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14390 # have to relink, otherwise we might link with an installed library
14391 # when we should be linking with a yet-to-be-installed one
14392 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14393 test "$hardcode_minus_L_CXX" != no; then
14394 # Linking always hardcodes the temporary library directory.
14395 hardcode_action_CXX=relink
14396 else
14397 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14398 hardcode_action_CXX=immediate
14399 fi
14400 else
14401 # We cannot hardcode anything, or else we can only hardcode existing
14402 # directories.
14403 hardcode_action_CXX=unsupported
14404 fi
14405 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14406 echo "${ECHO_T}$hardcode_action_CXX" >&6
14407
14408 if test "$hardcode_action_CXX" = relink; then
14409 # Fast installation is not supported
14410 enable_fast_install=no
14411 elif test "$shlibpath_overrides_runpath" = yes ||
14412 test "$enable_shared" = no; then
14413 # Fast installation is not necessary
14414 enable_fast_install=needless
14415 fi
14416
14417
14418 # The else clause should only fire when bootstrapping the
14419 # libtool distribution, otherwise you forgot to ship ltmain.sh
14420 # with your package, and you will get complaints that there are
14421 # no rules to generate ltmain.sh.
14422 if test -f "$ltmain"; then
14423 # See if we are running on zsh, and set the options which allow our commands through
14424 # without removal of \ escapes.
14425 if test -n "${ZSH_VERSION+set}" ; then
14426 setopt NO_GLOB_SUBST
14427 fi
14428 # Now quote all the things that may contain metacharacters while being
14429 # careful not to overquote the AC_SUBSTed values. We take copies of the
14430 # variables and quote the copies for generation of the libtool script.
14431 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14432 SED SHELL STRIP \
14433 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14434 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14435 deplibs_check_method reload_flag reload_cmds need_locks \
14436 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14437 lt_cv_sys_global_symbol_to_c_name_address \
14438 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14439 old_postinstall_cmds old_postuninstall_cmds \
14440 compiler_CXX \
14441 CC_CXX \
14442 LD_CXX \
14443 lt_prog_compiler_wl_CXX \
14444 lt_prog_compiler_pic_CXX \
14445 lt_prog_compiler_static_CXX \
14446 lt_prog_compiler_no_builtin_flag_CXX \
14447 export_dynamic_flag_spec_CXX \
14448 thread_safe_flag_spec_CXX \
14449 whole_archive_flag_spec_CXX \
14450 enable_shared_with_static_runtimes_CXX \
14451 old_archive_cmds_CXX \
14452 old_archive_from_new_cmds_CXX \
14453 predep_objects_CXX \
14454 postdep_objects_CXX \
14455 predeps_CXX \
14456 postdeps_CXX \
14457 compiler_lib_search_path_CXX \
14458 archive_cmds_CXX \
14459 archive_expsym_cmds_CXX \
14460 postinstall_cmds_CXX \
14461 postuninstall_cmds_CXX \
14462 old_archive_from_expsyms_cmds_CXX \
14463 allow_undefined_flag_CXX \
14464 no_undefined_flag_CXX \
14465 export_symbols_cmds_CXX \
14466 hardcode_libdir_flag_spec_CXX \
14467 hardcode_libdir_flag_spec_ld_CXX \
14468 hardcode_libdir_separator_CXX \
14469 hardcode_automatic_CXX \
14470 module_cmds_CXX \
14471 module_expsym_cmds_CXX \
14472 lt_cv_prog_compiler_c_o_CXX \
14473 exclude_expsyms_CXX \
14474 include_expsyms_CXX; do
14475
14476 case $var in
14477 old_archive_cmds_CXX | \
14478 old_archive_from_new_cmds_CXX | \
14479 archive_cmds_CXX | \
14480 archive_expsym_cmds_CXX | \
14481 module_cmds_CXX | \
14482 module_expsym_cmds_CXX | \
14483 old_archive_from_expsyms_cmds_CXX | \
14484 export_symbols_cmds_CXX | \
14485 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14486 postinstall_cmds | postuninstall_cmds | \
14487 old_postinstall_cmds | old_postuninstall_cmds | \
14488 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14489 # Double-quote double-evaled strings.
14490 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14491 ;;
14492 *)
14493 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14494 ;;
14495 esac
14496 done
14497
14498 case $lt_echo in
14499 *'\$0 --fallback-echo"')
14500 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14501 ;;
14502 esac
14503
14504 cfgfile="$ofile"
14505
14506 cat <<__EOF__ >> "$cfgfile"
14507 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14508
14509 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14510
14511 # Shell to use when invoking shell scripts.
14512 SHELL=$lt_SHELL
14513
14514 # Whether or not to build shared libraries.
14515 build_libtool_libs=$enable_shared
14516
14517 # Whether or not to build static libraries.
14518 build_old_libs=$enable_static
14519
14520 # Whether or not to add -lc for building shared libraries.
14521 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14522
14523 # Whether or not to disallow shared libs when runtime libs are static
14524 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14525
14526 # Whether or not to optimize for fast installation.
14527 fast_install=$enable_fast_install
14528
14529 # The host system.
14530 host_alias=$host_alias
14531 host=$host
14532 host_os=$host_os
14533
14534 # The build system.
14535 build_alias=$build_alias
14536 build=$build
14537 build_os=$build_os
14538
14539 # An echo program that does not interpret backslashes.
14540 echo=$lt_echo
14541
14542 # The archiver.
14543 AR=$lt_AR
14544 AR_FLAGS=$lt_AR_FLAGS
14545
14546 # A C compiler.
14547 LTCC=$lt_LTCC
14548
14549 # LTCC compiler flags.
14550 LTCFLAGS=$lt_LTCFLAGS
14551
14552 # A language-specific compiler.
14553 CC=$lt_compiler_CXX
14554
14555 # Is the compiler the GNU C compiler?
14556 with_gcc=$GCC_CXX
14557
14558 # An ERE matcher.
14559 EGREP=$lt_EGREP
14560
14561 # The linker used to build libraries.
14562 LD=$lt_LD_CXX
14563
14564 # Whether we need hard or soft links.
14565 LN_S=$lt_LN_S
14566
14567 # A BSD-compatible nm program.
14568 NM=$lt_NM
14569
14570 # A symbol stripping program
14571 STRIP=$lt_STRIP
14572
14573 # Used to examine libraries when file_magic_cmd begins "file"
14574 MAGIC_CMD=$MAGIC_CMD
14575
14576 # Used on cygwin: DLL creation program.
14577 DLLTOOL="$DLLTOOL"
14578
14579 # Used on cygwin: object dumper.
14580 OBJDUMP="$OBJDUMP"
14581
14582 # Used on cygwin: assembler.
14583 AS="$AS"
14584
14585 # The name of the directory that contains temporary libtool files.
14586 objdir=$objdir
14587
14588 # How to create reloadable object files.
14589 reload_flag=$lt_reload_flag
14590 reload_cmds=$lt_reload_cmds
14591
14592 # How to pass a linker flag through the compiler.
14593 wl=$lt_lt_prog_compiler_wl_CXX
14594
14595 # Object file suffix (normally "o").
14596 objext="$ac_objext"
14597
14598 # Old archive suffix (normally "a").
14599 libext="$libext"
14600
14601 # Shared library suffix (normally ".so").
14602 shrext_cmds='$shrext_cmds'
14603
14604 # Executable file suffix (normally "").
14605 exeext="$exeext"
14606
14607 # Additional compiler flags for building library objects.
14608 pic_flag=$lt_lt_prog_compiler_pic_CXX
14609 pic_mode=$pic_mode
14610
14611 # What is the maximum length of a command?
14612 max_cmd_len=$lt_cv_sys_max_cmd_len
14613
14614 # Does compiler simultaneously support -c and -o options?
14615 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14616
14617 # Must we lock files when doing compilation?
14618 need_locks=$lt_need_locks
14619
14620 # Do we need the lib prefix for modules?
14621 need_lib_prefix=$need_lib_prefix
14622
14623 # Do we need a version for libraries?
14624 need_version=$need_version
14625
14626 # Whether dlopen is supported.
14627 dlopen_support=$enable_dlopen
14628
14629 # Whether dlopen of programs is supported.
14630 dlopen_self=$enable_dlopen_self
14631
14632 # Whether dlopen of statically linked programs is supported.
14633 dlopen_self_static=$enable_dlopen_self_static
14634
14635 # Compiler flag to prevent dynamic linking.
14636 link_static_flag=$lt_lt_prog_compiler_static_CXX
14637
14638 # Compiler flag to turn off builtin functions.
14639 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14640
14641 # Compiler flag to allow reflexive dlopens.
14642 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14643
14644 # Compiler flag to generate shared objects directly from archives.
14645 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14646
14647 # Compiler flag to generate thread-safe objects.
14648 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14649
14650 # Library versioning type.
14651 version_type=$version_type
14652
14653 # Format of library name prefix.
14654 libname_spec=$lt_libname_spec
14655
14656 # List of archive names. First name is the real one, the rest are links.
14657 # The last name is the one that the linker finds with -lNAME.
14658 library_names_spec=$lt_library_names_spec
14659
14660 # The coded name of the library, if different from the real name.
14661 soname_spec=$lt_soname_spec
14662
14663 # Commands used to build and install an old-style archive.
14664 RANLIB=$lt_RANLIB
14665 old_archive_cmds=$lt_old_archive_cmds_CXX
14666 old_postinstall_cmds=$lt_old_postinstall_cmds
14667 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14668
14669 # Create an old-style archive from a shared archive.
14670 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14671
14672 # Create a temporary old-style archive to link instead of a shared archive.
14673 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14674
14675 # Commands used to build and install a shared archive.
14676 archive_cmds=$lt_archive_cmds_CXX
14677 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14678 postinstall_cmds=$lt_postinstall_cmds
14679 postuninstall_cmds=$lt_postuninstall_cmds
14680
14681 # Commands used to build a loadable module (assumed same as above if empty)
14682 module_cmds=$lt_module_cmds_CXX
14683 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14684
14685 # Commands to strip libraries.
14686 old_striplib=$lt_old_striplib
14687 striplib=$lt_striplib
14688
14689 # Dependencies to place before the objects being linked to create a
14690 # shared library.
14691 predep_objects=$lt_predep_objects_CXX
14692
14693 # Dependencies to place after the objects being linked to create a
14694 # shared library.
14695 postdep_objects=$lt_postdep_objects_CXX
14696
14697 # Dependencies to place before the objects being linked to create a
14698 # shared library.
14699 predeps=$lt_predeps_CXX
14700
14701 # Dependencies to place after the objects being linked to create a
14702 # shared library.
14703 postdeps=$lt_postdeps_CXX
14704
14705 # The library search path used internally by the compiler when linking
14706 # a shared library.
14707 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14708
14709 # Method to check whether dependent libraries are shared objects.
14710 deplibs_check_method=$lt_deplibs_check_method
14711
14712 # Command to use when deplibs_check_method == file_magic.
14713 file_magic_cmd=$lt_file_magic_cmd
14714
14715 # Flag that allows shared libraries with undefined symbols to be built.
14716 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14717
14718 # Flag that forces no undefined symbols.
14719 no_undefined_flag=$lt_no_undefined_flag_CXX
14720
14721 # Commands used to finish a libtool library installation in a directory.
14722 finish_cmds=$lt_finish_cmds
14723
14724 # Same as above, but a single script fragment to be evaled but not shown.
14725 finish_eval=$lt_finish_eval
14726
14727 # Take the output of nm and produce a listing of raw symbols and C names.
14728 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14729
14730 # Transform the output of nm in a proper C declaration
14731 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14732
14733 # Transform the output of nm in a C name address pair
14734 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14735
14736 # This is the shared library runtime path variable.
14737 runpath_var=$runpath_var
14738
14739 # This is the shared library path variable.
14740 shlibpath_var=$shlibpath_var
14741
14742 # Is shlibpath searched before the hard-coded library search path?
14743 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14744
14745 # How to hardcode a shared library path into an executable.
14746 hardcode_action=$hardcode_action_CXX
14747
14748 # Whether we should hardcode library paths into libraries.
14749 hardcode_into_libs=$hardcode_into_libs
14750
14751 # Flag to hardcode \$libdir into a binary during linking.
14752 # This must work even if \$libdir does not exist.
14753 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14754
14755 # If ld is used when linking, flag to hardcode \$libdir into
14756 # a binary during linking. This must work even if \$libdir does
14757 # not exist.
14758 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14759
14760 # Whether we need a single -rpath flag with a separated argument.
14761 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14762
14763 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14764 # resulting binary.
14765 hardcode_direct=$hardcode_direct_CXX
14766
14767 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14768 # resulting binary.
14769 hardcode_minus_L=$hardcode_minus_L_CXX
14770
14771 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14772 # the resulting binary.
14773 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14774
14775 # Set to yes if building a shared library automatically hardcodes DIR into the library
14776 # and all subsequent libraries and executables linked against it.
14777 hardcode_automatic=$hardcode_automatic_CXX
14778
14779 # Variables whose values should be saved in libtool wrapper scripts and
14780 # restored at relink time.
14781 variables_saved_for_relink="$variables_saved_for_relink"
14782
14783 # Whether libtool must link a program against all its dependency libraries.
14784 link_all_deplibs=$link_all_deplibs_CXX
14785
14786 # Compile-time system search path for libraries
14787 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14788
14789 # Run-time system search path for libraries
14790 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14791
14792 # Fix the shell variable \$srcfile for the compiler.
14793 fix_srcfile_path="$fix_srcfile_path_CXX"
14794
14795 # Set to yes if exported symbols are required.
14796 always_export_symbols=$always_export_symbols_CXX
14797
14798 # The commands to list exported symbols.
14799 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14800
14801 # The commands to extract the exported symbol list from a shared archive.
14802 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14803
14804 # Symbols that should not be listed in the preloaded symbols.
14805 exclude_expsyms=$lt_exclude_expsyms_CXX
14806
14807 # Symbols that must always be exported.
14808 include_expsyms=$lt_include_expsyms_CXX
14809
14810 # ### END LIBTOOL TAG CONFIG: $tagname
14811
14812 __EOF__
14813
14814
14815 else
14816 # If there is no Makefile yet, we rely on a make rule to execute
14817 # `config.status --recheck' to rerun these tests and create the
14818 # libtool script then.
14819 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14820 if test -f "$ltmain_in"; then
14821 test -f Makefile && make "$ltmain"
14822 fi
14823 fi
14824
14825
14826 ac_ext=c
14827 ac_cpp='$CPP $CPPFLAGS'
14828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14831
14832 CC=$lt_save_CC
14833 LDCXX=$LD
14834 LD=$lt_save_LD
14835 GCC=$lt_save_GCC
14836 with_gnu_ldcxx=$with_gnu_ld
14837 with_gnu_ld=$lt_save_with_gnu_ld
14838 lt_cv_path_LDCXX=$lt_cv_path_LD
14839 lt_cv_path_LD=$lt_save_path_LD
14840 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14841 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14842
14843 else
14844 tagname=""
14845 fi
14846 ;;
14847
14848 F77)
14849 if test -n "$F77" && test "X$F77" != "Xno"; then
14850
14851 ac_ext=f
14852 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14853 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14855
14856
14857 archive_cmds_need_lc_F77=no
14858 allow_undefined_flag_F77=
14859 always_export_symbols_F77=no
14860 archive_expsym_cmds_F77=
14861 export_dynamic_flag_spec_F77=
14862 hardcode_direct_F77=no
14863 hardcode_libdir_flag_spec_F77=
14864 hardcode_libdir_flag_spec_ld_F77=
14865 hardcode_libdir_separator_F77=
14866 hardcode_minus_L_F77=no
14867 hardcode_automatic_F77=no
14868 module_cmds_F77=
14869 module_expsym_cmds_F77=
14870 link_all_deplibs_F77=unknown
14871 old_archive_cmds_F77=$old_archive_cmds
14872 no_undefined_flag_F77=
14873 whole_archive_flag_spec_F77=
14874 enable_shared_with_static_runtimes_F77=no
14875
14876 # Source file extension for f77 test sources.
14877 ac_ext=f
14878
14879 # Object file extension for compiled f77 test sources.
14880 objext=o
14881 objext_F77=$objext
14882
14883 # Code to be used in simple compile tests
14884 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14885
14886 # Code to be used in simple link tests
14887 lt_simple_link_test_code=" program t\n end\n"
14888
14889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14890
14891 # If no C compiler was specified, use CC.
14892 LTCC=${LTCC-"$CC"}
14893
14894 # If no C compiler flags were specified, use CFLAGS.
14895 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14896
14897 # Allow CC to be a program name with arguments.
14898 compiler=$CC
14899
14900
14901 # save warnings/boilerplate of simple test code
14902 ac_outfile=conftest.$ac_objext
14903 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14905 _lt_compiler_boilerplate=`cat conftest.err`
14906 $rm conftest*
14907
14908 ac_outfile=conftest.$ac_objext
14909 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14911 _lt_linker_boilerplate=`cat conftest.err`
14912 $rm conftest*
14913
14914
14915 # Allow CC to be a program name with arguments.
14916 lt_save_CC="$CC"
14917 CC=${F77-"f77"}
14918 compiler=$CC
14919 compiler_F77=$CC
14920 for cc_temp in $compiler""; do
14921 case $cc_temp in
14922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14924 \-*) ;;
14925 *) break;;
14926 esac
14927 done
14928 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14929
14930
14931 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14932 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14933 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14934 echo "${ECHO_T}$can_build_shared" >&6
14935
14936 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14937 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14938 test "$can_build_shared" = "no" && enable_shared=no
14939
14940 # On AIX, shared libraries and static libraries use the same namespace, and
14941 # are all built from PIC.
14942 case $host_os in
14943 aix3*)
14944 test "$enable_shared" = yes && enable_static=no
14945 if test -n "$RANLIB"; then
14946 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14947 postinstall_cmds='$RANLIB $lib'
14948 fi
14949 ;;
14950 aix4* | aix5*)
14951 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14952 test "$enable_shared" = yes && enable_static=no
14953 fi
14954 ;;
14955 esac
14956 echo "$as_me:$LINENO: result: $enable_shared" >&5
14957 echo "${ECHO_T}$enable_shared" >&6
14958
14959 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14960 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14961 # Make sure either enable_shared or enable_static is yes.
14962 test "$enable_shared" = yes || enable_static=yes
14963 echo "$as_me:$LINENO: result: $enable_static" >&5
14964 echo "${ECHO_T}$enable_static" >&6
14965
14966 GCC_F77="$G77"
14967 LD_F77="$LD"
14968
14969 lt_prog_compiler_wl_F77=
14970 lt_prog_compiler_pic_F77=
14971 lt_prog_compiler_static_F77=
14972
14973 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14974 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14975
14976 if test "$GCC" = yes; then
14977 lt_prog_compiler_wl_F77='-Wl,'
14978 lt_prog_compiler_static_F77='-static'
14979
14980 case $host_os in
14981 aix*)
14982 # All AIX code is PIC.
14983 if test "$host_cpu" = ia64; then
14984 # AIX 5 now supports IA64 processor
14985 lt_prog_compiler_static_F77='-Bstatic'
14986 fi
14987 ;;
14988
14989 amigaos*)
14990 # FIXME: we need at least 68020 code to build shared libraries, but
14991 # adding the `-m68020' flag to GCC prevents building anything better,
14992 # like `-m68040'.
14993 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14994 ;;
14995
14996 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14997 # PIC is the default for these OSes.
14998 ;;
14999
15000 mingw* | pw32* | os2*)
15001 # This hack is so that the source file can tell whether it is being
15002 # built for inclusion in a dll (and should export symbols for example).
15003 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15004 ;;
15005
15006 darwin* | rhapsody*)
15007 # PIC is the default on this platform
15008 # Common symbols not allowed in MH_DYLIB files
15009 lt_prog_compiler_pic_F77='-fno-common'
15010 ;;
15011
15012 interix3*)
15013 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15014 # Instead, we relocate shared libraries at runtime.
15015 ;;
15016
15017 msdosdjgpp*)
15018 # Just because we use GCC doesn't mean we suddenly get shared libraries
15019 # on systems that don't support them.
15020 lt_prog_compiler_can_build_shared_F77=no
15021 enable_shared=no
15022 ;;
15023
15024 sysv4*MP*)
15025 if test -d /usr/nec; then
15026 lt_prog_compiler_pic_F77=-Kconform_pic
15027 fi
15028 ;;
15029
15030 hpux*)
15031 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15032 # not for PA HP-UX.
15033 case $host_cpu in
15034 hppa*64*|ia64*)
15035 # +Z the default
15036 ;;
15037 *)
15038 lt_prog_compiler_pic_F77='-fPIC'
15039 ;;
15040 esac
15041 ;;
15042
15043 *)
15044 lt_prog_compiler_pic_F77='-fPIC'
15045 ;;
15046 esac
15047 else
15048 # PORTME Check for flag to pass linker flags through the system compiler.
15049 case $host_os in
15050 aix*)
15051 lt_prog_compiler_wl_F77='-Wl,'
15052 if test "$host_cpu" = ia64; then
15053 # AIX 5 now supports IA64 processor
15054 lt_prog_compiler_static_F77='-Bstatic'
15055 else
15056 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15057 fi
15058 ;;
15059 darwin*)
15060 # PIC is the default on this platform
15061 # Common symbols not allowed in MH_DYLIB files
15062 case $cc_basename in
15063 xlc*)
15064 lt_prog_compiler_pic_F77='-qnocommon'
15065 lt_prog_compiler_wl_F77='-Wl,'
15066 ;;
15067 esac
15068 ;;
15069
15070 mingw* | pw32* | os2*)
15071 # This hack is so that the source file can tell whether it is being
15072 # built for inclusion in a dll (and should export symbols for example).
15073 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15074 ;;
15075
15076 hpux9* | hpux10* | hpux11*)
15077 lt_prog_compiler_wl_F77='-Wl,'
15078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15079 # not for PA HP-UX.
15080 case $host_cpu in
15081 hppa*64*|ia64*)
15082 # +Z the default
15083 ;;
15084 *)
15085 lt_prog_compiler_pic_F77='+Z'
15086 ;;
15087 esac
15088 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15089 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15090 ;;
15091
15092 irix5* | irix6* | nonstopux*)
15093 lt_prog_compiler_wl_F77='-Wl,'
15094 # PIC (with -KPIC) is the default.
15095 lt_prog_compiler_static_F77='-non_shared'
15096 ;;
15097
15098 newsos6)
15099 lt_prog_compiler_pic_F77='-KPIC'
15100 lt_prog_compiler_static_F77='-Bstatic'
15101 ;;
15102
15103 linux*)
15104 case $cc_basename in
15105 icc* | ecc*)
15106 lt_prog_compiler_wl_F77='-Wl,'
15107 lt_prog_compiler_pic_F77='-KPIC'
15108 lt_prog_compiler_static_F77='-static'
15109 ;;
15110 pgcc* | pgf77* | pgf90* | pgf95*)
15111 # Portland Group compilers (*not* the Pentium gcc compiler,
15112 # which looks to be a dead project)
15113 lt_prog_compiler_wl_F77='-Wl,'
15114 lt_prog_compiler_pic_F77='-fpic'
15115 lt_prog_compiler_static_F77='-Bstatic'
15116 ;;
15117 ccc*)
15118 lt_prog_compiler_wl_F77='-Wl,'
15119 # All Alpha code is PIC.
15120 lt_prog_compiler_static_F77='-non_shared'
15121 ;;
15122 esac
15123 ;;
15124
15125 osf3* | osf4* | osf5*)
15126 lt_prog_compiler_wl_F77='-Wl,'
15127 # All OSF/1 code is PIC.
15128 lt_prog_compiler_static_F77='-non_shared'
15129 ;;
15130
15131 solaris*)
15132 lt_prog_compiler_pic_F77='-KPIC'
15133 lt_prog_compiler_static_F77='-Bstatic'
15134 case $cc_basename in
15135 f77* | f90* | f95*)
15136 lt_prog_compiler_wl_F77='-Qoption ld ';;
15137 *)
15138 lt_prog_compiler_wl_F77='-Wl,';;
15139 esac
15140 ;;
15141
15142 sunos4*)
15143 lt_prog_compiler_wl_F77='-Qoption ld '
15144 lt_prog_compiler_pic_F77='-PIC'
15145 lt_prog_compiler_static_F77='-Bstatic'
15146 ;;
15147
15148 sysv4 | sysv4.2uw2* | sysv4.3*)
15149 lt_prog_compiler_wl_F77='-Wl,'
15150 lt_prog_compiler_pic_F77='-KPIC'
15151 lt_prog_compiler_static_F77='-Bstatic'
15152 ;;
15153
15154 sysv4*MP*)
15155 if test -d /usr/nec ;then
15156 lt_prog_compiler_pic_F77='-Kconform_pic'
15157 lt_prog_compiler_static_F77='-Bstatic'
15158 fi
15159 ;;
15160
15161 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15162 lt_prog_compiler_wl_F77='-Wl,'
15163 lt_prog_compiler_pic_F77='-KPIC'
15164 lt_prog_compiler_static_F77='-Bstatic'
15165 ;;
15166
15167 unicos*)
15168 lt_prog_compiler_wl_F77='-Wl,'
15169 lt_prog_compiler_can_build_shared_F77=no
15170 ;;
15171
15172 uts4*)
15173 lt_prog_compiler_pic_F77='-pic'
15174 lt_prog_compiler_static_F77='-Bstatic'
15175 ;;
15176
15177 *)
15178 lt_prog_compiler_can_build_shared_F77=no
15179 ;;
15180 esac
15181 fi
15182
15183 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15184 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15185
15186 #
15187 # Check to make sure the PIC flag actually works.
15188 #
15189 if test -n "$lt_prog_compiler_pic_F77"; then
15190
15191 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15192 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15193 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196 lt_prog_compiler_pic_works_F77=no
15197 ac_outfile=conftest.$ac_objext
15198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15199 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15200 # Insert the option either (1) after the last *FLAGS variable, or
15201 # (2) before a word containing "conftest.", or (3) at the end.
15202 # Note that $ac_compile itself does not contain backslashes and begins
15203 # with a dollar sign (not a hyphen), so the echo should work correctly.
15204 # The option is referenced via a variable to avoid confusing sed.
15205 lt_compile=`echo "$ac_compile" | $SED \
15206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15208 -e 's:$: $lt_compiler_flag:'`
15209 (eval echo "\"\$as_me:15209: $lt_compile\"" >&5)
15210 (eval "$lt_compile" 2>conftest.err)
15211 ac_status=$?
15212 cat conftest.err >&5
15213 echo "$as_me:15213: \$? = $ac_status" >&5
15214 if (exit $ac_status) && test -s "$ac_outfile"; then
15215 # The compiler can only warn and ignore the option if not recognized
15216 # So say no if there are warnings other than the usual output.
15217 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15219 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15220 lt_prog_compiler_pic_works_F77=yes
15221 fi
15222 fi
15223 $rm conftest*
15224
15225 fi
15226 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15227 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15228
15229 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15230 case $lt_prog_compiler_pic_F77 in
15231 "" | " "*) ;;
15232 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15233 esac
15234 else
15235 lt_prog_compiler_pic_F77=
15236 lt_prog_compiler_can_build_shared_F77=no
15237 fi
15238
15239 fi
15240 case $host_os in
15241 # For platforms which do not support PIC, -DPIC is meaningless:
15242 *djgpp*)
15243 lt_prog_compiler_pic_F77=
15244 ;;
15245 *)
15246 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15247 ;;
15248 esac
15249
15250 #
15251 # Check to make sure the static flag actually works.
15252 #
15253 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15254 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15255 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15256 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259 lt_prog_compiler_static_works_F77=no
15260 save_LDFLAGS="$LDFLAGS"
15261 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15262 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15263 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15264 # The linker can only warn and ignore the option if not recognized
15265 # So say no if there are warnings
15266 if test -s conftest.err; then
15267 # Append any errors to the config.log.
15268 cat conftest.err 1>&5
15269 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15271 if diff conftest.exp conftest.er2 >/dev/null; then
15272 lt_prog_compiler_static_works_F77=yes
15273 fi
15274 else
15275 lt_prog_compiler_static_works_F77=yes
15276 fi
15277 fi
15278 $rm conftest*
15279 LDFLAGS="$save_LDFLAGS"
15280
15281 fi
15282 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15283 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15284
15285 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15286 :
15287 else
15288 lt_prog_compiler_static_F77=
15289 fi
15290
15291
15292 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15293 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15294 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15296 else
15297 lt_cv_prog_compiler_c_o_F77=no
15298 $rm -r conftest 2>/dev/null
15299 mkdir conftest
15300 cd conftest
15301 mkdir out
15302 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15303
15304 lt_compiler_flag="-o out/conftest2.$ac_objext"
15305 # Insert the option either (1) after the last *FLAGS variable, or
15306 # (2) before a word containing "conftest.", or (3) at the end.
15307 # Note that $ac_compile itself does not contain backslashes and begins
15308 # with a dollar sign (not a hyphen), so the echo should work correctly.
15309 lt_compile=`echo "$ac_compile" | $SED \
15310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15312 -e 's:$: $lt_compiler_flag:'`
15313 (eval echo "\"\$as_me:15313: $lt_compile\"" >&5)
15314 (eval "$lt_compile" 2>out/conftest.err)
15315 ac_status=$?
15316 cat out/conftest.err >&5
15317 echo "$as_me:15317: \$? = $ac_status" >&5
15318 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15319 then
15320 # The compiler can only warn and ignore the option if not recognized
15321 # So say no if there are warnings
15322 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15323 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15324 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15325 lt_cv_prog_compiler_c_o_F77=yes
15326 fi
15327 fi
15328 chmod u+w . 2>&5
15329 $rm conftest*
15330 # SGI C++ compiler will create directory out/ii_files/ for
15331 # template instantiation
15332 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15333 $rm out/* && rmdir out
15334 cd ..
15335 rmdir conftest
15336 $rm conftest*
15337
15338 fi
15339 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15340 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15341
15342
15343 hard_links="nottested"
15344 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15345 # do not overwrite the value of need_locks provided by the user
15346 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15347 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15348 hard_links=yes
15349 $rm conftest*
15350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15351 touch conftest.a
15352 ln conftest.a conftest.b 2>&5 || hard_links=no
15353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15354 echo "$as_me:$LINENO: result: $hard_links" >&5
15355 echo "${ECHO_T}$hard_links" >&6
15356 if test "$hard_links" = no; then
15357 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15358 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15359 need_locks=warn
15360 fi
15361 else
15362 need_locks=no
15363 fi
15364
15365 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15366 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15367
15368 runpath_var=
15369 allow_undefined_flag_F77=
15370 enable_shared_with_static_runtimes_F77=no
15371 archive_cmds_F77=
15372 archive_expsym_cmds_F77=
15373 old_archive_From_new_cmds_F77=
15374 old_archive_from_expsyms_cmds_F77=
15375 export_dynamic_flag_spec_F77=
15376 whole_archive_flag_spec_F77=
15377 thread_safe_flag_spec_F77=
15378 hardcode_libdir_flag_spec_F77=
15379 hardcode_libdir_flag_spec_ld_F77=
15380 hardcode_libdir_separator_F77=
15381 hardcode_direct_F77=no
15382 hardcode_minus_L_F77=no
15383 hardcode_shlibpath_var_F77=unsupported
15384 link_all_deplibs_F77=unknown
15385 hardcode_automatic_F77=no
15386 module_cmds_F77=
15387 module_expsym_cmds_F77=
15388 always_export_symbols_F77=no
15389 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15390 # include_expsyms should be a list of space-separated symbols to be *always*
15391 # included in the symbol list
15392 include_expsyms_F77=
15393 # exclude_expsyms can be an extended regexp of symbols to exclude
15394 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15395 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15396 # as well as any symbol that contains `d'.
15397 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15398 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15399 # platforms (ab)use it in PIC code, but their linkers get confused if
15400 # the symbol is explicitly referenced. Since portable code cannot
15401 # rely on this symbol name, it's probably fine to never include it in
15402 # preloaded symbol tables.
15403 extract_expsyms_cmds=
15404 # Just being paranoid about ensuring that cc_basename is set.
15405 for cc_temp in $compiler""; do
15406 case $cc_temp in
15407 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15408 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15409 \-*) ;;
15410 *) break;;
15411 esac
15412 done
15413 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15414
15415 case $host_os in
15416 cygwin* | mingw* | pw32*)
15417 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15418 # When not using gcc, we currently assume that we are using
15419 # Microsoft Visual C++.
15420 if test "$GCC" != yes; then
15421 with_gnu_ld=no
15422 fi
15423 ;;
15424 interix*)
15425 # we just hope/assume this is gcc and not c89 (= MSVC++)
15426 with_gnu_ld=yes
15427 ;;
15428 openbsd*)
15429 with_gnu_ld=no
15430 ;;
15431 esac
15432
15433 ld_shlibs_F77=yes
15434 if test "$with_gnu_ld" = yes; then
15435 # If archive_cmds runs LD, not CC, wlarc should be empty
15436 wlarc='${wl}'
15437
15438 # Set some defaults for GNU ld with shared library support. These
15439 # are reset later if shared libraries are not supported. Putting them
15440 # here allows them to be overridden if necessary.
15441 runpath_var=LD_RUN_PATH
15442 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15443 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15444 # ancient GNU ld didn't support --whole-archive et. al.
15445 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15446 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15447 else
15448 whole_archive_flag_spec_F77=
15449 fi
15450 supports_anon_versioning=no
15451 case `$LD -v 2>/dev/null` in
15452 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15453 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15454 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15455 *\ 2.11.*) ;; # other 2.11 versions
15456 *) supports_anon_versioning=yes ;;
15457 esac
15458
15459 # See if GNU ld supports shared libraries.
15460 case $host_os in
15461 aix3* | aix4* | aix5*)
15462 # On AIX/PPC, the GNU linker is very broken
15463 if test "$host_cpu" != ia64; then
15464 ld_shlibs_F77=no
15465 cat <<EOF 1>&2
15466
15467 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15468 *** to be unable to reliably create shared libraries on AIX.
15469 *** Therefore, libtool is disabling shared libraries support. If you
15470 *** really care for shared libraries, you may want to modify your PATH
15471 *** so that a non-GNU linker is found, and then restart.
15472
15473 EOF
15474 fi
15475 ;;
15476
15477 amigaos*)
15478 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)'
15479 hardcode_libdir_flag_spec_F77='-L$libdir'
15480 hardcode_minus_L_F77=yes
15481
15482 # Samuel A. Falvo II <[email protected]> reports
15483 # that the semantics of dynamic libraries on AmigaOS, at least up
15484 # to version 4, is to share data among multiple programs linked
15485 # with the same dynamic library. Since this doesn't match the
15486 # behavior of shared libraries on other platforms, we can't use
15487 # them.
15488 ld_shlibs_F77=no
15489 ;;
15490
15491 beos*)
15492 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15493 allow_undefined_flag_F77=unsupported
15494 # Joseph Beckenbach <[email protected]> says some releases of gcc
15495 # support --undefined. This deserves some investigation. FIXME
15496 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15497 else
15498 ld_shlibs_F77=no
15499 fi
15500 ;;
15501
15502 cygwin* | mingw* | pw32*)
15503 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15504 # as there is no search path for DLLs.
15505 hardcode_libdir_flag_spec_F77='-L$libdir'
15506 allow_undefined_flag_F77=unsupported
15507 always_export_symbols_F77=no
15508 enable_shared_with_static_runtimes_F77=yes
15509 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15510
15511 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15512 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15513 # If the export-symbols file already is a .def file (1st line
15514 # is EXPORTS), use it as is; otherwise, prepend...
15515 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15516 cp $export_symbols $output_objdir/$soname.def;
15517 else
15518 echo EXPORTS > $output_objdir/$soname.def;
15519 cat $export_symbols >> $output_objdir/$soname.def;
15520 fi~
15521 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15522 else
15523 ld_shlibs_F77=no
15524 fi
15525 ;;
15526
15527 interix3*)
15528 hardcode_direct_F77=no
15529 hardcode_shlibpath_var_F77=no
15530 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15531 export_dynamic_flag_spec_F77='${wl}-E'
15532 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15533 # Instead, shared libraries are loaded at an image base (0x10000000 by
15534 # default) and relocated if they conflict, which is a slow very memory
15535 # consuming and fragmenting process. To avoid this, we pick a random,
15536 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15537 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15538 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'
15539 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'
15540 ;;
15541
15542 linux*)
15543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15544 tmp_addflag=
15545 case $cc_basename,$host_cpu in
15546 pgcc*) # Portland Group C compiler
15547 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'
15548 tmp_addflag=' $pic_flag'
15549 ;;
15550 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15551 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'
15552 tmp_addflag=' $pic_flag -Mnomain' ;;
15553 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15554 tmp_addflag=' -i_dynamic' ;;
15555 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15556 tmp_addflag=' -i_dynamic -nofor_main' ;;
15557 ifc* | ifort*) # Intel Fortran compiler
15558 tmp_addflag=' -nofor_main' ;;
15559 esac
15560 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15561
15562 if test $supports_anon_versioning = yes; then
15563 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15564 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15565 $echo "local: *; };" >> $output_objdir/$libname.ver~
15566 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15567 fi
15568 else
15569 ld_shlibs_F77=no
15570 fi
15571 ;;
15572
15573 netbsd*)
15574 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15575 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15576 wlarc=
15577 else
15578 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15579 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15580 fi
15581 ;;
15582
15583 solaris*)
15584 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15585 ld_shlibs_F77=no
15586 cat <<EOF 1>&2
15587
15588 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15589 *** create shared libraries on Solaris systems. Therefore, libtool
15590 *** is disabling shared libraries support. We urge you to upgrade GNU
15591 *** binutils to release 2.9.1 or newer. Another option is to modify
15592 *** your PATH or compiler configuration so that the native linker is
15593 *** used, and then restart.
15594
15595 EOF
15596 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15597 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15598 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15599 else
15600 ld_shlibs_F77=no
15601 fi
15602 ;;
15603
15604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15605 case `$LD -v 2>&1` in
15606 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15607 ld_shlibs_F77=no
15608 cat <<_LT_EOF 1>&2
15609
15610 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15611 *** reliably create shared libraries on SCO systems. Therefore, libtool
15612 *** is disabling shared libraries support. We urge you to upgrade GNU
15613 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15614 *** your PATH or compiler configuration so that the native linker is
15615 *** used, and then restart.
15616
15617 _LT_EOF
15618 ;;
15619 *)
15620 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15621 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15622 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15623 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15624 else
15625 ld_shlibs_F77=no
15626 fi
15627 ;;
15628 esac
15629 ;;
15630
15631 sunos4*)
15632 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15633 wlarc=
15634 hardcode_direct_F77=yes
15635 hardcode_shlibpath_var_F77=no
15636 ;;
15637
15638 *)
15639 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15640 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15641 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15642 else
15643 ld_shlibs_F77=no
15644 fi
15645 ;;
15646 esac
15647
15648 if test "$ld_shlibs_F77" = no; then
15649 runpath_var=
15650 hardcode_libdir_flag_spec_F77=
15651 export_dynamic_flag_spec_F77=
15652 whole_archive_flag_spec_F77=
15653 fi
15654 else
15655 # PORTME fill in a description of your system's linker (not GNU ld)
15656 case $host_os in
15657 aix3*)
15658 allow_undefined_flag_F77=unsupported
15659 always_export_symbols_F77=yes
15660 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'
15661 # Note: this linker hardcodes the directories in LIBPATH if there
15662 # are no directories specified by -L.
15663 hardcode_minus_L_F77=yes
15664 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15665 # Neither direct hardcoding nor static linking is supported with a
15666 # broken collect2.
15667 hardcode_direct_F77=unsupported
15668 fi
15669 ;;
15670
15671 aix4* | aix5*)
15672 if test "$host_cpu" = ia64; then
15673 # On IA64, the linker does run time linking by default, so we don't
15674 # have to do anything special.
15675 aix_use_runtimelinking=no
15676 exp_sym_flag='-Bexport'
15677 no_entry_flag=""
15678 else
15679 # If we're using GNU nm, then we don't want the "-C" option.
15680 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15681 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15682 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'
15683 else
15684 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'
15685 fi
15686 aix_use_runtimelinking=no
15687
15688 # Test if we are trying to use run time linking or normal
15689 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15690 # need to do runtime linking.
15691 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15692 for ld_flag in $LDFLAGS; do
15693 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15694 aix_use_runtimelinking=yes
15695 break
15696 fi
15697 done
15698 ;;
15699 esac
15700
15701 exp_sym_flag='-bexport'
15702 no_entry_flag='-bnoentry'
15703 fi
15704
15705 # When large executables or shared objects are built, AIX ld can
15706 # have problems creating the table of contents. If linking a library
15707 # or program results in "error TOC overflow" add -mminimal-toc to
15708 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15709 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15710
15711 archive_cmds_F77=''
15712 hardcode_direct_F77=yes
15713 hardcode_libdir_separator_F77=':'
15714 link_all_deplibs_F77=yes
15715
15716 if test "$GCC" = yes; then
15717 case $host_os in aix4.[012]|aix4.[012].*)
15718 # We only want to do this on AIX 4.2 and lower, the check
15719 # below for broken collect2 doesn't work under 4.3+
15720 collect2name=`${CC} -print-prog-name=collect2`
15721 if test -f "$collect2name" && \
15722 strings "$collect2name" | grep resolve_lib_name >/dev/null
15723 then
15724 # We have reworked collect2
15725 hardcode_direct_F77=yes
15726 else
15727 # We have old collect2
15728 hardcode_direct_F77=unsupported
15729 # It fails to find uninstalled libraries when the uninstalled
15730 # path is not listed in the libpath. Setting hardcode_minus_L
15731 # to unsupported forces relinking
15732 hardcode_minus_L_F77=yes
15733 hardcode_libdir_flag_spec_F77='-L$libdir'
15734 hardcode_libdir_separator_F77=
15735 fi
15736 ;;
15737 esac
15738 shared_flag='-shared'
15739 if test "$aix_use_runtimelinking" = yes; then
15740 shared_flag="$shared_flag "'${wl}-G'
15741 fi
15742 else
15743 # not using gcc
15744 if test "$host_cpu" = ia64; then
15745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15746 # chokes on -Wl,-G. The following line is correct:
15747 shared_flag='-G'
15748 else
15749 if test "$aix_use_runtimelinking" = yes; then
15750 shared_flag='${wl}-G'
15751 else
15752 shared_flag='${wl}-bM:SRE'
15753 fi
15754 fi
15755 fi
15756
15757 # It seems that -bexpall does not export symbols beginning with
15758 # underscore (_), so it is better to generate a list of symbols to export.
15759 always_export_symbols_F77=yes
15760 if test "$aix_use_runtimelinking" = yes; then
15761 # Warning - without using the other runtime loading flags (-brtl),
15762 # -berok will link without error, but may produce a broken library.
15763 allow_undefined_flag_F77='-berok'
15764 # Determine the default libpath from the value encoded in an empty executable.
15765 cat >conftest.$ac_ext <<_ACEOF
15766 program main
15767
15768 end
15769 _ACEOF
15770 rm -f conftest.$ac_objext conftest$ac_exeext
15771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15772 (eval $ac_link) 2>conftest.er1
15773 ac_status=$?
15774 grep -v '^ *+' conftest.er1 >conftest.err
15775 rm -f conftest.er1
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
15779 { ac_try='test -z "$ac_f77_werror_flag"
15780 || test ! -s conftest.err'
15781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782 (eval $ac_try) 2>&5
15783 ac_status=$?
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; } &&
15786 { ac_try='test -s conftest$ac_exeext'
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; }; then
15792
15793 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15794 }'`
15795 # Check for a 64-bit object if we didn't find anything.
15796 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; }
15797 }'`; fi
15798 else
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15801
15802 fi
15803 rm -f conftest.err conftest.$ac_objext \
15804 conftest$ac_exeext conftest.$ac_ext
15805 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15806
15807 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15808 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"
15809 else
15810 if test "$host_cpu" = ia64; then
15811 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15812 allow_undefined_flag_F77="-z nodefs"
15813 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"
15814 else
15815 # Determine the default libpath from the value encoded in an empty executable.
15816 cat >conftest.$ac_ext <<_ACEOF
15817 program main
15818
15819 end
15820 _ACEOF
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15823 (eval $ac_link) 2>conftest.er1
15824 ac_status=$?
15825 grep -v '^ *+' conftest.er1 >conftest.err
15826 rm -f conftest.er1
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } &&
15830 { ac_try='test -z "$ac_f77_werror_flag"
15831 || test ! -s conftest.err'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest$ac_exeext'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843
15844 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15845 }'`
15846 # Check for a 64-bit object if we didn't find anything.
15847 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; }
15848 }'`; fi
15849 else
15850 echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15852
15853 fi
15854 rm -f conftest.err conftest.$ac_objext \
15855 conftest$ac_exeext conftest.$ac_ext
15856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15857
15858 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15859 # Warning - without using the other run time loading flags,
15860 # -berok will link without error, but may produce a broken library.
15861 no_undefined_flag_F77=' ${wl}-bernotok'
15862 allow_undefined_flag_F77=' ${wl}-berok'
15863 # Exported symbols can be pulled into shared objects from archives
15864 whole_archive_flag_spec_F77='$convenience'
15865 archive_cmds_need_lc_F77=yes
15866 # This is similar to how AIX traditionally builds its shared libraries.
15867 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'
15868 fi
15869 fi
15870 ;;
15871
15872 amigaos*)
15873 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)'
15874 hardcode_libdir_flag_spec_F77='-L$libdir'
15875 hardcode_minus_L_F77=yes
15876 # see comment about different semantics on the GNU ld section
15877 ld_shlibs_F77=no
15878 ;;
15879
15880 bsdi[45]*)
15881 export_dynamic_flag_spec_F77=-rdynamic
15882 ;;
15883
15884 cygwin* | mingw* | pw32*)
15885 # When not using gcc, we currently assume that we are using
15886 # Microsoft Visual C++.
15887 # hardcode_libdir_flag_spec is actually meaningless, as there is
15888 # no search path for DLLs.
15889 hardcode_libdir_flag_spec_F77=' '
15890 allow_undefined_flag_F77=unsupported
15891 # Tell ltmain to make .lib files, not .a files.
15892 libext=lib
15893 # Tell ltmain to make .dll files, not .so files.
15894 shrext_cmds=".dll"
15895 # FIXME: Setting linknames here is a bad hack.
15896 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15897 # The linker will automatically build a .lib file if we build a DLL.
15898 old_archive_From_new_cmds_F77='true'
15899 # FIXME: Should let the user specify the lib program.
15900 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15901 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15902 enable_shared_with_static_runtimes_F77=yes
15903 ;;
15904
15905 darwin* | rhapsody*)
15906 case $host_os in
15907 rhapsody* | darwin1.[012])
15908 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15909 ;;
15910 *) # Darwin 1.3 on
15911 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15912 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15913 else
15914 case ${MACOSX_DEPLOYMENT_TARGET} in
15915 10.[012])
15916 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15917 ;;
15918 10.*)
15919 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15920 ;;
15921 esac
15922 fi
15923 ;;
15924 esac
15925 archive_cmds_need_lc_F77=no
15926 hardcode_direct_F77=no
15927 hardcode_automatic_F77=yes
15928 hardcode_shlibpath_var_F77=unsupported
15929 whole_archive_flag_spec_F77=''
15930 link_all_deplibs_F77=yes
15931 if test "$GCC" = yes ; then
15932 output_verbose_link_cmd='echo'
15933 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15934 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15935 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15936 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}'
15937 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}'
15938 else
15939 case $cc_basename in
15940 xlc*)
15941 output_verbose_link_cmd='echo'
15942 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15943 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15944 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15945 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}'
15946 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}'
15947 ;;
15948 *)
15949 ld_shlibs_F77=no
15950 ;;
15951 esac
15952 fi
15953 ;;
15954
15955 dgux*)
15956 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15957 hardcode_libdir_flag_spec_F77='-L$libdir'
15958 hardcode_shlibpath_var_F77=no
15959 ;;
15960
15961 freebsd1*)
15962 ld_shlibs_F77=no
15963 ;;
15964
15965 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15966 # support. Future versions do this automatically, but an explicit c++rt0.o
15967 # does not break anything, and helps significantly (at the cost of a little
15968 # extra space).
15969 freebsd2.2*)
15970 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15971 hardcode_libdir_flag_spec_F77='-R$libdir'
15972 hardcode_direct_F77=yes
15973 hardcode_shlibpath_var_F77=no
15974 ;;
15975
15976 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15977 freebsd2*)
15978 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15979 hardcode_direct_F77=yes
15980 hardcode_minus_L_F77=yes
15981 hardcode_shlibpath_var_F77=no
15982 ;;
15983
15984 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15985 freebsd* | kfreebsd*-gnu | dragonfly*)
15986 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15987 hardcode_libdir_flag_spec_F77='-R$libdir'
15988 hardcode_direct_F77=yes
15989 hardcode_shlibpath_var_F77=no
15990 ;;
15991
15992 hpux9*)
15993 if test "$GCC" = yes; then
15994 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'
15995 else
15996 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'
15997 fi
15998 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15999 hardcode_libdir_separator_F77=:
16000 hardcode_direct_F77=yes
16001
16002 # hardcode_minus_L: Not really in the search PATH,
16003 # but as the default location of the library.
16004 hardcode_minus_L_F77=yes
16005 export_dynamic_flag_spec_F77='${wl}-E'
16006 ;;
16007
16008 hpux10*)
16009 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16010 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16011 else
16012 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16013 fi
16014 if test "$with_gnu_ld" = no; then
16015 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16016 hardcode_libdir_separator_F77=:
16017
16018 hardcode_direct_F77=yes
16019 export_dynamic_flag_spec_F77='${wl}-E'
16020
16021 # hardcode_minus_L: Not really in the search PATH,
16022 # but as the default location of the library.
16023 hardcode_minus_L_F77=yes
16024 fi
16025 ;;
16026
16027 hpux11*)
16028 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16029 case $host_cpu in
16030 hppa*64*)
16031 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16032 ;;
16033 ia64*)
16034 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16035 ;;
16036 *)
16037 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16038 ;;
16039 esac
16040 else
16041 case $host_cpu in
16042 hppa*64*)
16043 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16044 ;;
16045 ia64*)
16046 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16047 ;;
16048 *)
16049 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16050 ;;
16051 esac
16052 fi
16053 if test "$with_gnu_ld" = no; then
16054 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16055 hardcode_libdir_separator_F77=:
16056
16057 case $host_cpu in
16058 hppa*64*|ia64*)
16059 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16060 hardcode_direct_F77=no
16061 hardcode_shlibpath_var_F77=no
16062 ;;
16063 *)
16064 hardcode_direct_F77=yes
16065 export_dynamic_flag_spec_F77='${wl}-E'
16066
16067 # hardcode_minus_L: Not really in the search PATH,
16068 # but as the default location of the library.
16069 hardcode_minus_L_F77=yes
16070 ;;
16071 esac
16072 fi
16073 ;;
16074
16075 irix5* | irix6* | nonstopux*)
16076 if test "$GCC" = yes; then
16077 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'
16078 else
16079 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'
16080 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16081 fi
16082 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16083 hardcode_libdir_separator_F77=:
16084 link_all_deplibs_F77=yes
16085 ;;
16086
16087 netbsd*)
16088 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16089 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16090 else
16091 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16092 fi
16093 hardcode_libdir_flag_spec_F77='-R$libdir'
16094 hardcode_direct_F77=yes
16095 hardcode_shlibpath_var_F77=no
16096 ;;
16097
16098 newsos6)
16099 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16100 hardcode_direct_F77=yes
16101 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16102 hardcode_libdir_separator_F77=:
16103 hardcode_shlibpath_var_F77=no
16104 ;;
16105
16106 openbsd*)
16107 hardcode_direct_F77=yes
16108 hardcode_shlibpath_var_F77=no
16109 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16110 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16111 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16112 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16113 export_dynamic_flag_spec_F77='${wl}-E'
16114 else
16115 case $host_os in
16116 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16117 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16118 hardcode_libdir_flag_spec_F77='-R$libdir'
16119 ;;
16120 *)
16121 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16122 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16123 ;;
16124 esac
16125 fi
16126 ;;
16127
16128 os2*)
16129 hardcode_libdir_flag_spec_F77='-L$libdir'
16130 hardcode_minus_L_F77=yes
16131 allow_undefined_flag_F77=unsupported
16132 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'
16133 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16134 ;;
16135
16136 osf3*)
16137 if test "$GCC" = yes; then
16138 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16139 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'
16140 else
16141 allow_undefined_flag_F77=' -expect_unresolved \*'
16142 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'
16143 fi
16144 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16145 hardcode_libdir_separator_F77=:
16146 ;;
16147
16148 osf4* | osf5*) # as osf3* with the addition of -msym flag
16149 if test "$GCC" = yes; then
16150 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16151 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'
16152 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16153 else
16154 allow_undefined_flag_F77=' -expect_unresolved \*'
16155 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'
16156 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~
16157 $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'
16158
16159 # Both c and cxx compiler support -rpath directly
16160 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16161 fi
16162 hardcode_libdir_separator_F77=:
16163 ;;
16164
16165 solaris*)
16166 no_undefined_flag_F77=' -z text'
16167 if test "$GCC" = yes; then
16168 wlarc='${wl}'
16169 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16170 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16171 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16172 else
16173 wlarc=''
16174 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16175 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16176 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16177 fi
16178 hardcode_libdir_flag_spec_F77='-R$libdir'
16179 hardcode_shlibpath_var_F77=no
16180 case $host_os in
16181 solaris2.[0-5] | solaris2.[0-5].*) ;;
16182 *)
16183 # The compiler driver will combine linker options so we
16184 # cannot just pass the convience library names through
16185 # without $wl, iff we do not link with $LD.
16186 # Luckily, gcc supports the same syntax we need for Sun Studio.
16187 # Supported since Solaris 2.6 (maybe 2.5.1?)
16188 case $wlarc in
16189 '')
16190 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16191 *)
16192 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' ;;
16193 esac ;;
16194 esac
16195 link_all_deplibs_F77=yes
16196 ;;
16197
16198 sunos4*)
16199 if test "x$host_vendor" = xsequent; then
16200 # Use $CC to link under sequent, because it throws in some extra .o
16201 # files that make .init and .fini sections work.
16202 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16203 else
16204 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16205 fi
16206 hardcode_libdir_flag_spec_F77='-L$libdir'
16207 hardcode_direct_F77=yes
16208 hardcode_minus_L_F77=yes
16209 hardcode_shlibpath_var_F77=no
16210 ;;
16211
16212 sysv4)
16213 case $host_vendor in
16214 sni)
16215 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216 hardcode_direct_F77=yes # is this really true???
16217 ;;
16218 siemens)
16219 ## LD is ld it makes a PLAMLIB
16220 ## CC just makes a GrossModule.
16221 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16222 reload_cmds_F77='$CC -r -o $output$reload_objs'
16223 hardcode_direct_F77=no
16224 ;;
16225 motorola)
16226 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16227 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16228 ;;
16229 esac
16230 runpath_var='LD_RUN_PATH'
16231 hardcode_shlibpath_var_F77=no
16232 ;;
16233
16234 sysv4.3*)
16235 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16236 hardcode_shlibpath_var_F77=no
16237 export_dynamic_flag_spec_F77='-Bexport'
16238 ;;
16239
16240 sysv4*MP*)
16241 if test -d /usr/nec; then
16242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16243 hardcode_shlibpath_var_F77=no
16244 runpath_var=LD_RUN_PATH
16245 hardcode_runpath_var=yes
16246 ld_shlibs_F77=yes
16247 fi
16248 ;;
16249
16250 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16251 no_undefined_flag_F77='${wl}-z,text'
16252 archive_cmds_need_lc_F77=no
16253 hardcode_shlibpath_var_F77=no
16254 runpath_var='LD_RUN_PATH'
16255
16256 if test "$GCC" = yes; then
16257 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16258 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16259 else
16260 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16261 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16262 fi
16263 ;;
16264
16265 sysv5* | sco3.2v5* | sco5v6*)
16266 # Note: We can NOT use -z defs as we might desire, because we do not
16267 # link with -lc, and that would cause any symbols used from libc to
16268 # always be unresolved, which means just about no library would
16269 # ever link correctly. If we're not using GNU ld we use -z text
16270 # though, which does catch some bad symbols but isn't as heavy-handed
16271 # as -z defs.
16272 no_undefined_flag_F77='${wl}-z,text'
16273 allow_undefined_flag_F77='${wl}-z,nodefs'
16274 archive_cmds_need_lc_F77=no
16275 hardcode_shlibpath_var_F77=no
16276 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16277 hardcode_libdir_separator_F77=':'
16278 link_all_deplibs_F77=yes
16279 export_dynamic_flag_spec_F77='${wl}-Bexport'
16280 runpath_var='LD_RUN_PATH'
16281
16282 if test "$GCC" = yes; then
16283 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16284 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16285 else
16286 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16287 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16288 fi
16289 ;;
16290
16291 uts4*)
16292 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16293 hardcode_libdir_flag_spec_F77='-L$libdir'
16294 hardcode_shlibpath_var_F77=no
16295 ;;
16296
16297 *)
16298 ld_shlibs_F77=no
16299 ;;
16300 esac
16301 fi
16302
16303 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16304 echo "${ECHO_T}$ld_shlibs_F77" >&6
16305 test "$ld_shlibs_F77" = no && can_build_shared=no
16306
16307 #
16308 # Do we need to explicitly link libc?
16309 #
16310 case "x$archive_cmds_need_lc_F77" in
16311 x|xyes)
16312 # Assume -lc should be added
16313 archive_cmds_need_lc_F77=yes
16314
16315 if test "$enable_shared" = yes && test "$GCC" = yes; then
16316 case $archive_cmds_F77 in
16317 *'~'*)
16318 # FIXME: we may have to deal with multi-command sequences.
16319 ;;
16320 '$CC '*)
16321 # Test whether the compiler implicitly links with -lc since on some
16322 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16323 # to ld, don't add -lc before -lgcc.
16324 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16325 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16326 $rm conftest*
16327 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16328
16329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16330 (eval $ac_compile) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } 2>conftest.err; then
16334 soname=conftest
16335 lib=conftest
16336 libobjs=conftest.$ac_objext
16337 deplibs=
16338 wl=$lt_prog_compiler_wl_F77
16339 pic_flag=$lt_prog_compiler_pic_F77
16340 compiler_flags=-v
16341 linker_flags=-v
16342 verstring=
16343 output_objdir=.
16344 libname=conftest
16345 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16346 allow_undefined_flag_F77=
16347 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16348 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }
16352 then
16353 archive_cmds_need_lc_F77=no
16354 else
16355 archive_cmds_need_lc_F77=yes
16356 fi
16357 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16358 else
16359 cat conftest.err 1>&5
16360 fi
16361 $rm conftest*
16362 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16363 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16364 ;;
16365 esac
16366 fi
16367 ;;
16368 esac
16369
16370 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16371 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16372 library_names_spec=
16373 libname_spec='lib$name'
16374 soname_spec=
16375 shrext_cmds=".so"
16376 postinstall_cmds=
16377 postuninstall_cmds=
16378 finish_cmds=
16379 finish_eval=
16380 shlibpath_var=
16381 shlibpath_overrides_runpath=unknown
16382 version_type=none
16383 dynamic_linker="$host_os ld.so"
16384 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16385 if test "$GCC" = yes; then
16386 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16387 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16388 # if the path contains ";" then we assume it to be the separator
16389 # otherwise default to the standard path separator (i.e. ":") - it is
16390 # assumed that no part of a normal pathname contains ";" but that should
16391 # okay in the real world where ";" in dirpaths is itself problematic.
16392 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16393 else
16394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16395 fi
16396 else
16397 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16398 fi
16399 need_lib_prefix=unknown
16400 hardcode_into_libs=no
16401
16402 # when you set need_version to no, make sure it does not cause -set_version
16403 # flags to be left without arguments
16404 need_version=unknown
16405
16406 case $host_os in
16407 aix3*)
16408 version_type=linux
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16410 shlibpath_var=LIBPATH
16411
16412 # AIX 3 has no versioning support, so we append a major version to the name.
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 ;;
16415
16416 aix4* | aix5*)
16417 version_type=linux
16418 need_lib_prefix=no
16419 need_version=no
16420 hardcode_into_libs=yes
16421 if test "$host_cpu" = ia64; then
16422 # AIX 5 supports IA64
16423 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16424 shlibpath_var=LD_LIBRARY_PATH
16425 else
16426 # With GCC up to 2.95.x, collect2 would create an import file
16427 # for dependence libraries. The import file would start with
16428 # the line `#! .'. This would cause the generated library to
16429 # depend on `.', always an invalid library. This was fixed in
16430 # development snapshots of GCC prior to 3.0.
16431 case $host_os in
16432 aix4 | aix4.[01] | aix4.[01].*)
16433 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16434 echo ' yes '
16435 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16436 :
16437 else
16438 can_build_shared=no
16439 fi
16440 ;;
16441 esac
16442 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16443 # soname into executable. Probably we can add versioning support to
16444 # collect2, so additional links can be useful in future.
16445 if test "$aix_use_runtimelinking" = yes; then
16446 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16447 # instead of lib<name>.a to let people know that these are not
16448 # typical AIX shared libraries.
16449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16450 else
16451 # We preserve .a as extension for shared libraries through AIX4.2
16452 # and later when we are not doing run time linking.
16453 library_names_spec='${libname}${release}.a $libname.a'
16454 soname_spec='${libname}${release}${shared_ext}$major'
16455 fi
16456 shlibpath_var=LIBPATH
16457 fi
16458 ;;
16459
16460 amigaos*)
16461 library_names_spec='$libname.ixlibrary $libname.a'
16462 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16463 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'
16464 ;;
16465
16466 beos*)
16467 library_names_spec='${libname}${shared_ext}'
16468 dynamic_linker="$host_os ld.so"
16469 shlibpath_var=LIBRARY_PATH
16470 ;;
16471
16472 bsdi[45]*)
16473 version_type=linux
16474 need_version=no
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16478 shlibpath_var=LD_LIBRARY_PATH
16479 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16480 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16481 # the default ld.so.conf also contains /usr/contrib/lib and
16482 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16483 # libtool to hard-code these into programs
16484 ;;
16485
16486 cygwin* | mingw* | pw32*)
16487 version_type=windows
16488 shrext_cmds=".dll"
16489 need_version=no
16490 need_lib_prefix=no
16491
16492 case $GCC,$host_os in
16493 yes,cygwin* | yes,mingw* | yes,pw32*)
16494 library_names_spec='$libname.dll.a'
16495 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16496 postinstall_cmds='base_file=`basename \${file}`~
16497 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16498 dldir=$destdir/`dirname \$dlpath`~
16499 test -d \$dldir || mkdir -p \$dldir~
16500 $install_prog $dir/$dlname \$dldir/$dlname~
16501 chmod a+x \$dldir/$dlname'
16502 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16503 dlpath=$dir/\$dldll~
16504 $rm \$dlpath'
16505 shlibpath_overrides_runpath=yes
16506
16507 case $host_os in
16508 cygwin*)
16509 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16510 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16511 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16512 ;;
16513 mingw*)
16514 # MinGW DLLs use traditional 'lib' prefix
16515 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16517 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16518 # It is most probably a Windows format PATH printed by
16519 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16520 # path with ; separators, and with drive letters. We can handle the
16521 # drive letters (cygwin fileutils understands them), so leave them,
16522 # especially as we might pass files found there to a mingw objdump,
16523 # which wouldn't understand a cygwinified path. Ahh.
16524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16525 else
16526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16527 fi
16528 ;;
16529 pw32*)
16530 # pw32 DLLs use 'pw' prefix rather than 'lib'
16531 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16532 ;;
16533 esac
16534 ;;
16535
16536 *)
16537 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16538 ;;
16539 esac
16540 dynamic_linker='Win32 ld.exe'
16541 # FIXME: first we should search . and the directory the executable is in
16542 shlibpath_var=PATH
16543 ;;
16544
16545 darwin* | rhapsody*)
16546 dynamic_linker="$host_os dyld"
16547 version_type=darwin
16548 need_lib_prefix=no
16549 need_version=no
16550 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16551 soname_spec='${libname}${release}${major}$shared_ext'
16552 shlibpath_overrides_runpath=yes
16553 shlibpath_var=DYLD_LIBRARY_PATH
16554 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16555 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16556 if test "$GCC" = yes; then
16557 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"`
16558 else
16559 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16560 fi
16561 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16562 ;;
16563
16564 dgux*)
16565 version_type=linux
16566 need_lib_prefix=no
16567 need_version=no
16568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16569 soname_spec='${libname}${release}${shared_ext}$major'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 ;;
16572
16573 freebsd1*)
16574 dynamic_linker=no
16575 ;;
16576
16577 kfreebsd*-gnu)
16578 version_type=linux
16579 need_lib_prefix=no
16580 need_version=no
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16582 soname_spec='${libname}${release}${shared_ext}$major'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 shlibpath_overrides_runpath=no
16585 hardcode_into_libs=yes
16586 dynamic_linker='GNU ld.so'
16587 ;;
16588
16589 freebsd* | dragonfly*)
16590 # DragonFly does not have aout. When/if they implement a new
16591 # versioning mechanism, adjust this.
16592 if test -x /usr/bin/objformat; then
16593 objformat=`/usr/bin/objformat`
16594 else
16595 case $host_os in
16596 freebsd[123]*) objformat=aout ;;
16597 *) objformat=elf ;;
16598 esac
16599 fi
16600 version_type=freebsd-$objformat
16601 case $version_type in
16602 freebsd-elf*)
16603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16604 need_version=no
16605 need_lib_prefix=no
16606 ;;
16607 freebsd-*)
16608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16609 need_version=yes
16610 ;;
16611 esac
16612 shlibpath_var=LD_LIBRARY_PATH
16613 case $host_os in
16614 freebsd2*)
16615 shlibpath_overrides_runpath=yes
16616 ;;
16617 freebsd3.[01]* | freebsdelf3.[01]*)
16618 shlibpath_overrides_runpath=yes
16619 hardcode_into_libs=yes
16620 ;;
16621 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16622 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16623 shlibpath_overrides_runpath=no
16624 hardcode_into_libs=yes
16625 ;;
16626 freebsd*) # from 4.6 on
16627 shlibpath_overrides_runpath=yes
16628 hardcode_into_libs=yes
16629 ;;
16630 esac
16631 ;;
16632
16633 gnu*)
16634 version_type=linux
16635 need_lib_prefix=no
16636 need_version=no
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 shlibpath_var=LD_LIBRARY_PATH
16640 hardcode_into_libs=yes
16641 ;;
16642
16643 hpux9* | hpux10* | hpux11*)
16644 # Give a soname corresponding to the major version so that dld.sl refuses to
16645 # link against other versions.
16646 version_type=sunos
16647 need_lib_prefix=no
16648 need_version=no
16649 case $host_cpu in
16650 ia64*)
16651 shrext_cmds='.so'
16652 hardcode_into_libs=yes
16653 dynamic_linker="$host_os dld.so"
16654 shlibpath_var=LD_LIBRARY_PATH
16655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16657 soname_spec='${libname}${release}${shared_ext}$major'
16658 if test "X$HPUX_IA64_MODE" = X32; then
16659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16660 else
16661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16662 fi
16663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16664 ;;
16665 hppa*64*)
16666 shrext_cmds='.sl'
16667 hardcode_into_libs=yes
16668 dynamic_linker="$host_os dld.sl"
16669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16672 soname_spec='${libname}${release}${shared_ext}$major'
16673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16675 ;;
16676 *)
16677 shrext_cmds='.sl'
16678 dynamic_linker="$host_os dld.sl"
16679 shlibpath_var=SHLIB_PATH
16680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682 soname_spec='${libname}${release}${shared_ext}$major'
16683 ;;
16684 esac
16685 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16686 postinstall_cmds='chmod 555 $lib'
16687 ;;
16688
16689 interix3*)
16690 version_type=linux
16691 need_lib_prefix=no
16692 need_version=no
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16694 soname_spec='${libname}${release}${shared_ext}$major'
16695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16696 shlibpath_var=LD_LIBRARY_PATH
16697 shlibpath_overrides_runpath=no
16698 hardcode_into_libs=yes
16699 ;;
16700
16701 irix5* | irix6* | nonstopux*)
16702 case $host_os in
16703 nonstopux*) version_type=nonstopux ;;
16704 *)
16705 if test "$lt_cv_prog_gnu_ld" = yes; then
16706 version_type=linux
16707 else
16708 version_type=irix
16709 fi ;;
16710 esac
16711 need_lib_prefix=no
16712 need_version=no
16713 soname_spec='${libname}${release}${shared_ext}$major'
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16715 case $host_os in
16716 irix5* | nonstopux*)
16717 libsuff= shlibsuff=
16718 ;;
16719 *)
16720 case $LD in # libtool.m4 will add one of these switches to LD
16721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16722 libsuff= shlibsuff= libmagic=32-bit;;
16723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16724 libsuff=32 shlibsuff=N32 libmagic=N32;;
16725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16727 *) libsuff= shlibsuff= libmagic=never-match;;
16728 esac
16729 ;;
16730 esac
16731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16732 shlibpath_overrides_runpath=no
16733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16735 hardcode_into_libs=yes
16736 ;;
16737
16738 # No shared lib support for Linux oldld, aout, or coff.
16739 linux*oldld* | linux*aout* | linux*coff*)
16740 dynamic_linker=no
16741 ;;
16742
16743 # This must be Linux ELF.
16744 linux*)
16745 version_type=linux
16746 need_lib_prefix=no
16747 need_version=no
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16751 shlibpath_var=LD_LIBRARY_PATH
16752 shlibpath_overrides_runpath=no
16753 # This implies no fast_install, which is unacceptable.
16754 # Some rework will be needed to allow for fast_install
16755 # before this can be enabled.
16756 hardcode_into_libs=yes
16757
16758 # Append ld.so.conf contents to the search path
16759 if test -f /etc/ld.so.conf; then
16760 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' ' '`
16761 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16762 fi
16763
16764 # We used to test for /lib/ld.so.1 and disable shared libraries on
16765 # powerpc, because MkLinux only supported shared libraries with the
16766 # GNU dynamic linker. Since this was broken with cross compilers,
16767 # most powerpc-linux boxes support dynamic linking these days and
16768 # people can always --disable-shared, the test was removed, and we
16769 # assume the GNU/Linux dynamic linker is in use.
16770 dynamic_linker='GNU/Linux ld.so'
16771 ;;
16772
16773 knetbsd*-gnu)
16774 version_type=linux
16775 need_lib_prefix=no
16776 need_version=no
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16778 soname_spec='${libname}${release}${shared_ext}$major'
16779 shlibpath_var=LD_LIBRARY_PATH
16780 shlibpath_overrides_runpath=no
16781 hardcode_into_libs=yes
16782 dynamic_linker='GNU ld.so'
16783 ;;
16784
16785 netbsd*)
16786 version_type=sunos
16787 need_lib_prefix=no
16788 need_version=no
16789 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16792 dynamic_linker='NetBSD (a.out) ld.so'
16793 else
16794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16795 soname_spec='${libname}${release}${shared_ext}$major'
16796 dynamic_linker='NetBSD ld.elf_so'
16797 fi
16798 shlibpath_var=LD_LIBRARY_PATH
16799 shlibpath_overrides_runpath=yes
16800 hardcode_into_libs=yes
16801 ;;
16802
16803 newsos6)
16804 version_type=linux
16805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16806 shlibpath_var=LD_LIBRARY_PATH
16807 shlibpath_overrides_runpath=yes
16808 ;;
16809
16810 nto-qnx*)
16811 version_type=linux
16812 need_lib_prefix=no
16813 need_version=no
16814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815 soname_spec='${libname}${release}${shared_ext}$major'
16816 shlibpath_var=LD_LIBRARY_PATH
16817 shlibpath_overrides_runpath=yes
16818 ;;
16819
16820 openbsd*)
16821 version_type=sunos
16822 sys_lib_dlsearch_path_spec="/usr/lib"
16823 need_lib_prefix=no
16824 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16825 case $host_os in
16826 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16827 *) need_version=no ;;
16828 esac
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16831 shlibpath_var=LD_LIBRARY_PATH
16832 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16833 case $host_os in
16834 openbsd2.[89] | openbsd2.[89].*)
16835 shlibpath_overrides_runpath=no
16836 ;;
16837 *)
16838 shlibpath_overrides_runpath=yes
16839 ;;
16840 esac
16841 else
16842 shlibpath_overrides_runpath=yes
16843 fi
16844 ;;
16845
16846 os2*)
16847 libname_spec='$name'
16848 shrext_cmds=".dll"
16849 need_lib_prefix=no
16850 library_names_spec='$libname${shared_ext} $libname.a'
16851 dynamic_linker='OS/2 ld.exe'
16852 shlibpath_var=LIBPATH
16853 ;;
16854
16855 osf3* | osf4* | osf5*)
16856 version_type=osf
16857 need_lib_prefix=no
16858 need_version=no
16859 soname_spec='${libname}${release}${shared_ext}$major'
16860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16861 shlibpath_var=LD_LIBRARY_PATH
16862 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16863 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16864 ;;
16865
16866 solaris*)
16867 version_type=linux
16868 need_lib_prefix=no
16869 need_version=no
16870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16871 soname_spec='${libname}${release}${shared_ext}$major'
16872 shlibpath_var=LD_LIBRARY_PATH
16873 shlibpath_overrides_runpath=yes
16874 hardcode_into_libs=yes
16875 # ldd complains unless libraries are executable
16876 postinstall_cmds='chmod +x $lib'
16877 ;;
16878
16879 sunos4*)
16880 version_type=sunos
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16882 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 shlibpath_overrides_runpath=yes
16885 if test "$with_gnu_ld" = yes; then
16886 need_lib_prefix=no
16887 fi
16888 need_version=yes
16889 ;;
16890
16891 sysv4 | sysv4.3*)
16892 version_type=linux
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894 soname_spec='${libname}${release}${shared_ext}$major'
16895 shlibpath_var=LD_LIBRARY_PATH
16896 case $host_vendor in
16897 sni)
16898 shlibpath_overrides_runpath=no
16899 need_lib_prefix=no
16900 export_dynamic_flag_spec='${wl}-Blargedynsym'
16901 runpath_var=LD_RUN_PATH
16902 ;;
16903 siemens)
16904 need_lib_prefix=no
16905 ;;
16906 motorola)
16907 need_lib_prefix=no
16908 need_version=no
16909 shlibpath_overrides_runpath=no
16910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16911 ;;
16912 esac
16913 ;;
16914
16915 sysv4*MP*)
16916 if test -d /usr/nec ;then
16917 version_type=linux
16918 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16919 soname_spec='$libname${shared_ext}.$major'
16920 shlibpath_var=LD_LIBRARY_PATH
16921 fi
16922 ;;
16923
16924 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16925 version_type=freebsd-elf
16926 need_lib_prefix=no
16927 need_version=no
16928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16929 soname_spec='${libname}${release}${shared_ext}$major'
16930 shlibpath_var=LD_LIBRARY_PATH
16931 hardcode_into_libs=yes
16932 if test "$with_gnu_ld" = yes; then
16933 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16934 shlibpath_overrides_runpath=no
16935 else
16936 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16937 shlibpath_overrides_runpath=yes
16938 case $host_os in
16939 sco3.2v5*)
16940 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16941 ;;
16942 esac
16943 fi
16944 sys_lib_dlsearch_path_spec='/usr/lib'
16945 ;;
16946
16947 uts4*)
16948 version_type=linux
16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16950 soname_spec='${libname}${release}${shared_ext}$major'
16951 shlibpath_var=LD_LIBRARY_PATH
16952 ;;
16953
16954 *)
16955 dynamic_linker=no
16956 ;;
16957 esac
16958 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16959 echo "${ECHO_T}$dynamic_linker" >&6
16960 test "$dynamic_linker" = no && can_build_shared=no
16961
16962 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16963 if test "$GCC" = yes; then
16964 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16965 fi
16966
16967 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16968 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16969 hardcode_action_F77=
16970 if test -n "$hardcode_libdir_flag_spec_F77" || \
16971 test -n "$runpath_var_F77" || \
16972 test "X$hardcode_automatic_F77" = "Xyes" ; then
16973
16974 # We can hardcode non-existant directories.
16975 if test "$hardcode_direct_F77" != no &&
16976 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16977 # have to relink, otherwise we might link with an installed library
16978 # when we should be linking with a yet-to-be-installed one
16979 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16980 test "$hardcode_minus_L_F77" != no; then
16981 # Linking always hardcodes the temporary library directory.
16982 hardcode_action_F77=relink
16983 else
16984 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16985 hardcode_action_F77=immediate
16986 fi
16987 else
16988 # We cannot hardcode anything, or else we can only hardcode existing
16989 # directories.
16990 hardcode_action_F77=unsupported
16991 fi
16992 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16993 echo "${ECHO_T}$hardcode_action_F77" >&6
16994
16995 if test "$hardcode_action_F77" = relink; then
16996 # Fast installation is not supported
16997 enable_fast_install=no
16998 elif test "$shlibpath_overrides_runpath" = yes ||
16999 test "$enable_shared" = no; then
17000 # Fast installation is not necessary
17001 enable_fast_install=needless
17002 fi
17003
17004
17005 # The else clause should only fire when bootstrapping the
17006 # libtool distribution, otherwise you forgot to ship ltmain.sh
17007 # with your package, and you will get complaints that there are
17008 # no rules to generate ltmain.sh.
17009 if test -f "$ltmain"; then
17010 # See if we are running on zsh, and set the options which allow our commands through
17011 # without removal of \ escapes.
17012 if test -n "${ZSH_VERSION+set}" ; then
17013 setopt NO_GLOB_SUBST
17014 fi
17015 # Now quote all the things that may contain metacharacters while being
17016 # careful not to overquote the AC_SUBSTed values. We take copies of the
17017 # variables and quote the copies for generation of the libtool script.
17018 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17019 SED SHELL STRIP \
17020 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17021 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17022 deplibs_check_method reload_flag reload_cmds need_locks \
17023 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17024 lt_cv_sys_global_symbol_to_c_name_address \
17025 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17026 old_postinstall_cmds old_postuninstall_cmds \
17027 compiler_F77 \
17028 CC_F77 \
17029 LD_F77 \
17030 lt_prog_compiler_wl_F77 \
17031 lt_prog_compiler_pic_F77 \
17032 lt_prog_compiler_static_F77 \
17033 lt_prog_compiler_no_builtin_flag_F77 \
17034 export_dynamic_flag_spec_F77 \
17035 thread_safe_flag_spec_F77 \
17036 whole_archive_flag_spec_F77 \
17037 enable_shared_with_static_runtimes_F77 \
17038 old_archive_cmds_F77 \
17039 old_archive_from_new_cmds_F77 \
17040 predep_objects_F77 \
17041 postdep_objects_F77 \
17042 predeps_F77 \
17043 postdeps_F77 \
17044 compiler_lib_search_path_F77 \
17045 archive_cmds_F77 \
17046 archive_expsym_cmds_F77 \
17047 postinstall_cmds_F77 \
17048 postuninstall_cmds_F77 \
17049 old_archive_from_expsyms_cmds_F77 \
17050 allow_undefined_flag_F77 \
17051 no_undefined_flag_F77 \
17052 export_symbols_cmds_F77 \
17053 hardcode_libdir_flag_spec_F77 \
17054 hardcode_libdir_flag_spec_ld_F77 \
17055 hardcode_libdir_separator_F77 \
17056 hardcode_automatic_F77 \
17057 module_cmds_F77 \
17058 module_expsym_cmds_F77 \
17059 lt_cv_prog_compiler_c_o_F77 \
17060 exclude_expsyms_F77 \
17061 include_expsyms_F77; do
17062
17063 case $var in
17064 old_archive_cmds_F77 | \
17065 old_archive_from_new_cmds_F77 | \
17066 archive_cmds_F77 | \
17067 archive_expsym_cmds_F77 | \
17068 module_cmds_F77 | \
17069 module_expsym_cmds_F77 | \
17070 old_archive_from_expsyms_cmds_F77 | \
17071 export_symbols_cmds_F77 | \
17072 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17073 postinstall_cmds | postuninstall_cmds | \
17074 old_postinstall_cmds | old_postuninstall_cmds | \
17075 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17076 # Double-quote double-evaled strings.
17077 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17078 ;;
17079 *)
17080 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17081 ;;
17082 esac
17083 done
17084
17085 case $lt_echo in
17086 *'\$0 --fallback-echo"')
17087 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17088 ;;
17089 esac
17090
17091 cfgfile="$ofile"
17092
17093 cat <<__EOF__ >> "$cfgfile"
17094 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17095
17096 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17097
17098 # Shell to use when invoking shell scripts.
17099 SHELL=$lt_SHELL
17100
17101 # Whether or not to build shared libraries.
17102 build_libtool_libs=$enable_shared
17103
17104 # Whether or not to build static libraries.
17105 build_old_libs=$enable_static
17106
17107 # Whether or not to add -lc for building shared libraries.
17108 build_libtool_need_lc=$archive_cmds_need_lc_F77
17109
17110 # Whether or not to disallow shared libs when runtime libs are static
17111 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17112
17113 # Whether or not to optimize for fast installation.
17114 fast_install=$enable_fast_install
17115
17116 # The host system.
17117 host_alias=$host_alias
17118 host=$host
17119 host_os=$host_os
17120
17121 # The build system.
17122 build_alias=$build_alias
17123 build=$build
17124 build_os=$build_os
17125
17126 # An echo program that does not interpret backslashes.
17127 echo=$lt_echo
17128
17129 # The archiver.
17130 AR=$lt_AR
17131 AR_FLAGS=$lt_AR_FLAGS
17132
17133 # A C compiler.
17134 LTCC=$lt_LTCC
17135
17136 # LTCC compiler flags.
17137 LTCFLAGS=$lt_LTCFLAGS
17138
17139 # A language-specific compiler.
17140 CC=$lt_compiler_F77
17141
17142 # Is the compiler the GNU C compiler?
17143 with_gcc=$GCC_F77
17144
17145 # An ERE matcher.
17146 EGREP=$lt_EGREP
17147
17148 # The linker used to build libraries.
17149 LD=$lt_LD_F77
17150
17151 # Whether we need hard or soft links.
17152 LN_S=$lt_LN_S
17153
17154 # A BSD-compatible nm program.
17155 NM=$lt_NM
17156
17157 # A symbol stripping program
17158 STRIP=$lt_STRIP
17159
17160 # Used to examine libraries when file_magic_cmd begins "file"
17161 MAGIC_CMD=$MAGIC_CMD
17162
17163 # Used on cygwin: DLL creation program.
17164 DLLTOOL="$DLLTOOL"
17165
17166 # Used on cygwin: object dumper.
17167 OBJDUMP="$OBJDUMP"
17168
17169 # Used on cygwin: assembler.
17170 AS="$AS"
17171
17172 # The name of the directory that contains temporary libtool files.
17173 objdir=$objdir
17174
17175 # How to create reloadable object files.
17176 reload_flag=$lt_reload_flag
17177 reload_cmds=$lt_reload_cmds
17178
17179 # How to pass a linker flag through the compiler.
17180 wl=$lt_lt_prog_compiler_wl_F77
17181
17182 # Object file suffix (normally "o").
17183 objext="$ac_objext"
17184
17185 # Old archive suffix (normally "a").
17186 libext="$libext"
17187
17188 # Shared library suffix (normally ".so").
17189 shrext_cmds='$shrext_cmds'
17190
17191 # Executable file suffix (normally "").
17192 exeext="$exeext"
17193
17194 # Additional compiler flags for building library objects.
17195 pic_flag=$lt_lt_prog_compiler_pic_F77
17196 pic_mode=$pic_mode
17197
17198 # What is the maximum length of a command?
17199 max_cmd_len=$lt_cv_sys_max_cmd_len
17200
17201 # Does compiler simultaneously support -c and -o options?
17202 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17203
17204 # Must we lock files when doing compilation?
17205 need_locks=$lt_need_locks
17206
17207 # Do we need the lib prefix for modules?
17208 need_lib_prefix=$need_lib_prefix
17209
17210 # Do we need a version for libraries?
17211 need_version=$need_version
17212
17213 # Whether dlopen is supported.
17214 dlopen_support=$enable_dlopen
17215
17216 # Whether dlopen of programs is supported.
17217 dlopen_self=$enable_dlopen_self
17218
17219 # Whether dlopen of statically linked programs is supported.
17220 dlopen_self_static=$enable_dlopen_self_static
17221
17222 # Compiler flag to prevent dynamic linking.
17223 link_static_flag=$lt_lt_prog_compiler_static_F77
17224
17225 # Compiler flag to turn off builtin functions.
17226 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17227
17228 # Compiler flag to allow reflexive dlopens.
17229 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17230
17231 # Compiler flag to generate shared objects directly from archives.
17232 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17233
17234 # Compiler flag to generate thread-safe objects.
17235 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17236
17237 # Library versioning type.
17238 version_type=$version_type
17239
17240 # Format of library name prefix.
17241 libname_spec=$lt_libname_spec
17242
17243 # List of archive names. First name is the real one, the rest are links.
17244 # The last name is the one that the linker finds with -lNAME.
17245 library_names_spec=$lt_library_names_spec
17246
17247 # The coded name of the library, if different from the real name.
17248 soname_spec=$lt_soname_spec
17249
17250 # Commands used to build and install an old-style archive.
17251 RANLIB=$lt_RANLIB
17252 old_archive_cmds=$lt_old_archive_cmds_F77
17253 old_postinstall_cmds=$lt_old_postinstall_cmds
17254 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17255
17256 # Create an old-style archive from a shared archive.
17257 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17258
17259 # Create a temporary old-style archive to link instead of a shared archive.
17260 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17261
17262 # Commands used to build and install a shared archive.
17263 archive_cmds=$lt_archive_cmds_F77
17264 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17265 postinstall_cmds=$lt_postinstall_cmds
17266 postuninstall_cmds=$lt_postuninstall_cmds
17267
17268 # Commands used to build a loadable module (assumed same as above if empty)
17269 module_cmds=$lt_module_cmds_F77
17270 module_expsym_cmds=$lt_module_expsym_cmds_F77
17271
17272 # Commands to strip libraries.
17273 old_striplib=$lt_old_striplib
17274 striplib=$lt_striplib
17275
17276 # Dependencies to place before the objects being linked to create a
17277 # shared library.
17278 predep_objects=$lt_predep_objects_F77
17279
17280 # Dependencies to place after the objects being linked to create a
17281 # shared library.
17282 postdep_objects=$lt_postdep_objects_F77
17283
17284 # Dependencies to place before the objects being linked to create a
17285 # shared library.
17286 predeps=$lt_predeps_F77
17287
17288 # Dependencies to place after the objects being linked to create a
17289 # shared library.
17290 postdeps=$lt_postdeps_F77
17291
17292 # The library search path used internally by the compiler when linking
17293 # a shared library.
17294 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17295
17296 # Method to check whether dependent libraries are shared objects.
17297 deplibs_check_method=$lt_deplibs_check_method
17298
17299 # Command to use when deplibs_check_method == file_magic.
17300 file_magic_cmd=$lt_file_magic_cmd
17301
17302 # Flag that allows shared libraries with undefined symbols to be built.
17303 allow_undefined_flag=$lt_allow_undefined_flag_F77
17304
17305 # Flag that forces no undefined symbols.
17306 no_undefined_flag=$lt_no_undefined_flag_F77
17307
17308 # Commands used to finish a libtool library installation in a directory.
17309 finish_cmds=$lt_finish_cmds
17310
17311 # Same as above, but a single script fragment to be evaled but not shown.
17312 finish_eval=$lt_finish_eval
17313
17314 # Take the output of nm and produce a listing of raw symbols and C names.
17315 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17316
17317 # Transform the output of nm in a proper C declaration
17318 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17319
17320 # Transform the output of nm in a C name address pair
17321 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17322
17323 # This is the shared library runtime path variable.
17324 runpath_var=$runpath_var
17325
17326 # This is the shared library path variable.
17327 shlibpath_var=$shlibpath_var
17328
17329 # Is shlibpath searched before the hard-coded library search path?
17330 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17331
17332 # How to hardcode a shared library path into an executable.
17333 hardcode_action=$hardcode_action_F77
17334
17335 # Whether we should hardcode library paths into libraries.
17336 hardcode_into_libs=$hardcode_into_libs
17337
17338 # Flag to hardcode \$libdir into a binary during linking.
17339 # This must work even if \$libdir does not exist.
17340 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17341
17342 # If ld is used when linking, flag to hardcode \$libdir into
17343 # a binary during linking. This must work even if \$libdir does
17344 # not exist.
17345 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17346
17347 # Whether we need a single -rpath flag with a separated argument.
17348 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17349
17350 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17351 # resulting binary.
17352 hardcode_direct=$hardcode_direct_F77
17353
17354 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17355 # resulting binary.
17356 hardcode_minus_L=$hardcode_minus_L_F77
17357
17358 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17359 # the resulting binary.
17360 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17361
17362 # Set to yes if building a shared library automatically hardcodes DIR into the library
17363 # and all subsequent libraries and executables linked against it.
17364 hardcode_automatic=$hardcode_automatic_F77
17365
17366 # Variables whose values should be saved in libtool wrapper scripts and
17367 # restored at relink time.
17368 variables_saved_for_relink="$variables_saved_for_relink"
17369
17370 # Whether libtool must link a program against all its dependency libraries.
17371 link_all_deplibs=$link_all_deplibs_F77
17372
17373 # Compile-time system search path for libraries
17374 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17375
17376 # Run-time system search path for libraries
17377 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17378
17379 # Fix the shell variable \$srcfile for the compiler.
17380 fix_srcfile_path="$fix_srcfile_path_F77"
17381
17382 # Set to yes if exported symbols are required.
17383 always_export_symbols=$always_export_symbols_F77
17384
17385 # The commands to list exported symbols.
17386 export_symbols_cmds=$lt_export_symbols_cmds_F77
17387
17388 # The commands to extract the exported symbol list from a shared archive.
17389 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17390
17391 # Symbols that should not be listed in the preloaded symbols.
17392 exclude_expsyms=$lt_exclude_expsyms_F77
17393
17394 # Symbols that must always be exported.
17395 include_expsyms=$lt_include_expsyms_F77
17396
17397 # ### END LIBTOOL TAG CONFIG: $tagname
17398
17399 __EOF__
17400
17401
17402 else
17403 # If there is no Makefile yet, we rely on a make rule to execute
17404 # `config.status --recheck' to rerun these tests and create the
17405 # libtool script then.
17406 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17407 if test -f "$ltmain_in"; then
17408 test -f Makefile && make "$ltmain"
17409 fi
17410 fi
17411
17412
17413 ac_ext=c
17414 ac_cpp='$CPP $CPPFLAGS'
17415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17418
17419 CC="$lt_save_CC"
17420
17421 else
17422 tagname=""
17423 fi
17424 ;;
17425
17426 GCJ)
17427 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17428
17429
17430
17431 # Source file extension for Java test sources.
17432 ac_ext=java
17433
17434 # Object file extension for compiled Java test sources.
17435 objext=o
17436 objext_GCJ=$objext
17437
17438 # Code to be used in simple compile tests
17439 lt_simple_compile_test_code="class foo {}\n"
17440
17441 # Code to be used in simple link tests
17442 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17443
17444 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17445
17446 # If no C compiler was specified, use CC.
17447 LTCC=${LTCC-"$CC"}
17448
17449 # If no C compiler flags were specified, use CFLAGS.
17450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17451
17452 # Allow CC to be a program name with arguments.
17453 compiler=$CC
17454
17455
17456 # save warnings/boilerplate of simple test code
17457 ac_outfile=conftest.$ac_objext
17458 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17459 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17460 _lt_compiler_boilerplate=`cat conftest.err`
17461 $rm conftest*
17462
17463 ac_outfile=conftest.$ac_objext
17464 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17465 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17466 _lt_linker_boilerplate=`cat conftest.err`
17467 $rm conftest*
17468
17469
17470 # Allow CC to be a program name with arguments.
17471 lt_save_CC="$CC"
17472 CC=${GCJ-"gcj"}
17473 compiler=$CC
17474 compiler_GCJ=$CC
17475 for cc_temp in $compiler""; do
17476 case $cc_temp in
17477 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17478 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17479 \-*) ;;
17480 *) break;;
17481 esac
17482 done
17483 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17484
17485
17486 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17487 archive_cmds_need_lc_GCJ=no
17488
17489 old_archive_cmds_GCJ=$old_archive_cmds
17490
17491 ## CAVEAT EMPTOR:
17492 ## There is no encapsulation within the following macros, do not change
17493 ## the running order or otherwise move them around unless you know exactly
17494 ## what you are doing...
17495
17496 lt_prog_compiler_no_builtin_flag_GCJ=
17497
17498 if test "$GCC" = yes; then
17499 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17500
17501
17502 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17503 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17504 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
17506 else
17507 lt_cv_prog_compiler_rtti_exceptions=no
17508 ac_outfile=conftest.$ac_objext
17509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17510 lt_compiler_flag="-fno-rtti -fno-exceptions"
17511 # Insert the option either (1) after the last *FLAGS variable, or
17512 # (2) before a word containing "conftest.", or (3) at the end.
17513 # Note that $ac_compile itself does not contain backslashes and begins
17514 # with a dollar sign (not a hyphen), so the echo should work correctly.
17515 # The option is referenced via a variable to avoid confusing sed.
17516 lt_compile=`echo "$ac_compile" | $SED \
17517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17519 -e 's:$: $lt_compiler_flag:'`
17520 (eval echo "\"\$as_me:17520: $lt_compile\"" >&5)
17521 (eval "$lt_compile" 2>conftest.err)
17522 ac_status=$?
17523 cat conftest.err >&5
17524 echo "$as_me:17524: \$? = $ac_status" >&5
17525 if (exit $ac_status) && test -s "$ac_outfile"; then
17526 # The compiler can only warn and ignore the option if not recognized
17527 # So say no if there are warnings other than the usual output.
17528 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17530 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17531 lt_cv_prog_compiler_rtti_exceptions=yes
17532 fi
17533 fi
17534 $rm conftest*
17535
17536 fi
17537 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17538 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17539
17540 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17541 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17542 else
17543 :
17544 fi
17545
17546 fi
17547
17548 lt_prog_compiler_wl_GCJ=
17549 lt_prog_compiler_pic_GCJ=
17550 lt_prog_compiler_static_GCJ=
17551
17552 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17553 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17554
17555 if test "$GCC" = yes; then
17556 lt_prog_compiler_wl_GCJ='-Wl,'
17557 lt_prog_compiler_static_GCJ='-static'
17558
17559 case $host_os in
17560 aix*)
17561 # All AIX code is PIC.
17562 if test "$host_cpu" = ia64; then
17563 # AIX 5 now supports IA64 processor
17564 lt_prog_compiler_static_GCJ='-Bstatic'
17565 fi
17566 ;;
17567
17568 amigaos*)
17569 # FIXME: we need at least 68020 code to build shared libraries, but
17570 # adding the `-m68020' flag to GCC prevents building anything better,
17571 # like `-m68040'.
17572 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17573 ;;
17574
17575 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17576 # PIC is the default for these OSes.
17577 ;;
17578
17579 mingw* | pw32* | os2*)
17580 # This hack is so that the source file can tell whether it is being
17581 # built for inclusion in a dll (and should export symbols for example).
17582 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17583 ;;
17584
17585 darwin* | rhapsody*)
17586 # PIC is the default on this platform
17587 # Common symbols not allowed in MH_DYLIB files
17588 lt_prog_compiler_pic_GCJ='-fno-common'
17589 ;;
17590
17591 interix3*)
17592 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17593 # Instead, we relocate shared libraries at runtime.
17594 ;;
17595
17596 msdosdjgpp*)
17597 # Just because we use GCC doesn't mean we suddenly get shared libraries
17598 # on systems that don't support them.
17599 lt_prog_compiler_can_build_shared_GCJ=no
17600 enable_shared=no
17601 ;;
17602
17603 sysv4*MP*)
17604 if test -d /usr/nec; then
17605 lt_prog_compiler_pic_GCJ=-Kconform_pic
17606 fi
17607 ;;
17608
17609 hpux*)
17610 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17611 # not for PA HP-UX.
17612 case $host_cpu in
17613 hppa*64*|ia64*)
17614 # +Z the default
17615 ;;
17616 *)
17617 lt_prog_compiler_pic_GCJ='-fPIC'
17618 ;;
17619 esac
17620 ;;
17621
17622 *)
17623 lt_prog_compiler_pic_GCJ='-fPIC'
17624 ;;
17625 esac
17626 else
17627 # PORTME Check for flag to pass linker flags through the system compiler.
17628 case $host_os in
17629 aix*)
17630 lt_prog_compiler_wl_GCJ='-Wl,'
17631 if test "$host_cpu" = ia64; then
17632 # AIX 5 now supports IA64 processor
17633 lt_prog_compiler_static_GCJ='-Bstatic'
17634 else
17635 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17636 fi
17637 ;;
17638 darwin*)
17639 # PIC is the default on this platform
17640 # Common symbols not allowed in MH_DYLIB files
17641 case $cc_basename in
17642 xlc*)
17643 lt_prog_compiler_pic_GCJ='-qnocommon'
17644 lt_prog_compiler_wl_GCJ='-Wl,'
17645 ;;
17646 esac
17647 ;;
17648
17649 mingw* | pw32* | os2*)
17650 # This hack is so that the source file can tell whether it is being
17651 # built for inclusion in a dll (and should export symbols for example).
17652 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17653 ;;
17654
17655 hpux9* | hpux10* | hpux11*)
17656 lt_prog_compiler_wl_GCJ='-Wl,'
17657 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17658 # not for PA HP-UX.
17659 case $host_cpu in
17660 hppa*64*|ia64*)
17661 # +Z the default
17662 ;;
17663 *)
17664 lt_prog_compiler_pic_GCJ='+Z'
17665 ;;
17666 esac
17667 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17668 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17669 ;;
17670
17671 irix5* | irix6* | nonstopux*)
17672 lt_prog_compiler_wl_GCJ='-Wl,'
17673 # PIC (with -KPIC) is the default.
17674 lt_prog_compiler_static_GCJ='-non_shared'
17675 ;;
17676
17677 newsos6)
17678 lt_prog_compiler_pic_GCJ='-KPIC'
17679 lt_prog_compiler_static_GCJ='-Bstatic'
17680 ;;
17681
17682 linux*)
17683 case $cc_basename in
17684 icc* | ecc*)
17685 lt_prog_compiler_wl_GCJ='-Wl,'
17686 lt_prog_compiler_pic_GCJ='-KPIC'
17687 lt_prog_compiler_static_GCJ='-static'
17688 ;;
17689 pgcc* | pgf77* | pgf90* | pgf95*)
17690 # Portland Group compilers (*not* the Pentium gcc compiler,
17691 # which looks to be a dead project)
17692 lt_prog_compiler_wl_GCJ='-Wl,'
17693 lt_prog_compiler_pic_GCJ='-fpic'
17694 lt_prog_compiler_static_GCJ='-Bstatic'
17695 ;;
17696 ccc*)
17697 lt_prog_compiler_wl_GCJ='-Wl,'
17698 # All Alpha code is PIC.
17699 lt_prog_compiler_static_GCJ='-non_shared'
17700 ;;
17701 esac
17702 ;;
17703
17704 osf3* | osf4* | osf5*)
17705 lt_prog_compiler_wl_GCJ='-Wl,'
17706 # All OSF/1 code is PIC.
17707 lt_prog_compiler_static_GCJ='-non_shared'
17708 ;;
17709
17710 solaris*)
17711 lt_prog_compiler_pic_GCJ='-KPIC'
17712 lt_prog_compiler_static_GCJ='-Bstatic'
17713 case $cc_basename in
17714 f77* | f90* | f95*)
17715 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17716 *)
17717 lt_prog_compiler_wl_GCJ='-Wl,';;
17718 esac
17719 ;;
17720
17721 sunos4*)
17722 lt_prog_compiler_wl_GCJ='-Qoption ld '
17723 lt_prog_compiler_pic_GCJ='-PIC'
17724 lt_prog_compiler_static_GCJ='-Bstatic'
17725 ;;
17726
17727 sysv4 | sysv4.2uw2* | sysv4.3*)
17728 lt_prog_compiler_wl_GCJ='-Wl,'
17729 lt_prog_compiler_pic_GCJ='-KPIC'
17730 lt_prog_compiler_static_GCJ='-Bstatic'
17731 ;;
17732
17733 sysv4*MP*)
17734 if test -d /usr/nec ;then
17735 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17736 lt_prog_compiler_static_GCJ='-Bstatic'
17737 fi
17738 ;;
17739
17740 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17741 lt_prog_compiler_wl_GCJ='-Wl,'
17742 lt_prog_compiler_pic_GCJ='-KPIC'
17743 lt_prog_compiler_static_GCJ='-Bstatic'
17744 ;;
17745
17746 unicos*)
17747 lt_prog_compiler_wl_GCJ='-Wl,'
17748 lt_prog_compiler_can_build_shared_GCJ=no
17749 ;;
17750
17751 uts4*)
17752 lt_prog_compiler_pic_GCJ='-pic'
17753 lt_prog_compiler_static_GCJ='-Bstatic'
17754 ;;
17755
17756 *)
17757 lt_prog_compiler_can_build_shared_GCJ=no
17758 ;;
17759 esac
17760 fi
17761
17762 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17763 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17764
17765 #
17766 # Check to make sure the PIC flag actually works.
17767 #
17768 if test -n "$lt_prog_compiler_pic_GCJ"; then
17769
17770 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17771 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17772 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17774 else
17775 lt_prog_compiler_pic_works_GCJ=no
17776 ac_outfile=conftest.$ac_objext
17777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17778 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17779 # Insert the option either (1) after the last *FLAGS variable, or
17780 # (2) before a word containing "conftest.", or (3) at the end.
17781 # Note that $ac_compile itself does not contain backslashes and begins
17782 # with a dollar sign (not a hyphen), so the echo should work correctly.
17783 # The option is referenced via a variable to avoid confusing sed.
17784 lt_compile=`echo "$ac_compile" | $SED \
17785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17787 -e 's:$: $lt_compiler_flag:'`
17788 (eval echo "\"\$as_me:17788: $lt_compile\"" >&5)
17789 (eval "$lt_compile" 2>conftest.err)
17790 ac_status=$?
17791 cat conftest.err >&5
17792 echo "$as_me:17792: \$? = $ac_status" >&5
17793 if (exit $ac_status) && test -s "$ac_outfile"; then
17794 # The compiler can only warn and ignore the option if not recognized
17795 # So say no if there are warnings other than the usual output.
17796 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17799 lt_prog_compiler_pic_works_GCJ=yes
17800 fi
17801 fi
17802 $rm conftest*
17803
17804 fi
17805 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17806 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17807
17808 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17809 case $lt_prog_compiler_pic_GCJ in
17810 "" | " "*) ;;
17811 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17812 esac
17813 else
17814 lt_prog_compiler_pic_GCJ=
17815 lt_prog_compiler_can_build_shared_GCJ=no
17816 fi
17817
17818 fi
17819 case $host_os in
17820 # For platforms which do not support PIC, -DPIC is meaningless:
17821 *djgpp*)
17822 lt_prog_compiler_pic_GCJ=
17823 ;;
17824 *)
17825 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17826 ;;
17827 esac
17828
17829 #
17830 # Check to make sure the static flag actually works.
17831 #
17832 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17833 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17834 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17835 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 else
17838 lt_prog_compiler_static_works_GCJ=no
17839 save_LDFLAGS="$LDFLAGS"
17840 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17841 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17842 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17843 # The linker can only warn and ignore the option if not recognized
17844 # So say no if there are warnings
17845 if test -s conftest.err; then
17846 # Append any errors to the config.log.
17847 cat conftest.err 1>&5
17848 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17849 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17850 if diff conftest.exp conftest.er2 >/dev/null; then
17851 lt_prog_compiler_static_works_GCJ=yes
17852 fi
17853 else
17854 lt_prog_compiler_static_works_GCJ=yes
17855 fi
17856 fi
17857 $rm conftest*
17858 LDFLAGS="$save_LDFLAGS"
17859
17860 fi
17861 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17862 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17863
17864 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17865 :
17866 else
17867 lt_prog_compiler_static_GCJ=
17868 fi
17869
17870
17871 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17872 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17873 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17875 else
17876 lt_cv_prog_compiler_c_o_GCJ=no
17877 $rm -r conftest 2>/dev/null
17878 mkdir conftest
17879 cd conftest
17880 mkdir out
17881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17882
17883 lt_compiler_flag="-o out/conftest2.$ac_objext"
17884 # Insert the option either (1) after the last *FLAGS variable, or
17885 # (2) before a word containing "conftest.", or (3) at the end.
17886 # Note that $ac_compile itself does not contain backslashes and begins
17887 # with a dollar sign (not a hyphen), so the echo should work correctly.
17888 lt_compile=`echo "$ac_compile" | $SED \
17889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17891 -e 's:$: $lt_compiler_flag:'`
17892 (eval echo "\"\$as_me:17892: $lt_compile\"" >&5)
17893 (eval "$lt_compile" 2>out/conftest.err)
17894 ac_status=$?
17895 cat out/conftest.err >&5
17896 echo "$as_me:17896: \$? = $ac_status" >&5
17897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17898 then
17899 # The compiler can only warn and ignore the option if not recognized
17900 # So say no if there are warnings
17901 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17904 lt_cv_prog_compiler_c_o_GCJ=yes
17905 fi
17906 fi
17907 chmod u+w . 2>&5
17908 $rm conftest*
17909 # SGI C++ compiler will create directory out/ii_files/ for
17910 # template instantiation
17911 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17912 $rm out/* && rmdir out
17913 cd ..
17914 rmdir conftest
17915 $rm conftest*
17916
17917 fi
17918 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17919 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17920
17921
17922 hard_links="nottested"
17923 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17924 # do not overwrite the value of need_locks provided by the user
17925 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17926 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17927 hard_links=yes
17928 $rm conftest*
17929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17930 touch conftest.a
17931 ln conftest.a conftest.b 2>&5 || hard_links=no
17932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17933 echo "$as_me:$LINENO: result: $hard_links" >&5
17934 echo "${ECHO_T}$hard_links" >&6
17935 if test "$hard_links" = no; then
17936 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17937 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17938 need_locks=warn
17939 fi
17940 else
17941 need_locks=no
17942 fi
17943
17944 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17945 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17946
17947 runpath_var=
17948 allow_undefined_flag_GCJ=
17949 enable_shared_with_static_runtimes_GCJ=no
17950 archive_cmds_GCJ=
17951 archive_expsym_cmds_GCJ=
17952 old_archive_From_new_cmds_GCJ=
17953 old_archive_from_expsyms_cmds_GCJ=
17954 export_dynamic_flag_spec_GCJ=
17955 whole_archive_flag_spec_GCJ=
17956 thread_safe_flag_spec_GCJ=
17957 hardcode_libdir_flag_spec_GCJ=
17958 hardcode_libdir_flag_spec_ld_GCJ=
17959 hardcode_libdir_separator_GCJ=
17960 hardcode_direct_GCJ=no
17961 hardcode_minus_L_GCJ=no
17962 hardcode_shlibpath_var_GCJ=unsupported
17963 link_all_deplibs_GCJ=unknown
17964 hardcode_automatic_GCJ=no
17965 module_cmds_GCJ=
17966 module_expsym_cmds_GCJ=
17967 always_export_symbols_GCJ=no
17968 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17969 # include_expsyms should be a list of space-separated symbols to be *always*
17970 # included in the symbol list
17971 include_expsyms_GCJ=
17972 # exclude_expsyms can be an extended regexp of symbols to exclude
17973 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17974 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17975 # as well as any symbol that contains `d'.
17976 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17977 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17978 # platforms (ab)use it in PIC code, but their linkers get confused if
17979 # the symbol is explicitly referenced. Since portable code cannot
17980 # rely on this symbol name, it's probably fine to never include it in
17981 # preloaded symbol tables.
17982 extract_expsyms_cmds=
17983 # Just being paranoid about ensuring that cc_basename is set.
17984 for cc_temp in $compiler""; do
17985 case $cc_temp in
17986 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17987 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17988 \-*) ;;
17989 *) break;;
17990 esac
17991 done
17992 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17993
17994 case $host_os in
17995 cygwin* | mingw* | pw32*)
17996 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17997 # When not using gcc, we currently assume that we are using
17998 # Microsoft Visual C++.
17999 if test "$GCC" != yes; then
18000 with_gnu_ld=no
18001 fi
18002 ;;
18003 interix*)
18004 # we just hope/assume this is gcc and not c89 (= MSVC++)
18005 with_gnu_ld=yes
18006 ;;
18007 openbsd*)
18008 with_gnu_ld=no
18009 ;;
18010 esac
18011
18012 ld_shlibs_GCJ=yes
18013 if test "$with_gnu_ld" = yes; then
18014 # If archive_cmds runs LD, not CC, wlarc should be empty
18015 wlarc='${wl}'
18016
18017 # Set some defaults for GNU ld with shared library support. These
18018 # are reset later if shared libraries are not supported. Putting them
18019 # here allows them to be overridden if necessary.
18020 runpath_var=LD_RUN_PATH
18021 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18022 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18023 # ancient GNU ld didn't support --whole-archive et. al.
18024 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18025 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18026 else
18027 whole_archive_flag_spec_GCJ=
18028 fi
18029 supports_anon_versioning=no
18030 case `$LD -v 2>/dev/null` in
18031 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18032 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18033 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18034 *\ 2.11.*) ;; # other 2.11 versions
18035 *) supports_anon_versioning=yes ;;
18036 esac
18037
18038 # See if GNU ld supports shared libraries.
18039 case $host_os in
18040 aix3* | aix4* | aix5*)
18041 # On AIX/PPC, the GNU linker is very broken
18042 if test "$host_cpu" != ia64; then
18043 ld_shlibs_GCJ=no
18044 cat <<EOF 1>&2
18045
18046 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18047 *** to be unable to reliably create shared libraries on AIX.
18048 *** Therefore, libtool is disabling shared libraries support. If you
18049 *** really care for shared libraries, you may want to modify your PATH
18050 *** so that a non-GNU linker is found, and then restart.
18051
18052 EOF
18053 fi
18054 ;;
18055
18056 amigaos*)
18057 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)'
18058 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18059 hardcode_minus_L_GCJ=yes
18060
18061 # Samuel A. Falvo II <[email protected]> reports
18062 # that the semantics of dynamic libraries on AmigaOS, at least up
18063 # to version 4, is to share data among multiple programs linked
18064 # with the same dynamic library. Since this doesn't match the
18065 # behavior of shared libraries on other platforms, we can't use
18066 # them.
18067 ld_shlibs_GCJ=no
18068 ;;
18069
18070 beos*)
18071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18072 allow_undefined_flag_GCJ=unsupported
18073 # Joseph Beckenbach <[email protected]> says some releases of gcc
18074 # support --undefined. This deserves some investigation. FIXME
18075 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18076 else
18077 ld_shlibs_GCJ=no
18078 fi
18079 ;;
18080
18081 cygwin* | mingw* | pw32*)
18082 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18083 # as there is no search path for DLLs.
18084 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18085 allow_undefined_flag_GCJ=unsupported
18086 always_export_symbols_GCJ=no
18087 enable_shared_with_static_runtimes_GCJ=yes
18088 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18089
18090 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18091 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18092 # If the export-symbols file already is a .def file (1st line
18093 # is EXPORTS), use it as is; otherwise, prepend...
18094 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18095 cp $export_symbols $output_objdir/$soname.def;
18096 else
18097 echo EXPORTS > $output_objdir/$soname.def;
18098 cat $export_symbols >> $output_objdir/$soname.def;
18099 fi~
18100 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18101 else
18102 ld_shlibs_GCJ=no
18103 fi
18104 ;;
18105
18106 interix3*)
18107 hardcode_direct_GCJ=no
18108 hardcode_shlibpath_var_GCJ=no
18109 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18110 export_dynamic_flag_spec_GCJ='${wl}-E'
18111 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18112 # Instead, shared libraries are loaded at an image base (0x10000000 by
18113 # default) and relocated if they conflict, which is a slow very memory
18114 # consuming and fragmenting process. To avoid this, we pick a random,
18115 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18116 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18117 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'
18118 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'
18119 ;;
18120
18121 linux*)
18122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18123 tmp_addflag=
18124 case $cc_basename,$host_cpu in
18125 pgcc*) # Portland Group C compiler
18126 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'
18127 tmp_addflag=' $pic_flag'
18128 ;;
18129 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18130 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'
18131 tmp_addflag=' $pic_flag -Mnomain' ;;
18132 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18133 tmp_addflag=' -i_dynamic' ;;
18134 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18135 tmp_addflag=' -i_dynamic -nofor_main' ;;
18136 ifc* | ifort*) # Intel Fortran compiler
18137 tmp_addflag=' -nofor_main' ;;
18138 esac
18139 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18140
18141 if test $supports_anon_versioning = yes; then
18142 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18143 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18144 $echo "local: *; };" >> $output_objdir/$libname.ver~
18145 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18146 fi
18147 else
18148 ld_shlibs_GCJ=no
18149 fi
18150 ;;
18151
18152 netbsd*)
18153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18154 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18155 wlarc=
18156 else
18157 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18158 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18159 fi
18160 ;;
18161
18162 solaris*)
18163 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18164 ld_shlibs_GCJ=no
18165 cat <<EOF 1>&2
18166
18167 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18168 *** create shared libraries on Solaris systems. Therefore, libtool
18169 *** is disabling shared libraries support. We urge you to upgrade GNU
18170 *** binutils to release 2.9.1 or newer. Another option is to modify
18171 *** your PATH or compiler configuration so that the native linker is
18172 *** used, and then restart.
18173
18174 EOF
18175 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18176 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18177 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18178 else
18179 ld_shlibs_GCJ=no
18180 fi
18181 ;;
18182
18183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18184 case `$LD -v 2>&1` in
18185 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18186 ld_shlibs_GCJ=no
18187 cat <<_LT_EOF 1>&2
18188
18189 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18190 *** reliably create shared libraries on SCO systems. Therefore, libtool
18191 *** is disabling shared libraries support. We urge you to upgrade GNU
18192 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18193 *** your PATH or compiler configuration so that the native linker is
18194 *** used, and then restart.
18195
18196 _LT_EOF
18197 ;;
18198 *)
18199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18200 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18201 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18202 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18203 else
18204 ld_shlibs_GCJ=no
18205 fi
18206 ;;
18207 esac
18208 ;;
18209
18210 sunos4*)
18211 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18212 wlarc=
18213 hardcode_direct_GCJ=yes
18214 hardcode_shlibpath_var_GCJ=no
18215 ;;
18216
18217 *)
18218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18219 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18220 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18221 else
18222 ld_shlibs_GCJ=no
18223 fi
18224 ;;
18225 esac
18226
18227 if test "$ld_shlibs_GCJ" = no; then
18228 runpath_var=
18229 hardcode_libdir_flag_spec_GCJ=
18230 export_dynamic_flag_spec_GCJ=
18231 whole_archive_flag_spec_GCJ=
18232 fi
18233 else
18234 # PORTME fill in a description of your system's linker (not GNU ld)
18235 case $host_os in
18236 aix3*)
18237 allow_undefined_flag_GCJ=unsupported
18238 always_export_symbols_GCJ=yes
18239 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'
18240 # Note: this linker hardcodes the directories in LIBPATH if there
18241 # are no directories specified by -L.
18242 hardcode_minus_L_GCJ=yes
18243 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18244 # Neither direct hardcoding nor static linking is supported with a
18245 # broken collect2.
18246 hardcode_direct_GCJ=unsupported
18247 fi
18248 ;;
18249
18250 aix4* | aix5*)
18251 if test "$host_cpu" = ia64; then
18252 # On IA64, the linker does run time linking by default, so we don't
18253 # have to do anything special.
18254 aix_use_runtimelinking=no
18255 exp_sym_flag='-Bexport'
18256 no_entry_flag=""
18257 else
18258 # If we're using GNU nm, then we don't want the "-C" option.
18259 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18260 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18261 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'
18262 else
18263 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'
18264 fi
18265 aix_use_runtimelinking=no
18266
18267 # Test if we are trying to use run time linking or normal
18268 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18269 # need to do runtime linking.
18270 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18271 for ld_flag in $LDFLAGS; do
18272 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18273 aix_use_runtimelinking=yes
18274 break
18275 fi
18276 done
18277 ;;
18278 esac
18279
18280 exp_sym_flag='-bexport'
18281 no_entry_flag='-bnoentry'
18282 fi
18283
18284 # When large executables or shared objects are built, AIX ld can
18285 # have problems creating the table of contents. If linking a library
18286 # or program results in "error TOC overflow" add -mminimal-toc to
18287 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18288 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18289
18290 archive_cmds_GCJ=''
18291 hardcode_direct_GCJ=yes
18292 hardcode_libdir_separator_GCJ=':'
18293 link_all_deplibs_GCJ=yes
18294
18295 if test "$GCC" = yes; then
18296 case $host_os in aix4.[012]|aix4.[012].*)
18297 # We only want to do this on AIX 4.2 and lower, the check
18298 # below for broken collect2 doesn't work under 4.3+
18299 collect2name=`${CC} -print-prog-name=collect2`
18300 if test -f "$collect2name" && \
18301 strings "$collect2name" | grep resolve_lib_name >/dev/null
18302 then
18303 # We have reworked collect2
18304 hardcode_direct_GCJ=yes
18305 else
18306 # We have old collect2
18307 hardcode_direct_GCJ=unsupported
18308 # It fails to find uninstalled libraries when the uninstalled
18309 # path is not listed in the libpath. Setting hardcode_minus_L
18310 # to unsupported forces relinking
18311 hardcode_minus_L_GCJ=yes
18312 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18313 hardcode_libdir_separator_GCJ=
18314 fi
18315 ;;
18316 esac
18317 shared_flag='-shared'
18318 if test "$aix_use_runtimelinking" = yes; then
18319 shared_flag="$shared_flag "'${wl}-G'
18320 fi
18321 else
18322 # not using gcc
18323 if test "$host_cpu" = ia64; then
18324 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18325 # chokes on -Wl,-G. The following line is correct:
18326 shared_flag='-G'
18327 else
18328 if test "$aix_use_runtimelinking" = yes; then
18329 shared_flag='${wl}-G'
18330 else
18331 shared_flag='${wl}-bM:SRE'
18332 fi
18333 fi
18334 fi
18335
18336 # It seems that -bexpall does not export symbols beginning with
18337 # underscore (_), so it is better to generate a list of symbols to export.
18338 always_export_symbols_GCJ=yes
18339 if test "$aix_use_runtimelinking" = yes; then
18340 # Warning - without using the other runtime loading flags (-brtl),
18341 # -berok will link without error, but may produce a broken library.
18342 allow_undefined_flag_GCJ='-berok'
18343 # Determine the default libpath from the value encoded in an empty executable.
18344 cat >conftest.$ac_ext <<_ACEOF
18345 /* confdefs.h. */
18346 _ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18350
18351 int
18352 main ()
18353 {
18354
18355 ;
18356 return 0;
18357 }
18358 _ACEOF
18359 rm -f conftest.$ac_objext conftest$ac_exeext
18360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18361 (eval $ac_link) 2>conftest.er1
18362 ac_status=$?
18363 grep -v '^ *+' conftest.er1 >conftest.err
18364 rm -f conftest.er1
18365 cat conftest.err >&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } &&
18368 { ac_try='test -z "$ac_c_werror_flag"
18369 || test ! -s conftest.err'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18372 ac_status=$?
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; } &&
18375 { ac_try='test -s conftest$ac_exeext'
18376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377 (eval $ac_try) 2>&5
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; }; then
18381
18382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18383 }'`
18384 # Check for a 64-bit object if we didn't find anything.
18385 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; }
18386 }'`; fi
18387 else
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18390
18391 fi
18392 rm -f conftest.err conftest.$ac_objext \
18393 conftest$ac_exeext conftest.$ac_ext
18394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18395
18396 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18397 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"
18398 else
18399 if test "$host_cpu" = ia64; then
18400 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18401 allow_undefined_flag_GCJ="-z nodefs"
18402 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"
18403 else
18404 # Determine the default libpath from the value encoded in an empty executable.
18405 cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h. */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h. */
18411
18412 int
18413 main ()
18414 {
18415
18416 ;
18417 return 0;
18418 }
18419 _ACEOF
18420 rm -f conftest.$ac_objext conftest$ac_exeext
18421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18422 (eval $ac_link) 2>conftest.er1
18423 ac_status=$?
18424 grep -v '^ *+' conftest.er1 >conftest.err
18425 rm -f conftest.er1
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
18429 { ac_try='test -z "$ac_c_werror_flag"
18430 || test ! -s conftest.err'
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; } &&
18436 { ac_try='test -s conftest$ac_exeext'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442
18443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18444 }'`
18445 # Check for a 64-bit object if we didn't find anything.
18446 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; }
18447 }'`; fi
18448 else
18449 echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18451
18452 fi
18453 rm -f conftest.err conftest.$ac_objext \
18454 conftest$ac_exeext conftest.$ac_ext
18455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18456
18457 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18458 # Warning - without using the other run time loading flags,
18459 # -berok will link without error, but may produce a broken library.
18460 no_undefined_flag_GCJ=' ${wl}-bernotok'
18461 allow_undefined_flag_GCJ=' ${wl}-berok'
18462 # Exported symbols can be pulled into shared objects from archives
18463 whole_archive_flag_spec_GCJ='$convenience'
18464 archive_cmds_need_lc_GCJ=yes
18465 # This is similar to how AIX traditionally builds its shared libraries.
18466 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'
18467 fi
18468 fi
18469 ;;
18470
18471 amigaos*)
18472 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)'
18473 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18474 hardcode_minus_L_GCJ=yes
18475 # see comment about different semantics on the GNU ld section
18476 ld_shlibs_GCJ=no
18477 ;;
18478
18479 bsdi[45]*)
18480 export_dynamic_flag_spec_GCJ=-rdynamic
18481 ;;
18482
18483 cygwin* | mingw* | pw32*)
18484 # When not using gcc, we currently assume that we are using
18485 # Microsoft Visual C++.
18486 # hardcode_libdir_flag_spec is actually meaningless, as there is
18487 # no search path for DLLs.
18488 hardcode_libdir_flag_spec_GCJ=' '
18489 allow_undefined_flag_GCJ=unsupported
18490 # Tell ltmain to make .lib files, not .a files.
18491 libext=lib
18492 # Tell ltmain to make .dll files, not .so files.
18493 shrext_cmds=".dll"
18494 # FIXME: Setting linknames here is a bad hack.
18495 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18496 # The linker will automatically build a .lib file if we build a DLL.
18497 old_archive_From_new_cmds_GCJ='true'
18498 # FIXME: Should let the user specify the lib program.
18499 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18500 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18501 enable_shared_with_static_runtimes_GCJ=yes
18502 ;;
18503
18504 darwin* | rhapsody*)
18505 case $host_os in
18506 rhapsody* | darwin1.[012])
18507 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18508 ;;
18509 *) # Darwin 1.3 on
18510 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18511 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18512 else
18513 case ${MACOSX_DEPLOYMENT_TARGET} in
18514 10.[012])
18515 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18516 ;;
18517 10.*)
18518 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18519 ;;
18520 esac
18521 fi
18522 ;;
18523 esac
18524 archive_cmds_need_lc_GCJ=no
18525 hardcode_direct_GCJ=no
18526 hardcode_automatic_GCJ=yes
18527 hardcode_shlibpath_var_GCJ=unsupported
18528 whole_archive_flag_spec_GCJ=''
18529 link_all_deplibs_GCJ=yes
18530 if test "$GCC" = yes ; then
18531 output_verbose_link_cmd='echo'
18532 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18533 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18534 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18535 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}'
18536 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}'
18537 else
18538 case $cc_basename in
18539 xlc*)
18540 output_verbose_link_cmd='echo'
18541 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18542 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18543 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18544 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}'
18545 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}'
18546 ;;
18547 *)
18548 ld_shlibs_GCJ=no
18549 ;;
18550 esac
18551 fi
18552 ;;
18553
18554 dgux*)
18555 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18556 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18557 hardcode_shlibpath_var_GCJ=no
18558 ;;
18559
18560 freebsd1*)
18561 ld_shlibs_GCJ=no
18562 ;;
18563
18564 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18565 # support. Future versions do this automatically, but an explicit c++rt0.o
18566 # does not break anything, and helps significantly (at the cost of a little
18567 # extra space).
18568 freebsd2.2*)
18569 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18570 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18571 hardcode_direct_GCJ=yes
18572 hardcode_shlibpath_var_GCJ=no
18573 ;;
18574
18575 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18576 freebsd2*)
18577 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18578 hardcode_direct_GCJ=yes
18579 hardcode_minus_L_GCJ=yes
18580 hardcode_shlibpath_var_GCJ=no
18581 ;;
18582
18583 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18584 freebsd* | kfreebsd*-gnu | dragonfly*)
18585 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18586 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18587 hardcode_direct_GCJ=yes
18588 hardcode_shlibpath_var_GCJ=no
18589 ;;
18590
18591 hpux9*)
18592 if test "$GCC" = yes; then
18593 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'
18594 else
18595 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'
18596 fi
18597 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18598 hardcode_libdir_separator_GCJ=:
18599 hardcode_direct_GCJ=yes
18600
18601 # hardcode_minus_L: Not really in the search PATH,
18602 # but as the default location of the library.
18603 hardcode_minus_L_GCJ=yes
18604 export_dynamic_flag_spec_GCJ='${wl}-E'
18605 ;;
18606
18607 hpux10*)
18608 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18609 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18610 else
18611 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18612 fi
18613 if test "$with_gnu_ld" = no; then
18614 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18615 hardcode_libdir_separator_GCJ=:
18616
18617 hardcode_direct_GCJ=yes
18618 export_dynamic_flag_spec_GCJ='${wl}-E'
18619
18620 # hardcode_minus_L: Not really in the search PATH,
18621 # but as the default location of the library.
18622 hardcode_minus_L_GCJ=yes
18623 fi
18624 ;;
18625
18626 hpux11*)
18627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18628 case $host_cpu in
18629 hppa*64*)
18630 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18631 ;;
18632 ia64*)
18633 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18634 ;;
18635 *)
18636 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18637 ;;
18638 esac
18639 else
18640 case $host_cpu in
18641 hppa*64*)
18642 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18643 ;;
18644 ia64*)
18645 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18646 ;;
18647 *)
18648 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18649 ;;
18650 esac
18651 fi
18652 if test "$with_gnu_ld" = no; then
18653 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18654 hardcode_libdir_separator_GCJ=:
18655
18656 case $host_cpu in
18657 hppa*64*|ia64*)
18658 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18659 hardcode_direct_GCJ=no
18660 hardcode_shlibpath_var_GCJ=no
18661 ;;
18662 *)
18663 hardcode_direct_GCJ=yes
18664 export_dynamic_flag_spec_GCJ='${wl}-E'
18665
18666 # hardcode_minus_L: Not really in the search PATH,
18667 # but as the default location of the library.
18668 hardcode_minus_L_GCJ=yes
18669 ;;
18670 esac
18671 fi
18672 ;;
18673
18674 irix5* | irix6* | nonstopux*)
18675 if test "$GCC" = yes; then
18676 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'
18677 else
18678 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'
18679 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18680 fi
18681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18682 hardcode_libdir_separator_GCJ=:
18683 link_all_deplibs_GCJ=yes
18684 ;;
18685
18686 netbsd*)
18687 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18688 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18689 else
18690 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18691 fi
18692 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18693 hardcode_direct_GCJ=yes
18694 hardcode_shlibpath_var_GCJ=no
18695 ;;
18696
18697 newsos6)
18698 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18699 hardcode_direct_GCJ=yes
18700 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18701 hardcode_libdir_separator_GCJ=:
18702 hardcode_shlibpath_var_GCJ=no
18703 ;;
18704
18705 openbsd*)
18706 hardcode_direct_GCJ=yes
18707 hardcode_shlibpath_var_GCJ=no
18708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18709 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18710 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18711 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18712 export_dynamic_flag_spec_GCJ='${wl}-E'
18713 else
18714 case $host_os in
18715 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18716 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18717 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18718 ;;
18719 *)
18720 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18721 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18722 ;;
18723 esac
18724 fi
18725 ;;
18726
18727 os2*)
18728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18729 hardcode_minus_L_GCJ=yes
18730 allow_undefined_flag_GCJ=unsupported
18731 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'
18732 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18733 ;;
18734
18735 osf3*)
18736 if test "$GCC" = yes; then
18737 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18738 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'
18739 else
18740 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18741 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'
18742 fi
18743 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18744 hardcode_libdir_separator_GCJ=:
18745 ;;
18746
18747 osf4* | osf5*) # as osf3* with the addition of -msym flag
18748 if test "$GCC" = yes; then
18749 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18750 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'
18751 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18752 else
18753 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18754 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'
18755 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~
18756 $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'
18757
18758 # Both c and cxx compiler support -rpath directly
18759 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18760 fi
18761 hardcode_libdir_separator_GCJ=:
18762 ;;
18763
18764 solaris*)
18765 no_undefined_flag_GCJ=' -z text'
18766 if test "$GCC" = yes; then
18767 wlarc='${wl}'
18768 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18769 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18770 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18771 else
18772 wlarc=''
18773 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18774 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18775 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18776 fi
18777 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18778 hardcode_shlibpath_var_GCJ=no
18779 case $host_os in
18780 solaris2.[0-5] | solaris2.[0-5].*) ;;
18781 *)
18782 # The compiler driver will combine linker options so we
18783 # cannot just pass the convience library names through
18784 # without $wl, iff we do not link with $LD.
18785 # Luckily, gcc supports the same syntax we need for Sun Studio.
18786 # Supported since Solaris 2.6 (maybe 2.5.1?)
18787 case $wlarc in
18788 '')
18789 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18790 *)
18791 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' ;;
18792 esac ;;
18793 esac
18794 link_all_deplibs_GCJ=yes
18795 ;;
18796
18797 sunos4*)
18798 if test "x$host_vendor" = xsequent; then
18799 # Use $CC to link under sequent, because it throws in some extra .o
18800 # files that make .init and .fini sections work.
18801 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18802 else
18803 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18804 fi
18805 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18806 hardcode_direct_GCJ=yes
18807 hardcode_minus_L_GCJ=yes
18808 hardcode_shlibpath_var_GCJ=no
18809 ;;
18810
18811 sysv4)
18812 case $host_vendor in
18813 sni)
18814 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18815 hardcode_direct_GCJ=yes # is this really true???
18816 ;;
18817 siemens)
18818 ## LD is ld it makes a PLAMLIB
18819 ## CC just makes a GrossModule.
18820 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18821 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18822 hardcode_direct_GCJ=no
18823 ;;
18824 motorola)
18825 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18826 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18827 ;;
18828 esac
18829 runpath_var='LD_RUN_PATH'
18830 hardcode_shlibpath_var_GCJ=no
18831 ;;
18832
18833 sysv4.3*)
18834 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18835 hardcode_shlibpath_var_GCJ=no
18836 export_dynamic_flag_spec_GCJ='-Bexport'
18837 ;;
18838
18839 sysv4*MP*)
18840 if test -d /usr/nec; then
18841 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18842 hardcode_shlibpath_var_GCJ=no
18843 runpath_var=LD_RUN_PATH
18844 hardcode_runpath_var=yes
18845 ld_shlibs_GCJ=yes
18846 fi
18847 ;;
18848
18849 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18850 no_undefined_flag_GCJ='${wl}-z,text'
18851 archive_cmds_need_lc_GCJ=no
18852 hardcode_shlibpath_var_GCJ=no
18853 runpath_var='LD_RUN_PATH'
18854
18855 if test "$GCC" = yes; then
18856 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18857 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18858 else
18859 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18860 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18861 fi
18862 ;;
18863
18864 sysv5* | sco3.2v5* | sco5v6*)
18865 # Note: We can NOT use -z defs as we might desire, because we do not
18866 # link with -lc, and that would cause any symbols used from libc to
18867 # always be unresolved, which means just about no library would
18868 # ever link correctly. If we're not using GNU ld we use -z text
18869 # though, which does catch some bad symbols but isn't as heavy-handed
18870 # as -z defs.
18871 no_undefined_flag_GCJ='${wl}-z,text'
18872 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18873 archive_cmds_need_lc_GCJ=no
18874 hardcode_shlibpath_var_GCJ=no
18875 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18876 hardcode_libdir_separator_GCJ=':'
18877 link_all_deplibs_GCJ=yes
18878 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18879 runpath_var='LD_RUN_PATH'
18880
18881 if test "$GCC" = yes; then
18882 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18883 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18884 else
18885 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18886 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18887 fi
18888 ;;
18889
18890 uts4*)
18891 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18892 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18893 hardcode_shlibpath_var_GCJ=no
18894 ;;
18895
18896 *)
18897 ld_shlibs_GCJ=no
18898 ;;
18899 esac
18900 fi
18901
18902 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18903 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18904 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18905
18906 #
18907 # Do we need to explicitly link libc?
18908 #
18909 case "x$archive_cmds_need_lc_GCJ" in
18910 x|xyes)
18911 # Assume -lc should be added
18912 archive_cmds_need_lc_GCJ=yes
18913
18914 if test "$enable_shared" = yes && test "$GCC" = yes; then
18915 case $archive_cmds_GCJ in
18916 *'~'*)
18917 # FIXME: we may have to deal with multi-command sequences.
18918 ;;
18919 '$CC '*)
18920 # Test whether the compiler implicitly links with -lc since on some
18921 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18922 # to ld, don't add -lc before -lgcc.
18923 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18924 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18925 $rm conftest*
18926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18927
18928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18929 (eval $ac_compile) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } 2>conftest.err; then
18933 soname=conftest
18934 lib=conftest
18935 libobjs=conftest.$ac_objext
18936 deplibs=
18937 wl=$lt_prog_compiler_wl_GCJ
18938 pic_flag=$lt_prog_compiler_pic_GCJ
18939 compiler_flags=-v
18940 linker_flags=-v
18941 verstring=
18942 output_objdir=.
18943 libname=conftest
18944 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18945 allow_undefined_flag_GCJ=
18946 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18947 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }
18951 then
18952 archive_cmds_need_lc_GCJ=no
18953 else
18954 archive_cmds_need_lc_GCJ=yes
18955 fi
18956 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18957 else
18958 cat conftest.err 1>&5
18959 fi
18960 $rm conftest*
18961 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18962 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18963 ;;
18964 esac
18965 fi
18966 ;;
18967 esac
18968
18969 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18970 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18971 library_names_spec=
18972 libname_spec='lib$name'
18973 soname_spec=
18974 shrext_cmds=".so"
18975 postinstall_cmds=
18976 postuninstall_cmds=
18977 finish_cmds=
18978 finish_eval=
18979 shlibpath_var=
18980 shlibpath_overrides_runpath=unknown
18981 version_type=none
18982 dynamic_linker="$host_os ld.so"
18983 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18984 if test "$GCC" = yes; then
18985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18986 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18987 # if the path contains ";" then we assume it to be the separator
18988 # otherwise default to the standard path separator (i.e. ":") - it is
18989 # assumed that no part of a normal pathname contains ";" but that should
18990 # okay in the real world where ";" in dirpaths is itself problematic.
18991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18992 else
18993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18994 fi
18995 else
18996 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18997 fi
18998 need_lib_prefix=unknown
18999 hardcode_into_libs=no
19000
19001 # when you set need_version to no, make sure it does not cause -set_version
19002 # flags to be left without arguments
19003 need_version=unknown
19004
19005 case $host_os in
19006 aix3*)
19007 version_type=linux
19008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19009 shlibpath_var=LIBPATH
19010
19011 # AIX 3 has no versioning support, so we append a major version to the name.
19012 soname_spec='${libname}${release}${shared_ext}$major'
19013 ;;
19014
19015 aix4* | aix5*)
19016 version_type=linux
19017 need_lib_prefix=no
19018 need_version=no
19019 hardcode_into_libs=yes
19020 if test "$host_cpu" = ia64; then
19021 # AIX 5 supports IA64
19022 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19023 shlibpath_var=LD_LIBRARY_PATH
19024 else
19025 # With GCC up to 2.95.x, collect2 would create an import file
19026 # for dependence libraries. The import file would start with
19027 # the line `#! .'. This would cause the generated library to
19028 # depend on `.', always an invalid library. This was fixed in
19029 # development snapshots of GCC prior to 3.0.
19030 case $host_os in
19031 aix4 | aix4.[01] | aix4.[01].*)
19032 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19033 echo ' yes '
19034 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19035 :
19036 else
19037 can_build_shared=no
19038 fi
19039 ;;
19040 esac
19041 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19042 # soname into executable. Probably we can add versioning support to
19043 # collect2, so additional links can be useful in future.
19044 if test "$aix_use_runtimelinking" = yes; then
19045 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19046 # instead of lib<name>.a to let people know that these are not
19047 # typical AIX shared libraries.
19048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19049 else
19050 # We preserve .a as extension for shared libraries through AIX4.2
19051 # and later when we are not doing run time linking.
19052 library_names_spec='${libname}${release}.a $libname.a'
19053 soname_spec='${libname}${release}${shared_ext}$major'
19054 fi
19055 shlibpath_var=LIBPATH
19056 fi
19057 ;;
19058
19059 amigaos*)
19060 library_names_spec='$libname.ixlibrary $libname.a'
19061 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19062 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'
19063 ;;
19064
19065 beos*)
19066 library_names_spec='${libname}${shared_ext}'
19067 dynamic_linker="$host_os ld.so"
19068 shlibpath_var=LIBRARY_PATH
19069 ;;
19070
19071 bsdi[45]*)
19072 version_type=linux
19073 need_version=no
19074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19075 soname_spec='${libname}${release}${shared_ext}$major'
19076 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19077 shlibpath_var=LD_LIBRARY_PATH
19078 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19079 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19080 # the default ld.so.conf also contains /usr/contrib/lib and
19081 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19082 # libtool to hard-code these into programs
19083 ;;
19084
19085 cygwin* | mingw* | pw32*)
19086 version_type=windows
19087 shrext_cmds=".dll"
19088 need_version=no
19089 need_lib_prefix=no
19090
19091 case $GCC,$host_os in
19092 yes,cygwin* | yes,mingw* | yes,pw32*)
19093 library_names_spec='$libname.dll.a'
19094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19095 postinstall_cmds='base_file=`basename \${file}`~
19096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19097 dldir=$destdir/`dirname \$dlpath`~
19098 test -d \$dldir || mkdir -p \$dldir~
19099 $install_prog $dir/$dlname \$dldir/$dlname~
19100 chmod a+x \$dldir/$dlname'
19101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19102 dlpath=$dir/\$dldll~
19103 $rm \$dlpath'
19104 shlibpath_overrides_runpath=yes
19105
19106 case $host_os in
19107 cygwin*)
19108 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19109 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19110 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19111 ;;
19112 mingw*)
19113 # MinGW DLLs use traditional 'lib' prefix
19114 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19115 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19116 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19117 # It is most probably a Windows format PATH printed by
19118 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19119 # path with ; separators, and with drive letters. We can handle the
19120 # drive letters (cygwin fileutils understands them), so leave them,
19121 # especially as we might pass files found there to a mingw objdump,
19122 # which wouldn't understand a cygwinified path. Ahh.
19123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19124 else
19125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19126 fi
19127 ;;
19128 pw32*)
19129 # pw32 DLLs use 'pw' prefix rather than 'lib'
19130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19131 ;;
19132 esac
19133 ;;
19134
19135 *)
19136 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19137 ;;
19138 esac
19139 dynamic_linker='Win32 ld.exe'
19140 # FIXME: first we should search . and the directory the executable is in
19141 shlibpath_var=PATH
19142 ;;
19143
19144 darwin* | rhapsody*)
19145 dynamic_linker="$host_os dyld"
19146 version_type=darwin
19147 need_lib_prefix=no
19148 need_version=no
19149 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19150 soname_spec='${libname}${release}${major}$shared_ext'
19151 shlibpath_overrides_runpath=yes
19152 shlibpath_var=DYLD_LIBRARY_PATH
19153 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19154 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19155 if test "$GCC" = yes; then
19156 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"`
19157 else
19158 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19159 fi
19160 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19161 ;;
19162
19163 dgux*)
19164 version_type=linux
19165 need_lib_prefix=no
19166 need_version=no
19167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19168 soname_spec='${libname}${release}${shared_ext}$major'
19169 shlibpath_var=LD_LIBRARY_PATH
19170 ;;
19171
19172 freebsd1*)
19173 dynamic_linker=no
19174 ;;
19175
19176 kfreebsd*-gnu)
19177 version_type=linux
19178 need_lib_prefix=no
19179 need_version=no
19180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19181 soname_spec='${libname}${release}${shared_ext}$major'
19182 shlibpath_var=LD_LIBRARY_PATH
19183 shlibpath_overrides_runpath=no
19184 hardcode_into_libs=yes
19185 dynamic_linker='GNU ld.so'
19186 ;;
19187
19188 freebsd* | dragonfly*)
19189 # DragonFly does not have aout. When/if they implement a new
19190 # versioning mechanism, adjust this.
19191 if test -x /usr/bin/objformat; then
19192 objformat=`/usr/bin/objformat`
19193 else
19194 case $host_os in
19195 freebsd[123]*) objformat=aout ;;
19196 *) objformat=elf ;;
19197 esac
19198 fi
19199 version_type=freebsd-$objformat
19200 case $version_type in
19201 freebsd-elf*)
19202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19203 need_version=no
19204 need_lib_prefix=no
19205 ;;
19206 freebsd-*)
19207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19208 need_version=yes
19209 ;;
19210 esac
19211 shlibpath_var=LD_LIBRARY_PATH
19212 case $host_os in
19213 freebsd2*)
19214 shlibpath_overrides_runpath=yes
19215 ;;
19216 freebsd3.[01]* | freebsdelf3.[01]*)
19217 shlibpath_overrides_runpath=yes
19218 hardcode_into_libs=yes
19219 ;;
19220 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19221 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19222 shlibpath_overrides_runpath=no
19223 hardcode_into_libs=yes
19224 ;;
19225 freebsd*) # from 4.6 on
19226 shlibpath_overrides_runpath=yes
19227 hardcode_into_libs=yes
19228 ;;
19229 esac
19230 ;;
19231
19232 gnu*)
19233 version_type=linux
19234 need_lib_prefix=no
19235 need_version=no
19236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19237 soname_spec='${libname}${release}${shared_ext}$major'
19238 shlibpath_var=LD_LIBRARY_PATH
19239 hardcode_into_libs=yes
19240 ;;
19241
19242 hpux9* | hpux10* | hpux11*)
19243 # Give a soname corresponding to the major version so that dld.sl refuses to
19244 # link against other versions.
19245 version_type=sunos
19246 need_lib_prefix=no
19247 need_version=no
19248 case $host_cpu in
19249 ia64*)
19250 shrext_cmds='.so'
19251 hardcode_into_libs=yes
19252 dynamic_linker="$host_os dld.so"
19253 shlibpath_var=LD_LIBRARY_PATH
19254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19256 soname_spec='${libname}${release}${shared_ext}$major'
19257 if test "X$HPUX_IA64_MODE" = X32; then
19258 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19259 else
19260 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19261 fi
19262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19263 ;;
19264 hppa*64*)
19265 shrext_cmds='.sl'
19266 hardcode_into_libs=yes
19267 dynamic_linker="$host_os dld.sl"
19268 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19269 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19271 soname_spec='${libname}${release}${shared_ext}$major'
19272 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19274 ;;
19275 *)
19276 shrext_cmds='.sl'
19277 dynamic_linker="$host_os dld.sl"
19278 shlibpath_var=SHLIB_PATH
19279 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19281 soname_spec='${libname}${release}${shared_ext}$major'
19282 ;;
19283 esac
19284 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19285 postinstall_cmds='chmod 555 $lib'
19286 ;;
19287
19288 interix3*)
19289 version_type=linux
19290 need_lib_prefix=no
19291 need_version=no
19292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19293 soname_spec='${libname}${release}${shared_ext}$major'
19294 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19295 shlibpath_var=LD_LIBRARY_PATH
19296 shlibpath_overrides_runpath=no
19297 hardcode_into_libs=yes
19298 ;;
19299
19300 irix5* | irix6* | nonstopux*)
19301 case $host_os in
19302 nonstopux*) version_type=nonstopux ;;
19303 *)
19304 if test "$lt_cv_prog_gnu_ld" = yes; then
19305 version_type=linux
19306 else
19307 version_type=irix
19308 fi ;;
19309 esac
19310 need_lib_prefix=no
19311 need_version=no
19312 soname_spec='${libname}${release}${shared_ext}$major'
19313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19314 case $host_os in
19315 irix5* | nonstopux*)
19316 libsuff= shlibsuff=
19317 ;;
19318 *)
19319 case $LD in # libtool.m4 will add one of these switches to LD
19320 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19321 libsuff= shlibsuff= libmagic=32-bit;;
19322 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19323 libsuff=32 shlibsuff=N32 libmagic=N32;;
19324 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19325 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19326 *) libsuff= shlibsuff= libmagic=never-match;;
19327 esac
19328 ;;
19329 esac
19330 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19331 shlibpath_overrides_runpath=no
19332 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19333 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19334 hardcode_into_libs=yes
19335 ;;
19336
19337 # No shared lib support for Linux oldld, aout, or coff.
19338 linux*oldld* | linux*aout* | linux*coff*)
19339 dynamic_linker=no
19340 ;;
19341
19342 # This must be Linux ELF.
19343 linux*)
19344 version_type=linux
19345 need_lib_prefix=no
19346 need_version=no
19347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19348 soname_spec='${libname}${release}${shared_ext}$major'
19349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19350 shlibpath_var=LD_LIBRARY_PATH
19351 shlibpath_overrides_runpath=no
19352 # This implies no fast_install, which is unacceptable.
19353 # Some rework will be needed to allow for fast_install
19354 # before this can be enabled.
19355 hardcode_into_libs=yes
19356
19357 # Append ld.so.conf contents to the search path
19358 if test -f /etc/ld.so.conf; then
19359 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' ' '`
19360 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19361 fi
19362
19363 # We used to test for /lib/ld.so.1 and disable shared libraries on
19364 # powerpc, because MkLinux only supported shared libraries with the
19365 # GNU dynamic linker. Since this was broken with cross compilers,
19366 # most powerpc-linux boxes support dynamic linking these days and
19367 # people can always --disable-shared, the test was removed, and we
19368 # assume the GNU/Linux dynamic linker is in use.
19369 dynamic_linker='GNU/Linux ld.so'
19370 ;;
19371
19372 knetbsd*-gnu)
19373 version_type=linux
19374 need_lib_prefix=no
19375 need_version=no
19376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19377 soname_spec='${libname}${release}${shared_ext}$major'
19378 shlibpath_var=LD_LIBRARY_PATH
19379 shlibpath_overrides_runpath=no
19380 hardcode_into_libs=yes
19381 dynamic_linker='GNU ld.so'
19382 ;;
19383
19384 netbsd*)
19385 version_type=sunos
19386 need_lib_prefix=no
19387 need_version=no
19388 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19391 dynamic_linker='NetBSD (a.out) ld.so'
19392 else
19393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19394 soname_spec='${libname}${release}${shared_ext}$major'
19395 dynamic_linker='NetBSD ld.elf_so'
19396 fi
19397 shlibpath_var=LD_LIBRARY_PATH
19398 shlibpath_overrides_runpath=yes
19399 hardcode_into_libs=yes
19400 ;;
19401
19402 newsos6)
19403 version_type=linux
19404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19405 shlibpath_var=LD_LIBRARY_PATH
19406 shlibpath_overrides_runpath=yes
19407 ;;
19408
19409 nto-qnx*)
19410 version_type=linux
19411 need_lib_prefix=no
19412 need_version=no
19413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19414 soname_spec='${libname}${release}${shared_ext}$major'
19415 shlibpath_var=LD_LIBRARY_PATH
19416 shlibpath_overrides_runpath=yes
19417 ;;
19418
19419 openbsd*)
19420 version_type=sunos
19421 sys_lib_dlsearch_path_spec="/usr/lib"
19422 need_lib_prefix=no
19423 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19424 case $host_os in
19425 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19426 *) need_version=no ;;
19427 esac
19428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19430 shlibpath_var=LD_LIBRARY_PATH
19431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19432 case $host_os in
19433 openbsd2.[89] | openbsd2.[89].*)
19434 shlibpath_overrides_runpath=no
19435 ;;
19436 *)
19437 shlibpath_overrides_runpath=yes
19438 ;;
19439 esac
19440 else
19441 shlibpath_overrides_runpath=yes
19442 fi
19443 ;;
19444
19445 os2*)
19446 libname_spec='$name'
19447 shrext_cmds=".dll"
19448 need_lib_prefix=no
19449 library_names_spec='$libname${shared_ext} $libname.a'
19450 dynamic_linker='OS/2 ld.exe'
19451 shlibpath_var=LIBPATH
19452 ;;
19453
19454 osf3* | osf4* | osf5*)
19455 version_type=osf
19456 need_lib_prefix=no
19457 need_version=no
19458 soname_spec='${libname}${release}${shared_ext}$major'
19459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19460 shlibpath_var=LD_LIBRARY_PATH
19461 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19462 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19463 ;;
19464
19465 solaris*)
19466 version_type=linux
19467 need_lib_prefix=no
19468 need_version=no
19469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19470 soname_spec='${libname}${release}${shared_ext}$major'
19471 shlibpath_var=LD_LIBRARY_PATH
19472 shlibpath_overrides_runpath=yes
19473 hardcode_into_libs=yes
19474 # ldd complains unless libraries are executable
19475 postinstall_cmds='chmod +x $lib'
19476 ;;
19477
19478 sunos4*)
19479 version_type=sunos
19480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19481 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19482 shlibpath_var=LD_LIBRARY_PATH
19483 shlibpath_overrides_runpath=yes
19484 if test "$with_gnu_ld" = yes; then
19485 need_lib_prefix=no
19486 fi
19487 need_version=yes
19488 ;;
19489
19490 sysv4 | sysv4.3*)
19491 version_type=linux
19492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19493 soname_spec='${libname}${release}${shared_ext}$major'
19494 shlibpath_var=LD_LIBRARY_PATH
19495 case $host_vendor in
19496 sni)
19497 shlibpath_overrides_runpath=no
19498 need_lib_prefix=no
19499 export_dynamic_flag_spec='${wl}-Blargedynsym'
19500 runpath_var=LD_RUN_PATH
19501 ;;
19502 siemens)
19503 need_lib_prefix=no
19504 ;;
19505 motorola)
19506 need_lib_prefix=no
19507 need_version=no
19508 shlibpath_overrides_runpath=no
19509 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19510 ;;
19511 esac
19512 ;;
19513
19514 sysv4*MP*)
19515 if test -d /usr/nec ;then
19516 version_type=linux
19517 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19518 soname_spec='$libname${shared_ext}.$major'
19519 shlibpath_var=LD_LIBRARY_PATH
19520 fi
19521 ;;
19522
19523 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19524 version_type=freebsd-elf
19525 need_lib_prefix=no
19526 need_version=no
19527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19528 soname_spec='${libname}${release}${shared_ext}$major'
19529 shlibpath_var=LD_LIBRARY_PATH
19530 hardcode_into_libs=yes
19531 if test "$with_gnu_ld" = yes; then
19532 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19533 shlibpath_overrides_runpath=no
19534 else
19535 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19536 shlibpath_overrides_runpath=yes
19537 case $host_os in
19538 sco3.2v5*)
19539 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19540 ;;
19541 esac
19542 fi
19543 sys_lib_dlsearch_path_spec='/usr/lib'
19544 ;;
19545
19546 uts4*)
19547 version_type=linux
19548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19549 soname_spec='${libname}${release}${shared_ext}$major'
19550 shlibpath_var=LD_LIBRARY_PATH
19551 ;;
19552
19553 *)
19554 dynamic_linker=no
19555 ;;
19556 esac
19557 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19558 echo "${ECHO_T}$dynamic_linker" >&6
19559 test "$dynamic_linker" = no && can_build_shared=no
19560
19561 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19562 if test "$GCC" = yes; then
19563 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19564 fi
19565
19566 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19567 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19568 hardcode_action_GCJ=
19569 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19570 test -n "$runpath_var_GCJ" || \
19571 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19572
19573 # We can hardcode non-existant directories.
19574 if test "$hardcode_direct_GCJ" != no &&
19575 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19576 # have to relink, otherwise we might link with an installed library
19577 # when we should be linking with a yet-to-be-installed one
19578 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19579 test "$hardcode_minus_L_GCJ" != no; then
19580 # Linking always hardcodes the temporary library directory.
19581 hardcode_action_GCJ=relink
19582 else
19583 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19584 hardcode_action_GCJ=immediate
19585 fi
19586 else
19587 # We cannot hardcode anything, or else we can only hardcode existing
19588 # directories.
19589 hardcode_action_GCJ=unsupported
19590 fi
19591 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19592 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19593
19594 if test "$hardcode_action_GCJ" = relink; then
19595 # Fast installation is not supported
19596 enable_fast_install=no
19597 elif test "$shlibpath_overrides_runpath" = yes ||
19598 test "$enable_shared" = no; then
19599 # Fast installation is not necessary
19600 enable_fast_install=needless
19601 fi
19602
19603
19604 # The else clause should only fire when bootstrapping the
19605 # libtool distribution, otherwise you forgot to ship ltmain.sh
19606 # with your package, and you will get complaints that there are
19607 # no rules to generate ltmain.sh.
19608 if test -f "$ltmain"; then
19609 # See if we are running on zsh, and set the options which allow our commands through
19610 # without removal of \ escapes.
19611 if test -n "${ZSH_VERSION+set}" ; then
19612 setopt NO_GLOB_SUBST
19613 fi
19614 # Now quote all the things that may contain metacharacters while being
19615 # careful not to overquote the AC_SUBSTed values. We take copies of the
19616 # variables and quote the copies for generation of the libtool script.
19617 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19618 SED SHELL STRIP \
19619 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19620 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19621 deplibs_check_method reload_flag reload_cmds need_locks \
19622 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19623 lt_cv_sys_global_symbol_to_c_name_address \
19624 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19625 old_postinstall_cmds old_postuninstall_cmds \
19626 compiler_GCJ \
19627 CC_GCJ \
19628 LD_GCJ \
19629 lt_prog_compiler_wl_GCJ \
19630 lt_prog_compiler_pic_GCJ \
19631 lt_prog_compiler_static_GCJ \
19632 lt_prog_compiler_no_builtin_flag_GCJ \
19633 export_dynamic_flag_spec_GCJ \
19634 thread_safe_flag_spec_GCJ \
19635 whole_archive_flag_spec_GCJ \
19636 enable_shared_with_static_runtimes_GCJ \
19637 old_archive_cmds_GCJ \
19638 old_archive_from_new_cmds_GCJ \
19639 predep_objects_GCJ \
19640 postdep_objects_GCJ \
19641 predeps_GCJ \
19642 postdeps_GCJ \
19643 compiler_lib_search_path_GCJ \
19644 archive_cmds_GCJ \
19645 archive_expsym_cmds_GCJ \
19646 postinstall_cmds_GCJ \
19647 postuninstall_cmds_GCJ \
19648 old_archive_from_expsyms_cmds_GCJ \
19649 allow_undefined_flag_GCJ \
19650 no_undefined_flag_GCJ \
19651 export_symbols_cmds_GCJ \
19652 hardcode_libdir_flag_spec_GCJ \
19653 hardcode_libdir_flag_spec_ld_GCJ \
19654 hardcode_libdir_separator_GCJ \
19655 hardcode_automatic_GCJ \
19656 module_cmds_GCJ \
19657 module_expsym_cmds_GCJ \
19658 lt_cv_prog_compiler_c_o_GCJ \
19659 exclude_expsyms_GCJ \
19660 include_expsyms_GCJ; do
19661
19662 case $var in
19663 old_archive_cmds_GCJ | \
19664 old_archive_from_new_cmds_GCJ | \
19665 archive_cmds_GCJ | \
19666 archive_expsym_cmds_GCJ | \
19667 module_cmds_GCJ | \
19668 module_expsym_cmds_GCJ | \
19669 old_archive_from_expsyms_cmds_GCJ | \
19670 export_symbols_cmds_GCJ | \
19671 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19672 postinstall_cmds | postuninstall_cmds | \
19673 old_postinstall_cmds | old_postuninstall_cmds | \
19674 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19675 # Double-quote double-evaled strings.
19676 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19677 ;;
19678 *)
19679 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19680 ;;
19681 esac
19682 done
19683
19684 case $lt_echo in
19685 *'\$0 --fallback-echo"')
19686 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19687 ;;
19688 esac
19689
19690 cfgfile="$ofile"
19691
19692 cat <<__EOF__ >> "$cfgfile"
19693 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19694
19695 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19696
19697 # Shell to use when invoking shell scripts.
19698 SHELL=$lt_SHELL
19699
19700 # Whether or not to build shared libraries.
19701 build_libtool_libs=$enable_shared
19702
19703 # Whether or not to build static libraries.
19704 build_old_libs=$enable_static
19705
19706 # Whether or not to add -lc for building shared libraries.
19707 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19708
19709 # Whether or not to disallow shared libs when runtime libs are static
19710 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19711
19712 # Whether or not to optimize for fast installation.
19713 fast_install=$enable_fast_install
19714
19715 # The host system.
19716 host_alias=$host_alias
19717 host=$host
19718 host_os=$host_os
19719
19720 # The build system.
19721 build_alias=$build_alias
19722 build=$build
19723 build_os=$build_os
19724
19725 # An echo program that does not interpret backslashes.
19726 echo=$lt_echo
19727
19728 # The archiver.
19729 AR=$lt_AR
19730 AR_FLAGS=$lt_AR_FLAGS
19731
19732 # A C compiler.
19733 LTCC=$lt_LTCC
19734
19735 # LTCC compiler flags.
19736 LTCFLAGS=$lt_LTCFLAGS
19737
19738 # A language-specific compiler.
19739 CC=$lt_compiler_GCJ
19740
19741 # Is the compiler the GNU C compiler?
19742 with_gcc=$GCC_GCJ
19743
19744 # An ERE matcher.
19745 EGREP=$lt_EGREP
19746
19747 # The linker used to build libraries.
19748 LD=$lt_LD_GCJ
19749
19750 # Whether we need hard or soft links.
19751 LN_S=$lt_LN_S
19752
19753 # A BSD-compatible nm program.
19754 NM=$lt_NM
19755
19756 # A symbol stripping program
19757 STRIP=$lt_STRIP
19758
19759 # Used to examine libraries when file_magic_cmd begins "file"
19760 MAGIC_CMD=$MAGIC_CMD
19761
19762 # Used on cygwin: DLL creation program.
19763 DLLTOOL="$DLLTOOL"
19764
19765 # Used on cygwin: object dumper.
19766 OBJDUMP="$OBJDUMP"
19767
19768 # Used on cygwin: assembler.
19769 AS="$AS"
19770
19771 # The name of the directory that contains temporary libtool files.
19772 objdir=$objdir
19773
19774 # How to create reloadable object files.
19775 reload_flag=$lt_reload_flag
19776 reload_cmds=$lt_reload_cmds
19777
19778 # How to pass a linker flag through the compiler.
19779 wl=$lt_lt_prog_compiler_wl_GCJ
19780
19781 # Object file suffix (normally "o").
19782 objext="$ac_objext"
19783
19784 # Old archive suffix (normally "a").
19785 libext="$libext"
19786
19787 # Shared library suffix (normally ".so").
19788 shrext_cmds='$shrext_cmds'
19789
19790 # Executable file suffix (normally "").
19791 exeext="$exeext"
19792
19793 # Additional compiler flags for building library objects.
19794 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19795 pic_mode=$pic_mode
19796
19797 # What is the maximum length of a command?
19798 max_cmd_len=$lt_cv_sys_max_cmd_len
19799
19800 # Does compiler simultaneously support -c and -o options?
19801 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19802
19803 # Must we lock files when doing compilation?
19804 need_locks=$lt_need_locks
19805
19806 # Do we need the lib prefix for modules?
19807 need_lib_prefix=$need_lib_prefix
19808
19809 # Do we need a version for libraries?
19810 need_version=$need_version
19811
19812 # Whether dlopen is supported.
19813 dlopen_support=$enable_dlopen
19814
19815 # Whether dlopen of programs is supported.
19816 dlopen_self=$enable_dlopen_self
19817
19818 # Whether dlopen of statically linked programs is supported.
19819 dlopen_self_static=$enable_dlopen_self_static
19820
19821 # Compiler flag to prevent dynamic linking.
19822 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19823
19824 # Compiler flag to turn off builtin functions.
19825 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19826
19827 # Compiler flag to allow reflexive dlopens.
19828 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19829
19830 # Compiler flag to generate shared objects directly from archives.
19831 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19832
19833 # Compiler flag to generate thread-safe objects.
19834 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19835
19836 # Library versioning type.
19837 version_type=$version_type
19838
19839 # Format of library name prefix.
19840 libname_spec=$lt_libname_spec
19841
19842 # List of archive names. First name is the real one, the rest are links.
19843 # The last name is the one that the linker finds with -lNAME.
19844 library_names_spec=$lt_library_names_spec
19845
19846 # The coded name of the library, if different from the real name.
19847 soname_spec=$lt_soname_spec
19848
19849 # Commands used to build and install an old-style archive.
19850 RANLIB=$lt_RANLIB
19851 old_archive_cmds=$lt_old_archive_cmds_GCJ
19852 old_postinstall_cmds=$lt_old_postinstall_cmds
19853 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19854
19855 # Create an old-style archive from a shared archive.
19856 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19857
19858 # Create a temporary old-style archive to link instead of a shared archive.
19859 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19860
19861 # Commands used to build and install a shared archive.
19862 archive_cmds=$lt_archive_cmds_GCJ
19863 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19864 postinstall_cmds=$lt_postinstall_cmds
19865 postuninstall_cmds=$lt_postuninstall_cmds
19866
19867 # Commands used to build a loadable module (assumed same as above if empty)
19868 module_cmds=$lt_module_cmds_GCJ
19869 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19870
19871 # Commands to strip libraries.
19872 old_striplib=$lt_old_striplib
19873 striplib=$lt_striplib
19874
19875 # Dependencies to place before the objects being linked to create a
19876 # shared library.
19877 predep_objects=$lt_predep_objects_GCJ
19878
19879 # Dependencies to place after the objects being linked to create a
19880 # shared library.
19881 postdep_objects=$lt_postdep_objects_GCJ
19882
19883 # Dependencies to place before the objects being linked to create a
19884 # shared library.
19885 predeps=$lt_predeps_GCJ
19886
19887 # Dependencies to place after the objects being linked to create a
19888 # shared library.
19889 postdeps=$lt_postdeps_GCJ
19890
19891 # The library search path used internally by the compiler when linking
19892 # a shared library.
19893 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19894
19895 # Method to check whether dependent libraries are shared objects.
19896 deplibs_check_method=$lt_deplibs_check_method
19897
19898 # Command to use when deplibs_check_method == file_magic.
19899 file_magic_cmd=$lt_file_magic_cmd
19900
19901 # Flag that allows shared libraries with undefined symbols to be built.
19902 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19903
19904 # Flag that forces no undefined symbols.
19905 no_undefined_flag=$lt_no_undefined_flag_GCJ
19906
19907 # Commands used to finish a libtool library installation in a directory.
19908 finish_cmds=$lt_finish_cmds
19909
19910 # Same as above, but a single script fragment to be evaled but not shown.
19911 finish_eval=$lt_finish_eval
19912
19913 # Take the output of nm and produce a listing of raw symbols and C names.
19914 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19915
19916 # Transform the output of nm in a proper C declaration
19917 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19918
19919 # Transform the output of nm in a C name address pair
19920 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19921
19922 # This is the shared library runtime path variable.
19923 runpath_var=$runpath_var
19924
19925 # This is the shared library path variable.
19926 shlibpath_var=$shlibpath_var
19927
19928 # Is shlibpath searched before the hard-coded library search path?
19929 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19930
19931 # How to hardcode a shared library path into an executable.
19932 hardcode_action=$hardcode_action_GCJ
19933
19934 # Whether we should hardcode library paths into libraries.
19935 hardcode_into_libs=$hardcode_into_libs
19936
19937 # Flag to hardcode \$libdir into a binary during linking.
19938 # This must work even if \$libdir does not exist.
19939 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19940
19941 # If ld is used when linking, flag to hardcode \$libdir into
19942 # a binary during linking. This must work even if \$libdir does
19943 # not exist.
19944 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19945
19946 # Whether we need a single -rpath flag with a separated argument.
19947 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19948
19949 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19950 # resulting binary.
19951 hardcode_direct=$hardcode_direct_GCJ
19952
19953 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19954 # resulting binary.
19955 hardcode_minus_L=$hardcode_minus_L_GCJ
19956
19957 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19958 # the resulting binary.
19959 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19960
19961 # Set to yes if building a shared library automatically hardcodes DIR into the library
19962 # and all subsequent libraries and executables linked against it.
19963 hardcode_automatic=$hardcode_automatic_GCJ
19964
19965 # Variables whose values should be saved in libtool wrapper scripts and
19966 # restored at relink time.
19967 variables_saved_for_relink="$variables_saved_for_relink"
19968
19969 # Whether libtool must link a program against all its dependency libraries.
19970 link_all_deplibs=$link_all_deplibs_GCJ
19971
19972 # Compile-time system search path for libraries
19973 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19974
19975 # Run-time system search path for libraries
19976 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19977
19978 # Fix the shell variable \$srcfile for the compiler.
19979 fix_srcfile_path="$fix_srcfile_path_GCJ"
19980
19981 # Set to yes if exported symbols are required.
19982 always_export_symbols=$always_export_symbols_GCJ
19983
19984 # The commands to list exported symbols.
19985 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19986
19987 # The commands to extract the exported symbol list from a shared archive.
19988 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19989
19990 # Symbols that should not be listed in the preloaded symbols.
19991 exclude_expsyms=$lt_exclude_expsyms_GCJ
19992
19993 # Symbols that must always be exported.
19994 include_expsyms=$lt_include_expsyms_GCJ
19995
19996 # ### END LIBTOOL TAG CONFIG: $tagname
19997
19998 __EOF__
19999
20000
20001 else
20002 # If there is no Makefile yet, we rely on a make rule to execute
20003 # `config.status --recheck' to rerun these tests and create the
20004 # libtool script then.
20005 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20006 if test -f "$ltmain_in"; then
20007 test -f Makefile && make "$ltmain"
20008 fi
20009 fi
20010
20011
20012 ac_ext=c
20013 ac_cpp='$CPP $CPPFLAGS'
20014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20017
20018 CC="$lt_save_CC"
20019
20020 else
20021 tagname=""
20022 fi
20023 ;;
20024
20025 RC)
20026
20027
20028
20029 # Source file extension for RC test sources.
20030 ac_ext=rc
20031
20032 # Object file extension for compiled RC test sources.
20033 objext=o
20034 objext_RC=$objext
20035
20036 # Code to be used in simple compile tests
20037 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20038
20039 # Code to be used in simple link tests
20040 lt_simple_link_test_code="$lt_simple_compile_test_code"
20041
20042 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20043
20044 # If no C compiler was specified, use CC.
20045 LTCC=${LTCC-"$CC"}
20046
20047 # If no C compiler flags were specified, use CFLAGS.
20048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20049
20050 # Allow CC to be a program name with arguments.
20051 compiler=$CC
20052
20053
20054 # save warnings/boilerplate of simple test code
20055 ac_outfile=conftest.$ac_objext
20056 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20057 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20058 _lt_compiler_boilerplate=`cat conftest.err`
20059 $rm conftest*
20060
20061 ac_outfile=conftest.$ac_objext
20062 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20063 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20064 _lt_linker_boilerplate=`cat conftest.err`
20065 $rm conftest*
20066
20067
20068 # Allow CC to be a program name with arguments.
20069 lt_save_CC="$CC"
20070 CC=${RC-"windres"}
20071 compiler=$CC
20072 compiler_RC=$CC
20073 for cc_temp in $compiler""; do
20074 case $cc_temp in
20075 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20076 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20077 \-*) ;;
20078 *) break;;
20079 esac
20080 done
20081 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20082
20083 lt_cv_prog_compiler_c_o_RC=yes
20084
20085 # The else clause should only fire when bootstrapping the
20086 # libtool distribution, otherwise you forgot to ship ltmain.sh
20087 # with your package, and you will get complaints that there are
20088 # no rules to generate ltmain.sh.
20089 if test -f "$ltmain"; then
20090 # See if we are running on zsh, and set the options which allow our commands through
20091 # without removal of \ escapes.
20092 if test -n "${ZSH_VERSION+set}" ; then
20093 setopt NO_GLOB_SUBST
20094 fi
20095 # Now quote all the things that may contain metacharacters while being
20096 # careful not to overquote the AC_SUBSTed values. We take copies of the
20097 # variables and quote the copies for generation of the libtool script.
20098 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20099 SED SHELL STRIP \
20100 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20101 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20102 deplibs_check_method reload_flag reload_cmds need_locks \
20103 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20104 lt_cv_sys_global_symbol_to_c_name_address \
20105 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20106 old_postinstall_cmds old_postuninstall_cmds \
20107 compiler_RC \
20108 CC_RC \
20109 LD_RC \
20110 lt_prog_compiler_wl_RC \
20111 lt_prog_compiler_pic_RC \
20112 lt_prog_compiler_static_RC \
20113 lt_prog_compiler_no_builtin_flag_RC \
20114 export_dynamic_flag_spec_RC \
20115 thread_safe_flag_spec_RC \
20116 whole_archive_flag_spec_RC \
20117 enable_shared_with_static_runtimes_RC \
20118 old_archive_cmds_RC \
20119 old_archive_from_new_cmds_RC \
20120 predep_objects_RC \
20121 postdep_objects_RC \
20122 predeps_RC \
20123 postdeps_RC \
20124 compiler_lib_search_path_RC \
20125 archive_cmds_RC \
20126 archive_expsym_cmds_RC \
20127 postinstall_cmds_RC \
20128 postuninstall_cmds_RC \
20129 old_archive_from_expsyms_cmds_RC \
20130 allow_undefined_flag_RC \
20131 no_undefined_flag_RC \
20132 export_symbols_cmds_RC \
20133 hardcode_libdir_flag_spec_RC \
20134 hardcode_libdir_flag_spec_ld_RC \
20135 hardcode_libdir_separator_RC \
20136 hardcode_automatic_RC \
20137 module_cmds_RC \
20138 module_expsym_cmds_RC \
20139 lt_cv_prog_compiler_c_o_RC \
20140 exclude_expsyms_RC \
20141 include_expsyms_RC; do
20142
20143 case $var in
20144 old_archive_cmds_RC | \
20145 old_archive_from_new_cmds_RC | \
20146 archive_cmds_RC | \
20147 archive_expsym_cmds_RC | \
20148 module_cmds_RC | \
20149 module_expsym_cmds_RC | \
20150 old_archive_from_expsyms_cmds_RC | \
20151 export_symbols_cmds_RC | \
20152 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20153 postinstall_cmds | postuninstall_cmds | \
20154 old_postinstall_cmds | old_postuninstall_cmds | \
20155 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20156 # Double-quote double-evaled strings.
20157 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20158 ;;
20159 *)
20160 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20161 ;;
20162 esac
20163 done
20164
20165 case $lt_echo in
20166 *'\$0 --fallback-echo"')
20167 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20168 ;;
20169 esac
20170
20171 cfgfile="$ofile"
20172
20173 cat <<__EOF__ >> "$cfgfile"
20174 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20175
20176 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20177
20178 # Shell to use when invoking shell scripts.
20179 SHELL=$lt_SHELL
20180
20181 # Whether or not to build shared libraries.
20182 build_libtool_libs=$enable_shared
20183
20184 # Whether or not to build static libraries.
20185 build_old_libs=$enable_static
20186
20187 # Whether or not to add -lc for building shared libraries.
20188 build_libtool_need_lc=$archive_cmds_need_lc_RC
20189
20190 # Whether or not to disallow shared libs when runtime libs are static
20191 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20192
20193 # Whether or not to optimize for fast installation.
20194 fast_install=$enable_fast_install
20195
20196 # The host system.
20197 host_alias=$host_alias
20198 host=$host
20199 host_os=$host_os
20200
20201 # The build system.
20202 build_alias=$build_alias
20203 build=$build
20204 build_os=$build_os
20205
20206 # An echo program that does not interpret backslashes.
20207 echo=$lt_echo
20208
20209 # The archiver.
20210 AR=$lt_AR
20211 AR_FLAGS=$lt_AR_FLAGS
20212
20213 # A C compiler.
20214 LTCC=$lt_LTCC
20215
20216 # LTCC compiler flags.
20217 LTCFLAGS=$lt_LTCFLAGS
20218
20219 # A language-specific compiler.
20220 CC=$lt_compiler_RC
20221
20222 # Is the compiler the GNU C compiler?
20223 with_gcc=$GCC_RC
20224
20225 # An ERE matcher.
20226 EGREP=$lt_EGREP
20227
20228 # The linker used to build libraries.
20229 LD=$lt_LD_RC
20230
20231 # Whether we need hard or soft links.
20232 LN_S=$lt_LN_S
20233
20234 # A BSD-compatible nm program.
20235 NM=$lt_NM
20236
20237 # A symbol stripping program
20238 STRIP=$lt_STRIP
20239
20240 # Used to examine libraries when file_magic_cmd begins "file"
20241 MAGIC_CMD=$MAGIC_CMD
20242
20243 # Used on cygwin: DLL creation program.
20244 DLLTOOL="$DLLTOOL"
20245
20246 # Used on cygwin: object dumper.
20247 OBJDUMP="$OBJDUMP"
20248
20249 # Used on cygwin: assembler.
20250 AS="$AS"
20251
20252 # The name of the directory that contains temporary libtool files.
20253 objdir=$objdir
20254
20255 # How to create reloadable object files.
20256 reload_flag=$lt_reload_flag
20257 reload_cmds=$lt_reload_cmds
20258
20259 # How to pass a linker flag through the compiler.
20260 wl=$lt_lt_prog_compiler_wl_RC
20261
20262 # Object file suffix (normally "o").
20263 objext="$ac_objext"
20264
20265 # Old archive suffix (normally "a").
20266 libext="$libext"
20267
20268 # Shared library suffix (normally ".so").
20269 shrext_cmds='$shrext_cmds'
20270
20271 # Executable file suffix (normally "").
20272 exeext="$exeext"
20273
20274 # Additional compiler flags for building library objects.
20275 pic_flag=$lt_lt_prog_compiler_pic_RC
20276 pic_mode=$pic_mode
20277
20278 # What is the maximum length of a command?
20279 max_cmd_len=$lt_cv_sys_max_cmd_len
20280
20281 # Does compiler simultaneously support -c and -o options?
20282 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20283
20284 # Must we lock files when doing compilation?
20285 need_locks=$lt_need_locks
20286
20287 # Do we need the lib prefix for modules?
20288 need_lib_prefix=$need_lib_prefix
20289
20290 # Do we need a version for libraries?
20291 need_version=$need_version
20292
20293 # Whether dlopen is supported.
20294 dlopen_support=$enable_dlopen
20295
20296 # Whether dlopen of programs is supported.
20297 dlopen_self=$enable_dlopen_self
20298
20299 # Whether dlopen of statically linked programs is supported.
20300 dlopen_self_static=$enable_dlopen_self_static
20301
20302 # Compiler flag to prevent dynamic linking.
20303 link_static_flag=$lt_lt_prog_compiler_static_RC
20304
20305 # Compiler flag to turn off builtin functions.
20306 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20307
20308 # Compiler flag to allow reflexive dlopens.
20309 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20310
20311 # Compiler flag to generate shared objects directly from archives.
20312 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20313
20314 # Compiler flag to generate thread-safe objects.
20315 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20316
20317 # Library versioning type.
20318 version_type=$version_type
20319
20320 # Format of library name prefix.
20321 libname_spec=$lt_libname_spec
20322
20323 # List of archive names. First name is the real one, the rest are links.
20324 # The last name is the one that the linker finds with -lNAME.
20325 library_names_spec=$lt_library_names_spec
20326
20327 # The coded name of the library, if different from the real name.
20328 soname_spec=$lt_soname_spec
20329
20330 # Commands used to build and install an old-style archive.
20331 RANLIB=$lt_RANLIB
20332 old_archive_cmds=$lt_old_archive_cmds_RC
20333 old_postinstall_cmds=$lt_old_postinstall_cmds
20334 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20335
20336 # Create an old-style archive from a shared archive.
20337 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20338
20339 # Create a temporary old-style archive to link instead of a shared archive.
20340 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20341
20342 # Commands used to build and install a shared archive.
20343 archive_cmds=$lt_archive_cmds_RC
20344 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20345 postinstall_cmds=$lt_postinstall_cmds
20346 postuninstall_cmds=$lt_postuninstall_cmds
20347
20348 # Commands used to build a loadable module (assumed same as above if empty)
20349 module_cmds=$lt_module_cmds_RC
20350 module_expsym_cmds=$lt_module_expsym_cmds_RC
20351
20352 # Commands to strip libraries.
20353 old_striplib=$lt_old_striplib
20354 striplib=$lt_striplib
20355
20356 # Dependencies to place before the objects being linked to create a
20357 # shared library.
20358 predep_objects=$lt_predep_objects_RC
20359
20360 # Dependencies to place after the objects being linked to create a
20361 # shared library.
20362 postdep_objects=$lt_postdep_objects_RC
20363
20364 # Dependencies to place before the objects being linked to create a
20365 # shared library.
20366 predeps=$lt_predeps_RC
20367
20368 # Dependencies to place after the objects being linked to create a
20369 # shared library.
20370 postdeps=$lt_postdeps_RC
20371
20372 # The library search path used internally by the compiler when linking
20373 # a shared library.
20374 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20375
20376 # Method to check whether dependent libraries are shared objects.
20377 deplibs_check_method=$lt_deplibs_check_method
20378
20379 # Command to use when deplibs_check_method == file_magic.
20380 file_magic_cmd=$lt_file_magic_cmd
20381
20382 # Flag that allows shared libraries with undefined symbols to be built.
20383 allow_undefined_flag=$lt_allow_undefined_flag_RC
20384
20385 # Flag that forces no undefined symbols.
20386 no_undefined_flag=$lt_no_undefined_flag_RC
20387
20388 # Commands used to finish a libtool library installation in a directory.
20389 finish_cmds=$lt_finish_cmds
20390
20391 # Same as above, but a single script fragment to be evaled but not shown.
20392 finish_eval=$lt_finish_eval
20393
20394 # Take the output of nm and produce a listing of raw symbols and C names.
20395 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20396
20397 # Transform the output of nm in a proper C declaration
20398 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20399
20400 # Transform the output of nm in a C name address pair
20401 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20402
20403 # This is the shared library runtime path variable.
20404 runpath_var=$runpath_var
20405
20406 # This is the shared library path variable.
20407 shlibpath_var=$shlibpath_var
20408
20409 # Is shlibpath searched before the hard-coded library search path?
20410 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20411
20412 # How to hardcode a shared library path into an executable.
20413 hardcode_action=$hardcode_action_RC
20414
20415 # Whether we should hardcode library paths into libraries.
20416 hardcode_into_libs=$hardcode_into_libs
20417
20418 # Flag to hardcode \$libdir into a binary during linking.
20419 # This must work even if \$libdir does not exist.
20420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20421
20422 # If ld is used when linking, flag to hardcode \$libdir into
20423 # a binary during linking. This must work even if \$libdir does
20424 # not exist.
20425 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20426
20427 # Whether we need a single -rpath flag with a separated argument.
20428 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20429
20430 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20431 # resulting binary.
20432 hardcode_direct=$hardcode_direct_RC
20433
20434 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20435 # resulting binary.
20436 hardcode_minus_L=$hardcode_minus_L_RC
20437
20438 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20439 # the resulting binary.
20440 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20441
20442 # Set to yes if building a shared library automatically hardcodes DIR into the library
20443 # and all subsequent libraries and executables linked against it.
20444 hardcode_automatic=$hardcode_automatic_RC
20445
20446 # Variables whose values should be saved in libtool wrapper scripts and
20447 # restored at relink time.
20448 variables_saved_for_relink="$variables_saved_for_relink"
20449
20450 # Whether libtool must link a program against all its dependency libraries.
20451 link_all_deplibs=$link_all_deplibs_RC
20452
20453 # Compile-time system search path for libraries
20454 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20455
20456 # Run-time system search path for libraries
20457 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20458
20459 # Fix the shell variable \$srcfile for the compiler.
20460 fix_srcfile_path="$fix_srcfile_path_RC"
20461
20462 # Set to yes if exported symbols are required.
20463 always_export_symbols=$always_export_symbols_RC
20464
20465 # The commands to list exported symbols.
20466 export_symbols_cmds=$lt_export_symbols_cmds_RC
20467
20468 # The commands to extract the exported symbol list from a shared archive.
20469 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20470
20471 # Symbols that should not be listed in the preloaded symbols.
20472 exclude_expsyms=$lt_exclude_expsyms_RC
20473
20474 # Symbols that must always be exported.
20475 include_expsyms=$lt_include_expsyms_RC
20476
20477 # ### END LIBTOOL TAG CONFIG: $tagname
20478
20479 __EOF__
20480
20481
20482 else
20483 # If there is no Makefile yet, we rely on a make rule to execute
20484 # `config.status --recheck' to rerun these tests and create the
20485 # libtool script then.
20486 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20487 if test -f "$ltmain_in"; then
20488 test -f Makefile && make "$ltmain"
20489 fi
20490 fi
20491
20492
20493 ac_ext=c
20494 ac_cpp='$CPP $CPPFLAGS'
20495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20498
20499 CC="$lt_save_CC"
20500
20501 ;;
20502
20503 *)
20504 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20505 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20506 { (exit 1); exit 1; }; }
20507 ;;
20508 esac
20509
20510 # Append the new tag name to the list of available tags.
20511 if test -n "$tagname" ; then
20512 available_tags="$available_tags $tagname"
20513 fi
20514 fi
20515 done
20516 IFS="$lt_save_ifs"
20517
20518 # Now substitute the updated list of available tags.
20519 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20520 mv "${ofile}T" "$ofile"
20521 chmod +x "$ofile"
20522 else
20523 rm -f "${ofile}T"
20524 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20525 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20526 { (exit 1); exit 1; }; }
20527 fi
20528 fi
20529
20530
20531
20532 # This can be used to rebuild libtool when needed
20533 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20534
20535 # Always use our own libtool.
20536 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20537
20538 # Prevent multiple expansion
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550 # No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20551 # AC_REQUIRE([AC_COIN_DLFCN_H])
20552
20553 # NEW: If libtool exists in the directory higher up, we use that one
20554 # instead of creating a new one
20555
20556 # It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20557 # out in front of this macro body. You'll notice that LIBTOOL is already
20558 # defined here. We'll have to count on this macro not being called if libtool
20559 # already exists, or at least move the libtool fixes outside the conditional.
20560 # AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20561 # This test is therefore removed. -- lh, 061214 --
20562 # if test "x$LIBTOOL" = x; then
20563
20564 # AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574 # AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20575
20576
20577
20578 { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20579 echo "$as_me: Build is \"$build\"." >&6;}
20580 # Extract the first word of "dos2unix", so it can be a program name with args.
20581 set dummy dos2unix; ac_word=$2
20582 echo "$as_me:$LINENO: checking for $ac_word" >&5
20583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20584 if test "${ac_cv_prog_dos2unix+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20586 else
20587 if test -n "$dos2unix"; then
20588 ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test.
20589 else
20590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20591 for as_dir in $PATH
20592 do
20593 IFS=$as_save_IFS
20594 test -z "$as_dir" && as_dir=.
20595 for ac_exec_ext in '' $ac_executable_extensions; do
20596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20597 ac_cv_prog_dos2unix="dos2unix"
20598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20599 break 2
20600 fi
20601 done
20602 done
20603
20604 fi
20605 fi
20606 dos2unix=$ac_cv_prog_dos2unix
20607 if test -n "$dos2unix"; then
20608 echo "$as_me:$LINENO: result: $dos2unix" >&5
20609 echo "${ECHO_T}$dos2unix" >&6
20610 else
20611 echo "$as_me:$LINENO: result: no" >&5
20612 echo "${ECHO_T}no" >&6
20613 fi
20614
20615 if test "$dos2unix" = dos2unix ; then
20616 mydos2unix="| dos2unix"
20617 fi
20618 case $build in
20619 *-mingw*)
20620 CYGPATH_W=echo
20621 ;;
20622 esac
20623
20624 case $build in
20625 # Here we need to check if -m32 is specified. If so, we need to correct
20626 # sys_lib_search_path_spec
20627 *-cygwin* | *-mingw*)
20628 case "$CXX" in
20629 clang* | */clang* )
20630 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20631 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20632 echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20633 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20634 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20635 -e 's|libext="lib"|libext="a"|' \
20636 libtool > conftest.bla
20637 ;;
20638 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20639 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20640 echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20641 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20642 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20643 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20644 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20645 -e 's%lib /OUT:%lib -OUT:%' \
20646 -e "s%cygpath -w%$CYGPATH_W%" \
20647 -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%' \
20648 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20649 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20650 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20651 -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"%' \
20652 libtool > conftest.bla
20653 ;;
20654 *)
20655 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20656 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20657 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20658 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20659 -e 's|libext="lib"|libext="a"|' \
20660 libtool > conftest.bla
20661 ;;
20662 esac
20663 mv conftest.bla libtool
20664 chmod 755 libtool
20665
20666 ;;
20667 *x86_64-*)
20668 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20669 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20670 echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20671 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20672 mv conftest.bla libtool
20673 chmod 755 libtool
20674 fi
20675 ;;
20676
20677 *-solaris*)
20678 if test "$GCC" = yes && \
20679 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20680 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20681 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20682 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20683 echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20684 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20685 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20686 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20687 # AC_MSG_NOTICE(Compensating for broken gcc)
20688 for lib in $fixlibtmp ; do
20689 if test -d "${lib}${hdwisa}" ; then
20690 syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20691 fi
20692 done
20693 syslibpath64="${syslibpath64} ${fixlibtmp}"
20694 else
20695 syslibpath64="$fixlibtmp"
20696 fi
20697 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20698 mv conftest.bla libtool
20699 chmod 755 libtool
20700 fi
20701 # AC_MSG_NOTICE(Result is )
20702 # $EGREP 'sys_lib_search_path_spec=' libtool
20703 fi
20704 ;;
20705 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20706 *-darwin*)
20707 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20708 echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20709 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"/' \
20710 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20711 libtool > conftest.bla
20712
20713 mv conftest.bla libtool
20714 chmod 755 libtool
20715 ;;
20716 esac
20717 # This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20718 # the macro. -- lh, 061214 --
20719 # fi
20720
20721 # AC_MSG_NOTICE([End libtool initialisation.])
20722
20723 # AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20724 # set RPATH_FLAGS to the compiler link flags required to hardcode location
20725 # of the shared objects
20726 RPATH_FLAGS=
20727
20728 if test $enable_shared = yes; then
20729 case $build in
20730 *-linux-*)
20731 if test "$GXX" = "yes"; then
20732 RPATH_FLAGS=
20733 for dir in $abs_lib_dir; do
20734 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20735 done
20736 fi ;;
20737 *-darwin*)
20738 RPATH_FLAGS=nothing ;;
20739 *-ibm-*)
20740 case "$CXX" in
20741 xlC* | */xlC* | mpxlC* | */mpxlC*)
20742 RPATH_FLAGS=nothing ;;
20743 esac ;;
20744 *-hp-*)
20745 RPATH_FLAGS=nothing ;;
20746 *-mingw32)
20747 RPATH_FLAGS=nothing ;;
20748 *-*-solaris*)
20749 RPATH_FLAGS=
20750 for dir in $abs_lib_dir; do
20751 RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20752 done
20753 esac
20754
20755 if test "$RPATH_FLAGS" = ""; then
20756 { 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
20757 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;}
20758 fi
20759 if test "$RPATH_FLAGS" = "nothing"; then
20760 RPATH_FLAGS=
20761 fi
20762 fi
20763
20764
20765
20766
20767 else
20768
20769 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20770 echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20771 # get all missing information from the config.log file
20772
20773 # output variables and defines
20774 as_save_IFS=$IFS
20775 IFS='
20776 '
20777 for oneline in `cat $coin_config_dir/config.status`; do
20778 case "$oneline" in
20779 # First some automake conditionals
20780 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \
20781 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20782 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20783 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* )
20784 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20785 # echo "$command"
20786 eval "$command"
20787 ;;
20788 s,@DEFS@* )
20789 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20790 # echo "$command"
20791 eval "$command"
20792 ;;
20793 esac
20794 done
20795 IFS=$as_save_IFS
20796
20797 # And some defines (assuming here that the packages base dir
20798 # doesn't have a config.h file
20799 for word in $defsline; do
20800 # echo word $word
20801 case $word in
20802 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20803 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20804 # echo dd $i
20805 echo $i >>confdefs.h
20806 ;;
20807 esac
20808 done
20809 fi
20810
20811 # AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20812
20813 # Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20814 if test "${enable_dependency_linking+set}" = set; then
20815 enableval="$enable_dependency_linking"
20816 dependency_linking="$enableval"
20817 else
20818 dependency_linking=auto
20819 fi;
20820
20821 if test "$dependency_linking" = auto; then
20822 # On Cygwin and AIX, building DLLs doesn't work
20823 dependency_linking=no
20824 if test x"$coin_disable_shared" = xno; then
20825 case $build in
20826 *-cygwin* | *-mingw*)
20827 case "$CC" in
20828 clang* | */clang* )
20829 dependency_linking=yes
20830 ;;
20831 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20832 dependency_linking=no
20833 ;;
20834 *gcc*)
20835 dependency_linking=yes
20836 ;;
20837 *)
20838 dependency_linking=yes
20839 ;;
20840 esac
20841 ;;
20842 *)
20843 dependency_linking=yes
20844 ;;
20845 esac
20846 fi
20847 fi
20848
20849 # Set up LT_LDFLAGS, user can initialize and we augment below
20850
20851
20852 if test "$dependency_linking" = yes ;
20853 then
20854 LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
20855 else
20856 LT_LDFLAGS="$LT_LDFLAGS"
20857 fi
20858
20859
20860
20861 if test "$dependency_linking" = yes; then
20862 DEPENDENCY_LINKING_TRUE=
20863 DEPENDENCY_LINKING_FALSE='#'
20864 else
20865 DEPENDENCY_LINKING_TRUE='#'
20866 DEPENDENCY_LINKING_FALSE=
20867 fi
20868
20869
20870 # Check if we want to set the library version
20871 echo "$as_me:$LINENO: checking if library version is set" >&5
20872 echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20873 if test x"$coin_libversion" != x; then
20874 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20875 echo "$as_me:$LINENO: result: $coin_libversion" >&5
20876 echo "${ECHO_T}$coin_libversion" >&6
20877 else
20878 echo "$as_me:$LINENO: result: no" >&5
20879 echo "${ECHO_T}no" >&6
20880 fi
20881
20882
20883
20884 #END
20885 }
20886 # AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
20887
20888
20889 #############################################################################
20890 # Check which subprojects are there #
20891 #############################################################################
20892
20893
20894 echo "$as_me:$LINENO: checking whether source of project ASL is available and should be compiled" >&5
20895 echo $ECHO_N "checking whether source of project ASL is available and should be compiled... $ECHO_C" >&6
20896
20897 coin_has_asl=notGiven
20898 coin_reason=
20899
20900 # check if user wants to skip project in any case
20901
20902 if test x"$COIN_SKIP_PROJECTS" != x; then
20903 for dir in $COIN_SKIP_PROJECTS; do
20904 if test $dir = "ASL"; then
20905 coin_has_asl="no"
20906 coin_reason="ASL has been specified in COIN_SKIP_PROJECTS"
20907 fi
20908
20909 if test $dir = "ThirdParty/ASL"; then
20910 coin_has_asl="no"
20911 coin_reason="ThirdParty/ASL has been specified in COIN_SKIP_PROJECTS"
20912 fi
20913 done
20914 fi
20915
20916 if test "$coin_has_asl" != no; then
20917
20918 # Check whether --with-m4_tolower(ASL) or --without-m4_tolower(ASL) was given.
20919 if test "${with_asl+set}" = set; then
20920 withval="$with_asl"
20921 if test "$withval" = no ; then
20922 coin_has_asl="no"
20923 coin_reason="--without-asl has been specified"
20924 fi
20925
20926 fi;
20927 fi
20928
20929 if test "$coin_has_asl" != no; then
20930
20931 # Check whether --with-m4_tolower(ASL)-lib or --without-m4_tolower(ASL)-lib was given.
20932 if test "${with_asl_lib+set}" = set; then
20933 withval="$with_asl_lib"
20934 if test "$withval" = no ; then
20935 coin_has_asl="no"
20936 coin_reason="--without-asl-lib has been specified"
20937 else
20938 coin_has_asl="no"
20939 coin_reason="--with-asl-lib has been specified"
20940 fi
20941 fi;
20942 fi
20943
20944 if test "$coin_has_asl" != no; then
20945
20946 # Check whether --with-m4_tolower(ASL)-incdir or --without-m4_tolower(ASL)-incdir was given.
20947 if test "${with_asl_incdir+set}" = set; then
20948 withval="$with_asl_incdir"
20949 if test "$withval" = no ; then
20950 coin_has_asl="no"
20951 coin_reason="--without-asl-incdir has been specified"
20952 else
20953 coin_has_asl="no"
20954 coin_reason="--with-asl-incdir has been specified"
20955 fi
20956 fi;
20957 fi
20958
20959 if test "$coin_has_asl" != no; then
20960
20961 # Check whether --with-m4_tolower(ASL)-datadir or --without-m4_tolower(ASL)-datadir was given.
20962 if test "${with_asl_datadir+set}" = set; then
20963 withval="$with_asl_datadir"
20964 if test "$withval" = no ; then
20965 coin_has_asl="no"
20966 coin_reason="--without-asl-datadir has been specified"
20967 else
20968 coin_has_asl="no"
20969 coin_reason="--with-asl-datadir has been specified"
20970 fi
20971 fi;
20972 fi
20973
20974
20975
20976
20977
20978 # check if project is available in present directory
20979 if test "$coin_has_asl" = notGiven; then
20980 coin_has_asl=no
20981 if test -d $srcdir/ThirdParty/ASL; then
20982 coin_reason="source in ThirdParty/ASL"
20983 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
20984 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
20985 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
20986 for i in $srcdir/ThirdParty/ASL/solvers/asl.h; do
20987 if test -r $i; then
20988 coin_has_asl="yes"
20989 else
20990 coin_has_asl="no"
20991 coin_reason="source file $i not available"
20992 break
20993 fi
20994 done
20995
20996 fi
20997 fi
20998
20999 if test -z "$coin_reason" ; then
21000 echo "$as_me:$LINENO: result: $coin_has_asl" >&5
21001 echo "${ECHO_T}$coin_has_asl" >&6
21002 else
21003 echo "$as_me:$LINENO: result: $coin_has_asl, $coin_reason" >&5
21004 echo "${ECHO_T}$coin_has_asl, $coin_reason" >&6
21005 fi
21006
21007 if test "$coin_has_asl" = yes ; then
21008 if test -r $srcdir/ThirdParty/ASL/configure; then
21009 coin_subdirs="$coin_subdirs ThirdParty/ASL"
21010
21011
21012 subdirs="$subdirs ThirdParty/ASL"
21013
21014 fi
21015 fi
21016
21017
21018 echo "$as_me:$LINENO: checking whether source of project Blas is available and should be compiled" >&5
21019 echo $ECHO_N "checking whether source of project Blas is available and should be compiled... $ECHO_C" >&6
21020
21021 coin_has_blas=notGiven
21022 coin_reason=
21023
21024 # check if user wants to skip project in any case
21025
21026 if test x"$COIN_SKIP_PROJECTS" != x; then
21027 for dir in $COIN_SKIP_PROJECTS; do
21028 if test $dir = "Blas"; then
21029 coin_has_blas="no"
21030 coin_reason="Blas has been specified in COIN_SKIP_PROJECTS"
21031 fi
21032
21033 if test $dir = "ThirdParty/Blas"; then
21034 coin_has_blas="no"
21035 coin_reason="ThirdParty/Blas has been specified in COIN_SKIP_PROJECTS"
21036 fi
21037 done
21038 fi
21039
21040 if test "$coin_has_blas" != no; then
21041
21042 # Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
21043 if test "${with_blas+set}" = set; then
21044 withval="$with_blas"
21045 if test "$withval" = no ; then
21046 coin_has_blas="no"
21047 coin_reason="--without-blas has been specified"
21048 fi
21049
21050 fi;
21051 fi
21052
21053 if test "$coin_has_blas" != no; then
21054
21055 # Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
21056 if test "${with_blas_lib+set}" = set; then
21057 withval="$with_blas_lib"
21058 if test "$withval" = no ; then
21059 coin_has_blas="no"
21060 coin_reason="--without-blas-lib has been specified"
21061 else
21062 coin_has_blas="no"
21063 coin_reason="--with-blas-lib has been specified"
21064 fi
21065 fi;
21066 fi
21067
21068 if test "$coin_has_blas" != no; then
21069
21070 # Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
21071 if test "${with_blas_incdir+set}" = set; then
21072 withval="$with_blas_incdir"
21073 if test "$withval" = no ; then
21074 coin_has_blas="no"
21075 coin_reason="--without-blas-incdir has been specified"
21076 else
21077 coin_has_blas="no"
21078 coin_reason="--with-blas-incdir has been specified"
21079 fi
21080 fi;
21081 fi
21082
21083 if test "$coin_has_blas" != no; then
21084
21085 # Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
21086 if test "${with_blas_datadir+set}" = set; then
21087 withval="$with_blas_datadir"
21088 if test "$withval" = no ; then
21089 coin_has_blas="no"
21090 coin_reason="--without-blas-datadir has been specified"
21091 else
21092 coin_has_blas="no"
21093 coin_reason="--with-blas-datadir has been specified"
21094 fi
21095 fi;
21096 fi
21097
21098
21099 if test $coin_has_blas != no; then
21100 #--with-blas can overwrite --with-blas-lib, and can be set to BUILD to enforce building blas
21101
21102 # Check whether --with-blas or --without-blas was given.
21103 if test "${with_blas+set}" = set; then
21104 withval="$with_blas"
21105 if test x"$withval" = "xno" ; then
21106 coin_has_blas="no"
21107 coin_reason="--without-blas has been specified"
21108 elif test x"$withval" != "xBUILD" ; then
21109 coin_has_blas="no"
21110 coin_reason="--with-blas has been specified"
21111 fi
21112 fi;
21113 fi
21114
21115
21116
21117
21118 # check if project is available in present directory
21119 if test "$coin_has_blas" = notGiven; then
21120 coin_has_blas=no
21121 if test -d $srcdir/ThirdParty/Blas; then
21122 coin_reason="source in ThirdParty/Blas"
21123 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21124 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21125 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21126 for i in $srcdir/ThirdParty/Blas/daxpy.f; do
21127 if test -r $i; then
21128 coin_has_blas="yes"
21129 else
21130 coin_has_blas="no"
21131 coin_reason="source file $i not available"
21132 break
21133 fi
21134 done
21135
21136 fi
21137 fi
21138
21139 if test -z "$coin_reason" ; then
21140 echo "$as_me:$LINENO: result: $coin_has_blas" >&5
21141 echo "${ECHO_T}$coin_has_blas" >&6
21142 else
21143 echo "$as_me:$LINENO: result: $coin_has_blas, $coin_reason" >&5
21144 echo "${ECHO_T}$coin_has_blas, $coin_reason" >&6
21145 fi
21146
21147 if test "$coin_has_blas" = yes ; then
21148 if test -r $srcdir/ThirdParty/Blas/configure; then
21149 coin_subdirs="$coin_subdirs ThirdParty/Blas"
21150
21151
21152 subdirs="$subdirs ThirdParty/Blas"
21153
21154 fi
21155 fi
21156
21157
21158 echo "$as_me:$LINENO: checking whether source of project Lapack is available and should be compiled" >&5
21159 echo $ECHO_N "checking whether source of project Lapack is available and should be compiled... $ECHO_C" >&6
21160
21161 coin_has_lapack=notGiven
21162 coin_reason=
21163
21164 # check if user wants to skip project in any case
21165
21166 if test x"$COIN_SKIP_PROJECTS" != x; then
21167 for dir in $COIN_SKIP_PROJECTS; do
21168 if test $dir = "Lapack"; then
21169 coin_has_lapack="no"
21170 coin_reason="Lapack has been specified in COIN_SKIP_PROJECTS"
21171 fi
21172
21173 if test $dir = "ThirdParty/Lapack"; then
21174 coin_has_lapack="no"
21175 coin_reason="ThirdParty/Lapack has been specified in COIN_SKIP_PROJECTS"
21176 fi
21177 done
21178 fi
21179
21180 if test "$coin_has_lapack" != no; then
21181
21182 # Check whether --with-m4_tolower(Lapack) or --without-m4_tolower(Lapack) was given.
21183 if test "${with_lapack+set}" = set; then
21184 withval="$with_lapack"
21185 if test "$withval" = no ; then
21186 coin_has_lapack="no"
21187 coin_reason="--without-lapack has been specified"
21188 fi
21189
21190 fi;
21191 fi
21192
21193 if test "$coin_has_lapack" != no; then
21194
21195 # Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given.
21196 if test "${with_lapack_lib+set}" = set; then
21197 withval="$with_lapack_lib"
21198 if test "$withval" = no ; then
21199 coin_has_lapack="no"
21200 coin_reason="--without-lapack-lib has been specified"
21201 else
21202 coin_has_lapack="no"
21203 coin_reason="--with-lapack-lib has been specified"
21204 fi
21205 fi;
21206 fi
21207
21208 if test "$coin_has_lapack" != no; then
21209
21210 # Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given.
21211 if test "${with_lapack_incdir+set}" = set; then
21212 withval="$with_lapack_incdir"
21213 if test "$withval" = no ; then
21214 coin_has_lapack="no"
21215 coin_reason="--without-lapack-incdir has been specified"
21216 else
21217 coin_has_lapack="no"
21218 coin_reason="--with-lapack-incdir has been specified"
21219 fi
21220 fi;
21221 fi
21222
21223 if test "$coin_has_lapack" != no; then
21224
21225 # Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given.
21226 if test "${with_lapack_datadir+set}" = set; then
21227 withval="$with_lapack_datadir"
21228 if test "$withval" = no ; then
21229 coin_has_lapack="no"
21230 coin_reason="--without-lapack-datadir has been specified"
21231 else
21232 coin_has_lapack="no"
21233 coin_reason="--with-lapack-datadir has been specified"
21234 fi
21235 fi;
21236 fi
21237
21238
21239
21240
21241 if test $coin_has_lapack != no; then
21242 #--with-lapack can overwrite --with-lapack-lib, and can be set to BUILD to enforce building lapack
21243
21244 # Check whether --with-lapack or --without-lapack was given.
21245 if test "${with_lapack+set}" = set; then
21246 withval="$with_lapack"
21247 if test x"$withval" = "xno" ; then
21248 coin_has_lapack="no"
21249 coin_reason="--without-lapack has been specified"
21250 elif test x"$withval" != "xBUILD" ; then
21251 coin_has_lapack="no"
21252 coin_reason="--with-lapack has been specified"
21253 fi
21254 fi;
21255 fi
21256
21257
21258 # check if project is available in present directory
21259 if test "$coin_has_lapack" = notGiven; then
21260 coin_has_lapack=no
21261 if test -d $srcdir/ThirdParty/Lapack; then
21262 coin_reason="source in ThirdParty/Lapack"
21263 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21264 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21265 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21266 for i in $srcdir/ThirdParty/Lapack/LAPACK/SRC/dlarf.f; do
21267 if test -r $i; then
21268 coin_has_lapack="yes"
21269 else
21270 coin_has_lapack="no"
21271 coin_reason="source file $i not available"
21272 break
21273 fi
21274 done
21275
21276 fi
21277 fi
21278
21279 if test -z "$coin_reason" ; then
21280 echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
21281 echo "${ECHO_T}$coin_has_lapack" >&6
21282 else
21283 echo "$as_me:$LINENO: result: $coin_has_lapack, $coin_reason" >&5
21284 echo "${ECHO_T}$coin_has_lapack, $coin_reason" >&6
21285 fi
21286
21287 if test "$coin_has_lapack" = yes ; then
21288 if test -r $srcdir/ThirdParty/Lapack/configure; then
21289 coin_subdirs="$coin_subdirs ThirdParty/Lapack"
21290
21291
21292 subdirs="$subdirs ThirdParty/Lapack"
21293
21294 fi
21295 fi
21296
21297
21298 echo "$as_me:$LINENO: checking whether source of project Glpk is available and should be compiled" >&5
21299 echo $ECHO_N "checking whether source of project Glpk is available and should be compiled... $ECHO_C" >&6
21300
21301 coin_has_glpk=notGiven
21302 coin_reason=
21303
21304 # check if user wants to skip project in any case
21305
21306 if test x"$COIN_SKIP_PROJECTS" != x; then
21307 for dir in $COIN_SKIP_PROJECTS; do
21308 if test $dir = "Glpk"; then
21309 coin_has_glpk="no"
21310 coin_reason="Glpk has been specified in COIN_SKIP_PROJECTS"
21311 fi
21312
21313 if test $dir = "ThirdParty/Glpk"; then
21314 coin_has_glpk="no"
21315 coin_reason="ThirdParty/Glpk has been specified in COIN_SKIP_PROJECTS"
21316 fi
21317 done
21318 fi
21319
21320 if test "$coin_has_glpk" != no; then
21321
21322 # Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
21323 if test "${with_glpk+set}" = set; then
21324 withval="$with_glpk"
21325 if test "$withval" = no ; then
21326 coin_has_glpk="no"
21327 coin_reason="--without-glpk has been specified"
21328 fi
21329
21330 fi;
21331 fi
21332
21333 if test "$coin_has_glpk" != no; then
21334
21335 # Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
21336 if test "${with_glpk_lib+set}" = set; then
21337 withval="$with_glpk_lib"
21338 if test "$withval" = no ; then
21339 coin_has_glpk="no"
21340 coin_reason="--without-glpk-lib has been specified"
21341 else
21342 coin_has_glpk="no"
21343 coin_reason="--with-glpk-lib has been specified"
21344 fi
21345 fi;
21346 fi
21347
21348 if test "$coin_has_glpk" != no; 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="no"
21355 coin_reason="--without-glpk-incdir has been specified"
21356 else
21357 coin_has_glpk="no"
21358 coin_reason="--with-glpk-incdir has been specified"
21359 fi
21360 fi;
21361 fi
21362
21363 if test "$coin_has_glpk" != no; then
21364
21365 # Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
21366 if test "${with_glpk_datadir+set}" = set; then
21367 withval="$with_glpk_datadir"
21368 if test "$withval" = no ; then
21369 coin_has_glpk="no"
21370 coin_reason="--without-glpk-datadir has been specified"
21371 else
21372 coin_has_glpk="no"
21373 coin_reason="--with-glpk-datadir has been specified"
21374 fi
21375 fi;
21376 fi
21377
21378
21379
21380
21381
21382 # check if project is available in present directory
21383 if test "$coin_has_glpk" = notGiven; then
21384 coin_has_glpk=no
21385 if test -d $srcdir/ThirdParty/Glpk; then
21386 coin_reason="source in ThirdParty/Glpk"
21387 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21388 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21389 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21390 for i in $srcdir/ThirdParty/Glpk/glpk/src/glpk.h; do
21391 if test -r $i; then
21392 coin_has_glpk="yes"
21393 else
21394 coin_has_glpk="no"
21395 coin_reason="source file $i not available"
21396 break
21397 fi
21398 done
21399
21400 fi
21401 fi
21402
21403 if test -z "$coin_reason" ; then
21404 echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
21405 echo "${ECHO_T}$coin_has_glpk" >&6
21406 else
21407 echo "$as_me:$LINENO: result: $coin_has_glpk, $coin_reason" >&5
21408 echo "${ECHO_T}$coin_has_glpk, $coin_reason" >&6
21409 fi
21410
21411 if test "$coin_has_glpk" = yes ; then
21412 if test -r $srcdir/ThirdParty/Glpk/configure; then
21413 coin_subdirs="$coin_subdirs ThirdParty/Glpk"
21414
21415
21416 subdirs="$subdirs ThirdParty/Glpk"
21417
21418 fi
21419 fi
21420
21421
21422 echo "$as_me:$LINENO: checking whether source of project Metis is available and should be compiled" >&5
21423 echo $ECHO_N "checking whether source of project Metis is available and should be compiled... $ECHO_C" >&6
21424
21425 coin_has_metis=notGiven
21426 coin_reason=
21427
21428 # check if user wants to skip project in any case
21429
21430 if test x"$COIN_SKIP_PROJECTS" != x; then
21431 for dir in $COIN_SKIP_PROJECTS; do
21432 if test $dir = "Metis"; then
21433 coin_has_metis="no"
21434 coin_reason="Metis has been specified in COIN_SKIP_PROJECTS"
21435 fi
21436
21437 if test $dir = "ThirdParty/Metis"; then
21438 coin_has_metis="no"
21439 coin_reason="ThirdParty/Metis has been specified in COIN_SKIP_PROJECTS"
21440 fi
21441 done
21442 fi
21443
21444 if test "$coin_has_metis" != no; then
21445
21446 # Check whether --with-m4_tolower(Metis) or --without-m4_tolower(Metis) was given.
21447 if test "${with_metis+set}" = set; then
21448 withval="$with_metis"
21449 if test "$withval" = no ; then
21450 coin_has_metis="no"
21451 coin_reason="--without-metis has been specified"
21452 fi
21453
21454 fi;
21455 fi
21456
21457 if test "$coin_has_metis" != no; then
21458
21459 # Check whether --with-m4_tolower(Metis)-lib or --without-m4_tolower(Metis)-lib was given.
21460 if test "${with_metis_lib+set}" = set; then
21461 withval="$with_metis_lib"
21462 if test "$withval" = no ; then
21463 coin_has_metis="no"
21464 coin_reason="--without-metis-lib has been specified"
21465 else
21466 coin_has_metis="no"
21467 coin_reason="--with-metis-lib has been specified"
21468 fi
21469 fi;
21470 fi
21471
21472 if test "$coin_has_metis" != no; then
21473
21474 # Check whether --with-m4_tolower(Metis)-incdir or --without-m4_tolower(Metis)-incdir was given.
21475 if test "${with_metis_incdir+set}" = set; then
21476 withval="$with_metis_incdir"
21477 if test "$withval" = no ; then
21478 coin_has_metis="no"
21479 coin_reason="--without-metis-incdir has been specified"
21480 else
21481 coin_has_metis="no"
21482 coin_reason="--with-metis-incdir has been specified"
21483 fi
21484 fi;
21485 fi
21486
21487 if test "$coin_has_metis" != no; then
21488
21489 # Check whether --with-m4_tolower(Metis)-datadir or --without-m4_tolower(Metis)-datadir was given.
21490 if test "${with_metis_datadir+set}" = set; then
21491 withval="$with_metis_datadir"
21492 if test "$withval" = no ; then
21493 coin_has_metis="no"
21494 coin_reason="--without-metis-datadir has been specified"
21495 else
21496 coin_has_metis="no"
21497 coin_reason="--with-metis-datadir has been specified"
21498 fi
21499 fi;
21500 fi
21501
21502
21503
21504
21505
21506 # check if project is available in present directory
21507 if test "$coin_has_metis" = notGiven; then
21508 coin_has_metis=no
21509 if test -d $srcdir/ThirdParty/Metis; then
21510 coin_reason="source in ThirdParty/Metis"
21511 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21512 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21513 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21514 for i in $srcdir/ThirdParty/Metis/metis-4.0/Lib/balance.c; do
21515 if test -r $i; then
21516 coin_has_metis="yes"
21517 else
21518 coin_has_metis="no"
21519 coin_reason="source file $i not available"
21520 break
21521 fi
21522 done
21523
21524 fi
21525 fi
21526
21527 if test -z "$coin_reason" ; then
21528 echo "$as_me:$LINENO: result: $coin_has_metis" >&5
21529 echo "${ECHO_T}$coin_has_metis" >&6
21530 else
21531 echo "$as_me:$LINENO: result: $coin_has_metis, $coin_reason" >&5
21532 echo "${ECHO_T}$coin_has_metis, $coin_reason" >&6
21533 fi
21534
21535 if test "$coin_has_metis" = yes ; then
21536 if test -r $srcdir/ThirdParty/Metis/configure; then
21537 coin_subdirs="$coin_subdirs ThirdParty/Metis"
21538
21539
21540 subdirs="$subdirs ThirdParty/Metis"
21541
21542 fi
21543 fi
21544
21545
21546 echo "$as_me:$LINENO: checking whether source of project Mumps is available and should be compiled" >&5
21547 echo $ECHO_N "checking whether source of project Mumps is available and should be compiled... $ECHO_C" >&6
21548
21549 coin_has_mumps=notGiven
21550 coin_reason=
21551
21552 # check if user wants to skip project in any case
21553
21554 if test x"$COIN_SKIP_PROJECTS" != x; then
21555 for dir in $COIN_SKIP_PROJECTS; do
21556 if test $dir = "Mumps"; then
21557 coin_has_mumps="no"
21558 coin_reason="Mumps has been specified in COIN_SKIP_PROJECTS"
21559 fi
21560
21561 if test $dir = "ThirdParty/Mumps"; then
21562 coin_has_mumps="no"
21563 coin_reason="ThirdParty/Mumps has been specified in COIN_SKIP_PROJECTS"
21564 fi
21565 done
21566 fi
21567
21568 if test "$coin_has_mumps" != no; then
21569
21570 # Check whether --with-m4_tolower(Mumps) or --without-m4_tolower(Mumps) was given.
21571 if test "${with_mumps+set}" = set; then
21572 withval="$with_mumps"
21573 if test "$withval" = no ; then
21574 coin_has_mumps="no"
21575 coin_reason="--without-mumps has been specified"
21576 fi
21577
21578 fi;
21579 fi
21580
21581 if test "$coin_has_mumps" != no; then
21582
21583 # Check whether --with-m4_tolower(Mumps)-lib or --without-m4_tolower(Mumps)-lib was given.
21584 if test "${with_mumps_lib+set}" = set; then
21585 withval="$with_mumps_lib"
21586 if test "$withval" = no ; then
21587 coin_has_mumps="no"
21588 coin_reason="--without-mumps-lib has been specified"
21589 else
21590 coin_has_mumps="no"
21591 coin_reason="--with-mumps-lib has been specified"
21592 fi
21593 fi;
21594 fi
21595
21596 if test "$coin_has_mumps" != no; then
21597
21598 # Check whether --with-m4_tolower(Mumps)-incdir or --without-m4_tolower(Mumps)-incdir was given.
21599 if test "${with_mumps_incdir+set}" = set; then
21600 withval="$with_mumps_incdir"
21601 if test "$withval" = no ; then
21602 coin_has_mumps="no"
21603 coin_reason="--without-mumps-incdir has been specified"
21604 else
21605 coin_has_mumps="no"
21606 coin_reason="--with-mumps-incdir has been specified"
21607 fi
21608 fi;
21609 fi
21610
21611 if test "$coin_has_mumps" != no; then
21612
21613 # Check whether --with-m4_tolower(Mumps)-datadir or --without-m4_tolower(Mumps)-datadir was given.
21614 if test "${with_mumps_datadir+set}" = set; then
21615 withval="$with_mumps_datadir"
21616 if test "$withval" = no ; then
21617 coin_has_mumps="no"
21618 coin_reason="--without-mumps-datadir has been specified"
21619 else
21620 coin_has_mumps="no"
21621 coin_reason="--with-mumps-datadir has been specified"
21622 fi
21623 fi;
21624 fi
21625
21626
21627
21628
21629
21630 # check if project is available in present directory
21631 if test "$coin_has_mumps" = notGiven; then
21632 coin_has_mumps=no
21633 if test -d $srcdir/ThirdParty/Mumps; then
21634 coin_reason="source in ThirdParty/Mumps"
21635 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21636 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21637 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21638 for i in $srcdir/ThirdParty/Mumps/MUMPS/src/dmumps_part1.F; do
21639 if test -r $i; then
21640 coin_has_mumps="yes"
21641 else
21642 coin_has_mumps="no"
21643 coin_reason="source file $i not available"
21644 break
21645 fi
21646 done
21647
21648 fi
21649 fi
21650
21651 if test -z "$coin_reason" ; then
21652 echo "$as_me:$LINENO: result: $coin_has_mumps" >&5
21653 echo "${ECHO_T}$coin_has_mumps" >&6
21654 else
21655 echo "$as_me:$LINENO: result: $coin_has_mumps, $coin_reason" >&5
21656 echo "${ECHO_T}$coin_has_mumps, $coin_reason" >&6
21657 fi
21658
21659 if test "$coin_has_mumps" = yes ; then
21660 if test -r $srcdir/ThirdParty/Mumps/configure; then
21661 coin_subdirs="$coin_subdirs ThirdParty/Mumps"
21662
21663
21664 subdirs="$subdirs ThirdParty/Mumps"
21665
21666 fi
21667 fi
21668
21669
21670 echo "$as_me:$LINENO: checking whether source of project Sample is available and should be compiled" >&5
21671 echo $ECHO_N "checking whether source of project Sample is available and should be compiled... $ECHO_C" >&6
21672
21673 coin_has_sample=notGiven
21674 coin_reason=
21675
21676 # check if user wants to skip project in any case
21677
21678 if test x"$COIN_SKIP_PROJECTS" != x; then
21679 for dir in $COIN_SKIP_PROJECTS; do
21680 if test $dir = "Sample"; then
21681 coin_has_sample="no"
21682 coin_reason="Sample has been specified in COIN_SKIP_PROJECTS"
21683 fi
21684
21685 if test $dir = "Data/Sample"; then
21686 coin_has_sample="no"
21687 coin_reason="Data/Sample has been specified in COIN_SKIP_PROJECTS"
21688 fi
21689 done
21690 fi
21691
21692 if test "$coin_has_sample" != no; then
21693
21694 # Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
21695 if test "${with_sample+set}" = set; then
21696 withval="$with_sample"
21697 if test "$withval" = no ; then
21698 coin_has_sample="no"
21699 coin_reason="--without-sample has been specified"
21700 fi
21701
21702 fi;
21703 fi
21704
21705 if test "$coin_has_sample" != no; then
21706
21707 # Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
21708 if test "${with_sample_lib+set}" = set; then
21709 withval="$with_sample_lib"
21710 if test "$withval" = no ; then
21711 coin_has_sample="no"
21712 coin_reason="--without-sample-lib has been specified"
21713 else
21714 coin_has_sample="no"
21715 coin_reason="--with-sample-lib has been specified"
21716 fi
21717 fi;
21718 fi
21719
21720 if test "$coin_has_sample" != no; then
21721
21722 # Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
21723 if test "${with_sample_incdir+set}" = set; then
21724 withval="$with_sample_incdir"
21725 if test "$withval" = no ; then
21726 coin_has_sample="no"
21727 coin_reason="--without-sample-incdir has been specified"
21728 else
21729 coin_has_sample="no"
21730 coin_reason="--with-sample-incdir has been specified"
21731 fi
21732 fi;
21733 fi
21734
21735 if test "$coin_has_sample" != no; then
21736
21737 # Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
21738 if test "${with_sample_datadir+set}" = set; then
21739 withval="$with_sample_datadir"
21740 if test "$withval" = no ; then
21741 coin_has_sample="no"
21742 coin_reason="--without-sample-datadir has been specified"
21743 else
21744 coin_has_sample="no"
21745 coin_reason="--with-sample-datadir has been specified"
21746 fi
21747 fi;
21748 fi
21749
21750
21751
21752
21753
21754 # check if project is available in present directory
21755 if test "$coin_has_sample" = notGiven; then
21756 coin_has_sample=no
21757 if test -d $srcdir/Data/Sample; then
21758 coin_reason="source in Data/Sample"
21759 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21760 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21761 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21762 coin_has_sample="yes"
21763
21764 fi
21765 fi
21766
21767 if test -z "$coin_reason" ; then
21768 echo "$as_me:$LINENO: result: $coin_has_sample" >&5
21769 echo "${ECHO_T}$coin_has_sample" >&6
21770 else
21771 echo "$as_me:$LINENO: result: $coin_has_sample, $coin_reason" >&5
21772 echo "${ECHO_T}$coin_has_sample, $coin_reason" >&6
21773 fi
21774
21775 if test "$coin_has_sample" = yes ; then
21776 if test -r $srcdir/Data/Sample/configure; then
21777 coin_subdirs="$coin_subdirs Data/Sample"
21778
21779
21780 subdirs="$subdirs Data/Sample"
21781
21782 fi
21783 fi
21784
21785
21786 echo "$as_me:$LINENO: checking whether source of project Netlib is available and should be compiled" >&5
21787 echo $ECHO_N "checking whether source of project Netlib is available and should be compiled... $ECHO_C" >&6
21788
21789 coin_has_netlib=notGiven
21790 coin_reason=
21791
21792 # check if user wants to skip project in any case
21793
21794 if test x"$COIN_SKIP_PROJECTS" != x; then
21795 for dir in $COIN_SKIP_PROJECTS; do
21796 if test $dir = "Netlib"; then
21797 coin_has_netlib="no"
21798 coin_reason="Netlib has been specified in COIN_SKIP_PROJECTS"
21799 fi
21800
21801 if test $dir = "Data/Netlib"; then
21802 coin_has_netlib="no"
21803 coin_reason="Data/Netlib has been specified in COIN_SKIP_PROJECTS"
21804 fi
21805 done
21806 fi
21807
21808 if test "$coin_has_netlib" != no; then
21809
21810 # Check whether --with-m4_tolower(Netlib) or --without-m4_tolower(Netlib) was given.
21811 if test "${with_netlib+set}" = set; then
21812 withval="$with_netlib"
21813 if test "$withval" = no ; then
21814 coin_has_netlib="no"
21815 coin_reason="--without-netlib has been specified"
21816 fi
21817
21818 fi;
21819 fi
21820
21821 if test "$coin_has_netlib" != no; then
21822
21823 # Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
21824 if test "${with_netlib_lib+set}" = set; then
21825 withval="$with_netlib_lib"
21826 if test "$withval" = no ; then
21827 coin_has_netlib="no"
21828 coin_reason="--without-netlib-lib has been specified"
21829 else
21830 coin_has_netlib="no"
21831 coin_reason="--with-netlib-lib has been specified"
21832 fi
21833 fi;
21834 fi
21835
21836 if test "$coin_has_netlib" != no; then
21837
21838 # Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
21839 if test "${with_netlib_incdir+set}" = set; then
21840 withval="$with_netlib_incdir"
21841 if test "$withval" = no ; then
21842 coin_has_netlib="no"
21843 coin_reason="--without-netlib-incdir has been specified"
21844 else
21845 coin_has_netlib="no"
21846 coin_reason="--with-netlib-incdir has been specified"
21847 fi
21848 fi;
21849 fi
21850
21851 if test "$coin_has_netlib" != no; then
21852
21853 # Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
21854 if test "${with_netlib_datadir+set}" = set; then
21855 withval="$with_netlib_datadir"
21856 if test "$withval" = no ; then
21857 coin_has_netlib="no"
21858 coin_reason="--without-netlib-datadir has been specified"
21859 else
21860 coin_has_netlib="no"
21861 coin_reason="--with-netlib-datadir has been specified"
21862 fi
21863 fi;
21864 fi
21865
21866
21867
21868
21869
21870 # check if project is available in present directory
21871 if test "$coin_has_netlib" = notGiven; then
21872 coin_has_netlib=no
21873 if test -d $srcdir/Data/Netlib; then
21874 coin_reason="source in Data/Netlib"
21875 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21876 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21877 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21878 coin_has_netlib="yes"
21879
21880 fi
21881 fi
21882
21883 if test -z "$coin_reason" ; then
21884 echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
21885 echo "${ECHO_T}$coin_has_netlib" >&6
21886 else
21887 echo "$as_me:$LINENO: result: $coin_has_netlib, $coin_reason" >&5
21888 echo "${ECHO_T}$coin_has_netlib, $coin_reason" >&6
21889 fi
21890
21891 if test "$coin_has_netlib" = yes ; then
21892 if test -r $srcdir/Data/Netlib/configure; then
21893 coin_subdirs="$coin_subdirs Data/Netlib"
21894
21895
21896 subdirs="$subdirs Data/Netlib"
21897
21898 fi
21899 fi
21900
21901
21902 echo "$as_me:$LINENO: checking whether source of project miplib3 is available and should be compiled" >&5
21903 echo $ECHO_N "checking whether source of project miplib3 is available and should be compiled... $ECHO_C" >&6
21904
21905 coin_has_miplib3=notGiven
21906 coin_reason=
21907
21908 # check if user wants to skip project in any case
21909
21910 if test x"$COIN_SKIP_PROJECTS" != x; then
21911 for dir in $COIN_SKIP_PROJECTS; do
21912 if test $dir = "miplib3"; then
21913 coin_has_miplib3="no"
21914 coin_reason="miplib3 has been specified in COIN_SKIP_PROJECTS"
21915 fi
21916
21917 if test $dir = "Data/miplib3"; then
21918 coin_has_miplib3="no"
21919 coin_reason="Data/miplib3 has been specified in COIN_SKIP_PROJECTS"
21920 fi
21921 done
21922 fi
21923
21924 if test "$coin_has_miplib3" != no; then
21925
21926 # Check whether --with-m4_tolower(miplib3) or --without-m4_tolower(miplib3) was given.
21927 if test "${with_miplib3+set}" = set; then
21928 withval="$with_miplib3"
21929 if test "$withval" = no ; then
21930 coin_has_miplib3="no"
21931 coin_reason="--without-miplib3 has been specified"
21932 fi
21933
21934 fi;
21935 fi
21936
21937 if test "$coin_has_miplib3" != no; then
21938
21939 # Check whether --with-m4_tolower(miplib3)-lib or --without-m4_tolower(miplib3)-lib was given.
21940 if test "${with_miplib3_lib+set}" = set; then
21941 withval="$with_miplib3_lib"
21942 if test "$withval" = no ; then
21943 coin_has_miplib3="no"
21944 coin_reason="--without-miplib3-lib has been specified"
21945 else
21946 coin_has_miplib3="no"
21947 coin_reason="--with-miplib3-lib has been specified"
21948 fi
21949 fi;
21950 fi
21951
21952 if test "$coin_has_miplib3" != no; then
21953
21954 # Check whether --with-m4_tolower(miplib3)-incdir or --without-m4_tolower(miplib3)-incdir was given.
21955 if test "${with_miplib3_incdir+set}" = set; then
21956 withval="$with_miplib3_incdir"
21957 if test "$withval" = no ; then
21958 coin_has_miplib3="no"
21959 coin_reason="--without-miplib3-incdir has been specified"
21960 else
21961 coin_has_miplib3="no"
21962 coin_reason="--with-miplib3-incdir has been specified"
21963 fi
21964 fi;
21965 fi
21966
21967 if test "$coin_has_miplib3" != no; then
21968
21969 # Check whether --with-m4_tolower(miplib3)-datadir or --without-m4_tolower(miplib3)-datadir was given.
21970 if test "${with_miplib3_datadir+set}" = set; then
21971 withval="$with_miplib3_datadir"
21972 if test "$withval" = no ; then
21973 coin_has_miplib3="no"
21974 coin_reason="--without-miplib3-datadir has been specified"
21975 else
21976 coin_has_miplib3="no"
21977 coin_reason="--with-miplib3-datadir has been specified"
21978 fi
21979 fi;
21980 fi
21981
21982
21983
21984
21985
21986 # check if project is available in present directory
21987 if test "$coin_has_miplib3" = notGiven; then
21988 coin_has_miplib3=no
21989 if test -d $srcdir/Data/miplib3; then
21990 coin_reason="source in Data/miplib3"
21991 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21992 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21993 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21994 coin_has_miplib3="yes"
21995
21996 fi
21997 fi
21998
21999 if test -z "$coin_reason" ; then
22000 echo "$as_me:$LINENO: result: $coin_has_miplib3" >&5
22001 echo "${ECHO_T}$coin_has_miplib3" >&6
22002 else
22003 echo "$as_me:$LINENO: result: $coin_has_miplib3, $coin_reason" >&5
22004 echo "${ECHO_T}$coin_has_miplib3, $coin_reason" >&6
22005 fi
22006
22007 if test "$coin_has_miplib3" = yes ; then
22008 if test -r $srcdir/Data/miplib3/configure; then
22009 coin_subdirs="$coin_subdirs Data/miplib3"
22010
22011
22012 subdirs="$subdirs Data/miplib3"
22013
22014 fi
22015 fi
22016
22017
22018 echo "$as_me:$LINENO: checking whether source of project CoinUtils is available and should be compiled" >&5
22019 echo $ECHO_N "checking whether source of project CoinUtils is available and should be compiled... $ECHO_C" >&6
22020
22021 coin_has_coinutils=notGiven
22022 coin_reason=
22023
22024 # check if user wants to skip project in any case
22025
22026 if test x"$COIN_SKIP_PROJECTS" != x; then
22027 for dir in $COIN_SKIP_PROJECTS; do
22028 if test $dir = "CoinUtils"; then
22029 coin_has_coinutils="no"
22030 coin_reason="CoinUtils has been specified in COIN_SKIP_PROJECTS"
22031 fi
22032
22033 done
22034 fi
22035
22036 if test "$coin_has_coinutils" != no; then
22037
22038 # Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
22039 if test "${with_coinutils+set}" = set; then
22040 withval="$with_coinutils"
22041 if test "$withval" = no ; then
22042 coin_has_coinutils="no"
22043 coin_reason="--without-coinutils has been specified"
22044 fi
22045
22046 fi;
22047 fi
22048
22049 if test "$coin_has_coinutils" != no; then
22050
22051 # Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
22052 if test "${with_coinutils_lib+set}" = set; then
22053 withval="$with_coinutils_lib"
22054 if test "$withval" = no ; then
22055 coin_has_coinutils="no"
22056 coin_reason="--without-coinutils-lib has been specified"
22057 else
22058 coin_has_coinutils="no"
22059 coin_reason="--with-coinutils-lib has been specified"
22060 fi
22061 fi;
22062 fi
22063
22064 if test "$coin_has_coinutils" != no; then
22065
22066 # Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
22067 if test "${with_coinutils_incdir+set}" = set; then
22068 withval="$with_coinutils_incdir"
22069 if test "$withval" = no ; then
22070 coin_has_coinutils="no"
22071 coin_reason="--without-coinutils-incdir has been specified"
22072 else
22073 coin_has_coinutils="no"
22074 coin_reason="--with-coinutils-incdir has been specified"
22075 fi
22076 fi;
22077 fi
22078
22079 if test "$coin_has_coinutils" != no; then
22080
22081 # Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
22082 if test "${with_coinutils_datadir+set}" = set; then
22083 withval="$with_coinutils_datadir"
22084 if test "$withval" = no ; then
22085 coin_has_coinutils="no"
22086 coin_reason="--without-coinutils-datadir has been specified"
22087 else
22088 coin_has_coinutils="no"
22089 coin_reason="--with-coinutils-datadir has been specified"
22090 fi
22091 fi;
22092 fi
22093
22094
22095
22096
22097
22098 # check if project is available in present directory
22099 if test "$coin_has_coinutils" = notGiven; then
22100 coin_has_coinutils=no
22101 if test -d $srcdir/CoinUtils; then
22102 coin_reason="source in CoinUtils"
22103 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22104 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22105 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22106 coin_has_coinutils="yes"
22107
22108 fi
22109 fi
22110
22111 if test -z "$coin_reason" ; then
22112 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
22113 echo "${ECHO_T}$coin_has_coinutils" >&6
22114 else
22115 echo "$as_me:$LINENO: result: $coin_has_coinutils, $coin_reason" >&5
22116 echo "${ECHO_T}$coin_has_coinutils, $coin_reason" >&6
22117 fi
22118
22119 if test "$coin_has_coinutils" = yes ; then
22120 if test -r $srcdir/CoinUtils/configure; then
22121 coin_subdirs="$coin_subdirs CoinUtils"
22122
22123
22124 subdirs="$subdirs CoinUtils"
22125
22126 fi
22127 fi
22128
22129
22130 echo "$as_me:$LINENO: checking whether source of project Osi is available and should be compiled" >&5
22131 echo $ECHO_N "checking whether source of project Osi is available and should be compiled... $ECHO_C" >&6
22132
22133 coin_has_osi=notGiven
22134 coin_reason=
22135
22136 # check if user wants to skip project in any case
22137
22138 if test x"$COIN_SKIP_PROJECTS" != x; then
22139 for dir in $COIN_SKIP_PROJECTS; do
22140 if test $dir = "Osi"; then
22141 coin_has_osi="no"
22142 coin_reason="Osi has been specified in COIN_SKIP_PROJECTS"
22143 fi
22144
22145 done
22146 fi
22147
22148 if test "$coin_has_osi" != no; then
22149
22150 # Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
22151 if test "${with_osi+set}" = set; then
22152 withval="$with_osi"
22153 if test "$withval" = no ; then
22154 coin_has_osi="no"
22155 coin_reason="--without-osi has been specified"
22156 fi
22157
22158 fi;
22159 fi
22160
22161 if test "$coin_has_osi" != no; then
22162
22163 # Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
22164 if test "${with_osi_lib+set}" = set; then
22165 withval="$with_osi_lib"
22166 if test "$withval" = no ; then
22167 coin_has_osi="no"
22168 coin_reason="--without-osi-lib has been specified"
22169 else
22170 coin_has_osi="no"
22171 coin_reason="--with-osi-lib has been specified"
22172 fi
22173 fi;
22174 fi
22175
22176 if test "$coin_has_osi" != no; then
22177
22178 # Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
22179 if test "${with_osi_incdir+set}" = set; then
22180 withval="$with_osi_incdir"
22181 if test "$withval" = no ; then
22182 coin_has_osi="no"
22183 coin_reason="--without-osi-incdir has been specified"
22184 else
22185 coin_has_osi="no"
22186 coin_reason="--with-osi-incdir has been specified"
22187 fi
22188 fi;
22189 fi
22190
22191 if test "$coin_has_osi" != no; then
22192
22193 # Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
22194 if test "${with_osi_datadir+set}" = set; then
22195 withval="$with_osi_datadir"
22196 if test "$withval" = no ; then
22197 coin_has_osi="no"
22198 coin_reason="--without-osi-datadir has been specified"
22199 else
22200 coin_has_osi="no"
22201 coin_reason="--with-osi-datadir has been specified"
22202 fi
22203 fi;
22204 fi
22205
22206
22207
22208
22209
22210 # check if project is available in present directory
22211 if test "$coin_has_osi" = notGiven; then
22212 coin_has_osi=no
22213 if test -d $srcdir/Osi; then
22214 coin_reason="source in Osi"
22215 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22216 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22217 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22218 coin_has_osi="yes"
22219
22220 fi
22221 fi
22222
22223 if test -z "$coin_reason" ; then
22224 echo "$as_me:$LINENO: result: $coin_has_osi" >&5
22225 echo "${ECHO_T}$coin_has_osi" >&6
22226 else
22227 echo "$as_me:$LINENO: result: $coin_has_osi, $coin_reason" >&5
22228 echo "${ECHO_T}$coin_has_osi, $coin_reason" >&6
22229 fi
22230
22231 if test "$coin_has_osi" = yes ; then
22232 if test -r $srcdir/Osi/configure; then
22233 coin_subdirs="$coin_subdirs Osi"
22234
22235
22236 subdirs="$subdirs Osi"
22237
22238 fi
22239 fi
22240
22241
22242 echo "$as_me:$LINENO: checking whether source of project Clp is available and should be compiled" >&5
22243 echo $ECHO_N "checking whether source of project Clp is available and should be compiled... $ECHO_C" >&6
22244
22245 coin_has_clp=notGiven
22246 coin_reason=
22247
22248 # check if user wants to skip project in any case
22249
22250 if test x"$COIN_SKIP_PROJECTS" != x; then
22251 for dir in $COIN_SKIP_PROJECTS; do
22252 if test $dir = "Clp"; then
22253 coin_has_clp="no"
22254 coin_reason="Clp has been specified in COIN_SKIP_PROJECTS"
22255 fi
22256
22257 done
22258 fi
22259
22260 if test "$coin_has_clp" != no; then
22261
22262 # Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given.
22263 if test "${with_clp+set}" = set; then
22264 withval="$with_clp"
22265 if test "$withval" = no ; then
22266 coin_has_clp="no"
22267 coin_reason="--without-clp has been specified"
22268 fi
22269
22270 fi;
22271 fi
22272
22273 if test "$coin_has_clp" != no; then
22274
22275 # Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
22276 if test "${with_clp_lib+set}" = set; then
22277 withval="$with_clp_lib"
22278 if test "$withval" = no ; then
22279 coin_has_clp="no"
22280 coin_reason="--without-clp-lib has been specified"
22281 else
22282 coin_has_clp="no"
22283 coin_reason="--with-clp-lib has been specified"
22284 fi
22285 fi;
22286 fi
22287
22288 if test "$coin_has_clp" != no; then
22289
22290 # Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
22291 if test "${with_clp_incdir+set}" = set; then
22292 withval="$with_clp_incdir"
22293 if test "$withval" = no ; then
22294 coin_has_clp="no"
22295 coin_reason="--without-clp-incdir has been specified"
22296 else
22297 coin_has_clp="no"
22298 coin_reason="--with-clp-incdir has been specified"
22299 fi
22300 fi;
22301 fi
22302
22303 if test "$coin_has_clp" != no; then
22304
22305 # Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
22306 if test "${with_clp_datadir+set}" = set; then
22307 withval="$with_clp_datadir"
22308 if test "$withval" = no ; then
22309 coin_has_clp="no"
22310 coin_reason="--without-clp-datadir has been specified"
22311 else
22312 coin_has_clp="no"
22313 coin_reason="--with-clp-datadir has been specified"
22314 fi
22315 fi;
22316 fi
22317
22318
22319
22320
22321
22322 # check if project is available in present directory
22323 if test "$coin_has_clp" = notGiven; then
22324 coin_has_clp=no
22325 if test -d $srcdir/Clp; then
22326 coin_reason="source in Clp"
22327 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22328 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22329 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22330 coin_has_clp="yes"
22331
22332 fi
22333 fi
22334
22335 if test -z "$coin_reason" ; then
22336 echo "$as_me:$LINENO: result: $coin_has_clp" >&5
22337 echo "${ECHO_T}$coin_has_clp" >&6
22338 else
22339 echo "$as_me:$LINENO: result: $coin_has_clp, $coin_reason" >&5
22340 echo "${ECHO_T}$coin_has_clp, $coin_reason" >&6
22341 fi
22342
22343 if test "$coin_has_clp" = yes ; then
22344 if test -r $srcdir/Clp/configure; then
22345 coin_subdirs="$coin_subdirs Clp"
22346
22347
22348 subdirs="$subdirs Clp"
22349
22350 fi
22351 fi
22352
22353
22354 echo "$as_me:$LINENO: checking whether source of project DyLP is available and should be compiled" >&5
22355 echo $ECHO_N "checking whether source of project DyLP is available and should be compiled... $ECHO_C" >&6
22356
22357 coin_has_dylp=notGiven
22358 coin_reason=
22359
22360 # check if user wants to skip project in any case
22361
22362 if test x"$COIN_SKIP_PROJECTS" != x; then
22363 for dir in $COIN_SKIP_PROJECTS; do
22364 if test $dir = "DyLP"; then
22365 coin_has_dylp="no"
22366 coin_reason="DyLP has been specified in COIN_SKIP_PROJECTS"
22367 fi
22368
22369 done
22370 fi
22371
22372 if test "$coin_has_dylp" != no; then
22373
22374 # Check whether --with-m4_tolower(DyLP) or --without-m4_tolower(DyLP) was given.
22375 if test "${with_dylp+set}" = set; then
22376 withval="$with_dylp"
22377 if test "$withval" = no ; then
22378 coin_has_dylp="no"
22379 coin_reason="--without-dylp has been specified"
22380 fi
22381
22382 fi;
22383 fi
22384
22385 if test "$coin_has_dylp" != no; then
22386
22387 # Check whether --with-m4_tolower(DyLP)-lib or --without-m4_tolower(DyLP)-lib was given.
22388 if test "${with_dylp_lib+set}" = set; then
22389 withval="$with_dylp_lib"
22390 if test "$withval" = no ; then
22391 coin_has_dylp="no"
22392 coin_reason="--without-dylp-lib has been specified"
22393 else
22394 coin_has_dylp="no"
22395 coin_reason="--with-dylp-lib has been specified"
22396 fi
22397 fi;
22398 fi
22399
22400 if test "$coin_has_dylp" != no; then
22401
22402 # Check whether --with-m4_tolower(DyLP)-incdir or --without-m4_tolower(DyLP)-incdir was given.
22403 if test "${with_dylp_incdir+set}" = set; then
22404 withval="$with_dylp_incdir"
22405 if test "$withval" = no ; then
22406 coin_has_dylp="no"
22407 coin_reason="--without-dylp-incdir has been specified"
22408 else
22409 coin_has_dylp="no"
22410 coin_reason="--with-dylp-incdir has been specified"
22411 fi
22412 fi;
22413 fi
22414
22415 if test "$coin_has_dylp" != no; then
22416
22417 # Check whether --with-m4_tolower(DyLP)-datadir or --without-m4_tolower(DyLP)-datadir was given.
22418 if test "${with_dylp_datadir+set}" = set; then
22419 withval="$with_dylp_datadir"
22420 if test "$withval" = no ; then
22421 coin_has_dylp="no"
22422 coin_reason="--without-dylp-datadir has been specified"
22423 else
22424 coin_has_dylp="no"
22425 coin_reason="--with-dylp-datadir has been specified"
22426 fi
22427 fi;
22428 fi
22429
22430
22431
22432
22433
22434 # check if project is available in present directory
22435 if test "$coin_has_dylp" = notGiven; then
22436 coin_has_dylp=no
22437 if test -d $srcdir/DyLP; then
22438 coin_reason="source in DyLP"
22439 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22440 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22441 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22442 coin_has_dylp="yes"
22443
22444 fi
22445 fi
22446
22447 if test -z "$coin_reason" ; then
22448 echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
22449 echo "${ECHO_T}$coin_has_dylp" >&6
22450 else
22451 echo "$as_me:$LINENO: result: $coin_has_dylp, $coin_reason" >&5
22452 echo "${ECHO_T}$coin_has_dylp, $coin_reason" >&6
22453 fi
22454
22455 if test "$coin_has_dylp" = yes ; then
22456 if test -r $srcdir/DyLP/configure; then
22457 coin_subdirs="$coin_subdirs DyLP"
22458
22459
22460 subdirs="$subdirs DyLP"
22461
22462 fi
22463 fi
22464
22465
22466 echo "$as_me:$LINENO: checking whether source of project Vol is available and should be compiled" >&5
22467 echo $ECHO_N "checking whether source of project Vol is available and should be compiled... $ECHO_C" >&6
22468
22469 coin_has_vol=notGiven
22470 coin_reason=
22471
22472 # check if user wants to skip project in any case
22473
22474 if test x"$COIN_SKIP_PROJECTS" != x; then
22475 for dir in $COIN_SKIP_PROJECTS; do
22476 if test $dir = "Vol"; then
22477 coin_has_vol="no"
22478 coin_reason="Vol has been specified in COIN_SKIP_PROJECTS"
22479 fi
22480
22481 done
22482 fi
22483
22484 if test "$coin_has_vol" != no; then
22485
22486 # Check whether --with-m4_tolower(Vol) or --without-m4_tolower(Vol) was given.
22487 if test "${with_vol+set}" = set; then
22488 withval="$with_vol"
22489 if test "$withval" = no ; then
22490 coin_has_vol="no"
22491 coin_reason="--without-vol has been specified"
22492 fi
22493
22494 fi;
22495 fi
22496
22497 if test "$coin_has_vol" != no; then
22498
22499 # Check whether --with-m4_tolower(Vol)-lib or --without-m4_tolower(Vol)-lib was given.
22500 if test "${with_vol_lib+set}" = set; then
22501 withval="$with_vol_lib"
22502 if test "$withval" = no ; then
22503 coin_has_vol="no"
22504 coin_reason="--without-vol-lib has been specified"
22505 else
22506 coin_has_vol="no"
22507 coin_reason="--with-vol-lib has been specified"
22508 fi
22509 fi;
22510 fi
22511
22512 if test "$coin_has_vol" != no; then
22513
22514 # Check whether --with-m4_tolower(Vol)-incdir or --without-m4_tolower(Vol)-incdir was given.
22515 if test "${with_vol_incdir+set}" = set; then
22516 withval="$with_vol_incdir"
22517 if test "$withval" = no ; then
22518 coin_has_vol="no"
22519 coin_reason="--without-vol-incdir has been specified"
22520 else
22521 coin_has_vol="no"
22522 coin_reason="--with-vol-incdir has been specified"
22523 fi
22524 fi;
22525 fi
22526
22527 if test "$coin_has_vol" != no; then
22528
22529 # Check whether --with-m4_tolower(Vol)-datadir or --without-m4_tolower(Vol)-datadir was given.
22530 if test "${with_vol_datadir+set}" = set; then
22531 withval="$with_vol_datadir"
22532 if test "$withval" = no ; then
22533 coin_has_vol="no"
22534 coin_reason="--without-vol-datadir has been specified"
22535 else
22536 coin_has_vol="no"
22537 coin_reason="--with-vol-datadir has been specified"
22538 fi
22539 fi;
22540 fi
22541
22542
22543
22544
22545
22546 # check if project is available in present directory
22547 if test "$coin_has_vol" = notGiven; then
22548 coin_has_vol=no
22549 if test -d $srcdir/Vol; then
22550 coin_reason="source in Vol"
22551 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22552 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22553 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22554 coin_has_vol="yes"
22555
22556 fi
22557 fi
22558
22559 if test -z "$coin_reason" ; then
22560 echo "$as_me:$LINENO: result: $coin_has_vol" >&5
22561 echo "${ECHO_T}$coin_has_vol" >&6
22562 else
22563 echo "$as_me:$LINENO: result: $coin_has_vol, $coin_reason" >&5
22564 echo "${ECHO_T}$coin_has_vol, $coin_reason" >&6
22565 fi
22566
22567 if test "$coin_has_vol" = yes ; then
22568 if test -r $srcdir/Vol/configure; then
22569 coin_subdirs="$coin_subdirs Vol"
22570
22571
22572 subdirs="$subdirs Vol"
22573
22574 fi
22575 fi
22576
22577
22578 echo "$as_me:$LINENO: checking whether source of project Cgl is available and should be compiled" >&5
22579 echo $ECHO_N "checking whether source of project Cgl is available and should be compiled... $ECHO_C" >&6
22580
22581 coin_has_cgl=notGiven
22582 coin_reason=
22583
22584 # check if user wants to skip project in any case
22585
22586 if test x"$COIN_SKIP_PROJECTS" != x; then
22587 for dir in $COIN_SKIP_PROJECTS; do
22588 if test $dir = "Cgl"; then
22589 coin_has_cgl="no"
22590 coin_reason="Cgl has been specified in COIN_SKIP_PROJECTS"
22591 fi
22592
22593 done
22594 fi
22595
22596 if test "$coin_has_cgl" != no; then
22597
22598 # Check whether --with-m4_tolower(Cgl) or --without-m4_tolower(Cgl) was given.
22599 if test "${with_cgl+set}" = set; then
22600 withval="$with_cgl"
22601 if test "$withval" = no ; then
22602 coin_has_cgl="no"
22603 coin_reason="--without-cgl has been specified"
22604 fi
22605
22606 fi;
22607 fi
22608
22609 if test "$coin_has_cgl" != no; then
22610
22611 # Check whether --with-m4_tolower(Cgl)-lib or --without-m4_tolower(Cgl)-lib was given.
22612 if test "${with_cgl_lib+set}" = set; then
22613 withval="$with_cgl_lib"
22614 if test "$withval" = no ; then
22615 coin_has_cgl="no"
22616 coin_reason="--without-cgl-lib has been specified"
22617 else
22618 coin_has_cgl="no"
22619 coin_reason="--with-cgl-lib has been specified"
22620 fi
22621 fi;
22622 fi
22623
22624 if test "$coin_has_cgl" != no; then
22625
22626 # Check whether --with-m4_tolower(Cgl)-incdir or --without-m4_tolower(Cgl)-incdir was given.
22627 if test "${with_cgl_incdir+set}" = set; then
22628 withval="$with_cgl_incdir"
22629 if test "$withval" = no ; then
22630 coin_has_cgl="no"
22631 coin_reason="--without-cgl-incdir has been specified"
22632 else
22633 coin_has_cgl="no"
22634 coin_reason="--with-cgl-incdir has been specified"
22635 fi
22636 fi;
22637 fi
22638
22639 if test "$coin_has_cgl" != no; then
22640
22641 # Check whether --with-m4_tolower(Cgl)-datadir or --without-m4_tolower(Cgl)-datadir was given.
22642 if test "${with_cgl_datadir+set}" = set; then
22643 withval="$with_cgl_datadir"
22644 if test "$withval" = no ; then
22645 coin_has_cgl="no"
22646 coin_reason="--without-cgl-datadir has been specified"
22647 else
22648 coin_has_cgl="no"
22649 coin_reason="--with-cgl-datadir has been specified"
22650 fi
22651 fi;
22652 fi
22653
22654
22655
22656
22657
22658 # check if project is available in present directory
22659 if test "$coin_has_cgl" = notGiven; then
22660 coin_has_cgl=no
22661 if test -d $srcdir/Cgl; then
22662 coin_reason="source in Cgl"
22663 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22664 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22665 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22666 coin_has_cgl="yes"
22667
22668 fi
22669 fi
22670
22671 if test -z "$coin_reason" ; then
22672 echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
22673 echo "${ECHO_T}$coin_has_cgl" >&6
22674 else
22675 echo "$as_me:$LINENO: result: $coin_has_cgl, $coin_reason" >&5
22676 echo "${ECHO_T}$coin_has_cgl, $coin_reason" >&6
22677 fi
22678
22679 if test "$coin_has_cgl" = yes ; then
22680 if test -r $srcdir/Cgl/configure; then
22681 coin_subdirs="$coin_subdirs Cgl"
22682
22683
22684 subdirs="$subdirs Cgl"
22685
22686 fi
22687 fi
22688
22689
22690 echo "$as_me:$LINENO: checking whether source of project Cbc is available and should be compiled" >&5
22691 echo $ECHO_N "checking whether source of project Cbc is available and should be compiled... $ECHO_C" >&6
22692
22693 coin_has_cbc=notGiven
22694 coin_reason=
22695
22696 # check if user wants to skip project in any case
22697
22698 if test x"$COIN_SKIP_PROJECTS" != x; then
22699 for dir in $COIN_SKIP_PROJECTS; do
22700 if test $dir = "Cbc"; then
22701 coin_has_cbc="no"
22702 coin_reason="Cbc has been specified in COIN_SKIP_PROJECTS"
22703 fi
22704
22705 done
22706 fi
22707
22708 if test "$coin_has_cbc" != no; then
22709
22710 # Check whether --with-m4_tolower(Cbc) or --without-m4_tolower(Cbc) was given.
22711 if test "${with_cbc+set}" = set; then
22712 withval="$with_cbc"
22713 if test "$withval" = no ; then
22714 coin_has_cbc="no"
22715 coin_reason="--without-cbc has been specified"
22716 fi
22717
22718 fi;
22719 fi
22720
22721 if test "$coin_has_cbc" != no; then
22722
22723 # Check whether --with-m4_tolower(Cbc)-lib or --without-m4_tolower(Cbc)-lib was given.
22724 if test "${with_cbc_lib+set}" = set; then
22725 withval="$with_cbc_lib"
22726 if test "$withval" = no ; then
22727 coin_has_cbc="no"
22728 coin_reason="--without-cbc-lib has been specified"
22729 else
22730 coin_has_cbc="no"
22731 coin_reason="--with-cbc-lib has been specified"
22732 fi
22733 fi;
22734 fi
22735
22736 if test "$coin_has_cbc" != no; then
22737
22738 # Check whether --with-m4_tolower(Cbc)-incdir or --without-m4_tolower(Cbc)-incdir was given.
22739 if test "${with_cbc_incdir+set}" = set; then
22740 withval="$with_cbc_incdir"
22741 if test "$withval" = no ; then
22742 coin_has_cbc="no"
22743 coin_reason="--without-cbc-incdir has been specified"
22744 else
22745 coin_has_cbc="no"
22746 coin_reason="--with-cbc-incdir has been specified"
22747 fi
22748 fi;
22749 fi
22750
22751 if test "$coin_has_cbc" != no; then
22752
22753 # Check whether --with-m4_tolower(Cbc)-datadir or --without-m4_tolower(Cbc)-datadir was given.
22754 if test "${with_cbc_datadir+set}" = set; then
22755 withval="$with_cbc_datadir"
22756 if test "$withval" = no ; then
22757 coin_has_cbc="no"
22758 coin_reason="--without-cbc-datadir has been specified"
22759 else
22760 coin_has_cbc="no"
22761 coin_reason="--with-cbc-datadir has been specified"
22762 fi
22763 fi;
22764 fi
22765
22766
22767
22768
22769
22770 # check if project is available in present directory
22771 if test "$coin_has_cbc" = notGiven; then
22772 coin_has_cbc=no
22773 if test -d $srcdir/Cbc; then
22774 coin_reason="source in Cbc"
22775 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22776 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22777 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22778 coin_has_cbc="yes"
22779
22780 fi
22781 fi
22782
22783 if test -z "$coin_reason" ; then
22784 echo "$as_me:$LINENO: result: $coin_has_cbc" >&5
22785 echo "${ECHO_T}$coin_has_cbc" >&6
22786 else
22787 echo "$as_me:$LINENO: result: $coin_has_cbc, $coin_reason" >&5
22788 echo "${ECHO_T}$coin_has_cbc, $coin_reason" >&6
22789 fi
22790
22791 if test "$coin_has_cbc" = yes ; then
22792 if test -r $srcdir/Cbc/configure; then
22793 coin_subdirs="$coin_subdirs Cbc"
22794
22795
22796 subdirs="$subdirs Cbc"
22797
22798 fi
22799 fi
22800
22801
22802 #############################################################################
22803 # Check for doxygen #
22804 #############################################################################
22805
22806
22807
22808 { echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
22809 echo "$as_me: configuring doxygen documentation options" >&6;}
22810
22811 # Check to see if doxygen is available.
22812
22813 # Extract the first word of "doxygen", so it can be a program name with args.
22814 set dummy doxygen; ac_word=$2
22815 echo "$as_me:$LINENO: checking for $ac_word" >&5
22816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22817 if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
22818 echo $ECHO_N "(cached) $ECHO_C" >&6
22819 else
22820 if test -n "$coin_have_doxygen"; then
22821 ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
22822 else
22823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22824 for as_dir in $PATH
22825 do
22826 IFS=$as_save_IFS
22827 test -z "$as_dir" && as_dir=.
22828 for ac_exec_ext in '' $ac_executable_extensions; do
22829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22830 ac_cv_prog_coin_have_doxygen="yes"
22831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22832 break 2
22833 fi
22834 done
22835 done
22836
22837 test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
22838 fi
22839 fi
22840 coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
22841 if test -n "$coin_have_doxygen"; then
22842 echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
22843 echo "${ECHO_T}$coin_have_doxygen" >&6
22844 else
22845 echo "$as_me:$LINENO: result: no" >&5
22846 echo "${ECHO_T}no" >&6
22847 fi
22848
22849 # Extract the first word of "latex", so it can be a program name with args.
22850 set dummy latex; ac_word=$2
22851 echo "$as_me:$LINENO: checking for $ac_word" >&5
22852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22853 if test "${ac_cv_prog_coin_have_latex+set}" = set; then
22854 echo $ECHO_N "(cached) $ECHO_C" >&6
22855 else
22856 if test -n "$coin_have_latex"; then
22857 ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
22858 else
22859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22860 for as_dir in $PATH
22861 do
22862 IFS=$as_save_IFS
22863 test -z "$as_dir" && as_dir=.
22864 for ac_exec_ext in '' $ac_executable_extensions; do
22865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22866 ac_cv_prog_coin_have_latex="yes"
22867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22868 break 2
22869 fi
22870 done
22871 done
22872
22873 test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
22874 fi
22875 fi
22876 coin_have_latex=$ac_cv_prog_coin_have_latex
22877 if test -n "$coin_have_latex"; then
22878 echo "$as_me:$LINENO: result: $coin_have_latex" >&5
22879 echo "${ECHO_T}$coin_have_latex" >&6
22880 else
22881 echo "$as_me:$LINENO: result: no" >&5
22882 echo "${ECHO_T}no" >&6
22883 fi
22884
22885
22886 # Look for the dot tool from the graphviz package, unless the user has
22887 # disabled it.
22888
22889
22890 # Check whether --with-dot or --without-dot was given.
22891 if test "${with_dot+set}" = set; then
22892 withval="$with_dot"
22893
22894 else
22895 withval=yes
22896 fi;
22897 if test x"$withval" = xno ; then
22898 coin_doxy_usedot=NO
22899 echo "$as_me:$LINENO: checking for dot " >&5
22900 echo $ECHO_N "checking for dot ... $ECHO_C" >&6
22901 echo "$as_me:$LINENO: result: disabled" >&5
22902 echo "${ECHO_T}disabled" >&6
22903 else
22904 # Extract the first word of "dot", so it can be a program name with args.
22905 set dummy dot; ac_word=$2
22906 echo "$as_me:$LINENO: checking for $ac_word" >&5
22907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22908 if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22910 else
22911 if test -n "$coin_doxy_usedot"; then
22912 ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
22913 else
22914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22915 for as_dir in $PATH
22916 do
22917 IFS=$as_save_IFS
22918 test -z "$as_dir" && as_dir=.
22919 for ac_exec_ext in '' $ac_executable_extensions; do
22920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22921 ac_cv_prog_coin_doxy_usedot="YES"
22922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22923 break 2
22924 fi
22925 done
22926 done
22927
22928 test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
22929 fi
22930 fi
22931 coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
22932 if test -n "$coin_doxy_usedot"; then
22933 echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
22934 echo "${ECHO_T}$coin_doxy_usedot" >&6
22935 else
22936 echo "$as_me:$LINENO: result: no" >&5
22937 echo "${ECHO_T}no" >&6
22938 fi
22939
22940 fi
22941
22942 # Generate a tag file name and a log file name
22943
22944 coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
22945
22946 coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
22947
22948
22949
22950 if test $coin_have_doxygen = yes; then
22951 COIN_HAS_DOXYGEN_TRUE=
22952 COIN_HAS_DOXYGEN_FALSE='#'
22953 else
22954 COIN_HAS_DOXYGEN_TRUE='#'
22955 COIN_HAS_DOXYGEN_FALSE=
22956 fi
22957
22958
22959
22960 if test $coin_have_latex = yes; then
22961 COIN_HAS_LATEX_TRUE=
22962 COIN_HAS_LATEX_FALSE='#'
22963 else
22964 COIN_HAS_LATEX_TRUE='#'
22965 COIN_HAS_LATEX_FALSE=
22966 fi
22967
22968
22969 # Process the list of project names and massage them into possible doxygen
22970 # doc'n directories. Prefer 1) classic external, source processed using
22971 # a project-specific doxygen.conf, we use the tag file; 2) classic
22972 # external, source processed using package doxygen.conf; 3) installed
22973 # doxydoc. Alternatives 1) and 2) are only possible if the directory will be
22974 # configured, which we can't know unless this is the package base configure,
22975 # since coin_subdirs is only set there. Hence it's sufficient to check for
22976 # membership. If we use a tag file from a classic external, exclude the
22977 # source from doxygen processing when doxygen runs in the base directory.
22978
22979 coin_doxy_tagfiles=
22980 coin_doxy_excludes=
22981 tmp="CoinUtils Osi Clp DyLP Cgl Vol"
22982 for proj in $tmp ; do
22983 lc_proj=`echo $proj | tr [A-Z] [a-z]`
22984 echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
22985 echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
22986 doxytag=${lc_proj}_doxy.tag
22987 doxyfound=no
22988 # proj will be configured, hence doxydoc present in build tree
22989 doxysrcdir="${srcdir}/../${proj}"
22990 # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
22991 if test -d "$doxysrcdir" ; then
22992 # with a doxydoc directory?
22993 doxydir="$doxysrcdir/doxydoc"
22994 # AC_MSG_NOTICE([Considering $doxydir (base)])
22995 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
22996 if test -d "$doxydir" ; then
22997 # use tag file; don't process source
22998 doxydir="../${proj}/doxydoc"
22999 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
23000 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
23001 echo "${ECHO_T}$doxydir (tag)" >&6
23002 coin_doxy_excludes="$coin_doxy_excludes */${proj}"
23003 else
23004 # will process the source -- nothing further to be done here
23005 echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
23006 echo "${ECHO_T}$doxysrcdir (src)" >&6
23007 fi
23008 doxyfound=yes
23009 fi
23010 # Not built, fall back to installed tag file
23011 if test $doxyfound = no ; then
23012 eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
23013 # AC_MSG_NOTICE([Considering $doxydir (install)])
23014 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
23015 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
23016 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
23017 echo "${ECHO_T}$doxydir (tag)" >&6
23018 fi
23019 done
23020
23021
23022
23023
23024
23025 ##############################################################################
23026 # Finishing up by writing all the output #
23027 ##############################################################################
23028
23029 # Here list all the files that configure should create (except for the
23030 # configuration header file)
23031 ac_config_files="$ac_config_files Makefile"
23032
23033 ac_config_files="$ac_config_files doxydoc/doxygen.conf"
23034
23035
23036 # Finally, we let configure write all the output...
23037
23038
23039
23040
23041 echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
23042 echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
23043 coin_link_input_cmd="$LN_S"
23044 case "$CC" in
23045 clang* | */clang* ) ;;
23046 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
23047 coin_link_input_cmd=cp ;;
23048 esac
23049 echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
23050 echo "${ECHO_T}$coin_link_input_cmd" >&6
23051
23052
23053
23054 if test x$coin_skip_ac_output != xyes; then
23055
23056 # library extension
23057
23058 case "$CC" in
23059 clang* | */clang* )
23060 LIBEXT=a ;;
23061 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
23062 LIBEXT=lib ;;
23063 *) LIBEXT=a ;;
23064 esac
23065
23066 # Define VPATH_DISTCLEANFILES to be everything that needs to be
23067 # cleaned for distclean in a vpath configuration
23068
23069 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
23070
23071 # Take out subdirectories if their configuration concluded that they
23072 # don't need to be compiled
23073 if test x"$coin_ac_skip_subdirs" != x; then
23074 new_subdirs=
23075 for i in $subdirs; do
23076 skipme=no
23077 for j in $coin_ac_skip_subdirs; do
23078 if test $i = $j; then
23079 skipme=yes;
23080 fi
23081 done
23082 if test $skipme = no; then
23083 new_subdirs="$new_subdirs $i"
23084 fi
23085 done
23086 subdirs="$new_subdirs"
23087 fi
23088
23089 # need to come before AC_OUTPUT
23090 if test x$coin_projectdir != xyes; then
23091 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
23092 echo $coin_subdirs > coin_subdirs.txt
23093 else
23094 # substitute for OBJDIR, needed to setup .pc file for uninstalled project
23095 ABSBUILDDIR="`pwd`"
23096
23097 fi
23098
23099 cat >confcache <<\_ACEOF
23100 # This file is a shell script that caches the results of configure
23101 # tests run on this system so they can be shared between configure
23102 # scripts and configure runs, see configure's option --config-cache.
23103 # It is not useful on other systems. If it contains results you don't
23104 # want to keep, you may remove or edit it.
23105 #
23106 # config.status only pays attention to the cache file if you give it
23107 # the --recheck option to rerun configure.
23108 #
23109 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23110 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23111 # following values.
23112
23113 _ACEOF
23114
23115 # The following way of writing the cache mishandles newlines in values,
23116 # but we know of no workaround that is simple, portable, and efficient.
23117 # So, don't put newlines in cache variables' values.
23118 # Ultrix sh set writes to stderr and can't be redirected directly,
23119 # and sets the high bit in the cache file unless we assign to the vars.
23120 {
23121 (set) 2>&1 |
23122 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23123 *ac_space=\ *)
23124 # `set' does not quote correctly, so add quotes (double-quote
23125 # substitution turns \\\\ into \\, and sed turns \\ into \).
23126 sed -n \
23127 "s/'/'\\\\''/g;
23128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23129 ;;
23130 *)
23131 # `set' quotes correctly as required by POSIX, so do not add quotes.
23132 sed -n \
23133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23134 ;;
23135 esac;
23136 } |
23137 sed '
23138 t clear
23139 : clear
23140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23141 t end
23142 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23143 : end' >>confcache
23144 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23145 if test -w $cache_file; then
23146 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23147 cat confcache >$cache_file
23148 else
23149 echo "not updating unwritable cache $cache_file"
23150 fi
23151 fi
23152 rm -f confcache
23153
23154 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23155 # Let make expand exec_prefix.
23156 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23157
23158 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23159 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23160 # trailing colons and then remove the whole line if VPATH becomes empty
23161 # (actually we leave an empty line to preserve line numbers).
23162 if test "x$srcdir" = x.; then
23163 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23164 s/:*\$(srcdir):*/:/;
23165 s/:*\${srcdir}:*/:/;
23166 s/:*@srcdir@:*/:/;
23167 s/^\([^=]*=[ ]*\):*/\1/;
23168 s/:*$//;
23169 s/^[^=]*=[ ]*$//;
23170 }'
23171 fi
23172
23173 # Transform confdefs.h into DEFS.
23174 # Protect against shell expansion while executing Makefile rules.
23175 # Protect against Makefile macro expansion.
23176 #
23177 # If the first sed substitution is executed (which looks for macros that
23178 # take arguments), then we branch to the quote section. Otherwise,
23179 # look for a macro that doesn't take arguments.
23180 cat >confdef2opt.sed <<\_ACEOF
23181 t clear
23182 : clear
23183 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
23184 t quote
23185 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
23186 t quote
23187 d
23188 : quote
23189 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
23190 s,\[,\\&,g
23191 s,\],\\&,g
23192 s,\$,$$,g
23193 p
23194 _ACEOF
23195 # We use echo to avoid assuming a particular line-breaking character.
23196 # The extra dot is to prevent the shell from consuming trailing
23197 # line-breaks from the sub-command output. A line-break within
23198 # single-quotes doesn't work because, if this script is created in a
23199 # platform that uses two characters for line-breaks (e.g., DOS), tr
23200 # would break.
23201 ac_LF_and_DOT=`echo; echo .`
23202 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
23203 rm -f confdef2opt.sed
23204
23205
23206 ac_libobjs=
23207 ac_ltlibobjs=
23208 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23209 # 1. Remove the extension, and $U if already installed.
23210 ac_i=`echo "$ac_i" |
23211 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23212 # 2. Add them.
23213 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23214 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23215 done
23216 LIBOBJS=$ac_libobjs
23217
23218 LTLIBOBJS=$ac_ltlibobjs
23219
23220
23221 if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
23222 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
23223 Usually this means the macro was only invoked conditionally." >&5
23224 echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
23225 Usually this means the macro was only invoked conditionally." >&2;}
23226 { (exit 1); exit 1; }; }
23227 fi
23228 if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
23229 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
23230 Usually this means the macro was only invoked conditionally." >&5
23231 echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
23232 Usually this means the macro was only invoked conditionally." >&2;}
23233 { (exit 1); exit 1; }; }
23234 fi
23235 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23236 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23237 Usually this means the macro was only invoked conditionally." >&5
23238 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23239 Usually this means the macro was only invoked conditionally." >&2;}
23240 { (exit 1); exit 1; }; }
23241 fi
23242 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23243 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23244 Usually this means the macro was only invoked conditionally." >&5
23245 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23246 Usually this means the macro was only invoked conditionally." >&2;}
23247 { (exit 1); exit 1; }; }
23248 fi
23249 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23250 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23251 Usually this means the macro was only invoked conditionally." >&5
23252 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23253 Usually this means the macro was only invoked conditionally." >&2;}
23254 { (exit 1); exit 1; }; }
23255 fi
23256 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23257 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23258 Usually this means the macro was only invoked conditionally." >&5
23259 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23260 Usually this means the macro was only invoked conditionally." >&2;}
23261 { (exit 1); exit 1; }; }
23262 fi
23263 if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
23264 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
23265 Usually this means the macro was only invoked conditionally." >&5
23266 echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
23267 Usually this means the macro was only invoked conditionally." >&2;}
23268 { (exit 1); exit 1; }; }
23269 fi
23270 if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
23271 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
23272 Usually this means the macro was only invoked conditionally." >&5
23273 echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
23274 Usually this means the macro was only invoked conditionally." >&2;}
23275 { (exit 1); exit 1; }; }
23276 fi
23277 if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
23278 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
23279 Usually this means the macro was only invoked conditionally." >&5
23280 echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
23281 Usually this means the macro was only invoked conditionally." >&2;}
23282 { (exit 1); exit 1; }; }
23283 fi
23284 if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
23285 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
23286 Usually this means the macro was only invoked conditionally." >&5
23287 echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
23288 Usually this means the macro was only invoked conditionally." >&2;}
23289 { (exit 1); exit 1; }; }
23290 fi
23291
23292 : ${CONFIG_STATUS=./config.status}
23293 ac_clean_files_save=$ac_clean_files
23294 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23295 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23296 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23297 cat >$CONFIG_STATUS <<_ACEOF
23298 #! $SHELL
23299 # Generated by $as_me.
23300 # Run this file to recreate the current configuration.
23301 # Compiler output produced by configure, useful for debugging
23302 # configure, is in config.log if it exists.
23303
23304 debug=false
23305 ac_cs_recheck=false
23306 ac_cs_silent=false
23307 SHELL=\${CONFIG_SHELL-$SHELL}
23308 _ACEOF
23309
23310 cat >>$CONFIG_STATUS <<\_ACEOF
23311 ## --------------------- ##
23312 ## M4sh Initialization. ##
23313 ## --------------------- ##
23314
23315 # Be Bourne compatible
23316 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23317 emulate sh
23318 NULLCMD=:
23319 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23320 # is contrary to our usage. Disable this feature.
23321 alias -g '${1+"$@"}'='"$@"'
23322 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23323 set -o posix
23324 fi
23325 DUALCASE=1; export DUALCASE # for MKS sh
23326
23327 # Support unset when possible.
23328 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23329 as_unset=unset
23330 else
23331 as_unset=false
23332 fi
23333
23334
23335 # Work around bugs in pre-3.0 UWIN ksh.
23336 $as_unset ENV MAIL MAILPATH
23337 PS1='$ '
23338 PS2='> '
23339 PS4='+ '
23340
23341 # NLS nuisances.
23342 for as_var in \
23343 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23344 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23345 LC_TELEPHONE LC_TIME
23346 do
23347 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23348 eval $as_var=C; export $as_var
23349 else
23350 $as_unset $as_var
23351 fi
23352 done
23353
23354 # Required to use basename.
23355 if expr a : '\(a\)' >/dev/null 2>&1; then
23356 as_expr=expr
23357 else
23358 as_expr=false
23359 fi
23360
23361 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23362 as_basename=basename
23363 else
23364 as_basename=false
23365 fi
23366
23367
23368 # Name of the executable.
23369 as_me=`$as_basename "$0" ||
23370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23371 X"$0" : 'X\(//\)$' \| \
23372 X"$0" : 'X\(/\)$' \| \
23373 . : '\(.\)' 2>/dev/null ||
23374 echo X/"$0" |
23375 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23376 /^X\/\(\/\/\)$/{ s//\1/; q; }
23377 /^X\/\(\/\).*/{ s//\1/; q; }
23378 s/.*/./; q'`
23379
23380
23381 # PATH needs CR, and LINENO needs CR and PATH.
23382 # Avoid depending upon Character Ranges.
23383 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23384 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23385 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23386 as_cr_digits='0123456789'
23387 as_cr_alnum=$as_cr_Letters$as_cr_digits
23388
23389 # The user is always right.
23390 if test "${PATH_SEPARATOR+set}" != set; then
23391 echo "#! /bin/sh" >conf$$.sh
23392 echo "exit 0" >>conf$$.sh
23393 chmod +x conf$$.sh
23394 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23395 PATH_SEPARATOR=';'
23396 else
23397 PATH_SEPARATOR=:
23398 fi
23399 rm -f conf$$.sh
23400 fi
23401
23402
23403 as_lineno_1=$LINENO
23404 as_lineno_2=$LINENO
23405 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23406 test "x$as_lineno_1" != "x$as_lineno_2" &&
23407 test "x$as_lineno_3" = "x$as_lineno_2" || {
23408 # Find who we are. Look in the path if we contain no path at all
23409 # relative or not.
23410 case $0 in
23411 *[\\/]* ) as_myself=$0 ;;
23412 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23413 for as_dir in $PATH
23414 do
23415 IFS=$as_save_IFS
23416 test -z "$as_dir" && as_dir=.
23417 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23418 done
23419
23420 ;;
23421 esac
23422 # We did not find ourselves, most probably we were run as `sh COMMAND'
23423 # in which case we are not to be found in the path.
23424 if test "x$as_myself" = x; then
23425 as_myself=$0
23426 fi
23427 if test ! -f "$as_myself"; then
23428 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23429 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23430 { (exit 1); exit 1; }; }
23431 fi
23432 case $CONFIG_SHELL in
23433 '')
23434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23435 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23436 do
23437 IFS=$as_save_IFS
23438 test -z "$as_dir" && as_dir=.
23439 for as_base in sh bash ksh sh5; do
23440 case $as_dir in
23441 /*)
23442 if ("$as_dir/$as_base" -c '
23443 as_lineno_1=$LINENO
23444 as_lineno_2=$LINENO
23445 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23446 test "x$as_lineno_1" != "x$as_lineno_2" &&
23447 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23448 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23449 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23450 CONFIG_SHELL=$as_dir/$as_base
23451 export CONFIG_SHELL
23452 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23453 fi;;
23454 esac
23455 done
23456 done
23457 ;;
23458 esac
23459
23460 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23461 # uniformly replaced by the line number. The first 'sed' inserts a
23462 # line-number line before each line; the second 'sed' does the real
23463 # work. The second script uses 'N' to pair each line-number line
23464 # with the numbered line, and appends trailing '-' during
23465 # substitution so that $LINENO is not a special case at line end.
23466 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23467 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23468 sed '=' <$as_myself |
23469 sed '
23470 N
23471 s,$,-,
23472 : loop
23473 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23474 t loop
23475 s,-$,,
23476 s,^['$as_cr_digits']*\n,,
23477 ' >$as_me.lineno &&
23478 chmod +x $as_me.lineno ||
23479 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23480 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23481 { (exit 1); exit 1; }; }
23482
23483 # Don't try to exec as it changes $[0], causing all sort of problems
23484 # (the dirname of $[0] is not the place where we might find the
23485 # original and so on. Autoconf is especially sensible to this).
23486 . ./$as_me.lineno
23487 # Exit status is that of the last command.
23488 exit
23489 }
23490
23491
23492 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23493 *c*,-n*) ECHO_N= ECHO_C='
23494 ' ECHO_T=' ' ;;
23495 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23496 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23497 esac
23498
23499 if expr a : '\(a\)' >/dev/null 2>&1; then
23500 as_expr=expr
23501 else
23502 as_expr=false
23503 fi
23504
23505 rm -f conf$$ conf$$.exe conf$$.file
23506 echo >conf$$.file
23507 if ln -s conf$$.file conf$$ 2>/dev/null; then
23508 # We could just check for DJGPP; but this test a) works b) is more generic
23509 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23510 if test -f conf$$.exe; then
23511 # Don't use ln at all; we don't have any links
23512 as_ln_s='cp -p'
23513 else
23514 as_ln_s='ln -s'
23515 fi
23516 elif ln conf$$.file conf$$ 2>/dev/null; then
23517 as_ln_s=ln
23518 else
23519 as_ln_s='cp -p'
23520 fi
23521 rm -f conf$$ conf$$.exe conf$$.file
23522
23523 if mkdir -p . 2>/dev/null; then
23524 as_mkdir_p=:
23525 else
23526 test -d ./-p && rmdir ./-p
23527 as_mkdir_p=false
23528 fi
23529
23530 as_executable_p="test -f"
23531
23532 # Sed expression to map a string onto a valid CPP name.
23533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23534
23535 # Sed expression to map a string onto a valid variable name.
23536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23537
23538
23539 # IFS
23540 # We need space, tab and new line, in precisely that order.
23541 as_nl='
23542 '
23543 IFS=" $as_nl"
23544
23545 # CDPATH.
23546 $as_unset CDPATH
23547
23548 exec 6>&1
23549
23550 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23551 # report actual input values of CONFIG_FILES etc. instead of their
23552 # values after options handling. Logging --version etc. is OK.
23553 exec 5>>config.log
23554 {
23555 echo
23556 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23557 ## Running $as_me. ##
23558 _ASBOX
23559 } >&5
23560 cat >&5 <<_CSEOF
23561
23562 This file was extended by Cbc $as_me 2.10.13, which was
23563 generated by GNU Autoconf 2.59. Invocation command line was
23564
23565 CONFIG_FILES = $CONFIG_FILES
23566 CONFIG_HEADERS = $CONFIG_HEADERS
23567 CONFIG_LINKS = $CONFIG_LINKS
23568 CONFIG_COMMANDS = $CONFIG_COMMANDS
23569 $ $0 $@
23570
23571 _CSEOF
23572 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23573 echo >&5
23574 _ACEOF
23575
23576 # Files that config.status was made for.
23577 if test -n "$ac_config_files"; then
23578 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23579 fi
23580
23581 if test -n "$ac_config_headers"; then
23582 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23583 fi
23584
23585 if test -n "$ac_config_links"; then
23586 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23587 fi
23588
23589 if test -n "$ac_config_commands"; then
23590 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23591 fi
23592
23593 cat >>$CONFIG_STATUS <<\_ACEOF
23594
23595 ac_cs_usage="\
23596 \`$as_me' instantiates files from templates according to the
23597 current configuration.
23598
23599 Usage: $0 [OPTIONS] [FILE]...
23600
23601 -h, --help print this help, then exit
23602 -V, --version print version number, then exit
23603 -q, --quiet do not print progress messages
23604 -d, --debug don't remove temporary files
23605 --recheck update $as_me by reconfiguring in the same conditions
23606 --file=FILE[:TEMPLATE]
23607 instantiate the configuration file FILE
23608
23609 Configuration files:
23610 $config_files
23611
23612 Configuration commands:
23613 $config_commands
23614
23615 Report bugs to <[email protected]>."
23616 _ACEOF
23617
23618 cat >>$CONFIG_STATUS <<_ACEOF
23619 ac_cs_version="\\
23620 Cbc config.status 2.10.13
23621 configured by $0, generated by GNU Autoconf 2.59,
23622 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23623
23624 Copyright (C) 2003 Free Software Foundation, Inc.
23625 This config.status script is free software; the Free Software Foundation
23626 gives unlimited permission to copy, distribute and modify it."
23627 srcdir=$srcdir
23628 INSTALL="$INSTALL"
23629 _ACEOF
23630
23631 cat >>$CONFIG_STATUS <<\_ACEOF
23632 # If no file are specified by the user, then we need to provide default
23633 # value. By we need to know if files were specified by the user.
23634 ac_need_defaults=:
23635 while test $# != 0
23636 do
23637 case $1 in
23638 --*=*)
23639 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23640 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23641 ac_shift=:
23642 ;;
23643 -*)
23644 ac_option=$1
23645 ac_optarg=$2
23646 ac_shift=shift
23647 ;;
23648 *) # This is not an option, so the user has probably given explicit
23649 # arguments.
23650 ac_option=$1
23651 ac_need_defaults=false;;
23652 esac
23653
23654 case $ac_option in
23655 # Handling of the options.
23656 _ACEOF
23657 cat >>$CONFIG_STATUS <<\_ACEOF
23658 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23659 ac_cs_recheck=: ;;
23660 --version | --vers* | -V )
23661 echo "$ac_cs_version"; exit 0 ;;
23662 --he | --h)
23663 # Conflict between --help and --header
23664 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23665 Try \`$0 --help' for more information." >&5
23666 echo "$as_me: error: ambiguous option: $1
23667 Try \`$0 --help' for more information." >&2;}
23668 { (exit 1); exit 1; }; };;
23669 --help | --hel | -h )
23670 echo "$ac_cs_usage"; exit 0 ;;
23671 --debug | --d* | -d )
23672 debug=: ;;
23673 --file | --fil | --fi | --f )
23674 $ac_shift
23675 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23676 ac_need_defaults=false;;
23677 --header | --heade | --head | --hea )
23678 $ac_shift
23679 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23680 ac_need_defaults=false;;
23681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23682 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23683 ac_cs_silent=: ;;
23684
23685 # This is an error.
23686 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23687 Try \`$0 --help' for more information." >&5
23688 echo "$as_me: error: unrecognized option: $1
23689 Try \`$0 --help' for more information." >&2;}
23690 { (exit 1); exit 1; }; } ;;
23691
23692 *) ac_config_targets="$ac_config_targets $1" ;;
23693
23694 esac
23695 shift
23696 done
23697
23698 ac_configure_extra_args=
23699
23700 if $ac_cs_silent; then
23701 exec 6>/dev/null
23702 ac_configure_extra_args="$ac_configure_extra_args --silent"
23703 fi
23704
23705 _ACEOF
23706 cat >>$CONFIG_STATUS <<_ACEOF
23707 if \$ac_cs_recheck; then
23708 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23709 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23710 fi
23711
23712 _ACEOF
23713
23714 cat >>$CONFIG_STATUS <<_ACEOF
23715 #
23716 # INIT-COMMANDS section.
23717 #
23718
23719 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23720
23721 _ACEOF
23722
23723
23724
23725 cat >>$CONFIG_STATUS <<\_ACEOF
23726 for ac_config_target in $ac_config_targets
23727 do
23728 case "$ac_config_target" in
23729 # Handling of arguments.
23730 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23731 "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
23732 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23733 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23734 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23735 { (exit 1); exit 1; }; };;
23736 esac
23737 done
23738
23739 # If the user did not use the arguments to specify the items to instantiate,
23740 # then the envvar interface is used. Set only those that are not.
23741 # We use the long form for the default assignment because of an extremely
23742 # bizarre bug on SunOS 4.1.3.
23743 if $ac_need_defaults; then
23744 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23745 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23746 fi
23747
23748 # Have a temporary directory for convenience. Make it in the build tree
23749 # simply because there is no reason to put it here, and in addition,
23750 # creating and moving files from /tmp can sometimes cause problems.
23751 # Create a temporary directory, and hook for its removal unless debugging.
23752 $debug ||
23753 {
23754 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23755 trap '{ (exit 1); exit 1; }' 1 2 13 15
23756 }
23757
23758 # Create a (secure) tmp directory for tmp files.
23759
23760 {
23761 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23762 test -n "$tmp" && test -d "$tmp"
23763 } ||
23764 {
23765 tmp=./confstat$$-$RANDOM
23766 (umask 077 && mkdir $tmp)
23767 } ||
23768 {
23769 echo "$me: cannot create a temporary directory in ." >&2
23770 { (exit 1); exit 1; }
23771 }
23772
23773 _ACEOF
23774
23775 cat >>$CONFIG_STATUS <<_ACEOF
23776
23777 #
23778 # CONFIG_FILES section.
23779 #
23780
23781 # No need to generate the scripts if there are no CONFIG_FILES.
23782 # This happens for instance when ./config.status config.h
23783 if test -n "\$CONFIG_FILES"; then
23784 # Protect against being on the right side of a sed subst in config.status.
23785 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23786 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23787 s,@SHELL@,$SHELL,;t t
23788 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23789 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23790 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23791 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23792 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23793 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23794 s,@exec_prefix@,$exec_prefix,;t t
23795 s,@prefix@,$prefix,;t t
23796 s,@program_transform_name@,$program_transform_name,;t t
23797 s,@bindir@,$bindir,;t t
23798 s,@sbindir@,$sbindir,;t t
23799 s,@libexecdir@,$libexecdir,;t t
23800 s,@datadir@,$datadir,;t t
23801 s,@sysconfdir@,$sysconfdir,;t t
23802 s,@sharedstatedir@,$sharedstatedir,;t t
23803 s,@localstatedir@,$localstatedir,;t t
23804 s,@libdir@,$libdir,;t t
23805 s,@includedir@,$includedir,;t t
23806 s,@oldincludedir@,$oldincludedir,;t t
23807 s,@infodir@,$infodir,;t t
23808 s,@mandir@,$mandir,;t t
23809 s,@build_alias@,$build_alias,;t t
23810 s,@host_alias@,$host_alias,;t t
23811 s,@target_alias@,$target_alias,;t t
23812 s,@DEFS@,$DEFS,;t t
23813 s,@ECHO_C@,$ECHO_C,;t t
23814 s,@ECHO_N@,$ECHO_N,;t t
23815 s,@ECHO_T@,$ECHO_T,;t t
23816 s,@LIBS@,$LIBS,;t t
23817 s,@build@,$build,;t t
23818 s,@build_cpu@,$build_cpu,;t t
23819 s,@build_vendor@,$build_vendor,;t t
23820 s,@build_os@,$build_os,;t t
23821 s,@CDEFS@,$CDEFS,;t t
23822 s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
23823 s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
23824 s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
23825 s,@sol_cc_compiler@,$sol_cc_compiler,;t t
23826 s,@CC@,$CC,;t t
23827 s,@CFLAGS@,$CFLAGS,;t t
23828 s,@LDFLAGS@,$LDFLAGS,;t t
23829 s,@CPPFLAGS@,$CPPFLAGS,;t t
23830 s,@ac_ct_CC@,$ac_ct_CC,;t t
23831 s,@EXEEXT@,$EXEEXT,;t t
23832 s,@OBJEXT@,$OBJEXT,;t t
23833 s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
23834 s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
23835 s,@MPICC@,$MPICC,;t t
23836 s,@CXXDEFS@,$CXXDEFS,;t t
23837 s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
23838 s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
23839 s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
23840 s,@CXX@,$CXX,;t t
23841 s,@CXXFLAGS@,$CXXFLAGS,;t t
23842 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23843 s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
23844 s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
23845 s,@MPICXX@,$MPICXX,;t t
23846 s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
23847 s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
23848 s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
23849 s,@F77@,$F77,;t t
23850 s,@ac_ct_F77@,$ac_ct_F77,;t t
23851 s,@FFLAGS@,$FFLAGS,;t t
23852 s,@MPIF77@,$MPIF77,;t t
23853 s,@EGREP@,$EGREP,;t t
23854 s,@LN_S@,$LN_S,;t t
23855 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23856 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23857 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23858 s,@CYGPATH_W@,$CYGPATH_W,;t t
23859 s,@PACKAGE@,$PACKAGE,;t t
23860 s,@VERSION@,$VERSION,;t t
23861 s,@ACLOCAL@,$ACLOCAL,;t t
23862 s,@AUTOCONF@,$AUTOCONF,;t t
23863 s,@AUTOMAKE@,$AUTOMAKE,;t t
23864 s,@AUTOHEADER@,$AUTOHEADER,;t t
23865 s,@MAKEINFO@,$MAKEINFO,;t t
23866 s,@install_sh@,$install_sh,;t t
23867 s,@STRIP@,$STRIP,;t t
23868 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23869 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23870 s,@mkdir_p@,$mkdir_p,;t t
23871 s,@AWK@,$AWK,;t t
23872 s,@SET_MAKE@,$SET_MAKE,;t t
23873 s,@am__leading_dot@,$am__leading_dot,;t t
23874 s,@AMTAR@,$AMTAR,;t t
23875 s,@am__tar@,$am__tar,;t t
23876 s,@am__untar@,$am__untar,;t t
23877 s,@DEPDIR@,$DEPDIR,;t t
23878 s,@am__include@,$am__include,;t t
23879 s,@am__quote@,$am__quote,;t t
23880 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23881 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23882 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23883 s,@CCDEPMODE@,$CCDEPMODE,;t t
23884 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23885 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23886 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23887 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23888 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23889 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23890 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23891 s,@MAINT@,$MAINT,;t t
23892 s,@LIBTOOLM4@,$LIBTOOLM4,;t t
23893 s,@have_autoconf@,$have_autoconf,;t t
23894 s,@have_automake@,$have_automake,;t t
23895 s,@have_svn@,$have_svn,;t t
23896 s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
23897 s,@AUX_DIR@,$AUX_DIR,;t t
23898 s,@abs_source_dir@,$abs_source_dir,;t t
23899 s,@abs_lib_dir@,$abs_lib_dir,;t t
23900 s,@abs_include_dir@,$abs_include_dir,;t t
23901 s,@abs_bin_dir@,$abs_bin_dir,;t t
23902 s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
23903 s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
23904 s,@host@,$host,;t t
23905 s,@host_cpu@,$host_cpu,;t t
23906 s,@host_vendor@,$host_vendor,;t t
23907 s,@host_os@,$host_os,;t t
23908 s,@ECHO@,$ECHO,;t t
23909 s,@AR@,$AR,;t t
23910 s,@ac_ct_AR@,$ac_ct_AR,;t t
23911 s,@RANLIB@,$RANLIB,;t t
23912 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23913 s,@CPP@,$CPP,;t t
23914 s,@CXXCPP@,$CXXCPP,;t t
23915 s,@LIBTOOL@,$LIBTOOL,;t t
23916 s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
23917 s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
23918 s,@dos2unix@,$dos2unix,;t t
23919 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
23920 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
23921 s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
23922 s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
23923 s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t
23924 s,@subdirs@,$subdirs,;t t
23925 s,@coin_have_doxygen@,$coin_have_doxygen,;t t
23926 s,@coin_have_latex@,$coin_have_latex,;t t
23927 s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
23928 s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
23929 s,@coin_doxy_logname@,$coin_doxy_logname,;t t
23930 s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
23931 s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
23932 s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
23933 s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
23934 s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
23935 s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
23936 s,@LIBEXT@,$LIBEXT,;t t
23937 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
23938 s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
23939 s,@LIBOBJS@,$LIBOBJS,;t t
23940 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23941 CEOF
23942
23943 _ACEOF
23944
23945 cat >>$CONFIG_STATUS <<\_ACEOF
23946 # Split the substitutions into bite-sized pieces for seds with
23947 # small command number limits, like on Digital OSF/1 and HP-UX.
23948 ac_max_sed_lines=48
23949 ac_sed_frag=1 # Number of current file.
23950 ac_beg=1 # First line for current file.
23951 ac_end=$ac_max_sed_lines # Line after last line for current file.
23952 ac_more_lines=:
23953 ac_sed_cmds=
23954 while $ac_more_lines; do
23955 if test $ac_beg -gt 1; then
23956 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23957 else
23958 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23959 fi
23960 if test ! -s $tmp/subs.frag; then
23961 ac_more_lines=false
23962 else
23963 # The purpose of the label and of the branching condition is to
23964 # speed up the sed processing (if there are no `@' at all, there
23965 # is no need to browse any of the substitutions).
23966 # These are the two extra sed commands mentioned above.
23967 (echo ':t
23968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23969 if test -z "$ac_sed_cmds"; then
23970 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23971 else
23972 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23973 fi
23974 ac_sed_frag=`expr $ac_sed_frag + 1`
23975 ac_beg=$ac_end
23976 ac_end=`expr $ac_end + $ac_max_sed_lines`
23977 fi
23978 done
23979 if test -z "$ac_sed_cmds"; then
23980 ac_sed_cmds=cat
23981 fi
23982 fi # test -n "$CONFIG_FILES"
23983
23984 _ACEOF
23985 cat >>$CONFIG_STATUS <<\_ACEOF
23986 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23987 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23988 case $ac_file in
23989 - | *:- | *:-:* ) # input from stdin
23990 cat >$tmp/stdin
23991 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23993 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23994 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23995 * ) ac_file_in=$ac_file.in ;;
23996 esac
23997
23998 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23999 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24000 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24001 X"$ac_file" : 'X\(//\)[^/]' \| \
24002 X"$ac_file" : 'X\(//\)$' \| \
24003 X"$ac_file" : 'X\(/\)' \| \
24004 . : '\(.\)' 2>/dev/null ||
24005 echo X"$ac_file" |
24006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24008 /^X\(\/\/\)$/{ s//\1/; q; }
24009 /^X\(\/\).*/{ s//\1/; q; }
24010 s/.*/./; q'`
24011 { if $as_mkdir_p; then
24012 mkdir -p "$ac_dir"
24013 else
24014 as_dir="$ac_dir"
24015 as_dirs=
24016 while test ! -d "$as_dir"; do
24017 as_dirs="$as_dir $as_dirs"
24018 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24019 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24020 X"$as_dir" : 'X\(//\)[^/]' \| \
24021 X"$as_dir" : 'X\(//\)$' \| \
24022 X"$as_dir" : 'X\(/\)' \| \
24023 . : '\(.\)' 2>/dev/null ||
24024 echo X"$as_dir" |
24025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24027 /^X\(\/\/\)$/{ s//\1/; q; }
24028 /^X\(\/\).*/{ s//\1/; q; }
24029 s/.*/./; q'`
24030 done
24031 test ! -n "$as_dirs" || mkdir $as_dirs
24032 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24033 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24034 { (exit 1); exit 1; }; }; }
24035
24036 ac_builddir=.
24037
24038 if test "$ac_dir" != .; then
24039 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24040 # A "../" for each directory in $ac_dir_suffix.
24041 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24042 else
24043 ac_dir_suffix= ac_top_builddir=
24044 fi
24045
24046 case $srcdir in
24047 .) # No --srcdir option. We are building in place.
24048 ac_srcdir=.
24049 if test -z "$ac_top_builddir"; then
24050 ac_top_srcdir=.
24051 else
24052 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24053 fi ;;
24054 [\\/]* | ?:[\\/]* ) # Absolute path.
24055 ac_srcdir=$srcdir$ac_dir_suffix;
24056 ac_top_srcdir=$srcdir ;;
24057 *) # Relative path.
24058 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24059 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24060 esac
24061
24062 # Do not use `cd foo && pwd` to compute absolute paths, because
24063 # the directories may not exist.
24064 case `pwd` in
24065 .) ac_abs_builddir="$ac_dir";;
24066 *)
24067 case "$ac_dir" in
24068 .) ac_abs_builddir=`pwd`;;
24069 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24070 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24071 esac;;
24072 esac
24073 case $ac_abs_builddir in
24074 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24075 *)
24076 case ${ac_top_builddir}. in
24077 .) ac_abs_top_builddir=$ac_abs_builddir;;
24078 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24079 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24080 esac;;
24081 esac
24082 case $ac_abs_builddir in
24083 .) ac_abs_srcdir=$ac_srcdir;;
24084 *)
24085 case $ac_srcdir in
24086 .) ac_abs_srcdir=$ac_abs_builddir;;
24087 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24088 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24089 esac;;
24090 esac
24091 case $ac_abs_builddir in
24092 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24093 *)
24094 case $ac_top_srcdir in
24095 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24096 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24097 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24098 esac;;
24099 esac
24100
24101
24102 case $INSTALL in
24103 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24104 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24105 esac
24106
24107 if test x"$ac_file" != x-; then
24108 { echo "$as_me:$LINENO: creating $ac_file" >&5
24109 echo "$as_me: creating $ac_file" >&6;}
24110 rm -f "$ac_file"
24111 fi
24112 # Let's still pretend it is `configure' which instantiates (i.e., don't
24113 # use $as_me), people would be surprised to read:
24114 # /* config.h. Generated by config.status. */
24115 if test x"$ac_file" = x-; then
24116 configure_input=
24117 else
24118 configure_input="$ac_file. "
24119 fi
24120 configure_input=$configure_input"Generated from `echo $ac_file_in |
24121 sed 's,.*/,,'` by configure."
24122
24123 # First look for the input files in the build tree, otherwise in the
24124 # src tree.
24125 ac_file_inputs=`IFS=:
24126 for f in $ac_file_in; do
24127 case $f in
24128 -) echo $tmp/stdin ;;
24129 [\\/$]*)
24130 # Absolute (can't be DOS-style, as IFS=:)
24131 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24132 echo "$as_me: error: cannot find input file: $f" >&2;}
24133 { (exit 1); exit 1; }; }
24134 echo "$f";;
24135 *) # Relative
24136 if test -f "$f"; then
24137 # Build tree
24138 echo "$f"
24139 elif test -f "$srcdir/$f"; then
24140 # Source tree
24141 echo "$srcdir/$f"
24142 else
24143 # /dev/null tree
24144 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24145 echo "$as_me: error: cannot find input file: $f" >&2;}
24146 { (exit 1); exit 1; }; }
24147 fi;;
24148 esac
24149 done` || { (exit 1); exit 1; }
24150 _ACEOF
24151 cat >>$CONFIG_STATUS <<_ACEOF
24152 sed "$ac_vpsub
24153 $extrasub
24154 _ACEOF
24155 cat >>$CONFIG_STATUS <<\_ACEOF
24156 :t
24157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24158 s,@configure_input@,$configure_input,;t t
24159 s,@srcdir@,$ac_srcdir,;t t
24160 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24161 s,@top_srcdir@,$ac_top_srcdir,;t t
24162 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24163 s,@builddir@,$ac_builddir,;t t
24164 s,@abs_builddir@,$ac_abs_builddir,;t t
24165 s,@top_builddir@,$ac_top_builddir,;t t
24166 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24167 s,@INSTALL@,$ac_INSTALL,;t t
24168 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24169 rm -f $tmp/stdin
24170 if test x"$ac_file" != x-; then
24171 mv $tmp/out $ac_file
24172 else
24173 cat $tmp/out
24174 rm -f $tmp/out
24175 fi
24176
24177 done
24178 _ACEOF
24179 cat >>$CONFIG_STATUS <<\_ACEOF
24180
24181 #
24182 # CONFIG_COMMANDS section.
24183 #
24184 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24185 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24186 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24187 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24188 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24189 X"$ac_dest" : 'X\(//\)[^/]' \| \
24190 X"$ac_dest" : 'X\(//\)$' \| \
24191 X"$ac_dest" : 'X\(/\)' \| \
24192 . : '\(.\)' 2>/dev/null ||
24193 echo X"$ac_dest" |
24194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24196 /^X\(\/\/\)$/{ s//\1/; q; }
24197 /^X\(\/\).*/{ s//\1/; q; }
24198 s/.*/./; q'`
24199 { if $as_mkdir_p; then
24200 mkdir -p "$ac_dir"
24201 else
24202 as_dir="$ac_dir"
24203 as_dirs=
24204 while test ! -d "$as_dir"; do
24205 as_dirs="$as_dir $as_dirs"
24206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24208 X"$as_dir" : 'X\(//\)[^/]' \| \
24209 X"$as_dir" : 'X\(//\)$' \| \
24210 X"$as_dir" : 'X\(/\)' \| \
24211 . : '\(.\)' 2>/dev/null ||
24212 echo X"$as_dir" |
24213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24215 /^X\(\/\/\)$/{ s//\1/; q; }
24216 /^X\(\/\).*/{ s//\1/; q; }
24217 s/.*/./; q'`
24218 done
24219 test ! -n "$as_dirs" || mkdir $as_dirs
24220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24221 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24222 { (exit 1); exit 1; }; }; }
24223
24224 ac_builddir=.
24225
24226 if test "$ac_dir" != .; then
24227 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24228 # A "../" for each directory in $ac_dir_suffix.
24229 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24230 else
24231 ac_dir_suffix= ac_top_builddir=
24232 fi
24233
24234 case $srcdir in
24235 .) # No --srcdir option. We are building in place.
24236 ac_srcdir=.
24237 if test -z "$ac_top_builddir"; then
24238 ac_top_srcdir=.
24239 else
24240 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24241 fi ;;
24242 [\\/]* | ?:[\\/]* ) # Absolute path.
24243 ac_srcdir=$srcdir$ac_dir_suffix;
24244 ac_top_srcdir=$srcdir ;;
24245 *) # Relative path.
24246 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24247 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24248 esac
24249
24250 # Do not use `cd foo && pwd` to compute absolute paths, because
24251 # the directories may not exist.
24252 case `pwd` in
24253 .) ac_abs_builddir="$ac_dir";;
24254 *)
24255 case "$ac_dir" in
24256 .) ac_abs_builddir=`pwd`;;
24257 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24258 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24259 esac;;
24260 esac
24261 case $ac_abs_builddir in
24262 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24263 *)
24264 case ${ac_top_builddir}. in
24265 .) ac_abs_top_builddir=$ac_abs_builddir;;
24266 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24267 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24268 esac;;
24269 esac
24270 case $ac_abs_builddir in
24271 .) ac_abs_srcdir=$ac_srcdir;;
24272 *)
24273 case $ac_srcdir in
24274 .) ac_abs_srcdir=$ac_abs_builddir;;
24275 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24276 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24277 esac;;
24278 esac
24279 case $ac_abs_builddir in
24280 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24281 *)
24282 case $ac_top_srcdir in
24283 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24284 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24285 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24286 esac;;
24287 esac
24288
24289
24290 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24291 echo "$as_me: executing $ac_dest commands" >&6;}
24292 case $ac_dest in
24293 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24294 # Strip MF so we end up with the name of the file.
24295 mf=`echo "$mf" | sed -e 's/:.*$//'`
24296 # Check whether this is an Automake generated Makefile or not.
24297 # We used to match only the files named `Makefile.in', but
24298 # some people rename them; so instead we look at the file content.
24299 # Grep'ing the first line is not enough: some people post-process
24300 # each Makefile.in and add a new line on top of each file to say so.
24301 # So let's grep whole file.
24302 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24303 dirpart=`(dirname "$mf") 2>/dev/null ||
24304 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24305 X"$mf" : 'X\(//\)[^/]' \| \
24306 X"$mf" : 'X\(//\)$' \| \
24307 X"$mf" : 'X\(/\)' \| \
24308 . : '\(.\)' 2>/dev/null ||
24309 echo X"$mf" |
24310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24312 /^X\(\/\/\)$/{ s//\1/; q; }
24313 /^X\(\/\).*/{ s//\1/; q; }
24314 s/.*/./; q'`
24315 else
24316 continue
24317 fi
24318 # Extract the definition of DEPDIR, am__include, and am__quote
24319 # from the Makefile without running `make'.
24320 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24321 test -z "$DEPDIR" && continue
24322 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24323 test -z "am__include" && continue
24324 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24325 # When using ansi2knr, U may be empty or an underscore; expand it
24326 U=`sed -n 's/^U = //p' < "$mf"`
24327 # Find all dependency output files, they are included files with
24328 # $(DEPDIR) in their names. We invoke sed twice because it is the
24329 # simplest approach to changing $(DEPDIR) to its actual value in the
24330 # expansion.
24331 for file in `sed -n "
24332 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24333 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24334 # Make sure the directory exists.
24335 test -f "$dirpart/$file" && continue
24336 fdir=`(dirname "$file") 2>/dev/null ||
24337 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24338 X"$file" : 'X\(//\)[^/]' \| \
24339 X"$file" : 'X\(//\)$' \| \
24340 X"$file" : 'X\(/\)' \| \
24341 . : '\(.\)' 2>/dev/null ||
24342 echo X"$file" |
24343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24345 /^X\(\/\/\)$/{ s//\1/; q; }
24346 /^X\(\/\).*/{ s//\1/; q; }
24347 s/.*/./; q'`
24348 { if $as_mkdir_p; then
24349 mkdir -p $dirpart/$fdir
24350 else
24351 as_dir=$dirpart/$fdir
24352 as_dirs=
24353 while test ! -d "$as_dir"; do
24354 as_dirs="$as_dir $as_dirs"
24355 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24357 X"$as_dir" : 'X\(//\)[^/]' \| \
24358 X"$as_dir" : 'X\(//\)$' \| \
24359 X"$as_dir" : 'X\(/\)' \| \
24360 . : '\(.\)' 2>/dev/null ||
24361 echo X"$as_dir" |
24362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24364 /^X\(\/\/\)$/{ s//\1/; q; }
24365 /^X\(\/\).*/{ s//\1/; q; }
24366 s/.*/./; q'`
24367 done
24368 test ! -n "$as_dirs" || mkdir $as_dirs
24369 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24370 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24371 { (exit 1); exit 1; }; }; }
24372
24373 # echo "creating $dirpart/$file"
24374 echo '# dummy' > "$dirpart/$file"
24375 done
24376 done
24377 ;;
24378 esac
24379 done
24380 _ACEOF
24381
24382 cat >>$CONFIG_STATUS <<\_ACEOF
24383
24384 { (exit 0); exit 0; }
24385 _ACEOF
24386 chmod +x $CONFIG_STATUS
24387 ac_clean_files=$ac_clean_files_save
24388
24389
24390 # configure is writing to config.log, and then calls config.status.
24391 # config.status does its own redirection, appending to config.log.
24392 # Unfortunately, on DOS this fails, as config.log is still kept open
24393 # by configure, so config.status won't be able to write to it; its
24394 # output is simply discarded. So we exec the FD to /dev/null,
24395 # effectively closing config.log, so it can be properly (re)opened and
24396 # appended to by config.status. When coming back to configure, we
24397 # need to make the FD available again.
24398 if test "$no_create" != yes; then
24399 ac_cs_success=:
24400 ac_config_status_args=
24401 test "$silent" = yes &&
24402 ac_config_status_args="$ac_config_status_args --quiet"
24403 exec 5>/dev/null
24404 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24405 exec 5>>config.log
24406 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24407 # would make configure fail if this is the last instruction.
24408 $ac_cs_success || { (exit 1); exit 1; }
24409 fi
24410
24411 #
24412 # CONFIG_SUBDIRS section.
24413 #
24414 if test "$no_recursion" != yes; then
24415
24416 # Remove --cache-file and --srcdir arguments so they do not pile up.
24417 ac_sub_configure_args=
24418 ac_prev=
24419 for ac_arg in $ac_configure_args; do
24420 if test -n "$ac_prev"; then
24421 ac_prev=
24422 continue
24423 fi
24424 case $ac_arg in
24425 -cache-file | --cache-file | --cache-fil | --cache-fi \
24426 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24427 ac_prev=cache_file ;;
24428 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24429 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24430 | --c=*)
24431 ;;
24432 --config-cache | -C)
24433 ;;
24434 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24435 ac_prev=srcdir ;;
24436 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24437 ;;
24438 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24439 ac_prev=prefix ;;
24440 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24441 ;;
24442 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24443 esac
24444 done
24445
24446 # Always prepend --prefix to ensure using the same prefix
24447 # in subdir configurations.
24448 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24449
24450 ac_popdir=`pwd`
24451 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24452
24453 # Do not complain, so a configure script can configure whichever
24454 # parts of a large source tree are present.
24455 test -d $srcdir/$ac_dir || continue
24456
24457 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24458 echo "$as_me: configuring in $ac_dir" >&6;}
24459 { if $as_mkdir_p; then
24460 mkdir -p "$ac_dir"
24461 else
24462 as_dir="$ac_dir"
24463 as_dirs=
24464 while test ! -d "$as_dir"; do
24465 as_dirs="$as_dir $as_dirs"
24466 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24467 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24468 X"$as_dir" : 'X\(//\)[^/]' \| \
24469 X"$as_dir" : 'X\(//\)$' \| \
24470 X"$as_dir" : 'X\(/\)' \| \
24471 . : '\(.\)' 2>/dev/null ||
24472 echo X"$as_dir" |
24473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24474 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24475 /^X\(\/\/\)$/{ s//\1/; q; }
24476 /^X\(\/\).*/{ s//\1/; q; }
24477 s/.*/./; q'`
24478 done
24479 test ! -n "$as_dirs" || mkdir $as_dirs
24480 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24481 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24482 { (exit 1); exit 1; }; }; }
24483
24484 ac_builddir=.
24485
24486 if test "$ac_dir" != .; then
24487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24488 # A "../" for each directory in $ac_dir_suffix.
24489 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24490 else
24491 ac_dir_suffix= ac_top_builddir=
24492 fi
24493
24494 case $srcdir in
24495 .) # No --srcdir option. We are building in place.
24496 ac_srcdir=.
24497 if test -z "$ac_top_builddir"; then
24498 ac_top_srcdir=.
24499 else
24500 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24501 fi ;;
24502 [\\/]* | ?:[\\/]* ) # Absolute path.
24503 ac_srcdir=$srcdir$ac_dir_suffix;
24504 ac_top_srcdir=$srcdir ;;
24505 *) # Relative path.
24506 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24507 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24508 esac
24509
24510 # Do not use `cd foo && pwd` to compute absolute paths, because
24511 # the directories may not exist.
24512 case `pwd` in
24513 .) ac_abs_builddir="$ac_dir";;
24514 *)
24515 case "$ac_dir" in
24516 .) ac_abs_builddir=`pwd`;;
24517 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24518 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24519 esac;;
24520 esac
24521 case $ac_abs_builddir in
24522 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24523 *)
24524 case ${ac_top_builddir}. in
24525 .) ac_abs_top_builddir=$ac_abs_builddir;;
24526 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24527 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24528 esac;;
24529 esac
24530 case $ac_abs_builddir in
24531 .) ac_abs_srcdir=$ac_srcdir;;
24532 *)
24533 case $ac_srcdir in
24534 .) ac_abs_srcdir=$ac_abs_builddir;;
24535 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24536 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24537 esac;;
24538 esac
24539 case $ac_abs_builddir in
24540 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24541 *)
24542 case $ac_top_srcdir in
24543 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24544 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24545 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24546 esac;;
24547 esac
24548
24549
24550 cd $ac_dir
24551
24552 # Check for guested configure; otherwise get Cygnus style configure.
24553 if test -f $ac_srcdir/configure.gnu; then
24554 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24555 elif test -f $ac_srcdir/configure; then
24556 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24557 elif test -f $ac_srcdir/configure.in; then
24558 ac_sub_configure=$ac_configure
24559 else
24560 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24562 ac_sub_configure=
24563 fi
24564
24565 # The recursion is here.
24566 if test -n "$ac_sub_configure"; then
24567 # Make the cache file name correct relative to the subdirectory.
24568 case $cache_file in
24569 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24570 *) # Relative path.
24571 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24572 esac
24573
24574 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24575 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24576 # The eval makes quoting arguments work.
24577 eval $ac_sub_configure $ac_sub_configure_args \
24578 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24579 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24580 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24581 { (exit 1); exit 1; }; }
24582 fi
24583
24584 cd $ac_popdir
24585 done
24586 fi
24587
24588
24589 if test x"$coin_vpath_link_files" = x; then : ; else
24590 lnkcmd="$coin_link_input_cmd"
24591 if test "$lnkcmd" = cp; then
24592 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
24593 echo "$as_me: Copying data files for VPATH configuration" >&6;}
24594 else
24595 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
24596 echo "$as_me: Creating VPATH links for data files" >&6;}
24597 fi
24598 for file in $coin_vpath_link_files; do
24599 dir=`(dirname "./$file") 2>/dev/null ||
24600 $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24601 X"./$file" : 'X\(//\)[^/]' \| \
24602 X"./$file" : 'X\(//\)$' \| \
24603 X"./$file" : 'X\(/\)' \| \
24604 . : '\(.\)' 2>/dev/null ||
24605 echo X"./$file" |
24606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24608 /^X\(\/\/\)$/{ s//\1/; q; }
24609 /^X\(\/\).*/{ s//\1/; q; }
24610 s/.*/./; q'`
24611 if test -d $dir; then : ; else
24612 { if $as_mkdir_p; then
24613 mkdir -p $dir
24614 else
24615 as_dir=$dir
24616 as_dirs=
24617 while test ! -d "$as_dir"; do
24618 as_dirs="$as_dir $as_dirs"
24619 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24621 X"$as_dir" : 'X\(//\)[^/]' \| \
24622 X"$as_dir" : 'X\(//\)$' \| \
24623 X"$as_dir" : 'X\(/\)' \| \
24624 . : '\(.\)' 2>/dev/null ||
24625 echo X"$as_dir" |
24626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24628 /^X\(\/\/\)$/{ s//\1/; q; }
24629 /^X\(\/\).*/{ s//\1/; q; }
24630 s/.*/./; q'`
24631 done
24632 test ! -n "$as_dirs" || mkdir $as_dirs
24633 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
24634 echo "$as_me: error: cannot create directory $dir" >&2;}
24635 { (exit 1); exit 1; }; }; }
24636
24637 fi
24638 rm -f $file
24639 $lnkcmd $abs_source_dir/$file $file
24640 done
24641 fi
24642
24643 { 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
24644 echo "$as_me: In case of trouble, first consult the troubleshooting page at https://github.com/coin-or-tools/BuildTools/wiki/user-troubleshooting" >&6;}
24645 if test x$coin_projectdir = xyes; then
24646 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
24647 echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
24648 else
24649 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
24650 echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
24651 fi
24652 else
24653 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
24654 echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
24655 fi
24656
24657