Debian Codegraph @

configure

raw symbols SCIP
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 Cgl 0.60.9.
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='Cgl'
432 PACKAGE_TARNAME='cgl'
433 PACKAGE_VERSION='0.60.9'
434 PACKAGE_STRING='Cgl 0.60.9'
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 Data/Sample"
477 ac_subdirs_all="$ac_subdirs_all CoinUtils"
478 ac_subdirs_all="$ac_subdirs_all Osi"
479 ac_subdirs_all="$ac_subdirs_all Clp"
480 ac_subdirs_all="$ac_subdirs_all Vol"
481 ac_subdirs_all="$ac_subdirs_all DyLP"
482 ac_subdirs_all="$ac_subdirs_all Cgl"
483 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'
484 ac_subst_files=''
485
486 # Initialize some variables set by options.
487 ac_init_help=
488 ac_init_version=false
489 # The variables have the same names as the options, with
490 # dashes changed to underlines.
491 cache_file=/dev/null
492 exec_prefix=NONE
493 no_create=
494 no_recursion=
495 prefix=NONE
496 program_prefix=NONE
497 program_suffix=NONE
498 program_transform_name=s,x,x,
499 silent=
500 site=
501 srcdir=
502 verbose=
503 x_includes=NONE
504 x_libraries=NONE
505
506 # Installation directory options.
507 # These are left unexpanded so users can "make install exec_prefix=/foo"
508 # and all the variables that are supposed to be based on exec_prefix
509 # by default will actually change.
510 # Use braces instead of parens because sh, perl, etc. also accept them.
511 bindir='${exec_prefix}/bin'
512 sbindir='${exec_prefix}/sbin'
513 libexecdir='${exec_prefix}/libexec'
514 datadir='${prefix}/share'
515 sysconfdir='${prefix}/etc'
516 sharedstatedir='${prefix}/com'
517 localstatedir='${prefix}/var'
518 libdir='${exec_prefix}/lib'
519 includedir='${prefix}/include'
520 oldincludedir='/usr/include'
521 infodir='${prefix}/info'
522 mandir='${prefix}/man'
523
524 ac_prev=
525 for ac_option
526 do
527 # If the previous option needs an argument, assign it.
528 if test -n "$ac_prev"; then
529 eval "$ac_prev=\$ac_option"
530 ac_prev=
531 continue
532 fi
533
534 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
535
536 # Accept the important Cygnus configure options, so we can diagnose typos.
537
538 case $ac_option in
539
540 -bindir | --bindir | --bindi | --bind | --bin | --bi)
541 ac_prev=bindir ;;
542 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
543 bindir=$ac_optarg ;;
544
545 -build | --build | --buil | --bui | --bu)
546 ac_prev=build_alias ;;
547 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
548 build_alias=$ac_optarg ;;
549
550 -cache-file | --cache-file | --cache-fil | --cache-fi \
551 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
552 ac_prev=cache_file ;;
553 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
554 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
555 cache_file=$ac_optarg ;;
556
557 --config-cache | -C)
558 cache_file=config.cache ;;
559
560 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
561 ac_prev=datadir ;;
562 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
563 | --da=*)
564 datadir=$ac_optarg ;;
565
566 -disable-* | --disable-*)
567 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
568 # Reject names that are not valid shell variable names.
569 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
570 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
571 { (exit 1); exit 1; }; }
572 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
573 eval "enable_$ac_feature=no" ;;
574
575 -enable-* | --enable-*)
576 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
577 # Reject names that are not valid shell variable names.
578 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
579 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
580 { (exit 1); exit 1; }; }
581 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
582 case $ac_option in
583 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
584 *) ac_optarg=yes ;;
585 esac
586 eval "enable_$ac_feature='$ac_optarg'" ;;
587
588 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
589 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
590 | --exec | --exe | --ex)
591 ac_prev=exec_prefix ;;
592 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
593 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
594 | --exec=* | --exe=* | --ex=*)
595 exec_prefix=$ac_optarg ;;
596
597 -gas | --gas | --ga | --g)
598 # Obsolete; use --with-gas.
599 with_gas=yes ;;
600
601 -help | --help | --hel | --he | -h)
602 ac_init_help=long ;;
603 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
604 ac_init_help=recursive ;;
605 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
606 ac_init_help=short ;;
607
608 -host | --host | --hos | --ho)
609 ac_prev=host_alias ;;
610 -host=* | --host=* | --hos=* | --ho=*)
611 host_alias=$ac_optarg ;;
612
613 -includedir | --includedir | --includedi | --included | --include \
614 | --includ | --inclu | --incl | --inc)
615 ac_prev=includedir ;;
616 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
617 | --includ=* | --inclu=* | --incl=* | --inc=*)
618 includedir=$ac_optarg ;;
619
620 -infodir | --infodir | --infodi | --infod | --info | --inf)
621 ac_prev=infodir ;;
622 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
623 infodir=$ac_optarg ;;
624
625 -libdir | --libdir | --libdi | --libd)
626 ac_prev=libdir ;;
627 -libdir=* | --libdir=* | --libdi=* | --libd=*)
628 libdir=$ac_optarg ;;
629
630 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
631 | --libexe | --libex | --libe)
632 ac_prev=libexecdir ;;
633 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
634 | --libexe=* | --libex=* | --libe=*)
635 libexecdir=$ac_optarg ;;
636
637 -localstatedir | --localstatedir | --localstatedi | --localstated \
638 | --localstate | --localstat | --localsta | --localst \
639 | --locals | --local | --loca | --loc | --lo)
640 ac_prev=localstatedir ;;
641 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
642 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
643 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
644 localstatedir=$ac_optarg ;;
645
646 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
647 ac_prev=mandir ;;
648 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
649 mandir=$ac_optarg ;;
650
651 -nfp | --nfp | --nf)
652 # Obsolete; use --without-fp.
653 with_fp=no ;;
654
655 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
656 | --no-cr | --no-c | -n)
657 no_create=yes ;;
658
659 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
660 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
661 no_recursion=yes ;;
662
663 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
664 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
665 | --oldin | --oldi | --old | --ol | --o)
666 ac_prev=oldincludedir ;;
667 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
668 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
669 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
670 oldincludedir=$ac_optarg ;;
671
672 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
673 ac_prev=prefix ;;
674 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
675 prefix=$ac_optarg ;;
676
677 -program-prefix | --program-prefix | --program-prefi | --program-pref \
678 | --program-pre | --program-pr | --program-p)
679 ac_prev=program_prefix ;;
680 -program-prefix=* | --program-prefix=* | --program-prefi=* \
681 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
682 program_prefix=$ac_optarg ;;
683
684 -program-suffix | --program-suffix | --program-suffi | --program-suff \
685 | --program-suf | --program-su | --program-s)
686 ac_prev=program_suffix ;;
687 -program-suffix=* | --program-suffix=* | --program-suffi=* \
688 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
689 program_suffix=$ac_optarg ;;
690
691 -program-transform-name | --program-transform-name \
692 | --program-transform-nam | --program-transform-na \
693 | --program-transform-n | --program-transform- \
694 | --program-transform | --program-transfor \
695 | --program-transfo | --program-transf \
696 | --program-trans | --program-tran \
697 | --progr-tra | --program-tr | --program-t)
698 ac_prev=program_transform_name ;;
699 -program-transform-name=* | --program-transform-name=* \
700 | --program-transform-nam=* | --program-transform-na=* \
701 | --program-transform-n=* | --program-transform-=* \
702 | --program-transform=* | --program-transfor=* \
703 | --program-transfo=* | --program-transf=* \
704 | --program-trans=* | --program-tran=* \
705 | --progr-tra=* | --program-tr=* | --program-t=*)
706 program_transform_name=$ac_optarg ;;
707
708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
709 | -silent | --silent | --silen | --sile | --sil)
710 silent=yes ;;
711
712 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
713 ac_prev=sbindir ;;
714 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
715 | --sbi=* | --sb=*)
716 sbindir=$ac_optarg ;;
717
718 -sharedstatedir | --sharedstatedir | --sharedstatedi \
719 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
720 | --sharedst | --shareds | --shared | --share | --shar \
721 | --sha | --sh)
722 ac_prev=sharedstatedir ;;
723 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
724 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
725 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
726 | --sha=* | --sh=*)
727 sharedstatedir=$ac_optarg ;;
728
729 -site | --site | --sit)
730 ac_prev=site ;;
731 -site=* | --site=* | --sit=*)
732 site=$ac_optarg ;;
733
734 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
735 ac_prev=srcdir ;;
736 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
737 srcdir=$ac_optarg ;;
738
739 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
740 | --syscon | --sysco | --sysc | --sys | --sy)
741 ac_prev=sysconfdir ;;
742 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
743 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
744 sysconfdir=$ac_optarg ;;
745
746 -target | --target | --targe | --targ | --tar | --ta | --t)
747 ac_prev=target_alias ;;
748 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
749 target_alias=$ac_optarg ;;
750
751 -v | -verbose | --verbose | --verbos | --verbo | --verb)
752 verbose=yes ;;
753
754 -version | --version | --versio | --versi | --vers | -V)
755 ac_init_version=: ;;
756
757 -with-* | --with-*)
758 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package| sed 's/-/_/g'`
764 case $ac_option in
765 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
766 *) ac_optarg=yes ;;
767 esac
768 eval "with_$ac_package='$ac_optarg'" ;;
769
770 -without-* | --without-*)
771 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
772 # Reject names that are not valid shell variable names.
773 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
774 { echo "$as_me: error: invalid package name: $ac_package" >&2
775 { (exit 1); exit 1; }; }
776 ac_package=`echo $ac_package | sed 's/-/_/g'`
777 eval "with_$ac_package=no" ;;
778
779 --x)
780 # Obsolete; use --with-x.
781 with_x=yes ;;
782
783 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
784 | --x-incl | --x-inc | --x-in | --x-i)
785 ac_prev=x_includes ;;
786 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
787 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
788 x_includes=$ac_optarg ;;
789
790 -x-libraries | --x-libraries | --x-librarie | --x-librari \
791 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
792 ac_prev=x_libraries ;;
793 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
794 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
795 x_libraries=$ac_optarg ;;
796
797 -*) { echo "$as_me: error: unrecognized option: $ac_option
798 Try \`$0 --help' for more information." >&2
799 { (exit 1); exit 1; }; }
800 ;;
801
802 *=*)
803 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
804 # Reject names that are not valid shell variable names.
805 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
806 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
807 { (exit 1); exit 1; }; }
808 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
809 eval "$ac_envvar='$ac_optarg'"
810 export $ac_envvar ;;
811
812 *)
813 # FIXME: should be removed in autoconf 3.0.
814 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
815 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
816 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
817 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
818 ;;
819
820 esac
821 done
822
823 if test -n "$ac_prev"; then
824 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
825 { echo "$as_me: error: missing argument to $ac_option" >&2
826 { (exit 1); exit 1; }; }
827 fi
828
829 # Be sure to have absolute paths.
830 for ac_var in exec_prefix prefix
831 do
832 eval ac_val=$`echo $ac_var`
833 case $ac_val in
834 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
837 esac
838 done
839
840 # Be sure to have absolute paths.
841 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
842 localstatedir libdir includedir oldincludedir infodir mandir
843 do
844 eval ac_val=$`echo $ac_var`
845 case $ac_val in
846 [\\/$]* | ?:[\\/]* ) ;;
847 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
848 { (exit 1); exit 1; }; };;
849 esac
850 done
851
852 # There might be people who depend on the old broken behavior: `$host'
853 # used to hold the argument of --host etc.
854 # FIXME: To remove some day.
855 build=$build_alias
856 host=$host_alias
857 target=$target_alias
858
859 # FIXME: To remove some day.
860 if test "x$host_alias" != x; then
861 if test "x$build_alias" = x; then
862 cross_compiling=maybe
863 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
864 If a cross compiler is detected then cross compile mode will be used." >&2
865 elif test "x$build_alias" != "x$host_alias"; then
866 cross_compiling=yes
867 fi
868 fi
869
870 ac_tool_prefix=
871 test -n "$host_alias" && ac_tool_prefix=$host_alias-
872
873 test "$silent" = yes && exec 6>/dev/null
874
875
876 # Find the source files, if location was not specified.
877 if test -z "$srcdir"; then
878 ac_srcdir_defaulted=yes
879 # Try the directory containing this script, then its parent.
880 ac_confdir=`(dirname "$0") 2>/dev/null ||
881 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
882 X"$0" : 'X\(//\)[^/]' \| \
883 X"$0" : 'X\(//\)$' \| \
884 X"$0" : 'X\(/\)' \| \
885 . : '\(.\)' 2>/dev/null ||
886 echo X"$0" |
887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
889 /^X\(\/\/\)$/{ s//\1/; q; }
890 /^X\(\/\).*/{ s//\1/; q; }
891 s/.*/./; q'`
892 srcdir=$ac_confdir
893 if test ! -r $srcdir/$ac_unique_file; then
894 srcdir=..
895 fi
896 else
897 ac_srcdir_defaulted=no
898 fi
899 if test ! -r $srcdir/$ac_unique_file; then
900 if test "$ac_srcdir_defaulted" = yes; then
901 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
902 { (exit 1); exit 1; }; }
903 else
904 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
905 { (exit 1); exit 1; }; }
906 fi
907 fi
908 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
909 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
910 { (exit 1); exit 1; }; }
911 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
912 ac_env_build_alias_set=${build_alias+set}
913 ac_env_build_alias_value=$build_alias
914 ac_cv_env_build_alias_set=${build_alias+set}
915 ac_cv_env_build_alias_value=$build_alias
916 ac_env_host_alias_set=${host_alias+set}
917 ac_env_host_alias_value=$host_alias
918 ac_cv_env_host_alias_set=${host_alias+set}
919 ac_cv_env_host_alias_value=$host_alias
920 ac_env_target_alias_set=${target_alias+set}
921 ac_env_target_alias_value=$target_alias
922 ac_cv_env_target_alias_set=${target_alias+set}
923 ac_cv_env_target_alias_value=$target_alias
924 ac_env_CDEFS_set=${CDEFS+set}
925 ac_env_CDEFS_value=$CDEFS
926 ac_cv_env_CDEFS_set=${CDEFS+set}
927 ac_cv_env_CDEFS_value=$CDEFS
928 ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
929 ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
930 ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
931 ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
932 ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
933 ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
934 ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
935 ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
936 ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
937 ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
938 ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
939 ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
940 ac_env_CC_set=${CC+set}
941 ac_env_CC_value=$CC
942 ac_cv_env_CC_set=${CC+set}
943 ac_cv_env_CC_value=$CC
944 ac_env_CFLAGS_set=${CFLAGS+set}
945 ac_env_CFLAGS_value=$CFLAGS
946 ac_cv_env_CFLAGS_set=${CFLAGS+set}
947 ac_cv_env_CFLAGS_value=$CFLAGS
948 ac_env_LDFLAGS_set=${LDFLAGS+set}
949 ac_env_LDFLAGS_value=$LDFLAGS
950 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
951 ac_cv_env_LDFLAGS_value=$LDFLAGS
952 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
953 ac_env_CPPFLAGS_value=$CPPFLAGS
954 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
955 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
956 ac_env_MPICC_set=${MPICC+set}
957 ac_env_MPICC_value=$MPICC
958 ac_cv_env_MPICC_set=${MPICC+set}
959 ac_cv_env_MPICC_value=$MPICC
960 ac_env_CXXDEFS_set=${CXXDEFS+set}
961 ac_env_CXXDEFS_value=$CXXDEFS
962 ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
963 ac_cv_env_CXXDEFS_value=$CXXDEFS
964 ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
965 ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
966 ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
967 ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
968 ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
969 ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
970 ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
971 ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
972 ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
973 ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
974 ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
975 ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
976 ac_env_CXX_set=${CXX+set}
977 ac_env_CXX_value=$CXX
978 ac_cv_env_CXX_set=${CXX+set}
979 ac_cv_env_CXX_value=$CXX
980 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
981 ac_env_CXXFLAGS_value=$CXXFLAGS
982 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
983 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
984 ac_env_MPICXX_set=${MPICXX+set}
985 ac_env_MPICXX_value=$MPICXX
986 ac_cv_env_MPICXX_set=${MPICXX+set}
987 ac_cv_env_MPICXX_value=$MPICXX
988 ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
989 ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
990 ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
991 ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
992 ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
993 ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
994 ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
995 ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
996 ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
997 ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
998 ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
999 ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1000 ac_env_F77_set=${F77+set}
1001 ac_env_F77_value=$F77
1002 ac_cv_env_F77_set=${F77+set}
1003 ac_cv_env_F77_value=$F77
1004 ac_env_FFLAGS_set=${FFLAGS+set}
1005 ac_env_FFLAGS_value=$FFLAGS
1006 ac_cv_env_FFLAGS_set=${FFLAGS+set}
1007 ac_cv_env_FFLAGS_value=$FFLAGS
1008 ac_env_MPIF77_set=${MPIF77+set}
1009 ac_env_MPIF77_value=$MPIF77
1010 ac_cv_env_MPIF77_set=${MPIF77+set}
1011 ac_cv_env_MPIF77_value=$MPIF77
1012 ac_env_CPP_set=${CPP+set}
1013 ac_env_CPP_value=$CPP
1014 ac_cv_env_CPP_set=${CPP+set}
1015 ac_cv_env_CPP_value=$CPP
1016 ac_env_CXXCPP_set=${CXXCPP+set}
1017 ac_env_CXXCPP_value=$CXXCPP
1018 ac_cv_env_CXXCPP_set=${CXXCPP+set}
1019 ac_cv_env_CXXCPP_value=$CXXCPP
1020 ac_env_LT_LDFLAGS_set=${LT_LDFLAGS+set}
1021 ac_env_LT_LDFLAGS_value=$LT_LDFLAGS
1022 ac_cv_env_LT_LDFLAGS_set=${LT_LDFLAGS+set}
1023 ac_cv_env_LT_LDFLAGS_value=$LT_LDFLAGS
1024 ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1025 ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1026 ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1027 ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1028
1029 #
1030 # Report the --help message.
1031 #
1032 if test "$ac_init_help" = "long"; then
1033 # Omit some internal or obsolete options to make the list less imposing.
1034 # This message is too long to be a string in the A/UX 3.1 sh.
1035 cat <<_ACEOF
1036 \`configure' configures Cgl 0.60.9 to adapt to many kinds of systems.
1037
1038 Usage: $0 [OPTION]... [VAR=VALUE]...
1039
1040 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1041 VAR=VALUE. See below for descriptions of some of the useful variables.
1042
1043 Defaults for the options are specified in brackets.
1044
1045 Configuration:
1046 -h, --help display this help and exit
1047 --help=short display options specific to this package
1048 --help=recursive display the short help of all the included packages
1049 -V, --version display version information and exit
1050 -q, --quiet, --silent do not print \`checking...' messages
1051 --cache-file=FILE cache test results in FILE [disabled]
1052 -C, --config-cache alias for \`--cache-file=config.cache'
1053 -n, --no-create do not create output files
1054 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1055
1056 _ACEOF
1057
1058 cat <<_ACEOF
1059 Installation directories:
1060 --prefix=PREFIX install architecture-independent files in PREFIX
1061 [$ac_default_prefix]
1062 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1063 [PREFIX]
1064
1065 By default, \`make install' will install all the files in
1066 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1067 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1068 for instance \`--prefix=\$HOME'.
1069
1070 For better control, use the options below.
1071
1072 Fine tuning of the installation directories:
1073 --bindir=DIR user executables [EPREFIX/bin]
1074 --sbindir=DIR system admin executables [EPREFIX/sbin]
1075 --libexecdir=DIR program executables [EPREFIX/libexec]
1076 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1077 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1078 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1079 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1080 --libdir=DIR object code libraries [EPREFIX/lib]
1081 --includedir=DIR C header files [PREFIX/include]
1082 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1083 --infodir=DIR info documentation [PREFIX/info]
1084 --mandir=DIR man documentation [PREFIX/man]
1085 _ACEOF
1086
1087 cat <<\_ACEOF
1088
1089 Program names:
1090 --program-prefix=PREFIX prepend PREFIX to installed program names
1091 --program-suffix=SUFFIX append SUFFIX to installed program names
1092 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1093
1094 System types:
1095 --build=BUILD configure for building on BUILD [guessed]
1096 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1097 _ACEOF
1098 fi
1099
1100 if test -n "$ac_init_help"; then
1101 case $ac_init_help in
1102 short | recursive ) echo "Configuration of Cgl 0.60.9:";;
1103 esac
1104 cat <<\_ACEOF
1105
1106 Optional Features:
1107 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1108 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1109 --enable-debug compile all projects with debug options tests
1110 (implies --disable-shared)
1111
1112 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1113 --enable-static[=PKGS]
1114 build static libraries [default=no]
1115 --disable-dependency-tracking speeds up one-time build
1116 --enable-dependency-tracking do not reject slow dependency extractors
1117 --enable-maintainer-mode enable make rules and dependencies not useful
1118 (and sometimes confusing) to the casual installer
1119 --enable-shared[=PKGS]
1120 build shared libraries [default=yes]
1121 --enable-fast-install[=PKGS]
1122 optimize for fast installation [default=yes]
1123 --disable-libtool-lock avoid locking (might break parallel builds)
1124 --disable-dependency-linking
1125 disable linking library dependencies into shared
1126 libraries
1127
1128 Optional Packages:
1129 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1130 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1131 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1132 --with-pic try to use only PIC/non-PIC objects [default=use
1133 both]
1134 --with-tags[=TAGS]
1135 include additional configurations [automatic]
1136
1137 --with-sample-lib linker flags for using project Sample
1138 --with-sample-incdir directory with header files for using project Sample
1139 --with-sample-datadir directory with data files for using project Sample
1140 --with-coinutils-lib linker flags for using project CoinUtils
1141 --with-coinutils-incdir directory with header files for using project
1142 CoinUtils
1143 --with-coinutils-datadir
1144 directory with data files for using project
1145 CoinUtils
1146 --with-osi-lib linker flags for using project Osi
1147 --with-osi-incdir directory with header files for using project Osi
1148 --with-osi-datadir directory with data files for using project Osi
1149 --with-clp-lib linker flags for using project Clp
1150 --with-clp-incdir directory with header files for using project Clp
1151 --with-clp-datadir directory with data files for using project Clp
1152 --with-vol-lib linker flags for using project Vol
1153 --with-vol-incdir directory with header files for using project Vol
1154 --with-vol-datadir directory with data files for using project Vol
1155 --with-dylp-lib linker flags for using project DyLP
1156 --with-dylp-incdir directory with header files for using project DyLP
1157 --with-dylp-datadir directory with data files for using project DyLP
1158 --with-cgl-lib linker flags for using project Cgl
1159 --with-cgl-incdir directory with header files for using project Cgl
1160 --with-cgl-datadir directory with data files for using project Cgl
1161 --with-dot use dot (from graphviz) when creating documentation
1162 with doxygen if available; --without-dot to disable
1163
1164 Some influential environment variables:
1165 CDEFS Additional -D flags to be used when compiling C code.
1166 ADD_CFLAGS Additional C compiler options
1167 DBG_CFLAGS Debug C compiler options
1168 OPT_CFLAGS Optimize C compiler options
1169 CC C compiler command
1170 CFLAGS C compiler flags
1171 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1172 nonstandard directory <lib dir>
1173 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1174 headers in a nonstandard directory <include dir>
1175 MPICC C MPI Compiler
1176 CXXDEFS Additional -D flags to be used when compiling C++ code.
1177 ADD_CXXFLAGS
1178 Additional C++ compiler options
1179 DBG_CXXFLAGS
1180 Debug C++ compiler options
1181 OPT_CXXFLAGS
1182 Optimize C++ compiler options
1183 CXX C++ compiler command
1184 CXXFLAGS C++ compiler flags
1185 MPICXX C++ MPI Compiler
1186 ADD_FFLAGS Additional Fortran compiler options
1187 DBG_FFLAGS Debug Fortran compiler options
1188 OPT_FFLAGS Optimize Fortran compiler options
1189 F77 Fortran 77 compiler command
1190 FFLAGS Fortran 77 compiler flags
1191 MPIF77 Fortran MPI Compiler
1192 CPP C preprocessor
1193 CXXCPP C++ preprocessor
1194 LT_LDFLAGS Flags passed to libtool when building libraries or executables
1195 that are installed
1196 COIN_SKIP_PROJECTS
1197 Set to the subdirectories of projects that should be skipped in
1198 the configuration
1199
1200 Use these variables to override the choices made by `configure' or to help
1201 it to find libraries and programs with nonstandard names/locations.
1202
1203 Report bugs to <[email protected]>.
1204 _ACEOF
1205 fi
1206
1207 if test "$ac_init_help" = "recursive"; then
1208 # If there are subdirs, report their specific --help.
1209 ac_popdir=`pwd`
1210 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1211 test -d $ac_dir || continue
1212 ac_builddir=.
1213
1214 if test "$ac_dir" != .; then
1215 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1216 # A "../" for each directory in $ac_dir_suffix.
1217 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1218 else
1219 ac_dir_suffix= ac_top_builddir=
1220 fi
1221
1222 case $srcdir in
1223 .) # No --srcdir option. We are building in place.
1224 ac_srcdir=.
1225 if test -z "$ac_top_builddir"; then
1226 ac_top_srcdir=.
1227 else
1228 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1229 fi ;;
1230 [\\/]* | ?:[\\/]* ) # Absolute path.
1231 ac_srcdir=$srcdir$ac_dir_suffix;
1232 ac_top_srcdir=$srcdir ;;
1233 *) # Relative path.
1234 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1235 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1236 esac
1237
1238 # Do not use `cd foo && pwd` to compute absolute paths, because
1239 # the directories may not exist.
1240 case `pwd` in
1241 .) ac_abs_builddir="$ac_dir";;
1242 *)
1243 case "$ac_dir" in
1244 .) ac_abs_builddir=`pwd`;;
1245 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1246 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1247 esac;;
1248 esac
1249 case $ac_abs_builddir in
1250 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1251 *)
1252 case ${ac_top_builddir}. in
1253 .) ac_abs_top_builddir=$ac_abs_builddir;;
1254 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1255 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1256 esac;;
1257 esac
1258 case $ac_abs_builddir in
1259 .) ac_abs_srcdir=$ac_srcdir;;
1260 *)
1261 case $ac_srcdir in
1262 .) ac_abs_srcdir=$ac_abs_builddir;;
1263 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1264 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1265 esac;;
1266 esac
1267 case $ac_abs_builddir in
1268 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1269 *)
1270 case $ac_top_srcdir in
1271 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1272 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1273 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1274 esac;;
1275 esac
1276
1277 cd $ac_dir
1278 # Check for guested configure; otherwise get Cygnus style configure.
1279 if test -f $ac_srcdir/configure.gnu; then
1280 echo
1281 $SHELL $ac_srcdir/configure.gnu --help=recursive
1282 elif test -f $ac_srcdir/configure; then
1283 echo
1284 $SHELL $ac_srcdir/configure --help=recursive
1285 elif test -f $ac_srcdir/configure.ac ||
1286 test -f $ac_srcdir/configure.in; then
1287 echo
1288 $ac_configure --help
1289 else
1290 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1291 fi
1292 cd $ac_popdir
1293 done
1294 fi
1295
1296 test -n "$ac_init_help" && exit 0
1297 if $ac_init_version; then
1298 cat <<\_ACEOF
1299 Cgl configure 0.60.9
1300 generated by GNU Autoconf 2.59
1301
1302 Copyright (C) 2003 Free Software Foundation, Inc.
1303 This configure script is free software; the Free Software Foundation
1304 gives unlimited permission to copy, distribute and modify it.
1305
1306
1307 Copyright 2006 International Business Machines and others.
1308 All Rights Reserved.
1309 This file is part of the open source package Coin which is distributed
1310 under the Eclipse Public License.
1311 _ACEOF
1312 exit 0
1313 fi
1314 exec 5>config.log
1315 cat >&5 <<_ACEOF
1316 This file contains any messages produced by compilers while
1317 running configure, to aid debugging if configure makes a mistake.
1318
1319 It was created by Cgl $as_me 0.60.9, which was
1320 generated by GNU Autoconf 2.59. Invocation command line was
1321
1322 $ $0 $@
1323
1324 _ACEOF
1325 {
1326 cat <<_ASUNAME
1327 ## --------- ##
1328 ## Platform. ##
1329 ## --------- ##
1330
1331 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1332 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1333 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1334 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1335 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1336
1337 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1338 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1339
1340 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1341 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1342 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1343 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1344 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1345 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1346 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1347
1348 _ASUNAME
1349
1350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1351 for as_dir in $PATH
1352 do
1353 IFS=$as_save_IFS
1354 test -z "$as_dir" && as_dir=.
1355 echo "PATH: $as_dir"
1356 done
1357
1358 } >&5
1359
1360 cat >&5 <<_ACEOF
1361
1362
1363 ## ----------- ##
1364 ## Core tests. ##
1365 ## ----------- ##
1366
1367 _ACEOF
1368
1369
1370 # Keep a trace of the command line.
1371 # Strip out --no-create and --no-recursion so they do not pile up.
1372 # Strip out --silent because we don't want to record it for future runs.
1373 # Also quote any args containing shell meta-characters.
1374 # Make two passes to allow for proper duplicate-argument suppression.
1375 ac_configure_args=
1376 ac_configure_args0=
1377 ac_configure_args1=
1378 ac_sep=
1379 ac_must_keep_next=false
1380 for ac_pass in 1 2
1381 do
1382 for ac_arg
1383 do
1384 case $ac_arg in
1385 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1386 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1387 | -silent | --silent | --silen | --sile | --sil)
1388 continue ;;
1389 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1390 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1391 esac
1392 case $ac_pass in
1393 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1394 2)
1395 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1396 if test $ac_must_keep_next = true; then
1397 ac_must_keep_next=false # Got value, back to normal.
1398 else
1399 case $ac_arg in
1400 *=* | --config-cache | -C | -disable-* | --disable-* \
1401 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1402 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1403 | -with-* | --with-* | -without-* | --without-* | --x)
1404 case "$ac_configure_args0 " in
1405 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1406 esac
1407 ;;
1408 -* ) ac_must_keep_next=true ;;
1409 esac
1410 fi
1411 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1412 # Get rid of the leading space.
1413 ac_sep=" "
1414 ;;
1415 esac
1416 done
1417 done
1418 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1419 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1420
1421 # When interrupted or exit'd, cleanup temporary files, and complete
1422 # config.log. We remove comments because anyway the quotes in there
1423 # would cause problems or look ugly.
1424 # WARNING: Be sure not to use single quotes in there, as some shells,
1425 # such as our DU 5.0 friend, will then `close' the trap.
1426 trap 'exit_status=$?
1427 # Save into config.log some information that might help in debugging.
1428 {
1429 echo
1430
1431 cat <<\_ASBOX
1432 ## ---------------- ##
1433 ## Cache variables. ##
1434 ## ---------------- ##
1435 _ASBOX
1436 echo
1437 # The following way of writing the cache mishandles newlines in values,
1438 {
1439 (set) 2>&1 |
1440 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1441 *ac_space=\ *)
1442 sed -n \
1443 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1445 ;;
1446 *)
1447 sed -n \
1448 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1449 ;;
1450 esac;
1451 }
1452 echo
1453
1454 cat <<\_ASBOX
1455 ## ----------------- ##
1456 ## Output variables. ##
1457 ## ----------------- ##
1458 _ASBOX
1459 echo
1460 for ac_var in $ac_subst_vars
1461 do
1462 eval ac_val=$`echo $ac_var`
1463 echo "$ac_var='"'"'$ac_val'"'"'"
1464 done | sort
1465 echo
1466
1467 if test -n "$ac_subst_files"; then
1468 cat <<\_ASBOX
1469 ## ------------- ##
1470 ## Output files. ##
1471 ## ------------- ##
1472 _ASBOX
1473 echo
1474 for ac_var in $ac_subst_files
1475 do
1476 eval ac_val=$`echo $ac_var`
1477 echo "$ac_var='"'"'$ac_val'"'"'"
1478 done | sort
1479 echo
1480 fi
1481
1482 if test -s confdefs.h; then
1483 cat <<\_ASBOX
1484 ## ----------- ##
1485 ## confdefs.h. ##
1486 ## ----------- ##
1487 _ASBOX
1488 echo
1489 sed "/^$/d" confdefs.h | sort
1490 echo
1491 fi
1492 test "$ac_signal" != 0 &&
1493 echo "$as_me: caught signal $ac_signal"
1494 echo "$as_me: exit $exit_status"
1495 } >&5
1496 rm -f core *.core &&
1497 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1498 exit $exit_status
1499 ' 0
1500 for ac_signal in 1 2 13 15; do
1501 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1502 done
1503 ac_signal=0
1504
1505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1506 rm -rf conftest* confdefs.h
1507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1508 echo >confdefs.h
1509
1510 # Predefined preprocessor variables.
1511
1512 cat >>confdefs.h <<_ACEOF
1513 #define PACKAGE_NAME "$PACKAGE_NAME"
1514 _ACEOF
1515
1516
1517 cat >>confdefs.h <<_ACEOF
1518 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1519 _ACEOF
1520
1521
1522 cat >>confdefs.h <<_ACEOF
1523 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1524 _ACEOF
1525
1526
1527 cat >>confdefs.h <<_ACEOF
1528 #define PACKAGE_STRING "$PACKAGE_STRING"
1529 _ACEOF
1530
1531
1532 cat >>confdefs.h <<_ACEOF
1533 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1534 _ACEOF
1535
1536
1537 # Let the site file select an alternate cache file if it wants to.
1538 # Prefer explicitly selected file to automatically selected ones.
1539 if test -z "$CONFIG_SITE"; then
1540 if test "x$prefix" != xNONE; then
1541 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1542 else
1543 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1544 fi
1545 fi
1546 for ac_site_file in $CONFIG_SITE; do
1547 if test -r "$ac_site_file"; then
1548 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1549 echo "$as_me: loading site script $ac_site_file" >&6;}
1550 sed 's/^/| /' "$ac_site_file" >&5
1551 . "$ac_site_file"
1552 fi
1553 done
1554
1555 if test -r "$cache_file"; then
1556 # Some versions of bash will fail to source /dev/null (special
1557 # files actually), so we avoid doing that.
1558 if test -f "$cache_file"; then
1559 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1560 echo "$as_me: loading cache $cache_file" >&6;}
1561 case $cache_file in
1562 [\\/]* | ?:[\\/]* ) . $cache_file;;
1563 *) . ./$cache_file;;
1564 esac
1565 fi
1566 else
1567 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1568 echo "$as_me: creating cache $cache_file" >&6;}
1569 >$cache_file
1570 fi
1571
1572 # Check that the precious variables saved in the cache have kept the same
1573 # value.
1574 ac_cache_corrupted=false
1575 for ac_var in `(set) 2>&1 |
1576 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1577 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1578 eval ac_new_set=\$ac_env_${ac_var}_set
1579 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1580 eval ac_new_val="\$ac_env_${ac_var}_value"
1581 case $ac_old_set,$ac_new_set in
1582 set,)
1583 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1584 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1585 ac_cache_corrupted=: ;;
1586 ,set)
1587 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1588 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1589 ac_cache_corrupted=: ;;
1590 ,);;
1591 *)
1592 if test "x$ac_old_val" != "x$ac_new_val"; then
1593 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1594 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1595 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1596 echo "$as_me: former value: $ac_old_val" >&2;}
1597 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1598 echo "$as_me: current value: $ac_new_val" >&2;}
1599 ac_cache_corrupted=:
1600 fi;;
1601 esac
1602 # Pass precious variables to config.status.
1603 if test "$ac_new_set" = set; then
1604 case $ac_new_val in
1605 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1606 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1607 *) ac_arg=$ac_var=$ac_new_val ;;
1608 esac
1609 case " $ac_configure_args " in
1610 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1611 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1612 esac
1613 fi
1614 done
1615 if $ac_cache_corrupted; then
1616 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1617 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1618 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1619 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1620 { (exit 1); exit 1; }; }
1621 fi
1622
1623 ac_ext=c
1624 ac_cpp='$CPP $CPPFLAGS'
1625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660 # List one file in the package so that the configure script can test
1661 # whether the package is actually there
1662
1663
1664 # Where should everything be installed by default? Here, we want it
1665 # to be installed directly in 'bin', 'lib', 'include' subdirectories
1666 # of the directory where configure is run. The default would be
1667 # /usr/local.
1668
1669
1670 #############################################################################
1671 # Create the libtool script for the subdirectories #
1672 #############################################################################
1673
1674 ac_aux_dir=
1675 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1676 if test -f $ac_dir/install-sh; then
1677 ac_aux_dir=$ac_dir
1678 ac_install_sh="$ac_aux_dir/install-sh -c"
1679 break
1680 elif test -f $ac_dir/install.sh; then
1681 ac_aux_dir=$ac_dir
1682 ac_install_sh="$ac_aux_dir/install.sh -c"
1683 break
1684 elif test -f $ac_dir/shtool; then
1685 ac_aux_dir=$ac_dir
1686 ac_install_sh="$ac_aux_dir/shtool install -c"
1687 break
1688 fi
1689 done
1690 if test -z "$ac_aux_dir"; then
1691 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1692 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1693 { (exit 1); exit 1; }; }
1694 fi
1695 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1696 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1697 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1698
1699 # Make sure we can run config.sub.
1700 $ac_config_sub sun4 >/dev/null 2>&1 ||
1701 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1702 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1703 { (exit 1); exit 1; }; }
1704
1705 echo "$as_me:$LINENO: checking build system type" >&5
1706 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1707 if test "${ac_cv_build+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 else
1710 ac_cv_build_alias=$build_alias
1711 test -z "$ac_cv_build_alias" &&
1712 ac_cv_build_alias=`$ac_config_guess`
1713 test -z "$ac_cv_build_alias" &&
1714 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1715 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1716 { (exit 1); exit 1; }; }
1717 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1718 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1719 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1720 { (exit 1); exit 1; }; }
1721
1722 fi
1723 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1724 echo "${ECHO_T}$ac_cv_build" >&6
1725 build=$ac_cv_build
1726 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1727 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1728 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1729
1730
1731
1732 # Check if user wants to produce debugging code
1733
1734 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1735 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1736
1737 # Check whether --enable-debug or --disable-debug was given.
1738 if test "${enable_debug+set}" = set; then
1739 enableval="$enable_debug"
1740 case "${enableval}" in
1741 yes) coin_debug_compile=true
1742 if test "${enable_shared+set}" = set; then :; else
1743 enable_shared=no
1744 fi
1745 ;;
1746 no) coin_debug_compile=false
1747 ;;
1748 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1749 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1750 { (exit 1); exit 1; }; }
1751 ;;
1752 esac
1753 else
1754 coin_debug_compile=false
1755 fi;
1756
1757 # m4_ifvaln([],
1758
1759 if test $coin_debug_compile = true; then
1760 echo "$as_me:$LINENO: result: yes" >&5
1761 echo "${ECHO_T}yes" >&6
1762 else
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1765 fi
1766
1767 # m4_ifvaln([],
1768
1769
1770
1771 # Get the name of the C compiler and appropriate compiler options
1772
1773
1774 # for backward compatibility
1775 # Check whether --enable-doscompile or --disable-doscompile was given.
1776 if test "${enable_doscompile+set}" = set; then
1777 enableval="$enable_doscompile"
1778 enable_doscompile=$enableval
1779 else
1780 enable_doscompile=no
1781 fi;
1782
1783 # Check whether --enable-msvc or --disable-msvc was given.
1784 if test "${enable_msvc+set}" = set; then
1785 enableval="$enable_msvc"
1786 enable_msvc=$enableval
1787 else
1788 enable_msvc=no
1789 if test "$enable_doscompile" = msvc ; then
1790 enable_msvc=yes
1791 elif test "$enable_doscompile" != no ; then
1792 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1793 echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1794 { (exit 1); exit 1; }; }
1795 fi
1796
1797 fi;
1798
1799 if test "$enable_msvc" = MD; then
1800 enable_shared=yes
1801 enable_msvc=yes
1802 fi
1803
1804 if test "$enable_msvc" = yes; then
1805 case $build in
1806 *-cygwin* | *-mingw*) ;;
1807 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1808 echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1809 { (exit 1); exit 1; }; } ;;
1810 esac
1811 fi
1812
1813
1814
1815 ac_ext=c
1816 ac_cpp='$CPP $CPPFLAGS'
1817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1820
1821
1822 # For consistency, we set the C compiler to the same value of the C++
1823 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1824 if test x"$CXX" != x; then
1825 case "$CXX" in
1826 clang* | */clang* ) ;;
1827 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1828 if test x"$CC" = x; then
1829 CC="$CXX"
1830 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1831 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1832 fi
1833 ;;
1834 esac
1835 fi
1836
1837
1838
1839
1840
1841
1842 coin_has_cc=yes
1843
1844 save_cflags="$CFLAGS"
1845
1846 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1847 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
1848 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
1849 # compiler. In this case, put cc after gcc.
1850
1851 case $build in
1852 *-cygwin* | *-mingw*)
1853 if test "$enable_msvc" = yes ; then
1854 comps="icl cl gcc"
1855 else
1856 comps="gcc icl cl"
1857 fi ;;
1858 *-*-solaris*)
1859 # Extract the first word of "cc", so it can be a program name with args.
1860 set dummy cc; ac_word=$2
1861 echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 else
1866 if test -n "$sol_cc_compiler"; then
1867 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1868 else
1869 ac_prog_rejected=no
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1872 do
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1878 ac_prog_rejected=yes
1879 continue
1880 fi
1881 ac_cv_prog_sol_cc_compiler="cc"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 break 2
1884 fi
1885 done
1886 done
1887
1888 if test $ac_prog_rejected = yes; then
1889 # We found a bogon in the path, so make sure we never use it.
1890 set dummy $ac_cv_prog_sol_cc_compiler
1891 shift
1892 if test $# != 0; then
1893 # We chose a different compiler from the bogus one.
1894 # However, it has the same basename, so the bogon will be chosen
1895 # first if we set sol_cc_compiler to just the basename; use the full file name.
1896 shift
1897 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1898 fi
1899 fi
1900 fi
1901 fi
1902 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1903 if test -n "$sol_cc_compiler"; then
1904 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1905 echo "${ECHO_T}$sol_cc_compiler" >&6
1906 else
1907 echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1909 fi
1910
1911 if test "$sol_cc_compiler" = "cc" ; then
1912 comps="cc xlc gcc pgcc icc"
1913 else
1914 comps="xlc gcc pgcc icc cc"
1915 fi
1916 ;;
1917 *-*-darwin*) comps="clang gcc cc" ;;
1918 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1919 *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1920 *) comps="xlc_r xlc cc gcc pgcc icc" ;;
1921 esac
1922
1923 # We delete the cached value, since the test might not have been
1924 # performed with our choice of compilers earlier
1925 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1926 # AC_MSG_NOTICE([C compiler candidates: $comps])
1927 ac_ext=c
1928 ac_cpp='$CPP $CPPFLAGS'
1929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 if test -n "$ac_tool_prefix"; then
1933 for ac_prog in $comps
1934 do
1935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_CC+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942 if test -n "$CC"; then
1943 ac_cv_prog_CC="$CC" # Let the user override the test.
1944 else
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1947 do
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 break 2
1955 fi
1956 done
1957 done
1958
1959 fi
1960 fi
1961 CC=$ac_cv_prog_CC
1962 if test -n "$CC"; then
1963 echo "$as_me:$LINENO: result: $CC" >&5
1964 echo "${ECHO_T}$CC" >&6
1965 else
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1968 fi
1969
1970 test -n "$CC" && break
1971 done
1972 fi
1973 if test -z "$CC"; then
1974 ac_ct_CC=$CC
1975 for ac_prog in $comps
1976 do
1977 # Extract the first word of "$ac_prog", so it can be a program name with args.
1978 set dummy $ac_prog; ac_word=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984 if test -n "$ac_ct_CC"; then
1985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 ac_cv_prog_ac_ct_CC="$ac_prog"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
1997 fi
1998 done
1999 done
2000
2001 fi
2002 fi
2003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2004 if test -n "$ac_ct_CC"; then
2005 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2006 echo "${ECHO_T}$ac_ct_CC" >&6
2007 else
2008 echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6
2010 fi
2011
2012 test -n "$ac_ct_CC" && break
2013 done
2014
2015 CC=$ac_ct_CC
2016 fi
2017
2018
2019 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2020 See \`config.log' for more details." >&5
2021 echo "$as_me: error: no acceptable C compiler found in \$PATH
2022 See \`config.log' for more details." >&2;}
2023 { (exit 1); exit 1; }; }
2024
2025 # Provide some information about the compiler.
2026 echo "$as_me:$LINENO:" \
2027 "checking for C compiler version" >&5
2028 ac_compiler=`set X $ac_compile; echo $2`
2029 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2030 (eval $ac_compiler --version </dev/null >&5) 2>&5
2031 ac_status=$?
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }
2034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2035 (eval $ac_compiler -v </dev/null >&5) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }
2039 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2040 (eval $ac_compiler -V </dev/null >&5) 2>&5
2041 ac_status=$?
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }
2044
2045 cat >conftest.$ac_ext <<_ACEOF
2046 /* confdefs.h. */
2047 _ACEOF
2048 cat confdefs.h >>conftest.$ac_ext
2049 cat >>conftest.$ac_ext <<_ACEOF
2050 /* end confdefs.h. */
2051
2052 int
2053 main ()
2054 {
2055
2056 ;
2057 return 0;
2058 }
2059 _ACEOF
2060 ac_clean_files_save=$ac_clean_files
2061 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2062 # Try to create an executable without -o first, disregard a.out.
2063 # It will help us diagnose broken compilers, and finding out an intuition
2064 # of exeext.
2065 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2066 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2067 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2068 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2069 (eval $ac_link_default) 2>&5
2070 ac_status=$?
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; then
2073 # Find the output, starting from the most likely. This scheme is
2074 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2075 # resort.
2076
2077 # Be careful to initialize this variable, since it used to be cached.
2078 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2079 ac_cv_exeext=
2080 # b.out is created by i960 compilers.
2081 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2082 do
2083 test -f "$ac_file" || continue
2084 case $ac_file in
2085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2086 ;;
2087 conftest.$ac_ext )
2088 # This is the source file.
2089 ;;
2090 [ab].out )
2091 # We found the default executable, but exeext='' is most
2092 # certainly right.
2093 break;;
2094 *.* )
2095 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096 # FIXME: I believe we export ac_cv_exeext for Libtool,
2097 # but it would be cool to find out if it's true. Does anybody
2098 # maintain Libtool? --akim.
2099 export ac_cv_exeext
2100 break;;
2101 * )
2102 break;;
2103 esac
2104 done
2105 else
2106 echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2108
2109 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2110 See \`config.log' for more details." >&5
2111 echo "$as_me: error: C compiler cannot create executables
2112 See \`config.log' for more details." >&2;}
2113 { (exit 77); exit 77; }; }
2114 fi
2115
2116 ac_exeext=$ac_cv_exeext
2117 echo "$as_me:$LINENO: result: $ac_file" >&5
2118 echo "${ECHO_T}$ac_file" >&6
2119
2120 # Check the compiler produces executables we can run. If not, either
2121 # the compiler is broken, or we cross compile.
2122 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2123 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2124 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2125 # If not cross compiling, check that we can run a simple program.
2126 if test "$cross_compiling" != yes; then
2127 if { ac_try='./$ac_file'
2128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129 (eval $ac_try) 2>&5
2130 ac_status=$?
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }; }; then
2133 cross_compiling=no
2134 else
2135 if test "$cross_compiling" = maybe; then
2136 cross_compiling=yes
2137 else
2138 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2139 If you meant to cross compile, use \`--host'.
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: cannot run C compiled programs.
2142 If you meant to cross compile, use \`--host'.
2143 See \`config.log' for more details." >&2;}
2144 { (exit 1); exit 1; }; }
2145 fi
2146 fi
2147 fi
2148 echo "$as_me:$LINENO: result: yes" >&5
2149 echo "${ECHO_T}yes" >&6
2150
2151 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2152 ac_clean_files=$ac_clean_files_save
2153 # Check the compiler produces executables we can run. If not, either
2154 # the compiler is broken, or we cross compile.
2155 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2156 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2157 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2158 echo "${ECHO_T}$cross_compiling" >&6
2159
2160 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2161 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2163 (eval $ac_link) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; then
2167 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2168 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2169 # work properly (i.e., refer to `conftest.exe'), while it won't with
2170 # `rm'.
2171 for ac_file in conftest.exe conftest conftest.*; do
2172 test -f "$ac_file" || continue
2173 case $ac_file in
2174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2175 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176 export ac_cv_exeext
2177 break;;
2178 * ) break;;
2179 esac
2180 done
2181 else
2182 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2185 See \`config.log' for more details." >&2;}
2186 { (exit 1); exit 1; }; }
2187 fi
2188
2189 rm -f conftest$ac_cv_exeext
2190 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2191 echo "${ECHO_T}$ac_cv_exeext" >&6
2192
2193 rm -f conftest.$ac_ext
2194 EXEEXT=$ac_cv_exeext
2195 ac_exeext=$EXEEXT
2196 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2197 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2198 if test "${ac_cv_objext+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201 cat >conftest.$ac_ext <<_ACEOF
2202 /* confdefs.h. */
2203 _ACEOF
2204 cat confdefs.h >>conftest.$ac_ext
2205 cat >>conftest.$ac_ext <<_ACEOF
2206 /* end confdefs.h. */
2207
2208 int
2209 main ()
2210 {
2211
2212 ;
2213 return 0;
2214 }
2215 _ACEOF
2216 rm -f conftest.o conftest.obj
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; then
2222 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2223 case $ac_file in
2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2226 break;;
2227 esac
2228 done
2229 else
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2236 See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }
2238 fi
2239
2240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2241 fi
2242 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2243 echo "${ECHO_T}$ac_cv_objext" >&6
2244 OBJEXT=$ac_cv_objext
2245 ac_objext=$OBJEXT
2246 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2247 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2248 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251 cat >conftest.$ac_ext <<_ACEOF
2252 /* confdefs.h. */
2253 _ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2257
2258 int
2259 main ()
2260 {
2261 #ifndef __GNUC__
2262 choke me
2263 #endif
2264
2265 ;
2266 return 0;
2267 }
2268 _ACEOF
2269 rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2272 ac_status=$?
2273 grep -v '^ *+' conftest.er1 >conftest.err
2274 rm -f conftest.er1
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -z "$ac_c_werror_flag"
2279 || test ! -s conftest.err'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 (eval $ac_try) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 ac_compiler_gnu=yes
2292 else
2293 echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2295
2296 ac_compiler_gnu=no
2297 fi
2298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2300
2301 fi
2302 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2303 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2304 GCC=`test $ac_compiler_gnu = yes && echo yes`
2305 ac_test_CFLAGS=${CFLAGS+set}
2306 ac_save_CFLAGS=$CFLAGS
2307 CFLAGS="-g"
2308 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2309 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2310 if test "${ac_cv_prog_cc_g+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 cat >conftest.$ac_ext <<_ACEOF
2314 /* confdefs.h. */
2315 _ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2319
2320 int
2321 main ()
2322 {
2323
2324 ;
2325 return 0;
2326 }
2327 _ACEOF
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>conftest.er1
2331 ac_status=$?
2332 grep -v '^ *+' conftest.er1 >conftest.err
2333 rm -f conftest.er1
2334 cat conftest.err >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } &&
2337 { ac_try='test -z "$ac_c_werror_flag"
2338 || test ! -s conftest.err'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; } &&
2344 { ac_try='test -s conftest.$ac_objext'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346 (eval $ac_try) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2350 ac_cv_prog_cc_g=yes
2351 else
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2354
2355 ac_cv_prog_cc_g=no
2356 fi
2357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2358 fi
2359 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2360 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2361 if test "$ac_test_CFLAGS" = set; then
2362 CFLAGS=$ac_save_CFLAGS
2363 elif test $ac_cv_prog_cc_g = yes; then
2364 if test "$GCC" = yes; then
2365 CFLAGS="-g -O2"
2366 else
2367 CFLAGS="-g"
2368 fi
2369 else
2370 if test "$GCC" = yes; then
2371 CFLAGS="-O2"
2372 else
2373 CFLAGS=
2374 fi
2375 fi
2376 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2377 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2378 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381 ac_cv_prog_cc_stdc=no
2382 ac_save_CC=$CC
2383 cat >conftest.$ac_ext <<_ACEOF
2384 /* confdefs.h. */
2385 _ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2389 #include <stdarg.h>
2390 #include <stdio.h>
2391 #include <sys/types.h>
2392 #include <sys/stat.h>
2393 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2394 struct buf { int x; };
2395 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2396 static char *e (p, i)
2397 char **p;
2398 int i;
2399 {
2400 return p[i];
2401 }
2402 static char *f (char * (*g) (char **, int), char **p, ...)
2403 {
2404 char *s;
2405 va_list v;
2406 va_start (v,p);
2407 s = g (p, va_arg (v,int));
2408 va_end (v);
2409 return s;
2410 }
2411
2412 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2413 function prototypes and stuff, but not '\xHH' hex character constants.
2414 These don't provoke an error unfortunately, instead are silently treated
2415 as 'x'. The following induces an error, until -std1 is added to get
2416 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2417 array size at least. It's necessary to write '\x00'==0 to get something
2418 that's true only with -std1. */
2419 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2420
2421 int test (int i, double x);
2422 struct s1 {int (*f) (int a);};
2423 struct s2 {int (*f) (double a);};
2424 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2425 int argc;
2426 char **argv;
2427 int
2428 main ()
2429 {
2430 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2431 ;
2432 return 0;
2433 }
2434 _ACEOF
2435 # Don't try gcc -ansi; that turns off useful extensions and
2436 # breaks some systems' header files.
2437 # AIX -qlanglvl=ansi
2438 # Ultrix and OSF/1 -std1
2439 # HP-UX 10.20 and later -Ae
2440 # HP-UX older versions -Aa -D_HPUX_SOURCE
2441 # SVR4 -Xc -D__EXTENSIONS__
2442 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2443 do
2444 CC="$ac_save_CC $ac_arg"
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 ac_cv_prog_cc_stdc=$ac_arg
2468 break
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2472
2473 fi
2474 rm -f conftest.err conftest.$ac_objext
2475 done
2476 rm -f conftest.$ac_ext conftest.$ac_objext
2477 CC=$ac_save_CC
2478
2479 fi
2480
2481 case "x$ac_cv_prog_cc_stdc" in
2482 x|xno)
2483 echo "$as_me:$LINENO: result: none needed" >&5
2484 echo "${ECHO_T}none needed" >&6 ;;
2485 *)
2486 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2487 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2488 CC="$CC $ac_cv_prog_cc_stdc" ;;
2489 esac
2490
2491 # Some people use a C++ compiler to compile C. Since we use `exit',
2492 # in C++ we need to declare it. In case someone uses the same compiler
2493 # for both compiling C and C++ we need to have the C++ compiler decide
2494 # the declaration of exit, since it's the most demanding environment.
2495 cat >conftest.$ac_ext <<_ACEOF
2496 #ifndef __cplusplus
2497 choke me
2498 #endif
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 for ac_declaration in \
2523 '' \
2524 'extern "C" void std::exit (int) throw (); using std::exit;' \
2525 'extern "C" void std::exit (int); using std::exit;' \
2526 'extern "C" void exit (int) throw ();' \
2527 'extern "C" void exit (int);' \
2528 'void exit (int);'
2529 do
2530 cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h. */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2536 $ac_declaration
2537 #include <stdlib.h>
2538 int
2539 main ()
2540 {
2541 exit (42);
2542 ;
2543 return 0;
2544 }
2545 _ACEOF
2546 rm -f conftest.$ac_objext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2549 ac_status=$?
2550 grep -v '^ *+' conftest.er1 >conftest.err
2551 rm -f conftest.er1
2552 cat conftest.err >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -z "$ac_c_werror_flag"
2556 || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 :
2569 else
2570 echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573 continue
2574 fi
2575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2576 cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h. */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2582 $ac_declaration
2583 int
2584 main ()
2585 {
2586 exit (42);
2587 ;
2588 return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>conftest.er1
2594 ac_status=$?
2595 grep -v '^ *+' conftest.er1 >conftest.err
2596 rm -f conftest.er1
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -z "$ac_c_werror_flag"
2601 || test ! -s conftest.err'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; } &&
2607 { ac_try='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 break
2614 else
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2617
2618 fi
2619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2620 done
2621 rm -f conftest*
2622 if test -n "$ac_declaration"; then
2623 echo '#ifdef __cplusplus' >>confdefs.h
2624 echo $ac_declaration >>confdefs.h
2625 echo '#endif' >>confdefs.h
2626 fi
2627
2628 else
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632 fi
2633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2634 ac_ext=c
2635 ac_cpp='$CPP $CPPFLAGS'
2636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639
2640 if test -z "$CC" ; then
2641 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2642 echo "$as_me: error: Failed to find a C compiler!" >&2;}
2643 { (exit 1); exit 1; }; }
2644 fi
2645 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2646 case "$CC" in
2647 clang* | */clang* ) ;;
2648 cl* | */cl* | CL* | */CL* )
2649 if test "$ac_cv_prog_cc_g" = yes ; then
2650 ac_cv_prog_cc_g=no
2651 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2652 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2653 fi ;;
2654 * )
2655 if test x"$CYGPATH_W" = x ; then
2656 CYGPATH_W=echo
2657 fi
2658 ;;
2659 esac
2660 CFLAGS="$save_cflags"
2661
2662 # add automake conditional so we can recognize cl compiler in makefile
2663 coin_cc_is_cl=false
2664 case "$CC" in
2665 clang* | */clang* ) ;;
2666 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2667 coin_cc_is_cl=true
2668 ;;
2669 esac
2670
2671
2672 if test $coin_cc_is_cl = true; then
2673 COIN_CC_IS_CL_TRUE=
2674 COIN_CC_IS_CL_FALSE='#'
2675 else
2676 COIN_CC_IS_CL_TRUE='#'
2677 COIN_CC_IS_CL_FALSE=
2678 fi
2679
2680
2681 # Check if a project specific CFLAGS variable has been set
2682 if test x$COIN_PRJCT != x; then
2683 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2684 if test x$coin_tmp = xset; then
2685 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2686 fi
2687 fi
2688
2689 if test x"$CFLAGS" = x; then
2690
2691 coin_add_cflags=
2692 coin_opt_cflags=
2693 coin_dbg_cflags=
2694 coin_warn_cflags=
2695
2696 if test "$GCC" = "yes"; then
2697 case "$CC" in
2698 icc* | */icc*)
2699 ;;
2700 *)
2701 coin_opt_cflags="-O3"
2702 coin_add_cflags="-pipe"
2703 coin_dbg_cflags="-g -O0"
2704 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2705 esac
2706 fi
2707 if test -z "$coin_opt_cflags"; then
2708 case $build in
2709 *-cygwin* | *-mingw*)
2710 case "$CC" in
2711 clang* | */clang* ) ;;
2712 cl* | */cl* | CL* | */CL*)
2713 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2714 coin_opt_cflags='-MD -O2'
2715 coin_dbg_cflags='-MDd'
2716 else
2717 coin_opt_cflags='-MT -O2'
2718 coin_dbg_cflags='-MTd'
2719 fi
2720 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2721 ;;
2722 icl* | */icl* | ICL* | */ICL*)
2723 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2724 coin_opt_cflags='-MD -Ox'
2725 coin_dbg_cflags='-MDd -debug'
2726 else
2727 coin_opt_cflags='-MT -Ox'
2728 coin_dbg_cflags='-MTd -debug'
2729 fi
2730 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2731 ;;
2732 esac
2733 ;;
2734 *-linux-*)
2735 case "$CC" in
2736 icc* | */icc*)
2737 coin_opt_cflags="-O3 -ip -mp1"
2738 coin_add_cflags=""
2739 coin_dbg_cflags="-g"
2740 # Check if -i_dynamic is necessary (for new glibc library)
2741 CFLAGS=
2742 cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h. */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2748
2749 int
2750 main ()
2751 {
2752 int i=0; i++;
2753 ;
2754 return 0;
2755 }
2756 _ACEOF
2757 rm -f conftest.$ac_objext conftest$ac_exeext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2759 (eval $ac_link) 2>conftest.er1
2760 ac_status=$?
2761 grep -v '^ *+' conftest.er1 >conftest.err
2762 rm -f conftest.er1
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -z "$ac_c_werror_flag"
2767 || test ! -s conftest.err'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try='test -s conftest$ac_exeext'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; }; then
2779 :
2780 else
2781 echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2783
2784 coin_add_cflags="-i_dynamic $coin_add_cflags"
2785 fi
2786 rm -f conftest.err conftest.$ac_objext \
2787 conftest$ac_exeext conftest.$ac_ext
2788 ;;
2789 pgcc* | */pgcc*)
2790 coin_opt_cflags="-fast"
2791 coin_add_cflags="-Kieee -pc 64"
2792 coin_dbg_cflags="-g"
2793 ;;
2794 esac
2795 ;;
2796 *-ibm-*)
2797 case "$CC" in
2798 xlc* | */xlc* | mpxlc* | */mpxlc*)
2799 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2800 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2801 coin_dbg_cflags="-g"
2802 ;;
2803 esac
2804 ;;
2805 *-hp-*)
2806 coin_opt_cflags="-O"
2807 coin_add_cflags="-Ae"
2808 coin_dbg_cflags="-g"
2809 ;;
2810 *-*-solaris*)
2811 coin_opt_cflags="-xO4"
2812 coin_dbg_cflags="-g"
2813 ;;
2814 *-sgi-*)
2815 coin_opt_cflags="-O -OPT:Olimit=0"
2816 coin_dbg_cflags="-g"
2817 ;;
2818 esac
2819 fi
2820
2821 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2822 coin_dbg_cflags="-g"
2823 fi
2824
2825 if test -z "$coin_opt_cflags"; then
2826 # Try if -O option works if nothing else is set
2827 CFLAGS="-O"
2828 cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h. */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834
2835 int
2836 main ()
2837 {
2838 int i=0; i++;
2839 ;
2840 return 0;
2841 }
2842 _ACEOF
2843 rm -f conftest.$ac_objext conftest$ac_exeext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2845 (eval $ac_link) 2>conftest.er1
2846 ac_status=$?
2847 grep -v '^ *+' conftest.er1 >conftest.err
2848 rm -f conftest.er1
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
2852 { ac_try='test -z "$ac_c_werror_flag"
2853 || test ! -s conftest.err'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try='test -s conftest$ac_exeext'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 (eval $ac_try) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 coin_opt_cflags="-O"
2866 else
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 fi
2871 rm -f conftest.err conftest.$ac_objext \
2872 conftest$ac_exeext conftest.$ac_ext
2873 fi
2874
2875 # if PM doesn't want the warning messages, take them out
2876 if test x"$coin_skip_warn_cflags" = xyes; then
2877 coin_warn_cflags=
2878 fi
2879
2880 if test x${DBG_CFLAGS+set} != xset; then
2881 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2882 fi
2883 if test x${OPT_CFLAGS+set} != xset; then
2884 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2885 fi
2886
2887 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2888 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2889
2890 if test "$coin_debug_compile" = "true"; then
2891 CFLAGS="$DBG_CFLAGS"
2892 else
2893 CFLAGS="$OPT_CFLAGS"
2894 fi
2895 else
2896 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2897 if test x${DBG_CFLAGS+set} != xset; then
2898 DBG_CFLAGS="$CFLAGS"
2899 fi
2900 if test x${OPT_CFLAGS+set} != xset; then
2901 OPT_CFLAGS="$CFLAGS"
2902 fi
2903 fi
2904
2905 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2906 if test x$COIN_PRJCT != x; then
2907 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2908 fi
2909
2910 # Try if CFLAGS works
2911 save_CFLAGS="$CFLAGS"
2912 cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h. */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2918
2919 int
2920 main ()
2921 {
2922 int i=0; i++;
2923 ;
2924 return 0;
2925 }
2926 _ACEOF
2927 rm -f conftest.$ac_objext conftest$ac_exeext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2929 (eval $ac_link) 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
2936 { ac_try='test -z "$ac_c_werror_flag"
2937 || test ! -s conftest.err'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 (eval $ac_try) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try='test -s conftest$ac_exeext'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 :
2950 else
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 CFLAGS=
2955 fi
2956 rm -f conftest.err conftest.$ac_objext \
2957 conftest$ac_exeext conftest.$ac_ext
2958 if test -z "$CFLAGS"; then
2959 { 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
2960 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;}
2961 CFLAGS='-O'
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2968
2969 int
2970 main ()
2971 {
2972 int i=0; i++;
2973 ;
2974 return 0;
2975 }
2976 _ACEOF
2977 rm -f conftest.$ac_objext conftest$ac_exeext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2979 (eval $ac_link) 2>conftest.er1
2980 ac_status=$?
2981 grep -v '^ *+' conftest.er1 >conftest.err
2982 rm -f conftest.er1
2983 cat conftest.err >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } &&
2986 { ac_try='test -z "$ac_c_werror_flag"
2987 || test ! -s conftest.err'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 (eval $ac_try) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest$ac_exeext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 :
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 CFLAGS=
3005 fi
3006 rm -f conftest.err conftest.$ac_objext \
3007 conftest$ac_exeext conftest.$ac_ext
3008 if test -z "$CFLAGS"; then
3009 { 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
3010 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;}
3011 fi
3012 fi
3013
3014 { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3015 echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3016
3017
3018 if test x"$MPICC" = x; then :; else
3019 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3020 echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3021 CC="$MPICC"
3022 fi
3023
3024 # Correct the LD variable if we are using the MS or Intel-windows compiler
3025 case "$CC" in
3026 clang* | */clang* ) ;;
3027 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3028 LD=link
3029 ;;
3030 esac
3031
3032 ac_ext=c
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037
3038
3039
3040 # Get the name of the C++ compiler and appropriate compiler options
3041
3042 #Let's try if that overcomes configuration problem with VC++ 6.0
3043
3044 ac_ext=cc
3045 ac_cpp='$CXXCPP $CPPFLAGS'
3046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3049
3050
3051
3052
3053
3054
3055
3056 coin_has_cxx=yes
3057
3058 save_cxxflags="$CXXFLAGS"
3059 # For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3060 case $build in
3061 *-cygwin* | *-mingw*)
3062 if test "$enable_msvc" = yes ; then
3063 comps="icl cl g++"
3064 else
3065 comps="g++ icl cl"
3066 fi ;;
3067 *-*-solaris*)
3068 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3069 *-darwin*) comps="clang++ g++ c++ CC" ;;
3070 *-linux-gnu*)
3071 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3072 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3073 esac
3074
3075 # We delete the cached value, since the test might not have been
3076 # performed with our choice of compilers earlier
3077 $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3078 # AC_MSG_NOTICE([C++ compiler candidates: $comps])
3079 ac_ext=cc
3080 ac_cpp='$CXXCPP $CPPFLAGS'
3081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3084 if test -n "$ac_tool_prefix"; then
3085 for ac_prog in $CCC $comps
3086 do
3087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3089 echo "$as_me:$LINENO: checking for $ac_word" >&5
3090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3091 if test "${ac_cv_prog_CXX+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094 if test -n "$CXX"; then
3095 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3107 fi
3108 done
3109 done
3110
3111 fi
3112 fi
3113 CXX=$ac_cv_prog_CXX
3114 if test -n "$CXX"; then
3115 echo "$as_me:$LINENO: result: $CXX" >&5
3116 echo "${ECHO_T}$CXX" >&6
3117 else
3118 echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3120 fi
3121
3122 test -n "$CXX" && break
3123 done
3124 fi
3125 if test -z "$CXX"; then
3126 ac_ct_CXX=$CXX
3127 for ac_prog in $CCC $comps
3128 do
3129 # Extract the first word of "$ac_prog", so it can be a program name with args.
3130 set dummy $ac_prog; ac_word=$2
3131 echo "$as_me:$LINENO: checking for $ac_word" >&5
3132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3133 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136 if test -n "$ac_ct_CXX"; then
3137 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_ac_ct_CXX="$ac_prog"
3147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3149 fi
3150 done
3151 done
3152
3153 fi
3154 fi
3155 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3156 if test -n "$ac_ct_CXX"; then
3157 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3158 echo "${ECHO_T}$ac_ct_CXX" >&6
3159 else
3160 echo "$as_me:$LINENO: result: no" >&5
3161 echo "${ECHO_T}no" >&6
3162 fi
3163
3164 test -n "$ac_ct_CXX" && break
3165 done
3166 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3167
3168 CXX=$ac_ct_CXX
3169 fi
3170
3171
3172 # Provide some information about the compiler.
3173 echo "$as_me:$LINENO:" \
3174 "checking for C++ compiler version" >&5
3175 ac_compiler=`set X $ac_compile; echo $2`
3176 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3177 (eval $ac_compiler --version </dev/null >&5) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }
3181 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3182 (eval $ac_compiler -v </dev/null >&5) 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }
3186 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3187 (eval $ac_compiler -V </dev/null >&5) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }
3191
3192 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3193 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3194 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197 cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h. */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3203
3204 int
3205 main ()
3206 {
3207 #ifndef __GNUC__
3208 choke me
3209 #endif
3210
3211 ;
3212 return 0;
3213 }
3214 _ACEOF
3215 rm -f conftest.$ac_objext
3216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3217 (eval $ac_compile) 2>conftest.er1
3218 ac_status=$?
3219 grep -v '^ *+' conftest.er1 >conftest.err
3220 rm -f conftest.er1
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } &&
3224 { ac_try='test -z "$ac_cxx_werror_flag"
3225 || test ! -s conftest.err'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 (eval $ac_try) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; } &&
3231 { ac_try='test -s conftest.$ac_objext'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3237 ac_compiler_gnu=yes
3238 else
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242 ac_compiler_gnu=no
3243 fi
3244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3245 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3246
3247 fi
3248 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3249 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3250 GXX=`test $ac_compiler_gnu = yes && echo yes`
3251 ac_test_CXXFLAGS=${CXXFLAGS+set}
3252 ac_save_CXXFLAGS=$CXXFLAGS
3253 CXXFLAGS="-g"
3254 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3255 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3256 if test "${ac_cv_prog_cxx_g+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265
3266 int
3267 main ()
3268 {
3269
3270 ;
3271 return 0;
3272 }
3273 _ACEOF
3274 rm -f conftest.$ac_objext
3275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3276 (eval $ac_compile) 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
3283 { ac_try='test -z "$ac_cxx_werror_flag"
3284 || test ! -s conftest.err'
3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 (eval $ac_try) 2>&5
3287 ac_status=$?
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; } &&
3290 { ac_try='test -s conftest.$ac_objext'
3291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 (eval $ac_try) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3296 ac_cv_prog_cxx_g=yes
3297 else
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3300
3301 ac_cv_prog_cxx_g=no
3302 fi
3303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3304 fi
3305 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3306 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3307 if test "$ac_test_CXXFLAGS" = set; then
3308 CXXFLAGS=$ac_save_CXXFLAGS
3309 elif test $ac_cv_prog_cxx_g = yes; then
3310 if test "$GXX" = yes; then
3311 CXXFLAGS="-g -O2"
3312 else
3313 CXXFLAGS="-g"
3314 fi
3315 else
3316 if test "$GXX" = yes; then
3317 CXXFLAGS="-O2"
3318 else
3319 CXXFLAGS=
3320 fi
3321 fi
3322 for ac_declaration in \
3323 '' \
3324 'extern "C" void std::exit (int) throw (); using std::exit;' \
3325 'extern "C" void std::exit (int); using std::exit;' \
3326 'extern "C" void exit (int) throw ();' \
3327 'extern "C" void exit (int);' \
3328 'void exit (int);'
3329 do
3330 cat >conftest.$ac_ext <<_ACEOF
3331 /* confdefs.h. */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3336 $ac_declaration
3337 #include <stdlib.h>
3338 int
3339 main ()
3340 {
3341 exit (42);
3342 ;
3343 return 0;
3344 }
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348 (eval $ac_compile) 2>conftest.er1
3349 ac_status=$?
3350 grep -v '^ *+' conftest.er1 >conftest.err
3351 rm -f conftest.er1
3352 cat conftest.err >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } &&
3355 { ac_try='test -z "$ac_cxx_werror_flag"
3356 || test ! -s conftest.err'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; } &&
3362 { ac_try='test -s conftest.$ac_objext'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 (eval $ac_try) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
3368 :
3369 else
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373 continue
3374 fi
3375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3376 cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h. */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3382 $ac_declaration
3383 int
3384 main ()
3385 {
3386 exit (42);
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 rm -f conftest.$ac_objext
3392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393 (eval $ac_compile) 2>conftest.er1
3394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -z "$ac_cxx_werror_flag"
3401 || test ! -s conftest.err'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 (eval $ac_try) 2>&5
3404 ac_status=$?
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; } &&
3407 { ac_try='test -s conftest.$ac_objext'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3413 break
3414 else
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418 fi
3419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420 done
3421 rm -f conftest*
3422 if test -n "$ac_declaration"; then
3423 echo '#ifdef __cplusplus' >>confdefs.h
3424 echo $ac_declaration >>confdefs.h
3425 echo '#endif' >>confdefs.h
3426 fi
3427
3428 ac_ext=cc
3429 ac_cpp='$CXXCPP $CPPFLAGS'
3430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3433
3434
3435 #AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3436 #thus, we test here whether $CXX is actually working
3437 ac_ext=cc
3438 ac_cpp='$CXXCPP $CPPFLAGS'
3439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3442
3443 echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3444 echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451
3452 int
3453 main ()
3454 {
3455 int i=0;
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 rm -f conftest.$ac_objext
3461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462 (eval $ac_compile) 2>conftest.er1
3463 ac_status=$?
3464 grep -v '^ *+' conftest.er1 >conftest.err
3465 rm -f conftest.er1
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } &&
3469 { ac_try='test -z "$ac_cxx_werror_flag"
3470 || test ! -s conftest.err'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; } &&
3476 { ac_try='test -s conftest.$ac_objext'
3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 (eval $ac_try) 2>&5
3479 ac_status=$?
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3482 echo "$as_me:$LINENO: result: yes" >&5
3483 echo "${ECHO_T}yes" >&6
3484 else
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6
3490 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3491 echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3492 { (exit 1); exit 1; }; }
3493
3494 fi
3495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_ext=cc
3497 ac_cpp='$CXXCPP $CPPFLAGS'
3498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3501
3502
3503 coin_cxx_is_cl=false
3504 # It seems that we need to cleanup something here for the Windows
3505 case "$CXX" in
3506 clang* | */clang*) ;;
3507 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3508 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3509 mv confdefs.hh confdefs.h
3510 coin_cxx_is_cl=true
3511 ;;
3512 esac
3513
3514 # add automake conditional so we can recognize cl compiler in makefile
3515
3516
3517 if test $coin_cxx_is_cl = true; then
3518 COIN_CXX_IS_CL_TRUE=
3519 COIN_CXX_IS_CL_FALSE='#'
3520 else
3521 COIN_CXX_IS_CL_TRUE='#'
3522 COIN_CXX_IS_CL_FALSE=
3523 fi
3524
3525
3526 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3527 case "$CXX" in
3528 clang* | */clang* ) ;;
3529 cl* | */cl* | CL* | */CL* )
3530 if test "$ac_cv_prog_cxx_g" = yes ; then
3531 ac_cv_prog_cxx_g=no
3532 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3533 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3534 fi ;;
3535 * )
3536 if test x"$CYGPATH_W" = x ; then
3537 CYGPATH_W=echo
3538 fi
3539 ;;
3540 esac
3541 CXXFLAGS="$save_cxxflags"
3542
3543 # Check if a project specific CXXFLAGS variable has been set
3544 if test x$COIN_PRJCT != x; then
3545 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3546 if test x$coin_tmp = xset; then
3547 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3548 fi
3549 fi
3550
3551 if test x"$CXXFLAGS" = x; then
3552
3553 # ToDo decide whether we want -DNDEBUG for optimization
3554 coin_add_cxxflags=
3555 coin_opt_cxxflags=
3556 coin_dbg_cxxflags=
3557 coin_warn_cxxflags=
3558
3559 if test "$GXX" = "yes"; then
3560 case "$CXX" in
3561 icpc* | */icpc*)
3562 ;;
3563 *)
3564 # ToDo decide about unroll-loops
3565 coin_opt_cxxflags="-O3"
3566 coin_add_cxxflags="-pipe"
3567 coin_dbg_cxxflags="-g -O0"
3568 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3569 esac
3570 fi
3571
3572 # Note that we do not need to cover GCC in the following tests.
3573
3574 if test -z "$coin_opt_cxxflags"; then
3575 case $build in
3576 *-cygwin* | *-mingw*)
3577 case "$CXX" in
3578 clang* | */clang* ) ;;
3579 cl* | */cl* | CL* | */CL*)
3580 # The MT and MTd options are mutually exclusive
3581 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3582 coin_opt_cxxflags='-MD -O2'
3583 coin_dbg_cxxflags='-MDd'
3584 else
3585 coin_opt_cxxflags='-MT -O2'
3586 coin_dbg_cxxflags='-MTd'
3587 fi
3588 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3589 ;;
3590 icl* | */icl* | ICL* | */ICL*)
3591 # The MT and MTd options are mutually exclusive
3592 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3593 coin_opt_cxxflags='-MD -Ox'
3594 coin_dbg_cxxflags='-MDd -debug'
3595 else
3596 coin_opt_cxxflags='-MT -Ox'
3597 coin_dbg_cxxflags='-MTd -debug'
3598 fi
3599 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3600 ;;
3601 esac
3602 ;;
3603 *-linux-*)
3604 case "$CXX" in
3605 icpc* | */icpc*)
3606 coin_opt_cxxflags="-O3 -ip -mp1"
3607 coin_add_cxxflags=""
3608 coin_dbg_cxxflags="-g"
3609 # Check if -i_dynamic is necessary (for new glibc library)
3610 CXXFLAGS=
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617
3618 int
3619 main ()
3620 {
3621 int i=0; i++;
3622 ;
3623 return 0;
3624 }
3625 _ACEOF
3626 rm -f conftest.$ac_objext conftest$ac_exeext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3628 (eval $ac_link) 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try='test -z "$ac_cxx_werror_flag"
3636 || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest$ac_exeext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 :
3649 else
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653 coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3654 fi
3655 rm -f conftest.err conftest.$ac_objext \
3656 conftest$ac_exeext conftest.$ac_ext
3657 ;;
3658 pgCC* | */pgCC*)
3659 coin_opt_cxxflags="-fast"
3660 coin_add_cxxflags="-Kieee -pc 64"
3661 coin_dbg_cxxflags="-g"
3662 ;;
3663 esac
3664 ;;
3665 *-ibm-*)
3666 case "$CXX" in
3667 xlC* | */xlC* | mpxlC* | */mpxlC*)
3668 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3669 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3670 coin_dbg_cxxflags="-g"
3671 ;;
3672 esac
3673 ;;
3674 *-hp-*)
3675 case "$CXX" in
3676 aCC* | */aCC* )
3677 coin_opt_cxxflags="-O"
3678 coin_add_cxxflags="-AA"
3679 coin_dbg_cxxflags="-g"
3680 ;;
3681 esac
3682 ;;
3683 *-*-solaris*)
3684 coin_opt_cxxflags="-O4"
3685 coin_dbg_cxxflags="-g"
3686 ;;
3687 esac
3688 fi
3689
3690 # Generic flag settings. If these don't work, add a case above.
3691
3692 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3693 coin_dbg_cxxflags="-g"
3694 fi
3695
3696 if test -z "$coin_opt_cxxflags"; then
3697 # Try if -O option works if nothing else is set
3698 CXXFLAGS=-O
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h. */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705
3706 int
3707 main ()
3708 {
3709 int i=0; i++;
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 rm -f conftest.$ac_objext conftest$ac_exeext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3716 (eval $ac_link) 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -z "$ac_cxx_werror_flag"
3724 || test ! -s conftest.err'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; } &&
3730 { ac_try='test -s conftest$ac_exeext'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 (eval $ac_try) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3736 coin_opt_cxxflags="-O"
3737 else
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 fi
3742 rm -f conftest.err conftest.$ac_objext \
3743 conftest$ac_exeext conftest.$ac_ext
3744 fi
3745
3746 # if PM doesn't want the warning messages, take them out
3747 if test x"$coin_skip_warn_cxxflags" = xyes; then
3748 coin_warn_cxxflags=
3749 fi
3750
3751 # Do final setup of flags based on values determined above.
3752
3753 if test x${DBG_CXXFLAGS+set} != xset; then
3754 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3755 fi
3756 if test x${OPT_CXXFLAGS+set} != xset; then
3757 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3758 fi
3759
3760 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3761 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3762
3763 if test "$coin_debug_compile" = "true"; then
3764 CXXFLAGS="$DBG_CXXFLAGS"
3765 else
3766 CXXFLAGS="$OPT_CXXFLAGS"
3767 fi
3768
3769 # Handle the case where CXXFLAGS was set externally.
3770 else
3771 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3772 if test x${DBG_CXXFLAGS+set} != xset; then
3773 DBG_CXXFLAGS="$CXXFLAGS"
3774 fi
3775 if test x${OPT_CXXFLAGS+set} != xset; then
3776 OPT_CXXFLAGS="$CXXFLAGS"
3777 fi
3778 fi
3779
3780 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3781 if test x$COIN_PRJCT != x; then
3782 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3783 fi
3784
3785 # Try if CXXFLAGS works
3786 save_CXXFLAGS="$CXXFLAGS"
3787 cat >conftest.$ac_ext <<_ACEOF
3788 /* confdefs.h. */
3789 _ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3793
3794 int
3795 main ()
3796 {
3797 int i=0; i++;
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 rm -f conftest.$ac_objext conftest$ac_exeext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3804 (eval $ac_link) 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -z "$ac_cxx_werror_flag"
3812 || test ! -s conftest.err'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 (eval $ac_try) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; } &&
3818 { ac_try='test -s conftest$ac_exeext'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 :
3825 else
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3828
3829 CXXFLAGS=
3830 fi
3831 rm -f conftest.err conftest.$ac_objext \
3832 conftest$ac_exeext conftest.$ac_ext
3833 if test -z "$CXXFLAGS"; then
3834 { 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
3835 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;}
3836 CXXFLAGS='-O'
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843
3844 int
3845 main ()
3846 {
3847 int i=0; i++;
3848 ;
3849 return 0;
3850 }
3851 _ACEOF
3852 rm -f conftest.$ac_objext conftest$ac_exeext
3853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3854 (eval $ac_link) 2>conftest.er1
3855 ac_status=$?
3856 grep -v '^ *+' conftest.er1 >conftest.err
3857 rm -f conftest.er1
3858 cat conftest.err >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } &&
3861 { ac_try='test -z "$ac_cxx_werror_flag"
3862 || test ! -s conftest.err'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; } &&
3868 { ac_try='test -s conftest$ac_exeext'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; }; then
3874 :
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3878
3879 CXXFLAGS=
3880 fi
3881 rm -f conftest.err conftest.$ac_objext \
3882 conftest$ac_exeext conftest.$ac_ext
3883 if test -z "$CXXFLAGS"; then
3884 { 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
3885 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;}
3886 fi
3887 fi
3888
3889 { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3890 echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3891
3892
3893 if test x"$MPICXX" = x; then :; else
3894 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3895 echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3896 CXX="$MPICXX"
3897 fi
3898
3899 # correct the LD variable in a build with MS or Intel-windows compiler
3900 case "$CXX" in
3901 clang* | */clang* ) ;;
3902 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3903 LD=link
3904 ;;
3905 esac
3906
3907 ac_ext=c
3908 ac_cpp='$CPP $CPPFLAGS'
3909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912
3913
3914
3915 # Get the name of the Fortran compiler and appropriate compiler options
3916 case $build in
3917 *-cygwin* | *-mingw*)
3918 if test "$enable_msvc" = yes ; then
3919 coin_f77_comps="ifort fl32 compile_f2c"
3920 else
3921 coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3922 fi ;;
3923 *-*-solaris*)
3924 coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3925 *-linux-gnu*)
3926 coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3927 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3928 esac
3929
3930
3931
3932
3933
3934 ac_ext=f
3935 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3936 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3938
3939
3940
3941
3942
3943
3944 coin_has_f77=yes
3945
3946 save_fflags="$FFLAGS"
3947
3948 # We delete the cached value, since the test might not have been
3949 # performed with our choice of compilers earlier
3950 $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3951
3952 # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3953 # coin_f77_comps to see if there's a program that matches one of the names.
3954 # If there's no such program, F77 = unavailable. If we match the name,
3955 # feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3956 # compiler.
3957 # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3958
3959
3960 { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3961 echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3962 if test -n "$ac_tool_prefix"; then
3963 for ac_prog in $coin_f77_comps
3964 do
3965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3967 echo "$as_me:$LINENO: checking for $ac_word" >&5
3968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3969 if test "${ac_cv_prog_F77+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972 if test -n "$F77"; then
3973 ac_cv_prog_F77="$F77" # Let the user override the test.
3974 else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3977 do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3982 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 break 2
3985 fi
3986 done
3987 done
3988
3989 fi
3990 fi
3991 F77=$ac_cv_prog_F77
3992 if test -n "$F77"; then
3993 echo "$as_me:$LINENO: result: $F77" >&5
3994 echo "${ECHO_T}$F77" >&6
3995 else
3996 echo "$as_me:$LINENO: result: no" >&5
3997 echo "${ECHO_T}no" >&6
3998 fi
3999
4000 test -n "$F77" && break
4001 done
4002 fi
4003 if test -z "$F77"; then
4004 ac_ct_F77=$F77
4005 for ac_prog in $coin_f77_comps
4006 do
4007 # Extract the first word of "$ac_prog", so it can be a program name with args.
4008 set dummy $ac_prog; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014 if test -n "$ac_ct_F77"; then
4015 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_ac_ct_F77="$ac_prog"
4025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 break 2
4027 fi
4028 done
4029 done
4030
4031 fi
4032 fi
4033 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4034 if test -n "$ac_ct_F77"; then
4035 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4036 echo "${ECHO_T}$ac_ct_F77" >&6
4037 else
4038 echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6
4040 fi
4041
4042 test -n "$ac_ct_F77" && break
4043 done
4044 test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4045
4046 F77=$ac_ct_F77
4047 fi
4048
4049
4050 if test "$F77" != "unavailable" ; then
4051 ac_ext=f
4052 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4053 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4055 if test -n "$ac_tool_prefix"; then
4056 for ac_prog in $coin_f77_comps
4057 do
4058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4060 echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4062 if test "${ac_cv_prog_F77+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065 if test -n "$F77"; then
4066 ac_cv_prog_F77="$F77" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4070 do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079 done
4080 done
4081
4082 fi
4083 fi
4084 F77=$ac_cv_prog_F77
4085 if test -n "$F77"; then
4086 echo "$as_me:$LINENO: result: $F77" >&5
4087 echo "${ECHO_T}$F77" >&6
4088 else
4089 echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4091 fi
4092
4093 test -n "$F77" && break
4094 done
4095 fi
4096 if test -z "$F77"; then
4097 ac_ct_F77=$F77
4098 for ac_prog in $coin_f77_comps
4099 do
4100 # Extract the first word of "$ac_prog", so it can be a program name with args.
4101 set dummy $ac_prog; ac_word=$2
4102 echo "$as_me:$LINENO: checking for $ac_word" >&5
4103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107 if test -n "$ac_ct_F77"; then
4108 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4109 else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4112 do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_prog_ac_ct_F77="$ac_prog"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 break 2
4120 fi
4121 done
4122 done
4123
4124 fi
4125 fi
4126 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4127 if test -n "$ac_ct_F77"; then
4128 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4129 echo "${ECHO_T}$ac_ct_F77" >&6
4130 else
4131 echo "$as_me:$LINENO: result: no" >&5
4132 echo "${ECHO_T}no" >&6
4133 fi
4134
4135 test -n "$ac_ct_F77" && break
4136 done
4137
4138 F77=$ac_ct_F77
4139 fi
4140
4141
4142 # Provide some information about the compiler.
4143 echo "$as_me:4143:" \
4144 "checking for Fortran 77 compiler version" >&5
4145 ac_compiler=`set X $ac_compile; echo $2`
4146 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4147 (eval $ac_compiler --version </dev/null >&5) 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }
4151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4152 (eval $ac_compiler -v </dev/null >&5) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }
4156 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4157 (eval $ac_compiler -V </dev/null >&5) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }
4161 rm -f a.out
4162
4163 # If we don't use `.F' as extension, the preprocessor is not run on the
4164 # input file. (Note that this only needs to work for GNU compilers.)
4165 ac_save_ext=$ac_ext
4166 ac_ext=F
4167 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4168 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4169 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172 cat >conftest.$ac_ext <<_ACEOF
4173 program main
4174 #ifndef __GNUC__
4175 choke me
4176 #endif
4177
4178 end
4179 _ACEOF
4180 rm -f conftest.$ac_objext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>conftest.er1
4183 ac_status=$?
4184 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -f conftest.er1
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try='test -z "$ac_f77_werror_flag"
4190 || test ! -s conftest.err'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 ac_compiler_gnu=yes
4203 else
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207 ac_compiler_gnu=no
4208 fi
4209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4211
4212 fi
4213 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4214 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4215 ac_ext=$ac_save_ext
4216 ac_test_FFLAGS=${FFLAGS+set}
4217 ac_save_FFLAGS=$FFLAGS
4218 FFLAGS=
4219 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4220 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4221 if test "${ac_cv_prog_f77_g+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224 FFLAGS=-g
4225 cat >conftest.$ac_ext <<_ACEOF
4226 program main
4227
4228 end
4229 _ACEOF
4230 rm -f conftest.$ac_objext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4232 (eval $ac_compile) 2>conftest.er1
4233 ac_status=$?
4234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try='test -z "$ac_f77_werror_flag"
4240 || test ! -s conftest.err'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 (eval $ac_try) 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; } &&
4246 { ac_try='test -s conftest.$ac_objext'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 (eval $ac_try) 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; }; then
4252 ac_cv_prog_f77_g=yes
4253 else
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 ac_cv_prog_f77_g=no
4258 fi
4259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4260
4261 fi
4262 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4263 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4264 if test "$ac_test_FFLAGS" = set; then
4265 FFLAGS=$ac_save_FFLAGS
4266 elif test $ac_cv_prog_f77_g = yes; then
4267 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4268 FFLAGS="-g -O2"
4269 else
4270 FFLAGS="-g"
4271 fi
4272 else
4273 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4274 FFLAGS="-O2"
4275 else
4276 FFLAGS=
4277 fi
4278 fi
4279
4280 G77=`test $ac_compiler_gnu = yes && echo yes`
4281 ac_ext=f
4282 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4283 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4285
4286 else
4287 { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4288 echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4289 fi
4290
4291 FFLAGS="$save_fflags"
4292
4293 # Check if a project specific FFLAGS variable has been set
4294 if test x$COIN_PRJCT != x; then
4295 eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4296 if test x$coin_tmp = xset; then
4297 eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4298 fi
4299 fi
4300
4301 if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4302
4303 coin_add_fflags=
4304 coin_opt_fflags=
4305 coin_dbg_fflags=
4306 coin_warn_fflags=
4307
4308 if test "$G77" = "yes"; then
4309 coin_opt_fflags="-O3"
4310 coin_add_fflags="-pipe"
4311 coin_dbg_fflags="-g -O0"
4312 else
4313 case $build in
4314 *-cygwin* | *-mingw*)
4315 case $F77 in
4316 ifort* | */ifort* | IFORT* | */IFORT* )
4317 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4318 coin_opt_fflags='-MD -O3'
4319 coin_dbg_fflags='-MDd -debug'
4320 else
4321 coin_opt_fflags='-MT -O3'
4322 coin_dbg_fflags='-MTd -debug'
4323 fi
4324 coin_add_fflags='-fpp -nologo'
4325 ;;
4326 compile_f2c*)
4327 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4328 coin_opt_fflags='-MD -O2'
4329 coin_dbg_fflags='-MDd'
4330 else
4331 coin_opt_fflags='-MT -O2'
4332 coin_dbg_fflags='-MTd'
4333 fi
4334 coin_add_fflags='-nologo -wd4996'
4335 ;;
4336 esac
4337 ;;
4338 *-linux-*)
4339 case $F77 in
4340 ifc* | */ifc* | ifort* | */ifort*)
4341 coin_opt_fflags="-O3 -ip"
4342 coin_add_fflags="-cm -w90 -w95"
4343 coin_dbg_fflags="-g -CA -CB -CS"
4344 # Check if -i_dynamic is necessary (for new glibc library)
4345 FFLAGS=
4346 cat >conftest.$ac_ext <<_ACEOF
4347 program main
4348 write(*,*) 'Hello world'
4349 end
4350 _ACEOF
4351 rm -f conftest.$ac_objext conftest$ac_exeext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4353 (eval $ac_link) 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } &&
4360 { ac_try='test -z "$ac_f77_werror_flag"
4361 || test ! -s conftest.err'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 (eval $ac_try) 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; } &&
4367 { ac_try='test -s conftest$ac_exeext'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 (eval $ac_try) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 :
4374 else
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4377
4378 coin_add_fflags="-i_dynamic $coin_add_fflags"
4379 fi
4380 rm -f conftest.err conftest.$ac_objext \
4381 conftest$ac_exeext conftest.$ac_ext
4382 ;;
4383 pgf77* | */pgf77* | pgf90* | */pgf90*)
4384 coin_opt_fflags="-fast"
4385 coin_add_fflags="-Kieee -pc 64"
4386 coin_dbg_fflags="-g"
4387 ;;
4388 esac
4389 ;;
4390 *-ibm-*)
4391 case "$F77" in
4392 xlf* | */xlf* | mpxlf* | */mpxlf* )
4393 coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4394 coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4395 coin_dbg_fflags="-g -C"
4396 ;;
4397 esac
4398 ;;
4399 *-hp-*)
4400 coin_opt_fflags="+O3"
4401 coin_add_fflags="+U77"
4402 coin_dbg_fflags="-C -g"
4403 ;;
4404 *-*-solaris*)
4405 coin_opt_fflags="-O4"
4406 coin_dbg_fflags="-g"
4407 ;;
4408 *-sgi-*)
4409 coin_opt_fflags="-O5 -OPT:Olimit=0"
4410 coin_dbg_fflags="-g"
4411 ;;
4412 esac
4413 fi
4414
4415 if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4416 coin_dbg_fflags="-g"
4417 fi
4418
4419 if test -z "$coin_opt_fflags"; then
4420 # Try if -O option works if nothing else is set
4421 FFLAGS=-O
4422 cat >conftest.$ac_ext <<_ACEOF
4423 program main
4424 integer i
4425 end
4426 _ACEOF
4427 rm -f conftest.$ac_objext conftest$ac_exeext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4429 (eval $ac_link) 2>conftest.er1
4430 ac_status=$?
4431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -z "$ac_f77_werror_flag"
4437 || test ! -s conftest.err'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try='test -s conftest$ac_exeext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 (eval $ac_try) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 coin_opt_fflags="-O"
4450 else
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4453
4454 fi
4455 rm -f conftest.err conftest.$ac_objext \
4456 conftest$ac_exeext conftest.$ac_ext
4457 fi
4458
4459 # if PM doesn't want the warning messages, take them out
4460 if test x"$coin_skip_warn_fflags" = xyes; then
4461 coin_warn_fflags=
4462 fi
4463
4464 if test x${DBG_FFLAGS+set} != xset; then
4465 DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4466 fi
4467 if test x${OPT_FFLAGS+set} != xset; then
4468 OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4469 fi
4470
4471 DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4472 OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4473
4474 if test "$coin_debug_compile" = "true"; then
4475 FFLAGS="$DBG_FFLAGS"
4476 else
4477 FFLAGS="$OPT_FFLAGS"
4478 fi
4479 else
4480 FFLAGS="$FFLAGS $ADD_FFLAGS"
4481 if test x${DBG_FFLAGS+set} != xset; then
4482 DBG_FFLAGS="$FFLAGS"
4483 fi
4484 if test x${OPT_FFLAGS+set} != xset; then
4485 OPT_FFLAGS="$FFLAGS"
4486 fi
4487 fi
4488
4489 # Try if FFLAGS works
4490 if test "$F77" != "unavailable" ; then
4491 orig_FFLAGS="FFLAGS"
4492 cat >conftest.$ac_ext <<_ACEOF
4493 program main
4494 integer i
4495 end
4496 _ACEOF
4497 rm -f conftest.$ac_objext conftest$ac_exeext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4499 (eval $ac_link) 2>conftest.er1
4500 ac_status=$?
4501 grep -v '^ *+' conftest.er1 >conftest.err
4502 rm -f conftest.er1
4503 cat conftest.err >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
4506 { ac_try='test -z "$ac_f77_werror_flag"
4507 || test ! -s conftest.err'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 (eval $ac_try) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; } &&
4513 { ac_try='test -s conftest$ac_exeext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4519 :
4520 else
4521 echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4523
4524 FFLAGS=
4525 fi
4526 rm -f conftest.err conftest.$ac_objext \
4527 conftest$ac_exeext conftest.$ac_ext
4528 if test -z "$FFLAGS"; then
4529 { 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
4530 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;}
4531 FFLAGS='-O'
4532 cat >conftest.$ac_ext <<_ACEOF
4533 program main
4534 integer i
4535 end
4536 _ACEOF
4537 rm -f conftest.$ac_objext conftest$ac_exeext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4539 (eval $ac_link) 2>conftest.er1
4540 ac_status=$?
4541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -z "$ac_f77_werror_flag"
4547 || test ! -s conftest.err'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try='test -s conftest$ac_exeext'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4559 :
4560 else
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564 FFLAGS=
4565 fi
4566 rm -f conftest.err conftest.$ac_objext \
4567 conftest$ac_exeext conftest.$ac_ext
4568 if test -z "$FFLAGS"; then
4569 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4570 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;}
4571 fi
4572 fi
4573 fi
4574
4575 { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4576 echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4577
4578
4579 if test x"$MPIF77" = x; then :; else
4580 { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4581 echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4582 F77="$MPIF77"
4583 fi
4584
4585 # correct the LD variable if we use the intel fortran compiler in windows
4586 case $build in
4587 *-cygwin* | *-mingw*)
4588 case "$F77" in
4589 ifort* | */ifort* | IFORT* | */IFORT*)
4590 LD=link
4591 ;;
4592 esac
4593 ;;
4594 esac
4595
4596 ac_ext=c
4597 ac_cpp='$CPP $CPPFLAGS'
4598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4601
4602
4603
4604 # Initialize automake and libtool
4605 # AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4606 {
4607
4608
4609
4610 # START
4611
4612 coin_disable_shared=no
4613 # Test if force_shared has been set
4614 if test "x" = xforce_shared; then
4615 if test x$enable_shared = xno; then
4616 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4617 echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4618 { (exit 1); exit 1; }; }
4619 fi
4620 enable_shared=yes;
4621 else
4622 case $build in
4623 *-cygwin* | *-mingw*)
4624 coin_disable_shared=yes
4625 if test x"$enable_shared" = xyes; then
4626 case "$CC" in
4627 clang* | */clang* )
4628 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4629 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4630 ;;
4631 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4632 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4633 echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4634 ;;
4635 *gcc*)
4636 if test x"$enable_dependency_linking" = xyes; then
4637 coin_disable_shared=no
4638 else
4639 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4640 echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4641 fi
4642 ;;
4643 *)
4644 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4645 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4646 ;;
4647 esac
4648 fi
4649 ;;
4650 *-aix*)
4651 coin_disable_shared=yes
4652 platform=AIX
4653 if test x"$enable_shared" = xyes; then
4654 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4655 echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4656 fi
4657 ;;
4658 esac
4659 fi
4660 if test x"$coin_disable_shared" = xyes; then
4661 if test x"$enable_shared" = xyes; then
4662 :
4663 else
4664 # we don't disable shared, because it was not selected anyway
4665 coin_disable_shared=no
4666 fi
4667 enable_shared=no
4668 fi
4669 # By default, we only want the shared objects to be compiled
4670 # Check whether --enable-static or --disable-static was given.
4671 if test "${enable_static+set}" = set; then
4672 enableval="$enable_static"
4673 p=${PACKAGE-default}
4674 case $enableval in
4675 yes) enable_static=yes ;;
4676 no) enable_static=no ;;
4677 *)
4678 enable_static=no
4679 # Look at the argument we got. We use all the common list separators.
4680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4681 for pkg in $enableval; do
4682 IFS="$lt_save_ifs"
4683 if test "X$pkg" = "X$p"; then
4684 enable_static=yes
4685 fi
4686 done
4687 IFS="$lt_save_ifs"
4688 ;;
4689 esac
4690 else
4691 enable_static=no
4692 fi;
4693
4694
4695
4696
4697 # Initialize automake
4698 echo "$as_me:$LINENO: checking for egrep" >&5
4699 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4700 if test "${ac_cv_prog_egrep+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4704 then ac_cv_prog_egrep='grep -E'
4705 else ac_cv_prog_egrep='egrep'
4706 fi
4707 fi
4708 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4709 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4710 EGREP=$ac_cv_prog_egrep
4711
4712
4713 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4714 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4715 LN_S=$as_ln_s
4716 if test "$LN_S" = "ln -s"; then
4717 echo "$as_me:$LINENO: result: yes" >&5
4718 echo "${ECHO_T}yes" >&6
4719 else
4720 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4721 echo "${ECHO_T}no, using $LN_S" >&6
4722 fi
4723
4724 am__api_version="1.9"
4725 # Find a good install program. We prefer a C program (faster),
4726 # so one script is as good as another. But avoid the broken or
4727 # incompatible versions:
4728 # SysV /etc/install, /usr/sbin/install
4729 # SunOS /usr/etc/install
4730 # IRIX /sbin/install
4731 # AIX /bin/install
4732 # AmigaOS /C/install, which installs bootblocks on floppy discs
4733 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4734 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4735 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4736 # OS/2's system install, which has a completely different semantic
4737 # ./install, which can be erroneously created by make from ./install.sh.
4738 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4739 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4740 if test -z "$INSTALL"; then
4741 if test "${ac_cv_path_install+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 # Account for people who put trailing slashes in PATH elements.
4750 case $as_dir/ in
4751 ./ | .// | /cC/* | \
4752 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4753 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4754 /usr/ucb/* ) ;;
4755 *)
4756 # OSF1 and SCO ODT 3.0 have their own names for install.
4757 # Don't use installbsd from OSF since it installs stuff as root
4758 # by default.
4759 for ac_prog in ginstall scoinst install; do
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4762 if test $ac_prog = install &&
4763 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4764 # AIX install. It has an incompatible calling convention.
4765 :
4766 elif test $ac_prog = install &&
4767 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4768 # program-specific install script used by HP pwplus--don't use.
4769 :
4770 else
4771 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4772 break 3
4773 fi
4774 fi
4775 done
4776 done
4777 ;;
4778 esac
4779 done
4780
4781
4782 fi
4783 if test "${ac_cv_path_install+set}" = set; then
4784 INSTALL=$ac_cv_path_install
4785 else
4786 # As a last resort, use the slow shell script. We don't cache a
4787 # path for INSTALL within a source directory, because that will
4788 # break other packages using the cache if that directory is
4789 # removed, or if the path is relative.
4790 INSTALL=$ac_install_sh
4791 fi
4792 fi
4793 echo "$as_me:$LINENO: result: $INSTALL" >&5
4794 echo "${ECHO_T}$INSTALL" >&6
4795
4796 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4797 # It thinks the first close brace ends the variable substitution.
4798 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4799
4800 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4801
4802 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4803
4804 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4805 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4806 # Just in case
4807 sleep 1
4808 echo timestamp > conftest.file
4809 # Do `set' in a subshell so we don't clobber the current shell's
4810 # arguments. Must try -L first in case configure is actually a
4811 # symlink; some systems play weird games with the mod time of symlinks
4812 # (eg FreeBSD returns the mod time of the symlink's containing
4813 # directory).
4814 if (
4815 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4816 if test "$*" = "X"; then
4817 # -L didn't work.
4818 set X `ls -t $srcdir/configure conftest.file`
4819 fi
4820 rm -f conftest.file
4821 if test "$*" != "X $srcdir/configure conftest.file" \
4822 && test "$*" != "X conftest.file $srcdir/configure"; then
4823
4824 # If neither matched, then we have a broken ls. This can happen
4825 # if, for instance, CONFIG_SHELL is bash and it inherits a
4826 # broken ls alias from the environment. This has actually
4827 # happened. Such a system could not be considered "sane".
4828 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4829 alias in your environment" >&5
4830 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4831 alias in your environment" >&2;}
4832 { (exit 1); exit 1; }; }
4833 fi
4834
4835 test "$2" = conftest.file
4836 )
4837 then
4838 # Ok.
4839 :
4840 else
4841 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4842 Check your system clock" >&5
4843 echo "$as_me: error: newly created file is older than distributed files!
4844 Check your system clock" >&2;}
4845 { (exit 1); exit 1; }; }
4846 fi
4847 echo "$as_me:$LINENO: result: yes" >&5
4848 echo "${ECHO_T}yes" >&6
4849 test "$program_prefix" != NONE &&
4850 program_transform_name="s,^,$program_prefix,;$program_transform_name"
4851 # Use a double $ so make ignores it.
4852 test "$program_suffix" != NONE &&
4853 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4854 # Double any \ or $. echo might interpret backslashes.
4855 # By default was `s,x,x', remove it if useless.
4856 cat <<\_ACEOF >conftest.sed
4857 s/[\\$]/&&/g;s/;s,x,x,$//
4858 _ACEOF
4859 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4860 rm conftest.sed
4861
4862 # expand $ac_aux_dir to an absolute path
4863 am_aux_dir=`cd $ac_aux_dir && pwd`
4864
4865 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4866 # Use eval to expand $SHELL
4867 if eval "$MISSING --run true"; then
4868 am_missing_run="$MISSING --run "
4869 else
4870 am_missing_run=
4871 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4872 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4873 fi
4874
4875 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4876 # We used to keeping the `.' as first argument, in order to
4877 # allow $(mkdir_p) to be used without argument. As in
4878 # $(mkdir_p) $(somedir)
4879 # where $(somedir) is conditionally defined. However this is wrong
4880 # for two reasons:
4881 # 1. if the package is installed by a user who cannot write `.'
4882 # make install will fail,
4883 # 2. the above comment should most certainly read
4884 # $(mkdir_p) $(DESTDIR)$(somedir)
4885 # so it does not work when $(somedir) is undefined and
4886 # $(DESTDIR) is not.
4887 # To support the latter case, we have to write
4888 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4889 # so the `.' trick is pointless.
4890 mkdir_p='mkdir -p --'
4891 else
4892 # On NextStep and OpenStep, the `mkdir' command does not
4893 # recognize any option. It will interpret all options as
4894 # directories to create, and then abort because `.' already
4895 # exists.
4896 for d in ./-p ./--version;
4897 do
4898 test -d $d && rmdir $d
4899 done
4900 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4901 if test -f "$ac_aux_dir/mkinstalldirs"; then
4902 mkdir_p='$(mkinstalldirs)'
4903 else
4904 mkdir_p='$(install_sh) -d'
4905 fi
4906 fi
4907
4908 for ac_prog in gawk mawk nawk awk
4909 do
4910 # Extract the first word of "$ac_prog", so it can be a program name with args.
4911 set dummy $ac_prog; ac_word=$2
4912 echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4914 if test "${ac_cv_prog_AWK+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917 if test -n "$AWK"; then
4918 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927 ac_cv_prog_AWK="$ac_prog"
4928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4930 fi
4931 done
4932 done
4933
4934 fi
4935 fi
4936 AWK=$ac_cv_prog_AWK
4937 if test -n "$AWK"; then
4938 echo "$as_me:$LINENO: result: $AWK" >&5
4939 echo "${ECHO_T}$AWK" >&6
4940 else
4941 echo "$as_me:$LINENO: result: no" >&5
4942 echo "${ECHO_T}no" >&6
4943 fi
4944
4945 test -n "$AWK" && break
4946 done
4947
4948 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4949 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4950 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4951 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954 cat >conftest.make <<\_ACEOF
4955 all:
4956 @echo 'ac_maketemp="$(MAKE)"'
4957 _ACEOF
4958 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4959 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4960 if test -n "$ac_maketemp"; then
4961 eval ac_cv_prog_make_${ac_make}_set=yes
4962 else
4963 eval ac_cv_prog_make_${ac_make}_set=no
4964 fi
4965 rm -f conftest.make
4966 fi
4967 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4968 echo "$as_me:$LINENO: result: yes" >&5
4969 echo "${ECHO_T}yes" >&6
4970 SET_MAKE=
4971 else
4972 echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6
4974 SET_MAKE="MAKE=${MAKE-make}"
4975 fi
4976
4977 rm -rf .tst 2>/dev/null
4978 mkdir .tst 2>/dev/null
4979 if test -d .tst; then
4980 am__leading_dot=.
4981 else
4982 am__leading_dot=_
4983 fi
4984 rmdir .tst 2>/dev/null
4985
4986 DEPDIR="${am__leading_dot}deps"
4987
4988 ac_config_commands="$ac_config_commands depfiles"
4989
4990
4991 am_make=${MAKE-make}
4992 cat > confinc << 'END'
4993 am__doit:
4994 @echo done
4995 .PHONY: am__doit
4996 END
4997 # If we don't find an include directive, just comment out the code.
4998 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4999 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5000 am__include="#"
5001 am__quote=
5002 _am_result=none
5003 # First try GNU make style include.
5004 echo "include confinc" > confmf
5005 # We grep out `Entering directory' and `Leaving directory'
5006 # messages which can occur if `w' ends up in MAKEFLAGS.
5007 # In particular we don't look at `^make:' because GNU make might
5008 # be invoked under some other name (usually "gmake"), in which
5009 # case it prints its new name instead of `make'.
5010 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5011 am__include=include
5012 am__quote=
5013 _am_result=GNU
5014 fi
5015 # Now try BSD make style include.
5016 if test "$am__include" = "#"; then
5017 echo '.include "confinc"' > confmf
5018 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5019 am__include=.include
5020 am__quote="\""
5021 _am_result=BSD
5022 fi
5023 fi
5024
5025
5026 echo "$as_me:$LINENO: result: $_am_result" >&5
5027 echo "${ECHO_T}$_am_result" >&6
5028 rm -f confinc confmf
5029
5030 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5031 if test "${enable_dependency_tracking+set}" = set; then
5032 enableval="$enable_dependency_tracking"
5033
5034 fi;
5035 if test "x$enable_dependency_tracking" != xno; then
5036 am_depcomp="$ac_aux_dir/depcomp"
5037 AMDEPBACKSLASH='\'
5038 fi
5039
5040
5041 if test "x$enable_dependency_tracking" != xno; then
5042 AMDEP_TRUE=
5043 AMDEP_FALSE='#'
5044 else
5045 AMDEP_TRUE='#'
5046 AMDEP_FALSE=
5047 fi
5048
5049
5050
5051
5052
5053
5054 # AC_MSG_NOTICE([Beginning automake initialisation.])
5055 # Stuff for automake
5056 # test to see if srcdir already configured
5057 if test "`cd $srcdir && pwd`" != "`pwd`" &&
5058 test -f $srcdir/config.status; then
5059 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5060 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5061 { (exit 1); exit 1; }; }
5062 fi
5063
5064 # test whether we have cygpath
5065 if test -z "$CYGPATH_W"; then
5066 if (cygpath --version) >/dev/null 2>/dev/null; then
5067 CYGPATH_W='cygpath -w'
5068 else
5069 CYGPATH_W=echo
5070 fi
5071 fi
5072
5073
5074 # Define the identity of the package.
5075 PACKAGE='cgl'
5076 VERSION='0.60.9'
5077
5078
5079 cat >>confdefs.h <<_ACEOF
5080 #define PACKAGE "$PACKAGE"
5081 _ACEOF
5082
5083
5084 cat >>confdefs.h <<_ACEOF
5085 #define VERSION "$VERSION"
5086 _ACEOF
5087
5088 # Some tools Automake needs.
5089
5090 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5091
5092
5093 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5094
5095
5096 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5097
5098
5099 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5100
5101
5102 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5103
5104 install_sh=${install_sh-"$am_aux_dir/install-sh"}
5105
5106 # Installed binaries are usually stripped using `strip' when the user
5107 # run `make install-strip'. However `strip' might not be the right
5108 # tool to use in cross-compilation environments, therefore Automake
5109 # will honor the `STRIP' environment variable to overrule this program.
5110 if test "$cross_compiling" != no; then
5111 if test -n "$ac_tool_prefix"; then
5112 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5113 set dummy ${ac_tool_prefix}strip; ac_word=$2
5114 echo "$as_me:$LINENO: checking for $ac_word" >&5
5115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5116 if test "${ac_cv_prog_STRIP+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119 if test -n "$STRIP"; then
5120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5132 fi
5133 done
5134 done
5135
5136 fi
5137 fi
5138 STRIP=$ac_cv_prog_STRIP
5139 if test -n "$STRIP"; then
5140 echo "$as_me:$LINENO: result: $STRIP" >&5
5141 echo "${ECHO_T}$STRIP" >&6
5142 else
5143 echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6
5145 fi
5146
5147 fi
5148 if test -z "$ac_cv_prog_STRIP"; then
5149 ac_ct_STRIP=$STRIP
5150 # Extract the first word of "strip", so it can be a program name with args.
5151 set dummy strip; ac_word=$2
5152 echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5154 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 if test -n "$ac_ct_STRIP"; then
5158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_ac_ct_STRIP="strip"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171 done
5172 done
5173
5174 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5175 fi
5176 fi
5177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5178 if test -n "$ac_ct_STRIP"; then
5179 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5180 echo "${ECHO_T}$ac_ct_STRIP" >&6
5181 else
5182 echo "$as_me:$LINENO: result: no" >&5
5183 echo "${ECHO_T}no" >&6
5184 fi
5185
5186 STRIP=$ac_ct_STRIP
5187 else
5188 STRIP="$ac_cv_prog_STRIP"
5189 fi
5190
5191 fi
5192 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5193
5194 # We need awk for the "check" target. The system "awk" is bad on
5195 # some platforms.
5196 # Always define AMTAR for backward compatibility.
5197
5198 AMTAR=${AMTAR-"${am_missing_run}tar"}
5199
5200 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5201
5202
5203
5204
5205 depcc="$CC" am_compiler_list=
5206
5207 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5208 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5209 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5213 # We make a subdir and do the tests there. Otherwise we can end up
5214 # making bogus files that we don't know about and never remove. For
5215 # instance it was reported that on HP-UX the gcc test will end up
5216 # making a dummy file named `D' -- because `-MD' means `put the output
5217 # in D'.
5218 mkdir conftest.dir
5219 # Copy depcomp to subdir because otherwise we won't find it if we're
5220 # using a relative directory.
5221 cp "$am_depcomp" conftest.dir
5222 cd conftest.dir
5223 # We will build objects and dependencies in a subdirectory because
5224 # it helps to detect inapplicable dependency modes. For instance
5225 # both Tru64's cc and ICC support -MD to output dependencies as a
5226 # side effect of compilation, but ICC will put the dependencies in
5227 # the current directory while Tru64 will put them in the object
5228 # directory.
5229 mkdir sub
5230
5231 am_cv_CC_dependencies_compiler_type=none
5232 if test "$am_compiler_list" = ""; then
5233 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5234 fi
5235 for depmode in $am_compiler_list; do
5236 # Setup a source with many dependencies, because some compilers
5237 # like to wrap large dependency lists on column 80 (with \), and
5238 # we should not choose a depcomp mode which is confused by this.
5239 #
5240 # We need to recreate these files for each test, as the compiler may
5241 # overwrite some of them when testing with obscure command lines.
5242 # This happens at least with the AIX C compiler.
5243 : > sub/conftest.c
5244 for i in 1 2 3 4 5 6; do
5245 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5246 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5247 # Solaris 8's {/usr,}/bin/sh.
5248 touch sub/conftst$i.h
5249 done
5250 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5251
5252 case $depmode in
5253 nosideeffect)
5254 # after this tag, mechanisms are not by side-effect, so they'll
5255 # only be used when explicitly requested
5256 if test "x$enable_dependency_tracking" = xyes; then
5257 continue
5258 else
5259 break
5260 fi
5261 ;;
5262 none) break ;;
5263 esac
5264 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5265 # mode. It turns out that the SunPro C++ compiler does not properly
5266 # handle `-M -o', and we need to detect this.
5267 if depmode=$depmode \
5268 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5270 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5271 >/dev/null 2>conftest.err &&
5272 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5273 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5274 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5275 # icc doesn't choke on unknown options, it will just issue warnings
5276 # or remarks (even with -Werror). So we grep stderr for any message
5277 # that says an option was ignored or not supported.
5278 # When given -MP, icc 7.0 and 7.1 complain thusly:
5279 # icc: Command line warning: ignoring option '-M'; no argument required
5280 # The diagnosis changed in icc 8.0:
5281 # icc: Command line remark: option '-MP' not supported
5282 if (grep 'ignoring option' conftest.err ||
5283 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5284 am_cv_CC_dependencies_compiler_type=$depmode
5285 break
5286 fi
5287 fi
5288 done
5289
5290 cd ..
5291 rm -rf conftest.dir
5292 else
5293 am_cv_CC_dependencies_compiler_type=none
5294 fi
5295
5296 fi
5297 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5298 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5299 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5300
5301
5302
5303 if
5304 test "x$enable_dependency_tracking" != xno \
5305 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5306 am__fastdepCC_TRUE=
5307 am__fastdepCC_FALSE='#'
5308 else
5309 am__fastdepCC_TRUE='#'
5310 am__fastdepCC_FALSE=
5311 fi
5312
5313
5314 depcc="$CXX" am_compiler_list=
5315
5316 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5317 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5318 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5322 # We make a subdir and do the tests there. Otherwise we can end up
5323 # making bogus files that we don't know about and never remove. For
5324 # instance it was reported that on HP-UX the gcc test will end up
5325 # making a dummy file named `D' -- because `-MD' means `put the output
5326 # in D'.
5327 mkdir conftest.dir
5328 # Copy depcomp to subdir because otherwise we won't find it if we're
5329 # using a relative directory.
5330 cp "$am_depcomp" conftest.dir
5331 cd conftest.dir
5332 # We will build objects and dependencies in a subdirectory because
5333 # it helps to detect inapplicable dependency modes. For instance
5334 # both Tru64's cc and ICC support -MD to output dependencies as a
5335 # side effect of compilation, but ICC will put the dependencies in
5336 # the current directory while Tru64 will put them in the object
5337 # directory.
5338 mkdir sub
5339
5340 am_cv_CXX_dependencies_compiler_type=none
5341 if test "$am_compiler_list" = ""; then
5342 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5343 fi
5344 for depmode in $am_compiler_list; do
5345 # Setup a source with many dependencies, because some compilers
5346 # like to wrap large dependency lists on column 80 (with \), and
5347 # we should not choose a depcomp mode which is confused by this.
5348 #
5349 # We need to recreate these files for each test, as the compiler may
5350 # overwrite some of them when testing with obscure command lines.
5351 # This happens at least with the AIX C compiler.
5352 : > sub/conftest.c
5353 for i in 1 2 3 4 5 6; do
5354 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5355 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5356 # Solaris 8's {/usr,}/bin/sh.
5357 touch sub/conftst$i.h
5358 done
5359 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5360
5361 case $depmode in
5362 nosideeffect)
5363 # after this tag, mechanisms are not by side-effect, so they'll
5364 # only be used when explicitly requested
5365 if test "x$enable_dependency_tracking" = xyes; then
5366 continue
5367 else
5368 break
5369 fi
5370 ;;
5371 none) break ;;
5372 esac
5373 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5374 # mode. It turns out that the SunPro C++ compiler does not properly
5375 # handle `-M -o', and we need to detect this.
5376 if depmode=$depmode \
5377 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5378 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5379 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5380 >/dev/null 2>conftest.err &&
5381 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5382 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5383 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5384 # icc doesn't choke on unknown options, it will just issue warnings
5385 # or remarks (even with -Werror). So we grep stderr for any message
5386 # that says an option was ignored or not supported.
5387 # When given -MP, icc 7.0 and 7.1 complain thusly:
5388 # icc: Command line warning: ignoring option '-M'; no argument required
5389 # The diagnosis changed in icc 8.0:
5390 # icc: Command line remark: option '-MP' not supported
5391 if (grep 'ignoring option' conftest.err ||
5392 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5393 am_cv_CXX_dependencies_compiler_type=$depmode
5394 break
5395 fi
5396 fi
5397 done
5398
5399 cd ..
5400 rm -rf conftest.dir
5401 else
5402 am_cv_CXX_dependencies_compiler_type=none
5403 fi
5404
5405 fi
5406 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5407 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5408 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5409
5410
5411
5412 if
5413 test "x$enable_dependency_tracking" != xno \
5414 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5415 am__fastdepCXX_TRUE=
5416 am__fastdepCXX_FALSE='#'
5417 else
5418 am__fastdepCXX_TRUE='#'
5419 am__fastdepCXX_FALSE=
5420 fi
5421
5422
5423
5424 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5425 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5426 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5427 if test "${enable_maintainer_mode+set}" = set; then
5428 enableval="$enable_maintainer_mode"
5429 USE_MAINTAINER_MODE=$enableval
5430 else
5431 USE_MAINTAINER_MODE=no
5432 fi;
5433 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5434 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5435
5436
5437 if test $USE_MAINTAINER_MODE = yes; then
5438 MAINTAINER_MODE_TRUE=
5439 MAINTAINER_MODE_FALSE='#'
5440 else
5441 MAINTAINER_MODE_TRUE='#'
5442 MAINTAINER_MODE_FALSE=
5443 fi
5444
5445 MAINT=$MAINTAINER_MODE_TRUE
5446
5447
5448
5449 coin_have_externals=no
5450 if test "$enable_maintainer_mode" = yes; then
5451
5452 # If maintainer mode is chosen, we make sure that the correct versions
5453 # of the tools are used, and that we know where libtool.m4 is (to
5454 # recreate acinclude.m4)
5455
5456
5457 LIBTOOLM4=
5458 # Normally, $HOME
5459 AUTOTOOLS_DFLT=$HOME
5460
5461 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5462 echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5463 if test "${ac_cv_use_correct_autotools+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466 ac_cv_use_correct_autotools=check
5467 fi
5468 echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5469 echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5470
5471 if test $ac_cv_use_correct_autotools = check; then
5472 ac_cv_use_correct_autotools=yes
5473 # Check if we have autoconf
5474 # Extract the first word of "autoconf", so it can be a program name with args.
5475 set dummy autoconf; ac_word=$2
5476 echo "$as_me:$LINENO: checking for $ac_word" >&5
5477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5478 if test "${ac_cv_prog_have_autoconf+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481 if test -n "$have_autoconf"; then
5482 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_have_autoconf="yes"
5492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495 done
5496 done
5497
5498 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5499 fi
5500 fi
5501 have_autoconf=$ac_cv_prog_have_autoconf
5502 if test -n "$have_autoconf"; then
5503 echo "$as_me:$LINENO: result: $have_autoconf" >&5
5504 echo "${ECHO_T}$have_autoconf" >&6
5505 else
5506 echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5508 fi
5509
5510 if test $have_autoconf = no; then
5511 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5512 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5513 { (exit 1); exit 1; }; }
5514 fi
5515
5516 # Check whether autoconf is the correct version
5517 correct_version='2.59'
5518 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5519 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5520 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5521 autoconf --version > confauto.out 2>&1
5522 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5523 echo "$as_me:$LINENO: result: yes" >&5
5524 echo "${ECHO_T}yes" >&6
5525 else
5526 rm -f confauto.out
5527 echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6
5529 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5530 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5531 { (exit 1); exit 1; }; }
5532 fi
5533 rm -f confauto.out
5534
5535 # Check if the executable autoconf is picked up from the correct location
5536 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5537 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5538 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5539 autoconf_dir=`cd $autoconf_dir; pwd`
5540 if test x$AUTOTOOLS_DIR = x; then
5541 want_dir=$AUTOTOOLS_DFLT/bin
5542 else
5543 want_dir=$AUTOTOOLS_DIR/bin
5544 fi
5545 if test $autoconf_dir = `cd $want_dir; pwd`; then
5546 echo "$as_me:$LINENO: result: yes" >&5
5547 echo "${ECHO_T}yes" >&6
5548 else
5549 rm -f confauto.out
5550 echo "$as_me:$LINENO: result: no" >&5
5551 echo "${ECHO_T}no" >&6
5552 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5553 echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5554 { (exit 1); exit 1; }; }
5555 fi
5556
5557 # Check if we have automake
5558 # Extract the first word of "automake", so it can be a program name with args.
5559 set dummy automake; ac_word=$2
5560 echo "$as_me:$LINENO: checking for $ac_word" >&5
5561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5562 if test "${ac_cv_prog_have_automake+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565 if test -n "$have_automake"; then
5566 ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_prog_have_automake="yes"
5576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5578 fi
5579 done
5580 done
5581
5582 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5583 fi
5584 fi
5585 have_automake=$ac_cv_prog_have_automake
5586 if test -n "$have_automake"; then
5587 echo "$as_me:$LINENO: result: $have_automake" >&5
5588 echo "${ECHO_T}$have_automake" >&6
5589 else
5590 echo "$as_me:$LINENO: result: no" >&5
5591 echo "${ECHO_T}no" >&6
5592 fi
5593
5594 if test $have_automake = no; then
5595 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5596 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5597 { (exit 1); exit 1; }; }
5598 fi
5599
5600 # Check whether automake is the correct version
5601 correct_version='1.9.6'
5602 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5603 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5604 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5605 automake --version > confauto.out 2>&1
5606 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5607 echo "$as_me:$LINENO: result: yes" >&5
5608 echo "${ECHO_T}yes" >&6
5609 else
5610 rm -f confauto.out
5611 echo "$as_me:$LINENO: result: no" >&5
5612 echo "${ECHO_T}no" >&6
5613 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5614 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5615 { (exit 1); exit 1; }; }
5616 fi
5617 rm -f confauto.out
5618
5619 # Check if the executable automake is picked up from the correct location
5620 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5621 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5622 automake_dir=`which automake | sed -e 's=/automake=='`
5623 automake_dir=`cd $automake_dir; pwd`
5624 if test x$AUTOTOOLS_DIR = x; then
5625 want_dir=$AUTOTOOLS_DFLT/bin
5626 else
5627 want_dir=$AUTOTOOLS_DIR/bin
5628 fi
5629 if test $automake_dir = `cd $want_dir; pwd`; then
5630 echo "$as_me:$LINENO: result: yes" >&5
5631 echo "${ECHO_T}yes" >&6
5632 else
5633 rm -f confauto.out
5634 echo "$as_me:$LINENO: result: no" >&5
5635 echo "${ECHO_T}no" >&6
5636 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5637 echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5638 { (exit 1); exit 1; }; }
5639 fi
5640
5641 # Check if this is the correct version of libtool (with escaped dots)
5642 if test x$AUTOTOOLS_DIR = x; then
5643 want_dir=$AUTOTOOLS_DFLT/share
5644 else
5645 want_dir=$AUTOTOOLS_DIR/share
5646 fi
5647 correct_version='1.5.22'
5648 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5649 if test -r $want_dir/libtool/ltmain.sh; then
5650 have_ltmain=yes
5651 :
5652 else
5653 have_ltmain=no
5654 :
5655 fi
5656
5657 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5658 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5659 if test $have_ltmain = yes; then
5660 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5661 echo "$as_me:$LINENO: result: yes" >&5
5662 echo "${ECHO_T}yes" >&6
5663 else
5664 echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6
5666 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5667 echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5668 { (exit 1); exit 1; }; }
5669 fi
5670 else
5671 echo "$as_me:$LINENO: result: no" >&5
5672 echo "${ECHO_T}no" >&6
5673 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5674 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5675 { (exit 1); exit 1; }; }
5676 fi
5677 fi
5678
5679 # Check if we can find the libtool file
5680 if test x$AUTOTOOLS_DIR = x; then
5681 want_dir=$AUTOTOOLS_DFLT/share
5682 else
5683 want_dir=$AUTOTOOLS_DIR/share
5684 fi
5685 if test -r $want_dir/aclocal/libtool.m4; then
5686 LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5687 :
5688 else
5689 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5690 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5691 { (exit 1); exit 1; }; }
5692 :
5693 fi
5694
5695
5696 # Check if we have an Dependencies file
5697 if test -r $srcdir/Dependencies; then
5698 coin_have_externals=yes
5699 fi
5700 # Check if subversion is installed and understands https
5701 # Extract the first word of "svn", so it can be a program name with args.
5702 set dummy svn; ac_word=$2
5703 echo "$as_me:$LINENO: checking for $ac_word" >&5
5704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5705 if test "${ac_cv_prog_have_svn+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708 if test -n "$have_svn"; then
5709 ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_have_svn="yes"
5719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722 done
5723 done
5724
5725 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5726 fi
5727 fi
5728 have_svn=$ac_cv_prog_have_svn
5729 if test -n "$have_svn"; then
5730 echo "$as_me:$LINENO: result: $have_svn" >&5
5731 echo "${ECHO_T}$have_svn" >&6
5732 else
5733 echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6
5735 fi
5736
5737 if test x$have_svn = xyes; then
5738 echo "$as_me:$LINENO: checking whether svn understands https" >&5
5739 echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5740 if test "${ac_cv_svn_understands_https+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 svn --version > confauto.out 2>&1
5744 if $EGREP https confauto.out >/dev/null 2>&1; then
5745 ac_cv_svn_understands_https=yes
5746 else
5747 ac_cv_svn_understands_https=no
5748 have_svn=no
5749 ac_cv_prog_have_svn=no
5750 fi
5751 rm -f confauto.out
5752 fi
5753 echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5754 echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5755 fi
5756
5757 # Find the location of the BuildTools directory
5758 BUILDTOOLSDIR=
5759 if test -r $srcdir/BuildTools/coin.m4; then
5760 BUILDTOOLSDIR=$srcdir/BuildTools
5761 elif test -r $srcdir/../BuildTools/coin.m4; then
5762 BUILDTOOLSDIR=$srcdir/../BuildTools
5763 elif test -r $srcdir/../../BuildTools/coin.m4; then
5764 BUILDTOOLSDIR=$srcdir/../../BuildTools
5765 elif test -r $srcdir/../../../BuildTools/coin.m4; then
5766 BUILDTOOLSDIR=$srcdir/../../../BuildTools
5767 else
5768 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5769 echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5770 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5771 fi
5772
5773
5774 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5775 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5776 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5777 fi
5778
5779 # The following variable is set to the name of the directory where
5780 # the autotool scripts are located
5781
5782 AUX_DIR=$ac_aux_dir
5783 fi
5784
5785 # helpful variable for the base directory of this package
5786 abs_source_dir=`cd $srcdir; pwd`
5787
5788
5789 # Stuff for example Makefiles
5790 if test x$prefix = xNONE; then
5791 full_prefix=$ac_default_prefix
5792 else
5793 full_prefix=$prefix
5794 fi
5795
5796
5797 abs_lib_dir=$full_prefix/lib
5798
5799 abs_include_dir=$full_prefix/include
5800
5801 abs_bin_dir=$full_prefix/bin
5802
5803
5804
5805 if test $coin_have_externals = yes && test x$have_svn = xyes; then
5806 HAVE_EXTERNALS_TRUE=
5807 HAVE_EXTERNALS_FALSE='#'
5808 else
5809 HAVE_EXTERNALS_TRUE='#'
5810 HAVE_EXTERNALS_FALSE=
5811 fi
5812
5813
5814 # AC_MSG_NOTICE([End automake initialisation.])
5815
5816
5817
5818 LIBTOOL=
5819 if test -f ../libtool; then
5820 coin_config_dir=..
5821 LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5822 fi
5823 if test "x$LIBTOOL" = x; then
5824 if test -f ../../libtool; then
5825 coin_config_dir=../..
5826 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5827 fi
5828 fi
5829
5830 if test "x$LIBTOOL" = x; then
5831 # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5832 # Stuff for libtool
5833 # Check whether --enable-shared or --disable-shared was given.
5834 if test "${enable_shared+set}" = set; then
5835 enableval="$enable_shared"
5836 p=${PACKAGE-default}
5837 case $enableval in
5838 yes) enable_shared=yes ;;
5839 no) enable_shared=no ;;
5840 *)
5841 enable_shared=no
5842 # Look at the argument we got. We use all the common list separators.
5843 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5844 for pkg in $enableval; do
5845 IFS="$lt_save_ifs"
5846 if test "X$pkg" = "X$p"; then
5847 enable_shared=yes
5848 fi
5849 done
5850 IFS="$lt_save_ifs"
5851 ;;
5852 esac
5853 else
5854 enable_shared=yes
5855 fi;
5856
5857 # Check whether --enable-fast-install or --disable-fast-install was given.
5858 if test "${enable_fast_install+set}" = set; then
5859 enableval="$enable_fast_install"
5860 p=${PACKAGE-default}
5861 case $enableval in
5862 yes) enable_fast_install=yes ;;
5863 no) enable_fast_install=no ;;
5864 *)
5865 enable_fast_install=no
5866 # Look at the argument we got. We use all the common list separators.
5867 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5868 for pkg in $enableval; do
5869 IFS="$lt_save_ifs"
5870 if test "X$pkg" = "X$p"; then
5871 enable_fast_install=yes
5872 fi
5873 done
5874 IFS="$lt_save_ifs"
5875 ;;
5876 esac
5877 else
5878 enable_fast_install=yes
5879 fi;
5880
5881 echo "$as_me:$LINENO: checking host system type" >&5
5882 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5883 if test "${ac_cv_host+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886 ac_cv_host_alias=$host_alias
5887 test -z "$ac_cv_host_alias" &&
5888 ac_cv_host_alias=$ac_cv_build_alias
5889 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5890 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5891 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5892 { (exit 1); exit 1; }; }
5893
5894 fi
5895 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5896 echo "${ECHO_T}$ac_cv_host" >&6
5897 host=$ac_cv_host
5898 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5899 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5900 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5901
5902
5903 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5904 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5905 if test "${lt_cv_path_SED+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 # Loop through the user's path and test for sed and gsed.
5909 # Then use that list of sed's as ones to test for truncation.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for lt_ac_prog in sed gsed; do
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5918 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5919 fi
5920 done
5921 done
5922 done
5923 lt_ac_max=0
5924 lt_ac_count=0
5925 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5926 # along with /bin/sed that truncates output.
5927 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5928 test ! -f $lt_ac_sed && continue
5929 cat /dev/null > conftest.in
5930 lt_ac_count=0
5931 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5932 # Check for GNU sed and select it if it is found.
5933 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5934 lt_cv_path_SED=$lt_ac_sed
5935 break
5936 fi
5937 while true; do
5938 cat conftest.in conftest.in >conftest.tmp
5939 mv conftest.tmp conftest.in
5940 cp conftest.in conftest.nl
5941 echo >>conftest.nl
5942 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5943 cmp -s conftest.out conftest.nl || break
5944 # 10000 chars as input seems more than enough
5945 test $lt_ac_count -gt 10 && break
5946 lt_ac_count=`expr $lt_ac_count + 1`
5947 if test $lt_ac_count -gt $lt_ac_max; then
5948 lt_ac_max=$lt_ac_count
5949 lt_cv_path_SED=$lt_ac_sed
5950 fi
5951 done
5952 done
5953
5954 fi
5955
5956 SED=$lt_cv_path_SED
5957 echo "$as_me:$LINENO: result: $SED" >&5
5958 echo "${ECHO_T}$SED" >&6
5959
5960
5961 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5962 if test "${with_gnu_ld+set}" = set; then
5963 withval="$with_gnu_ld"
5964 test "$withval" = no || with_gnu_ld=yes
5965 else
5966 with_gnu_ld=no
5967 fi;
5968 ac_prog=ld
5969 if test "$GCC" = yes; then
5970 # Check if gcc -print-prog-name=ld gives a path.
5971 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5972 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5973 case $host in
5974 *-*-mingw*)
5975 # gcc leaves a trailing carriage return which upsets mingw
5976 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5977 *)
5978 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5979 esac
5980 case $ac_prog in
5981 # Accept absolute paths.
5982 [\\/]* | ?:[\\/]*)
5983 re_direlt='/[^/][^/]*/\.\./'
5984 # Canonicalize the pathname of ld
5985 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5986 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5987 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5988 done
5989 test -z "$LD" && LD="$ac_prog"
5990 ;;
5991 "")
5992 # If it fails, then pretend we aren't using GCC.
5993 ac_prog=ld
5994 ;;
5995 *)
5996 # If it is relative, then search for the first ld in PATH.
5997 with_gnu_ld=unknown
5998 ;;
5999 esac
6000 elif test "$with_gnu_ld" = yes; then
6001 echo "$as_me:$LINENO: checking for GNU ld" >&5
6002 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6003 else
6004 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6005 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6006 fi
6007 if test "${lt_cv_path_LD+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010 if test -z "$LD"; then
6011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6012 for ac_dir in $PATH; do
6013 IFS="$lt_save_ifs"
6014 test -z "$ac_dir" && ac_dir=.
6015 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6016 lt_cv_path_LD="$ac_dir/$ac_prog"
6017 # Check to see if the program is GNU ld. I'd rather use --version,
6018 # but apparently some variants of GNU ld only accept -v.
6019 # Break only if it was the GNU/non-GNU ld that we prefer.
6020 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6021 *GNU* | *'with BFD'*)
6022 test "$with_gnu_ld" != no && break
6023 ;;
6024 *)
6025 test "$with_gnu_ld" != yes && break
6026 ;;
6027 esac
6028 fi
6029 done
6030 IFS="$lt_save_ifs"
6031 else
6032 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6033 fi
6034 fi
6035
6036 LD="$lt_cv_path_LD"
6037 if test -n "$LD"; then
6038 echo "$as_me:$LINENO: result: $LD" >&5
6039 echo "${ECHO_T}$LD" >&6
6040 else
6041 echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6
6043 fi
6044 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6045 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6046 { (exit 1); exit 1; }; }
6047 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6048 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6049 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6053 case `$LD -v 2>&1 </dev/null` in
6054 *GNU* | *'with BFD'*)
6055 lt_cv_prog_gnu_ld=yes
6056 ;;
6057 *)
6058 lt_cv_prog_gnu_ld=no
6059 ;;
6060 esac
6061 fi
6062 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6063 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6064 with_gnu_ld=$lt_cv_prog_gnu_ld
6065
6066
6067 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6068 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6069 if test "${lt_cv_ld_reload_flag+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072 lt_cv_ld_reload_flag='-r'
6073 fi
6074 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6075 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6076 reload_flag=$lt_cv_ld_reload_flag
6077 case $reload_flag in
6078 "" | " "*) ;;
6079 *) reload_flag=" $reload_flag" ;;
6080 esac
6081 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6082 case $host_os in
6083 darwin*)
6084 if test "$GCC" = yes; then
6085 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6086 else
6087 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6088 fi
6089 ;;
6090 esac
6091
6092 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6093 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6094 if test "${lt_cv_path_NM+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 if test -n "$NM"; then
6098 # Let the user override the test.
6099 lt_cv_path_NM="$NM"
6100 else
6101 lt_nm_to_check="${ac_tool_prefix}nm"
6102 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6103 lt_nm_to_check="$lt_nm_to_check nm"
6104 fi
6105 for lt_tmp_nm in $lt_nm_to_check; do
6106 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6107 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6108 IFS="$lt_save_ifs"
6109 test -z "$ac_dir" && ac_dir=.
6110 tmp_nm="$ac_dir/$lt_tmp_nm"
6111 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6112 # Check to see if the nm accepts a BSD-compat flag.
6113 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6114 # nm: unknown option "B" ignored
6115 # Tru64's nm complains that /dev/null is an invalid object file
6116 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6117 */dev/null* | *'Invalid file or object type'*)
6118 lt_cv_path_NM="$tmp_nm -B"
6119 break
6120 ;;
6121 *)
6122 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6123 */dev/null*)
6124 lt_cv_path_NM="$tmp_nm -p"
6125 break
6126 ;;
6127 *)
6128 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6129 continue # so that we can try to find one that supports BSD flags
6130 ;;
6131 esac
6132 ;;
6133 esac
6134 fi
6135 done
6136 IFS="$lt_save_ifs"
6137 done
6138 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6139 fi
6140 fi
6141 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6142 echo "${ECHO_T}$lt_cv_path_NM" >&6
6143 NM="$lt_cv_path_NM"
6144
6145 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6146 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6147 if test "${lt_cv_deplibs_check_method+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150 lt_cv_file_magic_cmd='$MAGIC_CMD'
6151 lt_cv_file_magic_test_file=
6152 lt_cv_deplibs_check_method='unknown'
6153 # Need to set the preceding variable on all platforms that support
6154 # interlibrary dependencies.
6155 # 'none' -- dependencies not supported.
6156 # `unknown' -- same as none, but documents that we really don't know.
6157 # 'pass_all' -- all dependencies passed with no checks.
6158 # 'test_compile' -- check by making test program.
6159 # 'file_magic [[regex]]' -- check by looking for files in library path
6160 # which responds to the $file_magic_cmd with a given extended regex.
6161 # If you have `file' or equivalent on your system and you're not sure
6162 # whether `pass_all' will *always* work, you probably want this one.
6163
6164 case $host_os in
6165 aix4* | aix5*)
6166 lt_cv_deplibs_check_method=pass_all
6167 ;;
6168
6169 beos*)
6170 lt_cv_deplibs_check_method=pass_all
6171 ;;
6172
6173 bsdi[45]*)
6174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6175 lt_cv_file_magic_cmd='/usr/bin/file -L'
6176 lt_cv_file_magic_test_file=/shlib/libc.so
6177 ;;
6178
6179 cygwin*)
6180 # func_win32_libid is a shell function defined in ltmain.sh
6181 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6182 lt_cv_file_magic_cmd='func_win32_libid'
6183 ;;
6184
6185 mingw* | pw32*)
6186 # Base MSYS/MinGW do not provide the 'file' command needed by
6187 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6188 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6189 lt_cv_file_magic_cmd='$OBJDUMP -f'
6190 ;;
6191
6192 darwin* | rhapsody*)
6193 lt_cv_deplibs_check_method=pass_all
6194 ;;
6195
6196 freebsd* | kfreebsd*-gnu | dragonfly*)
6197 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6198 case $host_cpu in
6199 i*86 )
6200 # Not sure whether the presence of OpenBSD here was a mistake.
6201 # Let's accept both of them until this is cleared up.
6202 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6203 lt_cv_file_magic_cmd=/usr/bin/file
6204 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6205 ;;
6206 esac
6207 else
6208 lt_cv_deplibs_check_method=pass_all
6209 fi
6210 ;;
6211
6212 gnu*)
6213 lt_cv_deplibs_check_method=pass_all
6214 ;;
6215
6216 hpux10.20* | hpux11*)
6217 lt_cv_file_magic_cmd=/usr/bin/file
6218 case $host_cpu in
6219 ia64*)
6220 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6221 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6222 ;;
6223 hppa*64*)
6224 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]'
6225 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6226 ;;
6227 *)
6228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6229 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6230 ;;
6231 esac
6232 ;;
6233
6234 interix3*)
6235 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6237 ;;
6238
6239 irix5* | irix6* | nonstopux*)
6240 case $LD in
6241 *-32|*"-32 ") libmagic=32-bit;;
6242 *-n32|*"-n32 ") libmagic=N32;;
6243 *-64|*"-64 ") libmagic=64-bit;;
6244 *) libmagic=never-match;;
6245 esac
6246 lt_cv_deplibs_check_method=pass_all
6247 ;;
6248
6249 # This must be Linux ELF.
6250 linux*)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
6253
6254 netbsd*)
6255 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6257 else
6258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6259 fi
6260 ;;
6261
6262 newos6*)
6263 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6264 lt_cv_file_magic_cmd=/usr/bin/file
6265 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6266 ;;
6267
6268 nto-qnx*)
6269 lt_cv_deplibs_check_method=unknown
6270 ;;
6271
6272 openbsd*)
6273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6275 else
6276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6277 fi
6278 ;;
6279
6280 osf3* | osf4* | osf5*)
6281 lt_cv_deplibs_check_method=pass_all
6282 ;;
6283
6284 solaris*)
6285 lt_cv_deplibs_check_method=pass_all
6286 ;;
6287
6288 sysv4 | sysv4.3*)
6289 case $host_vendor in
6290 motorola)
6291 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]'
6292 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6293 ;;
6294 ncr)
6295 lt_cv_deplibs_check_method=pass_all
6296 ;;
6297 sequent)
6298 lt_cv_file_magic_cmd='/bin/file'
6299 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6300 ;;
6301 sni)
6302 lt_cv_file_magic_cmd='/bin/file'
6303 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6304 lt_cv_file_magic_test_file=/lib/libc.so
6305 ;;
6306 siemens)
6307 lt_cv_deplibs_check_method=pass_all
6308 ;;
6309 pc)
6310 lt_cv_deplibs_check_method=pass_all
6311 ;;
6312 esac
6313 ;;
6314
6315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6316 lt_cv_deplibs_check_method=pass_all
6317 ;;
6318 esac
6319
6320 fi
6321 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6322 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6323 file_magic_cmd=$lt_cv_file_magic_cmd
6324 deplibs_check_method=$lt_cv_deplibs_check_method
6325 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6326
6327
6328
6329
6330 # If no C compiler was specified, use CC.
6331 LTCC=${LTCC-"$CC"}
6332
6333 # If no C compiler flags were specified, use CFLAGS.
6334 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6335
6336 # Allow CC to be a program name with arguments.
6337 compiler=$CC
6338
6339 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6340 if test "${enable_libtool_lock+set}" = set; then
6341 enableval="$enable_libtool_lock"
6342
6343 fi;
6344 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6345
6346 # Some flags need to be propagated to the compiler or linker for good
6347 # libtool support.
6348 case $host in
6349 ia64-*-hpux*)
6350 # Find out which ABI we are using.
6351 echo 'int i;' > conftest.$ac_ext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353 (eval $ac_compile) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; then
6357 case `/usr/bin/file conftest.$ac_objext` in
6358 *ELF-32*)
6359 HPUX_IA64_MODE="32"
6360 ;;
6361 *ELF-64*)
6362 HPUX_IA64_MODE="64"
6363 ;;
6364 esac
6365 fi
6366 rm -rf conftest*
6367 ;;
6368 *-*-irix6*)
6369 # Find out which ABI we are using.
6370 echo '#line 6370 "configure"' > conftest.$ac_ext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372 (eval $ac_compile) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; then
6376 if test "$lt_cv_prog_gnu_ld" = yes; then
6377 case `/usr/bin/file conftest.$ac_objext` in
6378 *32-bit*)
6379 LD="${LD-ld} -melf32bsmip"
6380 ;;
6381 *N32*)
6382 LD="${LD-ld} -melf32bmipn32"
6383 ;;
6384 *64-bit*)
6385 LD="${LD-ld} -melf64bmip"
6386 ;;
6387 esac
6388 else
6389 case `/usr/bin/file conftest.$ac_objext` in
6390 *32-bit*)
6391 LD="${LD-ld} -32"
6392 ;;
6393 *N32*)
6394 LD="${LD-ld} -n32"
6395 ;;
6396 *64-bit*)
6397 LD="${LD-ld} -64"
6398 ;;
6399 esac
6400 fi
6401 fi
6402 rm -rf conftest*
6403 ;;
6404
6405 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6406 # Find out which ABI we are using.
6407 echo 'int i;' > conftest.$ac_ext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409 (eval $ac_compile) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; then
6413 case `/usr/bin/file conftest.o` in
6414 *32-bit*)
6415 case $host in
6416 x86_64-*linux*)
6417 LD="${LD-ld} -m elf_i386"
6418 ;;
6419 ppc64-*linux*|powerpc64-*linux*)
6420 LD="${LD-ld} -m elf32ppclinux"
6421 ;;
6422 s390x-*linux*)
6423 LD="${LD-ld} -m elf_s390"
6424 ;;
6425 sparc64-*linux*)
6426 LD="${LD-ld} -m elf32_sparc"
6427 ;;
6428 esac
6429 ;;
6430 *64-bit*)
6431 case $host in
6432 x86_64-*linux*)
6433 LD="${LD-ld} -m elf_x86_64"
6434 ;;
6435 ppc*-*linux*|powerpc*-*linux*)
6436 LD="${LD-ld} -m elf64ppc"
6437 ;;
6438 s390*-*linux*)
6439 LD="${LD-ld} -m elf64_s390"
6440 ;;
6441 sparc*-*linux*)
6442 LD="${LD-ld} -m elf64_sparc"
6443 ;;
6444 esac
6445 ;;
6446 esac
6447 fi
6448 rm -rf conftest*
6449 ;;
6450
6451 *-*-sco3.2v5*)
6452 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6453 SAVE_CFLAGS="$CFLAGS"
6454 CFLAGS="$CFLAGS -belf"
6455 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6456 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6457 if test "${lt_cv_cc_needs_belf+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460 ac_ext=c
6461 ac_cpp='$CPP $CPPFLAGS'
6462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6465
6466 cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h. */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6472
6473 int
6474 main ()
6475 {
6476
6477 ;
6478 return 0;
6479 }
6480 _ACEOF
6481 rm -f conftest.$ac_objext conftest$ac_exeext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6483 (eval $ac_link) 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try='test -z "$ac_c_werror_flag"
6491 || test ! -s conftest.err'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 (eval $ac_try) 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; } &&
6497 { ac_try='test -s conftest$ac_exeext'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 (eval $ac_try) 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 lt_cv_cc_needs_belf=yes
6504 else
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6507
6508 lt_cv_cc_needs_belf=no
6509 fi
6510 rm -f conftest.err conftest.$ac_objext \
6511 conftest$ac_exeext conftest.$ac_ext
6512 ac_ext=c
6513 ac_cpp='$CPP $CPPFLAGS'
6514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6517
6518 fi
6519 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6520 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6521 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6522 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6523 CFLAGS="$SAVE_CFLAGS"
6524 fi
6525 ;;
6526 sparc*-*solaris*)
6527 # Find out which ABI we are using.
6528 echo 'int i;' > conftest.$ac_ext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; then
6534 case `/usr/bin/file conftest.o` in
6535 *64-bit*)
6536 case $lt_cv_prog_gnu_ld in
6537 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6538 *) LD="${LD-ld} -64" ;;
6539 esac
6540 ;;
6541 esac
6542 fi
6543 rm -rf conftest*
6544 ;;
6545
6546
6547 esac
6548
6549 need_locks="$enable_libtool_lock"
6550
6551
6552 ac_ext=c
6553 ac_cpp='$CPP $CPPFLAGS'
6554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6557 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6558 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6559 # On Suns, sometimes $CPP names a directory.
6560 if test -n "$CPP" && test -d "$CPP"; then
6561 CPP=
6562 fi
6563 if test -z "$CPP"; then
6564 if test "${ac_cv_prog_CPP+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567 # Double quotes because CPP needs to be expanded
6568 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6569 do
6570 ac_preproc_ok=false
6571 for ac_c_preproc_warn_flag in '' yes
6572 do
6573 # Use a header file that comes with gcc, so configuring glibc
6574 # with a fresh cross-compiler works.
6575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6576 # <limits.h> exists even on freestanding compilers.
6577 # On the NeXT, cc -E runs the code through the compiler's parser,
6578 # not just through cpp. "Syntax error" is here to catch this case.
6579 cat >conftest.$ac_ext <<_ACEOF
6580 /* confdefs.h. */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6585 #ifdef __STDC__
6586 # include <limits.h>
6587 #else
6588 # include <assert.h>
6589 #endif
6590 Syntax error
6591 _ACEOF
6592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } >/dev/null; then
6600 if test -s conftest.err; then
6601 ac_cpp_err=$ac_c_preproc_warn_flag
6602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6603 else
6604 ac_cpp_err=
6605 fi
6606 else
6607 ac_cpp_err=yes
6608 fi
6609 if test -z "$ac_cpp_err"; then
6610 :
6611 else
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6614
6615 # Broken: fails on valid input.
6616 continue
6617 fi
6618 rm -f conftest.err conftest.$ac_ext
6619
6620 # OK, works on sane cases. Now check whether non-existent headers
6621 # can be detected and how.
6622 cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h. */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 #include <ac_nonexistent.h>
6629 _ACEOF
6630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6632 ac_status=$?
6633 grep -v '^ *+' conftest.er1 >conftest.err
6634 rm -f conftest.er1
6635 cat conftest.err >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } >/dev/null; then
6638 if test -s conftest.err; then
6639 ac_cpp_err=$ac_c_preproc_warn_flag
6640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6641 else
6642 ac_cpp_err=
6643 fi
6644 else
6645 ac_cpp_err=yes
6646 fi
6647 if test -z "$ac_cpp_err"; then
6648 # Broken: success on invalid input.
6649 continue
6650 else
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654 # Passes both tests.
6655 ac_preproc_ok=:
6656 break
6657 fi
6658 rm -f conftest.err conftest.$ac_ext
6659
6660 done
6661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6662 rm -f conftest.err conftest.$ac_ext
6663 if $ac_preproc_ok; then
6664 break
6665 fi
6666
6667 done
6668 ac_cv_prog_CPP=$CPP
6669
6670 fi
6671 CPP=$ac_cv_prog_CPP
6672 else
6673 ac_cv_prog_CPP=$CPP
6674 fi
6675 echo "$as_me:$LINENO: result: $CPP" >&5
6676 echo "${ECHO_T}$CPP" >&6
6677 ac_preproc_ok=false
6678 for ac_c_preproc_warn_flag in '' yes
6679 do
6680 # Use a header file that comes with gcc, so configuring glibc
6681 # with a fresh cross-compiler works.
6682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6683 # <limits.h> exists even on freestanding compilers.
6684 # On the NeXT, cc -E runs the code through the compiler's parser,
6685 # not just through cpp. "Syntax error" is here to catch this case.
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #ifdef __STDC__
6693 # include <limits.h>
6694 #else
6695 # include <assert.h>
6696 #endif
6697 Syntax error
6698 _ACEOF
6699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } >/dev/null; then
6707 if test -s conftest.err; then
6708 ac_cpp_err=$ac_c_preproc_warn_flag
6709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6710 else
6711 ac_cpp_err=
6712 fi
6713 else
6714 ac_cpp_err=yes
6715 fi
6716 if test -z "$ac_cpp_err"; then
6717 :
6718 else
6719 echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6721
6722 # Broken: fails on valid input.
6723 continue
6724 fi
6725 rm -f conftest.err conftest.$ac_ext
6726
6727 # OK, works on sane cases. Now check whether non-existent headers
6728 # can be detected and how.
6729 cat >conftest.$ac_ext <<_ACEOF
6730 /* confdefs.h. */
6731 _ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6735 #include <ac_nonexistent.h>
6736 _ACEOF
6737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } >/dev/null; then
6745 if test -s conftest.err; then
6746 ac_cpp_err=$ac_c_preproc_warn_flag
6747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6748 else
6749 ac_cpp_err=
6750 fi
6751 else
6752 ac_cpp_err=yes
6753 fi
6754 if test -z "$ac_cpp_err"; then
6755 # Broken: success on invalid input.
6756 continue
6757 else
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6760
6761 # Passes both tests.
6762 ac_preproc_ok=:
6763 break
6764 fi
6765 rm -f conftest.err conftest.$ac_ext
6766
6767 done
6768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6769 rm -f conftest.err conftest.$ac_ext
6770 if $ac_preproc_ok; then
6771 :
6772 else
6773 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6774 See \`config.log' for more details." >&5
6775 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6776 See \`config.log' for more details." >&2;}
6777 { (exit 1); exit 1; }; }
6778 fi
6779
6780 ac_ext=c
6781 ac_cpp='$CPP $CPPFLAGS'
6782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6785
6786
6787 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6788 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6789 if test "${ac_cv_header_stdc+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792 cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h. */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <stdlib.h>
6799 #include <stdarg.h>
6800 #include <string.h>
6801 #include <float.h>
6802
6803 int
6804 main ()
6805 {
6806
6807 ;
6808 return 0;
6809 }
6810 _ACEOF
6811 rm -f conftest.$ac_objext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6813 (eval $ac_compile) 2>conftest.er1
6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try='test -z "$ac_c_werror_flag"
6821 || test ! -s conftest.err'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try='test -s conftest.$ac_objext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 ac_cv_header_stdc=yes
6834 else
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6837
6838 ac_cv_header_stdc=no
6839 fi
6840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6841
6842 if test $ac_cv_header_stdc = yes; then
6843 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h. */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 #include <string.h>
6851
6852 _ACEOF
6853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6854 $EGREP "memchr" >/dev/null 2>&1; then
6855 :
6856 else
6857 ac_cv_header_stdc=no
6858 fi
6859 rm -f conftest*
6860
6861 fi
6862
6863 if test $ac_cv_header_stdc = yes; then
6864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6865 cat >conftest.$ac_ext <<_ACEOF
6866 /* confdefs.h. */
6867 _ACEOF
6868 cat confdefs.h >>conftest.$ac_ext
6869 cat >>conftest.$ac_ext <<_ACEOF
6870 /* end confdefs.h. */
6871 #include <stdlib.h>
6872
6873 _ACEOF
6874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6875 $EGREP "free" >/dev/null 2>&1; then
6876 :
6877 else
6878 ac_cv_header_stdc=no
6879 fi
6880 rm -f conftest*
6881
6882 fi
6883
6884 if test $ac_cv_header_stdc = yes; then
6885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6886 if test "$cross_compiling" = yes; then
6887 :
6888 else
6889 cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h. */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 #include <ctype.h>
6896 #if ((' ' & 0x0FF) == 0x020)
6897 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6898 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6899 #else
6900 # define ISLOWER(c) \
6901 (('a' <= (c) && (c) <= 'i') \
6902 || ('j' <= (c) && (c) <= 'r') \
6903 || ('s' <= (c) && (c) <= 'z'))
6904 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6905 #endif
6906
6907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6908 int
6909 main ()
6910 {
6911 int i;
6912 for (i = 0; i < 256; i++)
6913 if (XOR (islower (i), ISLOWER (i))
6914 || toupper (i) != TOUPPER (i))
6915 exit(2);
6916 exit (0);
6917 }
6918 _ACEOF
6919 rm -f conftest$ac_exeext
6920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6921 (eval $ac_link) 2>&5
6922 ac_status=$?
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 (eval $ac_try) 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; }; then
6930 :
6931 else
6932 echo "$as_me: program exited with status $ac_status" >&5
6933 echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6935
6936 ( exit $ac_status )
6937 ac_cv_header_stdc=no
6938 fi
6939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6940 fi
6941 fi
6942 fi
6943 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6944 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6945 if test $ac_cv_header_stdc = yes; then
6946
6947 cat >>confdefs.h <<\_ACEOF
6948 #define STDC_HEADERS 1
6949 _ACEOF
6950
6951 fi
6952
6953 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6964 inttypes.h stdint.h unistd.h
6965 do
6966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6967 echo "$as_me:$LINENO: checking for $ac_header" >&5
6968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h. */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 $ac_includes_default
6979
6980 #include <$ac_header>
6981 _ACEOF
6982 rm -f conftest.$ac_objext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6984 (eval $ac_compile) 2>conftest.er1
6985 ac_status=$?
6986 grep -v '^ *+' conftest.er1 >conftest.err
6987 rm -f conftest.er1
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } &&
6991 { ac_try='test -z "$ac_c_werror_flag"
6992 || test ! -s conftest.err'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; } &&
6998 { ac_try='test -s conftest.$ac_objext'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 eval "$as_ac_Header=yes"
7005 else
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7008
7009 eval "$as_ac_Header=no"
7010 fi
7011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7012 fi
7013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7016 cat >>confdefs.h <<_ACEOF
7017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7018 _ACEOF
7019
7020 fi
7021
7022 done
7023
7024
7025
7026 for ac_header in dlfcn.h
7027 do
7028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7030 echo "$as_me:$LINENO: checking for $ac_header" >&5
7031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 fi
7035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7037 else
7038 # Is the header compilable?
7039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 $ac_includes_default
7048 #include <$ac_header>
7049 _ACEOF
7050 rm -f conftest.$ac_objext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7052 (eval $ac_compile) 2>conftest.er1
7053 ac_status=$?
7054 grep -v '^ *+' conftest.er1 >conftest.err
7055 rm -f conftest.er1
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try='test -z "$ac_c_werror_flag"
7060 || test ! -s conftest.err'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; } &&
7066 { ac_try='test -s conftest.$ac_objext'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 (eval $ac_try) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; }; then
7072 ac_header_compiler=yes
7073 else
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7076
7077 ac_header_compiler=no
7078 fi
7079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7080 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7081 echo "${ECHO_T}$ac_header_compiler" >&6
7082
7083 # Is the header present?
7084 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7086 cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h. */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 #include <$ac_header>
7093 _ACEOF
7094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7096 ac_status=$?
7097 grep -v '^ *+' conftest.er1 >conftest.err
7098 rm -f conftest.er1
7099 cat conftest.err >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } >/dev/null; then
7102 if test -s conftest.err; then
7103 ac_cpp_err=$ac_c_preproc_warn_flag
7104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7105 else
7106 ac_cpp_err=
7107 fi
7108 else
7109 ac_cpp_err=yes
7110 fi
7111 if test -z "$ac_cpp_err"; then
7112 ac_header_preproc=yes
7113 else
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7116
7117 ac_header_preproc=no
7118 fi
7119 rm -f conftest.err conftest.$ac_ext
7120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7121 echo "${ECHO_T}$ac_header_preproc" >&6
7122
7123 # So? What about this header?
7124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7125 yes:no: )
7126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7130 ac_header_preproc=yes
7131 ;;
7132 no:yes:* )
7133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7145 (
7146 cat <<\_ASBOX
7147 ## ------------------------------------ ##
7148 ## Report this to [email protected] ##
7149 ## ------------------------------------ ##
7150 _ASBOX
7151 ) |
7152 sed "s/^/$as_me: WARNING: /" >&2
7153 ;;
7154 esac
7155 echo "$as_me:$LINENO: checking for $ac_header" >&5
7156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160 eval "$as_ac_Header=\$ac_header_preproc"
7161 fi
7162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7164
7165 fi
7166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7167 cat >>confdefs.h <<_ACEOF
7168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7169 _ACEOF
7170
7171 fi
7172
7173 done
7174
7175
7176
7177 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7178 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7179 (test "X$CXX" != "Xg++"))) ; then
7180 ac_ext=cc
7181 ac_cpp='$CXXCPP $CPPFLAGS'
7182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7185 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7186 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7187 if test -z "$CXXCPP"; then
7188 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191 # Double quotes because CXXCPP needs to be expanded
7192 for CXXCPP in "$CXX -E" "/lib/cpp"
7193 do
7194 ac_preproc_ok=false
7195 for ac_cxx_preproc_warn_flag in '' yes
7196 do
7197 # Use a header file that comes with gcc, so configuring glibc
7198 # with a fresh cross-compiler works.
7199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7200 # <limits.h> exists even on freestanding compilers.
7201 # On the NeXT, cc -E runs the code through the compiler's parser,
7202 # not just through cpp. "Syntax error" is here to catch this case.
7203 cat >conftest.$ac_ext <<_ACEOF
7204 /* confdefs.h. */
7205 _ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7209 #ifdef __STDC__
7210 # include <limits.h>
7211 #else
7212 # include <assert.h>
7213 #endif
7214 Syntax error
7215 _ACEOF
7216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } >/dev/null; then
7224 if test -s conftest.err; then
7225 ac_cpp_err=$ac_cxx_preproc_warn_flag
7226 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7227 else
7228 ac_cpp_err=
7229 fi
7230 else
7231 ac_cpp_err=yes
7232 fi
7233 if test -z "$ac_cpp_err"; then
7234 :
7235 else
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7238
7239 # Broken: fails on valid input.
7240 continue
7241 fi
7242 rm -f conftest.err conftest.$ac_ext
7243
7244 # OK, works on sane cases. Now check whether non-existent headers
7245 # can be detected and how.
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 #include <ac_nonexistent.h>
7253 _ACEOF
7254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } >/dev/null; then
7262 if test -s conftest.err; then
7263 ac_cpp_err=$ac_cxx_preproc_warn_flag
7264 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7265 else
7266 ac_cpp_err=
7267 fi
7268 else
7269 ac_cpp_err=yes
7270 fi
7271 if test -z "$ac_cpp_err"; then
7272 # Broken: success on invalid input.
7273 continue
7274 else
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7277
7278 # Passes both tests.
7279 ac_preproc_ok=:
7280 break
7281 fi
7282 rm -f conftest.err conftest.$ac_ext
7283
7284 done
7285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7286 rm -f conftest.err conftest.$ac_ext
7287 if $ac_preproc_ok; then
7288 break
7289 fi
7290
7291 done
7292 ac_cv_prog_CXXCPP=$CXXCPP
7293
7294 fi
7295 CXXCPP=$ac_cv_prog_CXXCPP
7296 else
7297 ac_cv_prog_CXXCPP=$CXXCPP
7298 fi
7299 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7300 echo "${ECHO_T}$CXXCPP" >&6
7301 ac_preproc_ok=false
7302 for ac_cxx_preproc_warn_flag in '' yes
7303 do
7304 # Use a header file that comes with gcc, so configuring glibc
7305 # with a fresh cross-compiler works.
7306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7307 # <limits.h> exists even on freestanding compilers.
7308 # On the NeXT, cc -E runs the code through the compiler's parser,
7309 # not just through cpp. "Syntax error" is here to catch this case.
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 #ifdef __STDC__
7317 # include <limits.h>
7318 #else
7319 # include <assert.h>
7320 #endif
7321 Syntax error
7322 _ACEOF
7323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7325 ac_status=$?
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } >/dev/null; then
7331 if test -s conftest.err; then
7332 ac_cpp_err=$ac_cxx_preproc_warn_flag
7333 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7334 else
7335 ac_cpp_err=
7336 fi
7337 else
7338 ac_cpp_err=yes
7339 fi
7340 if test -z "$ac_cpp_err"; then
7341 :
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346 # Broken: fails on valid input.
7347 continue
7348 fi
7349 rm -f conftest.err conftest.$ac_ext
7350
7351 # OK, works on sane cases. Now check whether non-existent headers
7352 # can be detected and how.
7353 cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h. */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 #include <ac_nonexistent.h>
7360 _ACEOF
7361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7363 ac_status=$?
7364 grep -v '^ *+' conftest.er1 >conftest.err
7365 rm -f conftest.er1
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } >/dev/null; then
7369 if test -s conftest.err; then
7370 ac_cpp_err=$ac_cxx_preproc_warn_flag
7371 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7372 else
7373 ac_cpp_err=
7374 fi
7375 else
7376 ac_cpp_err=yes
7377 fi
7378 if test -z "$ac_cpp_err"; then
7379 # Broken: success on invalid input.
7380 continue
7381 else
7382 echo "$as_me: failed program was:" >&5
7383 sed 's/^/| /' conftest.$ac_ext >&5
7384
7385 # Passes both tests.
7386 ac_preproc_ok=:
7387 break
7388 fi
7389 rm -f conftest.err conftest.$ac_ext
7390
7391 done
7392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7393 rm -f conftest.err conftest.$ac_ext
7394 if $ac_preproc_ok; then
7395 :
7396 else
7397 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7398 See \`config.log' for more details." >&5
7399 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7400 See \`config.log' for more details." >&2;}
7401 { (exit 1); exit 1; }; }
7402 fi
7403
7404 ac_ext=cc
7405 ac_cpp='$CXXCPP $CPPFLAGS'
7406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7409
7410 fi
7411
7412
7413 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7414
7415 # find the maximum length of command line arguments
7416 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7417 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7418 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 else
7421 i=0
7422 teststring="ABCD"
7423
7424 case $build_os in
7425 msdosdjgpp*)
7426 # On DJGPP, this test can blow up pretty badly due to problems in libc
7427 # (any single argument exceeding 2000 bytes causes a buffer overrun
7428 # during glob expansion). Even if it were fixed, the result of this
7429 # check would be larger than it should be.
7430 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7431 ;;
7432
7433 gnu*)
7434 # Under GNU Hurd, this test is not required because there is
7435 # no limit to the length of command line arguments.
7436 # Libtool will interpret -1 as no limit whatsoever
7437 lt_cv_sys_max_cmd_len=-1;
7438 ;;
7439
7440 cygwin* | mingw*)
7441 # On Win9x/ME, this test blows up -- it succeeds, but takes
7442 # about 5 minutes as the teststring grows exponentially.
7443 # Worse, since 9x/ME are not pre-emptively multitasking,
7444 # you end up with a "frozen" computer, even though with patience
7445 # the test eventually succeeds (with a max line length of 256k).
7446 # Instead, let's just punt: use the minimum linelength reported by
7447 # all of the supported platforms: 8192 (on NT/2K/XP).
7448 lt_cv_sys_max_cmd_len=8192;
7449 ;;
7450
7451 amigaos*)
7452 # On AmigaOS with pdksh, this test takes hours, literally.
7453 # So we just punt and use a minimum line length of 8192.
7454 lt_cv_sys_max_cmd_len=8192;
7455 ;;
7456
7457 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7458 # This has been around since 386BSD, at least. Likely further.
7459 if test -x /sbin/sysctl; then
7460 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7461 elif test -x /usr/sbin/sysctl; then
7462 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7463 else
7464 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7465 fi
7466 # And add a safety zone
7467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7469 ;;
7470
7471 interix*)
7472 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7473 lt_cv_sys_max_cmd_len=196608
7474 ;;
7475
7476 osf*)
7477 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7478 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7479 # nice to cause kernel panics so lets avoid the loop below.
7480 # First set a reasonable default.
7481 lt_cv_sys_max_cmd_len=16384
7482 #
7483 if test -x /sbin/sysconfig; then
7484 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7485 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7486 esac
7487 fi
7488 ;;
7489 sco3.2v5*)
7490 lt_cv_sys_max_cmd_len=102400
7491 ;;
7492 sysv5* | sco5v6* | sysv4.2uw2*)
7493 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7494 if test -n "$kargmax"; then
7495 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7496 else
7497 lt_cv_sys_max_cmd_len=32768
7498 fi
7499 ;;
7500 *)
7501 # If test is not a shell built-in, we'll probably end up computing a
7502 # maximum length that is only half of the actual maximum length, but
7503 # we can't tell.
7504 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7505 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7506 = "XX$teststring") >/dev/null 2>&1 &&
7507 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7508 lt_cv_sys_max_cmd_len=$new_result &&
7509 test $i != 17 # 1/2 MB should be enough
7510 do
7511 i=`expr $i + 1`
7512 teststring=$teststring$teststring
7513 done
7514 teststring=
7515 # Add a significant safety factor because C++ compilers can tack on massive
7516 # amounts of additional arguments before passing them to the linker.
7517 # It appears as though 1/2 is a usable value.
7518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7519 ;;
7520 esac
7521
7522 fi
7523
7524 if test -n $lt_cv_sys_max_cmd_len ; then
7525 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7526 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7527 else
7528 echo "$as_me:$LINENO: result: none" >&5
7529 echo "${ECHO_T}none" >&6
7530 fi
7531
7532
7533
7534
7535 # Check for command to grab the raw symbol name followed by C symbol from nm.
7536 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7537 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7538 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541
7542 # These are sane defaults that work on at least a few old systems.
7543 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7544
7545 # Character class describing NM global symbol codes.
7546 symcode='[BCDEGRST]'
7547
7548 # Regexp to match symbols that can be accessed directly from C.
7549 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7550
7551 # Transform an extracted symbol line into a proper C declaration
7552 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7553
7554 # Transform an extracted symbol line into symbol name and symbol address
7555 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'"
7556
7557 # Define system-specific variables.
7558 case $host_os in
7559 aix*)
7560 symcode='[BCDT]'
7561 ;;
7562 cygwin* | mingw* | pw32*)
7563 symcode='[ABCDGISTW]'
7564 ;;
7565 hpux*) # Its linker distinguishes data from code symbols
7566 if test "$host_cpu" = ia64; then
7567 symcode='[ABCDEGRST]'
7568 fi
7569 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7570 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'"
7571 ;;
7572 linux*)
7573 if test "$host_cpu" = ia64; then
7574 symcode='[ABCDGIRSTW]'
7575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7576 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'"
7577 fi
7578 ;;
7579 irix* | nonstopux*)
7580 symcode='[BCDEGRST]'
7581 ;;
7582 osf*)
7583 symcode='[BCDEGQRST]'
7584 ;;
7585 solaris*)
7586 symcode='[BDRT]'
7587 ;;
7588 sco3.2v5*)
7589 symcode='[DT]'
7590 ;;
7591 sysv4.2uw2*)
7592 symcode='[DT]'
7593 ;;
7594 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7595 symcode='[ABDT]'
7596 ;;
7597 sysv4)
7598 symcode='[DFNSTU]'
7599 ;;
7600 esac
7601
7602 # Handle CRLF in mingw tool chain
7603 opt_cr=
7604 case $build_os in
7605 mingw*)
7606 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7607 ;;
7608 esac
7609
7610 # If we're using GNU nm, then use its standard symbol codes.
7611 case `$NM -V 2>&1` in
7612 *GNU* | *'with BFD'*)
7613 symcode='[ABCDGIRSTW]' ;;
7614 esac
7615
7616 # Try without a prefix undercore, then with it.
7617 for ac_symprfx in "" "_"; do
7618
7619 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7620 symxfrm="\\1 $ac_symprfx\\2 \\2"
7621
7622 # Write the raw and C identifiers.
7623 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7624
7625 # Check to see that the pipe works correctly.
7626 pipe_works=no
7627
7628 rm -f conftest*
7629 cat > conftest.$ac_ext <<EOF
7630 #ifdef __cplusplus
7631 extern "C" {
7632 #endif
7633 char nm_test_var;
7634 void nm_test_func(){}
7635 #ifdef __cplusplus
7636 }
7637 #endif
7638 int main(){nm_test_var='a';nm_test_func();return(0);}
7639 EOF
7640
7641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7642 (eval $ac_compile) 2>&5
7643 ac_status=$?
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; then
7646 # Now try to grab the symbols.
7647 nlist=conftest.nm
7648 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7649 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } && test -s "$nlist"; then
7653 # Try sorting and uniquifying the output.
7654 if sort "$nlist" | uniq > "$nlist"T; then
7655 mv -f "$nlist"T "$nlist"
7656 else
7657 rm -f "$nlist"T
7658 fi
7659
7660 # Make sure that we snagged all the symbols we need.
7661 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7662 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7663 cat <<EOF > conftest.$ac_ext
7664 #ifdef __cplusplus
7665 extern "C" {
7666 #endif
7667
7668 EOF
7669 # Now generate the symbol file.
7670 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7671
7672 cat <<EOF >> conftest.$ac_ext
7673 #if defined (__STDC__) && __STDC__
7674 # define lt_ptr_t void *
7675 #else
7676 # define lt_ptr_t char *
7677 # define const
7678 #endif
7679
7680 /* The mapping between symbol names and symbols. */
7681 const struct {
7682 const char *name;
7683 lt_ptr_t address;
7684 }
7685 lt_preloaded_symbols[] =
7686 {
7687 EOF
7688 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7689 cat <<\EOF >> conftest.$ac_ext
7690 {0, (lt_ptr_t) 0}
7691 };
7692
7693 #ifdef __cplusplus
7694 }
7695 #endif
7696 EOF
7697 # Now try linking the two files.
7698 mv conftest.$ac_objext conftstm.$ac_objext
7699 lt_save_LIBS="$LIBS"
7700 lt_save_CFLAGS="$CFLAGS"
7701 LIBS="conftstm.$ac_objext"
7702 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7704 (eval $ac_link) 2>&5
7705 ac_status=$?
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7708 pipe_works=yes
7709 fi
7710 LIBS="$lt_save_LIBS"
7711 CFLAGS="$lt_save_CFLAGS"
7712 else
7713 echo "cannot find nm_test_func in $nlist" >&5
7714 fi
7715 else
7716 echo "cannot find nm_test_var in $nlist" >&5
7717 fi
7718 else
7719 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7720 fi
7721 else
7722 echo "$progname: failed program was:" >&5
7723 cat conftest.$ac_ext >&5
7724 fi
7725 rm -f conftest* conftst*
7726
7727 # Do not use the global_symbol_pipe unless it works.
7728 if test "$pipe_works" = yes; then
7729 break
7730 else
7731 lt_cv_sys_global_symbol_pipe=
7732 fi
7733 done
7734
7735 fi
7736
7737 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7738 lt_cv_sys_global_symbol_to_cdecl=
7739 fi
7740 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7741 echo "$as_me:$LINENO: result: failed" >&5
7742 echo "${ECHO_T}failed" >&6
7743 else
7744 echo "$as_me:$LINENO: result: ok" >&5
7745 echo "${ECHO_T}ok" >&6
7746 fi
7747
7748 echo "$as_me:$LINENO: checking for objdir" >&5
7749 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7750 if test "${lt_cv_objdir+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753 rm -f .libs 2>/dev/null
7754 mkdir .libs 2>/dev/null
7755 if test -d .libs; then
7756 lt_cv_objdir=.libs
7757 else
7758 # MS-DOS does not allow filenames that begin with a dot.
7759 lt_cv_objdir=_libs
7760 fi
7761 rmdir .libs 2>/dev/null
7762 fi
7763 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7764 echo "${ECHO_T}$lt_cv_objdir" >&6
7765 objdir=$lt_cv_objdir
7766
7767
7768
7769
7770
7771 case $host_os in
7772 aix3*)
7773 # AIX sometimes has problems with the GCC collect2 program. For some
7774 # reason, if we set the COLLECT_NAMES environment variable, the problems
7775 # vanish in a puff of smoke.
7776 if test "X${COLLECT_NAMES+set}" != Xset; then
7777 COLLECT_NAMES=
7778 export COLLECT_NAMES
7779 fi
7780 ;;
7781 esac
7782
7783 # Sed substitution that helps us do robust quoting. It backslashifies
7784 # metacharacters that are still active within double-quoted strings.
7785 Xsed='sed -e 1s/^X//'
7786 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7787
7788 # Same as above, but do not quote variable references.
7789 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7790
7791 # Sed substitution to delay expansion of an escaped shell variable in a
7792 # double_quote_subst'ed string.
7793 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7794
7795 # Sed substitution to avoid accidental globbing in evaled expressions
7796 no_glob_subst='s/\*/\\\*/g'
7797
7798 # Constants:
7799 rm="rm -f"
7800
7801 # Global variables:
7802 default_ofile=libtool
7803 can_build_shared=yes
7804
7805 # All known linkers require a `.a' archive for static linking (except MSVC,
7806 # which needs '.lib').
7807 libext=a
7808 ltmain="$ac_aux_dir/ltmain.sh"
7809 ofile="$default_ofile"
7810 with_gnu_ld="$lt_cv_prog_gnu_ld"
7811
7812 if test -n "$ac_tool_prefix"; then
7813 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7814 set dummy ${ac_tool_prefix}ar; ac_word=$2
7815 echo "$as_me:$LINENO: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7817 if test "${ac_cv_prog_AR+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820 if test -n "$AR"; then
7821 ac_cv_prog_AR="$AR" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7825 do
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_prog_AR="${ac_tool_prefix}ar"
7831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7833 fi
7834 done
7835 done
7836
7837 fi
7838 fi
7839 AR=$ac_cv_prog_AR
7840 if test -n "$AR"; then
7841 echo "$as_me:$LINENO: result: $AR" >&5
7842 echo "${ECHO_T}$AR" >&6
7843 else
7844 echo "$as_me:$LINENO: result: no" >&5
7845 echo "${ECHO_T}no" >&6
7846 fi
7847
7848 fi
7849 if test -z "$ac_cv_prog_AR"; then
7850 ac_ct_AR=$AR
7851 # Extract the first word of "ar", so it can be a program name with args.
7852 set dummy ar; ac_word=$2
7853 echo "$as_me:$LINENO: checking for $ac_word" >&5
7854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7855 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 else
7858 if test -n "$ac_ct_AR"; then
7859 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7863 do
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868 ac_cv_prog_ac_ct_AR="ar"
7869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7871 fi
7872 done
7873 done
7874
7875 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7876 fi
7877 fi
7878 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7879 if test -n "$ac_ct_AR"; then
7880 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7881 echo "${ECHO_T}$ac_ct_AR" >&6
7882 else
7883 echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6
7885 fi
7886
7887 AR=$ac_ct_AR
7888 else
7889 AR="$ac_cv_prog_AR"
7890 fi
7891
7892 if test -n "$ac_tool_prefix"; then
7893 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7894 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7895 echo "$as_me:$LINENO: checking for $ac_word" >&5
7896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7897 if test "${ac_cv_prog_RANLIB+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900 if test -n "$RANLIB"; then
7901 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 break 2
7913 fi
7914 done
7915 done
7916
7917 fi
7918 fi
7919 RANLIB=$ac_cv_prog_RANLIB
7920 if test -n "$RANLIB"; then
7921 echo "$as_me:$LINENO: result: $RANLIB" >&5
7922 echo "${ECHO_T}$RANLIB" >&6
7923 else
7924 echo "$as_me:$LINENO: result: no" >&5
7925 echo "${ECHO_T}no" >&6
7926 fi
7927
7928 fi
7929 if test -z "$ac_cv_prog_RANLIB"; then
7930 ac_ct_RANLIB=$RANLIB
7931 # Extract the first word of "ranlib", so it can be a program name with args.
7932 set dummy ranlib; ac_word=$2
7933 echo "$as_me:$LINENO: checking for $ac_word" >&5
7934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7935 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938 if test -n "$ac_ct_RANLIB"; then
7939 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948 ac_cv_prog_ac_ct_RANLIB="ranlib"
7949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 break 2
7951 fi
7952 done
7953 done
7954
7955 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7956 fi
7957 fi
7958 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7959 if test -n "$ac_ct_RANLIB"; then
7960 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7961 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7962 else
7963 echo "$as_me:$LINENO: result: no" >&5
7964 echo "${ECHO_T}no" >&6
7965 fi
7966
7967 RANLIB=$ac_ct_RANLIB
7968 else
7969 RANLIB="$ac_cv_prog_RANLIB"
7970 fi
7971
7972 if test -n "$ac_tool_prefix"; then
7973 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7974 set dummy ${ac_tool_prefix}strip; ac_word=$2
7975 echo "$as_me:$LINENO: checking for $ac_word" >&5
7976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7977 if test "${ac_cv_prog_STRIP+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980 if test -n "$STRIP"; then
7981 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994 done
7995 done
7996
7997 fi
7998 fi
7999 STRIP=$ac_cv_prog_STRIP
8000 if test -n "$STRIP"; then
8001 echo "$as_me:$LINENO: result: $STRIP" >&5
8002 echo "${ECHO_T}$STRIP" >&6
8003 else
8004 echo "$as_me:$LINENO: result: no" >&5
8005 echo "${ECHO_T}no" >&6
8006 fi
8007
8008 fi
8009 if test -z "$ac_cv_prog_STRIP"; then
8010 ac_ct_STRIP=$STRIP
8011 # Extract the first word of "strip", so it can be a program name with args.
8012 set dummy strip; ac_word=$2
8013 echo "$as_me:$LINENO: checking for $ac_word" >&5
8014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8015 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018 if test -n "$ac_ct_STRIP"; then
8019 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8020 else
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8023 do
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028 ac_cv_prog_ac_ct_STRIP="strip"
8029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8031 fi
8032 done
8033 done
8034
8035 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8036 fi
8037 fi
8038 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8039 if test -n "$ac_ct_STRIP"; then
8040 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8041 echo "${ECHO_T}$ac_ct_STRIP" >&6
8042 else
8043 echo "$as_me:$LINENO: result: no" >&5
8044 echo "${ECHO_T}no" >&6
8045 fi
8046
8047 STRIP=$ac_ct_STRIP
8048 else
8049 STRIP="$ac_cv_prog_STRIP"
8050 fi
8051
8052
8053 old_CC="$CC"
8054 old_CFLAGS="$CFLAGS"
8055
8056 # Set sane defaults for various variables
8057 test -z "$AR" && AR=ar
8058 test -z "$AR_FLAGS" && AR_FLAGS=cru
8059 test -z "$AS" && AS=as
8060 test -z "$CC" && CC=cc
8061 test -z "$LTCC" && LTCC=$CC
8062 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8063 test -z "$DLLTOOL" && DLLTOOL=dlltool
8064 test -z "$LD" && LD=ld
8065 test -z "$LN_S" && LN_S="ln -s"
8066 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8067 test -z "$NM" && NM=nm
8068 test -z "$SED" && SED=sed
8069 test -z "$OBJDUMP" && OBJDUMP=objdump
8070 test -z "$RANLIB" && RANLIB=:
8071 test -z "$STRIP" && STRIP=:
8072 test -z "$ac_objext" && ac_objext=o
8073
8074 # Determine commands to create old-style static archives.
8075 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8076 old_postinstall_cmds='chmod 644 $oldlib'
8077 old_postuninstall_cmds=
8078
8079 if test -n "$RANLIB"; then
8080 case $host_os in
8081 openbsd*)
8082 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8083 ;;
8084 *)
8085 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8086 ;;
8087 esac
8088 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8089 fi
8090
8091 for cc_temp in $compiler""; do
8092 case $cc_temp in
8093 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8094 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8095 \-*) ;;
8096 *) break;;
8097 esac
8098 done
8099 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8100
8101
8102 # Only perform the check for file, if the check method requires it
8103 case $deplibs_check_method in
8104 file_magic*)
8105 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8106 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8107 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8108 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 else
8111 case $MAGIC_CMD in
8112 [\\/*] | ?:[\\/]*)
8113 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8114 ;;
8115 *)
8116 lt_save_MAGIC_CMD="$MAGIC_CMD"
8117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8118 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8119 for ac_dir in $ac_dummy; do
8120 IFS="$lt_save_ifs"
8121 test -z "$ac_dir" && ac_dir=.
8122 if test -f $ac_dir/${ac_tool_prefix}file; then
8123 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8124 if test -n "$file_magic_test_file"; then
8125 case $deplibs_check_method in
8126 "file_magic "*)
8127 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8129 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8130 $EGREP "$file_magic_regex" > /dev/null; then
8131 :
8132 else
8133 cat <<EOF 1>&2
8134
8135 *** Warning: the command libtool uses to detect shared libraries,
8136 *** $file_magic_cmd, produces output that libtool cannot recognize.
8137 *** The result is that libtool may fail to recognize shared libraries
8138 *** as such. This will affect the creation of libtool libraries that
8139 *** depend on shared libraries, but programs linked with such libtool
8140 *** libraries will work regardless of this problem. Nevertheless, you
8141 *** may want to report the problem to your system manager and/or to
8142 *** [email protected]
8143
8144 EOF
8145 fi ;;
8146 esac
8147 fi
8148 break
8149 fi
8150 done
8151 IFS="$lt_save_ifs"
8152 MAGIC_CMD="$lt_save_MAGIC_CMD"
8153 ;;
8154 esac
8155 fi
8156
8157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8158 if test -n "$MAGIC_CMD"; then
8159 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8160 echo "${ECHO_T}$MAGIC_CMD" >&6
8161 else
8162 echo "$as_me:$LINENO: result: no" >&5
8163 echo "${ECHO_T}no" >&6
8164 fi
8165
8166 if test -z "$lt_cv_path_MAGIC_CMD"; then
8167 if test -n "$ac_tool_prefix"; then
8168 echo "$as_me:$LINENO: checking for file" >&5
8169 echo $ECHO_N "checking for file... $ECHO_C" >&6
8170 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173 case $MAGIC_CMD in
8174 [\\/*] | ?:[\\/]*)
8175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8176 ;;
8177 *)
8178 lt_save_MAGIC_CMD="$MAGIC_CMD"
8179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8180 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8181 for ac_dir in $ac_dummy; do
8182 IFS="$lt_save_ifs"
8183 test -z "$ac_dir" && ac_dir=.
8184 if test -f $ac_dir/file; then
8185 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8186 if test -n "$file_magic_test_file"; then
8187 case $deplibs_check_method in
8188 "file_magic "*)
8189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8192 $EGREP "$file_magic_regex" > /dev/null; then
8193 :
8194 else
8195 cat <<EOF 1>&2
8196
8197 *** Warning: the command libtool uses to detect shared libraries,
8198 *** $file_magic_cmd, produces output that libtool cannot recognize.
8199 *** The result is that libtool may fail to recognize shared libraries
8200 *** as such. This will affect the creation of libtool libraries that
8201 *** depend on shared libraries, but programs linked with such libtool
8202 *** libraries will work regardless of this problem. Nevertheless, you
8203 *** may want to report the problem to your system manager and/or to
8204 *** [email protected]
8205
8206 EOF
8207 fi ;;
8208 esac
8209 fi
8210 break
8211 fi
8212 done
8213 IFS="$lt_save_ifs"
8214 MAGIC_CMD="$lt_save_MAGIC_CMD"
8215 ;;
8216 esac
8217 fi
8218
8219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8220 if test -n "$MAGIC_CMD"; then
8221 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8222 echo "${ECHO_T}$MAGIC_CMD" >&6
8223 else
8224 echo "$as_me:$LINENO: result: no" >&5
8225 echo "${ECHO_T}no" >&6
8226 fi
8227
8228 else
8229 MAGIC_CMD=:
8230 fi
8231 fi
8232
8233 fi
8234 ;;
8235 esac
8236
8237 enable_dlopen=no
8238 enable_win32_dll=no
8239
8240 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8241 if test "${enable_libtool_lock+set}" = set; then
8242 enableval="$enable_libtool_lock"
8243
8244 fi;
8245 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8246
8247
8248 # Check whether --with-pic or --without-pic was given.
8249 if test "${with_pic+set}" = set; then
8250 withval="$with_pic"
8251 pic_mode="$withval"
8252 else
8253 pic_mode=default
8254 fi;
8255 test -z "$pic_mode" && pic_mode=default
8256
8257 # Use C for the default configuration in the libtool script
8258 tagname=
8259 lt_save_CC="$CC"
8260 ac_ext=c
8261 ac_cpp='$CPP $CPPFLAGS'
8262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8265
8266
8267 # Source file extension for C test sources.
8268 ac_ext=c
8269
8270 # Object file extension for compiled C test sources.
8271 objext=o
8272 objext=$objext
8273
8274 # Code to be used in simple compile tests
8275 lt_simple_compile_test_code="int some_variable = 0;\n"
8276
8277 # Code to be used in simple link tests
8278 lt_simple_link_test_code='int main(){return(0);}\n'
8279
8280
8281 # If no C compiler was specified, use CC.
8282 LTCC=${LTCC-"$CC"}
8283
8284 # If no C compiler flags were specified, use CFLAGS.
8285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8286
8287 # Allow CC to be a program name with arguments.
8288 compiler=$CC
8289
8290
8291 # save warnings/boilerplate of simple test code
8292 ac_outfile=conftest.$ac_objext
8293 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8294 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8295 _lt_compiler_boilerplate=`cat conftest.err`
8296 $rm conftest*
8297
8298 ac_outfile=conftest.$ac_objext
8299 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8300 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8301 _lt_linker_boilerplate=`cat conftest.err`
8302 $rm conftest*
8303
8304
8305 ## CAVEAT EMPTOR:
8306 ## There is no encapsulation within the following macros, do not change
8307 ## the running order or otherwise move them around unless you know exactly
8308 ## what you are doing...
8309
8310 lt_prog_compiler_no_builtin_flag=
8311
8312 if test "$GCC" = yes; then
8313 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8314
8315
8316 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8317 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8318 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321 lt_cv_prog_compiler_rtti_exceptions=no
8322 ac_outfile=conftest.$ac_objext
8323 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8324 lt_compiler_flag="-fno-rtti -fno-exceptions"
8325 # Insert the option either (1) after the last *FLAGS variable, or
8326 # (2) before a word containing "conftest.", or (3) at the end.
8327 # Note that $ac_compile itself does not contain backslashes and begins
8328 # with a dollar sign (not a hyphen), so the echo should work correctly.
8329 # The option is referenced via a variable to avoid confusing sed.
8330 lt_compile=`echo "$ac_compile" | $SED \
8331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8333 -e 's:$: $lt_compiler_flag:'`
8334 (eval echo "\"\$as_me:8334: $lt_compile\"" >&5)
8335 (eval "$lt_compile" 2>conftest.err)
8336 ac_status=$?
8337 cat conftest.err >&5
8338 echo "$as_me:8338: \$? = $ac_status" >&5
8339 if (exit $ac_status) && test -s "$ac_outfile"; then
8340 # The compiler can only warn and ignore the option if not recognized
8341 # So say no if there are warnings other than the usual output.
8342 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8344 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8345 lt_cv_prog_compiler_rtti_exceptions=yes
8346 fi
8347 fi
8348 $rm conftest*
8349
8350 fi
8351 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8352 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8353
8354 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8355 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8356 else
8357 :
8358 fi
8359
8360 fi
8361
8362 lt_prog_compiler_wl=
8363 lt_prog_compiler_pic=
8364 lt_prog_compiler_static=
8365
8366 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8367 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8368
8369 if test "$GCC" = yes; then
8370 lt_prog_compiler_wl='-Wl,'
8371 lt_prog_compiler_static='-static'
8372
8373 case $host_os in
8374 aix*)
8375 # All AIX code is PIC.
8376 if test "$host_cpu" = ia64; then
8377 # AIX 5 now supports IA64 processor
8378 lt_prog_compiler_static='-Bstatic'
8379 fi
8380 ;;
8381
8382 amigaos*)
8383 # FIXME: we need at least 68020 code to build shared libraries, but
8384 # adding the `-m68020' flag to GCC prevents building anything better,
8385 # like `-m68040'.
8386 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8387 ;;
8388
8389 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8390 # PIC is the default for these OSes.
8391 ;;
8392
8393 mingw* | pw32* | os2*)
8394 # This hack is so that the source file can tell whether it is being
8395 # built for inclusion in a dll (and should export symbols for example).
8396 lt_prog_compiler_pic='-DDLL_EXPORT'
8397 ;;
8398
8399 darwin* | rhapsody*)
8400 # PIC is the default on this platform
8401 # Common symbols not allowed in MH_DYLIB files
8402 lt_prog_compiler_pic='-fno-common'
8403 ;;
8404
8405 interix3*)
8406 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8407 # Instead, we relocate shared libraries at runtime.
8408 ;;
8409
8410 msdosdjgpp*)
8411 # Just because we use GCC doesn't mean we suddenly get shared libraries
8412 # on systems that don't support them.
8413 lt_prog_compiler_can_build_shared=no
8414 enable_shared=no
8415 ;;
8416
8417 sysv4*MP*)
8418 if test -d /usr/nec; then
8419 lt_prog_compiler_pic=-Kconform_pic
8420 fi
8421 ;;
8422
8423 hpux*)
8424 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8425 # not for PA HP-UX.
8426 case $host_cpu in
8427 hppa*64*|ia64*)
8428 # +Z the default
8429 ;;
8430 *)
8431 lt_prog_compiler_pic='-fPIC'
8432 ;;
8433 esac
8434 ;;
8435
8436 *)
8437 lt_prog_compiler_pic='-fPIC'
8438 ;;
8439 esac
8440 else
8441 # PORTME Check for flag to pass linker flags through the system compiler.
8442 case $host_os in
8443 aix*)
8444 lt_prog_compiler_wl='-Wl,'
8445 if test "$host_cpu" = ia64; then
8446 # AIX 5 now supports IA64 processor
8447 lt_prog_compiler_static='-Bstatic'
8448 else
8449 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8450 fi
8451 ;;
8452 darwin*)
8453 # PIC is the default on this platform
8454 # Common symbols not allowed in MH_DYLIB files
8455 case $cc_basename in
8456 xlc*)
8457 lt_prog_compiler_pic='-qnocommon'
8458 lt_prog_compiler_wl='-Wl,'
8459 ;;
8460 esac
8461 ;;
8462
8463 mingw* | pw32* | os2*)
8464 # This hack is so that the source file can tell whether it is being
8465 # built for inclusion in a dll (and should export symbols for example).
8466 lt_prog_compiler_pic='-DDLL_EXPORT'
8467 ;;
8468
8469 hpux9* | hpux10* | hpux11*)
8470 lt_prog_compiler_wl='-Wl,'
8471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8472 # not for PA HP-UX.
8473 case $host_cpu in
8474 hppa*64*|ia64*)
8475 # +Z the default
8476 ;;
8477 *)
8478 lt_prog_compiler_pic='+Z'
8479 ;;
8480 esac
8481 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8482 lt_prog_compiler_static='${wl}-a ${wl}archive'
8483 ;;
8484
8485 irix5* | irix6* | nonstopux*)
8486 lt_prog_compiler_wl='-Wl,'
8487 # PIC (with -KPIC) is the default.
8488 lt_prog_compiler_static='-non_shared'
8489 ;;
8490
8491 newsos6)
8492 lt_prog_compiler_pic='-KPIC'
8493 lt_prog_compiler_static='-Bstatic'
8494 ;;
8495
8496 linux*)
8497 case $cc_basename in
8498 icc* | ecc*)
8499 lt_prog_compiler_wl='-Wl,'
8500 lt_prog_compiler_pic='-KPIC'
8501 lt_prog_compiler_static='-static'
8502 ;;
8503 pgcc* | pgf77* | pgf90* | pgf95*)
8504 # Portland Group compilers (*not* the Pentium gcc compiler,
8505 # which looks to be a dead project)
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_pic='-fpic'
8508 lt_prog_compiler_static='-Bstatic'
8509 ;;
8510 ccc*)
8511 lt_prog_compiler_wl='-Wl,'
8512 # All Alpha code is PIC.
8513 lt_prog_compiler_static='-non_shared'
8514 ;;
8515 esac
8516 ;;
8517
8518 osf3* | osf4* | osf5*)
8519 lt_prog_compiler_wl='-Wl,'
8520 # All OSF/1 code is PIC.
8521 lt_prog_compiler_static='-non_shared'
8522 ;;
8523
8524 solaris*)
8525 lt_prog_compiler_pic='-KPIC'
8526 lt_prog_compiler_static='-Bstatic'
8527 case $cc_basename in
8528 f77* | f90* | f95*)
8529 lt_prog_compiler_wl='-Qoption ld ';;
8530 *)
8531 lt_prog_compiler_wl='-Wl,';;
8532 esac
8533 ;;
8534
8535 sunos4*)
8536 lt_prog_compiler_wl='-Qoption ld '
8537 lt_prog_compiler_pic='-PIC'
8538 lt_prog_compiler_static='-Bstatic'
8539 ;;
8540
8541 sysv4 | sysv4.2uw2* | sysv4.3*)
8542 lt_prog_compiler_wl='-Wl,'
8543 lt_prog_compiler_pic='-KPIC'
8544 lt_prog_compiler_static='-Bstatic'
8545 ;;
8546
8547 sysv4*MP*)
8548 if test -d /usr/nec ;then
8549 lt_prog_compiler_pic='-Kconform_pic'
8550 lt_prog_compiler_static='-Bstatic'
8551 fi
8552 ;;
8553
8554 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8555 lt_prog_compiler_wl='-Wl,'
8556 lt_prog_compiler_pic='-KPIC'
8557 lt_prog_compiler_static='-Bstatic'
8558 ;;
8559
8560 unicos*)
8561 lt_prog_compiler_wl='-Wl,'
8562 lt_prog_compiler_can_build_shared=no
8563 ;;
8564
8565 uts4*)
8566 lt_prog_compiler_pic='-pic'
8567 lt_prog_compiler_static='-Bstatic'
8568 ;;
8569
8570 *)
8571 lt_prog_compiler_can_build_shared=no
8572 ;;
8573 esac
8574 fi
8575
8576 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8577 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8578
8579 #
8580 # Check to make sure the PIC flag actually works.
8581 #
8582 if test -n "$lt_prog_compiler_pic"; then
8583
8584 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8585 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8586 if test "${lt_prog_compiler_pic_works+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589 lt_prog_compiler_pic_works=no
8590 ac_outfile=conftest.$ac_objext
8591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8592 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8593 # Insert the option either (1) after the last *FLAGS variable, or
8594 # (2) before a word containing "conftest.", or (3) at the end.
8595 # Note that $ac_compile itself does not contain backslashes and begins
8596 # with a dollar sign (not a hyphen), so the echo should work correctly.
8597 # The option is referenced via a variable to avoid confusing sed.
8598 lt_compile=`echo "$ac_compile" | $SED \
8599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8601 -e 's:$: $lt_compiler_flag:'`
8602 (eval echo "\"\$as_me:8602: $lt_compile\"" >&5)
8603 (eval "$lt_compile" 2>conftest.err)
8604 ac_status=$?
8605 cat conftest.err >&5
8606 echo "$as_me:8606: \$? = $ac_status" >&5
8607 if (exit $ac_status) && test -s "$ac_outfile"; then
8608 # The compiler can only warn and ignore the option if not recognized
8609 # So say no if there are warnings other than the usual output.
8610 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8612 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8613 lt_prog_compiler_pic_works=yes
8614 fi
8615 fi
8616 $rm conftest*
8617
8618 fi
8619 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8620 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8621
8622 if test x"$lt_prog_compiler_pic_works" = xyes; then
8623 case $lt_prog_compiler_pic in
8624 "" | " "*) ;;
8625 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8626 esac
8627 else
8628 lt_prog_compiler_pic=
8629 lt_prog_compiler_can_build_shared=no
8630 fi
8631
8632 fi
8633 case $host_os in
8634 # For platforms which do not support PIC, -DPIC is meaningless:
8635 *djgpp*)
8636 lt_prog_compiler_pic=
8637 ;;
8638 *)
8639 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8640 ;;
8641 esac
8642
8643 #
8644 # Check to make sure the static flag actually works.
8645 #
8646 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8647 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8648 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8649 if test "${lt_prog_compiler_static_works+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652 lt_prog_compiler_static_works=no
8653 save_LDFLAGS="$LDFLAGS"
8654 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8655 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8656 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8657 # The linker can only warn and ignore the option if not recognized
8658 # So say no if there are warnings
8659 if test -s conftest.err; then
8660 # Append any errors to the config.log.
8661 cat conftest.err 1>&5
8662 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8664 if diff conftest.exp conftest.er2 >/dev/null; then
8665 lt_prog_compiler_static_works=yes
8666 fi
8667 else
8668 lt_prog_compiler_static_works=yes
8669 fi
8670 fi
8671 $rm conftest*
8672 LDFLAGS="$save_LDFLAGS"
8673
8674 fi
8675 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8676 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8677
8678 if test x"$lt_prog_compiler_static_works" = xyes; then
8679 :
8680 else
8681 lt_prog_compiler_static=
8682 fi
8683
8684
8685 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8686 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8687 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690 lt_cv_prog_compiler_c_o=no
8691 $rm -r conftest 2>/dev/null
8692 mkdir conftest
8693 cd conftest
8694 mkdir out
8695 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8696
8697 lt_compiler_flag="-o out/conftest2.$ac_objext"
8698 # Insert the option either (1) after the last *FLAGS variable, or
8699 # (2) before a word containing "conftest.", or (3) at the end.
8700 # Note that $ac_compile itself does not contain backslashes and begins
8701 # with a dollar sign (not a hyphen), so the echo should work correctly.
8702 lt_compile=`echo "$ac_compile" | $SED \
8703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8705 -e 's:$: $lt_compiler_flag:'`
8706 (eval echo "\"\$as_me:8706: $lt_compile\"" >&5)
8707 (eval "$lt_compile" 2>out/conftest.err)
8708 ac_status=$?
8709 cat out/conftest.err >&5
8710 echo "$as_me:8710: \$? = $ac_status" >&5
8711 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8712 then
8713 # The compiler can only warn and ignore the option if not recognized
8714 # So say no if there are warnings
8715 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8716 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8717 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8718 lt_cv_prog_compiler_c_o=yes
8719 fi
8720 fi
8721 chmod u+w . 2>&5
8722 $rm conftest*
8723 # SGI C++ compiler will create directory out/ii_files/ for
8724 # template instantiation
8725 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8726 $rm out/* && rmdir out
8727 cd ..
8728 rmdir conftest
8729 $rm conftest*
8730
8731 fi
8732 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8733 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8734
8735
8736 hard_links="nottested"
8737 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8738 # do not overwrite the value of need_locks provided by the user
8739 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8740 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8741 hard_links=yes
8742 $rm conftest*
8743 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8744 touch conftest.a
8745 ln conftest.a conftest.b 2>&5 || hard_links=no
8746 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8747 echo "$as_me:$LINENO: result: $hard_links" >&5
8748 echo "${ECHO_T}$hard_links" >&6
8749 if test "$hard_links" = no; then
8750 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8751 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8752 need_locks=warn
8753 fi
8754 else
8755 need_locks=no
8756 fi
8757
8758 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8759 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8760
8761 runpath_var=
8762 allow_undefined_flag=
8763 enable_shared_with_static_runtimes=no
8764 archive_cmds=
8765 archive_expsym_cmds=
8766 old_archive_From_new_cmds=
8767 old_archive_from_expsyms_cmds=
8768 export_dynamic_flag_spec=
8769 whole_archive_flag_spec=
8770 thread_safe_flag_spec=
8771 hardcode_libdir_flag_spec=
8772 hardcode_libdir_flag_spec_ld=
8773 hardcode_libdir_separator=
8774 hardcode_direct=no
8775 hardcode_minus_L=no
8776 hardcode_shlibpath_var=unsupported
8777 link_all_deplibs=unknown
8778 hardcode_automatic=no
8779 module_cmds=
8780 module_expsym_cmds=
8781 always_export_symbols=no
8782 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8783 # include_expsyms should be a list of space-separated symbols to be *always*
8784 # included in the symbol list
8785 include_expsyms=
8786 # exclude_expsyms can be an extended regexp of symbols to exclude
8787 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8788 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8789 # as well as any symbol that contains `d'.
8790 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8791 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8792 # platforms (ab)use it in PIC code, but their linkers get confused if
8793 # the symbol is explicitly referenced. Since portable code cannot
8794 # rely on this symbol name, it's probably fine to never include it in
8795 # preloaded symbol tables.
8796 extract_expsyms_cmds=
8797 # Just being paranoid about ensuring that cc_basename is set.
8798 for cc_temp in $compiler""; do
8799 case $cc_temp in
8800 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8801 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8802 \-*) ;;
8803 *) break;;
8804 esac
8805 done
8806 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8807
8808 case $host_os in
8809 cygwin* | mingw* | pw32*)
8810 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8811 # When not using gcc, we currently assume that we are using
8812 # Microsoft Visual C++.
8813 if test "$GCC" != yes; then
8814 with_gnu_ld=no
8815 fi
8816 ;;
8817 interix*)
8818 # we just hope/assume this is gcc and not c89 (= MSVC++)
8819 with_gnu_ld=yes
8820 ;;
8821 openbsd*)
8822 with_gnu_ld=no
8823 ;;
8824 esac
8825
8826 ld_shlibs=yes
8827 if test "$with_gnu_ld" = yes; then
8828 # If archive_cmds runs LD, not CC, wlarc should be empty
8829 wlarc='${wl}'
8830
8831 # Set some defaults for GNU ld with shared library support. These
8832 # are reset later if shared libraries are not supported. Putting them
8833 # here allows them to be overridden if necessary.
8834 runpath_var=LD_RUN_PATH
8835 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8836 export_dynamic_flag_spec='${wl}--export-dynamic'
8837 # ancient GNU ld didn't support --whole-archive et. al.
8838 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8839 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8840 else
8841 whole_archive_flag_spec=
8842 fi
8843 supports_anon_versioning=no
8844 case `$LD -v 2>/dev/null` in
8845 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8846 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8847 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8848 *\ 2.11.*) ;; # other 2.11 versions
8849 *) supports_anon_versioning=yes ;;
8850 esac
8851
8852 # See if GNU ld supports shared libraries.
8853 case $host_os in
8854 aix3* | aix4* | aix5*)
8855 # On AIX/PPC, the GNU linker is very broken
8856 if test "$host_cpu" != ia64; then
8857 ld_shlibs=no
8858 cat <<EOF 1>&2
8859
8860 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8861 *** to be unable to reliably create shared libraries on AIX.
8862 *** Therefore, libtool is disabling shared libraries support. If you
8863 *** really care for shared libraries, you may want to modify your PATH
8864 *** so that a non-GNU linker is found, and then restart.
8865
8866 EOF
8867 fi
8868 ;;
8869
8870 amigaos*)
8871 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)'
8872 hardcode_libdir_flag_spec='-L$libdir'
8873 hardcode_minus_L=yes
8874
8875 # Samuel A. Falvo II <[email protected]> reports
8876 # that the semantics of dynamic libraries on AmigaOS, at least up
8877 # to version 4, is to share data among multiple programs linked
8878 # with the same dynamic library. Since this doesn't match the
8879 # behavior of shared libraries on other platforms, we can't use
8880 # them.
8881 ld_shlibs=no
8882 ;;
8883
8884 beos*)
8885 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8886 allow_undefined_flag=unsupported
8887 # Joseph Beckenbach <[email protected]> says some releases of gcc
8888 # support --undefined. This deserves some investigation. FIXME
8889 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8890 else
8891 ld_shlibs=no
8892 fi
8893 ;;
8894
8895 cygwin* | mingw* | pw32*)
8896 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8897 # as there is no search path for DLLs.
8898 hardcode_libdir_flag_spec='-L$libdir'
8899 allow_undefined_flag=unsupported
8900 always_export_symbols=no
8901 enable_shared_with_static_runtimes=yes
8902 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8903
8904 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8906 # If the export-symbols file already is a .def file (1st line
8907 # is EXPORTS), use it as is; otherwise, prepend...
8908 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8909 cp $export_symbols $output_objdir/$soname.def;
8910 else
8911 echo EXPORTS > $output_objdir/$soname.def;
8912 cat $export_symbols >> $output_objdir/$soname.def;
8913 fi~
8914 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8915 else
8916 ld_shlibs=no
8917 fi
8918 ;;
8919
8920 interix3*)
8921 hardcode_direct=no
8922 hardcode_shlibpath_var=no
8923 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8924 export_dynamic_flag_spec='${wl}-E'
8925 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8926 # Instead, shared libraries are loaded at an image base (0x10000000 by
8927 # default) and relocated if they conflict, which is a slow very memory
8928 # consuming and fragmenting process. To avoid this, we pick a random,
8929 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8930 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8931 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8932 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'
8933 ;;
8934
8935 linux*)
8936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8937 tmp_addflag=
8938 case $cc_basename,$host_cpu in
8939 pgcc*) # Portland Group C compiler
8940 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'
8941 tmp_addflag=' $pic_flag'
8942 ;;
8943 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8944 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'
8945 tmp_addflag=' $pic_flag -Mnomain' ;;
8946 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8947 tmp_addflag=' -i_dynamic' ;;
8948 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8949 tmp_addflag=' -i_dynamic -nofor_main' ;;
8950 ifc* | ifort*) # Intel Fortran compiler
8951 tmp_addflag=' -nofor_main' ;;
8952 esac
8953 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8954
8955 if test $supports_anon_versioning = yes; then
8956 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8957 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8958 $echo "local: *; };" >> $output_objdir/$libname.ver~
8959 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8960 fi
8961 else
8962 ld_shlibs=no
8963 fi
8964 ;;
8965
8966 netbsd*)
8967 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8968 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8969 wlarc=
8970 else
8971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8973 fi
8974 ;;
8975
8976 solaris*)
8977 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8978 ld_shlibs=no
8979 cat <<EOF 1>&2
8980
8981 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8982 *** create shared libraries on Solaris systems. Therefore, libtool
8983 *** is disabling shared libraries support. We urge you to upgrade GNU
8984 *** binutils to release 2.9.1 or newer. Another option is to modify
8985 *** your PATH or compiler configuration so that the native linker is
8986 *** used, and then restart.
8987
8988 EOF
8989 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8991 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8992 else
8993 ld_shlibs=no
8994 fi
8995 ;;
8996
8997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8998 case `$LD -v 2>&1` in
8999 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9000 ld_shlibs=no
9001 cat <<_LT_EOF 1>&2
9002
9003 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9004 *** reliably create shared libraries on SCO systems. Therefore, libtool
9005 *** is disabling shared libraries support. We urge you to upgrade GNU
9006 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9007 *** your PATH or compiler configuration so that the native linker is
9008 *** used, and then restart.
9009
9010 _LT_EOF
9011 ;;
9012 *)
9013 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9014 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9017 else
9018 ld_shlibs=no
9019 fi
9020 ;;
9021 esac
9022 ;;
9023
9024 sunos4*)
9025 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9026 wlarc=
9027 hardcode_direct=yes
9028 hardcode_shlibpath_var=no
9029 ;;
9030
9031 *)
9032 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 else
9036 ld_shlibs=no
9037 fi
9038 ;;
9039 esac
9040
9041 if test "$ld_shlibs" = no; then
9042 runpath_var=
9043 hardcode_libdir_flag_spec=
9044 export_dynamic_flag_spec=
9045 whole_archive_flag_spec=
9046 fi
9047 else
9048 # PORTME fill in a description of your system's linker (not GNU ld)
9049 case $host_os in
9050 aix3*)
9051 allow_undefined_flag=unsupported
9052 always_export_symbols=yes
9053 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'
9054 # Note: this linker hardcodes the directories in LIBPATH if there
9055 # are no directories specified by -L.
9056 hardcode_minus_L=yes
9057 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9058 # Neither direct hardcoding nor static linking is supported with a
9059 # broken collect2.
9060 hardcode_direct=unsupported
9061 fi
9062 ;;
9063
9064 aix4* | aix5*)
9065 if test "$host_cpu" = ia64; then
9066 # On IA64, the linker does run time linking by default, so we don't
9067 # have to do anything special.
9068 aix_use_runtimelinking=no
9069 exp_sym_flag='-Bexport'
9070 no_entry_flag=""
9071 else
9072 # If we're using GNU nm, then we don't want the "-C" option.
9073 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9074 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9075 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'
9076 else
9077 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'
9078 fi
9079 aix_use_runtimelinking=no
9080
9081 # Test if we are trying to use run time linking or normal
9082 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9083 # need to do runtime linking.
9084 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9085 for ld_flag in $LDFLAGS; do
9086 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9087 aix_use_runtimelinking=yes
9088 break
9089 fi
9090 done
9091 ;;
9092 esac
9093
9094 exp_sym_flag='-bexport'
9095 no_entry_flag='-bnoentry'
9096 fi
9097
9098 # When large executables or shared objects are built, AIX ld can
9099 # have problems creating the table of contents. If linking a library
9100 # or program results in "error TOC overflow" add -mminimal-toc to
9101 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9102 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9103
9104 archive_cmds=''
9105 hardcode_direct=yes
9106 hardcode_libdir_separator=':'
9107 link_all_deplibs=yes
9108
9109 if test "$GCC" = yes; then
9110 case $host_os in aix4.[012]|aix4.[012].*)
9111 # We only want to do this on AIX 4.2 and lower, the check
9112 # below for broken collect2 doesn't work under 4.3+
9113 collect2name=`${CC} -print-prog-name=collect2`
9114 if test -f "$collect2name" && \
9115 strings "$collect2name" | grep resolve_lib_name >/dev/null
9116 then
9117 # We have reworked collect2
9118 hardcode_direct=yes
9119 else
9120 # We have old collect2
9121 hardcode_direct=unsupported
9122 # It fails to find uninstalled libraries when the uninstalled
9123 # path is not listed in the libpath. Setting hardcode_minus_L
9124 # to unsupported forces relinking
9125 hardcode_minus_L=yes
9126 hardcode_libdir_flag_spec='-L$libdir'
9127 hardcode_libdir_separator=
9128 fi
9129 ;;
9130 esac
9131 shared_flag='-shared'
9132 if test "$aix_use_runtimelinking" = yes; then
9133 shared_flag="$shared_flag "'${wl}-G'
9134 fi
9135 else
9136 # not using gcc
9137 if test "$host_cpu" = ia64; then
9138 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9139 # chokes on -Wl,-G. The following line is correct:
9140 shared_flag='-G'
9141 else
9142 if test "$aix_use_runtimelinking" = yes; then
9143 shared_flag='${wl}-G'
9144 else
9145 shared_flag='${wl}-bM:SRE'
9146 fi
9147 fi
9148 fi
9149
9150 # It seems that -bexpall does not export symbols beginning with
9151 # underscore (_), so it is better to generate a list of symbols to export.
9152 always_export_symbols=yes
9153 if test "$aix_use_runtimelinking" = yes; then
9154 # Warning - without using the other runtime loading flags (-brtl),
9155 # -berok will link without error, but may produce a broken library.
9156 allow_undefined_flag='-berok'
9157 # Determine the default libpath from the value encoded in an empty executable.
9158 cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h. */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164
9165 int
9166 main ()
9167 {
9168
9169 ;
9170 return 0;
9171 }
9172 _ACEOF
9173 rm -f conftest.$ac_objext conftest$ac_exeext
9174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9175 (eval $ac_link) 2>conftest.er1
9176 ac_status=$?
9177 grep -v '^ *+' conftest.er1 >conftest.err
9178 rm -f conftest.er1
9179 cat conftest.err >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } &&
9182 { ac_try='test -z "$ac_c_werror_flag"
9183 || test ! -s conftest.err'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 (eval $ac_try) 2>&5
9186 ac_status=$?
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; } &&
9189 { ac_try='test -s conftest$ac_exeext'
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 (eval $ac_try) 2>&5
9192 ac_status=$?
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; }; then
9195
9196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9197 }'`
9198 # Check for a 64-bit object if we didn't find anything.
9199 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; }
9200 }'`; fi
9201 else
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9204
9205 fi
9206 rm -f conftest.err conftest.$ac_objext \
9207 conftest$ac_exeext conftest.$ac_ext
9208 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9209
9210 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9211 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"
9212 else
9213 if test "$host_cpu" = ia64; then
9214 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9215 allow_undefined_flag="-z nodefs"
9216 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"
9217 else
9218 # Determine the default libpath from the value encoded in an empty executable.
9219 cat >conftest.$ac_ext <<_ACEOF
9220 /* confdefs.h. */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225
9226 int
9227 main ()
9228 {
9229
9230 ;
9231 return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256
9257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9258 }'`
9259 # Check for a 64-bit object if we didn't find anything.
9260 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; }
9261 }'`; fi
9262 else
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9265
9266 fi
9267 rm -f conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext conftest.$ac_ext
9269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9270
9271 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9272 # Warning - without using the other run time loading flags,
9273 # -berok will link without error, but may produce a broken library.
9274 no_undefined_flag=' ${wl}-bernotok'
9275 allow_undefined_flag=' ${wl}-berok'
9276 # Exported symbols can be pulled into shared objects from archives
9277 whole_archive_flag_spec='$convenience'
9278 archive_cmds_need_lc=yes
9279 # This is similar to how AIX traditionally builds its shared libraries.
9280 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'
9281 fi
9282 fi
9283 ;;
9284
9285 amigaos*)
9286 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)'
9287 hardcode_libdir_flag_spec='-L$libdir'
9288 hardcode_minus_L=yes
9289 # see comment about different semantics on the GNU ld section
9290 ld_shlibs=no
9291 ;;
9292
9293 bsdi[45]*)
9294 export_dynamic_flag_spec=-rdynamic
9295 ;;
9296
9297 cygwin* | mingw* | pw32*)
9298 # When not using gcc, we currently assume that we are using
9299 # Microsoft Visual C++.
9300 # hardcode_libdir_flag_spec is actually meaningless, as there is
9301 # no search path for DLLs.
9302 hardcode_libdir_flag_spec=' '
9303 allow_undefined_flag=unsupported
9304 # Tell ltmain to make .lib files, not .a files.
9305 libext=lib
9306 # Tell ltmain to make .dll files, not .so files.
9307 shrext_cmds=".dll"
9308 # FIXME: Setting linknames here is a bad hack.
9309 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9310 # The linker will automatically build a .lib file if we build a DLL.
9311 old_archive_From_new_cmds='true'
9312 # FIXME: Should let the user specify the lib program.
9313 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9314 fix_srcfile_path='`cygpath -w "$srcfile"`'
9315 enable_shared_with_static_runtimes=yes
9316 ;;
9317
9318 darwin* | rhapsody*)
9319 case $host_os in
9320 rhapsody* | darwin1.[012])
9321 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9322 ;;
9323 *) # Darwin 1.3 on
9324 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9325 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9326 else
9327 case ${MACOSX_DEPLOYMENT_TARGET} in
9328 10.[012])
9329 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9330 ;;
9331 10.*)
9332 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9333 ;;
9334 esac
9335 fi
9336 ;;
9337 esac
9338 archive_cmds_need_lc=no
9339 hardcode_direct=no
9340 hardcode_automatic=yes
9341 hardcode_shlibpath_var=unsupported
9342 whole_archive_flag_spec=''
9343 link_all_deplibs=yes
9344 if test "$GCC" = yes ; then
9345 output_verbose_link_cmd='echo'
9346 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9347 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9348 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9349 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}'
9350 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}'
9351 else
9352 case $cc_basename in
9353 xlc*)
9354 output_verbose_link_cmd='echo'
9355 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9356 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9357 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9358 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}'
9359 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}'
9360 ;;
9361 *)
9362 ld_shlibs=no
9363 ;;
9364 esac
9365 fi
9366 ;;
9367
9368 dgux*)
9369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370 hardcode_libdir_flag_spec='-L$libdir'
9371 hardcode_shlibpath_var=no
9372 ;;
9373
9374 freebsd1*)
9375 ld_shlibs=no
9376 ;;
9377
9378 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9379 # support. Future versions do this automatically, but an explicit c++rt0.o
9380 # does not break anything, and helps significantly (at the cost of a little
9381 # extra space).
9382 freebsd2.2*)
9383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9384 hardcode_libdir_flag_spec='-R$libdir'
9385 hardcode_direct=yes
9386 hardcode_shlibpath_var=no
9387 ;;
9388
9389 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9390 freebsd2*)
9391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9392 hardcode_direct=yes
9393 hardcode_minus_L=yes
9394 hardcode_shlibpath_var=no
9395 ;;
9396
9397 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9398 freebsd* | kfreebsd*-gnu | dragonfly*)
9399 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9400 hardcode_libdir_flag_spec='-R$libdir'
9401 hardcode_direct=yes
9402 hardcode_shlibpath_var=no
9403 ;;
9404
9405 hpux9*)
9406 if test "$GCC" = yes; then
9407 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'
9408 else
9409 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'
9410 fi
9411 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9412 hardcode_libdir_separator=:
9413 hardcode_direct=yes
9414
9415 # hardcode_minus_L: Not really in the search PATH,
9416 # but as the default location of the library.
9417 hardcode_minus_L=yes
9418 export_dynamic_flag_spec='${wl}-E'
9419 ;;
9420
9421 hpux10*)
9422 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9423 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9424 else
9425 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9426 fi
9427 if test "$with_gnu_ld" = no; then
9428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9429 hardcode_libdir_separator=:
9430
9431 hardcode_direct=yes
9432 export_dynamic_flag_spec='${wl}-E'
9433
9434 # hardcode_minus_L: Not really in the search PATH,
9435 # but as the default location of the library.
9436 hardcode_minus_L=yes
9437 fi
9438 ;;
9439
9440 hpux11*)
9441 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9442 case $host_cpu in
9443 hppa*64*)
9444 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 ;;
9446 ia64*)
9447 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9448 ;;
9449 *)
9450 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9451 ;;
9452 esac
9453 else
9454 case $host_cpu in
9455 hppa*64*)
9456 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9457 ;;
9458 ia64*)
9459 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9460 ;;
9461 *)
9462 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9463 ;;
9464 esac
9465 fi
9466 if test "$with_gnu_ld" = no; then
9467 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9468 hardcode_libdir_separator=:
9469
9470 case $host_cpu in
9471 hppa*64*|ia64*)
9472 hardcode_libdir_flag_spec_ld='+b $libdir'
9473 hardcode_direct=no
9474 hardcode_shlibpath_var=no
9475 ;;
9476 *)
9477 hardcode_direct=yes
9478 export_dynamic_flag_spec='${wl}-E'
9479
9480 # hardcode_minus_L: Not really in the search PATH,
9481 # but as the default location of the library.
9482 hardcode_minus_L=yes
9483 ;;
9484 esac
9485 fi
9486 ;;
9487
9488 irix5* | irix6* | nonstopux*)
9489 if test "$GCC" = yes; then
9490 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'
9491 else
9492 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'
9493 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9494 fi
9495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9496 hardcode_libdir_separator=:
9497 link_all_deplibs=yes
9498 ;;
9499
9500 netbsd*)
9501 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9503 else
9504 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9505 fi
9506 hardcode_libdir_flag_spec='-R$libdir'
9507 hardcode_direct=yes
9508 hardcode_shlibpath_var=no
9509 ;;
9510
9511 newsos6)
9512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513 hardcode_direct=yes
9514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9515 hardcode_libdir_separator=:
9516 hardcode_shlibpath_var=no
9517 ;;
9518
9519 openbsd*)
9520 hardcode_direct=yes
9521 hardcode_shlibpath_var=no
9522 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9523 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9524 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9526 export_dynamic_flag_spec='${wl}-E'
9527 else
9528 case $host_os in
9529 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9531 hardcode_libdir_flag_spec='-R$libdir'
9532 ;;
9533 *)
9534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9535 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9536 ;;
9537 esac
9538 fi
9539 ;;
9540
9541 os2*)
9542 hardcode_libdir_flag_spec='-L$libdir'
9543 hardcode_minus_L=yes
9544 allow_undefined_flag=unsupported
9545 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'
9546 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9547 ;;
9548
9549 osf3*)
9550 if test "$GCC" = yes; then
9551 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9552 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'
9553 else
9554 allow_undefined_flag=' -expect_unresolved \*'
9555 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'
9556 fi
9557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558 hardcode_libdir_separator=:
9559 ;;
9560
9561 osf4* | osf5*) # as osf3* with the addition of -msym flag
9562 if test "$GCC" = yes; then
9563 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9564 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'
9565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9566 else
9567 allow_undefined_flag=' -expect_unresolved \*'
9568 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'
9569 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9570 $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'
9571
9572 # Both c and cxx compiler support -rpath directly
9573 hardcode_libdir_flag_spec='-rpath $libdir'
9574 fi
9575 hardcode_libdir_separator=:
9576 ;;
9577
9578 solaris*)
9579 no_undefined_flag=' -z text'
9580 if test "$GCC" = yes; then
9581 wlarc='${wl}'
9582 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9583 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9584 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9585 else
9586 wlarc=''
9587 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9588 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9589 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9590 fi
9591 hardcode_libdir_flag_spec='-R$libdir'
9592 hardcode_shlibpath_var=no
9593 case $host_os in
9594 solaris2.[0-5] | solaris2.[0-5].*) ;;
9595 *)
9596 # The compiler driver will combine linker options so we
9597 # cannot just pass the convience library names through
9598 # without $wl, iff we do not link with $LD.
9599 # Luckily, gcc supports the same syntax we need for Sun Studio.
9600 # Supported since Solaris 2.6 (maybe 2.5.1?)
9601 case $wlarc in
9602 '')
9603 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9604 *)
9605 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' ;;
9606 esac ;;
9607 esac
9608 link_all_deplibs=yes
9609 ;;
9610
9611 sunos4*)
9612 if test "x$host_vendor" = xsequent; then
9613 # Use $CC to link under sequent, because it throws in some extra .o
9614 # files that make .init and .fini sections work.
9615 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9616 else
9617 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9618 fi
9619 hardcode_libdir_flag_spec='-L$libdir'
9620 hardcode_direct=yes
9621 hardcode_minus_L=yes
9622 hardcode_shlibpath_var=no
9623 ;;
9624
9625 sysv4)
9626 case $host_vendor in
9627 sni)
9628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9629 hardcode_direct=yes # is this really true???
9630 ;;
9631 siemens)
9632 ## LD is ld it makes a PLAMLIB
9633 ## CC just makes a GrossModule.
9634 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9635 reload_cmds='$CC -r -o $output$reload_objs'
9636 hardcode_direct=no
9637 ;;
9638 motorola)
9639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9640 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9641 ;;
9642 esac
9643 runpath_var='LD_RUN_PATH'
9644 hardcode_shlibpath_var=no
9645 ;;
9646
9647 sysv4.3*)
9648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_shlibpath_var=no
9650 export_dynamic_flag_spec='-Bexport'
9651 ;;
9652
9653 sysv4*MP*)
9654 if test -d /usr/nec; then
9655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9656 hardcode_shlibpath_var=no
9657 runpath_var=LD_RUN_PATH
9658 hardcode_runpath_var=yes
9659 ld_shlibs=yes
9660 fi
9661 ;;
9662
9663 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9664 no_undefined_flag='${wl}-z,text'
9665 archive_cmds_need_lc=no
9666 hardcode_shlibpath_var=no
9667 runpath_var='LD_RUN_PATH'
9668
9669 if test "$GCC" = yes; then
9670 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9671 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9672 else
9673 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675 fi
9676 ;;
9677
9678 sysv5* | sco3.2v5* | sco5v6*)
9679 # Note: We can NOT use -z defs as we might desire, because we do not
9680 # link with -lc, and that would cause any symbols used from libc to
9681 # always be unresolved, which means just about no library would
9682 # ever link correctly. If we're not using GNU ld we use -z text
9683 # though, which does catch some bad symbols but isn't as heavy-handed
9684 # as -z defs.
9685 no_undefined_flag='${wl}-z,text'
9686 allow_undefined_flag='${wl}-z,nodefs'
9687 archive_cmds_need_lc=no
9688 hardcode_shlibpath_var=no
9689 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9690 hardcode_libdir_separator=':'
9691 link_all_deplibs=yes
9692 export_dynamic_flag_spec='${wl}-Bexport'
9693 runpath_var='LD_RUN_PATH'
9694
9695 if test "$GCC" = yes; then
9696 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9698 else
9699 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 fi
9702 ;;
9703
9704 uts4*)
9705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706 hardcode_libdir_flag_spec='-L$libdir'
9707 hardcode_shlibpath_var=no
9708 ;;
9709
9710 *)
9711 ld_shlibs=no
9712 ;;
9713 esac
9714 fi
9715
9716 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9717 echo "${ECHO_T}$ld_shlibs" >&6
9718 test "$ld_shlibs" = no && can_build_shared=no
9719
9720 #
9721 # Do we need to explicitly link libc?
9722 #
9723 case "x$archive_cmds_need_lc" in
9724 x|xyes)
9725 # Assume -lc should be added
9726 archive_cmds_need_lc=yes
9727
9728 if test "$enable_shared" = yes && test "$GCC" = yes; then
9729 case $archive_cmds in
9730 *'~'*)
9731 # FIXME: we may have to deal with multi-command sequences.
9732 ;;
9733 '$CC '*)
9734 # Test whether the compiler implicitly links with -lc since on some
9735 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9736 # to ld, don't add -lc before -lgcc.
9737 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9738 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9739 $rm conftest*
9740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9741
9742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9743 (eval $ac_compile) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } 2>conftest.err; then
9747 soname=conftest
9748 lib=conftest
9749 libobjs=conftest.$ac_objext
9750 deplibs=
9751 wl=$lt_prog_compiler_wl
9752 pic_flag=$lt_prog_compiler_pic
9753 compiler_flags=-v
9754 linker_flags=-v
9755 verstring=
9756 output_objdir=.
9757 libname=conftest
9758 lt_save_allow_undefined_flag=$allow_undefined_flag
9759 allow_undefined_flag=
9760 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9761 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }
9765 then
9766 archive_cmds_need_lc=no
9767 else
9768 archive_cmds_need_lc=yes
9769 fi
9770 allow_undefined_flag=$lt_save_allow_undefined_flag
9771 else
9772 cat conftest.err 1>&5
9773 fi
9774 $rm conftest*
9775 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9776 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9777 ;;
9778 esac
9779 fi
9780 ;;
9781 esac
9782
9783 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9784 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9785 library_names_spec=
9786 libname_spec='lib$name'
9787 soname_spec=
9788 shrext_cmds=".so"
9789 postinstall_cmds=
9790 postuninstall_cmds=
9791 finish_cmds=
9792 finish_eval=
9793 shlibpath_var=
9794 shlibpath_overrides_runpath=unknown
9795 version_type=none
9796 dynamic_linker="$host_os ld.so"
9797 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9798 if test "$GCC" = yes; then
9799 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9800 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9801 # if the path contains ";" then we assume it to be the separator
9802 # otherwise default to the standard path separator (i.e. ":") - it is
9803 # assumed that no part of a normal pathname contains ";" but that should
9804 # okay in the real world where ";" in dirpaths is itself problematic.
9805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9806 else
9807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9808 fi
9809 else
9810 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9811 fi
9812 need_lib_prefix=unknown
9813 hardcode_into_libs=no
9814
9815 # when you set need_version to no, make sure it does not cause -set_version
9816 # flags to be left without arguments
9817 need_version=unknown
9818
9819 case $host_os in
9820 aix3*)
9821 version_type=linux
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9823 shlibpath_var=LIBPATH
9824
9825 # AIX 3 has no versioning support, so we append a major version to the name.
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 ;;
9828
9829 aix4* | aix5*)
9830 version_type=linux
9831 need_lib_prefix=no
9832 need_version=no
9833 hardcode_into_libs=yes
9834 if test "$host_cpu" = ia64; then
9835 # AIX 5 supports IA64
9836 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9837 shlibpath_var=LD_LIBRARY_PATH
9838 else
9839 # With GCC up to 2.95.x, collect2 would create an import file
9840 # for dependence libraries. The import file would start with
9841 # the line `#! .'. This would cause the generated library to
9842 # depend on `.', always an invalid library. This was fixed in
9843 # development snapshots of GCC prior to 3.0.
9844 case $host_os in
9845 aix4 | aix4.[01] | aix4.[01].*)
9846 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9847 echo ' yes '
9848 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9849 :
9850 else
9851 can_build_shared=no
9852 fi
9853 ;;
9854 esac
9855 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9856 # soname into executable. Probably we can add versioning support to
9857 # collect2, so additional links can be useful in future.
9858 if test "$aix_use_runtimelinking" = yes; then
9859 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9860 # instead of lib<name>.a to let people know that these are not
9861 # typical AIX shared libraries.
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863 else
9864 # We preserve .a as extension for shared libraries through AIX4.2
9865 # and later when we are not doing run time linking.
9866 library_names_spec='${libname}${release}.a $libname.a'
9867 soname_spec='${libname}${release}${shared_ext}$major'
9868 fi
9869 shlibpath_var=LIBPATH
9870 fi
9871 ;;
9872
9873 amigaos*)
9874 library_names_spec='$libname.ixlibrary $libname.a'
9875 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9876 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'
9877 ;;
9878
9879 beos*)
9880 library_names_spec='${libname}${shared_ext}'
9881 dynamic_linker="$host_os ld.so"
9882 shlibpath_var=LIBRARY_PATH
9883 ;;
9884
9885 bsdi[45]*)
9886 version_type=linux
9887 need_version=no
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9891 shlibpath_var=LD_LIBRARY_PATH
9892 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9893 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9894 # the default ld.so.conf also contains /usr/contrib/lib and
9895 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9896 # libtool to hard-code these into programs
9897 ;;
9898
9899 cygwin* | mingw* | pw32*)
9900 version_type=windows
9901 shrext_cmds=".dll"
9902 need_version=no
9903 need_lib_prefix=no
9904
9905 case $GCC,$host_os in
9906 yes,cygwin* | yes,mingw* | yes,pw32*)
9907 library_names_spec='$libname.dll.a'
9908 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9909 postinstall_cmds='base_file=`basename \${file}`~
9910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9911 dldir=$destdir/`dirname \$dlpath`~
9912 test -d \$dldir || mkdir -p \$dldir~
9913 $install_prog $dir/$dlname \$dldir/$dlname~
9914 chmod a+x \$dldir/$dlname'
9915 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9916 dlpath=$dir/\$dldll~
9917 $rm \$dlpath'
9918 shlibpath_overrides_runpath=yes
9919
9920 case $host_os in
9921 cygwin*)
9922 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9923 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9924 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9925 ;;
9926 mingw*)
9927 # MinGW DLLs use traditional 'lib' prefix
9928 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9929 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9930 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9931 # It is most probably a Windows format PATH printed by
9932 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9933 # path with ; separators, and with drive letters. We can handle the
9934 # drive letters (cygwin fileutils understands them), so leave them,
9935 # especially as we might pass files found there to a mingw objdump,
9936 # which wouldn't understand a cygwinified path. Ahh.
9937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9938 else
9939 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9940 fi
9941 ;;
9942 pw32*)
9943 # pw32 DLLs use 'pw' prefix rather than 'lib'
9944 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9945 ;;
9946 esac
9947 ;;
9948
9949 *)
9950 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9951 ;;
9952 esac
9953 dynamic_linker='Win32 ld.exe'
9954 # FIXME: first we should search . and the directory the executable is in
9955 shlibpath_var=PATH
9956 ;;
9957
9958 darwin* | rhapsody*)
9959 dynamic_linker="$host_os dyld"
9960 version_type=darwin
9961 need_lib_prefix=no
9962 need_version=no
9963 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9964 soname_spec='${libname}${release}${major}$shared_ext'
9965 shlibpath_overrides_runpath=yes
9966 shlibpath_var=DYLD_LIBRARY_PATH
9967 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9968 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9969 if test "$GCC" = yes; then
9970 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"`
9971 else
9972 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9973 fi
9974 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9975 ;;
9976
9977 dgux*)
9978 version_type=linux
9979 need_lib_prefix=no
9980 need_version=no
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9982 soname_spec='${libname}${release}${shared_ext}$major'
9983 shlibpath_var=LD_LIBRARY_PATH
9984 ;;
9985
9986 freebsd1*)
9987 dynamic_linker=no
9988 ;;
9989
9990 kfreebsd*-gnu)
9991 version_type=linux
9992 need_lib_prefix=no
9993 need_version=no
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9995 soname_spec='${libname}${release}${shared_ext}$major'
9996 shlibpath_var=LD_LIBRARY_PATH
9997 shlibpath_overrides_runpath=no
9998 hardcode_into_libs=yes
9999 dynamic_linker='GNU ld.so'
10000 ;;
10001
10002 freebsd* | dragonfly*)
10003 # DragonFly does not have aout. When/if they implement a new
10004 # versioning mechanism, adjust this.
10005 if test -x /usr/bin/objformat; then
10006 objformat=`/usr/bin/objformat`
10007 else
10008 case $host_os in
10009 freebsd[123]*) objformat=aout ;;
10010 *) objformat=elf ;;
10011 esac
10012 fi
10013 version_type=freebsd-$objformat
10014 case $version_type in
10015 freebsd-elf*)
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10017 need_version=no
10018 need_lib_prefix=no
10019 ;;
10020 freebsd-*)
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10022 need_version=yes
10023 ;;
10024 esac
10025 shlibpath_var=LD_LIBRARY_PATH
10026 case $host_os in
10027 freebsd2*)
10028 shlibpath_overrides_runpath=yes
10029 ;;
10030 freebsd3.[01]* | freebsdelf3.[01]*)
10031 shlibpath_overrides_runpath=yes
10032 hardcode_into_libs=yes
10033 ;;
10034 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10035 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10036 shlibpath_overrides_runpath=no
10037 hardcode_into_libs=yes
10038 ;;
10039 freebsd*) # from 4.6 on
10040 shlibpath_overrides_runpath=yes
10041 hardcode_into_libs=yes
10042 ;;
10043 esac
10044 ;;
10045
10046 gnu*)
10047 version_type=linux
10048 need_lib_prefix=no
10049 need_version=no
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 shlibpath_var=LD_LIBRARY_PATH
10053 hardcode_into_libs=yes
10054 ;;
10055
10056 hpux9* | hpux10* | hpux11*)
10057 # Give a soname corresponding to the major version so that dld.sl refuses to
10058 # link against other versions.
10059 version_type=sunos
10060 need_lib_prefix=no
10061 need_version=no
10062 case $host_cpu in
10063 ia64*)
10064 shrext_cmds='.so'
10065 hardcode_into_libs=yes
10066 dynamic_linker="$host_os dld.so"
10067 shlibpath_var=LD_LIBRARY_PATH
10068 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 if test "X$HPUX_IA64_MODE" = X32; then
10072 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10073 else
10074 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10075 fi
10076 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10077 ;;
10078 hppa*64*)
10079 shrext_cmds='.sl'
10080 hardcode_into_libs=yes
10081 dynamic_linker="$host_os dld.sl"
10082 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10087 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10088 ;;
10089 *)
10090 shrext_cmds='.sl'
10091 dynamic_linker="$host_os dld.sl"
10092 shlibpath_var=SHLIB_PATH
10093 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 ;;
10097 esac
10098 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10099 postinstall_cmds='chmod 555 $lib'
10100 ;;
10101
10102 interix3*)
10103 version_type=linux
10104 need_lib_prefix=no
10105 need_version=no
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10109 shlibpath_var=LD_LIBRARY_PATH
10110 shlibpath_overrides_runpath=no
10111 hardcode_into_libs=yes
10112 ;;
10113
10114 irix5* | irix6* | nonstopux*)
10115 case $host_os in
10116 nonstopux*) version_type=nonstopux ;;
10117 *)
10118 if test "$lt_cv_prog_gnu_ld" = yes; then
10119 version_type=linux
10120 else
10121 version_type=irix
10122 fi ;;
10123 esac
10124 need_lib_prefix=no
10125 need_version=no
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10128 case $host_os in
10129 irix5* | nonstopux*)
10130 libsuff= shlibsuff=
10131 ;;
10132 *)
10133 case $LD in # libtool.m4 will add one of these switches to LD
10134 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10135 libsuff= shlibsuff= libmagic=32-bit;;
10136 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10137 libsuff=32 shlibsuff=N32 libmagic=N32;;
10138 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10139 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10140 *) libsuff= shlibsuff= libmagic=never-match;;
10141 esac
10142 ;;
10143 esac
10144 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10145 shlibpath_overrides_runpath=no
10146 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10147 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10148 hardcode_into_libs=yes
10149 ;;
10150
10151 # No shared lib support for Linux oldld, aout, or coff.
10152 linux*oldld* | linux*aout* | linux*coff*)
10153 dynamic_linker=no
10154 ;;
10155
10156 # This must be Linux ELF.
10157 linux*)
10158 version_type=linux
10159 need_lib_prefix=no
10160 need_version=no
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 shlibpath_overrides_runpath=no
10166 # This implies no fast_install, which is unacceptable.
10167 # Some rework will be needed to allow for fast_install
10168 # before this can be enabled.
10169 hardcode_into_libs=yes
10170
10171 # Append ld.so.conf contents to the search path
10172 if test -f /etc/ld.so.conf; then
10173 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' ' '`
10174 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10175 fi
10176
10177 # We used to test for /lib/ld.so.1 and disable shared libraries on
10178 # powerpc, because MkLinux only supported shared libraries with the
10179 # GNU dynamic linker. Since this was broken with cross compilers,
10180 # most powerpc-linux boxes support dynamic linking these days and
10181 # people can always --disable-shared, the test was removed, and we
10182 # assume the GNU/Linux dynamic linker is in use.
10183 dynamic_linker='GNU/Linux ld.so'
10184 ;;
10185
10186 knetbsd*-gnu)
10187 version_type=linux
10188 need_lib_prefix=no
10189 need_version=no
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 shlibpath_overrides_runpath=no
10194 hardcode_into_libs=yes
10195 dynamic_linker='GNU ld.so'
10196 ;;
10197
10198 netbsd*)
10199 version_type=sunos
10200 need_lib_prefix=no
10201 need_version=no
10202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10205 dynamic_linker='NetBSD (a.out) ld.so'
10206 else
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 dynamic_linker='NetBSD ld.elf_so'
10210 fi
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=yes
10213 hardcode_into_libs=yes
10214 ;;
10215
10216 newsos6)
10217 version_type=linux
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 shlibpath_var=LD_LIBRARY_PATH
10220 shlibpath_overrides_runpath=yes
10221 ;;
10222
10223 nto-qnx*)
10224 version_type=linux
10225 need_lib_prefix=no
10226 need_version=no
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=yes
10231 ;;
10232
10233 openbsd*)
10234 version_type=sunos
10235 sys_lib_dlsearch_path_spec="/usr/lib"
10236 need_lib_prefix=no
10237 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10238 case $host_os in
10239 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10240 *) need_version=no ;;
10241 esac
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10246 case $host_os in
10247 openbsd2.[89] | openbsd2.[89].*)
10248 shlibpath_overrides_runpath=no
10249 ;;
10250 *)
10251 shlibpath_overrides_runpath=yes
10252 ;;
10253 esac
10254 else
10255 shlibpath_overrides_runpath=yes
10256 fi
10257 ;;
10258
10259 os2*)
10260 libname_spec='$name'
10261 shrext_cmds=".dll"
10262 need_lib_prefix=no
10263 library_names_spec='$libname${shared_ext} $libname.a'
10264 dynamic_linker='OS/2 ld.exe'
10265 shlibpath_var=LIBPATH
10266 ;;
10267
10268 osf3* | osf4* | osf5*)
10269 version_type=osf
10270 need_lib_prefix=no
10271 need_version=no
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 shlibpath_var=LD_LIBRARY_PATH
10275 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10276 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10277 ;;
10278
10279 solaris*)
10280 version_type=linux
10281 need_lib_prefix=no
10282 need_version=no
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 shlibpath_var=LD_LIBRARY_PATH
10286 shlibpath_overrides_runpath=yes
10287 hardcode_into_libs=yes
10288 # ldd complains unless libraries are executable
10289 postinstall_cmds='chmod +x $lib'
10290 ;;
10291
10292 sunos4*)
10293 version_type=sunos
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10295 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 shlibpath_overrides_runpath=yes
10298 if test "$with_gnu_ld" = yes; then
10299 need_lib_prefix=no
10300 fi
10301 need_version=yes
10302 ;;
10303
10304 sysv4 | sysv4.3*)
10305 version_type=linux
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 case $host_vendor in
10310 sni)
10311 shlibpath_overrides_runpath=no
10312 need_lib_prefix=no
10313 export_dynamic_flag_spec='${wl}-Blargedynsym'
10314 runpath_var=LD_RUN_PATH
10315 ;;
10316 siemens)
10317 need_lib_prefix=no
10318 ;;
10319 motorola)
10320 need_lib_prefix=no
10321 need_version=no
10322 shlibpath_overrides_runpath=no
10323 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10324 ;;
10325 esac
10326 ;;
10327
10328 sysv4*MP*)
10329 if test -d /usr/nec ;then
10330 version_type=linux
10331 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10332 soname_spec='$libname${shared_ext}.$major'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 fi
10335 ;;
10336
10337 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10338 version_type=freebsd-elf
10339 need_lib_prefix=no
10340 need_version=no
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 shlibpath_var=LD_LIBRARY_PATH
10344 hardcode_into_libs=yes
10345 if test "$with_gnu_ld" = yes; then
10346 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10347 shlibpath_overrides_runpath=no
10348 else
10349 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10350 shlibpath_overrides_runpath=yes
10351 case $host_os in
10352 sco3.2v5*)
10353 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10354 ;;
10355 esac
10356 fi
10357 sys_lib_dlsearch_path_spec='/usr/lib'
10358 ;;
10359
10360 uts4*)
10361 version_type=linux
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 shlibpath_var=LD_LIBRARY_PATH
10365 ;;
10366
10367 *)
10368 dynamic_linker=no
10369 ;;
10370 esac
10371 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10372 echo "${ECHO_T}$dynamic_linker" >&6
10373 test "$dynamic_linker" = no && can_build_shared=no
10374
10375 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10376 if test "$GCC" = yes; then
10377 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10378 fi
10379
10380 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10381 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10382 hardcode_action=
10383 if test -n "$hardcode_libdir_flag_spec" || \
10384 test -n "$runpath_var" || \
10385 test "X$hardcode_automatic" = "Xyes" ; then
10386
10387 # We can hardcode non-existant directories.
10388 if test "$hardcode_direct" != no &&
10389 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10390 # have to relink, otherwise we might link with an installed library
10391 # when we should be linking with a yet-to-be-installed one
10392 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10393 test "$hardcode_minus_L" != no; then
10394 # Linking always hardcodes the temporary library directory.
10395 hardcode_action=relink
10396 else
10397 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10398 hardcode_action=immediate
10399 fi
10400 else
10401 # We cannot hardcode anything, or else we can only hardcode existing
10402 # directories.
10403 hardcode_action=unsupported
10404 fi
10405 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10406 echo "${ECHO_T}$hardcode_action" >&6
10407
10408 if test "$hardcode_action" = relink; then
10409 # Fast installation is not supported
10410 enable_fast_install=no
10411 elif test "$shlibpath_overrides_runpath" = yes ||
10412 test "$enable_shared" = no; then
10413 # Fast installation is not necessary
10414 enable_fast_install=needless
10415 fi
10416
10417 striplib=
10418 old_striplib=
10419 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10420 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10421 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10422 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10423 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10424 echo "$as_me:$LINENO: result: yes" >&5
10425 echo "${ECHO_T}yes" >&6
10426 else
10427 # FIXME - insert some real tests, host_os isn't really good enough
10428 case $host_os in
10429 darwin*)
10430 if test -n "$STRIP" ; then
10431 striplib="$STRIP -x"
10432 echo "$as_me:$LINENO: result: yes" >&5
10433 echo "${ECHO_T}yes" >&6
10434 else
10435 echo "$as_me:$LINENO: result: no" >&5
10436 echo "${ECHO_T}no" >&6
10437 fi
10438 ;;
10439 *)
10440 echo "$as_me:$LINENO: result: no" >&5
10441 echo "${ECHO_T}no" >&6
10442 ;;
10443 esac
10444 fi
10445
10446 if test "x$enable_dlopen" != xyes; then
10447 enable_dlopen=unknown
10448 enable_dlopen_self=unknown
10449 enable_dlopen_self_static=unknown
10450 else
10451 lt_cv_dlopen=no
10452 lt_cv_dlopen_libs=
10453
10454 case $host_os in
10455 beos*)
10456 lt_cv_dlopen="load_add_on"
10457 lt_cv_dlopen_libs=
10458 lt_cv_dlopen_self=yes
10459 ;;
10460
10461 mingw* | pw32*)
10462 lt_cv_dlopen="LoadLibrary"
10463 lt_cv_dlopen_libs=
10464 ;;
10465
10466 cygwin*)
10467 lt_cv_dlopen="dlopen"
10468 lt_cv_dlopen_libs=
10469 ;;
10470
10471 darwin*)
10472 # if libdl is installed we need to link against it
10473 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10474 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10475 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10477 else
10478 ac_check_lib_save_LIBS=$LIBS
10479 LIBS="-ldl $LIBS"
10480 cat >conftest.$ac_ext <<_ACEOF
10481 /* confdefs.h. */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10486
10487 /* Override any gcc2 internal prototype to avoid an error. */
10488 #ifdef __cplusplus
10489 extern "C"
10490 #endif
10491 /* We use char because int might match the return type of a gcc2
10492 builtin and then its argument prototype would still apply. */
10493 char dlopen ();
10494 int
10495 main ()
10496 {
10497 dlopen ();
10498 ;
10499 return 0;
10500 }
10501 _ACEOF
10502 rm -f conftest.$ac_objext conftest$ac_exeext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504 (eval $ac_link) 2>conftest.er1
10505 ac_status=$?
10506 grep -v '^ *+' conftest.er1 >conftest.err
10507 rm -f conftest.er1
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try='test -z "$ac_c_werror_flag"
10512 || test ! -s conftest.err'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; } &&
10518 { ac_try='test -s conftest$ac_exeext'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10521 ac_status=$?
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; }; then
10524 ac_cv_lib_dl_dlopen=yes
10525 else
10526 echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10528
10529 ac_cv_lib_dl_dlopen=no
10530 fi
10531 rm -f conftest.err conftest.$ac_objext \
10532 conftest$ac_exeext conftest.$ac_ext
10533 LIBS=$ac_check_lib_save_LIBS
10534 fi
10535 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10536 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10537 if test $ac_cv_lib_dl_dlopen = yes; then
10538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10539 else
10540
10541 lt_cv_dlopen="dyld"
10542 lt_cv_dlopen_libs=
10543 lt_cv_dlopen_self=yes
10544
10545 fi
10546
10547 ;;
10548
10549 *)
10550 echo "$as_me:$LINENO: checking for shl_load" >&5
10551 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10552 if test "${ac_cv_func_shl_load+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555 cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h. */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10563 #define shl_load innocuous_shl_load
10564
10565 /* System header to define __stub macros and hopefully few prototypes,
10566 which can conflict with char shl_load (); below.
10567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10568 <limits.h> exists even on freestanding compilers. */
10569
10570 #ifdef __STDC__
10571 # include <limits.h>
10572 #else
10573 # include <assert.h>
10574 #endif
10575
10576 #undef shl_load
10577
10578 /* Override any gcc2 internal prototype to avoid an error. */
10579 #ifdef __cplusplus
10580 extern "C"
10581 {
10582 #endif
10583 /* We use char because int might match the return type of a gcc2
10584 builtin and then its argument prototype would still apply. */
10585 char shl_load ();
10586 /* The GNU C library defines this for functions which it implements
10587 to always fail with ENOSYS. Some functions are actually named
10588 something starting with __ and the normal name is an alias. */
10589 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10590 choke me
10591 #else
10592 char (*f) () = shl_load;
10593 #endif
10594 #ifdef __cplusplus
10595 }
10596 #endif
10597
10598 int
10599 main ()
10600 {
10601 return f != shl_load;
10602 ;
10603 return 0;
10604 }
10605 _ACEOF
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608 (eval $ac_link) 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try='test -z "$ac_c_werror_flag"
10616 || test ! -s conftest.err'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; } &&
10622 { ac_try='test -s conftest$ac_exeext'
10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624 (eval $ac_try) 2>&5
10625 ac_status=$?
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; }; then
10628 ac_cv_func_shl_load=yes
10629 else
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10632
10633 ac_cv_func_shl_load=no
10634 fi
10635 rm -f conftest.err conftest.$ac_objext \
10636 conftest$ac_exeext conftest.$ac_ext
10637 fi
10638 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10639 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10640 if test $ac_cv_func_shl_load = yes; then
10641 lt_cv_dlopen="shl_load"
10642 else
10643 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10644 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10645 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 else
10648 ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-ldld $LIBS"
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h. */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656
10657 /* Override any gcc2 internal prototype to avoid an error. */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 /* We use char because int might match the return type of a gcc2
10662 builtin and then its argument prototype would still apply. */
10663 char shl_load ();
10664 int
10665 main ()
10666 {
10667 shl_load ();
10668 ;
10669 return 0;
10670 }
10671 _ACEOF
10672 rm -f conftest.$ac_objext conftest$ac_exeext
10673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10674 (eval $ac_link) 2>conftest.er1
10675 ac_status=$?
10676 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } &&
10681 { ac_try='test -z "$ac_c_werror_flag"
10682 || test ! -s conftest.err'
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10685 ac_status=$?
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; } &&
10688 { ac_try='test -s conftest$ac_exeext'
10689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690 (eval $ac_try) 2>&5
10691 ac_status=$?
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); }; }; then
10694 ac_cv_lib_dld_shl_load=yes
10695 else
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10698
10699 ac_cv_lib_dld_shl_load=no
10700 fi
10701 rm -f conftest.err conftest.$ac_objext \
10702 conftest$ac_exeext conftest.$ac_ext
10703 LIBS=$ac_check_lib_save_LIBS
10704 fi
10705 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10706 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10707 if test $ac_cv_lib_dld_shl_load = yes; then
10708 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10709 else
10710 echo "$as_me:$LINENO: checking for dlopen" >&5
10711 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10712 if test "${ac_cv_func_dlopen+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 else
10715 cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h. */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10721 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10723 #define dlopen innocuous_dlopen
10724
10725 /* System header to define __stub macros and hopefully few prototypes,
10726 which can conflict with char dlopen (); below.
10727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10728 <limits.h> exists even on freestanding compilers. */
10729
10730 #ifdef __STDC__
10731 # include <limits.h>
10732 #else
10733 # include <assert.h>
10734 #endif
10735
10736 #undef dlopen
10737
10738 /* Override any gcc2 internal prototype to avoid an error. */
10739 #ifdef __cplusplus
10740 extern "C"
10741 {
10742 #endif
10743 /* We use char because int might match the return type of a gcc2
10744 builtin and then its argument prototype would still apply. */
10745 char dlopen ();
10746 /* The GNU C library defines this for functions which it implements
10747 to always fail with ENOSYS. Some functions are actually named
10748 something starting with __ and the normal name is an alias. */
10749 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10750 choke me
10751 #else
10752 char (*f) () = dlopen;
10753 #endif
10754 #ifdef __cplusplus
10755 }
10756 #endif
10757
10758 int
10759 main ()
10760 {
10761 return f != dlopen;
10762 ;
10763 return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext conftest$ac_exeext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10768 (eval $ac_link) 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } &&
10775 { ac_try='test -z "$ac_c_werror_flag"
10776 || test ! -s conftest.err'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10779 ac_status=$?
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; } &&
10782 { ac_try='test -s conftest$ac_exeext'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
10788 ac_cv_func_dlopen=yes
10789 else
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793 ac_cv_func_dlopen=no
10794 fi
10795 rm -f conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 fi
10798 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10799 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10800 if test $ac_cv_func_dlopen = yes; then
10801 lt_cv_dlopen="dlopen"
10802 else
10803 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10804 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10805 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808 ac_check_lib_save_LIBS=$LIBS
10809 LIBS="-ldl $LIBS"
10810 cat >conftest.$ac_ext <<_ACEOF
10811 /* confdefs.h. */
10812 _ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h. */
10816
10817 /* Override any gcc2 internal prototype to avoid an error. */
10818 #ifdef __cplusplus
10819 extern "C"
10820 #endif
10821 /* We use char because int might match the return type of a gcc2
10822 builtin and then its argument prototype would still apply. */
10823 char dlopen ();
10824 int
10825 main ()
10826 {
10827 dlopen ();
10828 ;
10829 return 0;
10830 }
10831 _ACEOF
10832 rm -f conftest.$ac_objext conftest$ac_exeext
10833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10834 (eval $ac_link) 2>conftest.er1
10835 ac_status=$?
10836 grep -v '^ *+' conftest.er1 >conftest.err
10837 rm -f conftest.er1
10838 cat conftest.err >&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } &&
10841 { ac_try='test -z "$ac_c_werror_flag"
10842 || test ! -s conftest.err'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; } &&
10848 { ac_try='test -s conftest$ac_exeext'
10849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10850 (eval $ac_try) 2>&5
10851 ac_status=$?
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; }; then
10854 ac_cv_lib_dl_dlopen=yes
10855 else
10856 echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10858
10859 ac_cv_lib_dl_dlopen=no
10860 fi
10861 rm -f conftest.err conftest.$ac_objext \
10862 conftest$ac_exeext conftest.$ac_ext
10863 LIBS=$ac_check_lib_save_LIBS
10864 fi
10865 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10866 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10867 if test $ac_cv_lib_dl_dlopen = yes; then
10868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10869 else
10870 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10871 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10872 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875 ac_check_lib_save_LIBS=$LIBS
10876 LIBS="-lsvld $LIBS"
10877 cat >conftest.$ac_ext <<_ACEOF
10878 /* confdefs.h. */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883
10884 /* Override any gcc2 internal prototype to avoid an error. */
10885 #ifdef __cplusplus
10886 extern "C"
10887 #endif
10888 /* We use char because int might match the return type of a gcc2
10889 builtin and then its argument prototype would still apply. */
10890 char dlopen ();
10891 int
10892 main ()
10893 {
10894 dlopen ();
10895 ;
10896 return 0;
10897 }
10898 _ACEOF
10899 rm -f conftest.$ac_objext conftest$ac_exeext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10901 (eval $ac_link) 2>conftest.er1
10902 ac_status=$?
10903 grep -v '^ *+' conftest.er1 >conftest.err
10904 rm -f conftest.er1
10905 cat conftest.err >&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } &&
10908 { ac_try='test -z "$ac_c_werror_flag"
10909 || test ! -s conftest.err'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try='test -s conftest$ac_exeext'
10916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10918 ac_status=$?
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 ac_cv_lib_svld_dlopen=yes
10922 else
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10925
10926 ac_cv_lib_svld_dlopen=no
10927 fi
10928 rm -f conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10931 fi
10932 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10933 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10934 if test $ac_cv_lib_svld_dlopen = yes; then
10935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10936 else
10937 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10938 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10939 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 else
10942 ac_check_lib_save_LIBS=$LIBS
10943 LIBS="-ldld $LIBS"
10944 cat >conftest.$ac_ext <<_ACEOF
10945 /* confdefs.h. */
10946 _ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950
10951 /* Override any gcc2 internal prototype to avoid an error. */
10952 #ifdef __cplusplus
10953 extern "C"
10954 #endif
10955 /* We use char because int might match the return type of a gcc2
10956 builtin and then its argument prototype would still apply. */
10957 char dld_link ();
10958 int
10959 main ()
10960 {
10961 dld_link ();
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 rm -f conftest.$ac_objext conftest$ac_exeext
10967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10968 (eval $ac_link) 2>conftest.er1
10969 ac_status=$?
10970 grep -v '^ *+' conftest.er1 >conftest.err
10971 rm -f conftest.er1
10972 cat conftest.err >&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } &&
10975 { ac_try='test -z "$ac_c_werror_flag"
10976 || test ! -s conftest.err'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; } &&
10982 { ac_try='test -s conftest$ac_exeext'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }; then
10988 ac_cv_lib_dld_dld_link=yes
10989 else
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10992
10993 ac_cv_lib_dld_dld_link=no
10994 fi
10995 rm -f conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10997 LIBS=$ac_check_lib_save_LIBS
10998 fi
10999 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11000 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11001 if test $ac_cv_lib_dld_dld_link = yes; then
11002 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11003 fi
11004
11005
11006 fi
11007
11008
11009 fi
11010
11011
11012 fi
11013
11014
11015 fi
11016
11017
11018 fi
11019
11020 ;;
11021 esac
11022
11023 if test "x$lt_cv_dlopen" != xno; then
11024 enable_dlopen=yes
11025 else
11026 enable_dlopen=no
11027 fi
11028
11029 case $lt_cv_dlopen in
11030 dlopen)
11031 save_CPPFLAGS="$CPPFLAGS"
11032 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11033
11034 save_LDFLAGS="$LDFLAGS"
11035 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11036
11037 save_LIBS="$LIBS"
11038 LIBS="$lt_cv_dlopen_libs $LIBS"
11039
11040 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11041 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11042 if test "${lt_cv_dlopen_self+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045 if test "$cross_compiling" = yes; then :
11046 lt_cv_dlopen_self=cross
11047 else
11048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11049 lt_status=$lt_dlunknown
11050 cat > conftest.$ac_ext <<EOF
11051 #line 11051 "configure"
11052 #include "confdefs.h"
11053
11054 #if HAVE_DLFCN_H
11055 #include <dlfcn.h>
11056 #endif
11057
11058 #include <stdio.h>
11059
11060 #ifdef RTLD_GLOBAL
11061 # define LT_DLGLOBAL RTLD_GLOBAL
11062 #else
11063 # ifdef DL_GLOBAL
11064 # define LT_DLGLOBAL DL_GLOBAL
11065 # else
11066 # define LT_DLGLOBAL 0
11067 # endif
11068 #endif
11069
11070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11071 find out it does not work in some platform. */
11072 #ifndef LT_DLLAZY_OR_NOW
11073 # ifdef RTLD_LAZY
11074 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11075 # else
11076 # ifdef DL_LAZY
11077 # define LT_DLLAZY_OR_NOW DL_LAZY
11078 # else
11079 # ifdef RTLD_NOW
11080 # define LT_DLLAZY_OR_NOW RTLD_NOW
11081 # else
11082 # ifdef DL_NOW
11083 # define LT_DLLAZY_OR_NOW DL_NOW
11084 # else
11085 # define LT_DLLAZY_OR_NOW 0
11086 # endif
11087 # endif
11088 # endif
11089 # endif
11090 #endif
11091
11092 #ifdef __cplusplus
11093 extern "C" void exit (int);
11094 #endif
11095
11096 void fnord() { int i=42;}
11097 int main ()
11098 {
11099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11100 int status = $lt_dlunknown;
11101
11102 if (self)
11103 {
11104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11105 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11106 /* dlclose (self); */
11107 }
11108 else
11109 puts (dlerror ());
11110
11111 exit (status);
11112 }
11113 EOF
11114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11115 (eval $ac_link) 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11119 (./conftest; exit; ) >&5 2>/dev/null
11120 lt_status=$?
11121 case x$lt_status in
11122 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11123 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11124 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11125 esac
11126 else :
11127 # compilation failed
11128 lt_cv_dlopen_self=no
11129 fi
11130 fi
11131 rm -fr conftest*
11132
11133
11134 fi
11135 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11136 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11137
11138 if test "x$lt_cv_dlopen_self" = xyes; then
11139 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11140 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11141 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11142 if test "${lt_cv_dlopen_self_static+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145 if test "$cross_compiling" = yes; then :
11146 lt_cv_dlopen_self_static=cross
11147 else
11148 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11149 lt_status=$lt_dlunknown
11150 cat > conftest.$ac_ext <<EOF
11151 #line 11151 "configure"
11152 #include "confdefs.h"
11153
11154 #if HAVE_DLFCN_H
11155 #include <dlfcn.h>
11156 #endif
11157
11158 #include <stdio.h>
11159
11160 #ifdef RTLD_GLOBAL
11161 # define LT_DLGLOBAL RTLD_GLOBAL
11162 #else
11163 # ifdef DL_GLOBAL
11164 # define LT_DLGLOBAL DL_GLOBAL
11165 # else
11166 # define LT_DLGLOBAL 0
11167 # endif
11168 #endif
11169
11170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11171 find out it does not work in some platform. */
11172 #ifndef LT_DLLAZY_OR_NOW
11173 # ifdef RTLD_LAZY
11174 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11175 # else
11176 # ifdef DL_LAZY
11177 # define LT_DLLAZY_OR_NOW DL_LAZY
11178 # else
11179 # ifdef RTLD_NOW
11180 # define LT_DLLAZY_OR_NOW RTLD_NOW
11181 # else
11182 # ifdef DL_NOW
11183 # define LT_DLLAZY_OR_NOW DL_NOW
11184 # else
11185 # define LT_DLLAZY_OR_NOW 0
11186 # endif
11187 # endif
11188 # endif
11189 # endif
11190 #endif
11191
11192 #ifdef __cplusplus
11193 extern "C" void exit (int);
11194 #endif
11195
11196 void fnord() { int i=42;}
11197 int main ()
11198 {
11199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11200 int status = $lt_dlunknown;
11201
11202 if (self)
11203 {
11204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11205 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11206 /* dlclose (self); */
11207 }
11208 else
11209 puts (dlerror ());
11210
11211 exit (status);
11212 }
11213 EOF
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215 (eval $ac_link) 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11219 (./conftest; exit; ) >&5 2>/dev/null
11220 lt_status=$?
11221 case x$lt_status in
11222 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11223 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11224 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11225 esac
11226 else :
11227 # compilation failed
11228 lt_cv_dlopen_self_static=no
11229 fi
11230 fi
11231 rm -fr conftest*
11232
11233
11234 fi
11235 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11236 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11237 fi
11238
11239 CPPFLAGS="$save_CPPFLAGS"
11240 LDFLAGS="$save_LDFLAGS"
11241 LIBS="$save_LIBS"
11242 ;;
11243 esac
11244
11245 case $lt_cv_dlopen_self in
11246 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11247 *) enable_dlopen_self=unknown ;;
11248 esac
11249
11250 case $lt_cv_dlopen_self_static in
11251 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11252 *) enable_dlopen_self_static=unknown ;;
11253 esac
11254 fi
11255
11256
11257 # Report which library types will actually be built
11258 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11259 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11260 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11261 echo "${ECHO_T}$can_build_shared" >&6
11262
11263 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11264 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11265 test "$can_build_shared" = "no" && enable_shared=no
11266
11267 # On AIX, shared libraries and static libraries use the same namespace, and
11268 # are all built from PIC.
11269 case $host_os in
11270 aix3*)
11271 test "$enable_shared" = yes && enable_static=no
11272 if test -n "$RANLIB"; then
11273 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11274 postinstall_cmds='$RANLIB $lib'
11275 fi
11276 ;;
11277
11278 aix4* | aix5*)
11279 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11280 test "$enable_shared" = yes && enable_static=no
11281 fi
11282 ;;
11283 esac
11284 echo "$as_me:$LINENO: result: $enable_shared" >&5
11285 echo "${ECHO_T}$enable_shared" >&6
11286
11287 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11288 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11289 # Make sure either enable_shared or enable_static is yes.
11290 test "$enable_shared" = yes || enable_static=yes
11291 echo "$as_me:$LINENO: result: $enable_static" >&5
11292 echo "${ECHO_T}$enable_static" >&6
11293
11294 # The else clause should only fire when bootstrapping the
11295 # libtool distribution, otherwise you forgot to ship ltmain.sh
11296 # with your package, and you will get complaints that there are
11297 # no rules to generate ltmain.sh.
11298 if test -f "$ltmain"; then
11299 # See if we are running on zsh, and set the options which allow our commands through
11300 # without removal of \ escapes.
11301 if test -n "${ZSH_VERSION+set}" ; then
11302 setopt NO_GLOB_SUBST
11303 fi
11304 # Now quote all the things that may contain metacharacters while being
11305 # careful not to overquote the AC_SUBSTed values. We take copies of the
11306 # variables and quote the copies for generation of the libtool script.
11307 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11308 SED SHELL STRIP \
11309 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11310 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11311 deplibs_check_method reload_flag reload_cmds need_locks \
11312 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11313 lt_cv_sys_global_symbol_to_c_name_address \
11314 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11315 old_postinstall_cmds old_postuninstall_cmds \
11316 compiler \
11317 CC \
11318 LD \
11319 lt_prog_compiler_wl \
11320 lt_prog_compiler_pic \
11321 lt_prog_compiler_static \
11322 lt_prog_compiler_no_builtin_flag \
11323 export_dynamic_flag_spec \
11324 thread_safe_flag_spec \
11325 whole_archive_flag_spec \
11326 enable_shared_with_static_runtimes \
11327 old_archive_cmds \
11328 old_archive_from_new_cmds \
11329 predep_objects \
11330 postdep_objects \
11331 predeps \
11332 postdeps \
11333 compiler_lib_search_path \
11334 archive_cmds \
11335 archive_expsym_cmds \
11336 postinstall_cmds \
11337 postuninstall_cmds \
11338 old_archive_from_expsyms_cmds \
11339 allow_undefined_flag \
11340 no_undefined_flag \
11341 export_symbols_cmds \
11342 hardcode_libdir_flag_spec \
11343 hardcode_libdir_flag_spec_ld \
11344 hardcode_libdir_separator \
11345 hardcode_automatic \
11346 module_cmds \
11347 module_expsym_cmds \
11348 lt_cv_prog_compiler_c_o \
11349 exclude_expsyms \
11350 include_expsyms; do
11351
11352 case $var in
11353 old_archive_cmds | \
11354 old_archive_from_new_cmds | \
11355 archive_cmds | \
11356 archive_expsym_cmds | \
11357 module_cmds | \
11358 module_expsym_cmds | \
11359 old_archive_from_expsyms_cmds | \
11360 export_symbols_cmds | \
11361 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11362 postinstall_cmds | postuninstall_cmds | \
11363 old_postinstall_cmds | old_postuninstall_cmds | \
11364 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11365 # Double-quote double-evaled strings.
11366 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11367 ;;
11368 *)
11369 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11370 ;;
11371 esac
11372 done
11373
11374 case $lt_echo in
11375 *'\$0 --fallback-echo"')
11376 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11377 ;;
11378 esac
11379
11380 cfgfile="${ofile}T"
11381 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11382 $rm -f "$cfgfile"
11383 { echo "$as_me:$LINENO: creating $ofile" >&5
11384 echo "$as_me: creating $ofile" >&6;}
11385
11386 cat <<__EOF__ >> "$cfgfile"
11387 #! $SHELL
11388
11389 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11390 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11391 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11392 #
11393 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11394 # Free Software Foundation, Inc.
11395 #
11396 # This file is part of GNU Libtool:
11397 # Originally by Gordon Matzigkeit <[email protected]>, 1996
11398 #
11399 # This program is free software; you can redistribute it and/or modify
11400 # it under the terms of the GNU General Public License as published by
11401 # the Free Software Foundation; either version 2 of the License, or
11402 # (at your option) any later version.
11403 #
11404 # This program is distributed in the hope that it will be useful, but
11405 # WITHOUT ANY WARRANTY; without even the implied warranty of
11406 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11407 # General Public License for more details.
11408 #
11409 # You should have received a copy of the GNU General Public License
11410 # along with this program; if not, write to the Free Software
11411 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11412 #
11413 # As a special exception to the GNU General Public License, if you
11414 # distribute this file as part of a program that contains a
11415 # configuration script generated by Autoconf, you may include it under
11416 # the same distribution terms that you use for the rest of that program.
11417
11418 # A sed program that does not truncate output.
11419 SED=$lt_SED
11420
11421 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11422 Xsed="$SED -e 1s/^X//"
11423
11424 # The HP-UX ksh and POSIX shell print the target directory to stdout
11425 # if CDPATH is set.
11426 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11427
11428 # The names of the tagged configurations supported by this script.
11429 available_tags=
11430
11431 # ### BEGIN LIBTOOL CONFIG
11432
11433 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11434
11435 # Shell to use when invoking shell scripts.
11436 SHELL=$lt_SHELL
11437
11438 # Whether or not to build shared libraries.
11439 build_libtool_libs=$enable_shared
11440
11441 # Whether or not to build static libraries.
11442 build_old_libs=$enable_static
11443
11444 # Whether or not to add -lc for building shared libraries.
11445 build_libtool_need_lc=$archive_cmds_need_lc
11446
11447 # Whether or not to disallow shared libs when runtime libs are static
11448 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11449
11450 # Whether or not to optimize for fast installation.
11451 fast_install=$enable_fast_install
11452
11453 # The host system.
11454 host_alias=$host_alias
11455 host=$host
11456 host_os=$host_os
11457
11458 # The build system.
11459 build_alias=$build_alias
11460 build=$build
11461 build_os=$build_os
11462
11463 # An echo program that does not interpret backslashes.
11464 echo=$lt_echo
11465
11466 # The archiver.
11467 AR=$lt_AR
11468 AR_FLAGS=$lt_AR_FLAGS
11469
11470 # A C compiler.
11471 LTCC=$lt_LTCC
11472
11473 # LTCC compiler flags.
11474 LTCFLAGS=$lt_LTCFLAGS
11475
11476 # A language-specific compiler.
11477 CC=$lt_compiler
11478
11479 # Is the compiler the GNU C compiler?
11480 with_gcc=$GCC
11481
11482 # An ERE matcher.
11483 EGREP=$lt_EGREP
11484
11485 # The linker used to build libraries.
11486 LD=$lt_LD
11487
11488 # Whether we need hard or soft links.
11489 LN_S=$lt_LN_S
11490
11491 # A BSD-compatible nm program.
11492 NM=$lt_NM
11493
11494 # A symbol stripping program
11495 STRIP=$lt_STRIP
11496
11497 # Used to examine libraries when file_magic_cmd begins "file"
11498 MAGIC_CMD=$MAGIC_CMD
11499
11500 # Used on cygwin: DLL creation program.
11501 DLLTOOL="$DLLTOOL"
11502
11503 # Used on cygwin: object dumper.
11504 OBJDUMP="$OBJDUMP"
11505
11506 # Used on cygwin: assembler.
11507 AS="$AS"
11508
11509 # The name of the directory that contains temporary libtool files.
11510 objdir=$objdir
11511
11512 # How to create reloadable object files.
11513 reload_flag=$lt_reload_flag
11514 reload_cmds=$lt_reload_cmds
11515
11516 # How to pass a linker flag through the compiler.
11517 wl=$lt_lt_prog_compiler_wl
11518
11519 # Object file suffix (normally "o").
11520 objext="$ac_objext"
11521
11522 # Old archive suffix (normally "a").
11523 libext="$libext"
11524
11525 # Shared library suffix (normally ".so").
11526 shrext_cmds='$shrext_cmds'
11527
11528 # Executable file suffix (normally "").
11529 exeext="$exeext"
11530
11531 # Additional compiler flags for building library objects.
11532 pic_flag=$lt_lt_prog_compiler_pic
11533 pic_mode=$pic_mode
11534
11535 # What is the maximum length of a command?
11536 max_cmd_len=$lt_cv_sys_max_cmd_len
11537
11538 # Does compiler simultaneously support -c and -o options?
11539 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11540
11541 # Must we lock files when doing compilation?
11542 need_locks=$lt_need_locks
11543
11544 # Do we need the lib prefix for modules?
11545 need_lib_prefix=$need_lib_prefix
11546
11547 # Do we need a version for libraries?
11548 need_version=$need_version
11549
11550 # Whether dlopen is supported.
11551 dlopen_support=$enable_dlopen
11552
11553 # Whether dlopen of programs is supported.
11554 dlopen_self=$enable_dlopen_self
11555
11556 # Whether dlopen of statically linked programs is supported.
11557 dlopen_self_static=$enable_dlopen_self_static
11558
11559 # Compiler flag to prevent dynamic linking.
11560 link_static_flag=$lt_lt_prog_compiler_static
11561
11562 # Compiler flag to turn off builtin functions.
11563 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11564
11565 # Compiler flag to allow reflexive dlopens.
11566 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11567
11568 # Compiler flag to generate shared objects directly from archives.
11569 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11570
11571 # Compiler flag to generate thread-safe objects.
11572 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11573
11574 # Library versioning type.
11575 version_type=$version_type
11576
11577 # Format of library name prefix.
11578 libname_spec=$lt_libname_spec
11579
11580 # List of archive names. First name is the real one, the rest are links.
11581 # The last name is the one that the linker finds with -lNAME.
11582 library_names_spec=$lt_library_names_spec
11583
11584 # The coded name of the library, if different from the real name.
11585 soname_spec=$lt_soname_spec
11586
11587 # Commands used to build and install an old-style archive.
11588 RANLIB=$lt_RANLIB
11589 old_archive_cmds=$lt_old_archive_cmds
11590 old_postinstall_cmds=$lt_old_postinstall_cmds
11591 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11592
11593 # Create an old-style archive from a shared archive.
11594 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11595
11596 # Create a temporary old-style archive to link instead of a shared archive.
11597 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11598
11599 # Commands used to build and install a shared archive.
11600 archive_cmds=$lt_archive_cmds
11601 archive_expsym_cmds=$lt_archive_expsym_cmds
11602 postinstall_cmds=$lt_postinstall_cmds
11603 postuninstall_cmds=$lt_postuninstall_cmds
11604
11605 # Commands used to build a loadable module (assumed same as above if empty)
11606 module_cmds=$lt_module_cmds
11607 module_expsym_cmds=$lt_module_expsym_cmds
11608
11609 # Commands to strip libraries.
11610 old_striplib=$lt_old_striplib
11611 striplib=$lt_striplib
11612
11613 # Dependencies to place before the objects being linked to create a
11614 # shared library.
11615 predep_objects=$lt_predep_objects
11616
11617 # Dependencies to place after the objects being linked to create a
11618 # shared library.
11619 postdep_objects=$lt_postdep_objects
11620
11621 # Dependencies to place before the objects being linked to create a
11622 # shared library.
11623 predeps=$lt_predeps
11624
11625 # Dependencies to place after the objects being linked to create a
11626 # shared library.
11627 postdeps=$lt_postdeps
11628
11629 # The library search path used internally by the compiler when linking
11630 # a shared library.
11631 compiler_lib_search_path=$lt_compiler_lib_search_path
11632
11633 # Method to check whether dependent libraries are shared objects.
11634 deplibs_check_method=$lt_deplibs_check_method
11635
11636 # Command to use when deplibs_check_method == file_magic.
11637 file_magic_cmd=$lt_file_magic_cmd
11638
11639 # Flag that allows shared libraries with undefined symbols to be built.
11640 allow_undefined_flag=$lt_allow_undefined_flag
11641
11642 # Flag that forces no undefined symbols.
11643 no_undefined_flag=$lt_no_undefined_flag
11644
11645 # Commands used to finish a libtool library installation in a directory.
11646 finish_cmds=$lt_finish_cmds
11647
11648 # Same as above, but a single script fragment to be evaled but not shown.
11649 finish_eval=$lt_finish_eval
11650
11651 # Take the output of nm and produce a listing of raw symbols and C names.
11652 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11653
11654 # Transform the output of nm in a proper C declaration
11655 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11656
11657 # Transform the output of nm in a C name address pair
11658 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11659
11660 # This is the shared library runtime path variable.
11661 runpath_var=$runpath_var
11662
11663 # This is the shared library path variable.
11664 shlibpath_var=$shlibpath_var
11665
11666 # Is shlibpath searched before the hard-coded library search path?
11667 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11668
11669 # How to hardcode a shared library path into an executable.
11670 hardcode_action=$hardcode_action
11671
11672 # Whether we should hardcode library paths into libraries.
11673 hardcode_into_libs=$hardcode_into_libs
11674
11675 # Flag to hardcode \$libdir into a binary during linking.
11676 # This must work even if \$libdir does not exist.
11677 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11678
11679 # If ld is used when linking, flag to hardcode \$libdir into
11680 # a binary during linking. This must work even if \$libdir does
11681 # not exist.
11682 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11683
11684 # Whether we need a single -rpath flag with a separated argument.
11685 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11686
11687 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11688 # resulting binary.
11689 hardcode_direct=$hardcode_direct
11690
11691 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11692 # resulting binary.
11693 hardcode_minus_L=$hardcode_minus_L
11694
11695 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11696 # the resulting binary.
11697 hardcode_shlibpath_var=$hardcode_shlibpath_var
11698
11699 # Set to yes if building a shared library automatically hardcodes DIR into the library
11700 # and all subsequent libraries and executables linked against it.
11701 hardcode_automatic=$hardcode_automatic
11702
11703 # Variables whose values should be saved in libtool wrapper scripts and
11704 # restored at relink time.
11705 variables_saved_for_relink="$variables_saved_for_relink"
11706
11707 # Whether libtool must link a program against all its dependency libraries.
11708 link_all_deplibs=$link_all_deplibs
11709
11710 # Compile-time system search path for libraries
11711 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11712
11713 # Run-time system search path for libraries
11714 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11715
11716 # Fix the shell variable \$srcfile for the compiler.
11717 fix_srcfile_path="$fix_srcfile_path"
11718
11719 # Set to yes if exported symbols are required.
11720 always_export_symbols=$always_export_symbols
11721
11722 # The commands to list exported symbols.
11723 export_symbols_cmds=$lt_export_symbols_cmds
11724
11725 # The commands to extract the exported symbol list from a shared archive.
11726 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11727
11728 # Symbols that should not be listed in the preloaded symbols.
11729 exclude_expsyms=$lt_exclude_expsyms
11730
11731 # Symbols that must always be exported.
11732 include_expsyms=$lt_include_expsyms
11733
11734 # ### END LIBTOOL CONFIG
11735
11736 __EOF__
11737
11738
11739 case $host_os in
11740 aix3*)
11741 cat <<\EOF >> "$cfgfile"
11742
11743 # AIX sometimes has problems with the GCC collect2 program. For some
11744 # reason, if we set the COLLECT_NAMES environment variable, the problems
11745 # vanish in a puff of smoke.
11746 if test "X${COLLECT_NAMES+set}" != Xset; then
11747 COLLECT_NAMES=
11748 export COLLECT_NAMES
11749 fi
11750 EOF
11751 ;;
11752 esac
11753
11754 # We use sed instead of cat because bash on DJGPP gets confused if
11755 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11756 # text mode, it properly converts lines to CR/LF. This bash problem
11757 # is reportedly fixed, but why not run on old versions too?
11758 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11759
11760 mv -f "$cfgfile" "$ofile" || \
11761 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11762 chmod +x "$ofile"
11763
11764 else
11765 # If there is no Makefile yet, we rely on a make rule to execute
11766 # `config.status --recheck' to rerun these tests and create the
11767 # libtool script then.
11768 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11769 if test -f "$ltmain_in"; then
11770 test -f Makefile && make "$ltmain"
11771 fi
11772 fi
11773
11774
11775 ac_ext=c
11776 ac_cpp='$CPP $CPPFLAGS'
11777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11780
11781 CC="$lt_save_CC"
11782
11783
11784 # Check whether --with-tags or --without-tags was given.
11785 if test "${with_tags+set}" = set; then
11786 withval="$with_tags"
11787 tagnames="$withval"
11788 fi;
11789
11790 if test -f "$ltmain" && test -n "$tagnames"; then
11791 if test ! -f "${ofile}"; then
11792 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11793 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11794 fi
11795
11796 if test -z "$LTCC"; then
11797 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11798 if test -z "$LTCC"; then
11799 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11800 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11801 else
11802 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11803 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11804 fi
11805 fi
11806 if test -z "$LTCFLAGS"; then
11807 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11808 fi
11809
11810 # Extract list of available tagged configurations in $ofile.
11811 # Note that this assumes the entire list is on one line.
11812 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11813
11814 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11815 for tagname in $tagnames; do
11816 IFS="$lt_save_ifs"
11817 # Check whether tagname contains only valid characters
11818 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11819 "") ;;
11820 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11821 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11822 { (exit 1); exit 1; }; }
11823 ;;
11824 esac
11825
11826 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11827 then
11828 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11829 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11830 { (exit 1); exit 1; }; }
11831 fi
11832
11833 # Update the list of available tags.
11834 if test -n "$tagname"; then
11835 echo appending configuration tag \"$tagname\" to $ofile
11836
11837 case $tagname in
11838 CXX)
11839 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11840 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11841 (test "X$CXX" != "Xg++"))) ; then
11842 ac_ext=cc
11843 ac_cpp='$CXXCPP $CPPFLAGS'
11844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11847
11848
11849
11850
11851 archive_cmds_need_lc_CXX=no
11852 allow_undefined_flag_CXX=
11853 always_export_symbols_CXX=no
11854 archive_expsym_cmds_CXX=
11855 export_dynamic_flag_spec_CXX=
11856 hardcode_direct_CXX=no
11857 hardcode_libdir_flag_spec_CXX=
11858 hardcode_libdir_flag_spec_ld_CXX=
11859 hardcode_libdir_separator_CXX=
11860 hardcode_minus_L_CXX=no
11861 hardcode_shlibpath_var_CXX=unsupported
11862 hardcode_automatic_CXX=no
11863 module_cmds_CXX=
11864 module_expsym_cmds_CXX=
11865 link_all_deplibs_CXX=unknown
11866 old_archive_cmds_CXX=$old_archive_cmds
11867 no_undefined_flag_CXX=
11868 whole_archive_flag_spec_CXX=
11869 enable_shared_with_static_runtimes_CXX=no
11870
11871 # Dependencies to place before and after the object being linked:
11872 predep_objects_CXX=
11873 postdep_objects_CXX=
11874 predeps_CXX=
11875 postdeps_CXX=
11876 compiler_lib_search_path_CXX=
11877
11878 # Source file extension for C++ test sources.
11879 ac_ext=cpp
11880
11881 # Object file extension for compiled C++ test sources.
11882 objext=o
11883 objext_CXX=$objext
11884
11885 # Code to be used in simple compile tests
11886 lt_simple_compile_test_code="int some_variable = 0;\n"
11887
11888 # Code to be used in simple link tests
11889 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11890
11891 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11892
11893 # If no C compiler was specified, use CC.
11894 LTCC=${LTCC-"$CC"}
11895
11896 # If no C compiler flags were specified, use CFLAGS.
11897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11898
11899 # Allow CC to be a program name with arguments.
11900 compiler=$CC
11901
11902
11903 # save warnings/boilerplate of simple test code
11904 ac_outfile=conftest.$ac_objext
11905 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11906 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11907 _lt_compiler_boilerplate=`cat conftest.err`
11908 $rm conftest*
11909
11910 ac_outfile=conftest.$ac_objext
11911 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11912 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11913 _lt_linker_boilerplate=`cat conftest.err`
11914 $rm conftest*
11915
11916
11917 # Allow CC to be a program name with arguments.
11918 lt_save_CC=$CC
11919 lt_save_LD=$LD
11920 lt_save_GCC=$GCC
11921 GCC=$GXX
11922 lt_save_with_gnu_ld=$with_gnu_ld
11923 lt_save_path_LD=$lt_cv_path_LD
11924 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11925 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11926 else
11927 $as_unset lt_cv_prog_gnu_ld
11928 fi
11929 if test -n "${lt_cv_path_LDCXX+set}"; then
11930 lt_cv_path_LD=$lt_cv_path_LDCXX
11931 else
11932 $as_unset lt_cv_path_LD
11933 fi
11934 test -z "${LDCXX+set}" || LD=$LDCXX
11935 CC=${CXX-"c++"}
11936 compiler=$CC
11937 compiler_CXX=$CC
11938 for cc_temp in $compiler""; do
11939 case $cc_temp in
11940 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11941 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11942 \-*) ;;
11943 *) break;;
11944 esac
11945 done
11946 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11947
11948
11949 # We don't want -fno-exception wen compiling C++ code, so set the
11950 # no_builtin_flag separately
11951 if test "$GXX" = yes; then
11952 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11953 else
11954 lt_prog_compiler_no_builtin_flag_CXX=
11955 fi
11956
11957 if test "$GXX" = yes; then
11958 # Set up default GNU C++ configuration
11959
11960
11961 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11962 if test "${with_gnu_ld+set}" = set; then
11963 withval="$with_gnu_ld"
11964 test "$withval" = no || with_gnu_ld=yes
11965 else
11966 with_gnu_ld=no
11967 fi;
11968 ac_prog=ld
11969 if test "$GCC" = yes; then
11970 # Check if gcc -print-prog-name=ld gives a path.
11971 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11972 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11973 case $host in
11974 *-*-mingw*)
11975 # gcc leaves a trailing carriage return which upsets mingw
11976 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11977 *)
11978 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11979 esac
11980 case $ac_prog in
11981 # Accept absolute paths.
11982 [\\/]* | ?:[\\/]*)
11983 re_direlt='/[^/][^/]*/\.\./'
11984 # Canonicalize the pathname of ld
11985 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11986 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11987 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11988 done
11989 test -z "$LD" && LD="$ac_prog"
11990 ;;
11991 "")
11992 # If it fails, then pretend we aren't using GCC.
11993 ac_prog=ld
11994 ;;
11995 *)
11996 # If it is relative, then search for the first ld in PATH.
11997 with_gnu_ld=unknown
11998 ;;
11999 esac
12000 elif test "$with_gnu_ld" = yes; then
12001 echo "$as_me:$LINENO: checking for GNU ld" >&5
12002 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12003 else
12004 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12005 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12006 fi
12007 if test "${lt_cv_path_LD+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010 if test -z "$LD"; then
12011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12012 for ac_dir in $PATH; do
12013 IFS="$lt_save_ifs"
12014 test -z "$ac_dir" && ac_dir=.
12015 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12016 lt_cv_path_LD="$ac_dir/$ac_prog"
12017 # Check to see if the program is GNU ld. I'd rather use --version,
12018 # but apparently some variants of GNU ld only accept -v.
12019 # Break only if it was the GNU/non-GNU ld that we prefer.
12020 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12021 *GNU* | *'with BFD'*)
12022 test "$with_gnu_ld" != no && break
12023 ;;
12024 *)
12025 test "$with_gnu_ld" != yes && break
12026 ;;
12027 esac
12028 fi
12029 done
12030 IFS="$lt_save_ifs"
12031 else
12032 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12033 fi
12034 fi
12035
12036 LD="$lt_cv_path_LD"
12037 if test -n "$LD"; then
12038 echo "$as_me:$LINENO: result: $LD" >&5
12039 echo "${ECHO_T}$LD" >&6
12040 else
12041 echo "$as_me:$LINENO: result: no" >&5
12042 echo "${ECHO_T}no" >&6
12043 fi
12044 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12045 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12046 { (exit 1); exit 1; }; }
12047 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12048 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12049 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12053 case `$LD -v 2>&1 </dev/null` in
12054 *GNU* | *'with BFD'*)
12055 lt_cv_prog_gnu_ld=yes
12056 ;;
12057 *)
12058 lt_cv_prog_gnu_ld=no
12059 ;;
12060 esac
12061 fi
12062 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12063 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12064 with_gnu_ld=$lt_cv_prog_gnu_ld
12065
12066
12067
12068 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12069 # archiving commands below assume that GNU ld is being used.
12070 if test "$with_gnu_ld" = yes; then
12071 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12072 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'
12073
12074 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12075 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12076
12077 # If archive_cmds runs LD, not CC, wlarc should be empty
12078 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12079 # investigate it a little bit more. (MM)
12080 wlarc='${wl}'
12081
12082 # ancient GNU ld didn't support --whole-archive et. al.
12083 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12084 grep 'no-whole-archive' > /dev/null; then
12085 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12086 else
12087 whole_archive_flag_spec_CXX=
12088 fi
12089 else
12090 with_gnu_ld=no
12091 wlarc=
12092
12093 # A generic and very simple default shared library creation
12094 # command for GNU C++ for the case where it uses the native
12095 # linker, instead of GNU ld. If possible, this setting should
12096 # overridden to take advantage of the native linker features on
12097 # the platform it is being used on.
12098 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12099 fi
12100
12101 # Commands to make compiler produce verbose output that lists
12102 # what "hidden" libraries, object files and flags are used when
12103 # linking a shared library.
12104 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12105
12106 else
12107 GXX=no
12108 with_gnu_ld=no
12109 wlarc=
12110 fi
12111
12112 # PORTME: fill in a description of your system's C++ link characteristics
12113 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12114 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12115 ld_shlibs_CXX=yes
12116 case $host_os in
12117 aix3*)
12118 # FIXME: insert proper C++ library support
12119 ld_shlibs_CXX=no
12120 ;;
12121 aix4* | aix5*)
12122 if test "$host_cpu" = ia64; then
12123 # On IA64, the linker does run time linking by default, so we don't
12124 # have to do anything special.
12125 aix_use_runtimelinking=no
12126 exp_sym_flag='-Bexport'
12127 no_entry_flag=""
12128 else
12129 aix_use_runtimelinking=no
12130
12131 # Test if we are trying to use run time linking or normal
12132 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12133 # need to do runtime linking.
12134 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12135 for ld_flag in $LDFLAGS; do
12136 case $ld_flag in
12137 *-brtl*)
12138 aix_use_runtimelinking=yes
12139 break
12140 ;;
12141 esac
12142 done
12143 ;;
12144 esac
12145
12146 exp_sym_flag='-bexport'
12147 no_entry_flag='-bnoentry'
12148 fi
12149
12150 # When large executables or shared objects are built, AIX ld can
12151 # have problems creating the table of contents. If linking a library
12152 # or program results in "error TOC overflow" add -mminimal-toc to
12153 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12154 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12155
12156 archive_cmds_CXX=''
12157 hardcode_direct_CXX=yes
12158 hardcode_libdir_separator_CXX=':'
12159 link_all_deplibs_CXX=yes
12160
12161 if test "$GXX" = yes; then
12162 case $host_os in aix4.[012]|aix4.[012].*)
12163 # We only want to do this on AIX 4.2 and lower, the check
12164 # below for broken collect2 doesn't work under 4.3+
12165 collect2name=`${CC} -print-prog-name=collect2`
12166 if test -f "$collect2name" && \
12167 strings "$collect2name" | grep resolve_lib_name >/dev/null
12168 then
12169 # We have reworked collect2
12170 hardcode_direct_CXX=yes
12171 else
12172 # We have old collect2
12173 hardcode_direct_CXX=unsupported
12174 # It fails to find uninstalled libraries when the uninstalled
12175 # path is not listed in the libpath. Setting hardcode_minus_L
12176 # to unsupported forces relinking
12177 hardcode_minus_L_CXX=yes
12178 hardcode_libdir_flag_spec_CXX='-L$libdir'
12179 hardcode_libdir_separator_CXX=
12180 fi
12181 ;;
12182 esac
12183 shared_flag='-shared'
12184 if test "$aix_use_runtimelinking" = yes; then
12185 shared_flag="$shared_flag "'${wl}-G'
12186 fi
12187 else
12188 # not using gcc
12189 if test "$host_cpu" = ia64; then
12190 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12191 # chokes on -Wl,-G. The following line is correct:
12192 shared_flag='-G'
12193 else
12194 if test "$aix_use_runtimelinking" = yes; then
12195 shared_flag='${wl}-G'
12196 else
12197 shared_flag='${wl}-bM:SRE'
12198 fi
12199 fi
12200 fi
12201
12202 # It seems that -bexpall does not export symbols beginning with
12203 # underscore (_), so it is better to generate a list of symbols to export.
12204 always_export_symbols_CXX=yes
12205 if test "$aix_use_runtimelinking" = yes; then
12206 # Warning - without using the other runtime loading flags (-brtl),
12207 # -berok will link without error, but may produce a broken library.
12208 allow_undefined_flag_CXX='-berok'
12209 # Determine the default libpath from the value encoded in an empty executable.
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216
12217 int
12218 main ()
12219 {
12220
12221 ;
12222 return 0;
12223 }
12224 _ACEOF
12225 rm -f conftest.$ac_objext conftest$ac_exeext
12226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12227 (eval $ac_link) 2>conftest.er1
12228 ac_status=$?
12229 grep -v '^ *+' conftest.er1 >conftest.err
12230 rm -f conftest.er1
12231 cat conftest.err >&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } &&
12234 { ac_try='test -z "$ac_cxx_werror_flag"
12235 || test ! -s conftest.err'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; } &&
12241 { ac_try='test -s conftest$ac_exeext'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12244 ac_status=$?
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247
12248 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12249 }'`
12250 # Check for a 64-bit object if we didn't find anything.
12251 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; }
12252 }'`; fi
12253 else
12254 echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12256
12257 fi
12258 rm -f conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext conftest.$ac_ext
12260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12261
12262 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12263
12264 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"
12265 else
12266 if test "$host_cpu" = ia64; then
12267 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12268 allow_undefined_flag_CXX="-z nodefs"
12269 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"
12270 else
12271 # Determine the default libpath from the value encoded in an empty executable.
12272 cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h. */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278
12279 int
12280 main ()
12281 {
12282
12283 ;
12284 return 0;
12285 }
12286 _ACEOF
12287 rm -f conftest.$ac_objext conftest$ac_exeext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12289 (eval $ac_link) 2>conftest.er1
12290 ac_status=$?
12291 grep -v '^ *+' conftest.er1 >conftest.err
12292 rm -f conftest.er1
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
12296 { ac_try='test -z "$ac_cxx_werror_flag"
12297 || test ! -s conftest.err'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try='test -s conftest$ac_exeext'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309
12310 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12311 }'`
12312 # Check for a 64-bit object if we didn't find anything.
12313 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; }
12314 }'`; fi
12315 else
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12318
12319 fi
12320 rm -f conftest.err conftest.$ac_objext \
12321 conftest$ac_exeext conftest.$ac_ext
12322 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12323
12324 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12325 # Warning - without using the other run time loading flags,
12326 # -berok will link without error, but may produce a broken library.
12327 no_undefined_flag_CXX=' ${wl}-bernotok'
12328 allow_undefined_flag_CXX=' ${wl}-berok'
12329 # Exported symbols can be pulled into shared objects from archives
12330 whole_archive_flag_spec_CXX='$convenience'
12331 archive_cmds_need_lc_CXX=yes
12332 # This is similar to how AIX traditionally builds its shared libraries.
12333 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'
12334 fi
12335 fi
12336 ;;
12337
12338 beos*)
12339 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12340 allow_undefined_flag_CXX=unsupported
12341 # Joseph Beckenbach <[email protected]> says some releases of gcc
12342 # support --undefined. This deserves some investigation. FIXME
12343 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12344 else
12345 ld_shlibs_CXX=no
12346 fi
12347 ;;
12348
12349 chorus*)
12350 case $cc_basename in
12351 *)
12352 # FIXME: insert proper C++ library support
12353 ld_shlibs_CXX=no
12354 ;;
12355 esac
12356 ;;
12357
12358 cygwin* | mingw* | pw32*)
12359 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12360 # as there is no search path for DLLs.
12361 hardcode_libdir_flag_spec_CXX='-L$libdir'
12362 allow_undefined_flag_CXX=unsupported
12363 always_export_symbols_CXX=no
12364 enable_shared_with_static_runtimes_CXX=yes
12365
12366 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12367 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'
12368 # If the export-symbols file already is a .def file (1st line
12369 # is EXPORTS), use it as is; otherwise, prepend...
12370 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12371 cp $export_symbols $output_objdir/$soname.def;
12372 else
12373 echo EXPORTS > $output_objdir/$soname.def;
12374 cat $export_symbols >> $output_objdir/$soname.def;
12375 fi~
12376 $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'
12377 else
12378 ld_shlibs_CXX=no
12379 fi
12380 ;;
12381 darwin* | rhapsody*)
12382 case $host_os in
12383 rhapsody* | darwin1.[012])
12384 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12385 ;;
12386 *) # Darwin 1.3 on
12387 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12388 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12389 else
12390 case ${MACOSX_DEPLOYMENT_TARGET} in
12391 10.[012])
12392 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12393 ;;
12394 10.*)
12395 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12396 ;;
12397 esac
12398 fi
12399 ;;
12400 esac
12401 archive_cmds_need_lc_CXX=no
12402 hardcode_direct_CXX=no
12403 hardcode_automatic_CXX=yes
12404 hardcode_shlibpath_var_CXX=unsupported
12405 whole_archive_flag_spec_CXX=''
12406 link_all_deplibs_CXX=yes
12407
12408 if test "$GXX" = yes ; then
12409 lt_int_apple_cc_single_mod=no
12410 output_verbose_link_cmd='echo'
12411 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12412 lt_int_apple_cc_single_mod=yes
12413 fi
12414 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12415 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12416 else
12417 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'
12418 fi
12419 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12420 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12421 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12422 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}'
12423 else
12424 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}'
12425 fi
12426 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}'
12427 else
12428 case $cc_basename in
12429 xlc*)
12430 output_verbose_link_cmd='echo'
12431 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'
12432 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12434 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}'
12435 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}'
12436 ;;
12437 *)
12438 ld_shlibs_CXX=no
12439 ;;
12440 esac
12441 fi
12442 ;;
12443
12444 dgux*)
12445 case $cc_basename in
12446 ec++*)
12447 # FIXME: insert proper C++ library support
12448 ld_shlibs_CXX=no
12449 ;;
12450 ghcx*)
12451 # Green Hills C++ Compiler
12452 # FIXME: insert proper C++ library support
12453 ld_shlibs_CXX=no
12454 ;;
12455 *)
12456 # FIXME: insert proper C++ library support
12457 ld_shlibs_CXX=no
12458 ;;
12459 esac
12460 ;;
12461 freebsd[12]*)
12462 # C++ shared libraries reported to be fairly broken before switch to ELF
12463 ld_shlibs_CXX=no
12464 ;;
12465 freebsd-elf*)
12466 archive_cmds_need_lc_CXX=no
12467 ;;
12468 freebsd* | kfreebsd*-gnu | dragonfly*)
12469 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12470 # conventions
12471 ld_shlibs_CXX=yes
12472 ;;
12473 gnu*)
12474 ;;
12475 hpux9*)
12476 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12477 hardcode_libdir_separator_CXX=:
12478 export_dynamic_flag_spec_CXX='${wl}-E'
12479 hardcode_direct_CXX=yes
12480 hardcode_minus_L_CXX=yes # Not in the search PATH,
12481 # but as the default
12482 # location of the library.
12483
12484 case $cc_basename in
12485 CC*)
12486 # FIXME: insert proper C++ library support
12487 ld_shlibs_CXX=no
12488 ;;
12489 aCC*)
12490 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'
12491 # Commands to make compiler produce verbose output that lists
12492 # what "hidden" libraries, object files and flags are used when
12493 # linking a shared library.
12494 #
12495 # There doesn't appear to be a way to prevent this compiler from
12496 # explicitly linking system object files so we need to strip them
12497 # from the output so that they don't get included in the library
12498 # dependencies.
12499 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'
12500 ;;
12501 *)
12502 if test "$GXX" = yes; then
12503 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'
12504 else
12505 # FIXME: insert proper C++ library support
12506 ld_shlibs_CXX=no
12507 fi
12508 ;;
12509 esac
12510 ;;
12511 hpux10*|hpux11*)
12512 if test $with_gnu_ld = no; then
12513 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12514 hardcode_libdir_separator_CXX=:
12515
12516 case $host_cpu in
12517 hppa*64*|ia64*)
12518 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12519 ;;
12520 *)
12521 export_dynamic_flag_spec_CXX='${wl}-E'
12522 ;;
12523 esac
12524 fi
12525 case $host_cpu in
12526 hppa*64*|ia64*)
12527 hardcode_direct_CXX=no
12528 hardcode_shlibpath_var_CXX=no
12529 ;;
12530 *)
12531 hardcode_direct_CXX=yes
12532 hardcode_minus_L_CXX=yes # Not in the search PATH,
12533 # but as the default
12534 # location of the library.
12535 ;;
12536 esac
12537
12538 case $cc_basename in
12539 CC*)
12540 # FIXME: insert proper C++ library support
12541 ld_shlibs_CXX=no
12542 ;;
12543 aCC*)
12544 case $host_cpu in
12545 hppa*64*)
12546 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12547 ;;
12548 ia64*)
12549 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12550 ;;
12551 *)
12552 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12553 ;;
12554 esac
12555 # Commands to make compiler produce verbose output that lists
12556 # what "hidden" libraries, object files and flags are used when
12557 # linking a shared library.
12558 #
12559 # There doesn't appear to be a way to prevent this compiler from
12560 # explicitly linking system object files so we need to strip them
12561 # from the output so that they don't get included in the library
12562 # dependencies.
12563 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'
12564 ;;
12565 *)
12566 if test "$GXX" = yes; then
12567 if test $with_gnu_ld = no; then
12568 case $host_cpu in
12569 hppa*64*)
12570 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12571 ;;
12572 ia64*)
12573 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12574 ;;
12575 *)
12576 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'
12577 ;;
12578 esac
12579 fi
12580 else
12581 # FIXME: insert proper C++ library support
12582 ld_shlibs_CXX=no
12583 fi
12584 ;;
12585 esac
12586 ;;
12587 interix3*)
12588 hardcode_direct_CXX=no
12589 hardcode_shlibpath_var_CXX=no
12590 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12591 export_dynamic_flag_spec_CXX='${wl}-E'
12592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12593 # Instead, shared libraries are loaded at an image base (0x10000000 by
12594 # default) and relocated if they conflict, which is a slow very memory
12595 # consuming and fragmenting process. To avoid this, we pick a random,
12596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12597 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12598 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'
12599 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'
12600 ;;
12601 irix5* | irix6*)
12602 case $cc_basename in
12603 CC*)
12604 # SGI C++
12605 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'
12606
12607 # Archives containing C++ object files must be created using
12608 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12609 # necessary to make sure instantiated templates are included
12610 # in the archive.
12611 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12612 ;;
12613 *)
12614 if test "$GXX" = yes; then
12615 if test "$with_gnu_ld" = no; then
12616 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'
12617 else
12618 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'
12619 fi
12620 fi
12621 link_all_deplibs_CXX=yes
12622 ;;
12623 esac
12624 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12625 hardcode_libdir_separator_CXX=:
12626 ;;
12627 linux*)
12628 case $cc_basename in
12629 KCC*)
12630 # Kuck and Associates, Inc. (KAI) C++ Compiler
12631
12632 # KCC will only create a shared library if the output file
12633 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12634 # to its proper name (with version) after linking.
12635 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'
12636 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'
12637 # Commands to make compiler produce verbose output that lists
12638 # what "hidden" libraries, object files and flags are used when
12639 # linking a shared library.
12640 #
12641 # There doesn't appear to be a way to prevent this compiler from
12642 # explicitly linking system object files so we need to strip them
12643 # from the output so that they don't get included in the library
12644 # dependencies.
12645 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'
12646
12647 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12648 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12649
12650 # Archives containing C++ object files must be created using
12651 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12652 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12653 ;;
12654 icpc*)
12655 # Intel C++
12656 with_gnu_ld=yes
12657 # version 8.0 and above of icpc choke on multiply defined symbols
12658 # if we add $predep_objects and $postdep_objects, however 7.1 and
12659 # earlier do not add the objects themselves.
12660 case `$CC -V 2>&1` in
12661 *"Version 7."*)
12662 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12663 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'
12664 ;;
12665 *) # Version 8.0 or newer
12666 tmp_idyn=
12667 case $host_cpu in
12668 ia64*) tmp_idyn=' -i_dynamic';;
12669 esac
12670 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12671 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'
12672 ;;
12673 esac
12674 archive_cmds_need_lc_CXX=no
12675 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12676 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12677 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12678 ;;
12679 pgCC*)
12680 # Portland Group C++ compiler
12681 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12682 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'
12683
12684 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12685 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12686 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'
12687 ;;
12688 cxx*)
12689 # Compaq C++
12690 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12691 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'
12692
12693 runpath_var=LD_RUN_PATH
12694 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12695 hardcode_libdir_separator_CXX=:
12696
12697 # Commands to make compiler produce verbose output that lists
12698 # what "hidden" libraries, object files and flags are used when
12699 # linking a shared library.
12700 #
12701 # There doesn't appear to be a way to prevent this compiler from
12702 # explicitly linking system object files so we need to strip them
12703 # from the output so that they don't get included in the library
12704 # dependencies.
12705 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'
12706 ;;
12707 esac
12708 ;;
12709 lynxos*)
12710 # FIXME: insert proper C++ library support
12711 ld_shlibs_CXX=no
12712 ;;
12713 m88k*)
12714 # FIXME: insert proper C++ library support
12715 ld_shlibs_CXX=no
12716 ;;
12717 mvs*)
12718 case $cc_basename in
12719 cxx*)
12720 # FIXME: insert proper C++ library support
12721 ld_shlibs_CXX=no
12722 ;;
12723 *)
12724 # FIXME: insert proper C++ library support
12725 ld_shlibs_CXX=no
12726 ;;
12727 esac
12728 ;;
12729 netbsd*)
12730 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12731 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12732 wlarc=
12733 hardcode_libdir_flag_spec_CXX='-R$libdir'
12734 hardcode_direct_CXX=yes
12735 hardcode_shlibpath_var_CXX=no
12736 fi
12737 # Workaround some broken pre-1.5 toolchains
12738 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12739 ;;
12740 openbsd2*)
12741 # C++ shared libraries are fairly broken
12742 ld_shlibs_CXX=no
12743 ;;
12744 openbsd*)
12745 hardcode_direct_CXX=yes
12746 hardcode_shlibpath_var_CXX=no
12747 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12748 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12750 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12751 export_dynamic_flag_spec_CXX='${wl}-E'
12752 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12753 fi
12754 output_verbose_link_cmd='echo'
12755 ;;
12756 osf3*)
12757 case $cc_basename in
12758 KCC*)
12759 # Kuck and Associates, Inc. (KAI) C++ Compiler
12760
12761 # KCC will only create a shared library if the output file
12762 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12763 # to its proper name (with version) after linking.
12764 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'
12765
12766 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12767 hardcode_libdir_separator_CXX=:
12768
12769 # Archives containing C++ object files must be created using
12770 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12771 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12772
12773 ;;
12774 RCC*)
12775 # Rational C++ 2.4.1
12776 # FIXME: insert proper C++ library support
12777 ld_shlibs_CXX=no
12778 ;;
12779 cxx*)
12780 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12781 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'
12782
12783 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12784 hardcode_libdir_separator_CXX=:
12785
12786 # Commands to make compiler produce verbose output that lists
12787 # what "hidden" libraries, object files and flags are used when
12788 # linking a shared library.
12789 #
12790 # There doesn't appear to be a way to prevent this compiler from
12791 # explicitly linking system object files so we need to strip them
12792 # from the output so that they don't get included in the library
12793 # dependencies.
12794 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'
12795 ;;
12796 *)
12797 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12798 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12799 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'
12800
12801 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12802 hardcode_libdir_separator_CXX=:
12803
12804 # Commands to make compiler produce verbose output that lists
12805 # what "hidden" libraries, object files and flags are used when
12806 # linking a shared library.
12807 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12808
12809 else
12810 # FIXME: insert proper C++ library support
12811 ld_shlibs_CXX=no
12812 fi
12813 ;;
12814 esac
12815 ;;
12816 osf4* | osf5*)
12817 case $cc_basename in
12818 KCC*)
12819 # Kuck and Associates, Inc. (KAI) C++ Compiler
12820
12821 # KCC will only create a shared library if the output file
12822 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12823 # to its proper name (with version) after linking.
12824 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'
12825
12826 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12827 hardcode_libdir_separator_CXX=:
12828
12829 # Archives containing C++ object files must be created using
12830 # the KAI C++ compiler.
12831 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12832 ;;
12833 RCC*)
12834 # Rational C++ 2.4.1
12835 # FIXME: insert proper C++ library support
12836 ld_shlibs_CXX=no
12837 ;;
12838 cxx*)
12839 allow_undefined_flag_CXX=' -expect_unresolved \*'
12840 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'
12841 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12842 echo "-hidden">> $lib.exp~
12843 $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~
12844 $rm $lib.exp'
12845
12846 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12847 hardcode_libdir_separator_CXX=:
12848
12849 # Commands to make compiler produce verbose output that lists
12850 # what "hidden" libraries, object files and flags are used when
12851 # linking a shared library.
12852 #
12853 # There doesn't appear to be a way to prevent this compiler from
12854 # explicitly linking system object files so we need to strip them
12855 # from the output so that they don't get included in the library
12856 # dependencies.
12857 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'
12858 ;;
12859 *)
12860 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12861 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12862 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'
12863
12864 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12865 hardcode_libdir_separator_CXX=:
12866
12867 # Commands to make compiler produce verbose output that lists
12868 # what "hidden" libraries, object files and flags are used when
12869 # linking a shared library.
12870 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12871
12872 else
12873 # FIXME: insert proper C++ library support
12874 ld_shlibs_CXX=no
12875 fi
12876 ;;
12877 esac
12878 ;;
12879 psos*)
12880 # FIXME: insert proper C++ library support
12881 ld_shlibs_CXX=no
12882 ;;
12883 sunos4*)
12884 case $cc_basename in
12885 CC*)
12886 # Sun C++ 4.x
12887 # FIXME: insert proper C++ library support
12888 ld_shlibs_CXX=no
12889 ;;
12890 lcc*)
12891 # Lucid
12892 # FIXME: insert proper C++ library support
12893 ld_shlibs_CXX=no
12894 ;;
12895 *)
12896 # FIXME: insert proper C++ library support
12897 ld_shlibs_CXX=no
12898 ;;
12899 esac
12900 ;;
12901 solaris*)
12902 case $cc_basename in
12903 CC*)
12904 # Sun C++ 4.2, 5.x and Centerline C++
12905 archive_cmds_need_lc_CXX=yes
12906 no_undefined_flag_CXX=' -zdefs'
12907 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12908 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12909 $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'
12910
12911 hardcode_libdir_flag_spec_CXX='-R$libdir'
12912 hardcode_shlibpath_var_CXX=no
12913 case $host_os in
12914 solaris2.[0-5] | solaris2.[0-5].*) ;;
12915 *)
12916 # The C++ compiler is used as linker so we must use $wl
12917 # flag to pass the commands to the underlying system
12918 # linker. We must also pass each convience library through
12919 # to the system linker between allextract/defaultextract.
12920 # The C++ compiler will combine linker options so we
12921 # cannot just pass the convience library names through
12922 # without $wl.
12923 # Supported since Solaris 2.6 (maybe 2.5.1?)
12924 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'
12925 ;;
12926 esac
12927 link_all_deplibs_CXX=yes
12928
12929 output_verbose_link_cmd='echo'
12930
12931 # Archives containing C++ object files must be created using
12932 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12933 # necessary to make sure instantiated templates are included
12934 # in the archive.
12935 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12936 ;;
12937 gcx*)
12938 # Green Hills C++ Compiler
12939 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12940
12941 # The C++ compiler must be used to create the archive.
12942 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12943 ;;
12944 *)
12945 # GNU C++ compiler with Solaris linker
12946 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12947 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12948 if $CC --version | grep -v '^2\.7' > /dev/null; then
12949 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12950 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12951 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12952
12953 # Commands to make compiler produce verbose output that lists
12954 # what "hidden" libraries, object files and flags are used when
12955 # linking a shared library.
12956 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12957 else
12958 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12959 # platform.
12960 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12961 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12962 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12963
12964 # Commands to make compiler produce verbose output that lists
12965 # what "hidden" libraries, object files and flags are used when
12966 # linking a shared library.
12967 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12968 fi
12969
12970 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12971 fi
12972 ;;
12973 esac
12974 ;;
12975 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12976 no_undefined_flag_CXX='${wl}-z,text'
12977 archive_cmds_need_lc_CXX=no
12978 hardcode_shlibpath_var_CXX=no
12979 runpath_var='LD_RUN_PATH'
12980
12981 case $cc_basename in
12982 CC*)
12983 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12984 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12985 ;;
12986 *)
12987 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12988 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12989 ;;
12990 esac
12991 ;;
12992 sysv5* | sco3.2v5* | sco5v6*)
12993 # Note: We can NOT use -z defs as we might desire, because we do not
12994 # link with -lc, and that would cause any symbols used from libc to
12995 # always be unresolved, which means just about no library would
12996 # ever link correctly. If we're not using GNU ld we use -z text
12997 # though, which does catch some bad symbols but isn't as heavy-handed
12998 # as -z defs.
12999 # For security reasons, it is highly recommended that you always
13000 # use absolute paths for naming shared libraries, and exclude the
13001 # DT_RUNPATH tag from executables and libraries. But doing so
13002 # requires that you compile everything twice, which is a pain.
13003 # So that behaviour is only enabled if SCOABSPATH is set to a
13004 # non-empty value in the environment. Most likely only useful for
13005 # creating official distributions of packages.
13006 # This is a hack until libtool officially supports absolute path
13007 # names for shared libraries.
13008 no_undefined_flag_CXX='${wl}-z,text'
13009 allow_undefined_flag_CXX='${wl}-z,nodefs'
13010 archive_cmds_need_lc_CXX=no
13011 hardcode_shlibpath_var_CXX=no
13012 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13013 hardcode_libdir_separator_CXX=':'
13014 link_all_deplibs_CXX=yes
13015 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13016 runpath_var='LD_RUN_PATH'
13017
13018 case $cc_basename in
13019 CC*)
13020 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13021 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13022 ;;
13023 *)
13024 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13025 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13026 ;;
13027 esac
13028 ;;
13029 tandem*)
13030 case $cc_basename in
13031 NCC*)
13032 # NonStop-UX NCC 3.20
13033 # FIXME: insert proper C++ library support
13034 ld_shlibs_CXX=no
13035 ;;
13036 *)
13037 # FIXME: insert proper C++ library support
13038 ld_shlibs_CXX=no
13039 ;;
13040 esac
13041 ;;
13042 vxworks*)
13043 # FIXME: insert proper C++ library support
13044 ld_shlibs_CXX=no
13045 ;;
13046 *)
13047 # FIXME: insert proper C++ library support
13048 ld_shlibs_CXX=no
13049 ;;
13050 esac
13051 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13052 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13053 test "$ld_shlibs_CXX" = no && can_build_shared=no
13054
13055 GCC_CXX="$GXX"
13056 LD_CXX="$LD"
13057
13058 ## CAVEAT EMPTOR:
13059 ## There is no encapsulation within the following macros, do not change
13060 ## the running order or otherwise move them around unless you know exactly
13061 ## what you are doing...
13062
13063 cat > conftest.$ac_ext <<EOF
13064 class Foo
13065 {
13066 public:
13067 Foo (void) { a = 0; }
13068 private:
13069 int a;
13070 };
13071 EOF
13072
13073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13074 (eval $ac_compile) 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; then
13078 # Parse the compiler output and extract the necessary
13079 # objects, libraries and library flags.
13080
13081 # Sentinel used to keep track of whether or not we are before
13082 # the conftest object file.
13083 pre_test_object_deps_done=no
13084
13085 # The `*' in the case matches for architectures that use `case' in
13086 # $output_verbose_cmd can trigger glob expansion during the loop
13087 # eval without this substitution.
13088 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13089
13090 for p in `eval $output_verbose_link_cmd`; do
13091 case $p in
13092
13093 -L* | -R* | -l*)
13094 # Some compilers place space between "-{L,R}" and the path.
13095 # Remove the space.
13096 if test $p = "-L" \
13097 || test $p = "-R"; then
13098 prev=$p
13099 continue
13100 else
13101 prev=
13102 fi
13103
13104 if test "$pre_test_object_deps_done" = no; then
13105 case $p in
13106 -L* | -R*)
13107 # Internal compiler library paths should come after those
13108 # provided the user. The postdeps already come after the
13109 # user supplied libs so there is no need to process them.
13110 if test -z "$compiler_lib_search_path_CXX"; then
13111 compiler_lib_search_path_CXX="${prev}${p}"
13112 else
13113 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13114 fi
13115 ;;
13116 # The "-l" case would never come before the object being
13117 # linked, so don't bother handling this case.
13118 esac
13119 else
13120 if test -z "$postdeps_CXX"; then
13121 postdeps_CXX="${prev}${p}"
13122 else
13123 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13124 fi
13125 fi
13126 ;;
13127
13128 *.$objext)
13129 # This assumes that the test object file only shows up
13130 # once in the compiler output.
13131 if test "$p" = "conftest.$objext"; then
13132 pre_test_object_deps_done=yes
13133 continue
13134 fi
13135
13136 if test "$pre_test_object_deps_done" = no; then
13137 if test -z "$predep_objects_CXX"; then
13138 predep_objects_CXX="$p"
13139 else
13140 predep_objects_CXX="$predep_objects_CXX $p"
13141 fi
13142 else
13143 if test -z "$postdep_objects_CXX"; then
13144 postdep_objects_CXX="$p"
13145 else
13146 postdep_objects_CXX="$postdep_objects_CXX $p"
13147 fi
13148 fi
13149 ;;
13150
13151 *) ;; # Ignore the rest.
13152
13153 esac
13154 done
13155
13156 # Clean up.
13157 rm -f a.out a.exe
13158 else
13159 echo "libtool.m4: error: problem compiling CXX test program"
13160 fi
13161
13162 $rm -f confest.$objext
13163
13164 # PORTME: override above test on systems where it is broken
13165 case $host_os in
13166 interix3*)
13167 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13168 # hack all around it, let's just trust "g++" to DTRT.
13169 predep_objects_CXX=
13170 postdep_objects_CXX=
13171 postdeps_CXX=
13172 ;;
13173
13174 solaris*)
13175 case $cc_basename in
13176 CC*)
13177 # Adding this requires a known-good setup of shared libraries for
13178 # Sun compiler versions before 5.6, else PIC objects from an old
13179 # archive will be linked into the output, leading to subtle bugs.
13180 postdeps_CXX='-lCstd -lCrun'
13181 ;;
13182 esac
13183 ;;
13184 esac
13185
13186
13187 case " $postdeps_CXX " in
13188 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13189 esac
13190
13191 lt_prog_compiler_wl_CXX=
13192 lt_prog_compiler_pic_CXX=
13193 lt_prog_compiler_static_CXX=
13194
13195 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13196 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13197
13198 # C++ specific cases for pic, static, wl, etc.
13199 if test "$GXX" = yes; then
13200 lt_prog_compiler_wl_CXX='-Wl,'
13201 lt_prog_compiler_static_CXX='-static'
13202
13203 case $host_os in
13204 aix*)
13205 # All AIX code is PIC.
13206 if test "$host_cpu" = ia64; then
13207 # AIX 5 now supports IA64 processor
13208 lt_prog_compiler_static_CXX='-Bstatic'
13209 fi
13210 ;;
13211 amigaos*)
13212 # FIXME: we need at least 68020 code to build shared libraries, but
13213 # adding the `-m68020' flag to GCC prevents building anything better,
13214 # like `-m68040'.
13215 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13216 ;;
13217 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13218 # PIC is the default for these OSes.
13219 ;;
13220 mingw* | os2* | pw32*)
13221 # This hack is so that the source file can tell whether it is being
13222 # built for inclusion in a dll (and should export symbols for example).
13223 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13224 ;;
13225 darwin* | rhapsody*)
13226 # PIC is the default on this platform
13227 # Common symbols not allowed in MH_DYLIB files
13228 lt_prog_compiler_pic_CXX='-fno-common'
13229 ;;
13230 *djgpp*)
13231 # DJGPP does not support shared libraries at all
13232 lt_prog_compiler_pic_CXX=
13233 ;;
13234 interix3*)
13235 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13236 # Instead, we relocate shared libraries at runtime.
13237 ;;
13238 sysv4*MP*)
13239 if test -d /usr/nec; then
13240 lt_prog_compiler_pic_CXX=-Kconform_pic
13241 fi
13242 ;;
13243 hpux*)
13244 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13245 # not for PA HP-UX.
13246 case $host_cpu in
13247 hppa*64*|ia64*)
13248 ;;
13249 *)
13250 lt_prog_compiler_pic_CXX='-fPIC'
13251 ;;
13252 esac
13253 ;;
13254 *)
13255 lt_prog_compiler_pic_CXX='-fPIC'
13256 ;;
13257 esac
13258 else
13259 case $host_os in
13260 aix4* | aix5*)
13261 # All AIX code is PIC.
13262 if test "$host_cpu" = ia64; then
13263 # AIX 5 now supports IA64 processor
13264 lt_prog_compiler_static_CXX='-Bstatic'
13265 else
13266 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13267 fi
13268 ;;
13269 chorus*)
13270 case $cc_basename in
13271 cxch68*)
13272 # Green Hills C++ Compiler
13273 # _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"
13274 ;;
13275 esac
13276 ;;
13277 darwin*)
13278 # PIC is the default on this platform
13279 # Common symbols not allowed in MH_DYLIB files
13280 case $cc_basename in
13281 xlc*)
13282 lt_prog_compiler_pic_CXX='-qnocommon'
13283 lt_prog_compiler_wl_CXX='-Wl,'
13284 ;;
13285 esac
13286 ;;
13287 dgux*)
13288 case $cc_basename in
13289 ec++*)
13290 lt_prog_compiler_pic_CXX='-KPIC'
13291 ;;
13292 ghcx*)
13293 # Green Hills C++ Compiler
13294 lt_prog_compiler_pic_CXX='-pic'
13295 ;;
13296 *)
13297 ;;
13298 esac
13299 ;;
13300 freebsd* | kfreebsd*-gnu | dragonfly*)
13301 # FreeBSD uses GNU C++
13302 ;;
13303 hpux9* | hpux10* | hpux11*)
13304 case $cc_basename in
13305 CC*)
13306 lt_prog_compiler_wl_CXX='-Wl,'
13307 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13308 if test "$host_cpu" != ia64; then
13309 lt_prog_compiler_pic_CXX='+Z'
13310 fi
13311 ;;
13312 aCC*)
13313 lt_prog_compiler_wl_CXX='-Wl,'
13314 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13315 case $host_cpu in
13316 hppa*64*|ia64*)
13317 # +Z the default
13318 ;;
13319 *)
13320 lt_prog_compiler_pic_CXX='+Z'
13321 ;;
13322 esac
13323 ;;
13324 *)
13325 ;;
13326 esac
13327 ;;
13328 interix*)
13329 # This is c89, which is MS Visual C++ (no shared libs)
13330 # Anyone wants to do a port?
13331 ;;
13332 irix5* | irix6* | nonstopux*)
13333 case $cc_basename in
13334 CC*)
13335 lt_prog_compiler_wl_CXX='-Wl,'
13336 lt_prog_compiler_static_CXX='-non_shared'
13337 # CC pic flag -KPIC is the default.
13338 ;;
13339 *)
13340 ;;
13341 esac
13342 ;;
13343 linux*)
13344 case $cc_basename in
13345 KCC*)
13346 # KAI C++ Compiler
13347 lt_prog_compiler_wl_CXX='--backend -Wl,'
13348 lt_prog_compiler_pic_CXX='-fPIC'
13349 ;;
13350 icpc* | ecpc*)
13351 # Intel C++
13352 lt_prog_compiler_wl_CXX='-Wl,'
13353 lt_prog_compiler_pic_CXX='-KPIC'
13354 lt_prog_compiler_static_CXX='-static'
13355 ;;
13356 pgCC*)
13357 # Portland Group C++ compiler.
13358 lt_prog_compiler_wl_CXX='-Wl,'
13359 lt_prog_compiler_pic_CXX='-fpic'
13360 lt_prog_compiler_static_CXX='-Bstatic'
13361 ;;
13362 cxx*)
13363 # Compaq C++
13364 # Make sure the PIC flag is empty. It appears that all Alpha
13365 # Linux and Compaq Tru64 Unix objects are PIC.
13366 lt_prog_compiler_pic_CXX=
13367 lt_prog_compiler_static_CXX='-non_shared'
13368 ;;
13369 *)
13370 ;;
13371 esac
13372 ;;
13373 lynxos*)
13374 ;;
13375 m88k*)
13376 ;;
13377 mvs*)
13378 case $cc_basename in
13379 cxx*)
13380 lt_prog_compiler_pic_CXX='-W c,exportall'
13381 ;;
13382 *)
13383 ;;
13384 esac
13385 ;;
13386 netbsd*)
13387 ;;
13388 osf3* | osf4* | osf5*)
13389 case $cc_basename in
13390 KCC*)
13391 lt_prog_compiler_wl_CXX='--backend -Wl,'
13392 ;;
13393 RCC*)
13394 # Rational C++ 2.4.1
13395 lt_prog_compiler_pic_CXX='-pic'
13396 ;;
13397 cxx*)
13398 # Digital/Compaq C++
13399 lt_prog_compiler_wl_CXX='-Wl,'
13400 # Make sure the PIC flag is empty. It appears that all Alpha
13401 # Linux and Compaq Tru64 Unix objects are PIC.
13402 lt_prog_compiler_pic_CXX=
13403 lt_prog_compiler_static_CXX='-non_shared'
13404 ;;
13405 *)
13406 ;;
13407 esac
13408 ;;
13409 psos*)
13410 ;;
13411 solaris*)
13412 case $cc_basename in
13413 CC*)
13414 # Sun C++ 4.2, 5.x and Centerline C++
13415 lt_prog_compiler_pic_CXX='-KPIC'
13416 lt_prog_compiler_static_CXX='-Bstatic'
13417 lt_prog_compiler_wl_CXX='-Qoption ld '
13418 ;;
13419 gcx*)
13420 # Green Hills C++ Compiler
13421 lt_prog_compiler_pic_CXX='-PIC'
13422 ;;
13423 *)
13424 ;;
13425 esac
13426 ;;
13427 sunos4*)
13428 case $cc_basename in
13429 CC*)
13430 # Sun C++ 4.x
13431 lt_prog_compiler_pic_CXX='-pic'
13432 lt_prog_compiler_static_CXX='-Bstatic'
13433 ;;
13434 lcc*)
13435 # Lucid
13436 lt_prog_compiler_pic_CXX='-pic'
13437 ;;
13438 *)
13439 ;;
13440 esac
13441 ;;
13442 tandem*)
13443 case $cc_basename in
13444 NCC*)
13445 # NonStop-UX NCC 3.20
13446 lt_prog_compiler_pic_CXX='-KPIC'
13447 ;;
13448 *)
13449 ;;
13450 esac
13451 ;;
13452 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13453 case $cc_basename in
13454 CC*)
13455 lt_prog_compiler_wl_CXX='-Wl,'
13456 lt_prog_compiler_pic_CXX='-KPIC'
13457 lt_prog_compiler_static_CXX='-Bstatic'
13458 ;;
13459 esac
13460 ;;
13461 vxworks*)
13462 ;;
13463 *)
13464 lt_prog_compiler_can_build_shared_CXX=no
13465 ;;
13466 esac
13467 fi
13468
13469 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13470 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13471
13472 #
13473 # Check to make sure the PIC flag actually works.
13474 #
13475 if test -n "$lt_prog_compiler_pic_CXX"; then
13476
13477 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13478 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13479 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13482 lt_prog_compiler_pic_works_CXX=no
13483 ac_outfile=conftest.$ac_objext
13484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13485 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13486 # Insert the option either (1) after the last *FLAGS variable, or
13487 # (2) before a word containing "conftest.", or (3) at the end.
13488 # Note that $ac_compile itself does not contain backslashes and begins
13489 # with a dollar sign (not a hyphen), so the echo should work correctly.
13490 # The option is referenced via a variable to avoid confusing sed.
13491 lt_compile=`echo "$ac_compile" | $SED \
13492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13494 -e 's:$: $lt_compiler_flag:'`
13495 (eval echo "\"\$as_me:13495: $lt_compile\"" >&5)
13496 (eval "$lt_compile" 2>conftest.err)
13497 ac_status=$?
13498 cat conftest.err >&5
13499 echo "$as_me:13499: \$? = $ac_status" >&5
13500 if (exit $ac_status) && test -s "$ac_outfile"; then
13501 # The compiler can only warn and ignore the option if not recognized
13502 # So say no if there are warnings other than the usual output.
13503 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13505 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13506 lt_prog_compiler_pic_works_CXX=yes
13507 fi
13508 fi
13509 $rm conftest*
13510
13511 fi
13512 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13513 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13514
13515 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13516 case $lt_prog_compiler_pic_CXX in
13517 "" | " "*) ;;
13518 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13519 esac
13520 else
13521 lt_prog_compiler_pic_CXX=
13522 lt_prog_compiler_can_build_shared_CXX=no
13523 fi
13524
13525 fi
13526 case $host_os in
13527 # For platforms which do not support PIC, -DPIC is meaningless:
13528 *djgpp*)
13529 lt_prog_compiler_pic_CXX=
13530 ;;
13531 *)
13532 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13533 ;;
13534 esac
13535
13536 #
13537 # Check to make sure the static flag actually works.
13538 #
13539 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13540 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13541 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13542 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 else
13545 lt_prog_compiler_static_works_CXX=no
13546 save_LDFLAGS="$LDFLAGS"
13547 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13548 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13549 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13550 # The linker can only warn and ignore the option if not recognized
13551 # So say no if there are warnings
13552 if test -s conftest.err; then
13553 # Append any errors to the config.log.
13554 cat conftest.err 1>&5
13555 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13557 if diff conftest.exp conftest.er2 >/dev/null; then
13558 lt_prog_compiler_static_works_CXX=yes
13559 fi
13560 else
13561 lt_prog_compiler_static_works_CXX=yes
13562 fi
13563 fi
13564 $rm conftest*
13565 LDFLAGS="$save_LDFLAGS"
13566
13567 fi
13568 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13569 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13570
13571 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13572 :
13573 else
13574 lt_prog_compiler_static_CXX=
13575 fi
13576
13577
13578 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13579 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13580 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583 lt_cv_prog_compiler_c_o_CXX=no
13584 $rm -r conftest 2>/dev/null
13585 mkdir conftest
13586 cd conftest
13587 mkdir out
13588 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13589
13590 lt_compiler_flag="-o out/conftest2.$ac_objext"
13591 # Insert the option either (1) after the last *FLAGS variable, or
13592 # (2) before a word containing "conftest.", or (3) at the end.
13593 # Note that $ac_compile itself does not contain backslashes and begins
13594 # with a dollar sign (not a hyphen), so the echo should work correctly.
13595 lt_compile=`echo "$ac_compile" | $SED \
13596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13598 -e 's:$: $lt_compiler_flag:'`
13599 (eval echo "\"\$as_me:13599: $lt_compile\"" >&5)
13600 (eval "$lt_compile" 2>out/conftest.err)
13601 ac_status=$?
13602 cat out/conftest.err >&5
13603 echo "$as_me:13603: \$? = $ac_status" >&5
13604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13605 then
13606 # The compiler can only warn and ignore the option if not recognized
13607 # So say no if there are warnings
13608 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13611 lt_cv_prog_compiler_c_o_CXX=yes
13612 fi
13613 fi
13614 chmod u+w . 2>&5
13615 $rm conftest*
13616 # SGI C++ compiler will create directory out/ii_files/ for
13617 # template instantiation
13618 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13619 $rm out/* && rmdir out
13620 cd ..
13621 rmdir conftest
13622 $rm conftest*
13623
13624 fi
13625 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13626 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13627
13628
13629 hard_links="nottested"
13630 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13631 # do not overwrite the value of need_locks provided by the user
13632 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13633 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13634 hard_links=yes
13635 $rm conftest*
13636 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13637 touch conftest.a
13638 ln conftest.a conftest.b 2>&5 || hard_links=no
13639 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13640 echo "$as_me:$LINENO: result: $hard_links" >&5
13641 echo "${ECHO_T}$hard_links" >&6
13642 if test "$hard_links" = no; then
13643 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13644 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13645 need_locks=warn
13646 fi
13647 else
13648 need_locks=no
13649 fi
13650
13651 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13652 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13653
13654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13655 case $host_os in
13656 aix4* | aix5*)
13657 # If we're using GNU nm, then we don't want the "-C" option.
13658 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13659 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13660 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'
13661 else
13662 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'
13663 fi
13664 ;;
13665 pw32*)
13666 export_symbols_cmds_CXX="$ltdll_cmds"
13667 ;;
13668 cygwin* | mingw*)
13669 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'
13670 ;;
13671 *)
13672 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13673 ;;
13674 esac
13675
13676 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13677 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13678 test "$ld_shlibs_CXX" = no && can_build_shared=no
13679
13680 #
13681 # Do we need to explicitly link libc?
13682 #
13683 case "x$archive_cmds_need_lc_CXX" in
13684 x|xyes)
13685 # Assume -lc should be added
13686 archive_cmds_need_lc_CXX=yes
13687
13688 if test "$enable_shared" = yes && test "$GCC" = yes; then
13689 case $archive_cmds_CXX in
13690 *'~'*)
13691 # FIXME: we may have to deal with multi-command sequences.
13692 ;;
13693 '$CC '*)
13694 # Test whether the compiler implicitly links with -lc since on some
13695 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13696 # to ld, don't add -lc before -lgcc.
13697 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13698 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13699 $rm conftest*
13700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13701
13702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13703 (eval $ac_compile) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } 2>conftest.err; then
13707 soname=conftest
13708 lib=conftest
13709 libobjs=conftest.$ac_objext
13710 deplibs=
13711 wl=$lt_prog_compiler_wl_CXX
13712 pic_flag=$lt_prog_compiler_pic_CXX
13713 compiler_flags=-v
13714 linker_flags=-v
13715 verstring=
13716 output_objdir=.
13717 libname=conftest
13718 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13719 allow_undefined_flag_CXX=
13720 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13721 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }
13725 then
13726 archive_cmds_need_lc_CXX=no
13727 else
13728 archive_cmds_need_lc_CXX=yes
13729 fi
13730 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13731 else
13732 cat conftest.err 1>&5
13733 fi
13734 $rm conftest*
13735 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13736 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13737 ;;
13738 esac
13739 fi
13740 ;;
13741 esac
13742
13743 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13744 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13745 library_names_spec=
13746 libname_spec='lib$name'
13747 soname_spec=
13748 shrext_cmds=".so"
13749 postinstall_cmds=
13750 postuninstall_cmds=
13751 finish_cmds=
13752 finish_eval=
13753 shlibpath_var=
13754 shlibpath_overrides_runpath=unknown
13755 version_type=none
13756 dynamic_linker="$host_os ld.so"
13757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13758 if test "$GCC" = yes; then
13759 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13760 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13761 # if the path contains ";" then we assume it to be the separator
13762 # otherwise default to the standard path separator (i.e. ":") - it is
13763 # assumed that no part of a normal pathname contains ";" but that should
13764 # okay in the real world where ";" in dirpaths is itself problematic.
13765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13766 else
13767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13768 fi
13769 else
13770 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13771 fi
13772 need_lib_prefix=unknown
13773 hardcode_into_libs=no
13774
13775 # when you set need_version to no, make sure it does not cause -set_version
13776 # flags to be left without arguments
13777 need_version=unknown
13778
13779 case $host_os in
13780 aix3*)
13781 version_type=linux
13782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13783 shlibpath_var=LIBPATH
13784
13785 # AIX 3 has no versioning support, so we append a major version to the name.
13786 soname_spec='${libname}${release}${shared_ext}$major'
13787 ;;
13788
13789 aix4* | aix5*)
13790 version_type=linux
13791 need_lib_prefix=no
13792 need_version=no
13793 hardcode_into_libs=yes
13794 if test "$host_cpu" = ia64; then
13795 # AIX 5 supports IA64
13796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13797 shlibpath_var=LD_LIBRARY_PATH
13798 else
13799 # With GCC up to 2.95.x, collect2 would create an import file
13800 # for dependence libraries. The import file would start with
13801 # the line `#! .'. This would cause the generated library to
13802 # depend on `.', always an invalid library. This was fixed in
13803 # development snapshots of GCC prior to 3.0.
13804 case $host_os in
13805 aix4 | aix4.[01] | aix4.[01].*)
13806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13807 echo ' yes '
13808 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13809 :
13810 else
13811 can_build_shared=no
13812 fi
13813 ;;
13814 esac
13815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13816 # soname into executable. Probably we can add versioning support to
13817 # collect2, so additional links can be useful in future.
13818 if test "$aix_use_runtimelinking" = yes; then
13819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13820 # instead of lib<name>.a to let people know that these are not
13821 # typical AIX shared libraries.
13822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13823 else
13824 # We preserve .a as extension for shared libraries through AIX4.2
13825 # and later when we are not doing run time linking.
13826 library_names_spec='${libname}${release}.a $libname.a'
13827 soname_spec='${libname}${release}${shared_ext}$major'
13828 fi
13829 shlibpath_var=LIBPATH
13830 fi
13831 ;;
13832
13833 amigaos*)
13834 library_names_spec='$libname.ixlibrary $libname.a'
13835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13836 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'
13837 ;;
13838
13839 beos*)
13840 library_names_spec='${libname}${shared_ext}'
13841 dynamic_linker="$host_os ld.so"
13842 shlibpath_var=LIBRARY_PATH
13843 ;;
13844
13845 bsdi[45]*)
13846 version_type=linux
13847 need_version=no
13848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13849 soname_spec='${libname}${release}${shared_ext}$major'
13850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13851 shlibpath_var=LD_LIBRARY_PATH
13852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13854 # the default ld.so.conf also contains /usr/contrib/lib and
13855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13856 # libtool to hard-code these into programs
13857 ;;
13858
13859 cygwin* | mingw* | pw32*)
13860 version_type=windows
13861 shrext_cmds=".dll"
13862 need_version=no
13863 need_lib_prefix=no
13864
13865 case $GCC,$host_os in
13866 yes,cygwin* | yes,mingw* | yes,pw32*)
13867 library_names_spec='$libname.dll.a'
13868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13869 postinstall_cmds='base_file=`basename \${file}`~
13870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13871 dldir=$destdir/`dirname \$dlpath`~
13872 test -d \$dldir || mkdir -p \$dldir~
13873 $install_prog $dir/$dlname \$dldir/$dlname~
13874 chmod a+x \$dldir/$dlname'
13875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13876 dlpath=$dir/\$dldll~
13877 $rm \$dlpath'
13878 shlibpath_overrides_runpath=yes
13879
13880 case $host_os in
13881 cygwin*)
13882 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13883 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13884 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13885 ;;
13886 mingw*)
13887 # MinGW DLLs use traditional 'lib' prefix
13888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13889 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13890 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13891 # It is most probably a Windows format PATH printed by
13892 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13893 # path with ; separators, and with drive letters. We can handle the
13894 # drive letters (cygwin fileutils understands them), so leave them,
13895 # especially as we might pass files found there to a mingw objdump,
13896 # which wouldn't understand a cygwinified path. Ahh.
13897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13898 else
13899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13900 fi
13901 ;;
13902 pw32*)
13903 # pw32 DLLs use 'pw' prefix rather than 'lib'
13904 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13905 ;;
13906 esac
13907 ;;
13908
13909 *)
13910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13911 ;;
13912 esac
13913 dynamic_linker='Win32 ld.exe'
13914 # FIXME: first we should search . and the directory the executable is in
13915 shlibpath_var=PATH
13916 ;;
13917
13918 darwin* | rhapsody*)
13919 dynamic_linker="$host_os dyld"
13920 version_type=darwin
13921 need_lib_prefix=no
13922 need_version=no
13923 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13924 soname_spec='${libname}${release}${major}$shared_ext'
13925 shlibpath_overrides_runpath=yes
13926 shlibpath_var=DYLD_LIBRARY_PATH
13927 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13928 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13929 if test "$GCC" = yes; then
13930 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"`
13931 else
13932 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13933 fi
13934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13935 ;;
13936
13937 dgux*)
13938 version_type=linux
13939 need_lib_prefix=no
13940 need_version=no
13941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13942 soname_spec='${libname}${release}${shared_ext}$major'
13943 shlibpath_var=LD_LIBRARY_PATH
13944 ;;
13945
13946 freebsd1*)
13947 dynamic_linker=no
13948 ;;
13949
13950 kfreebsd*-gnu)
13951 version_type=linux
13952 need_lib_prefix=no
13953 need_version=no
13954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13955 soname_spec='${libname}${release}${shared_ext}$major'
13956 shlibpath_var=LD_LIBRARY_PATH
13957 shlibpath_overrides_runpath=no
13958 hardcode_into_libs=yes
13959 dynamic_linker='GNU ld.so'
13960 ;;
13961
13962 freebsd* | dragonfly*)
13963 # DragonFly does not have aout. When/if they implement a new
13964 # versioning mechanism, adjust this.
13965 if test -x /usr/bin/objformat; then
13966 objformat=`/usr/bin/objformat`
13967 else
13968 case $host_os in
13969 freebsd[123]*) objformat=aout ;;
13970 *) objformat=elf ;;
13971 esac
13972 fi
13973 version_type=freebsd-$objformat
13974 case $version_type in
13975 freebsd-elf*)
13976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13977 need_version=no
13978 need_lib_prefix=no
13979 ;;
13980 freebsd-*)
13981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13982 need_version=yes
13983 ;;
13984 esac
13985 shlibpath_var=LD_LIBRARY_PATH
13986 case $host_os in
13987 freebsd2*)
13988 shlibpath_overrides_runpath=yes
13989 ;;
13990 freebsd3.[01]* | freebsdelf3.[01]*)
13991 shlibpath_overrides_runpath=yes
13992 hardcode_into_libs=yes
13993 ;;
13994 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13995 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13996 shlibpath_overrides_runpath=no
13997 hardcode_into_libs=yes
13998 ;;
13999 freebsd*) # from 4.6 on
14000 shlibpath_overrides_runpath=yes
14001 hardcode_into_libs=yes
14002 ;;
14003 esac
14004 ;;
14005
14006 gnu*)
14007 version_type=linux
14008 need_lib_prefix=no
14009 need_version=no
14010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14011 soname_spec='${libname}${release}${shared_ext}$major'
14012 shlibpath_var=LD_LIBRARY_PATH
14013 hardcode_into_libs=yes
14014 ;;
14015
14016 hpux9* | hpux10* | hpux11*)
14017 # Give a soname corresponding to the major version so that dld.sl refuses to
14018 # link against other versions.
14019 version_type=sunos
14020 need_lib_prefix=no
14021 need_version=no
14022 case $host_cpu in
14023 ia64*)
14024 shrext_cmds='.so'
14025 hardcode_into_libs=yes
14026 dynamic_linker="$host_os dld.so"
14027 shlibpath_var=LD_LIBRARY_PATH
14028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14030 soname_spec='${libname}${release}${shared_ext}$major'
14031 if test "X$HPUX_IA64_MODE" = X32; then
14032 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14033 else
14034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14035 fi
14036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14037 ;;
14038 hppa*64*)
14039 shrext_cmds='.sl'
14040 hardcode_into_libs=yes
14041 dynamic_linker="$host_os dld.sl"
14042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14045 soname_spec='${libname}${release}${shared_ext}$major'
14046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14048 ;;
14049 *)
14050 shrext_cmds='.sl'
14051 dynamic_linker="$host_os dld.sl"
14052 shlibpath_var=SHLIB_PATH
14053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14055 soname_spec='${libname}${release}${shared_ext}$major'
14056 ;;
14057 esac
14058 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14059 postinstall_cmds='chmod 555 $lib'
14060 ;;
14061
14062 interix3*)
14063 version_type=linux
14064 need_lib_prefix=no
14065 need_version=no
14066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14067 soname_spec='${libname}${release}${shared_ext}$major'
14068 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14069 shlibpath_var=LD_LIBRARY_PATH
14070 shlibpath_overrides_runpath=no
14071 hardcode_into_libs=yes
14072 ;;
14073
14074 irix5* | irix6* | nonstopux*)
14075 case $host_os in
14076 nonstopux*) version_type=nonstopux ;;
14077 *)
14078 if test "$lt_cv_prog_gnu_ld" = yes; then
14079 version_type=linux
14080 else
14081 version_type=irix
14082 fi ;;
14083 esac
14084 need_lib_prefix=no
14085 need_version=no
14086 soname_spec='${libname}${release}${shared_ext}$major'
14087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14088 case $host_os in
14089 irix5* | nonstopux*)
14090 libsuff= shlibsuff=
14091 ;;
14092 *)
14093 case $LD in # libtool.m4 will add one of these switches to LD
14094 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14095 libsuff= shlibsuff= libmagic=32-bit;;
14096 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14097 libsuff=32 shlibsuff=N32 libmagic=N32;;
14098 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14099 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14100 *) libsuff= shlibsuff= libmagic=never-match;;
14101 esac
14102 ;;
14103 esac
14104 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14105 shlibpath_overrides_runpath=no
14106 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14107 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14108 hardcode_into_libs=yes
14109 ;;
14110
14111 # No shared lib support for Linux oldld, aout, or coff.
14112 linux*oldld* | linux*aout* | linux*coff*)
14113 dynamic_linker=no
14114 ;;
14115
14116 # This must be Linux ELF.
14117 linux*)
14118 version_type=linux
14119 need_lib_prefix=no
14120 need_version=no
14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14122 soname_spec='${libname}${release}${shared_ext}$major'
14123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14124 shlibpath_var=LD_LIBRARY_PATH
14125 shlibpath_overrides_runpath=no
14126 # This implies no fast_install, which is unacceptable.
14127 # Some rework will be needed to allow for fast_install
14128 # before this can be enabled.
14129 hardcode_into_libs=yes
14130
14131 # Append ld.so.conf contents to the search path
14132 if test -f /etc/ld.so.conf; then
14133 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' ' '`
14134 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14135 fi
14136
14137 # We used to test for /lib/ld.so.1 and disable shared libraries on
14138 # powerpc, because MkLinux only supported shared libraries with the
14139 # GNU dynamic linker. Since this was broken with cross compilers,
14140 # most powerpc-linux boxes support dynamic linking these days and
14141 # people can always --disable-shared, the test was removed, and we
14142 # assume the GNU/Linux dynamic linker is in use.
14143 dynamic_linker='GNU/Linux ld.so'
14144 ;;
14145
14146 knetbsd*-gnu)
14147 version_type=linux
14148 need_lib_prefix=no
14149 need_version=no
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14151 soname_spec='${libname}${release}${shared_ext}$major'
14152 shlibpath_var=LD_LIBRARY_PATH
14153 shlibpath_overrides_runpath=no
14154 hardcode_into_libs=yes
14155 dynamic_linker='GNU ld.so'
14156 ;;
14157
14158 netbsd*)
14159 version_type=sunos
14160 need_lib_prefix=no
14161 need_version=no
14162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14165 dynamic_linker='NetBSD (a.out) ld.so'
14166 else
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 dynamic_linker='NetBSD ld.elf_so'
14170 fi
14171 shlibpath_var=LD_LIBRARY_PATH
14172 shlibpath_overrides_runpath=yes
14173 hardcode_into_libs=yes
14174 ;;
14175
14176 newsos6)
14177 version_type=linux
14178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14179 shlibpath_var=LD_LIBRARY_PATH
14180 shlibpath_overrides_runpath=yes
14181 ;;
14182
14183 nto-qnx*)
14184 version_type=linux
14185 need_lib_prefix=no
14186 need_version=no
14187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14188 soname_spec='${libname}${release}${shared_ext}$major'
14189 shlibpath_var=LD_LIBRARY_PATH
14190 shlibpath_overrides_runpath=yes
14191 ;;
14192
14193 openbsd*)
14194 version_type=sunos
14195 sys_lib_dlsearch_path_spec="/usr/lib"
14196 need_lib_prefix=no
14197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14198 case $host_os in
14199 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14200 *) need_version=no ;;
14201 esac
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14204 shlibpath_var=LD_LIBRARY_PATH
14205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14206 case $host_os in
14207 openbsd2.[89] | openbsd2.[89].*)
14208 shlibpath_overrides_runpath=no
14209 ;;
14210 *)
14211 shlibpath_overrides_runpath=yes
14212 ;;
14213 esac
14214 else
14215 shlibpath_overrides_runpath=yes
14216 fi
14217 ;;
14218
14219 os2*)
14220 libname_spec='$name'
14221 shrext_cmds=".dll"
14222 need_lib_prefix=no
14223 library_names_spec='$libname${shared_ext} $libname.a'
14224 dynamic_linker='OS/2 ld.exe'
14225 shlibpath_var=LIBPATH
14226 ;;
14227
14228 osf3* | osf4* | osf5*)
14229 version_type=osf
14230 need_lib_prefix=no
14231 need_version=no
14232 soname_spec='${libname}${release}${shared_ext}$major'
14233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14234 shlibpath_var=LD_LIBRARY_PATH
14235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14237 ;;
14238
14239 solaris*)
14240 version_type=linux
14241 need_lib_prefix=no
14242 need_version=no
14243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14244 soname_spec='${libname}${release}${shared_ext}$major'
14245 shlibpath_var=LD_LIBRARY_PATH
14246 shlibpath_overrides_runpath=yes
14247 hardcode_into_libs=yes
14248 # ldd complains unless libraries are executable
14249 postinstall_cmds='chmod +x $lib'
14250 ;;
14251
14252 sunos4*)
14253 version_type=sunos
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14256 shlibpath_var=LD_LIBRARY_PATH
14257 shlibpath_overrides_runpath=yes
14258 if test "$with_gnu_ld" = yes; then
14259 need_lib_prefix=no
14260 fi
14261 need_version=yes
14262 ;;
14263
14264 sysv4 | sysv4.3*)
14265 version_type=linux
14266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14267 soname_spec='${libname}${release}${shared_ext}$major'
14268 shlibpath_var=LD_LIBRARY_PATH
14269 case $host_vendor in
14270 sni)
14271 shlibpath_overrides_runpath=no
14272 need_lib_prefix=no
14273 export_dynamic_flag_spec='${wl}-Blargedynsym'
14274 runpath_var=LD_RUN_PATH
14275 ;;
14276 siemens)
14277 need_lib_prefix=no
14278 ;;
14279 motorola)
14280 need_lib_prefix=no
14281 need_version=no
14282 shlibpath_overrides_runpath=no
14283 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14284 ;;
14285 esac
14286 ;;
14287
14288 sysv4*MP*)
14289 if test -d /usr/nec ;then
14290 version_type=linux
14291 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14292 soname_spec='$libname${shared_ext}.$major'
14293 shlibpath_var=LD_LIBRARY_PATH
14294 fi
14295 ;;
14296
14297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14298 version_type=freebsd-elf
14299 need_lib_prefix=no
14300 need_version=no
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14302 soname_spec='${libname}${release}${shared_ext}$major'
14303 shlibpath_var=LD_LIBRARY_PATH
14304 hardcode_into_libs=yes
14305 if test "$with_gnu_ld" = yes; then
14306 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14307 shlibpath_overrides_runpath=no
14308 else
14309 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14310 shlibpath_overrides_runpath=yes
14311 case $host_os in
14312 sco3.2v5*)
14313 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14314 ;;
14315 esac
14316 fi
14317 sys_lib_dlsearch_path_spec='/usr/lib'
14318 ;;
14319
14320 uts4*)
14321 version_type=linux
14322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323 soname_spec='${libname}${release}${shared_ext}$major'
14324 shlibpath_var=LD_LIBRARY_PATH
14325 ;;
14326
14327 *)
14328 dynamic_linker=no
14329 ;;
14330 esac
14331 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14332 echo "${ECHO_T}$dynamic_linker" >&6
14333 test "$dynamic_linker" = no && can_build_shared=no
14334
14335 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14336 if test "$GCC" = yes; then
14337 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14338 fi
14339
14340 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14341 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14342 hardcode_action_CXX=
14343 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14344 test -n "$runpath_var_CXX" || \
14345 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14346
14347 # We can hardcode non-existant directories.
14348 if test "$hardcode_direct_CXX" != no &&
14349 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14350 # have to relink, otherwise we might link with an installed library
14351 # when we should be linking with a yet-to-be-installed one
14352 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14353 test "$hardcode_minus_L_CXX" != no; then
14354 # Linking always hardcodes the temporary library directory.
14355 hardcode_action_CXX=relink
14356 else
14357 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14358 hardcode_action_CXX=immediate
14359 fi
14360 else
14361 # We cannot hardcode anything, or else we can only hardcode existing
14362 # directories.
14363 hardcode_action_CXX=unsupported
14364 fi
14365 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14366 echo "${ECHO_T}$hardcode_action_CXX" >&6
14367
14368 if test "$hardcode_action_CXX" = relink; then
14369 # Fast installation is not supported
14370 enable_fast_install=no
14371 elif test "$shlibpath_overrides_runpath" = yes ||
14372 test "$enable_shared" = no; then
14373 # Fast installation is not necessary
14374 enable_fast_install=needless
14375 fi
14376
14377
14378 # The else clause should only fire when bootstrapping the
14379 # libtool distribution, otherwise you forgot to ship ltmain.sh
14380 # with your package, and you will get complaints that there are
14381 # no rules to generate ltmain.sh.
14382 if test -f "$ltmain"; then
14383 # See if we are running on zsh, and set the options which allow our commands through
14384 # without removal of \ escapes.
14385 if test -n "${ZSH_VERSION+set}" ; then
14386 setopt NO_GLOB_SUBST
14387 fi
14388 # Now quote all the things that may contain metacharacters while being
14389 # careful not to overquote the AC_SUBSTed values. We take copies of the
14390 # variables and quote the copies for generation of the libtool script.
14391 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14392 SED SHELL STRIP \
14393 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14394 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14395 deplibs_check_method reload_flag reload_cmds need_locks \
14396 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14397 lt_cv_sys_global_symbol_to_c_name_address \
14398 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14399 old_postinstall_cmds old_postuninstall_cmds \
14400 compiler_CXX \
14401 CC_CXX \
14402 LD_CXX \
14403 lt_prog_compiler_wl_CXX \
14404 lt_prog_compiler_pic_CXX \
14405 lt_prog_compiler_static_CXX \
14406 lt_prog_compiler_no_builtin_flag_CXX \
14407 export_dynamic_flag_spec_CXX \
14408 thread_safe_flag_spec_CXX \
14409 whole_archive_flag_spec_CXX \
14410 enable_shared_with_static_runtimes_CXX \
14411 old_archive_cmds_CXX \
14412 old_archive_from_new_cmds_CXX \
14413 predep_objects_CXX \
14414 postdep_objects_CXX \
14415 predeps_CXX \
14416 postdeps_CXX \
14417 compiler_lib_search_path_CXX \
14418 archive_cmds_CXX \
14419 archive_expsym_cmds_CXX \
14420 postinstall_cmds_CXX \
14421 postuninstall_cmds_CXX \
14422 old_archive_from_expsyms_cmds_CXX \
14423 allow_undefined_flag_CXX \
14424 no_undefined_flag_CXX \
14425 export_symbols_cmds_CXX \
14426 hardcode_libdir_flag_spec_CXX \
14427 hardcode_libdir_flag_spec_ld_CXX \
14428 hardcode_libdir_separator_CXX \
14429 hardcode_automatic_CXX \
14430 module_cmds_CXX \
14431 module_expsym_cmds_CXX \
14432 lt_cv_prog_compiler_c_o_CXX \
14433 exclude_expsyms_CXX \
14434 include_expsyms_CXX; do
14435
14436 case $var in
14437 old_archive_cmds_CXX | \
14438 old_archive_from_new_cmds_CXX | \
14439 archive_cmds_CXX | \
14440 archive_expsym_cmds_CXX | \
14441 module_cmds_CXX | \
14442 module_expsym_cmds_CXX | \
14443 old_archive_from_expsyms_cmds_CXX | \
14444 export_symbols_cmds_CXX | \
14445 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14446 postinstall_cmds | postuninstall_cmds | \
14447 old_postinstall_cmds | old_postuninstall_cmds | \
14448 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14449 # Double-quote double-evaled strings.
14450 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14451 ;;
14452 *)
14453 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14454 ;;
14455 esac
14456 done
14457
14458 case $lt_echo in
14459 *'\$0 --fallback-echo"')
14460 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14461 ;;
14462 esac
14463
14464 cfgfile="$ofile"
14465
14466 cat <<__EOF__ >> "$cfgfile"
14467 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14468
14469 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14470
14471 # Shell to use when invoking shell scripts.
14472 SHELL=$lt_SHELL
14473
14474 # Whether or not to build shared libraries.
14475 build_libtool_libs=$enable_shared
14476
14477 # Whether or not to build static libraries.
14478 build_old_libs=$enable_static
14479
14480 # Whether or not to add -lc for building shared libraries.
14481 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14482
14483 # Whether or not to disallow shared libs when runtime libs are static
14484 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14485
14486 # Whether or not to optimize for fast installation.
14487 fast_install=$enable_fast_install
14488
14489 # The host system.
14490 host_alias=$host_alias
14491 host=$host
14492 host_os=$host_os
14493
14494 # The build system.
14495 build_alias=$build_alias
14496 build=$build
14497 build_os=$build_os
14498
14499 # An echo program that does not interpret backslashes.
14500 echo=$lt_echo
14501
14502 # The archiver.
14503 AR=$lt_AR
14504 AR_FLAGS=$lt_AR_FLAGS
14505
14506 # A C compiler.
14507 LTCC=$lt_LTCC
14508
14509 # LTCC compiler flags.
14510 LTCFLAGS=$lt_LTCFLAGS
14511
14512 # A language-specific compiler.
14513 CC=$lt_compiler_CXX
14514
14515 # Is the compiler the GNU C compiler?
14516 with_gcc=$GCC_CXX
14517
14518 # An ERE matcher.
14519 EGREP=$lt_EGREP
14520
14521 # The linker used to build libraries.
14522 LD=$lt_LD_CXX
14523
14524 # Whether we need hard or soft links.
14525 LN_S=$lt_LN_S
14526
14527 # A BSD-compatible nm program.
14528 NM=$lt_NM
14529
14530 # A symbol stripping program
14531 STRIP=$lt_STRIP
14532
14533 # Used to examine libraries when file_magic_cmd begins "file"
14534 MAGIC_CMD=$MAGIC_CMD
14535
14536 # Used on cygwin: DLL creation program.
14537 DLLTOOL="$DLLTOOL"
14538
14539 # Used on cygwin: object dumper.
14540 OBJDUMP="$OBJDUMP"
14541
14542 # Used on cygwin: assembler.
14543 AS="$AS"
14544
14545 # The name of the directory that contains temporary libtool files.
14546 objdir=$objdir
14547
14548 # How to create reloadable object files.
14549 reload_flag=$lt_reload_flag
14550 reload_cmds=$lt_reload_cmds
14551
14552 # How to pass a linker flag through the compiler.
14553 wl=$lt_lt_prog_compiler_wl_CXX
14554
14555 # Object file suffix (normally "o").
14556 objext="$ac_objext"
14557
14558 # Old archive suffix (normally "a").
14559 libext="$libext"
14560
14561 # Shared library suffix (normally ".so").
14562 shrext_cmds='$shrext_cmds'
14563
14564 # Executable file suffix (normally "").
14565 exeext="$exeext"
14566
14567 # Additional compiler flags for building library objects.
14568 pic_flag=$lt_lt_prog_compiler_pic_CXX
14569 pic_mode=$pic_mode
14570
14571 # What is the maximum length of a command?
14572 max_cmd_len=$lt_cv_sys_max_cmd_len
14573
14574 # Does compiler simultaneously support -c and -o options?
14575 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14576
14577 # Must we lock files when doing compilation?
14578 need_locks=$lt_need_locks
14579
14580 # Do we need the lib prefix for modules?
14581 need_lib_prefix=$need_lib_prefix
14582
14583 # Do we need a version for libraries?
14584 need_version=$need_version
14585
14586 # Whether dlopen is supported.
14587 dlopen_support=$enable_dlopen
14588
14589 # Whether dlopen of programs is supported.
14590 dlopen_self=$enable_dlopen_self
14591
14592 # Whether dlopen of statically linked programs is supported.
14593 dlopen_self_static=$enable_dlopen_self_static
14594
14595 # Compiler flag to prevent dynamic linking.
14596 link_static_flag=$lt_lt_prog_compiler_static_CXX
14597
14598 # Compiler flag to turn off builtin functions.
14599 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14600
14601 # Compiler flag to allow reflexive dlopens.
14602 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14603
14604 # Compiler flag to generate shared objects directly from archives.
14605 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14606
14607 # Compiler flag to generate thread-safe objects.
14608 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14609
14610 # Library versioning type.
14611 version_type=$version_type
14612
14613 # Format of library name prefix.
14614 libname_spec=$lt_libname_spec
14615
14616 # List of archive names. First name is the real one, the rest are links.
14617 # The last name is the one that the linker finds with -lNAME.
14618 library_names_spec=$lt_library_names_spec
14619
14620 # The coded name of the library, if different from the real name.
14621 soname_spec=$lt_soname_spec
14622
14623 # Commands used to build and install an old-style archive.
14624 RANLIB=$lt_RANLIB
14625 old_archive_cmds=$lt_old_archive_cmds_CXX
14626 old_postinstall_cmds=$lt_old_postinstall_cmds
14627 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14628
14629 # Create an old-style archive from a shared archive.
14630 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14631
14632 # Create a temporary old-style archive to link instead of a shared archive.
14633 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14634
14635 # Commands used to build and install a shared archive.
14636 archive_cmds=$lt_archive_cmds_CXX
14637 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14638 postinstall_cmds=$lt_postinstall_cmds
14639 postuninstall_cmds=$lt_postuninstall_cmds
14640
14641 # Commands used to build a loadable module (assumed same as above if empty)
14642 module_cmds=$lt_module_cmds_CXX
14643 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14644
14645 # Commands to strip libraries.
14646 old_striplib=$lt_old_striplib
14647 striplib=$lt_striplib
14648
14649 # Dependencies to place before the objects being linked to create a
14650 # shared library.
14651 predep_objects=$lt_predep_objects_CXX
14652
14653 # Dependencies to place after the objects being linked to create a
14654 # shared library.
14655 postdep_objects=$lt_postdep_objects_CXX
14656
14657 # Dependencies to place before the objects being linked to create a
14658 # shared library.
14659 predeps=$lt_predeps_CXX
14660
14661 # Dependencies to place after the objects being linked to create a
14662 # shared library.
14663 postdeps=$lt_postdeps_CXX
14664
14665 # The library search path used internally by the compiler when linking
14666 # a shared library.
14667 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14668
14669 # Method to check whether dependent libraries are shared objects.
14670 deplibs_check_method=$lt_deplibs_check_method
14671
14672 # Command to use when deplibs_check_method == file_magic.
14673 file_magic_cmd=$lt_file_magic_cmd
14674
14675 # Flag that allows shared libraries with undefined symbols to be built.
14676 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14677
14678 # Flag that forces no undefined symbols.
14679 no_undefined_flag=$lt_no_undefined_flag_CXX
14680
14681 # Commands used to finish a libtool library installation in a directory.
14682 finish_cmds=$lt_finish_cmds
14683
14684 # Same as above, but a single script fragment to be evaled but not shown.
14685 finish_eval=$lt_finish_eval
14686
14687 # Take the output of nm and produce a listing of raw symbols and C names.
14688 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14689
14690 # Transform the output of nm in a proper C declaration
14691 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14692
14693 # Transform the output of nm in a C name address pair
14694 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14695
14696 # This is the shared library runtime path variable.
14697 runpath_var=$runpath_var
14698
14699 # This is the shared library path variable.
14700 shlibpath_var=$shlibpath_var
14701
14702 # Is shlibpath searched before the hard-coded library search path?
14703 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14704
14705 # How to hardcode a shared library path into an executable.
14706 hardcode_action=$hardcode_action_CXX
14707
14708 # Whether we should hardcode library paths into libraries.
14709 hardcode_into_libs=$hardcode_into_libs
14710
14711 # Flag to hardcode \$libdir into a binary during linking.
14712 # This must work even if \$libdir does not exist.
14713 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14714
14715 # If ld is used when linking, flag to hardcode \$libdir into
14716 # a binary during linking. This must work even if \$libdir does
14717 # not exist.
14718 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14719
14720 # Whether we need a single -rpath flag with a separated argument.
14721 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14722
14723 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14724 # resulting binary.
14725 hardcode_direct=$hardcode_direct_CXX
14726
14727 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14728 # resulting binary.
14729 hardcode_minus_L=$hardcode_minus_L_CXX
14730
14731 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14732 # the resulting binary.
14733 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14734
14735 # Set to yes if building a shared library automatically hardcodes DIR into the library
14736 # and all subsequent libraries and executables linked against it.
14737 hardcode_automatic=$hardcode_automatic_CXX
14738
14739 # Variables whose values should be saved in libtool wrapper scripts and
14740 # restored at relink time.
14741 variables_saved_for_relink="$variables_saved_for_relink"
14742
14743 # Whether libtool must link a program against all its dependency libraries.
14744 link_all_deplibs=$link_all_deplibs_CXX
14745
14746 # Compile-time system search path for libraries
14747 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14748
14749 # Run-time system search path for libraries
14750 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14751
14752 # Fix the shell variable \$srcfile for the compiler.
14753 fix_srcfile_path="$fix_srcfile_path_CXX"
14754
14755 # Set to yes if exported symbols are required.
14756 always_export_symbols=$always_export_symbols_CXX
14757
14758 # The commands to list exported symbols.
14759 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14760
14761 # The commands to extract the exported symbol list from a shared archive.
14762 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14763
14764 # Symbols that should not be listed in the preloaded symbols.
14765 exclude_expsyms=$lt_exclude_expsyms_CXX
14766
14767 # Symbols that must always be exported.
14768 include_expsyms=$lt_include_expsyms_CXX
14769
14770 # ### END LIBTOOL TAG CONFIG: $tagname
14771
14772 __EOF__
14773
14774
14775 else
14776 # If there is no Makefile yet, we rely on a make rule to execute
14777 # `config.status --recheck' to rerun these tests and create the
14778 # libtool script then.
14779 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14780 if test -f "$ltmain_in"; then
14781 test -f Makefile && make "$ltmain"
14782 fi
14783 fi
14784
14785
14786 ac_ext=c
14787 ac_cpp='$CPP $CPPFLAGS'
14788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14791
14792 CC=$lt_save_CC
14793 LDCXX=$LD
14794 LD=$lt_save_LD
14795 GCC=$lt_save_GCC
14796 with_gnu_ldcxx=$with_gnu_ld
14797 with_gnu_ld=$lt_save_with_gnu_ld
14798 lt_cv_path_LDCXX=$lt_cv_path_LD
14799 lt_cv_path_LD=$lt_save_path_LD
14800 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14801 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14802
14803 else
14804 tagname=""
14805 fi
14806 ;;
14807
14808 F77)
14809 if test -n "$F77" && test "X$F77" != "Xno"; then
14810
14811 ac_ext=f
14812 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14813 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14814 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14815
14816
14817 archive_cmds_need_lc_F77=no
14818 allow_undefined_flag_F77=
14819 always_export_symbols_F77=no
14820 archive_expsym_cmds_F77=
14821 export_dynamic_flag_spec_F77=
14822 hardcode_direct_F77=no
14823 hardcode_libdir_flag_spec_F77=
14824 hardcode_libdir_flag_spec_ld_F77=
14825 hardcode_libdir_separator_F77=
14826 hardcode_minus_L_F77=no
14827 hardcode_automatic_F77=no
14828 module_cmds_F77=
14829 module_expsym_cmds_F77=
14830 link_all_deplibs_F77=unknown
14831 old_archive_cmds_F77=$old_archive_cmds
14832 no_undefined_flag_F77=
14833 whole_archive_flag_spec_F77=
14834 enable_shared_with_static_runtimes_F77=no
14835
14836 # Source file extension for f77 test sources.
14837 ac_ext=f
14838
14839 # Object file extension for compiled f77 test sources.
14840 objext=o
14841 objext_F77=$objext
14842
14843 # Code to be used in simple compile tests
14844 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14845
14846 # Code to be used in simple link tests
14847 lt_simple_link_test_code=" program t\n end\n"
14848
14849 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14850
14851 # If no C compiler was specified, use CC.
14852 LTCC=${LTCC-"$CC"}
14853
14854 # If no C compiler flags were specified, use CFLAGS.
14855 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14856
14857 # Allow CC to be a program name with arguments.
14858 compiler=$CC
14859
14860
14861 # save warnings/boilerplate of simple test code
14862 ac_outfile=conftest.$ac_objext
14863 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14864 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14865 _lt_compiler_boilerplate=`cat conftest.err`
14866 $rm conftest*
14867
14868 ac_outfile=conftest.$ac_objext
14869 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14870 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14871 _lt_linker_boilerplate=`cat conftest.err`
14872 $rm conftest*
14873
14874
14875 # Allow CC to be a program name with arguments.
14876 lt_save_CC="$CC"
14877 CC=${F77-"f77"}
14878 compiler=$CC
14879 compiler_F77=$CC
14880 for cc_temp in $compiler""; do
14881 case $cc_temp in
14882 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14883 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14884 \-*) ;;
14885 *) break;;
14886 esac
14887 done
14888 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14889
14890
14891 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14892 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14893 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14894 echo "${ECHO_T}$can_build_shared" >&6
14895
14896 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14897 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14898 test "$can_build_shared" = "no" && enable_shared=no
14899
14900 # On AIX, shared libraries and static libraries use the same namespace, and
14901 # are all built from PIC.
14902 case $host_os in
14903 aix3*)
14904 test "$enable_shared" = yes && enable_static=no
14905 if test -n "$RANLIB"; then
14906 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14907 postinstall_cmds='$RANLIB $lib'
14908 fi
14909 ;;
14910 aix4* | aix5*)
14911 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14912 test "$enable_shared" = yes && enable_static=no
14913 fi
14914 ;;
14915 esac
14916 echo "$as_me:$LINENO: result: $enable_shared" >&5
14917 echo "${ECHO_T}$enable_shared" >&6
14918
14919 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14920 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14921 # Make sure either enable_shared or enable_static is yes.
14922 test "$enable_shared" = yes || enable_static=yes
14923 echo "$as_me:$LINENO: result: $enable_static" >&5
14924 echo "${ECHO_T}$enable_static" >&6
14925
14926 GCC_F77="$G77"
14927 LD_F77="$LD"
14928
14929 lt_prog_compiler_wl_F77=
14930 lt_prog_compiler_pic_F77=
14931 lt_prog_compiler_static_F77=
14932
14933 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14934 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14935
14936 if test "$GCC" = yes; then
14937 lt_prog_compiler_wl_F77='-Wl,'
14938 lt_prog_compiler_static_F77='-static'
14939
14940 case $host_os in
14941 aix*)
14942 # All AIX code is PIC.
14943 if test "$host_cpu" = ia64; then
14944 # AIX 5 now supports IA64 processor
14945 lt_prog_compiler_static_F77='-Bstatic'
14946 fi
14947 ;;
14948
14949 amigaos*)
14950 # FIXME: we need at least 68020 code to build shared libraries, but
14951 # adding the `-m68020' flag to GCC prevents building anything better,
14952 # like `-m68040'.
14953 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14954 ;;
14955
14956 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14957 # PIC is the default for these OSes.
14958 ;;
14959
14960 mingw* | pw32* | os2*)
14961 # This hack is so that the source file can tell whether it is being
14962 # built for inclusion in a dll (and should export symbols for example).
14963 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14964 ;;
14965
14966 darwin* | rhapsody*)
14967 # PIC is the default on this platform
14968 # Common symbols not allowed in MH_DYLIB files
14969 lt_prog_compiler_pic_F77='-fno-common'
14970 ;;
14971
14972 interix3*)
14973 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14974 # Instead, we relocate shared libraries at runtime.
14975 ;;
14976
14977 msdosdjgpp*)
14978 # Just because we use GCC doesn't mean we suddenly get shared libraries
14979 # on systems that don't support them.
14980 lt_prog_compiler_can_build_shared_F77=no
14981 enable_shared=no
14982 ;;
14983
14984 sysv4*MP*)
14985 if test -d /usr/nec; then
14986 lt_prog_compiler_pic_F77=-Kconform_pic
14987 fi
14988 ;;
14989
14990 hpux*)
14991 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14992 # not for PA HP-UX.
14993 case $host_cpu in
14994 hppa*64*|ia64*)
14995 # +Z the default
14996 ;;
14997 *)
14998 lt_prog_compiler_pic_F77='-fPIC'
14999 ;;
15000 esac
15001 ;;
15002
15003 *)
15004 lt_prog_compiler_pic_F77='-fPIC'
15005 ;;
15006 esac
15007 else
15008 # PORTME Check for flag to pass linker flags through the system compiler.
15009 case $host_os in
15010 aix*)
15011 lt_prog_compiler_wl_F77='-Wl,'
15012 if test "$host_cpu" = ia64; then
15013 # AIX 5 now supports IA64 processor
15014 lt_prog_compiler_static_F77='-Bstatic'
15015 else
15016 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15017 fi
15018 ;;
15019 darwin*)
15020 # PIC is the default on this platform
15021 # Common symbols not allowed in MH_DYLIB files
15022 case $cc_basename in
15023 xlc*)
15024 lt_prog_compiler_pic_F77='-qnocommon'
15025 lt_prog_compiler_wl_F77='-Wl,'
15026 ;;
15027 esac
15028 ;;
15029
15030 mingw* | pw32* | os2*)
15031 # This hack is so that the source file can tell whether it is being
15032 # built for inclusion in a dll (and should export symbols for example).
15033 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15034 ;;
15035
15036 hpux9* | hpux10* | hpux11*)
15037 lt_prog_compiler_wl_F77='-Wl,'
15038 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15039 # not for PA HP-UX.
15040 case $host_cpu in
15041 hppa*64*|ia64*)
15042 # +Z the default
15043 ;;
15044 *)
15045 lt_prog_compiler_pic_F77='+Z'
15046 ;;
15047 esac
15048 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15049 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15050 ;;
15051
15052 irix5* | irix6* | nonstopux*)
15053 lt_prog_compiler_wl_F77='-Wl,'
15054 # PIC (with -KPIC) is the default.
15055 lt_prog_compiler_static_F77='-non_shared'
15056 ;;
15057
15058 newsos6)
15059 lt_prog_compiler_pic_F77='-KPIC'
15060 lt_prog_compiler_static_F77='-Bstatic'
15061 ;;
15062
15063 linux*)
15064 case $cc_basename in
15065 icc* | ecc*)
15066 lt_prog_compiler_wl_F77='-Wl,'
15067 lt_prog_compiler_pic_F77='-KPIC'
15068 lt_prog_compiler_static_F77='-static'
15069 ;;
15070 pgcc* | pgf77* | pgf90* | pgf95*)
15071 # Portland Group compilers (*not* the Pentium gcc compiler,
15072 # which looks to be a dead project)
15073 lt_prog_compiler_wl_F77='-Wl,'
15074 lt_prog_compiler_pic_F77='-fpic'
15075 lt_prog_compiler_static_F77='-Bstatic'
15076 ;;
15077 ccc*)
15078 lt_prog_compiler_wl_F77='-Wl,'
15079 # All Alpha code is PIC.
15080 lt_prog_compiler_static_F77='-non_shared'
15081 ;;
15082 esac
15083 ;;
15084
15085 osf3* | osf4* | osf5*)
15086 lt_prog_compiler_wl_F77='-Wl,'
15087 # All OSF/1 code is PIC.
15088 lt_prog_compiler_static_F77='-non_shared'
15089 ;;
15090
15091 solaris*)
15092 lt_prog_compiler_pic_F77='-KPIC'
15093 lt_prog_compiler_static_F77='-Bstatic'
15094 case $cc_basename in
15095 f77* | f90* | f95*)
15096 lt_prog_compiler_wl_F77='-Qoption ld ';;
15097 *)
15098 lt_prog_compiler_wl_F77='-Wl,';;
15099 esac
15100 ;;
15101
15102 sunos4*)
15103 lt_prog_compiler_wl_F77='-Qoption ld '
15104 lt_prog_compiler_pic_F77='-PIC'
15105 lt_prog_compiler_static_F77='-Bstatic'
15106 ;;
15107
15108 sysv4 | sysv4.2uw2* | sysv4.3*)
15109 lt_prog_compiler_wl_F77='-Wl,'
15110 lt_prog_compiler_pic_F77='-KPIC'
15111 lt_prog_compiler_static_F77='-Bstatic'
15112 ;;
15113
15114 sysv4*MP*)
15115 if test -d /usr/nec ;then
15116 lt_prog_compiler_pic_F77='-Kconform_pic'
15117 lt_prog_compiler_static_F77='-Bstatic'
15118 fi
15119 ;;
15120
15121 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15122 lt_prog_compiler_wl_F77='-Wl,'
15123 lt_prog_compiler_pic_F77='-KPIC'
15124 lt_prog_compiler_static_F77='-Bstatic'
15125 ;;
15126
15127 unicos*)
15128 lt_prog_compiler_wl_F77='-Wl,'
15129 lt_prog_compiler_can_build_shared_F77=no
15130 ;;
15131
15132 uts4*)
15133 lt_prog_compiler_pic_F77='-pic'
15134 lt_prog_compiler_static_F77='-Bstatic'
15135 ;;
15136
15137 *)
15138 lt_prog_compiler_can_build_shared_F77=no
15139 ;;
15140 esac
15141 fi
15142
15143 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15144 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15145
15146 #
15147 # Check to make sure the PIC flag actually works.
15148 #
15149 if test -n "$lt_prog_compiler_pic_F77"; then
15150
15151 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15152 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15153 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 else
15156 lt_prog_compiler_pic_works_F77=no
15157 ac_outfile=conftest.$ac_objext
15158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15159 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15160 # Insert the option either (1) after the last *FLAGS variable, or
15161 # (2) before a word containing "conftest.", or (3) at the end.
15162 # Note that $ac_compile itself does not contain backslashes and begins
15163 # with a dollar sign (not a hyphen), so the echo should work correctly.
15164 # The option is referenced via a variable to avoid confusing sed.
15165 lt_compile=`echo "$ac_compile" | $SED \
15166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15168 -e 's:$: $lt_compiler_flag:'`
15169 (eval echo "\"\$as_me:15169: $lt_compile\"" >&5)
15170 (eval "$lt_compile" 2>conftest.err)
15171 ac_status=$?
15172 cat conftest.err >&5
15173 echo "$as_me:15173: \$? = $ac_status" >&5
15174 if (exit $ac_status) && test -s "$ac_outfile"; then
15175 # The compiler can only warn and ignore the option if not recognized
15176 # So say no if there are warnings other than the usual output.
15177 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15179 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15180 lt_prog_compiler_pic_works_F77=yes
15181 fi
15182 fi
15183 $rm conftest*
15184
15185 fi
15186 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15187 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15188
15189 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15190 case $lt_prog_compiler_pic_F77 in
15191 "" | " "*) ;;
15192 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15193 esac
15194 else
15195 lt_prog_compiler_pic_F77=
15196 lt_prog_compiler_can_build_shared_F77=no
15197 fi
15198
15199 fi
15200 case $host_os in
15201 # For platforms which do not support PIC, -DPIC is meaningless:
15202 *djgpp*)
15203 lt_prog_compiler_pic_F77=
15204 ;;
15205 *)
15206 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15207 ;;
15208 esac
15209
15210 #
15211 # Check to make sure the static flag actually works.
15212 #
15213 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15214 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15215 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15216 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219 lt_prog_compiler_static_works_F77=no
15220 save_LDFLAGS="$LDFLAGS"
15221 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15222 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15224 # The linker can only warn and ignore the option if not recognized
15225 # So say no if there are warnings
15226 if test -s conftest.err; then
15227 # Append any errors to the config.log.
15228 cat conftest.err 1>&5
15229 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15231 if diff conftest.exp conftest.er2 >/dev/null; then
15232 lt_prog_compiler_static_works_F77=yes
15233 fi
15234 else
15235 lt_prog_compiler_static_works_F77=yes
15236 fi
15237 fi
15238 $rm conftest*
15239 LDFLAGS="$save_LDFLAGS"
15240
15241 fi
15242 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15243 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15244
15245 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15246 :
15247 else
15248 lt_prog_compiler_static_F77=
15249 fi
15250
15251
15252 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15253 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15254 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257 lt_cv_prog_compiler_c_o_F77=no
15258 $rm -r conftest 2>/dev/null
15259 mkdir conftest
15260 cd conftest
15261 mkdir out
15262 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15263
15264 lt_compiler_flag="-o out/conftest2.$ac_objext"
15265 # Insert the option either (1) after the last *FLAGS variable, or
15266 # (2) before a word containing "conftest.", or (3) at the end.
15267 # Note that $ac_compile itself does not contain backslashes and begins
15268 # with a dollar sign (not a hyphen), so the echo should work correctly.
15269 lt_compile=`echo "$ac_compile" | $SED \
15270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15272 -e 's:$: $lt_compiler_flag:'`
15273 (eval echo "\"\$as_me:15273: $lt_compile\"" >&5)
15274 (eval "$lt_compile" 2>out/conftest.err)
15275 ac_status=$?
15276 cat out/conftest.err >&5
15277 echo "$as_me:15277: \$? = $ac_status" >&5
15278 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15279 then
15280 # The compiler can only warn and ignore the option if not recognized
15281 # So say no if there are warnings
15282 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15283 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15284 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15285 lt_cv_prog_compiler_c_o_F77=yes
15286 fi
15287 fi
15288 chmod u+w . 2>&5
15289 $rm conftest*
15290 # SGI C++ compiler will create directory out/ii_files/ for
15291 # template instantiation
15292 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15293 $rm out/* && rmdir out
15294 cd ..
15295 rmdir conftest
15296 $rm conftest*
15297
15298 fi
15299 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15300 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15301
15302
15303 hard_links="nottested"
15304 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15305 # do not overwrite the value of need_locks provided by the user
15306 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15307 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15308 hard_links=yes
15309 $rm conftest*
15310 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15311 touch conftest.a
15312 ln conftest.a conftest.b 2>&5 || hard_links=no
15313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15314 echo "$as_me:$LINENO: result: $hard_links" >&5
15315 echo "${ECHO_T}$hard_links" >&6
15316 if test "$hard_links" = no; then
15317 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15318 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15319 need_locks=warn
15320 fi
15321 else
15322 need_locks=no
15323 fi
15324
15325 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15326 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15327
15328 runpath_var=
15329 allow_undefined_flag_F77=
15330 enable_shared_with_static_runtimes_F77=no
15331 archive_cmds_F77=
15332 archive_expsym_cmds_F77=
15333 old_archive_From_new_cmds_F77=
15334 old_archive_from_expsyms_cmds_F77=
15335 export_dynamic_flag_spec_F77=
15336 whole_archive_flag_spec_F77=
15337 thread_safe_flag_spec_F77=
15338 hardcode_libdir_flag_spec_F77=
15339 hardcode_libdir_flag_spec_ld_F77=
15340 hardcode_libdir_separator_F77=
15341 hardcode_direct_F77=no
15342 hardcode_minus_L_F77=no
15343 hardcode_shlibpath_var_F77=unsupported
15344 link_all_deplibs_F77=unknown
15345 hardcode_automatic_F77=no
15346 module_cmds_F77=
15347 module_expsym_cmds_F77=
15348 always_export_symbols_F77=no
15349 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15350 # include_expsyms should be a list of space-separated symbols to be *always*
15351 # included in the symbol list
15352 include_expsyms_F77=
15353 # exclude_expsyms can be an extended regexp of symbols to exclude
15354 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15355 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15356 # as well as any symbol that contains `d'.
15357 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15358 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15359 # platforms (ab)use it in PIC code, but their linkers get confused if
15360 # the symbol is explicitly referenced. Since portable code cannot
15361 # rely on this symbol name, it's probably fine to never include it in
15362 # preloaded symbol tables.
15363 extract_expsyms_cmds=
15364 # Just being paranoid about ensuring that cc_basename is set.
15365 for cc_temp in $compiler""; do
15366 case $cc_temp in
15367 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15368 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15369 \-*) ;;
15370 *) break;;
15371 esac
15372 done
15373 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15374
15375 case $host_os in
15376 cygwin* | mingw* | pw32*)
15377 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15378 # When not using gcc, we currently assume that we are using
15379 # Microsoft Visual C++.
15380 if test "$GCC" != yes; then
15381 with_gnu_ld=no
15382 fi
15383 ;;
15384 interix*)
15385 # we just hope/assume this is gcc and not c89 (= MSVC++)
15386 with_gnu_ld=yes
15387 ;;
15388 openbsd*)
15389 with_gnu_ld=no
15390 ;;
15391 esac
15392
15393 ld_shlibs_F77=yes
15394 if test "$with_gnu_ld" = yes; then
15395 # If archive_cmds runs LD, not CC, wlarc should be empty
15396 wlarc='${wl}'
15397
15398 # Set some defaults for GNU ld with shared library support. These
15399 # are reset later if shared libraries are not supported. Putting them
15400 # here allows them to be overridden if necessary.
15401 runpath_var=LD_RUN_PATH
15402 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15403 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15404 # ancient GNU ld didn't support --whole-archive et. al.
15405 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15406 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15407 else
15408 whole_archive_flag_spec_F77=
15409 fi
15410 supports_anon_versioning=no
15411 case `$LD -v 2>/dev/null` in
15412 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15413 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15414 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15415 *\ 2.11.*) ;; # other 2.11 versions
15416 *) supports_anon_versioning=yes ;;
15417 esac
15418
15419 # See if GNU ld supports shared libraries.
15420 case $host_os in
15421 aix3* | aix4* | aix5*)
15422 # On AIX/PPC, the GNU linker is very broken
15423 if test "$host_cpu" != ia64; then
15424 ld_shlibs_F77=no
15425 cat <<EOF 1>&2
15426
15427 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15428 *** to be unable to reliably create shared libraries on AIX.
15429 *** Therefore, libtool is disabling shared libraries support. If you
15430 *** really care for shared libraries, you may want to modify your PATH
15431 *** so that a non-GNU linker is found, and then restart.
15432
15433 EOF
15434 fi
15435 ;;
15436
15437 amigaos*)
15438 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)'
15439 hardcode_libdir_flag_spec_F77='-L$libdir'
15440 hardcode_minus_L_F77=yes
15441
15442 # Samuel A. Falvo II <[email protected]> reports
15443 # that the semantics of dynamic libraries on AmigaOS, at least up
15444 # to version 4, is to share data among multiple programs linked
15445 # with the same dynamic library. Since this doesn't match the
15446 # behavior of shared libraries on other platforms, we can't use
15447 # them.
15448 ld_shlibs_F77=no
15449 ;;
15450
15451 beos*)
15452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15453 allow_undefined_flag_F77=unsupported
15454 # Joseph Beckenbach <[email protected]> says some releases of gcc
15455 # support --undefined. This deserves some investigation. FIXME
15456 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15457 else
15458 ld_shlibs_F77=no
15459 fi
15460 ;;
15461
15462 cygwin* | mingw* | pw32*)
15463 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15464 # as there is no search path for DLLs.
15465 hardcode_libdir_flag_spec_F77='-L$libdir'
15466 allow_undefined_flag_F77=unsupported
15467 always_export_symbols_F77=no
15468 enable_shared_with_static_runtimes_F77=yes
15469 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15470
15471 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15472 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15473 # If the export-symbols file already is a .def file (1st line
15474 # is EXPORTS), use it as is; otherwise, prepend...
15475 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15476 cp $export_symbols $output_objdir/$soname.def;
15477 else
15478 echo EXPORTS > $output_objdir/$soname.def;
15479 cat $export_symbols >> $output_objdir/$soname.def;
15480 fi~
15481 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15482 else
15483 ld_shlibs_F77=no
15484 fi
15485 ;;
15486
15487 interix3*)
15488 hardcode_direct_F77=no
15489 hardcode_shlibpath_var_F77=no
15490 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15491 export_dynamic_flag_spec_F77='${wl}-E'
15492 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15493 # Instead, shared libraries are loaded at an image base (0x10000000 by
15494 # default) and relocated if they conflict, which is a slow very memory
15495 # consuming and fragmenting process. To avoid this, we pick a random,
15496 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15497 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15498 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'
15499 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'
15500 ;;
15501
15502 linux*)
15503 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15504 tmp_addflag=
15505 case $cc_basename,$host_cpu in
15506 pgcc*) # Portland Group C compiler
15507 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'
15508 tmp_addflag=' $pic_flag'
15509 ;;
15510 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15511 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'
15512 tmp_addflag=' $pic_flag -Mnomain' ;;
15513 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15514 tmp_addflag=' -i_dynamic' ;;
15515 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15516 tmp_addflag=' -i_dynamic -nofor_main' ;;
15517 ifc* | ifort*) # Intel Fortran compiler
15518 tmp_addflag=' -nofor_main' ;;
15519 esac
15520 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15521
15522 if test $supports_anon_versioning = yes; then
15523 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15525 $echo "local: *; };" >> $output_objdir/$libname.ver~
15526 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15527 fi
15528 else
15529 ld_shlibs_F77=no
15530 fi
15531 ;;
15532
15533 netbsd*)
15534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15535 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15536 wlarc=
15537 else
15538 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15539 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15540 fi
15541 ;;
15542
15543 solaris*)
15544 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15545 ld_shlibs_F77=no
15546 cat <<EOF 1>&2
15547
15548 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15549 *** create shared libraries on Solaris systems. Therefore, libtool
15550 *** is disabling shared libraries support. We urge you to upgrade GNU
15551 *** binutils to release 2.9.1 or newer. Another option is to modify
15552 *** your PATH or compiler configuration so that the native linker is
15553 *** used, and then restart.
15554
15555 EOF
15556 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15557 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15558 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15559 else
15560 ld_shlibs_F77=no
15561 fi
15562 ;;
15563
15564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15565 case `$LD -v 2>&1` in
15566 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15567 ld_shlibs_F77=no
15568 cat <<_LT_EOF 1>&2
15569
15570 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15571 *** reliably create shared libraries on SCO systems. Therefore, libtool
15572 *** is disabling shared libraries support. We urge you to upgrade GNU
15573 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15574 *** your PATH or compiler configuration so that the native linker is
15575 *** used, and then restart.
15576
15577 _LT_EOF
15578 ;;
15579 *)
15580 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15581 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15582 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15583 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15584 else
15585 ld_shlibs_F77=no
15586 fi
15587 ;;
15588 esac
15589 ;;
15590
15591 sunos4*)
15592 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15593 wlarc=
15594 hardcode_direct_F77=yes
15595 hardcode_shlibpath_var_F77=no
15596 ;;
15597
15598 *)
15599 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15600 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15601 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15602 else
15603 ld_shlibs_F77=no
15604 fi
15605 ;;
15606 esac
15607
15608 if test "$ld_shlibs_F77" = no; then
15609 runpath_var=
15610 hardcode_libdir_flag_spec_F77=
15611 export_dynamic_flag_spec_F77=
15612 whole_archive_flag_spec_F77=
15613 fi
15614 else
15615 # PORTME fill in a description of your system's linker (not GNU ld)
15616 case $host_os in
15617 aix3*)
15618 allow_undefined_flag_F77=unsupported
15619 always_export_symbols_F77=yes
15620 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'
15621 # Note: this linker hardcodes the directories in LIBPATH if there
15622 # are no directories specified by -L.
15623 hardcode_minus_L_F77=yes
15624 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15625 # Neither direct hardcoding nor static linking is supported with a
15626 # broken collect2.
15627 hardcode_direct_F77=unsupported
15628 fi
15629 ;;
15630
15631 aix4* | aix5*)
15632 if test "$host_cpu" = ia64; then
15633 # On IA64, the linker does run time linking by default, so we don't
15634 # have to do anything special.
15635 aix_use_runtimelinking=no
15636 exp_sym_flag='-Bexport'
15637 no_entry_flag=""
15638 else
15639 # If we're using GNU nm, then we don't want the "-C" option.
15640 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15641 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15642 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'
15643 else
15644 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'
15645 fi
15646 aix_use_runtimelinking=no
15647
15648 # Test if we are trying to use run time linking or normal
15649 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15650 # need to do runtime linking.
15651 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15652 for ld_flag in $LDFLAGS; do
15653 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15654 aix_use_runtimelinking=yes
15655 break
15656 fi
15657 done
15658 ;;
15659 esac
15660
15661 exp_sym_flag='-bexport'
15662 no_entry_flag='-bnoentry'
15663 fi
15664
15665 # When large executables or shared objects are built, AIX ld can
15666 # have problems creating the table of contents. If linking a library
15667 # or program results in "error TOC overflow" add -mminimal-toc to
15668 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15669 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15670
15671 archive_cmds_F77=''
15672 hardcode_direct_F77=yes
15673 hardcode_libdir_separator_F77=':'
15674 link_all_deplibs_F77=yes
15675
15676 if test "$GCC" = yes; then
15677 case $host_os in aix4.[012]|aix4.[012].*)
15678 # We only want to do this on AIX 4.2 and lower, the check
15679 # below for broken collect2 doesn't work under 4.3+
15680 collect2name=`${CC} -print-prog-name=collect2`
15681 if test -f "$collect2name" && \
15682 strings "$collect2name" | grep resolve_lib_name >/dev/null
15683 then
15684 # We have reworked collect2
15685 hardcode_direct_F77=yes
15686 else
15687 # We have old collect2
15688 hardcode_direct_F77=unsupported
15689 # It fails to find uninstalled libraries when the uninstalled
15690 # path is not listed in the libpath. Setting hardcode_minus_L
15691 # to unsupported forces relinking
15692 hardcode_minus_L_F77=yes
15693 hardcode_libdir_flag_spec_F77='-L$libdir'
15694 hardcode_libdir_separator_F77=
15695 fi
15696 ;;
15697 esac
15698 shared_flag='-shared'
15699 if test "$aix_use_runtimelinking" = yes; then
15700 shared_flag="$shared_flag "'${wl}-G'
15701 fi
15702 else
15703 # not using gcc
15704 if test "$host_cpu" = ia64; then
15705 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15706 # chokes on -Wl,-G. The following line is correct:
15707 shared_flag='-G'
15708 else
15709 if test "$aix_use_runtimelinking" = yes; then
15710 shared_flag='${wl}-G'
15711 else
15712 shared_flag='${wl}-bM:SRE'
15713 fi
15714 fi
15715 fi
15716
15717 # It seems that -bexpall does not export symbols beginning with
15718 # underscore (_), so it is better to generate a list of symbols to export.
15719 always_export_symbols_F77=yes
15720 if test "$aix_use_runtimelinking" = yes; then
15721 # Warning - without using the other runtime loading flags (-brtl),
15722 # -berok will link without error, but may produce a broken library.
15723 allow_undefined_flag_F77='-berok'
15724 # Determine the default libpath from the value encoded in an empty executable.
15725 cat >conftest.$ac_ext <<_ACEOF
15726 program main
15727
15728 end
15729 _ACEOF
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15732 (eval $ac_link) 2>conftest.er1
15733 ac_status=$?
15734 grep -v '^ *+' conftest.er1 >conftest.err
15735 rm -f conftest.er1
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try='test -z "$ac_f77_werror_flag"
15740 || test ! -s conftest.err'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } &&
15746 { ac_try='test -s conftest$ac_exeext'
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752
15753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15754 }'`
15755 # Check for a 64-bit object if we didn't find anything.
15756 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; }
15757 }'`; fi
15758 else
15759 echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15761
15762 fi
15763 rm -f conftest.err conftest.$ac_objext \
15764 conftest$ac_exeext conftest.$ac_ext
15765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15766
15767 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15768 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"
15769 else
15770 if test "$host_cpu" = ia64; then
15771 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15772 allow_undefined_flag_F77="-z nodefs"
15773 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"
15774 else
15775 # Determine the default libpath from the value encoded in an empty executable.
15776 cat >conftest.$ac_ext <<_ACEOF
15777 program main
15778
15779 end
15780 _ACEOF
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15783 (eval $ac_link) 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try='test -z "$ac_f77_werror_flag"
15791 || test ! -s conftest.err'
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; } &&
15797 { ac_try='test -s conftest$ac_exeext'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15800 ac_status=$?
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; }; then
15803
15804 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15805 }'`
15806 # Check for a 64-bit object if we didn't find anything.
15807 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; }
15808 }'`; fi
15809 else
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15812
15813 fi
15814 rm -f conftest.err conftest.$ac_objext \
15815 conftest$ac_exeext conftest.$ac_ext
15816 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15817
15818 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15819 # Warning - without using the other run time loading flags,
15820 # -berok will link without error, but may produce a broken library.
15821 no_undefined_flag_F77=' ${wl}-bernotok'
15822 allow_undefined_flag_F77=' ${wl}-berok'
15823 # Exported symbols can be pulled into shared objects from archives
15824 whole_archive_flag_spec_F77='$convenience'
15825 archive_cmds_need_lc_F77=yes
15826 # This is similar to how AIX traditionally builds its shared libraries.
15827 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'
15828 fi
15829 fi
15830 ;;
15831
15832 amigaos*)
15833 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)'
15834 hardcode_libdir_flag_spec_F77='-L$libdir'
15835 hardcode_minus_L_F77=yes
15836 # see comment about different semantics on the GNU ld section
15837 ld_shlibs_F77=no
15838 ;;
15839
15840 bsdi[45]*)
15841 export_dynamic_flag_spec_F77=-rdynamic
15842 ;;
15843
15844 cygwin* | mingw* | pw32*)
15845 # When not using gcc, we currently assume that we are using
15846 # Microsoft Visual C++.
15847 # hardcode_libdir_flag_spec is actually meaningless, as there is
15848 # no search path for DLLs.
15849 hardcode_libdir_flag_spec_F77=' '
15850 allow_undefined_flag_F77=unsupported
15851 # Tell ltmain to make .lib files, not .a files.
15852 libext=lib
15853 # Tell ltmain to make .dll files, not .so files.
15854 shrext_cmds=".dll"
15855 # FIXME: Setting linknames here is a bad hack.
15856 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15857 # The linker will automatically build a .lib file if we build a DLL.
15858 old_archive_From_new_cmds_F77='true'
15859 # FIXME: Should let the user specify the lib program.
15860 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15861 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15862 enable_shared_with_static_runtimes_F77=yes
15863 ;;
15864
15865 darwin* | rhapsody*)
15866 case $host_os in
15867 rhapsody* | darwin1.[012])
15868 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15869 ;;
15870 *) # Darwin 1.3 on
15871 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15872 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15873 else
15874 case ${MACOSX_DEPLOYMENT_TARGET} in
15875 10.[012])
15876 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15877 ;;
15878 10.*)
15879 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15880 ;;
15881 esac
15882 fi
15883 ;;
15884 esac
15885 archive_cmds_need_lc_F77=no
15886 hardcode_direct_F77=no
15887 hardcode_automatic_F77=yes
15888 hardcode_shlibpath_var_F77=unsupported
15889 whole_archive_flag_spec_F77=''
15890 link_all_deplibs_F77=yes
15891 if test "$GCC" = yes ; then
15892 output_verbose_link_cmd='echo'
15893 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15894 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15895 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15896 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}'
15897 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}'
15898 else
15899 case $cc_basename in
15900 xlc*)
15901 output_verbose_link_cmd='echo'
15902 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15903 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15904 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15905 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}'
15906 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}'
15907 ;;
15908 *)
15909 ld_shlibs_F77=no
15910 ;;
15911 esac
15912 fi
15913 ;;
15914
15915 dgux*)
15916 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15917 hardcode_libdir_flag_spec_F77='-L$libdir'
15918 hardcode_shlibpath_var_F77=no
15919 ;;
15920
15921 freebsd1*)
15922 ld_shlibs_F77=no
15923 ;;
15924
15925 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15926 # support. Future versions do this automatically, but an explicit c++rt0.o
15927 # does not break anything, and helps significantly (at the cost of a little
15928 # extra space).
15929 freebsd2.2*)
15930 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15931 hardcode_libdir_flag_spec_F77='-R$libdir'
15932 hardcode_direct_F77=yes
15933 hardcode_shlibpath_var_F77=no
15934 ;;
15935
15936 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15937 freebsd2*)
15938 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15939 hardcode_direct_F77=yes
15940 hardcode_minus_L_F77=yes
15941 hardcode_shlibpath_var_F77=no
15942 ;;
15943
15944 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15945 freebsd* | kfreebsd*-gnu | dragonfly*)
15946 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15947 hardcode_libdir_flag_spec_F77='-R$libdir'
15948 hardcode_direct_F77=yes
15949 hardcode_shlibpath_var_F77=no
15950 ;;
15951
15952 hpux9*)
15953 if test "$GCC" = yes; then
15954 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'
15955 else
15956 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'
15957 fi
15958 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15959 hardcode_libdir_separator_F77=:
15960 hardcode_direct_F77=yes
15961
15962 # hardcode_minus_L: Not really in the search PATH,
15963 # but as the default location of the library.
15964 hardcode_minus_L_F77=yes
15965 export_dynamic_flag_spec_F77='${wl}-E'
15966 ;;
15967
15968 hpux10*)
15969 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15970 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15971 else
15972 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15973 fi
15974 if test "$with_gnu_ld" = no; then
15975 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15976 hardcode_libdir_separator_F77=:
15977
15978 hardcode_direct_F77=yes
15979 export_dynamic_flag_spec_F77='${wl}-E'
15980
15981 # hardcode_minus_L: Not really in the search PATH,
15982 # but as the default location of the library.
15983 hardcode_minus_L_F77=yes
15984 fi
15985 ;;
15986
15987 hpux11*)
15988 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15989 case $host_cpu in
15990 hppa*64*)
15991 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15992 ;;
15993 ia64*)
15994 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15995 ;;
15996 *)
15997 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15998 ;;
15999 esac
16000 else
16001 case $host_cpu in
16002 hppa*64*)
16003 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16004 ;;
16005 ia64*)
16006 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16007 ;;
16008 *)
16009 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16010 ;;
16011 esac
16012 fi
16013 if test "$with_gnu_ld" = no; then
16014 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16015 hardcode_libdir_separator_F77=:
16016
16017 case $host_cpu in
16018 hppa*64*|ia64*)
16019 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16020 hardcode_direct_F77=no
16021 hardcode_shlibpath_var_F77=no
16022 ;;
16023 *)
16024 hardcode_direct_F77=yes
16025 export_dynamic_flag_spec_F77='${wl}-E'
16026
16027 # hardcode_minus_L: Not really in the search PATH,
16028 # but as the default location of the library.
16029 hardcode_minus_L_F77=yes
16030 ;;
16031 esac
16032 fi
16033 ;;
16034
16035 irix5* | irix6* | nonstopux*)
16036 if test "$GCC" = yes; then
16037 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'
16038 else
16039 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'
16040 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16041 fi
16042 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16043 hardcode_libdir_separator_F77=:
16044 link_all_deplibs_F77=yes
16045 ;;
16046
16047 netbsd*)
16048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16049 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16050 else
16051 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16052 fi
16053 hardcode_libdir_flag_spec_F77='-R$libdir'
16054 hardcode_direct_F77=yes
16055 hardcode_shlibpath_var_F77=no
16056 ;;
16057
16058 newsos6)
16059 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060 hardcode_direct_F77=yes
16061 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16062 hardcode_libdir_separator_F77=:
16063 hardcode_shlibpath_var_F77=no
16064 ;;
16065
16066 openbsd*)
16067 hardcode_direct_F77=yes
16068 hardcode_shlibpath_var_F77=no
16069 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16070 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16071 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16072 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16073 export_dynamic_flag_spec_F77='${wl}-E'
16074 else
16075 case $host_os in
16076 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16077 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16078 hardcode_libdir_flag_spec_F77='-R$libdir'
16079 ;;
16080 *)
16081 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16082 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16083 ;;
16084 esac
16085 fi
16086 ;;
16087
16088 os2*)
16089 hardcode_libdir_flag_spec_F77='-L$libdir'
16090 hardcode_minus_L_F77=yes
16091 allow_undefined_flag_F77=unsupported
16092 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'
16093 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16094 ;;
16095
16096 osf3*)
16097 if test "$GCC" = yes; then
16098 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16099 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'
16100 else
16101 allow_undefined_flag_F77=' -expect_unresolved \*'
16102 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'
16103 fi
16104 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16105 hardcode_libdir_separator_F77=:
16106 ;;
16107
16108 osf4* | osf5*) # as osf3* with the addition of -msym flag
16109 if test "$GCC" = yes; then
16110 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16111 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'
16112 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16113 else
16114 allow_undefined_flag_F77=' -expect_unresolved \*'
16115 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'
16116 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~
16117 $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'
16118
16119 # Both c and cxx compiler support -rpath directly
16120 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16121 fi
16122 hardcode_libdir_separator_F77=:
16123 ;;
16124
16125 solaris*)
16126 no_undefined_flag_F77=' -z text'
16127 if test "$GCC" = yes; then
16128 wlarc='${wl}'
16129 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16130 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16131 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16132 else
16133 wlarc=''
16134 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16136 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16137 fi
16138 hardcode_libdir_flag_spec_F77='-R$libdir'
16139 hardcode_shlibpath_var_F77=no
16140 case $host_os in
16141 solaris2.[0-5] | solaris2.[0-5].*) ;;
16142 *)
16143 # The compiler driver will combine linker options so we
16144 # cannot just pass the convience library names through
16145 # without $wl, iff we do not link with $LD.
16146 # Luckily, gcc supports the same syntax we need for Sun Studio.
16147 # Supported since Solaris 2.6 (maybe 2.5.1?)
16148 case $wlarc in
16149 '')
16150 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16151 *)
16152 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' ;;
16153 esac ;;
16154 esac
16155 link_all_deplibs_F77=yes
16156 ;;
16157
16158 sunos4*)
16159 if test "x$host_vendor" = xsequent; then
16160 # Use $CC to link under sequent, because it throws in some extra .o
16161 # files that make .init and .fini sections work.
16162 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16163 else
16164 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16165 fi
16166 hardcode_libdir_flag_spec_F77='-L$libdir'
16167 hardcode_direct_F77=yes
16168 hardcode_minus_L_F77=yes
16169 hardcode_shlibpath_var_F77=no
16170 ;;
16171
16172 sysv4)
16173 case $host_vendor in
16174 sni)
16175 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16176 hardcode_direct_F77=yes # is this really true???
16177 ;;
16178 siemens)
16179 ## LD is ld it makes a PLAMLIB
16180 ## CC just makes a GrossModule.
16181 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16182 reload_cmds_F77='$CC -r -o $output$reload_objs'
16183 hardcode_direct_F77=no
16184 ;;
16185 motorola)
16186 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16188 ;;
16189 esac
16190 runpath_var='LD_RUN_PATH'
16191 hardcode_shlibpath_var_F77=no
16192 ;;
16193
16194 sysv4.3*)
16195 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16196 hardcode_shlibpath_var_F77=no
16197 export_dynamic_flag_spec_F77='-Bexport'
16198 ;;
16199
16200 sysv4*MP*)
16201 if test -d /usr/nec; then
16202 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16203 hardcode_shlibpath_var_F77=no
16204 runpath_var=LD_RUN_PATH
16205 hardcode_runpath_var=yes
16206 ld_shlibs_F77=yes
16207 fi
16208 ;;
16209
16210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16211 no_undefined_flag_F77='${wl}-z,text'
16212 archive_cmds_need_lc_F77=no
16213 hardcode_shlibpath_var_F77=no
16214 runpath_var='LD_RUN_PATH'
16215
16216 if test "$GCC" = yes; then
16217 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16218 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16219 else
16220 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16221 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16222 fi
16223 ;;
16224
16225 sysv5* | sco3.2v5* | sco5v6*)
16226 # Note: We can NOT use -z defs as we might desire, because we do not
16227 # link with -lc, and that would cause any symbols used from libc to
16228 # always be unresolved, which means just about no library would
16229 # ever link correctly. If we're not using GNU ld we use -z text
16230 # though, which does catch some bad symbols but isn't as heavy-handed
16231 # as -z defs.
16232 no_undefined_flag_F77='${wl}-z,text'
16233 allow_undefined_flag_F77='${wl}-z,nodefs'
16234 archive_cmds_need_lc_F77=no
16235 hardcode_shlibpath_var_F77=no
16236 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16237 hardcode_libdir_separator_F77=':'
16238 link_all_deplibs_F77=yes
16239 export_dynamic_flag_spec_F77='${wl}-Bexport'
16240 runpath_var='LD_RUN_PATH'
16241
16242 if test "$GCC" = yes; then
16243 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16244 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16245 else
16246 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16247 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16248 fi
16249 ;;
16250
16251 uts4*)
16252 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16253 hardcode_libdir_flag_spec_F77='-L$libdir'
16254 hardcode_shlibpath_var_F77=no
16255 ;;
16256
16257 *)
16258 ld_shlibs_F77=no
16259 ;;
16260 esac
16261 fi
16262
16263 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16264 echo "${ECHO_T}$ld_shlibs_F77" >&6
16265 test "$ld_shlibs_F77" = no && can_build_shared=no
16266
16267 #
16268 # Do we need to explicitly link libc?
16269 #
16270 case "x$archive_cmds_need_lc_F77" in
16271 x|xyes)
16272 # Assume -lc should be added
16273 archive_cmds_need_lc_F77=yes
16274
16275 if test "$enable_shared" = yes && test "$GCC" = yes; then
16276 case $archive_cmds_F77 in
16277 *'~'*)
16278 # FIXME: we may have to deal with multi-command sequences.
16279 ;;
16280 '$CC '*)
16281 # Test whether the compiler implicitly links with -lc since on some
16282 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16283 # to ld, don't add -lc before -lgcc.
16284 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16285 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16286 $rm conftest*
16287 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16288
16289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16290 (eval $ac_compile) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } 2>conftest.err; then
16294 soname=conftest
16295 lib=conftest
16296 libobjs=conftest.$ac_objext
16297 deplibs=
16298 wl=$lt_prog_compiler_wl_F77
16299 pic_flag=$lt_prog_compiler_pic_F77
16300 compiler_flags=-v
16301 linker_flags=-v
16302 verstring=
16303 output_objdir=.
16304 libname=conftest
16305 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16306 allow_undefined_flag_F77=
16307 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16308 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }
16312 then
16313 archive_cmds_need_lc_F77=no
16314 else
16315 archive_cmds_need_lc_F77=yes
16316 fi
16317 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16318 else
16319 cat conftest.err 1>&5
16320 fi
16321 $rm conftest*
16322 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16323 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16324 ;;
16325 esac
16326 fi
16327 ;;
16328 esac
16329
16330 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16331 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16332 library_names_spec=
16333 libname_spec='lib$name'
16334 soname_spec=
16335 shrext_cmds=".so"
16336 postinstall_cmds=
16337 postuninstall_cmds=
16338 finish_cmds=
16339 finish_eval=
16340 shlibpath_var=
16341 shlibpath_overrides_runpath=unknown
16342 version_type=none
16343 dynamic_linker="$host_os ld.so"
16344 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16345 if test "$GCC" = yes; then
16346 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16347 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16348 # if the path contains ";" then we assume it to be the separator
16349 # otherwise default to the standard path separator (i.e. ":") - it is
16350 # assumed that no part of a normal pathname contains ";" but that should
16351 # okay in the real world where ";" in dirpaths is itself problematic.
16352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16353 else
16354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16355 fi
16356 else
16357 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16358 fi
16359 need_lib_prefix=unknown
16360 hardcode_into_libs=no
16361
16362 # when you set need_version to no, make sure it does not cause -set_version
16363 # flags to be left without arguments
16364 need_version=unknown
16365
16366 case $host_os in
16367 aix3*)
16368 version_type=linux
16369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16370 shlibpath_var=LIBPATH
16371
16372 # AIX 3 has no versioning support, so we append a major version to the name.
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 ;;
16375
16376 aix4* | aix5*)
16377 version_type=linux
16378 need_lib_prefix=no
16379 need_version=no
16380 hardcode_into_libs=yes
16381 if test "$host_cpu" = ia64; then
16382 # AIX 5 supports IA64
16383 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16384 shlibpath_var=LD_LIBRARY_PATH
16385 else
16386 # With GCC up to 2.95.x, collect2 would create an import file
16387 # for dependence libraries. The import file would start with
16388 # the line `#! .'. This would cause the generated library to
16389 # depend on `.', always an invalid library. This was fixed in
16390 # development snapshots of GCC prior to 3.0.
16391 case $host_os in
16392 aix4 | aix4.[01] | aix4.[01].*)
16393 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16394 echo ' yes '
16395 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16396 :
16397 else
16398 can_build_shared=no
16399 fi
16400 ;;
16401 esac
16402 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16403 # soname into executable. Probably we can add versioning support to
16404 # collect2, so additional links can be useful in future.
16405 if test "$aix_use_runtimelinking" = yes; then
16406 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16407 # instead of lib<name>.a to let people know that these are not
16408 # typical AIX shared libraries.
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 else
16411 # We preserve .a as extension for shared libraries through AIX4.2
16412 # and later when we are not doing run time linking.
16413 library_names_spec='${libname}${release}.a $libname.a'
16414 soname_spec='${libname}${release}${shared_ext}$major'
16415 fi
16416 shlibpath_var=LIBPATH
16417 fi
16418 ;;
16419
16420 amigaos*)
16421 library_names_spec='$libname.ixlibrary $libname.a'
16422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16423 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'
16424 ;;
16425
16426 beos*)
16427 library_names_spec='${libname}${shared_ext}'
16428 dynamic_linker="$host_os ld.so"
16429 shlibpath_var=LIBRARY_PATH
16430 ;;
16431
16432 bsdi[45]*)
16433 version_type=linux
16434 need_version=no
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 soname_spec='${libname}${release}${shared_ext}$major'
16437 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16440 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16441 # the default ld.so.conf also contains /usr/contrib/lib and
16442 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16443 # libtool to hard-code these into programs
16444 ;;
16445
16446 cygwin* | mingw* | pw32*)
16447 version_type=windows
16448 shrext_cmds=".dll"
16449 need_version=no
16450 need_lib_prefix=no
16451
16452 case $GCC,$host_os in
16453 yes,cygwin* | yes,mingw* | yes,pw32*)
16454 library_names_spec='$libname.dll.a'
16455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16456 postinstall_cmds='base_file=`basename \${file}`~
16457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16458 dldir=$destdir/`dirname \$dlpath`~
16459 test -d \$dldir || mkdir -p \$dldir~
16460 $install_prog $dir/$dlname \$dldir/$dlname~
16461 chmod a+x \$dldir/$dlname'
16462 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16463 dlpath=$dir/\$dldll~
16464 $rm \$dlpath'
16465 shlibpath_overrides_runpath=yes
16466
16467 case $host_os in
16468 cygwin*)
16469 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16470 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16471 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16472 ;;
16473 mingw*)
16474 # MinGW DLLs use traditional 'lib' prefix
16475 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16476 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16477 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16478 # It is most probably a Windows format PATH printed by
16479 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16480 # path with ; separators, and with drive letters. We can handle the
16481 # drive letters (cygwin fileutils understands them), so leave them,
16482 # especially as we might pass files found there to a mingw objdump,
16483 # which wouldn't understand a cygwinified path. Ahh.
16484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16485 else
16486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16487 fi
16488 ;;
16489 pw32*)
16490 # pw32 DLLs use 'pw' prefix rather than 'lib'
16491 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16492 ;;
16493 esac
16494 ;;
16495
16496 *)
16497 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16498 ;;
16499 esac
16500 dynamic_linker='Win32 ld.exe'
16501 # FIXME: first we should search . and the directory the executable is in
16502 shlibpath_var=PATH
16503 ;;
16504
16505 darwin* | rhapsody*)
16506 dynamic_linker="$host_os dyld"
16507 version_type=darwin
16508 need_lib_prefix=no
16509 need_version=no
16510 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16511 soname_spec='${libname}${release}${major}$shared_ext'
16512 shlibpath_overrides_runpath=yes
16513 shlibpath_var=DYLD_LIBRARY_PATH
16514 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16515 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16516 if test "$GCC" = yes; then
16517 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"`
16518 else
16519 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16520 fi
16521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16522 ;;
16523
16524 dgux*)
16525 version_type=linux
16526 need_lib_prefix=no
16527 need_version=no
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16529 soname_spec='${libname}${release}${shared_ext}$major'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 ;;
16532
16533 freebsd1*)
16534 dynamic_linker=no
16535 ;;
16536
16537 kfreebsd*-gnu)
16538 version_type=linux
16539 need_lib_prefix=no
16540 need_version=no
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 shlibpath_var=LD_LIBRARY_PATH
16544 shlibpath_overrides_runpath=no
16545 hardcode_into_libs=yes
16546 dynamic_linker='GNU ld.so'
16547 ;;
16548
16549 freebsd* | dragonfly*)
16550 # DragonFly does not have aout. When/if they implement a new
16551 # versioning mechanism, adjust this.
16552 if test -x /usr/bin/objformat; then
16553 objformat=`/usr/bin/objformat`
16554 else
16555 case $host_os in
16556 freebsd[123]*) objformat=aout ;;
16557 *) objformat=elf ;;
16558 esac
16559 fi
16560 version_type=freebsd-$objformat
16561 case $version_type in
16562 freebsd-elf*)
16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16564 need_version=no
16565 need_lib_prefix=no
16566 ;;
16567 freebsd-*)
16568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16569 need_version=yes
16570 ;;
16571 esac
16572 shlibpath_var=LD_LIBRARY_PATH
16573 case $host_os in
16574 freebsd2*)
16575 shlibpath_overrides_runpath=yes
16576 ;;
16577 freebsd3.[01]* | freebsdelf3.[01]*)
16578 shlibpath_overrides_runpath=yes
16579 hardcode_into_libs=yes
16580 ;;
16581 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16582 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16583 shlibpath_overrides_runpath=no
16584 hardcode_into_libs=yes
16585 ;;
16586 freebsd*) # from 4.6 on
16587 shlibpath_overrides_runpath=yes
16588 hardcode_into_libs=yes
16589 ;;
16590 esac
16591 ;;
16592
16593 gnu*)
16594 version_type=linux
16595 need_lib_prefix=no
16596 need_version=no
16597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16598 soname_spec='${libname}${release}${shared_ext}$major'
16599 shlibpath_var=LD_LIBRARY_PATH
16600 hardcode_into_libs=yes
16601 ;;
16602
16603 hpux9* | hpux10* | hpux11*)
16604 # Give a soname corresponding to the major version so that dld.sl refuses to
16605 # link against other versions.
16606 version_type=sunos
16607 need_lib_prefix=no
16608 need_version=no
16609 case $host_cpu in
16610 ia64*)
16611 shrext_cmds='.so'
16612 hardcode_into_libs=yes
16613 dynamic_linker="$host_os dld.so"
16614 shlibpath_var=LD_LIBRARY_PATH
16615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16617 soname_spec='${libname}${release}${shared_ext}$major'
16618 if test "X$HPUX_IA64_MODE" = X32; then
16619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16620 else
16621 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16622 fi
16623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16624 ;;
16625 hppa*64*)
16626 shrext_cmds='.sl'
16627 hardcode_into_libs=yes
16628 dynamic_linker="$host_os dld.sl"
16629 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16632 soname_spec='${libname}${release}${shared_ext}$major'
16633 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16635 ;;
16636 *)
16637 shrext_cmds='.sl'
16638 dynamic_linker="$host_os dld.sl"
16639 shlibpath_var=SHLIB_PATH
16640 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16642 soname_spec='${libname}${release}${shared_ext}$major'
16643 ;;
16644 esac
16645 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16646 postinstall_cmds='chmod 555 $lib'
16647 ;;
16648
16649 interix3*)
16650 version_type=linux
16651 need_lib_prefix=no
16652 need_version=no
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16654 soname_spec='${libname}${release}${shared_ext}$major'
16655 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16656 shlibpath_var=LD_LIBRARY_PATH
16657 shlibpath_overrides_runpath=no
16658 hardcode_into_libs=yes
16659 ;;
16660
16661 irix5* | irix6* | nonstopux*)
16662 case $host_os in
16663 nonstopux*) version_type=nonstopux ;;
16664 *)
16665 if test "$lt_cv_prog_gnu_ld" = yes; then
16666 version_type=linux
16667 else
16668 version_type=irix
16669 fi ;;
16670 esac
16671 need_lib_prefix=no
16672 need_version=no
16673 soname_spec='${libname}${release}${shared_ext}$major'
16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16675 case $host_os in
16676 irix5* | nonstopux*)
16677 libsuff= shlibsuff=
16678 ;;
16679 *)
16680 case $LD in # libtool.m4 will add one of these switches to LD
16681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16682 libsuff= shlibsuff= libmagic=32-bit;;
16683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16684 libsuff=32 shlibsuff=N32 libmagic=N32;;
16685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16686 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16687 *) libsuff= shlibsuff= libmagic=never-match;;
16688 esac
16689 ;;
16690 esac
16691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16692 shlibpath_overrides_runpath=no
16693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16695 hardcode_into_libs=yes
16696 ;;
16697
16698 # No shared lib support for Linux oldld, aout, or coff.
16699 linux*oldld* | linux*aout* | linux*coff*)
16700 dynamic_linker=no
16701 ;;
16702
16703 # This must be Linux ELF.
16704 linux*)
16705 version_type=linux
16706 need_lib_prefix=no
16707 need_version=no
16708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709 soname_spec='${libname}${release}${shared_ext}$major'
16710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16711 shlibpath_var=LD_LIBRARY_PATH
16712 shlibpath_overrides_runpath=no
16713 # This implies no fast_install, which is unacceptable.
16714 # Some rework will be needed to allow for fast_install
16715 # before this can be enabled.
16716 hardcode_into_libs=yes
16717
16718 # Append ld.so.conf contents to the search path
16719 if test -f /etc/ld.so.conf; then
16720 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' ' '`
16721 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16722 fi
16723
16724 # We used to test for /lib/ld.so.1 and disable shared libraries on
16725 # powerpc, because MkLinux only supported shared libraries with the
16726 # GNU dynamic linker. Since this was broken with cross compilers,
16727 # most powerpc-linux boxes support dynamic linking these days and
16728 # people can always --disable-shared, the test was removed, and we
16729 # assume the GNU/Linux dynamic linker is in use.
16730 dynamic_linker='GNU/Linux ld.so'
16731 ;;
16732
16733 knetbsd*-gnu)
16734 version_type=linux
16735 need_lib_prefix=no
16736 need_version=no
16737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16738 soname_spec='${libname}${release}${shared_ext}$major'
16739 shlibpath_var=LD_LIBRARY_PATH
16740 shlibpath_overrides_runpath=no
16741 hardcode_into_libs=yes
16742 dynamic_linker='GNU ld.so'
16743 ;;
16744
16745 netbsd*)
16746 version_type=sunos
16747 need_lib_prefix=no
16748 need_version=no
16749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16752 dynamic_linker='NetBSD (a.out) ld.so'
16753 else
16754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16755 soname_spec='${libname}${release}${shared_ext}$major'
16756 dynamic_linker='NetBSD ld.elf_so'
16757 fi
16758 shlibpath_var=LD_LIBRARY_PATH
16759 shlibpath_overrides_runpath=yes
16760 hardcode_into_libs=yes
16761 ;;
16762
16763 newsos6)
16764 version_type=linux
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766 shlibpath_var=LD_LIBRARY_PATH
16767 shlibpath_overrides_runpath=yes
16768 ;;
16769
16770 nto-qnx*)
16771 version_type=linux
16772 need_lib_prefix=no
16773 need_version=no
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775 soname_spec='${libname}${release}${shared_ext}$major'
16776 shlibpath_var=LD_LIBRARY_PATH
16777 shlibpath_overrides_runpath=yes
16778 ;;
16779
16780 openbsd*)
16781 version_type=sunos
16782 sys_lib_dlsearch_path_spec="/usr/lib"
16783 need_lib_prefix=no
16784 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16785 case $host_os in
16786 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16787 *) need_version=no ;;
16788 esac
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16791 shlibpath_var=LD_LIBRARY_PATH
16792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16793 case $host_os in
16794 openbsd2.[89] | openbsd2.[89].*)
16795 shlibpath_overrides_runpath=no
16796 ;;
16797 *)
16798 shlibpath_overrides_runpath=yes
16799 ;;
16800 esac
16801 else
16802 shlibpath_overrides_runpath=yes
16803 fi
16804 ;;
16805
16806 os2*)
16807 libname_spec='$name'
16808 shrext_cmds=".dll"
16809 need_lib_prefix=no
16810 library_names_spec='$libname${shared_ext} $libname.a'
16811 dynamic_linker='OS/2 ld.exe'
16812 shlibpath_var=LIBPATH
16813 ;;
16814
16815 osf3* | osf4* | osf5*)
16816 version_type=osf
16817 need_lib_prefix=no
16818 need_version=no
16819 soname_spec='${libname}${release}${shared_ext}$major'
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821 shlibpath_var=LD_LIBRARY_PATH
16822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16823 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16824 ;;
16825
16826 solaris*)
16827 version_type=linux
16828 need_lib_prefix=no
16829 need_version=no
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16831 soname_spec='${libname}${release}${shared_ext}$major'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 shlibpath_overrides_runpath=yes
16834 hardcode_into_libs=yes
16835 # ldd complains unless libraries are executable
16836 postinstall_cmds='chmod +x $lib'
16837 ;;
16838
16839 sunos4*)
16840 version_type=sunos
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16842 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 shlibpath_overrides_runpath=yes
16845 if test "$with_gnu_ld" = yes; then
16846 need_lib_prefix=no
16847 fi
16848 need_version=yes
16849 ;;
16850
16851 sysv4 | sysv4.3*)
16852 version_type=linux
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854 soname_spec='${libname}${release}${shared_ext}$major'
16855 shlibpath_var=LD_LIBRARY_PATH
16856 case $host_vendor in
16857 sni)
16858 shlibpath_overrides_runpath=no
16859 need_lib_prefix=no
16860 export_dynamic_flag_spec='${wl}-Blargedynsym'
16861 runpath_var=LD_RUN_PATH
16862 ;;
16863 siemens)
16864 need_lib_prefix=no
16865 ;;
16866 motorola)
16867 need_lib_prefix=no
16868 need_version=no
16869 shlibpath_overrides_runpath=no
16870 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16871 ;;
16872 esac
16873 ;;
16874
16875 sysv4*MP*)
16876 if test -d /usr/nec ;then
16877 version_type=linux
16878 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16879 soname_spec='$libname${shared_ext}.$major'
16880 shlibpath_var=LD_LIBRARY_PATH
16881 fi
16882 ;;
16883
16884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16885 version_type=freebsd-elf
16886 need_lib_prefix=no
16887 need_version=no
16888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16889 soname_spec='${libname}${release}${shared_ext}$major'
16890 shlibpath_var=LD_LIBRARY_PATH
16891 hardcode_into_libs=yes
16892 if test "$with_gnu_ld" = yes; then
16893 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16894 shlibpath_overrides_runpath=no
16895 else
16896 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16897 shlibpath_overrides_runpath=yes
16898 case $host_os in
16899 sco3.2v5*)
16900 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16901 ;;
16902 esac
16903 fi
16904 sys_lib_dlsearch_path_spec='/usr/lib'
16905 ;;
16906
16907 uts4*)
16908 version_type=linux
16909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16910 soname_spec='${libname}${release}${shared_ext}$major'
16911 shlibpath_var=LD_LIBRARY_PATH
16912 ;;
16913
16914 *)
16915 dynamic_linker=no
16916 ;;
16917 esac
16918 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16919 echo "${ECHO_T}$dynamic_linker" >&6
16920 test "$dynamic_linker" = no && can_build_shared=no
16921
16922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16923 if test "$GCC" = yes; then
16924 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16925 fi
16926
16927 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16928 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16929 hardcode_action_F77=
16930 if test -n "$hardcode_libdir_flag_spec_F77" || \
16931 test -n "$runpath_var_F77" || \
16932 test "X$hardcode_automatic_F77" = "Xyes" ; then
16933
16934 # We can hardcode non-existant directories.
16935 if test "$hardcode_direct_F77" != no &&
16936 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16937 # have to relink, otherwise we might link with an installed library
16938 # when we should be linking with a yet-to-be-installed one
16939 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16940 test "$hardcode_minus_L_F77" != no; then
16941 # Linking always hardcodes the temporary library directory.
16942 hardcode_action_F77=relink
16943 else
16944 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16945 hardcode_action_F77=immediate
16946 fi
16947 else
16948 # We cannot hardcode anything, or else we can only hardcode existing
16949 # directories.
16950 hardcode_action_F77=unsupported
16951 fi
16952 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16953 echo "${ECHO_T}$hardcode_action_F77" >&6
16954
16955 if test "$hardcode_action_F77" = relink; then
16956 # Fast installation is not supported
16957 enable_fast_install=no
16958 elif test "$shlibpath_overrides_runpath" = yes ||
16959 test "$enable_shared" = no; then
16960 # Fast installation is not necessary
16961 enable_fast_install=needless
16962 fi
16963
16964
16965 # The else clause should only fire when bootstrapping the
16966 # libtool distribution, otherwise you forgot to ship ltmain.sh
16967 # with your package, and you will get complaints that there are
16968 # no rules to generate ltmain.sh.
16969 if test -f "$ltmain"; then
16970 # See if we are running on zsh, and set the options which allow our commands through
16971 # without removal of \ escapes.
16972 if test -n "${ZSH_VERSION+set}" ; then
16973 setopt NO_GLOB_SUBST
16974 fi
16975 # Now quote all the things that may contain metacharacters while being
16976 # careful not to overquote the AC_SUBSTed values. We take copies of the
16977 # variables and quote the copies for generation of the libtool script.
16978 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16979 SED SHELL STRIP \
16980 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16981 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16982 deplibs_check_method reload_flag reload_cmds need_locks \
16983 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16984 lt_cv_sys_global_symbol_to_c_name_address \
16985 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16986 old_postinstall_cmds old_postuninstall_cmds \
16987 compiler_F77 \
16988 CC_F77 \
16989 LD_F77 \
16990 lt_prog_compiler_wl_F77 \
16991 lt_prog_compiler_pic_F77 \
16992 lt_prog_compiler_static_F77 \
16993 lt_prog_compiler_no_builtin_flag_F77 \
16994 export_dynamic_flag_spec_F77 \
16995 thread_safe_flag_spec_F77 \
16996 whole_archive_flag_spec_F77 \
16997 enable_shared_with_static_runtimes_F77 \
16998 old_archive_cmds_F77 \
16999 old_archive_from_new_cmds_F77 \
17000 predep_objects_F77 \
17001 postdep_objects_F77 \
17002 predeps_F77 \
17003 postdeps_F77 \
17004 compiler_lib_search_path_F77 \
17005 archive_cmds_F77 \
17006 archive_expsym_cmds_F77 \
17007 postinstall_cmds_F77 \
17008 postuninstall_cmds_F77 \
17009 old_archive_from_expsyms_cmds_F77 \
17010 allow_undefined_flag_F77 \
17011 no_undefined_flag_F77 \
17012 export_symbols_cmds_F77 \
17013 hardcode_libdir_flag_spec_F77 \
17014 hardcode_libdir_flag_spec_ld_F77 \
17015 hardcode_libdir_separator_F77 \
17016 hardcode_automatic_F77 \
17017 module_cmds_F77 \
17018 module_expsym_cmds_F77 \
17019 lt_cv_prog_compiler_c_o_F77 \
17020 exclude_expsyms_F77 \
17021 include_expsyms_F77; do
17022
17023 case $var in
17024 old_archive_cmds_F77 | \
17025 old_archive_from_new_cmds_F77 | \
17026 archive_cmds_F77 | \
17027 archive_expsym_cmds_F77 | \
17028 module_cmds_F77 | \
17029 module_expsym_cmds_F77 | \
17030 old_archive_from_expsyms_cmds_F77 | \
17031 export_symbols_cmds_F77 | \
17032 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17033 postinstall_cmds | postuninstall_cmds | \
17034 old_postinstall_cmds | old_postuninstall_cmds | \
17035 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17036 # Double-quote double-evaled strings.
17037 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17038 ;;
17039 *)
17040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17041 ;;
17042 esac
17043 done
17044
17045 case $lt_echo in
17046 *'\$0 --fallback-echo"')
17047 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17048 ;;
17049 esac
17050
17051 cfgfile="$ofile"
17052
17053 cat <<__EOF__ >> "$cfgfile"
17054 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17055
17056 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17057
17058 # Shell to use when invoking shell scripts.
17059 SHELL=$lt_SHELL
17060
17061 # Whether or not to build shared libraries.
17062 build_libtool_libs=$enable_shared
17063
17064 # Whether or not to build static libraries.
17065 build_old_libs=$enable_static
17066
17067 # Whether or not to add -lc for building shared libraries.
17068 build_libtool_need_lc=$archive_cmds_need_lc_F77
17069
17070 # Whether or not to disallow shared libs when runtime libs are static
17071 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17072
17073 # Whether or not to optimize for fast installation.
17074 fast_install=$enable_fast_install
17075
17076 # The host system.
17077 host_alias=$host_alias
17078 host=$host
17079 host_os=$host_os
17080
17081 # The build system.
17082 build_alias=$build_alias
17083 build=$build
17084 build_os=$build_os
17085
17086 # An echo program that does not interpret backslashes.
17087 echo=$lt_echo
17088
17089 # The archiver.
17090 AR=$lt_AR
17091 AR_FLAGS=$lt_AR_FLAGS
17092
17093 # A C compiler.
17094 LTCC=$lt_LTCC
17095
17096 # LTCC compiler flags.
17097 LTCFLAGS=$lt_LTCFLAGS
17098
17099 # A language-specific compiler.
17100 CC=$lt_compiler_F77
17101
17102 # Is the compiler the GNU C compiler?
17103 with_gcc=$GCC_F77
17104
17105 # An ERE matcher.
17106 EGREP=$lt_EGREP
17107
17108 # The linker used to build libraries.
17109 LD=$lt_LD_F77
17110
17111 # Whether we need hard or soft links.
17112 LN_S=$lt_LN_S
17113
17114 # A BSD-compatible nm program.
17115 NM=$lt_NM
17116
17117 # A symbol stripping program
17118 STRIP=$lt_STRIP
17119
17120 # Used to examine libraries when file_magic_cmd begins "file"
17121 MAGIC_CMD=$MAGIC_CMD
17122
17123 # Used on cygwin: DLL creation program.
17124 DLLTOOL="$DLLTOOL"
17125
17126 # Used on cygwin: object dumper.
17127 OBJDUMP="$OBJDUMP"
17128
17129 # Used on cygwin: assembler.
17130 AS="$AS"
17131
17132 # The name of the directory that contains temporary libtool files.
17133 objdir=$objdir
17134
17135 # How to create reloadable object files.
17136 reload_flag=$lt_reload_flag
17137 reload_cmds=$lt_reload_cmds
17138
17139 # How to pass a linker flag through the compiler.
17140 wl=$lt_lt_prog_compiler_wl_F77
17141
17142 # Object file suffix (normally "o").
17143 objext="$ac_objext"
17144
17145 # Old archive suffix (normally "a").
17146 libext="$libext"
17147
17148 # Shared library suffix (normally ".so").
17149 shrext_cmds='$shrext_cmds'
17150
17151 # Executable file suffix (normally "").
17152 exeext="$exeext"
17153
17154 # Additional compiler flags for building library objects.
17155 pic_flag=$lt_lt_prog_compiler_pic_F77
17156 pic_mode=$pic_mode
17157
17158 # What is the maximum length of a command?
17159 max_cmd_len=$lt_cv_sys_max_cmd_len
17160
17161 # Does compiler simultaneously support -c and -o options?
17162 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17163
17164 # Must we lock files when doing compilation?
17165 need_locks=$lt_need_locks
17166
17167 # Do we need the lib prefix for modules?
17168 need_lib_prefix=$need_lib_prefix
17169
17170 # Do we need a version for libraries?
17171 need_version=$need_version
17172
17173 # Whether dlopen is supported.
17174 dlopen_support=$enable_dlopen
17175
17176 # Whether dlopen of programs is supported.
17177 dlopen_self=$enable_dlopen_self
17178
17179 # Whether dlopen of statically linked programs is supported.
17180 dlopen_self_static=$enable_dlopen_self_static
17181
17182 # Compiler flag to prevent dynamic linking.
17183 link_static_flag=$lt_lt_prog_compiler_static_F77
17184
17185 # Compiler flag to turn off builtin functions.
17186 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17187
17188 # Compiler flag to allow reflexive dlopens.
17189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17190
17191 # Compiler flag to generate shared objects directly from archives.
17192 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17193
17194 # Compiler flag to generate thread-safe objects.
17195 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17196
17197 # Library versioning type.
17198 version_type=$version_type
17199
17200 # Format of library name prefix.
17201 libname_spec=$lt_libname_spec
17202
17203 # List of archive names. First name is the real one, the rest are links.
17204 # The last name is the one that the linker finds with -lNAME.
17205 library_names_spec=$lt_library_names_spec
17206
17207 # The coded name of the library, if different from the real name.
17208 soname_spec=$lt_soname_spec
17209
17210 # Commands used to build and install an old-style archive.
17211 RANLIB=$lt_RANLIB
17212 old_archive_cmds=$lt_old_archive_cmds_F77
17213 old_postinstall_cmds=$lt_old_postinstall_cmds
17214 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17215
17216 # Create an old-style archive from a shared archive.
17217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17218
17219 # Create a temporary old-style archive to link instead of a shared archive.
17220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17221
17222 # Commands used to build and install a shared archive.
17223 archive_cmds=$lt_archive_cmds_F77
17224 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17225 postinstall_cmds=$lt_postinstall_cmds
17226 postuninstall_cmds=$lt_postuninstall_cmds
17227
17228 # Commands used to build a loadable module (assumed same as above if empty)
17229 module_cmds=$lt_module_cmds_F77
17230 module_expsym_cmds=$lt_module_expsym_cmds_F77
17231
17232 # Commands to strip libraries.
17233 old_striplib=$lt_old_striplib
17234 striplib=$lt_striplib
17235
17236 # Dependencies to place before the objects being linked to create a
17237 # shared library.
17238 predep_objects=$lt_predep_objects_F77
17239
17240 # Dependencies to place after the objects being linked to create a
17241 # shared library.
17242 postdep_objects=$lt_postdep_objects_F77
17243
17244 # Dependencies to place before the objects being linked to create a
17245 # shared library.
17246 predeps=$lt_predeps_F77
17247
17248 # Dependencies to place after the objects being linked to create a
17249 # shared library.
17250 postdeps=$lt_postdeps_F77
17251
17252 # The library search path used internally by the compiler when linking
17253 # a shared library.
17254 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17255
17256 # Method to check whether dependent libraries are shared objects.
17257 deplibs_check_method=$lt_deplibs_check_method
17258
17259 # Command to use when deplibs_check_method == file_magic.
17260 file_magic_cmd=$lt_file_magic_cmd
17261
17262 # Flag that allows shared libraries with undefined symbols to be built.
17263 allow_undefined_flag=$lt_allow_undefined_flag_F77
17264
17265 # Flag that forces no undefined symbols.
17266 no_undefined_flag=$lt_no_undefined_flag_F77
17267
17268 # Commands used to finish a libtool library installation in a directory.
17269 finish_cmds=$lt_finish_cmds
17270
17271 # Same as above, but a single script fragment to be evaled but not shown.
17272 finish_eval=$lt_finish_eval
17273
17274 # Take the output of nm and produce a listing of raw symbols and C names.
17275 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17276
17277 # Transform the output of nm in a proper C declaration
17278 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17279
17280 # Transform the output of nm in a C name address pair
17281 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17282
17283 # This is the shared library runtime path variable.
17284 runpath_var=$runpath_var
17285
17286 # This is the shared library path variable.
17287 shlibpath_var=$shlibpath_var
17288
17289 # Is shlibpath searched before the hard-coded library search path?
17290 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17291
17292 # How to hardcode a shared library path into an executable.
17293 hardcode_action=$hardcode_action_F77
17294
17295 # Whether we should hardcode library paths into libraries.
17296 hardcode_into_libs=$hardcode_into_libs
17297
17298 # Flag to hardcode \$libdir into a binary during linking.
17299 # This must work even if \$libdir does not exist.
17300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17301
17302 # If ld is used when linking, flag to hardcode \$libdir into
17303 # a binary during linking. This must work even if \$libdir does
17304 # not exist.
17305 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17306
17307 # Whether we need a single -rpath flag with a separated argument.
17308 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17309
17310 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17311 # resulting binary.
17312 hardcode_direct=$hardcode_direct_F77
17313
17314 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17315 # resulting binary.
17316 hardcode_minus_L=$hardcode_minus_L_F77
17317
17318 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17319 # the resulting binary.
17320 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17321
17322 # Set to yes if building a shared library automatically hardcodes DIR into the library
17323 # and all subsequent libraries and executables linked against it.
17324 hardcode_automatic=$hardcode_automatic_F77
17325
17326 # Variables whose values should be saved in libtool wrapper scripts and
17327 # restored at relink time.
17328 variables_saved_for_relink="$variables_saved_for_relink"
17329
17330 # Whether libtool must link a program against all its dependency libraries.
17331 link_all_deplibs=$link_all_deplibs_F77
17332
17333 # Compile-time system search path for libraries
17334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17335
17336 # Run-time system search path for libraries
17337 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17338
17339 # Fix the shell variable \$srcfile for the compiler.
17340 fix_srcfile_path="$fix_srcfile_path_F77"
17341
17342 # Set to yes if exported symbols are required.
17343 always_export_symbols=$always_export_symbols_F77
17344
17345 # The commands to list exported symbols.
17346 export_symbols_cmds=$lt_export_symbols_cmds_F77
17347
17348 # The commands to extract the exported symbol list from a shared archive.
17349 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17350
17351 # Symbols that should not be listed in the preloaded symbols.
17352 exclude_expsyms=$lt_exclude_expsyms_F77
17353
17354 # Symbols that must always be exported.
17355 include_expsyms=$lt_include_expsyms_F77
17356
17357 # ### END LIBTOOL TAG CONFIG: $tagname
17358
17359 __EOF__
17360
17361
17362 else
17363 # If there is no Makefile yet, we rely on a make rule to execute
17364 # `config.status --recheck' to rerun these tests and create the
17365 # libtool script then.
17366 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17367 if test -f "$ltmain_in"; then
17368 test -f Makefile && make "$ltmain"
17369 fi
17370 fi
17371
17372
17373 ac_ext=c
17374 ac_cpp='$CPP $CPPFLAGS'
17375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17378
17379 CC="$lt_save_CC"
17380
17381 else
17382 tagname=""
17383 fi
17384 ;;
17385
17386 GCJ)
17387 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17388
17389
17390
17391 # Source file extension for Java test sources.
17392 ac_ext=java
17393
17394 # Object file extension for compiled Java test sources.
17395 objext=o
17396 objext_GCJ=$objext
17397
17398 # Code to be used in simple compile tests
17399 lt_simple_compile_test_code="class foo {}\n"
17400
17401 # Code to be used in simple link tests
17402 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17403
17404 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17405
17406 # If no C compiler was specified, use CC.
17407 LTCC=${LTCC-"$CC"}
17408
17409 # If no C compiler flags were specified, use CFLAGS.
17410 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17411
17412 # Allow CC to be a program name with arguments.
17413 compiler=$CC
17414
17415
17416 # save warnings/boilerplate of simple test code
17417 ac_outfile=conftest.$ac_objext
17418 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17419 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17420 _lt_compiler_boilerplate=`cat conftest.err`
17421 $rm conftest*
17422
17423 ac_outfile=conftest.$ac_objext
17424 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17425 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17426 _lt_linker_boilerplate=`cat conftest.err`
17427 $rm conftest*
17428
17429
17430 # Allow CC to be a program name with arguments.
17431 lt_save_CC="$CC"
17432 CC=${GCJ-"gcj"}
17433 compiler=$CC
17434 compiler_GCJ=$CC
17435 for cc_temp in $compiler""; do
17436 case $cc_temp in
17437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17439 \-*) ;;
17440 *) break;;
17441 esac
17442 done
17443 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17444
17445
17446 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17447 archive_cmds_need_lc_GCJ=no
17448
17449 old_archive_cmds_GCJ=$old_archive_cmds
17450
17451 ## CAVEAT EMPTOR:
17452 ## There is no encapsulation within the following macros, do not change
17453 ## the running order or otherwise move them around unless you know exactly
17454 ## what you are doing...
17455
17456 lt_prog_compiler_no_builtin_flag_GCJ=
17457
17458 if test "$GCC" = yes; then
17459 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17460
17461
17462 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17463 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17464 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 else
17467 lt_cv_prog_compiler_rtti_exceptions=no
17468 ac_outfile=conftest.$ac_objext
17469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17470 lt_compiler_flag="-fno-rtti -fno-exceptions"
17471 # Insert the option either (1) after the last *FLAGS variable, or
17472 # (2) before a word containing "conftest.", or (3) at the end.
17473 # Note that $ac_compile itself does not contain backslashes and begins
17474 # with a dollar sign (not a hyphen), so the echo should work correctly.
17475 # The option is referenced via a variable to avoid confusing sed.
17476 lt_compile=`echo "$ac_compile" | $SED \
17477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17479 -e 's:$: $lt_compiler_flag:'`
17480 (eval echo "\"\$as_me:17480: $lt_compile\"" >&5)
17481 (eval "$lt_compile" 2>conftest.err)
17482 ac_status=$?
17483 cat conftest.err >&5
17484 echo "$as_me:17484: \$? = $ac_status" >&5
17485 if (exit $ac_status) && test -s "$ac_outfile"; then
17486 # The compiler can only warn and ignore the option if not recognized
17487 # So say no if there are warnings other than the usual output.
17488 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17490 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17491 lt_cv_prog_compiler_rtti_exceptions=yes
17492 fi
17493 fi
17494 $rm conftest*
17495
17496 fi
17497 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17498 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17499
17500 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17501 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17502 else
17503 :
17504 fi
17505
17506 fi
17507
17508 lt_prog_compiler_wl_GCJ=
17509 lt_prog_compiler_pic_GCJ=
17510 lt_prog_compiler_static_GCJ=
17511
17512 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17513 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17514
17515 if test "$GCC" = yes; then
17516 lt_prog_compiler_wl_GCJ='-Wl,'
17517 lt_prog_compiler_static_GCJ='-static'
17518
17519 case $host_os in
17520 aix*)
17521 # All AIX code is PIC.
17522 if test "$host_cpu" = ia64; then
17523 # AIX 5 now supports IA64 processor
17524 lt_prog_compiler_static_GCJ='-Bstatic'
17525 fi
17526 ;;
17527
17528 amigaos*)
17529 # FIXME: we need at least 68020 code to build shared libraries, but
17530 # adding the `-m68020' flag to GCC prevents building anything better,
17531 # like `-m68040'.
17532 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17533 ;;
17534
17535 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17536 # PIC is the default for these OSes.
17537 ;;
17538
17539 mingw* | pw32* | os2*)
17540 # This hack is so that the source file can tell whether it is being
17541 # built for inclusion in a dll (and should export symbols for example).
17542 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17543 ;;
17544
17545 darwin* | rhapsody*)
17546 # PIC is the default on this platform
17547 # Common symbols not allowed in MH_DYLIB files
17548 lt_prog_compiler_pic_GCJ='-fno-common'
17549 ;;
17550
17551 interix3*)
17552 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17553 # Instead, we relocate shared libraries at runtime.
17554 ;;
17555
17556 msdosdjgpp*)
17557 # Just because we use GCC doesn't mean we suddenly get shared libraries
17558 # on systems that don't support them.
17559 lt_prog_compiler_can_build_shared_GCJ=no
17560 enable_shared=no
17561 ;;
17562
17563 sysv4*MP*)
17564 if test -d /usr/nec; then
17565 lt_prog_compiler_pic_GCJ=-Kconform_pic
17566 fi
17567 ;;
17568
17569 hpux*)
17570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17571 # not for PA HP-UX.
17572 case $host_cpu in
17573 hppa*64*|ia64*)
17574 # +Z the default
17575 ;;
17576 *)
17577 lt_prog_compiler_pic_GCJ='-fPIC'
17578 ;;
17579 esac
17580 ;;
17581
17582 *)
17583 lt_prog_compiler_pic_GCJ='-fPIC'
17584 ;;
17585 esac
17586 else
17587 # PORTME Check for flag to pass linker flags through the system compiler.
17588 case $host_os in
17589 aix*)
17590 lt_prog_compiler_wl_GCJ='-Wl,'
17591 if test "$host_cpu" = ia64; then
17592 # AIX 5 now supports IA64 processor
17593 lt_prog_compiler_static_GCJ='-Bstatic'
17594 else
17595 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17596 fi
17597 ;;
17598 darwin*)
17599 # PIC is the default on this platform
17600 # Common symbols not allowed in MH_DYLIB files
17601 case $cc_basename in
17602 xlc*)
17603 lt_prog_compiler_pic_GCJ='-qnocommon'
17604 lt_prog_compiler_wl_GCJ='-Wl,'
17605 ;;
17606 esac
17607 ;;
17608
17609 mingw* | pw32* | os2*)
17610 # This hack is so that the source file can tell whether it is being
17611 # built for inclusion in a dll (and should export symbols for example).
17612 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17613 ;;
17614
17615 hpux9* | hpux10* | hpux11*)
17616 lt_prog_compiler_wl_GCJ='-Wl,'
17617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17618 # not for PA HP-UX.
17619 case $host_cpu in
17620 hppa*64*|ia64*)
17621 # +Z the default
17622 ;;
17623 *)
17624 lt_prog_compiler_pic_GCJ='+Z'
17625 ;;
17626 esac
17627 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17628 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17629 ;;
17630
17631 irix5* | irix6* | nonstopux*)
17632 lt_prog_compiler_wl_GCJ='-Wl,'
17633 # PIC (with -KPIC) is the default.
17634 lt_prog_compiler_static_GCJ='-non_shared'
17635 ;;
17636
17637 newsos6)
17638 lt_prog_compiler_pic_GCJ='-KPIC'
17639 lt_prog_compiler_static_GCJ='-Bstatic'
17640 ;;
17641
17642 linux*)
17643 case $cc_basename in
17644 icc* | ecc*)
17645 lt_prog_compiler_wl_GCJ='-Wl,'
17646 lt_prog_compiler_pic_GCJ='-KPIC'
17647 lt_prog_compiler_static_GCJ='-static'
17648 ;;
17649 pgcc* | pgf77* | pgf90* | pgf95*)
17650 # Portland Group compilers (*not* the Pentium gcc compiler,
17651 # which looks to be a dead project)
17652 lt_prog_compiler_wl_GCJ='-Wl,'
17653 lt_prog_compiler_pic_GCJ='-fpic'
17654 lt_prog_compiler_static_GCJ='-Bstatic'
17655 ;;
17656 ccc*)
17657 lt_prog_compiler_wl_GCJ='-Wl,'
17658 # All Alpha code is PIC.
17659 lt_prog_compiler_static_GCJ='-non_shared'
17660 ;;
17661 esac
17662 ;;
17663
17664 osf3* | osf4* | osf5*)
17665 lt_prog_compiler_wl_GCJ='-Wl,'
17666 # All OSF/1 code is PIC.
17667 lt_prog_compiler_static_GCJ='-non_shared'
17668 ;;
17669
17670 solaris*)
17671 lt_prog_compiler_pic_GCJ='-KPIC'
17672 lt_prog_compiler_static_GCJ='-Bstatic'
17673 case $cc_basename in
17674 f77* | f90* | f95*)
17675 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17676 *)
17677 lt_prog_compiler_wl_GCJ='-Wl,';;
17678 esac
17679 ;;
17680
17681 sunos4*)
17682 lt_prog_compiler_wl_GCJ='-Qoption ld '
17683 lt_prog_compiler_pic_GCJ='-PIC'
17684 lt_prog_compiler_static_GCJ='-Bstatic'
17685 ;;
17686
17687 sysv4 | sysv4.2uw2* | sysv4.3*)
17688 lt_prog_compiler_wl_GCJ='-Wl,'
17689 lt_prog_compiler_pic_GCJ='-KPIC'
17690 lt_prog_compiler_static_GCJ='-Bstatic'
17691 ;;
17692
17693 sysv4*MP*)
17694 if test -d /usr/nec ;then
17695 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17696 lt_prog_compiler_static_GCJ='-Bstatic'
17697 fi
17698 ;;
17699
17700 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17701 lt_prog_compiler_wl_GCJ='-Wl,'
17702 lt_prog_compiler_pic_GCJ='-KPIC'
17703 lt_prog_compiler_static_GCJ='-Bstatic'
17704 ;;
17705
17706 unicos*)
17707 lt_prog_compiler_wl_GCJ='-Wl,'
17708 lt_prog_compiler_can_build_shared_GCJ=no
17709 ;;
17710
17711 uts4*)
17712 lt_prog_compiler_pic_GCJ='-pic'
17713 lt_prog_compiler_static_GCJ='-Bstatic'
17714 ;;
17715
17716 *)
17717 lt_prog_compiler_can_build_shared_GCJ=no
17718 ;;
17719 esac
17720 fi
17721
17722 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17723 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17724
17725 #
17726 # Check to make sure the PIC flag actually works.
17727 #
17728 if test -n "$lt_prog_compiler_pic_GCJ"; then
17729
17730 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17731 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17732 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17734 else
17735 lt_prog_compiler_pic_works_GCJ=no
17736 ac_outfile=conftest.$ac_objext
17737 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17738 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17739 # Insert the option either (1) after the last *FLAGS variable, or
17740 # (2) before a word containing "conftest.", or (3) at the end.
17741 # Note that $ac_compile itself does not contain backslashes and begins
17742 # with a dollar sign (not a hyphen), so the echo should work correctly.
17743 # The option is referenced via a variable to avoid confusing sed.
17744 lt_compile=`echo "$ac_compile" | $SED \
17745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17747 -e 's:$: $lt_compiler_flag:'`
17748 (eval echo "\"\$as_me:17748: $lt_compile\"" >&5)
17749 (eval "$lt_compile" 2>conftest.err)
17750 ac_status=$?
17751 cat conftest.err >&5
17752 echo "$as_me:17752: \$? = $ac_status" >&5
17753 if (exit $ac_status) && test -s "$ac_outfile"; then
17754 # The compiler can only warn and ignore the option if not recognized
17755 # So say no if there are warnings other than the usual output.
17756 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17758 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17759 lt_prog_compiler_pic_works_GCJ=yes
17760 fi
17761 fi
17762 $rm conftest*
17763
17764 fi
17765 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17766 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17767
17768 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17769 case $lt_prog_compiler_pic_GCJ in
17770 "" | " "*) ;;
17771 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17772 esac
17773 else
17774 lt_prog_compiler_pic_GCJ=
17775 lt_prog_compiler_can_build_shared_GCJ=no
17776 fi
17777
17778 fi
17779 case $host_os in
17780 # For platforms which do not support PIC, -DPIC is meaningless:
17781 *djgpp*)
17782 lt_prog_compiler_pic_GCJ=
17783 ;;
17784 *)
17785 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17786 ;;
17787 esac
17788
17789 #
17790 # Check to make sure the static flag actually works.
17791 #
17792 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17793 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17794 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17795 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 else
17798 lt_prog_compiler_static_works_GCJ=no
17799 save_LDFLAGS="$LDFLAGS"
17800 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17801 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17802 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17803 # The linker can only warn and ignore the option if not recognized
17804 # So say no if there are warnings
17805 if test -s conftest.err; then
17806 # Append any errors to the config.log.
17807 cat conftest.err 1>&5
17808 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17810 if diff conftest.exp conftest.er2 >/dev/null; then
17811 lt_prog_compiler_static_works_GCJ=yes
17812 fi
17813 else
17814 lt_prog_compiler_static_works_GCJ=yes
17815 fi
17816 fi
17817 $rm conftest*
17818 LDFLAGS="$save_LDFLAGS"
17819
17820 fi
17821 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17822 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17823
17824 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17825 :
17826 else
17827 lt_prog_compiler_static_GCJ=
17828 fi
17829
17830
17831 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17832 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17833 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17834 echo $ECHO_N "(cached) $ECHO_C" >&6
17835 else
17836 lt_cv_prog_compiler_c_o_GCJ=no
17837 $rm -r conftest 2>/dev/null
17838 mkdir conftest
17839 cd conftest
17840 mkdir out
17841 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17842
17843 lt_compiler_flag="-o out/conftest2.$ac_objext"
17844 # Insert the option either (1) after the last *FLAGS variable, or
17845 # (2) before a word containing "conftest.", or (3) at the end.
17846 # Note that $ac_compile itself does not contain backslashes and begins
17847 # with a dollar sign (not a hyphen), so the echo should work correctly.
17848 lt_compile=`echo "$ac_compile" | $SED \
17849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17851 -e 's:$: $lt_compiler_flag:'`
17852 (eval echo "\"\$as_me:17852: $lt_compile\"" >&5)
17853 (eval "$lt_compile" 2>out/conftest.err)
17854 ac_status=$?
17855 cat out/conftest.err >&5
17856 echo "$as_me:17856: \$? = $ac_status" >&5
17857 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17858 then
17859 # The compiler can only warn and ignore the option if not recognized
17860 # So say no if there are warnings
17861 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17862 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17863 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17864 lt_cv_prog_compiler_c_o_GCJ=yes
17865 fi
17866 fi
17867 chmod u+w . 2>&5
17868 $rm conftest*
17869 # SGI C++ compiler will create directory out/ii_files/ for
17870 # template instantiation
17871 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17872 $rm out/* && rmdir out
17873 cd ..
17874 rmdir conftest
17875 $rm conftest*
17876
17877 fi
17878 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17879 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17880
17881
17882 hard_links="nottested"
17883 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17884 # do not overwrite the value of need_locks provided by the user
17885 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17886 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17887 hard_links=yes
17888 $rm conftest*
17889 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17890 touch conftest.a
17891 ln conftest.a conftest.b 2>&5 || hard_links=no
17892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17893 echo "$as_me:$LINENO: result: $hard_links" >&5
17894 echo "${ECHO_T}$hard_links" >&6
17895 if test "$hard_links" = no; then
17896 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17897 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17898 need_locks=warn
17899 fi
17900 else
17901 need_locks=no
17902 fi
17903
17904 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17905 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17906
17907 runpath_var=
17908 allow_undefined_flag_GCJ=
17909 enable_shared_with_static_runtimes_GCJ=no
17910 archive_cmds_GCJ=
17911 archive_expsym_cmds_GCJ=
17912 old_archive_From_new_cmds_GCJ=
17913 old_archive_from_expsyms_cmds_GCJ=
17914 export_dynamic_flag_spec_GCJ=
17915 whole_archive_flag_spec_GCJ=
17916 thread_safe_flag_spec_GCJ=
17917 hardcode_libdir_flag_spec_GCJ=
17918 hardcode_libdir_flag_spec_ld_GCJ=
17919 hardcode_libdir_separator_GCJ=
17920 hardcode_direct_GCJ=no
17921 hardcode_minus_L_GCJ=no
17922 hardcode_shlibpath_var_GCJ=unsupported
17923 link_all_deplibs_GCJ=unknown
17924 hardcode_automatic_GCJ=no
17925 module_cmds_GCJ=
17926 module_expsym_cmds_GCJ=
17927 always_export_symbols_GCJ=no
17928 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17929 # include_expsyms should be a list of space-separated symbols to be *always*
17930 # included in the symbol list
17931 include_expsyms_GCJ=
17932 # exclude_expsyms can be an extended regexp of symbols to exclude
17933 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17934 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17935 # as well as any symbol that contains `d'.
17936 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17937 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17938 # platforms (ab)use it in PIC code, but their linkers get confused if
17939 # the symbol is explicitly referenced. Since portable code cannot
17940 # rely on this symbol name, it's probably fine to never include it in
17941 # preloaded symbol tables.
17942 extract_expsyms_cmds=
17943 # Just being paranoid about ensuring that cc_basename is set.
17944 for cc_temp in $compiler""; do
17945 case $cc_temp in
17946 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17947 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17948 \-*) ;;
17949 *) break;;
17950 esac
17951 done
17952 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17953
17954 case $host_os in
17955 cygwin* | mingw* | pw32*)
17956 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17957 # When not using gcc, we currently assume that we are using
17958 # Microsoft Visual C++.
17959 if test "$GCC" != yes; then
17960 with_gnu_ld=no
17961 fi
17962 ;;
17963 interix*)
17964 # we just hope/assume this is gcc and not c89 (= MSVC++)
17965 with_gnu_ld=yes
17966 ;;
17967 openbsd*)
17968 with_gnu_ld=no
17969 ;;
17970 esac
17971
17972 ld_shlibs_GCJ=yes
17973 if test "$with_gnu_ld" = yes; then
17974 # If archive_cmds runs LD, not CC, wlarc should be empty
17975 wlarc='${wl}'
17976
17977 # Set some defaults for GNU ld with shared library support. These
17978 # are reset later if shared libraries are not supported. Putting them
17979 # here allows them to be overridden if necessary.
17980 runpath_var=LD_RUN_PATH
17981 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17982 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17983 # ancient GNU ld didn't support --whole-archive et. al.
17984 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17985 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17986 else
17987 whole_archive_flag_spec_GCJ=
17988 fi
17989 supports_anon_versioning=no
17990 case `$LD -v 2>/dev/null` in
17991 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17992 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17993 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17994 *\ 2.11.*) ;; # other 2.11 versions
17995 *) supports_anon_versioning=yes ;;
17996 esac
17997
17998 # See if GNU ld supports shared libraries.
17999 case $host_os in
18000 aix3* | aix4* | aix5*)
18001 # On AIX/PPC, the GNU linker is very broken
18002 if test "$host_cpu" != ia64; then
18003 ld_shlibs_GCJ=no
18004 cat <<EOF 1>&2
18005
18006 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18007 *** to be unable to reliably create shared libraries on AIX.
18008 *** Therefore, libtool is disabling shared libraries support. If you
18009 *** really care for shared libraries, you may want to modify your PATH
18010 *** so that a non-GNU linker is found, and then restart.
18011
18012 EOF
18013 fi
18014 ;;
18015
18016 amigaos*)
18017 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)'
18018 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18019 hardcode_minus_L_GCJ=yes
18020
18021 # Samuel A. Falvo II <[email protected]> reports
18022 # that the semantics of dynamic libraries on AmigaOS, at least up
18023 # to version 4, is to share data among multiple programs linked
18024 # with the same dynamic library. Since this doesn't match the
18025 # behavior of shared libraries on other platforms, we can't use
18026 # them.
18027 ld_shlibs_GCJ=no
18028 ;;
18029
18030 beos*)
18031 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18032 allow_undefined_flag_GCJ=unsupported
18033 # Joseph Beckenbach <[email protected]> says some releases of gcc
18034 # support --undefined. This deserves some investigation. FIXME
18035 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18036 else
18037 ld_shlibs_GCJ=no
18038 fi
18039 ;;
18040
18041 cygwin* | mingw* | pw32*)
18042 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18043 # as there is no search path for DLLs.
18044 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18045 allow_undefined_flag_GCJ=unsupported
18046 always_export_symbols_GCJ=no
18047 enable_shared_with_static_runtimes_GCJ=yes
18048 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18049
18050 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18051 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18052 # If the export-symbols file already is a .def file (1st line
18053 # is EXPORTS), use it as is; otherwise, prepend...
18054 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18055 cp $export_symbols $output_objdir/$soname.def;
18056 else
18057 echo EXPORTS > $output_objdir/$soname.def;
18058 cat $export_symbols >> $output_objdir/$soname.def;
18059 fi~
18060 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18061 else
18062 ld_shlibs_GCJ=no
18063 fi
18064 ;;
18065
18066 interix3*)
18067 hardcode_direct_GCJ=no
18068 hardcode_shlibpath_var_GCJ=no
18069 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18070 export_dynamic_flag_spec_GCJ='${wl}-E'
18071 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18072 # Instead, shared libraries are loaded at an image base (0x10000000 by
18073 # default) and relocated if they conflict, which is a slow very memory
18074 # consuming and fragmenting process. To avoid this, we pick a random,
18075 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18076 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18077 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'
18078 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'
18079 ;;
18080
18081 linux*)
18082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18083 tmp_addflag=
18084 case $cc_basename,$host_cpu in
18085 pgcc*) # Portland Group C compiler
18086 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'
18087 tmp_addflag=' $pic_flag'
18088 ;;
18089 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18090 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'
18091 tmp_addflag=' $pic_flag -Mnomain' ;;
18092 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18093 tmp_addflag=' -i_dynamic' ;;
18094 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18095 tmp_addflag=' -i_dynamic -nofor_main' ;;
18096 ifc* | ifort*) # Intel Fortran compiler
18097 tmp_addflag=' -nofor_main' ;;
18098 esac
18099 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18100
18101 if test $supports_anon_versioning = yes; then
18102 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18103 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18104 $echo "local: *; };" >> $output_objdir/$libname.ver~
18105 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18106 fi
18107 else
18108 ld_shlibs_GCJ=no
18109 fi
18110 ;;
18111
18112 netbsd*)
18113 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18114 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18115 wlarc=
18116 else
18117 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18118 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18119 fi
18120 ;;
18121
18122 solaris*)
18123 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18124 ld_shlibs_GCJ=no
18125 cat <<EOF 1>&2
18126
18127 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18128 *** create shared libraries on Solaris systems. Therefore, libtool
18129 *** is disabling shared libraries support. We urge you to upgrade GNU
18130 *** binutils to release 2.9.1 or newer. Another option is to modify
18131 *** your PATH or compiler configuration so that the native linker is
18132 *** used, and then restart.
18133
18134 EOF
18135 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18136 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18137 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18138 else
18139 ld_shlibs_GCJ=no
18140 fi
18141 ;;
18142
18143 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18144 case `$LD -v 2>&1` in
18145 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18146 ld_shlibs_GCJ=no
18147 cat <<_LT_EOF 1>&2
18148
18149 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18150 *** reliably create shared libraries on SCO systems. Therefore, libtool
18151 *** is disabling shared libraries support. We urge you to upgrade GNU
18152 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18153 *** your PATH or compiler configuration so that the native linker is
18154 *** used, and then restart.
18155
18156 _LT_EOF
18157 ;;
18158 *)
18159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18160 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18161 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18162 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18163 else
18164 ld_shlibs_GCJ=no
18165 fi
18166 ;;
18167 esac
18168 ;;
18169
18170 sunos4*)
18171 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18172 wlarc=
18173 hardcode_direct_GCJ=yes
18174 hardcode_shlibpath_var_GCJ=no
18175 ;;
18176
18177 *)
18178 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18179 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18180 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18181 else
18182 ld_shlibs_GCJ=no
18183 fi
18184 ;;
18185 esac
18186
18187 if test "$ld_shlibs_GCJ" = no; then
18188 runpath_var=
18189 hardcode_libdir_flag_spec_GCJ=
18190 export_dynamic_flag_spec_GCJ=
18191 whole_archive_flag_spec_GCJ=
18192 fi
18193 else
18194 # PORTME fill in a description of your system's linker (not GNU ld)
18195 case $host_os in
18196 aix3*)
18197 allow_undefined_flag_GCJ=unsupported
18198 always_export_symbols_GCJ=yes
18199 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'
18200 # Note: this linker hardcodes the directories in LIBPATH if there
18201 # are no directories specified by -L.
18202 hardcode_minus_L_GCJ=yes
18203 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18204 # Neither direct hardcoding nor static linking is supported with a
18205 # broken collect2.
18206 hardcode_direct_GCJ=unsupported
18207 fi
18208 ;;
18209
18210 aix4* | aix5*)
18211 if test "$host_cpu" = ia64; then
18212 # On IA64, the linker does run time linking by default, so we don't
18213 # have to do anything special.
18214 aix_use_runtimelinking=no
18215 exp_sym_flag='-Bexport'
18216 no_entry_flag=""
18217 else
18218 # If we're using GNU nm, then we don't want the "-C" option.
18219 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18220 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18221 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'
18222 else
18223 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'
18224 fi
18225 aix_use_runtimelinking=no
18226
18227 # Test if we are trying to use run time linking or normal
18228 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18229 # need to do runtime linking.
18230 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18231 for ld_flag in $LDFLAGS; do
18232 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18233 aix_use_runtimelinking=yes
18234 break
18235 fi
18236 done
18237 ;;
18238 esac
18239
18240 exp_sym_flag='-bexport'
18241 no_entry_flag='-bnoentry'
18242 fi
18243
18244 # When large executables or shared objects are built, AIX ld can
18245 # have problems creating the table of contents. If linking a library
18246 # or program results in "error TOC overflow" add -mminimal-toc to
18247 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18248 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18249
18250 archive_cmds_GCJ=''
18251 hardcode_direct_GCJ=yes
18252 hardcode_libdir_separator_GCJ=':'
18253 link_all_deplibs_GCJ=yes
18254
18255 if test "$GCC" = yes; then
18256 case $host_os in aix4.[012]|aix4.[012].*)
18257 # We only want to do this on AIX 4.2 and lower, the check
18258 # below for broken collect2 doesn't work under 4.3+
18259 collect2name=`${CC} -print-prog-name=collect2`
18260 if test -f "$collect2name" && \
18261 strings "$collect2name" | grep resolve_lib_name >/dev/null
18262 then
18263 # We have reworked collect2
18264 hardcode_direct_GCJ=yes
18265 else
18266 # We have old collect2
18267 hardcode_direct_GCJ=unsupported
18268 # It fails to find uninstalled libraries when the uninstalled
18269 # path is not listed in the libpath. Setting hardcode_minus_L
18270 # to unsupported forces relinking
18271 hardcode_minus_L_GCJ=yes
18272 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18273 hardcode_libdir_separator_GCJ=
18274 fi
18275 ;;
18276 esac
18277 shared_flag='-shared'
18278 if test "$aix_use_runtimelinking" = yes; then
18279 shared_flag="$shared_flag "'${wl}-G'
18280 fi
18281 else
18282 # not using gcc
18283 if test "$host_cpu" = ia64; then
18284 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18285 # chokes on -Wl,-G. The following line is correct:
18286 shared_flag='-G'
18287 else
18288 if test "$aix_use_runtimelinking" = yes; then
18289 shared_flag='${wl}-G'
18290 else
18291 shared_flag='${wl}-bM:SRE'
18292 fi
18293 fi
18294 fi
18295
18296 # It seems that -bexpall does not export symbols beginning with
18297 # underscore (_), so it is better to generate a list of symbols to export.
18298 always_export_symbols_GCJ=yes
18299 if test "$aix_use_runtimelinking" = yes; then
18300 # Warning - without using the other runtime loading flags (-brtl),
18301 # -berok will link without error, but may produce a broken library.
18302 allow_undefined_flag_GCJ='-berok'
18303 # Determine the default libpath from the value encoded in an empty executable.
18304 cat >conftest.$ac_ext <<_ACEOF
18305 /* confdefs.h. */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18310
18311 int
18312 main ()
18313 {
18314
18315 ;
18316 return 0;
18317 }
18318 _ACEOF
18319 rm -f conftest.$ac_objext conftest$ac_exeext
18320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18321 (eval $ac_link) 2>conftest.er1
18322 ac_status=$?
18323 grep -v '^ *+' conftest.er1 >conftest.err
18324 rm -f conftest.er1
18325 cat conftest.err >&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } &&
18328 { ac_try='test -z "$ac_c_werror_flag"
18329 || test ! -s conftest.err'
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try='test -s conftest$ac_exeext'
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18338 ac_status=$?
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18341
18342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18343 }'`
18344 # Check for a 64-bit object if we didn't find anything.
18345 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; }
18346 }'`; fi
18347 else
18348 echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18350
18351 fi
18352 rm -f conftest.err conftest.$ac_objext \
18353 conftest$ac_exeext conftest.$ac_ext
18354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18355
18356 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18357 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"
18358 else
18359 if test "$host_cpu" = ia64; then
18360 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18361 allow_undefined_flag_GCJ="-z nodefs"
18362 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"
18363 else
18364 # Determine the default libpath from the value encoded in an empty executable.
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h. */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371
18372 int
18373 main ()
18374 {
18375
18376 ;
18377 return 0;
18378 }
18379 _ACEOF
18380 rm -f conftest.$ac_objext conftest$ac_exeext
18381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18382 (eval $ac_link) 2>conftest.er1
18383 ac_status=$?
18384 grep -v '^ *+' conftest.er1 >conftest.err
18385 rm -f conftest.er1
18386 cat conftest.err >&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); } &&
18389 { ac_try='test -z "$ac_c_werror_flag"
18390 || test ! -s conftest.err'
18391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392 (eval $ac_try) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; } &&
18396 { ac_try='test -s conftest$ac_exeext'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; }; then
18402
18403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18404 }'`
18405 # Check for a 64-bit object if we didn't find anything.
18406 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; }
18407 }'`; fi
18408 else
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18411
18412 fi
18413 rm -f conftest.err conftest.$ac_objext \
18414 conftest$ac_exeext conftest.$ac_ext
18415 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18416
18417 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18418 # Warning - without using the other run time loading flags,
18419 # -berok will link without error, but may produce a broken library.
18420 no_undefined_flag_GCJ=' ${wl}-bernotok'
18421 allow_undefined_flag_GCJ=' ${wl}-berok'
18422 # Exported symbols can be pulled into shared objects from archives
18423 whole_archive_flag_spec_GCJ='$convenience'
18424 archive_cmds_need_lc_GCJ=yes
18425 # This is similar to how AIX traditionally builds its shared libraries.
18426 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'
18427 fi
18428 fi
18429 ;;
18430
18431 amigaos*)
18432 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)'
18433 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18434 hardcode_minus_L_GCJ=yes
18435 # see comment about different semantics on the GNU ld section
18436 ld_shlibs_GCJ=no
18437 ;;
18438
18439 bsdi[45]*)
18440 export_dynamic_flag_spec_GCJ=-rdynamic
18441 ;;
18442
18443 cygwin* | mingw* | pw32*)
18444 # When not using gcc, we currently assume that we are using
18445 # Microsoft Visual C++.
18446 # hardcode_libdir_flag_spec is actually meaningless, as there is
18447 # no search path for DLLs.
18448 hardcode_libdir_flag_spec_GCJ=' '
18449 allow_undefined_flag_GCJ=unsupported
18450 # Tell ltmain to make .lib files, not .a files.
18451 libext=lib
18452 # Tell ltmain to make .dll files, not .so files.
18453 shrext_cmds=".dll"
18454 # FIXME: Setting linknames here is a bad hack.
18455 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18456 # The linker will automatically build a .lib file if we build a DLL.
18457 old_archive_From_new_cmds_GCJ='true'
18458 # FIXME: Should let the user specify the lib program.
18459 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18460 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18461 enable_shared_with_static_runtimes_GCJ=yes
18462 ;;
18463
18464 darwin* | rhapsody*)
18465 case $host_os in
18466 rhapsody* | darwin1.[012])
18467 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18468 ;;
18469 *) # Darwin 1.3 on
18470 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18471 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18472 else
18473 case ${MACOSX_DEPLOYMENT_TARGET} in
18474 10.[012])
18475 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18476 ;;
18477 10.*)
18478 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18479 ;;
18480 esac
18481 fi
18482 ;;
18483 esac
18484 archive_cmds_need_lc_GCJ=no
18485 hardcode_direct_GCJ=no
18486 hardcode_automatic_GCJ=yes
18487 hardcode_shlibpath_var_GCJ=unsupported
18488 whole_archive_flag_spec_GCJ=''
18489 link_all_deplibs_GCJ=yes
18490 if test "$GCC" = yes ; then
18491 output_verbose_link_cmd='echo'
18492 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18493 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18494 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18495 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}'
18496 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}'
18497 else
18498 case $cc_basename in
18499 xlc*)
18500 output_verbose_link_cmd='echo'
18501 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18502 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18503 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18504 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}'
18505 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}'
18506 ;;
18507 *)
18508 ld_shlibs_GCJ=no
18509 ;;
18510 esac
18511 fi
18512 ;;
18513
18514 dgux*)
18515 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18516 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18517 hardcode_shlibpath_var_GCJ=no
18518 ;;
18519
18520 freebsd1*)
18521 ld_shlibs_GCJ=no
18522 ;;
18523
18524 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18525 # support. Future versions do this automatically, but an explicit c++rt0.o
18526 # does not break anything, and helps significantly (at the cost of a little
18527 # extra space).
18528 freebsd2.2*)
18529 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18530 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18531 hardcode_direct_GCJ=yes
18532 hardcode_shlibpath_var_GCJ=no
18533 ;;
18534
18535 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18536 freebsd2*)
18537 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18538 hardcode_direct_GCJ=yes
18539 hardcode_minus_L_GCJ=yes
18540 hardcode_shlibpath_var_GCJ=no
18541 ;;
18542
18543 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18544 freebsd* | kfreebsd*-gnu | dragonfly*)
18545 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18546 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18547 hardcode_direct_GCJ=yes
18548 hardcode_shlibpath_var_GCJ=no
18549 ;;
18550
18551 hpux9*)
18552 if test "$GCC" = yes; then
18553 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'
18554 else
18555 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'
18556 fi
18557 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18558 hardcode_libdir_separator_GCJ=:
18559 hardcode_direct_GCJ=yes
18560
18561 # hardcode_minus_L: Not really in the search PATH,
18562 # but as the default location of the library.
18563 hardcode_minus_L_GCJ=yes
18564 export_dynamic_flag_spec_GCJ='${wl}-E'
18565 ;;
18566
18567 hpux10*)
18568 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18569 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18570 else
18571 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18572 fi
18573 if test "$with_gnu_ld" = no; then
18574 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18575 hardcode_libdir_separator_GCJ=:
18576
18577 hardcode_direct_GCJ=yes
18578 export_dynamic_flag_spec_GCJ='${wl}-E'
18579
18580 # hardcode_minus_L: Not really in the search PATH,
18581 # but as the default location of the library.
18582 hardcode_minus_L_GCJ=yes
18583 fi
18584 ;;
18585
18586 hpux11*)
18587 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18588 case $host_cpu in
18589 hppa*64*)
18590 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18591 ;;
18592 ia64*)
18593 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18594 ;;
18595 *)
18596 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18597 ;;
18598 esac
18599 else
18600 case $host_cpu in
18601 hppa*64*)
18602 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18603 ;;
18604 ia64*)
18605 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18606 ;;
18607 *)
18608 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18609 ;;
18610 esac
18611 fi
18612 if test "$with_gnu_ld" = no; then
18613 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18614 hardcode_libdir_separator_GCJ=:
18615
18616 case $host_cpu in
18617 hppa*64*|ia64*)
18618 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18619 hardcode_direct_GCJ=no
18620 hardcode_shlibpath_var_GCJ=no
18621 ;;
18622 *)
18623 hardcode_direct_GCJ=yes
18624 export_dynamic_flag_spec_GCJ='${wl}-E'
18625
18626 # hardcode_minus_L: Not really in the search PATH,
18627 # but as the default location of the library.
18628 hardcode_minus_L_GCJ=yes
18629 ;;
18630 esac
18631 fi
18632 ;;
18633
18634 irix5* | irix6* | nonstopux*)
18635 if test "$GCC" = yes; then
18636 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'
18637 else
18638 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'
18639 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18640 fi
18641 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18642 hardcode_libdir_separator_GCJ=:
18643 link_all_deplibs_GCJ=yes
18644 ;;
18645
18646 netbsd*)
18647 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18648 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18649 else
18650 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18651 fi
18652 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18653 hardcode_direct_GCJ=yes
18654 hardcode_shlibpath_var_GCJ=no
18655 ;;
18656
18657 newsos6)
18658 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18659 hardcode_direct_GCJ=yes
18660 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18661 hardcode_libdir_separator_GCJ=:
18662 hardcode_shlibpath_var_GCJ=no
18663 ;;
18664
18665 openbsd*)
18666 hardcode_direct_GCJ=yes
18667 hardcode_shlibpath_var_GCJ=no
18668 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18669 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18670 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18671 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18672 export_dynamic_flag_spec_GCJ='${wl}-E'
18673 else
18674 case $host_os in
18675 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18676 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18677 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18678 ;;
18679 *)
18680 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18682 ;;
18683 esac
18684 fi
18685 ;;
18686
18687 os2*)
18688 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18689 hardcode_minus_L_GCJ=yes
18690 allow_undefined_flag_GCJ=unsupported
18691 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'
18692 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18693 ;;
18694
18695 osf3*)
18696 if test "$GCC" = yes; then
18697 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18698 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'
18699 else
18700 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18701 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'
18702 fi
18703 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18704 hardcode_libdir_separator_GCJ=:
18705 ;;
18706
18707 osf4* | osf5*) # as osf3* with the addition of -msym flag
18708 if test "$GCC" = yes; then
18709 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18710 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'
18711 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18712 else
18713 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18714 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'
18715 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~
18716 $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'
18717
18718 # Both c and cxx compiler support -rpath directly
18719 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18720 fi
18721 hardcode_libdir_separator_GCJ=:
18722 ;;
18723
18724 solaris*)
18725 no_undefined_flag_GCJ=' -z text'
18726 if test "$GCC" = yes; then
18727 wlarc='${wl}'
18728 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18729 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18730 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18731 else
18732 wlarc=''
18733 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18734 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18735 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18736 fi
18737 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18738 hardcode_shlibpath_var_GCJ=no
18739 case $host_os in
18740 solaris2.[0-5] | solaris2.[0-5].*) ;;
18741 *)
18742 # The compiler driver will combine linker options so we
18743 # cannot just pass the convience library names through
18744 # without $wl, iff we do not link with $LD.
18745 # Luckily, gcc supports the same syntax we need for Sun Studio.
18746 # Supported since Solaris 2.6 (maybe 2.5.1?)
18747 case $wlarc in
18748 '')
18749 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18750 *)
18751 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' ;;
18752 esac ;;
18753 esac
18754 link_all_deplibs_GCJ=yes
18755 ;;
18756
18757 sunos4*)
18758 if test "x$host_vendor" = xsequent; then
18759 # Use $CC to link under sequent, because it throws in some extra .o
18760 # files that make .init and .fini sections work.
18761 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18762 else
18763 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18764 fi
18765 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18766 hardcode_direct_GCJ=yes
18767 hardcode_minus_L_GCJ=yes
18768 hardcode_shlibpath_var_GCJ=no
18769 ;;
18770
18771 sysv4)
18772 case $host_vendor in
18773 sni)
18774 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18775 hardcode_direct_GCJ=yes # is this really true???
18776 ;;
18777 siemens)
18778 ## LD is ld it makes a PLAMLIB
18779 ## CC just makes a GrossModule.
18780 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18781 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18782 hardcode_direct_GCJ=no
18783 ;;
18784 motorola)
18785 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18786 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18787 ;;
18788 esac
18789 runpath_var='LD_RUN_PATH'
18790 hardcode_shlibpath_var_GCJ=no
18791 ;;
18792
18793 sysv4.3*)
18794 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18795 hardcode_shlibpath_var_GCJ=no
18796 export_dynamic_flag_spec_GCJ='-Bexport'
18797 ;;
18798
18799 sysv4*MP*)
18800 if test -d /usr/nec; then
18801 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18802 hardcode_shlibpath_var_GCJ=no
18803 runpath_var=LD_RUN_PATH
18804 hardcode_runpath_var=yes
18805 ld_shlibs_GCJ=yes
18806 fi
18807 ;;
18808
18809 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18810 no_undefined_flag_GCJ='${wl}-z,text'
18811 archive_cmds_need_lc_GCJ=no
18812 hardcode_shlibpath_var_GCJ=no
18813 runpath_var='LD_RUN_PATH'
18814
18815 if test "$GCC" = yes; then
18816 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18817 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18818 else
18819 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18820 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18821 fi
18822 ;;
18823
18824 sysv5* | sco3.2v5* | sco5v6*)
18825 # Note: We can NOT use -z defs as we might desire, because we do not
18826 # link with -lc, and that would cause any symbols used from libc to
18827 # always be unresolved, which means just about no library would
18828 # ever link correctly. If we're not using GNU ld we use -z text
18829 # though, which does catch some bad symbols but isn't as heavy-handed
18830 # as -z defs.
18831 no_undefined_flag_GCJ='${wl}-z,text'
18832 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18833 archive_cmds_need_lc_GCJ=no
18834 hardcode_shlibpath_var_GCJ=no
18835 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18836 hardcode_libdir_separator_GCJ=':'
18837 link_all_deplibs_GCJ=yes
18838 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18839 runpath_var='LD_RUN_PATH'
18840
18841 if test "$GCC" = yes; then
18842 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18843 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18844 else
18845 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18846 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18847 fi
18848 ;;
18849
18850 uts4*)
18851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18853 hardcode_shlibpath_var_GCJ=no
18854 ;;
18855
18856 *)
18857 ld_shlibs_GCJ=no
18858 ;;
18859 esac
18860 fi
18861
18862 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18863 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18864 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18865
18866 #
18867 # Do we need to explicitly link libc?
18868 #
18869 case "x$archive_cmds_need_lc_GCJ" in
18870 x|xyes)
18871 # Assume -lc should be added
18872 archive_cmds_need_lc_GCJ=yes
18873
18874 if test "$enable_shared" = yes && test "$GCC" = yes; then
18875 case $archive_cmds_GCJ in
18876 *'~'*)
18877 # FIXME: we may have to deal with multi-command sequences.
18878 ;;
18879 '$CC '*)
18880 # Test whether the compiler implicitly links with -lc since on some
18881 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18882 # to ld, don't add -lc before -lgcc.
18883 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18884 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18885 $rm conftest*
18886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18887
18888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18889 (eval $ac_compile) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } 2>conftest.err; then
18893 soname=conftest
18894 lib=conftest
18895 libobjs=conftest.$ac_objext
18896 deplibs=
18897 wl=$lt_prog_compiler_wl_GCJ
18898 pic_flag=$lt_prog_compiler_pic_GCJ
18899 compiler_flags=-v
18900 linker_flags=-v
18901 verstring=
18902 output_objdir=.
18903 libname=conftest
18904 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18905 allow_undefined_flag_GCJ=
18906 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18907 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18908 ac_status=$?
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }
18911 then
18912 archive_cmds_need_lc_GCJ=no
18913 else
18914 archive_cmds_need_lc_GCJ=yes
18915 fi
18916 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18917 else
18918 cat conftest.err 1>&5
18919 fi
18920 $rm conftest*
18921 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18922 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18923 ;;
18924 esac
18925 fi
18926 ;;
18927 esac
18928
18929 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18930 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18931 library_names_spec=
18932 libname_spec='lib$name'
18933 soname_spec=
18934 shrext_cmds=".so"
18935 postinstall_cmds=
18936 postuninstall_cmds=
18937 finish_cmds=
18938 finish_eval=
18939 shlibpath_var=
18940 shlibpath_overrides_runpath=unknown
18941 version_type=none
18942 dynamic_linker="$host_os ld.so"
18943 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18944 if test "$GCC" = yes; then
18945 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18946 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18947 # if the path contains ";" then we assume it to be the separator
18948 # otherwise default to the standard path separator (i.e. ":") - it is
18949 # assumed that no part of a normal pathname contains ";" but that should
18950 # okay in the real world where ";" in dirpaths is itself problematic.
18951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18952 else
18953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18954 fi
18955 else
18956 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18957 fi
18958 need_lib_prefix=unknown
18959 hardcode_into_libs=no
18960
18961 # when you set need_version to no, make sure it does not cause -set_version
18962 # flags to be left without arguments
18963 need_version=unknown
18964
18965 case $host_os in
18966 aix3*)
18967 version_type=linux
18968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18969 shlibpath_var=LIBPATH
18970
18971 # AIX 3 has no versioning support, so we append a major version to the name.
18972 soname_spec='${libname}${release}${shared_ext}$major'
18973 ;;
18974
18975 aix4* | aix5*)
18976 version_type=linux
18977 need_lib_prefix=no
18978 need_version=no
18979 hardcode_into_libs=yes
18980 if test "$host_cpu" = ia64; then
18981 # AIX 5 supports IA64
18982 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18983 shlibpath_var=LD_LIBRARY_PATH
18984 else
18985 # With GCC up to 2.95.x, collect2 would create an import file
18986 # for dependence libraries. The import file would start with
18987 # the line `#! .'. This would cause the generated library to
18988 # depend on `.', always an invalid library. This was fixed in
18989 # development snapshots of GCC prior to 3.0.
18990 case $host_os in
18991 aix4 | aix4.[01] | aix4.[01].*)
18992 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18993 echo ' yes '
18994 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18995 :
18996 else
18997 can_build_shared=no
18998 fi
18999 ;;
19000 esac
19001 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19002 # soname into executable. Probably we can add versioning support to
19003 # collect2, so additional links can be useful in future.
19004 if test "$aix_use_runtimelinking" = yes; then
19005 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19006 # instead of lib<name>.a to let people know that these are not
19007 # typical AIX shared libraries.
19008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19009 else
19010 # We preserve .a as extension for shared libraries through AIX4.2
19011 # and later when we are not doing run time linking.
19012 library_names_spec='${libname}${release}.a $libname.a'
19013 soname_spec='${libname}${release}${shared_ext}$major'
19014 fi
19015 shlibpath_var=LIBPATH
19016 fi
19017 ;;
19018
19019 amigaos*)
19020 library_names_spec='$libname.ixlibrary $libname.a'
19021 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19022 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'
19023 ;;
19024
19025 beos*)
19026 library_names_spec='${libname}${shared_ext}'
19027 dynamic_linker="$host_os ld.so"
19028 shlibpath_var=LIBRARY_PATH
19029 ;;
19030
19031 bsdi[45]*)
19032 version_type=linux
19033 need_version=no
19034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19035 soname_spec='${libname}${release}${shared_ext}$major'
19036 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19037 shlibpath_var=LD_LIBRARY_PATH
19038 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19039 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19040 # the default ld.so.conf also contains /usr/contrib/lib and
19041 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19042 # libtool to hard-code these into programs
19043 ;;
19044
19045 cygwin* | mingw* | pw32*)
19046 version_type=windows
19047 shrext_cmds=".dll"
19048 need_version=no
19049 need_lib_prefix=no
19050
19051 case $GCC,$host_os in
19052 yes,cygwin* | yes,mingw* | yes,pw32*)
19053 library_names_spec='$libname.dll.a'
19054 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19055 postinstall_cmds='base_file=`basename \${file}`~
19056 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19057 dldir=$destdir/`dirname \$dlpath`~
19058 test -d \$dldir || mkdir -p \$dldir~
19059 $install_prog $dir/$dlname \$dldir/$dlname~
19060 chmod a+x \$dldir/$dlname'
19061 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19062 dlpath=$dir/\$dldll~
19063 $rm \$dlpath'
19064 shlibpath_overrides_runpath=yes
19065
19066 case $host_os in
19067 cygwin*)
19068 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19069 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19070 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19071 ;;
19072 mingw*)
19073 # MinGW DLLs use traditional 'lib' prefix
19074 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19075 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19076 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19077 # It is most probably a Windows format PATH printed by
19078 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19079 # path with ; separators, and with drive letters. We can handle the
19080 # drive letters (cygwin fileutils understands them), so leave them,
19081 # especially as we might pass files found there to a mingw objdump,
19082 # which wouldn't understand a cygwinified path. Ahh.
19083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19084 else
19085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19086 fi
19087 ;;
19088 pw32*)
19089 # pw32 DLLs use 'pw' prefix rather than 'lib'
19090 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19091 ;;
19092 esac
19093 ;;
19094
19095 *)
19096 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19097 ;;
19098 esac
19099 dynamic_linker='Win32 ld.exe'
19100 # FIXME: first we should search . and the directory the executable is in
19101 shlibpath_var=PATH
19102 ;;
19103
19104 darwin* | rhapsody*)
19105 dynamic_linker="$host_os dyld"
19106 version_type=darwin
19107 need_lib_prefix=no
19108 need_version=no
19109 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19110 soname_spec='${libname}${release}${major}$shared_ext'
19111 shlibpath_overrides_runpath=yes
19112 shlibpath_var=DYLD_LIBRARY_PATH
19113 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19114 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19115 if test "$GCC" = yes; then
19116 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"`
19117 else
19118 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19119 fi
19120 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19121 ;;
19122
19123 dgux*)
19124 version_type=linux
19125 need_lib_prefix=no
19126 need_version=no
19127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19128 soname_spec='${libname}${release}${shared_ext}$major'
19129 shlibpath_var=LD_LIBRARY_PATH
19130 ;;
19131
19132 freebsd1*)
19133 dynamic_linker=no
19134 ;;
19135
19136 kfreebsd*-gnu)
19137 version_type=linux
19138 need_lib_prefix=no
19139 need_version=no
19140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19141 soname_spec='${libname}${release}${shared_ext}$major'
19142 shlibpath_var=LD_LIBRARY_PATH
19143 shlibpath_overrides_runpath=no
19144 hardcode_into_libs=yes
19145 dynamic_linker='GNU ld.so'
19146 ;;
19147
19148 freebsd* | dragonfly*)
19149 # DragonFly does not have aout. When/if they implement a new
19150 # versioning mechanism, adjust this.
19151 if test -x /usr/bin/objformat; then
19152 objformat=`/usr/bin/objformat`
19153 else
19154 case $host_os in
19155 freebsd[123]*) objformat=aout ;;
19156 *) objformat=elf ;;
19157 esac
19158 fi
19159 version_type=freebsd-$objformat
19160 case $version_type in
19161 freebsd-elf*)
19162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19163 need_version=no
19164 need_lib_prefix=no
19165 ;;
19166 freebsd-*)
19167 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19168 need_version=yes
19169 ;;
19170 esac
19171 shlibpath_var=LD_LIBRARY_PATH
19172 case $host_os in
19173 freebsd2*)
19174 shlibpath_overrides_runpath=yes
19175 ;;
19176 freebsd3.[01]* | freebsdelf3.[01]*)
19177 shlibpath_overrides_runpath=yes
19178 hardcode_into_libs=yes
19179 ;;
19180 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19181 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19182 shlibpath_overrides_runpath=no
19183 hardcode_into_libs=yes
19184 ;;
19185 freebsd*) # from 4.6 on
19186 shlibpath_overrides_runpath=yes
19187 hardcode_into_libs=yes
19188 ;;
19189 esac
19190 ;;
19191
19192 gnu*)
19193 version_type=linux
19194 need_lib_prefix=no
19195 need_version=no
19196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19197 soname_spec='${libname}${release}${shared_ext}$major'
19198 shlibpath_var=LD_LIBRARY_PATH
19199 hardcode_into_libs=yes
19200 ;;
19201
19202 hpux9* | hpux10* | hpux11*)
19203 # Give a soname corresponding to the major version so that dld.sl refuses to
19204 # link against other versions.
19205 version_type=sunos
19206 need_lib_prefix=no
19207 need_version=no
19208 case $host_cpu in
19209 ia64*)
19210 shrext_cmds='.so'
19211 hardcode_into_libs=yes
19212 dynamic_linker="$host_os dld.so"
19213 shlibpath_var=LD_LIBRARY_PATH
19214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19216 soname_spec='${libname}${release}${shared_ext}$major'
19217 if test "X$HPUX_IA64_MODE" = X32; then
19218 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19219 else
19220 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19221 fi
19222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19223 ;;
19224 hppa*64*)
19225 shrext_cmds='.sl'
19226 hardcode_into_libs=yes
19227 dynamic_linker="$host_os dld.sl"
19228 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19229 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19231 soname_spec='${libname}${release}${shared_ext}$major'
19232 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19233 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19234 ;;
19235 *)
19236 shrext_cmds='.sl'
19237 dynamic_linker="$host_os dld.sl"
19238 shlibpath_var=SHLIB_PATH
19239 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19241 soname_spec='${libname}${release}${shared_ext}$major'
19242 ;;
19243 esac
19244 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19245 postinstall_cmds='chmod 555 $lib'
19246 ;;
19247
19248 interix3*)
19249 version_type=linux
19250 need_lib_prefix=no
19251 need_version=no
19252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19253 soname_spec='${libname}${release}${shared_ext}$major'
19254 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19255 shlibpath_var=LD_LIBRARY_PATH
19256 shlibpath_overrides_runpath=no
19257 hardcode_into_libs=yes
19258 ;;
19259
19260 irix5* | irix6* | nonstopux*)
19261 case $host_os in
19262 nonstopux*) version_type=nonstopux ;;
19263 *)
19264 if test "$lt_cv_prog_gnu_ld" = yes; then
19265 version_type=linux
19266 else
19267 version_type=irix
19268 fi ;;
19269 esac
19270 need_lib_prefix=no
19271 need_version=no
19272 soname_spec='${libname}${release}${shared_ext}$major'
19273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19274 case $host_os in
19275 irix5* | nonstopux*)
19276 libsuff= shlibsuff=
19277 ;;
19278 *)
19279 case $LD in # libtool.m4 will add one of these switches to LD
19280 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19281 libsuff= shlibsuff= libmagic=32-bit;;
19282 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19283 libsuff=32 shlibsuff=N32 libmagic=N32;;
19284 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19285 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19286 *) libsuff= shlibsuff= libmagic=never-match;;
19287 esac
19288 ;;
19289 esac
19290 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19291 shlibpath_overrides_runpath=no
19292 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19293 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19294 hardcode_into_libs=yes
19295 ;;
19296
19297 # No shared lib support for Linux oldld, aout, or coff.
19298 linux*oldld* | linux*aout* | linux*coff*)
19299 dynamic_linker=no
19300 ;;
19301
19302 # This must be Linux ELF.
19303 linux*)
19304 version_type=linux
19305 need_lib_prefix=no
19306 need_version=no
19307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19308 soname_spec='${libname}${release}${shared_ext}$major'
19309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19310 shlibpath_var=LD_LIBRARY_PATH
19311 shlibpath_overrides_runpath=no
19312 # This implies no fast_install, which is unacceptable.
19313 # Some rework will be needed to allow for fast_install
19314 # before this can be enabled.
19315 hardcode_into_libs=yes
19316
19317 # Append ld.so.conf contents to the search path
19318 if test -f /etc/ld.so.conf; then
19319 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' ' '`
19320 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19321 fi
19322
19323 # We used to test for /lib/ld.so.1 and disable shared libraries on
19324 # powerpc, because MkLinux only supported shared libraries with the
19325 # GNU dynamic linker. Since this was broken with cross compilers,
19326 # most powerpc-linux boxes support dynamic linking these days and
19327 # people can always --disable-shared, the test was removed, and we
19328 # assume the GNU/Linux dynamic linker is in use.
19329 dynamic_linker='GNU/Linux ld.so'
19330 ;;
19331
19332 knetbsd*-gnu)
19333 version_type=linux
19334 need_lib_prefix=no
19335 need_version=no
19336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19337 soname_spec='${libname}${release}${shared_ext}$major'
19338 shlibpath_var=LD_LIBRARY_PATH
19339 shlibpath_overrides_runpath=no
19340 hardcode_into_libs=yes
19341 dynamic_linker='GNU ld.so'
19342 ;;
19343
19344 netbsd*)
19345 version_type=sunos
19346 need_lib_prefix=no
19347 need_version=no
19348 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19351 dynamic_linker='NetBSD (a.out) ld.so'
19352 else
19353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19354 soname_spec='${libname}${release}${shared_ext}$major'
19355 dynamic_linker='NetBSD ld.elf_so'
19356 fi
19357 shlibpath_var=LD_LIBRARY_PATH
19358 shlibpath_overrides_runpath=yes
19359 hardcode_into_libs=yes
19360 ;;
19361
19362 newsos6)
19363 version_type=linux
19364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19365 shlibpath_var=LD_LIBRARY_PATH
19366 shlibpath_overrides_runpath=yes
19367 ;;
19368
19369 nto-qnx*)
19370 version_type=linux
19371 need_lib_prefix=no
19372 need_version=no
19373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19374 soname_spec='${libname}${release}${shared_ext}$major'
19375 shlibpath_var=LD_LIBRARY_PATH
19376 shlibpath_overrides_runpath=yes
19377 ;;
19378
19379 openbsd*)
19380 version_type=sunos
19381 sys_lib_dlsearch_path_spec="/usr/lib"
19382 need_lib_prefix=no
19383 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19384 case $host_os in
19385 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19386 *) need_version=no ;;
19387 esac
19388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19390 shlibpath_var=LD_LIBRARY_PATH
19391 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19392 case $host_os in
19393 openbsd2.[89] | openbsd2.[89].*)
19394 shlibpath_overrides_runpath=no
19395 ;;
19396 *)
19397 shlibpath_overrides_runpath=yes
19398 ;;
19399 esac
19400 else
19401 shlibpath_overrides_runpath=yes
19402 fi
19403 ;;
19404
19405 os2*)
19406 libname_spec='$name'
19407 shrext_cmds=".dll"
19408 need_lib_prefix=no
19409 library_names_spec='$libname${shared_ext} $libname.a'
19410 dynamic_linker='OS/2 ld.exe'
19411 shlibpath_var=LIBPATH
19412 ;;
19413
19414 osf3* | osf4* | osf5*)
19415 version_type=osf
19416 need_lib_prefix=no
19417 need_version=no
19418 soname_spec='${libname}${release}${shared_ext}$major'
19419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19420 shlibpath_var=LD_LIBRARY_PATH
19421 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19422 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19423 ;;
19424
19425 solaris*)
19426 version_type=linux
19427 need_lib_prefix=no
19428 need_version=no
19429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19430 soname_spec='${libname}${release}${shared_ext}$major'
19431 shlibpath_var=LD_LIBRARY_PATH
19432 shlibpath_overrides_runpath=yes
19433 hardcode_into_libs=yes
19434 # ldd complains unless libraries are executable
19435 postinstall_cmds='chmod +x $lib'
19436 ;;
19437
19438 sunos4*)
19439 version_type=sunos
19440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19441 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19442 shlibpath_var=LD_LIBRARY_PATH
19443 shlibpath_overrides_runpath=yes
19444 if test "$with_gnu_ld" = yes; then
19445 need_lib_prefix=no
19446 fi
19447 need_version=yes
19448 ;;
19449
19450 sysv4 | sysv4.3*)
19451 version_type=linux
19452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19453 soname_spec='${libname}${release}${shared_ext}$major'
19454 shlibpath_var=LD_LIBRARY_PATH
19455 case $host_vendor in
19456 sni)
19457 shlibpath_overrides_runpath=no
19458 need_lib_prefix=no
19459 export_dynamic_flag_spec='${wl}-Blargedynsym'
19460 runpath_var=LD_RUN_PATH
19461 ;;
19462 siemens)
19463 need_lib_prefix=no
19464 ;;
19465 motorola)
19466 need_lib_prefix=no
19467 need_version=no
19468 shlibpath_overrides_runpath=no
19469 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19470 ;;
19471 esac
19472 ;;
19473
19474 sysv4*MP*)
19475 if test -d /usr/nec ;then
19476 version_type=linux
19477 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19478 soname_spec='$libname${shared_ext}.$major'
19479 shlibpath_var=LD_LIBRARY_PATH
19480 fi
19481 ;;
19482
19483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19484 version_type=freebsd-elf
19485 need_lib_prefix=no
19486 need_version=no
19487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19488 soname_spec='${libname}${release}${shared_ext}$major'
19489 shlibpath_var=LD_LIBRARY_PATH
19490 hardcode_into_libs=yes
19491 if test "$with_gnu_ld" = yes; then
19492 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19493 shlibpath_overrides_runpath=no
19494 else
19495 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19496 shlibpath_overrides_runpath=yes
19497 case $host_os in
19498 sco3.2v5*)
19499 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19500 ;;
19501 esac
19502 fi
19503 sys_lib_dlsearch_path_spec='/usr/lib'
19504 ;;
19505
19506 uts4*)
19507 version_type=linux
19508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19509 soname_spec='${libname}${release}${shared_ext}$major'
19510 shlibpath_var=LD_LIBRARY_PATH
19511 ;;
19512
19513 *)
19514 dynamic_linker=no
19515 ;;
19516 esac
19517 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19518 echo "${ECHO_T}$dynamic_linker" >&6
19519 test "$dynamic_linker" = no && can_build_shared=no
19520
19521 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19522 if test "$GCC" = yes; then
19523 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19524 fi
19525
19526 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19527 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19528 hardcode_action_GCJ=
19529 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19530 test -n "$runpath_var_GCJ" || \
19531 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19532
19533 # We can hardcode non-existant directories.
19534 if test "$hardcode_direct_GCJ" != no &&
19535 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19536 # have to relink, otherwise we might link with an installed library
19537 # when we should be linking with a yet-to-be-installed one
19538 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19539 test "$hardcode_minus_L_GCJ" != no; then
19540 # Linking always hardcodes the temporary library directory.
19541 hardcode_action_GCJ=relink
19542 else
19543 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19544 hardcode_action_GCJ=immediate
19545 fi
19546 else
19547 # We cannot hardcode anything, or else we can only hardcode existing
19548 # directories.
19549 hardcode_action_GCJ=unsupported
19550 fi
19551 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19552 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19553
19554 if test "$hardcode_action_GCJ" = relink; then
19555 # Fast installation is not supported
19556 enable_fast_install=no
19557 elif test "$shlibpath_overrides_runpath" = yes ||
19558 test "$enable_shared" = no; then
19559 # Fast installation is not necessary
19560 enable_fast_install=needless
19561 fi
19562
19563
19564 # The else clause should only fire when bootstrapping the
19565 # libtool distribution, otherwise you forgot to ship ltmain.sh
19566 # with your package, and you will get complaints that there are
19567 # no rules to generate ltmain.sh.
19568 if test -f "$ltmain"; then
19569 # See if we are running on zsh, and set the options which allow our commands through
19570 # without removal of \ escapes.
19571 if test -n "${ZSH_VERSION+set}" ; then
19572 setopt NO_GLOB_SUBST
19573 fi
19574 # Now quote all the things that may contain metacharacters while being
19575 # careful not to overquote the AC_SUBSTed values. We take copies of the
19576 # variables and quote the copies for generation of the libtool script.
19577 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19578 SED SHELL STRIP \
19579 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19580 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19581 deplibs_check_method reload_flag reload_cmds need_locks \
19582 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19583 lt_cv_sys_global_symbol_to_c_name_address \
19584 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19585 old_postinstall_cmds old_postuninstall_cmds \
19586 compiler_GCJ \
19587 CC_GCJ \
19588 LD_GCJ \
19589 lt_prog_compiler_wl_GCJ \
19590 lt_prog_compiler_pic_GCJ \
19591 lt_prog_compiler_static_GCJ \
19592 lt_prog_compiler_no_builtin_flag_GCJ \
19593 export_dynamic_flag_spec_GCJ \
19594 thread_safe_flag_spec_GCJ \
19595 whole_archive_flag_spec_GCJ \
19596 enable_shared_with_static_runtimes_GCJ \
19597 old_archive_cmds_GCJ \
19598 old_archive_from_new_cmds_GCJ \
19599 predep_objects_GCJ \
19600 postdep_objects_GCJ \
19601 predeps_GCJ \
19602 postdeps_GCJ \
19603 compiler_lib_search_path_GCJ \
19604 archive_cmds_GCJ \
19605 archive_expsym_cmds_GCJ \
19606 postinstall_cmds_GCJ \
19607 postuninstall_cmds_GCJ \
19608 old_archive_from_expsyms_cmds_GCJ \
19609 allow_undefined_flag_GCJ \
19610 no_undefined_flag_GCJ \
19611 export_symbols_cmds_GCJ \
19612 hardcode_libdir_flag_spec_GCJ \
19613 hardcode_libdir_flag_spec_ld_GCJ \
19614 hardcode_libdir_separator_GCJ \
19615 hardcode_automatic_GCJ \
19616 module_cmds_GCJ \
19617 module_expsym_cmds_GCJ \
19618 lt_cv_prog_compiler_c_o_GCJ \
19619 exclude_expsyms_GCJ \
19620 include_expsyms_GCJ; do
19621
19622 case $var in
19623 old_archive_cmds_GCJ | \
19624 old_archive_from_new_cmds_GCJ | \
19625 archive_cmds_GCJ | \
19626 archive_expsym_cmds_GCJ | \
19627 module_cmds_GCJ | \
19628 module_expsym_cmds_GCJ | \
19629 old_archive_from_expsyms_cmds_GCJ | \
19630 export_symbols_cmds_GCJ | \
19631 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19632 postinstall_cmds | postuninstall_cmds | \
19633 old_postinstall_cmds | old_postuninstall_cmds | \
19634 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19635 # Double-quote double-evaled strings.
19636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19637 ;;
19638 *)
19639 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19640 ;;
19641 esac
19642 done
19643
19644 case $lt_echo in
19645 *'\$0 --fallback-echo"')
19646 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19647 ;;
19648 esac
19649
19650 cfgfile="$ofile"
19651
19652 cat <<__EOF__ >> "$cfgfile"
19653 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19654
19655 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19656
19657 # Shell to use when invoking shell scripts.
19658 SHELL=$lt_SHELL
19659
19660 # Whether or not to build shared libraries.
19661 build_libtool_libs=$enable_shared
19662
19663 # Whether or not to build static libraries.
19664 build_old_libs=$enable_static
19665
19666 # Whether or not to add -lc for building shared libraries.
19667 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19668
19669 # Whether or not to disallow shared libs when runtime libs are static
19670 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19671
19672 # Whether or not to optimize for fast installation.
19673 fast_install=$enable_fast_install
19674
19675 # The host system.
19676 host_alias=$host_alias
19677 host=$host
19678 host_os=$host_os
19679
19680 # The build system.
19681 build_alias=$build_alias
19682 build=$build
19683 build_os=$build_os
19684
19685 # An echo program that does not interpret backslashes.
19686 echo=$lt_echo
19687
19688 # The archiver.
19689 AR=$lt_AR
19690 AR_FLAGS=$lt_AR_FLAGS
19691
19692 # A C compiler.
19693 LTCC=$lt_LTCC
19694
19695 # LTCC compiler flags.
19696 LTCFLAGS=$lt_LTCFLAGS
19697
19698 # A language-specific compiler.
19699 CC=$lt_compiler_GCJ
19700
19701 # Is the compiler the GNU C compiler?
19702 with_gcc=$GCC_GCJ
19703
19704 # An ERE matcher.
19705 EGREP=$lt_EGREP
19706
19707 # The linker used to build libraries.
19708 LD=$lt_LD_GCJ
19709
19710 # Whether we need hard or soft links.
19711 LN_S=$lt_LN_S
19712
19713 # A BSD-compatible nm program.
19714 NM=$lt_NM
19715
19716 # A symbol stripping program
19717 STRIP=$lt_STRIP
19718
19719 # Used to examine libraries when file_magic_cmd begins "file"
19720 MAGIC_CMD=$MAGIC_CMD
19721
19722 # Used on cygwin: DLL creation program.
19723 DLLTOOL="$DLLTOOL"
19724
19725 # Used on cygwin: object dumper.
19726 OBJDUMP="$OBJDUMP"
19727
19728 # Used on cygwin: assembler.
19729 AS="$AS"
19730
19731 # The name of the directory that contains temporary libtool files.
19732 objdir=$objdir
19733
19734 # How to create reloadable object files.
19735 reload_flag=$lt_reload_flag
19736 reload_cmds=$lt_reload_cmds
19737
19738 # How to pass a linker flag through the compiler.
19739 wl=$lt_lt_prog_compiler_wl_GCJ
19740
19741 # Object file suffix (normally "o").
19742 objext="$ac_objext"
19743
19744 # Old archive suffix (normally "a").
19745 libext="$libext"
19746
19747 # Shared library suffix (normally ".so").
19748 shrext_cmds='$shrext_cmds'
19749
19750 # Executable file suffix (normally "").
19751 exeext="$exeext"
19752
19753 # Additional compiler flags for building library objects.
19754 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19755 pic_mode=$pic_mode
19756
19757 # What is the maximum length of a command?
19758 max_cmd_len=$lt_cv_sys_max_cmd_len
19759
19760 # Does compiler simultaneously support -c and -o options?
19761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19762
19763 # Must we lock files when doing compilation?
19764 need_locks=$lt_need_locks
19765
19766 # Do we need the lib prefix for modules?
19767 need_lib_prefix=$need_lib_prefix
19768
19769 # Do we need a version for libraries?
19770 need_version=$need_version
19771
19772 # Whether dlopen is supported.
19773 dlopen_support=$enable_dlopen
19774
19775 # Whether dlopen of programs is supported.
19776 dlopen_self=$enable_dlopen_self
19777
19778 # Whether dlopen of statically linked programs is supported.
19779 dlopen_self_static=$enable_dlopen_self_static
19780
19781 # Compiler flag to prevent dynamic linking.
19782 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19783
19784 # Compiler flag to turn off builtin functions.
19785 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19786
19787 # Compiler flag to allow reflexive dlopens.
19788 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19789
19790 # Compiler flag to generate shared objects directly from archives.
19791 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19792
19793 # Compiler flag to generate thread-safe objects.
19794 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19795
19796 # Library versioning type.
19797 version_type=$version_type
19798
19799 # Format of library name prefix.
19800 libname_spec=$lt_libname_spec
19801
19802 # List of archive names. First name is the real one, the rest are links.
19803 # The last name is the one that the linker finds with -lNAME.
19804 library_names_spec=$lt_library_names_spec
19805
19806 # The coded name of the library, if different from the real name.
19807 soname_spec=$lt_soname_spec
19808
19809 # Commands used to build and install an old-style archive.
19810 RANLIB=$lt_RANLIB
19811 old_archive_cmds=$lt_old_archive_cmds_GCJ
19812 old_postinstall_cmds=$lt_old_postinstall_cmds
19813 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19814
19815 # Create an old-style archive from a shared archive.
19816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19817
19818 # Create a temporary old-style archive to link instead of a shared archive.
19819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19820
19821 # Commands used to build and install a shared archive.
19822 archive_cmds=$lt_archive_cmds_GCJ
19823 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19824 postinstall_cmds=$lt_postinstall_cmds
19825 postuninstall_cmds=$lt_postuninstall_cmds
19826
19827 # Commands used to build a loadable module (assumed same as above if empty)
19828 module_cmds=$lt_module_cmds_GCJ
19829 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19830
19831 # Commands to strip libraries.
19832 old_striplib=$lt_old_striplib
19833 striplib=$lt_striplib
19834
19835 # Dependencies to place before the objects being linked to create a
19836 # shared library.
19837 predep_objects=$lt_predep_objects_GCJ
19838
19839 # Dependencies to place after the objects being linked to create a
19840 # shared library.
19841 postdep_objects=$lt_postdep_objects_GCJ
19842
19843 # Dependencies to place before the objects being linked to create a
19844 # shared library.
19845 predeps=$lt_predeps_GCJ
19846
19847 # Dependencies to place after the objects being linked to create a
19848 # shared library.
19849 postdeps=$lt_postdeps_GCJ
19850
19851 # The library search path used internally by the compiler when linking
19852 # a shared library.
19853 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19854
19855 # Method to check whether dependent libraries are shared objects.
19856 deplibs_check_method=$lt_deplibs_check_method
19857
19858 # Command to use when deplibs_check_method == file_magic.
19859 file_magic_cmd=$lt_file_magic_cmd
19860
19861 # Flag that allows shared libraries with undefined symbols to be built.
19862 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19863
19864 # Flag that forces no undefined symbols.
19865 no_undefined_flag=$lt_no_undefined_flag_GCJ
19866
19867 # Commands used to finish a libtool library installation in a directory.
19868 finish_cmds=$lt_finish_cmds
19869
19870 # Same as above, but a single script fragment to be evaled but not shown.
19871 finish_eval=$lt_finish_eval
19872
19873 # Take the output of nm and produce a listing of raw symbols and C names.
19874 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19875
19876 # Transform the output of nm in a proper C declaration
19877 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19878
19879 # Transform the output of nm in a C name address pair
19880 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19881
19882 # This is the shared library runtime path variable.
19883 runpath_var=$runpath_var
19884
19885 # This is the shared library path variable.
19886 shlibpath_var=$shlibpath_var
19887
19888 # Is shlibpath searched before the hard-coded library search path?
19889 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19890
19891 # How to hardcode a shared library path into an executable.
19892 hardcode_action=$hardcode_action_GCJ
19893
19894 # Whether we should hardcode library paths into libraries.
19895 hardcode_into_libs=$hardcode_into_libs
19896
19897 # Flag to hardcode \$libdir into a binary during linking.
19898 # This must work even if \$libdir does not exist.
19899 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19900
19901 # If ld is used when linking, flag to hardcode \$libdir into
19902 # a binary during linking. This must work even if \$libdir does
19903 # not exist.
19904 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19905
19906 # Whether we need a single -rpath flag with a separated argument.
19907 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19908
19909 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19910 # resulting binary.
19911 hardcode_direct=$hardcode_direct_GCJ
19912
19913 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19914 # resulting binary.
19915 hardcode_minus_L=$hardcode_minus_L_GCJ
19916
19917 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19918 # the resulting binary.
19919 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19920
19921 # Set to yes if building a shared library automatically hardcodes DIR into the library
19922 # and all subsequent libraries and executables linked against it.
19923 hardcode_automatic=$hardcode_automatic_GCJ
19924
19925 # Variables whose values should be saved in libtool wrapper scripts and
19926 # restored at relink time.
19927 variables_saved_for_relink="$variables_saved_for_relink"
19928
19929 # Whether libtool must link a program against all its dependency libraries.
19930 link_all_deplibs=$link_all_deplibs_GCJ
19931
19932 # Compile-time system search path for libraries
19933 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19934
19935 # Run-time system search path for libraries
19936 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19937
19938 # Fix the shell variable \$srcfile for the compiler.
19939 fix_srcfile_path="$fix_srcfile_path_GCJ"
19940
19941 # Set to yes if exported symbols are required.
19942 always_export_symbols=$always_export_symbols_GCJ
19943
19944 # The commands to list exported symbols.
19945 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19946
19947 # The commands to extract the exported symbol list from a shared archive.
19948 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19949
19950 # Symbols that should not be listed in the preloaded symbols.
19951 exclude_expsyms=$lt_exclude_expsyms_GCJ
19952
19953 # Symbols that must always be exported.
19954 include_expsyms=$lt_include_expsyms_GCJ
19955
19956 # ### END LIBTOOL TAG CONFIG: $tagname
19957
19958 __EOF__
19959
19960
19961 else
19962 # If there is no Makefile yet, we rely on a make rule to execute
19963 # `config.status --recheck' to rerun these tests and create the
19964 # libtool script then.
19965 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19966 if test -f "$ltmain_in"; then
19967 test -f Makefile && make "$ltmain"
19968 fi
19969 fi
19970
19971
19972 ac_ext=c
19973 ac_cpp='$CPP $CPPFLAGS'
19974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19977
19978 CC="$lt_save_CC"
19979
19980 else
19981 tagname=""
19982 fi
19983 ;;
19984
19985 RC)
19986
19987
19988
19989 # Source file extension for RC test sources.
19990 ac_ext=rc
19991
19992 # Object file extension for compiled RC test sources.
19993 objext=o
19994 objext_RC=$objext
19995
19996 # Code to be used in simple compile tests
19997 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19998
19999 # Code to be used in simple link tests
20000 lt_simple_link_test_code="$lt_simple_compile_test_code"
20001
20002 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20003
20004 # If no C compiler was specified, use CC.
20005 LTCC=${LTCC-"$CC"}
20006
20007 # If no C compiler flags were specified, use CFLAGS.
20008 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20009
20010 # Allow CC to be a program name with arguments.
20011 compiler=$CC
20012
20013
20014 # save warnings/boilerplate of simple test code
20015 ac_outfile=conftest.$ac_objext
20016 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20017 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20018 _lt_compiler_boilerplate=`cat conftest.err`
20019 $rm conftest*
20020
20021 ac_outfile=conftest.$ac_objext
20022 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20023 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20024 _lt_linker_boilerplate=`cat conftest.err`
20025 $rm conftest*
20026
20027
20028 # Allow CC to be a program name with arguments.
20029 lt_save_CC="$CC"
20030 CC=${RC-"windres"}
20031 compiler=$CC
20032 compiler_RC=$CC
20033 for cc_temp in $compiler""; do
20034 case $cc_temp in
20035 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20036 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20037 \-*) ;;
20038 *) break;;
20039 esac
20040 done
20041 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20042
20043 lt_cv_prog_compiler_c_o_RC=yes
20044
20045 # The else clause should only fire when bootstrapping the
20046 # libtool distribution, otherwise you forgot to ship ltmain.sh
20047 # with your package, and you will get complaints that there are
20048 # no rules to generate ltmain.sh.
20049 if test -f "$ltmain"; then
20050 # See if we are running on zsh, and set the options which allow our commands through
20051 # without removal of \ escapes.
20052 if test -n "${ZSH_VERSION+set}" ; then
20053 setopt NO_GLOB_SUBST
20054 fi
20055 # Now quote all the things that may contain metacharacters while being
20056 # careful not to overquote the AC_SUBSTed values. We take copies of the
20057 # variables and quote the copies for generation of the libtool script.
20058 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20059 SED SHELL STRIP \
20060 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20061 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20062 deplibs_check_method reload_flag reload_cmds need_locks \
20063 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20064 lt_cv_sys_global_symbol_to_c_name_address \
20065 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20066 old_postinstall_cmds old_postuninstall_cmds \
20067 compiler_RC \
20068 CC_RC \
20069 LD_RC \
20070 lt_prog_compiler_wl_RC \
20071 lt_prog_compiler_pic_RC \
20072 lt_prog_compiler_static_RC \
20073 lt_prog_compiler_no_builtin_flag_RC \
20074 export_dynamic_flag_spec_RC \
20075 thread_safe_flag_spec_RC \
20076 whole_archive_flag_spec_RC \
20077 enable_shared_with_static_runtimes_RC \
20078 old_archive_cmds_RC \
20079 old_archive_from_new_cmds_RC \
20080 predep_objects_RC \
20081 postdep_objects_RC \
20082 predeps_RC \
20083 postdeps_RC \
20084 compiler_lib_search_path_RC \
20085 archive_cmds_RC \
20086 archive_expsym_cmds_RC \
20087 postinstall_cmds_RC \
20088 postuninstall_cmds_RC \
20089 old_archive_from_expsyms_cmds_RC \
20090 allow_undefined_flag_RC \
20091 no_undefined_flag_RC \
20092 export_symbols_cmds_RC \
20093 hardcode_libdir_flag_spec_RC \
20094 hardcode_libdir_flag_spec_ld_RC \
20095 hardcode_libdir_separator_RC \
20096 hardcode_automatic_RC \
20097 module_cmds_RC \
20098 module_expsym_cmds_RC \
20099 lt_cv_prog_compiler_c_o_RC \
20100 exclude_expsyms_RC \
20101 include_expsyms_RC; do
20102
20103 case $var in
20104 old_archive_cmds_RC | \
20105 old_archive_from_new_cmds_RC | \
20106 archive_cmds_RC | \
20107 archive_expsym_cmds_RC | \
20108 module_cmds_RC | \
20109 module_expsym_cmds_RC | \
20110 old_archive_from_expsyms_cmds_RC | \
20111 export_symbols_cmds_RC | \
20112 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20113 postinstall_cmds | postuninstall_cmds | \
20114 old_postinstall_cmds | old_postuninstall_cmds | \
20115 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20116 # Double-quote double-evaled strings.
20117 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20118 ;;
20119 *)
20120 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20121 ;;
20122 esac
20123 done
20124
20125 case $lt_echo in
20126 *'\$0 --fallback-echo"')
20127 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20128 ;;
20129 esac
20130
20131 cfgfile="$ofile"
20132
20133 cat <<__EOF__ >> "$cfgfile"
20134 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20135
20136 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20137
20138 # Shell to use when invoking shell scripts.
20139 SHELL=$lt_SHELL
20140
20141 # Whether or not to build shared libraries.
20142 build_libtool_libs=$enable_shared
20143
20144 # Whether or not to build static libraries.
20145 build_old_libs=$enable_static
20146
20147 # Whether or not to add -lc for building shared libraries.
20148 build_libtool_need_lc=$archive_cmds_need_lc_RC
20149
20150 # Whether or not to disallow shared libs when runtime libs are static
20151 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20152
20153 # Whether or not to optimize for fast installation.
20154 fast_install=$enable_fast_install
20155
20156 # The host system.
20157 host_alias=$host_alias
20158 host=$host
20159 host_os=$host_os
20160
20161 # The build system.
20162 build_alias=$build_alias
20163 build=$build
20164 build_os=$build_os
20165
20166 # An echo program that does not interpret backslashes.
20167 echo=$lt_echo
20168
20169 # The archiver.
20170 AR=$lt_AR
20171 AR_FLAGS=$lt_AR_FLAGS
20172
20173 # A C compiler.
20174 LTCC=$lt_LTCC
20175
20176 # LTCC compiler flags.
20177 LTCFLAGS=$lt_LTCFLAGS
20178
20179 # A language-specific compiler.
20180 CC=$lt_compiler_RC
20181
20182 # Is the compiler the GNU C compiler?
20183 with_gcc=$GCC_RC
20184
20185 # An ERE matcher.
20186 EGREP=$lt_EGREP
20187
20188 # The linker used to build libraries.
20189 LD=$lt_LD_RC
20190
20191 # Whether we need hard or soft links.
20192 LN_S=$lt_LN_S
20193
20194 # A BSD-compatible nm program.
20195 NM=$lt_NM
20196
20197 # A symbol stripping program
20198 STRIP=$lt_STRIP
20199
20200 # Used to examine libraries when file_magic_cmd begins "file"
20201 MAGIC_CMD=$MAGIC_CMD
20202
20203 # Used on cygwin: DLL creation program.
20204 DLLTOOL="$DLLTOOL"
20205
20206 # Used on cygwin: object dumper.
20207 OBJDUMP="$OBJDUMP"
20208
20209 # Used on cygwin: assembler.
20210 AS="$AS"
20211
20212 # The name of the directory that contains temporary libtool files.
20213 objdir=$objdir
20214
20215 # How to create reloadable object files.
20216 reload_flag=$lt_reload_flag
20217 reload_cmds=$lt_reload_cmds
20218
20219 # How to pass a linker flag through the compiler.
20220 wl=$lt_lt_prog_compiler_wl_RC
20221
20222 # Object file suffix (normally "o").
20223 objext="$ac_objext"
20224
20225 # Old archive suffix (normally "a").
20226 libext="$libext"
20227
20228 # Shared library suffix (normally ".so").
20229 shrext_cmds='$shrext_cmds'
20230
20231 # Executable file suffix (normally "").
20232 exeext="$exeext"
20233
20234 # Additional compiler flags for building library objects.
20235 pic_flag=$lt_lt_prog_compiler_pic_RC
20236 pic_mode=$pic_mode
20237
20238 # What is the maximum length of a command?
20239 max_cmd_len=$lt_cv_sys_max_cmd_len
20240
20241 # Does compiler simultaneously support -c and -o options?
20242 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20243
20244 # Must we lock files when doing compilation?
20245 need_locks=$lt_need_locks
20246
20247 # Do we need the lib prefix for modules?
20248 need_lib_prefix=$need_lib_prefix
20249
20250 # Do we need a version for libraries?
20251 need_version=$need_version
20252
20253 # Whether dlopen is supported.
20254 dlopen_support=$enable_dlopen
20255
20256 # Whether dlopen of programs is supported.
20257 dlopen_self=$enable_dlopen_self
20258
20259 # Whether dlopen of statically linked programs is supported.
20260 dlopen_self_static=$enable_dlopen_self_static
20261
20262 # Compiler flag to prevent dynamic linking.
20263 link_static_flag=$lt_lt_prog_compiler_static_RC
20264
20265 # Compiler flag to turn off builtin functions.
20266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20267
20268 # Compiler flag to allow reflexive dlopens.
20269 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20270
20271 # Compiler flag to generate shared objects directly from archives.
20272 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20273
20274 # Compiler flag to generate thread-safe objects.
20275 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20276
20277 # Library versioning type.
20278 version_type=$version_type
20279
20280 # Format of library name prefix.
20281 libname_spec=$lt_libname_spec
20282
20283 # List of archive names. First name is the real one, the rest are links.
20284 # The last name is the one that the linker finds with -lNAME.
20285 library_names_spec=$lt_library_names_spec
20286
20287 # The coded name of the library, if different from the real name.
20288 soname_spec=$lt_soname_spec
20289
20290 # Commands used to build and install an old-style archive.
20291 RANLIB=$lt_RANLIB
20292 old_archive_cmds=$lt_old_archive_cmds_RC
20293 old_postinstall_cmds=$lt_old_postinstall_cmds
20294 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20295
20296 # Create an old-style archive from a shared archive.
20297 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20298
20299 # Create a temporary old-style archive to link instead of a shared archive.
20300 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20301
20302 # Commands used to build and install a shared archive.
20303 archive_cmds=$lt_archive_cmds_RC
20304 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20305 postinstall_cmds=$lt_postinstall_cmds
20306 postuninstall_cmds=$lt_postuninstall_cmds
20307
20308 # Commands used to build a loadable module (assumed same as above if empty)
20309 module_cmds=$lt_module_cmds_RC
20310 module_expsym_cmds=$lt_module_expsym_cmds_RC
20311
20312 # Commands to strip libraries.
20313 old_striplib=$lt_old_striplib
20314 striplib=$lt_striplib
20315
20316 # Dependencies to place before the objects being linked to create a
20317 # shared library.
20318 predep_objects=$lt_predep_objects_RC
20319
20320 # Dependencies to place after the objects being linked to create a
20321 # shared library.
20322 postdep_objects=$lt_postdep_objects_RC
20323
20324 # Dependencies to place before the objects being linked to create a
20325 # shared library.
20326 predeps=$lt_predeps_RC
20327
20328 # Dependencies to place after the objects being linked to create a
20329 # shared library.
20330 postdeps=$lt_postdeps_RC
20331
20332 # The library search path used internally by the compiler when linking
20333 # a shared library.
20334 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20335
20336 # Method to check whether dependent libraries are shared objects.
20337 deplibs_check_method=$lt_deplibs_check_method
20338
20339 # Command to use when deplibs_check_method == file_magic.
20340 file_magic_cmd=$lt_file_magic_cmd
20341
20342 # Flag that allows shared libraries with undefined symbols to be built.
20343 allow_undefined_flag=$lt_allow_undefined_flag_RC
20344
20345 # Flag that forces no undefined symbols.
20346 no_undefined_flag=$lt_no_undefined_flag_RC
20347
20348 # Commands used to finish a libtool library installation in a directory.
20349 finish_cmds=$lt_finish_cmds
20350
20351 # Same as above, but a single script fragment to be evaled but not shown.
20352 finish_eval=$lt_finish_eval
20353
20354 # Take the output of nm and produce a listing of raw symbols and C names.
20355 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20356
20357 # Transform the output of nm in a proper C declaration
20358 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20359
20360 # Transform the output of nm in a C name address pair
20361 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20362
20363 # This is the shared library runtime path variable.
20364 runpath_var=$runpath_var
20365
20366 # This is the shared library path variable.
20367 shlibpath_var=$shlibpath_var
20368
20369 # Is shlibpath searched before the hard-coded library search path?
20370 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20371
20372 # How to hardcode a shared library path into an executable.
20373 hardcode_action=$hardcode_action_RC
20374
20375 # Whether we should hardcode library paths into libraries.
20376 hardcode_into_libs=$hardcode_into_libs
20377
20378 # Flag to hardcode \$libdir into a binary during linking.
20379 # This must work even if \$libdir does not exist.
20380 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20381
20382 # If ld is used when linking, flag to hardcode \$libdir into
20383 # a binary during linking. This must work even if \$libdir does
20384 # not exist.
20385 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20386
20387 # Whether we need a single -rpath flag with a separated argument.
20388 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20389
20390 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20391 # resulting binary.
20392 hardcode_direct=$hardcode_direct_RC
20393
20394 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20395 # resulting binary.
20396 hardcode_minus_L=$hardcode_minus_L_RC
20397
20398 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20399 # the resulting binary.
20400 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20401
20402 # Set to yes if building a shared library automatically hardcodes DIR into the library
20403 # and all subsequent libraries and executables linked against it.
20404 hardcode_automatic=$hardcode_automatic_RC
20405
20406 # Variables whose values should be saved in libtool wrapper scripts and
20407 # restored at relink time.
20408 variables_saved_for_relink="$variables_saved_for_relink"
20409
20410 # Whether libtool must link a program against all its dependency libraries.
20411 link_all_deplibs=$link_all_deplibs_RC
20412
20413 # Compile-time system search path for libraries
20414 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20415
20416 # Run-time system search path for libraries
20417 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20418
20419 # Fix the shell variable \$srcfile for the compiler.
20420 fix_srcfile_path="$fix_srcfile_path_RC"
20421
20422 # Set to yes if exported symbols are required.
20423 always_export_symbols=$always_export_symbols_RC
20424
20425 # The commands to list exported symbols.
20426 export_symbols_cmds=$lt_export_symbols_cmds_RC
20427
20428 # The commands to extract the exported symbol list from a shared archive.
20429 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20430
20431 # Symbols that should not be listed in the preloaded symbols.
20432 exclude_expsyms=$lt_exclude_expsyms_RC
20433
20434 # Symbols that must always be exported.
20435 include_expsyms=$lt_include_expsyms_RC
20436
20437 # ### END LIBTOOL TAG CONFIG: $tagname
20438
20439 __EOF__
20440
20441
20442 else
20443 # If there is no Makefile yet, we rely on a make rule to execute
20444 # `config.status --recheck' to rerun these tests and create the
20445 # libtool script then.
20446 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20447 if test -f "$ltmain_in"; then
20448 test -f Makefile && make "$ltmain"
20449 fi
20450 fi
20451
20452
20453 ac_ext=c
20454 ac_cpp='$CPP $CPPFLAGS'
20455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20458
20459 CC="$lt_save_CC"
20460
20461 ;;
20462
20463 *)
20464 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20465 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20466 { (exit 1); exit 1; }; }
20467 ;;
20468 esac
20469
20470 # Append the new tag name to the list of available tags.
20471 if test -n "$tagname" ; then
20472 available_tags="$available_tags $tagname"
20473 fi
20474 fi
20475 done
20476 IFS="$lt_save_ifs"
20477
20478 # Now substitute the updated list of available tags.
20479 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20480 mv "${ofile}T" "$ofile"
20481 chmod +x "$ofile"
20482 else
20483 rm -f "${ofile}T"
20484 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20485 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20486 { (exit 1); exit 1; }; }
20487 fi
20488 fi
20489
20490
20491
20492 # This can be used to rebuild libtool when needed
20493 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20494
20495 # Always use our own libtool.
20496 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20497
20498 # Prevent multiple expansion
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510 # No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20511 # AC_REQUIRE([AC_COIN_DLFCN_H])
20512
20513 # NEW: If libtool exists in the directory higher up, we use that one
20514 # instead of creating a new one
20515
20516 # It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20517 # out in front of this macro body. You'll notice that LIBTOOL is already
20518 # defined here. We'll have to count on this macro not being called if libtool
20519 # already exists, or at least move the libtool fixes outside the conditional.
20520 # AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20521 # This test is therefore removed. -- lh, 061214 --
20522 # if test "x$LIBTOOL" = x; then
20523
20524 # AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534 # AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20535
20536
20537
20538 { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20539 echo "$as_me: Build is \"$build\"." >&6;}
20540 # Extract the first word of "dos2unix", so it can be a program name with args.
20541 set dummy dos2unix; ac_word=$2
20542 echo "$as_me:$LINENO: checking for $ac_word" >&5
20543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20544 if test "${ac_cv_prog_dos2unix+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20546 else
20547 if test -n "$dos2unix"; then
20548 ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test.
20549 else
20550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20551 for as_dir in $PATH
20552 do
20553 IFS=$as_save_IFS
20554 test -z "$as_dir" && as_dir=.
20555 for ac_exec_ext in '' $ac_executable_extensions; do
20556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20557 ac_cv_prog_dos2unix="dos2unix"
20558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20559 break 2
20560 fi
20561 done
20562 done
20563
20564 fi
20565 fi
20566 dos2unix=$ac_cv_prog_dos2unix
20567 if test -n "$dos2unix"; then
20568 echo "$as_me:$LINENO: result: $dos2unix" >&5
20569 echo "${ECHO_T}$dos2unix" >&6
20570 else
20571 echo "$as_me:$LINENO: result: no" >&5
20572 echo "${ECHO_T}no" >&6
20573 fi
20574
20575 if test "$dos2unix" = dos2unix ; then
20576 mydos2unix="| dos2unix"
20577 fi
20578 case $build in
20579 *-mingw*)
20580 CYGPATH_W=echo
20581 ;;
20582 esac
20583
20584 case $build in
20585 # Here we need to check if -m32 is specified. If so, we need to correct
20586 # sys_lib_search_path_spec
20587 *-cygwin* | *-mingw*)
20588 case "$CXX" in
20589 clang* | */clang* )
20590 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20591 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20592 echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20593 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20594 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20595 -e 's|libext="lib"|libext="a"|' \
20596 libtool > conftest.bla
20597 ;;
20598 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20599 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20600 echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20601 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20602 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20603 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20604 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20605 -e 's%lib /OUT:%lib -OUT:%' \
20606 -e "s%cygpath -w%$CYGPATH_W%" \
20607 -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%' \
20608 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20609 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20610 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20611 -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"%' \
20612 libtool > conftest.bla
20613 ;;
20614 *)
20615 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20616 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20617 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20618 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20619 -e 's|libext="lib"|libext="a"|' \
20620 libtool > conftest.bla
20621 ;;
20622 esac
20623 mv conftest.bla libtool
20624 chmod 755 libtool
20625
20626 ;;
20627 *x86_64-*)
20628 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20629 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20630 echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20631 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20632 mv conftest.bla libtool
20633 chmod 755 libtool
20634 fi
20635 ;;
20636
20637 *-solaris*)
20638 if test "$GCC" = yes && \
20639 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20640 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20641 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20642 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20643 echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20644 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20645 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20646 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20647 # AC_MSG_NOTICE(Compensating for broken gcc)
20648 for lib in $fixlibtmp ; do
20649 if test -d "${lib}${hdwisa}" ; then
20650 syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20651 fi
20652 done
20653 syslibpath64="${syslibpath64} ${fixlibtmp}"
20654 else
20655 syslibpath64="$fixlibtmp"
20656 fi
20657 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20658 mv conftest.bla libtool
20659 chmod 755 libtool
20660 fi
20661 # AC_MSG_NOTICE(Result is )
20662 # $EGREP 'sys_lib_search_path_spec=' libtool
20663 fi
20664 ;;
20665 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20666 *-darwin*)
20667 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20668 echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20669 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"/' \
20670 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20671 libtool > conftest.bla
20672
20673 mv conftest.bla libtool
20674 chmod 755 libtool
20675 ;;
20676 esac
20677 # This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20678 # the macro. -- lh, 061214 --
20679 # fi
20680
20681 # AC_MSG_NOTICE([End libtool initialisation.])
20682
20683 # AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20684 # set RPATH_FLAGS to the compiler link flags required to hardcode location
20685 # of the shared objects
20686 RPATH_FLAGS=
20687
20688 if test $enable_shared = yes; then
20689 case $build in
20690 *-linux-*)
20691 if test "$GXX" = "yes"; then
20692 RPATH_FLAGS=
20693 for dir in $abs_lib_dir; do
20694 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20695 done
20696 fi ;;
20697 *-darwin*)
20698 RPATH_FLAGS=nothing ;;
20699 *-ibm-*)
20700 case "$CXX" in
20701 xlC* | */xlC* | mpxlC* | */mpxlC*)
20702 RPATH_FLAGS=nothing ;;
20703 esac ;;
20704 *-hp-*)
20705 RPATH_FLAGS=nothing ;;
20706 *-mingw32)
20707 RPATH_FLAGS=nothing ;;
20708 *-*-solaris*)
20709 RPATH_FLAGS=
20710 for dir in $abs_lib_dir; do
20711 RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20712 done
20713 esac
20714
20715 if test "$RPATH_FLAGS" = ""; then
20716 { 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
20717 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;}
20718 fi
20719 if test "$RPATH_FLAGS" = "nothing"; then
20720 RPATH_FLAGS=
20721 fi
20722 fi
20723
20724
20725
20726
20727 else
20728
20729 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20730 echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20731 # get all missing information from the config.log file
20732
20733 # output variables and defines
20734 as_save_IFS=$IFS
20735 IFS='
20736 '
20737 for oneline in `cat $coin_config_dir/config.status`; do
20738 case "$oneline" in
20739 # First some automake conditionals
20740 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \
20741 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20742 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20743 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* )
20744 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20745 # echo "$command"
20746 eval "$command"
20747 ;;
20748 s,@DEFS@* )
20749 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20750 # echo "$command"
20751 eval "$command"
20752 ;;
20753 esac
20754 done
20755 IFS=$as_save_IFS
20756
20757 # And some defines (assuming here that the packages base dir
20758 # doesn't have a config.h file
20759 for word in $defsline; do
20760 # echo word $word
20761 case $word in
20762 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20763 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20764 # echo dd $i
20765 echo $i >>confdefs.h
20766 ;;
20767 esac
20768 done
20769 fi
20770
20771 # AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20772
20773 # Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20774 if test "${enable_dependency_linking+set}" = set; then
20775 enableval="$enable_dependency_linking"
20776 dependency_linking="$enableval"
20777 else
20778 dependency_linking=auto
20779 fi;
20780
20781 if test "$dependency_linking" = auto; then
20782 # On Cygwin and AIX, building DLLs doesn't work
20783 dependency_linking=no
20784 if test x"$coin_disable_shared" = xno; then
20785 case $build in
20786 *-cygwin* | *-mingw*)
20787 case "$CC" in
20788 clang* | */clang* )
20789 dependency_linking=yes
20790 ;;
20791 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20792 dependency_linking=no
20793 ;;
20794 *gcc*)
20795 dependency_linking=yes
20796 ;;
20797 *)
20798 dependency_linking=yes
20799 ;;
20800 esac
20801 ;;
20802 *)
20803 dependency_linking=yes
20804 ;;
20805 esac
20806 fi
20807 fi
20808
20809 # Set up LT_LDFLAGS, user can initialize and we augment below
20810
20811
20812 if test "$dependency_linking" = yes ;
20813 then
20814 LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
20815 else
20816 LT_LDFLAGS="$LT_LDFLAGS"
20817 fi
20818
20819
20820
20821 if test "$dependency_linking" = yes; then
20822 DEPENDENCY_LINKING_TRUE=
20823 DEPENDENCY_LINKING_FALSE='#'
20824 else
20825 DEPENDENCY_LINKING_TRUE='#'
20826 DEPENDENCY_LINKING_FALSE=
20827 fi
20828
20829
20830 # Check if we want to set the library version
20831 echo "$as_me:$LINENO: checking if library version is set" >&5
20832 echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20833 if test x"$coin_libversion" != x; then
20834 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20835 echo "$as_me:$LINENO: result: $coin_libversion" >&5
20836 echo "${ECHO_T}$coin_libversion" >&6
20837 else
20838 echo "$as_me:$LINENO: result: no" >&5
20839 echo "${ECHO_T}no" >&6
20840 fi
20841
20842
20843
20844 #END
20845 }
20846 # AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
20847
20848
20849 #############################################################################
20850 # Check which subprojects are there #
20851 #############################################################################
20852
20853
20854 echo "$as_me:$LINENO: checking whether source of project Sample is available and should be compiled" >&5
20855 echo $ECHO_N "checking whether source of project Sample is available and should be compiled... $ECHO_C" >&6
20856
20857 coin_has_sample=notGiven
20858 coin_reason=
20859
20860 # check if user wants to skip project in any case
20861
20862 if test x"$COIN_SKIP_PROJECTS" != x; then
20863 for dir in $COIN_SKIP_PROJECTS; do
20864 if test $dir = "Sample"; then
20865 coin_has_sample="no"
20866 coin_reason="Sample has been specified in COIN_SKIP_PROJECTS"
20867 fi
20868
20869 if test $dir = "Data/Sample"; then
20870 coin_has_sample="no"
20871 coin_reason="Data/Sample has been specified in COIN_SKIP_PROJECTS"
20872 fi
20873 done
20874 fi
20875
20876 if test "$coin_has_sample" != no; then
20877
20878 # Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
20879 if test "${with_sample+set}" = set; then
20880 withval="$with_sample"
20881 if test "$withval" = no ; then
20882 coin_has_sample="no"
20883 coin_reason="--without-sample has been specified"
20884 fi
20885
20886 fi;
20887 fi
20888
20889 if test "$coin_has_sample" != no; then
20890
20891 # Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
20892 if test "${with_sample_lib+set}" = set; then
20893 withval="$with_sample_lib"
20894 if test "$withval" = no ; then
20895 coin_has_sample="no"
20896 coin_reason="--without-sample-lib has been specified"
20897 else
20898 coin_has_sample="no"
20899 coin_reason="--with-sample-lib has been specified"
20900 fi
20901 fi;
20902 fi
20903
20904 if test "$coin_has_sample" != no; then
20905
20906 # Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
20907 if test "${with_sample_incdir+set}" = set; then
20908 withval="$with_sample_incdir"
20909 if test "$withval" = no ; then
20910 coin_has_sample="no"
20911 coin_reason="--without-sample-incdir has been specified"
20912 else
20913 coin_has_sample="no"
20914 coin_reason="--with-sample-incdir has been specified"
20915 fi
20916 fi;
20917 fi
20918
20919 if test "$coin_has_sample" != no; then
20920
20921 # Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
20922 if test "${with_sample_datadir+set}" = set; then
20923 withval="$with_sample_datadir"
20924 if test "$withval" = no ; then
20925 coin_has_sample="no"
20926 coin_reason="--without-sample-datadir has been specified"
20927 else
20928 coin_has_sample="no"
20929 coin_reason="--with-sample-datadir has been specified"
20930 fi
20931 fi;
20932 fi
20933
20934
20935
20936
20937
20938 # check if project is available in present directory
20939 if test "$coin_has_sample" = notGiven; then
20940 coin_has_sample=no
20941 if test -d $srcdir/Data/Sample; then
20942 coin_reason="source in Data/Sample"
20943 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
20944 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
20945 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
20946 coin_has_sample="yes"
20947
20948 fi
20949 fi
20950
20951 if test -z "$coin_reason" ; then
20952 echo "$as_me:$LINENO: result: $coin_has_sample" >&5
20953 echo "${ECHO_T}$coin_has_sample" >&6
20954 else
20955 echo "$as_me:$LINENO: result: $coin_has_sample, $coin_reason" >&5
20956 echo "${ECHO_T}$coin_has_sample, $coin_reason" >&6
20957 fi
20958
20959 if test "$coin_has_sample" = yes ; then
20960 if test -r $srcdir/Data/Sample/configure; then
20961 coin_subdirs="$coin_subdirs Data/Sample"
20962
20963
20964 subdirs="$subdirs Data/Sample"
20965
20966 fi
20967 fi
20968
20969
20970 echo "$as_me:$LINENO: checking whether source of project CoinUtils is available and should be compiled" >&5
20971 echo $ECHO_N "checking whether source of project CoinUtils is available and should be compiled... $ECHO_C" >&6
20972
20973 coin_has_coinutils=notGiven
20974 coin_reason=
20975
20976 # check if user wants to skip project in any case
20977
20978 if test x"$COIN_SKIP_PROJECTS" != x; then
20979 for dir in $COIN_SKIP_PROJECTS; do
20980 if test $dir = "CoinUtils"; then
20981 coin_has_coinutils="no"
20982 coin_reason="CoinUtils has been specified in COIN_SKIP_PROJECTS"
20983 fi
20984
20985 done
20986 fi
20987
20988 if test "$coin_has_coinutils" != no; then
20989
20990 # Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
20991 if test "${with_coinutils+set}" = set; then
20992 withval="$with_coinutils"
20993 if test "$withval" = no ; then
20994 coin_has_coinutils="no"
20995 coin_reason="--without-coinutils has been specified"
20996 fi
20997
20998 fi;
20999 fi
21000
21001 if test "$coin_has_coinutils" != no; then
21002
21003 # Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
21004 if test "${with_coinutils_lib+set}" = set; then
21005 withval="$with_coinutils_lib"
21006 if test "$withval" = no ; then
21007 coin_has_coinutils="no"
21008 coin_reason="--without-coinutils-lib has been specified"
21009 else
21010 coin_has_coinutils="no"
21011 coin_reason="--with-coinutils-lib has been specified"
21012 fi
21013 fi;
21014 fi
21015
21016 if test "$coin_has_coinutils" != no; then
21017
21018 # Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
21019 if test "${with_coinutils_incdir+set}" = set; then
21020 withval="$with_coinutils_incdir"
21021 if test "$withval" = no ; then
21022 coin_has_coinutils="no"
21023 coin_reason="--without-coinutils-incdir has been specified"
21024 else
21025 coin_has_coinutils="no"
21026 coin_reason="--with-coinutils-incdir has been specified"
21027 fi
21028 fi;
21029 fi
21030
21031 if test "$coin_has_coinutils" != no; then
21032
21033 # Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
21034 if test "${with_coinutils_datadir+set}" = set; then
21035 withval="$with_coinutils_datadir"
21036 if test "$withval" = no ; then
21037 coin_has_coinutils="no"
21038 coin_reason="--without-coinutils-datadir has been specified"
21039 else
21040 coin_has_coinutils="no"
21041 coin_reason="--with-coinutils-datadir has been specified"
21042 fi
21043 fi;
21044 fi
21045
21046
21047
21048
21049
21050 # check if project is available in present directory
21051 if test "$coin_has_coinutils" = notGiven; then
21052 coin_has_coinutils=no
21053 if test -d $srcdir/CoinUtils; then
21054 coin_reason="source in CoinUtils"
21055 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21056 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21057 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21058 coin_has_coinutils="yes"
21059
21060 fi
21061 fi
21062
21063 if test -z "$coin_reason" ; then
21064 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
21065 echo "${ECHO_T}$coin_has_coinutils" >&6
21066 else
21067 echo "$as_me:$LINENO: result: $coin_has_coinutils, $coin_reason" >&5
21068 echo "${ECHO_T}$coin_has_coinutils, $coin_reason" >&6
21069 fi
21070
21071 if test "$coin_has_coinutils" = yes ; then
21072 if test -r $srcdir/CoinUtils/configure; then
21073 coin_subdirs="$coin_subdirs CoinUtils"
21074
21075
21076 subdirs="$subdirs CoinUtils"
21077
21078 fi
21079 fi
21080
21081
21082 echo "$as_me:$LINENO: checking whether source of project Osi is available and should be compiled" >&5
21083 echo $ECHO_N "checking whether source of project Osi is available and should be compiled... $ECHO_C" >&6
21084
21085 coin_has_osi=notGiven
21086 coin_reason=
21087
21088 # check if user wants to skip project in any case
21089
21090 if test x"$COIN_SKIP_PROJECTS" != x; then
21091 for dir in $COIN_SKIP_PROJECTS; do
21092 if test $dir = "Osi"; then
21093 coin_has_osi="no"
21094 coin_reason="Osi has been specified in COIN_SKIP_PROJECTS"
21095 fi
21096
21097 done
21098 fi
21099
21100 if test "$coin_has_osi" != no; then
21101
21102 # Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
21103 if test "${with_osi+set}" = set; then
21104 withval="$with_osi"
21105 if test "$withval" = no ; then
21106 coin_has_osi="no"
21107 coin_reason="--without-osi has been specified"
21108 fi
21109
21110 fi;
21111 fi
21112
21113 if test "$coin_has_osi" != no; then
21114
21115 # Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
21116 if test "${with_osi_lib+set}" = set; then
21117 withval="$with_osi_lib"
21118 if test "$withval" = no ; then
21119 coin_has_osi="no"
21120 coin_reason="--without-osi-lib has been specified"
21121 else
21122 coin_has_osi="no"
21123 coin_reason="--with-osi-lib has been specified"
21124 fi
21125 fi;
21126 fi
21127
21128 if test "$coin_has_osi" != no; then
21129
21130 # Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
21131 if test "${with_osi_incdir+set}" = set; then
21132 withval="$with_osi_incdir"
21133 if test "$withval" = no ; then
21134 coin_has_osi="no"
21135 coin_reason="--without-osi-incdir has been specified"
21136 else
21137 coin_has_osi="no"
21138 coin_reason="--with-osi-incdir has been specified"
21139 fi
21140 fi;
21141 fi
21142
21143 if test "$coin_has_osi" != no; then
21144
21145 # Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
21146 if test "${with_osi_datadir+set}" = set; then
21147 withval="$with_osi_datadir"
21148 if test "$withval" = no ; then
21149 coin_has_osi="no"
21150 coin_reason="--without-osi-datadir has been specified"
21151 else
21152 coin_has_osi="no"
21153 coin_reason="--with-osi-datadir has been specified"
21154 fi
21155 fi;
21156 fi
21157
21158
21159
21160
21161
21162 # check if project is available in present directory
21163 if test "$coin_has_osi" = notGiven; then
21164 coin_has_osi=no
21165 if test -d $srcdir/Osi; then
21166 coin_reason="source in Osi"
21167 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21168 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21169 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21170 coin_has_osi="yes"
21171
21172 fi
21173 fi
21174
21175 if test -z "$coin_reason" ; then
21176 echo "$as_me:$LINENO: result: $coin_has_osi" >&5
21177 echo "${ECHO_T}$coin_has_osi" >&6
21178 else
21179 echo "$as_me:$LINENO: result: $coin_has_osi, $coin_reason" >&5
21180 echo "${ECHO_T}$coin_has_osi, $coin_reason" >&6
21181 fi
21182
21183 if test "$coin_has_osi" = yes ; then
21184 if test -r $srcdir/Osi/configure; then
21185 coin_subdirs="$coin_subdirs Osi"
21186
21187
21188 subdirs="$subdirs Osi"
21189
21190 fi
21191 fi
21192
21193
21194 echo "$as_me:$LINENO: checking whether source of project Clp is available and should be compiled" >&5
21195 echo $ECHO_N "checking whether source of project Clp is available and should be compiled... $ECHO_C" >&6
21196
21197 coin_has_clp=notGiven
21198 coin_reason=
21199
21200 # check if user wants to skip project in any case
21201
21202 if test x"$COIN_SKIP_PROJECTS" != x; then
21203 for dir in $COIN_SKIP_PROJECTS; do
21204 if test $dir = "Clp"; then
21205 coin_has_clp="no"
21206 coin_reason="Clp has been specified in COIN_SKIP_PROJECTS"
21207 fi
21208
21209 done
21210 fi
21211
21212 if test "$coin_has_clp" != no; then
21213
21214 # Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given.
21215 if test "${with_clp+set}" = set; then
21216 withval="$with_clp"
21217 if test "$withval" = no ; then
21218 coin_has_clp="no"
21219 coin_reason="--without-clp has been specified"
21220 fi
21221
21222 fi;
21223 fi
21224
21225 if test "$coin_has_clp" != no; then
21226
21227 # Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
21228 if test "${with_clp_lib+set}" = set; then
21229 withval="$with_clp_lib"
21230 if test "$withval" = no ; then
21231 coin_has_clp="no"
21232 coin_reason="--without-clp-lib has been specified"
21233 else
21234 coin_has_clp="no"
21235 coin_reason="--with-clp-lib has been specified"
21236 fi
21237 fi;
21238 fi
21239
21240 if test "$coin_has_clp" != no; then
21241
21242 # Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
21243 if test "${with_clp_incdir+set}" = set; then
21244 withval="$with_clp_incdir"
21245 if test "$withval" = no ; then
21246 coin_has_clp="no"
21247 coin_reason="--without-clp-incdir has been specified"
21248 else
21249 coin_has_clp="no"
21250 coin_reason="--with-clp-incdir has been specified"
21251 fi
21252 fi;
21253 fi
21254
21255 if test "$coin_has_clp" != no; then
21256
21257 # Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
21258 if test "${with_clp_datadir+set}" = set; then
21259 withval="$with_clp_datadir"
21260 if test "$withval" = no ; then
21261 coin_has_clp="no"
21262 coin_reason="--without-clp-datadir has been specified"
21263 else
21264 coin_has_clp="no"
21265 coin_reason="--with-clp-datadir has been specified"
21266 fi
21267 fi;
21268 fi
21269
21270
21271
21272
21273
21274 # check if project is available in present directory
21275 if test "$coin_has_clp" = notGiven; then
21276 coin_has_clp=no
21277 if test -d $srcdir/Clp; then
21278 coin_reason="source in Clp"
21279 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21280 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21281 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21282 coin_has_clp="yes"
21283
21284 fi
21285 fi
21286
21287 if test -z "$coin_reason" ; then
21288 echo "$as_me:$LINENO: result: $coin_has_clp" >&5
21289 echo "${ECHO_T}$coin_has_clp" >&6
21290 else
21291 echo "$as_me:$LINENO: result: $coin_has_clp, $coin_reason" >&5
21292 echo "${ECHO_T}$coin_has_clp, $coin_reason" >&6
21293 fi
21294
21295 if test "$coin_has_clp" = yes ; then
21296 if test -r $srcdir/Clp/configure; then
21297 coin_subdirs="$coin_subdirs Clp"
21298
21299
21300 subdirs="$subdirs Clp"
21301
21302 fi
21303 fi
21304
21305
21306 echo "$as_me:$LINENO: checking whether source of project Vol is available and should be compiled" >&5
21307 echo $ECHO_N "checking whether source of project Vol is available and should be compiled... $ECHO_C" >&6
21308
21309 coin_has_vol=notGiven
21310 coin_reason=
21311
21312 # check if user wants to skip project in any case
21313
21314 if test x"$COIN_SKIP_PROJECTS" != x; then
21315 for dir in $COIN_SKIP_PROJECTS; do
21316 if test $dir = "Vol"; then
21317 coin_has_vol="no"
21318 coin_reason="Vol has been specified in COIN_SKIP_PROJECTS"
21319 fi
21320
21321 done
21322 fi
21323
21324 if test "$coin_has_vol" != no; then
21325
21326 # Check whether --with-m4_tolower(Vol) or --without-m4_tolower(Vol) was given.
21327 if test "${with_vol+set}" = set; then
21328 withval="$with_vol"
21329 if test "$withval" = no ; then
21330 coin_has_vol="no"
21331 coin_reason="--without-vol has been specified"
21332 fi
21333
21334 fi;
21335 fi
21336
21337 if test "$coin_has_vol" != no; then
21338
21339 # Check whether --with-m4_tolower(Vol)-lib or --without-m4_tolower(Vol)-lib was given.
21340 if test "${with_vol_lib+set}" = set; then
21341 withval="$with_vol_lib"
21342 if test "$withval" = no ; then
21343 coin_has_vol="no"
21344 coin_reason="--without-vol-lib has been specified"
21345 else
21346 coin_has_vol="no"
21347 coin_reason="--with-vol-lib has been specified"
21348 fi
21349 fi;
21350 fi
21351
21352 if test "$coin_has_vol" != no; then
21353
21354 # Check whether --with-m4_tolower(Vol)-incdir or --without-m4_tolower(Vol)-incdir was given.
21355 if test "${with_vol_incdir+set}" = set; then
21356 withval="$with_vol_incdir"
21357 if test "$withval" = no ; then
21358 coin_has_vol="no"
21359 coin_reason="--without-vol-incdir has been specified"
21360 else
21361 coin_has_vol="no"
21362 coin_reason="--with-vol-incdir has been specified"
21363 fi
21364 fi;
21365 fi
21366
21367 if test "$coin_has_vol" != no; then
21368
21369 # Check whether --with-m4_tolower(Vol)-datadir or --without-m4_tolower(Vol)-datadir was given.
21370 if test "${with_vol_datadir+set}" = set; then
21371 withval="$with_vol_datadir"
21372 if test "$withval" = no ; then
21373 coin_has_vol="no"
21374 coin_reason="--without-vol-datadir has been specified"
21375 else
21376 coin_has_vol="no"
21377 coin_reason="--with-vol-datadir has been specified"
21378 fi
21379 fi;
21380 fi
21381
21382
21383
21384
21385
21386 # check if project is available in present directory
21387 if test "$coin_has_vol" = notGiven; then
21388 coin_has_vol=no
21389 if test -d $srcdir/Vol; then
21390 coin_reason="source in Vol"
21391 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21392 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21393 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21394 coin_has_vol="yes"
21395
21396 fi
21397 fi
21398
21399 if test -z "$coin_reason" ; then
21400 echo "$as_me:$LINENO: result: $coin_has_vol" >&5
21401 echo "${ECHO_T}$coin_has_vol" >&6
21402 else
21403 echo "$as_me:$LINENO: result: $coin_has_vol, $coin_reason" >&5
21404 echo "${ECHO_T}$coin_has_vol, $coin_reason" >&6
21405 fi
21406
21407 if test "$coin_has_vol" = yes ; then
21408 if test -r $srcdir/Vol/configure; then
21409 coin_subdirs="$coin_subdirs Vol"
21410
21411
21412 subdirs="$subdirs Vol"
21413
21414 fi
21415 fi
21416
21417
21418 echo "$as_me:$LINENO: checking whether source of project DyLP is available and should be compiled" >&5
21419 echo $ECHO_N "checking whether source of project DyLP is available and should be compiled... $ECHO_C" >&6
21420
21421 coin_has_dylp=notGiven
21422 coin_reason=
21423
21424 # check if user wants to skip project in any case
21425
21426 if test x"$COIN_SKIP_PROJECTS" != x; then
21427 for dir in $COIN_SKIP_PROJECTS; do
21428 if test $dir = "DyLP"; then
21429 coin_has_dylp="no"
21430 coin_reason="DyLP has been specified in COIN_SKIP_PROJECTS"
21431 fi
21432
21433 done
21434 fi
21435
21436 if test "$coin_has_dylp" != no; then
21437
21438 # Check whether --with-m4_tolower(DyLP) or --without-m4_tolower(DyLP) was given.
21439 if test "${with_dylp+set}" = set; then
21440 withval="$with_dylp"
21441 if test "$withval" = no ; then
21442 coin_has_dylp="no"
21443 coin_reason="--without-dylp has been specified"
21444 fi
21445
21446 fi;
21447 fi
21448
21449 if test "$coin_has_dylp" != no; then
21450
21451 # Check whether --with-m4_tolower(DyLP)-lib or --without-m4_tolower(DyLP)-lib was given.
21452 if test "${with_dylp_lib+set}" = set; then
21453 withval="$with_dylp_lib"
21454 if test "$withval" = no ; then
21455 coin_has_dylp="no"
21456 coin_reason="--without-dylp-lib has been specified"
21457 else
21458 coin_has_dylp="no"
21459 coin_reason="--with-dylp-lib has been specified"
21460 fi
21461 fi;
21462 fi
21463
21464 if test "$coin_has_dylp" != no; then
21465
21466 # Check whether --with-m4_tolower(DyLP)-incdir or --without-m4_tolower(DyLP)-incdir was given.
21467 if test "${with_dylp_incdir+set}" = set; then
21468 withval="$with_dylp_incdir"
21469 if test "$withval" = no ; then
21470 coin_has_dylp="no"
21471 coin_reason="--without-dylp-incdir has been specified"
21472 else
21473 coin_has_dylp="no"
21474 coin_reason="--with-dylp-incdir has been specified"
21475 fi
21476 fi;
21477 fi
21478
21479 if test "$coin_has_dylp" != no; then
21480
21481 # Check whether --with-m4_tolower(DyLP)-datadir or --without-m4_tolower(DyLP)-datadir was given.
21482 if test "${with_dylp_datadir+set}" = set; then
21483 withval="$with_dylp_datadir"
21484 if test "$withval" = no ; then
21485 coin_has_dylp="no"
21486 coin_reason="--without-dylp-datadir has been specified"
21487 else
21488 coin_has_dylp="no"
21489 coin_reason="--with-dylp-datadir has been specified"
21490 fi
21491 fi;
21492 fi
21493
21494
21495
21496
21497
21498 # check if project is available in present directory
21499 if test "$coin_has_dylp" = notGiven; then
21500 coin_has_dylp=no
21501 if test -d $srcdir/DyLP; then
21502 coin_reason="source in DyLP"
21503 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21504 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21505 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21506 coin_has_dylp="yes"
21507
21508 fi
21509 fi
21510
21511 if test -z "$coin_reason" ; then
21512 echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
21513 echo "${ECHO_T}$coin_has_dylp" >&6
21514 else
21515 echo "$as_me:$LINENO: result: $coin_has_dylp, $coin_reason" >&5
21516 echo "${ECHO_T}$coin_has_dylp, $coin_reason" >&6
21517 fi
21518
21519 if test "$coin_has_dylp" = yes ; then
21520 if test -r $srcdir/DyLP/configure; then
21521 coin_subdirs="$coin_subdirs DyLP"
21522
21523
21524 subdirs="$subdirs DyLP"
21525
21526 fi
21527 fi
21528
21529
21530 echo "$as_me:$LINENO: checking whether source of project Cgl is available and should be compiled" >&5
21531 echo $ECHO_N "checking whether source of project Cgl is available and should be compiled... $ECHO_C" >&6
21532
21533 coin_has_cgl=notGiven
21534 coin_reason=
21535
21536 # check if user wants to skip project in any case
21537
21538 if test x"$COIN_SKIP_PROJECTS" != x; then
21539 for dir in $COIN_SKIP_PROJECTS; do
21540 if test $dir = "Cgl"; then
21541 coin_has_cgl="no"
21542 coin_reason="Cgl has been specified in COIN_SKIP_PROJECTS"
21543 fi
21544
21545 done
21546 fi
21547
21548 if test "$coin_has_cgl" != no; then
21549
21550 # Check whether --with-m4_tolower(Cgl) or --without-m4_tolower(Cgl) was given.
21551 if test "${with_cgl+set}" = set; then
21552 withval="$with_cgl"
21553 if test "$withval" = no ; then
21554 coin_has_cgl="no"
21555 coin_reason="--without-cgl has been specified"
21556 fi
21557
21558 fi;
21559 fi
21560
21561 if test "$coin_has_cgl" != no; then
21562
21563 # Check whether --with-m4_tolower(Cgl)-lib or --without-m4_tolower(Cgl)-lib was given.
21564 if test "${with_cgl_lib+set}" = set; then
21565 withval="$with_cgl_lib"
21566 if test "$withval" = no ; then
21567 coin_has_cgl="no"
21568 coin_reason="--without-cgl-lib has been specified"
21569 else
21570 coin_has_cgl="no"
21571 coin_reason="--with-cgl-lib has been specified"
21572 fi
21573 fi;
21574 fi
21575
21576 if test "$coin_has_cgl" != no; then
21577
21578 # Check whether --with-m4_tolower(Cgl)-incdir or --without-m4_tolower(Cgl)-incdir was given.
21579 if test "${with_cgl_incdir+set}" = set; then
21580 withval="$with_cgl_incdir"
21581 if test "$withval" = no ; then
21582 coin_has_cgl="no"
21583 coin_reason="--without-cgl-incdir has been specified"
21584 else
21585 coin_has_cgl="no"
21586 coin_reason="--with-cgl-incdir has been specified"
21587 fi
21588 fi;
21589 fi
21590
21591 if test "$coin_has_cgl" != no; then
21592
21593 # Check whether --with-m4_tolower(Cgl)-datadir or --without-m4_tolower(Cgl)-datadir was given.
21594 if test "${with_cgl_datadir+set}" = set; then
21595 withval="$with_cgl_datadir"
21596 if test "$withval" = no ; then
21597 coin_has_cgl="no"
21598 coin_reason="--without-cgl-datadir has been specified"
21599 else
21600 coin_has_cgl="no"
21601 coin_reason="--with-cgl-datadir has been specified"
21602 fi
21603 fi;
21604 fi
21605
21606
21607
21608
21609
21610 # check if project is available in present directory
21611 if test "$coin_has_cgl" = notGiven; then
21612 coin_has_cgl=no
21613 if test -d $srcdir/Cgl; then
21614 coin_reason="source in Cgl"
21615 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21616 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21617 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21618 coin_has_cgl="yes"
21619
21620 fi
21621 fi
21622
21623 if test -z "$coin_reason" ; then
21624 echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
21625 echo "${ECHO_T}$coin_has_cgl" >&6
21626 else
21627 echo "$as_me:$LINENO: result: $coin_has_cgl, $coin_reason" >&5
21628 echo "${ECHO_T}$coin_has_cgl, $coin_reason" >&6
21629 fi
21630
21631 if test "$coin_has_cgl" = yes ; then
21632 if test -r $srcdir/Cgl/configure; then
21633 coin_subdirs="$coin_subdirs Cgl"
21634
21635
21636 subdirs="$subdirs Cgl"
21637
21638 fi
21639 fi
21640
21641
21642 #############################################################################
21643 # Check for doxygen #
21644 #############################################################################
21645
21646
21647
21648 { echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
21649 echo "$as_me: configuring doxygen documentation options" >&6;}
21650
21651 # Check to see if doxygen is available.
21652
21653 # Extract the first word of "doxygen", so it can be a program name with args.
21654 set dummy doxygen; ac_word=$2
21655 echo "$as_me:$LINENO: checking for $ac_word" >&5
21656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21657 if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
21658 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 else
21660 if test -n "$coin_have_doxygen"; then
21661 ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
21662 else
21663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21664 for as_dir in $PATH
21665 do
21666 IFS=$as_save_IFS
21667 test -z "$as_dir" && as_dir=.
21668 for ac_exec_ext in '' $ac_executable_extensions; do
21669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21670 ac_cv_prog_coin_have_doxygen="yes"
21671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21672 break 2
21673 fi
21674 done
21675 done
21676
21677 test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
21678 fi
21679 fi
21680 coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
21681 if test -n "$coin_have_doxygen"; then
21682 echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
21683 echo "${ECHO_T}$coin_have_doxygen" >&6
21684 else
21685 echo "$as_me:$LINENO: result: no" >&5
21686 echo "${ECHO_T}no" >&6
21687 fi
21688
21689 # Extract the first word of "latex", so it can be a program name with args.
21690 set dummy latex; ac_word=$2
21691 echo "$as_me:$LINENO: checking for $ac_word" >&5
21692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21693 if test "${ac_cv_prog_coin_have_latex+set}" = set; then
21694 echo $ECHO_N "(cached) $ECHO_C" >&6
21695 else
21696 if test -n "$coin_have_latex"; then
21697 ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
21698 else
21699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21700 for as_dir in $PATH
21701 do
21702 IFS=$as_save_IFS
21703 test -z "$as_dir" && as_dir=.
21704 for ac_exec_ext in '' $ac_executable_extensions; do
21705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21706 ac_cv_prog_coin_have_latex="yes"
21707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21708 break 2
21709 fi
21710 done
21711 done
21712
21713 test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
21714 fi
21715 fi
21716 coin_have_latex=$ac_cv_prog_coin_have_latex
21717 if test -n "$coin_have_latex"; then
21718 echo "$as_me:$LINENO: result: $coin_have_latex" >&5
21719 echo "${ECHO_T}$coin_have_latex" >&6
21720 else
21721 echo "$as_me:$LINENO: result: no" >&5
21722 echo "${ECHO_T}no" >&6
21723 fi
21724
21725
21726 # Look for the dot tool from the graphviz package, unless the user has
21727 # disabled it.
21728
21729
21730 # Check whether --with-dot or --without-dot was given.
21731 if test "${with_dot+set}" = set; then
21732 withval="$with_dot"
21733
21734 else
21735 withval=yes
21736 fi;
21737 if test x"$withval" = xno ; then
21738 coin_doxy_usedot=NO
21739 echo "$as_me:$LINENO: checking for dot " >&5
21740 echo $ECHO_N "checking for dot ... $ECHO_C" >&6
21741 echo "$as_me:$LINENO: result: disabled" >&5
21742 echo "${ECHO_T}disabled" >&6
21743 else
21744 # Extract the first word of "dot", so it can be a program name with args.
21745 set dummy dot; ac_word=$2
21746 echo "$as_me:$LINENO: checking for $ac_word" >&5
21747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21748 if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 else
21751 if test -n "$coin_doxy_usedot"; then
21752 ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
21753 else
21754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21755 for as_dir in $PATH
21756 do
21757 IFS=$as_save_IFS
21758 test -z "$as_dir" && as_dir=.
21759 for ac_exec_ext in '' $ac_executable_extensions; do
21760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21761 ac_cv_prog_coin_doxy_usedot="YES"
21762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21763 break 2
21764 fi
21765 done
21766 done
21767
21768 test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
21769 fi
21770 fi
21771 coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
21772 if test -n "$coin_doxy_usedot"; then
21773 echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
21774 echo "${ECHO_T}$coin_doxy_usedot" >&6
21775 else
21776 echo "$as_me:$LINENO: result: no" >&5
21777 echo "${ECHO_T}no" >&6
21778 fi
21779
21780 fi
21781
21782 # Generate a tag file name and a log file name
21783
21784 coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
21785
21786 coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
21787
21788
21789
21790 if test $coin_have_doxygen = yes; then
21791 COIN_HAS_DOXYGEN_TRUE=
21792 COIN_HAS_DOXYGEN_FALSE='#'
21793 else
21794 COIN_HAS_DOXYGEN_TRUE='#'
21795 COIN_HAS_DOXYGEN_FALSE=
21796 fi
21797
21798
21799
21800 if test $coin_have_latex = yes; then
21801 COIN_HAS_LATEX_TRUE=
21802 COIN_HAS_LATEX_FALSE='#'
21803 else
21804 COIN_HAS_LATEX_TRUE='#'
21805 COIN_HAS_LATEX_FALSE=
21806 fi
21807
21808
21809 # Process the list of project names and massage them into possible doxygen
21810 # doc'n directories. Prefer 1) classic external, source processed using
21811 # a project-specific doxygen.conf, we use the tag file; 2) classic
21812 # external, source processed using package doxygen.conf; 3) installed
21813 # doxydoc. Alternatives 1) and 2) are only possible if the directory will be
21814 # configured, which we can't know unless this is the package base configure,
21815 # since coin_subdirs is only set there. Hence it's sufficient to check for
21816 # membership. If we use a tag file from a classic external, exclude the
21817 # source from doxygen processing when doxygen runs in the base directory.
21818
21819 coin_doxy_tagfiles=
21820 coin_doxy_excludes=
21821 tmp="CoinUtils Osi Clp"
21822 for proj in $tmp ; do
21823 lc_proj=`echo $proj | tr [A-Z] [a-z]`
21824 echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
21825 echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
21826 doxytag=${lc_proj}_doxy.tag
21827 doxyfound=no
21828 # proj will be configured, hence doxydoc present in build tree
21829 doxysrcdir="${srcdir}/../${proj}"
21830 # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
21831 if test -d "$doxysrcdir" ; then
21832 # with a doxydoc directory?
21833 doxydir="$doxysrcdir/doxydoc"
21834 # AC_MSG_NOTICE([Considering $doxydir (base)])
21835 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
21836 if test -d "$doxydir" ; then
21837 # use tag file; don't process source
21838 doxydir="../${proj}/doxydoc"
21839 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
21840 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
21841 echo "${ECHO_T}$doxydir (tag)" >&6
21842 coin_doxy_excludes="$coin_doxy_excludes */${proj}"
21843 else
21844 # will process the source -- nothing further to be done here
21845 echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
21846 echo "${ECHO_T}$doxysrcdir (src)" >&6
21847 fi
21848 doxyfound=yes
21849 fi
21850 # Not built, fall back to installed tag file
21851 if test $doxyfound = no ; then
21852 eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
21853 # AC_MSG_NOTICE([Considering $doxydir (install)])
21854 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
21855 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
21856 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
21857 echo "${ECHO_T}$doxydir (tag)" >&6
21858 fi
21859 done
21860
21861
21862
21863
21864
21865 ##############################################################################
21866 # Finishing up by writing all the output #
21867 ##############################################################################
21868
21869 # Here list all the files that configure should create (except for the
21870 # configuration header file)
21871 ac_config_files="$ac_config_files Makefile"
21872
21873 ac_config_files="$ac_config_files doxydoc/doxygen.conf"
21874
21875
21876 # Finally, we let configure write all the output...
21877
21878
21879
21880
21881 echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
21882 echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
21883 coin_link_input_cmd="$LN_S"
21884 case "$CC" in
21885 clang* | */clang* ) ;;
21886 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21887 coin_link_input_cmd=cp ;;
21888 esac
21889 echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
21890 echo "${ECHO_T}$coin_link_input_cmd" >&6
21891
21892
21893
21894 if test x$coin_skip_ac_output != xyes; then
21895
21896 # library extension
21897
21898 case "$CC" in
21899 clang* | */clang* )
21900 LIBEXT=a ;;
21901 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21902 LIBEXT=lib ;;
21903 *) LIBEXT=a ;;
21904 esac
21905
21906 # Define VPATH_DISTCLEANFILES to be everything that needs to be
21907 # cleaned for distclean in a vpath configuration
21908
21909 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
21910
21911 # Take out subdirectories if their configuration concluded that they
21912 # don't need to be compiled
21913 if test x"$coin_ac_skip_subdirs" != x; then
21914 new_subdirs=
21915 for i in $subdirs; do
21916 skipme=no
21917 for j in $coin_ac_skip_subdirs; do
21918 if test $i = $j; then
21919 skipme=yes;
21920 fi
21921 done
21922 if test $skipme = no; then
21923 new_subdirs="$new_subdirs $i"
21924 fi
21925 done
21926 subdirs="$new_subdirs"
21927 fi
21928
21929 # need to come before AC_OUTPUT
21930 if test x$coin_projectdir != xyes; then
21931 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
21932 echo $coin_subdirs > coin_subdirs.txt
21933 else
21934 # substitute for OBJDIR, needed to setup .pc file for uninstalled project
21935 ABSBUILDDIR="`pwd`"
21936
21937 fi
21938
21939 cat >confcache <<\_ACEOF
21940 # This file is a shell script that caches the results of configure
21941 # tests run on this system so they can be shared between configure
21942 # scripts and configure runs, see configure's option --config-cache.
21943 # It is not useful on other systems. If it contains results you don't
21944 # want to keep, you may remove or edit it.
21945 #
21946 # config.status only pays attention to the cache file if you give it
21947 # the --recheck option to rerun configure.
21948 #
21949 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21950 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21951 # following values.
21952
21953 _ACEOF
21954
21955 # The following way of writing the cache mishandles newlines in values,
21956 # but we know of no workaround that is simple, portable, and efficient.
21957 # So, don't put newlines in cache variables' values.
21958 # Ultrix sh set writes to stderr and can't be redirected directly,
21959 # and sets the high bit in the cache file unless we assign to the vars.
21960 {
21961 (set) 2>&1 |
21962 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21963 *ac_space=\ *)
21964 # `set' does not quote correctly, so add quotes (double-quote
21965 # substitution turns \\\\ into \\, and sed turns \\ into \).
21966 sed -n \
21967 "s/'/'\\\\''/g;
21968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21969 ;;
21970 *)
21971 # `set' quotes correctly as required by POSIX, so do not add quotes.
21972 sed -n \
21973 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21974 ;;
21975 esac;
21976 } |
21977 sed '
21978 t clear
21979 : clear
21980 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21981 t end
21982 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21983 : end' >>confcache
21984 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21985 if test -w $cache_file; then
21986 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21987 cat confcache >$cache_file
21988 else
21989 echo "not updating unwritable cache $cache_file"
21990 fi
21991 fi
21992 rm -f confcache
21993
21994 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21995 # Let make expand exec_prefix.
21996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21997
21998 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21999 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22000 # trailing colons and then remove the whole line if VPATH becomes empty
22001 # (actually we leave an empty line to preserve line numbers).
22002 if test "x$srcdir" = x.; then
22003 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22004 s/:*\$(srcdir):*/:/;
22005 s/:*\${srcdir}:*/:/;
22006 s/:*@srcdir@:*/:/;
22007 s/^\([^=]*=[ ]*\):*/\1/;
22008 s/:*$//;
22009 s/^[^=]*=[ ]*$//;
22010 }'
22011 fi
22012
22013 # Transform confdefs.h into DEFS.
22014 # Protect against shell expansion while executing Makefile rules.
22015 # Protect against Makefile macro expansion.
22016 #
22017 # If the first sed substitution is executed (which looks for macros that
22018 # take arguments), then we branch to the quote section. Otherwise,
22019 # look for a macro that doesn't take arguments.
22020 cat >confdef2opt.sed <<\_ACEOF
22021 t clear
22022 : clear
22023 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
22024 t quote
22025 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
22026 t quote
22027 d
22028 : quote
22029 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
22030 s,\[,\\&,g
22031 s,\],\\&,g
22032 s,\$,$$,g
22033 p
22034 _ACEOF
22035 # We use echo to avoid assuming a particular line-breaking character.
22036 # The extra dot is to prevent the shell from consuming trailing
22037 # line-breaks from the sub-command output. A line-break within
22038 # single-quotes doesn't work because, if this script is created in a
22039 # platform that uses two characters for line-breaks (e.g., DOS), tr
22040 # would break.
22041 ac_LF_and_DOT=`echo; echo .`
22042 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
22043 rm -f confdef2opt.sed
22044
22045
22046 ac_libobjs=
22047 ac_ltlibobjs=
22048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22049 # 1. Remove the extension, and $U if already installed.
22050 ac_i=`echo "$ac_i" |
22051 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22052 # 2. Add them.
22053 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22054 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22055 done
22056 LIBOBJS=$ac_libobjs
22057
22058 LTLIBOBJS=$ac_ltlibobjs
22059
22060
22061 if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
22062 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
22063 Usually this means the macro was only invoked conditionally." >&5
22064 echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
22065 Usually this means the macro was only invoked conditionally." >&2;}
22066 { (exit 1); exit 1; }; }
22067 fi
22068 if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
22069 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22070 Usually this means the macro was only invoked conditionally." >&5
22071 echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22072 Usually this means the macro was only invoked conditionally." >&2;}
22073 { (exit 1); exit 1; }; }
22074 fi
22075 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22076 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22077 Usually this means the macro was only invoked conditionally." >&5
22078 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22079 Usually this means the macro was only invoked conditionally." >&2;}
22080 { (exit 1); exit 1; }; }
22081 fi
22082 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22083 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22084 Usually this means the macro was only invoked conditionally." >&5
22085 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22086 Usually this means the macro was only invoked conditionally." >&2;}
22087 { (exit 1); exit 1; }; }
22088 fi
22089 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22090 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22091 Usually this means the macro was only invoked conditionally." >&5
22092 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22093 Usually this means the macro was only invoked conditionally." >&2;}
22094 { (exit 1); exit 1; }; }
22095 fi
22096 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22097 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22098 Usually this means the macro was only invoked conditionally." >&5
22099 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22100 Usually this means the macro was only invoked conditionally." >&2;}
22101 { (exit 1); exit 1; }; }
22102 fi
22103 if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
22104 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
22105 Usually this means the macro was only invoked conditionally." >&5
22106 echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
22107 Usually this means the macro was only invoked conditionally." >&2;}
22108 { (exit 1); exit 1; }; }
22109 fi
22110 if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
22111 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22112 Usually this means the macro was only invoked conditionally." >&5
22113 echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22114 Usually this means the macro was only invoked conditionally." >&2;}
22115 { (exit 1); exit 1; }; }
22116 fi
22117 if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
22118 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
22119 Usually this means the macro was only invoked conditionally." >&5
22120 echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
22121 Usually this means the macro was only invoked conditionally." >&2;}
22122 { (exit 1); exit 1; }; }
22123 fi
22124 if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
22125 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
22126 Usually this means the macro was only invoked conditionally." >&5
22127 echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
22128 Usually this means the macro was only invoked conditionally." >&2;}
22129 { (exit 1); exit 1; }; }
22130 fi
22131
22132 : ${CONFIG_STATUS=./config.status}
22133 ac_clean_files_save=$ac_clean_files
22134 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22135 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22136 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22137 cat >$CONFIG_STATUS <<_ACEOF
22138 #! $SHELL
22139 # Generated by $as_me.
22140 # Run this file to recreate the current configuration.
22141 # Compiler output produced by configure, useful for debugging
22142 # configure, is in config.log if it exists.
22143
22144 debug=false
22145 ac_cs_recheck=false
22146 ac_cs_silent=false
22147 SHELL=\${CONFIG_SHELL-$SHELL}
22148 _ACEOF
22149
22150 cat >>$CONFIG_STATUS <<\_ACEOF
22151 ## --------------------- ##
22152 ## M4sh Initialization. ##
22153 ## --------------------- ##
22154
22155 # Be Bourne compatible
22156 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22157 emulate sh
22158 NULLCMD=:
22159 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22160 # is contrary to our usage. Disable this feature.
22161 alias -g '${1+"$@"}'='"$@"'
22162 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22163 set -o posix
22164 fi
22165 DUALCASE=1; export DUALCASE # for MKS sh
22166
22167 # Support unset when possible.
22168 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22169 as_unset=unset
22170 else
22171 as_unset=false
22172 fi
22173
22174
22175 # Work around bugs in pre-3.0 UWIN ksh.
22176 $as_unset ENV MAIL MAILPATH
22177 PS1='$ '
22178 PS2='> '
22179 PS4='+ '
22180
22181 # NLS nuisances.
22182 for as_var in \
22183 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22184 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22185 LC_TELEPHONE LC_TIME
22186 do
22187 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22188 eval $as_var=C; export $as_var
22189 else
22190 $as_unset $as_var
22191 fi
22192 done
22193
22194 # Required to use basename.
22195 if expr a : '\(a\)' >/dev/null 2>&1; then
22196 as_expr=expr
22197 else
22198 as_expr=false
22199 fi
22200
22201 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22202 as_basename=basename
22203 else
22204 as_basename=false
22205 fi
22206
22207
22208 # Name of the executable.
22209 as_me=`$as_basename "$0" ||
22210 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22211 X"$0" : 'X\(//\)$' \| \
22212 X"$0" : 'X\(/\)$' \| \
22213 . : '\(.\)' 2>/dev/null ||
22214 echo X/"$0" |
22215 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22216 /^X\/\(\/\/\)$/{ s//\1/; q; }
22217 /^X\/\(\/\).*/{ s//\1/; q; }
22218 s/.*/./; q'`
22219
22220
22221 # PATH needs CR, and LINENO needs CR and PATH.
22222 # Avoid depending upon Character Ranges.
22223 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22224 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22225 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22226 as_cr_digits='0123456789'
22227 as_cr_alnum=$as_cr_Letters$as_cr_digits
22228
22229 # The user is always right.
22230 if test "${PATH_SEPARATOR+set}" != set; then
22231 echo "#! /bin/sh" >conf$$.sh
22232 echo "exit 0" >>conf$$.sh
22233 chmod +x conf$$.sh
22234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22235 PATH_SEPARATOR=';'
22236 else
22237 PATH_SEPARATOR=:
22238 fi
22239 rm -f conf$$.sh
22240 fi
22241
22242
22243 as_lineno_1=$LINENO
22244 as_lineno_2=$LINENO
22245 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22246 test "x$as_lineno_1" != "x$as_lineno_2" &&
22247 test "x$as_lineno_3" = "x$as_lineno_2" || {
22248 # Find who we are. Look in the path if we contain no path at all
22249 # relative or not.
22250 case $0 in
22251 *[\\/]* ) as_myself=$0 ;;
22252 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22253 for as_dir in $PATH
22254 do
22255 IFS=$as_save_IFS
22256 test -z "$as_dir" && as_dir=.
22257 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22258 done
22259
22260 ;;
22261 esac
22262 # We did not find ourselves, most probably we were run as `sh COMMAND'
22263 # in which case we are not to be found in the path.
22264 if test "x$as_myself" = x; then
22265 as_myself=$0
22266 fi
22267 if test ! -f "$as_myself"; then
22268 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22269 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22270 { (exit 1); exit 1; }; }
22271 fi
22272 case $CONFIG_SHELL in
22273 '')
22274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22275 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22276 do
22277 IFS=$as_save_IFS
22278 test -z "$as_dir" && as_dir=.
22279 for as_base in sh bash ksh sh5; do
22280 case $as_dir in
22281 /*)
22282 if ("$as_dir/$as_base" -c '
22283 as_lineno_1=$LINENO
22284 as_lineno_2=$LINENO
22285 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22286 test "x$as_lineno_1" != "x$as_lineno_2" &&
22287 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22288 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22289 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22290 CONFIG_SHELL=$as_dir/$as_base
22291 export CONFIG_SHELL
22292 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22293 fi;;
22294 esac
22295 done
22296 done
22297 ;;
22298 esac
22299
22300 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22301 # uniformly replaced by the line number. The first 'sed' inserts a
22302 # line-number line before each line; the second 'sed' does the real
22303 # work. The second script uses 'N' to pair each line-number line
22304 # with the numbered line, and appends trailing '-' during
22305 # substitution so that $LINENO is not a special case at line end.
22306 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22307 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22308 sed '=' <$as_myself |
22309 sed '
22310 N
22311 s,$,-,
22312 : loop
22313 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22314 t loop
22315 s,-$,,
22316 s,^['$as_cr_digits']*\n,,
22317 ' >$as_me.lineno &&
22318 chmod +x $as_me.lineno ||
22319 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22320 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22321 { (exit 1); exit 1; }; }
22322
22323 # Don't try to exec as it changes $[0], causing all sort of problems
22324 # (the dirname of $[0] is not the place where we might find the
22325 # original and so on. Autoconf is especially sensible to this).
22326 . ./$as_me.lineno
22327 # Exit status is that of the last command.
22328 exit
22329 }
22330
22331
22332 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22333 *c*,-n*) ECHO_N= ECHO_C='
22334 ' ECHO_T=' ' ;;
22335 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22336 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22337 esac
22338
22339 if expr a : '\(a\)' >/dev/null 2>&1; then
22340 as_expr=expr
22341 else
22342 as_expr=false
22343 fi
22344
22345 rm -f conf$$ conf$$.exe conf$$.file
22346 echo >conf$$.file
22347 if ln -s conf$$.file conf$$ 2>/dev/null; then
22348 # We could just check for DJGPP; but this test a) works b) is more generic
22349 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22350 if test -f conf$$.exe; then
22351 # Don't use ln at all; we don't have any links
22352 as_ln_s='cp -p'
22353 else
22354 as_ln_s='ln -s'
22355 fi
22356 elif ln conf$$.file conf$$ 2>/dev/null; then
22357 as_ln_s=ln
22358 else
22359 as_ln_s='cp -p'
22360 fi
22361 rm -f conf$$ conf$$.exe conf$$.file
22362
22363 if mkdir -p . 2>/dev/null; then
22364 as_mkdir_p=:
22365 else
22366 test -d ./-p && rmdir ./-p
22367 as_mkdir_p=false
22368 fi
22369
22370 as_executable_p="test -f"
22371
22372 # Sed expression to map a string onto a valid CPP name.
22373 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22374
22375 # Sed expression to map a string onto a valid variable name.
22376 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22377
22378
22379 # IFS
22380 # We need space, tab and new line, in precisely that order.
22381 as_nl='
22382 '
22383 IFS=" $as_nl"
22384
22385 # CDPATH.
22386 $as_unset CDPATH
22387
22388 exec 6>&1
22389
22390 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22391 # report actual input values of CONFIG_FILES etc. instead of their
22392 # values after options handling. Logging --version etc. is OK.
22393 exec 5>>config.log
22394 {
22395 echo
22396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22397 ## Running $as_me. ##
22398 _ASBOX
22399 } >&5
22400 cat >&5 <<_CSEOF
22401
22402 This file was extended by Cgl $as_me 0.60.9, which was
22403 generated by GNU Autoconf 2.59. Invocation command line was
22404
22405 CONFIG_FILES = $CONFIG_FILES
22406 CONFIG_HEADERS = $CONFIG_HEADERS
22407 CONFIG_LINKS = $CONFIG_LINKS
22408 CONFIG_COMMANDS = $CONFIG_COMMANDS
22409 $ $0 $@
22410
22411 _CSEOF
22412 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22413 echo >&5
22414 _ACEOF
22415
22416 # Files that config.status was made for.
22417 if test -n "$ac_config_files"; then
22418 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22419 fi
22420
22421 if test -n "$ac_config_headers"; then
22422 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22423 fi
22424
22425 if test -n "$ac_config_links"; then
22426 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22427 fi
22428
22429 if test -n "$ac_config_commands"; then
22430 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22431 fi
22432
22433 cat >>$CONFIG_STATUS <<\_ACEOF
22434
22435 ac_cs_usage="\
22436 \`$as_me' instantiates files from templates according to the
22437 current configuration.
22438
22439 Usage: $0 [OPTIONS] [FILE]...
22440
22441 -h, --help print this help, then exit
22442 -V, --version print version number, then exit
22443 -q, --quiet do not print progress messages
22444 -d, --debug don't remove temporary files
22445 --recheck update $as_me by reconfiguring in the same conditions
22446 --file=FILE[:TEMPLATE]
22447 instantiate the configuration file FILE
22448
22449 Configuration files:
22450 $config_files
22451
22452 Configuration commands:
22453 $config_commands
22454
22455 Report bugs to <[email protected]>."
22456 _ACEOF
22457
22458 cat >>$CONFIG_STATUS <<_ACEOF
22459 ac_cs_version="\\
22460 Cgl config.status 0.60.9
22461 configured by $0, generated by GNU Autoconf 2.59,
22462 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22463
22464 Copyright (C) 2003 Free Software Foundation, Inc.
22465 This config.status script is free software; the Free Software Foundation
22466 gives unlimited permission to copy, distribute and modify it."
22467 srcdir=$srcdir
22468 INSTALL="$INSTALL"
22469 _ACEOF
22470
22471 cat >>$CONFIG_STATUS <<\_ACEOF
22472 # If no file are specified by the user, then we need to provide default
22473 # value. By we need to know if files were specified by the user.
22474 ac_need_defaults=:
22475 while test $# != 0
22476 do
22477 case $1 in
22478 --*=*)
22479 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22480 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22481 ac_shift=:
22482 ;;
22483 -*)
22484 ac_option=$1
22485 ac_optarg=$2
22486 ac_shift=shift
22487 ;;
22488 *) # This is not an option, so the user has probably given explicit
22489 # arguments.
22490 ac_option=$1
22491 ac_need_defaults=false;;
22492 esac
22493
22494 case $ac_option in
22495 # Handling of the options.
22496 _ACEOF
22497 cat >>$CONFIG_STATUS <<\_ACEOF
22498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22499 ac_cs_recheck=: ;;
22500 --version | --vers* | -V )
22501 echo "$ac_cs_version"; exit 0 ;;
22502 --he | --h)
22503 # Conflict between --help and --header
22504 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22505 Try \`$0 --help' for more information." >&5
22506 echo "$as_me: error: ambiguous option: $1
22507 Try \`$0 --help' for more information." >&2;}
22508 { (exit 1); exit 1; }; };;
22509 --help | --hel | -h )
22510 echo "$ac_cs_usage"; exit 0 ;;
22511 --debug | --d* | -d )
22512 debug=: ;;
22513 --file | --fil | --fi | --f )
22514 $ac_shift
22515 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22516 ac_need_defaults=false;;
22517 --header | --heade | --head | --hea )
22518 $ac_shift
22519 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22520 ac_need_defaults=false;;
22521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22522 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22523 ac_cs_silent=: ;;
22524
22525 # This is an error.
22526 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22527 Try \`$0 --help' for more information." >&5
22528 echo "$as_me: error: unrecognized option: $1
22529 Try \`$0 --help' for more information." >&2;}
22530 { (exit 1); exit 1; }; } ;;
22531
22532 *) ac_config_targets="$ac_config_targets $1" ;;
22533
22534 esac
22535 shift
22536 done
22537
22538 ac_configure_extra_args=
22539
22540 if $ac_cs_silent; then
22541 exec 6>/dev/null
22542 ac_configure_extra_args="$ac_configure_extra_args --silent"
22543 fi
22544
22545 _ACEOF
22546 cat >>$CONFIG_STATUS <<_ACEOF
22547 if \$ac_cs_recheck; then
22548 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22549 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22550 fi
22551
22552 _ACEOF
22553
22554 cat >>$CONFIG_STATUS <<_ACEOF
22555 #
22556 # INIT-COMMANDS section.
22557 #
22558
22559 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22560
22561 _ACEOF
22562
22563
22564
22565 cat >>$CONFIG_STATUS <<\_ACEOF
22566 for ac_config_target in $ac_config_targets
22567 do
22568 case "$ac_config_target" in
22569 # Handling of arguments.
22570 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22571 "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
22572 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22573 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22574 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22575 { (exit 1); exit 1; }; };;
22576 esac
22577 done
22578
22579 # If the user did not use the arguments to specify the items to instantiate,
22580 # then the envvar interface is used. Set only those that are not.
22581 # We use the long form for the default assignment because of an extremely
22582 # bizarre bug on SunOS 4.1.3.
22583 if $ac_need_defaults; then
22584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22585 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22586 fi
22587
22588 # Have a temporary directory for convenience. Make it in the build tree
22589 # simply because there is no reason to put it here, and in addition,
22590 # creating and moving files from /tmp can sometimes cause problems.
22591 # Create a temporary directory, and hook for its removal unless debugging.
22592 $debug ||
22593 {
22594 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22595 trap '{ (exit 1); exit 1; }' 1 2 13 15
22596 }
22597
22598 # Create a (secure) tmp directory for tmp files.
22599
22600 {
22601 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22602 test -n "$tmp" && test -d "$tmp"
22603 } ||
22604 {
22605 tmp=./confstat$$-$RANDOM
22606 (umask 077 && mkdir $tmp)
22607 } ||
22608 {
22609 echo "$me: cannot create a temporary directory in ." >&2
22610 { (exit 1); exit 1; }
22611 }
22612
22613 _ACEOF
22614
22615 cat >>$CONFIG_STATUS <<_ACEOF
22616
22617 #
22618 # CONFIG_FILES section.
22619 #
22620
22621 # No need to generate the scripts if there are no CONFIG_FILES.
22622 # This happens for instance when ./config.status config.h
22623 if test -n "\$CONFIG_FILES"; then
22624 # Protect against being on the right side of a sed subst in config.status.
22625 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22626 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22627 s,@SHELL@,$SHELL,;t t
22628 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22629 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22630 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22631 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22632 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22633 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22634 s,@exec_prefix@,$exec_prefix,;t t
22635 s,@prefix@,$prefix,;t t
22636 s,@program_transform_name@,$program_transform_name,;t t
22637 s,@bindir@,$bindir,;t t
22638 s,@sbindir@,$sbindir,;t t
22639 s,@libexecdir@,$libexecdir,;t t
22640 s,@datadir@,$datadir,;t t
22641 s,@sysconfdir@,$sysconfdir,;t t
22642 s,@sharedstatedir@,$sharedstatedir,;t t
22643 s,@localstatedir@,$localstatedir,;t t
22644 s,@libdir@,$libdir,;t t
22645 s,@includedir@,$includedir,;t t
22646 s,@oldincludedir@,$oldincludedir,;t t
22647 s,@infodir@,$infodir,;t t
22648 s,@mandir@,$mandir,;t t
22649 s,@build_alias@,$build_alias,;t t
22650 s,@host_alias@,$host_alias,;t t
22651 s,@target_alias@,$target_alias,;t t
22652 s,@DEFS@,$DEFS,;t t
22653 s,@ECHO_C@,$ECHO_C,;t t
22654 s,@ECHO_N@,$ECHO_N,;t t
22655 s,@ECHO_T@,$ECHO_T,;t t
22656 s,@LIBS@,$LIBS,;t t
22657 s,@build@,$build,;t t
22658 s,@build_cpu@,$build_cpu,;t t
22659 s,@build_vendor@,$build_vendor,;t t
22660 s,@build_os@,$build_os,;t t
22661 s,@CDEFS@,$CDEFS,;t t
22662 s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
22663 s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
22664 s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
22665 s,@sol_cc_compiler@,$sol_cc_compiler,;t t
22666 s,@CC@,$CC,;t t
22667 s,@CFLAGS@,$CFLAGS,;t t
22668 s,@LDFLAGS@,$LDFLAGS,;t t
22669 s,@CPPFLAGS@,$CPPFLAGS,;t t
22670 s,@ac_ct_CC@,$ac_ct_CC,;t t
22671 s,@EXEEXT@,$EXEEXT,;t t
22672 s,@OBJEXT@,$OBJEXT,;t t
22673 s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
22674 s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
22675 s,@MPICC@,$MPICC,;t t
22676 s,@CXXDEFS@,$CXXDEFS,;t t
22677 s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
22678 s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
22679 s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
22680 s,@CXX@,$CXX,;t t
22681 s,@CXXFLAGS@,$CXXFLAGS,;t t
22682 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22683 s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
22684 s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
22685 s,@MPICXX@,$MPICXX,;t t
22686 s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
22687 s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
22688 s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
22689 s,@F77@,$F77,;t t
22690 s,@ac_ct_F77@,$ac_ct_F77,;t t
22691 s,@FFLAGS@,$FFLAGS,;t t
22692 s,@MPIF77@,$MPIF77,;t t
22693 s,@EGREP@,$EGREP,;t t
22694 s,@LN_S@,$LN_S,;t t
22695 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22696 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22697 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22698 s,@CYGPATH_W@,$CYGPATH_W,;t t
22699 s,@PACKAGE@,$PACKAGE,;t t
22700 s,@VERSION@,$VERSION,;t t
22701 s,@ACLOCAL@,$ACLOCAL,;t t
22702 s,@AUTOCONF@,$AUTOCONF,;t t
22703 s,@AUTOMAKE@,$AUTOMAKE,;t t
22704 s,@AUTOHEADER@,$AUTOHEADER,;t t
22705 s,@MAKEINFO@,$MAKEINFO,;t t
22706 s,@install_sh@,$install_sh,;t t
22707 s,@STRIP@,$STRIP,;t t
22708 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22709 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22710 s,@mkdir_p@,$mkdir_p,;t t
22711 s,@AWK@,$AWK,;t t
22712 s,@SET_MAKE@,$SET_MAKE,;t t
22713 s,@am__leading_dot@,$am__leading_dot,;t t
22714 s,@AMTAR@,$AMTAR,;t t
22715 s,@am__tar@,$am__tar,;t t
22716 s,@am__untar@,$am__untar,;t t
22717 s,@DEPDIR@,$DEPDIR,;t t
22718 s,@am__include@,$am__include,;t t
22719 s,@am__quote@,$am__quote,;t t
22720 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22721 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22722 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22723 s,@CCDEPMODE@,$CCDEPMODE,;t t
22724 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22725 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22726 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22727 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22728 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22729 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22730 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22731 s,@MAINT@,$MAINT,;t t
22732 s,@LIBTOOLM4@,$LIBTOOLM4,;t t
22733 s,@have_autoconf@,$have_autoconf,;t t
22734 s,@have_automake@,$have_automake,;t t
22735 s,@have_svn@,$have_svn,;t t
22736 s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
22737 s,@AUX_DIR@,$AUX_DIR,;t t
22738 s,@abs_source_dir@,$abs_source_dir,;t t
22739 s,@abs_lib_dir@,$abs_lib_dir,;t t
22740 s,@abs_include_dir@,$abs_include_dir,;t t
22741 s,@abs_bin_dir@,$abs_bin_dir,;t t
22742 s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
22743 s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
22744 s,@host@,$host,;t t
22745 s,@host_cpu@,$host_cpu,;t t
22746 s,@host_vendor@,$host_vendor,;t t
22747 s,@host_os@,$host_os,;t t
22748 s,@ECHO@,$ECHO,;t t
22749 s,@AR@,$AR,;t t
22750 s,@ac_ct_AR@,$ac_ct_AR,;t t
22751 s,@RANLIB@,$RANLIB,;t t
22752 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22753 s,@CPP@,$CPP,;t t
22754 s,@CXXCPP@,$CXXCPP,;t t
22755 s,@LIBTOOL@,$LIBTOOL,;t t
22756 s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
22757 s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
22758 s,@dos2unix@,$dos2unix,;t t
22759 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
22760 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
22761 s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
22762 s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
22763 s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t
22764 s,@subdirs@,$subdirs,;t t
22765 s,@coin_have_doxygen@,$coin_have_doxygen,;t t
22766 s,@coin_have_latex@,$coin_have_latex,;t t
22767 s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
22768 s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
22769 s,@coin_doxy_logname@,$coin_doxy_logname,;t t
22770 s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
22771 s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
22772 s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
22773 s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
22774 s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
22775 s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
22776 s,@LIBEXT@,$LIBEXT,;t t
22777 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
22778 s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
22779 s,@LIBOBJS@,$LIBOBJS,;t t
22780 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22781 CEOF
22782
22783 _ACEOF
22784
22785 cat >>$CONFIG_STATUS <<\_ACEOF
22786 # Split the substitutions into bite-sized pieces for seds with
22787 # small command number limits, like on Digital OSF/1 and HP-UX.
22788 ac_max_sed_lines=48
22789 ac_sed_frag=1 # Number of current file.
22790 ac_beg=1 # First line for current file.
22791 ac_end=$ac_max_sed_lines # Line after last line for current file.
22792 ac_more_lines=:
22793 ac_sed_cmds=
22794 while $ac_more_lines; do
22795 if test $ac_beg -gt 1; then
22796 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22797 else
22798 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22799 fi
22800 if test ! -s $tmp/subs.frag; then
22801 ac_more_lines=false
22802 else
22803 # The purpose of the label and of the branching condition is to
22804 # speed up the sed processing (if there are no `@' at all, there
22805 # is no need to browse any of the substitutions).
22806 # These are the two extra sed commands mentioned above.
22807 (echo ':t
22808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22809 if test -z "$ac_sed_cmds"; then
22810 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22811 else
22812 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22813 fi
22814 ac_sed_frag=`expr $ac_sed_frag + 1`
22815 ac_beg=$ac_end
22816 ac_end=`expr $ac_end + $ac_max_sed_lines`
22817 fi
22818 done
22819 if test -z "$ac_sed_cmds"; then
22820 ac_sed_cmds=cat
22821 fi
22822 fi # test -n "$CONFIG_FILES"
22823
22824 _ACEOF
22825 cat >>$CONFIG_STATUS <<\_ACEOF
22826 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22827 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22828 case $ac_file in
22829 - | *:- | *:-:* ) # input from stdin
22830 cat >$tmp/stdin
22831 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22832 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22833 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22834 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22835 * ) ac_file_in=$ac_file.in ;;
22836 esac
22837
22838 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22839 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22840 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22841 X"$ac_file" : 'X\(//\)[^/]' \| \
22842 X"$ac_file" : 'X\(//\)$' \| \
22843 X"$ac_file" : 'X\(/\)' \| \
22844 . : '\(.\)' 2>/dev/null ||
22845 echo X"$ac_file" |
22846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22848 /^X\(\/\/\)$/{ s//\1/; q; }
22849 /^X\(\/\).*/{ s//\1/; q; }
22850 s/.*/./; q'`
22851 { if $as_mkdir_p; then
22852 mkdir -p "$ac_dir"
22853 else
22854 as_dir="$ac_dir"
22855 as_dirs=
22856 while test ! -d "$as_dir"; do
22857 as_dirs="$as_dir $as_dirs"
22858 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22860 X"$as_dir" : 'X\(//\)[^/]' \| \
22861 X"$as_dir" : 'X\(//\)$' \| \
22862 X"$as_dir" : 'X\(/\)' \| \
22863 . : '\(.\)' 2>/dev/null ||
22864 echo X"$as_dir" |
22865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22867 /^X\(\/\/\)$/{ s//\1/; q; }
22868 /^X\(\/\).*/{ s//\1/; q; }
22869 s/.*/./; q'`
22870 done
22871 test ! -n "$as_dirs" || mkdir $as_dirs
22872 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22873 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22874 { (exit 1); exit 1; }; }; }
22875
22876 ac_builddir=.
22877
22878 if test "$ac_dir" != .; then
22879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22880 # A "../" for each directory in $ac_dir_suffix.
22881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22882 else
22883 ac_dir_suffix= ac_top_builddir=
22884 fi
22885
22886 case $srcdir in
22887 .) # No --srcdir option. We are building in place.
22888 ac_srcdir=.
22889 if test -z "$ac_top_builddir"; then
22890 ac_top_srcdir=.
22891 else
22892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22893 fi ;;
22894 [\\/]* | ?:[\\/]* ) # Absolute path.
22895 ac_srcdir=$srcdir$ac_dir_suffix;
22896 ac_top_srcdir=$srcdir ;;
22897 *) # Relative path.
22898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22900 esac
22901
22902 # Do not use `cd foo && pwd` to compute absolute paths, because
22903 # the directories may not exist.
22904 case `pwd` in
22905 .) ac_abs_builddir="$ac_dir";;
22906 *)
22907 case "$ac_dir" in
22908 .) ac_abs_builddir=`pwd`;;
22909 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22910 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22911 esac;;
22912 esac
22913 case $ac_abs_builddir in
22914 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22915 *)
22916 case ${ac_top_builddir}. in
22917 .) ac_abs_top_builddir=$ac_abs_builddir;;
22918 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22919 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22920 esac;;
22921 esac
22922 case $ac_abs_builddir in
22923 .) ac_abs_srcdir=$ac_srcdir;;
22924 *)
22925 case $ac_srcdir in
22926 .) ac_abs_srcdir=$ac_abs_builddir;;
22927 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22928 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22929 esac;;
22930 esac
22931 case $ac_abs_builddir in
22932 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22933 *)
22934 case $ac_top_srcdir in
22935 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22936 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22937 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22938 esac;;
22939 esac
22940
22941
22942 case $INSTALL in
22943 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22944 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22945 esac
22946
22947 if test x"$ac_file" != x-; then
22948 { echo "$as_me:$LINENO: creating $ac_file" >&5
22949 echo "$as_me: creating $ac_file" >&6;}
22950 rm -f "$ac_file"
22951 fi
22952 # Let's still pretend it is `configure' which instantiates (i.e., don't
22953 # use $as_me), people would be surprised to read:
22954 # /* config.h. Generated by config.status. */
22955 if test x"$ac_file" = x-; then
22956 configure_input=
22957 else
22958 configure_input="$ac_file. "
22959 fi
22960 configure_input=$configure_input"Generated from `echo $ac_file_in |
22961 sed 's,.*/,,'` by configure."
22962
22963 # First look for the input files in the build tree, otherwise in the
22964 # src tree.
22965 ac_file_inputs=`IFS=:
22966 for f in $ac_file_in; do
22967 case $f in
22968 -) echo $tmp/stdin ;;
22969 [\\/$]*)
22970 # Absolute (can't be DOS-style, as IFS=:)
22971 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22972 echo "$as_me: error: cannot find input file: $f" >&2;}
22973 { (exit 1); exit 1; }; }
22974 echo "$f";;
22975 *) # Relative
22976 if test -f "$f"; then
22977 # Build tree
22978 echo "$f"
22979 elif test -f "$srcdir/$f"; then
22980 # Source tree
22981 echo "$srcdir/$f"
22982 else
22983 # /dev/null tree
22984 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22985 echo "$as_me: error: cannot find input file: $f" >&2;}
22986 { (exit 1); exit 1; }; }
22987 fi;;
22988 esac
22989 done` || { (exit 1); exit 1; }
22990 _ACEOF
22991 cat >>$CONFIG_STATUS <<_ACEOF
22992 sed "$ac_vpsub
22993 $extrasub
22994 _ACEOF
22995 cat >>$CONFIG_STATUS <<\_ACEOF
22996 :t
22997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22998 s,@configure_input@,$configure_input,;t t
22999 s,@srcdir@,$ac_srcdir,;t t
23000 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23001 s,@top_srcdir@,$ac_top_srcdir,;t t
23002 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23003 s,@builddir@,$ac_builddir,;t t
23004 s,@abs_builddir@,$ac_abs_builddir,;t t
23005 s,@top_builddir@,$ac_top_builddir,;t t
23006 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23007 s,@INSTALL@,$ac_INSTALL,;t t
23008 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23009 rm -f $tmp/stdin
23010 if test x"$ac_file" != x-; then
23011 mv $tmp/out $ac_file
23012 else
23013 cat $tmp/out
23014 rm -f $tmp/out
23015 fi
23016
23017 done
23018 _ACEOF
23019 cat >>$CONFIG_STATUS <<\_ACEOF
23020
23021 #
23022 # CONFIG_COMMANDS section.
23023 #
23024 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23025 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23026 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23027 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23028 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23029 X"$ac_dest" : 'X\(//\)[^/]' \| \
23030 X"$ac_dest" : 'X\(//\)$' \| \
23031 X"$ac_dest" : 'X\(/\)' \| \
23032 . : '\(.\)' 2>/dev/null ||
23033 echo X"$ac_dest" |
23034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23036 /^X\(\/\/\)$/{ s//\1/; q; }
23037 /^X\(\/\).*/{ s//\1/; q; }
23038 s/.*/./; q'`
23039 { if $as_mkdir_p; then
23040 mkdir -p "$ac_dir"
23041 else
23042 as_dir="$ac_dir"
23043 as_dirs=
23044 while test ! -d "$as_dir"; do
23045 as_dirs="$as_dir $as_dirs"
23046 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23048 X"$as_dir" : 'X\(//\)[^/]' \| \
23049 X"$as_dir" : 'X\(//\)$' \| \
23050 X"$as_dir" : 'X\(/\)' \| \
23051 . : '\(.\)' 2>/dev/null ||
23052 echo X"$as_dir" |
23053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23055 /^X\(\/\/\)$/{ s//\1/; q; }
23056 /^X\(\/\).*/{ s//\1/; q; }
23057 s/.*/./; q'`
23058 done
23059 test ! -n "$as_dirs" || mkdir $as_dirs
23060 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23061 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23062 { (exit 1); exit 1; }; }; }
23063
23064 ac_builddir=.
23065
23066 if test "$ac_dir" != .; then
23067 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23068 # A "../" for each directory in $ac_dir_suffix.
23069 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23070 else
23071 ac_dir_suffix= ac_top_builddir=
23072 fi
23073
23074 case $srcdir in
23075 .) # No --srcdir option. We are building in place.
23076 ac_srcdir=.
23077 if test -z "$ac_top_builddir"; then
23078 ac_top_srcdir=.
23079 else
23080 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23081 fi ;;
23082 [\\/]* | ?:[\\/]* ) # Absolute path.
23083 ac_srcdir=$srcdir$ac_dir_suffix;
23084 ac_top_srcdir=$srcdir ;;
23085 *) # Relative path.
23086 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23087 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23088 esac
23089
23090 # Do not use `cd foo && pwd` to compute absolute paths, because
23091 # the directories may not exist.
23092 case `pwd` in
23093 .) ac_abs_builddir="$ac_dir";;
23094 *)
23095 case "$ac_dir" in
23096 .) ac_abs_builddir=`pwd`;;
23097 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23098 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23099 esac;;
23100 esac
23101 case $ac_abs_builddir in
23102 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23103 *)
23104 case ${ac_top_builddir}. in
23105 .) ac_abs_top_builddir=$ac_abs_builddir;;
23106 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23107 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23108 esac;;
23109 esac
23110 case $ac_abs_builddir in
23111 .) ac_abs_srcdir=$ac_srcdir;;
23112 *)
23113 case $ac_srcdir in
23114 .) ac_abs_srcdir=$ac_abs_builddir;;
23115 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23116 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23117 esac;;
23118 esac
23119 case $ac_abs_builddir in
23120 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23121 *)
23122 case $ac_top_srcdir in
23123 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23124 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23125 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23126 esac;;
23127 esac
23128
23129
23130 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23131 echo "$as_me: executing $ac_dest commands" >&6;}
23132 case $ac_dest in
23133 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23134 # Strip MF so we end up with the name of the file.
23135 mf=`echo "$mf" | sed -e 's/:.*$//'`
23136 # Check whether this is an Automake generated Makefile or not.
23137 # We used to match only the files named `Makefile.in', but
23138 # some people rename them; so instead we look at the file content.
23139 # Grep'ing the first line is not enough: some people post-process
23140 # each Makefile.in and add a new line on top of each file to say so.
23141 # So let's grep whole file.
23142 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23143 dirpart=`(dirname "$mf") 2>/dev/null ||
23144 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23145 X"$mf" : 'X\(//\)[^/]' \| \
23146 X"$mf" : 'X\(//\)$' \| \
23147 X"$mf" : 'X\(/\)' \| \
23148 . : '\(.\)' 2>/dev/null ||
23149 echo X"$mf" |
23150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23152 /^X\(\/\/\)$/{ s//\1/; q; }
23153 /^X\(\/\).*/{ s//\1/; q; }
23154 s/.*/./; q'`
23155 else
23156 continue
23157 fi
23158 # Extract the definition of DEPDIR, am__include, and am__quote
23159 # from the Makefile without running `make'.
23160 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23161 test -z "$DEPDIR" && continue
23162 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23163 test -z "am__include" && continue
23164 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23165 # When using ansi2knr, U may be empty or an underscore; expand it
23166 U=`sed -n 's/^U = //p' < "$mf"`
23167 # Find all dependency output files, they are included files with
23168 # $(DEPDIR) in their names. We invoke sed twice because it is the
23169 # simplest approach to changing $(DEPDIR) to its actual value in the
23170 # expansion.
23171 for file in `sed -n "
23172 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23173 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23174 # Make sure the directory exists.
23175 test -f "$dirpart/$file" && continue
23176 fdir=`(dirname "$file") 2>/dev/null ||
23177 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23178 X"$file" : 'X\(//\)[^/]' \| \
23179 X"$file" : 'X\(//\)$' \| \
23180 X"$file" : 'X\(/\)' \| \
23181 . : '\(.\)' 2>/dev/null ||
23182 echo X"$file" |
23183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23185 /^X\(\/\/\)$/{ s//\1/; q; }
23186 /^X\(\/\).*/{ s//\1/; q; }
23187 s/.*/./; q'`
23188 { if $as_mkdir_p; then
23189 mkdir -p $dirpart/$fdir
23190 else
23191 as_dir=$dirpart/$fdir
23192 as_dirs=
23193 while test ! -d "$as_dir"; do
23194 as_dirs="$as_dir $as_dirs"
23195 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23197 X"$as_dir" : 'X\(//\)[^/]' \| \
23198 X"$as_dir" : 'X\(//\)$' \| \
23199 X"$as_dir" : 'X\(/\)' \| \
23200 . : '\(.\)' 2>/dev/null ||
23201 echo X"$as_dir" |
23202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23204 /^X\(\/\/\)$/{ s//\1/; q; }
23205 /^X\(\/\).*/{ s//\1/; q; }
23206 s/.*/./; q'`
23207 done
23208 test ! -n "$as_dirs" || mkdir $as_dirs
23209 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23210 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23211 { (exit 1); exit 1; }; }; }
23212
23213 # echo "creating $dirpart/$file"
23214 echo '# dummy' > "$dirpart/$file"
23215 done
23216 done
23217 ;;
23218 esac
23219 done
23220 _ACEOF
23221
23222 cat >>$CONFIG_STATUS <<\_ACEOF
23223
23224 { (exit 0); exit 0; }
23225 _ACEOF
23226 chmod +x $CONFIG_STATUS
23227 ac_clean_files=$ac_clean_files_save
23228
23229
23230 # configure is writing to config.log, and then calls config.status.
23231 # config.status does its own redirection, appending to config.log.
23232 # Unfortunately, on DOS this fails, as config.log is still kept open
23233 # by configure, so config.status won't be able to write to it; its
23234 # output is simply discarded. So we exec the FD to /dev/null,
23235 # effectively closing config.log, so it can be properly (re)opened and
23236 # appended to by config.status. When coming back to configure, we
23237 # need to make the FD available again.
23238 if test "$no_create" != yes; then
23239 ac_cs_success=:
23240 ac_config_status_args=
23241 test "$silent" = yes &&
23242 ac_config_status_args="$ac_config_status_args --quiet"
23243 exec 5>/dev/null
23244 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23245 exec 5>>config.log
23246 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23247 # would make configure fail if this is the last instruction.
23248 $ac_cs_success || { (exit 1); exit 1; }
23249 fi
23250
23251 #
23252 # CONFIG_SUBDIRS section.
23253 #
23254 if test "$no_recursion" != yes; then
23255
23256 # Remove --cache-file and --srcdir arguments so they do not pile up.
23257 ac_sub_configure_args=
23258 ac_prev=
23259 for ac_arg in $ac_configure_args; do
23260 if test -n "$ac_prev"; then
23261 ac_prev=
23262 continue
23263 fi
23264 case $ac_arg in
23265 -cache-file | --cache-file | --cache-fil | --cache-fi \
23266 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23267 ac_prev=cache_file ;;
23268 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23269 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23270 | --c=*)
23271 ;;
23272 --config-cache | -C)
23273 ;;
23274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23275 ac_prev=srcdir ;;
23276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23277 ;;
23278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23279 ac_prev=prefix ;;
23280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23281 ;;
23282 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23283 esac
23284 done
23285
23286 # Always prepend --prefix to ensure using the same prefix
23287 # in subdir configurations.
23288 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23289
23290 ac_popdir=`pwd`
23291 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23292
23293 # Do not complain, so a configure script can configure whichever
23294 # parts of a large source tree are present.
23295 test -d $srcdir/$ac_dir || continue
23296
23297 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23298 echo "$as_me: configuring in $ac_dir" >&6;}
23299 { if $as_mkdir_p; then
23300 mkdir -p "$ac_dir"
23301 else
23302 as_dir="$ac_dir"
23303 as_dirs=
23304 while test ! -d "$as_dir"; do
23305 as_dirs="$as_dir $as_dirs"
23306 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23308 X"$as_dir" : 'X\(//\)[^/]' \| \
23309 X"$as_dir" : 'X\(//\)$' \| \
23310 X"$as_dir" : 'X\(/\)' \| \
23311 . : '\(.\)' 2>/dev/null ||
23312 echo X"$as_dir" |
23313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23315 /^X\(\/\/\)$/{ s//\1/; q; }
23316 /^X\(\/\).*/{ s//\1/; q; }
23317 s/.*/./; q'`
23318 done
23319 test ! -n "$as_dirs" || mkdir $as_dirs
23320 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23321 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23322 { (exit 1); exit 1; }; }; }
23323
23324 ac_builddir=.
23325
23326 if test "$ac_dir" != .; then
23327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23328 # A "../" for each directory in $ac_dir_suffix.
23329 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23330 else
23331 ac_dir_suffix= ac_top_builddir=
23332 fi
23333
23334 case $srcdir in
23335 .) # No --srcdir option. We are building in place.
23336 ac_srcdir=.
23337 if test -z "$ac_top_builddir"; then
23338 ac_top_srcdir=.
23339 else
23340 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23341 fi ;;
23342 [\\/]* | ?:[\\/]* ) # Absolute path.
23343 ac_srcdir=$srcdir$ac_dir_suffix;
23344 ac_top_srcdir=$srcdir ;;
23345 *) # Relative path.
23346 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23347 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23348 esac
23349
23350 # Do not use `cd foo && pwd` to compute absolute paths, because
23351 # the directories may not exist.
23352 case `pwd` in
23353 .) ac_abs_builddir="$ac_dir";;
23354 *)
23355 case "$ac_dir" in
23356 .) ac_abs_builddir=`pwd`;;
23357 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23358 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23359 esac;;
23360 esac
23361 case $ac_abs_builddir in
23362 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23363 *)
23364 case ${ac_top_builddir}. in
23365 .) ac_abs_top_builddir=$ac_abs_builddir;;
23366 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23367 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23368 esac;;
23369 esac
23370 case $ac_abs_builddir in
23371 .) ac_abs_srcdir=$ac_srcdir;;
23372 *)
23373 case $ac_srcdir in
23374 .) ac_abs_srcdir=$ac_abs_builddir;;
23375 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23376 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23377 esac;;
23378 esac
23379 case $ac_abs_builddir in
23380 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23381 *)
23382 case $ac_top_srcdir in
23383 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23384 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23385 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23386 esac;;
23387 esac
23388
23389
23390 cd $ac_dir
23391
23392 # Check for guested configure; otherwise get Cygnus style configure.
23393 if test -f $ac_srcdir/configure.gnu; then
23394 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23395 elif test -f $ac_srcdir/configure; then
23396 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23397 elif test -f $ac_srcdir/configure.in; then
23398 ac_sub_configure=$ac_configure
23399 else
23400 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23401 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23402 ac_sub_configure=
23403 fi
23404
23405 # The recursion is here.
23406 if test -n "$ac_sub_configure"; then
23407 # Make the cache file name correct relative to the subdirectory.
23408 case $cache_file in
23409 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23410 *) # Relative path.
23411 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23412 esac
23413
23414 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23415 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23416 # The eval makes quoting arguments work.
23417 eval $ac_sub_configure $ac_sub_configure_args \
23418 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23419 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23420 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23421 { (exit 1); exit 1; }; }
23422 fi
23423
23424 cd $ac_popdir
23425 done
23426 fi
23427
23428
23429 if test x"$coin_vpath_link_files" = x; then : ; else
23430 lnkcmd="$coin_link_input_cmd"
23431 if test "$lnkcmd" = cp; then
23432 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
23433 echo "$as_me: Copying data files for VPATH configuration" >&6;}
23434 else
23435 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
23436 echo "$as_me: Creating VPATH links for data files" >&6;}
23437 fi
23438 for file in $coin_vpath_link_files; do
23439 dir=`(dirname "./$file") 2>/dev/null ||
23440 $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23441 X"./$file" : 'X\(//\)[^/]' \| \
23442 X"./$file" : 'X\(//\)$' \| \
23443 X"./$file" : 'X\(/\)' \| \
23444 . : '\(.\)' 2>/dev/null ||
23445 echo X"./$file" |
23446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23448 /^X\(\/\/\)$/{ s//\1/; q; }
23449 /^X\(\/\).*/{ s//\1/; q; }
23450 s/.*/./; q'`
23451 if test -d $dir; then : ; else
23452 { if $as_mkdir_p; then
23453 mkdir -p $dir
23454 else
23455 as_dir=$dir
23456 as_dirs=
23457 while test ! -d "$as_dir"; do
23458 as_dirs="$as_dir $as_dirs"
23459 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23460 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23461 X"$as_dir" : 'X\(//\)[^/]' \| \
23462 X"$as_dir" : 'X\(//\)$' \| \
23463 X"$as_dir" : 'X\(/\)' \| \
23464 . : '\(.\)' 2>/dev/null ||
23465 echo X"$as_dir" |
23466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23467 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23468 /^X\(\/\/\)$/{ s//\1/; q; }
23469 /^X\(\/\).*/{ s//\1/; q; }
23470 s/.*/./; q'`
23471 done
23472 test ! -n "$as_dirs" || mkdir $as_dirs
23473 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
23474 echo "$as_me: error: cannot create directory $dir" >&2;}
23475 { (exit 1); exit 1; }; }; }
23476
23477 fi
23478 rm -f $file
23479 $lnkcmd $abs_source_dir/$file $file
23480 done
23481 fi
23482
23483 { 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
23484 echo "$as_me: In case of trouble, first consult the troubleshooting page at https://github.com/coin-or-tools/BuildTools/wiki/user-troubleshooting" >&6;}
23485 if test x$coin_projectdir = xyes; then
23486 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
23487 echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
23488 else
23489 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
23490 echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
23491 fi
23492 else
23493 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
23494 echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
23495 fi
23496
23497