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 Osi 0.108.11.
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='Osi'
432 PACKAGE_TARNAME='osi'
433 PACKAGE_VERSION='0.108.11'
434 PACKAGE_STRING='Osi 0.108.11'
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/Glpk"
477 ac_subdirs_all="$ac_subdirs_all ThirdParty/SoPlex"
478 ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
479 ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
480 ac_subdirs_all="$ac_subdirs_all Data/Sample"
481 ac_subdirs_all="$ac_subdirs_all Data/Netlib"
482 ac_subdirs_all="$ac_subdirs_all CoinUtils"
483 ac_subdirs_all="$ac_subdirs_all Osi"
484 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'
485 ac_subst_files=''
486
487 # Initialize some variables set by options.
488 ac_init_help=
489 ac_init_version=false
490 # The variables have the same names as the options, with
491 # dashes changed to underlines.
492 cache_file=/dev/null
493 exec_prefix=NONE
494 no_create=
495 no_recursion=
496 prefix=NONE
497 program_prefix=NONE
498 program_suffix=NONE
499 program_transform_name=s,x,x,
500 silent=
501 site=
502 srcdir=
503 verbose=
504 x_includes=NONE
505 x_libraries=NONE
506
507 # Installation directory options.
508 # These are left unexpanded so users can "make install exec_prefix=/foo"
509 # and all the variables that are supposed to be based on exec_prefix
510 # by default will actually change.
511 # Use braces instead of parens because sh, perl, etc. also accept them.
512 bindir='${exec_prefix}/bin'
513 sbindir='${exec_prefix}/sbin'
514 libexecdir='${exec_prefix}/libexec'
515 datadir='${prefix}/share'
516 sysconfdir='${prefix}/etc'
517 sharedstatedir='${prefix}/com'
518 localstatedir='${prefix}/var'
519 libdir='${exec_prefix}/lib'
520 includedir='${prefix}/include'
521 oldincludedir='/usr/include'
522 infodir='${prefix}/info'
523 mandir='${prefix}/man'
524
525 ac_prev=
526 for ac_option
527 do
528 # If the previous option needs an argument, assign it.
529 if test -n "$ac_prev"; then
530 eval "$ac_prev=\$ac_option"
531 ac_prev=
532 continue
533 fi
534
535 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
536
537 # Accept the important Cygnus configure options, so we can diagnose typos.
538
539 case $ac_option in
540
541 -bindir | --bindir | --bindi | --bind | --bin | --bi)
542 ac_prev=bindir ;;
543 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
544 bindir=$ac_optarg ;;
545
546 -build | --build | --buil | --bui | --bu)
547 ac_prev=build_alias ;;
548 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
549 build_alias=$ac_optarg ;;
550
551 -cache-file | --cache-file | --cache-fil | --cache-fi \
552 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
553 ac_prev=cache_file ;;
554 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
555 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
556 cache_file=$ac_optarg ;;
557
558 --config-cache | -C)
559 cache_file=config.cache ;;
560
561 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
562 ac_prev=datadir ;;
563 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
564 | --da=*)
565 datadir=$ac_optarg ;;
566
567 -disable-* | --disable-*)
568 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
569 # Reject names that are not valid shell variable names.
570 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572 { (exit 1); exit 1; }; }
573 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574 eval "enable_$ac_feature=no" ;;
575
576 -enable-* | --enable-*)
577 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
581 { (exit 1); exit 1; }; }
582 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
583 case $ac_option in
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
585 *) ac_optarg=yes ;;
586 esac
587 eval "enable_$ac_feature='$ac_optarg'" ;;
588
589 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
590 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
591 | --exec | --exe | --ex)
592 ac_prev=exec_prefix ;;
593 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
594 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
595 | --exec=* | --exe=* | --ex=*)
596 exec_prefix=$ac_optarg ;;
597
598 -gas | --gas | --ga | --g)
599 # Obsolete; use --with-gas.
600 with_gas=yes ;;
601
602 -help | --help | --hel | --he | -h)
603 ac_init_help=long ;;
604 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
605 ac_init_help=recursive ;;
606 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
607 ac_init_help=short ;;
608
609 -host | --host | --hos | --ho)
610 ac_prev=host_alias ;;
611 -host=* | --host=* | --hos=* | --ho=*)
612 host_alias=$ac_optarg ;;
613
614 -includedir | --includedir | --includedi | --included | --include \
615 | --includ | --inclu | --incl | --inc)
616 ac_prev=includedir ;;
617 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
618 | --includ=* | --inclu=* | --incl=* | --inc=*)
619 includedir=$ac_optarg ;;
620
621 -infodir | --infodir | --infodi | --infod | --info | --inf)
622 ac_prev=infodir ;;
623 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
624 infodir=$ac_optarg ;;
625
626 -libdir | --libdir | --libdi | --libd)
627 ac_prev=libdir ;;
628 -libdir=* | --libdir=* | --libdi=* | --libd=*)
629 libdir=$ac_optarg ;;
630
631 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
632 | --libexe | --libex | --libe)
633 ac_prev=libexecdir ;;
634 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
635 | --libexe=* | --libex=* | --libe=*)
636 libexecdir=$ac_optarg ;;
637
638 -localstatedir | --localstatedir | --localstatedi | --localstated \
639 | --localstate | --localstat | --localsta | --localst \
640 | --locals | --local | --loca | --loc | --lo)
641 ac_prev=localstatedir ;;
642 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
643 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
644 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
645 localstatedir=$ac_optarg ;;
646
647 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
648 ac_prev=mandir ;;
649 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
650 mandir=$ac_optarg ;;
651
652 -nfp | --nfp | --nf)
653 # Obsolete; use --without-fp.
654 with_fp=no ;;
655
656 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
657 | --no-cr | --no-c | -n)
658 no_create=yes ;;
659
660 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
661 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
662 no_recursion=yes ;;
663
664 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
665 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
666 | --oldin | --oldi | --old | --ol | --o)
667 ac_prev=oldincludedir ;;
668 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
669 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
670 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
671 oldincludedir=$ac_optarg ;;
672
673 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
674 ac_prev=prefix ;;
675 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
676 prefix=$ac_optarg ;;
677
678 -program-prefix | --program-prefix | --program-prefi | --program-pref \
679 | --program-pre | --program-pr | --program-p)
680 ac_prev=program_prefix ;;
681 -program-prefix=* | --program-prefix=* | --program-prefi=* \
682 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
683 program_prefix=$ac_optarg ;;
684
685 -program-suffix | --program-suffix | --program-suffi | --program-suff \
686 | --program-suf | --program-su | --program-s)
687 ac_prev=program_suffix ;;
688 -program-suffix=* | --program-suffix=* | --program-suffi=* \
689 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
690 program_suffix=$ac_optarg ;;
691
692 -program-transform-name | --program-transform-name \
693 | --program-transform-nam | --program-transform-na \
694 | --program-transform-n | --program-transform- \
695 | --program-transform | --program-transfor \
696 | --program-transfo | --program-transf \
697 | --program-trans | --program-tran \
698 | --progr-tra | --program-tr | --program-t)
699 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
708
709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
710 | -silent | --silent | --silen | --sile | --sil)
711 silent=yes ;;
712
713 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
714 ac_prev=sbindir ;;
715 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
716 | --sbi=* | --sb=*)
717 sbindir=$ac_optarg ;;
718
719 -sharedstatedir | --sharedstatedir | --sharedstatedi \
720 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
721 | --sharedst | --shareds | --shared | --share | --shar \
722 | --sha | --sh)
723 ac_prev=sharedstatedir ;;
724 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
725 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
726 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
727 | --sha=* | --sh=*)
728 sharedstatedir=$ac_optarg ;;
729
730 -site | --site | --sit)
731 ac_prev=site ;;
732 -site=* | --site=* | --sit=*)
733 site=$ac_optarg ;;
734
735 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
736 ac_prev=srcdir ;;
737 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
738 srcdir=$ac_optarg ;;
739
740 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
741 | --syscon | --sysco | --sysc | --sys | --sy)
742 ac_prev=sysconfdir ;;
743 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
744 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
745 sysconfdir=$ac_optarg ;;
746
747 -target | --target | --targe | --targ | --tar | --ta | --t)
748 ac_prev=target_alias ;;
749 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
750 target_alias=$ac_optarg ;;
751
752 -v | -verbose | --verbose | --verbos | --verbo | --verb)
753 verbose=yes ;;
754
755 -version | --version | --versio | --versi | --vers | -V)
756 ac_init_version=: ;;
757
758 -with-* | --with-*)
759 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
760 # Reject names that are not valid shell variable names.
761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package| sed 's/-/_/g'`
765 case $ac_option in
766 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
767 *) ac_optarg=yes ;;
768 esac
769 eval "with_$ac_package='$ac_optarg'" ;;
770
771 -without-* | --without-*)
772 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
773 # Reject names that are not valid shell variable names.
774 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
775 { echo "$as_me: error: invalid package name: $ac_package" >&2
776 { (exit 1); exit 1; }; }
777 ac_package=`echo $ac_package | sed 's/-/_/g'`
778 eval "with_$ac_package=no" ;;
779
780 --x)
781 # Obsolete; use --with-x.
782 with_x=yes ;;
783
784 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
785 | --x-incl | --x-inc | --x-in | --x-i)
786 ac_prev=x_includes ;;
787 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
788 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
789 x_includes=$ac_optarg ;;
790
791 -x-libraries | --x-libraries | --x-librarie | --x-librari \
792 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
793 ac_prev=x_libraries ;;
794 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
795 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
796 x_libraries=$ac_optarg ;;
797
798 -*) { echo "$as_me: error: unrecognized option: $ac_option
799 Try \`$0 --help' for more information." >&2
800 { (exit 1); exit 1; }; }
801 ;;
802
803 *=*)
804 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
805 # Reject names that are not valid shell variable names.
806 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
807 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
808 { (exit 1); exit 1; }; }
809 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
810 eval "$ac_envvar='$ac_optarg'"
811 export $ac_envvar ;;
812
813 *)
814 # FIXME: should be removed in autoconf 3.0.
815 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
816 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
817 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
818 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
819 ;;
820
821 esac
822 done
823
824 if test -n "$ac_prev"; then
825 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
826 { echo "$as_me: error: missing argument to $ac_option" >&2
827 { (exit 1); exit 1; }; }
828 fi
829
830 # Be sure to have absolute paths.
831 for ac_var in exec_prefix prefix
832 do
833 eval ac_val=$`echo $ac_var`
834 case $ac_val in
835 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
836 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837 { (exit 1); exit 1; }; };;
838 esac
839 done
840
841 # Be sure to have absolute paths.
842 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
843 localstatedir libdir includedir oldincludedir infodir mandir
844 do
845 eval ac_val=$`echo $ac_var`
846 case $ac_val in
847 [\\/$]* | ?:[\\/]* ) ;;
848 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
849 { (exit 1); exit 1; }; };;
850 esac
851 done
852
853 # There might be people who depend on the old broken behavior: `$host'
854 # used to hold the argument of --host etc.
855 # FIXME: To remove some day.
856 build=$build_alias
857 host=$host_alias
858 target=$target_alias
859
860 # FIXME: To remove some day.
861 if test "x$host_alias" != x; then
862 if test "x$build_alias" = x; then
863 cross_compiling=maybe
864 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
865 If a cross compiler is detected then cross compile mode will be used." >&2
866 elif test "x$build_alias" != "x$host_alias"; then
867 cross_compiling=yes
868 fi
869 fi
870
871 ac_tool_prefix=
872 test -n "$host_alias" && ac_tool_prefix=$host_alias-
873
874 test "$silent" = yes && exec 6>/dev/null
875
876
877 # Find the source files, if location was not specified.
878 if test -z "$srcdir"; then
879 ac_srcdir_defaulted=yes
880 # Try the directory containing this script, then its parent.
881 ac_confdir=`(dirname "$0") 2>/dev/null ||
882 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
883 X"$0" : 'X\(//\)[^/]' \| \
884 X"$0" : 'X\(//\)$' \| \
885 X"$0" : 'X\(/\)' \| \
886 . : '\(.\)' 2>/dev/null ||
887 echo X"$0" |
888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
889 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
890 /^X\(\/\/\)$/{ s//\1/; q; }
891 /^X\(\/\).*/{ s//\1/; q; }
892 s/.*/./; q'`
893 srcdir=$ac_confdir
894 if test ! -r $srcdir/$ac_unique_file; then
895 srcdir=..
896 fi
897 else
898 ac_srcdir_defaulted=no
899 fi
900 if test ! -r $srcdir/$ac_unique_file; then
901 if test "$ac_srcdir_defaulted" = yes; then
902 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
903 { (exit 1); exit 1; }; }
904 else
905 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
906 { (exit 1); exit 1; }; }
907 fi
908 fi
909 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
910 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
911 { (exit 1); exit 1; }; }
912 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
913 ac_env_build_alias_set=${build_alias+set}
914 ac_env_build_alias_value=$build_alias
915 ac_cv_env_build_alias_set=${build_alias+set}
916 ac_cv_env_build_alias_value=$build_alias
917 ac_env_host_alias_set=${host_alias+set}
918 ac_env_host_alias_value=$host_alias
919 ac_cv_env_host_alias_set=${host_alias+set}
920 ac_cv_env_host_alias_value=$host_alias
921 ac_env_target_alias_set=${target_alias+set}
922 ac_env_target_alias_value=$target_alias
923 ac_cv_env_target_alias_set=${target_alias+set}
924 ac_cv_env_target_alias_value=$target_alias
925 ac_env_CDEFS_set=${CDEFS+set}
926 ac_env_CDEFS_value=$CDEFS
927 ac_cv_env_CDEFS_set=${CDEFS+set}
928 ac_cv_env_CDEFS_value=$CDEFS
929 ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
930 ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
931 ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
932 ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
933 ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
934 ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
935 ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
936 ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
937 ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
938 ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
939 ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
940 ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
941 ac_env_CC_set=${CC+set}
942 ac_env_CC_value=$CC
943 ac_cv_env_CC_set=${CC+set}
944 ac_cv_env_CC_value=$CC
945 ac_env_CFLAGS_set=${CFLAGS+set}
946 ac_env_CFLAGS_value=$CFLAGS
947 ac_cv_env_CFLAGS_set=${CFLAGS+set}
948 ac_cv_env_CFLAGS_value=$CFLAGS
949 ac_env_LDFLAGS_set=${LDFLAGS+set}
950 ac_env_LDFLAGS_value=$LDFLAGS
951 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
952 ac_cv_env_LDFLAGS_value=$LDFLAGS
953 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
954 ac_env_CPPFLAGS_value=$CPPFLAGS
955 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
956 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
957 ac_env_MPICC_set=${MPICC+set}
958 ac_env_MPICC_value=$MPICC
959 ac_cv_env_MPICC_set=${MPICC+set}
960 ac_cv_env_MPICC_value=$MPICC
961 ac_env_CXXDEFS_set=${CXXDEFS+set}
962 ac_env_CXXDEFS_value=$CXXDEFS
963 ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
964 ac_cv_env_CXXDEFS_value=$CXXDEFS
965 ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
966 ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
967 ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
968 ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
969 ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
970 ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
971 ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
972 ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
973 ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
974 ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
975 ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
976 ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
977 ac_env_CXX_set=${CXX+set}
978 ac_env_CXX_value=$CXX
979 ac_cv_env_CXX_set=${CXX+set}
980 ac_cv_env_CXX_value=$CXX
981 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
982 ac_env_CXXFLAGS_value=$CXXFLAGS
983 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
984 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
985 ac_env_MPICXX_set=${MPICXX+set}
986 ac_env_MPICXX_value=$MPICXX
987 ac_cv_env_MPICXX_set=${MPICXX+set}
988 ac_cv_env_MPICXX_value=$MPICXX
989 ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
990 ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
991 ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
992 ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
993 ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
994 ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
995 ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
996 ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
997 ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
998 ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
999 ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1000 ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1001 ac_env_F77_set=${F77+set}
1002 ac_env_F77_value=$F77
1003 ac_cv_env_F77_set=${F77+set}
1004 ac_cv_env_F77_value=$F77
1005 ac_env_FFLAGS_set=${FFLAGS+set}
1006 ac_env_FFLAGS_value=$FFLAGS
1007 ac_cv_env_FFLAGS_set=${FFLAGS+set}
1008 ac_cv_env_FFLAGS_value=$FFLAGS
1009 ac_env_MPIF77_set=${MPIF77+set}
1010 ac_env_MPIF77_value=$MPIF77
1011 ac_cv_env_MPIF77_set=${MPIF77+set}
1012 ac_cv_env_MPIF77_value=$MPIF77
1013 ac_env_CPP_set=${CPP+set}
1014 ac_env_CPP_value=$CPP
1015 ac_cv_env_CPP_set=${CPP+set}
1016 ac_cv_env_CPP_value=$CPP
1017 ac_env_CXXCPP_set=${CXXCPP+set}
1018 ac_env_CXXCPP_value=$CXXCPP
1019 ac_cv_env_CXXCPP_set=${CXXCPP+set}
1020 ac_cv_env_CXXCPP_value=$CXXCPP
1021 ac_env_LT_LDFLAGS_set=${LT_LDFLAGS+set}
1022 ac_env_LT_LDFLAGS_value=$LT_LDFLAGS
1023 ac_cv_env_LT_LDFLAGS_set=${LT_LDFLAGS+set}
1024 ac_cv_env_LT_LDFLAGS_value=$LT_LDFLAGS
1025 ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1026 ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1027 ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1028 ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1029
1030 #
1031 # Report the --help message.
1032 #
1033 if test "$ac_init_help" = "long"; then
1034 # Omit some internal or obsolete options to make the list less imposing.
1035 # This message is too long to be a string in the A/UX 3.1 sh.
1036 cat <<_ACEOF
1037 \`configure' configures Osi 0.108.11 to adapt to many kinds of systems.
1038
1039 Usage: $0 [OPTION]... [VAR=VALUE]...
1040
1041 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1042 VAR=VALUE. See below for descriptions of some of the useful variables.
1043
1044 Defaults for the options are specified in brackets.
1045
1046 Configuration:
1047 -h, --help display this help and exit
1048 --help=short display options specific to this package
1049 --help=recursive display the short help of all the included packages
1050 -V, --version display version information and exit
1051 -q, --quiet, --silent do not print \`checking...' messages
1052 --cache-file=FILE cache test results in FILE [disabled]
1053 -C, --config-cache alias for \`--cache-file=config.cache'
1054 -n, --no-create do not create output files
1055 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1056
1057 _ACEOF
1058
1059 cat <<_ACEOF
1060 Installation directories:
1061 --prefix=PREFIX install architecture-independent files in PREFIX
1062 [$ac_default_prefix]
1063 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1064 [PREFIX]
1065
1066 By default, \`make install' will install all the files in
1067 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1068 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1069 for instance \`--prefix=\$HOME'.
1070
1071 For better control, use the options below.
1072
1073 Fine tuning of the installation directories:
1074 --bindir=DIR user executables [EPREFIX/bin]
1075 --sbindir=DIR system admin executables [EPREFIX/sbin]
1076 --libexecdir=DIR program executables [EPREFIX/libexec]
1077 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1078 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1079 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1080 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1081 --libdir=DIR object code libraries [EPREFIX/lib]
1082 --includedir=DIR C header files [PREFIX/include]
1083 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1084 --infodir=DIR info documentation [PREFIX/info]
1085 --mandir=DIR man documentation [PREFIX/man]
1086 _ACEOF
1087
1088 cat <<\_ACEOF
1089
1090 Program names:
1091 --program-prefix=PREFIX prepend PREFIX to installed program names
1092 --program-suffix=SUFFIX append SUFFIX to installed program names
1093 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1094
1095 System types:
1096 --build=BUILD configure for building on BUILD [guessed]
1097 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1098 _ACEOF
1099 fi
1100
1101 if test -n "$ac_init_help"; then
1102 case $ac_init_help in
1103 short | recursive ) echo "Configuration of Osi 0.108.11:";;
1104 esac
1105 cat <<\_ACEOF
1106
1107 Optional Features:
1108 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1109 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1110 --enable-debug compile all projects with debug options tests
1111 (implies --disable-shared)
1112
1113 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1114 --enable-static[=PKGS]
1115 build static libraries [default=no]
1116 --disable-dependency-tracking speeds up one-time build
1117 --enable-dependency-tracking do not reject slow dependency extractors
1118 --enable-maintainer-mode enable make rules and dependencies not useful
1119 (and sometimes confusing) to the casual installer
1120 --enable-shared[=PKGS]
1121 build shared libraries [default=yes]
1122 --enable-fast-install[=PKGS]
1123 optimize for fast installation [default=yes]
1124 --disable-libtool-lock avoid locking (might break parallel builds)
1125 --disable-dependency-linking
1126 disable linking library dependencies into shared
1127 libraries
1128
1129 Optional Packages:
1130 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1131 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1132 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1133 --with-pic try to use only PIC/non-PIC objects [default=use
1134 both]
1135 --with-tags[=TAGS]
1136 include additional configurations [automatic]
1137
1138 --with-glpk-lib linker flags for using project Glpk
1139 --with-glpk-incdir directory with header files for using project Glpk
1140 --with-glpk-datadir directory with data files for using project Glpk
1141 --with-soplex-lib linker flags for using project SoPlex
1142 --with-soplex-incdir directory with header files for using project SoPlex
1143 --with-soplex-datadir directory with data files for using project SoPlex
1144 --with-blas-lib linker flags for using project Blas
1145 --with-blas-incdir directory with header files for using project Blas
1146 --with-blas-datadir directory with data files for using project Blas
1147 --with-blas specify BLAS library (or BUILD to enforce use of
1148 ThirdParty/Blas)
1149 --with-lapack-lib linker flags for using project Lapack
1150 --with-lapack-incdir directory with header files for using project Lapack
1151 --with-lapack-datadir directory with data files for using project Lapack
1152 --with-lapack specify LAPACK library (or BUILD to enforce use of
1153 ThirdParty/Lapack)
1154 --with-sample-lib linker flags for using project Sample
1155 --with-sample-incdir directory with header files for using project Sample
1156 --with-sample-datadir directory with data files for using project Sample
1157 --with-netlib-lib linker flags for using project Netlib
1158 --with-netlib-incdir directory with header files for using project Netlib
1159 --with-netlib-datadir directory with data files for using project Netlib
1160 --with-coinutils-lib linker flags for using project CoinUtils
1161 --with-coinutils-incdir directory with header files for using project
1162 CoinUtils
1163 --with-coinutils-datadir
1164 directory with data files for using project
1165 CoinUtils
1166 --with-osi-lib linker flags for using project Osi
1167 --with-osi-incdir directory with header files for using project Osi
1168 --with-osi-datadir directory with data files for using project Osi
1169 --with-dot use dot (from graphviz) when creating documentation
1170 with doxygen if available; --without-dot to disable
1171
1172 Some influential environment variables:
1173 CDEFS Additional -D flags to be used when compiling C code.
1174 ADD_CFLAGS Additional C compiler options
1175 DBG_CFLAGS Debug C compiler options
1176 OPT_CFLAGS Optimize C compiler options
1177 CC C compiler command
1178 CFLAGS C compiler flags
1179 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1180 nonstandard directory <lib dir>
1181 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1182 headers in a nonstandard directory <include dir>
1183 MPICC C MPI Compiler
1184 CXXDEFS Additional -D flags to be used when compiling C++ code.
1185 ADD_CXXFLAGS
1186 Additional C++ compiler options
1187 DBG_CXXFLAGS
1188 Debug C++ compiler options
1189 OPT_CXXFLAGS
1190 Optimize C++ compiler options
1191 CXX C++ compiler command
1192 CXXFLAGS C++ compiler flags
1193 MPICXX C++ MPI Compiler
1194 ADD_FFLAGS Additional Fortran compiler options
1195 DBG_FFLAGS Debug Fortran compiler options
1196 OPT_FFLAGS Optimize Fortran compiler options
1197 F77 Fortran 77 compiler command
1198 FFLAGS Fortran 77 compiler flags
1199 MPIF77 Fortran MPI Compiler
1200 CPP C preprocessor
1201 CXXCPP C++ preprocessor
1202 LT_LDFLAGS Flags passed to libtool when building libraries or executables
1203 that are installed
1204 COIN_SKIP_PROJECTS
1205 Set to the subdirectories of projects that should be skipped in
1206 the configuration
1207
1208 Use these variables to override the choices made by `configure' or to help
1209 it to find libraries and programs with nonstandard names/locations.
1210
1211 Report bugs to <[email protected]>.
1212 _ACEOF
1213 fi
1214
1215 if test "$ac_init_help" = "recursive"; then
1216 # If there are subdirs, report their specific --help.
1217 ac_popdir=`pwd`
1218 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1219 test -d $ac_dir || continue
1220 ac_builddir=.
1221
1222 if test "$ac_dir" != .; then
1223 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1224 # A "../" for each directory in $ac_dir_suffix.
1225 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1226 else
1227 ac_dir_suffix= ac_top_builddir=
1228 fi
1229
1230 case $srcdir in
1231 .) # No --srcdir option. We are building in place.
1232 ac_srcdir=.
1233 if test -z "$ac_top_builddir"; then
1234 ac_top_srcdir=.
1235 else
1236 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1237 fi ;;
1238 [\\/]* | ?:[\\/]* ) # Absolute path.
1239 ac_srcdir=$srcdir$ac_dir_suffix;
1240 ac_top_srcdir=$srcdir ;;
1241 *) # Relative path.
1242 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1243 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1244 esac
1245
1246 # Do not use `cd foo && pwd` to compute absolute paths, because
1247 # the directories may not exist.
1248 case `pwd` in
1249 .) ac_abs_builddir="$ac_dir";;
1250 *)
1251 case "$ac_dir" in
1252 .) ac_abs_builddir=`pwd`;;
1253 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1254 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1255 esac;;
1256 esac
1257 case $ac_abs_builddir in
1258 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1259 *)
1260 case ${ac_top_builddir}. in
1261 .) ac_abs_top_builddir=$ac_abs_builddir;;
1262 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1263 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1264 esac;;
1265 esac
1266 case $ac_abs_builddir in
1267 .) ac_abs_srcdir=$ac_srcdir;;
1268 *)
1269 case $ac_srcdir in
1270 .) ac_abs_srcdir=$ac_abs_builddir;;
1271 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1272 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1273 esac;;
1274 esac
1275 case $ac_abs_builddir in
1276 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1277 *)
1278 case $ac_top_srcdir in
1279 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1280 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1281 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1282 esac;;
1283 esac
1284
1285 cd $ac_dir
1286 # Check for guested configure; otherwise get Cygnus style configure.
1287 if test -f $ac_srcdir/configure.gnu; then
1288 echo
1289 $SHELL $ac_srcdir/configure.gnu --help=recursive
1290 elif test -f $ac_srcdir/configure; then
1291 echo
1292 $SHELL $ac_srcdir/configure --help=recursive
1293 elif test -f $ac_srcdir/configure.ac ||
1294 test -f $ac_srcdir/configure.in; then
1295 echo
1296 $ac_configure --help
1297 else
1298 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1299 fi
1300 cd $ac_popdir
1301 done
1302 fi
1303
1304 test -n "$ac_init_help" && exit 0
1305 if $ac_init_version; then
1306 cat <<\_ACEOF
1307 Osi configure 0.108.11
1308 generated by GNU Autoconf 2.59
1309
1310 Copyright (C) 2003 Free Software Foundation, Inc.
1311 This configure script is free software; the Free Software Foundation
1312 gives unlimited permission to copy, distribute and modify it.
1313
1314
1315 Copyright 2006 International Business Machines and others.
1316 All Rights Reserved.
1317 This file is part of the open source package Coin which is distributed
1318 under the Eclipse Public License.
1319 _ACEOF
1320 exit 0
1321 fi
1322 exec 5>config.log
1323 cat >&5 <<_ACEOF
1324 This file contains any messages produced by compilers while
1325 running configure, to aid debugging if configure makes a mistake.
1326
1327 It was created by Osi $as_me 0.108.11, which was
1328 generated by GNU Autoconf 2.59. Invocation command line was
1329
1330 $ $0 $@
1331
1332 _ACEOF
1333 {
1334 cat <<_ASUNAME
1335 ## --------- ##
1336 ## Platform. ##
1337 ## --------- ##
1338
1339 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1340 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1341 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1342 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1343 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1344
1345 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1346 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1347
1348 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1349 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1350 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1351 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1352 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1353 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1354 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1355
1356 _ASUNAME
1357
1358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1359 for as_dir in $PATH
1360 do
1361 IFS=$as_save_IFS
1362 test -z "$as_dir" && as_dir=.
1363 echo "PATH: $as_dir"
1364 done
1365
1366 } >&5
1367
1368 cat >&5 <<_ACEOF
1369
1370
1371 ## ----------- ##
1372 ## Core tests. ##
1373 ## ----------- ##
1374
1375 _ACEOF
1376
1377
1378 # Keep a trace of the command line.
1379 # Strip out --no-create and --no-recursion so they do not pile up.
1380 # Strip out --silent because we don't want to record it for future runs.
1381 # Also quote any args containing shell meta-characters.
1382 # Make two passes to allow for proper duplicate-argument suppression.
1383 ac_configure_args=
1384 ac_configure_args0=
1385 ac_configure_args1=
1386 ac_sep=
1387 ac_must_keep_next=false
1388 for ac_pass in 1 2
1389 do
1390 for ac_arg
1391 do
1392 case $ac_arg in
1393 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1395 | -silent | --silent | --silen | --sile | --sil)
1396 continue ;;
1397 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1398 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1399 esac
1400 case $ac_pass in
1401 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1402 2)
1403 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1404 if test $ac_must_keep_next = true; then
1405 ac_must_keep_next=false # Got value, back to normal.
1406 else
1407 case $ac_arg in
1408 *=* | --config-cache | -C | -disable-* | --disable-* \
1409 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1410 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1411 | -with-* | --with-* | -without-* | --without-* | --x)
1412 case "$ac_configure_args0 " in
1413 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1414 esac
1415 ;;
1416 -* ) ac_must_keep_next=true ;;
1417 esac
1418 fi
1419 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1420 # Get rid of the leading space.
1421 ac_sep=" "
1422 ;;
1423 esac
1424 done
1425 done
1426 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1427 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1428
1429 # When interrupted or exit'd, cleanup temporary files, and complete
1430 # config.log. We remove comments because anyway the quotes in there
1431 # would cause problems or look ugly.
1432 # WARNING: Be sure not to use single quotes in there, as some shells,
1433 # such as our DU 5.0 friend, will then `close' the trap.
1434 trap 'exit_status=$?
1435 # Save into config.log some information that might help in debugging.
1436 {
1437 echo
1438
1439 cat <<\_ASBOX
1440 ## ---------------- ##
1441 ## Cache variables. ##
1442 ## ---------------- ##
1443 _ASBOX
1444 echo
1445 # The following way of writing the cache mishandles newlines in values,
1446 {
1447 (set) 2>&1 |
1448 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1449 *ac_space=\ *)
1450 sed -n \
1451 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1453 ;;
1454 *)
1455 sed -n \
1456 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1457 ;;
1458 esac;
1459 }
1460 echo
1461
1462 cat <<\_ASBOX
1463 ## ----------------- ##
1464 ## Output variables. ##
1465 ## ----------------- ##
1466 _ASBOX
1467 echo
1468 for ac_var in $ac_subst_vars
1469 do
1470 eval ac_val=$`echo $ac_var`
1471 echo "$ac_var='"'"'$ac_val'"'"'"
1472 done | sort
1473 echo
1474
1475 if test -n "$ac_subst_files"; then
1476 cat <<\_ASBOX
1477 ## ------------- ##
1478 ## Output files. ##
1479 ## ------------- ##
1480 _ASBOX
1481 echo
1482 for ac_var in $ac_subst_files
1483 do
1484 eval ac_val=$`echo $ac_var`
1485 echo "$ac_var='"'"'$ac_val'"'"'"
1486 done | sort
1487 echo
1488 fi
1489
1490 if test -s confdefs.h; then
1491 cat <<\_ASBOX
1492 ## ----------- ##
1493 ## confdefs.h. ##
1494 ## ----------- ##
1495 _ASBOX
1496 echo
1497 sed "/^$/d" confdefs.h | sort
1498 echo
1499 fi
1500 test "$ac_signal" != 0 &&
1501 echo "$as_me: caught signal $ac_signal"
1502 echo "$as_me: exit $exit_status"
1503 } >&5
1504 rm -f core *.core &&
1505 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1506 exit $exit_status
1507 ' 0
1508 for ac_signal in 1 2 13 15; do
1509 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1510 done
1511 ac_signal=0
1512
1513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1514 rm -rf conftest* confdefs.h
1515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1516 echo >confdefs.h
1517
1518 # Predefined preprocessor variables.
1519
1520 cat >>confdefs.h <<_ACEOF
1521 #define PACKAGE_NAME "$PACKAGE_NAME"
1522 _ACEOF
1523
1524
1525 cat >>confdefs.h <<_ACEOF
1526 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1527 _ACEOF
1528
1529
1530 cat >>confdefs.h <<_ACEOF
1531 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1532 _ACEOF
1533
1534
1535 cat >>confdefs.h <<_ACEOF
1536 #define PACKAGE_STRING "$PACKAGE_STRING"
1537 _ACEOF
1538
1539
1540 cat >>confdefs.h <<_ACEOF
1541 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1542 _ACEOF
1543
1544
1545 # Let the site file select an alternate cache file if it wants to.
1546 # Prefer explicitly selected file to automatically selected ones.
1547 if test -z "$CONFIG_SITE"; then
1548 if test "x$prefix" != xNONE; then
1549 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1550 else
1551 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1552 fi
1553 fi
1554 for ac_site_file in $CONFIG_SITE; do
1555 if test -r "$ac_site_file"; then
1556 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1557 echo "$as_me: loading site script $ac_site_file" >&6;}
1558 sed 's/^/| /' "$ac_site_file" >&5
1559 . "$ac_site_file"
1560 fi
1561 done
1562
1563 if test -r "$cache_file"; then
1564 # Some versions of bash will fail to source /dev/null (special
1565 # files actually), so we avoid doing that.
1566 if test -f "$cache_file"; then
1567 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1568 echo "$as_me: loading cache $cache_file" >&6;}
1569 case $cache_file in
1570 [\\/]* | ?:[\\/]* ) . $cache_file;;
1571 *) . ./$cache_file;;
1572 esac
1573 fi
1574 else
1575 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1576 echo "$as_me: creating cache $cache_file" >&6;}
1577 >$cache_file
1578 fi
1579
1580 # Check that the precious variables saved in the cache have kept the same
1581 # value.
1582 ac_cache_corrupted=false
1583 for ac_var in `(set) 2>&1 |
1584 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1585 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1586 eval ac_new_set=\$ac_env_${ac_var}_set
1587 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1588 eval ac_new_val="\$ac_env_${ac_var}_value"
1589 case $ac_old_set,$ac_new_set in
1590 set,)
1591 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1592 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1593 ac_cache_corrupted=: ;;
1594 ,set)
1595 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1596 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1597 ac_cache_corrupted=: ;;
1598 ,);;
1599 *)
1600 if test "x$ac_old_val" != "x$ac_new_val"; then
1601 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1602 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1603 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1604 echo "$as_me: former value: $ac_old_val" >&2;}
1605 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1606 echo "$as_me: current value: $ac_new_val" >&2;}
1607 ac_cache_corrupted=:
1608 fi;;
1609 esac
1610 # Pass precious variables to config.status.
1611 if test "$ac_new_set" = set; then
1612 case $ac_new_val in
1613 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1614 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1615 *) ac_arg=$ac_var=$ac_new_val ;;
1616 esac
1617 case " $ac_configure_args " in
1618 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1619 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1620 esac
1621 fi
1622 done
1623 if $ac_cache_corrupted; then
1624 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1625 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1626 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1627 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1628 { (exit 1); exit 1; }; }
1629 fi
1630
1631 ac_ext=c
1632 ac_cpp='$CPP $CPPFLAGS'
1633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668 # List one file in the package so that the configure script can test
1669 # whether the package is actually there
1670
1671
1672 # Where should everything be installed by default? Here, we want it
1673 # to be installed directly in 'bin', 'lib', 'include' subdirectories
1674 # of the directory where configure is run. The default would be
1675 # /usr/local.
1676
1677
1678 #############################################################################
1679 # Do the tests necessary to configure compilers and initialise autotools #
1680 #############################################################################
1681
1682 ac_aux_dir=
1683 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1684 if test -f $ac_dir/install-sh; then
1685 ac_aux_dir=$ac_dir
1686 ac_install_sh="$ac_aux_dir/install-sh -c"
1687 break
1688 elif test -f $ac_dir/install.sh; then
1689 ac_aux_dir=$ac_dir
1690 ac_install_sh="$ac_aux_dir/install.sh -c"
1691 break
1692 elif test -f $ac_dir/shtool; then
1693 ac_aux_dir=$ac_dir
1694 ac_install_sh="$ac_aux_dir/shtool install -c"
1695 break
1696 fi
1697 done
1698 if test -z "$ac_aux_dir"; then
1699 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1700 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1701 { (exit 1); exit 1; }; }
1702 fi
1703 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1704 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1705 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1706
1707 # Make sure we can run config.sub.
1708 $ac_config_sub sun4 >/dev/null 2>&1 ||
1709 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1710 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1711 { (exit 1); exit 1; }; }
1712
1713 echo "$as_me:$LINENO: checking build system type" >&5
1714 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1715 if test "${ac_cv_build+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718 ac_cv_build_alias=$build_alias
1719 test -z "$ac_cv_build_alias" &&
1720 ac_cv_build_alias=`$ac_config_guess`
1721 test -z "$ac_cv_build_alias" &&
1722 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1723 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1724 { (exit 1); exit 1; }; }
1725 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1726 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1727 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1728 { (exit 1); exit 1; }; }
1729
1730 fi
1731 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1732 echo "${ECHO_T}$ac_cv_build" >&6
1733 build=$ac_cv_build
1734 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1735 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1736 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1737
1738
1739
1740 # Check if user wants to produce debugging code
1741
1742 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1743 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1744
1745 # Check whether --enable-debug or --disable-debug was given.
1746 if test "${enable_debug+set}" = set; then
1747 enableval="$enable_debug"
1748 case "${enableval}" in
1749 yes) coin_debug_compile=true
1750 if test "${enable_shared+set}" = set; then :; else
1751 enable_shared=no
1752 fi
1753 ;;
1754 no) coin_debug_compile=false
1755 ;;
1756 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1757 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1758 { (exit 1); exit 1; }; }
1759 ;;
1760 esac
1761 else
1762 coin_debug_compile=false
1763 fi;
1764
1765 # m4_ifvaln([],
1766
1767 if test $coin_debug_compile = true; then
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1770 else
1771 echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1773 fi
1774
1775 # m4_ifvaln([],
1776
1777
1778
1779 # Get the name of the C compiler and appropriate compiler options
1780
1781
1782 # for backward compatibility
1783 # Check whether --enable-doscompile or --disable-doscompile was given.
1784 if test "${enable_doscompile+set}" = set; then
1785 enableval="$enable_doscompile"
1786 enable_doscompile=$enableval
1787 else
1788 enable_doscompile=no
1789 fi;
1790
1791 # Check whether --enable-msvc or --disable-msvc was given.
1792 if test "${enable_msvc+set}" = set; then
1793 enableval="$enable_msvc"
1794 enable_msvc=$enableval
1795 else
1796 enable_msvc=no
1797 if test "$enable_doscompile" = msvc ; then
1798 enable_msvc=yes
1799 elif test "$enable_doscompile" != no ; then
1800 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1801 echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1802 { (exit 1); exit 1; }; }
1803 fi
1804
1805 fi;
1806
1807 if test "$enable_msvc" = MD; then
1808 enable_shared=yes
1809 enable_msvc=yes
1810 fi
1811
1812 if test "$enable_msvc" = yes; then
1813 case $build in
1814 *-cygwin* | *-mingw*) ;;
1815 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1816 echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1817 { (exit 1); exit 1; }; } ;;
1818 esac
1819 fi
1820
1821
1822
1823 ac_ext=c
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828
1829
1830 # For consistency, we set the C compiler to the same value of the C++
1831 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1832 if test x"$CXX" != x; then
1833 case "$CXX" in
1834 clang* | */clang* ) ;;
1835 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1836 if test x"$CC" = x; then
1837 CC="$CXX"
1838 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1839 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1840 fi
1841 ;;
1842 esac
1843 fi
1844
1845
1846
1847
1848
1849
1850 coin_has_cc=yes
1851
1852 save_cflags="$CFLAGS"
1853
1854 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1855 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
1856 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
1857 # compiler. In this case, put cc after gcc.
1858
1859 case $build in
1860 *-cygwin* | *-mingw*)
1861 if test "$enable_msvc" = yes ; then
1862 comps="icl cl gcc"
1863 else
1864 comps="gcc icl cl"
1865 fi ;;
1866 *-*-solaris*)
1867 # Extract the first word of "cc", so it can be a program name with args.
1868 set dummy cc; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$sol_cc_compiler"; then
1875 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1876 else
1877 ac_prog_rejected=no
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881 IFS=$as_save_IFS
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1886 ac_prog_rejected=yes
1887 continue
1888 fi
1889 ac_cv_prog_sol_cc_compiler="cc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 break 2
1892 fi
1893 done
1894 done
1895
1896 if test $ac_prog_rejected = yes; then
1897 # We found a bogon in the path, so make sure we never use it.
1898 set dummy $ac_cv_prog_sol_cc_compiler
1899 shift
1900 if test $# != 0; then
1901 # We chose a different compiler from the bogus one.
1902 # However, it has the same basename, so the bogon will be chosen
1903 # first if we set sol_cc_compiler to just the basename; use the full file name.
1904 shift
1905 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1906 fi
1907 fi
1908 fi
1909 fi
1910 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1911 if test -n "$sol_cc_compiler"; then
1912 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1913 echo "${ECHO_T}$sol_cc_compiler" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919 if test "$sol_cc_compiler" = "cc" ; then
1920 comps="cc xlc gcc pgcc icc"
1921 else
1922 comps="xlc gcc pgcc icc cc"
1923 fi
1924 ;;
1925 *-*-darwin*) comps="clang gcc cc" ;;
1926 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1927 *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1928 *) comps="xlc_r xlc cc gcc pgcc icc" ;;
1929 esac
1930
1931 # We delete the cached value, since the test might not have been
1932 # performed with our choice of compilers earlier
1933 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1934 # AC_MSG_NOTICE([C compiler candidates: $comps])
1935 ac_ext=c
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940 if test -n "$ac_tool_prefix"; then
1941 for ac_prog in $comps
1942 do
1943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950 if test -n "$CC"; then
1951 ac_cv_prog_CC="$CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1963 fi
1964 done
1965 done
1966
1967 fi
1968 fi
1969 CC=$ac_cv_prog_CC
1970 if test -n "$CC"; then
1971 echo "$as_me:$LINENO: result: $CC" >&5
1972 echo "${ECHO_T}$CC" >&6
1973 else
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1976 fi
1977
1978 test -n "$CC" && break
1979 done
1980 fi
1981 if test -z "$CC"; then
1982 ac_ct_CC=$CC
1983 for ac_prog in $comps
1984 do
1985 # Extract the first word of "$ac_prog", so it can be a program name with args.
1986 set dummy $ac_prog; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 if test -n "$ac_ct_CC"; then
1993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_ac_ct_CC="$ac_prog"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2005 fi
2006 done
2007 done
2008
2009 fi
2010 fi
2011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2012 if test -n "$ac_ct_CC"; then
2013 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2014 echo "${ECHO_T}$ac_ct_CC" >&6
2015 else
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2018 fi
2019
2020 test -n "$ac_ct_CC" && break
2021 done
2022
2023 CC=$ac_ct_CC
2024 fi
2025
2026
2027 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2028 See \`config.log' for more details." >&5
2029 echo "$as_me: error: no acceptable C compiler found in \$PATH
2030 See \`config.log' for more details." >&2;}
2031 { (exit 1); exit 1; }; }
2032
2033 # Provide some information about the compiler.
2034 echo "$as_me:$LINENO:" \
2035 "checking for C compiler version" >&5
2036 ac_compiler=`set X $ac_compile; echo $2`
2037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2038 (eval $ac_compiler --version </dev/null >&5) 2>&5
2039 ac_status=$?
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }
2042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2043 (eval $ac_compiler -v </dev/null >&5) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }
2047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2048 (eval $ac_compiler -V </dev/null >&5) 2>&5
2049 ac_status=$?
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }
2052
2053 cat >conftest.$ac_ext <<_ACEOF
2054 /* confdefs.h. */
2055 _ACEOF
2056 cat confdefs.h >>conftest.$ac_ext
2057 cat >>conftest.$ac_ext <<_ACEOF
2058 /* end confdefs.h. */
2059
2060 int
2061 main ()
2062 {
2063
2064 ;
2065 return 0;
2066 }
2067 _ACEOF
2068 ac_clean_files_save=$ac_clean_files
2069 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2070 # Try to create an executable without -o first, disregard a.out.
2071 # It will help us diagnose broken compilers, and finding out an intuition
2072 # of exeext.
2073 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2074 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2075 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2076 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2077 (eval $ac_link_default) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; then
2081 # Find the output, starting from the most likely. This scheme is
2082 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2083 # resort.
2084
2085 # Be careful to initialize this variable, since it used to be cached.
2086 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2087 ac_cv_exeext=
2088 # b.out is created by i960 compilers.
2089 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2090 do
2091 test -f "$ac_file" || continue
2092 case $ac_file in
2093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2094 ;;
2095 conftest.$ac_ext )
2096 # This is the source file.
2097 ;;
2098 [ab].out )
2099 # We found the default executable, but exeext='' is most
2100 # certainly right.
2101 break;;
2102 *.* )
2103 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2104 # FIXME: I believe we export ac_cv_exeext for Libtool,
2105 # but it would be cool to find out if it's true. Does anybody
2106 # maintain Libtool? --akim.
2107 export ac_cv_exeext
2108 break;;
2109 * )
2110 break;;
2111 esac
2112 done
2113 else
2114 echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.$ac_ext >&5
2116
2117 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2118 See \`config.log' for more details." >&5
2119 echo "$as_me: error: C compiler cannot create executables
2120 See \`config.log' for more details." >&2;}
2121 { (exit 77); exit 77; }; }
2122 fi
2123
2124 ac_exeext=$ac_cv_exeext
2125 echo "$as_me:$LINENO: result: $ac_file" >&5
2126 echo "${ECHO_T}$ac_file" >&6
2127
2128 # Check the compiler produces executables we can run. If not, either
2129 # the compiler is broken, or we cross compile.
2130 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2131 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2132 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2133 # If not cross compiling, check that we can run a simple program.
2134 if test "$cross_compiling" != yes; then
2135 if { ac_try='./$ac_file'
2136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137 (eval $ac_try) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; }; then
2141 cross_compiling=no
2142 else
2143 if test "$cross_compiling" = maybe; then
2144 cross_compiling=yes
2145 else
2146 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2147 If you meant to cross compile, use \`--host'.
2148 See \`config.log' for more details." >&5
2149 echo "$as_me: error: cannot run C compiled programs.
2150 If you meant to cross compile, use \`--host'.
2151 See \`config.log' for more details." >&2;}
2152 { (exit 1); exit 1; }; }
2153 fi
2154 fi
2155 fi
2156 echo "$as_me:$LINENO: result: yes" >&5
2157 echo "${ECHO_T}yes" >&6
2158
2159 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2160 ac_clean_files=$ac_clean_files_save
2161 # Check the compiler produces executables we can run. If not, either
2162 # the compiler is broken, or we cross compile.
2163 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2164 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2165 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2166 echo "${ECHO_T}$cross_compiling" >&6
2167
2168 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2169 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2171 (eval $ac_link) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2177 # work properly (i.e., refer to `conftest.exe'), while it won't with
2178 # `rm'.
2179 for ac_file in conftest.exe conftest conftest.*; do
2180 test -f "$ac_file" || continue
2181 case $ac_file in
2182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 export ac_cv_exeext
2185 break;;
2186 * ) break;;
2187 esac
2188 done
2189 else
2190 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2193 See \`config.log' for more details." >&2;}
2194 { (exit 1); exit 1; }; }
2195 fi
2196
2197 rm -f conftest$ac_cv_exeext
2198 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2199 echo "${ECHO_T}$ac_cv_exeext" >&6
2200
2201 rm -f conftest.$ac_ext
2202 EXEEXT=$ac_cv_exeext
2203 ac_exeext=$EXEEXT
2204 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2205 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2206 if test "${ac_cv_objext+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209 cat >conftest.$ac_ext <<_ACEOF
2210 /* confdefs.h. */
2211 _ACEOF
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h. */
2215
2216 int
2217 main ()
2218 {
2219
2220 ;
2221 return 0;
2222 }
2223 _ACEOF
2224 rm -f conftest.o conftest.obj
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; then
2230 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2231 case $ac_file in
2232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2233 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2234 break;;
2235 esac
2236 done
2237 else
2238 echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2240
2241 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2244 See \`config.log' for more details." >&2;}
2245 { (exit 1); exit 1; }; }
2246 fi
2247
2248 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2249 fi
2250 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2251 echo "${ECHO_T}$ac_cv_objext" >&6
2252 OBJEXT=$ac_cv_objext
2253 ac_objext=$OBJEXT
2254 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2255 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2256 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 cat >conftest.$ac_ext <<_ACEOF
2260 /* confdefs.h. */
2261 _ACEOF
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h. */
2265
2266 int
2267 main ()
2268 {
2269 #ifndef __GNUC__
2270 choke me
2271 #endif
2272
2273 ;
2274 return 0;
2275 }
2276 _ACEOF
2277 rm -f conftest.$ac_objext
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>conftest.er1
2280 ac_status=$?
2281 grep -v '^ *+' conftest.er1 >conftest.err
2282 rm -f conftest.er1
2283 cat conftest.err >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); } &&
2286 { ac_try='test -z "$ac_c_werror_flag"
2287 || test ! -s conftest.err'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 (eval $ac_try) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; } &&
2293 { ac_try='test -s conftest.$ac_objext'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 (eval $ac_try) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; }; then
2299 ac_compiler_gnu=yes
2300 else
2301 echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2303
2304 ac_compiler_gnu=no
2305 fi
2306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2308
2309 fi
2310 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2311 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2312 GCC=`test $ac_compiler_gnu = yes && echo yes`
2313 ac_test_CFLAGS=${CFLAGS+set}
2314 ac_save_CFLAGS=$CFLAGS
2315 CFLAGS="-g"
2316 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2317 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2318 if test "${ac_cv_prog_cc_g+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h. */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2327
2328 int
2329 main ()
2330 {
2331
2332 ;
2333 return 0;
2334 }
2335 _ACEOF
2336 rm -f conftest.$ac_objext
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>conftest.er1
2339 ac_status=$?
2340 grep -v '^ *+' conftest.er1 >conftest.err
2341 rm -f conftest.er1
2342 cat conftest.err >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try='test -z "$ac_c_werror_flag"
2346 || test ! -s conftest.err'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; } &&
2352 { ac_try='test -s conftest.$ac_objext'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
2358 ac_cv_prog_cc_g=yes
2359 else
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2362
2363 ac_cv_prog_cc_g=no
2364 fi
2365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2366 fi
2367 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2369 if test "$ac_test_CFLAGS" = set; then
2370 CFLAGS=$ac_save_CFLAGS
2371 elif test $ac_cv_prog_cc_g = yes; then
2372 if test "$GCC" = yes; then
2373 CFLAGS="-g -O2"
2374 else
2375 CFLAGS="-g"
2376 fi
2377 else
2378 if test "$GCC" = yes; then
2379 CFLAGS="-O2"
2380 else
2381 CFLAGS=
2382 fi
2383 fi
2384 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2385 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2386 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389 ac_cv_prog_cc_stdc=no
2390 ac_save_CC=$CC
2391 cat >conftest.$ac_ext <<_ACEOF
2392 /* confdefs.h. */
2393 _ACEOF
2394 cat confdefs.h >>conftest.$ac_ext
2395 cat >>conftest.$ac_ext <<_ACEOF
2396 /* end confdefs.h. */
2397 #include <stdarg.h>
2398 #include <stdio.h>
2399 #include <sys/types.h>
2400 #include <sys/stat.h>
2401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2402 struct buf { int x; };
2403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2404 static char *e (p, i)
2405 char **p;
2406 int i;
2407 {
2408 return p[i];
2409 }
2410 static char *f (char * (*g) (char **, int), char **p, ...)
2411 {
2412 char *s;
2413 va_list v;
2414 va_start (v,p);
2415 s = g (p, va_arg (v,int));
2416 va_end (v);
2417 return s;
2418 }
2419
2420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2421 function prototypes and stuff, but not '\xHH' hex character constants.
2422 These don't provoke an error unfortunately, instead are silently treated
2423 as 'x'. The following induces an error, until -std1 is added to get
2424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2425 array size at least. It's necessary to write '\x00'==0 to get something
2426 that's true only with -std1. */
2427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2428
2429 int test (int i, double x);
2430 struct s1 {int (*f) (int a);};
2431 struct s2 {int (*f) (double a);};
2432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2433 int argc;
2434 char **argv;
2435 int
2436 main ()
2437 {
2438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2439 ;
2440 return 0;
2441 }
2442 _ACEOF
2443 # Don't try gcc -ansi; that turns off useful extensions and
2444 # breaks some systems' header files.
2445 # AIX -qlanglvl=ansi
2446 # Ultrix and OSF/1 -std1
2447 # HP-UX 10.20 and later -Ae
2448 # HP-UX older versions -Aa -D_HPUX_SOURCE
2449 # SVR4 -Xc -D__EXTENSIONS__
2450 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2451 do
2452 CC="$ac_save_CC $ac_arg"
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag"
2463 || test ! -s conftest.err'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 ac_cv_prog_cc_stdc=$ac_arg
2476 break
2477 else
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 fi
2482 rm -f conftest.err conftest.$ac_objext
2483 done
2484 rm -f conftest.$ac_ext conftest.$ac_objext
2485 CC=$ac_save_CC
2486
2487 fi
2488
2489 case "x$ac_cv_prog_cc_stdc" in
2490 x|xno)
2491 echo "$as_me:$LINENO: result: none needed" >&5
2492 echo "${ECHO_T}none needed" >&6 ;;
2493 *)
2494 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2495 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2496 CC="$CC $ac_cv_prog_cc_stdc" ;;
2497 esac
2498
2499 # Some people use a C++ compiler to compile C. Since we use `exit',
2500 # in C++ we need to declare it. In case someone uses the same compiler
2501 # for both compiling C and C++ we need to have the C++ compiler decide
2502 # the declaration of exit, since it's the most demanding environment.
2503 cat >conftest.$ac_ext <<_ACEOF
2504 #ifndef __cplusplus
2505 choke me
2506 #endif
2507 _ACEOF
2508 rm -f conftest.$ac_objext
2509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2510 (eval $ac_compile) 2>conftest.er1
2511 ac_status=$?
2512 grep -v '^ *+' conftest.er1 >conftest.err
2513 rm -f conftest.er1
2514 cat conftest.err >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } &&
2517 { ac_try='test -z "$ac_c_werror_flag"
2518 || test ! -s conftest.err'
2519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 (eval $ac_try) 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; } &&
2524 { ac_try='test -s conftest.$ac_objext'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 (eval $ac_try) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2530 for ac_declaration in \
2531 '' \
2532 'extern "C" void std::exit (int) throw (); using std::exit;' \
2533 'extern "C" void std::exit (int); using std::exit;' \
2534 'extern "C" void exit (int) throw ();' \
2535 'extern "C" void exit (int);' \
2536 'void exit (int);'
2537 do
2538 cat >conftest.$ac_ext <<_ACEOF
2539 /* confdefs.h. */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h. */
2544 $ac_declaration
2545 #include <stdlib.h>
2546 int
2547 main ()
2548 {
2549 exit (42);
2550 ;
2551 return 0;
2552 }
2553 _ACEOF
2554 rm -f conftest.$ac_objext
2555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556 (eval $ac_compile) 2>conftest.er1
2557 ac_status=$?
2558 grep -v '^ *+' conftest.er1 >conftest.err
2559 rm -f conftest.er1
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag"
2564 || test ! -s conftest.err'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 :
2577 else
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581 continue
2582 fi
2583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2584 cat >conftest.$ac_ext <<_ACEOF
2585 /* confdefs.h. */
2586 _ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2590 $ac_declaration
2591 int
2592 main ()
2593 {
2594 exit (42);
2595 ;
2596 return 0;
2597 }
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2602 ac_status=$?
2603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 break
2622 else
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 fi
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 done
2629 rm -f conftest*
2630 if test -n "$ac_declaration"; then
2631 echo '#ifdef __cplusplus' >>confdefs.h
2632 echo $ac_declaration >>confdefs.h
2633 echo '#endif' >>confdefs.h
2634 fi
2635
2636 else
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 fi
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642 ac_ext=c
2643 ac_cpp='$CPP $CPPFLAGS'
2644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2647
2648 if test -z "$CC" ; then
2649 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2650 echo "$as_me: error: Failed to find a C compiler!" >&2;}
2651 { (exit 1); exit 1; }; }
2652 fi
2653 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2654 case "$CC" in
2655 clang* | */clang* ) ;;
2656 cl* | */cl* | CL* | */CL* )
2657 if test "$ac_cv_prog_cc_g" = yes ; then
2658 ac_cv_prog_cc_g=no
2659 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2660 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2661 fi ;;
2662 * )
2663 if test x"$CYGPATH_W" = x ; then
2664 CYGPATH_W=echo
2665 fi
2666 ;;
2667 esac
2668 CFLAGS="$save_cflags"
2669
2670 # add automake conditional so we can recognize cl compiler in makefile
2671 coin_cc_is_cl=false
2672 case "$CC" in
2673 clang* | */clang* ) ;;
2674 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2675 coin_cc_is_cl=true
2676 ;;
2677 esac
2678
2679
2680 if test $coin_cc_is_cl = true; then
2681 COIN_CC_IS_CL_TRUE=
2682 COIN_CC_IS_CL_FALSE='#'
2683 else
2684 COIN_CC_IS_CL_TRUE='#'
2685 COIN_CC_IS_CL_FALSE=
2686 fi
2687
2688
2689 # Check if a project specific CFLAGS variable has been set
2690 if test x$COIN_PRJCT != x; then
2691 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2692 if test x$coin_tmp = xset; then
2693 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2694 fi
2695 fi
2696
2697 if test x"$CFLAGS" = x; then
2698
2699 coin_add_cflags=
2700 coin_opt_cflags=
2701 coin_dbg_cflags=
2702 coin_warn_cflags=
2703
2704 if test "$GCC" = "yes"; then
2705 case "$CC" in
2706 icc* | */icc*)
2707 ;;
2708 *)
2709 coin_opt_cflags="-O3"
2710 coin_add_cflags="-pipe"
2711 coin_dbg_cflags="-g -O0"
2712 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2713 esac
2714 fi
2715 if test -z "$coin_opt_cflags"; then
2716 case $build in
2717 *-cygwin* | *-mingw*)
2718 case "$CC" in
2719 clang* | */clang* ) ;;
2720 cl* | */cl* | CL* | */CL*)
2721 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2722 coin_opt_cflags='-MD -O2'
2723 coin_dbg_cflags='-MDd'
2724 else
2725 coin_opt_cflags='-MT -O2'
2726 coin_dbg_cflags='-MTd'
2727 fi
2728 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2729 ;;
2730 icl* | */icl* | ICL* | */ICL*)
2731 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2732 coin_opt_cflags='-MD -Ox'
2733 coin_dbg_cflags='-MDd -debug'
2734 else
2735 coin_opt_cflags='-MT -Ox'
2736 coin_dbg_cflags='-MTd -debug'
2737 fi
2738 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2739 ;;
2740 esac
2741 ;;
2742 *-linux-*)
2743 case "$CC" in
2744 icc* | */icc*)
2745 coin_opt_cflags="-O3 -ip -mp1"
2746 coin_add_cflags=""
2747 coin_dbg_cflags="-g"
2748 # Check if -i_dynamic is necessary (for new glibc library)
2749 CFLAGS=
2750 cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h. */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2756
2757 int
2758 main ()
2759 {
2760 int i=0; i++;
2761 ;
2762 return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext conftest$ac_exeext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2767 (eval $ac_link) 2>conftest.er1
2768 ac_status=$?
2769 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_c_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest$ac_exeext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 :
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792 coin_add_cflags="-i_dynamic $coin_add_cflags"
2793 fi
2794 rm -f conftest.err conftest.$ac_objext \
2795 conftest$ac_exeext conftest.$ac_ext
2796 ;;
2797 pgcc* | */pgcc*)
2798 coin_opt_cflags="-fast"
2799 coin_add_cflags="-Kieee -pc 64"
2800 coin_dbg_cflags="-g"
2801 ;;
2802 esac
2803 ;;
2804 *-ibm-*)
2805 case "$CC" in
2806 xlc* | */xlc* | mpxlc* | */mpxlc*)
2807 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2808 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2809 coin_dbg_cflags="-g"
2810 ;;
2811 esac
2812 ;;
2813 *-hp-*)
2814 coin_opt_cflags="-O"
2815 coin_add_cflags="-Ae"
2816 coin_dbg_cflags="-g"
2817 ;;
2818 *-*-solaris*)
2819 coin_opt_cflags="-xO4"
2820 coin_dbg_cflags="-g"
2821 ;;
2822 *-sgi-*)
2823 coin_opt_cflags="-O -OPT:Olimit=0"
2824 coin_dbg_cflags="-g"
2825 ;;
2826 esac
2827 fi
2828
2829 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2830 coin_dbg_cflags="-g"
2831 fi
2832
2833 if test -z "$coin_opt_cflags"; then
2834 # Try if -O option works if nothing else is set
2835 CFLAGS="-O"
2836 cat >conftest.$ac_ext <<_ACEOF
2837 /* confdefs.h. */
2838 _ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2842
2843 int
2844 main ()
2845 {
2846 int i=0; i++;
2847 ;
2848 return 0;
2849 }
2850 _ACEOF
2851 rm -f conftest.$ac_objext conftest$ac_exeext
2852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2853 (eval $ac_link) 2>conftest.er1
2854 ac_status=$?
2855 grep -v '^ *+' conftest.er1 >conftest.err
2856 rm -f conftest.er1
2857 cat conftest.err >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } &&
2860 { ac_try='test -z "$ac_c_werror_flag"
2861 || test ! -s conftest.err'
2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 (eval $ac_try) 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; } &&
2867 { ac_try='test -s conftest$ac_exeext'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 (eval $ac_try) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2873 coin_opt_cflags="-O"
2874 else
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2877
2878 fi
2879 rm -f conftest.err conftest.$ac_objext \
2880 conftest$ac_exeext conftest.$ac_ext
2881 fi
2882
2883 # if PM doesn't want the warning messages, take them out
2884 if test x"$coin_skip_warn_cflags" = xyes; then
2885 coin_warn_cflags=
2886 fi
2887
2888 if test x${DBG_CFLAGS+set} != xset; then
2889 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2890 fi
2891 if test x${OPT_CFLAGS+set} != xset; then
2892 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2893 fi
2894
2895 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2896 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2897
2898 if test "$coin_debug_compile" = "true"; then
2899 CFLAGS="$DBG_CFLAGS"
2900 else
2901 CFLAGS="$OPT_CFLAGS"
2902 fi
2903 else
2904 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2905 if test x${DBG_CFLAGS+set} != xset; then
2906 DBG_CFLAGS="$CFLAGS"
2907 fi
2908 if test x${OPT_CFLAGS+set} != xset; then
2909 OPT_CFLAGS="$CFLAGS"
2910 fi
2911 fi
2912
2913 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2914 if test x$COIN_PRJCT != x; then
2915 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2916 fi
2917
2918 # Try if CFLAGS works
2919 save_CFLAGS="$CFLAGS"
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h. */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2926
2927 int
2928 main ()
2929 {
2930 int i=0; i++;
2931 ;
2932 return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.$ac_objext conftest$ac_exeext
2936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2937 (eval $ac_link) 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_c_werror_flag"
2945 || test ! -s conftest.err'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 (eval $ac_try) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest$ac_exeext'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; }; then
2957 :
2958 else
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2961
2962 CFLAGS=
2963 fi
2964 rm -f conftest.err conftest.$ac_objext \
2965 conftest$ac_exeext conftest.$ac_ext
2966 if test -z "$CFLAGS"; then
2967 { 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
2968 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;}
2969 CFLAGS='-O'
2970 cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h. */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2976
2977 int
2978 main ()
2979 {
2980 int i=0; i++;
2981 ;
2982 return 0;
2983 }
2984 _ACEOF
2985 rm -f conftest.$ac_objext conftest$ac_exeext
2986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2987 (eval $ac_link) 2>conftest.er1
2988 ac_status=$?
2989 grep -v '^ *+' conftest.er1 >conftest.err
2990 rm -f conftest.er1
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -z "$ac_c_werror_flag"
2995 || test ! -s conftest.err'
2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 (eval $ac_try) 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; } &&
3001 { ac_try='test -s conftest$ac_exeext'
3002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003 (eval $ac_try) 2>&5
3004 ac_status=$?
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; }; then
3007 :
3008 else
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012 CFLAGS=
3013 fi
3014 rm -f conftest.err conftest.$ac_objext \
3015 conftest$ac_exeext conftest.$ac_ext
3016 if test -z "$CFLAGS"; then
3017 { 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
3018 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;}
3019 fi
3020 fi
3021
3022 { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3023 echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3024
3025
3026 if test x"$MPICC" = x; then :; else
3027 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3028 echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3029 CC="$MPICC"
3030 fi
3031
3032 # Correct the LD variable if we are using the MS or Intel-windows compiler
3033 case "$CC" in
3034 clang* | */clang* ) ;;
3035 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3036 LD=link
3037 ;;
3038 esac
3039
3040 ac_ext=c
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045
3046
3047
3048 # Get the name of the C++ compiler and appropriate compiler options
3049
3050 #Let's try if that overcomes configuration problem with VC++ 6.0
3051
3052 ac_ext=cc
3053 ac_cpp='$CXXCPP $CPPFLAGS'
3054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3057
3058
3059
3060
3061
3062
3063
3064 coin_has_cxx=yes
3065
3066 save_cxxflags="$CXXFLAGS"
3067 # For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3068 case $build in
3069 *-cygwin* | *-mingw*)
3070 if test "$enable_msvc" = yes ; then
3071 comps="icl cl g++"
3072 else
3073 comps="g++ icl cl"
3074 fi ;;
3075 *-*-solaris*)
3076 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3077 *-darwin*) comps="clang++ g++ c++ CC" ;;
3078 *-linux-gnu*)
3079 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3080 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3081 esac
3082
3083 # We delete the cached value, since the test might not have been
3084 # performed with our choice of compilers earlier
3085 $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3086 # AC_MSG_NOTICE([C++ compiler candidates: $comps])
3087 ac_ext=cc
3088 ac_cpp='$CXXCPP $CPPFLAGS'
3089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3092 if test -n "$ac_tool_prefix"; then
3093 for ac_prog in $CCC $comps
3094 do
3095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097 echo "$as_me:$LINENO: checking for $ac_word" >&5
3098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099 if test "${ac_cv_prog_CXX+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102 if test -n "$CXX"; then
3103 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3115 fi
3116 done
3117 done
3118
3119 fi
3120 fi
3121 CXX=$ac_cv_prog_CXX
3122 if test -n "$CXX"; then
3123 echo "$as_me:$LINENO: result: $CXX" >&5
3124 echo "${ECHO_T}$CXX" >&6
3125 else
3126 echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6
3128 fi
3129
3130 test -n "$CXX" && break
3131 done
3132 fi
3133 if test -z "$CXX"; then
3134 ac_ct_CXX=$CXX
3135 for ac_prog in $CCC $comps
3136 do
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3141 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144 if test -n "$ac_ct_CXX"; then
3145 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_ac_ct_CXX="$ac_prog"
3155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158 done
3159 done
3160
3161 fi
3162 fi
3163 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3164 if test -n "$ac_ct_CXX"; then
3165 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3166 echo "${ECHO_T}$ac_ct_CXX" >&6
3167 else
3168 echo "$as_me:$LINENO: result: no" >&5
3169 echo "${ECHO_T}no" >&6
3170 fi
3171
3172 test -n "$ac_ct_CXX" && break
3173 done
3174 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3175
3176 CXX=$ac_ct_CXX
3177 fi
3178
3179
3180 # Provide some information about the compiler.
3181 echo "$as_me:$LINENO:" \
3182 "checking for C++ compiler version" >&5
3183 ac_compiler=`set X $ac_compile; echo $2`
3184 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3185 (eval $ac_compiler --version </dev/null >&5) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }
3189 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3190 (eval $ac_compiler -v </dev/null >&5) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }
3194 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3195 (eval $ac_compiler -V </dev/null >&5) 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }
3199
3200 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3201 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3202 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 cat >conftest.$ac_ext <<_ACEOF
3206 /* confdefs.h. */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3211
3212 int
3213 main ()
3214 {
3215 #ifndef __GNUC__
3216 choke me
3217 #endif
3218
3219 ;
3220 return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225 (eval $ac_compile) 2>conftest.er1
3226 ac_status=$?
3227 grep -v '^ *+' conftest.er1 >conftest.err
3228 rm -f conftest.er1
3229 cat conftest.err >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } &&
3232 { ac_try='test -z "$ac_cxx_werror_flag"
3233 || test ! -s conftest.err'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 (eval $ac_try) 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; } &&
3239 { ac_try='test -s conftest.$ac_objext'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 (eval $ac_try) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3245 ac_compiler_gnu=yes
3246 else
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3249
3250 ac_compiler_gnu=no
3251 fi
3252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3253 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3254
3255 fi
3256 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3257 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3258 GXX=`test $ac_compiler_gnu = yes && echo yes`
3259 ac_test_CXXFLAGS=${CXXFLAGS+set}
3260 ac_save_CXXFLAGS=$CXXFLAGS
3261 CXXFLAGS="-g"
3262 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3263 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3264 if test "${ac_cv_prog_cxx_g+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267 cat >conftest.$ac_ext <<_ACEOF
3268 /* confdefs.h. */
3269 _ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3273
3274 int
3275 main ()
3276 {
3277
3278 ;
3279 return 0;
3280 }
3281 _ACEOF
3282 rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>conftest.er1
3285 ac_status=$?
3286 grep -v '^ *+' conftest.er1 >conftest.err
3287 rm -f conftest.er1
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try='test -z "$ac_cxx_werror_flag"
3292 || test ! -s conftest.err'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 (eval $ac_try) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_cv_prog_cxx_g=yes
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 ac_cv_prog_cxx_g=no
3310 fi
3311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3312 fi
3313 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3314 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3315 if test "$ac_test_CXXFLAGS" = set; then
3316 CXXFLAGS=$ac_save_CXXFLAGS
3317 elif test $ac_cv_prog_cxx_g = yes; then
3318 if test "$GXX" = yes; then
3319 CXXFLAGS="-g -O2"
3320 else
3321 CXXFLAGS="-g"
3322 fi
3323 else
3324 if test "$GXX" = yes; then
3325 CXXFLAGS="-O2"
3326 else
3327 CXXFLAGS=
3328 fi
3329 fi
3330 for ac_declaration in \
3331 '' \
3332 'extern "C" void std::exit (int) throw (); using std::exit;' \
3333 'extern "C" void std::exit (int); using std::exit;' \
3334 'extern "C" void exit (int) throw ();' \
3335 'extern "C" void exit (int);' \
3336 'void exit (int);'
3337 do
3338 cat >conftest.$ac_ext <<_ACEOF
3339 /* confdefs.h. */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344 $ac_declaration
3345 #include <stdlib.h>
3346 int
3347 main ()
3348 {
3349 exit (42);
3350 ;
3351 return 0;
3352 }
3353 _ACEOF
3354 rm -f conftest.$ac_objext
3355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3356 (eval $ac_compile) 2>conftest.er1
3357 ac_status=$?
3358 grep -v '^ *+' conftest.er1 >conftest.err
3359 rm -f conftest.er1
3360 cat conftest.err >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } &&
3363 { ac_try='test -z "$ac_cxx_werror_flag"
3364 || test ! -s conftest.err'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 (eval $ac_try) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; } &&
3370 { ac_try='test -s conftest.$ac_objext'
3371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 (eval $ac_try) 2>&5
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; }; then
3376 :
3377 else
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381 continue
3382 fi
3383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 $ac_declaration
3391 int
3392 main ()
3393 {
3394 exit (42);
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 rm -f conftest.$ac_objext
3400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401 (eval $ac_compile) 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } &&
3408 { ac_try='test -z "$ac_cxx_werror_flag"
3409 || test ! -s conftest.err'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 break
3422 else
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426 fi
3427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428 done
3429 rm -f conftest*
3430 if test -n "$ac_declaration"; then
3431 echo '#ifdef __cplusplus' >>confdefs.h
3432 echo $ac_declaration >>confdefs.h
3433 echo '#endif' >>confdefs.h
3434 fi
3435
3436 ac_ext=cc
3437 ac_cpp='$CXXCPP $CPPFLAGS'
3438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3441
3442
3443 #AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3444 #thus, we test here whether $CXX is actually working
3445 ac_ext=cc
3446 ac_cpp='$CXXCPP $CPPFLAGS'
3447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3450
3451 echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3452 echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3453 cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h. */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3459
3460 int
3461 main ()
3462 {
3463 int i=0;
3464 ;
3465 return 0;
3466 }
3467 _ACEOF
3468 rm -f conftest.$ac_objext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470 (eval $ac_compile) 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try='test -z "$ac_cxx_werror_flag"
3478 || test ! -s conftest.err'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 (eval $ac_try) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; } &&
3484 { ac_try='test -s conftest.$ac_objext'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3490 echo "$as_me:$LINENO: result: yes" >&5
3491 echo "${ECHO_T}yes" >&6
3492 else
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3495
3496 echo "$as_me:$LINENO: result: no" >&5
3497 echo "${ECHO_T}no" >&6
3498 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3499 echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3500 { (exit 1); exit 1; }; }
3501
3502 fi
3503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_ext=cc
3505 ac_cpp='$CXXCPP $CPPFLAGS'
3506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3509
3510
3511 coin_cxx_is_cl=false
3512 # It seems that we need to cleanup something here for the Windows
3513 case "$CXX" in
3514 clang* | */clang*) ;;
3515 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3516 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3517 mv confdefs.hh confdefs.h
3518 coin_cxx_is_cl=true
3519 ;;
3520 esac
3521
3522 # add automake conditional so we can recognize cl compiler in makefile
3523
3524
3525 if test $coin_cxx_is_cl = true; then
3526 COIN_CXX_IS_CL_TRUE=
3527 COIN_CXX_IS_CL_FALSE='#'
3528 else
3529 COIN_CXX_IS_CL_TRUE='#'
3530 COIN_CXX_IS_CL_FALSE=
3531 fi
3532
3533
3534 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3535 case "$CXX" in
3536 clang* | */clang* ) ;;
3537 cl* | */cl* | CL* | */CL* )
3538 if test "$ac_cv_prog_cxx_g" = yes ; then
3539 ac_cv_prog_cxx_g=no
3540 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3541 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3542 fi ;;
3543 * )
3544 if test x"$CYGPATH_W" = x ; then
3545 CYGPATH_W=echo
3546 fi
3547 ;;
3548 esac
3549 CXXFLAGS="$save_cxxflags"
3550
3551 # Check if a project specific CXXFLAGS variable has been set
3552 if test x$COIN_PRJCT != x; then
3553 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3554 if test x$coin_tmp = xset; then
3555 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3556 fi
3557 fi
3558
3559 if test x"$CXXFLAGS" = x; then
3560
3561 # ToDo decide whether we want -DNDEBUG for optimization
3562 coin_add_cxxflags=
3563 coin_opt_cxxflags=
3564 coin_dbg_cxxflags=
3565 coin_warn_cxxflags=
3566
3567 if test "$GXX" = "yes"; then
3568 case "$CXX" in
3569 icpc* | */icpc*)
3570 ;;
3571 *)
3572 # ToDo decide about unroll-loops
3573 coin_opt_cxxflags="-O3"
3574 coin_add_cxxflags="-pipe"
3575 coin_dbg_cxxflags="-g -O0"
3576 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3577 esac
3578 fi
3579
3580 # Note that we do not need to cover GCC in the following tests.
3581
3582 if test -z "$coin_opt_cxxflags"; then
3583 case $build in
3584 *-cygwin* | *-mingw*)
3585 case "$CXX" in
3586 clang* | */clang* ) ;;
3587 cl* | */cl* | CL* | */CL*)
3588 # The MT and MTd options are mutually exclusive
3589 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3590 coin_opt_cxxflags='-MD -O2'
3591 coin_dbg_cxxflags='-MDd'
3592 else
3593 coin_opt_cxxflags='-MT -O2'
3594 coin_dbg_cxxflags='-MTd'
3595 fi
3596 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3597 ;;
3598 icl* | */icl* | ICL* | */ICL*)
3599 # The MT and MTd options are mutually exclusive
3600 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3601 coin_opt_cxxflags='-MD -Ox'
3602 coin_dbg_cxxflags='-MDd -debug'
3603 else
3604 coin_opt_cxxflags='-MT -Ox'
3605 coin_dbg_cxxflags='-MTd -debug'
3606 fi
3607 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3608 ;;
3609 esac
3610 ;;
3611 *-linux-*)
3612 case "$CXX" in
3613 icpc* | */icpc*)
3614 coin_opt_cxxflags="-O3 -ip -mp1"
3615 coin_add_cxxflags=""
3616 coin_dbg_cxxflags="-g"
3617 # Check if -i_dynamic is necessary (for new glibc library)
3618 CXXFLAGS=
3619 cat >conftest.$ac_ext <<_ACEOF
3620 /* confdefs.h. */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3625
3626 int
3627 main ()
3628 {
3629 int i=0; i++;
3630 ;
3631 return 0;
3632 }
3633 _ACEOF
3634 rm -f conftest.$ac_objext conftest$ac_exeext
3635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3636 (eval $ac_link) 2>conftest.er1
3637 ac_status=$?
3638 grep -v '^ *+' conftest.er1 >conftest.err
3639 rm -f conftest.er1
3640 cat conftest.err >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } &&
3643 { ac_try='test -z "$ac_cxx_werror_flag"
3644 || test ! -s conftest.err'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 (eval $ac_try) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; } &&
3650 { ac_try='test -s conftest$ac_exeext'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 (eval $ac_try) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3656 :
3657 else
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3662 fi
3663 rm -f conftest.err conftest.$ac_objext \
3664 conftest$ac_exeext conftest.$ac_ext
3665 ;;
3666 pgCC* | */pgCC*)
3667 coin_opt_cxxflags="-fast"
3668 coin_add_cxxflags="-Kieee -pc 64"
3669 coin_dbg_cxxflags="-g"
3670 ;;
3671 esac
3672 ;;
3673 *-ibm-*)
3674 case "$CXX" in
3675 xlC* | */xlC* | mpxlC* | */mpxlC*)
3676 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3677 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3678 coin_dbg_cxxflags="-g"
3679 ;;
3680 esac
3681 ;;
3682 *-hp-*)
3683 case "$CXX" in
3684 aCC* | */aCC* )
3685 coin_opt_cxxflags="-O"
3686 coin_add_cxxflags="-AA"
3687 coin_dbg_cxxflags="-g"
3688 ;;
3689 esac
3690 ;;
3691 *-*-solaris*)
3692 coin_opt_cxxflags="-O4"
3693 coin_dbg_cxxflags="-g"
3694 ;;
3695 esac
3696 fi
3697
3698 # Generic flag settings. If these don't work, add a case above.
3699
3700 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3701 coin_dbg_cxxflags="-g"
3702 fi
3703
3704 if test -z "$coin_opt_cxxflags"; then
3705 # Try if -O option works if nothing else is set
3706 CXXFLAGS=-O
3707 cat >conftest.$ac_ext <<_ACEOF
3708 /* confdefs.h. */
3709 _ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h. */
3713
3714 int
3715 main ()
3716 {
3717 int i=0; i++;
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 rm -f conftest.$ac_objext conftest$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } &&
3731 { ac_try='test -z "$ac_cxx_werror_flag"
3732 || test ! -s conftest.err'
3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 (eval $ac_try) 2>&5
3735 ac_status=$?
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; } &&
3738 { ac_try='test -s conftest$ac_exeext'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 (eval $ac_try) 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 coin_opt_cxxflags="-O"
3745 else
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3748
3749 fi
3750 rm -f conftest.err conftest.$ac_objext \
3751 conftest$ac_exeext conftest.$ac_ext
3752 fi
3753
3754 # if PM doesn't want the warning messages, take them out
3755 if test x"$coin_skip_warn_cxxflags" = xyes; then
3756 coin_warn_cxxflags=
3757 fi
3758
3759 # Do final setup of flags based on values determined above.
3760
3761 if test x${DBG_CXXFLAGS+set} != xset; then
3762 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3763 fi
3764 if test x${OPT_CXXFLAGS+set} != xset; then
3765 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3766 fi
3767
3768 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3769 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3770
3771 if test "$coin_debug_compile" = "true"; then
3772 CXXFLAGS="$DBG_CXXFLAGS"
3773 else
3774 CXXFLAGS="$OPT_CXXFLAGS"
3775 fi
3776
3777 # Handle the case where CXXFLAGS was set externally.
3778 else
3779 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3780 if test x${DBG_CXXFLAGS+set} != xset; then
3781 DBG_CXXFLAGS="$CXXFLAGS"
3782 fi
3783 if test x${OPT_CXXFLAGS+set} != xset; then
3784 OPT_CXXFLAGS="$CXXFLAGS"
3785 fi
3786 fi
3787
3788 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3789 if test x$COIN_PRJCT != x; then
3790 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3791 fi
3792
3793 # Try if CXXFLAGS works
3794 save_CXXFLAGS="$CXXFLAGS"
3795 cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h. */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801
3802 int
3803 main ()
3804 {
3805 int i=0; i++;
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 rm -f conftest.$ac_objext conftest$ac_exeext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3812 (eval $ac_link) 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -z "$ac_cxx_werror_flag"
3820 || test ! -s conftest.err'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest$ac_exeext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 :
3833 else
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3836
3837 CXXFLAGS=
3838 fi
3839 rm -f conftest.err conftest.$ac_objext \
3840 conftest$ac_exeext conftest.$ac_ext
3841 if test -z "$CXXFLAGS"; then
3842 { 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
3843 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;}
3844 CXXFLAGS='-O'
3845 cat >conftest.$ac_ext <<_ACEOF
3846 /* confdefs.h. */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851
3852 int
3853 main ()
3854 {
3855 int i=0; i++;
3856 ;
3857 return 0;
3858 }
3859 _ACEOF
3860 rm -f conftest.$ac_objext conftest$ac_exeext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3862 (eval $ac_link) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -z "$ac_cxx_werror_flag"
3870 || test ! -s conftest.err'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 (eval $ac_try) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } &&
3876 { ac_try='test -s conftest$ac_exeext'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 (eval $ac_try) 2>&5
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 :
3883 else
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3886
3887 CXXFLAGS=
3888 fi
3889 rm -f conftest.err conftest.$ac_objext \
3890 conftest$ac_exeext conftest.$ac_ext
3891 if test -z "$CXXFLAGS"; then
3892 { 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
3893 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;}
3894 fi
3895 fi
3896
3897 { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3898 echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3899
3900
3901 if test x"$MPICXX" = x; then :; else
3902 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3903 echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3904 CXX="$MPICXX"
3905 fi
3906
3907 # correct the LD variable in a build with MS or Intel-windows compiler
3908 case "$CXX" in
3909 clang* | */clang* ) ;;
3910 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3911 LD=link
3912 ;;
3913 esac
3914
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920
3921
3922
3923 # Get the name of the Fortran compiler and appropriate compiler options
3924 case $build in
3925 *-cygwin* | *-mingw*)
3926 if test "$enable_msvc" = yes ; then
3927 coin_f77_comps="ifort fl32 compile_f2c"
3928 else
3929 coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3930 fi ;;
3931 *-*-solaris*)
3932 coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3933 *-linux-gnu*)
3934 coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3935 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3936 esac
3937
3938
3939
3940
3941
3942 ac_ext=f
3943 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3944 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3946
3947
3948
3949
3950
3951
3952 coin_has_f77=yes
3953
3954 save_fflags="$FFLAGS"
3955
3956 # We delete the cached value, since the test might not have been
3957 # performed with our choice of compilers earlier
3958 $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3959
3960 # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3961 # coin_f77_comps to see if there's a program that matches one of the names.
3962 # If there's no such program, F77 = unavailable. If we match the name,
3963 # feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3964 # compiler.
3965 # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3966
3967
3968 { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3969 echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3970 if test -n "$ac_tool_prefix"; then
3971 for ac_prog in $coin_f77_comps
3972 do
3973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3975 echo "$as_me:$LINENO: checking for $ac_word" >&5
3976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3977 if test "${ac_cv_prog_F77+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980 if test -n "$F77"; then
3981 ac_cv_prog_F77="$F77" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3985 do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3990 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 break 2
3993 fi
3994 done
3995 done
3996
3997 fi
3998 fi
3999 F77=$ac_cv_prog_F77
4000 if test -n "$F77"; then
4001 echo "$as_me:$LINENO: result: $F77" >&5
4002 echo "${ECHO_T}$F77" >&6
4003 else
4004 echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6
4006 fi
4007
4008 test -n "$F77" && break
4009 done
4010 fi
4011 if test -z "$F77"; then
4012 ac_ct_F77=$F77
4013 for ac_prog in $coin_f77_comps
4014 do
4015 # Extract the first word of "$ac_prog", so it can be a program name with args.
4016 set dummy $ac_prog; ac_word=$2
4017 echo "$as_me:$LINENO: checking for $ac_word" >&5
4018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4019 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 if test -n "$ac_ct_F77"; then
4023 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4024 else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032 ac_cv_prog_ac_ct_F77="$ac_prog"
4033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 break 2
4035 fi
4036 done
4037 done
4038
4039 fi
4040 fi
4041 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4042 if test -n "$ac_ct_F77"; then
4043 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4044 echo "${ECHO_T}$ac_ct_F77" >&6
4045 else
4046 echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4048 fi
4049
4050 test -n "$ac_ct_F77" && break
4051 done
4052 test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4053
4054 F77=$ac_ct_F77
4055 fi
4056
4057
4058 if test "$F77" != "unavailable" ; then
4059 ac_ext=f
4060 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4061 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4063 if test -n "$ac_tool_prefix"; then
4064 for ac_prog in $coin_f77_comps
4065 do
4066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4068 echo "$as_me:$LINENO: checking for $ac_word" >&5
4069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070 if test "${ac_cv_prog_F77+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073 if test -n "$F77"; then
4074 ac_cv_prog_F77="$F77" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 break 2
4086 fi
4087 done
4088 done
4089
4090 fi
4091 fi
4092 F77=$ac_cv_prog_F77
4093 if test -n "$F77"; then
4094 echo "$as_me:$LINENO: result: $F77" >&5
4095 echo "${ECHO_T}$F77" >&6
4096 else
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4099 fi
4100
4101 test -n "$F77" && break
4102 done
4103 fi
4104 if test -z "$F77"; then
4105 ac_ct_F77=$F77
4106 for ac_prog in $coin_f77_comps
4107 do
4108 # Extract the first word of "$ac_prog", so it can be a program name with args.
4109 set dummy $ac_prog; ac_word=$2
4110 echo "$as_me:$LINENO: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4112 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115 if test -n "$ac_ct_F77"; then
4116 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4120 do
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4125 ac_cv_prog_ac_ct_F77="$ac_prog"
4126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4128 fi
4129 done
4130 done
4131
4132 fi
4133 fi
4134 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4135 if test -n "$ac_ct_F77"; then
4136 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4137 echo "${ECHO_T}$ac_ct_F77" >&6
4138 else
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4141 fi
4142
4143 test -n "$ac_ct_F77" && break
4144 done
4145
4146 F77=$ac_ct_F77
4147 fi
4148
4149
4150 # Provide some information about the compiler.
4151 echo "$as_me:4151:" \
4152 "checking for Fortran 77 compiler version" >&5
4153 ac_compiler=`set X $ac_compile; echo $2`
4154 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4155 (eval $ac_compiler --version </dev/null >&5) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }
4159 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4160 (eval $ac_compiler -v </dev/null >&5) 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }
4164 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4165 (eval $ac_compiler -V </dev/null >&5) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }
4169 rm -f a.out
4170
4171 # If we don't use `.F' as extension, the preprocessor is not run on the
4172 # input file. (Note that this only needs to work for GNU compilers.)
4173 ac_save_ext=$ac_ext
4174 ac_ext=F
4175 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4176 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4177 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180 cat >conftest.$ac_ext <<_ACEOF
4181 program main
4182 #ifndef __GNUC__
4183 choke me
4184 #endif
4185
4186 end
4187 _ACEOF
4188 rm -f conftest.$ac_objext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190 (eval $ac_compile) 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_f77_werror_flag"
4198 || test ! -s conftest.err'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 (eval $ac_try) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; } &&
4204 { ac_try='test -s conftest.$ac_objext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_compiler_gnu=yes
4211 else
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4214
4215 ac_compiler_gnu=no
4216 fi
4217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4218 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4219
4220 fi
4221 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4222 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4223 ac_ext=$ac_save_ext
4224 ac_test_FFLAGS=${FFLAGS+set}
4225 ac_save_FFLAGS=$FFLAGS
4226 FFLAGS=
4227 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4228 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4229 if test "${ac_cv_prog_f77_g+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 FFLAGS=-g
4233 cat >conftest.$ac_ext <<_ACEOF
4234 program main
4235
4236 end
4237 _ACEOF
4238 rm -f conftest.$ac_objext
4239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4240 (eval $ac_compile) 2>conftest.er1
4241 ac_status=$?
4242 grep -v '^ *+' conftest.er1 >conftest.err
4243 rm -f conftest.er1
4244 cat conftest.err >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } &&
4247 { ac_try='test -z "$ac_f77_werror_flag"
4248 || test ! -s conftest.err'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 (eval $ac_try) 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; } &&
4254 { ac_try='test -s conftest.$ac_objext'
4255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 (eval $ac_try) 2>&5
4257 ac_status=$?
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; }; then
4260 ac_cv_prog_f77_g=yes
4261 else
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4264
4265 ac_cv_prog_f77_g=no
4266 fi
4267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4268
4269 fi
4270 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4271 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4272 if test "$ac_test_FFLAGS" = set; then
4273 FFLAGS=$ac_save_FFLAGS
4274 elif test $ac_cv_prog_f77_g = yes; then
4275 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4276 FFLAGS="-g -O2"
4277 else
4278 FFLAGS="-g"
4279 fi
4280 else
4281 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4282 FFLAGS="-O2"
4283 else
4284 FFLAGS=
4285 fi
4286 fi
4287
4288 G77=`test $ac_compiler_gnu = yes && echo yes`
4289 ac_ext=f
4290 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4291 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4293
4294 else
4295 { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4296 echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4297 fi
4298
4299 FFLAGS="$save_fflags"
4300
4301 # Check if a project specific FFLAGS variable has been set
4302 if test x$COIN_PRJCT != x; then
4303 eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4304 if test x$coin_tmp = xset; then
4305 eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4306 fi
4307 fi
4308
4309 if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4310
4311 coin_add_fflags=
4312 coin_opt_fflags=
4313 coin_dbg_fflags=
4314 coin_warn_fflags=
4315
4316 if test "$G77" = "yes"; then
4317 coin_opt_fflags="-O3"
4318 coin_add_fflags="-pipe"
4319 coin_dbg_fflags="-g -O0"
4320 else
4321 case $build in
4322 *-cygwin* | *-mingw*)
4323 case $F77 in
4324 ifort* | */ifort* | IFORT* | */IFORT* )
4325 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4326 coin_opt_fflags='-MD -O3'
4327 coin_dbg_fflags='-MDd -debug'
4328 else
4329 coin_opt_fflags='-MT -O3'
4330 coin_dbg_fflags='-MTd -debug'
4331 fi
4332 coin_add_fflags='-fpp -nologo'
4333 ;;
4334 compile_f2c*)
4335 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4336 coin_opt_fflags='-MD -O2'
4337 coin_dbg_fflags='-MDd'
4338 else
4339 coin_opt_fflags='-MT -O2'
4340 coin_dbg_fflags='-MTd'
4341 fi
4342 coin_add_fflags='-nologo -wd4996'
4343 ;;
4344 esac
4345 ;;
4346 *-linux-*)
4347 case $F77 in
4348 ifc* | */ifc* | ifort* | */ifort*)
4349 coin_opt_fflags="-O3 -ip"
4350 coin_add_fflags="-cm -w90 -w95"
4351 coin_dbg_fflags="-g -CA -CB -CS"
4352 # Check if -i_dynamic is necessary (for new glibc library)
4353 FFLAGS=
4354 cat >conftest.$ac_ext <<_ACEOF
4355 program main
4356 write(*,*) 'Hello world'
4357 end
4358 _ACEOF
4359 rm -f conftest.$ac_objext conftest$ac_exeext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4361 (eval $ac_link) 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -z "$ac_f77_werror_flag"
4369 || test ! -s conftest.err'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; } &&
4375 { ac_try='test -s conftest$ac_exeext'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 (eval $ac_try) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 :
4382 else
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4385
4386 coin_add_fflags="-i_dynamic $coin_add_fflags"
4387 fi
4388 rm -f conftest.err conftest.$ac_objext \
4389 conftest$ac_exeext conftest.$ac_ext
4390 ;;
4391 pgf77* | */pgf77* | pgf90* | */pgf90*)
4392 coin_opt_fflags="-fast"
4393 coin_add_fflags="-Kieee -pc 64"
4394 coin_dbg_fflags="-g"
4395 ;;
4396 esac
4397 ;;
4398 *-ibm-*)
4399 case "$F77" in
4400 xlf* | */xlf* | mpxlf* | */mpxlf* )
4401 coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4402 coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4403 coin_dbg_fflags="-g -C"
4404 ;;
4405 esac
4406 ;;
4407 *-hp-*)
4408 coin_opt_fflags="+O3"
4409 coin_add_fflags="+U77"
4410 coin_dbg_fflags="-C -g"
4411 ;;
4412 *-*-solaris*)
4413 coin_opt_fflags="-O4"
4414 coin_dbg_fflags="-g"
4415 ;;
4416 *-sgi-*)
4417 coin_opt_fflags="-O5 -OPT:Olimit=0"
4418 coin_dbg_fflags="-g"
4419 ;;
4420 esac
4421 fi
4422
4423 if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4424 coin_dbg_fflags="-g"
4425 fi
4426
4427 if test -z "$coin_opt_fflags"; then
4428 # Try if -O option works if nothing else is set
4429 FFLAGS=-O
4430 cat >conftest.$ac_ext <<_ACEOF
4431 program main
4432 integer i
4433 end
4434 _ACEOF
4435 rm -f conftest.$ac_objext conftest$ac_exeext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4437 (eval $ac_link) 2>conftest.er1
4438 ac_status=$?
4439 grep -v '^ *+' conftest.er1 >conftest.err
4440 rm -f conftest.er1
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try='test -z "$ac_f77_werror_flag"
4445 || test ! -s conftest.err'
4446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 (eval $ac_try) 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; } &&
4451 { ac_try='test -s conftest$ac_exeext'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 (eval $ac_try) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; }; then
4457 coin_opt_fflags="-O"
4458 else
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4461
4462 fi
4463 rm -f conftest.err conftest.$ac_objext \
4464 conftest$ac_exeext conftest.$ac_ext
4465 fi
4466
4467 # if PM doesn't want the warning messages, take them out
4468 if test x"$coin_skip_warn_fflags" = xyes; then
4469 coin_warn_fflags=
4470 fi
4471
4472 if test x${DBG_FFLAGS+set} != xset; then
4473 DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4474 fi
4475 if test x${OPT_FFLAGS+set} != xset; then
4476 OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4477 fi
4478
4479 DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4480 OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4481
4482 if test "$coin_debug_compile" = "true"; then
4483 FFLAGS="$DBG_FFLAGS"
4484 else
4485 FFLAGS="$OPT_FFLAGS"
4486 fi
4487 else
4488 FFLAGS="$FFLAGS $ADD_FFLAGS"
4489 if test x${DBG_FFLAGS+set} != xset; then
4490 DBG_FFLAGS="$FFLAGS"
4491 fi
4492 if test x${OPT_FFLAGS+set} != xset; then
4493 OPT_FFLAGS="$FFLAGS"
4494 fi
4495 fi
4496
4497 # Try if FFLAGS works
4498 if test "$F77" != "unavailable" ; then
4499 orig_FFLAGS="FFLAGS"
4500 cat >conftest.$ac_ext <<_ACEOF
4501 program main
4502 integer i
4503 end
4504 _ACEOF
4505 rm -f conftest.$ac_objext conftest$ac_exeext
4506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4507 (eval $ac_link) 2>conftest.er1
4508 ac_status=$?
4509 grep -v '^ *+' conftest.er1 >conftest.err
4510 rm -f conftest.er1
4511 cat conftest.err >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
4514 { ac_try='test -z "$ac_f77_werror_flag"
4515 || test ! -s conftest.err'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 (eval $ac_try) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; } &&
4521 { ac_try='test -s conftest$ac_exeext'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 (eval $ac_try) 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; }; then
4527 :
4528 else
4529 echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4531
4532 FFLAGS=
4533 fi
4534 rm -f conftest.err conftest.$ac_objext \
4535 conftest$ac_exeext conftest.$ac_ext
4536 if test -z "$FFLAGS"; then
4537 { 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
4538 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;}
4539 FFLAGS='-O'
4540 cat >conftest.$ac_ext <<_ACEOF
4541 program main
4542 integer i
4543 end
4544 _ACEOF
4545 rm -f conftest.$ac_objext conftest$ac_exeext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4547 (eval $ac_link) 2>conftest.er1
4548 ac_status=$?
4549 grep -v '^ *+' conftest.er1 >conftest.err
4550 rm -f conftest.er1
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -z "$ac_f77_werror_flag"
4555 || test ! -s conftest.err'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; } &&
4561 { ac_try='test -s conftest$ac_exeext'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 (eval $ac_try) 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 :
4568 else
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572 FFLAGS=
4573 fi
4574 rm -f conftest.err conftest.$ac_objext \
4575 conftest$ac_exeext conftest.$ac_ext
4576 if test -z "$FFLAGS"; then
4577 { 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
4578 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;}
4579 fi
4580 fi
4581 fi
4582
4583 { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4584 echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4585
4586
4587 if test x"$MPIF77" = x; then :; else
4588 { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4589 echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4590 F77="$MPIF77"
4591 fi
4592
4593 # correct the LD variable if we use the intel fortran compiler in windows
4594 case $build in
4595 *-cygwin* | *-mingw*)
4596 case "$F77" in
4597 ifort* | */ifort* | IFORT* | */IFORT*)
4598 LD=link
4599 ;;
4600 esac
4601 ;;
4602 esac
4603
4604 ac_ext=c
4605 ac_cpp='$CPP $CPPFLAGS'
4606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4609
4610
4611
4612 # Initialize automake and libtool
4613 # AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4614 {
4615
4616
4617
4618 # START
4619
4620 coin_disable_shared=no
4621 # Test if force_shared has been set
4622 if test "x" = xforce_shared; then
4623 if test x$enable_shared = xno; then
4624 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4625 echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4626 { (exit 1); exit 1; }; }
4627 fi
4628 enable_shared=yes;
4629 else
4630 case $build in
4631 *-cygwin* | *-mingw*)
4632 coin_disable_shared=yes
4633 if test x"$enable_shared" = xyes; then
4634 case "$CC" in
4635 clang* | */clang* )
4636 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4637 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4638 ;;
4639 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4640 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4641 echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4642 ;;
4643 *gcc*)
4644 if test x"$enable_dependency_linking" = xyes; then
4645 coin_disable_shared=no
4646 else
4647 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4648 echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4649 fi
4650 ;;
4651 *)
4652 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4653 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4654 ;;
4655 esac
4656 fi
4657 ;;
4658 *-aix*)
4659 coin_disable_shared=yes
4660 platform=AIX
4661 if test x"$enable_shared" = xyes; then
4662 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4663 echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4664 fi
4665 ;;
4666 esac
4667 fi
4668 if test x"$coin_disable_shared" = xyes; then
4669 if test x"$enable_shared" = xyes; then
4670 :
4671 else
4672 # we don't disable shared, because it was not selected anyway
4673 coin_disable_shared=no
4674 fi
4675 enable_shared=no
4676 fi
4677 # By default, we only want the shared objects to be compiled
4678 # Check whether --enable-static or --disable-static was given.
4679 if test "${enable_static+set}" = set; then
4680 enableval="$enable_static"
4681 p=${PACKAGE-default}
4682 case $enableval in
4683 yes) enable_static=yes ;;
4684 no) enable_static=no ;;
4685 *)
4686 enable_static=no
4687 # Look at the argument we got. We use all the common list separators.
4688 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4689 for pkg in $enableval; do
4690 IFS="$lt_save_ifs"
4691 if test "X$pkg" = "X$p"; then
4692 enable_static=yes
4693 fi
4694 done
4695 IFS="$lt_save_ifs"
4696 ;;
4697 esac
4698 else
4699 enable_static=no
4700 fi;
4701
4702
4703
4704
4705 # Initialize automake
4706 echo "$as_me:$LINENO: checking for egrep" >&5
4707 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4708 if test "${ac_cv_prog_egrep+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4712 then ac_cv_prog_egrep='grep -E'
4713 else ac_cv_prog_egrep='egrep'
4714 fi
4715 fi
4716 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4717 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4718 EGREP=$ac_cv_prog_egrep
4719
4720
4721 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4722 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4723 LN_S=$as_ln_s
4724 if test "$LN_S" = "ln -s"; then
4725 echo "$as_me:$LINENO: result: yes" >&5
4726 echo "${ECHO_T}yes" >&6
4727 else
4728 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4729 echo "${ECHO_T}no, using $LN_S" >&6
4730 fi
4731
4732 am__api_version="1.9"
4733 # Find a good install program. We prefer a C program (faster),
4734 # so one script is as good as another. But avoid the broken or
4735 # incompatible versions:
4736 # SysV /etc/install, /usr/sbin/install
4737 # SunOS /usr/etc/install
4738 # IRIX /sbin/install
4739 # AIX /bin/install
4740 # AmigaOS /C/install, which installs bootblocks on floppy discs
4741 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4742 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4743 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4744 # OS/2's system install, which has a completely different semantic
4745 # ./install, which can be erroneously created by make from ./install.sh.
4746 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4747 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4748 if test -z "$INSTALL"; then
4749 if test "${ac_cv_path_install+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 # Account for people who put trailing slashes in PATH elements.
4758 case $as_dir/ in
4759 ./ | .// | /cC/* | \
4760 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4761 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4762 /usr/ucb/* ) ;;
4763 *)
4764 # OSF1 and SCO ODT 3.0 have their own names for install.
4765 # Don't use installbsd from OSF since it installs stuff as root
4766 # by default.
4767 for ac_prog in ginstall scoinst install; do
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4770 if test $ac_prog = install &&
4771 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4772 # AIX install. It has an incompatible calling convention.
4773 :
4774 elif test $ac_prog = install &&
4775 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4776 # program-specific install script used by HP pwplus--don't use.
4777 :
4778 else
4779 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4780 break 3
4781 fi
4782 fi
4783 done
4784 done
4785 ;;
4786 esac
4787 done
4788
4789
4790 fi
4791 if test "${ac_cv_path_install+set}" = set; then
4792 INSTALL=$ac_cv_path_install
4793 else
4794 # As a last resort, use the slow shell script. We don't cache a
4795 # path for INSTALL within a source directory, because that will
4796 # break other packages using the cache if that directory is
4797 # removed, or if the path is relative.
4798 INSTALL=$ac_install_sh
4799 fi
4800 fi
4801 echo "$as_me:$LINENO: result: $INSTALL" >&5
4802 echo "${ECHO_T}$INSTALL" >&6
4803
4804 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4805 # It thinks the first close brace ends the variable substitution.
4806 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4807
4808 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4809
4810 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4811
4812 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4813 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4814 # Just in case
4815 sleep 1
4816 echo timestamp > conftest.file
4817 # Do `set' in a subshell so we don't clobber the current shell's
4818 # arguments. Must try -L first in case configure is actually a
4819 # symlink; some systems play weird games with the mod time of symlinks
4820 # (eg FreeBSD returns the mod time of the symlink's containing
4821 # directory).
4822 if (
4823 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4824 if test "$*" = "X"; then
4825 # -L didn't work.
4826 set X `ls -t $srcdir/configure conftest.file`
4827 fi
4828 rm -f conftest.file
4829 if test "$*" != "X $srcdir/configure conftest.file" \
4830 && test "$*" != "X conftest.file $srcdir/configure"; then
4831
4832 # If neither matched, then we have a broken ls. This can happen
4833 # if, for instance, CONFIG_SHELL is bash and it inherits a
4834 # broken ls alias from the environment. This has actually
4835 # happened. Such a system could not be considered "sane".
4836 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4837 alias in your environment" >&5
4838 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4839 alias in your environment" >&2;}
4840 { (exit 1); exit 1; }; }
4841 fi
4842
4843 test "$2" = conftest.file
4844 )
4845 then
4846 # Ok.
4847 :
4848 else
4849 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4850 Check your system clock" >&5
4851 echo "$as_me: error: newly created file is older than distributed files!
4852 Check your system clock" >&2;}
4853 { (exit 1); exit 1; }; }
4854 fi
4855 echo "$as_me:$LINENO: result: yes" >&5
4856 echo "${ECHO_T}yes" >&6
4857 test "$program_prefix" != NONE &&
4858 program_transform_name="s,^,$program_prefix,;$program_transform_name"
4859 # Use a double $ so make ignores it.
4860 test "$program_suffix" != NONE &&
4861 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4862 # Double any \ or $. echo might interpret backslashes.
4863 # By default was `s,x,x', remove it if useless.
4864 cat <<\_ACEOF >conftest.sed
4865 s/[\\$]/&&/g;s/;s,x,x,$//
4866 _ACEOF
4867 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4868 rm conftest.sed
4869
4870 # expand $ac_aux_dir to an absolute path
4871 am_aux_dir=`cd $ac_aux_dir && pwd`
4872
4873 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4874 # Use eval to expand $SHELL
4875 if eval "$MISSING --run true"; then
4876 am_missing_run="$MISSING --run "
4877 else
4878 am_missing_run=
4879 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4880 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4881 fi
4882
4883 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4884 # We used to keeping the `.' as first argument, in order to
4885 # allow $(mkdir_p) to be used without argument. As in
4886 # $(mkdir_p) $(somedir)
4887 # where $(somedir) is conditionally defined. However this is wrong
4888 # for two reasons:
4889 # 1. if the package is installed by a user who cannot write `.'
4890 # make install will fail,
4891 # 2. the above comment should most certainly read
4892 # $(mkdir_p) $(DESTDIR)$(somedir)
4893 # so it does not work when $(somedir) is undefined and
4894 # $(DESTDIR) is not.
4895 # To support the latter case, we have to write
4896 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4897 # so the `.' trick is pointless.
4898 mkdir_p='mkdir -p --'
4899 else
4900 # On NextStep and OpenStep, the `mkdir' command does not
4901 # recognize any option. It will interpret all options as
4902 # directories to create, and then abort because `.' already
4903 # exists.
4904 for d in ./-p ./--version;
4905 do
4906 test -d $d && rmdir $d
4907 done
4908 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4909 if test -f "$ac_aux_dir/mkinstalldirs"; then
4910 mkdir_p='$(mkinstalldirs)'
4911 else
4912 mkdir_p='$(install_sh) -d'
4913 fi
4914 fi
4915
4916 for ac_prog in gawk mawk nawk awk
4917 do
4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
4919 set dummy $ac_prog; ac_word=$2
4920 echo "$as_me:$LINENO: checking for $ac_word" >&5
4921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922 if test "${ac_cv_prog_AWK+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925 if test -n "$AWK"; then
4926 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_AWK="$ac_prog"
4936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939 done
4940 done
4941
4942 fi
4943 fi
4944 AWK=$ac_cv_prog_AWK
4945 if test -n "$AWK"; then
4946 echo "$as_me:$LINENO: result: $AWK" >&5
4947 echo "${ECHO_T}$AWK" >&6
4948 else
4949 echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6
4951 fi
4952
4953 test -n "$AWK" && break
4954 done
4955
4956 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4957 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4958 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4959 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962 cat >conftest.make <<\_ACEOF
4963 all:
4964 @echo 'ac_maketemp="$(MAKE)"'
4965 _ACEOF
4966 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4967 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4968 if test -n "$ac_maketemp"; then
4969 eval ac_cv_prog_make_${ac_make}_set=yes
4970 else
4971 eval ac_cv_prog_make_${ac_make}_set=no
4972 fi
4973 rm -f conftest.make
4974 fi
4975 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4976 echo "$as_me:$LINENO: result: yes" >&5
4977 echo "${ECHO_T}yes" >&6
4978 SET_MAKE=
4979 else
4980 echo "$as_me:$LINENO: result: no" >&5
4981 echo "${ECHO_T}no" >&6
4982 SET_MAKE="MAKE=${MAKE-make}"
4983 fi
4984
4985 rm -rf .tst 2>/dev/null
4986 mkdir .tst 2>/dev/null
4987 if test -d .tst; then
4988 am__leading_dot=.
4989 else
4990 am__leading_dot=_
4991 fi
4992 rmdir .tst 2>/dev/null
4993
4994 DEPDIR="${am__leading_dot}deps"
4995
4996 ac_config_commands="$ac_config_commands depfiles"
4997
4998
4999 am_make=${MAKE-make}
5000 cat > confinc << 'END'
5001 am__doit:
5002 @echo done
5003 .PHONY: am__doit
5004 END
5005 # If we don't find an include directive, just comment out the code.
5006 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5007 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5008 am__include="#"
5009 am__quote=
5010 _am_result=none
5011 # First try GNU make style include.
5012 echo "include confinc" > confmf
5013 # We grep out `Entering directory' and `Leaving directory'
5014 # messages which can occur if `w' ends up in MAKEFLAGS.
5015 # In particular we don't look at `^make:' because GNU make might
5016 # be invoked under some other name (usually "gmake"), in which
5017 # case it prints its new name instead of `make'.
5018 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5019 am__include=include
5020 am__quote=
5021 _am_result=GNU
5022 fi
5023 # Now try BSD make style include.
5024 if test "$am__include" = "#"; then
5025 echo '.include "confinc"' > confmf
5026 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5027 am__include=.include
5028 am__quote="\""
5029 _am_result=BSD
5030 fi
5031 fi
5032
5033
5034 echo "$as_me:$LINENO: result: $_am_result" >&5
5035 echo "${ECHO_T}$_am_result" >&6
5036 rm -f confinc confmf
5037
5038 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5039 if test "${enable_dependency_tracking+set}" = set; then
5040 enableval="$enable_dependency_tracking"
5041
5042 fi;
5043 if test "x$enable_dependency_tracking" != xno; then
5044 am_depcomp="$ac_aux_dir/depcomp"
5045 AMDEPBACKSLASH='\'
5046 fi
5047
5048
5049 if test "x$enable_dependency_tracking" != xno; then
5050 AMDEP_TRUE=
5051 AMDEP_FALSE='#'
5052 else
5053 AMDEP_TRUE='#'
5054 AMDEP_FALSE=
5055 fi
5056
5057
5058
5059
5060
5061
5062 # AC_MSG_NOTICE([Beginning automake initialisation.])
5063 # Stuff for automake
5064 # test to see if srcdir already configured
5065 if test "`cd $srcdir && pwd`" != "`pwd`" &&
5066 test -f $srcdir/config.status; then
5067 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5068 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5069 { (exit 1); exit 1; }; }
5070 fi
5071
5072 # test whether we have cygpath
5073 if test -z "$CYGPATH_W"; then
5074 if (cygpath --version) >/dev/null 2>/dev/null; then
5075 CYGPATH_W='cygpath -w'
5076 else
5077 CYGPATH_W=echo
5078 fi
5079 fi
5080
5081
5082 # Define the identity of the package.
5083 PACKAGE='osi'
5084 VERSION='0.108.11'
5085
5086
5087 cat >>confdefs.h <<_ACEOF
5088 #define PACKAGE "$PACKAGE"
5089 _ACEOF
5090
5091
5092 cat >>confdefs.h <<_ACEOF
5093 #define VERSION "$VERSION"
5094 _ACEOF
5095
5096 # Some tools Automake needs.
5097
5098 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5099
5100
5101 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5102
5103
5104 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5105
5106
5107 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5108
5109
5110 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5111
5112 install_sh=${install_sh-"$am_aux_dir/install-sh"}
5113
5114 # Installed binaries are usually stripped using `strip' when the user
5115 # run `make install-strip'. However `strip' might not be the right
5116 # tool to use in cross-compilation environments, therefore Automake
5117 # will honor the `STRIP' environment variable to overrule this program.
5118 if test "$cross_compiling" != no; then
5119 if test -n "$ac_tool_prefix"; then
5120 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5121 set dummy ${ac_tool_prefix}strip; ac_word=$2
5122 echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5124 if test "${ac_cv_prog_STRIP+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127 if test -n "$STRIP"; then
5128 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5140 fi
5141 done
5142 done
5143
5144 fi
5145 fi
5146 STRIP=$ac_cv_prog_STRIP
5147 if test -n "$STRIP"; then
5148 echo "$as_me:$LINENO: result: $STRIP" >&5
5149 echo "${ECHO_T}$STRIP" >&6
5150 else
5151 echo "$as_me:$LINENO: result: no" >&5
5152 echo "${ECHO_T}no" >&6
5153 fi
5154
5155 fi
5156 if test -z "$ac_cv_prog_STRIP"; then
5157 ac_ct_STRIP=$STRIP
5158 # Extract the first word of "strip", so it can be a program name with args.
5159 set dummy strip; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 if test -n "$ac_ct_STRIP"; then
5166 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_ac_ct_STRIP="strip"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179 done
5180 done
5181
5182 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5183 fi
5184 fi
5185 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5186 if test -n "$ac_ct_STRIP"; then
5187 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5188 echo "${ECHO_T}$ac_ct_STRIP" >&6
5189 else
5190 echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5192 fi
5193
5194 STRIP=$ac_ct_STRIP
5195 else
5196 STRIP="$ac_cv_prog_STRIP"
5197 fi
5198
5199 fi
5200 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5201
5202 # We need awk for the "check" target. The system "awk" is bad on
5203 # some platforms.
5204 # Always define AMTAR for backward compatibility.
5205
5206 AMTAR=${AMTAR-"${am_missing_run}tar"}
5207
5208 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5209
5210
5211
5212
5213 depcc="$CC" am_compiler_list=
5214
5215 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5216 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5217 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5221 # We make a subdir and do the tests there. Otherwise we can end up
5222 # making bogus files that we don't know about and never remove. For
5223 # instance it was reported that on HP-UX the gcc test will end up
5224 # making a dummy file named `D' -- because `-MD' means `put the output
5225 # in D'.
5226 mkdir conftest.dir
5227 # Copy depcomp to subdir because otherwise we won't find it if we're
5228 # using a relative directory.
5229 cp "$am_depcomp" conftest.dir
5230 cd conftest.dir
5231 # We will build objects and dependencies in a subdirectory because
5232 # it helps to detect inapplicable dependency modes. For instance
5233 # both Tru64's cc and ICC support -MD to output dependencies as a
5234 # side effect of compilation, but ICC will put the dependencies in
5235 # the current directory while Tru64 will put them in the object
5236 # directory.
5237 mkdir sub
5238
5239 am_cv_CC_dependencies_compiler_type=none
5240 if test "$am_compiler_list" = ""; then
5241 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5242 fi
5243 for depmode in $am_compiler_list; do
5244 # Setup a source with many dependencies, because some compilers
5245 # like to wrap large dependency lists on column 80 (with \), and
5246 # we should not choose a depcomp mode which is confused by this.
5247 #
5248 # We need to recreate these files for each test, as the compiler may
5249 # overwrite some of them when testing with obscure command lines.
5250 # This happens at least with the AIX C compiler.
5251 : > sub/conftest.c
5252 for i in 1 2 3 4 5 6; do
5253 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5254 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5255 # Solaris 8's {/usr,}/bin/sh.
5256 touch sub/conftst$i.h
5257 done
5258 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5259
5260 case $depmode in
5261 nosideeffect)
5262 # after this tag, mechanisms are not by side-effect, so they'll
5263 # only be used when explicitly requested
5264 if test "x$enable_dependency_tracking" = xyes; then
5265 continue
5266 else
5267 break
5268 fi
5269 ;;
5270 none) break ;;
5271 esac
5272 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5273 # mode. It turns out that the SunPro C++ compiler does not properly
5274 # handle `-M -o', and we need to detect this.
5275 if depmode=$depmode \
5276 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5277 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5278 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5279 >/dev/null 2>conftest.err &&
5280 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5281 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5282 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5283 # icc doesn't choke on unknown options, it will just issue warnings
5284 # or remarks (even with -Werror). So we grep stderr for any message
5285 # that says an option was ignored or not supported.
5286 # When given -MP, icc 7.0 and 7.1 complain thusly:
5287 # icc: Command line warning: ignoring option '-M'; no argument required
5288 # The diagnosis changed in icc 8.0:
5289 # icc: Command line remark: option '-MP' not supported
5290 if (grep 'ignoring option' conftest.err ||
5291 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5292 am_cv_CC_dependencies_compiler_type=$depmode
5293 break
5294 fi
5295 fi
5296 done
5297
5298 cd ..
5299 rm -rf conftest.dir
5300 else
5301 am_cv_CC_dependencies_compiler_type=none
5302 fi
5303
5304 fi
5305 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5306 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5307 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5308
5309
5310
5311 if
5312 test "x$enable_dependency_tracking" != xno \
5313 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5314 am__fastdepCC_TRUE=
5315 am__fastdepCC_FALSE='#'
5316 else
5317 am__fastdepCC_TRUE='#'
5318 am__fastdepCC_FALSE=
5319 fi
5320
5321
5322 depcc="$CXX" am_compiler_list=
5323
5324 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5325 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5326 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5330 # We make a subdir and do the tests there. Otherwise we can end up
5331 # making bogus files that we don't know about and never remove. For
5332 # instance it was reported that on HP-UX the gcc test will end up
5333 # making a dummy file named `D' -- because `-MD' means `put the output
5334 # in D'.
5335 mkdir conftest.dir
5336 # Copy depcomp to subdir because otherwise we won't find it if we're
5337 # using a relative directory.
5338 cp "$am_depcomp" conftest.dir
5339 cd conftest.dir
5340 # We will build objects and dependencies in a subdirectory because
5341 # it helps to detect inapplicable dependency modes. For instance
5342 # both Tru64's cc and ICC support -MD to output dependencies as a
5343 # side effect of compilation, but ICC will put the dependencies in
5344 # the current directory while Tru64 will put them in the object
5345 # directory.
5346 mkdir sub
5347
5348 am_cv_CXX_dependencies_compiler_type=none
5349 if test "$am_compiler_list" = ""; then
5350 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5351 fi
5352 for depmode in $am_compiler_list; do
5353 # Setup a source with many dependencies, because some compilers
5354 # like to wrap large dependency lists on column 80 (with \), and
5355 # we should not choose a depcomp mode which is confused by this.
5356 #
5357 # We need to recreate these files for each test, as the compiler may
5358 # overwrite some of them when testing with obscure command lines.
5359 # This happens at least with the AIX C compiler.
5360 : > sub/conftest.c
5361 for i in 1 2 3 4 5 6; do
5362 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5363 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5364 # Solaris 8's {/usr,}/bin/sh.
5365 touch sub/conftst$i.h
5366 done
5367 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5368
5369 case $depmode in
5370 nosideeffect)
5371 # after this tag, mechanisms are not by side-effect, so they'll
5372 # only be used when explicitly requested
5373 if test "x$enable_dependency_tracking" = xyes; then
5374 continue
5375 else
5376 break
5377 fi
5378 ;;
5379 none) break ;;
5380 esac
5381 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5382 # mode. It turns out that the SunPro C++ compiler does not properly
5383 # handle `-M -o', and we need to detect this.
5384 if depmode=$depmode \
5385 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5386 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5387 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5388 >/dev/null 2>conftest.err &&
5389 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5390 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5391 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5392 # icc doesn't choke on unknown options, it will just issue warnings
5393 # or remarks (even with -Werror). So we grep stderr for any message
5394 # that says an option was ignored or not supported.
5395 # When given -MP, icc 7.0 and 7.1 complain thusly:
5396 # icc: Command line warning: ignoring option '-M'; no argument required
5397 # The diagnosis changed in icc 8.0:
5398 # icc: Command line remark: option '-MP' not supported
5399 if (grep 'ignoring option' conftest.err ||
5400 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5401 am_cv_CXX_dependencies_compiler_type=$depmode
5402 break
5403 fi
5404 fi
5405 done
5406
5407 cd ..
5408 rm -rf conftest.dir
5409 else
5410 am_cv_CXX_dependencies_compiler_type=none
5411 fi
5412
5413 fi
5414 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5415 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5416 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5417
5418
5419
5420 if
5421 test "x$enable_dependency_tracking" != xno \
5422 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5423 am__fastdepCXX_TRUE=
5424 am__fastdepCXX_FALSE='#'
5425 else
5426 am__fastdepCXX_TRUE='#'
5427 am__fastdepCXX_FALSE=
5428 fi
5429
5430
5431
5432 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5433 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5434 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5435 if test "${enable_maintainer_mode+set}" = set; then
5436 enableval="$enable_maintainer_mode"
5437 USE_MAINTAINER_MODE=$enableval
5438 else
5439 USE_MAINTAINER_MODE=no
5440 fi;
5441 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5442 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5443
5444
5445 if test $USE_MAINTAINER_MODE = yes; then
5446 MAINTAINER_MODE_TRUE=
5447 MAINTAINER_MODE_FALSE='#'
5448 else
5449 MAINTAINER_MODE_TRUE='#'
5450 MAINTAINER_MODE_FALSE=
5451 fi
5452
5453 MAINT=$MAINTAINER_MODE_TRUE
5454
5455
5456
5457 coin_have_externals=no
5458 if test "$enable_maintainer_mode" = yes; then
5459
5460 # If maintainer mode is chosen, we make sure that the correct versions
5461 # of the tools are used, and that we know where libtool.m4 is (to
5462 # recreate acinclude.m4)
5463
5464
5465 LIBTOOLM4=
5466 # Normally, $HOME
5467 AUTOTOOLS_DFLT=$HOME
5468
5469 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5470 echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5471 if test "${ac_cv_use_correct_autotools+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474 ac_cv_use_correct_autotools=check
5475 fi
5476 echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5477 echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5478
5479 if test $ac_cv_use_correct_autotools = check; then
5480 ac_cv_use_correct_autotools=yes
5481 # Check if we have autoconf
5482 # Extract the first word of "autoconf", so it can be a program name with args.
5483 set dummy autoconf; ac_word=$2
5484 echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5486 if test "${ac_cv_prog_have_autoconf+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 if test -n "$have_autoconf"; then
5490 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_prog_have_autoconf="yes"
5500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5502 fi
5503 done
5504 done
5505
5506 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5507 fi
5508 fi
5509 have_autoconf=$ac_cv_prog_have_autoconf
5510 if test -n "$have_autoconf"; then
5511 echo "$as_me:$LINENO: result: $have_autoconf" >&5
5512 echo "${ECHO_T}$have_autoconf" >&6
5513 else
5514 echo "$as_me:$LINENO: result: no" >&5
5515 echo "${ECHO_T}no" >&6
5516 fi
5517
5518 if test $have_autoconf = no; then
5519 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5520 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5521 { (exit 1); exit 1; }; }
5522 fi
5523
5524 # Check whether autoconf is the correct version
5525 correct_version='2.59'
5526 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5527 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5528 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5529 autoconf --version > confauto.out 2>&1
5530 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5531 echo "$as_me:$LINENO: result: yes" >&5
5532 echo "${ECHO_T}yes" >&6
5533 else
5534 rm -f confauto.out
5535 echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5537 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5538 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5539 { (exit 1); exit 1; }; }
5540 fi
5541 rm -f confauto.out
5542
5543 # Check if the executable autoconf is picked up from the correct location
5544 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5545 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5546 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5547 autoconf_dir=`cd $autoconf_dir; pwd`
5548 if test x$AUTOTOOLS_DIR = x; then
5549 want_dir=$AUTOTOOLS_DFLT/bin
5550 else
5551 want_dir=$AUTOTOOLS_DIR/bin
5552 fi
5553 if test $autoconf_dir = `cd $want_dir; pwd`; then
5554 echo "$as_me:$LINENO: result: yes" >&5
5555 echo "${ECHO_T}yes" >&6
5556 else
5557 rm -f confauto.out
5558 echo "$as_me:$LINENO: result: no" >&5
5559 echo "${ECHO_T}no" >&6
5560 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5561 echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5562 { (exit 1); exit 1; }; }
5563 fi
5564
5565 # Check if we have automake
5566 # Extract the first word of "automake", so it can be a program name with args.
5567 set dummy automake; ac_word=$2
5568 echo "$as_me:$LINENO: checking for $ac_word" >&5
5569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5570 if test "${ac_cv_prog_have_automake+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573 if test -n "$have_automake"; then
5574 ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5575 else
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5578 do
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583 ac_cv_prog_have_automake="yes"
5584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5586 fi
5587 done
5588 done
5589
5590 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5591 fi
5592 fi
5593 have_automake=$ac_cv_prog_have_automake
5594 if test -n "$have_automake"; then
5595 echo "$as_me:$LINENO: result: $have_automake" >&5
5596 echo "${ECHO_T}$have_automake" >&6
5597 else
5598 echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6
5600 fi
5601
5602 if test $have_automake = no; then
5603 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5604 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5605 { (exit 1); exit 1; }; }
5606 fi
5607
5608 # Check whether automake is the correct version
5609 correct_version='1.9.6'
5610 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5611 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5612 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5613 automake --version > confauto.out 2>&1
5614 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5615 echo "$as_me:$LINENO: result: yes" >&5
5616 echo "${ECHO_T}yes" >&6
5617 else
5618 rm -f confauto.out
5619 echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6
5621 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5622 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5623 { (exit 1); exit 1; }; }
5624 fi
5625 rm -f confauto.out
5626
5627 # Check if the executable automake is picked up from the correct location
5628 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5629 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5630 automake_dir=`which automake | sed -e 's=/automake=='`
5631 automake_dir=`cd $automake_dir; pwd`
5632 if test x$AUTOTOOLS_DIR = x; then
5633 want_dir=$AUTOTOOLS_DFLT/bin
5634 else
5635 want_dir=$AUTOTOOLS_DIR/bin
5636 fi
5637 if test $automake_dir = `cd $want_dir; pwd`; then
5638 echo "$as_me:$LINENO: result: yes" >&5
5639 echo "${ECHO_T}yes" >&6
5640 else
5641 rm -f confauto.out
5642 echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6
5644 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5645 echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5646 { (exit 1); exit 1; }; }
5647 fi
5648
5649 # Check if this is the correct version of libtool (with escaped dots)
5650 if test x$AUTOTOOLS_DIR = x; then
5651 want_dir=$AUTOTOOLS_DFLT/share
5652 else
5653 want_dir=$AUTOTOOLS_DIR/share
5654 fi
5655 correct_version='1.5.22'
5656 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5657 if test -r $want_dir/libtool/ltmain.sh; then
5658 have_ltmain=yes
5659 :
5660 else
5661 have_ltmain=no
5662 :
5663 fi
5664
5665 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5666 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5667 if test $have_ltmain = yes; then
5668 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5669 echo "$as_me:$LINENO: result: yes" >&5
5670 echo "${ECHO_T}yes" >&6
5671 else
5672 echo "$as_me:$LINENO: result: no" >&5
5673 echo "${ECHO_T}no" >&6
5674 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5675 echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5676 { (exit 1); exit 1; }; }
5677 fi
5678 else
5679 echo "$as_me:$LINENO: result: no" >&5
5680 echo "${ECHO_T}no" >&6
5681 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5682 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5683 { (exit 1); exit 1; }; }
5684 fi
5685 fi
5686
5687 # Check if we can find the libtool file
5688 if test x$AUTOTOOLS_DIR = x; then
5689 want_dir=$AUTOTOOLS_DFLT/share
5690 else
5691 want_dir=$AUTOTOOLS_DIR/share
5692 fi
5693 if test -r $want_dir/aclocal/libtool.m4; then
5694 LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5695 :
5696 else
5697 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5698 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5699 { (exit 1); exit 1; }; }
5700 :
5701 fi
5702
5703
5704 # Check if we have an Dependencies file
5705 if test -r $srcdir/Dependencies; then
5706 coin_have_externals=yes
5707 fi
5708 # Check if subversion is installed and understands https
5709 # Extract the first word of "svn", so it can be a program name with args.
5710 set dummy svn; ac_word=$2
5711 echo "$as_me:$LINENO: checking for $ac_word" >&5
5712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5713 if test "${ac_cv_prog_have_svn+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716 if test -n "$have_svn"; then
5717 ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_have_svn="yes"
5727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5729 fi
5730 done
5731 done
5732
5733 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5734 fi
5735 fi
5736 have_svn=$ac_cv_prog_have_svn
5737 if test -n "$have_svn"; then
5738 echo "$as_me:$LINENO: result: $have_svn" >&5
5739 echo "${ECHO_T}$have_svn" >&6
5740 else
5741 echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6
5743 fi
5744
5745 if test x$have_svn = xyes; then
5746 echo "$as_me:$LINENO: checking whether svn understands https" >&5
5747 echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5748 if test "${ac_cv_svn_understands_https+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751 svn --version > confauto.out 2>&1
5752 if $EGREP https confauto.out >/dev/null 2>&1; then
5753 ac_cv_svn_understands_https=yes
5754 else
5755 ac_cv_svn_understands_https=no
5756 have_svn=no
5757 ac_cv_prog_have_svn=no
5758 fi
5759 rm -f confauto.out
5760 fi
5761 echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5762 echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5763 fi
5764
5765 # Find the location of the BuildTools directory
5766 BUILDTOOLSDIR=
5767 if test -r $srcdir/BuildTools/coin.m4; then
5768 BUILDTOOLSDIR=$srcdir/BuildTools
5769 elif test -r $srcdir/../BuildTools/coin.m4; then
5770 BUILDTOOLSDIR=$srcdir/../BuildTools
5771 elif test -r $srcdir/../../BuildTools/coin.m4; then
5772 BUILDTOOLSDIR=$srcdir/../../BuildTools
5773 elif test -r $srcdir/../../../BuildTools/coin.m4; then
5774 BUILDTOOLSDIR=$srcdir/../../../BuildTools
5775 else
5776 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5777 echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5778 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5779 fi
5780
5781
5782 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5783 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5784 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5785 fi
5786
5787 # The following variable is set to the name of the directory where
5788 # the autotool scripts are located
5789
5790 AUX_DIR=$ac_aux_dir
5791 fi
5792
5793 # helpful variable for the base directory of this package
5794 abs_source_dir=`cd $srcdir; pwd`
5795
5796
5797 # Stuff for example Makefiles
5798 if test x$prefix = xNONE; then
5799 full_prefix=$ac_default_prefix
5800 else
5801 full_prefix=$prefix
5802 fi
5803
5804
5805 abs_lib_dir=$full_prefix/lib
5806
5807 abs_include_dir=$full_prefix/include
5808
5809 abs_bin_dir=$full_prefix/bin
5810
5811
5812
5813 if test $coin_have_externals = yes && test x$have_svn = xyes; then
5814 HAVE_EXTERNALS_TRUE=
5815 HAVE_EXTERNALS_FALSE='#'
5816 else
5817 HAVE_EXTERNALS_TRUE='#'
5818 HAVE_EXTERNALS_FALSE=
5819 fi
5820
5821
5822 # AC_MSG_NOTICE([End automake initialisation.])
5823
5824
5825
5826 LIBTOOL=
5827 if test -f ../libtool; then
5828 coin_config_dir=..
5829 LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5830 fi
5831 if test "x$LIBTOOL" = x; then
5832 if test -f ../../libtool; then
5833 coin_config_dir=../..
5834 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5835 fi
5836 fi
5837
5838 if test "x$LIBTOOL" = x; then
5839 # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5840 # Stuff for libtool
5841 # Check whether --enable-shared or --disable-shared was given.
5842 if test "${enable_shared+set}" = set; then
5843 enableval="$enable_shared"
5844 p=${PACKAGE-default}
5845 case $enableval in
5846 yes) enable_shared=yes ;;
5847 no) enable_shared=no ;;
5848 *)
5849 enable_shared=no
5850 # Look at the argument we got. We use all the common list separators.
5851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5852 for pkg in $enableval; do
5853 IFS="$lt_save_ifs"
5854 if test "X$pkg" = "X$p"; then
5855 enable_shared=yes
5856 fi
5857 done
5858 IFS="$lt_save_ifs"
5859 ;;
5860 esac
5861 else
5862 enable_shared=yes
5863 fi;
5864
5865 # Check whether --enable-fast-install or --disable-fast-install was given.
5866 if test "${enable_fast_install+set}" = set; then
5867 enableval="$enable_fast_install"
5868 p=${PACKAGE-default}
5869 case $enableval in
5870 yes) enable_fast_install=yes ;;
5871 no) enable_fast_install=no ;;
5872 *)
5873 enable_fast_install=no
5874 # Look at the argument we got. We use all the common list separators.
5875 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5876 for pkg in $enableval; do
5877 IFS="$lt_save_ifs"
5878 if test "X$pkg" = "X$p"; then
5879 enable_fast_install=yes
5880 fi
5881 done
5882 IFS="$lt_save_ifs"
5883 ;;
5884 esac
5885 else
5886 enable_fast_install=yes
5887 fi;
5888
5889 echo "$as_me:$LINENO: checking host system type" >&5
5890 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5891 if test "${ac_cv_host+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894 ac_cv_host_alias=$host_alias
5895 test -z "$ac_cv_host_alias" &&
5896 ac_cv_host_alias=$ac_cv_build_alias
5897 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5898 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5899 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5900 { (exit 1); exit 1; }; }
5901
5902 fi
5903 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5904 echo "${ECHO_T}$ac_cv_host" >&6
5905 host=$ac_cv_host
5906 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5907 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5908 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5909
5910
5911 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5912 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5913 if test "${lt_cv_path_SED+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916 # Loop through the user's path and test for sed and gsed.
5917 # Then use that list of sed's as ones to test for truncation.
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for lt_ac_prog in sed gsed; do
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5926 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5927 fi
5928 done
5929 done
5930 done
5931 lt_ac_max=0
5932 lt_ac_count=0
5933 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5934 # along with /bin/sed that truncates output.
5935 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5936 test ! -f $lt_ac_sed && continue
5937 cat /dev/null > conftest.in
5938 lt_ac_count=0
5939 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5940 # Check for GNU sed and select it if it is found.
5941 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5942 lt_cv_path_SED=$lt_ac_sed
5943 break
5944 fi
5945 while true; do
5946 cat conftest.in conftest.in >conftest.tmp
5947 mv conftest.tmp conftest.in
5948 cp conftest.in conftest.nl
5949 echo >>conftest.nl
5950 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5951 cmp -s conftest.out conftest.nl || break
5952 # 10000 chars as input seems more than enough
5953 test $lt_ac_count -gt 10 && break
5954 lt_ac_count=`expr $lt_ac_count + 1`
5955 if test $lt_ac_count -gt $lt_ac_max; then
5956 lt_ac_max=$lt_ac_count
5957 lt_cv_path_SED=$lt_ac_sed
5958 fi
5959 done
5960 done
5961
5962 fi
5963
5964 SED=$lt_cv_path_SED
5965 echo "$as_me:$LINENO: result: $SED" >&5
5966 echo "${ECHO_T}$SED" >&6
5967
5968
5969 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5970 if test "${with_gnu_ld+set}" = set; then
5971 withval="$with_gnu_ld"
5972 test "$withval" = no || with_gnu_ld=yes
5973 else
5974 with_gnu_ld=no
5975 fi;
5976 ac_prog=ld
5977 if test "$GCC" = yes; then
5978 # Check if gcc -print-prog-name=ld gives a path.
5979 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5980 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5981 case $host in
5982 *-*-mingw*)
5983 # gcc leaves a trailing carriage return which upsets mingw
5984 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5985 *)
5986 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5987 esac
5988 case $ac_prog in
5989 # Accept absolute paths.
5990 [\\/]* | ?:[\\/]*)
5991 re_direlt='/[^/][^/]*/\.\./'
5992 # Canonicalize the pathname of ld
5993 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5994 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5995 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5996 done
5997 test -z "$LD" && LD="$ac_prog"
5998 ;;
5999 "")
6000 # If it fails, then pretend we aren't using GCC.
6001 ac_prog=ld
6002 ;;
6003 *)
6004 # If it is relative, then search for the first ld in PATH.
6005 with_gnu_ld=unknown
6006 ;;
6007 esac
6008 elif test "$with_gnu_ld" = yes; then
6009 echo "$as_me:$LINENO: checking for GNU ld" >&5
6010 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6011 else
6012 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6013 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6014 fi
6015 if test "${lt_cv_path_LD+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 if test -z "$LD"; then
6019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6020 for ac_dir in $PATH; do
6021 IFS="$lt_save_ifs"
6022 test -z "$ac_dir" && ac_dir=.
6023 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6024 lt_cv_path_LD="$ac_dir/$ac_prog"
6025 # Check to see if the program is GNU ld. I'd rather use --version,
6026 # but apparently some variants of GNU ld only accept -v.
6027 # Break only if it was the GNU/non-GNU ld that we prefer.
6028 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6029 *GNU* | *'with BFD'*)
6030 test "$with_gnu_ld" != no && break
6031 ;;
6032 *)
6033 test "$with_gnu_ld" != yes && break
6034 ;;
6035 esac
6036 fi
6037 done
6038 IFS="$lt_save_ifs"
6039 else
6040 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6041 fi
6042 fi
6043
6044 LD="$lt_cv_path_LD"
6045 if test -n "$LD"; then
6046 echo "$as_me:$LINENO: result: $LD" >&5
6047 echo "${ECHO_T}$LD" >&6
6048 else
6049 echo "$as_me:$LINENO: result: no" >&5
6050 echo "${ECHO_T}no" >&6
6051 fi
6052 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6053 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6054 { (exit 1); exit 1; }; }
6055 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6056 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6057 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6061 case `$LD -v 2>&1 </dev/null` in
6062 *GNU* | *'with BFD'*)
6063 lt_cv_prog_gnu_ld=yes
6064 ;;
6065 *)
6066 lt_cv_prog_gnu_ld=no
6067 ;;
6068 esac
6069 fi
6070 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6071 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6072 with_gnu_ld=$lt_cv_prog_gnu_ld
6073
6074
6075 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6076 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6077 if test "${lt_cv_ld_reload_flag+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080 lt_cv_ld_reload_flag='-r'
6081 fi
6082 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6083 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6084 reload_flag=$lt_cv_ld_reload_flag
6085 case $reload_flag in
6086 "" | " "*) ;;
6087 *) reload_flag=" $reload_flag" ;;
6088 esac
6089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6090 case $host_os in
6091 darwin*)
6092 if test "$GCC" = yes; then
6093 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6094 else
6095 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6096 fi
6097 ;;
6098 esac
6099
6100 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6101 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6102 if test "${lt_cv_path_NM+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105 if test -n "$NM"; then
6106 # Let the user override the test.
6107 lt_cv_path_NM="$NM"
6108 else
6109 lt_nm_to_check="${ac_tool_prefix}nm"
6110 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6111 lt_nm_to_check="$lt_nm_to_check nm"
6112 fi
6113 for lt_tmp_nm in $lt_nm_to_check; do
6114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6115 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6116 IFS="$lt_save_ifs"
6117 test -z "$ac_dir" && ac_dir=.
6118 tmp_nm="$ac_dir/$lt_tmp_nm"
6119 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6120 # Check to see if the nm accepts a BSD-compat flag.
6121 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6122 # nm: unknown option "B" ignored
6123 # Tru64's nm complains that /dev/null is an invalid object file
6124 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6125 */dev/null* | *'Invalid file or object type'*)
6126 lt_cv_path_NM="$tmp_nm -B"
6127 break
6128 ;;
6129 *)
6130 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6131 */dev/null*)
6132 lt_cv_path_NM="$tmp_nm -p"
6133 break
6134 ;;
6135 *)
6136 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6137 continue # so that we can try to find one that supports BSD flags
6138 ;;
6139 esac
6140 ;;
6141 esac
6142 fi
6143 done
6144 IFS="$lt_save_ifs"
6145 done
6146 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6147 fi
6148 fi
6149 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6150 echo "${ECHO_T}$lt_cv_path_NM" >&6
6151 NM="$lt_cv_path_NM"
6152
6153 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6154 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6155 if test "${lt_cv_deplibs_check_method+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158 lt_cv_file_magic_cmd='$MAGIC_CMD'
6159 lt_cv_file_magic_test_file=
6160 lt_cv_deplibs_check_method='unknown'
6161 # Need to set the preceding variable on all platforms that support
6162 # interlibrary dependencies.
6163 # 'none' -- dependencies not supported.
6164 # `unknown' -- same as none, but documents that we really don't know.
6165 # 'pass_all' -- all dependencies passed with no checks.
6166 # 'test_compile' -- check by making test program.
6167 # 'file_magic [[regex]]' -- check by looking for files in library path
6168 # which responds to the $file_magic_cmd with a given extended regex.
6169 # If you have `file' or equivalent on your system and you're not sure
6170 # whether `pass_all' will *always* work, you probably want this one.
6171
6172 case $host_os in
6173 aix4* | aix5*)
6174 lt_cv_deplibs_check_method=pass_all
6175 ;;
6176
6177 beos*)
6178 lt_cv_deplibs_check_method=pass_all
6179 ;;
6180
6181 bsdi[45]*)
6182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6183 lt_cv_file_magic_cmd='/usr/bin/file -L'
6184 lt_cv_file_magic_test_file=/shlib/libc.so
6185 ;;
6186
6187 cygwin*)
6188 # func_win32_libid is a shell function defined in ltmain.sh
6189 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6190 lt_cv_file_magic_cmd='func_win32_libid'
6191 ;;
6192
6193 mingw* | pw32*)
6194 # Base MSYS/MinGW do not provide the 'file' command needed by
6195 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6196 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6197 lt_cv_file_magic_cmd='$OBJDUMP -f'
6198 ;;
6199
6200 darwin* | rhapsody*)
6201 lt_cv_deplibs_check_method=pass_all
6202 ;;
6203
6204 freebsd* | kfreebsd*-gnu | dragonfly*)
6205 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6206 case $host_cpu in
6207 i*86 )
6208 # Not sure whether the presence of OpenBSD here was a mistake.
6209 # Let's accept both of them until this is cleared up.
6210 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6211 lt_cv_file_magic_cmd=/usr/bin/file
6212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6213 ;;
6214 esac
6215 else
6216 lt_cv_deplibs_check_method=pass_all
6217 fi
6218 ;;
6219
6220 gnu*)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223
6224 hpux10.20* | hpux11*)
6225 lt_cv_file_magic_cmd=/usr/bin/file
6226 case $host_cpu in
6227 ia64*)
6228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6230 ;;
6231 hppa*64*)
6232 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]'
6233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6234 ;;
6235 *)
6236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6238 ;;
6239 esac
6240 ;;
6241
6242 interix3*)
6243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6245 ;;
6246
6247 irix5* | irix6* | nonstopux*)
6248 case $LD in
6249 *-32|*"-32 ") libmagic=32-bit;;
6250 *-n32|*"-n32 ") libmagic=N32;;
6251 *-64|*"-64 ") libmagic=64-bit;;
6252 *) libmagic=never-match;;
6253 esac
6254 lt_cv_deplibs_check_method=pass_all
6255 ;;
6256
6257 # This must be Linux ELF.
6258 linux*)
6259 lt_cv_deplibs_check_method=pass_all
6260 ;;
6261
6262 netbsd*)
6263 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6265 else
6266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6267 fi
6268 ;;
6269
6270 newos6*)
6271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6272 lt_cv_file_magic_cmd=/usr/bin/file
6273 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6274 ;;
6275
6276 nto-qnx*)
6277 lt_cv_deplibs_check_method=unknown
6278 ;;
6279
6280 openbsd*)
6281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6283 else
6284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6285 fi
6286 ;;
6287
6288 osf3* | osf4* | osf5*)
6289 lt_cv_deplibs_check_method=pass_all
6290 ;;
6291
6292 solaris*)
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
6295
6296 sysv4 | sysv4.3*)
6297 case $host_vendor in
6298 motorola)
6299 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]'
6300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6301 ;;
6302 ncr)
6303 lt_cv_deplibs_check_method=pass_all
6304 ;;
6305 sequent)
6306 lt_cv_file_magic_cmd='/bin/file'
6307 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6308 ;;
6309 sni)
6310 lt_cv_file_magic_cmd='/bin/file'
6311 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6312 lt_cv_file_magic_test_file=/lib/libc.so
6313 ;;
6314 siemens)
6315 lt_cv_deplibs_check_method=pass_all
6316 ;;
6317 pc)
6318 lt_cv_deplibs_check_method=pass_all
6319 ;;
6320 esac
6321 ;;
6322
6323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6324 lt_cv_deplibs_check_method=pass_all
6325 ;;
6326 esac
6327
6328 fi
6329 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6330 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6331 file_magic_cmd=$lt_cv_file_magic_cmd
6332 deplibs_check_method=$lt_cv_deplibs_check_method
6333 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6334
6335
6336
6337
6338 # If no C compiler was specified, use CC.
6339 LTCC=${LTCC-"$CC"}
6340
6341 # If no C compiler flags were specified, use CFLAGS.
6342 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6343
6344 # Allow CC to be a program name with arguments.
6345 compiler=$CC
6346
6347 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6348 if test "${enable_libtool_lock+set}" = set; then
6349 enableval="$enable_libtool_lock"
6350
6351 fi;
6352 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6353
6354 # Some flags need to be propagated to the compiler or linker for good
6355 # libtool support.
6356 case $host in
6357 ia64-*-hpux*)
6358 # Find out which ABI we are using.
6359 echo 'int i;' > conftest.$ac_ext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361 (eval $ac_compile) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; then
6365 case `/usr/bin/file conftest.$ac_objext` in
6366 *ELF-32*)
6367 HPUX_IA64_MODE="32"
6368 ;;
6369 *ELF-64*)
6370 HPUX_IA64_MODE="64"
6371 ;;
6372 esac
6373 fi
6374 rm -rf conftest*
6375 ;;
6376 *-*-irix6*)
6377 # Find out which ABI we are using.
6378 echo '#line 6378 "configure"' > conftest.$ac_ext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380 (eval $ac_compile) 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; then
6384 if test "$lt_cv_prog_gnu_ld" = yes; then
6385 case `/usr/bin/file conftest.$ac_objext` in
6386 *32-bit*)
6387 LD="${LD-ld} -melf32bsmip"
6388 ;;
6389 *N32*)
6390 LD="${LD-ld} -melf32bmipn32"
6391 ;;
6392 *64-bit*)
6393 LD="${LD-ld} -melf64bmip"
6394 ;;
6395 esac
6396 else
6397 case `/usr/bin/file conftest.$ac_objext` in
6398 *32-bit*)
6399 LD="${LD-ld} -32"
6400 ;;
6401 *N32*)
6402 LD="${LD-ld} -n32"
6403 ;;
6404 *64-bit*)
6405 LD="${LD-ld} -64"
6406 ;;
6407 esac
6408 fi
6409 fi
6410 rm -rf conftest*
6411 ;;
6412
6413 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6414 # Find out which ABI we are using.
6415 echo 'int i;' > conftest.$ac_ext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417 (eval $ac_compile) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; then
6421 case `/usr/bin/file conftest.o` in
6422 *32-bit*)
6423 case $host in
6424 x86_64-*linux*)
6425 LD="${LD-ld} -m elf_i386"
6426 ;;
6427 ppc64-*linux*|powerpc64-*linux*)
6428 LD="${LD-ld} -m elf32ppclinux"
6429 ;;
6430 s390x-*linux*)
6431 LD="${LD-ld} -m elf_s390"
6432 ;;
6433 sparc64-*linux*)
6434 LD="${LD-ld} -m elf32_sparc"
6435 ;;
6436 esac
6437 ;;
6438 *64-bit*)
6439 case $host in
6440 x86_64-*linux*)
6441 LD="${LD-ld} -m elf_x86_64"
6442 ;;
6443 ppc*-*linux*|powerpc*-*linux*)
6444 LD="${LD-ld} -m elf64ppc"
6445 ;;
6446 s390*-*linux*)
6447 LD="${LD-ld} -m elf64_s390"
6448 ;;
6449 sparc*-*linux*)
6450 LD="${LD-ld} -m elf64_sparc"
6451 ;;
6452 esac
6453 ;;
6454 esac
6455 fi
6456 rm -rf conftest*
6457 ;;
6458
6459 *-*-sco3.2v5*)
6460 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6461 SAVE_CFLAGS="$CFLAGS"
6462 CFLAGS="$CFLAGS -belf"
6463 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6464 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6465 if test "${lt_cv_cc_needs_belf+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468 ac_ext=c
6469 ac_cpp='$CPP $CPPFLAGS'
6470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6473
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480
6481 int
6482 main ()
6483 {
6484
6485 ;
6486 return 0;
6487 }
6488 _ACEOF
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491 (eval $ac_link) 2>conftest.er1
6492 ac_status=$?
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -z "$ac_c_werror_flag"
6499 || test ! -s conftest.err'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try='test -s conftest$ac_exeext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 lt_cv_cc_needs_belf=yes
6512 else
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 lt_cv_cc_needs_belf=no
6517 fi
6518 rm -f conftest.err conftest.$ac_objext \
6519 conftest$ac_exeext conftest.$ac_ext
6520 ac_ext=c
6521 ac_cpp='$CPP $CPPFLAGS'
6522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6525
6526 fi
6527 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6528 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6529 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6530 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6531 CFLAGS="$SAVE_CFLAGS"
6532 fi
6533 ;;
6534 sparc*-*solaris*)
6535 # Find out which ABI we are using.
6536 echo 'int i;' > conftest.$ac_ext
6537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6538 (eval $ac_compile) 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; then
6542 case `/usr/bin/file conftest.o` in
6543 *64-bit*)
6544 case $lt_cv_prog_gnu_ld in
6545 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6546 *) LD="${LD-ld} -64" ;;
6547 esac
6548 ;;
6549 esac
6550 fi
6551 rm -rf conftest*
6552 ;;
6553
6554
6555 esac
6556
6557 need_locks="$enable_libtool_lock"
6558
6559
6560 ac_ext=c
6561 ac_cpp='$CPP $CPPFLAGS'
6562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6565 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6566 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6567 # On Suns, sometimes $CPP names a directory.
6568 if test -n "$CPP" && test -d "$CPP"; then
6569 CPP=
6570 fi
6571 if test -z "$CPP"; then
6572 if test "${ac_cv_prog_CPP+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575 # Double quotes because CPP needs to be expanded
6576 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6577 do
6578 ac_preproc_ok=false
6579 for ac_c_preproc_warn_flag in '' yes
6580 do
6581 # Use a header file that comes with gcc, so configuring glibc
6582 # with a fresh cross-compiler works.
6583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6584 # <limits.h> exists even on freestanding compilers.
6585 # On the NeXT, cc -E runs the code through the compiler's parser,
6586 # not just through cpp. "Syntax error" is here to catch this case.
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 #ifdef __STDC__
6594 # include <limits.h>
6595 #else
6596 # include <assert.h>
6597 #endif
6598 Syntax error
6599 _ACEOF
6600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } >/dev/null; then
6608 if test -s conftest.err; then
6609 ac_cpp_err=$ac_c_preproc_warn_flag
6610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6611 else
6612 ac_cpp_err=
6613 fi
6614 else
6615 ac_cpp_err=yes
6616 fi
6617 if test -z "$ac_cpp_err"; then
6618 :
6619 else
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623 # Broken: fails on valid input.
6624 continue
6625 fi
6626 rm -f conftest.err conftest.$ac_ext
6627
6628 # OK, works on sane cases. Now check whether non-existent headers
6629 # can be detected and how.
6630 cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h. */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6636 #include <ac_nonexistent.h>
6637 _ACEOF
6638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } >/dev/null; then
6646 if test -s conftest.err; then
6647 ac_cpp_err=$ac_c_preproc_warn_flag
6648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6649 else
6650 ac_cpp_err=
6651 fi
6652 else
6653 ac_cpp_err=yes
6654 fi
6655 if test -z "$ac_cpp_err"; then
6656 # Broken: success on invalid input.
6657 continue
6658 else
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6661
6662 # Passes both tests.
6663 ac_preproc_ok=:
6664 break
6665 fi
6666 rm -f conftest.err conftest.$ac_ext
6667
6668 done
6669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6670 rm -f conftest.err conftest.$ac_ext
6671 if $ac_preproc_ok; then
6672 break
6673 fi
6674
6675 done
6676 ac_cv_prog_CPP=$CPP
6677
6678 fi
6679 CPP=$ac_cv_prog_CPP
6680 else
6681 ac_cv_prog_CPP=$CPP
6682 fi
6683 echo "$as_me:$LINENO: result: $CPP" >&5
6684 echo "${ECHO_T}$CPP" >&6
6685 ac_preproc_ok=false
6686 for ac_c_preproc_warn_flag in '' yes
6687 do
6688 # Use a header file that comes with gcc, so configuring glibc
6689 # with a fresh cross-compiler works.
6690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6691 # <limits.h> exists even on freestanding compilers.
6692 # On the NeXT, cc -E runs the code through the compiler's parser,
6693 # not just through cpp. "Syntax error" is here to catch this case.
6694 cat >conftest.$ac_ext <<_ACEOF
6695 /* confdefs.h. */
6696 _ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h. */
6700 #ifdef __STDC__
6701 # include <limits.h>
6702 #else
6703 # include <assert.h>
6704 #endif
6705 Syntax error
6706 _ACEOF
6707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6709 ac_status=$?
6710 grep -v '^ *+' conftest.er1 >conftest.err
6711 rm -f conftest.er1
6712 cat conftest.err >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } >/dev/null; then
6715 if test -s conftest.err; then
6716 ac_cpp_err=$ac_c_preproc_warn_flag
6717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6718 else
6719 ac_cpp_err=
6720 fi
6721 else
6722 ac_cpp_err=yes
6723 fi
6724 if test -z "$ac_cpp_err"; then
6725 :
6726 else
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 # Broken: fails on valid input.
6731 continue
6732 fi
6733 rm -f conftest.err conftest.$ac_ext
6734
6735 # OK, works on sane cases. Now check whether non-existent headers
6736 # can be detected and how.
6737 cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h. */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 #include <ac_nonexistent.h>
6744 _ACEOF
6745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev/null; then
6753 if test -s conftest.err; then
6754 ac_cpp_err=$ac_c_preproc_warn_flag
6755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6756 else
6757 ac_cpp_err=
6758 fi
6759 else
6760 ac_cpp_err=yes
6761 fi
6762 if test -z "$ac_cpp_err"; then
6763 # Broken: success on invalid input.
6764 continue
6765 else
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6768
6769 # Passes both tests.
6770 ac_preproc_ok=:
6771 break
6772 fi
6773 rm -f conftest.err conftest.$ac_ext
6774
6775 done
6776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6777 rm -f conftest.err conftest.$ac_ext
6778 if $ac_preproc_ok; then
6779 :
6780 else
6781 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6782 See \`config.log' for more details." >&5
6783 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6784 See \`config.log' for more details." >&2;}
6785 { (exit 1); exit 1; }; }
6786 fi
6787
6788 ac_ext=c
6789 ac_cpp='$CPP $CPPFLAGS'
6790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6793
6794
6795 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6796 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6797 if test "${ac_cv_header_stdc+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800 cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h. */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 #include <stdlib.h>
6807 #include <stdarg.h>
6808 #include <string.h>
6809 #include <float.h>
6810
6811 int
6812 main ()
6813 {
6814
6815 ;
6816 return 0;
6817 }
6818 _ACEOF
6819 rm -f conftest.$ac_objext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6821 (eval $ac_compile) 2>conftest.er1
6822 ac_status=$?
6823 grep -v '^ *+' conftest.er1 >conftest.err
6824 rm -f conftest.er1
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } &&
6828 { ac_try='test -z "$ac_c_werror_flag"
6829 || test ! -s conftest.err'
6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 (eval $ac_try) 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; } &&
6835 { ac_try='test -s conftest.$ac_objext'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 (eval $ac_try) 2>&5
6838 ac_status=$?
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; }; then
6841 ac_cv_header_stdc=yes
6842 else
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6845
6846 ac_cv_header_stdc=no
6847 fi
6848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6849
6850 if test $ac_cv_header_stdc = yes; then
6851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6852 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h. */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 #include <string.h>
6859
6860 _ACEOF
6861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6862 $EGREP "memchr" >/dev/null 2>&1; then
6863 :
6864 else
6865 ac_cv_header_stdc=no
6866 fi
6867 rm -f conftest*
6868
6869 fi
6870
6871 if test $ac_cv_header_stdc = yes; then
6872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6873 cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h. */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 #include <stdlib.h>
6880
6881 _ACEOF
6882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6883 $EGREP "free" >/dev/null 2>&1; then
6884 :
6885 else
6886 ac_cv_header_stdc=no
6887 fi
6888 rm -f conftest*
6889
6890 fi
6891
6892 if test $ac_cv_header_stdc = yes; then
6893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6894 if test "$cross_compiling" = yes; then
6895 :
6896 else
6897 cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h. */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 #include <ctype.h>
6904 #if ((' ' & 0x0FF) == 0x020)
6905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6907 #else
6908 # define ISLOWER(c) \
6909 (('a' <= (c) && (c) <= 'i') \
6910 || ('j' <= (c) && (c) <= 'r') \
6911 || ('s' <= (c) && (c) <= 'z'))
6912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6913 #endif
6914
6915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6916 int
6917 main ()
6918 {
6919 int i;
6920 for (i = 0; i < 256; i++)
6921 if (XOR (islower (i), ISLOWER (i))
6922 || toupper (i) != TOUPPER (i))
6923 exit(2);
6924 exit (0);
6925 }
6926 _ACEOF
6927 rm -f conftest$ac_exeext
6928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6929 (eval $ac_link) 2>&5
6930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 (eval $ac_try) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 :
6939 else
6940 echo "$as_me: program exited with status $ac_status" >&5
6941 echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6943
6944 ( exit $ac_status )
6945 ac_cv_header_stdc=no
6946 fi
6947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6948 fi
6949 fi
6950 fi
6951 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6952 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6953 if test $ac_cv_header_stdc = yes; then
6954
6955 cat >>confdefs.h <<\_ACEOF
6956 #define STDC_HEADERS 1
6957 _ACEOF
6958
6959 fi
6960
6961 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6972 inttypes.h stdint.h unistd.h
6973 do
6974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6975 echo "$as_me:$LINENO: checking for $ac_header" >&5
6976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h. */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6986 $ac_includes_default
6987
6988 #include <$ac_header>
6989 _ACEOF
6990 rm -f conftest.$ac_objext
6991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6992 (eval $ac_compile) 2>conftest.er1
6993 ac_status=$?
6994 grep -v '^ *+' conftest.er1 >conftest.err
6995 rm -f conftest.er1
6996 cat conftest.err >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } &&
6999 { ac_try='test -z "$ac_c_werror_flag"
7000 || test ! -s conftest.err'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; } &&
7006 { ac_try='test -s conftest.$ac_objext'
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 (eval $ac_try) 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then
7012 eval "$as_ac_Header=yes"
7013 else
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7016
7017 eval "$as_ac_Header=no"
7018 fi
7019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7020 fi
7021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7024 cat >>confdefs.h <<_ACEOF
7025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7026 _ACEOF
7027
7028 fi
7029
7030 done
7031
7032
7033
7034 for ac_header in dlfcn.h
7035 do
7036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7038 echo "$as_me:$LINENO: checking for $ac_header" >&5
7039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 fi
7043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7045 else
7046 # Is the header compilable?
7047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7049 cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h. */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 $ac_includes_default
7056 #include <$ac_header>
7057 _ACEOF
7058 rm -f conftest.$ac_objext
7059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7060 (eval $ac_compile) 2>conftest.er1
7061 ac_status=$?
7062 grep -v '^ *+' conftest.er1 >conftest.err
7063 rm -f conftest.er1
7064 cat conftest.err >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } &&
7067 { ac_try='test -z "$ac_c_werror_flag"
7068 || test ! -s conftest.err'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 (eval $ac_try) 2>&5
7071 ac_status=$?
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; } &&
7074 { ac_try='test -s conftest.$ac_objext'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 (eval $ac_try) 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; }; then
7080 ac_header_compiler=yes
7081 else
7082 echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7084
7085 ac_header_compiler=no
7086 fi
7087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7089 echo "${ECHO_T}$ac_header_compiler" >&6
7090
7091 # Is the header present?
7092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7094 cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 #include <$ac_header>
7101 _ACEOF
7102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7104 ac_status=$?
7105 grep -v '^ *+' conftest.er1 >conftest.err
7106 rm -f conftest.er1
7107 cat conftest.err >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } >/dev/null; then
7110 if test -s conftest.err; then
7111 ac_cpp_err=$ac_c_preproc_warn_flag
7112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7113 else
7114 ac_cpp_err=
7115 fi
7116 else
7117 ac_cpp_err=yes
7118 fi
7119 if test -z "$ac_cpp_err"; then
7120 ac_header_preproc=yes
7121 else
7122 echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7124
7125 ac_header_preproc=no
7126 fi
7127 rm -f conftest.err conftest.$ac_ext
7128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7129 echo "${ECHO_T}$ac_header_preproc" >&6
7130
7131 # So? What about this header?
7132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7133 yes:no: )
7134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7138 ac_header_preproc=yes
7139 ;;
7140 no:yes:* )
7141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7153 (
7154 cat <<\_ASBOX
7155 ## ------------------------------------ ##
7156 ## Report this to [email protected] ##
7157 ## ------------------------------------ ##
7158 _ASBOX
7159 ) |
7160 sed "s/^/$as_me: WARNING: /" >&2
7161 ;;
7162 esac
7163 echo "$as_me:$LINENO: checking for $ac_header" >&5
7164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168 eval "$as_ac_Header=\$ac_header_preproc"
7169 fi
7170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7172
7173 fi
7174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7175 cat >>confdefs.h <<_ACEOF
7176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7177 _ACEOF
7178
7179 fi
7180
7181 done
7182
7183
7184
7185 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7186 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7187 (test "X$CXX" != "Xg++"))) ; then
7188 ac_ext=cc
7189 ac_cpp='$CXXCPP $CPPFLAGS'
7190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7193 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7194 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7195 if test -z "$CXXCPP"; then
7196 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199 # Double quotes because CXXCPP needs to be expanded
7200 for CXXCPP in "$CXX -E" "/lib/cpp"
7201 do
7202 ac_preproc_ok=false
7203 for ac_cxx_preproc_warn_flag in '' yes
7204 do
7205 # Use a header file that comes with gcc, so configuring glibc
7206 # with a fresh cross-compiler works.
7207 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7208 # <limits.h> exists even on freestanding compilers.
7209 # On the NeXT, cc -E runs the code through the compiler's parser,
7210 # not just through cpp. "Syntax error" is here to catch this case.
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 #ifdef __STDC__
7218 # include <limits.h>
7219 #else
7220 # include <assert.h>
7221 #endif
7222 Syntax error
7223 _ACEOF
7224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7226 ac_status=$?
7227 grep -v '^ *+' conftest.er1 >conftest.err
7228 rm -f conftest.er1
7229 cat conftest.err >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } >/dev/null; then
7232 if test -s conftest.err; then
7233 ac_cpp_err=$ac_cxx_preproc_warn_flag
7234 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7235 else
7236 ac_cpp_err=
7237 fi
7238 else
7239 ac_cpp_err=yes
7240 fi
7241 if test -z "$ac_cpp_err"; then
7242 :
7243 else
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7246
7247 # Broken: fails on valid input.
7248 continue
7249 fi
7250 rm -f conftest.err conftest.$ac_ext
7251
7252 # OK, works on sane cases. Now check whether non-existent headers
7253 # can be detected and how.
7254 cat >conftest.$ac_ext <<_ACEOF
7255 /* confdefs.h. */
7256 _ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260 #include <ac_nonexistent.h>
7261 _ACEOF
7262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7264 ac_status=$?
7265 grep -v '^ *+' conftest.er1 >conftest.err
7266 rm -f conftest.er1
7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } >/dev/null; then
7270 if test -s conftest.err; then
7271 ac_cpp_err=$ac_cxx_preproc_warn_flag
7272 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7273 else
7274 ac_cpp_err=
7275 fi
7276 else
7277 ac_cpp_err=yes
7278 fi
7279 if test -z "$ac_cpp_err"; then
7280 # Broken: success on invalid input.
7281 continue
7282 else
7283 echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.$ac_ext >&5
7285
7286 # Passes both tests.
7287 ac_preproc_ok=:
7288 break
7289 fi
7290 rm -f conftest.err conftest.$ac_ext
7291
7292 done
7293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7294 rm -f conftest.err conftest.$ac_ext
7295 if $ac_preproc_ok; then
7296 break
7297 fi
7298
7299 done
7300 ac_cv_prog_CXXCPP=$CXXCPP
7301
7302 fi
7303 CXXCPP=$ac_cv_prog_CXXCPP
7304 else
7305 ac_cv_prog_CXXCPP=$CXXCPP
7306 fi
7307 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7308 echo "${ECHO_T}$CXXCPP" >&6
7309 ac_preproc_ok=false
7310 for ac_cxx_preproc_warn_flag in '' yes
7311 do
7312 # Use a header file that comes with gcc, so configuring glibc
7313 # with a fresh cross-compiler works.
7314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7315 # <limits.h> exists even on freestanding compilers.
7316 # On the NeXT, cc -E runs the code through the compiler's parser,
7317 # not just through cpp. "Syntax error" is here to catch this case.
7318 cat >conftest.$ac_ext <<_ACEOF
7319 /* confdefs.h. */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7324 #ifdef __STDC__
7325 # include <limits.h>
7326 #else
7327 # include <assert.h>
7328 #endif
7329 Syntax error
7330 _ACEOF
7331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } >/dev/null; then
7339 if test -s conftest.err; then
7340 ac_cpp_err=$ac_cxx_preproc_warn_flag
7341 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7342 else
7343 ac_cpp_err=
7344 fi
7345 else
7346 ac_cpp_err=yes
7347 fi
7348 if test -z "$ac_cpp_err"; then
7349 :
7350 else
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354 # Broken: fails on valid input.
7355 continue
7356 fi
7357 rm -f conftest.err conftest.$ac_ext
7358
7359 # OK, works on sane cases. Now check whether non-existent headers
7360 # can be detected and how.
7361 cat >conftest.$ac_ext <<_ACEOF
7362 /* confdefs.h. */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 #include <ac_nonexistent.h>
7368 _ACEOF
7369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } >/dev/null; then
7377 if test -s conftest.err; then
7378 ac_cpp_err=$ac_cxx_preproc_warn_flag
7379 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7380 else
7381 ac_cpp_err=
7382 fi
7383 else
7384 ac_cpp_err=yes
7385 fi
7386 if test -z "$ac_cpp_err"; then
7387 # Broken: success on invalid input.
7388 continue
7389 else
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7392
7393 # Passes both tests.
7394 ac_preproc_ok=:
7395 break
7396 fi
7397 rm -f conftest.err conftest.$ac_ext
7398
7399 done
7400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7401 rm -f conftest.err conftest.$ac_ext
7402 if $ac_preproc_ok; then
7403 :
7404 else
7405 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7406 See \`config.log' for more details." >&5
7407 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7408 See \`config.log' for more details." >&2;}
7409 { (exit 1); exit 1; }; }
7410 fi
7411
7412 ac_ext=cc
7413 ac_cpp='$CXXCPP $CPPFLAGS'
7414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7417
7418 fi
7419
7420
7421 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7422
7423 # find the maximum length of command line arguments
7424 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7425 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7426 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429 i=0
7430 teststring="ABCD"
7431
7432 case $build_os in
7433 msdosdjgpp*)
7434 # On DJGPP, this test can blow up pretty badly due to problems in libc
7435 # (any single argument exceeding 2000 bytes causes a buffer overrun
7436 # during glob expansion). Even if it were fixed, the result of this
7437 # check would be larger than it should be.
7438 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7439 ;;
7440
7441 gnu*)
7442 # Under GNU Hurd, this test is not required because there is
7443 # no limit to the length of command line arguments.
7444 # Libtool will interpret -1 as no limit whatsoever
7445 lt_cv_sys_max_cmd_len=-1;
7446 ;;
7447
7448 cygwin* | mingw*)
7449 # On Win9x/ME, this test blows up -- it succeeds, but takes
7450 # about 5 minutes as the teststring grows exponentially.
7451 # Worse, since 9x/ME are not pre-emptively multitasking,
7452 # you end up with a "frozen" computer, even though with patience
7453 # the test eventually succeeds (with a max line length of 256k).
7454 # Instead, let's just punt: use the minimum linelength reported by
7455 # all of the supported platforms: 8192 (on NT/2K/XP).
7456 lt_cv_sys_max_cmd_len=8192;
7457 ;;
7458
7459 amigaos*)
7460 # On AmigaOS with pdksh, this test takes hours, literally.
7461 # So we just punt and use a minimum line length of 8192.
7462 lt_cv_sys_max_cmd_len=8192;
7463 ;;
7464
7465 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7466 # This has been around since 386BSD, at least. Likely further.
7467 if test -x /sbin/sysctl; then
7468 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7469 elif test -x /usr/sbin/sysctl; then
7470 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7471 else
7472 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7473 fi
7474 # And add a safety zone
7475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7477 ;;
7478
7479 interix*)
7480 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7481 lt_cv_sys_max_cmd_len=196608
7482 ;;
7483
7484 osf*)
7485 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7486 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7487 # nice to cause kernel panics so lets avoid the loop below.
7488 # First set a reasonable default.
7489 lt_cv_sys_max_cmd_len=16384
7490 #
7491 if test -x /sbin/sysconfig; then
7492 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7493 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7494 esac
7495 fi
7496 ;;
7497 sco3.2v5*)
7498 lt_cv_sys_max_cmd_len=102400
7499 ;;
7500 sysv5* | sco5v6* | sysv4.2uw2*)
7501 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7502 if test -n "$kargmax"; then
7503 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7504 else
7505 lt_cv_sys_max_cmd_len=32768
7506 fi
7507 ;;
7508 *)
7509 # If test is not a shell built-in, we'll probably end up computing a
7510 # maximum length that is only half of the actual maximum length, but
7511 # we can't tell.
7512 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7513 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7514 = "XX$teststring") >/dev/null 2>&1 &&
7515 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7516 lt_cv_sys_max_cmd_len=$new_result &&
7517 test $i != 17 # 1/2 MB should be enough
7518 do
7519 i=`expr $i + 1`
7520 teststring=$teststring$teststring
7521 done
7522 teststring=
7523 # Add a significant safety factor because C++ compilers can tack on massive
7524 # amounts of additional arguments before passing them to the linker.
7525 # It appears as though 1/2 is a usable value.
7526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7527 ;;
7528 esac
7529
7530 fi
7531
7532 if test -n $lt_cv_sys_max_cmd_len ; then
7533 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7534 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7535 else
7536 echo "$as_me:$LINENO: result: none" >&5
7537 echo "${ECHO_T}none" >&6
7538 fi
7539
7540
7541
7542
7543 # Check for command to grab the raw symbol name followed by C symbol from nm.
7544 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7545 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7546 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549
7550 # These are sane defaults that work on at least a few old systems.
7551 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7552
7553 # Character class describing NM global symbol codes.
7554 symcode='[BCDEGRST]'
7555
7556 # Regexp to match symbols that can be accessed directly from C.
7557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7558
7559 # Transform an extracted symbol line into a proper C declaration
7560 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7561
7562 # Transform an extracted symbol line into symbol name and symbol address
7563 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'"
7564
7565 # Define system-specific variables.
7566 case $host_os in
7567 aix*)
7568 symcode='[BCDT]'
7569 ;;
7570 cygwin* | mingw* | pw32*)
7571 symcode='[ABCDGISTW]'
7572 ;;
7573 hpux*) # Its linker distinguishes data from code symbols
7574 if test "$host_cpu" = ia64; then
7575 symcode='[ABCDEGRST]'
7576 fi
7577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7578 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'"
7579 ;;
7580 linux*)
7581 if test "$host_cpu" = ia64; then
7582 symcode='[ABCDGIRSTW]'
7583 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7584 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'"
7585 fi
7586 ;;
7587 irix* | nonstopux*)
7588 symcode='[BCDEGRST]'
7589 ;;
7590 osf*)
7591 symcode='[BCDEGQRST]'
7592 ;;
7593 solaris*)
7594 symcode='[BDRT]'
7595 ;;
7596 sco3.2v5*)
7597 symcode='[DT]'
7598 ;;
7599 sysv4.2uw2*)
7600 symcode='[DT]'
7601 ;;
7602 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7603 symcode='[ABDT]'
7604 ;;
7605 sysv4)
7606 symcode='[DFNSTU]'
7607 ;;
7608 esac
7609
7610 # Handle CRLF in mingw tool chain
7611 opt_cr=
7612 case $build_os in
7613 mingw*)
7614 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7615 ;;
7616 esac
7617
7618 # If we're using GNU nm, then use its standard symbol codes.
7619 case `$NM -V 2>&1` in
7620 *GNU* | *'with BFD'*)
7621 symcode='[ABCDGIRSTW]' ;;
7622 esac
7623
7624 # Try without a prefix undercore, then with it.
7625 for ac_symprfx in "" "_"; do
7626
7627 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7628 symxfrm="\\1 $ac_symprfx\\2 \\2"
7629
7630 # Write the raw and C identifiers.
7631 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7632
7633 # Check to see that the pipe works correctly.
7634 pipe_works=no
7635
7636 rm -f conftest*
7637 cat > conftest.$ac_ext <<EOF
7638 #ifdef __cplusplus
7639 extern "C" {
7640 #endif
7641 char nm_test_var;
7642 void nm_test_func(){}
7643 #ifdef __cplusplus
7644 }
7645 #endif
7646 int main(){nm_test_var='a';nm_test_func();return(0);}
7647 EOF
7648
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; then
7654 # Now try to grab the symbols.
7655 nlist=conftest.nm
7656 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7657 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } && test -s "$nlist"; then
7661 # Try sorting and uniquifying the output.
7662 if sort "$nlist" | uniq > "$nlist"T; then
7663 mv -f "$nlist"T "$nlist"
7664 else
7665 rm -f "$nlist"T
7666 fi
7667
7668 # Make sure that we snagged all the symbols we need.
7669 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7670 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7671 cat <<EOF > conftest.$ac_ext
7672 #ifdef __cplusplus
7673 extern "C" {
7674 #endif
7675
7676 EOF
7677 # Now generate the symbol file.
7678 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7679
7680 cat <<EOF >> conftest.$ac_ext
7681 #if defined (__STDC__) && __STDC__
7682 # define lt_ptr_t void *
7683 #else
7684 # define lt_ptr_t char *
7685 # define const
7686 #endif
7687
7688 /* The mapping between symbol names and symbols. */
7689 const struct {
7690 const char *name;
7691 lt_ptr_t address;
7692 }
7693 lt_preloaded_symbols[] =
7694 {
7695 EOF
7696 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7697 cat <<\EOF >> conftest.$ac_ext
7698 {0, (lt_ptr_t) 0}
7699 };
7700
7701 #ifdef __cplusplus
7702 }
7703 #endif
7704 EOF
7705 # Now try linking the two files.
7706 mv conftest.$ac_objext conftstm.$ac_objext
7707 lt_save_LIBS="$LIBS"
7708 lt_save_CFLAGS="$CFLAGS"
7709 LIBS="conftstm.$ac_objext"
7710 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7712 (eval $ac_link) 2>&5
7713 ac_status=$?
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7716 pipe_works=yes
7717 fi
7718 LIBS="$lt_save_LIBS"
7719 CFLAGS="$lt_save_CFLAGS"
7720 else
7721 echo "cannot find nm_test_func in $nlist" >&5
7722 fi
7723 else
7724 echo "cannot find nm_test_var in $nlist" >&5
7725 fi
7726 else
7727 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7728 fi
7729 else
7730 echo "$progname: failed program was:" >&5
7731 cat conftest.$ac_ext >&5
7732 fi
7733 rm -f conftest* conftst*
7734
7735 # Do not use the global_symbol_pipe unless it works.
7736 if test "$pipe_works" = yes; then
7737 break
7738 else
7739 lt_cv_sys_global_symbol_pipe=
7740 fi
7741 done
7742
7743 fi
7744
7745 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7746 lt_cv_sys_global_symbol_to_cdecl=
7747 fi
7748 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7749 echo "$as_me:$LINENO: result: failed" >&5
7750 echo "${ECHO_T}failed" >&6
7751 else
7752 echo "$as_me:$LINENO: result: ok" >&5
7753 echo "${ECHO_T}ok" >&6
7754 fi
7755
7756 echo "$as_me:$LINENO: checking for objdir" >&5
7757 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7758 if test "${lt_cv_objdir+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 else
7761 rm -f .libs 2>/dev/null
7762 mkdir .libs 2>/dev/null
7763 if test -d .libs; then
7764 lt_cv_objdir=.libs
7765 else
7766 # MS-DOS does not allow filenames that begin with a dot.
7767 lt_cv_objdir=_libs
7768 fi
7769 rmdir .libs 2>/dev/null
7770 fi
7771 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7772 echo "${ECHO_T}$lt_cv_objdir" >&6
7773 objdir=$lt_cv_objdir
7774
7775
7776
7777
7778
7779 case $host_os in
7780 aix3*)
7781 # AIX sometimes has problems with the GCC collect2 program. For some
7782 # reason, if we set the COLLECT_NAMES environment variable, the problems
7783 # vanish in a puff of smoke.
7784 if test "X${COLLECT_NAMES+set}" != Xset; then
7785 COLLECT_NAMES=
7786 export COLLECT_NAMES
7787 fi
7788 ;;
7789 esac
7790
7791 # Sed substitution that helps us do robust quoting. It backslashifies
7792 # metacharacters that are still active within double-quoted strings.
7793 Xsed='sed -e 1s/^X//'
7794 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7795
7796 # Same as above, but do not quote variable references.
7797 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7798
7799 # Sed substitution to delay expansion of an escaped shell variable in a
7800 # double_quote_subst'ed string.
7801 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7802
7803 # Sed substitution to avoid accidental globbing in evaled expressions
7804 no_glob_subst='s/\*/\\\*/g'
7805
7806 # Constants:
7807 rm="rm -f"
7808
7809 # Global variables:
7810 default_ofile=libtool
7811 can_build_shared=yes
7812
7813 # All known linkers require a `.a' archive for static linking (except MSVC,
7814 # which needs '.lib').
7815 libext=a
7816 ltmain="$ac_aux_dir/ltmain.sh"
7817 ofile="$default_ofile"
7818 with_gnu_ld="$lt_cv_prog_gnu_ld"
7819
7820 if test -n "$ac_tool_prefix"; then
7821 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7822 set dummy ${ac_tool_prefix}ar; ac_word=$2
7823 echo "$as_me:$LINENO: checking for $ac_word" >&5
7824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7825 if test "${ac_cv_prog_AR+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828 if test -n "$AR"; then
7829 ac_cv_prog_AR="$AR" # Let the user override the test.
7830 else
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 for as_dir in $PATH
7833 do
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838 ac_cv_prog_AR="${ac_tool_prefix}ar"
7839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 break 2
7841 fi
7842 done
7843 done
7844
7845 fi
7846 fi
7847 AR=$ac_cv_prog_AR
7848 if test -n "$AR"; then
7849 echo "$as_me:$LINENO: result: $AR" >&5
7850 echo "${ECHO_T}$AR" >&6
7851 else
7852 echo "$as_me:$LINENO: result: no" >&5
7853 echo "${ECHO_T}no" >&6
7854 fi
7855
7856 fi
7857 if test -z "$ac_cv_prog_AR"; then
7858 ac_ct_AR=$AR
7859 # Extract the first word of "ar", so it can be a program name with args.
7860 set dummy ar; ac_word=$2
7861 echo "$as_me:$LINENO: checking for $ac_word" >&5
7862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7863 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866 if test -n "$ac_ct_AR"; then
7867 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_ac_ct_AR="ar"
7877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7879 fi
7880 done
7881 done
7882
7883 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7884 fi
7885 fi
7886 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7887 if test -n "$ac_ct_AR"; then
7888 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7889 echo "${ECHO_T}$ac_ct_AR" >&6
7890 else
7891 echo "$as_me:$LINENO: result: no" >&5
7892 echo "${ECHO_T}no" >&6
7893 fi
7894
7895 AR=$ac_ct_AR
7896 else
7897 AR="$ac_cv_prog_AR"
7898 fi
7899
7900 if test -n "$ac_tool_prefix"; then
7901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7903 echo "$as_me:$LINENO: checking for $ac_word" >&5
7904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7905 if test "${ac_cv_prog_RANLIB+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908 if test -n "$RANLIB"; then
7909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7921 fi
7922 done
7923 done
7924
7925 fi
7926 fi
7927 RANLIB=$ac_cv_prog_RANLIB
7928 if test -n "$RANLIB"; then
7929 echo "$as_me:$LINENO: result: $RANLIB" >&5
7930 echo "${ECHO_T}$RANLIB" >&6
7931 else
7932 echo "$as_me:$LINENO: result: no" >&5
7933 echo "${ECHO_T}no" >&6
7934 fi
7935
7936 fi
7937 if test -z "$ac_cv_prog_RANLIB"; then
7938 ac_ct_RANLIB=$RANLIB
7939 # Extract the first word of "ranlib", so it can be a program name with args.
7940 set dummy ranlib; ac_word=$2
7941 echo "$as_me:$LINENO: checking for $ac_word" >&5
7942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946 if test -n "$ac_ct_RANLIB"; then
7947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7951 do
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_prog_ac_ct_RANLIB="ranlib"
7957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7959 fi
7960 done
7961 done
7962
7963 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7964 fi
7965 fi
7966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7967 if test -n "$ac_ct_RANLIB"; then
7968 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7969 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7970 else
7971 echo "$as_me:$LINENO: result: no" >&5
7972 echo "${ECHO_T}no" >&6
7973 fi
7974
7975 RANLIB=$ac_ct_RANLIB
7976 else
7977 RANLIB="$ac_cv_prog_RANLIB"
7978 fi
7979
7980 if test -n "$ac_tool_prefix"; then
7981 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7982 set dummy ${ac_tool_prefix}strip; ac_word=$2
7983 echo "$as_me:$LINENO: checking for $ac_word" >&5
7984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7985 if test "${ac_cv_prog_STRIP+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988 if test -n "$STRIP"; then
7989 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002 done
8003 done
8004
8005 fi
8006 fi
8007 STRIP=$ac_cv_prog_STRIP
8008 if test -n "$STRIP"; then
8009 echo "$as_me:$LINENO: result: $STRIP" >&5
8010 echo "${ECHO_T}$STRIP" >&6
8011 else
8012 echo "$as_me:$LINENO: result: no" >&5
8013 echo "${ECHO_T}no" >&6
8014 fi
8015
8016 fi
8017 if test -z "$ac_cv_prog_STRIP"; then
8018 ac_ct_STRIP=$STRIP
8019 # Extract the first word of "strip", so it can be a program name with args.
8020 set dummy strip; ac_word=$2
8021 echo "$as_me:$LINENO: checking for $ac_word" >&5
8022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8023 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026 if test -n "$ac_ct_STRIP"; then
8027 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_ac_ct_STRIP="strip"
8037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040 done
8041 done
8042
8043 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8044 fi
8045 fi
8046 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8047 if test -n "$ac_ct_STRIP"; then
8048 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8049 echo "${ECHO_T}$ac_ct_STRIP" >&6
8050 else
8051 echo "$as_me:$LINENO: result: no" >&5
8052 echo "${ECHO_T}no" >&6
8053 fi
8054
8055 STRIP=$ac_ct_STRIP
8056 else
8057 STRIP="$ac_cv_prog_STRIP"
8058 fi
8059
8060
8061 old_CC="$CC"
8062 old_CFLAGS="$CFLAGS"
8063
8064 # Set sane defaults for various variables
8065 test -z "$AR" && AR=ar
8066 test -z "$AR_FLAGS" && AR_FLAGS=cru
8067 test -z "$AS" && AS=as
8068 test -z "$CC" && CC=cc
8069 test -z "$LTCC" && LTCC=$CC
8070 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8071 test -z "$DLLTOOL" && DLLTOOL=dlltool
8072 test -z "$LD" && LD=ld
8073 test -z "$LN_S" && LN_S="ln -s"
8074 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8075 test -z "$NM" && NM=nm
8076 test -z "$SED" && SED=sed
8077 test -z "$OBJDUMP" && OBJDUMP=objdump
8078 test -z "$RANLIB" && RANLIB=:
8079 test -z "$STRIP" && STRIP=:
8080 test -z "$ac_objext" && ac_objext=o
8081
8082 # Determine commands to create old-style static archives.
8083 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8084 old_postinstall_cmds='chmod 644 $oldlib'
8085 old_postuninstall_cmds=
8086
8087 if test -n "$RANLIB"; then
8088 case $host_os in
8089 openbsd*)
8090 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8091 ;;
8092 *)
8093 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8094 ;;
8095 esac
8096 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8097 fi
8098
8099 for cc_temp in $compiler""; do
8100 case $cc_temp in
8101 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8102 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8103 \-*) ;;
8104 *) break;;
8105 esac
8106 done
8107 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8108
8109
8110 # Only perform the check for file, if the check method requires it
8111 case $deplibs_check_method in
8112 file_magic*)
8113 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8114 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8115 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8116 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 else
8119 case $MAGIC_CMD in
8120 [\\/*] | ?:[\\/]*)
8121 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8122 ;;
8123 *)
8124 lt_save_MAGIC_CMD="$MAGIC_CMD"
8125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8126 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8127 for ac_dir in $ac_dummy; do
8128 IFS="$lt_save_ifs"
8129 test -z "$ac_dir" && ac_dir=.
8130 if test -f $ac_dir/${ac_tool_prefix}file; then
8131 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8132 if test -n "$file_magic_test_file"; then
8133 case $deplibs_check_method in
8134 "file_magic "*)
8135 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8138 $EGREP "$file_magic_regex" > /dev/null; then
8139 :
8140 else
8141 cat <<EOF 1>&2
8142
8143 *** Warning: the command libtool uses to detect shared libraries,
8144 *** $file_magic_cmd, produces output that libtool cannot recognize.
8145 *** The result is that libtool may fail to recognize shared libraries
8146 *** as such. This will affect the creation of libtool libraries that
8147 *** depend on shared libraries, but programs linked with such libtool
8148 *** libraries will work regardless of this problem. Nevertheless, you
8149 *** may want to report the problem to your system manager and/or to
8150 *** [email protected]
8151
8152 EOF
8153 fi ;;
8154 esac
8155 fi
8156 break
8157 fi
8158 done
8159 IFS="$lt_save_ifs"
8160 MAGIC_CMD="$lt_save_MAGIC_CMD"
8161 ;;
8162 esac
8163 fi
8164
8165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8166 if test -n "$MAGIC_CMD"; then
8167 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8168 echo "${ECHO_T}$MAGIC_CMD" >&6
8169 else
8170 echo "$as_me:$LINENO: result: no" >&5
8171 echo "${ECHO_T}no" >&6
8172 fi
8173
8174 if test -z "$lt_cv_path_MAGIC_CMD"; then
8175 if test -n "$ac_tool_prefix"; then
8176 echo "$as_me:$LINENO: checking for file" >&5
8177 echo $ECHO_N "checking for file... $ECHO_C" >&6
8178 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181 case $MAGIC_CMD in
8182 [\\/*] | ?:[\\/]*)
8183 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8184 ;;
8185 *)
8186 lt_save_MAGIC_CMD="$MAGIC_CMD"
8187 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8188 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8189 for ac_dir in $ac_dummy; do
8190 IFS="$lt_save_ifs"
8191 test -z "$ac_dir" && ac_dir=.
8192 if test -f $ac_dir/file; then
8193 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8194 if test -n "$file_magic_test_file"; then
8195 case $deplibs_check_method in
8196 "file_magic "*)
8197 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8199 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8200 $EGREP "$file_magic_regex" > /dev/null; then
8201 :
8202 else
8203 cat <<EOF 1>&2
8204
8205 *** Warning: the command libtool uses to detect shared libraries,
8206 *** $file_magic_cmd, produces output that libtool cannot recognize.
8207 *** The result is that libtool may fail to recognize shared libraries
8208 *** as such. This will affect the creation of libtool libraries that
8209 *** depend on shared libraries, but programs linked with such libtool
8210 *** libraries will work regardless of this problem. Nevertheless, you
8211 *** may want to report the problem to your system manager and/or to
8212 *** [email protected]
8213
8214 EOF
8215 fi ;;
8216 esac
8217 fi
8218 break
8219 fi
8220 done
8221 IFS="$lt_save_ifs"
8222 MAGIC_CMD="$lt_save_MAGIC_CMD"
8223 ;;
8224 esac
8225 fi
8226
8227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8228 if test -n "$MAGIC_CMD"; then
8229 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8230 echo "${ECHO_T}$MAGIC_CMD" >&6
8231 else
8232 echo "$as_me:$LINENO: result: no" >&5
8233 echo "${ECHO_T}no" >&6
8234 fi
8235
8236 else
8237 MAGIC_CMD=:
8238 fi
8239 fi
8240
8241 fi
8242 ;;
8243 esac
8244
8245 enable_dlopen=no
8246 enable_win32_dll=no
8247
8248 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8249 if test "${enable_libtool_lock+set}" = set; then
8250 enableval="$enable_libtool_lock"
8251
8252 fi;
8253 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8254
8255
8256 # Check whether --with-pic or --without-pic was given.
8257 if test "${with_pic+set}" = set; then
8258 withval="$with_pic"
8259 pic_mode="$withval"
8260 else
8261 pic_mode=default
8262 fi;
8263 test -z "$pic_mode" && pic_mode=default
8264
8265 # Use C for the default configuration in the libtool script
8266 tagname=
8267 lt_save_CC="$CC"
8268 ac_ext=c
8269 ac_cpp='$CPP $CPPFLAGS'
8270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8273
8274
8275 # Source file extension for C test sources.
8276 ac_ext=c
8277
8278 # Object file extension for compiled C test sources.
8279 objext=o
8280 objext=$objext
8281
8282 # Code to be used in simple compile tests
8283 lt_simple_compile_test_code="int some_variable = 0;\n"
8284
8285 # Code to be used in simple link tests
8286 lt_simple_link_test_code='int main(){return(0);}\n'
8287
8288
8289 # If no C compiler was specified, use CC.
8290 LTCC=${LTCC-"$CC"}
8291
8292 # If no C compiler flags were specified, use CFLAGS.
8293 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8294
8295 # Allow CC to be a program name with arguments.
8296 compiler=$CC
8297
8298
8299 # save warnings/boilerplate of simple test code
8300 ac_outfile=conftest.$ac_objext
8301 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8302 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8303 _lt_compiler_boilerplate=`cat conftest.err`
8304 $rm conftest*
8305
8306 ac_outfile=conftest.$ac_objext
8307 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8308 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8309 _lt_linker_boilerplate=`cat conftest.err`
8310 $rm conftest*
8311
8312
8313 ## CAVEAT EMPTOR:
8314 ## There is no encapsulation within the following macros, do not change
8315 ## the running order or otherwise move them around unless you know exactly
8316 ## what you are doing...
8317
8318 lt_prog_compiler_no_builtin_flag=
8319
8320 if test "$GCC" = yes; then
8321 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8322
8323
8324 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8325 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8326 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
8328 else
8329 lt_cv_prog_compiler_rtti_exceptions=no
8330 ac_outfile=conftest.$ac_objext
8331 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8332 lt_compiler_flag="-fno-rtti -fno-exceptions"
8333 # Insert the option either (1) after the last *FLAGS variable, or
8334 # (2) before a word containing "conftest.", or (3) at the end.
8335 # Note that $ac_compile itself does not contain backslashes and begins
8336 # with a dollar sign (not a hyphen), so the echo should work correctly.
8337 # The option is referenced via a variable to avoid confusing sed.
8338 lt_compile=`echo "$ac_compile" | $SED \
8339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8341 -e 's:$: $lt_compiler_flag:'`
8342 (eval echo "\"\$as_me:8342: $lt_compile\"" >&5)
8343 (eval "$lt_compile" 2>conftest.err)
8344 ac_status=$?
8345 cat conftest.err >&5
8346 echo "$as_me:8346: \$? = $ac_status" >&5
8347 if (exit $ac_status) && test -s "$ac_outfile"; then
8348 # The compiler can only warn and ignore the option if not recognized
8349 # So say no if there are warnings other than the usual output.
8350 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8353 lt_cv_prog_compiler_rtti_exceptions=yes
8354 fi
8355 fi
8356 $rm conftest*
8357
8358 fi
8359 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8360 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8361
8362 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8363 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8364 else
8365 :
8366 fi
8367
8368 fi
8369
8370 lt_prog_compiler_wl=
8371 lt_prog_compiler_pic=
8372 lt_prog_compiler_static=
8373
8374 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8375 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8376
8377 if test "$GCC" = yes; then
8378 lt_prog_compiler_wl='-Wl,'
8379 lt_prog_compiler_static='-static'
8380
8381 case $host_os in
8382 aix*)
8383 # All AIX code is PIC.
8384 if test "$host_cpu" = ia64; then
8385 # AIX 5 now supports IA64 processor
8386 lt_prog_compiler_static='-Bstatic'
8387 fi
8388 ;;
8389
8390 amigaos*)
8391 # FIXME: we need at least 68020 code to build shared libraries, but
8392 # adding the `-m68020' flag to GCC prevents building anything better,
8393 # like `-m68040'.
8394 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8395 ;;
8396
8397 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8398 # PIC is the default for these OSes.
8399 ;;
8400
8401 mingw* | pw32* | os2*)
8402 # This hack is so that the source file can tell whether it is being
8403 # built for inclusion in a dll (and should export symbols for example).
8404 lt_prog_compiler_pic='-DDLL_EXPORT'
8405 ;;
8406
8407 darwin* | rhapsody*)
8408 # PIC is the default on this platform
8409 # Common symbols not allowed in MH_DYLIB files
8410 lt_prog_compiler_pic='-fno-common'
8411 ;;
8412
8413 interix3*)
8414 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8415 # Instead, we relocate shared libraries at runtime.
8416 ;;
8417
8418 msdosdjgpp*)
8419 # Just because we use GCC doesn't mean we suddenly get shared libraries
8420 # on systems that don't support them.
8421 lt_prog_compiler_can_build_shared=no
8422 enable_shared=no
8423 ;;
8424
8425 sysv4*MP*)
8426 if test -d /usr/nec; then
8427 lt_prog_compiler_pic=-Kconform_pic
8428 fi
8429 ;;
8430
8431 hpux*)
8432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8433 # not for PA HP-UX.
8434 case $host_cpu in
8435 hppa*64*|ia64*)
8436 # +Z the default
8437 ;;
8438 *)
8439 lt_prog_compiler_pic='-fPIC'
8440 ;;
8441 esac
8442 ;;
8443
8444 *)
8445 lt_prog_compiler_pic='-fPIC'
8446 ;;
8447 esac
8448 else
8449 # PORTME Check for flag to pass linker flags through the system compiler.
8450 case $host_os in
8451 aix*)
8452 lt_prog_compiler_wl='-Wl,'
8453 if test "$host_cpu" = ia64; then
8454 # AIX 5 now supports IA64 processor
8455 lt_prog_compiler_static='-Bstatic'
8456 else
8457 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8458 fi
8459 ;;
8460 darwin*)
8461 # PIC is the default on this platform
8462 # Common symbols not allowed in MH_DYLIB files
8463 case $cc_basename in
8464 xlc*)
8465 lt_prog_compiler_pic='-qnocommon'
8466 lt_prog_compiler_wl='-Wl,'
8467 ;;
8468 esac
8469 ;;
8470
8471 mingw* | pw32* | os2*)
8472 # This hack is so that the source file can tell whether it is being
8473 # built for inclusion in a dll (and should export symbols for example).
8474 lt_prog_compiler_pic='-DDLL_EXPORT'
8475 ;;
8476
8477 hpux9* | hpux10* | hpux11*)
8478 lt_prog_compiler_wl='-Wl,'
8479 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8480 # not for PA HP-UX.
8481 case $host_cpu in
8482 hppa*64*|ia64*)
8483 # +Z the default
8484 ;;
8485 *)
8486 lt_prog_compiler_pic='+Z'
8487 ;;
8488 esac
8489 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8490 lt_prog_compiler_static='${wl}-a ${wl}archive'
8491 ;;
8492
8493 irix5* | irix6* | nonstopux*)
8494 lt_prog_compiler_wl='-Wl,'
8495 # PIC (with -KPIC) is the default.
8496 lt_prog_compiler_static='-non_shared'
8497 ;;
8498
8499 newsos6)
8500 lt_prog_compiler_pic='-KPIC'
8501 lt_prog_compiler_static='-Bstatic'
8502 ;;
8503
8504 linux*)
8505 case $cc_basename in
8506 icc* | ecc*)
8507 lt_prog_compiler_wl='-Wl,'
8508 lt_prog_compiler_pic='-KPIC'
8509 lt_prog_compiler_static='-static'
8510 ;;
8511 pgcc* | pgf77* | pgf90* | pgf95*)
8512 # Portland Group compilers (*not* the Pentium gcc compiler,
8513 # which looks to be a dead project)
8514 lt_prog_compiler_wl='-Wl,'
8515 lt_prog_compiler_pic='-fpic'
8516 lt_prog_compiler_static='-Bstatic'
8517 ;;
8518 ccc*)
8519 lt_prog_compiler_wl='-Wl,'
8520 # All Alpha code is PIC.
8521 lt_prog_compiler_static='-non_shared'
8522 ;;
8523 esac
8524 ;;
8525
8526 osf3* | osf4* | osf5*)
8527 lt_prog_compiler_wl='-Wl,'
8528 # All OSF/1 code is PIC.
8529 lt_prog_compiler_static='-non_shared'
8530 ;;
8531
8532 solaris*)
8533 lt_prog_compiler_pic='-KPIC'
8534 lt_prog_compiler_static='-Bstatic'
8535 case $cc_basename in
8536 f77* | f90* | f95*)
8537 lt_prog_compiler_wl='-Qoption ld ';;
8538 *)
8539 lt_prog_compiler_wl='-Wl,';;
8540 esac
8541 ;;
8542
8543 sunos4*)
8544 lt_prog_compiler_wl='-Qoption ld '
8545 lt_prog_compiler_pic='-PIC'
8546 lt_prog_compiler_static='-Bstatic'
8547 ;;
8548
8549 sysv4 | sysv4.2uw2* | sysv4.3*)
8550 lt_prog_compiler_wl='-Wl,'
8551 lt_prog_compiler_pic='-KPIC'
8552 lt_prog_compiler_static='-Bstatic'
8553 ;;
8554
8555 sysv4*MP*)
8556 if test -d /usr/nec ;then
8557 lt_prog_compiler_pic='-Kconform_pic'
8558 lt_prog_compiler_static='-Bstatic'
8559 fi
8560 ;;
8561
8562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_pic='-KPIC'
8565 lt_prog_compiler_static='-Bstatic'
8566 ;;
8567
8568 unicos*)
8569 lt_prog_compiler_wl='-Wl,'
8570 lt_prog_compiler_can_build_shared=no
8571 ;;
8572
8573 uts4*)
8574 lt_prog_compiler_pic='-pic'
8575 lt_prog_compiler_static='-Bstatic'
8576 ;;
8577
8578 *)
8579 lt_prog_compiler_can_build_shared=no
8580 ;;
8581 esac
8582 fi
8583
8584 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8585 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8586
8587 #
8588 # Check to make sure the PIC flag actually works.
8589 #
8590 if test -n "$lt_prog_compiler_pic"; then
8591
8592 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8593 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8594 if test "${lt_prog_compiler_pic_works+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597 lt_prog_compiler_pic_works=no
8598 ac_outfile=conftest.$ac_objext
8599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8600 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8601 # Insert the option either (1) after the last *FLAGS variable, or
8602 # (2) before a word containing "conftest.", or (3) at the end.
8603 # Note that $ac_compile itself does not contain backslashes and begins
8604 # with a dollar sign (not a hyphen), so the echo should work correctly.
8605 # The option is referenced via a variable to avoid confusing sed.
8606 lt_compile=`echo "$ac_compile" | $SED \
8607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8609 -e 's:$: $lt_compiler_flag:'`
8610 (eval echo "\"\$as_me:8610: $lt_compile\"" >&5)
8611 (eval "$lt_compile" 2>conftest.err)
8612 ac_status=$?
8613 cat conftest.err >&5
8614 echo "$as_me:8614: \$? = $ac_status" >&5
8615 if (exit $ac_status) && test -s "$ac_outfile"; then
8616 # The compiler can only warn and ignore the option if not recognized
8617 # So say no if there are warnings other than the usual output.
8618 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8620 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8621 lt_prog_compiler_pic_works=yes
8622 fi
8623 fi
8624 $rm conftest*
8625
8626 fi
8627 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8628 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8629
8630 if test x"$lt_prog_compiler_pic_works" = xyes; then
8631 case $lt_prog_compiler_pic in
8632 "" | " "*) ;;
8633 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8634 esac
8635 else
8636 lt_prog_compiler_pic=
8637 lt_prog_compiler_can_build_shared=no
8638 fi
8639
8640 fi
8641 case $host_os in
8642 # For platforms which do not support PIC, -DPIC is meaningless:
8643 *djgpp*)
8644 lt_prog_compiler_pic=
8645 ;;
8646 *)
8647 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8648 ;;
8649 esac
8650
8651 #
8652 # Check to make sure the static flag actually works.
8653 #
8654 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8655 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8656 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8657 if test "${lt_prog_compiler_static_works+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660 lt_prog_compiler_static_works=no
8661 save_LDFLAGS="$LDFLAGS"
8662 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8663 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8664 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8665 # The linker can only warn and ignore the option if not recognized
8666 # So say no if there are warnings
8667 if test -s conftest.err; then
8668 # Append any errors to the config.log.
8669 cat conftest.err 1>&5
8670 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8672 if diff conftest.exp conftest.er2 >/dev/null; then
8673 lt_prog_compiler_static_works=yes
8674 fi
8675 else
8676 lt_prog_compiler_static_works=yes
8677 fi
8678 fi
8679 $rm conftest*
8680 LDFLAGS="$save_LDFLAGS"
8681
8682 fi
8683 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8684 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8685
8686 if test x"$lt_prog_compiler_static_works" = xyes; then
8687 :
8688 else
8689 lt_prog_compiler_static=
8690 fi
8691
8692
8693 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8694 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8695 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698 lt_cv_prog_compiler_c_o=no
8699 $rm -r conftest 2>/dev/null
8700 mkdir conftest
8701 cd conftest
8702 mkdir out
8703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8704
8705 lt_compiler_flag="-o out/conftest2.$ac_objext"
8706 # Insert the option either (1) after the last *FLAGS variable, or
8707 # (2) before a word containing "conftest.", or (3) at the end.
8708 # Note that $ac_compile itself does not contain backslashes and begins
8709 # with a dollar sign (not a hyphen), so the echo should work correctly.
8710 lt_compile=`echo "$ac_compile" | $SED \
8711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8713 -e 's:$: $lt_compiler_flag:'`
8714 (eval echo "\"\$as_me:8714: $lt_compile\"" >&5)
8715 (eval "$lt_compile" 2>out/conftest.err)
8716 ac_status=$?
8717 cat out/conftest.err >&5
8718 echo "$as_me:8718: \$? = $ac_status" >&5
8719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8720 then
8721 # The compiler can only warn and ignore the option if not recognized
8722 # So say no if there are warnings
8723 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8726 lt_cv_prog_compiler_c_o=yes
8727 fi
8728 fi
8729 chmod u+w . 2>&5
8730 $rm conftest*
8731 # SGI C++ compiler will create directory out/ii_files/ for
8732 # template instantiation
8733 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8734 $rm out/* && rmdir out
8735 cd ..
8736 rmdir conftest
8737 $rm conftest*
8738
8739 fi
8740 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8741 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8742
8743
8744 hard_links="nottested"
8745 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8746 # do not overwrite the value of need_locks provided by the user
8747 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8748 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8749 hard_links=yes
8750 $rm conftest*
8751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8752 touch conftest.a
8753 ln conftest.a conftest.b 2>&5 || hard_links=no
8754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8755 echo "$as_me:$LINENO: result: $hard_links" >&5
8756 echo "${ECHO_T}$hard_links" >&6
8757 if test "$hard_links" = no; then
8758 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8759 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8760 need_locks=warn
8761 fi
8762 else
8763 need_locks=no
8764 fi
8765
8766 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8767 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8768
8769 runpath_var=
8770 allow_undefined_flag=
8771 enable_shared_with_static_runtimes=no
8772 archive_cmds=
8773 archive_expsym_cmds=
8774 old_archive_From_new_cmds=
8775 old_archive_from_expsyms_cmds=
8776 export_dynamic_flag_spec=
8777 whole_archive_flag_spec=
8778 thread_safe_flag_spec=
8779 hardcode_libdir_flag_spec=
8780 hardcode_libdir_flag_spec_ld=
8781 hardcode_libdir_separator=
8782 hardcode_direct=no
8783 hardcode_minus_L=no
8784 hardcode_shlibpath_var=unsupported
8785 link_all_deplibs=unknown
8786 hardcode_automatic=no
8787 module_cmds=
8788 module_expsym_cmds=
8789 always_export_symbols=no
8790 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8791 # include_expsyms should be a list of space-separated symbols to be *always*
8792 # included in the symbol list
8793 include_expsyms=
8794 # exclude_expsyms can be an extended regexp of symbols to exclude
8795 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8796 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8797 # as well as any symbol that contains `d'.
8798 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8799 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8800 # platforms (ab)use it in PIC code, but their linkers get confused if
8801 # the symbol is explicitly referenced. Since portable code cannot
8802 # rely on this symbol name, it's probably fine to never include it in
8803 # preloaded symbol tables.
8804 extract_expsyms_cmds=
8805 # Just being paranoid about ensuring that cc_basename is set.
8806 for cc_temp in $compiler""; do
8807 case $cc_temp in
8808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8810 \-*) ;;
8811 *) break;;
8812 esac
8813 done
8814 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8815
8816 case $host_os in
8817 cygwin* | mingw* | pw32*)
8818 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8819 # When not using gcc, we currently assume that we are using
8820 # Microsoft Visual C++.
8821 if test "$GCC" != yes; then
8822 with_gnu_ld=no
8823 fi
8824 ;;
8825 interix*)
8826 # we just hope/assume this is gcc and not c89 (= MSVC++)
8827 with_gnu_ld=yes
8828 ;;
8829 openbsd*)
8830 with_gnu_ld=no
8831 ;;
8832 esac
8833
8834 ld_shlibs=yes
8835 if test "$with_gnu_ld" = yes; then
8836 # If archive_cmds runs LD, not CC, wlarc should be empty
8837 wlarc='${wl}'
8838
8839 # Set some defaults for GNU ld with shared library support. These
8840 # are reset later if shared libraries are not supported. Putting them
8841 # here allows them to be overridden if necessary.
8842 runpath_var=LD_RUN_PATH
8843 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8844 export_dynamic_flag_spec='${wl}--export-dynamic'
8845 # ancient GNU ld didn't support --whole-archive et. al.
8846 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8847 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8848 else
8849 whole_archive_flag_spec=
8850 fi
8851 supports_anon_versioning=no
8852 case `$LD -v 2>/dev/null` in
8853 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8854 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8855 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8856 *\ 2.11.*) ;; # other 2.11 versions
8857 *) supports_anon_versioning=yes ;;
8858 esac
8859
8860 # See if GNU ld supports shared libraries.
8861 case $host_os in
8862 aix3* | aix4* | aix5*)
8863 # On AIX/PPC, the GNU linker is very broken
8864 if test "$host_cpu" != ia64; then
8865 ld_shlibs=no
8866 cat <<EOF 1>&2
8867
8868 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8869 *** to be unable to reliably create shared libraries on AIX.
8870 *** Therefore, libtool is disabling shared libraries support. If you
8871 *** really care for shared libraries, you may want to modify your PATH
8872 *** so that a non-GNU linker is found, and then restart.
8873
8874 EOF
8875 fi
8876 ;;
8877
8878 amigaos*)
8879 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)'
8880 hardcode_libdir_flag_spec='-L$libdir'
8881 hardcode_minus_L=yes
8882
8883 # Samuel A. Falvo II <[email protected]> reports
8884 # that the semantics of dynamic libraries on AmigaOS, at least up
8885 # to version 4, is to share data among multiple programs linked
8886 # with the same dynamic library. Since this doesn't match the
8887 # behavior of shared libraries on other platforms, we can't use
8888 # them.
8889 ld_shlibs=no
8890 ;;
8891
8892 beos*)
8893 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8894 allow_undefined_flag=unsupported
8895 # Joseph Beckenbach <[email protected]> says some releases of gcc
8896 # support --undefined. This deserves some investigation. FIXME
8897 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8898 else
8899 ld_shlibs=no
8900 fi
8901 ;;
8902
8903 cygwin* | mingw* | pw32*)
8904 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8905 # as there is no search path for DLLs.
8906 hardcode_libdir_flag_spec='-L$libdir'
8907 allow_undefined_flag=unsupported
8908 always_export_symbols=no
8909 enable_shared_with_static_runtimes=yes
8910 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8911
8912 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8914 # If the export-symbols file already is a .def file (1st line
8915 # is EXPORTS), use it as is; otherwise, prepend...
8916 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8917 cp $export_symbols $output_objdir/$soname.def;
8918 else
8919 echo EXPORTS > $output_objdir/$soname.def;
8920 cat $export_symbols >> $output_objdir/$soname.def;
8921 fi~
8922 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8923 else
8924 ld_shlibs=no
8925 fi
8926 ;;
8927
8928 interix3*)
8929 hardcode_direct=no
8930 hardcode_shlibpath_var=no
8931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8932 export_dynamic_flag_spec='${wl}-E'
8933 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8934 # Instead, shared libraries are loaded at an image base (0x10000000 by
8935 # default) and relocated if they conflict, which is a slow very memory
8936 # consuming and fragmenting process. To avoid this, we pick a random,
8937 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8938 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8939 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8940 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'
8941 ;;
8942
8943 linux*)
8944 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8945 tmp_addflag=
8946 case $cc_basename,$host_cpu in
8947 pgcc*) # Portland Group C compiler
8948 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'
8949 tmp_addflag=' $pic_flag'
8950 ;;
8951 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8952 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'
8953 tmp_addflag=' $pic_flag -Mnomain' ;;
8954 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8955 tmp_addflag=' -i_dynamic' ;;
8956 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8957 tmp_addflag=' -i_dynamic -nofor_main' ;;
8958 ifc* | ifort*) # Intel Fortran compiler
8959 tmp_addflag=' -nofor_main' ;;
8960 esac
8961 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8962
8963 if test $supports_anon_versioning = yes; then
8964 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8966 $echo "local: *; };" >> $output_objdir/$libname.ver~
8967 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8968 fi
8969 else
8970 ld_shlibs=no
8971 fi
8972 ;;
8973
8974 netbsd*)
8975 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8976 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8977 wlarc=
8978 else
8979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8981 fi
8982 ;;
8983
8984 solaris*)
8985 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8986 ld_shlibs=no
8987 cat <<EOF 1>&2
8988
8989 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8990 *** create shared libraries on Solaris systems. Therefore, libtool
8991 *** is disabling shared libraries support. We urge you to upgrade GNU
8992 *** binutils to release 2.9.1 or newer. Another option is to modify
8993 *** your PATH or compiler configuration so that the native linker is
8994 *** used, and then restart.
8995
8996 EOF
8997 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8999 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9000 else
9001 ld_shlibs=no
9002 fi
9003 ;;
9004
9005 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9006 case `$LD -v 2>&1` in
9007 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9008 ld_shlibs=no
9009 cat <<_LT_EOF 1>&2
9010
9011 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9012 *** reliably create shared libraries on SCO systems. Therefore, libtool
9013 *** is disabling shared libraries support. We urge you to upgrade GNU
9014 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9015 *** your PATH or compiler configuration so that the native linker is
9016 *** used, and then restart.
9017
9018 _LT_EOF
9019 ;;
9020 *)
9021 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9022 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9025 else
9026 ld_shlibs=no
9027 fi
9028 ;;
9029 esac
9030 ;;
9031
9032 sunos4*)
9033 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9034 wlarc=
9035 hardcode_direct=yes
9036 hardcode_shlibpath_var=no
9037 ;;
9038
9039 *)
9040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9043 else
9044 ld_shlibs=no
9045 fi
9046 ;;
9047 esac
9048
9049 if test "$ld_shlibs" = no; then
9050 runpath_var=
9051 hardcode_libdir_flag_spec=
9052 export_dynamic_flag_spec=
9053 whole_archive_flag_spec=
9054 fi
9055 else
9056 # PORTME fill in a description of your system's linker (not GNU ld)
9057 case $host_os in
9058 aix3*)
9059 allow_undefined_flag=unsupported
9060 always_export_symbols=yes
9061 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'
9062 # Note: this linker hardcodes the directories in LIBPATH if there
9063 # are no directories specified by -L.
9064 hardcode_minus_L=yes
9065 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9066 # Neither direct hardcoding nor static linking is supported with a
9067 # broken collect2.
9068 hardcode_direct=unsupported
9069 fi
9070 ;;
9071
9072 aix4* | aix5*)
9073 if test "$host_cpu" = ia64; then
9074 # On IA64, the linker does run time linking by default, so we don't
9075 # have to do anything special.
9076 aix_use_runtimelinking=no
9077 exp_sym_flag='-Bexport'
9078 no_entry_flag=""
9079 else
9080 # If we're using GNU nm, then we don't want the "-C" option.
9081 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9082 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9083 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'
9084 else
9085 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'
9086 fi
9087 aix_use_runtimelinking=no
9088
9089 # Test if we are trying to use run time linking or normal
9090 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9091 # need to do runtime linking.
9092 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9093 for ld_flag in $LDFLAGS; do
9094 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9095 aix_use_runtimelinking=yes
9096 break
9097 fi
9098 done
9099 ;;
9100 esac
9101
9102 exp_sym_flag='-bexport'
9103 no_entry_flag='-bnoentry'
9104 fi
9105
9106 # When large executables or shared objects are built, AIX ld can
9107 # have problems creating the table of contents. If linking a library
9108 # or program results in "error TOC overflow" add -mminimal-toc to
9109 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9110 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9111
9112 archive_cmds=''
9113 hardcode_direct=yes
9114 hardcode_libdir_separator=':'
9115 link_all_deplibs=yes
9116
9117 if test "$GCC" = yes; then
9118 case $host_os in aix4.[012]|aix4.[012].*)
9119 # We only want to do this on AIX 4.2 and lower, the check
9120 # below for broken collect2 doesn't work under 4.3+
9121 collect2name=`${CC} -print-prog-name=collect2`
9122 if test -f "$collect2name" && \
9123 strings "$collect2name" | grep resolve_lib_name >/dev/null
9124 then
9125 # We have reworked collect2
9126 hardcode_direct=yes
9127 else
9128 # We have old collect2
9129 hardcode_direct=unsupported
9130 # It fails to find uninstalled libraries when the uninstalled
9131 # path is not listed in the libpath. Setting hardcode_minus_L
9132 # to unsupported forces relinking
9133 hardcode_minus_L=yes
9134 hardcode_libdir_flag_spec='-L$libdir'
9135 hardcode_libdir_separator=
9136 fi
9137 ;;
9138 esac
9139 shared_flag='-shared'
9140 if test "$aix_use_runtimelinking" = yes; then
9141 shared_flag="$shared_flag "'${wl}-G'
9142 fi
9143 else
9144 # not using gcc
9145 if test "$host_cpu" = ia64; then
9146 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9147 # chokes on -Wl,-G. The following line is correct:
9148 shared_flag='-G'
9149 else
9150 if test "$aix_use_runtimelinking" = yes; then
9151 shared_flag='${wl}-G'
9152 else
9153 shared_flag='${wl}-bM:SRE'
9154 fi
9155 fi
9156 fi
9157
9158 # It seems that -bexpall does not export symbols beginning with
9159 # underscore (_), so it is better to generate a list of symbols to export.
9160 always_export_symbols=yes
9161 if test "$aix_use_runtimelinking" = yes; then
9162 # Warning - without using the other runtime loading flags (-brtl),
9163 # -berok will link without error, but may produce a broken library.
9164 allow_undefined_flag='-berok'
9165 # Determine the default libpath from the value encoded in an empty executable.
9166 cat >conftest.$ac_ext <<_ACEOF
9167 /* confdefs.h. */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172
9173 int
9174 main ()
9175 {
9176
9177 ;
9178 return 0;
9179 }
9180 _ACEOF
9181 rm -f conftest.$ac_objext conftest$ac_exeext
9182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9183 (eval $ac_link) 2>conftest.er1
9184 ac_status=$?
9185 grep -v '^ *+' conftest.er1 >conftest.err
9186 rm -f conftest.er1
9187 cat conftest.err >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } &&
9190 { ac_try='test -z "$ac_c_werror_flag"
9191 || test ! -s conftest.err'
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 (eval $ac_try) 2>&5
9194 ac_status=$?
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; } &&
9197 { ac_try='test -s conftest$ac_exeext'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 (eval $ac_try) 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; }; then
9203
9204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9205 }'`
9206 # Check for a 64-bit object if we didn't find anything.
9207 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; }
9208 }'`; fi
9209 else
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9212
9213 fi
9214 rm -f conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9217
9218 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9219 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"
9220 else
9221 if test "$host_cpu" = ia64; then
9222 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9223 allow_undefined_flag="-z nodefs"
9224 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"
9225 else
9226 # Determine the default libpath from the value encoded in an empty executable.
9227 cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h. */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233
9234 int
9235 main ()
9236 {
9237
9238 ;
9239 return 0;
9240 }
9241 _ACEOF
9242 rm -f conftest.$ac_objext conftest$ac_exeext
9243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9244 (eval $ac_link) 2>conftest.er1
9245 ac_status=$?
9246 grep -v '^ *+' conftest.er1 >conftest.err
9247 rm -f conftest.er1
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } &&
9251 { ac_try='test -z "$ac_c_werror_flag"
9252 || test ! -s conftest.err'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 (eval $ac_try) 2>&5
9255 ac_status=$?
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; } &&
9258 { ac_try='test -s conftest$ac_exeext'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 (eval $ac_try) 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; }; then
9264
9265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9266 }'`
9267 # Check for a 64-bit object if we didn't find anything.
9268 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; }
9269 }'`; fi
9270 else
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9273
9274 fi
9275 rm -f conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
9277 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9278
9279 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9280 # Warning - without using the other run time loading flags,
9281 # -berok will link without error, but may produce a broken library.
9282 no_undefined_flag=' ${wl}-bernotok'
9283 allow_undefined_flag=' ${wl}-berok'
9284 # Exported symbols can be pulled into shared objects from archives
9285 whole_archive_flag_spec='$convenience'
9286 archive_cmds_need_lc=yes
9287 # This is similar to how AIX traditionally builds its shared libraries.
9288 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'
9289 fi
9290 fi
9291 ;;
9292
9293 amigaos*)
9294 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)'
9295 hardcode_libdir_flag_spec='-L$libdir'
9296 hardcode_minus_L=yes
9297 # see comment about different semantics on the GNU ld section
9298 ld_shlibs=no
9299 ;;
9300
9301 bsdi[45]*)
9302 export_dynamic_flag_spec=-rdynamic
9303 ;;
9304
9305 cygwin* | mingw* | pw32*)
9306 # When not using gcc, we currently assume that we are using
9307 # Microsoft Visual C++.
9308 # hardcode_libdir_flag_spec is actually meaningless, as there is
9309 # no search path for DLLs.
9310 hardcode_libdir_flag_spec=' '
9311 allow_undefined_flag=unsupported
9312 # Tell ltmain to make .lib files, not .a files.
9313 libext=lib
9314 # Tell ltmain to make .dll files, not .so files.
9315 shrext_cmds=".dll"
9316 # FIXME: Setting linknames here is a bad hack.
9317 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9318 # The linker will automatically build a .lib file if we build a DLL.
9319 old_archive_From_new_cmds='true'
9320 # FIXME: Should let the user specify the lib program.
9321 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9322 fix_srcfile_path='`cygpath -w "$srcfile"`'
9323 enable_shared_with_static_runtimes=yes
9324 ;;
9325
9326 darwin* | rhapsody*)
9327 case $host_os in
9328 rhapsody* | darwin1.[012])
9329 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9330 ;;
9331 *) # Darwin 1.3 on
9332 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9333 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9334 else
9335 case ${MACOSX_DEPLOYMENT_TARGET} in
9336 10.[012])
9337 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9338 ;;
9339 10.*)
9340 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9341 ;;
9342 esac
9343 fi
9344 ;;
9345 esac
9346 archive_cmds_need_lc=no
9347 hardcode_direct=no
9348 hardcode_automatic=yes
9349 hardcode_shlibpath_var=unsupported
9350 whole_archive_flag_spec=''
9351 link_all_deplibs=yes
9352 if test "$GCC" = yes ; then
9353 output_verbose_link_cmd='echo'
9354 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9355 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9356 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9357 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}'
9358 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}'
9359 else
9360 case $cc_basename in
9361 xlc*)
9362 output_verbose_link_cmd='echo'
9363 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9364 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9365 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9366 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}'
9367 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}'
9368 ;;
9369 *)
9370 ld_shlibs=no
9371 ;;
9372 esac
9373 fi
9374 ;;
9375
9376 dgux*)
9377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378 hardcode_libdir_flag_spec='-L$libdir'
9379 hardcode_shlibpath_var=no
9380 ;;
9381
9382 freebsd1*)
9383 ld_shlibs=no
9384 ;;
9385
9386 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9387 # support. Future versions do this automatically, but an explicit c++rt0.o
9388 # does not break anything, and helps significantly (at the cost of a little
9389 # extra space).
9390 freebsd2.2*)
9391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9392 hardcode_libdir_flag_spec='-R$libdir'
9393 hardcode_direct=yes
9394 hardcode_shlibpath_var=no
9395 ;;
9396
9397 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9398 freebsd2*)
9399 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9400 hardcode_direct=yes
9401 hardcode_minus_L=yes
9402 hardcode_shlibpath_var=no
9403 ;;
9404
9405 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9406 freebsd* | kfreebsd*-gnu | dragonfly*)
9407 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9408 hardcode_libdir_flag_spec='-R$libdir'
9409 hardcode_direct=yes
9410 hardcode_shlibpath_var=no
9411 ;;
9412
9413 hpux9*)
9414 if test "$GCC" = yes; then
9415 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'
9416 else
9417 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'
9418 fi
9419 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9420 hardcode_libdir_separator=:
9421 hardcode_direct=yes
9422
9423 # hardcode_minus_L: Not really in the search PATH,
9424 # but as the default location of the library.
9425 hardcode_minus_L=yes
9426 export_dynamic_flag_spec='${wl}-E'
9427 ;;
9428
9429 hpux10*)
9430 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9431 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9432 else
9433 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9434 fi
9435 if test "$with_gnu_ld" = no; then
9436 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9437 hardcode_libdir_separator=:
9438
9439 hardcode_direct=yes
9440 export_dynamic_flag_spec='${wl}-E'
9441
9442 # hardcode_minus_L: Not really in the search PATH,
9443 # but as the default location of the library.
9444 hardcode_minus_L=yes
9445 fi
9446 ;;
9447
9448 hpux11*)
9449 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9450 case $host_cpu in
9451 hppa*64*)
9452 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 ;;
9454 ia64*)
9455 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9456 ;;
9457 *)
9458 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9459 ;;
9460 esac
9461 else
9462 case $host_cpu in
9463 hppa*64*)
9464 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9465 ;;
9466 ia64*)
9467 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9468 ;;
9469 *)
9470 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9471 ;;
9472 esac
9473 fi
9474 if test "$with_gnu_ld" = no; then
9475 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9476 hardcode_libdir_separator=:
9477
9478 case $host_cpu in
9479 hppa*64*|ia64*)
9480 hardcode_libdir_flag_spec_ld='+b $libdir'
9481 hardcode_direct=no
9482 hardcode_shlibpath_var=no
9483 ;;
9484 *)
9485 hardcode_direct=yes
9486 export_dynamic_flag_spec='${wl}-E'
9487
9488 # hardcode_minus_L: Not really in the search PATH,
9489 # but as the default location of the library.
9490 hardcode_minus_L=yes
9491 ;;
9492 esac
9493 fi
9494 ;;
9495
9496 irix5* | irix6* | nonstopux*)
9497 if test "$GCC" = yes; then
9498 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'
9499 else
9500 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'
9501 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9502 fi
9503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9504 hardcode_libdir_separator=:
9505 link_all_deplibs=yes
9506 ;;
9507
9508 netbsd*)
9509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9511 else
9512 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9513 fi
9514 hardcode_libdir_flag_spec='-R$libdir'
9515 hardcode_direct=yes
9516 hardcode_shlibpath_var=no
9517 ;;
9518
9519 newsos6)
9520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_direct=yes
9522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9523 hardcode_libdir_separator=:
9524 hardcode_shlibpath_var=no
9525 ;;
9526
9527 openbsd*)
9528 hardcode_direct=yes
9529 hardcode_shlibpath_var=no
9530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9532 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9533 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9534 export_dynamic_flag_spec='${wl}-E'
9535 else
9536 case $host_os in
9537 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9539 hardcode_libdir_flag_spec='-R$libdir'
9540 ;;
9541 *)
9542 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9543 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9544 ;;
9545 esac
9546 fi
9547 ;;
9548
9549 os2*)
9550 hardcode_libdir_flag_spec='-L$libdir'
9551 hardcode_minus_L=yes
9552 allow_undefined_flag=unsupported
9553 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'
9554 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9555 ;;
9556
9557 osf3*)
9558 if test "$GCC" = yes; then
9559 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9560 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'
9561 else
9562 allow_undefined_flag=' -expect_unresolved \*'
9563 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'
9564 fi
9565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9566 hardcode_libdir_separator=:
9567 ;;
9568
9569 osf4* | osf5*) # as osf3* with the addition of -msym flag
9570 if test "$GCC" = yes; then
9571 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9572 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'
9573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9574 else
9575 allow_undefined_flag=' -expect_unresolved \*'
9576 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'
9577 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9578 $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'
9579
9580 # Both c and cxx compiler support -rpath directly
9581 hardcode_libdir_flag_spec='-rpath $libdir'
9582 fi
9583 hardcode_libdir_separator=:
9584 ;;
9585
9586 solaris*)
9587 no_undefined_flag=' -z text'
9588 if test "$GCC" = yes; then
9589 wlarc='${wl}'
9590 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9591 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9592 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9593 else
9594 wlarc=''
9595 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9596 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9597 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9598 fi
9599 hardcode_libdir_flag_spec='-R$libdir'
9600 hardcode_shlibpath_var=no
9601 case $host_os in
9602 solaris2.[0-5] | solaris2.[0-5].*) ;;
9603 *)
9604 # The compiler driver will combine linker options so we
9605 # cannot just pass the convience library names through
9606 # without $wl, iff we do not link with $LD.
9607 # Luckily, gcc supports the same syntax we need for Sun Studio.
9608 # Supported since Solaris 2.6 (maybe 2.5.1?)
9609 case $wlarc in
9610 '')
9611 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9612 *)
9613 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' ;;
9614 esac ;;
9615 esac
9616 link_all_deplibs=yes
9617 ;;
9618
9619 sunos4*)
9620 if test "x$host_vendor" = xsequent; then
9621 # Use $CC to link under sequent, because it throws in some extra .o
9622 # files that make .init and .fini sections work.
9623 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9624 else
9625 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9626 fi
9627 hardcode_libdir_flag_spec='-L$libdir'
9628 hardcode_direct=yes
9629 hardcode_minus_L=yes
9630 hardcode_shlibpath_var=no
9631 ;;
9632
9633 sysv4)
9634 case $host_vendor in
9635 sni)
9636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_direct=yes # is this really true???
9638 ;;
9639 siemens)
9640 ## LD is ld it makes a PLAMLIB
9641 ## CC just makes a GrossModule.
9642 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9643 reload_cmds='$CC -r -o $output$reload_objs'
9644 hardcode_direct=no
9645 ;;
9646 motorola)
9647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9648 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9649 ;;
9650 esac
9651 runpath_var='LD_RUN_PATH'
9652 hardcode_shlibpath_var=no
9653 ;;
9654
9655 sysv4.3*)
9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_shlibpath_var=no
9658 export_dynamic_flag_spec='-Bexport'
9659 ;;
9660
9661 sysv4*MP*)
9662 if test -d /usr/nec; then
9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_shlibpath_var=no
9665 runpath_var=LD_RUN_PATH
9666 hardcode_runpath_var=yes
9667 ld_shlibs=yes
9668 fi
9669 ;;
9670
9671 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9672 no_undefined_flag='${wl}-z,text'
9673 archive_cmds_need_lc=no
9674 hardcode_shlibpath_var=no
9675 runpath_var='LD_RUN_PATH'
9676
9677 if test "$GCC" = yes; then
9678 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9679 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 else
9681 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9682 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9683 fi
9684 ;;
9685
9686 sysv5* | sco3.2v5* | sco5v6*)
9687 # Note: We can NOT use -z defs as we might desire, because we do not
9688 # link with -lc, and that would cause any symbols used from libc to
9689 # always be unresolved, which means just about no library would
9690 # ever link correctly. If we're not using GNU ld we use -z text
9691 # though, which does catch some bad symbols but isn't as heavy-handed
9692 # as -z defs.
9693 no_undefined_flag='${wl}-z,text'
9694 allow_undefined_flag='${wl}-z,nodefs'
9695 archive_cmds_need_lc=no
9696 hardcode_shlibpath_var=no
9697 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9698 hardcode_libdir_separator=':'
9699 link_all_deplibs=yes
9700 export_dynamic_flag_spec='${wl}-Bexport'
9701 runpath_var='LD_RUN_PATH'
9702
9703 if test "$GCC" = yes; then
9704 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9705 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 else
9707 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9708 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 fi
9710 ;;
9711
9712 uts4*)
9713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_libdir_flag_spec='-L$libdir'
9715 hardcode_shlibpath_var=no
9716 ;;
9717
9718 *)
9719 ld_shlibs=no
9720 ;;
9721 esac
9722 fi
9723
9724 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9725 echo "${ECHO_T}$ld_shlibs" >&6
9726 test "$ld_shlibs" = no && can_build_shared=no
9727
9728 #
9729 # Do we need to explicitly link libc?
9730 #
9731 case "x$archive_cmds_need_lc" in
9732 x|xyes)
9733 # Assume -lc should be added
9734 archive_cmds_need_lc=yes
9735
9736 if test "$enable_shared" = yes && test "$GCC" = yes; then
9737 case $archive_cmds in
9738 *'~'*)
9739 # FIXME: we may have to deal with multi-command sequences.
9740 ;;
9741 '$CC '*)
9742 # Test whether the compiler implicitly links with -lc since on some
9743 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9744 # to ld, don't add -lc before -lgcc.
9745 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9746 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9747 $rm conftest*
9748 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9749
9750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9751 (eval $ac_compile) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } 2>conftest.err; then
9755 soname=conftest
9756 lib=conftest
9757 libobjs=conftest.$ac_objext
9758 deplibs=
9759 wl=$lt_prog_compiler_wl
9760 pic_flag=$lt_prog_compiler_pic
9761 compiler_flags=-v
9762 linker_flags=-v
9763 verstring=
9764 output_objdir=.
9765 libname=conftest
9766 lt_save_allow_undefined_flag=$allow_undefined_flag
9767 allow_undefined_flag=
9768 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9769 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }
9773 then
9774 archive_cmds_need_lc=no
9775 else
9776 archive_cmds_need_lc=yes
9777 fi
9778 allow_undefined_flag=$lt_save_allow_undefined_flag
9779 else
9780 cat conftest.err 1>&5
9781 fi
9782 $rm conftest*
9783 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9784 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9785 ;;
9786 esac
9787 fi
9788 ;;
9789 esac
9790
9791 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9792 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9793 library_names_spec=
9794 libname_spec='lib$name'
9795 soname_spec=
9796 shrext_cmds=".so"
9797 postinstall_cmds=
9798 postuninstall_cmds=
9799 finish_cmds=
9800 finish_eval=
9801 shlibpath_var=
9802 shlibpath_overrides_runpath=unknown
9803 version_type=none
9804 dynamic_linker="$host_os ld.so"
9805 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9806 if test "$GCC" = yes; then
9807 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9808 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9809 # if the path contains ";" then we assume it to be the separator
9810 # otherwise default to the standard path separator (i.e. ":") - it is
9811 # assumed that no part of a normal pathname contains ";" but that should
9812 # okay in the real world where ";" in dirpaths is itself problematic.
9813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9814 else
9815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9816 fi
9817 else
9818 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9819 fi
9820 need_lib_prefix=unknown
9821 hardcode_into_libs=no
9822
9823 # when you set need_version to no, make sure it does not cause -set_version
9824 # flags to be left without arguments
9825 need_version=unknown
9826
9827 case $host_os in
9828 aix3*)
9829 version_type=linux
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9831 shlibpath_var=LIBPATH
9832
9833 # AIX 3 has no versioning support, so we append a major version to the name.
9834 soname_spec='${libname}${release}${shared_ext}$major'
9835 ;;
9836
9837 aix4* | aix5*)
9838 version_type=linux
9839 need_lib_prefix=no
9840 need_version=no
9841 hardcode_into_libs=yes
9842 if test "$host_cpu" = ia64; then
9843 # AIX 5 supports IA64
9844 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9845 shlibpath_var=LD_LIBRARY_PATH
9846 else
9847 # With GCC up to 2.95.x, collect2 would create an import file
9848 # for dependence libraries. The import file would start with
9849 # the line `#! .'. This would cause the generated library to
9850 # depend on `.', always an invalid library. This was fixed in
9851 # development snapshots of GCC prior to 3.0.
9852 case $host_os in
9853 aix4 | aix4.[01] | aix4.[01].*)
9854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9855 echo ' yes '
9856 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9857 :
9858 else
9859 can_build_shared=no
9860 fi
9861 ;;
9862 esac
9863 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9864 # soname into executable. Probably we can add versioning support to
9865 # collect2, so additional links can be useful in future.
9866 if test "$aix_use_runtimelinking" = yes; then
9867 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9868 # instead of lib<name>.a to let people know that these are not
9869 # typical AIX shared libraries.
9870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9871 else
9872 # We preserve .a as extension for shared libraries through AIX4.2
9873 # and later when we are not doing run time linking.
9874 library_names_spec='${libname}${release}.a $libname.a'
9875 soname_spec='${libname}${release}${shared_ext}$major'
9876 fi
9877 shlibpath_var=LIBPATH
9878 fi
9879 ;;
9880
9881 amigaos*)
9882 library_names_spec='$libname.ixlibrary $libname.a'
9883 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9884 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'
9885 ;;
9886
9887 beos*)
9888 library_names_spec='${libname}${shared_ext}'
9889 dynamic_linker="$host_os ld.so"
9890 shlibpath_var=LIBRARY_PATH
9891 ;;
9892
9893 bsdi[45]*)
9894 version_type=linux
9895 need_version=no
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9899 shlibpath_var=LD_LIBRARY_PATH
9900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9902 # the default ld.so.conf also contains /usr/contrib/lib and
9903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9904 # libtool to hard-code these into programs
9905 ;;
9906
9907 cygwin* | mingw* | pw32*)
9908 version_type=windows
9909 shrext_cmds=".dll"
9910 need_version=no
9911 need_lib_prefix=no
9912
9913 case $GCC,$host_os in
9914 yes,cygwin* | yes,mingw* | yes,pw32*)
9915 library_names_spec='$libname.dll.a'
9916 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9917 postinstall_cmds='base_file=`basename \${file}`~
9918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9919 dldir=$destdir/`dirname \$dlpath`~
9920 test -d \$dldir || mkdir -p \$dldir~
9921 $install_prog $dir/$dlname \$dldir/$dlname~
9922 chmod a+x \$dldir/$dlname'
9923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9924 dlpath=$dir/\$dldll~
9925 $rm \$dlpath'
9926 shlibpath_overrides_runpath=yes
9927
9928 case $host_os in
9929 cygwin*)
9930 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9931 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9932 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9933 ;;
9934 mingw*)
9935 # MinGW DLLs use traditional 'lib' prefix
9936 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9937 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9938 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9939 # It is most probably a Windows format PATH printed by
9940 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9941 # path with ; separators, and with drive letters. We can handle the
9942 # drive letters (cygwin fileutils understands them), so leave them,
9943 # especially as we might pass files found there to a mingw objdump,
9944 # which wouldn't understand a cygwinified path. Ahh.
9945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9946 else
9947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9948 fi
9949 ;;
9950 pw32*)
9951 # pw32 DLLs use 'pw' prefix rather than 'lib'
9952 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9953 ;;
9954 esac
9955 ;;
9956
9957 *)
9958 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9959 ;;
9960 esac
9961 dynamic_linker='Win32 ld.exe'
9962 # FIXME: first we should search . and the directory the executable is in
9963 shlibpath_var=PATH
9964 ;;
9965
9966 darwin* | rhapsody*)
9967 dynamic_linker="$host_os dyld"
9968 version_type=darwin
9969 need_lib_prefix=no
9970 need_version=no
9971 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9972 soname_spec='${libname}${release}${major}$shared_ext'
9973 shlibpath_overrides_runpath=yes
9974 shlibpath_var=DYLD_LIBRARY_PATH
9975 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9976 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9977 if test "$GCC" = yes; then
9978 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"`
9979 else
9980 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9981 fi
9982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9983 ;;
9984
9985 dgux*)
9986 version_type=linux
9987 need_lib_prefix=no
9988 need_version=no
9989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9990 soname_spec='${libname}${release}${shared_ext}$major'
9991 shlibpath_var=LD_LIBRARY_PATH
9992 ;;
9993
9994 freebsd1*)
9995 dynamic_linker=no
9996 ;;
9997
9998 kfreebsd*-gnu)
9999 version_type=linux
10000 need_lib_prefix=no
10001 need_version=no
10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10003 soname_spec='${libname}${release}${shared_ext}$major'
10004 shlibpath_var=LD_LIBRARY_PATH
10005 shlibpath_overrides_runpath=no
10006 hardcode_into_libs=yes
10007 dynamic_linker='GNU ld.so'
10008 ;;
10009
10010 freebsd* | dragonfly*)
10011 # DragonFly does not have aout. When/if they implement a new
10012 # versioning mechanism, adjust this.
10013 if test -x /usr/bin/objformat; then
10014 objformat=`/usr/bin/objformat`
10015 else
10016 case $host_os in
10017 freebsd[123]*) objformat=aout ;;
10018 *) objformat=elf ;;
10019 esac
10020 fi
10021 version_type=freebsd-$objformat
10022 case $version_type in
10023 freebsd-elf*)
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10025 need_version=no
10026 need_lib_prefix=no
10027 ;;
10028 freebsd-*)
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10030 need_version=yes
10031 ;;
10032 esac
10033 shlibpath_var=LD_LIBRARY_PATH
10034 case $host_os in
10035 freebsd2*)
10036 shlibpath_overrides_runpath=yes
10037 ;;
10038 freebsd3.[01]* | freebsdelf3.[01]*)
10039 shlibpath_overrides_runpath=yes
10040 hardcode_into_libs=yes
10041 ;;
10042 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10043 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10044 shlibpath_overrides_runpath=no
10045 hardcode_into_libs=yes
10046 ;;
10047 freebsd*) # from 4.6 on
10048 shlibpath_overrides_runpath=yes
10049 hardcode_into_libs=yes
10050 ;;
10051 esac
10052 ;;
10053
10054 gnu*)
10055 version_type=linux
10056 need_lib_prefix=no
10057 need_version=no
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 hardcode_into_libs=yes
10062 ;;
10063
10064 hpux9* | hpux10* | hpux11*)
10065 # Give a soname corresponding to the major version so that dld.sl refuses to
10066 # link against other versions.
10067 version_type=sunos
10068 need_lib_prefix=no
10069 need_version=no
10070 case $host_cpu in
10071 ia64*)
10072 shrext_cmds='.so'
10073 hardcode_into_libs=yes
10074 dynamic_linker="$host_os dld.so"
10075 shlibpath_var=LD_LIBRARY_PATH
10076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10078 soname_spec='${libname}${release}${shared_ext}$major'
10079 if test "X$HPUX_IA64_MODE" = X32; then
10080 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10081 else
10082 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10083 fi
10084 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10085 ;;
10086 hppa*64*)
10087 shrext_cmds='.sl'
10088 hardcode_into_libs=yes
10089 dynamic_linker="$host_os dld.sl"
10090 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10096 ;;
10097 *)
10098 shrext_cmds='.sl'
10099 dynamic_linker="$host_os dld.sl"
10100 shlibpath_var=SHLIB_PATH
10101 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 ;;
10105 esac
10106 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10107 postinstall_cmds='chmod 555 $lib'
10108 ;;
10109
10110 interix3*)
10111 version_type=linux
10112 need_lib_prefix=no
10113 need_version=no
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10115 soname_spec='${libname}${release}${shared_ext}$major'
10116 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10117 shlibpath_var=LD_LIBRARY_PATH
10118 shlibpath_overrides_runpath=no
10119 hardcode_into_libs=yes
10120 ;;
10121
10122 irix5* | irix6* | nonstopux*)
10123 case $host_os in
10124 nonstopux*) version_type=nonstopux ;;
10125 *)
10126 if test "$lt_cv_prog_gnu_ld" = yes; then
10127 version_type=linux
10128 else
10129 version_type=irix
10130 fi ;;
10131 esac
10132 need_lib_prefix=no
10133 need_version=no
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10136 case $host_os in
10137 irix5* | nonstopux*)
10138 libsuff= shlibsuff=
10139 ;;
10140 *)
10141 case $LD in # libtool.m4 will add one of these switches to LD
10142 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10143 libsuff= shlibsuff= libmagic=32-bit;;
10144 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10145 libsuff=32 shlibsuff=N32 libmagic=N32;;
10146 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10147 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10148 *) libsuff= shlibsuff= libmagic=never-match;;
10149 esac
10150 ;;
10151 esac
10152 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10153 shlibpath_overrides_runpath=no
10154 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10155 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10156 hardcode_into_libs=yes
10157 ;;
10158
10159 # No shared lib support for Linux oldld, aout, or coff.
10160 linux*oldld* | linux*aout* | linux*coff*)
10161 dynamic_linker=no
10162 ;;
10163
10164 # This must be Linux ELF.
10165 linux*)
10166 version_type=linux
10167 need_lib_prefix=no
10168 need_version=no
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170 soname_spec='${libname}${release}${shared_ext}$major'
10171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 shlibpath_overrides_runpath=no
10174 # This implies no fast_install, which is unacceptable.
10175 # Some rework will be needed to allow for fast_install
10176 # before this can be enabled.
10177 hardcode_into_libs=yes
10178
10179 # Append ld.so.conf contents to the search path
10180 if test -f /etc/ld.so.conf; then
10181 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' ' '`
10182 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10183 fi
10184
10185 # We used to test for /lib/ld.so.1 and disable shared libraries on
10186 # powerpc, because MkLinux only supported shared libraries with the
10187 # GNU dynamic linker. Since this was broken with cross compilers,
10188 # most powerpc-linux boxes support dynamic linking these days and
10189 # people can always --disable-shared, the test was removed, and we
10190 # assume the GNU/Linux dynamic linker is in use.
10191 dynamic_linker='GNU/Linux ld.so'
10192 ;;
10193
10194 knetbsd*-gnu)
10195 version_type=linux
10196 need_lib_prefix=no
10197 need_version=no
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 shlibpath_var=LD_LIBRARY_PATH
10201 shlibpath_overrides_runpath=no
10202 hardcode_into_libs=yes
10203 dynamic_linker='GNU ld.so'
10204 ;;
10205
10206 netbsd*)
10207 version_type=sunos
10208 need_lib_prefix=no
10209 need_version=no
10210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10213 dynamic_linker='NetBSD (a.out) ld.so'
10214 else
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 dynamic_linker='NetBSD ld.elf_so'
10218 fi
10219 shlibpath_var=LD_LIBRARY_PATH
10220 shlibpath_overrides_runpath=yes
10221 hardcode_into_libs=yes
10222 ;;
10223
10224 newsos6)
10225 version_type=linux
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=yes
10229 ;;
10230
10231 nto-qnx*)
10232 version_type=linux
10233 need_lib_prefix=no
10234 need_version=no
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 soname_spec='${libname}${release}${shared_ext}$major'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 shlibpath_overrides_runpath=yes
10239 ;;
10240
10241 openbsd*)
10242 version_type=sunos
10243 sys_lib_dlsearch_path_spec="/usr/lib"
10244 need_lib_prefix=no
10245 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10246 case $host_os in
10247 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10248 *) need_version=no ;;
10249 esac
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10254 case $host_os in
10255 openbsd2.[89] | openbsd2.[89].*)
10256 shlibpath_overrides_runpath=no
10257 ;;
10258 *)
10259 shlibpath_overrides_runpath=yes
10260 ;;
10261 esac
10262 else
10263 shlibpath_overrides_runpath=yes
10264 fi
10265 ;;
10266
10267 os2*)
10268 libname_spec='$name'
10269 shrext_cmds=".dll"
10270 need_lib_prefix=no
10271 library_names_spec='$libname${shared_ext} $libname.a'
10272 dynamic_linker='OS/2 ld.exe'
10273 shlibpath_var=LIBPATH
10274 ;;
10275
10276 osf3* | osf4* | osf5*)
10277 version_type=osf
10278 need_lib_prefix=no
10279 need_version=no
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10284 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10285 ;;
10286
10287 solaris*)
10288 version_type=linux
10289 need_lib_prefix=no
10290 need_version=no
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=yes
10295 hardcode_into_libs=yes
10296 # ldd complains unless libraries are executable
10297 postinstall_cmds='chmod +x $lib'
10298 ;;
10299
10300 sunos4*)
10301 version_type=sunos
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10303 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10304 shlibpath_var=LD_LIBRARY_PATH
10305 shlibpath_overrides_runpath=yes
10306 if test "$with_gnu_ld" = yes; then
10307 need_lib_prefix=no
10308 fi
10309 need_version=yes
10310 ;;
10311
10312 sysv4 | sysv4.3*)
10313 version_type=linux
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315 soname_spec='${libname}${release}${shared_ext}$major'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 case $host_vendor in
10318 sni)
10319 shlibpath_overrides_runpath=no
10320 need_lib_prefix=no
10321 export_dynamic_flag_spec='${wl}-Blargedynsym'
10322 runpath_var=LD_RUN_PATH
10323 ;;
10324 siemens)
10325 need_lib_prefix=no
10326 ;;
10327 motorola)
10328 need_lib_prefix=no
10329 need_version=no
10330 shlibpath_overrides_runpath=no
10331 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10332 ;;
10333 esac
10334 ;;
10335
10336 sysv4*MP*)
10337 if test -d /usr/nec ;then
10338 version_type=linux
10339 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10340 soname_spec='$libname${shared_ext}.$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 fi
10343 ;;
10344
10345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10346 version_type=freebsd-elf
10347 need_lib_prefix=no
10348 need_version=no
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 hardcode_into_libs=yes
10353 if test "$with_gnu_ld" = yes; then
10354 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10355 shlibpath_overrides_runpath=no
10356 else
10357 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10358 shlibpath_overrides_runpath=yes
10359 case $host_os in
10360 sco3.2v5*)
10361 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10362 ;;
10363 esac
10364 fi
10365 sys_lib_dlsearch_path_spec='/usr/lib'
10366 ;;
10367
10368 uts4*)
10369 version_type=linux
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 ;;
10374
10375 *)
10376 dynamic_linker=no
10377 ;;
10378 esac
10379 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10380 echo "${ECHO_T}$dynamic_linker" >&6
10381 test "$dynamic_linker" = no && can_build_shared=no
10382
10383 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10384 if test "$GCC" = yes; then
10385 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10386 fi
10387
10388 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10389 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10390 hardcode_action=
10391 if test -n "$hardcode_libdir_flag_spec" || \
10392 test -n "$runpath_var" || \
10393 test "X$hardcode_automatic" = "Xyes" ; then
10394
10395 # We can hardcode non-existant directories.
10396 if test "$hardcode_direct" != no &&
10397 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10398 # have to relink, otherwise we might link with an installed library
10399 # when we should be linking with a yet-to-be-installed one
10400 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10401 test "$hardcode_minus_L" != no; then
10402 # Linking always hardcodes the temporary library directory.
10403 hardcode_action=relink
10404 else
10405 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10406 hardcode_action=immediate
10407 fi
10408 else
10409 # We cannot hardcode anything, or else we can only hardcode existing
10410 # directories.
10411 hardcode_action=unsupported
10412 fi
10413 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10414 echo "${ECHO_T}$hardcode_action" >&6
10415
10416 if test "$hardcode_action" = relink; then
10417 # Fast installation is not supported
10418 enable_fast_install=no
10419 elif test "$shlibpath_overrides_runpath" = yes ||
10420 test "$enable_shared" = no; then
10421 # Fast installation is not necessary
10422 enable_fast_install=needless
10423 fi
10424
10425 striplib=
10426 old_striplib=
10427 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10428 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10429 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10430 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10431 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10432 echo "$as_me:$LINENO: result: yes" >&5
10433 echo "${ECHO_T}yes" >&6
10434 else
10435 # FIXME - insert some real tests, host_os isn't really good enough
10436 case $host_os in
10437 darwin*)
10438 if test -n "$STRIP" ; then
10439 striplib="$STRIP -x"
10440 echo "$as_me:$LINENO: result: yes" >&5
10441 echo "${ECHO_T}yes" >&6
10442 else
10443 echo "$as_me:$LINENO: result: no" >&5
10444 echo "${ECHO_T}no" >&6
10445 fi
10446 ;;
10447 *)
10448 echo "$as_me:$LINENO: result: no" >&5
10449 echo "${ECHO_T}no" >&6
10450 ;;
10451 esac
10452 fi
10453
10454 if test "x$enable_dlopen" != xyes; then
10455 enable_dlopen=unknown
10456 enable_dlopen_self=unknown
10457 enable_dlopen_self_static=unknown
10458 else
10459 lt_cv_dlopen=no
10460 lt_cv_dlopen_libs=
10461
10462 case $host_os in
10463 beos*)
10464 lt_cv_dlopen="load_add_on"
10465 lt_cv_dlopen_libs=
10466 lt_cv_dlopen_self=yes
10467 ;;
10468
10469 mingw* | pw32*)
10470 lt_cv_dlopen="LoadLibrary"
10471 lt_cv_dlopen_libs=
10472 ;;
10473
10474 cygwin*)
10475 lt_cv_dlopen="dlopen"
10476 lt_cv_dlopen_libs=
10477 ;;
10478
10479 darwin*)
10480 # if libdl is installed we need to link against it
10481 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10482 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10483 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486 ac_check_lib_save_LIBS=$LIBS
10487 LIBS="-ldl $LIBS"
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h. */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494
10495 /* Override any gcc2 internal prototype to avoid an error. */
10496 #ifdef __cplusplus
10497 extern "C"
10498 #endif
10499 /* We use char because int might match the return type of a gcc2
10500 builtin and then its argument prototype would still apply. */
10501 char dlopen ();
10502 int
10503 main ()
10504 {
10505 dlopen ();
10506 ;
10507 return 0;
10508 }
10509 _ACEOF
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10512 (eval $ac_link) 2>conftest.er1
10513 ac_status=$?
10514 grep -v '^ *+' conftest.er1 >conftest.err
10515 rm -f conftest.er1
10516 cat conftest.err >&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } &&
10519 { ac_try='test -z "$ac_c_werror_flag"
10520 || test ! -s conftest.err'
10521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522 (eval $ac_try) 2>&5
10523 ac_status=$?
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; } &&
10526 { ac_try='test -s conftest$ac_exeext'
10527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10529 ac_status=$?
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; }; then
10532 ac_cv_lib_dl_dlopen=yes
10533 else
10534 echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.$ac_ext >&5
10536
10537 ac_cv_lib_dl_dlopen=no
10538 fi
10539 rm -f conftest.err conftest.$ac_objext \
10540 conftest$ac_exeext conftest.$ac_ext
10541 LIBS=$ac_check_lib_save_LIBS
10542 fi
10543 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10544 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10545 if test $ac_cv_lib_dl_dlopen = yes; then
10546 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10547 else
10548
10549 lt_cv_dlopen="dyld"
10550 lt_cv_dlopen_libs=
10551 lt_cv_dlopen_self=yes
10552
10553 fi
10554
10555 ;;
10556
10557 *)
10558 echo "$as_me:$LINENO: checking for shl_load" >&5
10559 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10560 if test "${ac_cv_func_shl_load+set}" = set; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 else
10563 cat >conftest.$ac_ext <<_ACEOF
10564 /* confdefs.h. */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10569 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10571 #define shl_load innocuous_shl_load
10572
10573 /* System header to define __stub macros and hopefully few prototypes,
10574 which can conflict with char shl_load (); below.
10575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10576 <limits.h> exists even on freestanding compilers. */
10577
10578 #ifdef __STDC__
10579 # include <limits.h>
10580 #else
10581 # include <assert.h>
10582 #endif
10583
10584 #undef shl_load
10585
10586 /* Override any gcc2 internal prototype to avoid an error. */
10587 #ifdef __cplusplus
10588 extern "C"
10589 {
10590 #endif
10591 /* We use char because int might match the return type of a gcc2
10592 builtin and then its argument prototype would still apply. */
10593 char shl_load ();
10594 /* The GNU C library defines this for functions which it implements
10595 to always fail with ENOSYS. Some functions are actually named
10596 something starting with __ and the normal name is an alias. */
10597 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10598 choke me
10599 #else
10600 char (*f) () = shl_load;
10601 #endif
10602 #ifdef __cplusplus
10603 }
10604 #endif
10605
10606 int
10607 main ()
10608 {
10609 return f != shl_load;
10610 ;
10611 return 0;
10612 }
10613 _ACEOF
10614 rm -f conftest.$ac_objext conftest$ac_exeext
10615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616 (eval $ac_link) 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } &&
10623 { ac_try='test -z "$ac_c_werror_flag"
10624 || test ! -s conftest.err'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; } &&
10630 { ac_try='test -s conftest$ac_exeext'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636 ac_cv_func_shl_load=yes
10637 else
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10640
10641 ac_cv_func_shl_load=no
10642 fi
10643 rm -f conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10645 fi
10646 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10647 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10648 if test $ac_cv_func_shl_load = yes; then
10649 lt_cv_dlopen="shl_load"
10650 else
10651 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10652 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10653 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656 ac_check_lib_save_LIBS=$LIBS
10657 LIBS="-ldld $LIBS"
10658 cat >conftest.$ac_ext <<_ACEOF
10659 /* confdefs.h. */
10660 _ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10664
10665 /* Override any gcc2 internal prototype to avoid an error. */
10666 #ifdef __cplusplus
10667 extern "C"
10668 #endif
10669 /* We use char because int might match the return type of a gcc2
10670 builtin and then its argument prototype would still apply. */
10671 char shl_load ();
10672 int
10673 main ()
10674 {
10675 shl_load ();
10676 ;
10677 return 0;
10678 }
10679 _ACEOF
10680 rm -f conftest.$ac_objext conftest$ac_exeext
10681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10682 (eval $ac_link) 2>conftest.er1
10683 ac_status=$?
10684 grep -v '^ *+' conftest.er1 >conftest.err
10685 rm -f conftest.er1
10686 cat conftest.err >&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } &&
10689 { ac_try='test -z "$ac_c_werror_flag"
10690 || test ! -s conftest.err'
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; } &&
10696 { ac_try='test -s conftest$ac_exeext'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 ac_cv_lib_dld_shl_load=yes
10703 else
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10706
10707 ac_cv_lib_dld_shl_load=no
10708 fi
10709 rm -f conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
10711 LIBS=$ac_check_lib_save_LIBS
10712 fi
10713 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10714 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10715 if test $ac_cv_lib_dld_shl_load = yes; then
10716 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10717 else
10718 echo "$as_me:$LINENO: checking for dlopen" >&5
10719 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10720 if test "${ac_cv_func_dlopen+set}" = set; then
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10722 else
10723 cat >conftest.$ac_ext <<_ACEOF
10724 /* confdefs.h. */
10725 _ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10729 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10731 #define dlopen innocuous_dlopen
10732
10733 /* System header to define __stub macros and hopefully few prototypes,
10734 which can conflict with char dlopen (); below.
10735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10736 <limits.h> exists even on freestanding compilers. */
10737
10738 #ifdef __STDC__
10739 # include <limits.h>
10740 #else
10741 # include <assert.h>
10742 #endif
10743
10744 #undef dlopen
10745
10746 /* Override any gcc2 internal prototype to avoid an error. */
10747 #ifdef __cplusplus
10748 extern "C"
10749 {
10750 #endif
10751 /* We use char because int might match the return type of a gcc2
10752 builtin and then its argument prototype would still apply. */
10753 char dlopen ();
10754 /* The GNU C library defines this for functions which it implements
10755 to always fail with ENOSYS. Some functions are actually named
10756 something starting with __ and the normal name is an alias. */
10757 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10758 choke me
10759 #else
10760 char (*f) () = dlopen;
10761 #endif
10762 #ifdef __cplusplus
10763 }
10764 #endif
10765
10766 int
10767 main ()
10768 {
10769 return f != dlopen;
10770 ;
10771 return 0;
10772 }
10773 _ACEOF
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776 (eval $ac_link) 2>conftest.er1
10777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } &&
10783 { ac_try='test -z "$ac_c_werror_flag"
10784 || test ! -s conftest.err'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10787 ac_status=$?
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; } &&
10790 { ac_try='test -s conftest$ac_exeext'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10793 ac_status=$?
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
10796 ac_cv_func_dlopen=yes
10797 else
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801 ac_cv_func_dlopen=no
10802 fi
10803 rm -f conftest.err conftest.$ac_objext \
10804 conftest$ac_exeext conftest.$ac_ext
10805 fi
10806 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10807 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10808 if test $ac_cv_func_dlopen = yes; then
10809 lt_cv_dlopen="dlopen"
10810 else
10811 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10812 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10813 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816 ac_check_lib_save_LIBS=$LIBS
10817 LIBS="-ldl $LIBS"
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h. */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824
10825 /* Override any gcc2 internal prototype to avoid an error. */
10826 #ifdef __cplusplus
10827 extern "C"
10828 #endif
10829 /* We use char because int might match the return type of a gcc2
10830 builtin and then its argument prototype would still apply. */
10831 char dlopen ();
10832 int
10833 main ()
10834 {
10835 dlopen ();
10836 ;
10837 return 0;
10838 }
10839 _ACEOF
10840 rm -f conftest.$ac_objext conftest$ac_exeext
10841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10842 (eval $ac_link) 2>conftest.er1
10843 ac_status=$?
10844 grep -v '^ *+' conftest.er1 >conftest.err
10845 rm -f conftest.er1
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } &&
10849 { ac_try='test -z "$ac_c_werror_flag"
10850 || test ! -s conftest.err'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; } &&
10856 { ac_try='test -s conftest$ac_exeext'
10857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858 (eval $ac_try) 2>&5
10859 ac_status=$?
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
10862 ac_cv_lib_dl_dlopen=yes
10863 else
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10866
10867 ac_cv_lib_dl_dlopen=no
10868 fi
10869 rm -f conftest.err conftest.$ac_objext \
10870 conftest$ac_exeext conftest.$ac_ext
10871 LIBS=$ac_check_lib_save_LIBS
10872 fi
10873 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10874 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10875 if test $ac_cv_lib_dl_dlopen = yes; then
10876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10877 else
10878 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10879 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10880 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883 ac_check_lib_save_LIBS=$LIBS
10884 LIBS="-lsvld $LIBS"
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h. */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891
10892 /* Override any gcc2 internal prototype to avoid an error. */
10893 #ifdef __cplusplus
10894 extern "C"
10895 #endif
10896 /* We use char because int might match the return type of a gcc2
10897 builtin and then its argument prototype would still apply. */
10898 char dlopen ();
10899 int
10900 main ()
10901 {
10902 dlopen ();
10903 ;
10904 return 0;
10905 }
10906 _ACEOF
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909 (eval $ac_link) 2>conftest.er1
10910 ac_status=$?
10911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } &&
10916 { ac_try='test -z "$ac_c_werror_flag"
10917 || test ! -s conftest.err'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10920 ac_status=$?
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; } &&
10923 { ac_try='test -s conftest$ac_exeext'
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10926 ac_status=$?
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; }; then
10929 ac_cv_lib_svld_dlopen=yes
10930 else
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10933
10934 ac_cv_lib_svld_dlopen=no
10935 fi
10936 rm -f conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
10938 LIBS=$ac_check_lib_save_LIBS
10939 fi
10940 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10941 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10942 if test $ac_cv_lib_svld_dlopen = yes; then
10943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10944 else
10945 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10946 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10947 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950 ac_check_lib_save_LIBS=$LIBS
10951 LIBS="-ldld $LIBS"
10952 cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h. */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958
10959 /* Override any gcc2 internal prototype to avoid an error. */
10960 #ifdef __cplusplus
10961 extern "C"
10962 #endif
10963 /* We use char because int might match the return type of a gcc2
10964 builtin and then its argument prototype would still apply. */
10965 char dld_link ();
10966 int
10967 main ()
10968 {
10969 dld_link ();
10970 ;
10971 return 0;
10972 }
10973 _ACEOF
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976 (eval $ac_link) 2>conftest.er1
10977 ac_status=$?
10978 grep -v '^ *+' conftest.er1 >conftest.err
10979 rm -f conftest.er1
10980 cat conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } &&
10983 { ac_try='test -z "$ac_c_werror_flag"
10984 || test ! -s conftest.err'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; } &&
10990 { ac_try='test -s conftest$ac_exeext'
10991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992 (eval $ac_try) 2>&5
10993 ac_status=$?
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; }; then
10996 ac_cv_lib_dld_dld_link=yes
10997 else
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001 ac_cv_lib_dld_dld_link=no
11002 fi
11003 rm -f conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11005 LIBS=$ac_check_lib_save_LIBS
11006 fi
11007 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11008 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11009 if test $ac_cv_lib_dld_dld_link = yes; then
11010 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11011 fi
11012
11013
11014 fi
11015
11016
11017 fi
11018
11019
11020 fi
11021
11022
11023 fi
11024
11025
11026 fi
11027
11028 ;;
11029 esac
11030
11031 if test "x$lt_cv_dlopen" != xno; then
11032 enable_dlopen=yes
11033 else
11034 enable_dlopen=no
11035 fi
11036
11037 case $lt_cv_dlopen in
11038 dlopen)
11039 save_CPPFLAGS="$CPPFLAGS"
11040 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11041
11042 save_LDFLAGS="$LDFLAGS"
11043 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11044
11045 save_LIBS="$LIBS"
11046 LIBS="$lt_cv_dlopen_libs $LIBS"
11047
11048 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11049 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11050 if test "${lt_cv_dlopen_self+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053 if test "$cross_compiling" = yes; then :
11054 lt_cv_dlopen_self=cross
11055 else
11056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11057 lt_status=$lt_dlunknown
11058 cat > conftest.$ac_ext <<EOF
11059 #line 11059 "configure"
11060 #include "confdefs.h"
11061
11062 #if HAVE_DLFCN_H
11063 #include <dlfcn.h>
11064 #endif
11065
11066 #include <stdio.h>
11067
11068 #ifdef RTLD_GLOBAL
11069 # define LT_DLGLOBAL RTLD_GLOBAL
11070 #else
11071 # ifdef DL_GLOBAL
11072 # define LT_DLGLOBAL DL_GLOBAL
11073 # else
11074 # define LT_DLGLOBAL 0
11075 # endif
11076 #endif
11077
11078 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11079 find out it does not work in some platform. */
11080 #ifndef LT_DLLAZY_OR_NOW
11081 # ifdef RTLD_LAZY
11082 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11083 # else
11084 # ifdef DL_LAZY
11085 # define LT_DLLAZY_OR_NOW DL_LAZY
11086 # else
11087 # ifdef RTLD_NOW
11088 # define LT_DLLAZY_OR_NOW RTLD_NOW
11089 # else
11090 # ifdef DL_NOW
11091 # define LT_DLLAZY_OR_NOW DL_NOW
11092 # else
11093 # define LT_DLLAZY_OR_NOW 0
11094 # endif
11095 # endif
11096 # endif
11097 # endif
11098 #endif
11099
11100 #ifdef __cplusplus
11101 extern "C" void exit (int);
11102 #endif
11103
11104 void fnord() { int i=42;}
11105 int main ()
11106 {
11107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11108 int status = $lt_dlunknown;
11109
11110 if (self)
11111 {
11112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11113 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11114 /* dlclose (self); */
11115 }
11116 else
11117 puts (dlerror ());
11118
11119 exit (status);
11120 }
11121 EOF
11122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11123 (eval $ac_link) 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11127 (./conftest; exit; ) >&5 2>/dev/null
11128 lt_status=$?
11129 case x$lt_status in
11130 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11131 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11132 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11133 esac
11134 else :
11135 # compilation failed
11136 lt_cv_dlopen_self=no
11137 fi
11138 fi
11139 rm -fr conftest*
11140
11141
11142 fi
11143 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11144 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11145
11146 if test "x$lt_cv_dlopen_self" = xyes; then
11147 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11148 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11149 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11150 if test "${lt_cv_dlopen_self_static+set}" = set; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 else
11153 if test "$cross_compiling" = yes; then :
11154 lt_cv_dlopen_self_static=cross
11155 else
11156 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11157 lt_status=$lt_dlunknown
11158 cat > conftest.$ac_ext <<EOF
11159 #line 11159 "configure"
11160 #include "confdefs.h"
11161
11162 #if HAVE_DLFCN_H
11163 #include <dlfcn.h>
11164 #endif
11165
11166 #include <stdio.h>
11167
11168 #ifdef RTLD_GLOBAL
11169 # define LT_DLGLOBAL RTLD_GLOBAL
11170 #else
11171 # ifdef DL_GLOBAL
11172 # define LT_DLGLOBAL DL_GLOBAL
11173 # else
11174 # define LT_DLGLOBAL 0
11175 # endif
11176 #endif
11177
11178 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11179 find out it does not work in some platform. */
11180 #ifndef LT_DLLAZY_OR_NOW
11181 # ifdef RTLD_LAZY
11182 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11183 # else
11184 # ifdef DL_LAZY
11185 # define LT_DLLAZY_OR_NOW DL_LAZY
11186 # else
11187 # ifdef RTLD_NOW
11188 # define LT_DLLAZY_OR_NOW RTLD_NOW
11189 # else
11190 # ifdef DL_NOW
11191 # define LT_DLLAZY_OR_NOW DL_NOW
11192 # else
11193 # define LT_DLLAZY_OR_NOW 0
11194 # endif
11195 # endif
11196 # endif
11197 # endif
11198 #endif
11199
11200 #ifdef __cplusplus
11201 extern "C" void exit (int);
11202 #endif
11203
11204 void fnord() { int i=42;}
11205 int main ()
11206 {
11207 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11208 int status = $lt_dlunknown;
11209
11210 if (self)
11211 {
11212 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11213 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11214 /* dlclose (self); */
11215 }
11216 else
11217 puts (dlerror ());
11218
11219 exit (status);
11220 }
11221 EOF
11222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223 (eval $ac_link) 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11227 (./conftest; exit; ) >&5 2>/dev/null
11228 lt_status=$?
11229 case x$lt_status in
11230 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11231 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11232 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11233 esac
11234 else :
11235 # compilation failed
11236 lt_cv_dlopen_self_static=no
11237 fi
11238 fi
11239 rm -fr conftest*
11240
11241
11242 fi
11243 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11244 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11245 fi
11246
11247 CPPFLAGS="$save_CPPFLAGS"
11248 LDFLAGS="$save_LDFLAGS"
11249 LIBS="$save_LIBS"
11250 ;;
11251 esac
11252
11253 case $lt_cv_dlopen_self in
11254 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11255 *) enable_dlopen_self=unknown ;;
11256 esac
11257
11258 case $lt_cv_dlopen_self_static in
11259 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11260 *) enable_dlopen_self_static=unknown ;;
11261 esac
11262 fi
11263
11264
11265 # Report which library types will actually be built
11266 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11267 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11268 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11269 echo "${ECHO_T}$can_build_shared" >&6
11270
11271 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11272 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11273 test "$can_build_shared" = "no" && enable_shared=no
11274
11275 # On AIX, shared libraries and static libraries use the same namespace, and
11276 # are all built from PIC.
11277 case $host_os in
11278 aix3*)
11279 test "$enable_shared" = yes && enable_static=no
11280 if test -n "$RANLIB"; then
11281 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11282 postinstall_cmds='$RANLIB $lib'
11283 fi
11284 ;;
11285
11286 aix4* | aix5*)
11287 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11288 test "$enable_shared" = yes && enable_static=no
11289 fi
11290 ;;
11291 esac
11292 echo "$as_me:$LINENO: result: $enable_shared" >&5
11293 echo "${ECHO_T}$enable_shared" >&6
11294
11295 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11296 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11297 # Make sure either enable_shared or enable_static is yes.
11298 test "$enable_shared" = yes || enable_static=yes
11299 echo "$as_me:$LINENO: result: $enable_static" >&5
11300 echo "${ECHO_T}$enable_static" >&6
11301
11302 # The else clause should only fire when bootstrapping the
11303 # libtool distribution, otherwise you forgot to ship ltmain.sh
11304 # with your package, and you will get complaints that there are
11305 # no rules to generate ltmain.sh.
11306 if test -f "$ltmain"; then
11307 # See if we are running on zsh, and set the options which allow our commands through
11308 # without removal of \ escapes.
11309 if test -n "${ZSH_VERSION+set}" ; then
11310 setopt NO_GLOB_SUBST
11311 fi
11312 # Now quote all the things that may contain metacharacters while being
11313 # careful not to overquote the AC_SUBSTed values. We take copies of the
11314 # variables and quote the copies for generation of the libtool script.
11315 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11316 SED SHELL STRIP \
11317 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11318 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11319 deplibs_check_method reload_flag reload_cmds need_locks \
11320 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11321 lt_cv_sys_global_symbol_to_c_name_address \
11322 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11323 old_postinstall_cmds old_postuninstall_cmds \
11324 compiler \
11325 CC \
11326 LD \
11327 lt_prog_compiler_wl \
11328 lt_prog_compiler_pic \
11329 lt_prog_compiler_static \
11330 lt_prog_compiler_no_builtin_flag \
11331 export_dynamic_flag_spec \
11332 thread_safe_flag_spec \
11333 whole_archive_flag_spec \
11334 enable_shared_with_static_runtimes \
11335 old_archive_cmds \
11336 old_archive_from_new_cmds \
11337 predep_objects \
11338 postdep_objects \
11339 predeps \
11340 postdeps \
11341 compiler_lib_search_path \
11342 archive_cmds \
11343 archive_expsym_cmds \
11344 postinstall_cmds \
11345 postuninstall_cmds \
11346 old_archive_from_expsyms_cmds \
11347 allow_undefined_flag \
11348 no_undefined_flag \
11349 export_symbols_cmds \
11350 hardcode_libdir_flag_spec \
11351 hardcode_libdir_flag_spec_ld \
11352 hardcode_libdir_separator \
11353 hardcode_automatic \
11354 module_cmds \
11355 module_expsym_cmds \
11356 lt_cv_prog_compiler_c_o \
11357 exclude_expsyms \
11358 include_expsyms; do
11359
11360 case $var in
11361 old_archive_cmds | \
11362 old_archive_from_new_cmds | \
11363 archive_cmds | \
11364 archive_expsym_cmds | \
11365 module_cmds | \
11366 module_expsym_cmds | \
11367 old_archive_from_expsyms_cmds | \
11368 export_symbols_cmds | \
11369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11370 postinstall_cmds | postuninstall_cmds | \
11371 old_postinstall_cmds | old_postuninstall_cmds | \
11372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11373 # Double-quote double-evaled strings.
11374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11375 ;;
11376 *)
11377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11378 ;;
11379 esac
11380 done
11381
11382 case $lt_echo in
11383 *'\$0 --fallback-echo"')
11384 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11385 ;;
11386 esac
11387
11388 cfgfile="${ofile}T"
11389 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11390 $rm -f "$cfgfile"
11391 { echo "$as_me:$LINENO: creating $ofile" >&5
11392 echo "$as_me: creating $ofile" >&6;}
11393
11394 cat <<__EOF__ >> "$cfgfile"
11395 #! $SHELL
11396
11397 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11398 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11399 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11400 #
11401 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11402 # Free Software Foundation, Inc.
11403 #
11404 # This file is part of GNU Libtool:
11405 # Originally by Gordon Matzigkeit <[email protected]>, 1996
11406 #
11407 # This program is free software; you can redistribute it and/or modify
11408 # it under the terms of the GNU General Public License as published by
11409 # the Free Software Foundation; either version 2 of the License, or
11410 # (at your option) any later version.
11411 #
11412 # This program is distributed in the hope that it will be useful, but
11413 # WITHOUT ANY WARRANTY; without even the implied warranty of
11414 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11415 # General Public License for more details.
11416 #
11417 # You should have received a copy of the GNU General Public License
11418 # along with this program; if not, write to the Free Software
11419 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11420 #
11421 # As a special exception to the GNU General Public License, if you
11422 # distribute this file as part of a program that contains a
11423 # configuration script generated by Autoconf, you may include it under
11424 # the same distribution terms that you use for the rest of that program.
11425
11426 # A sed program that does not truncate output.
11427 SED=$lt_SED
11428
11429 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11430 Xsed="$SED -e 1s/^X//"
11431
11432 # The HP-UX ksh and POSIX shell print the target directory to stdout
11433 # if CDPATH is set.
11434 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11435
11436 # The names of the tagged configurations supported by this script.
11437 available_tags=
11438
11439 # ### BEGIN LIBTOOL CONFIG
11440
11441 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11442
11443 # Shell to use when invoking shell scripts.
11444 SHELL=$lt_SHELL
11445
11446 # Whether or not to build shared libraries.
11447 build_libtool_libs=$enable_shared
11448
11449 # Whether or not to build static libraries.
11450 build_old_libs=$enable_static
11451
11452 # Whether or not to add -lc for building shared libraries.
11453 build_libtool_need_lc=$archive_cmds_need_lc
11454
11455 # Whether or not to disallow shared libs when runtime libs are static
11456 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11457
11458 # Whether or not to optimize for fast installation.
11459 fast_install=$enable_fast_install
11460
11461 # The host system.
11462 host_alias=$host_alias
11463 host=$host
11464 host_os=$host_os
11465
11466 # The build system.
11467 build_alias=$build_alias
11468 build=$build
11469 build_os=$build_os
11470
11471 # An echo program that does not interpret backslashes.
11472 echo=$lt_echo
11473
11474 # The archiver.
11475 AR=$lt_AR
11476 AR_FLAGS=$lt_AR_FLAGS
11477
11478 # A C compiler.
11479 LTCC=$lt_LTCC
11480
11481 # LTCC compiler flags.
11482 LTCFLAGS=$lt_LTCFLAGS
11483
11484 # A language-specific compiler.
11485 CC=$lt_compiler
11486
11487 # Is the compiler the GNU C compiler?
11488 with_gcc=$GCC
11489
11490 # An ERE matcher.
11491 EGREP=$lt_EGREP
11492
11493 # The linker used to build libraries.
11494 LD=$lt_LD
11495
11496 # Whether we need hard or soft links.
11497 LN_S=$lt_LN_S
11498
11499 # A BSD-compatible nm program.
11500 NM=$lt_NM
11501
11502 # A symbol stripping program
11503 STRIP=$lt_STRIP
11504
11505 # Used to examine libraries when file_magic_cmd begins "file"
11506 MAGIC_CMD=$MAGIC_CMD
11507
11508 # Used on cygwin: DLL creation program.
11509 DLLTOOL="$DLLTOOL"
11510
11511 # Used on cygwin: object dumper.
11512 OBJDUMP="$OBJDUMP"
11513
11514 # Used on cygwin: assembler.
11515 AS="$AS"
11516
11517 # The name of the directory that contains temporary libtool files.
11518 objdir=$objdir
11519
11520 # How to create reloadable object files.
11521 reload_flag=$lt_reload_flag
11522 reload_cmds=$lt_reload_cmds
11523
11524 # How to pass a linker flag through the compiler.
11525 wl=$lt_lt_prog_compiler_wl
11526
11527 # Object file suffix (normally "o").
11528 objext="$ac_objext"
11529
11530 # Old archive suffix (normally "a").
11531 libext="$libext"
11532
11533 # Shared library suffix (normally ".so").
11534 shrext_cmds='$shrext_cmds'
11535
11536 # Executable file suffix (normally "").
11537 exeext="$exeext"
11538
11539 # Additional compiler flags for building library objects.
11540 pic_flag=$lt_lt_prog_compiler_pic
11541 pic_mode=$pic_mode
11542
11543 # What is the maximum length of a command?
11544 max_cmd_len=$lt_cv_sys_max_cmd_len
11545
11546 # Does compiler simultaneously support -c and -o options?
11547 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11548
11549 # Must we lock files when doing compilation?
11550 need_locks=$lt_need_locks
11551
11552 # Do we need the lib prefix for modules?
11553 need_lib_prefix=$need_lib_prefix
11554
11555 # Do we need a version for libraries?
11556 need_version=$need_version
11557
11558 # Whether dlopen is supported.
11559 dlopen_support=$enable_dlopen
11560
11561 # Whether dlopen of programs is supported.
11562 dlopen_self=$enable_dlopen_self
11563
11564 # Whether dlopen of statically linked programs is supported.
11565 dlopen_self_static=$enable_dlopen_self_static
11566
11567 # Compiler flag to prevent dynamic linking.
11568 link_static_flag=$lt_lt_prog_compiler_static
11569
11570 # Compiler flag to turn off builtin functions.
11571 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11572
11573 # Compiler flag to allow reflexive dlopens.
11574 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11575
11576 # Compiler flag to generate shared objects directly from archives.
11577 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11578
11579 # Compiler flag to generate thread-safe objects.
11580 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11581
11582 # Library versioning type.
11583 version_type=$version_type
11584
11585 # Format of library name prefix.
11586 libname_spec=$lt_libname_spec
11587
11588 # List of archive names. First name is the real one, the rest are links.
11589 # The last name is the one that the linker finds with -lNAME.
11590 library_names_spec=$lt_library_names_spec
11591
11592 # The coded name of the library, if different from the real name.
11593 soname_spec=$lt_soname_spec
11594
11595 # Commands used to build and install an old-style archive.
11596 RANLIB=$lt_RANLIB
11597 old_archive_cmds=$lt_old_archive_cmds
11598 old_postinstall_cmds=$lt_old_postinstall_cmds
11599 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11600
11601 # Create an old-style archive from a shared archive.
11602 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11603
11604 # Create a temporary old-style archive to link instead of a shared archive.
11605 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11606
11607 # Commands used to build and install a shared archive.
11608 archive_cmds=$lt_archive_cmds
11609 archive_expsym_cmds=$lt_archive_expsym_cmds
11610 postinstall_cmds=$lt_postinstall_cmds
11611 postuninstall_cmds=$lt_postuninstall_cmds
11612
11613 # Commands used to build a loadable module (assumed same as above if empty)
11614 module_cmds=$lt_module_cmds
11615 module_expsym_cmds=$lt_module_expsym_cmds
11616
11617 # Commands to strip libraries.
11618 old_striplib=$lt_old_striplib
11619 striplib=$lt_striplib
11620
11621 # Dependencies to place before the objects being linked to create a
11622 # shared library.
11623 predep_objects=$lt_predep_objects
11624
11625 # Dependencies to place after the objects being linked to create a
11626 # shared library.
11627 postdep_objects=$lt_postdep_objects
11628
11629 # Dependencies to place before the objects being linked to create a
11630 # shared library.
11631 predeps=$lt_predeps
11632
11633 # Dependencies to place after the objects being linked to create a
11634 # shared library.
11635 postdeps=$lt_postdeps
11636
11637 # The library search path used internally by the compiler when linking
11638 # a shared library.
11639 compiler_lib_search_path=$lt_compiler_lib_search_path
11640
11641 # Method to check whether dependent libraries are shared objects.
11642 deplibs_check_method=$lt_deplibs_check_method
11643
11644 # Command to use when deplibs_check_method == file_magic.
11645 file_magic_cmd=$lt_file_magic_cmd
11646
11647 # Flag that allows shared libraries with undefined symbols to be built.
11648 allow_undefined_flag=$lt_allow_undefined_flag
11649
11650 # Flag that forces no undefined symbols.
11651 no_undefined_flag=$lt_no_undefined_flag
11652
11653 # Commands used to finish a libtool library installation in a directory.
11654 finish_cmds=$lt_finish_cmds
11655
11656 # Same as above, but a single script fragment to be evaled but not shown.
11657 finish_eval=$lt_finish_eval
11658
11659 # Take the output of nm and produce a listing of raw symbols and C names.
11660 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11661
11662 # Transform the output of nm in a proper C declaration
11663 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11664
11665 # Transform the output of nm in a C name address pair
11666 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11667
11668 # This is the shared library runtime path variable.
11669 runpath_var=$runpath_var
11670
11671 # This is the shared library path variable.
11672 shlibpath_var=$shlibpath_var
11673
11674 # Is shlibpath searched before the hard-coded library search path?
11675 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11676
11677 # How to hardcode a shared library path into an executable.
11678 hardcode_action=$hardcode_action
11679
11680 # Whether we should hardcode library paths into libraries.
11681 hardcode_into_libs=$hardcode_into_libs
11682
11683 # Flag to hardcode \$libdir into a binary during linking.
11684 # This must work even if \$libdir does not exist.
11685 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11686
11687 # If ld is used when linking, flag to hardcode \$libdir into
11688 # a binary during linking. This must work even if \$libdir does
11689 # not exist.
11690 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11691
11692 # Whether we need a single -rpath flag with a separated argument.
11693 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11694
11695 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11696 # resulting binary.
11697 hardcode_direct=$hardcode_direct
11698
11699 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11700 # resulting binary.
11701 hardcode_minus_L=$hardcode_minus_L
11702
11703 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11704 # the resulting binary.
11705 hardcode_shlibpath_var=$hardcode_shlibpath_var
11706
11707 # Set to yes if building a shared library automatically hardcodes DIR into the library
11708 # and all subsequent libraries and executables linked against it.
11709 hardcode_automatic=$hardcode_automatic
11710
11711 # Variables whose values should be saved in libtool wrapper scripts and
11712 # restored at relink time.
11713 variables_saved_for_relink="$variables_saved_for_relink"
11714
11715 # Whether libtool must link a program against all its dependency libraries.
11716 link_all_deplibs=$link_all_deplibs
11717
11718 # Compile-time system search path for libraries
11719 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11720
11721 # Run-time system search path for libraries
11722 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11723
11724 # Fix the shell variable \$srcfile for the compiler.
11725 fix_srcfile_path="$fix_srcfile_path"
11726
11727 # Set to yes if exported symbols are required.
11728 always_export_symbols=$always_export_symbols
11729
11730 # The commands to list exported symbols.
11731 export_symbols_cmds=$lt_export_symbols_cmds
11732
11733 # The commands to extract the exported symbol list from a shared archive.
11734 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11735
11736 # Symbols that should not be listed in the preloaded symbols.
11737 exclude_expsyms=$lt_exclude_expsyms
11738
11739 # Symbols that must always be exported.
11740 include_expsyms=$lt_include_expsyms
11741
11742 # ### END LIBTOOL CONFIG
11743
11744 __EOF__
11745
11746
11747 case $host_os in
11748 aix3*)
11749 cat <<\EOF >> "$cfgfile"
11750
11751 # AIX sometimes has problems with the GCC collect2 program. For some
11752 # reason, if we set the COLLECT_NAMES environment variable, the problems
11753 # vanish in a puff of smoke.
11754 if test "X${COLLECT_NAMES+set}" != Xset; then
11755 COLLECT_NAMES=
11756 export COLLECT_NAMES
11757 fi
11758 EOF
11759 ;;
11760 esac
11761
11762 # We use sed instead of cat because bash on DJGPP gets confused if
11763 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11764 # text mode, it properly converts lines to CR/LF. This bash problem
11765 # is reportedly fixed, but why not run on old versions too?
11766 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11767
11768 mv -f "$cfgfile" "$ofile" || \
11769 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11770 chmod +x "$ofile"
11771
11772 else
11773 # If there is no Makefile yet, we rely on a make rule to execute
11774 # `config.status --recheck' to rerun these tests and create the
11775 # libtool script then.
11776 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11777 if test -f "$ltmain_in"; then
11778 test -f Makefile && make "$ltmain"
11779 fi
11780 fi
11781
11782
11783 ac_ext=c
11784 ac_cpp='$CPP $CPPFLAGS'
11785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11788
11789 CC="$lt_save_CC"
11790
11791
11792 # Check whether --with-tags or --without-tags was given.
11793 if test "${with_tags+set}" = set; then
11794 withval="$with_tags"
11795 tagnames="$withval"
11796 fi;
11797
11798 if test -f "$ltmain" && test -n "$tagnames"; then
11799 if test ! -f "${ofile}"; then
11800 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11801 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11802 fi
11803
11804 if test -z "$LTCC"; then
11805 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11806 if test -z "$LTCC"; then
11807 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11808 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11809 else
11810 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11811 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11812 fi
11813 fi
11814 if test -z "$LTCFLAGS"; then
11815 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11816 fi
11817
11818 # Extract list of available tagged configurations in $ofile.
11819 # Note that this assumes the entire list is on one line.
11820 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11821
11822 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11823 for tagname in $tagnames; do
11824 IFS="$lt_save_ifs"
11825 # Check whether tagname contains only valid characters
11826 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11827 "") ;;
11828 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11829 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11830 { (exit 1); exit 1; }; }
11831 ;;
11832 esac
11833
11834 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11835 then
11836 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11837 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11838 { (exit 1); exit 1; }; }
11839 fi
11840
11841 # Update the list of available tags.
11842 if test -n "$tagname"; then
11843 echo appending configuration tag \"$tagname\" to $ofile
11844
11845 case $tagname in
11846 CXX)
11847 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11848 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11849 (test "X$CXX" != "Xg++"))) ; then
11850 ac_ext=cc
11851 ac_cpp='$CXXCPP $CPPFLAGS'
11852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11855
11856
11857
11858
11859 archive_cmds_need_lc_CXX=no
11860 allow_undefined_flag_CXX=
11861 always_export_symbols_CXX=no
11862 archive_expsym_cmds_CXX=
11863 export_dynamic_flag_spec_CXX=
11864 hardcode_direct_CXX=no
11865 hardcode_libdir_flag_spec_CXX=
11866 hardcode_libdir_flag_spec_ld_CXX=
11867 hardcode_libdir_separator_CXX=
11868 hardcode_minus_L_CXX=no
11869 hardcode_shlibpath_var_CXX=unsupported
11870 hardcode_automatic_CXX=no
11871 module_cmds_CXX=
11872 module_expsym_cmds_CXX=
11873 link_all_deplibs_CXX=unknown
11874 old_archive_cmds_CXX=$old_archive_cmds
11875 no_undefined_flag_CXX=
11876 whole_archive_flag_spec_CXX=
11877 enable_shared_with_static_runtimes_CXX=no
11878
11879 # Dependencies to place before and after the object being linked:
11880 predep_objects_CXX=
11881 postdep_objects_CXX=
11882 predeps_CXX=
11883 postdeps_CXX=
11884 compiler_lib_search_path_CXX=
11885
11886 # Source file extension for C++ test sources.
11887 ac_ext=cpp
11888
11889 # Object file extension for compiled C++ test sources.
11890 objext=o
11891 objext_CXX=$objext
11892
11893 # Code to be used in simple compile tests
11894 lt_simple_compile_test_code="int some_variable = 0;\n"
11895
11896 # Code to be used in simple link tests
11897 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11898
11899 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11900
11901 # If no C compiler was specified, use CC.
11902 LTCC=${LTCC-"$CC"}
11903
11904 # If no C compiler flags were specified, use CFLAGS.
11905 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11906
11907 # Allow CC to be a program name with arguments.
11908 compiler=$CC
11909
11910
11911 # save warnings/boilerplate of simple test code
11912 ac_outfile=conftest.$ac_objext
11913 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11914 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11915 _lt_compiler_boilerplate=`cat conftest.err`
11916 $rm conftest*
11917
11918 ac_outfile=conftest.$ac_objext
11919 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11920 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11921 _lt_linker_boilerplate=`cat conftest.err`
11922 $rm conftest*
11923
11924
11925 # Allow CC to be a program name with arguments.
11926 lt_save_CC=$CC
11927 lt_save_LD=$LD
11928 lt_save_GCC=$GCC
11929 GCC=$GXX
11930 lt_save_with_gnu_ld=$with_gnu_ld
11931 lt_save_path_LD=$lt_cv_path_LD
11932 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11933 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11934 else
11935 $as_unset lt_cv_prog_gnu_ld
11936 fi
11937 if test -n "${lt_cv_path_LDCXX+set}"; then
11938 lt_cv_path_LD=$lt_cv_path_LDCXX
11939 else
11940 $as_unset lt_cv_path_LD
11941 fi
11942 test -z "${LDCXX+set}" || LD=$LDCXX
11943 CC=${CXX-"c++"}
11944 compiler=$CC
11945 compiler_CXX=$CC
11946 for cc_temp in $compiler""; do
11947 case $cc_temp in
11948 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11949 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11950 \-*) ;;
11951 *) break;;
11952 esac
11953 done
11954 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11955
11956
11957 # We don't want -fno-exception wen compiling C++ code, so set the
11958 # no_builtin_flag separately
11959 if test "$GXX" = yes; then
11960 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11961 else
11962 lt_prog_compiler_no_builtin_flag_CXX=
11963 fi
11964
11965 if test "$GXX" = yes; then
11966 # Set up default GNU C++ configuration
11967
11968
11969 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11970 if test "${with_gnu_ld+set}" = set; then
11971 withval="$with_gnu_ld"
11972 test "$withval" = no || with_gnu_ld=yes
11973 else
11974 with_gnu_ld=no
11975 fi;
11976 ac_prog=ld
11977 if test "$GCC" = yes; then
11978 # Check if gcc -print-prog-name=ld gives a path.
11979 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11980 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11981 case $host in
11982 *-*-mingw*)
11983 # gcc leaves a trailing carriage return which upsets mingw
11984 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11985 *)
11986 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11987 esac
11988 case $ac_prog in
11989 # Accept absolute paths.
11990 [\\/]* | ?:[\\/]*)
11991 re_direlt='/[^/][^/]*/\.\./'
11992 # Canonicalize the pathname of ld
11993 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11994 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11995 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11996 done
11997 test -z "$LD" && LD="$ac_prog"
11998 ;;
11999 "")
12000 # If it fails, then pretend we aren't using GCC.
12001 ac_prog=ld
12002 ;;
12003 *)
12004 # If it is relative, then search for the first ld in PATH.
12005 with_gnu_ld=unknown
12006 ;;
12007 esac
12008 elif test "$with_gnu_ld" = yes; then
12009 echo "$as_me:$LINENO: checking for GNU ld" >&5
12010 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12011 else
12012 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12013 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12014 fi
12015 if test "${lt_cv_path_LD+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018 if test -z "$LD"; then
12019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12020 for ac_dir in $PATH; do
12021 IFS="$lt_save_ifs"
12022 test -z "$ac_dir" && ac_dir=.
12023 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12024 lt_cv_path_LD="$ac_dir/$ac_prog"
12025 # Check to see if the program is GNU ld. I'd rather use --version,
12026 # but apparently some variants of GNU ld only accept -v.
12027 # Break only if it was the GNU/non-GNU ld that we prefer.
12028 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12029 *GNU* | *'with BFD'*)
12030 test "$with_gnu_ld" != no && break
12031 ;;
12032 *)
12033 test "$with_gnu_ld" != yes && break
12034 ;;
12035 esac
12036 fi
12037 done
12038 IFS="$lt_save_ifs"
12039 else
12040 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12041 fi
12042 fi
12043
12044 LD="$lt_cv_path_LD"
12045 if test -n "$LD"; then
12046 echo "$as_me:$LINENO: result: $LD" >&5
12047 echo "${ECHO_T}$LD" >&6
12048 else
12049 echo "$as_me:$LINENO: result: no" >&5
12050 echo "${ECHO_T}no" >&6
12051 fi
12052 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12053 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12054 { (exit 1); exit 1; }; }
12055 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12056 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12057 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 else
12060 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12061 case `$LD -v 2>&1 </dev/null` in
12062 *GNU* | *'with BFD'*)
12063 lt_cv_prog_gnu_ld=yes
12064 ;;
12065 *)
12066 lt_cv_prog_gnu_ld=no
12067 ;;
12068 esac
12069 fi
12070 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12071 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12072 with_gnu_ld=$lt_cv_prog_gnu_ld
12073
12074
12075
12076 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12077 # archiving commands below assume that GNU ld is being used.
12078 if test "$with_gnu_ld" = yes; then
12079 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12080 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'
12081
12082 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12083 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12084
12085 # If archive_cmds runs LD, not CC, wlarc should be empty
12086 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12087 # investigate it a little bit more. (MM)
12088 wlarc='${wl}'
12089
12090 # ancient GNU ld didn't support --whole-archive et. al.
12091 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12092 grep 'no-whole-archive' > /dev/null; then
12093 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12094 else
12095 whole_archive_flag_spec_CXX=
12096 fi
12097 else
12098 with_gnu_ld=no
12099 wlarc=
12100
12101 # A generic and very simple default shared library creation
12102 # command for GNU C++ for the case where it uses the native
12103 # linker, instead of GNU ld. If possible, this setting should
12104 # overridden to take advantage of the native linker features on
12105 # the platform it is being used on.
12106 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12107 fi
12108
12109 # Commands to make compiler produce verbose output that lists
12110 # what "hidden" libraries, object files and flags are used when
12111 # linking a shared library.
12112 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12113
12114 else
12115 GXX=no
12116 with_gnu_ld=no
12117 wlarc=
12118 fi
12119
12120 # PORTME: fill in a description of your system's C++ link characteristics
12121 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12123 ld_shlibs_CXX=yes
12124 case $host_os in
12125 aix3*)
12126 # FIXME: insert proper C++ library support
12127 ld_shlibs_CXX=no
12128 ;;
12129 aix4* | aix5*)
12130 if test "$host_cpu" = ia64; then
12131 # On IA64, the linker does run time linking by default, so we don't
12132 # have to do anything special.
12133 aix_use_runtimelinking=no
12134 exp_sym_flag='-Bexport'
12135 no_entry_flag=""
12136 else
12137 aix_use_runtimelinking=no
12138
12139 # Test if we are trying to use run time linking or normal
12140 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12141 # need to do runtime linking.
12142 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12143 for ld_flag in $LDFLAGS; do
12144 case $ld_flag in
12145 *-brtl*)
12146 aix_use_runtimelinking=yes
12147 break
12148 ;;
12149 esac
12150 done
12151 ;;
12152 esac
12153
12154 exp_sym_flag='-bexport'
12155 no_entry_flag='-bnoentry'
12156 fi
12157
12158 # When large executables or shared objects are built, AIX ld can
12159 # have problems creating the table of contents. If linking a library
12160 # or program results in "error TOC overflow" add -mminimal-toc to
12161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12163
12164 archive_cmds_CXX=''
12165 hardcode_direct_CXX=yes
12166 hardcode_libdir_separator_CXX=':'
12167 link_all_deplibs_CXX=yes
12168
12169 if test "$GXX" = yes; then
12170 case $host_os in aix4.[012]|aix4.[012].*)
12171 # We only want to do this on AIX 4.2 and lower, the check
12172 # below for broken collect2 doesn't work under 4.3+
12173 collect2name=`${CC} -print-prog-name=collect2`
12174 if test -f "$collect2name" && \
12175 strings "$collect2name" | grep resolve_lib_name >/dev/null
12176 then
12177 # We have reworked collect2
12178 hardcode_direct_CXX=yes
12179 else
12180 # We have old collect2
12181 hardcode_direct_CXX=unsupported
12182 # It fails to find uninstalled libraries when the uninstalled
12183 # path is not listed in the libpath. Setting hardcode_minus_L
12184 # to unsupported forces relinking
12185 hardcode_minus_L_CXX=yes
12186 hardcode_libdir_flag_spec_CXX='-L$libdir'
12187 hardcode_libdir_separator_CXX=
12188 fi
12189 ;;
12190 esac
12191 shared_flag='-shared'
12192 if test "$aix_use_runtimelinking" = yes; then
12193 shared_flag="$shared_flag "'${wl}-G'
12194 fi
12195 else
12196 # not using gcc
12197 if test "$host_cpu" = ia64; then
12198 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12199 # chokes on -Wl,-G. The following line is correct:
12200 shared_flag='-G'
12201 else
12202 if test "$aix_use_runtimelinking" = yes; then
12203 shared_flag='${wl}-G'
12204 else
12205 shared_flag='${wl}-bM:SRE'
12206 fi
12207 fi
12208 fi
12209
12210 # It seems that -bexpall does not export symbols beginning with
12211 # underscore (_), so it is better to generate a list of symbols to export.
12212 always_export_symbols_CXX=yes
12213 if test "$aix_use_runtimelinking" = yes; then
12214 # Warning - without using the other runtime loading flags (-brtl),
12215 # -berok will link without error, but may produce a broken library.
12216 allow_undefined_flag_CXX='-berok'
12217 # Determine the default libpath from the value encoded in an empty executable.
12218 cat >conftest.$ac_ext <<_ACEOF
12219 /* confdefs.h. */
12220 _ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h. */
12224
12225 int
12226 main ()
12227 {
12228
12229 ;
12230 return 0;
12231 }
12232 _ACEOF
12233 rm -f conftest.$ac_objext conftest$ac_exeext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12235 (eval $ac_link) 2>conftest.er1
12236 ac_status=$?
12237 grep -v '^ *+' conftest.er1 >conftest.err
12238 rm -f conftest.er1
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -z "$ac_cxx_werror_flag"
12243 || test ! -s conftest.err'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; } &&
12249 { ac_try='test -s conftest$ac_exeext'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255
12256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12257 }'`
12258 # Check for a 64-bit object if we didn't find anything.
12259 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; }
12260 }'`; fi
12261 else
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12264
12265 fi
12266 rm -f conftest.err conftest.$ac_objext \
12267 conftest$ac_exeext conftest.$ac_ext
12268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12269
12270 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12271
12272 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"
12273 else
12274 if test "$host_cpu" = ia64; then
12275 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12276 allow_undefined_flag_CXX="-z nodefs"
12277 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"
12278 else
12279 # Determine the default libpath from the value encoded in an empty executable.
12280 cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h. */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286
12287 int
12288 main ()
12289 {
12290
12291 ;
12292 return 0;
12293 }
12294 _ACEOF
12295 rm -f conftest.$ac_objext conftest$ac_exeext
12296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297 (eval $ac_link) 2>conftest.er1
12298 ac_status=$?
12299 grep -v '^ *+' conftest.er1 >conftest.err
12300 rm -f conftest.er1
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } &&
12304 { ac_try='test -z "$ac_cxx_werror_flag"
12305 || test ! -s conftest.err'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; } &&
12311 { ac_try='test -s conftest$ac_exeext'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317
12318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12319 }'`
12320 # Check for a 64-bit object if we didn't find anything.
12321 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; }
12322 }'`; fi
12323 else
12324 echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12326
12327 fi
12328 rm -f conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12331
12332 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12333 # Warning - without using the other run time loading flags,
12334 # -berok will link without error, but may produce a broken library.
12335 no_undefined_flag_CXX=' ${wl}-bernotok'
12336 allow_undefined_flag_CXX=' ${wl}-berok'
12337 # Exported symbols can be pulled into shared objects from archives
12338 whole_archive_flag_spec_CXX='$convenience'
12339 archive_cmds_need_lc_CXX=yes
12340 # This is similar to how AIX traditionally builds its shared libraries.
12341 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'
12342 fi
12343 fi
12344 ;;
12345
12346 beos*)
12347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12348 allow_undefined_flag_CXX=unsupported
12349 # Joseph Beckenbach <[email protected]> says some releases of gcc
12350 # support --undefined. This deserves some investigation. FIXME
12351 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12352 else
12353 ld_shlibs_CXX=no
12354 fi
12355 ;;
12356
12357 chorus*)
12358 case $cc_basename in
12359 *)
12360 # FIXME: insert proper C++ library support
12361 ld_shlibs_CXX=no
12362 ;;
12363 esac
12364 ;;
12365
12366 cygwin* | mingw* | pw32*)
12367 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12368 # as there is no search path for DLLs.
12369 hardcode_libdir_flag_spec_CXX='-L$libdir'
12370 allow_undefined_flag_CXX=unsupported
12371 always_export_symbols_CXX=no
12372 enable_shared_with_static_runtimes_CXX=yes
12373
12374 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12375 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'
12376 # If the export-symbols file already is a .def file (1st line
12377 # is EXPORTS), use it as is; otherwise, prepend...
12378 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12379 cp $export_symbols $output_objdir/$soname.def;
12380 else
12381 echo EXPORTS > $output_objdir/$soname.def;
12382 cat $export_symbols >> $output_objdir/$soname.def;
12383 fi~
12384 $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'
12385 else
12386 ld_shlibs_CXX=no
12387 fi
12388 ;;
12389 darwin* | rhapsody*)
12390 case $host_os in
12391 rhapsody* | darwin1.[012])
12392 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12393 ;;
12394 *) # Darwin 1.3 on
12395 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12396 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12397 else
12398 case ${MACOSX_DEPLOYMENT_TARGET} in
12399 10.[012])
12400 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12401 ;;
12402 10.*)
12403 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12404 ;;
12405 esac
12406 fi
12407 ;;
12408 esac
12409 archive_cmds_need_lc_CXX=no
12410 hardcode_direct_CXX=no
12411 hardcode_automatic_CXX=yes
12412 hardcode_shlibpath_var_CXX=unsupported
12413 whole_archive_flag_spec_CXX=''
12414 link_all_deplibs_CXX=yes
12415
12416 if test "$GXX" = yes ; then
12417 lt_int_apple_cc_single_mod=no
12418 output_verbose_link_cmd='echo'
12419 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12420 lt_int_apple_cc_single_mod=yes
12421 fi
12422 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12423 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12424 else
12425 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'
12426 fi
12427 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12428 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12429 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12430 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}'
12431 else
12432 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}'
12433 fi
12434 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}'
12435 else
12436 case $cc_basename in
12437 xlc*)
12438 output_verbose_link_cmd='echo'
12439 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'
12440 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12441 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12442 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}'
12443 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}'
12444 ;;
12445 *)
12446 ld_shlibs_CXX=no
12447 ;;
12448 esac
12449 fi
12450 ;;
12451
12452 dgux*)
12453 case $cc_basename in
12454 ec++*)
12455 # FIXME: insert proper C++ library support
12456 ld_shlibs_CXX=no
12457 ;;
12458 ghcx*)
12459 # Green Hills C++ Compiler
12460 # FIXME: insert proper C++ library support
12461 ld_shlibs_CXX=no
12462 ;;
12463 *)
12464 # FIXME: insert proper C++ library support
12465 ld_shlibs_CXX=no
12466 ;;
12467 esac
12468 ;;
12469 freebsd[12]*)
12470 # C++ shared libraries reported to be fairly broken before switch to ELF
12471 ld_shlibs_CXX=no
12472 ;;
12473 freebsd-elf*)
12474 archive_cmds_need_lc_CXX=no
12475 ;;
12476 freebsd* | kfreebsd*-gnu | dragonfly*)
12477 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12478 # conventions
12479 ld_shlibs_CXX=yes
12480 ;;
12481 gnu*)
12482 ;;
12483 hpux9*)
12484 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12485 hardcode_libdir_separator_CXX=:
12486 export_dynamic_flag_spec_CXX='${wl}-E'
12487 hardcode_direct_CXX=yes
12488 hardcode_minus_L_CXX=yes # Not in the search PATH,
12489 # but as the default
12490 # location of the library.
12491
12492 case $cc_basename in
12493 CC*)
12494 # FIXME: insert proper C++ library support
12495 ld_shlibs_CXX=no
12496 ;;
12497 aCC*)
12498 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'
12499 # Commands to make compiler produce verbose output that lists
12500 # what "hidden" libraries, object files and flags are used when
12501 # linking a shared library.
12502 #
12503 # There doesn't appear to be a way to prevent this compiler from
12504 # explicitly linking system object files so we need to strip them
12505 # from the output so that they don't get included in the library
12506 # dependencies.
12507 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'
12508 ;;
12509 *)
12510 if test "$GXX" = yes; then
12511 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'
12512 else
12513 # FIXME: insert proper C++ library support
12514 ld_shlibs_CXX=no
12515 fi
12516 ;;
12517 esac
12518 ;;
12519 hpux10*|hpux11*)
12520 if test $with_gnu_ld = no; then
12521 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12522 hardcode_libdir_separator_CXX=:
12523
12524 case $host_cpu in
12525 hppa*64*|ia64*)
12526 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12527 ;;
12528 *)
12529 export_dynamic_flag_spec_CXX='${wl}-E'
12530 ;;
12531 esac
12532 fi
12533 case $host_cpu in
12534 hppa*64*|ia64*)
12535 hardcode_direct_CXX=no
12536 hardcode_shlibpath_var_CXX=no
12537 ;;
12538 *)
12539 hardcode_direct_CXX=yes
12540 hardcode_minus_L_CXX=yes # Not in the search PATH,
12541 # but as the default
12542 # location of the library.
12543 ;;
12544 esac
12545
12546 case $cc_basename in
12547 CC*)
12548 # FIXME: insert proper C++ library support
12549 ld_shlibs_CXX=no
12550 ;;
12551 aCC*)
12552 case $host_cpu in
12553 hppa*64*)
12554 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12555 ;;
12556 ia64*)
12557 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12558 ;;
12559 *)
12560 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12561 ;;
12562 esac
12563 # Commands to make compiler produce verbose output that lists
12564 # what "hidden" libraries, object files and flags are used when
12565 # linking a shared library.
12566 #
12567 # There doesn't appear to be a way to prevent this compiler from
12568 # explicitly linking system object files so we need to strip them
12569 # from the output so that they don't get included in the library
12570 # dependencies.
12571 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'
12572 ;;
12573 *)
12574 if test "$GXX" = yes; then
12575 if test $with_gnu_ld = no; then
12576 case $host_cpu in
12577 hppa*64*)
12578 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12579 ;;
12580 ia64*)
12581 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12582 ;;
12583 *)
12584 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'
12585 ;;
12586 esac
12587 fi
12588 else
12589 # FIXME: insert proper C++ library support
12590 ld_shlibs_CXX=no
12591 fi
12592 ;;
12593 esac
12594 ;;
12595 interix3*)
12596 hardcode_direct_CXX=no
12597 hardcode_shlibpath_var_CXX=no
12598 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12599 export_dynamic_flag_spec_CXX='${wl}-E'
12600 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12601 # Instead, shared libraries are loaded at an image base (0x10000000 by
12602 # default) and relocated if they conflict, which is a slow very memory
12603 # consuming and fragmenting process. To avoid this, we pick a random,
12604 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12605 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12606 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'
12607 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'
12608 ;;
12609 irix5* | irix6*)
12610 case $cc_basename in
12611 CC*)
12612 # SGI C++
12613 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'
12614
12615 # Archives containing C++ object files must be created using
12616 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12617 # necessary to make sure instantiated templates are included
12618 # in the archive.
12619 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12620 ;;
12621 *)
12622 if test "$GXX" = yes; then
12623 if test "$with_gnu_ld" = no; then
12624 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'
12625 else
12626 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'
12627 fi
12628 fi
12629 link_all_deplibs_CXX=yes
12630 ;;
12631 esac
12632 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12633 hardcode_libdir_separator_CXX=:
12634 ;;
12635 linux*)
12636 case $cc_basename in
12637 KCC*)
12638 # Kuck and Associates, Inc. (KAI) C++ Compiler
12639
12640 # KCC will only create a shared library if the output file
12641 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12642 # to its proper name (with version) after linking.
12643 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'
12644 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'
12645 # Commands to make compiler produce verbose output that lists
12646 # what "hidden" libraries, object files and flags are used when
12647 # linking a shared library.
12648 #
12649 # There doesn't appear to be a way to prevent this compiler from
12650 # explicitly linking system object files so we need to strip them
12651 # from the output so that they don't get included in the library
12652 # dependencies.
12653 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'
12654
12655 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12657
12658 # Archives containing C++ object files must be created using
12659 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12660 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12661 ;;
12662 icpc*)
12663 # Intel C++
12664 with_gnu_ld=yes
12665 # version 8.0 and above of icpc choke on multiply defined symbols
12666 # if we add $predep_objects and $postdep_objects, however 7.1 and
12667 # earlier do not add the objects themselves.
12668 case `$CC -V 2>&1` in
12669 *"Version 7."*)
12670 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12671 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'
12672 ;;
12673 *) # Version 8.0 or newer
12674 tmp_idyn=
12675 case $host_cpu in
12676 ia64*) tmp_idyn=' -i_dynamic';;
12677 esac
12678 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12679 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'
12680 ;;
12681 esac
12682 archive_cmds_need_lc_CXX=no
12683 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12684 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12685 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12686 ;;
12687 pgCC*)
12688 # Portland Group C++ compiler
12689 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12690 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'
12691
12692 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12693 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12694 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'
12695 ;;
12696 cxx*)
12697 # Compaq C++
12698 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12699 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'
12700
12701 runpath_var=LD_RUN_PATH
12702 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12703 hardcode_libdir_separator_CXX=:
12704
12705 # Commands to make compiler produce verbose output that lists
12706 # what "hidden" libraries, object files and flags are used when
12707 # linking a shared library.
12708 #
12709 # There doesn't appear to be a way to prevent this compiler from
12710 # explicitly linking system object files so we need to strip them
12711 # from the output so that they don't get included in the library
12712 # dependencies.
12713 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'
12714 ;;
12715 esac
12716 ;;
12717 lynxos*)
12718 # FIXME: insert proper C++ library support
12719 ld_shlibs_CXX=no
12720 ;;
12721 m88k*)
12722 # FIXME: insert proper C++ library support
12723 ld_shlibs_CXX=no
12724 ;;
12725 mvs*)
12726 case $cc_basename in
12727 cxx*)
12728 # FIXME: insert proper C++ library support
12729 ld_shlibs_CXX=no
12730 ;;
12731 *)
12732 # FIXME: insert proper C++ library support
12733 ld_shlibs_CXX=no
12734 ;;
12735 esac
12736 ;;
12737 netbsd*)
12738 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12739 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12740 wlarc=
12741 hardcode_libdir_flag_spec_CXX='-R$libdir'
12742 hardcode_direct_CXX=yes
12743 hardcode_shlibpath_var_CXX=no
12744 fi
12745 # Workaround some broken pre-1.5 toolchains
12746 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12747 ;;
12748 openbsd2*)
12749 # C++ shared libraries are fairly broken
12750 ld_shlibs_CXX=no
12751 ;;
12752 openbsd*)
12753 hardcode_direct_CXX=yes
12754 hardcode_shlibpath_var_CXX=no
12755 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12756 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12757 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12758 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12759 export_dynamic_flag_spec_CXX='${wl}-E'
12760 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12761 fi
12762 output_verbose_link_cmd='echo'
12763 ;;
12764 osf3*)
12765 case $cc_basename in
12766 KCC*)
12767 # Kuck and Associates, Inc. (KAI) C++ Compiler
12768
12769 # KCC will only create a shared library if the output file
12770 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12771 # to its proper name (with version) after linking.
12772 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'
12773
12774 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12775 hardcode_libdir_separator_CXX=:
12776
12777 # Archives containing C++ object files must be created using
12778 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12779 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12780
12781 ;;
12782 RCC*)
12783 # Rational C++ 2.4.1
12784 # FIXME: insert proper C++ library support
12785 ld_shlibs_CXX=no
12786 ;;
12787 cxx*)
12788 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12789 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'
12790
12791 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12792 hardcode_libdir_separator_CXX=:
12793
12794 # Commands to make compiler produce verbose output that lists
12795 # what "hidden" libraries, object files and flags are used when
12796 # linking a shared library.
12797 #
12798 # There doesn't appear to be a way to prevent this compiler from
12799 # explicitly linking system object files so we need to strip them
12800 # from the output so that they don't get included in the library
12801 # dependencies.
12802 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'
12803 ;;
12804 *)
12805 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12806 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12807 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'
12808
12809 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12810 hardcode_libdir_separator_CXX=:
12811
12812 # Commands to make compiler produce verbose output that lists
12813 # what "hidden" libraries, object files and flags are used when
12814 # linking a shared library.
12815 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12816
12817 else
12818 # FIXME: insert proper C++ library support
12819 ld_shlibs_CXX=no
12820 fi
12821 ;;
12822 esac
12823 ;;
12824 osf4* | osf5*)
12825 case $cc_basename in
12826 KCC*)
12827 # Kuck and Associates, Inc. (KAI) C++ Compiler
12828
12829 # KCC will only create a shared library if the output file
12830 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12831 # to its proper name (with version) after linking.
12832 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'
12833
12834 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12835 hardcode_libdir_separator_CXX=:
12836
12837 # Archives containing C++ object files must be created using
12838 # the KAI C++ compiler.
12839 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12840 ;;
12841 RCC*)
12842 # Rational C++ 2.4.1
12843 # FIXME: insert proper C++ library support
12844 ld_shlibs_CXX=no
12845 ;;
12846 cxx*)
12847 allow_undefined_flag_CXX=' -expect_unresolved \*'
12848 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'
12849 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12850 echo "-hidden">> $lib.exp~
12851 $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~
12852 $rm $lib.exp'
12853
12854 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12855 hardcode_libdir_separator_CXX=:
12856
12857 # Commands to make compiler produce verbose output that lists
12858 # what "hidden" libraries, object files and flags are used when
12859 # linking a shared library.
12860 #
12861 # There doesn't appear to be a way to prevent this compiler from
12862 # explicitly linking system object files so we need to strip them
12863 # from the output so that they don't get included in the library
12864 # dependencies.
12865 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'
12866 ;;
12867 *)
12868 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12869 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12870 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'
12871
12872 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12873 hardcode_libdir_separator_CXX=:
12874
12875 # Commands to make compiler produce verbose output that lists
12876 # what "hidden" libraries, object files and flags are used when
12877 # linking a shared library.
12878 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12879
12880 else
12881 # FIXME: insert proper C++ library support
12882 ld_shlibs_CXX=no
12883 fi
12884 ;;
12885 esac
12886 ;;
12887 psos*)
12888 # FIXME: insert proper C++ library support
12889 ld_shlibs_CXX=no
12890 ;;
12891 sunos4*)
12892 case $cc_basename in
12893 CC*)
12894 # Sun C++ 4.x
12895 # FIXME: insert proper C++ library support
12896 ld_shlibs_CXX=no
12897 ;;
12898 lcc*)
12899 # Lucid
12900 # FIXME: insert proper C++ library support
12901 ld_shlibs_CXX=no
12902 ;;
12903 *)
12904 # FIXME: insert proper C++ library support
12905 ld_shlibs_CXX=no
12906 ;;
12907 esac
12908 ;;
12909 solaris*)
12910 case $cc_basename in
12911 CC*)
12912 # Sun C++ 4.2, 5.x and Centerline C++
12913 archive_cmds_need_lc_CXX=yes
12914 no_undefined_flag_CXX=' -zdefs'
12915 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12916 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12917 $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'
12918
12919 hardcode_libdir_flag_spec_CXX='-R$libdir'
12920 hardcode_shlibpath_var_CXX=no
12921 case $host_os in
12922 solaris2.[0-5] | solaris2.[0-5].*) ;;
12923 *)
12924 # The C++ compiler is used as linker so we must use $wl
12925 # flag to pass the commands to the underlying system
12926 # linker. We must also pass each convience library through
12927 # to the system linker between allextract/defaultextract.
12928 # The C++ compiler will combine linker options so we
12929 # cannot just pass the convience library names through
12930 # without $wl.
12931 # Supported since Solaris 2.6 (maybe 2.5.1?)
12932 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'
12933 ;;
12934 esac
12935 link_all_deplibs_CXX=yes
12936
12937 output_verbose_link_cmd='echo'
12938
12939 # Archives containing C++ object files must be created using
12940 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12941 # necessary to make sure instantiated templates are included
12942 # in the archive.
12943 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12944 ;;
12945 gcx*)
12946 # Green Hills C++ Compiler
12947 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12948
12949 # The C++ compiler must be used to create the archive.
12950 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12951 ;;
12952 *)
12953 # GNU C++ compiler with Solaris linker
12954 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12955 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12956 if $CC --version | grep -v '^2\.7' > /dev/null; then
12957 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12958 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12959 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12960
12961 # Commands to make compiler produce verbose output that lists
12962 # what "hidden" libraries, object files and flags are used when
12963 # linking a shared library.
12964 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12965 else
12966 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12967 # platform.
12968 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12969 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12970 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12971
12972 # Commands to make compiler produce verbose output that lists
12973 # what "hidden" libraries, object files and flags are used when
12974 # linking a shared library.
12975 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12976 fi
12977
12978 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12979 fi
12980 ;;
12981 esac
12982 ;;
12983 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12984 no_undefined_flag_CXX='${wl}-z,text'
12985 archive_cmds_need_lc_CXX=no
12986 hardcode_shlibpath_var_CXX=no
12987 runpath_var='LD_RUN_PATH'
12988
12989 case $cc_basename in
12990 CC*)
12991 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12992 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12993 ;;
12994 *)
12995 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12996 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12997 ;;
12998 esac
12999 ;;
13000 sysv5* | sco3.2v5* | sco5v6*)
13001 # Note: We can NOT use -z defs as we might desire, because we do not
13002 # link with -lc, and that would cause any symbols used from libc to
13003 # always be unresolved, which means just about no library would
13004 # ever link correctly. If we're not using GNU ld we use -z text
13005 # though, which does catch some bad symbols but isn't as heavy-handed
13006 # as -z defs.
13007 # For security reasons, it is highly recommended that you always
13008 # use absolute paths for naming shared libraries, and exclude the
13009 # DT_RUNPATH tag from executables and libraries. But doing so
13010 # requires that you compile everything twice, which is a pain.
13011 # So that behaviour is only enabled if SCOABSPATH is set to a
13012 # non-empty value in the environment. Most likely only useful for
13013 # creating official distributions of packages.
13014 # This is a hack until libtool officially supports absolute path
13015 # names for shared libraries.
13016 no_undefined_flag_CXX='${wl}-z,text'
13017 allow_undefined_flag_CXX='${wl}-z,nodefs'
13018 archive_cmds_need_lc_CXX=no
13019 hardcode_shlibpath_var_CXX=no
13020 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13021 hardcode_libdir_separator_CXX=':'
13022 link_all_deplibs_CXX=yes
13023 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13024 runpath_var='LD_RUN_PATH'
13025
13026 case $cc_basename in
13027 CC*)
13028 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13029 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13030 ;;
13031 *)
13032 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13033 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13034 ;;
13035 esac
13036 ;;
13037 tandem*)
13038 case $cc_basename in
13039 NCC*)
13040 # NonStop-UX NCC 3.20
13041 # FIXME: insert proper C++ library support
13042 ld_shlibs_CXX=no
13043 ;;
13044 *)
13045 # FIXME: insert proper C++ library support
13046 ld_shlibs_CXX=no
13047 ;;
13048 esac
13049 ;;
13050 vxworks*)
13051 # FIXME: insert proper C++ library support
13052 ld_shlibs_CXX=no
13053 ;;
13054 *)
13055 # FIXME: insert proper C++ library support
13056 ld_shlibs_CXX=no
13057 ;;
13058 esac
13059 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13060 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13061 test "$ld_shlibs_CXX" = no && can_build_shared=no
13062
13063 GCC_CXX="$GXX"
13064 LD_CXX="$LD"
13065
13066 ## CAVEAT EMPTOR:
13067 ## There is no encapsulation within the following macros, do not change
13068 ## the running order or otherwise move them around unless you know exactly
13069 ## what you are doing...
13070
13071 cat > conftest.$ac_ext <<EOF
13072 class Foo
13073 {
13074 public:
13075 Foo (void) { a = 0; }
13076 private:
13077 int a;
13078 };
13079 EOF
13080
13081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13082 (eval $ac_compile) 2>&5
13083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; then
13086 # Parse the compiler output and extract the necessary
13087 # objects, libraries and library flags.
13088
13089 # Sentinel used to keep track of whether or not we are before
13090 # the conftest object file.
13091 pre_test_object_deps_done=no
13092
13093 # The `*' in the case matches for architectures that use `case' in
13094 # $output_verbose_cmd can trigger glob expansion during the loop
13095 # eval without this substitution.
13096 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13097
13098 for p in `eval $output_verbose_link_cmd`; do
13099 case $p in
13100
13101 -L* | -R* | -l*)
13102 # Some compilers place space between "-{L,R}" and the path.
13103 # Remove the space.
13104 if test $p = "-L" \
13105 || test $p = "-R"; then
13106 prev=$p
13107 continue
13108 else
13109 prev=
13110 fi
13111
13112 if test "$pre_test_object_deps_done" = no; then
13113 case $p in
13114 -L* | -R*)
13115 # Internal compiler library paths should come after those
13116 # provided the user. The postdeps already come after the
13117 # user supplied libs so there is no need to process them.
13118 if test -z "$compiler_lib_search_path_CXX"; then
13119 compiler_lib_search_path_CXX="${prev}${p}"
13120 else
13121 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13122 fi
13123 ;;
13124 # The "-l" case would never come before the object being
13125 # linked, so don't bother handling this case.
13126 esac
13127 else
13128 if test -z "$postdeps_CXX"; then
13129 postdeps_CXX="${prev}${p}"
13130 else
13131 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13132 fi
13133 fi
13134 ;;
13135
13136 *.$objext)
13137 # This assumes that the test object file only shows up
13138 # once in the compiler output.
13139 if test "$p" = "conftest.$objext"; then
13140 pre_test_object_deps_done=yes
13141 continue
13142 fi
13143
13144 if test "$pre_test_object_deps_done" = no; then
13145 if test -z "$predep_objects_CXX"; then
13146 predep_objects_CXX="$p"
13147 else
13148 predep_objects_CXX="$predep_objects_CXX $p"
13149 fi
13150 else
13151 if test -z "$postdep_objects_CXX"; then
13152 postdep_objects_CXX="$p"
13153 else
13154 postdep_objects_CXX="$postdep_objects_CXX $p"
13155 fi
13156 fi
13157 ;;
13158
13159 *) ;; # Ignore the rest.
13160
13161 esac
13162 done
13163
13164 # Clean up.
13165 rm -f a.out a.exe
13166 else
13167 echo "libtool.m4: error: problem compiling CXX test program"
13168 fi
13169
13170 $rm -f confest.$objext
13171
13172 # PORTME: override above test on systems where it is broken
13173 case $host_os in
13174 interix3*)
13175 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13176 # hack all around it, let's just trust "g++" to DTRT.
13177 predep_objects_CXX=
13178 postdep_objects_CXX=
13179 postdeps_CXX=
13180 ;;
13181
13182 solaris*)
13183 case $cc_basename in
13184 CC*)
13185 # Adding this requires a known-good setup of shared libraries for
13186 # Sun compiler versions before 5.6, else PIC objects from an old
13187 # archive will be linked into the output, leading to subtle bugs.
13188 postdeps_CXX='-lCstd -lCrun'
13189 ;;
13190 esac
13191 ;;
13192 esac
13193
13194
13195 case " $postdeps_CXX " in
13196 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13197 esac
13198
13199 lt_prog_compiler_wl_CXX=
13200 lt_prog_compiler_pic_CXX=
13201 lt_prog_compiler_static_CXX=
13202
13203 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13204 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13205
13206 # C++ specific cases for pic, static, wl, etc.
13207 if test "$GXX" = yes; then
13208 lt_prog_compiler_wl_CXX='-Wl,'
13209 lt_prog_compiler_static_CXX='-static'
13210
13211 case $host_os in
13212 aix*)
13213 # All AIX code is PIC.
13214 if test "$host_cpu" = ia64; then
13215 # AIX 5 now supports IA64 processor
13216 lt_prog_compiler_static_CXX='-Bstatic'
13217 fi
13218 ;;
13219 amigaos*)
13220 # FIXME: we need at least 68020 code to build shared libraries, but
13221 # adding the `-m68020' flag to GCC prevents building anything better,
13222 # like `-m68040'.
13223 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13224 ;;
13225 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13226 # PIC is the default for these OSes.
13227 ;;
13228 mingw* | os2* | pw32*)
13229 # This hack is so that the source file can tell whether it is being
13230 # built for inclusion in a dll (and should export symbols for example).
13231 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13232 ;;
13233 darwin* | rhapsody*)
13234 # PIC is the default on this platform
13235 # Common symbols not allowed in MH_DYLIB files
13236 lt_prog_compiler_pic_CXX='-fno-common'
13237 ;;
13238 *djgpp*)
13239 # DJGPP does not support shared libraries at all
13240 lt_prog_compiler_pic_CXX=
13241 ;;
13242 interix3*)
13243 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13244 # Instead, we relocate shared libraries at runtime.
13245 ;;
13246 sysv4*MP*)
13247 if test -d /usr/nec; then
13248 lt_prog_compiler_pic_CXX=-Kconform_pic
13249 fi
13250 ;;
13251 hpux*)
13252 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13253 # not for PA HP-UX.
13254 case $host_cpu in
13255 hppa*64*|ia64*)
13256 ;;
13257 *)
13258 lt_prog_compiler_pic_CXX='-fPIC'
13259 ;;
13260 esac
13261 ;;
13262 *)
13263 lt_prog_compiler_pic_CXX='-fPIC'
13264 ;;
13265 esac
13266 else
13267 case $host_os in
13268 aix4* | aix5*)
13269 # All AIX code is PIC.
13270 if test "$host_cpu" = ia64; then
13271 # AIX 5 now supports IA64 processor
13272 lt_prog_compiler_static_CXX='-Bstatic'
13273 else
13274 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13275 fi
13276 ;;
13277 chorus*)
13278 case $cc_basename in
13279 cxch68*)
13280 # Green Hills C++ Compiler
13281 # _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"
13282 ;;
13283 esac
13284 ;;
13285 darwin*)
13286 # PIC is the default on this platform
13287 # Common symbols not allowed in MH_DYLIB files
13288 case $cc_basename in
13289 xlc*)
13290 lt_prog_compiler_pic_CXX='-qnocommon'
13291 lt_prog_compiler_wl_CXX='-Wl,'
13292 ;;
13293 esac
13294 ;;
13295 dgux*)
13296 case $cc_basename in
13297 ec++*)
13298 lt_prog_compiler_pic_CXX='-KPIC'
13299 ;;
13300 ghcx*)
13301 # Green Hills C++ Compiler
13302 lt_prog_compiler_pic_CXX='-pic'
13303 ;;
13304 *)
13305 ;;
13306 esac
13307 ;;
13308 freebsd* | kfreebsd*-gnu | dragonfly*)
13309 # FreeBSD uses GNU C++
13310 ;;
13311 hpux9* | hpux10* | hpux11*)
13312 case $cc_basename in
13313 CC*)
13314 lt_prog_compiler_wl_CXX='-Wl,'
13315 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13316 if test "$host_cpu" != ia64; then
13317 lt_prog_compiler_pic_CXX='+Z'
13318 fi
13319 ;;
13320 aCC*)
13321 lt_prog_compiler_wl_CXX='-Wl,'
13322 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13323 case $host_cpu in
13324 hppa*64*|ia64*)
13325 # +Z the default
13326 ;;
13327 *)
13328 lt_prog_compiler_pic_CXX='+Z'
13329 ;;
13330 esac
13331 ;;
13332 *)
13333 ;;
13334 esac
13335 ;;
13336 interix*)
13337 # This is c89, which is MS Visual C++ (no shared libs)
13338 # Anyone wants to do a port?
13339 ;;
13340 irix5* | irix6* | nonstopux*)
13341 case $cc_basename in
13342 CC*)
13343 lt_prog_compiler_wl_CXX='-Wl,'
13344 lt_prog_compiler_static_CXX='-non_shared'
13345 # CC pic flag -KPIC is the default.
13346 ;;
13347 *)
13348 ;;
13349 esac
13350 ;;
13351 linux*)
13352 case $cc_basename in
13353 KCC*)
13354 # KAI C++ Compiler
13355 lt_prog_compiler_wl_CXX='--backend -Wl,'
13356 lt_prog_compiler_pic_CXX='-fPIC'
13357 ;;
13358 icpc* | ecpc*)
13359 # Intel C++
13360 lt_prog_compiler_wl_CXX='-Wl,'
13361 lt_prog_compiler_pic_CXX='-KPIC'
13362 lt_prog_compiler_static_CXX='-static'
13363 ;;
13364 pgCC*)
13365 # Portland Group C++ compiler.
13366 lt_prog_compiler_wl_CXX='-Wl,'
13367 lt_prog_compiler_pic_CXX='-fpic'
13368 lt_prog_compiler_static_CXX='-Bstatic'
13369 ;;
13370 cxx*)
13371 # Compaq C++
13372 # Make sure the PIC flag is empty. It appears that all Alpha
13373 # Linux and Compaq Tru64 Unix objects are PIC.
13374 lt_prog_compiler_pic_CXX=
13375 lt_prog_compiler_static_CXX='-non_shared'
13376 ;;
13377 *)
13378 ;;
13379 esac
13380 ;;
13381 lynxos*)
13382 ;;
13383 m88k*)
13384 ;;
13385 mvs*)
13386 case $cc_basename in
13387 cxx*)
13388 lt_prog_compiler_pic_CXX='-W c,exportall'
13389 ;;
13390 *)
13391 ;;
13392 esac
13393 ;;
13394 netbsd*)
13395 ;;
13396 osf3* | osf4* | osf5*)
13397 case $cc_basename in
13398 KCC*)
13399 lt_prog_compiler_wl_CXX='--backend -Wl,'
13400 ;;
13401 RCC*)
13402 # Rational C++ 2.4.1
13403 lt_prog_compiler_pic_CXX='-pic'
13404 ;;
13405 cxx*)
13406 # Digital/Compaq C++
13407 lt_prog_compiler_wl_CXX='-Wl,'
13408 # Make sure the PIC flag is empty. It appears that all Alpha
13409 # Linux and Compaq Tru64 Unix objects are PIC.
13410 lt_prog_compiler_pic_CXX=
13411 lt_prog_compiler_static_CXX='-non_shared'
13412 ;;
13413 *)
13414 ;;
13415 esac
13416 ;;
13417 psos*)
13418 ;;
13419 solaris*)
13420 case $cc_basename in
13421 CC*)
13422 # Sun C++ 4.2, 5.x and Centerline C++
13423 lt_prog_compiler_pic_CXX='-KPIC'
13424 lt_prog_compiler_static_CXX='-Bstatic'
13425 lt_prog_compiler_wl_CXX='-Qoption ld '
13426 ;;
13427 gcx*)
13428 # Green Hills C++ Compiler
13429 lt_prog_compiler_pic_CXX='-PIC'
13430 ;;
13431 *)
13432 ;;
13433 esac
13434 ;;
13435 sunos4*)
13436 case $cc_basename in
13437 CC*)
13438 # Sun C++ 4.x
13439 lt_prog_compiler_pic_CXX='-pic'
13440 lt_prog_compiler_static_CXX='-Bstatic'
13441 ;;
13442 lcc*)
13443 # Lucid
13444 lt_prog_compiler_pic_CXX='-pic'
13445 ;;
13446 *)
13447 ;;
13448 esac
13449 ;;
13450 tandem*)
13451 case $cc_basename in
13452 NCC*)
13453 # NonStop-UX NCC 3.20
13454 lt_prog_compiler_pic_CXX='-KPIC'
13455 ;;
13456 *)
13457 ;;
13458 esac
13459 ;;
13460 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13461 case $cc_basename in
13462 CC*)
13463 lt_prog_compiler_wl_CXX='-Wl,'
13464 lt_prog_compiler_pic_CXX='-KPIC'
13465 lt_prog_compiler_static_CXX='-Bstatic'
13466 ;;
13467 esac
13468 ;;
13469 vxworks*)
13470 ;;
13471 *)
13472 lt_prog_compiler_can_build_shared_CXX=no
13473 ;;
13474 esac
13475 fi
13476
13477 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13478 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13479
13480 #
13481 # Check to make sure the PIC flag actually works.
13482 #
13483 if test -n "$lt_prog_compiler_pic_CXX"; then
13484
13485 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13486 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13487 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490 lt_prog_compiler_pic_works_CXX=no
13491 ac_outfile=conftest.$ac_objext
13492 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13493 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13494 # Insert the option either (1) after the last *FLAGS variable, or
13495 # (2) before a word containing "conftest.", or (3) at the end.
13496 # Note that $ac_compile itself does not contain backslashes and begins
13497 # with a dollar sign (not a hyphen), so the echo should work correctly.
13498 # The option is referenced via a variable to avoid confusing sed.
13499 lt_compile=`echo "$ac_compile" | $SED \
13500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13502 -e 's:$: $lt_compiler_flag:'`
13503 (eval echo "\"\$as_me:13503: $lt_compile\"" >&5)
13504 (eval "$lt_compile" 2>conftest.err)
13505 ac_status=$?
13506 cat conftest.err >&5
13507 echo "$as_me:13507: \$? = $ac_status" >&5
13508 if (exit $ac_status) && test -s "$ac_outfile"; then
13509 # The compiler can only warn and ignore the option if not recognized
13510 # So say no if there are warnings other than the usual output.
13511 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13514 lt_prog_compiler_pic_works_CXX=yes
13515 fi
13516 fi
13517 $rm conftest*
13518
13519 fi
13520 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13521 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13522
13523 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13524 case $lt_prog_compiler_pic_CXX in
13525 "" | " "*) ;;
13526 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13527 esac
13528 else
13529 lt_prog_compiler_pic_CXX=
13530 lt_prog_compiler_can_build_shared_CXX=no
13531 fi
13532
13533 fi
13534 case $host_os in
13535 # For platforms which do not support PIC, -DPIC is meaningless:
13536 *djgpp*)
13537 lt_prog_compiler_pic_CXX=
13538 ;;
13539 *)
13540 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13541 ;;
13542 esac
13543
13544 #
13545 # Check to make sure the static flag actually works.
13546 #
13547 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13548 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13549 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13550 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 else
13553 lt_prog_compiler_static_works_CXX=no
13554 save_LDFLAGS="$LDFLAGS"
13555 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13556 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13557 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13558 # The linker can only warn and ignore the option if not recognized
13559 # So say no if there are warnings
13560 if test -s conftest.err; then
13561 # Append any errors to the config.log.
13562 cat conftest.err 1>&5
13563 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13565 if diff conftest.exp conftest.er2 >/dev/null; then
13566 lt_prog_compiler_static_works_CXX=yes
13567 fi
13568 else
13569 lt_prog_compiler_static_works_CXX=yes
13570 fi
13571 fi
13572 $rm conftest*
13573 LDFLAGS="$save_LDFLAGS"
13574
13575 fi
13576 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13577 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13578
13579 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13580 :
13581 else
13582 lt_prog_compiler_static_CXX=
13583 fi
13584
13585
13586 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13587 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13588 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 else
13591 lt_cv_prog_compiler_c_o_CXX=no
13592 $rm -r conftest 2>/dev/null
13593 mkdir conftest
13594 cd conftest
13595 mkdir out
13596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13597
13598 lt_compiler_flag="-o out/conftest2.$ac_objext"
13599 # Insert the option either (1) after the last *FLAGS variable, or
13600 # (2) before a word containing "conftest.", or (3) at the end.
13601 # Note that $ac_compile itself does not contain backslashes and begins
13602 # with a dollar sign (not a hyphen), so the echo should work correctly.
13603 lt_compile=`echo "$ac_compile" | $SED \
13604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13606 -e 's:$: $lt_compiler_flag:'`
13607 (eval echo "\"\$as_me:13607: $lt_compile\"" >&5)
13608 (eval "$lt_compile" 2>out/conftest.err)
13609 ac_status=$?
13610 cat out/conftest.err >&5
13611 echo "$as_me:13611: \$? = $ac_status" >&5
13612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13613 then
13614 # The compiler can only warn and ignore the option if not recognized
13615 # So say no if there are warnings
13616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13619 lt_cv_prog_compiler_c_o_CXX=yes
13620 fi
13621 fi
13622 chmod u+w . 2>&5
13623 $rm conftest*
13624 # SGI C++ compiler will create directory out/ii_files/ for
13625 # template instantiation
13626 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13627 $rm out/* && rmdir out
13628 cd ..
13629 rmdir conftest
13630 $rm conftest*
13631
13632 fi
13633 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13634 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13635
13636
13637 hard_links="nottested"
13638 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13639 # do not overwrite the value of need_locks provided by the user
13640 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13641 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13642 hard_links=yes
13643 $rm conftest*
13644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13645 touch conftest.a
13646 ln conftest.a conftest.b 2>&5 || hard_links=no
13647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13648 echo "$as_me:$LINENO: result: $hard_links" >&5
13649 echo "${ECHO_T}$hard_links" >&6
13650 if test "$hard_links" = no; then
13651 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13652 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13653 need_locks=warn
13654 fi
13655 else
13656 need_locks=no
13657 fi
13658
13659 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13660 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13661
13662 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13663 case $host_os in
13664 aix4* | aix5*)
13665 # If we're using GNU nm, then we don't want the "-C" option.
13666 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13667 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13668 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'
13669 else
13670 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'
13671 fi
13672 ;;
13673 pw32*)
13674 export_symbols_cmds_CXX="$ltdll_cmds"
13675 ;;
13676 cygwin* | mingw*)
13677 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'
13678 ;;
13679 *)
13680 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13681 ;;
13682 esac
13683
13684 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13685 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13686 test "$ld_shlibs_CXX" = no && can_build_shared=no
13687
13688 #
13689 # Do we need to explicitly link libc?
13690 #
13691 case "x$archive_cmds_need_lc_CXX" in
13692 x|xyes)
13693 # Assume -lc should be added
13694 archive_cmds_need_lc_CXX=yes
13695
13696 if test "$enable_shared" = yes && test "$GCC" = yes; then
13697 case $archive_cmds_CXX in
13698 *'~'*)
13699 # FIXME: we may have to deal with multi-command sequences.
13700 ;;
13701 '$CC '*)
13702 # Test whether the compiler implicitly links with -lc since on some
13703 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13704 # to ld, don't add -lc before -lgcc.
13705 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13706 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13707 $rm conftest*
13708 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13709
13710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13711 (eval $ac_compile) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } 2>conftest.err; then
13715 soname=conftest
13716 lib=conftest
13717 libobjs=conftest.$ac_objext
13718 deplibs=
13719 wl=$lt_prog_compiler_wl_CXX
13720 pic_flag=$lt_prog_compiler_pic_CXX
13721 compiler_flags=-v
13722 linker_flags=-v
13723 verstring=
13724 output_objdir=.
13725 libname=conftest
13726 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13727 allow_undefined_flag_CXX=
13728 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13729 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }
13733 then
13734 archive_cmds_need_lc_CXX=no
13735 else
13736 archive_cmds_need_lc_CXX=yes
13737 fi
13738 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13739 else
13740 cat conftest.err 1>&5
13741 fi
13742 $rm conftest*
13743 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13744 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13745 ;;
13746 esac
13747 fi
13748 ;;
13749 esac
13750
13751 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13752 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13753 library_names_spec=
13754 libname_spec='lib$name'
13755 soname_spec=
13756 shrext_cmds=".so"
13757 postinstall_cmds=
13758 postuninstall_cmds=
13759 finish_cmds=
13760 finish_eval=
13761 shlibpath_var=
13762 shlibpath_overrides_runpath=unknown
13763 version_type=none
13764 dynamic_linker="$host_os ld.so"
13765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13766 if test "$GCC" = yes; then
13767 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13768 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13769 # if the path contains ";" then we assume it to be the separator
13770 # otherwise default to the standard path separator (i.e. ":") - it is
13771 # assumed that no part of a normal pathname contains ";" but that should
13772 # okay in the real world where ";" in dirpaths is itself problematic.
13773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13774 else
13775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13776 fi
13777 else
13778 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13779 fi
13780 need_lib_prefix=unknown
13781 hardcode_into_libs=no
13782
13783 # when you set need_version to no, make sure it does not cause -set_version
13784 # flags to be left without arguments
13785 need_version=unknown
13786
13787 case $host_os in
13788 aix3*)
13789 version_type=linux
13790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13791 shlibpath_var=LIBPATH
13792
13793 # AIX 3 has no versioning support, so we append a major version to the name.
13794 soname_spec='${libname}${release}${shared_ext}$major'
13795 ;;
13796
13797 aix4* | aix5*)
13798 version_type=linux
13799 need_lib_prefix=no
13800 need_version=no
13801 hardcode_into_libs=yes
13802 if test "$host_cpu" = ia64; then
13803 # AIX 5 supports IA64
13804 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13805 shlibpath_var=LD_LIBRARY_PATH
13806 else
13807 # With GCC up to 2.95.x, collect2 would create an import file
13808 # for dependence libraries. The import file would start with
13809 # the line `#! .'. This would cause the generated library to
13810 # depend on `.', always an invalid library. This was fixed in
13811 # development snapshots of GCC prior to 3.0.
13812 case $host_os in
13813 aix4 | aix4.[01] | aix4.[01].*)
13814 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13815 echo ' yes '
13816 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13817 :
13818 else
13819 can_build_shared=no
13820 fi
13821 ;;
13822 esac
13823 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13824 # soname into executable. Probably we can add versioning support to
13825 # collect2, so additional links can be useful in future.
13826 if test "$aix_use_runtimelinking" = yes; then
13827 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13828 # instead of lib<name>.a to let people know that these are not
13829 # typical AIX shared libraries.
13830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13831 else
13832 # We preserve .a as extension for shared libraries through AIX4.2
13833 # and later when we are not doing run time linking.
13834 library_names_spec='${libname}${release}.a $libname.a'
13835 soname_spec='${libname}${release}${shared_ext}$major'
13836 fi
13837 shlibpath_var=LIBPATH
13838 fi
13839 ;;
13840
13841 amigaos*)
13842 library_names_spec='$libname.ixlibrary $libname.a'
13843 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13844 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'
13845 ;;
13846
13847 beos*)
13848 library_names_spec='${libname}${shared_ext}'
13849 dynamic_linker="$host_os ld.so"
13850 shlibpath_var=LIBRARY_PATH
13851 ;;
13852
13853 bsdi[45]*)
13854 version_type=linux
13855 need_version=no
13856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13857 soname_spec='${libname}${release}${shared_ext}$major'
13858 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13859 shlibpath_var=LD_LIBRARY_PATH
13860 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13861 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13862 # the default ld.so.conf also contains /usr/contrib/lib and
13863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13864 # libtool to hard-code these into programs
13865 ;;
13866
13867 cygwin* | mingw* | pw32*)
13868 version_type=windows
13869 shrext_cmds=".dll"
13870 need_version=no
13871 need_lib_prefix=no
13872
13873 case $GCC,$host_os in
13874 yes,cygwin* | yes,mingw* | yes,pw32*)
13875 library_names_spec='$libname.dll.a'
13876 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13877 postinstall_cmds='base_file=`basename \${file}`~
13878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13879 dldir=$destdir/`dirname \$dlpath`~
13880 test -d \$dldir || mkdir -p \$dldir~
13881 $install_prog $dir/$dlname \$dldir/$dlname~
13882 chmod a+x \$dldir/$dlname'
13883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13884 dlpath=$dir/\$dldll~
13885 $rm \$dlpath'
13886 shlibpath_overrides_runpath=yes
13887
13888 case $host_os in
13889 cygwin*)
13890 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13891 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13892 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13893 ;;
13894 mingw*)
13895 # MinGW DLLs use traditional 'lib' prefix
13896 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13897 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13898 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13899 # It is most probably a Windows format PATH printed by
13900 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13901 # path with ; separators, and with drive letters. We can handle the
13902 # drive letters (cygwin fileutils understands them), so leave them,
13903 # especially as we might pass files found there to a mingw objdump,
13904 # which wouldn't understand a cygwinified path. Ahh.
13905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13906 else
13907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13908 fi
13909 ;;
13910 pw32*)
13911 # pw32 DLLs use 'pw' prefix rather than 'lib'
13912 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13913 ;;
13914 esac
13915 ;;
13916
13917 *)
13918 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13919 ;;
13920 esac
13921 dynamic_linker='Win32 ld.exe'
13922 # FIXME: first we should search . and the directory the executable is in
13923 shlibpath_var=PATH
13924 ;;
13925
13926 darwin* | rhapsody*)
13927 dynamic_linker="$host_os dyld"
13928 version_type=darwin
13929 need_lib_prefix=no
13930 need_version=no
13931 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13932 soname_spec='${libname}${release}${major}$shared_ext'
13933 shlibpath_overrides_runpath=yes
13934 shlibpath_var=DYLD_LIBRARY_PATH
13935 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13936 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13937 if test "$GCC" = yes; then
13938 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"`
13939 else
13940 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13941 fi
13942 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13943 ;;
13944
13945 dgux*)
13946 version_type=linux
13947 need_lib_prefix=no
13948 need_version=no
13949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13950 soname_spec='${libname}${release}${shared_ext}$major'
13951 shlibpath_var=LD_LIBRARY_PATH
13952 ;;
13953
13954 freebsd1*)
13955 dynamic_linker=no
13956 ;;
13957
13958 kfreebsd*-gnu)
13959 version_type=linux
13960 need_lib_prefix=no
13961 need_version=no
13962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13963 soname_spec='${libname}${release}${shared_ext}$major'
13964 shlibpath_var=LD_LIBRARY_PATH
13965 shlibpath_overrides_runpath=no
13966 hardcode_into_libs=yes
13967 dynamic_linker='GNU ld.so'
13968 ;;
13969
13970 freebsd* | dragonfly*)
13971 # DragonFly does not have aout. When/if they implement a new
13972 # versioning mechanism, adjust this.
13973 if test -x /usr/bin/objformat; then
13974 objformat=`/usr/bin/objformat`
13975 else
13976 case $host_os in
13977 freebsd[123]*) objformat=aout ;;
13978 *) objformat=elf ;;
13979 esac
13980 fi
13981 version_type=freebsd-$objformat
13982 case $version_type in
13983 freebsd-elf*)
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13985 need_version=no
13986 need_lib_prefix=no
13987 ;;
13988 freebsd-*)
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13990 need_version=yes
13991 ;;
13992 esac
13993 shlibpath_var=LD_LIBRARY_PATH
13994 case $host_os in
13995 freebsd2*)
13996 shlibpath_overrides_runpath=yes
13997 ;;
13998 freebsd3.[01]* | freebsdelf3.[01]*)
13999 shlibpath_overrides_runpath=yes
14000 hardcode_into_libs=yes
14001 ;;
14002 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14003 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14004 shlibpath_overrides_runpath=no
14005 hardcode_into_libs=yes
14006 ;;
14007 freebsd*) # from 4.6 on
14008 shlibpath_overrides_runpath=yes
14009 hardcode_into_libs=yes
14010 ;;
14011 esac
14012 ;;
14013
14014 gnu*)
14015 version_type=linux
14016 need_lib_prefix=no
14017 need_version=no
14018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14019 soname_spec='${libname}${release}${shared_ext}$major'
14020 shlibpath_var=LD_LIBRARY_PATH
14021 hardcode_into_libs=yes
14022 ;;
14023
14024 hpux9* | hpux10* | hpux11*)
14025 # Give a soname corresponding to the major version so that dld.sl refuses to
14026 # link against other versions.
14027 version_type=sunos
14028 need_lib_prefix=no
14029 need_version=no
14030 case $host_cpu in
14031 ia64*)
14032 shrext_cmds='.so'
14033 hardcode_into_libs=yes
14034 dynamic_linker="$host_os dld.so"
14035 shlibpath_var=LD_LIBRARY_PATH
14036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038 soname_spec='${libname}${release}${shared_ext}$major'
14039 if test "X$HPUX_IA64_MODE" = X32; then
14040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14041 else
14042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14043 fi
14044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14045 ;;
14046 hppa*64*)
14047 shrext_cmds='.sl'
14048 hardcode_into_libs=yes
14049 dynamic_linker="$host_os dld.sl"
14050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14053 soname_spec='${libname}${release}${shared_ext}$major'
14054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14056 ;;
14057 *)
14058 shrext_cmds='.sl'
14059 dynamic_linker="$host_os dld.sl"
14060 shlibpath_var=SHLIB_PATH
14061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14063 soname_spec='${libname}${release}${shared_ext}$major'
14064 ;;
14065 esac
14066 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14067 postinstall_cmds='chmod 555 $lib'
14068 ;;
14069
14070 interix3*)
14071 version_type=linux
14072 need_lib_prefix=no
14073 need_version=no
14074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14075 soname_spec='${libname}${release}${shared_ext}$major'
14076 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14077 shlibpath_var=LD_LIBRARY_PATH
14078 shlibpath_overrides_runpath=no
14079 hardcode_into_libs=yes
14080 ;;
14081
14082 irix5* | irix6* | nonstopux*)
14083 case $host_os in
14084 nonstopux*) version_type=nonstopux ;;
14085 *)
14086 if test "$lt_cv_prog_gnu_ld" = yes; then
14087 version_type=linux
14088 else
14089 version_type=irix
14090 fi ;;
14091 esac
14092 need_lib_prefix=no
14093 need_version=no
14094 soname_spec='${libname}${release}${shared_ext}$major'
14095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14096 case $host_os in
14097 irix5* | nonstopux*)
14098 libsuff= shlibsuff=
14099 ;;
14100 *)
14101 case $LD in # libtool.m4 will add one of these switches to LD
14102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14103 libsuff= shlibsuff= libmagic=32-bit;;
14104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14105 libsuff=32 shlibsuff=N32 libmagic=N32;;
14106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14107 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14108 *) libsuff= shlibsuff= libmagic=never-match;;
14109 esac
14110 ;;
14111 esac
14112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14113 shlibpath_overrides_runpath=no
14114 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14115 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14116 hardcode_into_libs=yes
14117 ;;
14118
14119 # No shared lib support for Linux oldld, aout, or coff.
14120 linux*oldld* | linux*aout* | linux*coff*)
14121 dynamic_linker=no
14122 ;;
14123
14124 # This must be Linux ELF.
14125 linux*)
14126 version_type=linux
14127 need_lib_prefix=no
14128 need_version=no
14129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14130 soname_spec='${libname}${release}${shared_ext}$major'
14131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 shlibpath_overrides_runpath=no
14134 # This implies no fast_install, which is unacceptable.
14135 # Some rework will be needed to allow for fast_install
14136 # before this can be enabled.
14137 hardcode_into_libs=yes
14138
14139 # Append ld.so.conf contents to the search path
14140 if test -f /etc/ld.so.conf; then
14141 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' ' '`
14142 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14143 fi
14144
14145 # We used to test for /lib/ld.so.1 and disable shared libraries on
14146 # powerpc, because MkLinux only supported shared libraries with the
14147 # GNU dynamic linker. Since this was broken with cross compilers,
14148 # most powerpc-linux boxes support dynamic linking these days and
14149 # people can always --disable-shared, the test was removed, and we
14150 # assume the GNU/Linux dynamic linker is in use.
14151 dynamic_linker='GNU/Linux ld.so'
14152 ;;
14153
14154 knetbsd*-gnu)
14155 version_type=linux
14156 need_lib_prefix=no
14157 need_version=no
14158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14159 soname_spec='${libname}${release}${shared_ext}$major'
14160 shlibpath_var=LD_LIBRARY_PATH
14161 shlibpath_overrides_runpath=no
14162 hardcode_into_libs=yes
14163 dynamic_linker='GNU ld.so'
14164 ;;
14165
14166 netbsd*)
14167 version_type=sunos
14168 need_lib_prefix=no
14169 need_version=no
14170 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14173 dynamic_linker='NetBSD (a.out) ld.so'
14174 else
14175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14176 soname_spec='${libname}${release}${shared_ext}$major'
14177 dynamic_linker='NetBSD ld.elf_so'
14178 fi
14179 shlibpath_var=LD_LIBRARY_PATH
14180 shlibpath_overrides_runpath=yes
14181 hardcode_into_libs=yes
14182 ;;
14183
14184 newsos6)
14185 version_type=linux
14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187 shlibpath_var=LD_LIBRARY_PATH
14188 shlibpath_overrides_runpath=yes
14189 ;;
14190
14191 nto-qnx*)
14192 version_type=linux
14193 need_lib_prefix=no
14194 need_version=no
14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14196 soname_spec='${libname}${release}${shared_ext}$major'
14197 shlibpath_var=LD_LIBRARY_PATH
14198 shlibpath_overrides_runpath=yes
14199 ;;
14200
14201 openbsd*)
14202 version_type=sunos
14203 sys_lib_dlsearch_path_spec="/usr/lib"
14204 need_lib_prefix=no
14205 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14206 case $host_os in
14207 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14208 *) need_version=no ;;
14209 esac
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14212 shlibpath_var=LD_LIBRARY_PATH
14213 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14214 case $host_os in
14215 openbsd2.[89] | openbsd2.[89].*)
14216 shlibpath_overrides_runpath=no
14217 ;;
14218 *)
14219 shlibpath_overrides_runpath=yes
14220 ;;
14221 esac
14222 else
14223 shlibpath_overrides_runpath=yes
14224 fi
14225 ;;
14226
14227 os2*)
14228 libname_spec='$name'
14229 shrext_cmds=".dll"
14230 need_lib_prefix=no
14231 library_names_spec='$libname${shared_ext} $libname.a'
14232 dynamic_linker='OS/2 ld.exe'
14233 shlibpath_var=LIBPATH
14234 ;;
14235
14236 osf3* | osf4* | osf5*)
14237 version_type=osf
14238 need_lib_prefix=no
14239 need_version=no
14240 soname_spec='${libname}${release}${shared_ext}$major'
14241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14242 shlibpath_var=LD_LIBRARY_PATH
14243 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14244 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14245 ;;
14246
14247 solaris*)
14248 version_type=linux
14249 need_lib_prefix=no
14250 need_version=no
14251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252 soname_spec='${libname}${release}${shared_ext}$major'
14253 shlibpath_var=LD_LIBRARY_PATH
14254 shlibpath_overrides_runpath=yes
14255 hardcode_into_libs=yes
14256 # ldd complains unless libraries are executable
14257 postinstall_cmds='chmod +x $lib'
14258 ;;
14259
14260 sunos4*)
14261 version_type=sunos
14262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14263 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14264 shlibpath_var=LD_LIBRARY_PATH
14265 shlibpath_overrides_runpath=yes
14266 if test "$with_gnu_ld" = yes; then
14267 need_lib_prefix=no
14268 fi
14269 need_version=yes
14270 ;;
14271
14272 sysv4 | sysv4.3*)
14273 version_type=linux
14274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14275 soname_spec='${libname}${release}${shared_ext}$major'
14276 shlibpath_var=LD_LIBRARY_PATH
14277 case $host_vendor in
14278 sni)
14279 shlibpath_overrides_runpath=no
14280 need_lib_prefix=no
14281 export_dynamic_flag_spec='${wl}-Blargedynsym'
14282 runpath_var=LD_RUN_PATH
14283 ;;
14284 siemens)
14285 need_lib_prefix=no
14286 ;;
14287 motorola)
14288 need_lib_prefix=no
14289 need_version=no
14290 shlibpath_overrides_runpath=no
14291 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14292 ;;
14293 esac
14294 ;;
14295
14296 sysv4*MP*)
14297 if test -d /usr/nec ;then
14298 version_type=linux
14299 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14300 soname_spec='$libname${shared_ext}.$major'
14301 shlibpath_var=LD_LIBRARY_PATH
14302 fi
14303 ;;
14304
14305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14306 version_type=freebsd-elf
14307 need_lib_prefix=no
14308 need_version=no
14309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14310 soname_spec='${libname}${release}${shared_ext}$major'
14311 shlibpath_var=LD_LIBRARY_PATH
14312 hardcode_into_libs=yes
14313 if test "$with_gnu_ld" = yes; then
14314 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14315 shlibpath_overrides_runpath=no
14316 else
14317 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14318 shlibpath_overrides_runpath=yes
14319 case $host_os in
14320 sco3.2v5*)
14321 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14322 ;;
14323 esac
14324 fi
14325 sys_lib_dlsearch_path_spec='/usr/lib'
14326 ;;
14327
14328 uts4*)
14329 version_type=linux
14330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14331 soname_spec='${libname}${release}${shared_ext}$major'
14332 shlibpath_var=LD_LIBRARY_PATH
14333 ;;
14334
14335 *)
14336 dynamic_linker=no
14337 ;;
14338 esac
14339 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14340 echo "${ECHO_T}$dynamic_linker" >&6
14341 test "$dynamic_linker" = no && can_build_shared=no
14342
14343 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14344 if test "$GCC" = yes; then
14345 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14346 fi
14347
14348 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14349 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14350 hardcode_action_CXX=
14351 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14352 test -n "$runpath_var_CXX" || \
14353 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14354
14355 # We can hardcode non-existant directories.
14356 if test "$hardcode_direct_CXX" != no &&
14357 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14358 # have to relink, otherwise we might link with an installed library
14359 # when we should be linking with a yet-to-be-installed one
14360 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14361 test "$hardcode_minus_L_CXX" != no; then
14362 # Linking always hardcodes the temporary library directory.
14363 hardcode_action_CXX=relink
14364 else
14365 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14366 hardcode_action_CXX=immediate
14367 fi
14368 else
14369 # We cannot hardcode anything, or else we can only hardcode existing
14370 # directories.
14371 hardcode_action_CXX=unsupported
14372 fi
14373 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14374 echo "${ECHO_T}$hardcode_action_CXX" >&6
14375
14376 if test "$hardcode_action_CXX" = relink; then
14377 # Fast installation is not supported
14378 enable_fast_install=no
14379 elif test "$shlibpath_overrides_runpath" = yes ||
14380 test "$enable_shared" = no; then
14381 # Fast installation is not necessary
14382 enable_fast_install=needless
14383 fi
14384
14385
14386 # The else clause should only fire when bootstrapping the
14387 # libtool distribution, otherwise you forgot to ship ltmain.sh
14388 # with your package, and you will get complaints that there are
14389 # no rules to generate ltmain.sh.
14390 if test -f "$ltmain"; then
14391 # See if we are running on zsh, and set the options which allow our commands through
14392 # without removal of \ escapes.
14393 if test -n "${ZSH_VERSION+set}" ; then
14394 setopt NO_GLOB_SUBST
14395 fi
14396 # Now quote all the things that may contain metacharacters while being
14397 # careful not to overquote the AC_SUBSTed values. We take copies of the
14398 # variables and quote the copies for generation of the libtool script.
14399 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14400 SED SHELL STRIP \
14401 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14402 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14403 deplibs_check_method reload_flag reload_cmds need_locks \
14404 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14405 lt_cv_sys_global_symbol_to_c_name_address \
14406 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14407 old_postinstall_cmds old_postuninstall_cmds \
14408 compiler_CXX \
14409 CC_CXX \
14410 LD_CXX \
14411 lt_prog_compiler_wl_CXX \
14412 lt_prog_compiler_pic_CXX \
14413 lt_prog_compiler_static_CXX \
14414 lt_prog_compiler_no_builtin_flag_CXX \
14415 export_dynamic_flag_spec_CXX \
14416 thread_safe_flag_spec_CXX \
14417 whole_archive_flag_spec_CXX \
14418 enable_shared_with_static_runtimes_CXX \
14419 old_archive_cmds_CXX \
14420 old_archive_from_new_cmds_CXX \
14421 predep_objects_CXX \
14422 postdep_objects_CXX \
14423 predeps_CXX \
14424 postdeps_CXX \
14425 compiler_lib_search_path_CXX \
14426 archive_cmds_CXX \
14427 archive_expsym_cmds_CXX \
14428 postinstall_cmds_CXX \
14429 postuninstall_cmds_CXX \
14430 old_archive_from_expsyms_cmds_CXX \
14431 allow_undefined_flag_CXX \
14432 no_undefined_flag_CXX \
14433 export_symbols_cmds_CXX \
14434 hardcode_libdir_flag_spec_CXX \
14435 hardcode_libdir_flag_spec_ld_CXX \
14436 hardcode_libdir_separator_CXX \
14437 hardcode_automatic_CXX \
14438 module_cmds_CXX \
14439 module_expsym_cmds_CXX \
14440 lt_cv_prog_compiler_c_o_CXX \
14441 exclude_expsyms_CXX \
14442 include_expsyms_CXX; do
14443
14444 case $var in
14445 old_archive_cmds_CXX | \
14446 old_archive_from_new_cmds_CXX | \
14447 archive_cmds_CXX | \
14448 archive_expsym_cmds_CXX | \
14449 module_cmds_CXX | \
14450 module_expsym_cmds_CXX | \
14451 old_archive_from_expsyms_cmds_CXX | \
14452 export_symbols_cmds_CXX | \
14453 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14454 postinstall_cmds | postuninstall_cmds | \
14455 old_postinstall_cmds | old_postuninstall_cmds | \
14456 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14457 # Double-quote double-evaled strings.
14458 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14459 ;;
14460 *)
14461 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14462 ;;
14463 esac
14464 done
14465
14466 case $lt_echo in
14467 *'\$0 --fallback-echo"')
14468 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14469 ;;
14470 esac
14471
14472 cfgfile="$ofile"
14473
14474 cat <<__EOF__ >> "$cfgfile"
14475 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14476
14477 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14478
14479 # Shell to use when invoking shell scripts.
14480 SHELL=$lt_SHELL
14481
14482 # Whether or not to build shared libraries.
14483 build_libtool_libs=$enable_shared
14484
14485 # Whether or not to build static libraries.
14486 build_old_libs=$enable_static
14487
14488 # Whether or not to add -lc for building shared libraries.
14489 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14490
14491 # Whether or not to disallow shared libs when runtime libs are static
14492 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14493
14494 # Whether or not to optimize for fast installation.
14495 fast_install=$enable_fast_install
14496
14497 # The host system.
14498 host_alias=$host_alias
14499 host=$host
14500 host_os=$host_os
14501
14502 # The build system.
14503 build_alias=$build_alias
14504 build=$build
14505 build_os=$build_os
14506
14507 # An echo program that does not interpret backslashes.
14508 echo=$lt_echo
14509
14510 # The archiver.
14511 AR=$lt_AR
14512 AR_FLAGS=$lt_AR_FLAGS
14513
14514 # A C compiler.
14515 LTCC=$lt_LTCC
14516
14517 # LTCC compiler flags.
14518 LTCFLAGS=$lt_LTCFLAGS
14519
14520 # A language-specific compiler.
14521 CC=$lt_compiler_CXX
14522
14523 # Is the compiler the GNU C compiler?
14524 with_gcc=$GCC_CXX
14525
14526 # An ERE matcher.
14527 EGREP=$lt_EGREP
14528
14529 # The linker used to build libraries.
14530 LD=$lt_LD_CXX
14531
14532 # Whether we need hard or soft links.
14533 LN_S=$lt_LN_S
14534
14535 # A BSD-compatible nm program.
14536 NM=$lt_NM
14537
14538 # A symbol stripping program
14539 STRIP=$lt_STRIP
14540
14541 # Used to examine libraries when file_magic_cmd begins "file"
14542 MAGIC_CMD=$MAGIC_CMD
14543
14544 # Used on cygwin: DLL creation program.
14545 DLLTOOL="$DLLTOOL"
14546
14547 # Used on cygwin: object dumper.
14548 OBJDUMP="$OBJDUMP"
14549
14550 # Used on cygwin: assembler.
14551 AS="$AS"
14552
14553 # The name of the directory that contains temporary libtool files.
14554 objdir=$objdir
14555
14556 # How to create reloadable object files.
14557 reload_flag=$lt_reload_flag
14558 reload_cmds=$lt_reload_cmds
14559
14560 # How to pass a linker flag through the compiler.
14561 wl=$lt_lt_prog_compiler_wl_CXX
14562
14563 # Object file suffix (normally "o").
14564 objext="$ac_objext"
14565
14566 # Old archive suffix (normally "a").
14567 libext="$libext"
14568
14569 # Shared library suffix (normally ".so").
14570 shrext_cmds='$shrext_cmds'
14571
14572 # Executable file suffix (normally "").
14573 exeext="$exeext"
14574
14575 # Additional compiler flags for building library objects.
14576 pic_flag=$lt_lt_prog_compiler_pic_CXX
14577 pic_mode=$pic_mode
14578
14579 # What is the maximum length of a command?
14580 max_cmd_len=$lt_cv_sys_max_cmd_len
14581
14582 # Does compiler simultaneously support -c and -o options?
14583 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14584
14585 # Must we lock files when doing compilation?
14586 need_locks=$lt_need_locks
14587
14588 # Do we need the lib prefix for modules?
14589 need_lib_prefix=$need_lib_prefix
14590
14591 # Do we need a version for libraries?
14592 need_version=$need_version
14593
14594 # Whether dlopen is supported.
14595 dlopen_support=$enable_dlopen
14596
14597 # Whether dlopen of programs is supported.
14598 dlopen_self=$enable_dlopen_self
14599
14600 # Whether dlopen of statically linked programs is supported.
14601 dlopen_self_static=$enable_dlopen_self_static
14602
14603 # Compiler flag to prevent dynamic linking.
14604 link_static_flag=$lt_lt_prog_compiler_static_CXX
14605
14606 # Compiler flag to turn off builtin functions.
14607 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14608
14609 # Compiler flag to allow reflexive dlopens.
14610 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14611
14612 # Compiler flag to generate shared objects directly from archives.
14613 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14614
14615 # Compiler flag to generate thread-safe objects.
14616 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14617
14618 # Library versioning type.
14619 version_type=$version_type
14620
14621 # Format of library name prefix.
14622 libname_spec=$lt_libname_spec
14623
14624 # List of archive names. First name is the real one, the rest are links.
14625 # The last name is the one that the linker finds with -lNAME.
14626 library_names_spec=$lt_library_names_spec
14627
14628 # The coded name of the library, if different from the real name.
14629 soname_spec=$lt_soname_spec
14630
14631 # Commands used to build and install an old-style archive.
14632 RANLIB=$lt_RANLIB
14633 old_archive_cmds=$lt_old_archive_cmds_CXX
14634 old_postinstall_cmds=$lt_old_postinstall_cmds
14635 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14636
14637 # Create an old-style archive from a shared archive.
14638 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14639
14640 # Create a temporary old-style archive to link instead of a shared archive.
14641 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14642
14643 # Commands used to build and install a shared archive.
14644 archive_cmds=$lt_archive_cmds_CXX
14645 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14646 postinstall_cmds=$lt_postinstall_cmds
14647 postuninstall_cmds=$lt_postuninstall_cmds
14648
14649 # Commands used to build a loadable module (assumed same as above if empty)
14650 module_cmds=$lt_module_cmds_CXX
14651 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14652
14653 # Commands to strip libraries.
14654 old_striplib=$lt_old_striplib
14655 striplib=$lt_striplib
14656
14657 # Dependencies to place before the objects being linked to create a
14658 # shared library.
14659 predep_objects=$lt_predep_objects_CXX
14660
14661 # Dependencies to place after the objects being linked to create a
14662 # shared library.
14663 postdep_objects=$lt_postdep_objects_CXX
14664
14665 # Dependencies to place before the objects being linked to create a
14666 # shared library.
14667 predeps=$lt_predeps_CXX
14668
14669 # Dependencies to place after the objects being linked to create a
14670 # shared library.
14671 postdeps=$lt_postdeps_CXX
14672
14673 # The library search path used internally by the compiler when linking
14674 # a shared library.
14675 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14676
14677 # Method to check whether dependent libraries are shared objects.
14678 deplibs_check_method=$lt_deplibs_check_method
14679
14680 # Command to use when deplibs_check_method == file_magic.
14681 file_magic_cmd=$lt_file_magic_cmd
14682
14683 # Flag that allows shared libraries with undefined symbols to be built.
14684 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14685
14686 # Flag that forces no undefined symbols.
14687 no_undefined_flag=$lt_no_undefined_flag_CXX
14688
14689 # Commands used to finish a libtool library installation in a directory.
14690 finish_cmds=$lt_finish_cmds
14691
14692 # Same as above, but a single script fragment to be evaled but not shown.
14693 finish_eval=$lt_finish_eval
14694
14695 # Take the output of nm and produce a listing of raw symbols and C names.
14696 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14697
14698 # Transform the output of nm in a proper C declaration
14699 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14700
14701 # Transform the output of nm in a C name address pair
14702 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14703
14704 # This is the shared library runtime path variable.
14705 runpath_var=$runpath_var
14706
14707 # This is the shared library path variable.
14708 shlibpath_var=$shlibpath_var
14709
14710 # Is shlibpath searched before the hard-coded library search path?
14711 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14712
14713 # How to hardcode a shared library path into an executable.
14714 hardcode_action=$hardcode_action_CXX
14715
14716 # Whether we should hardcode library paths into libraries.
14717 hardcode_into_libs=$hardcode_into_libs
14718
14719 # Flag to hardcode \$libdir into a binary during linking.
14720 # This must work even if \$libdir does not exist.
14721 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14722
14723 # If ld is used when linking, flag to hardcode \$libdir into
14724 # a binary during linking. This must work even if \$libdir does
14725 # not exist.
14726 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14727
14728 # Whether we need a single -rpath flag with a separated argument.
14729 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14730
14731 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14732 # resulting binary.
14733 hardcode_direct=$hardcode_direct_CXX
14734
14735 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14736 # resulting binary.
14737 hardcode_minus_L=$hardcode_minus_L_CXX
14738
14739 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14740 # the resulting binary.
14741 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14742
14743 # Set to yes if building a shared library automatically hardcodes DIR into the library
14744 # and all subsequent libraries and executables linked against it.
14745 hardcode_automatic=$hardcode_automatic_CXX
14746
14747 # Variables whose values should be saved in libtool wrapper scripts and
14748 # restored at relink time.
14749 variables_saved_for_relink="$variables_saved_for_relink"
14750
14751 # Whether libtool must link a program against all its dependency libraries.
14752 link_all_deplibs=$link_all_deplibs_CXX
14753
14754 # Compile-time system search path for libraries
14755 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14756
14757 # Run-time system search path for libraries
14758 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14759
14760 # Fix the shell variable \$srcfile for the compiler.
14761 fix_srcfile_path="$fix_srcfile_path_CXX"
14762
14763 # Set to yes if exported symbols are required.
14764 always_export_symbols=$always_export_symbols_CXX
14765
14766 # The commands to list exported symbols.
14767 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14768
14769 # The commands to extract the exported symbol list from a shared archive.
14770 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14771
14772 # Symbols that should not be listed in the preloaded symbols.
14773 exclude_expsyms=$lt_exclude_expsyms_CXX
14774
14775 # Symbols that must always be exported.
14776 include_expsyms=$lt_include_expsyms_CXX
14777
14778 # ### END LIBTOOL TAG CONFIG: $tagname
14779
14780 __EOF__
14781
14782
14783 else
14784 # If there is no Makefile yet, we rely on a make rule to execute
14785 # `config.status --recheck' to rerun these tests and create the
14786 # libtool script then.
14787 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14788 if test -f "$ltmain_in"; then
14789 test -f Makefile && make "$ltmain"
14790 fi
14791 fi
14792
14793
14794 ac_ext=c
14795 ac_cpp='$CPP $CPPFLAGS'
14796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14799
14800 CC=$lt_save_CC
14801 LDCXX=$LD
14802 LD=$lt_save_LD
14803 GCC=$lt_save_GCC
14804 with_gnu_ldcxx=$with_gnu_ld
14805 with_gnu_ld=$lt_save_with_gnu_ld
14806 lt_cv_path_LDCXX=$lt_cv_path_LD
14807 lt_cv_path_LD=$lt_save_path_LD
14808 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14809 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14810
14811 else
14812 tagname=""
14813 fi
14814 ;;
14815
14816 F77)
14817 if test -n "$F77" && test "X$F77" != "Xno"; then
14818
14819 ac_ext=f
14820 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14821 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14822 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14823
14824
14825 archive_cmds_need_lc_F77=no
14826 allow_undefined_flag_F77=
14827 always_export_symbols_F77=no
14828 archive_expsym_cmds_F77=
14829 export_dynamic_flag_spec_F77=
14830 hardcode_direct_F77=no
14831 hardcode_libdir_flag_spec_F77=
14832 hardcode_libdir_flag_spec_ld_F77=
14833 hardcode_libdir_separator_F77=
14834 hardcode_minus_L_F77=no
14835 hardcode_automatic_F77=no
14836 module_cmds_F77=
14837 module_expsym_cmds_F77=
14838 link_all_deplibs_F77=unknown
14839 old_archive_cmds_F77=$old_archive_cmds
14840 no_undefined_flag_F77=
14841 whole_archive_flag_spec_F77=
14842 enable_shared_with_static_runtimes_F77=no
14843
14844 # Source file extension for f77 test sources.
14845 ac_ext=f
14846
14847 # Object file extension for compiled f77 test sources.
14848 objext=o
14849 objext_F77=$objext
14850
14851 # Code to be used in simple compile tests
14852 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14853
14854 # Code to be used in simple link tests
14855 lt_simple_link_test_code=" program t\n end\n"
14856
14857 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14858
14859 # If no C compiler was specified, use CC.
14860 LTCC=${LTCC-"$CC"}
14861
14862 # If no C compiler flags were specified, use CFLAGS.
14863 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14864
14865 # Allow CC to be a program name with arguments.
14866 compiler=$CC
14867
14868
14869 # save warnings/boilerplate of simple test code
14870 ac_outfile=conftest.$ac_objext
14871 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14872 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14873 _lt_compiler_boilerplate=`cat conftest.err`
14874 $rm conftest*
14875
14876 ac_outfile=conftest.$ac_objext
14877 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14878 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14879 _lt_linker_boilerplate=`cat conftest.err`
14880 $rm conftest*
14881
14882
14883 # Allow CC to be a program name with arguments.
14884 lt_save_CC="$CC"
14885 CC=${F77-"f77"}
14886 compiler=$CC
14887 compiler_F77=$CC
14888 for cc_temp in $compiler""; do
14889 case $cc_temp in
14890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14892 \-*) ;;
14893 *) break;;
14894 esac
14895 done
14896 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14897
14898
14899 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14900 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14901 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14902 echo "${ECHO_T}$can_build_shared" >&6
14903
14904 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14905 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14906 test "$can_build_shared" = "no" && enable_shared=no
14907
14908 # On AIX, shared libraries and static libraries use the same namespace, and
14909 # are all built from PIC.
14910 case $host_os in
14911 aix3*)
14912 test "$enable_shared" = yes && enable_static=no
14913 if test -n "$RANLIB"; then
14914 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14915 postinstall_cmds='$RANLIB $lib'
14916 fi
14917 ;;
14918 aix4* | aix5*)
14919 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14920 test "$enable_shared" = yes && enable_static=no
14921 fi
14922 ;;
14923 esac
14924 echo "$as_me:$LINENO: result: $enable_shared" >&5
14925 echo "${ECHO_T}$enable_shared" >&6
14926
14927 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14928 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14929 # Make sure either enable_shared or enable_static is yes.
14930 test "$enable_shared" = yes || enable_static=yes
14931 echo "$as_me:$LINENO: result: $enable_static" >&5
14932 echo "${ECHO_T}$enable_static" >&6
14933
14934 GCC_F77="$G77"
14935 LD_F77="$LD"
14936
14937 lt_prog_compiler_wl_F77=
14938 lt_prog_compiler_pic_F77=
14939 lt_prog_compiler_static_F77=
14940
14941 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14942 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14943
14944 if test "$GCC" = yes; then
14945 lt_prog_compiler_wl_F77='-Wl,'
14946 lt_prog_compiler_static_F77='-static'
14947
14948 case $host_os in
14949 aix*)
14950 # All AIX code is PIC.
14951 if test "$host_cpu" = ia64; then
14952 # AIX 5 now supports IA64 processor
14953 lt_prog_compiler_static_F77='-Bstatic'
14954 fi
14955 ;;
14956
14957 amigaos*)
14958 # FIXME: we need at least 68020 code to build shared libraries, but
14959 # adding the `-m68020' flag to GCC prevents building anything better,
14960 # like `-m68040'.
14961 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14962 ;;
14963
14964 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14965 # PIC is the default for these OSes.
14966 ;;
14967
14968 mingw* | pw32* | os2*)
14969 # This hack is so that the source file can tell whether it is being
14970 # built for inclusion in a dll (and should export symbols for example).
14971 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14972 ;;
14973
14974 darwin* | rhapsody*)
14975 # PIC is the default on this platform
14976 # Common symbols not allowed in MH_DYLIB files
14977 lt_prog_compiler_pic_F77='-fno-common'
14978 ;;
14979
14980 interix3*)
14981 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14982 # Instead, we relocate shared libraries at runtime.
14983 ;;
14984
14985 msdosdjgpp*)
14986 # Just because we use GCC doesn't mean we suddenly get shared libraries
14987 # on systems that don't support them.
14988 lt_prog_compiler_can_build_shared_F77=no
14989 enable_shared=no
14990 ;;
14991
14992 sysv4*MP*)
14993 if test -d /usr/nec; then
14994 lt_prog_compiler_pic_F77=-Kconform_pic
14995 fi
14996 ;;
14997
14998 hpux*)
14999 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15000 # not for PA HP-UX.
15001 case $host_cpu in
15002 hppa*64*|ia64*)
15003 # +Z the default
15004 ;;
15005 *)
15006 lt_prog_compiler_pic_F77='-fPIC'
15007 ;;
15008 esac
15009 ;;
15010
15011 *)
15012 lt_prog_compiler_pic_F77='-fPIC'
15013 ;;
15014 esac
15015 else
15016 # PORTME Check for flag to pass linker flags through the system compiler.
15017 case $host_os in
15018 aix*)
15019 lt_prog_compiler_wl_F77='-Wl,'
15020 if test "$host_cpu" = ia64; then
15021 # AIX 5 now supports IA64 processor
15022 lt_prog_compiler_static_F77='-Bstatic'
15023 else
15024 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15025 fi
15026 ;;
15027 darwin*)
15028 # PIC is the default on this platform
15029 # Common symbols not allowed in MH_DYLIB files
15030 case $cc_basename in
15031 xlc*)
15032 lt_prog_compiler_pic_F77='-qnocommon'
15033 lt_prog_compiler_wl_F77='-Wl,'
15034 ;;
15035 esac
15036 ;;
15037
15038 mingw* | pw32* | os2*)
15039 # This hack is so that the source file can tell whether it is being
15040 # built for inclusion in a dll (and should export symbols for example).
15041 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15042 ;;
15043
15044 hpux9* | hpux10* | hpux11*)
15045 lt_prog_compiler_wl_F77='-Wl,'
15046 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15047 # not for PA HP-UX.
15048 case $host_cpu in
15049 hppa*64*|ia64*)
15050 # +Z the default
15051 ;;
15052 *)
15053 lt_prog_compiler_pic_F77='+Z'
15054 ;;
15055 esac
15056 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15057 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15058 ;;
15059
15060 irix5* | irix6* | nonstopux*)
15061 lt_prog_compiler_wl_F77='-Wl,'
15062 # PIC (with -KPIC) is the default.
15063 lt_prog_compiler_static_F77='-non_shared'
15064 ;;
15065
15066 newsos6)
15067 lt_prog_compiler_pic_F77='-KPIC'
15068 lt_prog_compiler_static_F77='-Bstatic'
15069 ;;
15070
15071 linux*)
15072 case $cc_basename in
15073 icc* | ecc*)
15074 lt_prog_compiler_wl_F77='-Wl,'
15075 lt_prog_compiler_pic_F77='-KPIC'
15076 lt_prog_compiler_static_F77='-static'
15077 ;;
15078 pgcc* | pgf77* | pgf90* | pgf95*)
15079 # Portland Group compilers (*not* the Pentium gcc compiler,
15080 # which looks to be a dead project)
15081 lt_prog_compiler_wl_F77='-Wl,'
15082 lt_prog_compiler_pic_F77='-fpic'
15083 lt_prog_compiler_static_F77='-Bstatic'
15084 ;;
15085 ccc*)
15086 lt_prog_compiler_wl_F77='-Wl,'
15087 # All Alpha code is PIC.
15088 lt_prog_compiler_static_F77='-non_shared'
15089 ;;
15090 esac
15091 ;;
15092
15093 osf3* | osf4* | osf5*)
15094 lt_prog_compiler_wl_F77='-Wl,'
15095 # All OSF/1 code is PIC.
15096 lt_prog_compiler_static_F77='-non_shared'
15097 ;;
15098
15099 solaris*)
15100 lt_prog_compiler_pic_F77='-KPIC'
15101 lt_prog_compiler_static_F77='-Bstatic'
15102 case $cc_basename in
15103 f77* | f90* | f95*)
15104 lt_prog_compiler_wl_F77='-Qoption ld ';;
15105 *)
15106 lt_prog_compiler_wl_F77='-Wl,';;
15107 esac
15108 ;;
15109
15110 sunos4*)
15111 lt_prog_compiler_wl_F77='-Qoption ld '
15112 lt_prog_compiler_pic_F77='-PIC'
15113 lt_prog_compiler_static_F77='-Bstatic'
15114 ;;
15115
15116 sysv4 | sysv4.2uw2* | sysv4.3*)
15117 lt_prog_compiler_wl_F77='-Wl,'
15118 lt_prog_compiler_pic_F77='-KPIC'
15119 lt_prog_compiler_static_F77='-Bstatic'
15120 ;;
15121
15122 sysv4*MP*)
15123 if test -d /usr/nec ;then
15124 lt_prog_compiler_pic_F77='-Kconform_pic'
15125 lt_prog_compiler_static_F77='-Bstatic'
15126 fi
15127 ;;
15128
15129 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15130 lt_prog_compiler_wl_F77='-Wl,'
15131 lt_prog_compiler_pic_F77='-KPIC'
15132 lt_prog_compiler_static_F77='-Bstatic'
15133 ;;
15134
15135 unicos*)
15136 lt_prog_compiler_wl_F77='-Wl,'
15137 lt_prog_compiler_can_build_shared_F77=no
15138 ;;
15139
15140 uts4*)
15141 lt_prog_compiler_pic_F77='-pic'
15142 lt_prog_compiler_static_F77='-Bstatic'
15143 ;;
15144
15145 *)
15146 lt_prog_compiler_can_build_shared_F77=no
15147 ;;
15148 esac
15149 fi
15150
15151 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15152 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15153
15154 #
15155 # Check to make sure the PIC flag actually works.
15156 #
15157 if test -n "$lt_prog_compiler_pic_F77"; then
15158
15159 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15160 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15161 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164 lt_prog_compiler_pic_works_F77=no
15165 ac_outfile=conftest.$ac_objext
15166 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15167 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15168 # Insert the option either (1) after the last *FLAGS variable, or
15169 # (2) before a word containing "conftest.", or (3) at the end.
15170 # Note that $ac_compile itself does not contain backslashes and begins
15171 # with a dollar sign (not a hyphen), so the echo should work correctly.
15172 # The option is referenced via a variable to avoid confusing sed.
15173 lt_compile=`echo "$ac_compile" | $SED \
15174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15176 -e 's:$: $lt_compiler_flag:'`
15177 (eval echo "\"\$as_me:15177: $lt_compile\"" >&5)
15178 (eval "$lt_compile" 2>conftest.err)
15179 ac_status=$?
15180 cat conftest.err >&5
15181 echo "$as_me:15181: \$? = $ac_status" >&5
15182 if (exit $ac_status) && test -s "$ac_outfile"; then
15183 # The compiler can only warn and ignore the option if not recognized
15184 # So say no if there are warnings other than the usual output.
15185 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15187 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15188 lt_prog_compiler_pic_works_F77=yes
15189 fi
15190 fi
15191 $rm conftest*
15192
15193 fi
15194 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15195 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15196
15197 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15198 case $lt_prog_compiler_pic_F77 in
15199 "" | " "*) ;;
15200 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15201 esac
15202 else
15203 lt_prog_compiler_pic_F77=
15204 lt_prog_compiler_can_build_shared_F77=no
15205 fi
15206
15207 fi
15208 case $host_os in
15209 # For platforms which do not support PIC, -DPIC is meaningless:
15210 *djgpp*)
15211 lt_prog_compiler_pic_F77=
15212 ;;
15213 *)
15214 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15215 ;;
15216 esac
15217
15218 #
15219 # Check to make sure the static flag actually works.
15220 #
15221 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15222 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15223 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15224 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 else
15227 lt_prog_compiler_static_works_F77=no
15228 save_LDFLAGS="$LDFLAGS"
15229 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15230 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15231 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15232 # The linker can only warn and ignore the option if not recognized
15233 # So say no if there are warnings
15234 if test -s conftest.err; then
15235 # Append any errors to the config.log.
15236 cat conftest.err 1>&5
15237 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15239 if diff conftest.exp conftest.er2 >/dev/null; then
15240 lt_prog_compiler_static_works_F77=yes
15241 fi
15242 else
15243 lt_prog_compiler_static_works_F77=yes
15244 fi
15245 fi
15246 $rm conftest*
15247 LDFLAGS="$save_LDFLAGS"
15248
15249 fi
15250 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15251 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15252
15253 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15254 :
15255 else
15256 lt_prog_compiler_static_F77=
15257 fi
15258
15259
15260 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15261 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15262 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15264 else
15265 lt_cv_prog_compiler_c_o_F77=no
15266 $rm -r conftest 2>/dev/null
15267 mkdir conftest
15268 cd conftest
15269 mkdir out
15270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15271
15272 lt_compiler_flag="-o out/conftest2.$ac_objext"
15273 # Insert the option either (1) after the last *FLAGS variable, or
15274 # (2) before a word containing "conftest.", or (3) at the end.
15275 # Note that $ac_compile itself does not contain backslashes and begins
15276 # with a dollar sign (not a hyphen), so the echo should work correctly.
15277 lt_compile=`echo "$ac_compile" | $SED \
15278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15280 -e 's:$: $lt_compiler_flag:'`
15281 (eval echo "\"\$as_me:15281: $lt_compile\"" >&5)
15282 (eval "$lt_compile" 2>out/conftest.err)
15283 ac_status=$?
15284 cat out/conftest.err >&5
15285 echo "$as_me:15285: \$? = $ac_status" >&5
15286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15287 then
15288 # The compiler can only warn and ignore the option if not recognized
15289 # So say no if there are warnings
15290 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15293 lt_cv_prog_compiler_c_o_F77=yes
15294 fi
15295 fi
15296 chmod u+w . 2>&5
15297 $rm conftest*
15298 # SGI C++ compiler will create directory out/ii_files/ for
15299 # template instantiation
15300 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15301 $rm out/* && rmdir out
15302 cd ..
15303 rmdir conftest
15304 $rm conftest*
15305
15306 fi
15307 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15308 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15309
15310
15311 hard_links="nottested"
15312 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15313 # do not overwrite the value of need_locks provided by the user
15314 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15315 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15316 hard_links=yes
15317 $rm conftest*
15318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15319 touch conftest.a
15320 ln conftest.a conftest.b 2>&5 || hard_links=no
15321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15322 echo "$as_me:$LINENO: result: $hard_links" >&5
15323 echo "${ECHO_T}$hard_links" >&6
15324 if test "$hard_links" = no; then
15325 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15326 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15327 need_locks=warn
15328 fi
15329 else
15330 need_locks=no
15331 fi
15332
15333 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15334 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15335
15336 runpath_var=
15337 allow_undefined_flag_F77=
15338 enable_shared_with_static_runtimes_F77=no
15339 archive_cmds_F77=
15340 archive_expsym_cmds_F77=
15341 old_archive_From_new_cmds_F77=
15342 old_archive_from_expsyms_cmds_F77=
15343 export_dynamic_flag_spec_F77=
15344 whole_archive_flag_spec_F77=
15345 thread_safe_flag_spec_F77=
15346 hardcode_libdir_flag_spec_F77=
15347 hardcode_libdir_flag_spec_ld_F77=
15348 hardcode_libdir_separator_F77=
15349 hardcode_direct_F77=no
15350 hardcode_minus_L_F77=no
15351 hardcode_shlibpath_var_F77=unsupported
15352 link_all_deplibs_F77=unknown
15353 hardcode_automatic_F77=no
15354 module_cmds_F77=
15355 module_expsym_cmds_F77=
15356 always_export_symbols_F77=no
15357 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15358 # include_expsyms should be a list of space-separated symbols to be *always*
15359 # included in the symbol list
15360 include_expsyms_F77=
15361 # exclude_expsyms can be an extended regexp of symbols to exclude
15362 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15363 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15364 # as well as any symbol that contains `d'.
15365 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15366 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15367 # platforms (ab)use it in PIC code, but their linkers get confused if
15368 # the symbol is explicitly referenced. Since portable code cannot
15369 # rely on this symbol name, it's probably fine to never include it in
15370 # preloaded symbol tables.
15371 extract_expsyms_cmds=
15372 # Just being paranoid about ensuring that cc_basename is set.
15373 for cc_temp in $compiler""; do
15374 case $cc_temp in
15375 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15376 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15377 \-*) ;;
15378 *) break;;
15379 esac
15380 done
15381 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15382
15383 case $host_os in
15384 cygwin* | mingw* | pw32*)
15385 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15386 # When not using gcc, we currently assume that we are using
15387 # Microsoft Visual C++.
15388 if test "$GCC" != yes; then
15389 with_gnu_ld=no
15390 fi
15391 ;;
15392 interix*)
15393 # we just hope/assume this is gcc and not c89 (= MSVC++)
15394 with_gnu_ld=yes
15395 ;;
15396 openbsd*)
15397 with_gnu_ld=no
15398 ;;
15399 esac
15400
15401 ld_shlibs_F77=yes
15402 if test "$with_gnu_ld" = yes; then
15403 # If archive_cmds runs LD, not CC, wlarc should be empty
15404 wlarc='${wl}'
15405
15406 # Set some defaults for GNU ld with shared library support. These
15407 # are reset later if shared libraries are not supported. Putting them
15408 # here allows them to be overridden if necessary.
15409 runpath_var=LD_RUN_PATH
15410 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15411 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15412 # ancient GNU ld didn't support --whole-archive et. al.
15413 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15414 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15415 else
15416 whole_archive_flag_spec_F77=
15417 fi
15418 supports_anon_versioning=no
15419 case `$LD -v 2>/dev/null` in
15420 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15421 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15422 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15423 *\ 2.11.*) ;; # other 2.11 versions
15424 *) supports_anon_versioning=yes ;;
15425 esac
15426
15427 # See if GNU ld supports shared libraries.
15428 case $host_os in
15429 aix3* | aix4* | aix5*)
15430 # On AIX/PPC, the GNU linker is very broken
15431 if test "$host_cpu" != ia64; then
15432 ld_shlibs_F77=no
15433 cat <<EOF 1>&2
15434
15435 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15436 *** to be unable to reliably create shared libraries on AIX.
15437 *** Therefore, libtool is disabling shared libraries support. If you
15438 *** really care for shared libraries, you may want to modify your PATH
15439 *** so that a non-GNU linker is found, and then restart.
15440
15441 EOF
15442 fi
15443 ;;
15444
15445 amigaos*)
15446 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)'
15447 hardcode_libdir_flag_spec_F77='-L$libdir'
15448 hardcode_minus_L_F77=yes
15449
15450 # Samuel A. Falvo II <[email protected]> reports
15451 # that the semantics of dynamic libraries on AmigaOS, at least up
15452 # to version 4, is to share data among multiple programs linked
15453 # with the same dynamic library. Since this doesn't match the
15454 # behavior of shared libraries on other platforms, we can't use
15455 # them.
15456 ld_shlibs_F77=no
15457 ;;
15458
15459 beos*)
15460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15461 allow_undefined_flag_F77=unsupported
15462 # Joseph Beckenbach <[email protected]> says some releases of gcc
15463 # support --undefined. This deserves some investigation. FIXME
15464 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15465 else
15466 ld_shlibs_F77=no
15467 fi
15468 ;;
15469
15470 cygwin* | mingw* | pw32*)
15471 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15472 # as there is no search path for DLLs.
15473 hardcode_libdir_flag_spec_F77='-L$libdir'
15474 allow_undefined_flag_F77=unsupported
15475 always_export_symbols_F77=no
15476 enable_shared_with_static_runtimes_F77=yes
15477 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15478
15479 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15480 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15481 # If the export-symbols file already is a .def file (1st line
15482 # is EXPORTS), use it as is; otherwise, prepend...
15483 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15484 cp $export_symbols $output_objdir/$soname.def;
15485 else
15486 echo EXPORTS > $output_objdir/$soname.def;
15487 cat $export_symbols >> $output_objdir/$soname.def;
15488 fi~
15489 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15490 else
15491 ld_shlibs_F77=no
15492 fi
15493 ;;
15494
15495 interix3*)
15496 hardcode_direct_F77=no
15497 hardcode_shlibpath_var_F77=no
15498 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15499 export_dynamic_flag_spec_F77='${wl}-E'
15500 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15501 # Instead, shared libraries are loaded at an image base (0x10000000 by
15502 # default) and relocated if they conflict, which is a slow very memory
15503 # consuming and fragmenting process. To avoid this, we pick a random,
15504 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15505 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15506 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'
15507 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'
15508 ;;
15509
15510 linux*)
15511 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15512 tmp_addflag=
15513 case $cc_basename,$host_cpu in
15514 pgcc*) # Portland Group C compiler
15515 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'
15516 tmp_addflag=' $pic_flag'
15517 ;;
15518 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15519 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'
15520 tmp_addflag=' $pic_flag -Mnomain' ;;
15521 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15522 tmp_addflag=' -i_dynamic' ;;
15523 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15524 tmp_addflag=' -i_dynamic -nofor_main' ;;
15525 ifc* | ifort*) # Intel Fortran compiler
15526 tmp_addflag=' -nofor_main' ;;
15527 esac
15528 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15529
15530 if test $supports_anon_versioning = yes; then
15531 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15533 $echo "local: *; };" >> $output_objdir/$libname.ver~
15534 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15535 fi
15536 else
15537 ld_shlibs_F77=no
15538 fi
15539 ;;
15540
15541 netbsd*)
15542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15543 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15544 wlarc=
15545 else
15546 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15547 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15548 fi
15549 ;;
15550
15551 solaris*)
15552 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15553 ld_shlibs_F77=no
15554 cat <<EOF 1>&2
15555
15556 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15557 *** create shared libraries on Solaris systems. Therefore, libtool
15558 *** is disabling shared libraries support. We urge you to upgrade GNU
15559 *** binutils to release 2.9.1 or newer. Another option is to modify
15560 *** your PATH or compiler configuration so that the native linker is
15561 *** used, and then restart.
15562
15563 EOF
15564 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15565 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15566 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15567 else
15568 ld_shlibs_F77=no
15569 fi
15570 ;;
15571
15572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15573 case `$LD -v 2>&1` in
15574 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15575 ld_shlibs_F77=no
15576 cat <<_LT_EOF 1>&2
15577
15578 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15579 *** reliably create shared libraries on SCO systems. Therefore, libtool
15580 *** is disabling shared libraries support. We urge you to upgrade GNU
15581 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15582 *** your PATH or compiler configuration so that the native linker is
15583 *** used, and then restart.
15584
15585 _LT_EOF
15586 ;;
15587 *)
15588 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15589 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15590 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15591 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15592 else
15593 ld_shlibs_F77=no
15594 fi
15595 ;;
15596 esac
15597 ;;
15598
15599 sunos4*)
15600 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15601 wlarc=
15602 hardcode_direct_F77=yes
15603 hardcode_shlibpath_var_F77=no
15604 ;;
15605
15606 *)
15607 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15608 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15609 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15610 else
15611 ld_shlibs_F77=no
15612 fi
15613 ;;
15614 esac
15615
15616 if test "$ld_shlibs_F77" = no; then
15617 runpath_var=
15618 hardcode_libdir_flag_spec_F77=
15619 export_dynamic_flag_spec_F77=
15620 whole_archive_flag_spec_F77=
15621 fi
15622 else
15623 # PORTME fill in a description of your system's linker (not GNU ld)
15624 case $host_os in
15625 aix3*)
15626 allow_undefined_flag_F77=unsupported
15627 always_export_symbols_F77=yes
15628 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'
15629 # Note: this linker hardcodes the directories in LIBPATH if there
15630 # are no directories specified by -L.
15631 hardcode_minus_L_F77=yes
15632 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15633 # Neither direct hardcoding nor static linking is supported with a
15634 # broken collect2.
15635 hardcode_direct_F77=unsupported
15636 fi
15637 ;;
15638
15639 aix4* | aix5*)
15640 if test "$host_cpu" = ia64; then
15641 # On IA64, the linker does run time linking by default, so we don't
15642 # have to do anything special.
15643 aix_use_runtimelinking=no
15644 exp_sym_flag='-Bexport'
15645 no_entry_flag=""
15646 else
15647 # If we're using GNU nm, then we don't want the "-C" option.
15648 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15649 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15650 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'
15651 else
15652 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'
15653 fi
15654 aix_use_runtimelinking=no
15655
15656 # Test if we are trying to use run time linking or normal
15657 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15658 # need to do runtime linking.
15659 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15660 for ld_flag in $LDFLAGS; do
15661 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15662 aix_use_runtimelinking=yes
15663 break
15664 fi
15665 done
15666 ;;
15667 esac
15668
15669 exp_sym_flag='-bexport'
15670 no_entry_flag='-bnoentry'
15671 fi
15672
15673 # When large executables or shared objects are built, AIX ld can
15674 # have problems creating the table of contents. If linking a library
15675 # or program results in "error TOC overflow" add -mminimal-toc to
15676 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15677 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15678
15679 archive_cmds_F77=''
15680 hardcode_direct_F77=yes
15681 hardcode_libdir_separator_F77=':'
15682 link_all_deplibs_F77=yes
15683
15684 if test "$GCC" = yes; then
15685 case $host_os in aix4.[012]|aix4.[012].*)
15686 # We only want to do this on AIX 4.2 and lower, the check
15687 # below for broken collect2 doesn't work under 4.3+
15688 collect2name=`${CC} -print-prog-name=collect2`
15689 if test -f "$collect2name" && \
15690 strings "$collect2name" | grep resolve_lib_name >/dev/null
15691 then
15692 # We have reworked collect2
15693 hardcode_direct_F77=yes
15694 else
15695 # We have old collect2
15696 hardcode_direct_F77=unsupported
15697 # It fails to find uninstalled libraries when the uninstalled
15698 # path is not listed in the libpath. Setting hardcode_minus_L
15699 # to unsupported forces relinking
15700 hardcode_minus_L_F77=yes
15701 hardcode_libdir_flag_spec_F77='-L$libdir'
15702 hardcode_libdir_separator_F77=
15703 fi
15704 ;;
15705 esac
15706 shared_flag='-shared'
15707 if test "$aix_use_runtimelinking" = yes; then
15708 shared_flag="$shared_flag "'${wl}-G'
15709 fi
15710 else
15711 # not using gcc
15712 if test "$host_cpu" = ia64; then
15713 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15714 # chokes on -Wl,-G. The following line is correct:
15715 shared_flag='-G'
15716 else
15717 if test "$aix_use_runtimelinking" = yes; then
15718 shared_flag='${wl}-G'
15719 else
15720 shared_flag='${wl}-bM:SRE'
15721 fi
15722 fi
15723 fi
15724
15725 # It seems that -bexpall does not export symbols beginning with
15726 # underscore (_), so it is better to generate a list of symbols to export.
15727 always_export_symbols_F77=yes
15728 if test "$aix_use_runtimelinking" = yes; then
15729 # Warning - without using the other runtime loading flags (-brtl),
15730 # -berok will link without error, but may produce a broken library.
15731 allow_undefined_flag_F77='-berok'
15732 # Determine the default libpath from the value encoded in an empty executable.
15733 cat >conftest.$ac_ext <<_ACEOF
15734 program main
15735
15736 end
15737 _ACEOF
15738 rm -f conftest.$ac_objext conftest$ac_exeext
15739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15740 (eval $ac_link) 2>conftest.er1
15741 ac_status=$?
15742 grep -v '^ *+' conftest.er1 >conftest.err
15743 rm -f conftest.er1
15744 cat conftest.err >&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } &&
15747 { ac_try='test -z "$ac_f77_werror_flag"
15748 || test ! -s conftest.err'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; } &&
15754 { ac_try='test -s conftest$ac_exeext'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15757 ac_status=$?
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; }; then
15760
15761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15762 }'`
15763 # Check for a 64-bit object if we didn't find anything.
15764 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; }
15765 }'`; fi
15766 else
15767 echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15769
15770 fi
15771 rm -f conftest.err conftest.$ac_objext \
15772 conftest$ac_exeext conftest.$ac_ext
15773 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15774
15775 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15776 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"
15777 else
15778 if test "$host_cpu" = ia64; then
15779 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15780 allow_undefined_flag_F77="-z nodefs"
15781 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"
15782 else
15783 # Determine the default libpath from the value encoded in an empty executable.
15784 cat >conftest.$ac_ext <<_ACEOF
15785 program main
15786
15787 end
15788 _ACEOF
15789 rm -f conftest.$ac_objext conftest$ac_exeext
15790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15791 (eval $ac_link) 2>conftest.er1
15792 ac_status=$?
15793 grep -v '^ *+' conftest.er1 >conftest.err
15794 rm -f conftest.er1
15795 cat conftest.err >&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } &&
15798 { ac_try='test -z "$ac_f77_werror_flag"
15799 || test ! -s conftest.err'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest$ac_exeext'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811
15812 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15813 }'`
15814 # Check for a 64-bit object if we didn't find anything.
15815 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; }
15816 }'`; fi
15817 else
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15820
15821 fi
15822 rm -f conftest.err conftest.$ac_objext \
15823 conftest$ac_exeext conftest.$ac_ext
15824 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15825
15826 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15827 # Warning - without using the other run time loading flags,
15828 # -berok will link without error, but may produce a broken library.
15829 no_undefined_flag_F77=' ${wl}-bernotok'
15830 allow_undefined_flag_F77=' ${wl}-berok'
15831 # Exported symbols can be pulled into shared objects from archives
15832 whole_archive_flag_spec_F77='$convenience'
15833 archive_cmds_need_lc_F77=yes
15834 # This is similar to how AIX traditionally builds its shared libraries.
15835 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'
15836 fi
15837 fi
15838 ;;
15839
15840 amigaos*)
15841 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)'
15842 hardcode_libdir_flag_spec_F77='-L$libdir'
15843 hardcode_minus_L_F77=yes
15844 # see comment about different semantics on the GNU ld section
15845 ld_shlibs_F77=no
15846 ;;
15847
15848 bsdi[45]*)
15849 export_dynamic_flag_spec_F77=-rdynamic
15850 ;;
15851
15852 cygwin* | mingw* | pw32*)
15853 # When not using gcc, we currently assume that we are using
15854 # Microsoft Visual C++.
15855 # hardcode_libdir_flag_spec is actually meaningless, as there is
15856 # no search path for DLLs.
15857 hardcode_libdir_flag_spec_F77=' '
15858 allow_undefined_flag_F77=unsupported
15859 # Tell ltmain to make .lib files, not .a files.
15860 libext=lib
15861 # Tell ltmain to make .dll files, not .so files.
15862 shrext_cmds=".dll"
15863 # FIXME: Setting linknames here is a bad hack.
15864 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15865 # The linker will automatically build a .lib file if we build a DLL.
15866 old_archive_From_new_cmds_F77='true'
15867 # FIXME: Should let the user specify the lib program.
15868 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15869 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15870 enable_shared_with_static_runtimes_F77=yes
15871 ;;
15872
15873 darwin* | rhapsody*)
15874 case $host_os in
15875 rhapsody* | darwin1.[012])
15876 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15877 ;;
15878 *) # Darwin 1.3 on
15879 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15880 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15881 else
15882 case ${MACOSX_DEPLOYMENT_TARGET} in
15883 10.[012])
15884 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15885 ;;
15886 10.*)
15887 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15888 ;;
15889 esac
15890 fi
15891 ;;
15892 esac
15893 archive_cmds_need_lc_F77=no
15894 hardcode_direct_F77=no
15895 hardcode_automatic_F77=yes
15896 hardcode_shlibpath_var_F77=unsupported
15897 whole_archive_flag_spec_F77=''
15898 link_all_deplibs_F77=yes
15899 if test "$GCC" = yes ; then
15900 output_verbose_link_cmd='echo'
15901 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15902 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15903 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15904 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}'
15905 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}'
15906 else
15907 case $cc_basename in
15908 xlc*)
15909 output_verbose_link_cmd='echo'
15910 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15911 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15912 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15913 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}'
15914 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}'
15915 ;;
15916 *)
15917 ld_shlibs_F77=no
15918 ;;
15919 esac
15920 fi
15921 ;;
15922
15923 dgux*)
15924 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15925 hardcode_libdir_flag_spec_F77='-L$libdir'
15926 hardcode_shlibpath_var_F77=no
15927 ;;
15928
15929 freebsd1*)
15930 ld_shlibs_F77=no
15931 ;;
15932
15933 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15934 # support. Future versions do this automatically, but an explicit c++rt0.o
15935 # does not break anything, and helps significantly (at the cost of a little
15936 # extra space).
15937 freebsd2.2*)
15938 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15939 hardcode_libdir_flag_spec_F77='-R$libdir'
15940 hardcode_direct_F77=yes
15941 hardcode_shlibpath_var_F77=no
15942 ;;
15943
15944 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15945 freebsd2*)
15946 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15947 hardcode_direct_F77=yes
15948 hardcode_minus_L_F77=yes
15949 hardcode_shlibpath_var_F77=no
15950 ;;
15951
15952 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15953 freebsd* | kfreebsd*-gnu | dragonfly*)
15954 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15955 hardcode_libdir_flag_spec_F77='-R$libdir'
15956 hardcode_direct_F77=yes
15957 hardcode_shlibpath_var_F77=no
15958 ;;
15959
15960 hpux9*)
15961 if test "$GCC" = yes; then
15962 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'
15963 else
15964 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'
15965 fi
15966 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15967 hardcode_libdir_separator_F77=:
15968 hardcode_direct_F77=yes
15969
15970 # hardcode_minus_L: Not really in the search PATH,
15971 # but as the default location of the library.
15972 hardcode_minus_L_F77=yes
15973 export_dynamic_flag_spec_F77='${wl}-E'
15974 ;;
15975
15976 hpux10*)
15977 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15978 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15979 else
15980 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15981 fi
15982 if test "$with_gnu_ld" = no; then
15983 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15984 hardcode_libdir_separator_F77=:
15985
15986 hardcode_direct_F77=yes
15987 export_dynamic_flag_spec_F77='${wl}-E'
15988
15989 # hardcode_minus_L: Not really in the search PATH,
15990 # but as the default location of the library.
15991 hardcode_minus_L_F77=yes
15992 fi
15993 ;;
15994
15995 hpux11*)
15996 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15997 case $host_cpu in
15998 hppa*64*)
15999 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16000 ;;
16001 ia64*)
16002 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16003 ;;
16004 *)
16005 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16006 ;;
16007 esac
16008 else
16009 case $host_cpu in
16010 hppa*64*)
16011 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16012 ;;
16013 ia64*)
16014 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16015 ;;
16016 *)
16017 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16018 ;;
16019 esac
16020 fi
16021 if test "$with_gnu_ld" = no; then
16022 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16023 hardcode_libdir_separator_F77=:
16024
16025 case $host_cpu in
16026 hppa*64*|ia64*)
16027 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16028 hardcode_direct_F77=no
16029 hardcode_shlibpath_var_F77=no
16030 ;;
16031 *)
16032 hardcode_direct_F77=yes
16033 export_dynamic_flag_spec_F77='${wl}-E'
16034
16035 # hardcode_minus_L: Not really in the search PATH,
16036 # but as the default location of the library.
16037 hardcode_minus_L_F77=yes
16038 ;;
16039 esac
16040 fi
16041 ;;
16042
16043 irix5* | irix6* | nonstopux*)
16044 if test "$GCC" = yes; then
16045 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'
16046 else
16047 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'
16048 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16049 fi
16050 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16051 hardcode_libdir_separator_F77=:
16052 link_all_deplibs_F77=yes
16053 ;;
16054
16055 netbsd*)
16056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16057 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16058 else
16059 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16060 fi
16061 hardcode_libdir_flag_spec_F77='-R$libdir'
16062 hardcode_direct_F77=yes
16063 hardcode_shlibpath_var_F77=no
16064 ;;
16065
16066 newsos6)
16067 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16068 hardcode_direct_F77=yes
16069 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16070 hardcode_libdir_separator_F77=:
16071 hardcode_shlibpath_var_F77=no
16072 ;;
16073
16074 openbsd*)
16075 hardcode_direct_F77=yes
16076 hardcode_shlibpath_var_F77=no
16077 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16078 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16079 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16080 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16081 export_dynamic_flag_spec_F77='${wl}-E'
16082 else
16083 case $host_os in
16084 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16085 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16086 hardcode_libdir_flag_spec_F77='-R$libdir'
16087 ;;
16088 *)
16089 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16090 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16091 ;;
16092 esac
16093 fi
16094 ;;
16095
16096 os2*)
16097 hardcode_libdir_flag_spec_F77='-L$libdir'
16098 hardcode_minus_L_F77=yes
16099 allow_undefined_flag_F77=unsupported
16100 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'
16101 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16102 ;;
16103
16104 osf3*)
16105 if test "$GCC" = yes; then
16106 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16107 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'
16108 else
16109 allow_undefined_flag_F77=' -expect_unresolved \*'
16110 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'
16111 fi
16112 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16113 hardcode_libdir_separator_F77=:
16114 ;;
16115
16116 osf4* | osf5*) # as osf3* with the addition of -msym flag
16117 if test "$GCC" = yes; then
16118 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16119 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'
16120 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16121 else
16122 allow_undefined_flag_F77=' -expect_unresolved \*'
16123 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'
16124 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~
16125 $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'
16126
16127 # Both c and cxx compiler support -rpath directly
16128 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16129 fi
16130 hardcode_libdir_separator_F77=:
16131 ;;
16132
16133 solaris*)
16134 no_undefined_flag_F77=' -z text'
16135 if test "$GCC" = yes; then
16136 wlarc='${wl}'
16137 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16138 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16139 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16140 else
16141 wlarc=''
16142 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16144 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16145 fi
16146 hardcode_libdir_flag_spec_F77='-R$libdir'
16147 hardcode_shlibpath_var_F77=no
16148 case $host_os in
16149 solaris2.[0-5] | solaris2.[0-5].*) ;;
16150 *)
16151 # The compiler driver will combine linker options so we
16152 # cannot just pass the convience library names through
16153 # without $wl, iff we do not link with $LD.
16154 # Luckily, gcc supports the same syntax we need for Sun Studio.
16155 # Supported since Solaris 2.6 (maybe 2.5.1?)
16156 case $wlarc in
16157 '')
16158 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16159 *)
16160 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' ;;
16161 esac ;;
16162 esac
16163 link_all_deplibs_F77=yes
16164 ;;
16165
16166 sunos4*)
16167 if test "x$host_vendor" = xsequent; then
16168 # Use $CC to link under sequent, because it throws in some extra .o
16169 # files that make .init and .fini sections work.
16170 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16171 else
16172 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16173 fi
16174 hardcode_libdir_flag_spec_F77='-L$libdir'
16175 hardcode_direct_F77=yes
16176 hardcode_minus_L_F77=yes
16177 hardcode_shlibpath_var_F77=no
16178 ;;
16179
16180 sysv4)
16181 case $host_vendor in
16182 sni)
16183 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16184 hardcode_direct_F77=yes # is this really true???
16185 ;;
16186 siemens)
16187 ## LD is ld it makes a PLAMLIB
16188 ## CC just makes a GrossModule.
16189 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16190 reload_cmds_F77='$CC -r -o $output$reload_objs'
16191 hardcode_direct_F77=no
16192 ;;
16193 motorola)
16194 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16195 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16196 ;;
16197 esac
16198 runpath_var='LD_RUN_PATH'
16199 hardcode_shlibpath_var_F77=no
16200 ;;
16201
16202 sysv4.3*)
16203 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16204 hardcode_shlibpath_var_F77=no
16205 export_dynamic_flag_spec_F77='-Bexport'
16206 ;;
16207
16208 sysv4*MP*)
16209 if test -d /usr/nec; then
16210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16211 hardcode_shlibpath_var_F77=no
16212 runpath_var=LD_RUN_PATH
16213 hardcode_runpath_var=yes
16214 ld_shlibs_F77=yes
16215 fi
16216 ;;
16217
16218 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16219 no_undefined_flag_F77='${wl}-z,text'
16220 archive_cmds_need_lc_F77=no
16221 hardcode_shlibpath_var_F77=no
16222 runpath_var='LD_RUN_PATH'
16223
16224 if test "$GCC" = yes; then
16225 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16226 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16227 else
16228 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16229 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16230 fi
16231 ;;
16232
16233 sysv5* | sco3.2v5* | sco5v6*)
16234 # Note: We can NOT use -z defs as we might desire, because we do not
16235 # link with -lc, and that would cause any symbols used from libc to
16236 # always be unresolved, which means just about no library would
16237 # ever link correctly. If we're not using GNU ld we use -z text
16238 # though, which does catch some bad symbols but isn't as heavy-handed
16239 # as -z defs.
16240 no_undefined_flag_F77='${wl}-z,text'
16241 allow_undefined_flag_F77='${wl}-z,nodefs'
16242 archive_cmds_need_lc_F77=no
16243 hardcode_shlibpath_var_F77=no
16244 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16245 hardcode_libdir_separator_F77=':'
16246 link_all_deplibs_F77=yes
16247 export_dynamic_flag_spec_F77='${wl}-Bexport'
16248 runpath_var='LD_RUN_PATH'
16249
16250 if test "$GCC" = yes; then
16251 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16252 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16253 else
16254 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16255 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16256 fi
16257 ;;
16258
16259 uts4*)
16260 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16261 hardcode_libdir_flag_spec_F77='-L$libdir'
16262 hardcode_shlibpath_var_F77=no
16263 ;;
16264
16265 *)
16266 ld_shlibs_F77=no
16267 ;;
16268 esac
16269 fi
16270
16271 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16272 echo "${ECHO_T}$ld_shlibs_F77" >&6
16273 test "$ld_shlibs_F77" = no && can_build_shared=no
16274
16275 #
16276 # Do we need to explicitly link libc?
16277 #
16278 case "x$archive_cmds_need_lc_F77" in
16279 x|xyes)
16280 # Assume -lc should be added
16281 archive_cmds_need_lc_F77=yes
16282
16283 if test "$enable_shared" = yes && test "$GCC" = yes; then
16284 case $archive_cmds_F77 in
16285 *'~'*)
16286 # FIXME: we may have to deal with multi-command sequences.
16287 ;;
16288 '$CC '*)
16289 # Test whether the compiler implicitly links with -lc since on some
16290 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16291 # to ld, don't add -lc before -lgcc.
16292 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16293 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16294 $rm conftest*
16295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16296
16297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16298 (eval $ac_compile) 2>&5
16299 ac_status=$?
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } 2>conftest.err; then
16302 soname=conftest
16303 lib=conftest
16304 libobjs=conftest.$ac_objext
16305 deplibs=
16306 wl=$lt_prog_compiler_wl_F77
16307 pic_flag=$lt_prog_compiler_pic_F77
16308 compiler_flags=-v
16309 linker_flags=-v
16310 verstring=
16311 output_objdir=.
16312 libname=conftest
16313 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16314 allow_undefined_flag_F77=
16315 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16316 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }
16320 then
16321 archive_cmds_need_lc_F77=no
16322 else
16323 archive_cmds_need_lc_F77=yes
16324 fi
16325 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16326 else
16327 cat conftest.err 1>&5
16328 fi
16329 $rm conftest*
16330 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16331 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16332 ;;
16333 esac
16334 fi
16335 ;;
16336 esac
16337
16338 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16339 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16340 library_names_spec=
16341 libname_spec='lib$name'
16342 soname_spec=
16343 shrext_cmds=".so"
16344 postinstall_cmds=
16345 postuninstall_cmds=
16346 finish_cmds=
16347 finish_eval=
16348 shlibpath_var=
16349 shlibpath_overrides_runpath=unknown
16350 version_type=none
16351 dynamic_linker="$host_os ld.so"
16352 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16353 if test "$GCC" = yes; then
16354 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16355 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16356 # if the path contains ";" then we assume it to be the separator
16357 # otherwise default to the standard path separator (i.e. ":") - it is
16358 # assumed that no part of a normal pathname contains ";" but that should
16359 # okay in the real world where ";" in dirpaths is itself problematic.
16360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16361 else
16362 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16363 fi
16364 else
16365 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16366 fi
16367 need_lib_prefix=unknown
16368 hardcode_into_libs=no
16369
16370 # when you set need_version to no, make sure it does not cause -set_version
16371 # flags to be left without arguments
16372 need_version=unknown
16373
16374 case $host_os in
16375 aix3*)
16376 version_type=linux
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16378 shlibpath_var=LIBPATH
16379
16380 # AIX 3 has no versioning support, so we append a major version to the name.
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 ;;
16383
16384 aix4* | aix5*)
16385 version_type=linux
16386 need_lib_prefix=no
16387 need_version=no
16388 hardcode_into_libs=yes
16389 if test "$host_cpu" = ia64; then
16390 # AIX 5 supports IA64
16391 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 else
16394 # With GCC up to 2.95.x, collect2 would create an import file
16395 # for dependence libraries. The import file would start with
16396 # the line `#! .'. This would cause the generated library to
16397 # depend on `.', always an invalid library. This was fixed in
16398 # development snapshots of GCC prior to 3.0.
16399 case $host_os in
16400 aix4 | aix4.[01] | aix4.[01].*)
16401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16402 echo ' yes '
16403 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16404 :
16405 else
16406 can_build_shared=no
16407 fi
16408 ;;
16409 esac
16410 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16411 # soname into executable. Probably we can add versioning support to
16412 # collect2, so additional links can be useful in future.
16413 if test "$aix_use_runtimelinking" = yes; then
16414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16415 # instead of lib<name>.a to let people know that these are not
16416 # typical AIX shared libraries.
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418 else
16419 # We preserve .a as extension for shared libraries through AIX4.2
16420 # and later when we are not doing run time linking.
16421 library_names_spec='${libname}${release}.a $libname.a'
16422 soname_spec='${libname}${release}${shared_ext}$major'
16423 fi
16424 shlibpath_var=LIBPATH
16425 fi
16426 ;;
16427
16428 amigaos*)
16429 library_names_spec='$libname.ixlibrary $libname.a'
16430 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16431 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'
16432 ;;
16433
16434 beos*)
16435 library_names_spec='${libname}${shared_ext}'
16436 dynamic_linker="$host_os ld.so"
16437 shlibpath_var=LIBRARY_PATH
16438 ;;
16439
16440 bsdi[45]*)
16441 version_type=linux
16442 need_version=no
16443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16444 soname_spec='${libname}${release}${shared_ext}$major'
16445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16446 shlibpath_var=LD_LIBRARY_PATH
16447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16449 # the default ld.so.conf also contains /usr/contrib/lib and
16450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16451 # libtool to hard-code these into programs
16452 ;;
16453
16454 cygwin* | mingw* | pw32*)
16455 version_type=windows
16456 shrext_cmds=".dll"
16457 need_version=no
16458 need_lib_prefix=no
16459
16460 case $GCC,$host_os in
16461 yes,cygwin* | yes,mingw* | yes,pw32*)
16462 library_names_spec='$libname.dll.a'
16463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16464 postinstall_cmds='base_file=`basename \${file}`~
16465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16466 dldir=$destdir/`dirname \$dlpath`~
16467 test -d \$dldir || mkdir -p \$dldir~
16468 $install_prog $dir/$dlname \$dldir/$dlname~
16469 chmod a+x \$dldir/$dlname'
16470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16471 dlpath=$dir/\$dldll~
16472 $rm \$dlpath'
16473 shlibpath_overrides_runpath=yes
16474
16475 case $host_os in
16476 cygwin*)
16477 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16478 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16479 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16480 ;;
16481 mingw*)
16482 # MinGW DLLs use traditional 'lib' prefix
16483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16484 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16485 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16486 # It is most probably a Windows format PATH printed by
16487 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16488 # path with ; separators, and with drive letters. We can handle the
16489 # drive letters (cygwin fileutils understands them), so leave them,
16490 # especially as we might pass files found there to a mingw objdump,
16491 # which wouldn't understand a cygwinified path. Ahh.
16492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16493 else
16494 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16495 fi
16496 ;;
16497 pw32*)
16498 # pw32 DLLs use 'pw' prefix rather than 'lib'
16499 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16500 ;;
16501 esac
16502 ;;
16503
16504 *)
16505 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16506 ;;
16507 esac
16508 dynamic_linker='Win32 ld.exe'
16509 # FIXME: first we should search . and the directory the executable is in
16510 shlibpath_var=PATH
16511 ;;
16512
16513 darwin* | rhapsody*)
16514 dynamic_linker="$host_os dyld"
16515 version_type=darwin
16516 need_lib_prefix=no
16517 need_version=no
16518 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16519 soname_spec='${libname}${release}${major}$shared_ext'
16520 shlibpath_overrides_runpath=yes
16521 shlibpath_var=DYLD_LIBRARY_PATH
16522 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16523 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16524 if test "$GCC" = yes; then
16525 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"`
16526 else
16527 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16528 fi
16529 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16530 ;;
16531
16532 dgux*)
16533 version_type=linux
16534 need_lib_prefix=no
16535 need_version=no
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16539 ;;
16540
16541 freebsd1*)
16542 dynamic_linker=no
16543 ;;
16544
16545 kfreebsd*-gnu)
16546 version_type=linux
16547 need_lib_prefix=no
16548 need_version=no
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16550 soname_spec='${libname}${release}${shared_ext}$major'
16551 shlibpath_var=LD_LIBRARY_PATH
16552 shlibpath_overrides_runpath=no
16553 hardcode_into_libs=yes
16554 dynamic_linker='GNU ld.so'
16555 ;;
16556
16557 freebsd* | dragonfly*)
16558 # DragonFly does not have aout. When/if they implement a new
16559 # versioning mechanism, adjust this.
16560 if test -x /usr/bin/objformat; then
16561 objformat=`/usr/bin/objformat`
16562 else
16563 case $host_os in
16564 freebsd[123]*) objformat=aout ;;
16565 *) objformat=elf ;;
16566 esac
16567 fi
16568 version_type=freebsd-$objformat
16569 case $version_type in
16570 freebsd-elf*)
16571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16572 need_version=no
16573 need_lib_prefix=no
16574 ;;
16575 freebsd-*)
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16577 need_version=yes
16578 ;;
16579 esac
16580 shlibpath_var=LD_LIBRARY_PATH
16581 case $host_os in
16582 freebsd2*)
16583 shlibpath_overrides_runpath=yes
16584 ;;
16585 freebsd3.[01]* | freebsdelf3.[01]*)
16586 shlibpath_overrides_runpath=yes
16587 hardcode_into_libs=yes
16588 ;;
16589 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16590 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16591 shlibpath_overrides_runpath=no
16592 hardcode_into_libs=yes
16593 ;;
16594 freebsd*) # from 4.6 on
16595 shlibpath_overrides_runpath=yes
16596 hardcode_into_libs=yes
16597 ;;
16598 esac
16599 ;;
16600
16601 gnu*)
16602 version_type=linux
16603 need_lib_prefix=no
16604 need_version=no
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16606 soname_spec='${libname}${release}${shared_ext}$major'
16607 shlibpath_var=LD_LIBRARY_PATH
16608 hardcode_into_libs=yes
16609 ;;
16610
16611 hpux9* | hpux10* | hpux11*)
16612 # Give a soname corresponding to the major version so that dld.sl refuses to
16613 # link against other versions.
16614 version_type=sunos
16615 need_lib_prefix=no
16616 need_version=no
16617 case $host_cpu in
16618 ia64*)
16619 shrext_cmds='.so'
16620 hardcode_into_libs=yes
16621 dynamic_linker="$host_os dld.so"
16622 shlibpath_var=LD_LIBRARY_PATH
16623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16625 soname_spec='${libname}${release}${shared_ext}$major'
16626 if test "X$HPUX_IA64_MODE" = X32; then
16627 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16628 else
16629 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16630 fi
16631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16632 ;;
16633 hppa*64*)
16634 shrext_cmds='.sl'
16635 hardcode_into_libs=yes
16636 dynamic_linker="$host_os dld.sl"
16637 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640 soname_spec='${libname}${release}${shared_ext}$major'
16641 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16643 ;;
16644 *)
16645 shrext_cmds='.sl'
16646 dynamic_linker="$host_os dld.sl"
16647 shlibpath_var=SHLIB_PATH
16648 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16650 soname_spec='${libname}${release}${shared_ext}$major'
16651 ;;
16652 esac
16653 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16654 postinstall_cmds='chmod 555 $lib'
16655 ;;
16656
16657 interix3*)
16658 version_type=linux
16659 need_lib_prefix=no
16660 need_version=no
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16664 shlibpath_var=LD_LIBRARY_PATH
16665 shlibpath_overrides_runpath=no
16666 hardcode_into_libs=yes
16667 ;;
16668
16669 irix5* | irix6* | nonstopux*)
16670 case $host_os in
16671 nonstopux*) version_type=nonstopux ;;
16672 *)
16673 if test "$lt_cv_prog_gnu_ld" = yes; then
16674 version_type=linux
16675 else
16676 version_type=irix
16677 fi ;;
16678 esac
16679 need_lib_prefix=no
16680 need_version=no
16681 soname_spec='${libname}${release}${shared_ext}$major'
16682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16683 case $host_os in
16684 irix5* | nonstopux*)
16685 libsuff= shlibsuff=
16686 ;;
16687 *)
16688 case $LD in # libtool.m4 will add one of these switches to LD
16689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16690 libsuff= shlibsuff= libmagic=32-bit;;
16691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16692 libsuff=32 shlibsuff=N32 libmagic=N32;;
16693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16695 *) libsuff= shlibsuff= libmagic=never-match;;
16696 esac
16697 ;;
16698 esac
16699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16700 shlibpath_overrides_runpath=no
16701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16703 hardcode_into_libs=yes
16704 ;;
16705
16706 # No shared lib support for Linux oldld, aout, or coff.
16707 linux*oldld* | linux*aout* | linux*coff*)
16708 dynamic_linker=no
16709 ;;
16710
16711 # This must be Linux ELF.
16712 linux*)
16713 version_type=linux
16714 need_lib_prefix=no
16715 need_version=no
16716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16717 soname_spec='${libname}${release}${shared_ext}$major'
16718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16719 shlibpath_var=LD_LIBRARY_PATH
16720 shlibpath_overrides_runpath=no
16721 # This implies no fast_install, which is unacceptable.
16722 # Some rework will be needed to allow for fast_install
16723 # before this can be enabled.
16724 hardcode_into_libs=yes
16725
16726 # Append ld.so.conf contents to the search path
16727 if test -f /etc/ld.so.conf; then
16728 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' ' '`
16729 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16730 fi
16731
16732 # We used to test for /lib/ld.so.1 and disable shared libraries on
16733 # powerpc, because MkLinux only supported shared libraries with the
16734 # GNU dynamic linker. Since this was broken with cross compilers,
16735 # most powerpc-linux boxes support dynamic linking these days and
16736 # people can always --disable-shared, the test was removed, and we
16737 # assume the GNU/Linux dynamic linker is in use.
16738 dynamic_linker='GNU/Linux ld.so'
16739 ;;
16740
16741 knetbsd*-gnu)
16742 version_type=linux
16743 need_lib_prefix=no
16744 need_version=no
16745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16746 soname_spec='${libname}${release}${shared_ext}$major'
16747 shlibpath_var=LD_LIBRARY_PATH
16748 shlibpath_overrides_runpath=no
16749 hardcode_into_libs=yes
16750 dynamic_linker='GNU ld.so'
16751 ;;
16752
16753 netbsd*)
16754 version_type=sunos
16755 need_lib_prefix=no
16756 need_version=no
16757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16760 dynamic_linker='NetBSD (a.out) ld.so'
16761 else
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16763 soname_spec='${libname}${release}${shared_ext}$major'
16764 dynamic_linker='NetBSD ld.elf_so'
16765 fi
16766 shlibpath_var=LD_LIBRARY_PATH
16767 shlibpath_overrides_runpath=yes
16768 hardcode_into_libs=yes
16769 ;;
16770
16771 newsos6)
16772 version_type=linux
16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774 shlibpath_var=LD_LIBRARY_PATH
16775 shlibpath_overrides_runpath=yes
16776 ;;
16777
16778 nto-qnx*)
16779 version_type=linux
16780 need_lib_prefix=no
16781 need_version=no
16782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16783 soname_spec='${libname}${release}${shared_ext}$major'
16784 shlibpath_var=LD_LIBRARY_PATH
16785 shlibpath_overrides_runpath=yes
16786 ;;
16787
16788 openbsd*)
16789 version_type=sunos
16790 sys_lib_dlsearch_path_spec="/usr/lib"
16791 need_lib_prefix=no
16792 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16793 case $host_os in
16794 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16795 *) need_version=no ;;
16796 esac
16797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16799 shlibpath_var=LD_LIBRARY_PATH
16800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16801 case $host_os in
16802 openbsd2.[89] | openbsd2.[89].*)
16803 shlibpath_overrides_runpath=no
16804 ;;
16805 *)
16806 shlibpath_overrides_runpath=yes
16807 ;;
16808 esac
16809 else
16810 shlibpath_overrides_runpath=yes
16811 fi
16812 ;;
16813
16814 os2*)
16815 libname_spec='$name'
16816 shrext_cmds=".dll"
16817 need_lib_prefix=no
16818 library_names_spec='$libname${shared_ext} $libname.a'
16819 dynamic_linker='OS/2 ld.exe'
16820 shlibpath_var=LIBPATH
16821 ;;
16822
16823 osf3* | osf4* | osf5*)
16824 version_type=osf
16825 need_lib_prefix=no
16826 need_version=no
16827 soname_spec='${libname}${release}${shared_ext}$major'
16828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16829 shlibpath_var=LD_LIBRARY_PATH
16830 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16831 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16832 ;;
16833
16834 solaris*)
16835 version_type=linux
16836 need_lib_prefix=no
16837 need_version=no
16838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16839 soname_spec='${libname}${release}${shared_ext}$major'
16840 shlibpath_var=LD_LIBRARY_PATH
16841 shlibpath_overrides_runpath=yes
16842 hardcode_into_libs=yes
16843 # ldd complains unless libraries are executable
16844 postinstall_cmds='chmod +x $lib'
16845 ;;
16846
16847 sunos4*)
16848 version_type=sunos
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16850 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16851 shlibpath_var=LD_LIBRARY_PATH
16852 shlibpath_overrides_runpath=yes
16853 if test "$with_gnu_ld" = yes; then
16854 need_lib_prefix=no
16855 fi
16856 need_version=yes
16857 ;;
16858
16859 sysv4 | sysv4.3*)
16860 version_type=linux
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 shlibpath_var=LD_LIBRARY_PATH
16864 case $host_vendor in
16865 sni)
16866 shlibpath_overrides_runpath=no
16867 need_lib_prefix=no
16868 export_dynamic_flag_spec='${wl}-Blargedynsym'
16869 runpath_var=LD_RUN_PATH
16870 ;;
16871 siemens)
16872 need_lib_prefix=no
16873 ;;
16874 motorola)
16875 need_lib_prefix=no
16876 need_version=no
16877 shlibpath_overrides_runpath=no
16878 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16879 ;;
16880 esac
16881 ;;
16882
16883 sysv4*MP*)
16884 if test -d /usr/nec ;then
16885 version_type=linux
16886 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16887 soname_spec='$libname${shared_ext}.$major'
16888 shlibpath_var=LD_LIBRARY_PATH
16889 fi
16890 ;;
16891
16892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16893 version_type=freebsd-elf
16894 need_lib_prefix=no
16895 need_version=no
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16897 soname_spec='${libname}${release}${shared_ext}$major'
16898 shlibpath_var=LD_LIBRARY_PATH
16899 hardcode_into_libs=yes
16900 if test "$with_gnu_ld" = yes; then
16901 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16902 shlibpath_overrides_runpath=no
16903 else
16904 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16905 shlibpath_overrides_runpath=yes
16906 case $host_os in
16907 sco3.2v5*)
16908 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16909 ;;
16910 esac
16911 fi
16912 sys_lib_dlsearch_path_spec='/usr/lib'
16913 ;;
16914
16915 uts4*)
16916 version_type=linux
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 shlibpath_var=LD_LIBRARY_PATH
16920 ;;
16921
16922 *)
16923 dynamic_linker=no
16924 ;;
16925 esac
16926 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16927 echo "${ECHO_T}$dynamic_linker" >&6
16928 test "$dynamic_linker" = no && can_build_shared=no
16929
16930 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16931 if test "$GCC" = yes; then
16932 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16933 fi
16934
16935 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16936 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16937 hardcode_action_F77=
16938 if test -n "$hardcode_libdir_flag_spec_F77" || \
16939 test -n "$runpath_var_F77" || \
16940 test "X$hardcode_automatic_F77" = "Xyes" ; then
16941
16942 # We can hardcode non-existant directories.
16943 if test "$hardcode_direct_F77" != no &&
16944 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16945 # have to relink, otherwise we might link with an installed library
16946 # when we should be linking with a yet-to-be-installed one
16947 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16948 test "$hardcode_minus_L_F77" != no; then
16949 # Linking always hardcodes the temporary library directory.
16950 hardcode_action_F77=relink
16951 else
16952 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16953 hardcode_action_F77=immediate
16954 fi
16955 else
16956 # We cannot hardcode anything, or else we can only hardcode existing
16957 # directories.
16958 hardcode_action_F77=unsupported
16959 fi
16960 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16961 echo "${ECHO_T}$hardcode_action_F77" >&6
16962
16963 if test "$hardcode_action_F77" = relink; then
16964 # Fast installation is not supported
16965 enable_fast_install=no
16966 elif test "$shlibpath_overrides_runpath" = yes ||
16967 test "$enable_shared" = no; then
16968 # Fast installation is not necessary
16969 enable_fast_install=needless
16970 fi
16971
16972
16973 # The else clause should only fire when bootstrapping the
16974 # libtool distribution, otherwise you forgot to ship ltmain.sh
16975 # with your package, and you will get complaints that there are
16976 # no rules to generate ltmain.sh.
16977 if test -f "$ltmain"; then
16978 # See if we are running on zsh, and set the options which allow our commands through
16979 # without removal of \ escapes.
16980 if test -n "${ZSH_VERSION+set}" ; then
16981 setopt NO_GLOB_SUBST
16982 fi
16983 # Now quote all the things that may contain metacharacters while being
16984 # careful not to overquote the AC_SUBSTed values. We take copies of the
16985 # variables and quote the copies for generation of the libtool script.
16986 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16987 SED SHELL STRIP \
16988 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16989 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16990 deplibs_check_method reload_flag reload_cmds need_locks \
16991 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16992 lt_cv_sys_global_symbol_to_c_name_address \
16993 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16994 old_postinstall_cmds old_postuninstall_cmds \
16995 compiler_F77 \
16996 CC_F77 \
16997 LD_F77 \
16998 lt_prog_compiler_wl_F77 \
16999 lt_prog_compiler_pic_F77 \
17000 lt_prog_compiler_static_F77 \
17001 lt_prog_compiler_no_builtin_flag_F77 \
17002 export_dynamic_flag_spec_F77 \
17003 thread_safe_flag_spec_F77 \
17004 whole_archive_flag_spec_F77 \
17005 enable_shared_with_static_runtimes_F77 \
17006 old_archive_cmds_F77 \
17007 old_archive_from_new_cmds_F77 \
17008 predep_objects_F77 \
17009 postdep_objects_F77 \
17010 predeps_F77 \
17011 postdeps_F77 \
17012 compiler_lib_search_path_F77 \
17013 archive_cmds_F77 \
17014 archive_expsym_cmds_F77 \
17015 postinstall_cmds_F77 \
17016 postuninstall_cmds_F77 \
17017 old_archive_from_expsyms_cmds_F77 \
17018 allow_undefined_flag_F77 \
17019 no_undefined_flag_F77 \
17020 export_symbols_cmds_F77 \
17021 hardcode_libdir_flag_spec_F77 \
17022 hardcode_libdir_flag_spec_ld_F77 \
17023 hardcode_libdir_separator_F77 \
17024 hardcode_automatic_F77 \
17025 module_cmds_F77 \
17026 module_expsym_cmds_F77 \
17027 lt_cv_prog_compiler_c_o_F77 \
17028 exclude_expsyms_F77 \
17029 include_expsyms_F77; do
17030
17031 case $var in
17032 old_archive_cmds_F77 | \
17033 old_archive_from_new_cmds_F77 | \
17034 archive_cmds_F77 | \
17035 archive_expsym_cmds_F77 | \
17036 module_cmds_F77 | \
17037 module_expsym_cmds_F77 | \
17038 old_archive_from_expsyms_cmds_F77 | \
17039 export_symbols_cmds_F77 | \
17040 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17041 postinstall_cmds | postuninstall_cmds | \
17042 old_postinstall_cmds | old_postuninstall_cmds | \
17043 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17044 # Double-quote double-evaled strings.
17045 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17046 ;;
17047 *)
17048 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17049 ;;
17050 esac
17051 done
17052
17053 case $lt_echo in
17054 *'\$0 --fallback-echo"')
17055 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17056 ;;
17057 esac
17058
17059 cfgfile="$ofile"
17060
17061 cat <<__EOF__ >> "$cfgfile"
17062 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17063
17064 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17065
17066 # Shell to use when invoking shell scripts.
17067 SHELL=$lt_SHELL
17068
17069 # Whether or not to build shared libraries.
17070 build_libtool_libs=$enable_shared
17071
17072 # Whether or not to build static libraries.
17073 build_old_libs=$enable_static
17074
17075 # Whether or not to add -lc for building shared libraries.
17076 build_libtool_need_lc=$archive_cmds_need_lc_F77
17077
17078 # Whether or not to disallow shared libs when runtime libs are static
17079 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17080
17081 # Whether or not to optimize for fast installation.
17082 fast_install=$enable_fast_install
17083
17084 # The host system.
17085 host_alias=$host_alias
17086 host=$host
17087 host_os=$host_os
17088
17089 # The build system.
17090 build_alias=$build_alias
17091 build=$build
17092 build_os=$build_os
17093
17094 # An echo program that does not interpret backslashes.
17095 echo=$lt_echo
17096
17097 # The archiver.
17098 AR=$lt_AR
17099 AR_FLAGS=$lt_AR_FLAGS
17100
17101 # A C compiler.
17102 LTCC=$lt_LTCC
17103
17104 # LTCC compiler flags.
17105 LTCFLAGS=$lt_LTCFLAGS
17106
17107 # A language-specific compiler.
17108 CC=$lt_compiler_F77
17109
17110 # Is the compiler the GNU C compiler?
17111 with_gcc=$GCC_F77
17112
17113 # An ERE matcher.
17114 EGREP=$lt_EGREP
17115
17116 # The linker used to build libraries.
17117 LD=$lt_LD_F77
17118
17119 # Whether we need hard or soft links.
17120 LN_S=$lt_LN_S
17121
17122 # A BSD-compatible nm program.
17123 NM=$lt_NM
17124
17125 # A symbol stripping program
17126 STRIP=$lt_STRIP
17127
17128 # Used to examine libraries when file_magic_cmd begins "file"
17129 MAGIC_CMD=$MAGIC_CMD
17130
17131 # Used on cygwin: DLL creation program.
17132 DLLTOOL="$DLLTOOL"
17133
17134 # Used on cygwin: object dumper.
17135 OBJDUMP="$OBJDUMP"
17136
17137 # Used on cygwin: assembler.
17138 AS="$AS"
17139
17140 # The name of the directory that contains temporary libtool files.
17141 objdir=$objdir
17142
17143 # How to create reloadable object files.
17144 reload_flag=$lt_reload_flag
17145 reload_cmds=$lt_reload_cmds
17146
17147 # How to pass a linker flag through the compiler.
17148 wl=$lt_lt_prog_compiler_wl_F77
17149
17150 # Object file suffix (normally "o").
17151 objext="$ac_objext"
17152
17153 # Old archive suffix (normally "a").
17154 libext="$libext"
17155
17156 # Shared library suffix (normally ".so").
17157 shrext_cmds='$shrext_cmds'
17158
17159 # Executable file suffix (normally "").
17160 exeext="$exeext"
17161
17162 # Additional compiler flags for building library objects.
17163 pic_flag=$lt_lt_prog_compiler_pic_F77
17164 pic_mode=$pic_mode
17165
17166 # What is the maximum length of a command?
17167 max_cmd_len=$lt_cv_sys_max_cmd_len
17168
17169 # Does compiler simultaneously support -c and -o options?
17170 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17171
17172 # Must we lock files when doing compilation?
17173 need_locks=$lt_need_locks
17174
17175 # Do we need the lib prefix for modules?
17176 need_lib_prefix=$need_lib_prefix
17177
17178 # Do we need a version for libraries?
17179 need_version=$need_version
17180
17181 # Whether dlopen is supported.
17182 dlopen_support=$enable_dlopen
17183
17184 # Whether dlopen of programs is supported.
17185 dlopen_self=$enable_dlopen_self
17186
17187 # Whether dlopen of statically linked programs is supported.
17188 dlopen_self_static=$enable_dlopen_self_static
17189
17190 # Compiler flag to prevent dynamic linking.
17191 link_static_flag=$lt_lt_prog_compiler_static_F77
17192
17193 # Compiler flag to turn off builtin functions.
17194 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17195
17196 # Compiler flag to allow reflexive dlopens.
17197 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17198
17199 # Compiler flag to generate shared objects directly from archives.
17200 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17201
17202 # Compiler flag to generate thread-safe objects.
17203 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17204
17205 # Library versioning type.
17206 version_type=$version_type
17207
17208 # Format of library name prefix.
17209 libname_spec=$lt_libname_spec
17210
17211 # List of archive names. First name is the real one, the rest are links.
17212 # The last name is the one that the linker finds with -lNAME.
17213 library_names_spec=$lt_library_names_spec
17214
17215 # The coded name of the library, if different from the real name.
17216 soname_spec=$lt_soname_spec
17217
17218 # Commands used to build and install an old-style archive.
17219 RANLIB=$lt_RANLIB
17220 old_archive_cmds=$lt_old_archive_cmds_F77
17221 old_postinstall_cmds=$lt_old_postinstall_cmds
17222 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17223
17224 # Create an old-style archive from a shared archive.
17225 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17226
17227 # Create a temporary old-style archive to link instead of a shared archive.
17228 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17229
17230 # Commands used to build and install a shared archive.
17231 archive_cmds=$lt_archive_cmds_F77
17232 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17233 postinstall_cmds=$lt_postinstall_cmds
17234 postuninstall_cmds=$lt_postuninstall_cmds
17235
17236 # Commands used to build a loadable module (assumed same as above if empty)
17237 module_cmds=$lt_module_cmds_F77
17238 module_expsym_cmds=$lt_module_expsym_cmds_F77
17239
17240 # Commands to strip libraries.
17241 old_striplib=$lt_old_striplib
17242 striplib=$lt_striplib
17243
17244 # Dependencies to place before the objects being linked to create a
17245 # shared library.
17246 predep_objects=$lt_predep_objects_F77
17247
17248 # Dependencies to place after the objects being linked to create a
17249 # shared library.
17250 postdep_objects=$lt_postdep_objects_F77
17251
17252 # Dependencies to place before the objects being linked to create a
17253 # shared library.
17254 predeps=$lt_predeps_F77
17255
17256 # Dependencies to place after the objects being linked to create a
17257 # shared library.
17258 postdeps=$lt_postdeps_F77
17259
17260 # The library search path used internally by the compiler when linking
17261 # a shared library.
17262 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17263
17264 # Method to check whether dependent libraries are shared objects.
17265 deplibs_check_method=$lt_deplibs_check_method
17266
17267 # Command to use when deplibs_check_method == file_magic.
17268 file_magic_cmd=$lt_file_magic_cmd
17269
17270 # Flag that allows shared libraries with undefined symbols to be built.
17271 allow_undefined_flag=$lt_allow_undefined_flag_F77
17272
17273 # Flag that forces no undefined symbols.
17274 no_undefined_flag=$lt_no_undefined_flag_F77
17275
17276 # Commands used to finish a libtool library installation in a directory.
17277 finish_cmds=$lt_finish_cmds
17278
17279 # Same as above, but a single script fragment to be evaled but not shown.
17280 finish_eval=$lt_finish_eval
17281
17282 # Take the output of nm and produce a listing of raw symbols and C names.
17283 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17284
17285 # Transform the output of nm in a proper C declaration
17286 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17287
17288 # Transform the output of nm in a C name address pair
17289 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17290
17291 # This is the shared library runtime path variable.
17292 runpath_var=$runpath_var
17293
17294 # This is the shared library path variable.
17295 shlibpath_var=$shlibpath_var
17296
17297 # Is shlibpath searched before the hard-coded library search path?
17298 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17299
17300 # How to hardcode a shared library path into an executable.
17301 hardcode_action=$hardcode_action_F77
17302
17303 # Whether we should hardcode library paths into libraries.
17304 hardcode_into_libs=$hardcode_into_libs
17305
17306 # Flag to hardcode \$libdir into a binary during linking.
17307 # This must work even if \$libdir does not exist.
17308 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17309
17310 # If ld is used when linking, flag to hardcode \$libdir into
17311 # a binary during linking. This must work even if \$libdir does
17312 # not exist.
17313 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17314
17315 # Whether we need a single -rpath flag with a separated argument.
17316 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17317
17318 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17319 # resulting binary.
17320 hardcode_direct=$hardcode_direct_F77
17321
17322 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17323 # resulting binary.
17324 hardcode_minus_L=$hardcode_minus_L_F77
17325
17326 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17327 # the resulting binary.
17328 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17329
17330 # Set to yes if building a shared library automatically hardcodes DIR into the library
17331 # and all subsequent libraries and executables linked against it.
17332 hardcode_automatic=$hardcode_automatic_F77
17333
17334 # Variables whose values should be saved in libtool wrapper scripts and
17335 # restored at relink time.
17336 variables_saved_for_relink="$variables_saved_for_relink"
17337
17338 # Whether libtool must link a program against all its dependency libraries.
17339 link_all_deplibs=$link_all_deplibs_F77
17340
17341 # Compile-time system search path for libraries
17342 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17343
17344 # Run-time system search path for libraries
17345 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17346
17347 # Fix the shell variable \$srcfile for the compiler.
17348 fix_srcfile_path="$fix_srcfile_path_F77"
17349
17350 # Set to yes if exported symbols are required.
17351 always_export_symbols=$always_export_symbols_F77
17352
17353 # The commands to list exported symbols.
17354 export_symbols_cmds=$lt_export_symbols_cmds_F77
17355
17356 # The commands to extract the exported symbol list from a shared archive.
17357 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17358
17359 # Symbols that should not be listed in the preloaded symbols.
17360 exclude_expsyms=$lt_exclude_expsyms_F77
17361
17362 # Symbols that must always be exported.
17363 include_expsyms=$lt_include_expsyms_F77
17364
17365 # ### END LIBTOOL TAG CONFIG: $tagname
17366
17367 __EOF__
17368
17369
17370 else
17371 # If there is no Makefile yet, we rely on a make rule to execute
17372 # `config.status --recheck' to rerun these tests and create the
17373 # libtool script then.
17374 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17375 if test -f "$ltmain_in"; then
17376 test -f Makefile && make "$ltmain"
17377 fi
17378 fi
17379
17380
17381 ac_ext=c
17382 ac_cpp='$CPP $CPPFLAGS'
17383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17386
17387 CC="$lt_save_CC"
17388
17389 else
17390 tagname=""
17391 fi
17392 ;;
17393
17394 GCJ)
17395 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17396
17397
17398
17399 # Source file extension for Java test sources.
17400 ac_ext=java
17401
17402 # Object file extension for compiled Java test sources.
17403 objext=o
17404 objext_GCJ=$objext
17405
17406 # Code to be used in simple compile tests
17407 lt_simple_compile_test_code="class foo {}\n"
17408
17409 # Code to be used in simple link tests
17410 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17411
17412 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17413
17414 # If no C compiler was specified, use CC.
17415 LTCC=${LTCC-"$CC"}
17416
17417 # If no C compiler flags were specified, use CFLAGS.
17418 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17419
17420 # Allow CC to be a program name with arguments.
17421 compiler=$CC
17422
17423
17424 # save warnings/boilerplate of simple test code
17425 ac_outfile=conftest.$ac_objext
17426 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17427 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17428 _lt_compiler_boilerplate=`cat conftest.err`
17429 $rm conftest*
17430
17431 ac_outfile=conftest.$ac_objext
17432 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17433 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17434 _lt_linker_boilerplate=`cat conftest.err`
17435 $rm conftest*
17436
17437
17438 # Allow CC to be a program name with arguments.
17439 lt_save_CC="$CC"
17440 CC=${GCJ-"gcj"}
17441 compiler=$CC
17442 compiler_GCJ=$CC
17443 for cc_temp in $compiler""; do
17444 case $cc_temp in
17445 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17446 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17447 \-*) ;;
17448 *) break;;
17449 esac
17450 done
17451 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17452
17453
17454 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17455 archive_cmds_need_lc_GCJ=no
17456
17457 old_archive_cmds_GCJ=$old_archive_cmds
17458
17459 ## CAVEAT EMPTOR:
17460 ## There is no encapsulation within the following macros, do not change
17461 ## the running order or otherwise move them around unless you know exactly
17462 ## what you are doing...
17463
17464 lt_prog_compiler_no_builtin_flag_GCJ=
17465
17466 if test "$GCC" = yes; then
17467 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17468
17469
17470 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17471 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17472 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475 lt_cv_prog_compiler_rtti_exceptions=no
17476 ac_outfile=conftest.$ac_objext
17477 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17478 lt_compiler_flag="-fno-rtti -fno-exceptions"
17479 # Insert the option either (1) after the last *FLAGS variable, or
17480 # (2) before a word containing "conftest.", or (3) at the end.
17481 # Note that $ac_compile itself does not contain backslashes and begins
17482 # with a dollar sign (not a hyphen), so the echo should work correctly.
17483 # The option is referenced via a variable to avoid confusing sed.
17484 lt_compile=`echo "$ac_compile" | $SED \
17485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17487 -e 's:$: $lt_compiler_flag:'`
17488 (eval echo "\"\$as_me:17488: $lt_compile\"" >&5)
17489 (eval "$lt_compile" 2>conftest.err)
17490 ac_status=$?
17491 cat conftest.err >&5
17492 echo "$as_me:17492: \$? = $ac_status" >&5
17493 if (exit $ac_status) && test -s "$ac_outfile"; then
17494 # The compiler can only warn and ignore the option if not recognized
17495 # So say no if there are warnings other than the usual output.
17496 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17499 lt_cv_prog_compiler_rtti_exceptions=yes
17500 fi
17501 fi
17502 $rm conftest*
17503
17504 fi
17505 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17506 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17507
17508 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17509 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17510 else
17511 :
17512 fi
17513
17514 fi
17515
17516 lt_prog_compiler_wl_GCJ=
17517 lt_prog_compiler_pic_GCJ=
17518 lt_prog_compiler_static_GCJ=
17519
17520 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17521 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17522
17523 if test "$GCC" = yes; then
17524 lt_prog_compiler_wl_GCJ='-Wl,'
17525 lt_prog_compiler_static_GCJ='-static'
17526
17527 case $host_os in
17528 aix*)
17529 # All AIX code is PIC.
17530 if test "$host_cpu" = ia64; then
17531 # AIX 5 now supports IA64 processor
17532 lt_prog_compiler_static_GCJ='-Bstatic'
17533 fi
17534 ;;
17535
17536 amigaos*)
17537 # FIXME: we need at least 68020 code to build shared libraries, but
17538 # adding the `-m68020' flag to GCC prevents building anything better,
17539 # like `-m68040'.
17540 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17541 ;;
17542
17543 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17544 # PIC is the default for these OSes.
17545 ;;
17546
17547 mingw* | pw32* | os2*)
17548 # This hack is so that the source file can tell whether it is being
17549 # built for inclusion in a dll (and should export symbols for example).
17550 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17551 ;;
17552
17553 darwin* | rhapsody*)
17554 # PIC is the default on this platform
17555 # Common symbols not allowed in MH_DYLIB files
17556 lt_prog_compiler_pic_GCJ='-fno-common'
17557 ;;
17558
17559 interix3*)
17560 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17561 # Instead, we relocate shared libraries at runtime.
17562 ;;
17563
17564 msdosdjgpp*)
17565 # Just because we use GCC doesn't mean we suddenly get shared libraries
17566 # on systems that don't support them.
17567 lt_prog_compiler_can_build_shared_GCJ=no
17568 enable_shared=no
17569 ;;
17570
17571 sysv4*MP*)
17572 if test -d /usr/nec; then
17573 lt_prog_compiler_pic_GCJ=-Kconform_pic
17574 fi
17575 ;;
17576
17577 hpux*)
17578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17579 # not for PA HP-UX.
17580 case $host_cpu in
17581 hppa*64*|ia64*)
17582 # +Z the default
17583 ;;
17584 *)
17585 lt_prog_compiler_pic_GCJ='-fPIC'
17586 ;;
17587 esac
17588 ;;
17589
17590 *)
17591 lt_prog_compiler_pic_GCJ='-fPIC'
17592 ;;
17593 esac
17594 else
17595 # PORTME Check for flag to pass linker flags through the system compiler.
17596 case $host_os in
17597 aix*)
17598 lt_prog_compiler_wl_GCJ='-Wl,'
17599 if test "$host_cpu" = ia64; then
17600 # AIX 5 now supports IA64 processor
17601 lt_prog_compiler_static_GCJ='-Bstatic'
17602 else
17603 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17604 fi
17605 ;;
17606 darwin*)
17607 # PIC is the default on this platform
17608 # Common symbols not allowed in MH_DYLIB files
17609 case $cc_basename in
17610 xlc*)
17611 lt_prog_compiler_pic_GCJ='-qnocommon'
17612 lt_prog_compiler_wl_GCJ='-Wl,'
17613 ;;
17614 esac
17615 ;;
17616
17617 mingw* | pw32* | os2*)
17618 # This hack is so that the source file can tell whether it is being
17619 # built for inclusion in a dll (and should export symbols for example).
17620 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17621 ;;
17622
17623 hpux9* | hpux10* | hpux11*)
17624 lt_prog_compiler_wl_GCJ='-Wl,'
17625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17626 # not for PA HP-UX.
17627 case $host_cpu in
17628 hppa*64*|ia64*)
17629 # +Z the default
17630 ;;
17631 *)
17632 lt_prog_compiler_pic_GCJ='+Z'
17633 ;;
17634 esac
17635 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17636 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17637 ;;
17638
17639 irix5* | irix6* | nonstopux*)
17640 lt_prog_compiler_wl_GCJ='-Wl,'
17641 # PIC (with -KPIC) is the default.
17642 lt_prog_compiler_static_GCJ='-non_shared'
17643 ;;
17644
17645 newsos6)
17646 lt_prog_compiler_pic_GCJ='-KPIC'
17647 lt_prog_compiler_static_GCJ='-Bstatic'
17648 ;;
17649
17650 linux*)
17651 case $cc_basename in
17652 icc* | ecc*)
17653 lt_prog_compiler_wl_GCJ='-Wl,'
17654 lt_prog_compiler_pic_GCJ='-KPIC'
17655 lt_prog_compiler_static_GCJ='-static'
17656 ;;
17657 pgcc* | pgf77* | pgf90* | pgf95*)
17658 # Portland Group compilers (*not* the Pentium gcc compiler,
17659 # which looks to be a dead project)
17660 lt_prog_compiler_wl_GCJ='-Wl,'
17661 lt_prog_compiler_pic_GCJ='-fpic'
17662 lt_prog_compiler_static_GCJ='-Bstatic'
17663 ;;
17664 ccc*)
17665 lt_prog_compiler_wl_GCJ='-Wl,'
17666 # All Alpha code is PIC.
17667 lt_prog_compiler_static_GCJ='-non_shared'
17668 ;;
17669 esac
17670 ;;
17671
17672 osf3* | osf4* | osf5*)
17673 lt_prog_compiler_wl_GCJ='-Wl,'
17674 # All OSF/1 code is PIC.
17675 lt_prog_compiler_static_GCJ='-non_shared'
17676 ;;
17677
17678 solaris*)
17679 lt_prog_compiler_pic_GCJ='-KPIC'
17680 lt_prog_compiler_static_GCJ='-Bstatic'
17681 case $cc_basename in
17682 f77* | f90* | f95*)
17683 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17684 *)
17685 lt_prog_compiler_wl_GCJ='-Wl,';;
17686 esac
17687 ;;
17688
17689 sunos4*)
17690 lt_prog_compiler_wl_GCJ='-Qoption ld '
17691 lt_prog_compiler_pic_GCJ='-PIC'
17692 lt_prog_compiler_static_GCJ='-Bstatic'
17693 ;;
17694
17695 sysv4 | sysv4.2uw2* | sysv4.3*)
17696 lt_prog_compiler_wl_GCJ='-Wl,'
17697 lt_prog_compiler_pic_GCJ='-KPIC'
17698 lt_prog_compiler_static_GCJ='-Bstatic'
17699 ;;
17700
17701 sysv4*MP*)
17702 if test -d /usr/nec ;then
17703 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17704 lt_prog_compiler_static_GCJ='-Bstatic'
17705 fi
17706 ;;
17707
17708 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17709 lt_prog_compiler_wl_GCJ='-Wl,'
17710 lt_prog_compiler_pic_GCJ='-KPIC'
17711 lt_prog_compiler_static_GCJ='-Bstatic'
17712 ;;
17713
17714 unicos*)
17715 lt_prog_compiler_wl_GCJ='-Wl,'
17716 lt_prog_compiler_can_build_shared_GCJ=no
17717 ;;
17718
17719 uts4*)
17720 lt_prog_compiler_pic_GCJ='-pic'
17721 lt_prog_compiler_static_GCJ='-Bstatic'
17722 ;;
17723
17724 *)
17725 lt_prog_compiler_can_build_shared_GCJ=no
17726 ;;
17727 esac
17728 fi
17729
17730 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17731 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17732
17733 #
17734 # Check to make sure the PIC flag actually works.
17735 #
17736 if test -n "$lt_prog_compiler_pic_GCJ"; then
17737
17738 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17739 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17740 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17741 echo $ECHO_N "(cached) $ECHO_C" >&6
17742 else
17743 lt_prog_compiler_pic_works_GCJ=no
17744 ac_outfile=conftest.$ac_objext
17745 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17746 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17747 # Insert the option either (1) after the last *FLAGS variable, or
17748 # (2) before a word containing "conftest.", or (3) at the end.
17749 # Note that $ac_compile itself does not contain backslashes and begins
17750 # with a dollar sign (not a hyphen), so the echo should work correctly.
17751 # The option is referenced via a variable to avoid confusing sed.
17752 lt_compile=`echo "$ac_compile" | $SED \
17753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17755 -e 's:$: $lt_compiler_flag:'`
17756 (eval echo "\"\$as_me:17756: $lt_compile\"" >&5)
17757 (eval "$lt_compile" 2>conftest.err)
17758 ac_status=$?
17759 cat conftest.err >&5
17760 echo "$as_me:17760: \$? = $ac_status" >&5
17761 if (exit $ac_status) && test -s "$ac_outfile"; then
17762 # The compiler can only warn and ignore the option if not recognized
17763 # So say no if there are warnings other than the usual output.
17764 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17766 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17767 lt_prog_compiler_pic_works_GCJ=yes
17768 fi
17769 fi
17770 $rm conftest*
17771
17772 fi
17773 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17774 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17775
17776 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17777 case $lt_prog_compiler_pic_GCJ in
17778 "" | " "*) ;;
17779 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17780 esac
17781 else
17782 lt_prog_compiler_pic_GCJ=
17783 lt_prog_compiler_can_build_shared_GCJ=no
17784 fi
17785
17786 fi
17787 case $host_os in
17788 # For platforms which do not support PIC, -DPIC is meaningless:
17789 *djgpp*)
17790 lt_prog_compiler_pic_GCJ=
17791 ;;
17792 *)
17793 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17794 ;;
17795 esac
17796
17797 #
17798 # Check to make sure the static flag actually works.
17799 #
17800 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17801 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17802 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17803 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17804 echo $ECHO_N "(cached) $ECHO_C" >&6
17805 else
17806 lt_prog_compiler_static_works_GCJ=no
17807 save_LDFLAGS="$LDFLAGS"
17808 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17809 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17811 # The linker can only warn and ignore the option if not recognized
17812 # So say no if there are warnings
17813 if test -s conftest.err; then
17814 # Append any errors to the config.log.
17815 cat conftest.err 1>&5
17816 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17818 if diff conftest.exp conftest.er2 >/dev/null; then
17819 lt_prog_compiler_static_works_GCJ=yes
17820 fi
17821 else
17822 lt_prog_compiler_static_works_GCJ=yes
17823 fi
17824 fi
17825 $rm conftest*
17826 LDFLAGS="$save_LDFLAGS"
17827
17828 fi
17829 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17830 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17831
17832 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17833 :
17834 else
17835 lt_prog_compiler_static_GCJ=
17836 fi
17837
17838
17839 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17840 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17841 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 else
17844 lt_cv_prog_compiler_c_o_GCJ=no
17845 $rm -r conftest 2>/dev/null
17846 mkdir conftest
17847 cd conftest
17848 mkdir out
17849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17850
17851 lt_compiler_flag="-o out/conftest2.$ac_objext"
17852 # Insert the option either (1) after the last *FLAGS variable, or
17853 # (2) before a word containing "conftest.", or (3) at the end.
17854 # Note that $ac_compile itself does not contain backslashes and begins
17855 # with a dollar sign (not a hyphen), so the echo should work correctly.
17856 lt_compile=`echo "$ac_compile" | $SED \
17857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17859 -e 's:$: $lt_compiler_flag:'`
17860 (eval echo "\"\$as_me:17860: $lt_compile\"" >&5)
17861 (eval "$lt_compile" 2>out/conftest.err)
17862 ac_status=$?
17863 cat out/conftest.err >&5
17864 echo "$as_me:17864: \$? = $ac_status" >&5
17865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17866 then
17867 # The compiler can only warn and ignore the option if not recognized
17868 # So say no if there are warnings
17869 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17872 lt_cv_prog_compiler_c_o_GCJ=yes
17873 fi
17874 fi
17875 chmod u+w . 2>&5
17876 $rm conftest*
17877 # SGI C++ compiler will create directory out/ii_files/ for
17878 # template instantiation
17879 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17880 $rm out/* && rmdir out
17881 cd ..
17882 rmdir conftest
17883 $rm conftest*
17884
17885 fi
17886 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17888
17889
17890 hard_links="nottested"
17891 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17892 # do not overwrite the value of need_locks provided by the user
17893 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17895 hard_links=yes
17896 $rm conftest*
17897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17898 touch conftest.a
17899 ln conftest.a conftest.b 2>&5 || hard_links=no
17900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17901 echo "$as_me:$LINENO: result: $hard_links" >&5
17902 echo "${ECHO_T}$hard_links" >&6
17903 if test "$hard_links" = no; then
17904 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17906 need_locks=warn
17907 fi
17908 else
17909 need_locks=no
17910 fi
17911
17912 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17914
17915 runpath_var=
17916 allow_undefined_flag_GCJ=
17917 enable_shared_with_static_runtimes_GCJ=no
17918 archive_cmds_GCJ=
17919 archive_expsym_cmds_GCJ=
17920 old_archive_From_new_cmds_GCJ=
17921 old_archive_from_expsyms_cmds_GCJ=
17922 export_dynamic_flag_spec_GCJ=
17923 whole_archive_flag_spec_GCJ=
17924 thread_safe_flag_spec_GCJ=
17925 hardcode_libdir_flag_spec_GCJ=
17926 hardcode_libdir_flag_spec_ld_GCJ=
17927 hardcode_libdir_separator_GCJ=
17928 hardcode_direct_GCJ=no
17929 hardcode_minus_L_GCJ=no
17930 hardcode_shlibpath_var_GCJ=unsupported
17931 link_all_deplibs_GCJ=unknown
17932 hardcode_automatic_GCJ=no
17933 module_cmds_GCJ=
17934 module_expsym_cmds_GCJ=
17935 always_export_symbols_GCJ=no
17936 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17937 # include_expsyms should be a list of space-separated symbols to be *always*
17938 # included in the symbol list
17939 include_expsyms_GCJ=
17940 # exclude_expsyms can be an extended regexp of symbols to exclude
17941 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17942 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17943 # as well as any symbol that contains `d'.
17944 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17946 # platforms (ab)use it in PIC code, but their linkers get confused if
17947 # the symbol is explicitly referenced. Since portable code cannot
17948 # rely on this symbol name, it's probably fine to never include it in
17949 # preloaded symbol tables.
17950 extract_expsyms_cmds=
17951 # Just being paranoid about ensuring that cc_basename is set.
17952 for cc_temp in $compiler""; do
17953 case $cc_temp in
17954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17956 \-*) ;;
17957 *) break;;
17958 esac
17959 done
17960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17961
17962 case $host_os in
17963 cygwin* | mingw* | pw32*)
17964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17965 # When not using gcc, we currently assume that we are using
17966 # Microsoft Visual C++.
17967 if test "$GCC" != yes; then
17968 with_gnu_ld=no
17969 fi
17970 ;;
17971 interix*)
17972 # we just hope/assume this is gcc and not c89 (= MSVC++)
17973 with_gnu_ld=yes
17974 ;;
17975 openbsd*)
17976 with_gnu_ld=no
17977 ;;
17978 esac
17979
17980 ld_shlibs_GCJ=yes
17981 if test "$with_gnu_ld" = yes; then
17982 # If archive_cmds runs LD, not CC, wlarc should be empty
17983 wlarc='${wl}'
17984
17985 # Set some defaults for GNU ld with shared library support. These
17986 # are reset later if shared libraries are not supported. Putting them
17987 # here allows them to be overridden if necessary.
17988 runpath_var=LD_RUN_PATH
17989 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17990 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17991 # ancient GNU ld didn't support --whole-archive et. al.
17992 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17993 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17994 else
17995 whole_archive_flag_spec_GCJ=
17996 fi
17997 supports_anon_versioning=no
17998 case `$LD -v 2>/dev/null` in
17999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18002 *\ 2.11.*) ;; # other 2.11 versions
18003 *) supports_anon_versioning=yes ;;
18004 esac
18005
18006 # See if GNU ld supports shared libraries.
18007 case $host_os in
18008 aix3* | aix4* | aix5*)
18009 # On AIX/PPC, the GNU linker is very broken
18010 if test "$host_cpu" != ia64; then
18011 ld_shlibs_GCJ=no
18012 cat <<EOF 1>&2
18013
18014 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18015 *** to be unable to reliably create shared libraries on AIX.
18016 *** Therefore, libtool is disabling shared libraries support. If you
18017 *** really care for shared libraries, you may want to modify your PATH
18018 *** so that a non-GNU linker is found, and then restart.
18019
18020 EOF
18021 fi
18022 ;;
18023
18024 amigaos*)
18025 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)'
18026 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18027 hardcode_minus_L_GCJ=yes
18028
18029 # Samuel A. Falvo II <[email protected]> reports
18030 # that the semantics of dynamic libraries on AmigaOS, at least up
18031 # to version 4, is to share data among multiple programs linked
18032 # with the same dynamic library. Since this doesn't match the
18033 # behavior of shared libraries on other platforms, we can't use
18034 # them.
18035 ld_shlibs_GCJ=no
18036 ;;
18037
18038 beos*)
18039 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18040 allow_undefined_flag_GCJ=unsupported
18041 # Joseph Beckenbach <[email protected]> says some releases of gcc
18042 # support --undefined. This deserves some investigation. FIXME
18043 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18044 else
18045 ld_shlibs_GCJ=no
18046 fi
18047 ;;
18048
18049 cygwin* | mingw* | pw32*)
18050 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18051 # as there is no search path for DLLs.
18052 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18053 allow_undefined_flag_GCJ=unsupported
18054 always_export_symbols_GCJ=no
18055 enable_shared_with_static_runtimes_GCJ=yes
18056 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18057
18058 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18059 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18060 # If the export-symbols file already is a .def file (1st line
18061 # is EXPORTS), use it as is; otherwise, prepend...
18062 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18063 cp $export_symbols $output_objdir/$soname.def;
18064 else
18065 echo EXPORTS > $output_objdir/$soname.def;
18066 cat $export_symbols >> $output_objdir/$soname.def;
18067 fi~
18068 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18069 else
18070 ld_shlibs_GCJ=no
18071 fi
18072 ;;
18073
18074 interix3*)
18075 hardcode_direct_GCJ=no
18076 hardcode_shlibpath_var_GCJ=no
18077 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18078 export_dynamic_flag_spec_GCJ='${wl}-E'
18079 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18080 # Instead, shared libraries are loaded at an image base (0x10000000 by
18081 # default) and relocated if they conflict, which is a slow very memory
18082 # consuming and fragmenting process. To avoid this, we pick a random,
18083 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18084 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18085 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'
18086 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'
18087 ;;
18088
18089 linux*)
18090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18091 tmp_addflag=
18092 case $cc_basename,$host_cpu in
18093 pgcc*) # Portland Group C compiler
18094 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'
18095 tmp_addflag=' $pic_flag'
18096 ;;
18097 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18098 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'
18099 tmp_addflag=' $pic_flag -Mnomain' ;;
18100 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18101 tmp_addflag=' -i_dynamic' ;;
18102 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18103 tmp_addflag=' -i_dynamic -nofor_main' ;;
18104 ifc* | ifort*) # Intel Fortran compiler
18105 tmp_addflag=' -nofor_main' ;;
18106 esac
18107 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18108
18109 if test $supports_anon_versioning = yes; then
18110 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18112 $echo "local: *; };" >> $output_objdir/$libname.ver~
18113 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18114 fi
18115 else
18116 ld_shlibs_GCJ=no
18117 fi
18118 ;;
18119
18120 netbsd*)
18121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18122 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18123 wlarc=
18124 else
18125 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18126 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18127 fi
18128 ;;
18129
18130 solaris*)
18131 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18132 ld_shlibs_GCJ=no
18133 cat <<EOF 1>&2
18134
18135 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18136 *** create shared libraries on Solaris systems. Therefore, libtool
18137 *** is disabling shared libraries support. We urge you to upgrade GNU
18138 *** binutils to release 2.9.1 or newer. Another option is to modify
18139 *** your PATH or compiler configuration so that the native linker is
18140 *** used, and then restart.
18141
18142 EOF
18143 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18144 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18145 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18146 else
18147 ld_shlibs_GCJ=no
18148 fi
18149 ;;
18150
18151 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18152 case `$LD -v 2>&1` in
18153 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18154 ld_shlibs_GCJ=no
18155 cat <<_LT_EOF 1>&2
18156
18157 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18158 *** reliably create shared libraries on SCO systems. Therefore, libtool
18159 *** is disabling shared libraries support. We urge you to upgrade GNU
18160 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18161 *** your PATH or compiler configuration so that the native linker is
18162 *** used, and then restart.
18163
18164 _LT_EOF
18165 ;;
18166 *)
18167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18168 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18169 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18170 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18171 else
18172 ld_shlibs_GCJ=no
18173 fi
18174 ;;
18175 esac
18176 ;;
18177
18178 sunos4*)
18179 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18180 wlarc=
18181 hardcode_direct_GCJ=yes
18182 hardcode_shlibpath_var_GCJ=no
18183 ;;
18184
18185 *)
18186 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18187 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18188 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18189 else
18190 ld_shlibs_GCJ=no
18191 fi
18192 ;;
18193 esac
18194
18195 if test "$ld_shlibs_GCJ" = no; then
18196 runpath_var=
18197 hardcode_libdir_flag_spec_GCJ=
18198 export_dynamic_flag_spec_GCJ=
18199 whole_archive_flag_spec_GCJ=
18200 fi
18201 else
18202 # PORTME fill in a description of your system's linker (not GNU ld)
18203 case $host_os in
18204 aix3*)
18205 allow_undefined_flag_GCJ=unsupported
18206 always_export_symbols_GCJ=yes
18207 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'
18208 # Note: this linker hardcodes the directories in LIBPATH if there
18209 # are no directories specified by -L.
18210 hardcode_minus_L_GCJ=yes
18211 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18212 # Neither direct hardcoding nor static linking is supported with a
18213 # broken collect2.
18214 hardcode_direct_GCJ=unsupported
18215 fi
18216 ;;
18217
18218 aix4* | aix5*)
18219 if test "$host_cpu" = ia64; then
18220 # On IA64, the linker does run time linking by default, so we don't
18221 # have to do anything special.
18222 aix_use_runtimelinking=no
18223 exp_sym_flag='-Bexport'
18224 no_entry_flag=""
18225 else
18226 # If we're using GNU nm, then we don't want the "-C" option.
18227 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18228 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18229 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'
18230 else
18231 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'
18232 fi
18233 aix_use_runtimelinking=no
18234
18235 # Test if we are trying to use run time linking or normal
18236 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18237 # need to do runtime linking.
18238 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18239 for ld_flag in $LDFLAGS; do
18240 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18241 aix_use_runtimelinking=yes
18242 break
18243 fi
18244 done
18245 ;;
18246 esac
18247
18248 exp_sym_flag='-bexport'
18249 no_entry_flag='-bnoentry'
18250 fi
18251
18252 # When large executables or shared objects are built, AIX ld can
18253 # have problems creating the table of contents. If linking a library
18254 # or program results in "error TOC overflow" add -mminimal-toc to
18255 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18256 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18257
18258 archive_cmds_GCJ=''
18259 hardcode_direct_GCJ=yes
18260 hardcode_libdir_separator_GCJ=':'
18261 link_all_deplibs_GCJ=yes
18262
18263 if test "$GCC" = yes; then
18264 case $host_os in aix4.[012]|aix4.[012].*)
18265 # We only want to do this on AIX 4.2 and lower, the check
18266 # below for broken collect2 doesn't work under 4.3+
18267 collect2name=`${CC} -print-prog-name=collect2`
18268 if test -f "$collect2name" && \
18269 strings "$collect2name" | grep resolve_lib_name >/dev/null
18270 then
18271 # We have reworked collect2
18272 hardcode_direct_GCJ=yes
18273 else
18274 # We have old collect2
18275 hardcode_direct_GCJ=unsupported
18276 # It fails to find uninstalled libraries when the uninstalled
18277 # path is not listed in the libpath. Setting hardcode_minus_L
18278 # to unsupported forces relinking
18279 hardcode_minus_L_GCJ=yes
18280 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18281 hardcode_libdir_separator_GCJ=
18282 fi
18283 ;;
18284 esac
18285 shared_flag='-shared'
18286 if test "$aix_use_runtimelinking" = yes; then
18287 shared_flag="$shared_flag "'${wl}-G'
18288 fi
18289 else
18290 # not using gcc
18291 if test "$host_cpu" = ia64; then
18292 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18293 # chokes on -Wl,-G. The following line is correct:
18294 shared_flag='-G'
18295 else
18296 if test "$aix_use_runtimelinking" = yes; then
18297 shared_flag='${wl}-G'
18298 else
18299 shared_flag='${wl}-bM:SRE'
18300 fi
18301 fi
18302 fi
18303
18304 # It seems that -bexpall does not export symbols beginning with
18305 # underscore (_), so it is better to generate a list of symbols to export.
18306 always_export_symbols_GCJ=yes
18307 if test "$aix_use_runtimelinking" = yes; then
18308 # Warning - without using the other runtime loading flags (-brtl),
18309 # -berok will link without error, but may produce a broken library.
18310 allow_undefined_flag_GCJ='-berok'
18311 # Determine the default libpath from the value encoded in an empty executable.
18312 cat >conftest.$ac_ext <<_ACEOF
18313 /* confdefs.h. */
18314 _ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18318
18319 int
18320 main ()
18321 {
18322
18323 ;
18324 return 0;
18325 }
18326 _ACEOF
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18329 (eval $ac_link) 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -z "$ac_c_werror_flag"
18337 || test ! -s conftest.err'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest$ac_exeext'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18349
18350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18351 }'`
18352 # Check for a 64-bit object if we didn't find anything.
18353 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; }
18354 }'`; fi
18355 else
18356 echo "$as_me: failed program was:" >&5
18357 sed 's/^/| /' conftest.$ac_ext >&5
18358
18359 fi
18360 rm -f conftest.err conftest.$ac_objext \
18361 conftest$ac_exeext conftest.$ac_ext
18362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18363
18364 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18365 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"
18366 else
18367 if test "$host_cpu" = ia64; then
18368 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18369 allow_undefined_flag_GCJ="-z nodefs"
18370 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"
18371 else
18372 # Determine the default libpath from the value encoded in an empty executable.
18373 cat >conftest.$ac_ext <<_ACEOF
18374 /* confdefs.h. */
18375 _ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18379
18380 int
18381 main ()
18382 {
18383
18384 ;
18385 return 0;
18386 }
18387 _ACEOF
18388 rm -f conftest.$ac_objext conftest$ac_exeext
18389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18390 (eval $ac_link) 2>conftest.er1
18391 ac_status=$?
18392 grep -v '^ *+' conftest.er1 >conftest.err
18393 rm -f conftest.er1
18394 cat conftest.err >&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } &&
18397 { ac_try='test -z "$ac_c_werror_flag"
18398 || test ! -s conftest.err'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; } &&
18404 { ac_try='test -s conftest$ac_exeext'
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; }; then
18410
18411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18412 }'`
18413 # Check for a 64-bit object if we didn't find anything.
18414 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; }
18415 }'`; fi
18416 else
18417 echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18419
18420 fi
18421 rm -f conftest.err conftest.$ac_objext \
18422 conftest$ac_exeext conftest.$ac_ext
18423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18424
18425 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18426 # Warning - without using the other run time loading flags,
18427 # -berok will link without error, but may produce a broken library.
18428 no_undefined_flag_GCJ=' ${wl}-bernotok'
18429 allow_undefined_flag_GCJ=' ${wl}-berok'
18430 # Exported symbols can be pulled into shared objects from archives
18431 whole_archive_flag_spec_GCJ='$convenience'
18432 archive_cmds_need_lc_GCJ=yes
18433 # This is similar to how AIX traditionally builds its shared libraries.
18434 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'
18435 fi
18436 fi
18437 ;;
18438
18439 amigaos*)
18440 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)'
18441 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18442 hardcode_minus_L_GCJ=yes
18443 # see comment about different semantics on the GNU ld section
18444 ld_shlibs_GCJ=no
18445 ;;
18446
18447 bsdi[45]*)
18448 export_dynamic_flag_spec_GCJ=-rdynamic
18449 ;;
18450
18451 cygwin* | mingw* | pw32*)
18452 # When not using gcc, we currently assume that we are using
18453 # Microsoft Visual C++.
18454 # hardcode_libdir_flag_spec is actually meaningless, as there is
18455 # no search path for DLLs.
18456 hardcode_libdir_flag_spec_GCJ=' '
18457 allow_undefined_flag_GCJ=unsupported
18458 # Tell ltmain to make .lib files, not .a files.
18459 libext=lib
18460 # Tell ltmain to make .dll files, not .so files.
18461 shrext_cmds=".dll"
18462 # FIXME: Setting linknames here is a bad hack.
18463 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18464 # The linker will automatically build a .lib file if we build a DLL.
18465 old_archive_From_new_cmds_GCJ='true'
18466 # FIXME: Should let the user specify the lib program.
18467 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18468 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18469 enable_shared_with_static_runtimes_GCJ=yes
18470 ;;
18471
18472 darwin* | rhapsody*)
18473 case $host_os in
18474 rhapsody* | darwin1.[012])
18475 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18476 ;;
18477 *) # Darwin 1.3 on
18478 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18479 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18480 else
18481 case ${MACOSX_DEPLOYMENT_TARGET} in
18482 10.[012])
18483 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18484 ;;
18485 10.*)
18486 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18487 ;;
18488 esac
18489 fi
18490 ;;
18491 esac
18492 archive_cmds_need_lc_GCJ=no
18493 hardcode_direct_GCJ=no
18494 hardcode_automatic_GCJ=yes
18495 hardcode_shlibpath_var_GCJ=unsupported
18496 whole_archive_flag_spec_GCJ=''
18497 link_all_deplibs_GCJ=yes
18498 if test "$GCC" = yes ; then
18499 output_verbose_link_cmd='echo'
18500 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18501 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18503 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}'
18504 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}'
18505 else
18506 case $cc_basename in
18507 xlc*)
18508 output_verbose_link_cmd='echo'
18509 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18510 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18511 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18512 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}'
18513 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}'
18514 ;;
18515 *)
18516 ld_shlibs_GCJ=no
18517 ;;
18518 esac
18519 fi
18520 ;;
18521
18522 dgux*)
18523 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18524 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18525 hardcode_shlibpath_var_GCJ=no
18526 ;;
18527
18528 freebsd1*)
18529 ld_shlibs_GCJ=no
18530 ;;
18531
18532 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18533 # support. Future versions do this automatically, but an explicit c++rt0.o
18534 # does not break anything, and helps significantly (at the cost of a little
18535 # extra space).
18536 freebsd2.2*)
18537 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18538 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18539 hardcode_direct_GCJ=yes
18540 hardcode_shlibpath_var_GCJ=no
18541 ;;
18542
18543 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18544 freebsd2*)
18545 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18546 hardcode_direct_GCJ=yes
18547 hardcode_minus_L_GCJ=yes
18548 hardcode_shlibpath_var_GCJ=no
18549 ;;
18550
18551 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18552 freebsd* | kfreebsd*-gnu | dragonfly*)
18553 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18554 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18555 hardcode_direct_GCJ=yes
18556 hardcode_shlibpath_var_GCJ=no
18557 ;;
18558
18559 hpux9*)
18560 if test "$GCC" = yes; then
18561 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'
18562 else
18563 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'
18564 fi
18565 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18566 hardcode_libdir_separator_GCJ=:
18567 hardcode_direct_GCJ=yes
18568
18569 # hardcode_minus_L: Not really in the search PATH,
18570 # but as the default location of the library.
18571 hardcode_minus_L_GCJ=yes
18572 export_dynamic_flag_spec_GCJ='${wl}-E'
18573 ;;
18574
18575 hpux10*)
18576 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18577 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18578 else
18579 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18580 fi
18581 if test "$with_gnu_ld" = no; then
18582 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18583 hardcode_libdir_separator_GCJ=:
18584
18585 hardcode_direct_GCJ=yes
18586 export_dynamic_flag_spec_GCJ='${wl}-E'
18587
18588 # hardcode_minus_L: Not really in the search PATH,
18589 # but as the default location of the library.
18590 hardcode_minus_L_GCJ=yes
18591 fi
18592 ;;
18593
18594 hpux11*)
18595 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18596 case $host_cpu in
18597 hppa*64*)
18598 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18599 ;;
18600 ia64*)
18601 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18602 ;;
18603 *)
18604 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18605 ;;
18606 esac
18607 else
18608 case $host_cpu in
18609 hppa*64*)
18610 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18611 ;;
18612 ia64*)
18613 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18614 ;;
18615 *)
18616 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18617 ;;
18618 esac
18619 fi
18620 if test "$with_gnu_ld" = no; then
18621 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18622 hardcode_libdir_separator_GCJ=:
18623
18624 case $host_cpu in
18625 hppa*64*|ia64*)
18626 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18627 hardcode_direct_GCJ=no
18628 hardcode_shlibpath_var_GCJ=no
18629 ;;
18630 *)
18631 hardcode_direct_GCJ=yes
18632 export_dynamic_flag_spec_GCJ='${wl}-E'
18633
18634 # hardcode_minus_L: Not really in the search PATH,
18635 # but as the default location of the library.
18636 hardcode_minus_L_GCJ=yes
18637 ;;
18638 esac
18639 fi
18640 ;;
18641
18642 irix5* | irix6* | nonstopux*)
18643 if test "$GCC" = yes; then
18644 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'
18645 else
18646 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'
18647 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18648 fi
18649 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18650 hardcode_libdir_separator_GCJ=:
18651 link_all_deplibs_GCJ=yes
18652 ;;
18653
18654 netbsd*)
18655 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18656 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18657 else
18658 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18659 fi
18660 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18661 hardcode_direct_GCJ=yes
18662 hardcode_shlibpath_var_GCJ=no
18663 ;;
18664
18665 newsos6)
18666 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18667 hardcode_direct_GCJ=yes
18668 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18669 hardcode_libdir_separator_GCJ=:
18670 hardcode_shlibpath_var_GCJ=no
18671 ;;
18672
18673 openbsd*)
18674 hardcode_direct_GCJ=yes
18675 hardcode_shlibpath_var_GCJ=no
18676 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18677 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18678 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18679 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18680 export_dynamic_flag_spec_GCJ='${wl}-E'
18681 else
18682 case $host_os in
18683 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18684 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18685 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18686 ;;
18687 *)
18688 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18689 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18690 ;;
18691 esac
18692 fi
18693 ;;
18694
18695 os2*)
18696 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18697 hardcode_minus_L_GCJ=yes
18698 allow_undefined_flag_GCJ=unsupported
18699 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'
18700 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18701 ;;
18702
18703 osf3*)
18704 if test "$GCC" = yes; then
18705 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18706 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'
18707 else
18708 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18709 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'
18710 fi
18711 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18712 hardcode_libdir_separator_GCJ=:
18713 ;;
18714
18715 osf4* | osf5*) # as osf3* with the addition of -msym flag
18716 if test "$GCC" = yes; then
18717 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18718 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'
18719 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18720 else
18721 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18722 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'
18723 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~
18724 $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'
18725
18726 # Both c and cxx compiler support -rpath directly
18727 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18728 fi
18729 hardcode_libdir_separator_GCJ=:
18730 ;;
18731
18732 solaris*)
18733 no_undefined_flag_GCJ=' -z text'
18734 if test "$GCC" = yes; then
18735 wlarc='${wl}'
18736 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18737 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18738 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18739 else
18740 wlarc=''
18741 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18742 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18743 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18744 fi
18745 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18746 hardcode_shlibpath_var_GCJ=no
18747 case $host_os in
18748 solaris2.[0-5] | solaris2.[0-5].*) ;;
18749 *)
18750 # The compiler driver will combine linker options so we
18751 # cannot just pass the convience library names through
18752 # without $wl, iff we do not link with $LD.
18753 # Luckily, gcc supports the same syntax we need for Sun Studio.
18754 # Supported since Solaris 2.6 (maybe 2.5.1?)
18755 case $wlarc in
18756 '')
18757 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18758 *)
18759 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' ;;
18760 esac ;;
18761 esac
18762 link_all_deplibs_GCJ=yes
18763 ;;
18764
18765 sunos4*)
18766 if test "x$host_vendor" = xsequent; then
18767 # Use $CC to link under sequent, because it throws in some extra .o
18768 # files that make .init and .fini sections work.
18769 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18770 else
18771 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18772 fi
18773 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18774 hardcode_direct_GCJ=yes
18775 hardcode_minus_L_GCJ=yes
18776 hardcode_shlibpath_var_GCJ=no
18777 ;;
18778
18779 sysv4)
18780 case $host_vendor in
18781 sni)
18782 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18783 hardcode_direct_GCJ=yes # is this really true???
18784 ;;
18785 siemens)
18786 ## LD is ld it makes a PLAMLIB
18787 ## CC just makes a GrossModule.
18788 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18789 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18790 hardcode_direct_GCJ=no
18791 ;;
18792 motorola)
18793 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18794 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18795 ;;
18796 esac
18797 runpath_var='LD_RUN_PATH'
18798 hardcode_shlibpath_var_GCJ=no
18799 ;;
18800
18801 sysv4.3*)
18802 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18803 hardcode_shlibpath_var_GCJ=no
18804 export_dynamic_flag_spec_GCJ='-Bexport'
18805 ;;
18806
18807 sysv4*MP*)
18808 if test -d /usr/nec; then
18809 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18810 hardcode_shlibpath_var_GCJ=no
18811 runpath_var=LD_RUN_PATH
18812 hardcode_runpath_var=yes
18813 ld_shlibs_GCJ=yes
18814 fi
18815 ;;
18816
18817 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18818 no_undefined_flag_GCJ='${wl}-z,text'
18819 archive_cmds_need_lc_GCJ=no
18820 hardcode_shlibpath_var_GCJ=no
18821 runpath_var='LD_RUN_PATH'
18822
18823 if test "$GCC" = yes; then
18824 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18825 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18826 else
18827 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18828 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18829 fi
18830 ;;
18831
18832 sysv5* | sco3.2v5* | sco5v6*)
18833 # Note: We can NOT use -z defs as we might desire, because we do not
18834 # link with -lc, and that would cause any symbols used from libc to
18835 # always be unresolved, which means just about no library would
18836 # ever link correctly. If we're not using GNU ld we use -z text
18837 # though, which does catch some bad symbols but isn't as heavy-handed
18838 # as -z defs.
18839 no_undefined_flag_GCJ='${wl}-z,text'
18840 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18841 archive_cmds_need_lc_GCJ=no
18842 hardcode_shlibpath_var_GCJ=no
18843 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18844 hardcode_libdir_separator_GCJ=':'
18845 link_all_deplibs_GCJ=yes
18846 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18847 runpath_var='LD_RUN_PATH'
18848
18849 if test "$GCC" = yes; then
18850 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18851 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18852 else
18853 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18854 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18855 fi
18856 ;;
18857
18858 uts4*)
18859 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18860 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18861 hardcode_shlibpath_var_GCJ=no
18862 ;;
18863
18864 *)
18865 ld_shlibs_GCJ=no
18866 ;;
18867 esac
18868 fi
18869
18870 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18871 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18872 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18873
18874 #
18875 # Do we need to explicitly link libc?
18876 #
18877 case "x$archive_cmds_need_lc_GCJ" in
18878 x|xyes)
18879 # Assume -lc should be added
18880 archive_cmds_need_lc_GCJ=yes
18881
18882 if test "$enable_shared" = yes && test "$GCC" = yes; then
18883 case $archive_cmds_GCJ in
18884 *'~'*)
18885 # FIXME: we may have to deal with multi-command sequences.
18886 ;;
18887 '$CC '*)
18888 # Test whether the compiler implicitly links with -lc since on some
18889 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18890 # to ld, don't add -lc before -lgcc.
18891 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18892 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18893 $rm conftest*
18894 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18895
18896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18897 (eval $ac_compile) 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } 2>conftest.err; then
18901 soname=conftest
18902 lib=conftest
18903 libobjs=conftest.$ac_objext
18904 deplibs=
18905 wl=$lt_prog_compiler_wl_GCJ
18906 pic_flag=$lt_prog_compiler_pic_GCJ
18907 compiler_flags=-v
18908 linker_flags=-v
18909 verstring=
18910 output_objdir=.
18911 libname=conftest
18912 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18913 allow_undefined_flag_GCJ=
18914 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18915 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }
18919 then
18920 archive_cmds_need_lc_GCJ=no
18921 else
18922 archive_cmds_need_lc_GCJ=yes
18923 fi
18924 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18925 else
18926 cat conftest.err 1>&5
18927 fi
18928 $rm conftest*
18929 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18930 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18931 ;;
18932 esac
18933 fi
18934 ;;
18935 esac
18936
18937 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18938 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18939 library_names_spec=
18940 libname_spec='lib$name'
18941 soname_spec=
18942 shrext_cmds=".so"
18943 postinstall_cmds=
18944 postuninstall_cmds=
18945 finish_cmds=
18946 finish_eval=
18947 shlibpath_var=
18948 shlibpath_overrides_runpath=unknown
18949 version_type=none
18950 dynamic_linker="$host_os ld.so"
18951 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18952 if test "$GCC" = yes; then
18953 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18954 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18955 # if the path contains ";" then we assume it to be the separator
18956 # otherwise default to the standard path separator (i.e. ":") - it is
18957 # assumed that no part of a normal pathname contains ";" but that should
18958 # okay in the real world where ";" in dirpaths is itself problematic.
18959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18960 else
18961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18962 fi
18963 else
18964 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18965 fi
18966 need_lib_prefix=unknown
18967 hardcode_into_libs=no
18968
18969 # when you set need_version to no, make sure it does not cause -set_version
18970 # flags to be left without arguments
18971 need_version=unknown
18972
18973 case $host_os in
18974 aix3*)
18975 version_type=linux
18976 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18977 shlibpath_var=LIBPATH
18978
18979 # AIX 3 has no versioning support, so we append a major version to the name.
18980 soname_spec='${libname}${release}${shared_ext}$major'
18981 ;;
18982
18983 aix4* | aix5*)
18984 version_type=linux
18985 need_lib_prefix=no
18986 need_version=no
18987 hardcode_into_libs=yes
18988 if test "$host_cpu" = ia64; then
18989 # AIX 5 supports IA64
18990 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18991 shlibpath_var=LD_LIBRARY_PATH
18992 else
18993 # With GCC up to 2.95.x, collect2 would create an import file
18994 # for dependence libraries. The import file would start with
18995 # the line `#! .'. This would cause the generated library to
18996 # depend on `.', always an invalid library. This was fixed in
18997 # development snapshots of GCC prior to 3.0.
18998 case $host_os in
18999 aix4 | aix4.[01] | aix4.[01].*)
19000 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19001 echo ' yes '
19002 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19003 :
19004 else
19005 can_build_shared=no
19006 fi
19007 ;;
19008 esac
19009 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19010 # soname into executable. Probably we can add versioning support to
19011 # collect2, so additional links can be useful in future.
19012 if test "$aix_use_runtimelinking" = yes; then
19013 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19014 # instead of lib<name>.a to let people know that these are not
19015 # typical AIX shared libraries.
19016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19017 else
19018 # We preserve .a as extension for shared libraries through AIX4.2
19019 # and later when we are not doing run time linking.
19020 library_names_spec='${libname}${release}.a $libname.a'
19021 soname_spec='${libname}${release}${shared_ext}$major'
19022 fi
19023 shlibpath_var=LIBPATH
19024 fi
19025 ;;
19026
19027 amigaos*)
19028 library_names_spec='$libname.ixlibrary $libname.a'
19029 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19030 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'
19031 ;;
19032
19033 beos*)
19034 library_names_spec='${libname}${shared_ext}'
19035 dynamic_linker="$host_os ld.so"
19036 shlibpath_var=LIBRARY_PATH
19037 ;;
19038
19039 bsdi[45]*)
19040 version_type=linux
19041 need_version=no
19042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19043 soname_spec='${libname}${release}${shared_ext}$major'
19044 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19045 shlibpath_var=LD_LIBRARY_PATH
19046 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19047 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19048 # the default ld.so.conf also contains /usr/contrib/lib and
19049 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19050 # libtool to hard-code these into programs
19051 ;;
19052
19053 cygwin* | mingw* | pw32*)
19054 version_type=windows
19055 shrext_cmds=".dll"
19056 need_version=no
19057 need_lib_prefix=no
19058
19059 case $GCC,$host_os in
19060 yes,cygwin* | yes,mingw* | yes,pw32*)
19061 library_names_spec='$libname.dll.a'
19062 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19063 postinstall_cmds='base_file=`basename \${file}`~
19064 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19065 dldir=$destdir/`dirname \$dlpath`~
19066 test -d \$dldir || mkdir -p \$dldir~
19067 $install_prog $dir/$dlname \$dldir/$dlname~
19068 chmod a+x \$dldir/$dlname'
19069 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19070 dlpath=$dir/\$dldll~
19071 $rm \$dlpath'
19072 shlibpath_overrides_runpath=yes
19073
19074 case $host_os in
19075 cygwin*)
19076 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19077 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19078 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19079 ;;
19080 mingw*)
19081 # MinGW DLLs use traditional 'lib' prefix
19082 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19083 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19084 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19085 # It is most probably a Windows format PATH printed by
19086 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19087 # path with ; separators, and with drive letters. We can handle the
19088 # drive letters (cygwin fileutils understands them), so leave them,
19089 # especially as we might pass files found there to a mingw objdump,
19090 # which wouldn't understand a cygwinified path. Ahh.
19091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19092 else
19093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19094 fi
19095 ;;
19096 pw32*)
19097 # pw32 DLLs use 'pw' prefix rather than 'lib'
19098 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19099 ;;
19100 esac
19101 ;;
19102
19103 *)
19104 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19105 ;;
19106 esac
19107 dynamic_linker='Win32 ld.exe'
19108 # FIXME: first we should search . and the directory the executable is in
19109 shlibpath_var=PATH
19110 ;;
19111
19112 darwin* | rhapsody*)
19113 dynamic_linker="$host_os dyld"
19114 version_type=darwin
19115 need_lib_prefix=no
19116 need_version=no
19117 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19118 soname_spec='${libname}${release}${major}$shared_ext'
19119 shlibpath_overrides_runpath=yes
19120 shlibpath_var=DYLD_LIBRARY_PATH
19121 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19122 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19123 if test "$GCC" = yes; then
19124 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"`
19125 else
19126 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19127 fi
19128 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19129 ;;
19130
19131 dgux*)
19132 version_type=linux
19133 need_lib_prefix=no
19134 need_version=no
19135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19136 soname_spec='${libname}${release}${shared_ext}$major'
19137 shlibpath_var=LD_LIBRARY_PATH
19138 ;;
19139
19140 freebsd1*)
19141 dynamic_linker=no
19142 ;;
19143
19144 kfreebsd*-gnu)
19145 version_type=linux
19146 need_lib_prefix=no
19147 need_version=no
19148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19149 soname_spec='${libname}${release}${shared_ext}$major'
19150 shlibpath_var=LD_LIBRARY_PATH
19151 shlibpath_overrides_runpath=no
19152 hardcode_into_libs=yes
19153 dynamic_linker='GNU ld.so'
19154 ;;
19155
19156 freebsd* | dragonfly*)
19157 # DragonFly does not have aout. When/if they implement a new
19158 # versioning mechanism, adjust this.
19159 if test -x /usr/bin/objformat; then
19160 objformat=`/usr/bin/objformat`
19161 else
19162 case $host_os in
19163 freebsd[123]*) objformat=aout ;;
19164 *) objformat=elf ;;
19165 esac
19166 fi
19167 version_type=freebsd-$objformat
19168 case $version_type in
19169 freebsd-elf*)
19170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19171 need_version=no
19172 need_lib_prefix=no
19173 ;;
19174 freebsd-*)
19175 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19176 need_version=yes
19177 ;;
19178 esac
19179 shlibpath_var=LD_LIBRARY_PATH
19180 case $host_os in
19181 freebsd2*)
19182 shlibpath_overrides_runpath=yes
19183 ;;
19184 freebsd3.[01]* | freebsdelf3.[01]*)
19185 shlibpath_overrides_runpath=yes
19186 hardcode_into_libs=yes
19187 ;;
19188 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19189 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19190 shlibpath_overrides_runpath=no
19191 hardcode_into_libs=yes
19192 ;;
19193 freebsd*) # from 4.6 on
19194 shlibpath_overrides_runpath=yes
19195 hardcode_into_libs=yes
19196 ;;
19197 esac
19198 ;;
19199
19200 gnu*)
19201 version_type=linux
19202 need_lib_prefix=no
19203 need_version=no
19204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19205 soname_spec='${libname}${release}${shared_ext}$major'
19206 shlibpath_var=LD_LIBRARY_PATH
19207 hardcode_into_libs=yes
19208 ;;
19209
19210 hpux9* | hpux10* | hpux11*)
19211 # Give a soname corresponding to the major version so that dld.sl refuses to
19212 # link against other versions.
19213 version_type=sunos
19214 need_lib_prefix=no
19215 need_version=no
19216 case $host_cpu in
19217 ia64*)
19218 shrext_cmds='.so'
19219 hardcode_into_libs=yes
19220 dynamic_linker="$host_os dld.so"
19221 shlibpath_var=LD_LIBRARY_PATH
19222 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19224 soname_spec='${libname}${release}${shared_ext}$major'
19225 if test "X$HPUX_IA64_MODE" = X32; then
19226 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19227 else
19228 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19229 fi
19230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19231 ;;
19232 hppa*64*)
19233 shrext_cmds='.sl'
19234 hardcode_into_libs=yes
19235 dynamic_linker="$host_os dld.sl"
19236 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19237 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19239 soname_spec='${libname}${release}${shared_ext}$major'
19240 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19242 ;;
19243 *)
19244 shrext_cmds='.sl'
19245 dynamic_linker="$host_os dld.sl"
19246 shlibpath_var=SHLIB_PATH
19247 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19249 soname_spec='${libname}${release}${shared_ext}$major'
19250 ;;
19251 esac
19252 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19253 postinstall_cmds='chmod 555 $lib'
19254 ;;
19255
19256 interix3*)
19257 version_type=linux
19258 need_lib_prefix=no
19259 need_version=no
19260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19261 soname_spec='${libname}${release}${shared_ext}$major'
19262 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19263 shlibpath_var=LD_LIBRARY_PATH
19264 shlibpath_overrides_runpath=no
19265 hardcode_into_libs=yes
19266 ;;
19267
19268 irix5* | irix6* | nonstopux*)
19269 case $host_os in
19270 nonstopux*) version_type=nonstopux ;;
19271 *)
19272 if test "$lt_cv_prog_gnu_ld" = yes; then
19273 version_type=linux
19274 else
19275 version_type=irix
19276 fi ;;
19277 esac
19278 need_lib_prefix=no
19279 need_version=no
19280 soname_spec='${libname}${release}${shared_ext}$major'
19281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19282 case $host_os in
19283 irix5* | nonstopux*)
19284 libsuff= shlibsuff=
19285 ;;
19286 *)
19287 case $LD in # libtool.m4 will add one of these switches to LD
19288 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19289 libsuff= shlibsuff= libmagic=32-bit;;
19290 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19291 libsuff=32 shlibsuff=N32 libmagic=N32;;
19292 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19293 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19294 *) libsuff= shlibsuff= libmagic=never-match;;
19295 esac
19296 ;;
19297 esac
19298 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19299 shlibpath_overrides_runpath=no
19300 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19301 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19302 hardcode_into_libs=yes
19303 ;;
19304
19305 # No shared lib support for Linux oldld, aout, or coff.
19306 linux*oldld* | linux*aout* | linux*coff*)
19307 dynamic_linker=no
19308 ;;
19309
19310 # This must be Linux ELF.
19311 linux*)
19312 version_type=linux
19313 need_lib_prefix=no
19314 need_version=no
19315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19316 soname_spec='${libname}${release}${shared_ext}$major'
19317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19318 shlibpath_var=LD_LIBRARY_PATH
19319 shlibpath_overrides_runpath=no
19320 # This implies no fast_install, which is unacceptable.
19321 # Some rework will be needed to allow for fast_install
19322 # before this can be enabled.
19323 hardcode_into_libs=yes
19324
19325 # Append ld.so.conf contents to the search path
19326 if test -f /etc/ld.so.conf; then
19327 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' ' '`
19328 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19329 fi
19330
19331 # We used to test for /lib/ld.so.1 and disable shared libraries on
19332 # powerpc, because MkLinux only supported shared libraries with the
19333 # GNU dynamic linker. Since this was broken with cross compilers,
19334 # most powerpc-linux boxes support dynamic linking these days and
19335 # people can always --disable-shared, the test was removed, and we
19336 # assume the GNU/Linux dynamic linker is in use.
19337 dynamic_linker='GNU/Linux ld.so'
19338 ;;
19339
19340 knetbsd*-gnu)
19341 version_type=linux
19342 need_lib_prefix=no
19343 need_version=no
19344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19345 soname_spec='${libname}${release}${shared_ext}$major'
19346 shlibpath_var=LD_LIBRARY_PATH
19347 shlibpath_overrides_runpath=no
19348 hardcode_into_libs=yes
19349 dynamic_linker='GNU ld.so'
19350 ;;
19351
19352 netbsd*)
19353 version_type=sunos
19354 need_lib_prefix=no
19355 need_version=no
19356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19359 dynamic_linker='NetBSD (a.out) ld.so'
19360 else
19361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19362 soname_spec='${libname}${release}${shared_ext}$major'
19363 dynamic_linker='NetBSD ld.elf_so'
19364 fi
19365 shlibpath_var=LD_LIBRARY_PATH
19366 shlibpath_overrides_runpath=yes
19367 hardcode_into_libs=yes
19368 ;;
19369
19370 newsos6)
19371 version_type=linux
19372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19373 shlibpath_var=LD_LIBRARY_PATH
19374 shlibpath_overrides_runpath=yes
19375 ;;
19376
19377 nto-qnx*)
19378 version_type=linux
19379 need_lib_prefix=no
19380 need_version=no
19381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19382 soname_spec='${libname}${release}${shared_ext}$major'
19383 shlibpath_var=LD_LIBRARY_PATH
19384 shlibpath_overrides_runpath=yes
19385 ;;
19386
19387 openbsd*)
19388 version_type=sunos
19389 sys_lib_dlsearch_path_spec="/usr/lib"
19390 need_lib_prefix=no
19391 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19392 case $host_os in
19393 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19394 *) need_version=no ;;
19395 esac
19396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19398 shlibpath_var=LD_LIBRARY_PATH
19399 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19400 case $host_os in
19401 openbsd2.[89] | openbsd2.[89].*)
19402 shlibpath_overrides_runpath=no
19403 ;;
19404 *)
19405 shlibpath_overrides_runpath=yes
19406 ;;
19407 esac
19408 else
19409 shlibpath_overrides_runpath=yes
19410 fi
19411 ;;
19412
19413 os2*)
19414 libname_spec='$name'
19415 shrext_cmds=".dll"
19416 need_lib_prefix=no
19417 library_names_spec='$libname${shared_ext} $libname.a'
19418 dynamic_linker='OS/2 ld.exe'
19419 shlibpath_var=LIBPATH
19420 ;;
19421
19422 osf3* | osf4* | osf5*)
19423 version_type=osf
19424 need_lib_prefix=no
19425 need_version=no
19426 soname_spec='${libname}${release}${shared_ext}$major'
19427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19428 shlibpath_var=LD_LIBRARY_PATH
19429 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19430 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19431 ;;
19432
19433 solaris*)
19434 version_type=linux
19435 need_lib_prefix=no
19436 need_version=no
19437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19438 soname_spec='${libname}${release}${shared_ext}$major'
19439 shlibpath_var=LD_LIBRARY_PATH
19440 shlibpath_overrides_runpath=yes
19441 hardcode_into_libs=yes
19442 # ldd complains unless libraries are executable
19443 postinstall_cmds='chmod +x $lib'
19444 ;;
19445
19446 sunos4*)
19447 version_type=sunos
19448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19450 shlibpath_var=LD_LIBRARY_PATH
19451 shlibpath_overrides_runpath=yes
19452 if test "$with_gnu_ld" = yes; then
19453 need_lib_prefix=no
19454 fi
19455 need_version=yes
19456 ;;
19457
19458 sysv4 | sysv4.3*)
19459 version_type=linux
19460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19461 soname_spec='${libname}${release}${shared_ext}$major'
19462 shlibpath_var=LD_LIBRARY_PATH
19463 case $host_vendor in
19464 sni)
19465 shlibpath_overrides_runpath=no
19466 need_lib_prefix=no
19467 export_dynamic_flag_spec='${wl}-Blargedynsym'
19468 runpath_var=LD_RUN_PATH
19469 ;;
19470 siemens)
19471 need_lib_prefix=no
19472 ;;
19473 motorola)
19474 need_lib_prefix=no
19475 need_version=no
19476 shlibpath_overrides_runpath=no
19477 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19478 ;;
19479 esac
19480 ;;
19481
19482 sysv4*MP*)
19483 if test -d /usr/nec ;then
19484 version_type=linux
19485 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19486 soname_spec='$libname${shared_ext}.$major'
19487 shlibpath_var=LD_LIBRARY_PATH
19488 fi
19489 ;;
19490
19491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19492 version_type=freebsd-elf
19493 need_lib_prefix=no
19494 need_version=no
19495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19496 soname_spec='${libname}${release}${shared_ext}$major'
19497 shlibpath_var=LD_LIBRARY_PATH
19498 hardcode_into_libs=yes
19499 if test "$with_gnu_ld" = yes; then
19500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19501 shlibpath_overrides_runpath=no
19502 else
19503 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19504 shlibpath_overrides_runpath=yes
19505 case $host_os in
19506 sco3.2v5*)
19507 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19508 ;;
19509 esac
19510 fi
19511 sys_lib_dlsearch_path_spec='/usr/lib'
19512 ;;
19513
19514 uts4*)
19515 version_type=linux
19516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19517 soname_spec='${libname}${release}${shared_ext}$major'
19518 shlibpath_var=LD_LIBRARY_PATH
19519 ;;
19520
19521 *)
19522 dynamic_linker=no
19523 ;;
19524 esac
19525 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19526 echo "${ECHO_T}$dynamic_linker" >&6
19527 test "$dynamic_linker" = no && can_build_shared=no
19528
19529 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19530 if test "$GCC" = yes; then
19531 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19532 fi
19533
19534 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19535 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19536 hardcode_action_GCJ=
19537 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19538 test -n "$runpath_var_GCJ" || \
19539 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19540
19541 # We can hardcode non-existant directories.
19542 if test "$hardcode_direct_GCJ" != no &&
19543 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19544 # have to relink, otherwise we might link with an installed library
19545 # when we should be linking with a yet-to-be-installed one
19546 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19547 test "$hardcode_minus_L_GCJ" != no; then
19548 # Linking always hardcodes the temporary library directory.
19549 hardcode_action_GCJ=relink
19550 else
19551 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19552 hardcode_action_GCJ=immediate
19553 fi
19554 else
19555 # We cannot hardcode anything, or else we can only hardcode existing
19556 # directories.
19557 hardcode_action_GCJ=unsupported
19558 fi
19559 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19560 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19561
19562 if test "$hardcode_action_GCJ" = relink; then
19563 # Fast installation is not supported
19564 enable_fast_install=no
19565 elif test "$shlibpath_overrides_runpath" = yes ||
19566 test "$enable_shared" = no; then
19567 # Fast installation is not necessary
19568 enable_fast_install=needless
19569 fi
19570
19571
19572 # The else clause should only fire when bootstrapping the
19573 # libtool distribution, otherwise you forgot to ship ltmain.sh
19574 # with your package, and you will get complaints that there are
19575 # no rules to generate ltmain.sh.
19576 if test -f "$ltmain"; then
19577 # See if we are running on zsh, and set the options which allow our commands through
19578 # without removal of \ escapes.
19579 if test -n "${ZSH_VERSION+set}" ; then
19580 setopt NO_GLOB_SUBST
19581 fi
19582 # Now quote all the things that may contain metacharacters while being
19583 # careful not to overquote the AC_SUBSTed values. We take copies of the
19584 # variables and quote the copies for generation of the libtool script.
19585 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19586 SED SHELL STRIP \
19587 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19588 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19589 deplibs_check_method reload_flag reload_cmds need_locks \
19590 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19591 lt_cv_sys_global_symbol_to_c_name_address \
19592 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19593 old_postinstall_cmds old_postuninstall_cmds \
19594 compiler_GCJ \
19595 CC_GCJ \
19596 LD_GCJ \
19597 lt_prog_compiler_wl_GCJ \
19598 lt_prog_compiler_pic_GCJ \
19599 lt_prog_compiler_static_GCJ \
19600 lt_prog_compiler_no_builtin_flag_GCJ \
19601 export_dynamic_flag_spec_GCJ \
19602 thread_safe_flag_spec_GCJ \
19603 whole_archive_flag_spec_GCJ \
19604 enable_shared_with_static_runtimes_GCJ \
19605 old_archive_cmds_GCJ \
19606 old_archive_from_new_cmds_GCJ \
19607 predep_objects_GCJ \
19608 postdep_objects_GCJ \
19609 predeps_GCJ \
19610 postdeps_GCJ \
19611 compiler_lib_search_path_GCJ \
19612 archive_cmds_GCJ \
19613 archive_expsym_cmds_GCJ \
19614 postinstall_cmds_GCJ \
19615 postuninstall_cmds_GCJ \
19616 old_archive_from_expsyms_cmds_GCJ \
19617 allow_undefined_flag_GCJ \
19618 no_undefined_flag_GCJ \
19619 export_symbols_cmds_GCJ \
19620 hardcode_libdir_flag_spec_GCJ \
19621 hardcode_libdir_flag_spec_ld_GCJ \
19622 hardcode_libdir_separator_GCJ \
19623 hardcode_automatic_GCJ \
19624 module_cmds_GCJ \
19625 module_expsym_cmds_GCJ \
19626 lt_cv_prog_compiler_c_o_GCJ \
19627 exclude_expsyms_GCJ \
19628 include_expsyms_GCJ; do
19629
19630 case $var in
19631 old_archive_cmds_GCJ | \
19632 old_archive_from_new_cmds_GCJ | \
19633 archive_cmds_GCJ | \
19634 archive_expsym_cmds_GCJ | \
19635 module_cmds_GCJ | \
19636 module_expsym_cmds_GCJ | \
19637 old_archive_from_expsyms_cmds_GCJ | \
19638 export_symbols_cmds_GCJ | \
19639 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19640 postinstall_cmds | postuninstall_cmds | \
19641 old_postinstall_cmds | old_postuninstall_cmds | \
19642 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19643 # Double-quote double-evaled strings.
19644 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19645 ;;
19646 *)
19647 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19648 ;;
19649 esac
19650 done
19651
19652 case $lt_echo in
19653 *'\$0 --fallback-echo"')
19654 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19655 ;;
19656 esac
19657
19658 cfgfile="$ofile"
19659
19660 cat <<__EOF__ >> "$cfgfile"
19661 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19662
19663 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19664
19665 # Shell to use when invoking shell scripts.
19666 SHELL=$lt_SHELL
19667
19668 # Whether or not to build shared libraries.
19669 build_libtool_libs=$enable_shared
19670
19671 # Whether or not to build static libraries.
19672 build_old_libs=$enable_static
19673
19674 # Whether or not to add -lc for building shared libraries.
19675 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19676
19677 # Whether or not to disallow shared libs when runtime libs are static
19678 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19679
19680 # Whether or not to optimize for fast installation.
19681 fast_install=$enable_fast_install
19682
19683 # The host system.
19684 host_alias=$host_alias
19685 host=$host
19686 host_os=$host_os
19687
19688 # The build system.
19689 build_alias=$build_alias
19690 build=$build
19691 build_os=$build_os
19692
19693 # An echo program that does not interpret backslashes.
19694 echo=$lt_echo
19695
19696 # The archiver.
19697 AR=$lt_AR
19698 AR_FLAGS=$lt_AR_FLAGS
19699
19700 # A C compiler.
19701 LTCC=$lt_LTCC
19702
19703 # LTCC compiler flags.
19704 LTCFLAGS=$lt_LTCFLAGS
19705
19706 # A language-specific compiler.
19707 CC=$lt_compiler_GCJ
19708
19709 # Is the compiler the GNU C compiler?
19710 with_gcc=$GCC_GCJ
19711
19712 # An ERE matcher.
19713 EGREP=$lt_EGREP
19714
19715 # The linker used to build libraries.
19716 LD=$lt_LD_GCJ
19717
19718 # Whether we need hard or soft links.
19719 LN_S=$lt_LN_S
19720
19721 # A BSD-compatible nm program.
19722 NM=$lt_NM
19723
19724 # A symbol stripping program
19725 STRIP=$lt_STRIP
19726
19727 # Used to examine libraries when file_magic_cmd begins "file"
19728 MAGIC_CMD=$MAGIC_CMD
19729
19730 # Used on cygwin: DLL creation program.
19731 DLLTOOL="$DLLTOOL"
19732
19733 # Used on cygwin: object dumper.
19734 OBJDUMP="$OBJDUMP"
19735
19736 # Used on cygwin: assembler.
19737 AS="$AS"
19738
19739 # The name of the directory that contains temporary libtool files.
19740 objdir=$objdir
19741
19742 # How to create reloadable object files.
19743 reload_flag=$lt_reload_flag
19744 reload_cmds=$lt_reload_cmds
19745
19746 # How to pass a linker flag through the compiler.
19747 wl=$lt_lt_prog_compiler_wl_GCJ
19748
19749 # Object file suffix (normally "o").
19750 objext="$ac_objext"
19751
19752 # Old archive suffix (normally "a").
19753 libext="$libext"
19754
19755 # Shared library suffix (normally ".so").
19756 shrext_cmds='$shrext_cmds'
19757
19758 # Executable file suffix (normally "").
19759 exeext="$exeext"
19760
19761 # Additional compiler flags for building library objects.
19762 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19763 pic_mode=$pic_mode
19764
19765 # What is the maximum length of a command?
19766 max_cmd_len=$lt_cv_sys_max_cmd_len
19767
19768 # Does compiler simultaneously support -c and -o options?
19769 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19770
19771 # Must we lock files when doing compilation?
19772 need_locks=$lt_need_locks
19773
19774 # Do we need the lib prefix for modules?
19775 need_lib_prefix=$need_lib_prefix
19776
19777 # Do we need a version for libraries?
19778 need_version=$need_version
19779
19780 # Whether dlopen is supported.
19781 dlopen_support=$enable_dlopen
19782
19783 # Whether dlopen of programs is supported.
19784 dlopen_self=$enable_dlopen_self
19785
19786 # Whether dlopen of statically linked programs is supported.
19787 dlopen_self_static=$enable_dlopen_self_static
19788
19789 # Compiler flag to prevent dynamic linking.
19790 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19791
19792 # Compiler flag to turn off builtin functions.
19793 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19794
19795 # Compiler flag to allow reflexive dlopens.
19796 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19797
19798 # Compiler flag to generate shared objects directly from archives.
19799 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19800
19801 # Compiler flag to generate thread-safe objects.
19802 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19803
19804 # Library versioning type.
19805 version_type=$version_type
19806
19807 # Format of library name prefix.
19808 libname_spec=$lt_libname_spec
19809
19810 # List of archive names. First name is the real one, the rest are links.
19811 # The last name is the one that the linker finds with -lNAME.
19812 library_names_spec=$lt_library_names_spec
19813
19814 # The coded name of the library, if different from the real name.
19815 soname_spec=$lt_soname_spec
19816
19817 # Commands used to build and install an old-style archive.
19818 RANLIB=$lt_RANLIB
19819 old_archive_cmds=$lt_old_archive_cmds_GCJ
19820 old_postinstall_cmds=$lt_old_postinstall_cmds
19821 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19822
19823 # Create an old-style archive from a shared archive.
19824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19825
19826 # Create a temporary old-style archive to link instead of a shared archive.
19827 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19828
19829 # Commands used to build and install a shared archive.
19830 archive_cmds=$lt_archive_cmds_GCJ
19831 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19832 postinstall_cmds=$lt_postinstall_cmds
19833 postuninstall_cmds=$lt_postuninstall_cmds
19834
19835 # Commands used to build a loadable module (assumed same as above if empty)
19836 module_cmds=$lt_module_cmds_GCJ
19837 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19838
19839 # Commands to strip libraries.
19840 old_striplib=$lt_old_striplib
19841 striplib=$lt_striplib
19842
19843 # Dependencies to place before the objects being linked to create a
19844 # shared library.
19845 predep_objects=$lt_predep_objects_GCJ
19846
19847 # Dependencies to place after the objects being linked to create a
19848 # shared library.
19849 postdep_objects=$lt_postdep_objects_GCJ
19850
19851 # Dependencies to place before the objects being linked to create a
19852 # shared library.
19853 predeps=$lt_predeps_GCJ
19854
19855 # Dependencies to place after the objects being linked to create a
19856 # shared library.
19857 postdeps=$lt_postdeps_GCJ
19858
19859 # The library search path used internally by the compiler when linking
19860 # a shared library.
19861 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19862
19863 # Method to check whether dependent libraries are shared objects.
19864 deplibs_check_method=$lt_deplibs_check_method
19865
19866 # Command to use when deplibs_check_method == file_magic.
19867 file_magic_cmd=$lt_file_magic_cmd
19868
19869 # Flag that allows shared libraries with undefined symbols to be built.
19870 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19871
19872 # Flag that forces no undefined symbols.
19873 no_undefined_flag=$lt_no_undefined_flag_GCJ
19874
19875 # Commands used to finish a libtool library installation in a directory.
19876 finish_cmds=$lt_finish_cmds
19877
19878 # Same as above, but a single script fragment to be evaled but not shown.
19879 finish_eval=$lt_finish_eval
19880
19881 # Take the output of nm and produce a listing of raw symbols and C names.
19882 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19883
19884 # Transform the output of nm in a proper C declaration
19885 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19886
19887 # Transform the output of nm in a C name address pair
19888 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19889
19890 # This is the shared library runtime path variable.
19891 runpath_var=$runpath_var
19892
19893 # This is the shared library path variable.
19894 shlibpath_var=$shlibpath_var
19895
19896 # Is shlibpath searched before the hard-coded library search path?
19897 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19898
19899 # How to hardcode a shared library path into an executable.
19900 hardcode_action=$hardcode_action_GCJ
19901
19902 # Whether we should hardcode library paths into libraries.
19903 hardcode_into_libs=$hardcode_into_libs
19904
19905 # Flag to hardcode \$libdir into a binary during linking.
19906 # This must work even if \$libdir does not exist.
19907 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19908
19909 # If ld is used when linking, flag to hardcode \$libdir into
19910 # a binary during linking. This must work even if \$libdir does
19911 # not exist.
19912 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19913
19914 # Whether we need a single -rpath flag with a separated argument.
19915 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19916
19917 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19918 # resulting binary.
19919 hardcode_direct=$hardcode_direct_GCJ
19920
19921 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19922 # resulting binary.
19923 hardcode_minus_L=$hardcode_minus_L_GCJ
19924
19925 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19926 # the resulting binary.
19927 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19928
19929 # Set to yes if building a shared library automatically hardcodes DIR into the library
19930 # and all subsequent libraries and executables linked against it.
19931 hardcode_automatic=$hardcode_automatic_GCJ
19932
19933 # Variables whose values should be saved in libtool wrapper scripts and
19934 # restored at relink time.
19935 variables_saved_for_relink="$variables_saved_for_relink"
19936
19937 # Whether libtool must link a program against all its dependency libraries.
19938 link_all_deplibs=$link_all_deplibs_GCJ
19939
19940 # Compile-time system search path for libraries
19941 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19942
19943 # Run-time system search path for libraries
19944 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19945
19946 # Fix the shell variable \$srcfile for the compiler.
19947 fix_srcfile_path="$fix_srcfile_path_GCJ"
19948
19949 # Set to yes if exported symbols are required.
19950 always_export_symbols=$always_export_symbols_GCJ
19951
19952 # The commands to list exported symbols.
19953 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19954
19955 # The commands to extract the exported symbol list from a shared archive.
19956 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19957
19958 # Symbols that should not be listed in the preloaded symbols.
19959 exclude_expsyms=$lt_exclude_expsyms_GCJ
19960
19961 # Symbols that must always be exported.
19962 include_expsyms=$lt_include_expsyms_GCJ
19963
19964 # ### END LIBTOOL TAG CONFIG: $tagname
19965
19966 __EOF__
19967
19968
19969 else
19970 # If there is no Makefile yet, we rely on a make rule to execute
19971 # `config.status --recheck' to rerun these tests and create the
19972 # libtool script then.
19973 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19974 if test -f "$ltmain_in"; then
19975 test -f Makefile && make "$ltmain"
19976 fi
19977 fi
19978
19979
19980 ac_ext=c
19981 ac_cpp='$CPP $CPPFLAGS'
19982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19985
19986 CC="$lt_save_CC"
19987
19988 else
19989 tagname=""
19990 fi
19991 ;;
19992
19993 RC)
19994
19995
19996
19997 # Source file extension for RC test sources.
19998 ac_ext=rc
19999
20000 # Object file extension for compiled RC test sources.
20001 objext=o
20002 objext_RC=$objext
20003
20004 # Code to be used in simple compile tests
20005 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20006
20007 # Code to be used in simple link tests
20008 lt_simple_link_test_code="$lt_simple_compile_test_code"
20009
20010 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20011
20012 # If no C compiler was specified, use CC.
20013 LTCC=${LTCC-"$CC"}
20014
20015 # If no C compiler flags were specified, use CFLAGS.
20016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20017
20018 # Allow CC to be a program name with arguments.
20019 compiler=$CC
20020
20021
20022 # save warnings/boilerplate of simple test code
20023 ac_outfile=conftest.$ac_objext
20024 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20025 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20026 _lt_compiler_boilerplate=`cat conftest.err`
20027 $rm conftest*
20028
20029 ac_outfile=conftest.$ac_objext
20030 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20031 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20032 _lt_linker_boilerplate=`cat conftest.err`
20033 $rm conftest*
20034
20035
20036 # Allow CC to be a program name with arguments.
20037 lt_save_CC="$CC"
20038 CC=${RC-"windres"}
20039 compiler=$CC
20040 compiler_RC=$CC
20041 for cc_temp in $compiler""; do
20042 case $cc_temp in
20043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20045 \-*) ;;
20046 *) break;;
20047 esac
20048 done
20049 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20050
20051 lt_cv_prog_compiler_c_o_RC=yes
20052
20053 # The else clause should only fire when bootstrapping the
20054 # libtool distribution, otherwise you forgot to ship ltmain.sh
20055 # with your package, and you will get complaints that there are
20056 # no rules to generate ltmain.sh.
20057 if test -f "$ltmain"; then
20058 # See if we are running on zsh, and set the options which allow our commands through
20059 # without removal of \ escapes.
20060 if test -n "${ZSH_VERSION+set}" ; then
20061 setopt NO_GLOB_SUBST
20062 fi
20063 # Now quote all the things that may contain metacharacters while being
20064 # careful not to overquote the AC_SUBSTed values. We take copies of the
20065 # variables and quote the copies for generation of the libtool script.
20066 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20067 SED SHELL STRIP \
20068 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20069 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20070 deplibs_check_method reload_flag reload_cmds need_locks \
20071 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20072 lt_cv_sys_global_symbol_to_c_name_address \
20073 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20074 old_postinstall_cmds old_postuninstall_cmds \
20075 compiler_RC \
20076 CC_RC \
20077 LD_RC \
20078 lt_prog_compiler_wl_RC \
20079 lt_prog_compiler_pic_RC \
20080 lt_prog_compiler_static_RC \
20081 lt_prog_compiler_no_builtin_flag_RC \
20082 export_dynamic_flag_spec_RC \
20083 thread_safe_flag_spec_RC \
20084 whole_archive_flag_spec_RC \
20085 enable_shared_with_static_runtimes_RC \
20086 old_archive_cmds_RC \
20087 old_archive_from_new_cmds_RC \
20088 predep_objects_RC \
20089 postdep_objects_RC \
20090 predeps_RC \
20091 postdeps_RC \
20092 compiler_lib_search_path_RC \
20093 archive_cmds_RC \
20094 archive_expsym_cmds_RC \
20095 postinstall_cmds_RC \
20096 postuninstall_cmds_RC \
20097 old_archive_from_expsyms_cmds_RC \
20098 allow_undefined_flag_RC \
20099 no_undefined_flag_RC \
20100 export_symbols_cmds_RC \
20101 hardcode_libdir_flag_spec_RC \
20102 hardcode_libdir_flag_spec_ld_RC \
20103 hardcode_libdir_separator_RC \
20104 hardcode_automatic_RC \
20105 module_cmds_RC \
20106 module_expsym_cmds_RC \
20107 lt_cv_prog_compiler_c_o_RC \
20108 exclude_expsyms_RC \
20109 include_expsyms_RC; do
20110
20111 case $var in
20112 old_archive_cmds_RC | \
20113 old_archive_from_new_cmds_RC | \
20114 archive_cmds_RC | \
20115 archive_expsym_cmds_RC | \
20116 module_cmds_RC | \
20117 module_expsym_cmds_RC | \
20118 old_archive_from_expsyms_cmds_RC | \
20119 export_symbols_cmds_RC | \
20120 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20121 postinstall_cmds | postuninstall_cmds | \
20122 old_postinstall_cmds | old_postuninstall_cmds | \
20123 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20124 # Double-quote double-evaled strings.
20125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20126 ;;
20127 *)
20128 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20129 ;;
20130 esac
20131 done
20132
20133 case $lt_echo in
20134 *'\$0 --fallback-echo"')
20135 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20136 ;;
20137 esac
20138
20139 cfgfile="$ofile"
20140
20141 cat <<__EOF__ >> "$cfgfile"
20142 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20143
20144 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20145
20146 # Shell to use when invoking shell scripts.
20147 SHELL=$lt_SHELL
20148
20149 # Whether or not to build shared libraries.
20150 build_libtool_libs=$enable_shared
20151
20152 # Whether or not to build static libraries.
20153 build_old_libs=$enable_static
20154
20155 # Whether or not to add -lc for building shared libraries.
20156 build_libtool_need_lc=$archive_cmds_need_lc_RC
20157
20158 # Whether or not to disallow shared libs when runtime libs are static
20159 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20160
20161 # Whether or not to optimize for fast installation.
20162 fast_install=$enable_fast_install
20163
20164 # The host system.
20165 host_alias=$host_alias
20166 host=$host
20167 host_os=$host_os
20168
20169 # The build system.
20170 build_alias=$build_alias
20171 build=$build
20172 build_os=$build_os
20173
20174 # An echo program that does not interpret backslashes.
20175 echo=$lt_echo
20176
20177 # The archiver.
20178 AR=$lt_AR
20179 AR_FLAGS=$lt_AR_FLAGS
20180
20181 # A C compiler.
20182 LTCC=$lt_LTCC
20183
20184 # LTCC compiler flags.
20185 LTCFLAGS=$lt_LTCFLAGS
20186
20187 # A language-specific compiler.
20188 CC=$lt_compiler_RC
20189
20190 # Is the compiler the GNU C compiler?
20191 with_gcc=$GCC_RC
20192
20193 # An ERE matcher.
20194 EGREP=$lt_EGREP
20195
20196 # The linker used to build libraries.
20197 LD=$lt_LD_RC
20198
20199 # Whether we need hard or soft links.
20200 LN_S=$lt_LN_S
20201
20202 # A BSD-compatible nm program.
20203 NM=$lt_NM
20204
20205 # A symbol stripping program
20206 STRIP=$lt_STRIP
20207
20208 # Used to examine libraries when file_magic_cmd begins "file"
20209 MAGIC_CMD=$MAGIC_CMD
20210
20211 # Used on cygwin: DLL creation program.
20212 DLLTOOL="$DLLTOOL"
20213
20214 # Used on cygwin: object dumper.
20215 OBJDUMP="$OBJDUMP"
20216
20217 # Used on cygwin: assembler.
20218 AS="$AS"
20219
20220 # The name of the directory that contains temporary libtool files.
20221 objdir=$objdir
20222
20223 # How to create reloadable object files.
20224 reload_flag=$lt_reload_flag
20225 reload_cmds=$lt_reload_cmds
20226
20227 # How to pass a linker flag through the compiler.
20228 wl=$lt_lt_prog_compiler_wl_RC
20229
20230 # Object file suffix (normally "o").
20231 objext="$ac_objext"
20232
20233 # Old archive suffix (normally "a").
20234 libext="$libext"
20235
20236 # Shared library suffix (normally ".so").
20237 shrext_cmds='$shrext_cmds'
20238
20239 # Executable file suffix (normally "").
20240 exeext="$exeext"
20241
20242 # Additional compiler flags for building library objects.
20243 pic_flag=$lt_lt_prog_compiler_pic_RC
20244 pic_mode=$pic_mode
20245
20246 # What is the maximum length of a command?
20247 max_cmd_len=$lt_cv_sys_max_cmd_len
20248
20249 # Does compiler simultaneously support -c and -o options?
20250 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20251
20252 # Must we lock files when doing compilation?
20253 need_locks=$lt_need_locks
20254
20255 # Do we need the lib prefix for modules?
20256 need_lib_prefix=$need_lib_prefix
20257
20258 # Do we need a version for libraries?
20259 need_version=$need_version
20260
20261 # Whether dlopen is supported.
20262 dlopen_support=$enable_dlopen
20263
20264 # Whether dlopen of programs is supported.
20265 dlopen_self=$enable_dlopen_self
20266
20267 # Whether dlopen of statically linked programs is supported.
20268 dlopen_self_static=$enable_dlopen_self_static
20269
20270 # Compiler flag to prevent dynamic linking.
20271 link_static_flag=$lt_lt_prog_compiler_static_RC
20272
20273 # Compiler flag to turn off builtin functions.
20274 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20275
20276 # Compiler flag to allow reflexive dlopens.
20277 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20278
20279 # Compiler flag to generate shared objects directly from archives.
20280 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20281
20282 # Compiler flag to generate thread-safe objects.
20283 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20284
20285 # Library versioning type.
20286 version_type=$version_type
20287
20288 # Format of library name prefix.
20289 libname_spec=$lt_libname_spec
20290
20291 # List of archive names. First name is the real one, the rest are links.
20292 # The last name is the one that the linker finds with -lNAME.
20293 library_names_spec=$lt_library_names_spec
20294
20295 # The coded name of the library, if different from the real name.
20296 soname_spec=$lt_soname_spec
20297
20298 # Commands used to build and install an old-style archive.
20299 RANLIB=$lt_RANLIB
20300 old_archive_cmds=$lt_old_archive_cmds_RC
20301 old_postinstall_cmds=$lt_old_postinstall_cmds
20302 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20303
20304 # Create an old-style archive from a shared archive.
20305 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20306
20307 # Create a temporary old-style archive to link instead of a shared archive.
20308 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20309
20310 # Commands used to build and install a shared archive.
20311 archive_cmds=$lt_archive_cmds_RC
20312 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20313 postinstall_cmds=$lt_postinstall_cmds
20314 postuninstall_cmds=$lt_postuninstall_cmds
20315
20316 # Commands used to build a loadable module (assumed same as above if empty)
20317 module_cmds=$lt_module_cmds_RC
20318 module_expsym_cmds=$lt_module_expsym_cmds_RC
20319
20320 # Commands to strip libraries.
20321 old_striplib=$lt_old_striplib
20322 striplib=$lt_striplib
20323
20324 # Dependencies to place before the objects being linked to create a
20325 # shared library.
20326 predep_objects=$lt_predep_objects_RC
20327
20328 # Dependencies to place after the objects being linked to create a
20329 # shared library.
20330 postdep_objects=$lt_postdep_objects_RC
20331
20332 # Dependencies to place before the objects being linked to create a
20333 # shared library.
20334 predeps=$lt_predeps_RC
20335
20336 # Dependencies to place after the objects being linked to create a
20337 # shared library.
20338 postdeps=$lt_postdeps_RC
20339
20340 # The library search path used internally by the compiler when linking
20341 # a shared library.
20342 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20343
20344 # Method to check whether dependent libraries are shared objects.
20345 deplibs_check_method=$lt_deplibs_check_method
20346
20347 # Command to use when deplibs_check_method == file_magic.
20348 file_magic_cmd=$lt_file_magic_cmd
20349
20350 # Flag that allows shared libraries with undefined symbols to be built.
20351 allow_undefined_flag=$lt_allow_undefined_flag_RC
20352
20353 # Flag that forces no undefined symbols.
20354 no_undefined_flag=$lt_no_undefined_flag_RC
20355
20356 # Commands used to finish a libtool library installation in a directory.
20357 finish_cmds=$lt_finish_cmds
20358
20359 # Same as above, but a single script fragment to be evaled but not shown.
20360 finish_eval=$lt_finish_eval
20361
20362 # Take the output of nm and produce a listing of raw symbols and C names.
20363 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20364
20365 # Transform the output of nm in a proper C declaration
20366 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20367
20368 # Transform the output of nm in a C name address pair
20369 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20370
20371 # This is the shared library runtime path variable.
20372 runpath_var=$runpath_var
20373
20374 # This is the shared library path variable.
20375 shlibpath_var=$shlibpath_var
20376
20377 # Is shlibpath searched before the hard-coded library search path?
20378 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20379
20380 # How to hardcode a shared library path into an executable.
20381 hardcode_action=$hardcode_action_RC
20382
20383 # Whether we should hardcode library paths into libraries.
20384 hardcode_into_libs=$hardcode_into_libs
20385
20386 # Flag to hardcode \$libdir into a binary during linking.
20387 # This must work even if \$libdir does not exist.
20388 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20389
20390 # If ld is used when linking, flag to hardcode \$libdir into
20391 # a binary during linking. This must work even if \$libdir does
20392 # not exist.
20393 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20394
20395 # Whether we need a single -rpath flag with a separated argument.
20396 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20397
20398 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20399 # resulting binary.
20400 hardcode_direct=$hardcode_direct_RC
20401
20402 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20403 # resulting binary.
20404 hardcode_minus_L=$hardcode_minus_L_RC
20405
20406 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20407 # the resulting binary.
20408 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20409
20410 # Set to yes if building a shared library automatically hardcodes DIR into the library
20411 # and all subsequent libraries and executables linked against it.
20412 hardcode_automatic=$hardcode_automatic_RC
20413
20414 # Variables whose values should be saved in libtool wrapper scripts and
20415 # restored at relink time.
20416 variables_saved_for_relink="$variables_saved_for_relink"
20417
20418 # Whether libtool must link a program against all its dependency libraries.
20419 link_all_deplibs=$link_all_deplibs_RC
20420
20421 # Compile-time system search path for libraries
20422 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20423
20424 # Run-time system search path for libraries
20425 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20426
20427 # Fix the shell variable \$srcfile for the compiler.
20428 fix_srcfile_path="$fix_srcfile_path_RC"
20429
20430 # Set to yes if exported symbols are required.
20431 always_export_symbols=$always_export_symbols_RC
20432
20433 # The commands to list exported symbols.
20434 export_symbols_cmds=$lt_export_symbols_cmds_RC
20435
20436 # The commands to extract the exported symbol list from a shared archive.
20437 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20438
20439 # Symbols that should not be listed in the preloaded symbols.
20440 exclude_expsyms=$lt_exclude_expsyms_RC
20441
20442 # Symbols that must always be exported.
20443 include_expsyms=$lt_include_expsyms_RC
20444
20445 # ### END LIBTOOL TAG CONFIG: $tagname
20446
20447 __EOF__
20448
20449
20450 else
20451 # If there is no Makefile yet, we rely on a make rule to execute
20452 # `config.status --recheck' to rerun these tests and create the
20453 # libtool script then.
20454 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20455 if test -f "$ltmain_in"; then
20456 test -f Makefile && make "$ltmain"
20457 fi
20458 fi
20459
20460
20461 ac_ext=c
20462 ac_cpp='$CPP $CPPFLAGS'
20463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20466
20467 CC="$lt_save_CC"
20468
20469 ;;
20470
20471 *)
20472 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20473 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20474 { (exit 1); exit 1; }; }
20475 ;;
20476 esac
20477
20478 # Append the new tag name to the list of available tags.
20479 if test -n "$tagname" ; then
20480 available_tags="$available_tags $tagname"
20481 fi
20482 fi
20483 done
20484 IFS="$lt_save_ifs"
20485
20486 # Now substitute the updated list of available tags.
20487 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20488 mv "${ofile}T" "$ofile"
20489 chmod +x "$ofile"
20490 else
20491 rm -f "${ofile}T"
20492 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20493 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20494 { (exit 1); exit 1; }; }
20495 fi
20496 fi
20497
20498
20499
20500 # This can be used to rebuild libtool when needed
20501 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20502
20503 # Always use our own libtool.
20504 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20505
20506 # Prevent multiple expansion
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518 # No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20519 # AC_REQUIRE([AC_COIN_DLFCN_H])
20520
20521 # NEW: If libtool exists in the directory higher up, we use that one
20522 # instead of creating a new one
20523
20524 # It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20525 # out in front of this macro body. You'll notice that LIBTOOL is already
20526 # defined here. We'll have to count on this macro not being called if libtool
20527 # already exists, or at least move the libtool fixes outside the conditional.
20528 # AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20529 # This test is therefore removed. -- lh, 061214 --
20530 # if test "x$LIBTOOL" = x; then
20531
20532 # AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542 # AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20543
20544
20545
20546 { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20547 echo "$as_me: Build is \"$build\"." >&6;}
20548 # Extract the first word of "dos2unix", so it can be a program name with args.
20549 set dummy dos2unix; ac_word=$2
20550 echo "$as_me:$LINENO: checking for $ac_word" >&5
20551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20552 if test "${ac_cv_prog_dos2unix+set}" = set; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20554 else
20555 if test -n "$dos2unix"; then
20556 ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test.
20557 else
20558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20559 for as_dir in $PATH
20560 do
20561 IFS=$as_save_IFS
20562 test -z "$as_dir" && as_dir=.
20563 for ac_exec_ext in '' $ac_executable_extensions; do
20564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20565 ac_cv_prog_dos2unix="dos2unix"
20566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20567 break 2
20568 fi
20569 done
20570 done
20571
20572 fi
20573 fi
20574 dos2unix=$ac_cv_prog_dos2unix
20575 if test -n "$dos2unix"; then
20576 echo "$as_me:$LINENO: result: $dos2unix" >&5
20577 echo "${ECHO_T}$dos2unix" >&6
20578 else
20579 echo "$as_me:$LINENO: result: no" >&5
20580 echo "${ECHO_T}no" >&6
20581 fi
20582
20583 if test "$dos2unix" = dos2unix ; then
20584 mydos2unix="| dos2unix"
20585 fi
20586 case $build in
20587 *-mingw*)
20588 CYGPATH_W=echo
20589 ;;
20590 esac
20591
20592 case $build in
20593 # Here we need to check if -m32 is specified. If so, we need to correct
20594 # sys_lib_search_path_spec
20595 *-cygwin* | *-mingw*)
20596 case "$CXX" in
20597 clang* | */clang* )
20598 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20599 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20600 echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20601 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20602 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20603 -e 's|libext="lib"|libext="a"|' \
20604 libtool > conftest.bla
20605 ;;
20606 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20607 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20608 echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20609 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20610 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20611 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20612 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20613 -e 's%lib /OUT:%lib -OUT:%' \
20614 -e "s%cygpath -w%$CYGPATH_W%" \
20615 -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%' \
20616 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20617 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20618 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20619 -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"%' \
20620 libtool > conftest.bla
20621 ;;
20622 *)
20623 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20624 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20625 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20626 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20627 -e 's|libext="lib"|libext="a"|' \
20628 libtool > conftest.bla
20629 ;;
20630 esac
20631 mv conftest.bla libtool
20632 chmod 755 libtool
20633
20634 ;;
20635 *x86_64-*)
20636 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20637 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20638 echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20639 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20640 mv conftest.bla libtool
20641 chmod 755 libtool
20642 fi
20643 ;;
20644
20645 *-solaris*)
20646 if test "$GCC" = yes && \
20647 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20648 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20649 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20650 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20651 echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20652 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20653 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20654 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20655 # AC_MSG_NOTICE(Compensating for broken gcc)
20656 for lib in $fixlibtmp ; do
20657 if test -d "${lib}${hdwisa}" ; then
20658 syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20659 fi
20660 done
20661 syslibpath64="${syslibpath64} ${fixlibtmp}"
20662 else
20663 syslibpath64="$fixlibtmp"
20664 fi
20665 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20666 mv conftest.bla libtool
20667 chmod 755 libtool
20668 fi
20669 # AC_MSG_NOTICE(Result is )
20670 # $EGREP 'sys_lib_search_path_spec=' libtool
20671 fi
20672 ;;
20673 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20674 *-darwin*)
20675 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20676 echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20677 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"/' \
20678 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20679 libtool > conftest.bla
20680
20681 mv conftest.bla libtool
20682 chmod 755 libtool
20683 ;;
20684 esac
20685 # This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20686 # the macro. -- lh, 061214 --
20687 # fi
20688
20689 # AC_MSG_NOTICE([End libtool initialisation.])
20690
20691 # AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20692 # set RPATH_FLAGS to the compiler link flags required to hardcode location
20693 # of the shared objects
20694 RPATH_FLAGS=
20695
20696 if test $enable_shared = yes; then
20697 case $build in
20698 *-linux-*)
20699 if test "$GXX" = "yes"; then
20700 RPATH_FLAGS=
20701 for dir in $abs_lib_dir; do
20702 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20703 done
20704 fi ;;
20705 *-darwin*)
20706 RPATH_FLAGS=nothing ;;
20707 *-ibm-*)
20708 case "$CXX" in
20709 xlC* | */xlC* | mpxlC* | */mpxlC*)
20710 RPATH_FLAGS=nothing ;;
20711 esac ;;
20712 *-hp-*)
20713 RPATH_FLAGS=nothing ;;
20714 *-mingw32)
20715 RPATH_FLAGS=nothing ;;
20716 *-*-solaris*)
20717 RPATH_FLAGS=
20718 for dir in $abs_lib_dir; do
20719 RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20720 done
20721 esac
20722
20723 if test "$RPATH_FLAGS" = ""; then
20724 { 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
20725 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;}
20726 fi
20727 if test "$RPATH_FLAGS" = "nothing"; then
20728 RPATH_FLAGS=
20729 fi
20730 fi
20731
20732
20733
20734
20735 else
20736
20737 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20738 echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20739 # get all missing information from the config.log file
20740
20741 # output variables and defines
20742 as_save_IFS=$IFS
20743 IFS='
20744 '
20745 for oneline in `cat $coin_config_dir/config.status`; do
20746 case "$oneline" in
20747 # First some automake conditionals
20748 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \
20749 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20750 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20751 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* )
20752 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20753 # echo "$command"
20754 eval "$command"
20755 ;;
20756 s,@DEFS@* )
20757 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20758 # echo "$command"
20759 eval "$command"
20760 ;;
20761 esac
20762 done
20763 IFS=$as_save_IFS
20764
20765 # And some defines (assuming here that the packages base dir
20766 # doesn't have a config.h file
20767 for word in $defsline; do
20768 # echo word $word
20769 case $word in
20770 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20771 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20772 # echo dd $i
20773 echo $i >>confdefs.h
20774 ;;
20775 esac
20776 done
20777 fi
20778
20779 # AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20780
20781 # Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20782 if test "${enable_dependency_linking+set}" = set; then
20783 enableval="$enable_dependency_linking"
20784 dependency_linking="$enableval"
20785 else
20786 dependency_linking=auto
20787 fi;
20788
20789 if test "$dependency_linking" = auto; then
20790 # On Cygwin and AIX, building DLLs doesn't work
20791 dependency_linking=no
20792 if test x"$coin_disable_shared" = xno; then
20793 case $build in
20794 *-cygwin* | *-mingw*)
20795 case "$CC" in
20796 clang* | */clang* )
20797 dependency_linking=yes
20798 ;;
20799 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20800 dependency_linking=no
20801 ;;
20802 *gcc*)
20803 dependency_linking=yes
20804 ;;
20805 *)
20806 dependency_linking=yes
20807 ;;
20808 esac
20809 ;;
20810 *)
20811 dependency_linking=yes
20812 ;;
20813 esac
20814 fi
20815 fi
20816
20817 # Set up LT_LDFLAGS, user can initialize and we augment below
20818
20819
20820 if test "$dependency_linking" = yes ;
20821 then
20822 LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
20823 else
20824 LT_LDFLAGS="$LT_LDFLAGS"
20825 fi
20826
20827
20828
20829 if test "$dependency_linking" = yes; then
20830 DEPENDENCY_LINKING_TRUE=
20831 DEPENDENCY_LINKING_FALSE='#'
20832 else
20833 DEPENDENCY_LINKING_TRUE='#'
20834 DEPENDENCY_LINKING_FALSE=
20835 fi
20836
20837
20838 # Check if we want to set the library version
20839 echo "$as_me:$LINENO: checking if library version is set" >&5
20840 echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20841 if test x"$coin_libversion" != x; then
20842 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20843 echo "$as_me:$LINENO: result: $coin_libversion" >&5
20844 echo "${ECHO_T}$coin_libversion" >&6
20845 else
20846 echo "$as_me:$LINENO: result: no" >&5
20847 echo "${ECHO_T}no" >&6
20848 fi
20849
20850
20851
20852 #END
20853 }
20854 # AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
20855
20856
20857 #############################################################################
20858 # Check which subprojects are there #
20859 #############################################################################
20860
20861
20862 echo "$as_me:$LINENO: checking whether source of project Glpk is available and should be compiled" >&5
20863 echo $ECHO_N "checking whether source of project Glpk is available and should be compiled... $ECHO_C" >&6
20864
20865 coin_has_glpk=notGiven
20866 coin_reason=
20867
20868 # check if user wants to skip project in any case
20869
20870 if test x"$COIN_SKIP_PROJECTS" != x; then
20871 for dir in $COIN_SKIP_PROJECTS; do
20872 if test $dir = "Glpk"; then
20873 coin_has_glpk="no"
20874 coin_reason="Glpk has been specified in COIN_SKIP_PROJECTS"
20875 fi
20876
20877 if test $dir = "ThirdParty/Glpk"; then
20878 coin_has_glpk="no"
20879 coin_reason="ThirdParty/Glpk has been specified in COIN_SKIP_PROJECTS"
20880 fi
20881 done
20882 fi
20883
20884 if test "$coin_has_glpk" != no; then
20885
20886 # Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
20887 if test "${with_glpk+set}" = set; then
20888 withval="$with_glpk"
20889 if test "$withval" = no ; then
20890 coin_has_glpk="no"
20891 coin_reason="--without-glpk has been specified"
20892 fi
20893
20894 fi;
20895 fi
20896
20897 if test "$coin_has_glpk" != no; then
20898
20899 # Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
20900 if test "${with_glpk_lib+set}" = set; then
20901 withval="$with_glpk_lib"
20902 if test "$withval" = no ; then
20903 coin_has_glpk="no"
20904 coin_reason="--without-glpk-lib has been specified"
20905 else
20906 coin_has_glpk="no"
20907 coin_reason="--with-glpk-lib has been specified"
20908 fi
20909 fi;
20910 fi
20911
20912 if test "$coin_has_glpk" != no; then
20913
20914 # Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
20915 if test "${with_glpk_incdir+set}" = set; then
20916 withval="$with_glpk_incdir"
20917 if test "$withval" = no ; then
20918 coin_has_glpk="no"
20919 coin_reason="--without-glpk-incdir has been specified"
20920 else
20921 coin_has_glpk="no"
20922 coin_reason="--with-glpk-incdir has been specified"
20923 fi
20924 fi;
20925 fi
20926
20927 if test "$coin_has_glpk" != no; then
20928
20929 # Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
20930 if test "${with_glpk_datadir+set}" = set; then
20931 withval="$with_glpk_datadir"
20932 if test "$withval" = no ; then
20933 coin_has_glpk="no"
20934 coin_reason="--without-glpk-datadir has been specified"
20935 else
20936 coin_has_glpk="no"
20937 coin_reason="--with-glpk-datadir has been specified"
20938 fi
20939 fi;
20940 fi
20941
20942
20943
20944
20945
20946 # check if project is available in present directory
20947 if test "$coin_has_glpk" = notGiven; then
20948 coin_has_glpk=no
20949 if test -d $srcdir/ThirdParty/Glpk; then
20950 coin_reason="source in ThirdParty/Glpk"
20951 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
20952 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
20953 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
20954 for i in $srcdir/ThirdParty/Glpk/glpk/src/glplpx01.c; do
20955 if test -r $i; then
20956 coin_has_glpk="yes"
20957 else
20958 coin_has_glpk="no"
20959 coin_reason="source file $i not available"
20960 break
20961 fi
20962 done
20963
20964 fi
20965 fi
20966
20967 if test -z "$coin_reason" ; then
20968 echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
20969 echo "${ECHO_T}$coin_has_glpk" >&6
20970 else
20971 echo "$as_me:$LINENO: result: $coin_has_glpk, $coin_reason" >&5
20972 echo "${ECHO_T}$coin_has_glpk, $coin_reason" >&6
20973 fi
20974
20975 if test "$coin_has_glpk" = yes ; then
20976 if test -r $srcdir/ThirdParty/Glpk/configure; then
20977 coin_subdirs="$coin_subdirs ThirdParty/Glpk"
20978
20979
20980 subdirs="$subdirs ThirdParty/Glpk"
20981
20982 fi
20983 fi
20984
20985
20986 echo "$as_me:$LINENO: checking whether source of project SoPlex is available and should be compiled" >&5
20987 echo $ECHO_N "checking whether source of project SoPlex is available and should be compiled... $ECHO_C" >&6
20988
20989 coin_has_soplex=notGiven
20990 coin_reason=
20991
20992 # check if user wants to skip project in any case
20993
20994 if test x"$COIN_SKIP_PROJECTS" != x; then
20995 for dir in $COIN_SKIP_PROJECTS; do
20996 if test $dir = "SoPlex"; then
20997 coin_has_soplex="no"
20998 coin_reason="SoPlex has been specified in COIN_SKIP_PROJECTS"
20999 fi
21000
21001 if test $dir = "ThirdParty/SoPlex"; then
21002 coin_has_soplex="no"
21003 coin_reason="ThirdParty/SoPlex has been specified in COIN_SKIP_PROJECTS"
21004 fi
21005 done
21006 fi
21007
21008 if test "$coin_has_soplex" != no; then
21009
21010 # Check whether --with-m4_tolower(SoPlex) or --without-m4_tolower(SoPlex) was given.
21011 if test "${with_soplex+set}" = set; then
21012 withval="$with_soplex"
21013 if test "$withval" = no ; then
21014 coin_has_soplex="no"
21015 coin_reason="--without-soplex has been specified"
21016 fi
21017
21018 fi;
21019 fi
21020
21021 if test "$coin_has_soplex" != no; then
21022
21023 # Check whether --with-m4_tolower(SoPlex)-lib or --without-m4_tolower(SoPlex)-lib was given.
21024 if test "${with_soplex_lib+set}" = set; then
21025 withval="$with_soplex_lib"
21026 if test "$withval" = no ; then
21027 coin_has_soplex="no"
21028 coin_reason="--without-soplex-lib has been specified"
21029 else
21030 coin_has_soplex="no"
21031 coin_reason="--with-soplex-lib has been specified"
21032 fi
21033 fi;
21034 fi
21035
21036 if test "$coin_has_soplex" != no; then
21037
21038 # Check whether --with-m4_tolower(SoPlex)-incdir or --without-m4_tolower(SoPlex)-incdir was given.
21039 if test "${with_soplex_incdir+set}" = set; then
21040 withval="$with_soplex_incdir"
21041 if test "$withval" = no ; then
21042 coin_has_soplex="no"
21043 coin_reason="--without-soplex-incdir has been specified"
21044 else
21045 coin_has_soplex="no"
21046 coin_reason="--with-soplex-incdir has been specified"
21047 fi
21048 fi;
21049 fi
21050
21051 if test "$coin_has_soplex" != no; then
21052
21053 # Check whether --with-m4_tolower(SoPlex)-datadir or --without-m4_tolower(SoPlex)-datadir was given.
21054 if test "${with_soplex_datadir+set}" = set; then
21055 withval="$with_soplex_datadir"
21056 if test "$withval" = no ; then
21057 coin_has_soplex="no"
21058 coin_reason="--without-soplex-datadir has been specified"
21059 else
21060 coin_has_soplex="no"
21061 coin_reason="--with-soplex-datadir has been specified"
21062 fi
21063 fi;
21064 fi
21065
21066
21067
21068
21069
21070 # check if project is available in present directory
21071 if test "$coin_has_soplex" = notGiven; then
21072 coin_has_soplex=no
21073 if test -d $srcdir/ThirdParty/SoPlex; then
21074 coin_reason="source in ThirdParty/SoPlex"
21075 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21076 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21077 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21078 for i in $srcdir/ThirdParty/SoPlex/soplex/src/soplex.h; do
21079 if test -r $i; then
21080 coin_has_soplex="yes"
21081 else
21082 coin_has_soplex="no"
21083 coin_reason="source file $i not available"
21084 break
21085 fi
21086 done
21087
21088 fi
21089 fi
21090
21091 if test -z "$coin_reason" ; then
21092 echo "$as_me:$LINENO: result: $coin_has_soplex" >&5
21093 echo "${ECHO_T}$coin_has_soplex" >&6
21094 else
21095 echo "$as_me:$LINENO: result: $coin_has_soplex, $coin_reason" >&5
21096 echo "${ECHO_T}$coin_has_soplex, $coin_reason" >&6
21097 fi
21098
21099 if test "$coin_has_soplex" = yes ; then
21100 if test -r $srcdir/ThirdParty/SoPlex/configure; then
21101 coin_subdirs="$coin_subdirs ThirdParty/SoPlex"
21102
21103
21104 subdirs="$subdirs ThirdParty/SoPlex"
21105
21106 fi
21107 fi
21108
21109
21110 echo "$as_me:$LINENO: checking whether source of project Blas is available and should be compiled" >&5
21111 echo $ECHO_N "checking whether source of project Blas is available and should be compiled... $ECHO_C" >&6
21112
21113 coin_has_blas=notGiven
21114 coin_reason=
21115
21116 # check if user wants to skip project in any case
21117
21118 if test x"$COIN_SKIP_PROJECTS" != x; then
21119 for dir in $COIN_SKIP_PROJECTS; do
21120 if test $dir = "Blas"; then
21121 coin_has_blas="no"
21122 coin_reason="Blas has been specified in COIN_SKIP_PROJECTS"
21123 fi
21124
21125 if test $dir = "ThirdParty/Blas"; then
21126 coin_has_blas="no"
21127 coin_reason="ThirdParty/Blas has been specified in COIN_SKIP_PROJECTS"
21128 fi
21129 done
21130 fi
21131
21132 if test "$coin_has_blas" != no; then
21133
21134 # Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
21135 if test "${with_blas+set}" = set; then
21136 withval="$with_blas"
21137 if test "$withval" = no ; then
21138 coin_has_blas="no"
21139 coin_reason="--without-blas has been specified"
21140 fi
21141
21142 fi;
21143 fi
21144
21145 if test "$coin_has_blas" != no; then
21146
21147 # Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
21148 if test "${with_blas_lib+set}" = set; then
21149 withval="$with_blas_lib"
21150 if test "$withval" = no ; then
21151 coin_has_blas="no"
21152 coin_reason="--without-blas-lib has been specified"
21153 else
21154 coin_has_blas="no"
21155 coin_reason="--with-blas-lib has been specified"
21156 fi
21157 fi;
21158 fi
21159
21160 if test "$coin_has_blas" != no; then
21161
21162 # Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
21163 if test "${with_blas_incdir+set}" = set; then
21164 withval="$with_blas_incdir"
21165 if test "$withval" = no ; then
21166 coin_has_blas="no"
21167 coin_reason="--without-blas-incdir has been specified"
21168 else
21169 coin_has_blas="no"
21170 coin_reason="--with-blas-incdir has been specified"
21171 fi
21172 fi;
21173 fi
21174
21175 if test "$coin_has_blas" != no; then
21176
21177 # Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
21178 if test "${with_blas_datadir+set}" = set; then
21179 withval="$with_blas_datadir"
21180 if test "$withval" = no ; then
21181 coin_has_blas="no"
21182 coin_reason="--without-blas-datadir has been specified"
21183 else
21184 coin_has_blas="no"
21185 coin_reason="--with-blas-datadir has been specified"
21186 fi
21187 fi;
21188 fi
21189
21190
21191 if test $coin_has_blas != no; then
21192 #--with-blas can overwrite --with-blas-lib, and can be set to BUILD to enforce building blas
21193
21194 # Check whether --with-blas or --without-blas was given.
21195 if test "${with_blas+set}" = set; then
21196 withval="$with_blas"
21197 if test x"$withval" = "xno" ; then
21198 coin_has_blas="no"
21199 coin_reason="--without-blas has been specified"
21200 elif test x"$withval" != "xBUILD" ; then
21201 coin_has_blas="no"
21202 coin_reason="--with-blas has been specified"
21203 fi
21204 fi;
21205 fi
21206
21207
21208
21209
21210 # check if project is available in present directory
21211 if test "$coin_has_blas" = notGiven; then
21212 coin_has_blas=no
21213 if test -d $srcdir/ThirdParty/Blas; then
21214 coin_reason="source in ThirdParty/Blas"
21215 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21216 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21217 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21218 for i in $srcdir/ThirdParty/Blas/daxpy.f; do
21219 if test -r $i; then
21220 coin_has_blas="yes"
21221 else
21222 coin_has_blas="no"
21223 coin_reason="source file $i not available"
21224 break
21225 fi
21226 done
21227
21228 fi
21229 fi
21230
21231 if test -z "$coin_reason" ; then
21232 echo "$as_me:$LINENO: result: $coin_has_blas" >&5
21233 echo "${ECHO_T}$coin_has_blas" >&6
21234 else
21235 echo "$as_me:$LINENO: result: $coin_has_blas, $coin_reason" >&5
21236 echo "${ECHO_T}$coin_has_blas, $coin_reason" >&6
21237 fi
21238
21239 if test "$coin_has_blas" = yes ; then
21240 if test -r $srcdir/ThirdParty/Blas/configure; then
21241 coin_subdirs="$coin_subdirs ThirdParty/Blas"
21242
21243
21244 subdirs="$subdirs ThirdParty/Blas"
21245
21246 fi
21247 fi
21248
21249
21250 echo "$as_me:$LINENO: checking whether source of project Lapack is available and should be compiled" >&5
21251 echo $ECHO_N "checking whether source of project Lapack is available and should be compiled... $ECHO_C" >&6
21252
21253 coin_has_lapack=notGiven
21254 coin_reason=
21255
21256 # check if user wants to skip project in any case
21257
21258 if test x"$COIN_SKIP_PROJECTS" != x; then
21259 for dir in $COIN_SKIP_PROJECTS; do
21260 if test $dir = "Lapack"; then
21261 coin_has_lapack="no"
21262 coin_reason="Lapack has been specified in COIN_SKIP_PROJECTS"
21263 fi
21264
21265 if test $dir = "ThirdParty/Lapack"; then
21266 coin_has_lapack="no"
21267 coin_reason="ThirdParty/Lapack has been specified in COIN_SKIP_PROJECTS"
21268 fi
21269 done
21270 fi
21271
21272 if test "$coin_has_lapack" != no; then
21273
21274 # Check whether --with-m4_tolower(Lapack) or --without-m4_tolower(Lapack) was given.
21275 if test "${with_lapack+set}" = set; then
21276 withval="$with_lapack"
21277 if test "$withval" = no ; then
21278 coin_has_lapack="no"
21279 coin_reason="--without-lapack has been specified"
21280 fi
21281
21282 fi;
21283 fi
21284
21285 if test "$coin_has_lapack" != no; then
21286
21287 # Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given.
21288 if test "${with_lapack_lib+set}" = set; then
21289 withval="$with_lapack_lib"
21290 if test "$withval" = no ; then
21291 coin_has_lapack="no"
21292 coin_reason="--without-lapack-lib has been specified"
21293 else
21294 coin_has_lapack="no"
21295 coin_reason="--with-lapack-lib has been specified"
21296 fi
21297 fi;
21298 fi
21299
21300 if test "$coin_has_lapack" != no; then
21301
21302 # Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given.
21303 if test "${with_lapack_incdir+set}" = set; then
21304 withval="$with_lapack_incdir"
21305 if test "$withval" = no ; then
21306 coin_has_lapack="no"
21307 coin_reason="--without-lapack-incdir has been specified"
21308 else
21309 coin_has_lapack="no"
21310 coin_reason="--with-lapack-incdir has been specified"
21311 fi
21312 fi;
21313 fi
21314
21315 if test "$coin_has_lapack" != no; then
21316
21317 # Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given.
21318 if test "${with_lapack_datadir+set}" = set; then
21319 withval="$with_lapack_datadir"
21320 if test "$withval" = no ; then
21321 coin_has_lapack="no"
21322 coin_reason="--without-lapack-datadir has been specified"
21323 else
21324 coin_has_lapack="no"
21325 coin_reason="--with-lapack-datadir has been specified"
21326 fi
21327 fi;
21328 fi
21329
21330
21331
21332
21333 if test $coin_has_lapack != no; then
21334 #--with-lapack can overwrite --with-lapack-lib, and can be set to BUILD to enforce building lapack
21335
21336 # Check whether --with-lapack or --without-lapack was given.
21337 if test "${with_lapack+set}" = set; then
21338 withval="$with_lapack"
21339 if test x"$withval" = "xno" ; then
21340 coin_has_lapack="no"
21341 coin_reason="--without-lapack has been specified"
21342 elif test x"$withval" != "xBUILD" ; then
21343 coin_has_lapack="no"
21344 coin_reason="--with-lapack has been specified"
21345 fi
21346 fi;
21347 fi
21348
21349
21350 # check if project is available in present directory
21351 if test "$coin_has_lapack" = notGiven; then
21352 coin_has_lapack=no
21353 if test -d $srcdir/ThirdParty/Lapack; then
21354 coin_reason="source in ThirdParty/Lapack"
21355 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21356 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21357 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21358 for i in $srcdir/ThirdParty/Lapack/LAPACK/SRC/dlarf.f; do
21359 if test -r $i; then
21360 coin_has_lapack="yes"
21361 else
21362 coin_has_lapack="no"
21363 coin_reason="source file $i not available"
21364 break
21365 fi
21366 done
21367
21368 fi
21369 fi
21370
21371 if test -z "$coin_reason" ; then
21372 echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
21373 echo "${ECHO_T}$coin_has_lapack" >&6
21374 else
21375 echo "$as_me:$LINENO: result: $coin_has_lapack, $coin_reason" >&5
21376 echo "${ECHO_T}$coin_has_lapack, $coin_reason" >&6
21377 fi
21378
21379 if test "$coin_has_lapack" = yes ; then
21380 if test -r $srcdir/ThirdParty/Lapack/configure; then
21381 coin_subdirs="$coin_subdirs ThirdParty/Lapack"
21382
21383
21384 subdirs="$subdirs ThirdParty/Lapack"
21385
21386 fi
21387 fi
21388
21389
21390 echo "$as_me:$LINENO: checking whether source of project Sample is available and should be compiled" >&5
21391 echo $ECHO_N "checking whether source of project Sample is available and should be compiled... $ECHO_C" >&6
21392
21393 coin_has_sample=notGiven
21394 coin_reason=
21395
21396 # check if user wants to skip project in any case
21397
21398 if test x"$COIN_SKIP_PROJECTS" != x; then
21399 for dir in $COIN_SKIP_PROJECTS; do
21400 if test $dir = "Sample"; then
21401 coin_has_sample="no"
21402 coin_reason="Sample has been specified in COIN_SKIP_PROJECTS"
21403 fi
21404
21405 if test $dir = "Data/Sample"; then
21406 coin_has_sample="no"
21407 coin_reason="Data/Sample has been specified in COIN_SKIP_PROJECTS"
21408 fi
21409 done
21410 fi
21411
21412 if test "$coin_has_sample" != no; then
21413
21414 # Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
21415 if test "${with_sample+set}" = set; then
21416 withval="$with_sample"
21417 if test "$withval" = no ; then
21418 coin_has_sample="no"
21419 coin_reason="--without-sample has been specified"
21420 fi
21421
21422 fi;
21423 fi
21424
21425 if test "$coin_has_sample" != no; then
21426
21427 # Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
21428 if test "${with_sample_lib+set}" = set; then
21429 withval="$with_sample_lib"
21430 if test "$withval" = no ; then
21431 coin_has_sample="no"
21432 coin_reason="--without-sample-lib has been specified"
21433 else
21434 coin_has_sample="no"
21435 coin_reason="--with-sample-lib has been specified"
21436 fi
21437 fi;
21438 fi
21439
21440 if test "$coin_has_sample" != no; then
21441
21442 # Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
21443 if test "${with_sample_incdir+set}" = set; then
21444 withval="$with_sample_incdir"
21445 if test "$withval" = no ; then
21446 coin_has_sample="no"
21447 coin_reason="--without-sample-incdir has been specified"
21448 else
21449 coin_has_sample="no"
21450 coin_reason="--with-sample-incdir has been specified"
21451 fi
21452 fi;
21453 fi
21454
21455 if test "$coin_has_sample" != no; then
21456
21457 # Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
21458 if test "${with_sample_datadir+set}" = set; then
21459 withval="$with_sample_datadir"
21460 if test "$withval" = no ; then
21461 coin_has_sample="no"
21462 coin_reason="--without-sample-datadir has been specified"
21463 else
21464 coin_has_sample="no"
21465 coin_reason="--with-sample-datadir has been specified"
21466 fi
21467 fi;
21468 fi
21469
21470
21471
21472
21473
21474 # check if project is available in present directory
21475 if test "$coin_has_sample" = notGiven; then
21476 coin_has_sample=no
21477 if test -d $srcdir/Data/Sample; then
21478 coin_reason="source in Data/Sample"
21479 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21480 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21481 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21482 coin_has_sample="yes"
21483
21484 fi
21485 fi
21486
21487 if test -z "$coin_reason" ; then
21488 echo "$as_me:$LINENO: result: $coin_has_sample" >&5
21489 echo "${ECHO_T}$coin_has_sample" >&6
21490 else
21491 echo "$as_me:$LINENO: result: $coin_has_sample, $coin_reason" >&5
21492 echo "${ECHO_T}$coin_has_sample, $coin_reason" >&6
21493 fi
21494
21495 if test "$coin_has_sample" = yes ; then
21496 if test -r $srcdir/Data/Sample/configure; then
21497 coin_subdirs="$coin_subdirs Data/Sample"
21498
21499
21500 subdirs="$subdirs Data/Sample"
21501
21502 fi
21503 fi
21504
21505
21506 echo "$as_me:$LINENO: checking whether source of project Netlib is available and should be compiled" >&5
21507 echo $ECHO_N "checking whether source of project Netlib is available and should be compiled... $ECHO_C" >&6
21508
21509 coin_has_netlib=notGiven
21510 coin_reason=
21511
21512 # check if user wants to skip project in any case
21513
21514 if test x"$COIN_SKIP_PROJECTS" != x; then
21515 for dir in $COIN_SKIP_PROJECTS; do
21516 if test $dir = "Netlib"; then
21517 coin_has_netlib="no"
21518 coin_reason="Netlib has been specified in COIN_SKIP_PROJECTS"
21519 fi
21520
21521 if test $dir = "Data/Netlib"; then
21522 coin_has_netlib="no"
21523 coin_reason="Data/Netlib has been specified in COIN_SKIP_PROJECTS"
21524 fi
21525 done
21526 fi
21527
21528 if test "$coin_has_netlib" != no; then
21529
21530 # Check whether --with-m4_tolower(Netlib) or --without-m4_tolower(Netlib) was given.
21531 if test "${with_netlib+set}" = set; then
21532 withval="$with_netlib"
21533 if test "$withval" = no ; then
21534 coin_has_netlib="no"
21535 coin_reason="--without-netlib has been specified"
21536 fi
21537
21538 fi;
21539 fi
21540
21541 if test "$coin_has_netlib" != no; then
21542
21543 # Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
21544 if test "${with_netlib_lib+set}" = set; then
21545 withval="$with_netlib_lib"
21546 if test "$withval" = no ; then
21547 coin_has_netlib="no"
21548 coin_reason="--without-netlib-lib has been specified"
21549 else
21550 coin_has_netlib="no"
21551 coin_reason="--with-netlib-lib has been specified"
21552 fi
21553 fi;
21554 fi
21555
21556 if test "$coin_has_netlib" != no; then
21557
21558 # Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
21559 if test "${with_netlib_incdir+set}" = set; then
21560 withval="$with_netlib_incdir"
21561 if test "$withval" = no ; then
21562 coin_has_netlib="no"
21563 coin_reason="--without-netlib-incdir has been specified"
21564 else
21565 coin_has_netlib="no"
21566 coin_reason="--with-netlib-incdir has been specified"
21567 fi
21568 fi;
21569 fi
21570
21571 if test "$coin_has_netlib" != no; then
21572
21573 # Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
21574 if test "${with_netlib_datadir+set}" = set; then
21575 withval="$with_netlib_datadir"
21576 if test "$withval" = no ; then
21577 coin_has_netlib="no"
21578 coin_reason="--without-netlib-datadir has been specified"
21579 else
21580 coin_has_netlib="no"
21581 coin_reason="--with-netlib-datadir has been specified"
21582 fi
21583 fi;
21584 fi
21585
21586
21587
21588
21589
21590 # check if project is available in present directory
21591 if test "$coin_has_netlib" = notGiven; then
21592 coin_has_netlib=no
21593 if test -d $srcdir/Data/Netlib; then
21594 coin_reason="source in Data/Netlib"
21595 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21596 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21597 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21598 coin_has_netlib="yes"
21599
21600 fi
21601 fi
21602
21603 if test -z "$coin_reason" ; then
21604 echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
21605 echo "${ECHO_T}$coin_has_netlib" >&6
21606 else
21607 echo "$as_me:$LINENO: result: $coin_has_netlib, $coin_reason" >&5
21608 echo "${ECHO_T}$coin_has_netlib, $coin_reason" >&6
21609 fi
21610
21611 if test "$coin_has_netlib" = yes ; then
21612 if test -r $srcdir/Data/Netlib/configure; then
21613 coin_subdirs="$coin_subdirs Data/Netlib"
21614
21615
21616 subdirs="$subdirs Data/Netlib"
21617
21618 fi
21619 fi
21620
21621
21622 echo "$as_me:$LINENO: checking whether source of project CoinUtils is available and should be compiled" >&5
21623 echo $ECHO_N "checking whether source of project CoinUtils is available and should be compiled... $ECHO_C" >&6
21624
21625 coin_has_coinutils=notGiven
21626 coin_reason=
21627
21628 # check if user wants to skip project in any case
21629
21630 if test x"$COIN_SKIP_PROJECTS" != x; then
21631 for dir in $COIN_SKIP_PROJECTS; do
21632 if test $dir = "CoinUtils"; then
21633 coin_has_coinutils="no"
21634 coin_reason="CoinUtils has been specified in COIN_SKIP_PROJECTS"
21635 fi
21636
21637 done
21638 fi
21639
21640 if test "$coin_has_coinutils" != no; then
21641
21642 # Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
21643 if test "${with_coinutils+set}" = set; then
21644 withval="$with_coinutils"
21645 if test "$withval" = no ; then
21646 coin_has_coinutils="no"
21647 coin_reason="--without-coinutils has been specified"
21648 fi
21649
21650 fi;
21651 fi
21652
21653 if test "$coin_has_coinutils" != no; then
21654
21655 # Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
21656 if test "${with_coinutils_lib+set}" = set; then
21657 withval="$with_coinutils_lib"
21658 if test "$withval" = no ; then
21659 coin_has_coinutils="no"
21660 coin_reason="--without-coinutils-lib has been specified"
21661 else
21662 coin_has_coinutils="no"
21663 coin_reason="--with-coinutils-lib has been specified"
21664 fi
21665 fi;
21666 fi
21667
21668 if test "$coin_has_coinutils" != no; then
21669
21670 # Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
21671 if test "${with_coinutils_incdir+set}" = set; then
21672 withval="$with_coinutils_incdir"
21673 if test "$withval" = no ; then
21674 coin_has_coinutils="no"
21675 coin_reason="--without-coinutils-incdir has been specified"
21676 else
21677 coin_has_coinutils="no"
21678 coin_reason="--with-coinutils-incdir has been specified"
21679 fi
21680 fi;
21681 fi
21682
21683 if test "$coin_has_coinutils" != no; then
21684
21685 # Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
21686 if test "${with_coinutils_datadir+set}" = set; then
21687 withval="$with_coinutils_datadir"
21688 if test "$withval" = no ; then
21689 coin_has_coinutils="no"
21690 coin_reason="--without-coinutils-datadir has been specified"
21691 else
21692 coin_has_coinutils="no"
21693 coin_reason="--with-coinutils-datadir has been specified"
21694 fi
21695 fi;
21696 fi
21697
21698
21699
21700
21701
21702 # check if project is available in present directory
21703 if test "$coin_has_coinutils" = notGiven; then
21704 coin_has_coinutils=no
21705 if test -d $srcdir/CoinUtils; then
21706 coin_reason="source in CoinUtils"
21707 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21708 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21709 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21710 coin_has_coinutils="yes"
21711
21712 fi
21713 fi
21714
21715 if test -z "$coin_reason" ; then
21716 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
21717 echo "${ECHO_T}$coin_has_coinutils" >&6
21718 else
21719 echo "$as_me:$LINENO: result: $coin_has_coinutils, $coin_reason" >&5
21720 echo "${ECHO_T}$coin_has_coinutils, $coin_reason" >&6
21721 fi
21722
21723 if test "$coin_has_coinutils" = yes ; then
21724 if test -r $srcdir/CoinUtils/configure; then
21725 coin_subdirs="$coin_subdirs CoinUtils"
21726
21727
21728 subdirs="$subdirs CoinUtils"
21729
21730 fi
21731 fi
21732
21733
21734 echo "$as_me:$LINENO: checking whether source of project Osi is available and should be compiled" >&5
21735 echo $ECHO_N "checking whether source of project Osi is available and should be compiled... $ECHO_C" >&6
21736
21737 coin_has_osi=notGiven
21738 coin_reason=
21739
21740 # check if user wants to skip project in any case
21741
21742 if test x"$COIN_SKIP_PROJECTS" != x; then
21743 for dir in $COIN_SKIP_PROJECTS; do
21744 if test $dir = "Osi"; then
21745 coin_has_osi="no"
21746 coin_reason="Osi has been specified in COIN_SKIP_PROJECTS"
21747 fi
21748
21749 done
21750 fi
21751
21752 if test "$coin_has_osi" != no; then
21753
21754 # Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
21755 if test "${with_osi+set}" = set; then
21756 withval="$with_osi"
21757 if test "$withval" = no ; then
21758 coin_has_osi="no"
21759 coin_reason="--without-osi has been specified"
21760 fi
21761
21762 fi;
21763 fi
21764
21765 if test "$coin_has_osi" != no; then
21766
21767 # Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
21768 if test "${with_osi_lib+set}" = set; then
21769 withval="$with_osi_lib"
21770 if test "$withval" = no ; then
21771 coin_has_osi="no"
21772 coin_reason="--without-osi-lib has been specified"
21773 else
21774 coin_has_osi="no"
21775 coin_reason="--with-osi-lib has been specified"
21776 fi
21777 fi;
21778 fi
21779
21780 if test "$coin_has_osi" != no; then
21781
21782 # Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
21783 if test "${with_osi_incdir+set}" = set; then
21784 withval="$with_osi_incdir"
21785 if test "$withval" = no ; then
21786 coin_has_osi="no"
21787 coin_reason="--without-osi-incdir has been specified"
21788 else
21789 coin_has_osi="no"
21790 coin_reason="--with-osi-incdir has been specified"
21791 fi
21792 fi;
21793 fi
21794
21795 if test "$coin_has_osi" != no; then
21796
21797 # Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
21798 if test "${with_osi_datadir+set}" = set; then
21799 withval="$with_osi_datadir"
21800 if test "$withval" = no ; then
21801 coin_has_osi="no"
21802 coin_reason="--without-osi-datadir has been specified"
21803 else
21804 coin_has_osi="no"
21805 coin_reason="--with-osi-datadir has been specified"
21806 fi
21807 fi;
21808 fi
21809
21810
21811
21812
21813
21814 # check if project is available in present directory
21815 if test "$coin_has_osi" = notGiven; then
21816 coin_has_osi=no
21817 if test -d $srcdir/Osi; then
21818 coin_reason="source in Osi"
21819 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21820 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21821 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21822 coin_has_osi="yes"
21823
21824 fi
21825 fi
21826
21827 if test -z "$coin_reason" ; then
21828 echo "$as_me:$LINENO: result: $coin_has_osi" >&5
21829 echo "${ECHO_T}$coin_has_osi" >&6
21830 else
21831 echo "$as_me:$LINENO: result: $coin_has_osi, $coin_reason" >&5
21832 echo "${ECHO_T}$coin_has_osi, $coin_reason" >&6
21833 fi
21834
21835 if test "$coin_has_osi" = yes ; then
21836 if test -r $srcdir/Osi/configure; then
21837 coin_subdirs="$coin_subdirs Osi"
21838
21839
21840 subdirs="$subdirs Osi"
21841
21842 fi
21843 fi
21844
21845
21846 #############################################################################
21847 # Check for doxygen #
21848 #############################################################################
21849
21850
21851
21852 { echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
21853 echo "$as_me: configuring doxygen documentation options" >&6;}
21854
21855 # Check to see if doxygen is available.
21856
21857 # Extract the first word of "doxygen", so it can be a program name with args.
21858 set dummy doxygen; ac_word=$2
21859 echo "$as_me:$LINENO: checking for $ac_word" >&5
21860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21861 if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
21862 echo $ECHO_N "(cached) $ECHO_C" >&6
21863 else
21864 if test -n "$coin_have_doxygen"; then
21865 ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
21866 else
21867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21868 for as_dir in $PATH
21869 do
21870 IFS=$as_save_IFS
21871 test -z "$as_dir" && as_dir=.
21872 for ac_exec_ext in '' $ac_executable_extensions; do
21873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21874 ac_cv_prog_coin_have_doxygen="yes"
21875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21876 break 2
21877 fi
21878 done
21879 done
21880
21881 test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
21882 fi
21883 fi
21884 coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
21885 if test -n "$coin_have_doxygen"; then
21886 echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
21887 echo "${ECHO_T}$coin_have_doxygen" >&6
21888 else
21889 echo "$as_me:$LINENO: result: no" >&5
21890 echo "${ECHO_T}no" >&6
21891 fi
21892
21893 # Extract the first word of "latex", so it can be a program name with args.
21894 set dummy latex; ac_word=$2
21895 echo "$as_me:$LINENO: checking for $ac_word" >&5
21896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21897 if test "${ac_cv_prog_coin_have_latex+set}" = set; then
21898 echo $ECHO_N "(cached) $ECHO_C" >&6
21899 else
21900 if test -n "$coin_have_latex"; then
21901 ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
21902 else
21903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21904 for as_dir in $PATH
21905 do
21906 IFS=$as_save_IFS
21907 test -z "$as_dir" && as_dir=.
21908 for ac_exec_ext in '' $ac_executable_extensions; do
21909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21910 ac_cv_prog_coin_have_latex="yes"
21911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21912 break 2
21913 fi
21914 done
21915 done
21916
21917 test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
21918 fi
21919 fi
21920 coin_have_latex=$ac_cv_prog_coin_have_latex
21921 if test -n "$coin_have_latex"; then
21922 echo "$as_me:$LINENO: result: $coin_have_latex" >&5
21923 echo "${ECHO_T}$coin_have_latex" >&6
21924 else
21925 echo "$as_me:$LINENO: result: no" >&5
21926 echo "${ECHO_T}no" >&6
21927 fi
21928
21929
21930 # Look for the dot tool from the graphviz package, unless the user has
21931 # disabled it.
21932
21933
21934 # Check whether --with-dot or --without-dot was given.
21935 if test "${with_dot+set}" = set; then
21936 withval="$with_dot"
21937
21938 else
21939 withval=yes
21940 fi;
21941 if test x"$withval" = xno ; then
21942 coin_doxy_usedot=NO
21943 echo "$as_me:$LINENO: checking for dot " >&5
21944 echo $ECHO_N "checking for dot ... $ECHO_C" >&6
21945 echo "$as_me:$LINENO: result: disabled" >&5
21946 echo "${ECHO_T}disabled" >&6
21947 else
21948 # Extract the first word of "dot", so it can be a program name with args.
21949 set dummy dot; ac_word=$2
21950 echo "$as_me:$LINENO: checking for $ac_word" >&5
21951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21952 if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21954 else
21955 if test -n "$coin_doxy_usedot"; then
21956 ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
21957 else
21958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21959 for as_dir in $PATH
21960 do
21961 IFS=$as_save_IFS
21962 test -z "$as_dir" && as_dir=.
21963 for ac_exec_ext in '' $ac_executable_extensions; do
21964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21965 ac_cv_prog_coin_doxy_usedot="YES"
21966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21967 break 2
21968 fi
21969 done
21970 done
21971
21972 test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
21973 fi
21974 fi
21975 coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
21976 if test -n "$coin_doxy_usedot"; then
21977 echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
21978 echo "${ECHO_T}$coin_doxy_usedot" >&6
21979 else
21980 echo "$as_me:$LINENO: result: no" >&5
21981 echo "${ECHO_T}no" >&6
21982 fi
21983
21984 fi
21985
21986 # Generate a tag file name and a log file name
21987
21988 coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
21989
21990 coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
21991
21992
21993
21994 if test $coin_have_doxygen = yes; then
21995 COIN_HAS_DOXYGEN_TRUE=
21996 COIN_HAS_DOXYGEN_FALSE='#'
21997 else
21998 COIN_HAS_DOXYGEN_TRUE='#'
21999 COIN_HAS_DOXYGEN_FALSE=
22000 fi
22001
22002
22003
22004 if test $coin_have_latex = yes; then
22005 COIN_HAS_LATEX_TRUE=
22006 COIN_HAS_LATEX_FALSE='#'
22007 else
22008 COIN_HAS_LATEX_TRUE='#'
22009 COIN_HAS_LATEX_FALSE=
22010 fi
22011
22012
22013 # Process the list of project names and massage them into possible doxygen
22014 # doc'n directories. Prefer 1) classic external, source processed using
22015 # a project-specific doxygen.conf, we use the tag file; 2) classic
22016 # external, source processed using package doxygen.conf; 3) installed
22017 # doxydoc. Alternatives 1) and 2) are only possible if the directory will be
22018 # configured, which we can't know unless this is the package base configure,
22019 # since coin_subdirs is only set there. Hence it's sufficient to check for
22020 # membership. If we use a tag file from a classic external, exclude the
22021 # source from doxygen processing when doxygen runs in the base directory.
22022
22023 coin_doxy_tagfiles=
22024 coin_doxy_excludes=
22025 tmp="CoinUtils Cgl Clp DyLP Vol SYMPHONY"
22026 for proj in $tmp ; do
22027 lc_proj=`echo $proj | tr [A-Z] [a-z]`
22028 echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
22029 echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
22030 doxytag=${lc_proj}_doxy.tag
22031 doxyfound=no
22032 # proj will be configured, hence doxydoc present in build tree
22033 doxysrcdir="${srcdir}/../${proj}"
22034 # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
22035 if test -d "$doxysrcdir" ; then
22036 # with a doxydoc directory?
22037 doxydir="$doxysrcdir/doxydoc"
22038 # AC_MSG_NOTICE([Considering $doxydir (base)])
22039 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
22040 if test -d "$doxydir" ; then
22041 # use tag file; don't process source
22042 doxydir="../${proj}/doxydoc"
22043 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
22044 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
22045 echo "${ECHO_T}$doxydir (tag)" >&6
22046 coin_doxy_excludes="$coin_doxy_excludes */${proj}"
22047 else
22048 # will process the source -- nothing further to be done here
22049 echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
22050 echo "${ECHO_T}$doxysrcdir (src)" >&6
22051 fi
22052 doxyfound=yes
22053 fi
22054 # Not built, fall back to installed tag file
22055 if test $doxyfound = no ; then
22056 eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
22057 # AC_MSG_NOTICE([Considering $doxydir (install)])
22058 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
22059 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
22060 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
22061 echo "${ECHO_T}$doxydir (tag)" >&6
22062 fi
22063 done
22064
22065
22066
22067
22068
22069 ##############################################################################
22070 # Finishing up by writing all the output #
22071 ##############################################################################
22072
22073 # Here list all the files that configure should create (except for the
22074 # configuration header file)
22075 ac_config_files="$ac_config_files Makefile"
22076
22077 ac_config_files="$ac_config_files doxydoc/doxygen.conf"
22078
22079
22080 # Finally, we let configure write all the output...
22081
22082
22083
22084
22085 echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
22086 echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
22087 coin_link_input_cmd="$LN_S"
22088 case "$CC" in
22089 clang* | */clang* ) ;;
22090 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22091 coin_link_input_cmd=cp ;;
22092 esac
22093 echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
22094 echo "${ECHO_T}$coin_link_input_cmd" >&6
22095
22096
22097
22098 if test x$coin_skip_ac_output != xyes; then
22099
22100 # library extension
22101
22102 case "$CC" in
22103 clang* | */clang* )
22104 LIBEXT=a ;;
22105 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22106 LIBEXT=lib ;;
22107 *) LIBEXT=a ;;
22108 esac
22109
22110 # Define VPATH_DISTCLEANFILES to be everything that needs to be
22111 # cleaned for distclean in a vpath configuration
22112
22113 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
22114
22115 # Take out subdirectories if their configuration concluded that they
22116 # don't need to be compiled
22117 if test x"$coin_ac_skip_subdirs" != x; then
22118 new_subdirs=
22119 for i in $subdirs; do
22120 skipme=no
22121 for j in $coin_ac_skip_subdirs; do
22122 if test $i = $j; then
22123 skipme=yes;
22124 fi
22125 done
22126 if test $skipme = no; then
22127 new_subdirs="$new_subdirs $i"
22128 fi
22129 done
22130 subdirs="$new_subdirs"
22131 fi
22132
22133 # need to come before AC_OUTPUT
22134 if test x$coin_projectdir != xyes; then
22135 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
22136 echo $coin_subdirs > coin_subdirs.txt
22137 else
22138 # substitute for OBJDIR, needed to setup .pc file for uninstalled project
22139 ABSBUILDDIR="`pwd`"
22140
22141 fi
22142
22143 cat >confcache <<\_ACEOF
22144 # This file is a shell script that caches the results of configure
22145 # tests run on this system so they can be shared between configure
22146 # scripts and configure runs, see configure's option --config-cache.
22147 # It is not useful on other systems. If it contains results you don't
22148 # want to keep, you may remove or edit it.
22149 #
22150 # config.status only pays attention to the cache file if you give it
22151 # the --recheck option to rerun configure.
22152 #
22153 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22154 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22155 # following values.
22156
22157 _ACEOF
22158
22159 # The following way of writing the cache mishandles newlines in values,
22160 # but we know of no workaround that is simple, portable, and efficient.
22161 # So, don't put newlines in cache variables' values.
22162 # Ultrix sh set writes to stderr and can't be redirected directly,
22163 # and sets the high bit in the cache file unless we assign to the vars.
22164 {
22165 (set) 2>&1 |
22166 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22167 *ac_space=\ *)
22168 # `set' does not quote correctly, so add quotes (double-quote
22169 # substitution turns \\\\ into \\, and sed turns \\ into \).
22170 sed -n \
22171 "s/'/'\\\\''/g;
22172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22173 ;;
22174 *)
22175 # `set' quotes correctly as required by POSIX, so do not add quotes.
22176 sed -n \
22177 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22178 ;;
22179 esac;
22180 } |
22181 sed '
22182 t clear
22183 : clear
22184 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22185 t end
22186 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22187 : end' >>confcache
22188 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22189 if test -w $cache_file; then
22190 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22191 cat confcache >$cache_file
22192 else
22193 echo "not updating unwritable cache $cache_file"
22194 fi
22195 fi
22196 rm -f confcache
22197
22198 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22199 # Let make expand exec_prefix.
22200 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22201
22202 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22203 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22204 # trailing colons and then remove the whole line if VPATH becomes empty
22205 # (actually we leave an empty line to preserve line numbers).
22206 if test "x$srcdir" = x.; then
22207 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22208 s/:*\$(srcdir):*/:/;
22209 s/:*\${srcdir}:*/:/;
22210 s/:*@srcdir@:*/:/;
22211 s/^\([^=]*=[ ]*\):*/\1/;
22212 s/:*$//;
22213 s/^[^=]*=[ ]*$//;
22214 }'
22215 fi
22216
22217 # Transform confdefs.h into DEFS.
22218 # Protect against shell expansion while executing Makefile rules.
22219 # Protect against Makefile macro expansion.
22220 #
22221 # If the first sed substitution is executed (which looks for macros that
22222 # take arguments), then we branch to the quote section. Otherwise,
22223 # look for a macro that doesn't take arguments.
22224 cat >confdef2opt.sed <<\_ACEOF
22225 t clear
22226 : clear
22227 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
22228 t quote
22229 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
22230 t quote
22231 d
22232 : quote
22233 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
22234 s,\[,\\&,g
22235 s,\],\\&,g
22236 s,\$,$$,g
22237 p
22238 _ACEOF
22239 # We use echo to avoid assuming a particular line-breaking character.
22240 # The extra dot is to prevent the shell from consuming trailing
22241 # line-breaks from the sub-command output. A line-break within
22242 # single-quotes doesn't work because, if this script is created in a
22243 # platform that uses two characters for line-breaks (e.g., DOS), tr
22244 # would break.
22245 ac_LF_and_DOT=`echo; echo .`
22246 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
22247 rm -f confdef2opt.sed
22248
22249
22250 ac_libobjs=
22251 ac_ltlibobjs=
22252 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22253 # 1. Remove the extension, and $U if already installed.
22254 ac_i=`echo "$ac_i" |
22255 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22256 # 2. Add them.
22257 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22258 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22259 done
22260 LIBOBJS=$ac_libobjs
22261
22262 LTLIBOBJS=$ac_ltlibobjs
22263
22264
22265 if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
22266 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
22267 Usually this means the macro was only invoked conditionally." >&5
22268 echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
22269 Usually this means the macro was only invoked conditionally." >&2;}
22270 { (exit 1); exit 1; }; }
22271 fi
22272 if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
22273 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22274 Usually this means the macro was only invoked conditionally." >&5
22275 echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22276 Usually this means the macro was only invoked conditionally." >&2;}
22277 { (exit 1); exit 1; }; }
22278 fi
22279 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22280 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22281 Usually this means the macro was only invoked conditionally." >&5
22282 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22283 Usually this means the macro was only invoked conditionally." >&2;}
22284 { (exit 1); exit 1; }; }
22285 fi
22286 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22287 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22288 Usually this means the macro was only invoked conditionally." >&5
22289 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22290 Usually this means the macro was only invoked conditionally." >&2;}
22291 { (exit 1); exit 1; }; }
22292 fi
22293 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22294 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22295 Usually this means the macro was only invoked conditionally." >&5
22296 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22297 Usually this means the macro was only invoked conditionally." >&2;}
22298 { (exit 1); exit 1; }; }
22299 fi
22300 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22301 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22302 Usually this means the macro was only invoked conditionally." >&5
22303 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22304 Usually this means the macro was only invoked conditionally." >&2;}
22305 { (exit 1); exit 1; }; }
22306 fi
22307 if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
22308 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
22309 Usually this means the macro was only invoked conditionally." >&5
22310 echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
22311 Usually this means the macro was only invoked conditionally." >&2;}
22312 { (exit 1); exit 1; }; }
22313 fi
22314 if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
22315 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22316 Usually this means the macro was only invoked conditionally." >&5
22317 echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22318 Usually this means the macro was only invoked conditionally." >&2;}
22319 { (exit 1); exit 1; }; }
22320 fi
22321 if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
22322 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
22323 Usually this means the macro was only invoked conditionally." >&5
22324 echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
22325 Usually this means the macro was only invoked conditionally." >&2;}
22326 { (exit 1); exit 1; }; }
22327 fi
22328 if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
22329 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
22330 Usually this means the macro was only invoked conditionally." >&5
22331 echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
22332 Usually this means the macro was only invoked conditionally." >&2;}
22333 { (exit 1); exit 1; }; }
22334 fi
22335
22336 : ${CONFIG_STATUS=./config.status}
22337 ac_clean_files_save=$ac_clean_files
22338 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22339 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22340 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22341 cat >$CONFIG_STATUS <<_ACEOF
22342 #! $SHELL
22343 # Generated by $as_me.
22344 # Run this file to recreate the current configuration.
22345 # Compiler output produced by configure, useful for debugging
22346 # configure, is in config.log if it exists.
22347
22348 debug=false
22349 ac_cs_recheck=false
22350 ac_cs_silent=false
22351 SHELL=\${CONFIG_SHELL-$SHELL}
22352 _ACEOF
22353
22354 cat >>$CONFIG_STATUS <<\_ACEOF
22355 ## --------------------- ##
22356 ## M4sh Initialization. ##
22357 ## --------------------- ##
22358
22359 # Be Bourne compatible
22360 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22361 emulate sh
22362 NULLCMD=:
22363 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22364 # is contrary to our usage. Disable this feature.
22365 alias -g '${1+"$@"}'='"$@"'
22366 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22367 set -o posix
22368 fi
22369 DUALCASE=1; export DUALCASE # for MKS sh
22370
22371 # Support unset when possible.
22372 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22373 as_unset=unset
22374 else
22375 as_unset=false
22376 fi
22377
22378
22379 # Work around bugs in pre-3.0 UWIN ksh.
22380 $as_unset ENV MAIL MAILPATH
22381 PS1='$ '
22382 PS2='> '
22383 PS4='+ '
22384
22385 # NLS nuisances.
22386 for as_var in \
22387 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22388 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22389 LC_TELEPHONE LC_TIME
22390 do
22391 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22392 eval $as_var=C; export $as_var
22393 else
22394 $as_unset $as_var
22395 fi
22396 done
22397
22398 # Required to use basename.
22399 if expr a : '\(a\)' >/dev/null 2>&1; then
22400 as_expr=expr
22401 else
22402 as_expr=false
22403 fi
22404
22405 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22406 as_basename=basename
22407 else
22408 as_basename=false
22409 fi
22410
22411
22412 # Name of the executable.
22413 as_me=`$as_basename "$0" ||
22414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22415 X"$0" : 'X\(//\)$' \| \
22416 X"$0" : 'X\(/\)$' \| \
22417 . : '\(.\)' 2>/dev/null ||
22418 echo X/"$0" |
22419 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22420 /^X\/\(\/\/\)$/{ s//\1/; q; }
22421 /^X\/\(\/\).*/{ s//\1/; q; }
22422 s/.*/./; q'`
22423
22424
22425 # PATH needs CR, and LINENO needs CR and PATH.
22426 # Avoid depending upon Character Ranges.
22427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22430 as_cr_digits='0123456789'
22431 as_cr_alnum=$as_cr_Letters$as_cr_digits
22432
22433 # The user is always right.
22434 if test "${PATH_SEPARATOR+set}" != set; then
22435 echo "#! /bin/sh" >conf$$.sh
22436 echo "exit 0" >>conf$$.sh
22437 chmod +x conf$$.sh
22438 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22439 PATH_SEPARATOR=';'
22440 else
22441 PATH_SEPARATOR=:
22442 fi
22443 rm -f conf$$.sh
22444 fi
22445
22446
22447 as_lineno_1=$LINENO
22448 as_lineno_2=$LINENO
22449 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22450 test "x$as_lineno_1" != "x$as_lineno_2" &&
22451 test "x$as_lineno_3" = "x$as_lineno_2" || {
22452 # Find who we are. Look in the path if we contain no path at all
22453 # relative or not.
22454 case $0 in
22455 *[\\/]* ) as_myself=$0 ;;
22456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22457 for as_dir in $PATH
22458 do
22459 IFS=$as_save_IFS
22460 test -z "$as_dir" && as_dir=.
22461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22462 done
22463
22464 ;;
22465 esac
22466 # We did not find ourselves, most probably we were run as `sh COMMAND'
22467 # in which case we are not to be found in the path.
22468 if test "x$as_myself" = x; then
22469 as_myself=$0
22470 fi
22471 if test ! -f "$as_myself"; then
22472 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22473 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22474 { (exit 1); exit 1; }; }
22475 fi
22476 case $CONFIG_SHELL in
22477 '')
22478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22479 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22480 do
22481 IFS=$as_save_IFS
22482 test -z "$as_dir" && as_dir=.
22483 for as_base in sh bash ksh sh5; do
22484 case $as_dir in
22485 /*)
22486 if ("$as_dir/$as_base" -c '
22487 as_lineno_1=$LINENO
22488 as_lineno_2=$LINENO
22489 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22490 test "x$as_lineno_1" != "x$as_lineno_2" &&
22491 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22492 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22493 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22494 CONFIG_SHELL=$as_dir/$as_base
22495 export CONFIG_SHELL
22496 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22497 fi;;
22498 esac
22499 done
22500 done
22501 ;;
22502 esac
22503
22504 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22505 # uniformly replaced by the line number. The first 'sed' inserts a
22506 # line-number line before each line; the second 'sed' does the real
22507 # work. The second script uses 'N' to pair each line-number line
22508 # with the numbered line, and appends trailing '-' during
22509 # substitution so that $LINENO is not a special case at line end.
22510 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22511 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22512 sed '=' <$as_myself |
22513 sed '
22514 N
22515 s,$,-,
22516 : loop
22517 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22518 t loop
22519 s,-$,,
22520 s,^['$as_cr_digits']*\n,,
22521 ' >$as_me.lineno &&
22522 chmod +x $as_me.lineno ||
22523 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22524 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22525 { (exit 1); exit 1; }; }
22526
22527 # Don't try to exec as it changes $[0], causing all sort of problems
22528 # (the dirname of $[0] is not the place where we might find the
22529 # original and so on. Autoconf is especially sensible to this).
22530 . ./$as_me.lineno
22531 # Exit status is that of the last command.
22532 exit
22533 }
22534
22535
22536 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22537 *c*,-n*) ECHO_N= ECHO_C='
22538 ' ECHO_T=' ' ;;
22539 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22540 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22541 esac
22542
22543 if expr a : '\(a\)' >/dev/null 2>&1; then
22544 as_expr=expr
22545 else
22546 as_expr=false
22547 fi
22548
22549 rm -f conf$$ conf$$.exe conf$$.file
22550 echo >conf$$.file
22551 if ln -s conf$$.file conf$$ 2>/dev/null; then
22552 # We could just check for DJGPP; but this test a) works b) is more generic
22553 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22554 if test -f conf$$.exe; then
22555 # Don't use ln at all; we don't have any links
22556 as_ln_s='cp -p'
22557 else
22558 as_ln_s='ln -s'
22559 fi
22560 elif ln conf$$.file conf$$ 2>/dev/null; then
22561 as_ln_s=ln
22562 else
22563 as_ln_s='cp -p'
22564 fi
22565 rm -f conf$$ conf$$.exe conf$$.file
22566
22567 if mkdir -p . 2>/dev/null; then
22568 as_mkdir_p=:
22569 else
22570 test -d ./-p && rmdir ./-p
22571 as_mkdir_p=false
22572 fi
22573
22574 as_executable_p="test -f"
22575
22576 # Sed expression to map a string onto a valid CPP name.
22577 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22578
22579 # Sed expression to map a string onto a valid variable name.
22580 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22581
22582
22583 # IFS
22584 # We need space, tab and new line, in precisely that order.
22585 as_nl='
22586 '
22587 IFS=" $as_nl"
22588
22589 # CDPATH.
22590 $as_unset CDPATH
22591
22592 exec 6>&1
22593
22594 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22595 # report actual input values of CONFIG_FILES etc. instead of their
22596 # values after options handling. Logging --version etc. is OK.
22597 exec 5>>config.log
22598 {
22599 echo
22600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22601 ## Running $as_me. ##
22602 _ASBOX
22603 } >&5
22604 cat >&5 <<_CSEOF
22605
22606 This file was extended by Osi $as_me 0.108.11, which was
22607 generated by GNU Autoconf 2.59. Invocation command line was
22608
22609 CONFIG_FILES = $CONFIG_FILES
22610 CONFIG_HEADERS = $CONFIG_HEADERS
22611 CONFIG_LINKS = $CONFIG_LINKS
22612 CONFIG_COMMANDS = $CONFIG_COMMANDS
22613 $ $0 $@
22614
22615 _CSEOF
22616 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22617 echo >&5
22618 _ACEOF
22619
22620 # Files that config.status was made for.
22621 if test -n "$ac_config_files"; then
22622 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22623 fi
22624
22625 if test -n "$ac_config_headers"; then
22626 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22627 fi
22628
22629 if test -n "$ac_config_links"; then
22630 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22631 fi
22632
22633 if test -n "$ac_config_commands"; then
22634 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22635 fi
22636
22637 cat >>$CONFIG_STATUS <<\_ACEOF
22638
22639 ac_cs_usage="\
22640 \`$as_me' instantiates files from templates according to the
22641 current configuration.
22642
22643 Usage: $0 [OPTIONS] [FILE]...
22644
22645 -h, --help print this help, then exit
22646 -V, --version print version number, then exit
22647 -q, --quiet do not print progress messages
22648 -d, --debug don't remove temporary files
22649 --recheck update $as_me by reconfiguring in the same conditions
22650 --file=FILE[:TEMPLATE]
22651 instantiate the configuration file FILE
22652
22653 Configuration files:
22654 $config_files
22655
22656 Configuration commands:
22657 $config_commands
22658
22659 Report bugs to <[email protected]>."
22660 _ACEOF
22661
22662 cat >>$CONFIG_STATUS <<_ACEOF
22663 ac_cs_version="\\
22664 Osi config.status 0.108.11
22665 configured by $0, generated by GNU Autoconf 2.59,
22666 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22667
22668 Copyright (C) 2003 Free Software Foundation, Inc.
22669 This config.status script is free software; the Free Software Foundation
22670 gives unlimited permission to copy, distribute and modify it."
22671 srcdir=$srcdir
22672 INSTALL="$INSTALL"
22673 _ACEOF
22674
22675 cat >>$CONFIG_STATUS <<\_ACEOF
22676 # If no file are specified by the user, then we need to provide default
22677 # value. By we need to know if files were specified by the user.
22678 ac_need_defaults=:
22679 while test $# != 0
22680 do
22681 case $1 in
22682 --*=*)
22683 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22684 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22685 ac_shift=:
22686 ;;
22687 -*)
22688 ac_option=$1
22689 ac_optarg=$2
22690 ac_shift=shift
22691 ;;
22692 *) # This is not an option, so the user has probably given explicit
22693 # arguments.
22694 ac_option=$1
22695 ac_need_defaults=false;;
22696 esac
22697
22698 case $ac_option in
22699 # Handling of the options.
22700 _ACEOF
22701 cat >>$CONFIG_STATUS <<\_ACEOF
22702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22703 ac_cs_recheck=: ;;
22704 --version | --vers* | -V )
22705 echo "$ac_cs_version"; exit 0 ;;
22706 --he | --h)
22707 # Conflict between --help and --header
22708 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22709 Try \`$0 --help' for more information." >&5
22710 echo "$as_me: error: ambiguous option: $1
22711 Try \`$0 --help' for more information." >&2;}
22712 { (exit 1); exit 1; }; };;
22713 --help | --hel | -h )
22714 echo "$ac_cs_usage"; exit 0 ;;
22715 --debug | --d* | -d )
22716 debug=: ;;
22717 --file | --fil | --fi | --f )
22718 $ac_shift
22719 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22720 ac_need_defaults=false;;
22721 --header | --heade | --head | --hea )
22722 $ac_shift
22723 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22724 ac_need_defaults=false;;
22725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22726 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22727 ac_cs_silent=: ;;
22728
22729 # This is an error.
22730 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22731 Try \`$0 --help' for more information." >&5
22732 echo "$as_me: error: unrecognized option: $1
22733 Try \`$0 --help' for more information." >&2;}
22734 { (exit 1); exit 1; }; } ;;
22735
22736 *) ac_config_targets="$ac_config_targets $1" ;;
22737
22738 esac
22739 shift
22740 done
22741
22742 ac_configure_extra_args=
22743
22744 if $ac_cs_silent; then
22745 exec 6>/dev/null
22746 ac_configure_extra_args="$ac_configure_extra_args --silent"
22747 fi
22748
22749 _ACEOF
22750 cat >>$CONFIG_STATUS <<_ACEOF
22751 if \$ac_cs_recheck; then
22752 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22753 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22754 fi
22755
22756 _ACEOF
22757
22758 cat >>$CONFIG_STATUS <<_ACEOF
22759 #
22760 # INIT-COMMANDS section.
22761 #
22762
22763 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22764
22765 _ACEOF
22766
22767
22768
22769 cat >>$CONFIG_STATUS <<\_ACEOF
22770 for ac_config_target in $ac_config_targets
22771 do
22772 case "$ac_config_target" in
22773 # Handling of arguments.
22774 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22775 "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
22776 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22777 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22778 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22779 { (exit 1); exit 1; }; };;
22780 esac
22781 done
22782
22783 # If the user did not use the arguments to specify the items to instantiate,
22784 # then the envvar interface is used. Set only those that are not.
22785 # We use the long form for the default assignment because of an extremely
22786 # bizarre bug on SunOS 4.1.3.
22787 if $ac_need_defaults; then
22788 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22789 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22790 fi
22791
22792 # Have a temporary directory for convenience. Make it in the build tree
22793 # simply because there is no reason to put it here, and in addition,
22794 # creating and moving files from /tmp can sometimes cause problems.
22795 # Create a temporary directory, and hook for its removal unless debugging.
22796 $debug ||
22797 {
22798 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22799 trap '{ (exit 1); exit 1; }' 1 2 13 15
22800 }
22801
22802 # Create a (secure) tmp directory for tmp files.
22803
22804 {
22805 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22806 test -n "$tmp" && test -d "$tmp"
22807 } ||
22808 {
22809 tmp=./confstat$$-$RANDOM
22810 (umask 077 && mkdir $tmp)
22811 } ||
22812 {
22813 echo "$me: cannot create a temporary directory in ." >&2
22814 { (exit 1); exit 1; }
22815 }
22816
22817 _ACEOF
22818
22819 cat >>$CONFIG_STATUS <<_ACEOF
22820
22821 #
22822 # CONFIG_FILES section.
22823 #
22824
22825 # No need to generate the scripts if there are no CONFIG_FILES.
22826 # This happens for instance when ./config.status config.h
22827 if test -n "\$CONFIG_FILES"; then
22828 # Protect against being on the right side of a sed subst in config.status.
22829 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22830 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22831 s,@SHELL@,$SHELL,;t t
22832 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22833 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22834 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22835 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22836 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22837 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22838 s,@exec_prefix@,$exec_prefix,;t t
22839 s,@prefix@,$prefix,;t t
22840 s,@program_transform_name@,$program_transform_name,;t t
22841 s,@bindir@,$bindir,;t t
22842 s,@sbindir@,$sbindir,;t t
22843 s,@libexecdir@,$libexecdir,;t t
22844 s,@datadir@,$datadir,;t t
22845 s,@sysconfdir@,$sysconfdir,;t t
22846 s,@sharedstatedir@,$sharedstatedir,;t t
22847 s,@localstatedir@,$localstatedir,;t t
22848 s,@libdir@,$libdir,;t t
22849 s,@includedir@,$includedir,;t t
22850 s,@oldincludedir@,$oldincludedir,;t t
22851 s,@infodir@,$infodir,;t t
22852 s,@mandir@,$mandir,;t t
22853 s,@build_alias@,$build_alias,;t t
22854 s,@host_alias@,$host_alias,;t t
22855 s,@target_alias@,$target_alias,;t t
22856 s,@DEFS@,$DEFS,;t t
22857 s,@ECHO_C@,$ECHO_C,;t t
22858 s,@ECHO_N@,$ECHO_N,;t t
22859 s,@ECHO_T@,$ECHO_T,;t t
22860 s,@LIBS@,$LIBS,;t t
22861 s,@build@,$build,;t t
22862 s,@build_cpu@,$build_cpu,;t t
22863 s,@build_vendor@,$build_vendor,;t t
22864 s,@build_os@,$build_os,;t t
22865 s,@CDEFS@,$CDEFS,;t t
22866 s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
22867 s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
22868 s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
22869 s,@sol_cc_compiler@,$sol_cc_compiler,;t t
22870 s,@CC@,$CC,;t t
22871 s,@CFLAGS@,$CFLAGS,;t t
22872 s,@LDFLAGS@,$LDFLAGS,;t t
22873 s,@CPPFLAGS@,$CPPFLAGS,;t t
22874 s,@ac_ct_CC@,$ac_ct_CC,;t t
22875 s,@EXEEXT@,$EXEEXT,;t t
22876 s,@OBJEXT@,$OBJEXT,;t t
22877 s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
22878 s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
22879 s,@MPICC@,$MPICC,;t t
22880 s,@CXXDEFS@,$CXXDEFS,;t t
22881 s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
22882 s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
22883 s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
22884 s,@CXX@,$CXX,;t t
22885 s,@CXXFLAGS@,$CXXFLAGS,;t t
22886 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22887 s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
22888 s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
22889 s,@MPICXX@,$MPICXX,;t t
22890 s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
22891 s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
22892 s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
22893 s,@F77@,$F77,;t t
22894 s,@ac_ct_F77@,$ac_ct_F77,;t t
22895 s,@FFLAGS@,$FFLAGS,;t t
22896 s,@MPIF77@,$MPIF77,;t t
22897 s,@EGREP@,$EGREP,;t t
22898 s,@LN_S@,$LN_S,;t t
22899 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22900 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22901 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22902 s,@CYGPATH_W@,$CYGPATH_W,;t t
22903 s,@PACKAGE@,$PACKAGE,;t t
22904 s,@VERSION@,$VERSION,;t t
22905 s,@ACLOCAL@,$ACLOCAL,;t t
22906 s,@AUTOCONF@,$AUTOCONF,;t t
22907 s,@AUTOMAKE@,$AUTOMAKE,;t t
22908 s,@AUTOHEADER@,$AUTOHEADER,;t t
22909 s,@MAKEINFO@,$MAKEINFO,;t t
22910 s,@install_sh@,$install_sh,;t t
22911 s,@STRIP@,$STRIP,;t t
22912 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22913 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22914 s,@mkdir_p@,$mkdir_p,;t t
22915 s,@AWK@,$AWK,;t t
22916 s,@SET_MAKE@,$SET_MAKE,;t t
22917 s,@am__leading_dot@,$am__leading_dot,;t t
22918 s,@AMTAR@,$AMTAR,;t t
22919 s,@am__tar@,$am__tar,;t t
22920 s,@am__untar@,$am__untar,;t t
22921 s,@DEPDIR@,$DEPDIR,;t t
22922 s,@am__include@,$am__include,;t t
22923 s,@am__quote@,$am__quote,;t t
22924 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22925 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22926 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22927 s,@CCDEPMODE@,$CCDEPMODE,;t t
22928 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22929 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22930 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22931 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22932 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22933 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22934 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22935 s,@MAINT@,$MAINT,;t t
22936 s,@LIBTOOLM4@,$LIBTOOLM4,;t t
22937 s,@have_autoconf@,$have_autoconf,;t t
22938 s,@have_automake@,$have_automake,;t t
22939 s,@have_svn@,$have_svn,;t t
22940 s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
22941 s,@AUX_DIR@,$AUX_DIR,;t t
22942 s,@abs_source_dir@,$abs_source_dir,;t t
22943 s,@abs_lib_dir@,$abs_lib_dir,;t t
22944 s,@abs_include_dir@,$abs_include_dir,;t t
22945 s,@abs_bin_dir@,$abs_bin_dir,;t t
22946 s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
22947 s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
22948 s,@host@,$host,;t t
22949 s,@host_cpu@,$host_cpu,;t t
22950 s,@host_vendor@,$host_vendor,;t t
22951 s,@host_os@,$host_os,;t t
22952 s,@ECHO@,$ECHO,;t t
22953 s,@AR@,$AR,;t t
22954 s,@ac_ct_AR@,$ac_ct_AR,;t t
22955 s,@RANLIB@,$RANLIB,;t t
22956 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22957 s,@CPP@,$CPP,;t t
22958 s,@CXXCPP@,$CXXCPP,;t t
22959 s,@LIBTOOL@,$LIBTOOL,;t t
22960 s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
22961 s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
22962 s,@dos2unix@,$dos2unix,;t t
22963 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
22964 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
22965 s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
22966 s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
22967 s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t
22968 s,@subdirs@,$subdirs,;t t
22969 s,@coin_have_doxygen@,$coin_have_doxygen,;t t
22970 s,@coin_have_latex@,$coin_have_latex,;t t
22971 s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
22972 s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
22973 s,@coin_doxy_logname@,$coin_doxy_logname,;t t
22974 s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
22975 s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
22976 s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
22977 s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
22978 s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
22979 s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
22980 s,@LIBEXT@,$LIBEXT,;t t
22981 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
22982 s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
22983 s,@LIBOBJS@,$LIBOBJS,;t t
22984 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22985 CEOF
22986
22987 _ACEOF
22988
22989 cat >>$CONFIG_STATUS <<\_ACEOF
22990 # Split the substitutions into bite-sized pieces for seds with
22991 # small command number limits, like on Digital OSF/1 and HP-UX.
22992 ac_max_sed_lines=48
22993 ac_sed_frag=1 # Number of current file.
22994 ac_beg=1 # First line for current file.
22995 ac_end=$ac_max_sed_lines # Line after last line for current file.
22996 ac_more_lines=:
22997 ac_sed_cmds=
22998 while $ac_more_lines; do
22999 if test $ac_beg -gt 1; then
23000 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23001 else
23002 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23003 fi
23004 if test ! -s $tmp/subs.frag; then
23005 ac_more_lines=false
23006 else
23007 # The purpose of the label and of the branching condition is to
23008 # speed up the sed processing (if there are no `@' at all, there
23009 # is no need to browse any of the substitutions).
23010 # These are the two extra sed commands mentioned above.
23011 (echo ':t
23012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23013 if test -z "$ac_sed_cmds"; then
23014 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23015 else
23016 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23017 fi
23018 ac_sed_frag=`expr $ac_sed_frag + 1`
23019 ac_beg=$ac_end
23020 ac_end=`expr $ac_end + $ac_max_sed_lines`
23021 fi
23022 done
23023 if test -z "$ac_sed_cmds"; then
23024 ac_sed_cmds=cat
23025 fi
23026 fi # test -n "$CONFIG_FILES"
23027
23028 _ACEOF
23029 cat >>$CONFIG_STATUS <<\_ACEOF
23030 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23031 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23032 case $ac_file in
23033 - | *:- | *:-:* ) # input from stdin
23034 cat >$tmp/stdin
23035 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23036 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23037 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23038 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23039 * ) ac_file_in=$ac_file.in ;;
23040 esac
23041
23042 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23043 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23045 X"$ac_file" : 'X\(//\)[^/]' \| \
23046 X"$ac_file" : 'X\(//\)$' \| \
23047 X"$ac_file" : 'X\(/\)' \| \
23048 . : '\(.\)' 2>/dev/null ||
23049 echo X"$ac_file" |
23050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23052 /^X\(\/\/\)$/{ s//\1/; q; }
23053 /^X\(\/\).*/{ s//\1/; q; }
23054 s/.*/./; q'`
23055 { if $as_mkdir_p; then
23056 mkdir -p "$ac_dir"
23057 else
23058 as_dir="$ac_dir"
23059 as_dirs=
23060 while test ! -d "$as_dir"; do
23061 as_dirs="$as_dir $as_dirs"
23062 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23064 X"$as_dir" : 'X\(//\)[^/]' \| \
23065 X"$as_dir" : 'X\(//\)$' \| \
23066 X"$as_dir" : 'X\(/\)' \| \
23067 . : '\(.\)' 2>/dev/null ||
23068 echo X"$as_dir" |
23069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23071 /^X\(\/\/\)$/{ s//\1/; q; }
23072 /^X\(\/\).*/{ s//\1/; q; }
23073 s/.*/./; q'`
23074 done
23075 test ! -n "$as_dirs" || mkdir $as_dirs
23076 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23077 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23078 { (exit 1); exit 1; }; }; }
23079
23080 ac_builddir=.
23081
23082 if test "$ac_dir" != .; then
23083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23084 # A "../" for each directory in $ac_dir_suffix.
23085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23086 else
23087 ac_dir_suffix= ac_top_builddir=
23088 fi
23089
23090 case $srcdir in
23091 .) # No --srcdir option. We are building in place.
23092 ac_srcdir=.
23093 if test -z "$ac_top_builddir"; then
23094 ac_top_srcdir=.
23095 else
23096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23097 fi ;;
23098 [\\/]* | ?:[\\/]* ) # Absolute path.
23099 ac_srcdir=$srcdir$ac_dir_suffix;
23100 ac_top_srcdir=$srcdir ;;
23101 *) # Relative path.
23102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23104 esac
23105
23106 # Do not use `cd foo && pwd` to compute absolute paths, because
23107 # the directories may not exist.
23108 case `pwd` in
23109 .) ac_abs_builddir="$ac_dir";;
23110 *)
23111 case "$ac_dir" in
23112 .) ac_abs_builddir=`pwd`;;
23113 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23114 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23115 esac;;
23116 esac
23117 case $ac_abs_builddir in
23118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23119 *)
23120 case ${ac_top_builddir}. in
23121 .) ac_abs_top_builddir=$ac_abs_builddir;;
23122 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23123 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23124 esac;;
23125 esac
23126 case $ac_abs_builddir in
23127 .) ac_abs_srcdir=$ac_srcdir;;
23128 *)
23129 case $ac_srcdir in
23130 .) ac_abs_srcdir=$ac_abs_builddir;;
23131 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23132 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23133 esac;;
23134 esac
23135 case $ac_abs_builddir in
23136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23137 *)
23138 case $ac_top_srcdir in
23139 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23140 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23141 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23142 esac;;
23143 esac
23144
23145
23146 case $INSTALL in
23147 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23148 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23149 esac
23150
23151 if test x"$ac_file" != x-; then
23152 { echo "$as_me:$LINENO: creating $ac_file" >&5
23153 echo "$as_me: creating $ac_file" >&6;}
23154 rm -f "$ac_file"
23155 fi
23156 # Let's still pretend it is `configure' which instantiates (i.e., don't
23157 # use $as_me), people would be surprised to read:
23158 # /* config.h. Generated by config.status. */
23159 if test x"$ac_file" = x-; then
23160 configure_input=
23161 else
23162 configure_input="$ac_file. "
23163 fi
23164 configure_input=$configure_input"Generated from `echo $ac_file_in |
23165 sed 's,.*/,,'` by configure."
23166
23167 # First look for the input files in the build tree, otherwise in the
23168 # src tree.
23169 ac_file_inputs=`IFS=:
23170 for f in $ac_file_in; do
23171 case $f in
23172 -) echo $tmp/stdin ;;
23173 [\\/$]*)
23174 # Absolute (can't be DOS-style, as IFS=:)
23175 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23176 echo "$as_me: error: cannot find input file: $f" >&2;}
23177 { (exit 1); exit 1; }; }
23178 echo "$f";;
23179 *) # Relative
23180 if test -f "$f"; then
23181 # Build tree
23182 echo "$f"
23183 elif test -f "$srcdir/$f"; then
23184 # Source tree
23185 echo "$srcdir/$f"
23186 else
23187 # /dev/null tree
23188 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23189 echo "$as_me: error: cannot find input file: $f" >&2;}
23190 { (exit 1); exit 1; }; }
23191 fi;;
23192 esac
23193 done` || { (exit 1); exit 1; }
23194 _ACEOF
23195 cat >>$CONFIG_STATUS <<_ACEOF
23196 sed "$ac_vpsub
23197 $extrasub
23198 _ACEOF
23199 cat >>$CONFIG_STATUS <<\_ACEOF
23200 :t
23201 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23202 s,@configure_input@,$configure_input,;t t
23203 s,@srcdir@,$ac_srcdir,;t t
23204 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23205 s,@top_srcdir@,$ac_top_srcdir,;t t
23206 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23207 s,@builddir@,$ac_builddir,;t t
23208 s,@abs_builddir@,$ac_abs_builddir,;t t
23209 s,@top_builddir@,$ac_top_builddir,;t t
23210 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23211 s,@INSTALL@,$ac_INSTALL,;t t
23212 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23213 rm -f $tmp/stdin
23214 if test x"$ac_file" != x-; then
23215 mv $tmp/out $ac_file
23216 else
23217 cat $tmp/out
23218 rm -f $tmp/out
23219 fi
23220
23221 done
23222 _ACEOF
23223 cat >>$CONFIG_STATUS <<\_ACEOF
23224
23225 #
23226 # CONFIG_COMMANDS section.
23227 #
23228 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23229 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23230 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23231 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23232 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23233 X"$ac_dest" : 'X\(//\)[^/]' \| \
23234 X"$ac_dest" : 'X\(//\)$' \| \
23235 X"$ac_dest" : 'X\(/\)' \| \
23236 . : '\(.\)' 2>/dev/null ||
23237 echo X"$ac_dest" |
23238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23240 /^X\(\/\/\)$/{ s//\1/; q; }
23241 /^X\(\/\).*/{ s//\1/; q; }
23242 s/.*/./; q'`
23243 { if $as_mkdir_p; then
23244 mkdir -p "$ac_dir"
23245 else
23246 as_dir="$ac_dir"
23247 as_dirs=
23248 while test ! -d "$as_dir"; do
23249 as_dirs="$as_dir $as_dirs"
23250 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23251 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23252 X"$as_dir" : 'X\(//\)[^/]' \| \
23253 X"$as_dir" : 'X\(//\)$' \| \
23254 X"$as_dir" : 'X\(/\)' \| \
23255 . : '\(.\)' 2>/dev/null ||
23256 echo X"$as_dir" |
23257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23259 /^X\(\/\/\)$/{ s//\1/; q; }
23260 /^X\(\/\).*/{ s//\1/; q; }
23261 s/.*/./; q'`
23262 done
23263 test ! -n "$as_dirs" || mkdir $as_dirs
23264 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23265 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23266 { (exit 1); exit 1; }; }; }
23267
23268 ac_builddir=.
23269
23270 if test "$ac_dir" != .; then
23271 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23272 # A "../" for each directory in $ac_dir_suffix.
23273 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23274 else
23275 ac_dir_suffix= ac_top_builddir=
23276 fi
23277
23278 case $srcdir in
23279 .) # No --srcdir option. We are building in place.
23280 ac_srcdir=.
23281 if test -z "$ac_top_builddir"; then
23282 ac_top_srcdir=.
23283 else
23284 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23285 fi ;;
23286 [\\/]* | ?:[\\/]* ) # Absolute path.
23287 ac_srcdir=$srcdir$ac_dir_suffix;
23288 ac_top_srcdir=$srcdir ;;
23289 *) # Relative path.
23290 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23291 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23292 esac
23293
23294 # Do not use `cd foo && pwd` to compute absolute paths, because
23295 # the directories may not exist.
23296 case `pwd` in
23297 .) ac_abs_builddir="$ac_dir";;
23298 *)
23299 case "$ac_dir" in
23300 .) ac_abs_builddir=`pwd`;;
23301 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23302 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23303 esac;;
23304 esac
23305 case $ac_abs_builddir in
23306 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23307 *)
23308 case ${ac_top_builddir}. in
23309 .) ac_abs_top_builddir=$ac_abs_builddir;;
23310 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23311 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23312 esac;;
23313 esac
23314 case $ac_abs_builddir in
23315 .) ac_abs_srcdir=$ac_srcdir;;
23316 *)
23317 case $ac_srcdir in
23318 .) ac_abs_srcdir=$ac_abs_builddir;;
23319 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23320 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23321 esac;;
23322 esac
23323 case $ac_abs_builddir in
23324 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23325 *)
23326 case $ac_top_srcdir in
23327 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23328 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23329 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23330 esac;;
23331 esac
23332
23333
23334 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23335 echo "$as_me: executing $ac_dest commands" >&6;}
23336 case $ac_dest in
23337 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23338 # Strip MF so we end up with the name of the file.
23339 mf=`echo "$mf" | sed -e 's/:.*$//'`
23340 # Check whether this is an Automake generated Makefile or not.
23341 # We used to match only the files named `Makefile.in', but
23342 # some people rename them; so instead we look at the file content.
23343 # Grep'ing the first line is not enough: some people post-process
23344 # each Makefile.in and add a new line on top of each file to say so.
23345 # So let's grep whole file.
23346 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23347 dirpart=`(dirname "$mf") 2>/dev/null ||
23348 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23349 X"$mf" : 'X\(//\)[^/]' \| \
23350 X"$mf" : 'X\(//\)$' \| \
23351 X"$mf" : 'X\(/\)' \| \
23352 . : '\(.\)' 2>/dev/null ||
23353 echo X"$mf" |
23354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23355 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23356 /^X\(\/\/\)$/{ s//\1/; q; }
23357 /^X\(\/\).*/{ s//\1/; q; }
23358 s/.*/./; q'`
23359 else
23360 continue
23361 fi
23362 # Extract the definition of DEPDIR, am__include, and am__quote
23363 # from the Makefile without running `make'.
23364 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23365 test -z "$DEPDIR" && continue
23366 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23367 test -z "am__include" && continue
23368 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23369 # When using ansi2knr, U may be empty or an underscore; expand it
23370 U=`sed -n 's/^U = //p' < "$mf"`
23371 # Find all dependency output files, they are included files with
23372 # $(DEPDIR) in their names. We invoke sed twice because it is the
23373 # simplest approach to changing $(DEPDIR) to its actual value in the
23374 # expansion.
23375 for file in `sed -n "
23376 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23377 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23378 # Make sure the directory exists.
23379 test -f "$dirpart/$file" && continue
23380 fdir=`(dirname "$file") 2>/dev/null ||
23381 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23382 X"$file" : 'X\(//\)[^/]' \| \
23383 X"$file" : 'X\(//\)$' \| \
23384 X"$file" : 'X\(/\)' \| \
23385 . : '\(.\)' 2>/dev/null ||
23386 echo X"$file" |
23387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23389 /^X\(\/\/\)$/{ s//\1/; q; }
23390 /^X\(\/\).*/{ s//\1/; q; }
23391 s/.*/./; q'`
23392 { if $as_mkdir_p; then
23393 mkdir -p $dirpart/$fdir
23394 else
23395 as_dir=$dirpart/$fdir
23396 as_dirs=
23397 while test ! -d "$as_dir"; do
23398 as_dirs="$as_dir $as_dirs"
23399 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23400 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23401 X"$as_dir" : 'X\(//\)[^/]' \| \
23402 X"$as_dir" : 'X\(//\)$' \| \
23403 X"$as_dir" : 'X\(/\)' \| \
23404 . : '\(.\)' 2>/dev/null ||
23405 echo X"$as_dir" |
23406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23407 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23408 /^X\(\/\/\)$/{ s//\1/; q; }
23409 /^X\(\/\).*/{ s//\1/; q; }
23410 s/.*/./; q'`
23411 done
23412 test ! -n "$as_dirs" || mkdir $as_dirs
23413 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23414 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23415 { (exit 1); exit 1; }; }; }
23416
23417 # echo "creating $dirpart/$file"
23418 echo '# dummy' > "$dirpart/$file"
23419 done
23420 done
23421 ;;
23422 esac
23423 done
23424 _ACEOF
23425
23426 cat >>$CONFIG_STATUS <<\_ACEOF
23427
23428 { (exit 0); exit 0; }
23429 _ACEOF
23430 chmod +x $CONFIG_STATUS
23431 ac_clean_files=$ac_clean_files_save
23432
23433
23434 # configure is writing to config.log, and then calls config.status.
23435 # config.status does its own redirection, appending to config.log.
23436 # Unfortunately, on DOS this fails, as config.log is still kept open
23437 # by configure, so config.status won't be able to write to it; its
23438 # output is simply discarded. So we exec the FD to /dev/null,
23439 # effectively closing config.log, so it can be properly (re)opened and
23440 # appended to by config.status. When coming back to configure, we
23441 # need to make the FD available again.
23442 if test "$no_create" != yes; then
23443 ac_cs_success=:
23444 ac_config_status_args=
23445 test "$silent" = yes &&
23446 ac_config_status_args="$ac_config_status_args --quiet"
23447 exec 5>/dev/null
23448 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23449 exec 5>>config.log
23450 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23451 # would make configure fail if this is the last instruction.
23452 $ac_cs_success || { (exit 1); exit 1; }
23453 fi
23454
23455 #
23456 # CONFIG_SUBDIRS section.
23457 #
23458 if test "$no_recursion" != yes; then
23459
23460 # Remove --cache-file and --srcdir arguments so they do not pile up.
23461 ac_sub_configure_args=
23462 ac_prev=
23463 for ac_arg in $ac_configure_args; do
23464 if test -n "$ac_prev"; then
23465 ac_prev=
23466 continue
23467 fi
23468 case $ac_arg in
23469 -cache-file | --cache-file | --cache-fil | --cache-fi \
23470 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23471 ac_prev=cache_file ;;
23472 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23473 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23474 | --c=*)
23475 ;;
23476 --config-cache | -C)
23477 ;;
23478 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23479 ac_prev=srcdir ;;
23480 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23481 ;;
23482 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23483 ac_prev=prefix ;;
23484 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23485 ;;
23486 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23487 esac
23488 done
23489
23490 # Always prepend --prefix to ensure using the same prefix
23491 # in subdir configurations.
23492 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23493
23494 ac_popdir=`pwd`
23495 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23496
23497 # Do not complain, so a configure script can configure whichever
23498 # parts of a large source tree are present.
23499 test -d $srcdir/$ac_dir || continue
23500
23501 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23502 echo "$as_me: configuring in $ac_dir" >&6;}
23503 { if $as_mkdir_p; then
23504 mkdir -p "$ac_dir"
23505 else
23506 as_dir="$ac_dir"
23507 as_dirs=
23508 while test ! -d "$as_dir"; do
23509 as_dirs="$as_dir $as_dirs"
23510 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23512 X"$as_dir" : 'X\(//\)[^/]' \| \
23513 X"$as_dir" : 'X\(//\)$' \| \
23514 X"$as_dir" : 'X\(/\)' \| \
23515 . : '\(.\)' 2>/dev/null ||
23516 echo X"$as_dir" |
23517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23519 /^X\(\/\/\)$/{ s//\1/; q; }
23520 /^X\(\/\).*/{ s//\1/; q; }
23521 s/.*/./; q'`
23522 done
23523 test ! -n "$as_dirs" || mkdir $as_dirs
23524 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23525 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23526 { (exit 1); exit 1; }; }; }
23527
23528 ac_builddir=.
23529
23530 if test "$ac_dir" != .; then
23531 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23532 # A "../" for each directory in $ac_dir_suffix.
23533 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23534 else
23535 ac_dir_suffix= ac_top_builddir=
23536 fi
23537
23538 case $srcdir in
23539 .) # No --srcdir option. We are building in place.
23540 ac_srcdir=.
23541 if test -z "$ac_top_builddir"; then
23542 ac_top_srcdir=.
23543 else
23544 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23545 fi ;;
23546 [\\/]* | ?:[\\/]* ) # Absolute path.
23547 ac_srcdir=$srcdir$ac_dir_suffix;
23548 ac_top_srcdir=$srcdir ;;
23549 *) # Relative path.
23550 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23551 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23552 esac
23553
23554 # Do not use `cd foo && pwd` to compute absolute paths, because
23555 # the directories may not exist.
23556 case `pwd` in
23557 .) ac_abs_builddir="$ac_dir";;
23558 *)
23559 case "$ac_dir" in
23560 .) ac_abs_builddir=`pwd`;;
23561 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23562 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23563 esac;;
23564 esac
23565 case $ac_abs_builddir in
23566 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23567 *)
23568 case ${ac_top_builddir}. in
23569 .) ac_abs_top_builddir=$ac_abs_builddir;;
23570 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23571 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23572 esac;;
23573 esac
23574 case $ac_abs_builddir in
23575 .) ac_abs_srcdir=$ac_srcdir;;
23576 *)
23577 case $ac_srcdir in
23578 .) ac_abs_srcdir=$ac_abs_builddir;;
23579 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23580 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23581 esac;;
23582 esac
23583 case $ac_abs_builddir in
23584 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23585 *)
23586 case $ac_top_srcdir in
23587 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23588 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23589 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23590 esac;;
23591 esac
23592
23593
23594 cd $ac_dir
23595
23596 # Check for guested configure; otherwise get Cygnus style configure.
23597 if test -f $ac_srcdir/configure.gnu; then
23598 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23599 elif test -f $ac_srcdir/configure; then
23600 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23601 elif test -f $ac_srcdir/configure.in; then
23602 ac_sub_configure=$ac_configure
23603 else
23604 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23605 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23606 ac_sub_configure=
23607 fi
23608
23609 # The recursion is here.
23610 if test -n "$ac_sub_configure"; then
23611 # Make the cache file name correct relative to the subdirectory.
23612 case $cache_file in
23613 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23614 *) # Relative path.
23615 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23616 esac
23617
23618 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23619 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23620 # The eval makes quoting arguments work.
23621 eval $ac_sub_configure $ac_sub_configure_args \
23622 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23623 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23624 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23625 { (exit 1); exit 1; }; }
23626 fi
23627
23628 cd $ac_popdir
23629 done
23630 fi
23631
23632
23633 if test x"$coin_vpath_link_files" = x; then : ; else
23634 lnkcmd="$coin_link_input_cmd"
23635 if test "$lnkcmd" = cp; then
23636 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
23637 echo "$as_me: Copying data files for VPATH configuration" >&6;}
23638 else
23639 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
23640 echo "$as_me: Creating VPATH links for data files" >&6;}
23641 fi
23642 for file in $coin_vpath_link_files; do
23643 dir=`(dirname "./$file") 2>/dev/null ||
23644 $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23645 X"./$file" : 'X\(//\)[^/]' \| \
23646 X"./$file" : 'X\(//\)$' \| \
23647 X"./$file" : 'X\(/\)' \| \
23648 . : '\(.\)' 2>/dev/null ||
23649 echo X"./$file" |
23650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23651 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23652 /^X\(\/\/\)$/{ s//\1/; q; }
23653 /^X\(\/\).*/{ s//\1/; q; }
23654 s/.*/./; q'`
23655 if test -d $dir; then : ; else
23656 { if $as_mkdir_p; then
23657 mkdir -p $dir
23658 else
23659 as_dir=$dir
23660 as_dirs=
23661 while test ! -d "$as_dir"; do
23662 as_dirs="$as_dir $as_dirs"
23663 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23665 X"$as_dir" : 'X\(//\)[^/]' \| \
23666 X"$as_dir" : 'X\(//\)$' \| \
23667 X"$as_dir" : 'X\(/\)' \| \
23668 . : '\(.\)' 2>/dev/null ||
23669 echo X"$as_dir" |
23670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23672 /^X\(\/\/\)$/{ s//\1/; q; }
23673 /^X\(\/\).*/{ s//\1/; q; }
23674 s/.*/./; q'`
23675 done
23676 test ! -n "$as_dirs" || mkdir $as_dirs
23677 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
23678 echo "$as_me: error: cannot create directory $dir" >&2;}
23679 { (exit 1); exit 1; }; }; }
23680
23681 fi
23682 rm -f $file
23683 $lnkcmd $abs_source_dir/$file $file
23684 done
23685 fi
23686
23687 { 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
23688 echo "$as_me: In case of trouble, first consult the troubleshooting page at https://github.com/coin-or-tools/BuildTools/wiki/user-troubleshooting" >&6;}
23689 if test x$coin_projectdir = xyes; then
23690 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
23691 echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
23692 else
23693 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
23694 echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
23695 fi
23696 else
23697 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
23698 echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
23699 fi
23700
23701