Debian Codegraph @

Vol/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Vol 1.5.4.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 #
12 # Copyright 2006 International Business Machines and others.
13 # All Rights Reserved.
14 # This file is part of the open source package Coin which is distributed
15 # under the Eclipse Public License.
16 ## --------------------- ##
17 ## M4sh Initialization. ##
18 ## --------------------- ##
19
20 # Be Bourne compatible
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 emulate sh
23 NULLCMD=:
24 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29 fi
30 DUALCASE=1; export DUALCASE # for MKS sh
31
32 # Support unset when possible.
33 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 as_unset=unset
35 else
36 as_unset=false
37 fi
38
39
40 # Work around bugs in pre-3.0 UWIN ksh.
41 $as_unset ENV MAIL MAILPATH
42 PS1='$ '
43 PS2='> '
44 PS4='+ '
45
46 # NLS nuisances.
47 for as_var in \
48 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50 LC_TELEPHONE LC_TIME
51 do
52 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53 eval $as_var=C; export $as_var
54 else
55 $as_unset $as_var
56 fi
57 done
58
59 # Required to use basename.
60 if expr a : '\(a\)' >/dev/null 2>&1; then
61 as_expr=expr
62 else
63 as_expr=false
64 fi
65
66 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 as_basename=basename
68 else
69 as_basename=false
70 fi
71
72
73 # Name of the executable.
74 as_me=`$as_basename "$0" ||
75 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76 X"$0" : 'X\(//\)$' \| \
77 X"$0" : 'X\(/\)$' \| \
78 . : '\(.\)' 2>/dev/null ||
79 echo X/"$0" |
80 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81 /^X\/\(\/\/\)$/{ s//\1/; q; }
82 /^X\/\(\/\).*/{ s//\1/; q; }
83 s/.*/./; q'`
84
85
86 # PATH needs CR, and LINENO needs CR and PATH.
87 # Avoid depending upon Character Ranges.
88 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91 as_cr_digits='0123456789'
92 as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94 # The user is always right.
95 if test "${PATH_SEPARATOR+set}" != set; then
96 echo "#! /bin/sh" >conf$$.sh
97 echo "exit 0" >>conf$$.sh
98 chmod +x conf$$.sh
99 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100 PATH_SEPARATOR=';'
101 else
102 PATH_SEPARATOR=:
103 fi
104 rm -f conf$$.sh
105 fi
106
107
108 as_lineno_1=$LINENO
109 as_lineno_2=$LINENO
110 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111 test "x$as_lineno_1" != "x$as_lineno_2" &&
112 test "x$as_lineno_3" = "x$as_lineno_2" || {
113 # Find who we are. Look in the path if we contain no path at all
114 # relative or not.
115 case $0 in
116 *[\\/]* ) as_myself=$0 ;;
117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118 for as_dir in $PATH
119 do
120 IFS=$as_save_IFS
121 test -z "$as_dir" && as_dir=.
122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 done
124
125 ;;
126 esac
127 # We did not find ourselves, most probably we were run as `sh COMMAND'
128 # in which case we are not to be found in the path.
129 if test "x$as_myself" = x; then
130 as_myself=$0
131 fi
132 if test ! -f "$as_myself"; then
133 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134 { (exit 1); exit 1; }; }
135 fi
136 case $CONFIG_SHELL in
137 '')
138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140 do
141 IFS=$as_save_IFS
142 test -z "$as_dir" && as_dir=.
143 for as_base in sh bash ksh sh5; do
144 case $as_dir in
145 /*)
146 if ("$as_dir/$as_base" -c '
147 as_lineno_1=$LINENO
148 as_lineno_2=$LINENO
149 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150 test "x$as_lineno_1" != "x$as_lineno_2" &&
151 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
152 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154 CONFIG_SHELL=$as_dir/$as_base
155 export CONFIG_SHELL
156 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 fi;;
158 esac
159 done
160 done
161 ;;
162 esac
163
164 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165 # uniformly replaced by the line number. The first 'sed' inserts a
166 # line-number line before each line; the second 'sed' does the real
167 # work. The second script uses 'N' to pair each line-number line
168 # with the numbered line, and appends trailing '-' during
169 # substitution so that $LINENO is not a special case at line end.
170 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
172 sed '=' <$as_myself |
173 sed '
174 N
175 s,$,-,
176 : loop
177 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178 t loop
179 s,-$,,
180 s,^['$as_cr_digits']*\n,,
181 ' >$as_me.lineno &&
182 chmod +x $as_me.lineno ||
183 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184 { (exit 1); exit 1; }; }
185
186 # Don't try to exec as it changes $[0], causing all sort of problems
187 # (the dirname of $[0] is not the place where we might find the
188 # original and so on. Autoconf is especially sensible to this).
189 . ./$as_me.lineno
190 # Exit status is that of the last command.
191 exit
192 }
193
194
195 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196 *c*,-n*) ECHO_N= ECHO_C='
197 ' ECHO_T=' ' ;;
198 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
200 esac
201
202 if expr a : '\(a\)' >/dev/null 2>&1; then
203 as_expr=expr
204 else
205 as_expr=false
206 fi
207
208 rm -f conf$$ conf$$.exe conf$$.file
209 echo >conf$$.file
210 if ln -s conf$$.file conf$$ 2>/dev/null; then
211 # We could just check for DJGPP; but this test a) works b) is more generic
212 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213 if test -f conf$$.exe; then
214 # Don't use ln at all; we don't have any links
215 as_ln_s='cp -p'
216 else
217 as_ln_s='ln -s'
218 fi
219 elif ln conf$$.file conf$$ 2>/dev/null; then
220 as_ln_s=ln
221 else
222 as_ln_s='cp -p'
223 fi
224 rm -f conf$$ conf$$.exe conf$$.file
225
226 if mkdir -p . 2>/dev/null; then
227 as_mkdir_p=:
228 else
229 test -d ./-p && rmdir ./-p
230 as_mkdir_p=false
231 fi
232
233 as_executable_p="test -f"
234
235 # Sed expression to map a string onto a valid CPP name.
236 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238 # Sed expression to map a string onto a valid variable name.
239 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242 # IFS
243 # We need space, tab and new line, in precisely that order.
244 as_nl='
245 '
246 IFS=" $as_nl"
247
248 # CDPATH.
249 $as_unset CDPATH
250
251
252
253 # Check that we are running under the correct shell.
254 SHELL=${CONFIG_SHELL-/bin/sh}
255
256 case X$ECHO in
257 X*--fallback-echo)
258 # Remove one level of quotation (which was required for Make).
259 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 ;;
261 esac
262
263 echo=${ECHO-echo}
264 if test "X$1" = X--no-reexec; then
265 # Discard the --no-reexec flag, and continue.
266 shift
267 elif test "X$1" = X--fallback-echo; then
268 # Avoid inline document here, it may be left over
269 :
270 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271 # Yippee, $echo works!
272 :
273 else
274 # Restart under the correct shell.
275 exec $SHELL "$0" --no-reexec ${1+"$@"}
276 fi
277
278 if test "X$1" = X--fallback-echo; then
279 # used as fallback echo
280 shift
281 cat <<EOF
282 $*
283 EOF
284 exit 0
285 fi
286
287 # The HP-UX ksh and POSIX shell print the target directory to stdout
288 # if CDPATH is set.
289 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291 if test -z "$ECHO"; then
292 if test "X${echo_test_string+set}" != Xset; then
293 # find a string as large as possible, as long as the shell can cope with it
294 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297 echo_test_string=`eval $cmd` &&
298 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 then
300 break
301 fi
302 done
303 fi
304
305 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307 test "X$echo_testing_string" = "X$echo_test_string"; then
308 :
309 else
310 # The Solaris, AIX, and Digital Unix default echo programs unquote
311 # backslashes. This makes it impossible to quote backslashes using
312 # echo "$something" | sed 's/\\/\\\\/g'
313 #
314 # So, first we look for a working echo in the user's PATH.
315
316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317 for dir in $PATH /usr/ucb; do
318 IFS="$lt_save_ifs"
319 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322 test "X$echo_testing_string" = "X$echo_test_string"; then
323 echo="$dir/echo"
324 break
325 fi
326 done
327 IFS="$lt_save_ifs"
328
329 if test "X$echo" = Xecho; then
330 # We didn't find a better echo, so look for alternatives.
331 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333 test "X$echo_testing_string" = "X$echo_test_string"; then
334 # This shell has a builtin print -r that does the trick.
335 echo='print -r'
336 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337 test "X$CONFIG_SHELL" != X/bin/ksh; then
338 # If we have ksh, try running configure again with it.
339 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340 export ORIGINAL_CONFIG_SHELL
341 CONFIG_SHELL=/bin/ksh
342 export CONFIG_SHELL
343 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344 else
345 # Try using printf.
346 echo='printf %s\n'
347 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 # Cool, printf works
351 :
352 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357 export CONFIG_SHELL
358 SHELL="$CONFIG_SHELL"
359 export SHELL
360 echo="$CONFIG_SHELL $0 --fallback-echo"
361 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362 test "X$echo_testing_string" = 'X\t' &&
363 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364 test "X$echo_testing_string" = "X$echo_test_string"; then
365 echo="$CONFIG_SHELL $0 --fallback-echo"
366 else
367 # maybe with a smaller string...
368 prev=:
369
370 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 then
373 break
374 fi
375 prev="$cmd"
376 done
377
378 if test "$prev" != 'sed 50q "$0"'; then
379 echo_test_string=`eval $prev`
380 export echo_test_string
381 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382 else
383 # Oops. We lost completely, so just stick with echo.
384 echo=echo
385 fi
386 fi
387 fi
388 fi
389 fi
390 fi
391
392 # Copy echo and quote the copy suitably for passing to libtool from
393 # the Makefile, instead of quoting the original, which is used later.
394 ECHO=$echo
395 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 fi
398
399
400
401
402 tagnames=${tagnames+${tagnames},}CXX
403
404 tagnames=${tagnames+${tagnames},}F77
405
406 # Name of the host.
407 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408 # so uname gets run too.
409 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411 exec 6>&1
412
413 #
414 # Initializations.
415 #
416 ac_default_prefix=/usr/local
417 ac_config_libobj_dir=.
418 cross_compiling=no
419 subdirs=
420 MFLAGS=
421 MAKEFLAGS=
422 SHELL=${CONFIG_SHELL-/bin/sh}
423
424 # Maximum number of lines to put in a shell here document.
425 # This variable seems obsolete. It should probably be removed, and
426 # only ac_max_sed_lines should be used.
427 : ${ac_max_here_lines=38}
428
429 # Identity of this package.
430 PACKAGE_NAME='Vol'
431 PACKAGE_TARNAME='vol'
432 PACKAGE_VERSION='1.5.4'
433 PACKAGE_STRING='Vol 1.5.4'
434 PACKAGE_BUGREPORT='[email protected]'
435
436 ac_unique_file="src/VolVolume.cpp"
437 ac_default_prefix=`pwd`
438 # Factoring default headers for most tests.
439 ac_includes_default="\
440 #include <stdio.h>
441 #if HAVE_SYS_TYPES_H
442 # include <sys/types.h>
443 #endif
444 #if HAVE_SYS_STAT_H
445 # include <sys/stat.h>
446 #endif
447 #if STDC_HEADERS
448 # include <stdlib.h>
449 # include <stddef.h>
450 #else
451 # if HAVE_STDLIB_H
452 # include <stdlib.h>
453 # endif
454 #endif
455 #if HAVE_STRING_H
456 # if !STDC_HEADERS && HAVE_MEMORY_H
457 # include <memory.h>
458 # endif
459 # include <string.h>
460 #endif
461 #if HAVE_STRINGS_H
462 # include <strings.h>
463 #endif
464 #if HAVE_INTTYPES_H
465 # include <inttypes.h>
466 #else
467 # if HAVE_STDINT_H
468 # include <stdint.h>
469 # endif
470 #endif
471 #if HAVE_UNISTD_H
472 # include <unistd.h>
473 #endif"
474
475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion VOL_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED VOLLIB_CFLAGS VOLLIB_LIBS VOLLIB_PCLIBS VOLLIB_PCREQUIRES VOLLIB_DEPENDENCIES VOLLIB_CFLAGS_INSTALLED VOLLIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED OSIVOLLIB_CFLAGS OSIVOLLIB_LIBS OSIVOLLIB_PCLIBS OSIVOLLIB_PCREQUIRES OSIVOLLIB_DEPENDENCIES OSIVOLLIB_CFLAGS_INSTALLED OSIVOLLIB_LIBS_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476 ac_subst_files=''
477
478 # Initialize some variables set by options.
479 ac_init_help=
480 ac_init_version=false
481 # The variables have the same names as the options, with
482 # dashes changed to underlines.
483 cache_file=/dev/null
484 exec_prefix=NONE
485 no_create=
486 no_recursion=
487 prefix=NONE
488 program_prefix=NONE
489 program_suffix=NONE
490 program_transform_name=s,x,x,
491 silent=
492 site=
493 srcdir=
494 verbose=
495 x_includes=NONE
496 x_libraries=NONE
497
498 # Installation directory options.
499 # These are left unexpanded so users can "make install exec_prefix=/foo"
500 # and all the variables that are supposed to be based on exec_prefix
501 # by default will actually change.
502 # Use braces instead of parens because sh, perl, etc. also accept them.
503 bindir='${exec_prefix}/bin'
504 sbindir='${exec_prefix}/sbin'
505 libexecdir='${exec_prefix}/libexec'
506 datadir='${prefix}/share'
507 sysconfdir='${prefix}/etc'
508 sharedstatedir='${prefix}/com'
509 localstatedir='${prefix}/var'
510 libdir='${exec_prefix}/lib'
511 includedir='${prefix}/include'
512 oldincludedir='/usr/include'
513 infodir='${prefix}/info'
514 mandir='${prefix}/man'
515
516 ac_prev=
517 for ac_option
518 do
519 # If the previous option needs an argument, assign it.
520 if test -n "$ac_prev"; then
521 eval "$ac_prev=\$ac_option"
522 ac_prev=
523 continue
524 fi
525
526 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528 # Accept the important Cygnus configure options, so we can diagnose typos.
529
530 case $ac_option in
531
532 -bindir | --bindir | --bindi | --bind | --bin | --bi)
533 ac_prev=bindir ;;
534 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535 bindir=$ac_optarg ;;
536
537 -build | --build | --buil | --bui | --bu)
538 ac_prev=build_alias ;;
539 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540 build_alias=$ac_optarg ;;
541
542 -cache-file | --cache-file | --cache-fil | --cache-fi \
543 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544 ac_prev=cache_file ;;
545 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547 cache_file=$ac_optarg ;;
548
549 --config-cache | -C)
550 cache_file=config.cache ;;
551
552 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553 ac_prev=datadir ;;
554 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555 | --da=*)
556 datadir=$ac_optarg ;;
557
558 -disable-* | --disable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 eval "enable_$ac_feature=no" ;;
566
567 -enable-* | --enable-*)
568 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569 # Reject names that are not valid shell variable names.
570 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572 { (exit 1); exit 1; }; }
573 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574 case $ac_option in
575 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576 *) ac_optarg=yes ;;
577 esac
578 eval "enable_$ac_feature='$ac_optarg'" ;;
579
580 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582 | --exec | --exe | --ex)
583 ac_prev=exec_prefix ;;
584 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586 | --exec=* | --exe=* | --ex=*)
587 exec_prefix=$ac_optarg ;;
588
589 -gas | --gas | --ga | --g)
590 # Obsolete; use --with-gas.
591 with_gas=yes ;;
592
593 -help | --help | --hel | --he | -h)
594 ac_init_help=long ;;
595 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596 ac_init_help=recursive ;;
597 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598 ac_init_help=short ;;
599
600 -host | --host | --hos | --ho)
601 ac_prev=host_alias ;;
602 -host=* | --host=* | --hos=* | --ho=*)
603 host_alias=$ac_optarg ;;
604
605 -includedir | --includedir | --includedi | --included | --include \
606 | --includ | --inclu | --incl | --inc)
607 ac_prev=includedir ;;
608 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609 | --includ=* | --inclu=* | --incl=* | --inc=*)
610 includedir=$ac_optarg ;;
611
612 -infodir | --infodir | --infodi | --infod | --info | --inf)
613 ac_prev=infodir ;;
614 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615 infodir=$ac_optarg ;;
616
617 -libdir | --libdir | --libdi | --libd)
618 ac_prev=libdir ;;
619 -libdir=* | --libdir=* | --libdi=* | --libd=*)
620 libdir=$ac_optarg ;;
621
622 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623 | --libexe | --libex | --libe)
624 ac_prev=libexecdir ;;
625 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626 | --libexe=* | --libex=* | --libe=*)
627 libexecdir=$ac_optarg ;;
628
629 -localstatedir | --localstatedir | --localstatedi | --localstated \
630 | --localstate | --localstat | --localsta | --localst \
631 | --locals | --local | --loca | --loc | --lo)
632 ac_prev=localstatedir ;;
633 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636 localstatedir=$ac_optarg ;;
637
638 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639 ac_prev=mandir ;;
640 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641 mandir=$ac_optarg ;;
642
643 -nfp | --nfp | --nf)
644 # Obsolete; use --without-fp.
645 with_fp=no ;;
646
647 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648 | --no-cr | --no-c | -n)
649 no_create=yes ;;
650
651 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653 no_recursion=yes ;;
654
655 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657 | --oldin | --oldi | --old | --ol | --o)
658 ac_prev=oldincludedir ;;
659 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662 oldincludedir=$ac_optarg ;;
663
664 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665 ac_prev=prefix ;;
666 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667 prefix=$ac_optarg ;;
668
669 -program-prefix | --program-prefix | --program-prefi | --program-pref \
670 | --program-pre | --program-pr | --program-p)
671 ac_prev=program_prefix ;;
672 -program-prefix=* | --program-prefix=* | --program-prefi=* \
673 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674 program_prefix=$ac_optarg ;;
675
676 -program-suffix | --program-suffix | --program-suffi | --program-suff \
677 | --program-suf | --program-su | --program-s)
678 ac_prev=program_suffix ;;
679 -program-suffix=* | --program-suffix=* | --program-suffi=* \
680 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681 program_suffix=$ac_optarg ;;
682
683 -program-transform-name | --program-transform-name \
684 | --program-transform-nam | --program-transform-na \
685 | --program-transform-n | --program-transform- \
686 | --program-transform | --program-transfor \
687 | --program-transfo | --program-transf \
688 | --program-trans | --program-tran \
689 | --progr-tra | --program-tr | --program-t)
690 ac_prev=program_transform_name ;;
691 -program-transform-name=* | --program-transform-name=* \
692 | --program-transform-nam=* | --program-transform-na=* \
693 | --program-transform-n=* | --program-transform-=* \
694 | --program-transform=* | --program-transfor=* \
695 | --program-transfo=* | --program-transf=* \
696 | --program-trans=* | --program-tran=* \
697 | --progr-tra=* | --program-tr=* | --program-t=*)
698 program_transform_name=$ac_optarg ;;
699
700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701 | -silent | --silent | --silen | --sile | --sil)
702 silent=yes ;;
703
704 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705 ac_prev=sbindir ;;
706 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707 | --sbi=* | --sb=*)
708 sbindir=$ac_optarg ;;
709
710 -sharedstatedir | --sharedstatedir | --sharedstatedi \
711 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712 | --sharedst | --shareds | --shared | --share | --shar \
713 | --sha | --sh)
714 ac_prev=sharedstatedir ;;
715 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718 | --sha=* | --sh=*)
719 sharedstatedir=$ac_optarg ;;
720
721 -site | --site | --sit)
722 ac_prev=site ;;
723 -site=* | --site=* | --sit=*)
724 site=$ac_optarg ;;
725
726 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727 ac_prev=srcdir ;;
728 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729 srcdir=$ac_optarg ;;
730
731 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732 | --syscon | --sysco | --sysc | --sys | --sy)
733 ac_prev=sysconfdir ;;
734 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736 sysconfdir=$ac_optarg ;;
737
738 -target | --target | --targe | --targ | --tar | --ta | --t)
739 ac_prev=target_alias ;;
740 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741 target_alias=$ac_optarg ;;
742
743 -v | -verbose | --verbose | --verbos | --verbo | --verb)
744 verbose=yes ;;
745
746 -version | --version | --versio | --versi | --vers | -V)
747 ac_init_version=: ;;
748
749 -with-* | --with-*)
750 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package| sed 's/-/_/g'`
756 case $ac_option in
757 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758 *) ac_optarg=yes ;;
759 esac
760 eval "with_$ac_package='$ac_optarg'" ;;
761
762 -without-* | --without-*)
763 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764 # Reject names that are not valid shell variable names.
765 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766 { echo "$as_me: error: invalid package name: $ac_package" >&2
767 { (exit 1); exit 1; }; }
768 ac_package=`echo $ac_package | sed 's/-/_/g'`
769 eval "with_$ac_package=no" ;;
770
771 --x)
772 # Obsolete; use --with-x.
773 with_x=yes ;;
774
775 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776 | --x-incl | --x-inc | --x-in | --x-i)
777 ac_prev=x_includes ;;
778 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780 x_includes=$ac_optarg ;;
781
782 -x-libraries | --x-libraries | --x-librarie | --x-librari \
783 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784 ac_prev=x_libraries ;;
785 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787 x_libraries=$ac_optarg ;;
788
789 -*) { echo "$as_me: error: unrecognized option: $ac_option
790 Try \`$0 --help' for more information." >&2
791 { (exit 1); exit 1; }; }
792 ;;
793
794 *=*)
795 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796 # Reject names that are not valid shell variable names.
797 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799 { (exit 1); exit 1; }; }
800 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801 eval "$ac_envvar='$ac_optarg'"
802 export $ac_envvar ;;
803
804 *)
805 # FIXME: should be removed in autoconf 3.0.
806 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 ;;
811
812 esac
813 done
814
815 if test -n "$ac_prev"; then
816 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817 { echo "$as_me: error: missing argument to $ac_option" >&2
818 { (exit 1); exit 1; }; }
819 fi
820
821 # Be sure to have absolute paths.
822 for ac_var in exec_prefix prefix
823 do
824 eval ac_val=$`echo $ac_var`
825 case $ac_val in
826 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828 { (exit 1); exit 1; }; };;
829 esac
830 done
831
832 # Be sure to have absolute paths.
833 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834 localstatedir libdir includedir oldincludedir infodir mandir
835 do
836 eval ac_val=$`echo $ac_var`
837 case $ac_val in
838 [\\/$]* | ?:[\\/]* ) ;;
839 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840 { (exit 1); exit 1; }; };;
841 esac
842 done
843
844 # There might be people who depend on the old broken behavior: `$host'
845 # used to hold the argument of --host etc.
846 # FIXME: To remove some day.
847 build=$build_alias
848 host=$host_alias
849 target=$target_alias
850
851 # FIXME: To remove some day.
852 if test "x$host_alias" != x; then
853 if test "x$build_alias" = x; then
854 cross_compiling=maybe
855 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856 If a cross compiler is detected then cross compile mode will be used." >&2
857 elif test "x$build_alias" != "x$host_alias"; then
858 cross_compiling=yes
859 fi
860 fi
861
862 ac_tool_prefix=
863 test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865 test "$silent" = yes && exec 6>/dev/null
866
867
868 # Find the source files, if location was not specified.
869 if test -z "$srcdir"; then
870 ac_srcdir_defaulted=yes
871 # Try the directory containing this script, then its parent.
872 ac_confdir=`(dirname "$0") 2>/dev/null ||
873 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874 X"$0" : 'X\(//\)[^/]' \| \
875 X"$0" : 'X\(//\)$' \| \
876 X"$0" : 'X\(/\)' \| \
877 . : '\(.\)' 2>/dev/null ||
878 echo X"$0" |
879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881 /^X\(\/\/\)$/{ s//\1/; q; }
882 /^X\(\/\).*/{ s//\1/; q; }
883 s/.*/./; q'`
884 srcdir=$ac_confdir
885 if test ! -r $srcdir/$ac_unique_file; then
886 srcdir=..
887 fi
888 else
889 ac_srcdir_defaulted=no
890 fi
891 if test ! -r $srcdir/$ac_unique_file; then
892 if test "$ac_srcdir_defaulted" = yes; then
893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894 { (exit 1); exit 1; }; }
895 else
896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897 { (exit 1); exit 1; }; }
898 fi
899 fi
900 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902 { (exit 1); exit 1; }; }
903 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904 ac_env_build_alias_set=${build_alias+set}
905 ac_env_build_alias_value=$build_alias
906 ac_cv_env_build_alias_set=${build_alias+set}
907 ac_cv_env_build_alias_value=$build_alias
908 ac_env_host_alias_set=${host_alias+set}
909 ac_env_host_alias_value=$host_alias
910 ac_cv_env_host_alias_set=${host_alias+set}
911 ac_cv_env_host_alias_value=$host_alias
912 ac_env_target_alias_set=${target_alias+set}
913 ac_env_target_alias_value=$target_alias
914 ac_cv_env_target_alias_set=${target_alias+set}
915 ac_cv_env_target_alias_value=$target_alias
916 ac_env_CDEFS_set=${CDEFS+set}
917 ac_env_CDEFS_value=$CDEFS
918 ac_cv_env_CDEFS_set=${CDEFS+set}
919 ac_cv_env_CDEFS_value=$CDEFS
920 ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921 ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922 ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923 ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924 ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925 ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926 ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927 ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928 ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929 ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930 ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931 ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932 ac_env_CC_set=${CC+set}
933 ac_env_CC_value=$CC
934 ac_cv_env_CC_set=${CC+set}
935 ac_cv_env_CC_value=$CC
936 ac_env_CFLAGS_set=${CFLAGS+set}
937 ac_env_CFLAGS_value=$CFLAGS
938 ac_cv_env_CFLAGS_set=${CFLAGS+set}
939 ac_cv_env_CFLAGS_value=$CFLAGS
940 ac_env_LDFLAGS_set=${LDFLAGS+set}
941 ac_env_LDFLAGS_value=$LDFLAGS
942 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943 ac_cv_env_LDFLAGS_value=$LDFLAGS
944 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945 ac_env_CPPFLAGS_value=$CPPFLAGS
946 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948 ac_env_MPICC_set=${MPICC+set}
949 ac_env_MPICC_value=$MPICC
950 ac_cv_env_MPICC_set=${MPICC+set}
951 ac_cv_env_MPICC_value=$MPICC
952 ac_env_CXXDEFS_set=${CXXDEFS+set}
953 ac_env_CXXDEFS_value=$CXXDEFS
954 ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955 ac_cv_env_CXXDEFS_value=$CXXDEFS
956 ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957 ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958 ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959 ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960 ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961 ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962 ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963 ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964 ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965 ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966 ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967 ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968 ac_env_CXX_set=${CXX+set}
969 ac_env_CXX_value=$CXX
970 ac_cv_env_CXX_set=${CXX+set}
971 ac_cv_env_CXX_value=$CXX
972 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973 ac_env_CXXFLAGS_value=$CXXFLAGS
974 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976 ac_env_MPICXX_set=${MPICXX+set}
977 ac_env_MPICXX_value=$MPICXX
978 ac_cv_env_MPICXX_set=${MPICXX+set}
979 ac_cv_env_MPICXX_value=$MPICXX
980 ac_env_CPP_set=${CPP+set}
981 ac_env_CPP_value=$CPP
982 ac_cv_env_CPP_set=${CPP+set}
983 ac_cv_env_CPP_value=$CPP
984 ac_env_CXXCPP_set=${CXXCPP+set}
985 ac_env_CXXCPP_value=$CXXCPP
986 ac_cv_env_CXXCPP_set=${CXXCPP+set}
987 ac_cv_env_CXXCPP_value=$CXXCPP
988 ac_env_F77_set=${F77+set}
989 ac_env_F77_value=$F77
990 ac_cv_env_F77_set=${F77+set}
991 ac_cv_env_F77_value=$F77
992 ac_env_FFLAGS_set=${FFLAGS+set}
993 ac_env_FFLAGS_value=$FFLAGS
994 ac_cv_env_FFLAGS_set=${FFLAGS+set}
995 ac_cv_env_FFLAGS_value=$FFLAGS
996 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997 ac_env_PKG_CONFIG_value=$PKG_CONFIG
998 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001 #
1002 # Report the --help message.
1003 #
1004 if test "$ac_init_help" = "long"; then
1005 # Omit some internal or obsolete options to make the list less imposing.
1006 # This message is too long to be a string in the A/UX 3.1 sh.
1007 cat <<_ACEOF
1008 \`configure' configures Vol 1.5.4 to adapt to many kinds of systems.
1009
1010 Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013 VAR=VALUE. See below for descriptions of some of the useful variables.
1014
1015 Defaults for the options are specified in brackets.
1016
1017 Configuration:
1018 -h, --help display this help and exit
1019 --help=short display options specific to this package
1020 --help=recursive display the short help of all the included packages
1021 -V, --version display version information and exit
1022 -q, --quiet, --silent do not print \`checking...' messages
1023 --cache-file=FILE cache test results in FILE [disabled]
1024 -C, --config-cache alias for \`--cache-file=config.cache'
1025 -n, --no-create do not create output files
1026 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1027
1028 _ACEOF
1029
1030 cat <<_ACEOF
1031 Installation directories:
1032 --prefix=PREFIX install architecture-independent files in PREFIX
1033 [$ac_default_prefix]
1034 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1035 [PREFIX]
1036
1037 By default, \`make install' will install all the files in
1038 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1039 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040 for instance \`--prefix=\$HOME'.
1041
1042 For better control, use the options below.
1043
1044 Fine tuning of the installation directories:
1045 --bindir=DIR user executables [EPREFIX/bin]
1046 --sbindir=DIR system admin executables [EPREFIX/sbin]
1047 --libexecdir=DIR program executables [EPREFIX/libexec]
1048 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1049 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1050 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1051 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1052 --libdir=DIR object code libraries [EPREFIX/lib]
1053 --includedir=DIR C header files [PREFIX/include]
1054 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1055 --infodir=DIR info documentation [PREFIX/info]
1056 --mandir=DIR man documentation [PREFIX/man]
1057 _ACEOF
1058
1059 cat <<\_ACEOF
1060
1061 Program names:
1062 --program-prefix=PREFIX prepend PREFIX to installed program names
1063 --program-suffix=SUFFIX append SUFFIX to installed program names
1064 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1065
1066 System types:
1067 --build=BUILD configure for building on BUILD [guessed]
1068 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1069 _ACEOF
1070 fi
1071
1072 if test -n "$ac_init_help"; then
1073 case $ac_init_help in
1074 short | recursive ) echo "Configuration of Vol 1.5.4:";;
1075 esac
1076 cat <<\_ACEOF
1077
1078 Optional Features:
1079 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1080 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1081 --enable-debug compile all projects with debug options tests
1082 (implies --disable-shared)
1083 --enable-debug-vol compile project Vol with debug compiler flags
1084
1085 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1086 --enable-static[=PKGS]
1087 build static libraries [default=no]
1088 --disable-dependency-tracking speeds up one-time build
1089 --enable-dependency-tracking do not reject slow dependency extractors
1090 --enable-maintainer-mode enable make rules and dependencies not useful
1091 (and sometimes confusing) to the casual installer
1092 --enable-shared[=PKGS]
1093 build shared libraries [default=yes]
1094 --enable-fast-install[=PKGS]
1095 optimize for fast installation [default=yes]
1096 --disable-libtool-lock avoid locking (might break parallel builds)
1097 --disable-dependency-linking
1098 disable linking library dependencies into shared
1099 libraries
1100 --disable-pkg-config disable use of pkg-config (if available)
1101 --disable-interpackage-dependencies
1102 disables deduction of Makefile dependencies from
1103 package linker flags
1104
1105 Optional Packages:
1106 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1107 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1108 --with-vol-verbosity specify the debug verbosity level for project Vol
1109 --with-vol-checklevel specify the sanity check level for project Vol
1110 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1111 --with-pic try to use only PIC/non-PIC objects [default=use
1112 both]
1113 --with-tags[=TAGS]
1114 include additional configurations [automatic]
1115 --with-coin-instdir prefix of installation directory for precompiled
1116 COIN packages
1117
1118 --with-coinutils-lib linker flags for using package CoinUtils
1119 --with-coinutils-incdir directory with header files for using package
1120 CoinUtils
1121 --with-coinutils-datadir
1122 directory with data files for using package
1123 CoinUtils
1124 --with-osi-lib linker flags for using package Osi
1125 --with-osi-incdir directory with header files for using package Osi
1126 --with-osi-datadir directory with data files for using package Osi
1127 --with-ositests-lib linker flags for using package OsiTests
1128 --with-ositests-incdir directory with header files for using package
1129 OsiTests
1130 --with-ositests-datadir directory with data files for using package OsiTests
1131 --with-sample-lib linker flags for using package Sample
1132 --with-sample-incdir directory with header files for using package Sample
1133 --with-sample-datadir directory with data files for using package Sample
1134 --with-dot use dot (from graphviz) when creating documentation
1135 with doxygen if available; --without-dot to disable
1136
1137 Some influential environment variables:
1138 CDEFS Additional -D flags to be used when compiling C code.
1139 ADD_CFLAGS Additional C compiler options
1140 DBG_CFLAGS Debug C compiler options
1141 OPT_CFLAGS Optimize C compiler options
1142 CC C compiler command
1143 CFLAGS C compiler flags
1144 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1145 nonstandard directory <lib dir>
1146 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1147 headers in a nonstandard directory <include dir>
1148 MPICC C MPI Compiler
1149 CXXDEFS Additional -D flags to be used when compiling C++ code.
1150 ADD_CXXFLAGS
1151 Additional C++ compiler options
1152 DBG_CXXFLAGS
1153 Debug C++ compiler options
1154 OPT_CXXFLAGS
1155 Optimize C++ compiler options
1156 CXX C++ compiler command
1157 CXXFLAGS C++ compiler flags
1158 MPICXX C++ MPI Compiler
1159 CPP C preprocessor
1160 CXXCPP C++ preprocessor
1161 F77 Fortran 77 compiler command
1162 FFLAGS Fortran 77 compiler flags
1163 PKG_CONFIG path to pkg-config utility
1164
1165 Use these variables to override the choices made by `configure' or to help
1166 it to find libraries and programs with nonstandard names/locations.
1167
1168 Report bugs to <[email protected]>.
1169 _ACEOF
1170 fi
1171
1172 if test "$ac_init_help" = "recursive"; then
1173 # If there are subdirs, report their specific --help.
1174 ac_popdir=`pwd`
1175 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1176 test -d $ac_dir || continue
1177 ac_builddir=.
1178
1179 if test "$ac_dir" != .; then
1180 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1181 # A "../" for each directory in $ac_dir_suffix.
1182 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1183 else
1184 ac_dir_suffix= ac_top_builddir=
1185 fi
1186
1187 case $srcdir in
1188 .) # No --srcdir option. We are building in place.
1189 ac_srcdir=.
1190 if test -z "$ac_top_builddir"; then
1191 ac_top_srcdir=.
1192 else
1193 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1194 fi ;;
1195 [\\/]* | ?:[\\/]* ) # Absolute path.
1196 ac_srcdir=$srcdir$ac_dir_suffix;
1197 ac_top_srcdir=$srcdir ;;
1198 *) # Relative path.
1199 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1200 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1201 esac
1202
1203 # Do not use `cd foo && pwd` to compute absolute paths, because
1204 # the directories may not exist.
1205 case `pwd` in
1206 .) ac_abs_builddir="$ac_dir";;
1207 *)
1208 case "$ac_dir" in
1209 .) ac_abs_builddir=`pwd`;;
1210 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1211 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1212 esac;;
1213 esac
1214 case $ac_abs_builddir in
1215 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1216 *)
1217 case ${ac_top_builddir}. in
1218 .) ac_abs_top_builddir=$ac_abs_builddir;;
1219 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1220 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1221 esac;;
1222 esac
1223 case $ac_abs_builddir in
1224 .) ac_abs_srcdir=$ac_srcdir;;
1225 *)
1226 case $ac_srcdir in
1227 .) ac_abs_srcdir=$ac_abs_builddir;;
1228 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1229 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1230 esac;;
1231 esac
1232 case $ac_abs_builddir in
1233 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1234 *)
1235 case $ac_top_srcdir in
1236 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1237 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1238 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1239 esac;;
1240 esac
1241
1242 cd $ac_dir
1243 # Check for guested configure; otherwise get Cygnus style configure.
1244 if test -f $ac_srcdir/configure.gnu; then
1245 echo
1246 $SHELL $ac_srcdir/configure.gnu --help=recursive
1247 elif test -f $ac_srcdir/configure; then
1248 echo
1249 $SHELL $ac_srcdir/configure --help=recursive
1250 elif test -f $ac_srcdir/configure.ac ||
1251 test -f $ac_srcdir/configure.in; then
1252 echo
1253 $ac_configure --help
1254 else
1255 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1256 fi
1257 cd $ac_popdir
1258 done
1259 fi
1260
1261 test -n "$ac_init_help" && exit 0
1262 if $ac_init_version; then
1263 cat <<\_ACEOF
1264 Vol configure 1.5.4
1265 generated by GNU Autoconf 2.59
1266
1267 Copyright (C) 2003 Free Software Foundation, Inc.
1268 This configure script is free software; the Free Software Foundation
1269 gives unlimited permission to copy, distribute and modify it.
1270
1271
1272 Copyright 2006 International Business Machines and others.
1273 All Rights Reserved.
1274 This file is part of the open source package Coin which is distributed
1275 under the Eclipse Public License.
1276 _ACEOF
1277 exit 0
1278 fi
1279 exec 5>config.log
1280 cat >&5 <<_ACEOF
1281 This file contains any messages produced by compilers while
1282 running configure, to aid debugging if configure makes a mistake.
1283
1284 It was created by Vol $as_me 1.5.4, which was
1285 generated by GNU Autoconf 2.59. Invocation command line was
1286
1287 $ $0 $@
1288
1289 _ACEOF
1290 {
1291 cat <<_ASUNAME
1292 ## --------- ##
1293 ## Platform. ##
1294 ## --------- ##
1295
1296 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1297 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1298 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1299 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1300 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1301
1302 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1303 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1304
1305 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1306 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1307 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1308 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1309 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1310 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1311 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1312
1313 _ASUNAME
1314
1315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1316 for as_dir in $PATH
1317 do
1318 IFS=$as_save_IFS
1319 test -z "$as_dir" && as_dir=.
1320 echo "PATH: $as_dir"
1321 done
1322
1323 } >&5
1324
1325 cat >&5 <<_ACEOF
1326
1327
1328 ## ----------- ##
1329 ## Core tests. ##
1330 ## ----------- ##
1331
1332 _ACEOF
1333
1334
1335 # Keep a trace of the command line.
1336 # Strip out --no-create and --no-recursion so they do not pile up.
1337 # Strip out --silent because we don't want to record it for future runs.
1338 # Also quote any args containing shell meta-characters.
1339 # Make two passes to allow for proper duplicate-argument suppression.
1340 ac_configure_args=
1341 ac_configure_args0=
1342 ac_configure_args1=
1343 ac_sep=
1344 ac_must_keep_next=false
1345 for ac_pass in 1 2
1346 do
1347 for ac_arg
1348 do
1349 case $ac_arg in
1350 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1352 | -silent | --silent | --silen | --sile | --sil)
1353 continue ;;
1354 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1356 esac
1357 case $ac_pass in
1358 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1359 2)
1360 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1361 if test $ac_must_keep_next = true; then
1362 ac_must_keep_next=false # Got value, back to normal.
1363 else
1364 case $ac_arg in
1365 *=* | --config-cache | -C | -disable-* | --disable-* \
1366 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1367 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1368 | -with-* | --with-* | -without-* | --without-* | --x)
1369 case "$ac_configure_args0 " in
1370 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1371 esac
1372 ;;
1373 -* ) ac_must_keep_next=true ;;
1374 esac
1375 fi
1376 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1377 # Get rid of the leading space.
1378 ac_sep=" "
1379 ;;
1380 esac
1381 done
1382 done
1383 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1384 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1385
1386 # When interrupted or exit'd, cleanup temporary files, and complete
1387 # config.log. We remove comments because anyway the quotes in there
1388 # would cause problems or look ugly.
1389 # WARNING: Be sure not to use single quotes in there, as some shells,
1390 # such as our DU 5.0 friend, will then `close' the trap.
1391 trap 'exit_status=$?
1392 # Save into config.log some information that might help in debugging.
1393 {
1394 echo
1395
1396 cat <<\_ASBOX
1397 ## ---------------- ##
1398 ## Cache variables. ##
1399 ## ---------------- ##
1400 _ASBOX
1401 echo
1402 # The following way of writing the cache mishandles newlines in values,
1403 {
1404 (set) 2>&1 |
1405 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1406 *ac_space=\ *)
1407 sed -n \
1408 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1410 ;;
1411 *)
1412 sed -n \
1413 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1414 ;;
1415 esac;
1416 }
1417 echo
1418
1419 cat <<\_ASBOX
1420 ## ----------------- ##
1421 ## Output variables. ##
1422 ## ----------------- ##
1423 _ASBOX
1424 echo
1425 for ac_var in $ac_subst_vars
1426 do
1427 eval ac_val=$`echo $ac_var`
1428 echo "$ac_var='"'"'$ac_val'"'"'"
1429 done | sort
1430 echo
1431
1432 if test -n "$ac_subst_files"; then
1433 cat <<\_ASBOX
1434 ## ------------- ##
1435 ## Output files. ##
1436 ## ------------- ##
1437 _ASBOX
1438 echo
1439 for ac_var in $ac_subst_files
1440 do
1441 eval ac_val=$`echo $ac_var`
1442 echo "$ac_var='"'"'$ac_val'"'"'"
1443 done | sort
1444 echo
1445 fi
1446
1447 if test -s confdefs.h; then
1448 cat <<\_ASBOX
1449 ## ----------- ##
1450 ## confdefs.h. ##
1451 ## ----------- ##
1452 _ASBOX
1453 echo
1454 sed "/^$/d" confdefs.h | sort
1455 echo
1456 fi
1457 test "$ac_signal" != 0 &&
1458 echo "$as_me: caught signal $ac_signal"
1459 echo "$as_me: exit $exit_status"
1460 } >&5
1461 rm -f core *.core &&
1462 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1463 exit $exit_status
1464 ' 0
1465 for ac_signal in 1 2 13 15; do
1466 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1467 done
1468 ac_signal=0
1469
1470 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1471 rm -rf conftest* confdefs.h
1472 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1473 echo >confdefs.h
1474
1475 # Predefined preprocessor variables.
1476
1477 cat >>confdefs.h <<_ACEOF
1478 #define PACKAGE_NAME "$PACKAGE_NAME"
1479 _ACEOF
1480
1481
1482 cat >>confdefs.h <<_ACEOF
1483 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1484 _ACEOF
1485
1486
1487 cat >>confdefs.h <<_ACEOF
1488 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1489 _ACEOF
1490
1491
1492 cat >>confdefs.h <<_ACEOF
1493 #define PACKAGE_STRING "$PACKAGE_STRING"
1494 _ACEOF
1495
1496
1497 cat >>confdefs.h <<_ACEOF
1498 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1499 _ACEOF
1500
1501
1502 # Let the site file select an alternate cache file if it wants to.
1503 # Prefer explicitly selected file to automatically selected ones.
1504 if test -z "$CONFIG_SITE"; then
1505 if test "x$prefix" != xNONE; then
1506 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1507 else
1508 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1509 fi
1510 fi
1511 for ac_site_file in $CONFIG_SITE; do
1512 if test -r "$ac_site_file"; then
1513 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1514 echo "$as_me: loading site script $ac_site_file" >&6;}
1515 sed 's/^/| /' "$ac_site_file" >&5
1516 . "$ac_site_file"
1517 fi
1518 done
1519
1520 if test -r "$cache_file"; then
1521 # Some versions of bash will fail to source /dev/null (special
1522 # files actually), so we avoid doing that.
1523 if test -f "$cache_file"; then
1524 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1525 echo "$as_me: loading cache $cache_file" >&6;}
1526 case $cache_file in
1527 [\\/]* | ?:[\\/]* ) . $cache_file;;
1528 *) . ./$cache_file;;
1529 esac
1530 fi
1531 else
1532 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1533 echo "$as_me: creating cache $cache_file" >&6;}
1534 >$cache_file
1535 fi
1536
1537 # Check that the precious variables saved in the cache have kept the same
1538 # value.
1539 ac_cache_corrupted=false
1540 for ac_var in `(set) 2>&1 |
1541 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1542 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1543 eval ac_new_set=\$ac_env_${ac_var}_set
1544 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1545 eval ac_new_val="\$ac_env_${ac_var}_value"
1546 case $ac_old_set,$ac_new_set in
1547 set,)
1548 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1549 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1550 ac_cache_corrupted=: ;;
1551 ,set)
1552 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1553 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1554 ac_cache_corrupted=: ;;
1555 ,);;
1556 *)
1557 if test "x$ac_old_val" != "x$ac_new_val"; then
1558 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1559 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1560 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1561 echo "$as_me: former value: $ac_old_val" >&2;}
1562 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1563 echo "$as_me: current value: $ac_new_val" >&2;}
1564 ac_cache_corrupted=:
1565 fi;;
1566 esac
1567 # Pass precious variables to config.status.
1568 if test "$ac_new_set" = set; then
1569 case $ac_new_val in
1570 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1571 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1572 *) ac_arg=$ac_var=$ac_new_val ;;
1573 esac
1574 case " $ac_configure_args " in
1575 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1576 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1577 esac
1578 fi
1579 done
1580 if $ac_cache_corrupted; then
1581 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1582 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1583 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1584 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1585 { (exit 1); exit 1; }; }
1586 fi
1587
1588 ac_ext=c
1589 ac_cpp='$CPP $CPPFLAGS'
1590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623 # List one file in the package so that the configure script can test
1624 # whether the package is actually there
1625
1626
1627 # Where should everything be installed by default? Here, we want it
1628 # to be installed directly in 'bin', 'lib', 'include' subdirectories
1629 # of the directory where configure is run. The default would be
1630 # /usr/local.
1631
1632
1633 #############################################################################
1634 # Standard build tool stuff #
1635 #############################################################################
1636
1637 # Get the system type
1638 ac_aux_dir=
1639 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1640 if test -f $ac_dir/install-sh; then
1641 ac_aux_dir=$ac_dir
1642 ac_install_sh="$ac_aux_dir/install-sh -c"
1643 break
1644 elif test -f $ac_dir/install.sh; then
1645 ac_aux_dir=$ac_dir
1646 ac_install_sh="$ac_aux_dir/install.sh -c"
1647 break
1648 elif test -f $ac_dir/shtool; then
1649 ac_aux_dir=$ac_dir
1650 ac_install_sh="$ac_aux_dir/shtool install -c"
1651 break
1652 fi
1653 done
1654 if test -z "$ac_aux_dir"; then
1655 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1656 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1657 { (exit 1); exit 1; }; }
1658 fi
1659 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1660 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1661 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1662
1663 # Make sure we can run config.sub.
1664 $ac_config_sub sun4 >/dev/null 2>&1 ||
1665 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1666 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1667 { (exit 1); exit 1; }; }
1668
1669 echo "$as_me:$LINENO: checking build system type" >&5
1670 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1671 if test "${ac_cv_build+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674 ac_cv_build_alias=$build_alias
1675 test -z "$ac_cv_build_alias" &&
1676 ac_cv_build_alias=`$ac_config_guess`
1677 test -z "$ac_cv_build_alias" &&
1678 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1679 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1680 { (exit 1); exit 1; }; }
1681 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1682 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1683 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1684 { (exit 1); exit 1; }; }
1685
1686 fi
1687 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1688 echo "${ECHO_T}$ac_cv_build" >&6
1689 build=$ac_cv_build
1690 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693
1694
1695
1696 # If this project depends on external projects, the Externals file in
1697 # the source root directory contains definition of where to find those
1698 # externals. The following macro ensures that those externals are
1699 # retrieved by svn if they are not there yet.
1700
1701 # As backup, we make sure we don't loose an FLIBS if it has been set
1702 # by the user
1703 save_FLIBS="$FLIBS"
1704
1705 # A useful makefile conditional that is always false
1706
1707
1708 if false; then
1709 ALWAYS_FALSE_TRUE=
1710 ALWAYS_FALSE_FALSE='#'
1711 else
1712 ALWAYS_FALSE_TRUE='#'
1713 ALWAYS_FALSE_FALSE=
1714 fi
1715
1716
1717 # We set the following variable so that we know later in AC_COIN_FINALIZE
1718 # that we are in a project main directory
1719 coin_projectdir=yes
1720
1721 # Set the project's version numbers
1722
1723
1724 cat >>confdefs.h <<_ACEOF
1725 #define VOL_VERSION "$PACKAGE_VERSION"
1726 _ACEOF
1727
1728
1729 coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1730 coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1731 coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1732 if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1733 if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1734 if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1735
1736 cat >>confdefs.h <<_ACEOF
1737 #define VOL_VERSION_MAJOR $coin_majorver
1738 _ACEOF
1739
1740
1741 cat >>confdefs.h <<_ACEOF
1742 #define VOL_VERSION_MINOR $coin_minorver
1743 _ACEOF
1744
1745
1746 cat >>confdefs.h <<_ACEOF
1747 #define VOL_VERSION_RELEASE $coin_releasever
1748 _ACEOF
1749
1750
1751 # We use the following variable to have a string with the upper case
1752 # version of the project name
1753 COIN_PRJCT=VOL
1754
1755 # Set the project's SVN revision number. The complicated sed expression
1756 # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1757 # as a single number.
1758 # Extract the first word of "svnversion", so it can be a program name with args.
1759 set dummy svnversion; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_have_svnversion+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765 if test -n "$have_svnversion"; then
1766 ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1767 else
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1770 do
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_have_svnversion="yes"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 break 2
1778 fi
1779 done
1780 done
1781
1782 test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1783 fi
1784 fi
1785 have_svnversion=$ac_cv_prog_have_svnversion
1786 if test -n "$have_svnversion"; then
1787 echo "$as_me:$LINENO: result: $have_svnversion" >&5
1788 echo "${ECHO_T}$have_svnversion" >&6
1789 else
1790 echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1792 fi
1793
1794 if test "x$have_svnversion" = xyes; then
1795
1796 svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1797 if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1798 VOL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define VOL_SVN_REV $VOL_SVN_REV
1802 _ACEOF
1803
1804 fi
1805 fi
1806
1807
1808
1809 # Capture libtool library version, if given.
1810 coin_libversion=6:4:5
1811
1812
1813
1814
1815 # Check if user wants to produce debugging code
1816
1817 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1818 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1819
1820 # Check whether --enable-debug or --disable-debug was given.
1821 if test "${enable_debug+set}" = set; then
1822 enableval="$enable_debug"
1823 case "${enableval}" in
1824 yes) coin_debug_compile=true
1825 if test "${enable_shared+set}" = set; then :; else
1826 enable_shared=no
1827 fi
1828 ;;
1829 no) coin_debug_compile=false
1830 ;;
1831 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1832 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1833 { (exit 1); exit 1; }; }
1834 ;;
1835 esac
1836 else
1837 coin_debug_compile=false
1838 fi;
1839
1840 # Check whether --enable-debug-vol or --disable-debug-vol was given.
1841 if test "${enable_debug_vol+set}" = set; then
1842 enableval="$enable_debug_vol"
1843 case "${enableval}" in
1844 yes) coin_debug_compile=true
1845 ;;
1846 no) coin_debug_compile=false
1847 ;;
1848 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-vol" >&5
1849 echo "$as_me: error: bad value ${enableval} for --enable-debug-vol" >&2;}
1850 { (exit 1); exit 1; }; }
1851 ;;
1852 esac
1853 else
1854 :
1855 fi;
1856
1857 # m4_ifvaln([Vol],
1858
1859 if test $coin_debug_compile = true; then
1860 echo "$as_me:$LINENO: result: yes" >&5
1861 echo "${ECHO_T}yes" >&6
1862 else
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865 fi
1866
1867
1868 # Check whether --with-vol-verbosity or --without-vol-verbosity was given.
1869 if test "${with_vol_verbosity+set}" = set; then
1870 withval="$with_vol_verbosity"
1871 if test "$withval" = yes; then
1872 withval=1
1873 fi
1874 coin_vol_verbosity=$withval
1875 else
1876 coin_vol_verbosity=0
1877 fi;
1878
1879 cat >>confdefs.h <<_ACEOF
1880 #define COIN_VOL_VERBOSITY $coin_vol_verbosity
1881 _ACEOF
1882
1883
1884
1885 # Check whether --with-vol-checklevel or --without-vol-checklevel was given.
1886 if test "${with_vol_checklevel+set}" = set; then
1887 withval="$with_vol_checklevel"
1888 if test "$withval" = yes; then
1889 withval=1
1890 fi
1891 coin_vol_checklevel=$withval
1892 else
1893 coin_vol_checklevel=0
1894 fi;
1895
1896 cat >>confdefs.h <<_ACEOF
1897 #define COIN_VOL_CHECKLEVEL $coin_vol_checklevel
1898 _ACEOF
1899
1900
1901 # m4_ifvaln([Vol],
1902
1903
1904
1905 # Get the name of the C++ compiler and appropriate compiler options
1906
1907
1908 # for backward compatibility
1909 # Check whether --enable-doscompile or --disable-doscompile was given.
1910 if test "${enable_doscompile+set}" = set; then
1911 enableval="$enable_doscompile"
1912 enable_doscompile=$enableval
1913 else
1914 enable_doscompile=no
1915 fi;
1916
1917 # Check whether --enable-msvc or --disable-msvc was given.
1918 if test "${enable_msvc+set}" = set; then
1919 enableval="$enable_msvc"
1920 enable_msvc=$enableval
1921 else
1922 enable_msvc=no
1923 if test "$enable_doscompile" = msvc ; then
1924 enable_msvc=yes
1925 elif test "$enable_doscompile" != no ; then
1926 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1927 echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1928 { (exit 1); exit 1; }; }
1929 fi
1930
1931 fi;
1932
1933 if test "$enable_msvc" = MD; then
1934 enable_shared=yes
1935 enable_msvc=yes
1936 fi
1937
1938 if test "$enable_msvc" = yes; then
1939 case $build in
1940 *-cygwin* | *-mingw*) ;;
1941 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1942 echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1943 { (exit 1); exit 1; }; } ;;
1944 esac
1945 fi
1946
1947
1948
1949 ac_ext=c
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954
1955
1956 # For consistency, we set the C compiler to the same value of the C++
1957 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1958 if test x"$CXX" != x; then
1959 case "$CXX" in
1960 clang* ) ;;
1961 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1962 if test x"$CC" = x; then
1963 CC="$CXX"
1964 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1965 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1966 fi
1967 ;;
1968 esac
1969 fi
1970
1971
1972
1973
1974
1975
1976 coin_has_cc=yes
1977
1978 save_cflags="$CFLAGS"
1979
1980 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1981 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
1982 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
1983 # compiler. In this case, put cc after gcc.
1984
1985 case $build in
1986 *-cygwin* | *-mingw*)
1987 if test "$enable_msvc" = yes ; then
1988 comps="icl cl gcc"
1989 else
1990 comps="gcc icl cl"
1991 fi ;;
1992 *-*-solaris*)
1993 # Extract the first word of "cc", so it can be a program name with args.
1994 set dummy cc; ac_word=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000 if test -n "$sol_cc_compiler"; then
2001 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2002 else
2003 ac_prog_rejected=no
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2012 ac_prog_rejected=yes
2013 continue
2014 fi
2015 ac_cv_prog_sol_cc_compiler="cc"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 break 2
2018 fi
2019 done
2020 done
2021
2022 if test $ac_prog_rejected = yes; then
2023 # We found a bogon in the path, so make sure we never use it.
2024 set dummy $ac_cv_prog_sol_cc_compiler
2025 shift
2026 if test $# != 0; then
2027 # We chose a different compiler from the bogus one.
2028 # However, it has the same basename, so the bogon will be chosen
2029 # first if we set sol_cc_compiler to just the basename; use the full file name.
2030 shift
2031 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2032 fi
2033 fi
2034 fi
2035 fi
2036 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2037 if test -n "$sol_cc_compiler"; then
2038 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2039 echo "${ECHO_T}$sol_cc_compiler" >&6
2040 else
2041 echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2043 fi
2044
2045 if test "$sol_cc_compiler" = "cc" ; then
2046 comps="cc xlc gcc pgcc icc"
2047 else
2048 comps="xlc gcc pgcc icc cc"
2049 fi
2050 ;;
2051 *-*-darwin*) comps="clang gcc cc" ;;
2052 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2053 *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2054 *) comps="xlc_r xlc cc gcc pgcc icc" ;;
2055 esac
2056
2057 # We delete the cached value, since the test might not have been
2058 # performed with our choice of compilers earlier
2059 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2060 # AC_MSG_NOTICE([C compiler candidates: $comps])
2061 ac_ext=c
2062 ac_cpp='$CPP $CPPFLAGS'
2063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2066 if test -n "$ac_tool_prefix"; then
2067 for ac_prog in $comps
2068 do
2069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2071 echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2073 if test "${ac_cv_prog_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076 if test -n "$CC"; then
2077 ac_cv_prog_CC="$CC" # Let the user override the test.
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2081 do
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 break 2
2089 fi
2090 done
2091 done
2092
2093 fi
2094 fi
2095 CC=$ac_cv_prog_CC
2096 if test -n "$CC"; then
2097 echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6
2099 else
2100 echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6
2102 fi
2103
2104 test -n "$CC" && break
2105 done
2106 fi
2107 if test -z "$CC"; then
2108 ac_ct_CC=$CC
2109 for ac_prog in $comps
2110 do
2111 # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128 ac_cv_prog_ac_ct_CC="$ac_prog"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130 break 2
2131 fi
2132 done
2133 done
2134
2135 fi
2136 fi
2137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138 if test -n "$ac_ct_CC"; then
2139 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140 echo "${ECHO_T}$ac_ct_CC" >&6
2141 else
2142 echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6
2144 fi
2145
2146 test -n "$ac_ct_CC" && break
2147 done
2148
2149 CC=$ac_ct_CC
2150 fi
2151
2152
2153 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2154 See \`config.log' for more details." >&5
2155 echo "$as_me: error: no acceptable C compiler found in \$PATH
2156 See \`config.log' for more details." >&2;}
2157 { (exit 1); exit 1; }; }
2158
2159 # Provide some information about the compiler.
2160 echo "$as_me:$LINENO:" \
2161 "checking for C compiler version" >&5
2162 ac_compiler=`set X $ac_compile; echo $2`
2163 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2164 (eval $ac_compiler --version </dev/null >&5) 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }
2168 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2169 (eval $ac_compiler -v </dev/null >&5) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }
2173 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2174 (eval $ac_compiler -V </dev/null >&5) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }
2178
2179 cat >conftest.$ac_ext <<_ACEOF
2180 /* confdefs.h. */
2181 _ACEOF
2182 cat confdefs.h >>conftest.$ac_ext
2183 cat >>conftest.$ac_ext <<_ACEOF
2184 /* end confdefs.h. */
2185
2186 int
2187 main ()
2188 {
2189
2190 ;
2191 return 0;
2192 }
2193 _ACEOF
2194 ac_clean_files_save=$ac_clean_files
2195 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2196 # Try to create an executable without -o first, disregard a.out.
2197 # It will help us diagnose broken compilers, and finding out an intuition
2198 # of exeext.
2199 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2200 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2201 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2202 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2203 (eval $ac_link_default) 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; then
2207 # Find the output, starting from the most likely. This scheme is
2208 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2209 # resort.
2210
2211 # Be careful to initialize this variable, since it used to be cached.
2212 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2213 ac_cv_exeext=
2214 # b.out is created by i960 compilers.
2215 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2216 do
2217 test -f "$ac_file" || continue
2218 case $ac_file in
2219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2220 ;;
2221 conftest.$ac_ext )
2222 # This is the source file.
2223 ;;
2224 [ab].out )
2225 # We found the default executable, but exeext='' is most
2226 # certainly right.
2227 break;;
2228 *.* )
2229 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2230 # FIXME: I believe we export ac_cv_exeext for Libtool,
2231 # but it would be cool to find out if it's true. Does anybody
2232 # maintain Libtool? --akim.
2233 export ac_cv_exeext
2234 break;;
2235 * )
2236 break;;
2237 esac
2238 done
2239 else
2240 echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2242
2243 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: C compiler cannot create executables
2246 See \`config.log' for more details." >&2;}
2247 { (exit 77); exit 77; }; }
2248 fi
2249
2250 ac_exeext=$ac_cv_exeext
2251 echo "$as_me:$LINENO: result: $ac_file" >&5
2252 echo "${ECHO_T}$ac_file" >&6
2253
2254 # Check the compiler produces executables we can run. If not, either
2255 # the compiler is broken, or we cross compile.
2256 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2257 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2258 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2259 # If not cross compiling, check that we can run a simple program.
2260 if test "$cross_compiling" != yes; then
2261 if { ac_try='./$ac_file'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; }; then
2267 cross_compiling=no
2268 else
2269 if test "$cross_compiling" = maybe; then
2270 cross_compiling=yes
2271 else
2272 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2273 If you meant to cross compile, use \`--host'.
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot run C compiled programs.
2276 If you meant to cross compile, use \`--host'.
2277 See \`config.log' for more details." >&2;}
2278 { (exit 1); exit 1; }; }
2279 fi
2280 fi
2281 fi
2282 echo "$as_me:$LINENO: result: yes" >&5
2283 echo "${ECHO_T}yes" >&6
2284
2285 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2286 ac_clean_files=$ac_clean_files_save
2287 # Check the compiler produces executables we can run. If not, either
2288 # the compiler is broken, or we cross compile.
2289 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2290 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2291 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2292 echo "${ECHO_T}$cross_compiling" >&6
2293
2294 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2295 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2297 (eval $ac_link) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; then
2301 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2302 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2303 # work properly (i.e., refer to `conftest.exe'), while it won't with
2304 # `rm'.
2305 for ac_file in conftest.exe conftest conftest.*; do
2306 test -f "$ac_file" || continue
2307 case $ac_file in
2308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2309 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2310 export ac_cv_exeext
2311 break;;
2312 * ) break;;
2313 esac
2314 done
2315 else
2316 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2319 See \`config.log' for more details." >&2;}
2320 { (exit 1); exit 1; }; }
2321 fi
2322
2323 rm -f conftest$ac_cv_exeext
2324 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2325 echo "${ECHO_T}$ac_cv_exeext" >&6
2326
2327 rm -f conftest.$ac_ext
2328 EXEEXT=$ac_cv_exeext
2329 ac_exeext=$EXEEXT
2330 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2331 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2332 if test "${ac_cv_objext+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335 cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h. */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2341
2342 int
2343 main ()
2344 {
2345
2346 ;
2347 return 0;
2348 }
2349 _ACEOF
2350 rm -f conftest.o conftest.obj
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; then
2356 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2357 case $ac_file in
2358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2359 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2360 break;;
2361 esac
2362 done
2363 else
2364 echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2366
2367 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2368 See \`config.log' for more details." >&5
2369 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&2;}
2371 { (exit 1); exit 1; }; }
2372 fi
2373
2374 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2375 fi
2376 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2377 echo "${ECHO_T}$ac_cv_objext" >&6
2378 OBJEXT=$ac_cv_objext
2379 ac_objext=$OBJEXT
2380 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2381 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2382 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385 cat >conftest.$ac_ext <<_ACEOF
2386 /* confdefs.h. */
2387 _ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2391
2392 int
2393 main ()
2394 {
2395 #ifndef __GNUC__
2396 choke me
2397 #endif
2398
2399 ;
2400 return 0;
2401 }
2402 _ACEOF
2403 rm -f conftest.$ac_objext
2404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405 (eval $ac_compile) 2>conftest.er1
2406 ac_status=$?
2407 grep -v '^ *+' conftest.er1 >conftest.err
2408 rm -f conftest.er1
2409 cat conftest.err >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try='test -z "$ac_c_werror_flag"
2413 || test ! -s conftest.err'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; } &&
2419 { ac_try='test -s conftest.$ac_objext'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2425 ac_compiler_gnu=yes
2426 else
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2429
2430 ac_compiler_gnu=no
2431 fi
2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2433 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2434
2435 fi
2436 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2437 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2438 GCC=`test $ac_compiler_gnu = yes && echo yes`
2439 ac_test_CFLAGS=${CFLAGS+set}
2440 ac_save_CFLAGS=$CFLAGS
2441 CFLAGS="-g"
2442 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2443 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2444 if test "${ac_cv_prog_cc_g+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447 cat >conftest.$ac_ext <<_ACEOF
2448 /* confdefs.h. */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2453
2454 int
2455 main ()
2456 {
2457
2458 ;
2459 return 0;
2460 }
2461 _ACEOF
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464 (eval $ac_compile) 2>conftest.er1
2465 ac_status=$?
2466 grep -v '^ *+' conftest.er1 >conftest.err
2467 rm -f conftest.er1
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag"
2472 || test ! -s conftest.err'
2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 (eval $ac_try) 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; } &&
2478 { ac_try='test -s conftest.$ac_objext'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 (eval $ac_try) 2>&5
2481 ac_status=$?
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; }; then
2484 ac_cv_prog_cc_g=yes
2485 else
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2488
2489 ac_cv_prog_cc_g=no
2490 fi
2491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2492 fi
2493 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2494 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2495 if test "$ac_test_CFLAGS" = set; then
2496 CFLAGS=$ac_save_CFLAGS
2497 elif test $ac_cv_prog_cc_g = yes; then
2498 if test "$GCC" = yes; then
2499 CFLAGS="-g -O2"
2500 else
2501 CFLAGS="-g"
2502 fi
2503 else
2504 if test "$GCC" = yes; then
2505 CFLAGS="-O2"
2506 else
2507 CFLAGS=
2508 fi
2509 fi
2510 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2511 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2512 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515 ac_cv_prog_cc_stdc=no
2516 ac_save_CC=$CC
2517 cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h. */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2523 #include <stdarg.h>
2524 #include <stdio.h>
2525 #include <sys/types.h>
2526 #include <sys/stat.h>
2527 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2528 struct buf { int x; };
2529 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2530 static char *e (p, i)
2531 char **p;
2532 int i;
2533 {
2534 return p[i];
2535 }
2536 static char *f (char * (*g) (char **, int), char **p, ...)
2537 {
2538 char *s;
2539 va_list v;
2540 va_start (v,p);
2541 s = g (p, va_arg (v,int));
2542 va_end (v);
2543 return s;
2544 }
2545
2546 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2547 function prototypes and stuff, but not '\xHH' hex character constants.
2548 These don't provoke an error unfortunately, instead are silently treated
2549 as 'x'. The following induces an error, until -std1 is added to get
2550 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2551 array size at least. It's necessary to write '\x00'==0 to get something
2552 that's true only with -std1. */
2553 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2554
2555 int test (int i, double x);
2556 struct s1 {int (*f) (int a);};
2557 struct s2 {int (*f) (double a);};
2558 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2559 int argc;
2560 char **argv;
2561 int
2562 main ()
2563 {
2564 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2565 ;
2566 return 0;
2567 }
2568 _ACEOF
2569 # Don't try gcc -ansi; that turns off useful extensions and
2570 # breaks some systems' header files.
2571 # AIX -qlanglvl=ansi
2572 # Ultrix and OSF/1 -std1
2573 # HP-UX 10.20 and later -Ae
2574 # HP-UX older versions -Aa -D_HPUX_SOURCE
2575 # SVR4 -Xc -D__EXTENSIONS__
2576 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2577 do
2578 CC="$ac_save_CC $ac_arg"
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 ac_cv_prog_cc_stdc=$ac_arg
2602 break
2603 else
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607 fi
2608 rm -f conftest.err conftest.$ac_objext
2609 done
2610 rm -f conftest.$ac_ext conftest.$ac_objext
2611 CC=$ac_save_CC
2612
2613 fi
2614
2615 case "x$ac_cv_prog_cc_stdc" in
2616 x|xno)
2617 echo "$as_me:$LINENO: result: none needed" >&5
2618 echo "${ECHO_T}none needed" >&6 ;;
2619 *)
2620 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2621 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2622 CC="$CC $ac_cv_prog_cc_stdc" ;;
2623 esac
2624
2625 # Some people use a C++ compiler to compile C. Since we use `exit',
2626 # in C++ we need to declare it. In case someone uses the same compiler
2627 # for both compiling C and C++ we need to have the C++ compiler decide
2628 # the declaration of exit, since it's the most demanding environment.
2629 cat >conftest.$ac_ext <<_ACEOF
2630 #ifndef __cplusplus
2631 choke me
2632 #endif
2633 _ACEOF
2634 rm -f conftest.$ac_objext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636 (eval $ac_compile) 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 for ac_declaration in \
2657 '' \
2658 'extern "C" void std::exit (int) throw (); using std::exit;' \
2659 'extern "C" void std::exit (int); using std::exit;' \
2660 'extern "C" void exit (int) throw ();' \
2661 'extern "C" void exit (int);' \
2662 'void exit (int);'
2663 do
2664 cat >conftest.$ac_ext <<_ACEOF
2665 /* confdefs.h. */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2670 $ac_declaration
2671 #include <stdlib.h>
2672 int
2673 main ()
2674 {
2675 exit (42);
2676 ;
2677 return 0;
2678 }
2679 _ACEOF
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>conftest.er1
2683 ac_status=$?
2684 grep -v '^ *+' conftest.er1 >conftest.err
2685 rm -f conftest.er1
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
2689 { ac_try='test -z "$ac_c_werror_flag"
2690 || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 :
2703 else
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2706
2707 continue
2708 fi
2709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2716 $ac_declaration
2717 int
2718 main ()
2719 {
2720 exit (42);
2721 ;
2722 return 0;
2723 }
2724 _ACEOF
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>conftest.er1
2728 ac_status=$?
2729 grep -v '^ *+' conftest.er1 >conftest.err
2730 rm -f conftest.er1
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_c_werror_flag"
2735 || test ! -s conftest.err'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 break
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 fi
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754 done
2755 rm -f conftest*
2756 if test -n "$ac_declaration"; then
2757 echo '#ifdef __cplusplus' >>confdefs.h
2758 echo $ac_declaration >>confdefs.h
2759 echo '#endif' >>confdefs.h
2760 fi
2761
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766 fi
2767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768 ac_ext=c
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
2774 if test -z "$CC" ; then
2775 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2776 echo "$as_me: error: Failed to find a C compiler!" >&2;}
2777 { (exit 1); exit 1; }; }
2778 fi
2779 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2780 case "$CC" in
2781 clang* ) ;;
2782 cl* | */cl* | CL* | */CL* )
2783 if test "$ac_cv_prog_cc_g" = yes ; then
2784 ac_cv_prog_cc_g=no
2785 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2786 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2787 fi ;;
2788 * )
2789 if test x"$CYGPATH_W" = x ; then
2790 CYGPATH_W=echo
2791 fi
2792 ;;
2793 esac
2794 CFLAGS="$save_cflags"
2795
2796 # add automake conditional so we can recognize cl compiler in makefile
2797 coin_cc_is_cl=false
2798 case "$CC" in
2799 clang* ) ;;
2800 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2801 coin_cc_is_cl=true
2802 ;;
2803 esac
2804
2805
2806 if test $coin_cc_is_cl = true; then
2807 COIN_CC_IS_CL_TRUE=
2808 COIN_CC_IS_CL_FALSE='#'
2809 else
2810 COIN_CC_IS_CL_TRUE='#'
2811 COIN_CC_IS_CL_FALSE=
2812 fi
2813
2814
2815 # Check if a project specific CFLAGS variable has been set
2816 if test x$COIN_PRJCT != x; then
2817 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2818 if test x$coin_tmp = xset; then
2819 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2820 fi
2821 fi
2822
2823 if test x"$CFLAGS" = x; then
2824
2825 coin_add_cflags=
2826 coin_opt_cflags=
2827 coin_dbg_cflags=
2828 coin_warn_cflags=
2829
2830 if test "$GCC" = "yes"; then
2831 case "$CC" in
2832 icc* | */icc*)
2833 ;;
2834 *)
2835 coin_opt_cflags="-O3"
2836 coin_add_cflags="-pipe"
2837 coin_dbg_cflags="-g -O0"
2838 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2839 esac
2840 fi
2841 if test -z "$coin_opt_cflags"; then
2842 case $build in
2843 *-cygwin* | *-mingw*)
2844 case "$CC" in
2845 clang* ) ;;
2846 cl* | */cl* | CL* | */CL*)
2847 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2848 coin_opt_cflags='-MD -O2'
2849 coin_dbg_cflags='-MDd'
2850 else
2851 coin_opt_cflags='-MT -O2'
2852 coin_dbg_cflags='-MTd'
2853 fi
2854 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2855 ;;
2856 icl* | */icl* | ICL* | */ICL*)
2857 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2858 coin_opt_cflags='-MD -Ox'
2859 coin_dbg_cflags='-MDd -debug'
2860 else
2861 coin_opt_cflags='-MT -Ox'
2862 coin_dbg_cflags='-MTd -debug'
2863 fi
2864 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2865 ;;
2866 esac
2867 ;;
2868 *-linux-*)
2869 case "$CC" in
2870 icc* | */icc*)
2871 coin_opt_cflags="-O3 -ip -mp1"
2872 coin_add_cflags=""
2873 coin_dbg_cflags="-g"
2874 # Check if -i_dynamic is necessary (for new glibc library)
2875 CFLAGS=
2876 cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h. */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2882
2883 int
2884 main ()
2885 {
2886 int i=0; i++;
2887 ;
2888 return 0;
2889 }
2890 _ACEOF
2891 rm -f conftest.$ac_objext conftest$ac_exeext
2892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2893 (eval $ac_link) 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -z "$ac_c_werror_flag"
2901 || test ! -s conftest.err'
2902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 (eval $ac_try) 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; } &&
2907 { ac_try='test -s conftest$ac_exeext'
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 (eval $ac_try) 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; }; then
2913 :
2914 else
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918 coin_add_cflags="-i_dynamic $coin_add_cflags"
2919 fi
2920 rm -f conftest.err conftest.$ac_objext \
2921 conftest$ac_exeext conftest.$ac_ext
2922 ;;
2923 pgcc* | */pgcc*)
2924 coin_opt_cflags="-fast"
2925 coin_add_cflags="-Kieee -pc 64"
2926 coin_dbg_cflags="-g"
2927 ;;
2928 esac
2929 ;;
2930 *-ibm-*)
2931 case "$CC" in
2932 xlc* | */xlc* | mpxlc* | */mpxlc*)
2933 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2934 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2935 coin_dbg_cflags="-g"
2936 ;;
2937 esac
2938 ;;
2939 *-hp-*)
2940 coin_opt_cflags="-O"
2941 coin_add_cflags="-Ae"
2942 coin_dbg_cflags="-g"
2943 ;;
2944 *-*-solaris*)
2945 coin_opt_cflags="-xO4"
2946 coin_dbg_cflags="-g"
2947 ;;
2948 *-sgi-*)
2949 coin_opt_cflags="-O -OPT:Olimit=0"
2950 coin_dbg_cflags="-g"
2951 ;;
2952 esac
2953 fi
2954
2955 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2956 coin_dbg_cflags="-g"
2957 fi
2958
2959 if test -z "$coin_opt_cflags"; then
2960 # Try if -O option works if nothing else is set
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 coin_opt_cflags="-O"
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 fi
3005 rm -f conftest.err conftest.$ac_objext \
3006 conftest$ac_exeext conftest.$ac_ext
3007 fi
3008
3009 # if PM doesn't want the warning messages, take them out
3010 if test x"$coin_skip_warn_cflags" = xyes; then
3011 coin_warn_cflags=
3012 fi
3013
3014 if test x${DBG_CFLAGS+set} != xset; then
3015 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3016 fi
3017 if test x${OPT_CFLAGS+set} != xset; then
3018 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3019 fi
3020
3021 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3022 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3023
3024 if test "$coin_debug_compile" = "true"; then
3025 CFLAGS="$DBG_CFLAGS"
3026 else
3027 CFLAGS="$OPT_CFLAGS"
3028 fi
3029 else
3030 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3031 if test x${DBG_CFLAGS+set} != xset; then
3032 DBG_CFLAGS="$CFLAGS"
3033 fi
3034 if test x${OPT_CFLAGS+set} != xset; then
3035 OPT_CFLAGS="$CFLAGS"
3036 fi
3037 fi
3038
3039 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3040 if test x$COIN_PRJCT != x; then
3041 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3042 fi
3043
3044 # Try if CFLAGS works
3045 save_CFLAGS="$CFLAGS"
3046 cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h. */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3052
3053 int
3054 main ()
3055 {
3056 int i=0; i++;
3057 ;
3058 return 0;
3059 }
3060 _ACEOF
3061 rm -f conftest.$ac_objext conftest$ac_exeext
3062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3063 (eval $ac_link) 2>conftest.er1
3064 ac_status=$?
3065 grep -v '^ *+' conftest.er1 >conftest.err
3066 rm -f conftest.er1
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -z "$ac_c_werror_flag"
3071 || test ! -s conftest.err'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073 (eval $ac_try) 2>&5
3074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; } &&
3077 { ac_try='test -s conftest$ac_exeext'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 (eval $ac_try) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; }; then
3083 :
3084 else
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 CFLAGS=
3089 fi
3090 rm -f conftest.err conftest.$ac_objext \
3091 conftest$ac_exeext conftest.$ac_ext
3092 if test -z "$CFLAGS"; then
3093 { 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
3094 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;}
3095 CFLAGS='-O'
3096 cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h. */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3102
3103 int
3104 main ()
3105 {
3106 int i=0; i++;
3107 ;
3108 return 0;
3109 }
3110 _ACEOF
3111 rm -f conftest.$ac_objext conftest$ac_exeext
3112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3113 (eval $ac_link) 2>conftest.er1
3114 ac_status=$?
3115 grep -v '^ *+' conftest.er1 >conftest.err
3116 rm -f conftest.er1
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
3120 { ac_try='test -z "$ac_c_werror_flag"
3121 || test ! -s conftest.err'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 (eval $ac_try) 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; } &&
3127 { ac_try='test -s conftest$ac_exeext'
3128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129 (eval $ac_try) 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3133 :
3134 else
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138 CFLAGS=
3139 fi
3140 rm -f conftest.err conftest.$ac_objext \
3141 conftest$ac_exeext conftest.$ac_ext
3142 if test -z "$CFLAGS"; then
3143 { 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
3144 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;}
3145 fi
3146 fi
3147
3148 { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3149 echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3150
3151
3152 if test x"$MPICC" = x; then :; else
3153 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3154 echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3155 CC="$MPICC"
3156 fi
3157
3158 # Correct the LD variable if we are using the MS or Intel-windows compiler
3159 case "$CC" in
3160 clang* ) ;;
3161 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3162 LD=link
3163 ;;
3164 esac
3165
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
3173
3174 #Let's try if that overcomes configuration problem with VC++ 6.0
3175
3176 ac_ext=cc
3177 ac_cpp='$CXXCPP $CPPFLAGS'
3178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3181
3182
3183
3184
3185
3186
3187
3188 coin_has_cxx=yes
3189
3190 save_cxxflags="$CXXFLAGS"
3191 # For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3192 case $build in
3193 *-cygwin* | *-mingw*)
3194 if test "$enable_msvc" = yes ; then
3195 comps="icl cl g++"
3196 else
3197 comps="g++ icl cl"
3198 fi ;;
3199 *-*-solaris*)
3200 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3201 *-darwin*) comps="clang++ g++ c++ CC" ;;
3202 *-linux-gnu*)
3203 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3204 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3205 esac
3206
3207 # We delete the cached value, since the test might not have been
3208 # performed with our choice of compilers earlier
3209 $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3210 # AC_MSG_NOTICE([C++ compiler candidates: $comps])
3211 ac_ext=cc
3212 ac_cpp='$CXXCPP $CPPFLAGS'
3213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3216 if test -n "$ac_tool_prefix"; then
3217 for ac_prog in $CCC $comps
3218 do
3219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3221 echo "$as_me:$LINENO: checking for $ac_word" >&5
3222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3223 if test "${ac_cv_prog_CXX+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 if test -n "$CXX"; then
3227 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240 done
3241 done
3242
3243 fi
3244 fi
3245 CXX=$ac_cv_prog_CXX
3246 if test -n "$CXX"; then
3247 echo "$as_me:$LINENO: result: $CXX" >&5
3248 echo "${ECHO_T}$CXX" >&6
3249 else
3250 echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3252 fi
3253
3254 test -n "$CXX" && break
3255 done
3256 fi
3257 if test -z "$CXX"; then
3258 ac_ct_CXX=$CXX
3259 for ac_prog in $CCC $comps
3260 do
3261 # Extract the first word of "$ac_prog", so it can be a program name with args.
3262 set dummy $ac_prog; ac_word=$2
3263 echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3265 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268 if test -n "$ac_ct_CXX"; then
3269 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_ac_ct_CXX="$ac_prog"
3279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282 done
3283 done
3284
3285 fi
3286 fi
3287 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3288 if test -n "$ac_ct_CXX"; then
3289 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3290 echo "${ECHO_T}$ac_ct_CXX" >&6
3291 else
3292 echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6
3294 fi
3295
3296 test -n "$ac_ct_CXX" && break
3297 done
3298 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3299
3300 CXX=$ac_ct_CXX
3301 fi
3302
3303
3304 # Provide some information about the compiler.
3305 echo "$as_me:$LINENO:" \
3306 "checking for C++ compiler version" >&5
3307 ac_compiler=`set X $ac_compile; echo $2`
3308 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3309 (eval $ac_compiler --version </dev/null >&5) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }
3313 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3314 (eval $ac_compiler -v </dev/null >&5) 2>&5
3315 ac_status=$?
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }
3318 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3319 (eval $ac_compiler -V </dev/null >&5) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }
3323
3324 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3325 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3326 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329 cat >conftest.$ac_ext <<_ACEOF
3330 /* confdefs.h. */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3335
3336 int
3337 main ()
3338 {
3339 #ifndef __GNUC__
3340 choke me
3341 #endif
3342
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.$ac_objext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3349 (eval $ac_compile) 2>conftest.er1
3350 ac_status=$?
3351 grep -v '^ *+' conftest.er1 >conftest.err
3352 rm -f conftest.er1
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } &&
3356 { ac_try='test -z "$ac_cxx_werror_flag"
3357 || test ! -s conftest.err'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 (eval $ac_try) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; } &&
3363 { ac_try='test -s conftest.$ac_objext'
3364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 (eval $ac_try) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
3369 ac_compiler_gnu=yes
3370 else
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 ac_compiler_gnu=no
3375 fi
3376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3377 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3378
3379 fi
3380 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3381 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3382 GXX=`test $ac_compiler_gnu = yes && echo yes`
3383 ac_test_CXXFLAGS=${CXXFLAGS+set}
3384 ac_save_CXXFLAGS=$CXXFLAGS
3385 CXXFLAGS="-g"
3386 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3387 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3388 if test "${ac_cv_prog_cxx_g+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h. */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397
3398 int
3399 main ()
3400 {
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 rm -f conftest.$ac_objext
3407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3408 (eval $ac_compile) 2>conftest.er1
3409 ac_status=$?
3410 grep -v '^ *+' conftest.er1 >conftest.err
3411 rm -f conftest.er1
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -z "$ac_cxx_werror_flag"
3416 || test ! -s conftest.err'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 (eval $ac_try) 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; } &&
3422 { ac_try='test -s conftest.$ac_objext'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 (eval $ac_try) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; }; then
3428 ac_cv_prog_cxx_g=yes
3429 else
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433 ac_cv_prog_cxx_g=no
3434 fi
3435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3436 fi
3437 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3438 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3439 if test "$ac_test_CXXFLAGS" = set; then
3440 CXXFLAGS=$ac_save_CXXFLAGS
3441 elif test $ac_cv_prog_cxx_g = yes; then
3442 if test "$GXX" = yes; then
3443 CXXFLAGS="-g -O2"
3444 else
3445 CXXFLAGS="-g"
3446 fi
3447 else
3448 if test "$GXX" = yes; then
3449 CXXFLAGS="-O2"
3450 else
3451 CXXFLAGS=
3452 fi
3453 fi
3454 for ac_declaration in \
3455 '' \
3456 'extern "C" void std::exit (int) throw (); using std::exit;' \
3457 'extern "C" void std::exit (int); using std::exit;' \
3458 'extern "C" void exit (int) throw ();' \
3459 'extern "C" void exit (int);' \
3460 'void exit (int);'
3461 do
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 $ac_declaration
3469 #include <stdlib.h>
3470 int
3471 main ()
3472 {
3473 exit (42);
3474 ;
3475 return 0;
3476 }
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } &&
3487 { ac_try='test -z "$ac_cxx_werror_flag"
3488 || test ! -s conftest.err'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 (eval $ac_try) 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; } &&
3494 { ac_try='test -s conftest.$ac_objext'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 :
3501 else
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 continue
3506 fi
3507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 $ac_declaration
3515 int
3516 main ()
3517 {
3518 exit (42);
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_cxx_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 break
3546 else
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550 fi
3551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3552 done
3553 rm -f conftest*
3554 if test -n "$ac_declaration"; then
3555 echo '#ifdef __cplusplus' >>confdefs.h
3556 echo $ac_declaration >>confdefs.h
3557 echo '#endif' >>confdefs.h
3558 fi
3559
3560 ac_ext=cc
3561 ac_cpp='$CXXCPP $CPPFLAGS'
3562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3565
3566
3567 #AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3568 #thus, we test here whether $CXX is actually working
3569 ac_ext=cc
3570 ac_cpp='$CXXCPP $CPPFLAGS'
3571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3574
3575 echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3576 echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3577 cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h. */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3583
3584 int
3585 main ()
3586 {
3587 int i=0;
3588 ;
3589 return 0;
3590 }
3591 _ACEOF
3592 rm -f conftest.$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_cxx_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 (eval $ac_try) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 echo "$as_me:$LINENO: result: yes" >&5
3615 echo "${ECHO_T}yes" >&6
3616 else
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620 echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6
3622 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3623 echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3624 { (exit 1); exit 1; }; }
3625
3626 fi
3627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3628 ac_ext=cc
3629 ac_cpp='$CXXCPP $CPPFLAGS'
3630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3633
3634
3635 coin_cxx_is_cl=false
3636 # It seems that we need to cleanup something here for the Windows
3637 case "$CXX" in
3638 clang* | */clang*) ;;
3639 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3640 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3641 mv confdefs.hh confdefs.h
3642 coin_cxx_is_cl=true
3643 ;;
3644 esac
3645
3646 # add automake conditional so we can recognize cl compiler in makefile
3647
3648
3649 if test $coin_cxx_is_cl = true; then
3650 COIN_CXX_IS_CL_TRUE=
3651 COIN_CXX_IS_CL_FALSE='#'
3652 else
3653 COIN_CXX_IS_CL_TRUE='#'
3654 COIN_CXX_IS_CL_FALSE=
3655 fi
3656
3657
3658 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3659 case "$CXX" in
3660 clang* ) ;;
3661 cl* | */cl* | CL* | */CL* )
3662 if test "$ac_cv_prog_cxx_g" = yes ; then
3663 ac_cv_prog_cxx_g=no
3664 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3665 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3666 fi ;;
3667 * )
3668 if test x"$CYGPATH_W" = x ; then
3669 CYGPATH_W=echo
3670 fi
3671 ;;
3672 esac
3673 CXXFLAGS="$save_cxxflags"
3674
3675 # Check if a project specific CXXFLAGS variable has been set
3676 if test x$COIN_PRJCT != x; then
3677 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3678 if test x$coin_tmp = xset; then
3679 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3680 fi
3681 fi
3682
3683 if test x"$CXXFLAGS" = x; then
3684
3685 # ToDo decide whether we want -DNDEBUG for optimization
3686 coin_add_cxxflags=
3687 coin_opt_cxxflags=
3688 coin_dbg_cxxflags=
3689 coin_warn_cxxflags=
3690
3691 if test "$GXX" = "yes"; then
3692 case "$CXX" in
3693 icpc* | */icpc*)
3694 ;;
3695 *)
3696 # ToDo decide about unroll-loops
3697 coin_opt_cxxflags="-O3"
3698 coin_add_cxxflags="-pipe"
3699 coin_dbg_cxxflags="-g -O0"
3700 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3701 esac
3702 fi
3703
3704 # Note that we do not need to cover GCC in the following tests.
3705
3706 if test -z "$coin_opt_cxxflags"; then
3707 case $build in
3708 *-cygwin* | *-mingw*)
3709 case "$CXX" in
3710 clang* ) ;;
3711 cl* | */cl* | CL* | */CL*)
3712 # The MT and MTd options are mutually exclusive
3713 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3714 coin_opt_cxxflags='-MD -O2'
3715 coin_dbg_cxxflags='-MDd'
3716 else
3717 coin_opt_cxxflags='-MT -O2'
3718 coin_dbg_cxxflags='-MTd'
3719 fi
3720 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3721 ;;
3722 icl* | */icl* | ICL* | */ICL*)
3723 # The MT and MTd options are mutually exclusive
3724 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3725 coin_opt_cxxflags='-MD -Ox'
3726 coin_dbg_cxxflags='-MDd -debug'
3727 else
3728 coin_opt_cxxflags='-MT -Ox'
3729 coin_dbg_cxxflags='-MTd -debug'
3730 fi
3731 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3732 ;;
3733 esac
3734 ;;
3735 *-linux-*)
3736 case "$CXX" in
3737 icpc* | */icpc*)
3738 coin_opt_cxxflags="-O3 -ip -mp1"
3739 coin_add_cxxflags=""
3740 coin_dbg_cxxflags="-g"
3741 # Check if -i_dynamic is necessary (for new glibc library)
3742 CXXFLAGS=
3743 cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h. */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3749
3750 int
3751 main ()
3752 {
3753 int i=0; i++;
3754 ;
3755 return 0;
3756 }
3757 _ACEOF
3758 rm -f conftest.$ac_objext conftest$ac_exeext
3759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3760 (eval $ac_link) 2>conftest.er1
3761 ac_status=$?
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } &&
3767 { ac_try='test -z "$ac_cxx_werror_flag"
3768 || test ! -s conftest.err'
3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 (eval $ac_try) 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; } &&
3774 { ac_try='test -s conftest$ac_exeext'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 :
3781 else
3782 echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3784
3785 coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3786 fi
3787 rm -f conftest.err conftest.$ac_objext \
3788 conftest$ac_exeext conftest.$ac_ext
3789 ;;
3790 pgCC* | */pgCC*)
3791 coin_opt_cxxflags="-fast"
3792 coin_add_cxxflags="-Kieee -pc 64"
3793 coin_dbg_cxxflags="-g"
3794 ;;
3795 esac
3796 ;;
3797 *-ibm-*)
3798 case "$CXX" in
3799 xlC* | */xlC* | mpxlC* | */mpxlC*)
3800 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3801 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3802 coin_dbg_cxxflags="-g"
3803 ;;
3804 esac
3805 ;;
3806 *-hp-*)
3807 case "$CXX" in
3808 aCC* | */aCC* )
3809 coin_opt_cxxflags="-O"
3810 coin_add_cxxflags="-AA"
3811 coin_dbg_cxxflags="-g"
3812 ;;
3813 esac
3814 ;;
3815 *-*-solaris*)
3816 coin_opt_cxxflags="-O4"
3817 coin_dbg_cxxflags="-g"
3818 ;;
3819 esac
3820 fi
3821
3822 # Generic flag settings. If these don't work, add a case above.
3823
3824 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3825 coin_dbg_cxxflags="-g"
3826 fi
3827
3828 if test -z "$coin_opt_cxxflags"; then
3829 # Try if -O option works if nothing else is set
3830 CXXFLAGS=-O
3831 cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h. */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837
3838 int
3839 main ()
3840 {
3841 int i=0; i++;
3842 ;
3843 return 0;
3844 }
3845 _ACEOF
3846 rm -f conftest.$ac_objext conftest$ac_exeext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848 (eval $ac_link) 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } &&
3855 { ac_try='test -z "$ac_cxx_werror_flag"
3856 || test ! -s conftest.err'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3868 coin_opt_cxxflags="-O"
3869 else
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3872
3873 fi
3874 rm -f conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
3876 fi
3877
3878 # if PM doesn't want the warning messages, take them out
3879 if test x"$coin_skip_warn_cxxflags" = xyes; then
3880 coin_warn_cxxflags=
3881 fi
3882
3883 # Do final setup of flags based on values determined above.
3884
3885 if test x${DBG_CXXFLAGS+set} != xset; then
3886 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3887 fi
3888 if test x${OPT_CXXFLAGS+set} != xset; then
3889 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3890 fi
3891
3892 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3893 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3894
3895 if test "$coin_debug_compile" = "true"; then
3896 CXXFLAGS="$DBG_CXXFLAGS"
3897 else
3898 CXXFLAGS="$OPT_CXXFLAGS"
3899 fi
3900
3901 # Handle the case where CXXFLAGS was set externally.
3902 else
3903 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3904 if test x${DBG_CXXFLAGS+set} != xset; then
3905 DBG_CXXFLAGS="$CXXFLAGS"
3906 fi
3907 if test x${OPT_CXXFLAGS+set} != xset; then
3908 OPT_CXXFLAGS="$CXXFLAGS"
3909 fi
3910 fi
3911
3912 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3913 if test x$COIN_PRJCT != x; then
3914 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3915 fi
3916
3917 # Try if CXXFLAGS works
3918 save_CXXFLAGS="$CXXFLAGS"
3919 cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h. */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925
3926 int
3927 main ()
3928 {
3929 int i=0; i++;
3930 ;
3931 return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.$ac_objext conftest$ac_exeext
3935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3936 (eval $ac_link) 2>conftest.er1
3937 ac_status=$?
3938 grep -v '^ *+' conftest.er1 >conftest.err
3939 rm -f conftest.er1
3940 cat conftest.err >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } &&
3943 { ac_try='test -z "$ac_cxx_werror_flag"
3944 || test ! -s conftest.err'
3945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 (eval $ac_try) 2>&5
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }; } &&
3950 { ac_try='test -s conftest$ac_exeext'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 (eval $ac_try) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 :
3957 else
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3960
3961 CXXFLAGS=
3962 fi
3963 rm -f conftest.err conftest.$ac_objext \
3964 conftest$ac_exeext conftest.$ac_ext
3965 if test -z "$CXXFLAGS"; then
3966 { 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
3967 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;}
3968 CXXFLAGS='-O'
3969 cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h. */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3975
3976 int
3977 main ()
3978 {
3979 int i=0; i++;
3980 ;
3981 return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest.$ac_objext conftest$ac_exeext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3986 (eval $ac_link) 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -z "$ac_cxx_werror_flag"
3994 || test ! -s conftest.err'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest$ac_exeext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 :
4007 else
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4010
4011 CXXFLAGS=
4012 fi
4013 rm -f conftest.err conftest.$ac_objext \
4014 conftest$ac_exeext conftest.$ac_ext
4015 if test -z "$CXXFLAGS"; then
4016 { 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
4017 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;}
4018 fi
4019 fi
4020
4021 { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4022 echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4023
4024
4025 if test x"$MPICXX" = x; then :; else
4026 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4027 echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4028 CXX="$MPICXX"
4029 fi
4030
4031 # correct the LD variable in a build with MS or Intel-windows compiler
4032 case "$CXX" in
4033 clang* ) ;;
4034 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4035 LD=link
4036 ;;
4037 esac
4038
4039 ac_ext=c
4040 ac_cpp='$CPP $CPPFLAGS'
4041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044
4045
4046
4047 # Initialize automake and libtool
4048 {
4049
4050
4051
4052 # START
4053
4054 coin_disable_shared=no
4055 # Test if force_shared has been set
4056 if test "x" = xforce_shared; then
4057 if test x$enable_shared = xno; then
4058 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4059 echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4060 { (exit 1); exit 1; }; }
4061 fi
4062 enable_shared=yes;
4063 else
4064 case $build in
4065 *-cygwin* | *-mingw*)
4066 coin_disable_shared=yes
4067 if test x"$enable_shared" = xyes; then
4068 case "$CC" in
4069 clang* )
4070 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4071 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4072 ;;
4073 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4074 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4075 echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4076 ;;
4077 *gcc*)
4078 if test x"$enable_dependency_linking" = xyes; then
4079 coin_disable_shared=no
4080 else
4081 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4082 echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4083 fi
4084 ;;
4085 *)
4086 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4087 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4088 ;;
4089 esac
4090 fi
4091 ;;
4092 *-aix*)
4093 coin_disable_shared=yes
4094 platform=AIX
4095 if test x"$enable_shared" = xyes; then
4096 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4097 echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4098 fi
4099 ;;
4100 esac
4101 fi
4102 if test x"$coin_disable_shared" = xyes; then
4103 if test x"$enable_shared" = xyes; then
4104 :
4105 else
4106 # we don't disable shared, because it was not selected anyway
4107 coin_disable_shared=no
4108 fi
4109 enable_shared=no
4110 fi
4111 # By default, we only want the shared objects to be compiled
4112 # Check whether --enable-static or --disable-static was given.
4113 if test "${enable_static+set}" = set; then
4114 enableval="$enable_static"
4115 p=${PACKAGE-default}
4116 case $enableval in
4117 yes) enable_static=yes ;;
4118 no) enable_static=no ;;
4119 *)
4120 enable_static=no
4121 # Look at the argument we got. We use all the common list separators.
4122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4123 for pkg in $enableval; do
4124 IFS="$lt_save_ifs"
4125 if test "X$pkg" = "X$p"; then
4126 enable_static=yes
4127 fi
4128 done
4129 IFS="$lt_save_ifs"
4130 ;;
4131 esac
4132 else
4133 enable_static=no
4134 fi;
4135
4136
4137
4138
4139 # Initialize automake
4140 echo "$as_me:$LINENO: checking for egrep" >&5
4141 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4142 if test "${ac_cv_prog_egrep+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4146 then ac_cv_prog_egrep='grep -E'
4147 else ac_cv_prog_egrep='egrep'
4148 fi
4149 fi
4150 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4151 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4152 EGREP=$ac_cv_prog_egrep
4153
4154
4155 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4156 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4157 LN_S=$as_ln_s
4158 if test "$LN_S" = "ln -s"; then
4159 echo "$as_me:$LINENO: result: yes" >&5
4160 echo "${ECHO_T}yes" >&6
4161 else
4162 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4163 echo "${ECHO_T}no, using $LN_S" >&6
4164 fi
4165
4166 am__api_version="1.9"
4167 # Find a good install program. We prefer a C program (faster),
4168 # so one script is as good as another. But avoid the broken or
4169 # incompatible versions:
4170 # SysV /etc/install, /usr/sbin/install
4171 # SunOS /usr/etc/install
4172 # IRIX /sbin/install
4173 # AIX /bin/install
4174 # AmigaOS /C/install, which installs bootblocks on floppy discs
4175 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4176 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4177 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4178 # OS/2's system install, which has a completely different semantic
4179 # ./install, which can be erroneously created by make from ./install.sh.
4180 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4181 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4182 if test -z "$INSTALL"; then
4183 if test "${ac_cv_path_install+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 # Account for people who put trailing slashes in PATH elements.
4192 case $as_dir/ in
4193 ./ | .// | /cC/* | \
4194 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4195 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4196 /usr/ucb/* ) ;;
4197 *)
4198 # OSF1 and SCO ODT 3.0 have their own names for install.
4199 # Don't use installbsd from OSF since it installs stuff as root
4200 # by default.
4201 for ac_prog in ginstall scoinst install; do
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4204 if test $ac_prog = install &&
4205 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4206 # AIX install. It has an incompatible calling convention.
4207 :
4208 elif test $ac_prog = install &&
4209 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4210 # program-specific install script used by HP pwplus--don't use.
4211 :
4212 else
4213 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4214 break 3
4215 fi
4216 fi
4217 done
4218 done
4219 ;;
4220 esac
4221 done
4222
4223
4224 fi
4225 if test "${ac_cv_path_install+set}" = set; then
4226 INSTALL=$ac_cv_path_install
4227 else
4228 # As a last resort, use the slow shell script. We don't cache a
4229 # path for INSTALL within a source directory, because that will
4230 # break other packages using the cache if that directory is
4231 # removed, or if the path is relative.
4232 INSTALL=$ac_install_sh
4233 fi
4234 fi
4235 echo "$as_me:$LINENO: result: $INSTALL" >&5
4236 echo "${ECHO_T}$INSTALL" >&6
4237
4238 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4239 # It thinks the first close brace ends the variable substitution.
4240 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4241
4242 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4243
4244 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4245
4246 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4247 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4248 # Just in case
4249 sleep 1
4250 echo timestamp > conftest.file
4251 # Do `set' in a subshell so we don't clobber the current shell's
4252 # arguments. Must try -L first in case configure is actually a
4253 # symlink; some systems play weird games with the mod time of symlinks
4254 # (eg FreeBSD returns the mod time of the symlink's containing
4255 # directory).
4256 if (
4257 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4258 if test "$*" = "X"; then
4259 # -L didn't work.
4260 set X `ls -t $srcdir/configure conftest.file`
4261 fi
4262 rm -f conftest.file
4263 if test "$*" != "X $srcdir/configure conftest.file" \
4264 && test "$*" != "X conftest.file $srcdir/configure"; then
4265
4266 # If neither matched, then we have a broken ls. This can happen
4267 # if, for instance, CONFIG_SHELL is bash and it inherits a
4268 # broken ls alias from the environment. This has actually
4269 # happened. Such a system could not be considered "sane".
4270 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4271 alias in your environment" >&5
4272 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4273 alias in your environment" >&2;}
4274 { (exit 1); exit 1; }; }
4275 fi
4276
4277 test "$2" = conftest.file
4278 )
4279 then
4280 # Ok.
4281 :
4282 else
4283 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4284 Check your system clock" >&5
4285 echo "$as_me: error: newly created file is older than distributed files!
4286 Check your system clock" >&2;}
4287 { (exit 1); exit 1; }; }
4288 fi
4289 echo "$as_me:$LINENO: result: yes" >&5
4290 echo "${ECHO_T}yes" >&6
4291 test "$program_prefix" != NONE &&
4292 program_transform_name="s,^,$program_prefix,;$program_transform_name"
4293 # Use a double $ so make ignores it.
4294 test "$program_suffix" != NONE &&
4295 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4296 # Double any \ or $. echo might interpret backslashes.
4297 # By default was `s,x,x', remove it if useless.
4298 cat <<\_ACEOF >conftest.sed
4299 s/[\\$]/&&/g;s/;s,x,x,$//
4300 _ACEOF
4301 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4302 rm conftest.sed
4303
4304 # expand $ac_aux_dir to an absolute path
4305 am_aux_dir=`cd $ac_aux_dir && pwd`
4306
4307 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4308 # Use eval to expand $SHELL
4309 if eval "$MISSING --run true"; then
4310 am_missing_run="$MISSING --run "
4311 else
4312 am_missing_run=
4313 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4314 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4315 fi
4316
4317 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4318 # We used to keeping the `.' as first argument, in order to
4319 # allow $(mkdir_p) to be used without argument. As in
4320 # $(mkdir_p) $(somedir)
4321 # where $(somedir) is conditionally defined. However this is wrong
4322 # for two reasons:
4323 # 1. if the package is installed by a user who cannot write `.'
4324 # make install will fail,
4325 # 2. the above comment should most certainly read
4326 # $(mkdir_p) $(DESTDIR)$(somedir)
4327 # so it does not work when $(somedir) is undefined and
4328 # $(DESTDIR) is not.
4329 # To support the latter case, we have to write
4330 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4331 # so the `.' trick is pointless.
4332 mkdir_p='mkdir -p --'
4333 else
4334 # On NextStep and OpenStep, the `mkdir' command does not
4335 # recognize any option. It will interpret all options as
4336 # directories to create, and then abort because `.' already
4337 # exists.
4338 for d in ./-p ./--version;
4339 do
4340 test -d $d && rmdir $d
4341 done
4342 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4343 if test -f "$ac_aux_dir/mkinstalldirs"; then
4344 mkdir_p='$(mkinstalldirs)'
4345 else
4346 mkdir_p='$(install_sh) -d'
4347 fi
4348 fi
4349
4350 for ac_prog in gawk mawk nawk awk
4351 do
4352 # Extract the first word of "$ac_prog", so it can be a program name with args.
4353 set dummy $ac_prog; ac_word=$2
4354 echo "$as_me:$LINENO: checking for $ac_word" >&5
4355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4356 if test "${ac_cv_prog_AWK+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359 if test -n "$AWK"; then
4360 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369 ac_cv_prog_AWK="$ac_prog"
4370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4372 fi
4373 done
4374 done
4375
4376 fi
4377 fi
4378 AWK=$ac_cv_prog_AWK
4379 if test -n "$AWK"; then
4380 echo "$as_me:$LINENO: result: $AWK" >&5
4381 echo "${ECHO_T}$AWK" >&6
4382 else
4383 echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6
4385 fi
4386
4387 test -n "$AWK" && break
4388 done
4389
4390 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4391 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4392 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4393 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396 cat >conftest.make <<\_ACEOF
4397 all:
4398 @echo 'ac_maketemp="$(MAKE)"'
4399 _ACEOF
4400 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4401 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4402 if test -n "$ac_maketemp"; then
4403 eval ac_cv_prog_make_${ac_make}_set=yes
4404 else
4405 eval ac_cv_prog_make_${ac_make}_set=no
4406 fi
4407 rm -f conftest.make
4408 fi
4409 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4410 echo "$as_me:$LINENO: result: yes" >&5
4411 echo "${ECHO_T}yes" >&6
4412 SET_MAKE=
4413 else
4414 echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6
4416 SET_MAKE="MAKE=${MAKE-make}"
4417 fi
4418
4419 rm -rf .tst 2>/dev/null
4420 mkdir .tst 2>/dev/null
4421 if test -d .tst; then
4422 am__leading_dot=.
4423 else
4424 am__leading_dot=_
4425 fi
4426 rmdir .tst 2>/dev/null
4427
4428 DEPDIR="${am__leading_dot}deps"
4429
4430 ac_config_commands="$ac_config_commands depfiles"
4431
4432
4433 am_make=${MAKE-make}
4434 cat > confinc << 'END'
4435 am__doit:
4436 @echo done
4437 .PHONY: am__doit
4438 END
4439 # If we don't find an include directive, just comment out the code.
4440 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4441 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4442 am__include="#"
4443 am__quote=
4444 _am_result=none
4445 # First try GNU make style include.
4446 echo "include confinc" > confmf
4447 # We grep out `Entering directory' and `Leaving directory'
4448 # messages which can occur if `w' ends up in MAKEFLAGS.
4449 # In particular we don't look at `^make:' because GNU make might
4450 # be invoked under some other name (usually "gmake"), in which
4451 # case it prints its new name instead of `make'.
4452 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4453 am__include=include
4454 am__quote=
4455 _am_result=GNU
4456 fi
4457 # Now try BSD make style include.
4458 if test "$am__include" = "#"; then
4459 echo '.include "confinc"' > confmf
4460 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4461 am__include=.include
4462 am__quote="\""
4463 _am_result=BSD
4464 fi
4465 fi
4466
4467
4468 echo "$as_me:$LINENO: result: $_am_result" >&5
4469 echo "${ECHO_T}$_am_result" >&6
4470 rm -f confinc confmf
4471
4472 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4473 if test "${enable_dependency_tracking+set}" = set; then
4474 enableval="$enable_dependency_tracking"
4475
4476 fi;
4477 if test "x$enable_dependency_tracking" != xno; then
4478 am_depcomp="$ac_aux_dir/depcomp"
4479 AMDEPBACKSLASH='\'
4480 fi
4481
4482
4483 if test "x$enable_dependency_tracking" != xno; then
4484 AMDEP_TRUE=
4485 AMDEP_FALSE='#'
4486 else
4487 AMDEP_TRUE='#'
4488 AMDEP_FALSE=
4489 fi
4490
4491
4492
4493
4494
4495
4496 # AC_MSG_NOTICE([Beginning automake initialisation.])
4497 # Stuff for automake
4498 # test to see if srcdir already configured
4499 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4500 test -f $srcdir/config.status; then
4501 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4502 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4503 { (exit 1); exit 1; }; }
4504 fi
4505
4506 # test whether we have cygpath
4507 if test -z "$CYGPATH_W"; then
4508 if (cygpath --version) >/dev/null 2>/dev/null; then
4509 CYGPATH_W='cygpath -w'
4510 else
4511 CYGPATH_W=echo
4512 fi
4513 fi
4514
4515
4516 # Define the identity of the package.
4517 PACKAGE='vol'
4518 VERSION='1.5.4'
4519
4520
4521 cat >>confdefs.h <<_ACEOF
4522 #define PACKAGE "$PACKAGE"
4523 _ACEOF
4524
4525
4526 cat >>confdefs.h <<_ACEOF
4527 #define VERSION "$VERSION"
4528 _ACEOF
4529
4530 # Some tools Automake needs.
4531
4532 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4533
4534
4535 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4536
4537
4538 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4539
4540
4541 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4542
4543
4544 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4545
4546 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4547
4548 # Installed binaries are usually stripped using `strip' when the user
4549 # run `make install-strip'. However `strip' might not be the right
4550 # tool to use in cross-compilation environments, therefore Automake
4551 # will honor the `STRIP' environment variable to overrule this program.
4552 if test "$cross_compiling" != no; then
4553 if test -n "$ac_tool_prefix"; then
4554 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4555 set dummy ${ac_tool_prefix}strip; ac_word=$2
4556 echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4558 if test "${ac_cv_prog_STRIP+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561 if test -n "$STRIP"; then
4562 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575 done
4576 done
4577
4578 fi
4579 fi
4580 STRIP=$ac_cv_prog_STRIP
4581 if test -n "$STRIP"; then
4582 echo "$as_me:$LINENO: result: $STRIP" >&5
4583 echo "${ECHO_T}$STRIP" >&6
4584 else
4585 echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6
4587 fi
4588
4589 fi
4590 if test -z "$ac_cv_prog_STRIP"; then
4591 ac_ct_STRIP=$STRIP
4592 # Extract the first word of "strip", so it can be a program name with args.
4593 set dummy strip; ac_word=$2
4594 echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4596 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599 if test -n "$ac_ct_STRIP"; then
4600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_ac_ct_STRIP="strip"
4610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4612 fi
4613 done
4614 done
4615
4616 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4617 fi
4618 fi
4619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4620 if test -n "$ac_ct_STRIP"; then
4621 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4622 echo "${ECHO_T}$ac_ct_STRIP" >&6
4623 else
4624 echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6
4626 fi
4627
4628 STRIP=$ac_ct_STRIP
4629 else
4630 STRIP="$ac_cv_prog_STRIP"
4631 fi
4632
4633 fi
4634 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4635
4636 # We need awk for the "check" target. The system "awk" is bad on
4637 # some platforms.
4638 # Always define AMTAR for backward compatibility.
4639
4640 AMTAR=${AMTAR-"${am_missing_run}tar"}
4641
4642 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4643
4644
4645
4646
4647 depcc="$CC" am_compiler_list=
4648
4649 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4650 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4651 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4655 # We make a subdir and do the tests there. Otherwise we can end up
4656 # making bogus files that we don't know about and never remove. For
4657 # instance it was reported that on HP-UX the gcc test will end up
4658 # making a dummy file named `D' -- because `-MD' means `put the output
4659 # in D'.
4660 mkdir conftest.dir
4661 # Copy depcomp to subdir because otherwise we won't find it if we're
4662 # using a relative directory.
4663 cp "$am_depcomp" conftest.dir
4664 cd conftest.dir
4665 # We will build objects and dependencies in a subdirectory because
4666 # it helps to detect inapplicable dependency modes. For instance
4667 # both Tru64's cc and ICC support -MD to output dependencies as a
4668 # side effect of compilation, but ICC will put the dependencies in
4669 # the current directory while Tru64 will put them in the object
4670 # directory.
4671 mkdir sub
4672
4673 am_cv_CC_dependencies_compiler_type=none
4674 if test "$am_compiler_list" = ""; then
4675 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4676 fi
4677 for depmode in $am_compiler_list; do
4678 # Setup a source with many dependencies, because some compilers
4679 # like to wrap large dependency lists on column 80 (with \), and
4680 # we should not choose a depcomp mode which is confused by this.
4681 #
4682 # We need to recreate these files for each test, as the compiler may
4683 # overwrite some of them when testing with obscure command lines.
4684 # This happens at least with the AIX C compiler.
4685 : > sub/conftest.c
4686 for i in 1 2 3 4 5 6; do
4687 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4688 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4689 # Solaris 8's {/usr,}/bin/sh.
4690 touch sub/conftst$i.h
4691 done
4692 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4693
4694 case $depmode in
4695 nosideeffect)
4696 # after this tag, mechanisms are not by side-effect, so they'll
4697 # only be used when explicitly requested
4698 if test "x$enable_dependency_tracking" = xyes; then
4699 continue
4700 else
4701 break
4702 fi
4703 ;;
4704 none) break ;;
4705 esac
4706 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4707 # mode. It turns out that the SunPro C++ compiler does not properly
4708 # handle `-M -o', and we need to detect this.
4709 if depmode=$depmode \
4710 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4711 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4712 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4713 >/dev/null 2>conftest.err &&
4714 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4715 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4716 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4717 # icc doesn't choke on unknown options, it will just issue warnings
4718 # or remarks (even with -Werror). So we grep stderr for any message
4719 # that says an option was ignored or not supported.
4720 # When given -MP, icc 7.0 and 7.1 complain thusly:
4721 # icc: Command line warning: ignoring option '-M'; no argument required
4722 # The diagnosis changed in icc 8.0:
4723 # icc: Command line remark: option '-MP' not supported
4724 if (grep 'ignoring option' conftest.err ||
4725 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4726 am_cv_CC_dependencies_compiler_type=$depmode
4727 break
4728 fi
4729 fi
4730 done
4731
4732 cd ..
4733 rm -rf conftest.dir
4734 else
4735 am_cv_CC_dependencies_compiler_type=none
4736 fi
4737
4738 fi
4739 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4740 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4741 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4742
4743
4744
4745 if
4746 test "x$enable_dependency_tracking" != xno \
4747 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4748 am__fastdepCC_TRUE=
4749 am__fastdepCC_FALSE='#'
4750 else
4751 am__fastdepCC_TRUE='#'
4752 am__fastdepCC_FALSE=
4753 fi
4754
4755
4756 depcc="$CXX" am_compiler_list=
4757
4758 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4759 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4760 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4764 # We make a subdir and do the tests there. Otherwise we can end up
4765 # making bogus files that we don't know about and never remove. For
4766 # instance it was reported that on HP-UX the gcc test will end up
4767 # making a dummy file named `D' -- because `-MD' means `put the output
4768 # in D'.
4769 mkdir conftest.dir
4770 # Copy depcomp to subdir because otherwise we won't find it if we're
4771 # using a relative directory.
4772 cp "$am_depcomp" conftest.dir
4773 cd conftest.dir
4774 # We will build objects and dependencies in a subdirectory because
4775 # it helps to detect inapplicable dependency modes. For instance
4776 # both Tru64's cc and ICC support -MD to output dependencies as a
4777 # side effect of compilation, but ICC will put the dependencies in
4778 # the current directory while Tru64 will put them in the object
4779 # directory.
4780 mkdir sub
4781
4782 am_cv_CXX_dependencies_compiler_type=none
4783 if test "$am_compiler_list" = ""; then
4784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4785 fi
4786 for depmode in $am_compiler_list; do
4787 # Setup a source with many dependencies, because some compilers
4788 # like to wrap large dependency lists on column 80 (with \), and
4789 # we should not choose a depcomp mode which is confused by this.
4790 #
4791 # We need to recreate these files for each test, as the compiler may
4792 # overwrite some of them when testing with obscure command lines.
4793 # This happens at least with the AIX C compiler.
4794 : > sub/conftest.c
4795 for i in 1 2 3 4 5 6; do
4796 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4797 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4798 # Solaris 8's {/usr,}/bin/sh.
4799 touch sub/conftst$i.h
4800 done
4801 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4802
4803 case $depmode in
4804 nosideeffect)
4805 # after this tag, mechanisms are not by side-effect, so they'll
4806 # only be used when explicitly requested
4807 if test "x$enable_dependency_tracking" = xyes; then
4808 continue
4809 else
4810 break
4811 fi
4812 ;;
4813 none) break ;;
4814 esac
4815 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4816 # mode. It turns out that the SunPro C++ compiler does not properly
4817 # handle `-M -o', and we need to detect this.
4818 if depmode=$depmode \
4819 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4820 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4821 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4822 >/dev/null 2>conftest.err &&
4823 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4824 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4825 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4826 # icc doesn't choke on unknown options, it will just issue warnings
4827 # or remarks (even with -Werror). So we grep stderr for any message
4828 # that says an option was ignored or not supported.
4829 # When given -MP, icc 7.0 and 7.1 complain thusly:
4830 # icc: Command line warning: ignoring option '-M'; no argument required
4831 # The diagnosis changed in icc 8.0:
4832 # icc: Command line remark: option '-MP' not supported
4833 if (grep 'ignoring option' conftest.err ||
4834 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4835 am_cv_CXX_dependencies_compiler_type=$depmode
4836 break
4837 fi
4838 fi
4839 done
4840
4841 cd ..
4842 rm -rf conftest.dir
4843 else
4844 am_cv_CXX_dependencies_compiler_type=none
4845 fi
4846
4847 fi
4848 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4849 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4850 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4851
4852
4853
4854 if
4855 test "x$enable_dependency_tracking" != xno \
4856 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4857 am__fastdepCXX_TRUE=
4858 am__fastdepCXX_FALSE='#'
4859 else
4860 am__fastdepCXX_TRUE='#'
4861 am__fastdepCXX_FALSE=
4862 fi
4863
4864
4865
4866 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4867 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4868 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4869 if test "${enable_maintainer_mode+set}" = set; then
4870 enableval="$enable_maintainer_mode"
4871 USE_MAINTAINER_MODE=$enableval
4872 else
4873 USE_MAINTAINER_MODE=no
4874 fi;
4875 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4876 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4877
4878
4879 if test $USE_MAINTAINER_MODE = yes; then
4880 MAINTAINER_MODE_TRUE=
4881 MAINTAINER_MODE_FALSE='#'
4882 else
4883 MAINTAINER_MODE_TRUE='#'
4884 MAINTAINER_MODE_FALSE=
4885 fi
4886
4887 MAINT=$MAINTAINER_MODE_TRUE
4888
4889
4890
4891 coin_have_externals=no
4892 if test "$enable_maintainer_mode" = yes; then
4893
4894 # If maintainer mode is chosen, we make sure that the correct versions
4895 # of the tools are used, and that we know where libtool.m4 is (to
4896 # recreate acinclude.m4)
4897
4898
4899 LIBTOOLM4=
4900 # Normally, $HOME
4901 AUTOTOOLS_DFLT=$HOME
4902
4903 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4904 echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4905 if test "${ac_cv_use_correct_autotools+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 ac_cv_use_correct_autotools=check
4909 fi
4910 echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4911 echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4912
4913 if test $ac_cv_use_correct_autotools = check; then
4914 ac_cv_use_correct_autotools=yes
4915 # Check if we have autoconf
4916 # Extract the first word of "autoconf", so it can be a program name with args.
4917 set dummy autoconf; ac_word=$2
4918 echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4920 if test "${ac_cv_prog_have_autoconf+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 if test -n "$have_autoconf"; then
4924 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_prog_have_autoconf="yes"
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4936 fi
4937 done
4938 done
4939
4940 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4941 fi
4942 fi
4943 have_autoconf=$ac_cv_prog_have_autoconf
4944 if test -n "$have_autoconf"; then
4945 echo "$as_me:$LINENO: result: $have_autoconf" >&5
4946 echo "${ECHO_T}$have_autoconf" >&6
4947 else
4948 echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6
4950 fi
4951
4952 if test $have_autoconf = no; then
4953 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4954 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4955 { (exit 1); exit 1; }; }
4956 fi
4957
4958 # Check whether autoconf is the correct version
4959 correct_version='2.59'
4960 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
4961 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4962 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4963 autoconf --version > confauto.out 2>&1
4964 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4965 echo "$as_me:$LINENO: result: yes" >&5
4966 echo "${ECHO_T}yes" >&6
4967 else
4968 rm -f confauto.out
4969 echo "$as_me:$LINENO: result: no" >&5
4970 echo "${ECHO_T}no" >&6
4971 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4972 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4973 { (exit 1); exit 1; }; }
4974 fi
4975 rm -f confauto.out
4976
4977 # Check if the executable autoconf is picked up from the correct location
4978 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4979 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4980 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4981 autoconf_dir=`cd $autoconf_dir; pwd`
4982 if test x$AUTOTOOLS_DIR = x; then
4983 want_dir=$AUTOTOOLS_DFLT/bin
4984 else
4985 want_dir=$AUTOTOOLS_DIR/bin
4986 fi
4987 if test $autoconf_dir = `cd $want_dir; pwd`; then
4988 echo "$as_me:$LINENO: result: yes" >&5
4989 echo "${ECHO_T}yes" >&6
4990 else
4991 rm -f confauto.out
4992 echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6
4994 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4995 echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4996 { (exit 1); exit 1; }; }
4997 fi
4998
4999 # Check if we have automake
5000 # Extract the first word of "automake", so it can be a program name with args.
5001 set dummy automake; ac_word=$2
5002 echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5004 if test "${ac_cv_prog_have_automake+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 if test -n "$have_automake"; then
5008 ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017 ac_cv_prog_have_automake="yes"
5018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5020 fi
5021 done
5022 done
5023
5024 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5025 fi
5026 fi
5027 have_automake=$ac_cv_prog_have_automake
5028 if test -n "$have_automake"; then
5029 echo "$as_me:$LINENO: result: $have_automake" >&5
5030 echo "${ECHO_T}$have_automake" >&6
5031 else
5032 echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6
5034 fi
5035
5036 if test $have_automake = no; then
5037 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5038 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5039 { (exit 1); exit 1; }; }
5040 fi
5041
5042 # Check whether automake is the correct version
5043 correct_version='1.9.6'
5044 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5045 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5046 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5047 automake --version > confauto.out 2>&1
5048 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5049 echo "$as_me:$LINENO: result: yes" >&5
5050 echo "${ECHO_T}yes" >&6
5051 else
5052 rm -f confauto.out
5053 echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6
5055 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5056 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5057 { (exit 1); exit 1; }; }
5058 fi
5059 rm -f confauto.out
5060
5061 # Check if the executable automake is picked up from the correct location
5062 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5063 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5064 automake_dir=`which automake | sed -e 's=/automake=='`
5065 automake_dir=`cd $automake_dir; pwd`
5066 if test x$AUTOTOOLS_DIR = x; then
5067 want_dir=$AUTOTOOLS_DFLT/bin
5068 else
5069 want_dir=$AUTOTOOLS_DIR/bin
5070 fi
5071 if test $automake_dir = `cd $want_dir; pwd`; then
5072 echo "$as_me:$LINENO: result: yes" >&5
5073 echo "${ECHO_T}yes" >&6
5074 else
5075 rm -f confauto.out
5076 echo "$as_me:$LINENO: result: no" >&5
5077 echo "${ECHO_T}no" >&6
5078 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5079 echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5080 { (exit 1); exit 1; }; }
5081 fi
5082
5083 # Check if this is the correct version of libtool (with escaped dots)
5084 if test x$AUTOTOOLS_DIR = x; then
5085 want_dir=$AUTOTOOLS_DFLT/share
5086 else
5087 want_dir=$AUTOTOOLS_DIR/share
5088 fi
5089 correct_version='1.5.22'
5090 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5091 if test -r $want_dir/libtool/ltmain.sh; then
5092 have_ltmain=yes
5093 :
5094 else
5095 have_ltmain=no
5096 :
5097 fi
5098
5099 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5100 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5101 if test $have_ltmain = yes; then
5102 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5103 echo "$as_me:$LINENO: result: yes" >&5
5104 echo "${ECHO_T}yes" >&6
5105 else
5106 echo "$as_me:$LINENO: result: no" >&5
5107 echo "${ECHO_T}no" >&6
5108 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5109 echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5110 { (exit 1); exit 1; }; }
5111 fi
5112 else
5113 echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6
5115 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5116 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5117 { (exit 1); exit 1; }; }
5118 fi
5119 fi
5120
5121 # Check if we can find the libtool file
5122 if test x$AUTOTOOLS_DIR = x; then
5123 want_dir=$AUTOTOOLS_DFLT/share
5124 else
5125 want_dir=$AUTOTOOLS_DIR/share
5126 fi
5127 if test -r $want_dir/aclocal/libtool.m4; then
5128 LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5129 :
5130 else
5131 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5132 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5133 { (exit 1); exit 1; }; }
5134 :
5135 fi
5136
5137
5138 # Check if we have an Dependencies file
5139 if test -r $srcdir/Dependencies; then
5140 coin_have_externals=yes
5141 fi
5142 # Check if subversion is installed and understands https
5143 # Extract the first word of "svn", so it can be a program name with args.
5144 set dummy svn; ac_word=$2
5145 echo "$as_me:$LINENO: checking for $ac_word" >&5
5146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5147 if test "${ac_cv_prog_have_svn+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150 if test -n "$have_svn"; then
5151 ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5155 do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_have_svn="yes"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5163 fi
5164 done
5165 done
5166
5167 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5168 fi
5169 fi
5170 have_svn=$ac_cv_prog_have_svn
5171 if test -n "$have_svn"; then
5172 echo "$as_me:$LINENO: result: $have_svn" >&5
5173 echo "${ECHO_T}$have_svn" >&6
5174 else
5175 echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5177 fi
5178
5179 if test x$have_svn = xyes; then
5180 echo "$as_me:$LINENO: checking whether svn understands https" >&5
5181 echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5182 if test "${ac_cv_svn_understands_https+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185 svn --version > confauto.out 2>&1
5186 if $EGREP https confauto.out >/dev/null 2>&1; then
5187 ac_cv_svn_understands_https=yes
5188 else
5189 ac_cv_svn_understands_https=no
5190 have_svn=no
5191 ac_cv_prog_have_svn=no
5192 fi
5193 rm -f confauto.out
5194 fi
5195 echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5196 echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5197 fi
5198
5199 # Find the location of the BuildTools directory
5200 BUILDTOOLSDIR=
5201 if test -r $srcdir/BuildTools/coin.m4; then
5202 BUILDTOOLSDIR=$srcdir/BuildTools
5203 else
5204 if test -r $srcdir/../BuildTools/coin.m4; then
5205 BUILDTOOLSDIR=$srcdir/../BuildTools
5206 else
5207 if test -r $srcdir/../../BuildTools/coin.m4; then
5208 BUILDTOOLSDIR=$srcdir/../../BuildTools
5209 else
5210 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5211 echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5212 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5213 fi
5214 fi
5215 fi
5216
5217
5218 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5219 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5220 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5221 fi
5222
5223 # The following variable is set to the name of the directory where
5224 # the autotool scripts are located
5225
5226 AUX_DIR=$ac_aux_dir
5227 fi
5228
5229 # helpful variable for the base directory of this package
5230 abs_source_dir=`cd $srcdir; pwd`
5231
5232
5233 # Stuff for example Makefiles
5234 if test x$prefix = xNONE; then
5235 full_prefix=$ac_default_prefix
5236 else
5237 full_prefix=$prefix
5238 fi
5239 full_prefix=`cd $full_prefix ; pwd`
5240
5241 abs_lib_dir=$full_prefix/lib
5242
5243 abs_include_dir=$full_prefix/include
5244
5245 abs_bin_dir=$full_prefix/bin
5246
5247
5248
5249 if test $coin_have_externals = yes && test x$have_svn = xyes; then
5250 HAVE_EXTERNALS_TRUE=
5251 HAVE_EXTERNALS_FALSE='#'
5252 else
5253 HAVE_EXTERNALS_TRUE='#'
5254 HAVE_EXTERNALS_FALSE=
5255 fi
5256
5257
5258 # AC_MSG_NOTICE([End automake initialisation.])
5259
5260
5261
5262 LIBTOOL=
5263 if test -f ../libtool; then
5264 coin_config_dir=..
5265 LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5266 fi
5267 if test "x$LIBTOOL" = x; then
5268 if test -f ../../libtool; then
5269 coin_config_dir=../..
5270 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5271 fi
5272 fi
5273
5274 if test "x$LIBTOOL" = x; then
5275 # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5276 # Stuff for libtool
5277 # Check whether --enable-shared or --disable-shared was given.
5278 if test "${enable_shared+set}" = set; then
5279 enableval="$enable_shared"
5280 p=${PACKAGE-default}
5281 case $enableval in
5282 yes) enable_shared=yes ;;
5283 no) enable_shared=no ;;
5284 *)
5285 enable_shared=no
5286 # Look at the argument we got. We use all the common list separators.
5287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5288 for pkg in $enableval; do
5289 IFS="$lt_save_ifs"
5290 if test "X$pkg" = "X$p"; then
5291 enable_shared=yes
5292 fi
5293 done
5294 IFS="$lt_save_ifs"
5295 ;;
5296 esac
5297 else
5298 enable_shared=yes
5299 fi;
5300
5301 # Check whether --enable-fast-install or --disable-fast-install was given.
5302 if test "${enable_fast_install+set}" = set; then
5303 enableval="$enable_fast_install"
5304 p=${PACKAGE-default}
5305 case $enableval in
5306 yes) enable_fast_install=yes ;;
5307 no) enable_fast_install=no ;;
5308 *)
5309 enable_fast_install=no
5310 # Look at the argument we got. We use all the common list separators.
5311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5312 for pkg in $enableval; do
5313 IFS="$lt_save_ifs"
5314 if test "X$pkg" = "X$p"; then
5315 enable_fast_install=yes
5316 fi
5317 done
5318 IFS="$lt_save_ifs"
5319 ;;
5320 esac
5321 else
5322 enable_fast_install=yes
5323 fi;
5324
5325 echo "$as_me:$LINENO: checking host system type" >&5
5326 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5327 if test "${ac_cv_host+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330 ac_cv_host_alias=$host_alias
5331 test -z "$ac_cv_host_alias" &&
5332 ac_cv_host_alias=$ac_cv_build_alias
5333 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5334 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5335 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5336 { (exit 1); exit 1; }; }
5337
5338 fi
5339 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5340 echo "${ECHO_T}$ac_cv_host" >&6
5341 host=$ac_cv_host
5342 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5343 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5344 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5345
5346
5347 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5348 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5349 if test "${lt_cv_path_SED+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352 # Loop through the user's path and test for sed and gsed.
5353 # Then use that list of sed's as ones to test for truncation.
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5356 do
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for lt_ac_prog in sed gsed; do
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5362 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5363 fi
5364 done
5365 done
5366 done
5367 lt_ac_max=0
5368 lt_ac_count=0
5369 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5370 # along with /bin/sed that truncates output.
5371 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5372 test ! -f $lt_ac_sed && continue
5373 cat /dev/null > conftest.in
5374 lt_ac_count=0
5375 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5376 # Check for GNU sed and select it if it is found.
5377 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5378 lt_cv_path_SED=$lt_ac_sed
5379 break
5380 fi
5381 while true; do
5382 cat conftest.in conftest.in >conftest.tmp
5383 mv conftest.tmp conftest.in
5384 cp conftest.in conftest.nl
5385 echo >>conftest.nl
5386 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5387 cmp -s conftest.out conftest.nl || break
5388 # 10000 chars as input seems more than enough
5389 test $lt_ac_count -gt 10 && break
5390 lt_ac_count=`expr $lt_ac_count + 1`
5391 if test $lt_ac_count -gt $lt_ac_max; then
5392 lt_ac_max=$lt_ac_count
5393 lt_cv_path_SED=$lt_ac_sed
5394 fi
5395 done
5396 done
5397
5398 fi
5399
5400 SED=$lt_cv_path_SED
5401 echo "$as_me:$LINENO: result: $SED" >&5
5402 echo "${ECHO_T}$SED" >&6
5403
5404
5405 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5406 if test "${with_gnu_ld+set}" = set; then
5407 withval="$with_gnu_ld"
5408 test "$withval" = no || with_gnu_ld=yes
5409 else
5410 with_gnu_ld=no
5411 fi;
5412 ac_prog=ld
5413 if test "$GCC" = yes; then
5414 # Check if gcc -print-prog-name=ld gives a path.
5415 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5416 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5417 case $host in
5418 *-*-mingw*)
5419 # gcc leaves a trailing carriage return which upsets mingw
5420 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5421 *)
5422 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5423 esac
5424 case $ac_prog in
5425 # Accept absolute paths.
5426 [\\/]* | ?:[\\/]*)
5427 re_direlt='/[^/][^/]*/\.\./'
5428 # Canonicalize the pathname of ld
5429 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5430 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5431 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5432 done
5433 test -z "$LD" && LD="$ac_prog"
5434 ;;
5435 "")
5436 # If it fails, then pretend we aren't using GCC.
5437 ac_prog=ld
5438 ;;
5439 *)
5440 # If it is relative, then search for the first ld in PATH.
5441 with_gnu_ld=unknown
5442 ;;
5443 esac
5444 elif test "$with_gnu_ld" = yes; then
5445 echo "$as_me:$LINENO: checking for GNU ld" >&5
5446 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5447 else
5448 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5449 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5450 fi
5451 if test "${lt_cv_path_LD+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454 if test -z "$LD"; then
5455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5456 for ac_dir in $PATH; do
5457 IFS="$lt_save_ifs"
5458 test -z "$ac_dir" && ac_dir=.
5459 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5460 lt_cv_path_LD="$ac_dir/$ac_prog"
5461 # Check to see if the program is GNU ld. I'd rather use --version,
5462 # but apparently some variants of GNU ld only accept -v.
5463 # Break only if it was the GNU/non-GNU ld that we prefer.
5464 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5465 *GNU* | *'with BFD'*)
5466 test "$with_gnu_ld" != no && break
5467 ;;
5468 *)
5469 test "$with_gnu_ld" != yes && break
5470 ;;
5471 esac
5472 fi
5473 done
5474 IFS="$lt_save_ifs"
5475 else
5476 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5477 fi
5478 fi
5479
5480 LD="$lt_cv_path_LD"
5481 if test -n "$LD"; then
5482 echo "$as_me:$LINENO: result: $LD" >&5
5483 echo "${ECHO_T}$LD" >&6
5484 else
5485 echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6
5487 fi
5488 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5489 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5490 { (exit 1); exit 1; }; }
5491 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5492 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5493 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5497 case `$LD -v 2>&1 </dev/null` in
5498 *GNU* | *'with BFD'*)
5499 lt_cv_prog_gnu_ld=yes
5500 ;;
5501 *)
5502 lt_cv_prog_gnu_ld=no
5503 ;;
5504 esac
5505 fi
5506 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5507 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5508 with_gnu_ld=$lt_cv_prog_gnu_ld
5509
5510
5511 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5512 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5513 if test "${lt_cv_ld_reload_flag+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516 lt_cv_ld_reload_flag='-r'
5517 fi
5518 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5519 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5520 reload_flag=$lt_cv_ld_reload_flag
5521 case $reload_flag in
5522 "" | " "*) ;;
5523 *) reload_flag=" $reload_flag" ;;
5524 esac
5525 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5526 case $host_os in
5527 darwin*)
5528 if test "$GCC" = yes; then
5529 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5530 else
5531 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5532 fi
5533 ;;
5534 esac
5535
5536 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5537 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5538 if test "${lt_cv_path_NM+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541 if test -n "$NM"; then
5542 # Let the user override the test.
5543 lt_cv_path_NM="$NM"
5544 else
5545 lt_nm_to_check="${ac_tool_prefix}nm"
5546 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5547 lt_nm_to_check="$lt_nm_to_check nm"
5548 fi
5549 for lt_tmp_nm in $lt_nm_to_check; do
5550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5551 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5552 IFS="$lt_save_ifs"
5553 test -z "$ac_dir" && ac_dir=.
5554 tmp_nm="$ac_dir/$lt_tmp_nm"
5555 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5556 # Check to see if the nm accepts a BSD-compat flag.
5557 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5558 # nm: unknown option "B" ignored
5559 # Tru64's nm complains that /dev/null is an invalid object file
5560 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5561 */dev/null* | *'Invalid file or object type'*)
5562 lt_cv_path_NM="$tmp_nm -B"
5563 break
5564 ;;
5565 *)
5566 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5567 */dev/null*)
5568 lt_cv_path_NM="$tmp_nm -p"
5569 break
5570 ;;
5571 *)
5572 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5573 continue # so that we can try to find one that supports BSD flags
5574 ;;
5575 esac
5576 ;;
5577 esac
5578 fi
5579 done
5580 IFS="$lt_save_ifs"
5581 done
5582 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5583 fi
5584 fi
5585 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5586 echo "${ECHO_T}$lt_cv_path_NM" >&6
5587 NM="$lt_cv_path_NM"
5588
5589 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5590 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5591 if test "${lt_cv_deplibs_check_method+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594 lt_cv_file_magic_cmd='$MAGIC_CMD'
5595 lt_cv_file_magic_test_file=
5596 lt_cv_deplibs_check_method='unknown'
5597 # Need to set the preceding variable on all platforms that support
5598 # interlibrary dependencies.
5599 # 'none' -- dependencies not supported.
5600 # `unknown' -- same as none, but documents that we really don't know.
5601 # 'pass_all' -- all dependencies passed with no checks.
5602 # 'test_compile' -- check by making test program.
5603 # 'file_magic [[regex]]' -- check by looking for files in library path
5604 # which responds to the $file_magic_cmd with a given extended regex.
5605 # If you have `file' or equivalent on your system and you're not sure
5606 # whether `pass_all' will *always* work, you probably want this one.
5607
5608 case $host_os in
5609 aix4* | aix5*)
5610 lt_cv_deplibs_check_method=pass_all
5611 ;;
5612
5613 beos*)
5614 lt_cv_deplibs_check_method=pass_all
5615 ;;
5616
5617 bsdi[45]*)
5618 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5619 lt_cv_file_magic_cmd='/usr/bin/file -L'
5620 lt_cv_file_magic_test_file=/shlib/libc.so
5621 ;;
5622
5623 cygwin*)
5624 # func_win32_libid is a shell function defined in ltmain.sh
5625 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5626 lt_cv_file_magic_cmd='func_win32_libid'
5627 ;;
5628
5629 mingw* | pw32*)
5630 # Base MSYS/MinGW do not provide the 'file' command needed by
5631 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5632 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5633 lt_cv_file_magic_cmd='$OBJDUMP -f'
5634 ;;
5635
5636 darwin* | rhapsody*)
5637 lt_cv_deplibs_check_method=pass_all
5638 ;;
5639
5640 freebsd* | kfreebsd*-gnu | dragonfly*)
5641 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5642 case $host_cpu in
5643 i*86 )
5644 # Not sure whether the presence of OpenBSD here was a mistake.
5645 # Let's accept both of them until this is cleared up.
5646 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5647 lt_cv_file_magic_cmd=/usr/bin/file
5648 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5649 ;;
5650 esac
5651 else
5652 lt_cv_deplibs_check_method=pass_all
5653 fi
5654 ;;
5655
5656 gnu*)
5657 lt_cv_deplibs_check_method=pass_all
5658 ;;
5659
5660 hpux10.20* | hpux11*)
5661 lt_cv_file_magic_cmd=/usr/bin/file
5662 case $host_cpu in
5663 ia64*)
5664 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5665 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5666 ;;
5667 hppa*64*)
5668 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]'
5669 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5670 ;;
5671 *)
5672 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5673 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5674 ;;
5675 esac
5676 ;;
5677
5678 interix3*)
5679 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5681 ;;
5682
5683 irix5* | irix6* | nonstopux*)
5684 case $LD in
5685 *-32|*"-32 ") libmagic=32-bit;;
5686 *-n32|*"-n32 ") libmagic=N32;;
5687 *-64|*"-64 ") libmagic=64-bit;;
5688 *) libmagic=never-match;;
5689 esac
5690 lt_cv_deplibs_check_method=pass_all
5691 ;;
5692
5693 # This must be Linux ELF.
5694 linux*)
5695 lt_cv_deplibs_check_method=pass_all
5696 ;;
5697
5698 netbsd*)
5699 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5701 else
5702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5703 fi
5704 ;;
5705
5706 newos6*)
5707 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5708 lt_cv_file_magic_cmd=/usr/bin/file
5709 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5710 ;;
5711
5712 nto-qnx*)
5713 lt_cv_deplibs_check_method=unknown
5714 ;;
5715
5716 openbsd*)
5717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5719 else
5720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5721 fi
5722 ;;
5723
5724 osf3* | osf4* | osf5*)
5725 lt_cv_deplibs_check_method=pass_all
5726 ;;
5727
5728 solaris*)
5729 lt_cv_deplibs_check_method=pass_all
5730 ;;
5731
5732 sysv4 | sysv4.3*)
5733 case $host_vendor in
5734 motorola)
5735 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]'
5736 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5737 ;;
5738 ncr)
5739 lt_cv_deplibs_check_method=pass_all
5740 ;;
5741 sequent)
5742 lt_cv_file_magic_cmd='/bin/file'
5743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5744 ;;
5745 sni)
5746 lt_cv_file_magic_cmd='/bin/file'
5747 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5748 lt_cv_file_magic_test_file=/lib/libc.so
5749 ;;
5750 siemens)
5751 lt_cv_deplibs_check_method=pass_all
5752 ;;
5753 pc)
5754 lt_cv_deplibs_check_method=pass_all
5755 ;;
5756 esac
5757 ;;
5758
5759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5760 lt_cv_deplibs_check_method=pass_all
5761 ;;
5762 esac
5763
5764 fi
5765 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5766 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5767 file_magic_cmd=$lt_cv_file_magic_cmd
5768 deplibs_check_method=$lt_cv_deplibs_check_method
5769 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5770
5771
5772
5773
5774 # If no C compiler was specified, use CC.
5775 LTCC=${LTCC-"$CC"}
5776
5777 # If no C compiler flags were specified, use CFLAGS.
5778 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5779
5780 # Allow CC to be a program name with arguments.
5781 compiler=$CC
5782
5783 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5784 if test "${enable_libtool_lock+set}" = set; then
5785 enableval="$enable_libtool_lock"
5786
5787 fi;
5788 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5789
5790 # Some flags need to be propagated to the compiler or linker for good
5791 # libtool support.
5792 case $host in
5793 ia64-*-hpux*)
5794 # Find out which ABI we are using.
5795 echo 'int i;' > conftest.$ac_ext
5796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797 (eval $ac_compile) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; then
5801 case `/usr/bin/file conftest.$ac_objext` in
5802 *ELF-32*)
5803 HPUX_IA64_MODE="32"
5804 ;;
5805 *ELF-64*)
5806 HPUX_IA64_MODE="64"
5807 ;;
5808 esac
5809 fi
5810 rm -rf conftest*
5811 ;;
5812 *-*-irix6*)
5813 # Find out which ABI we are using.
5814 echo '#line 5814 "configure"' > conftest.$ac_ext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816 (eval $ac_compile) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; then
5820 if test "$lt_cv_prog_gnu_ld" = yes; then
5821 case `/usr/bin/file conftest.$ac_objext` in
5822 *32-bit*)
5823 LD="${LD-ld} -melf32bsmip"
5824 ;;
5825 *N32*)
5826 LD="${LD-ld} -melf32bmipn32"
5827 ;;
5828 *64-bit*)
5829 LD="${LD-ld} -melf64bmip"
5830 ;;
5831 esac
5832 else
5833 case `/usr/bin/file conftest.$ac_objext` in
5834 *32-bit*)
5835 LD="${LD-ld} -32"
5836 ;;
5837 *N32*)
5838 LD="${LD-ld} -n32"
5839 ;;
5840 *64-bit*)
5841 LD="${LD-ld} -64"
5842 ;;
5843 esac
5844 fi
5845 fi
5846 rm -rf conftest*
5847 ;;
5848
5849 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5850 # Find out which ABI we are using.
5851 echo 'int i;' > conftest.$ac_ext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5853 (eval $ac_compile) 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; then
5857 case `/usr/bin/file conftest.o` in
5858 *32-bit*)
5859 case $host in
5860 x86_64-*linux*)
5861 LD="${LD-ld} -m elf_i386"
5862 ;;
5863 ppc64-*linux*|powerpc64-*linux*)
5864 LD="${LD-ld} -m elf32ppclinux"
5865 ;;
5866 s390x-*linux*)
5867 LD="${LD-ld} -m elf_s390"
5868 ;;
5869 sparc64-*linux*)
5870 LD="${LD-ld} -m elf32_sparc"
5871 ;;
5872 esac
5873 ;;
5874 *64-bit*)
5875 case $host in
5876 x86_64-*linux*)
5877 LD="${LD-ld} -m elf_x86_64"
5878 ;;
5879 ppc*-*linux*|powerpc*-*linux*)
5880 LD="${LD-ld} -m elf64ppc"
5881 ;;
5882 s390*-*linux*)
5883 LD="${LD-ld} -m elf64_s390"
5884 ;;
5885 sparc*-*linux*)
5886 LD="${LD-ld} -m elf64_sparc"
5887 ;;
5888 esac
5889 ;;
5890 esac
5891 fi
5892 rm -rf conftest*
5893 ;;
5894
5895 *-*-sco3.2v5*)
5896 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5897 SAVE_CFLAGS="$CFLAGS"
5898 CFLAGS="$CFLAGS -belf"
5899 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5900 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5901 if test "${lt_cv_cc_needs_belf+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 ac_ext=c
5905 ac_cpp='$CPP $CPPFLAGS'
5906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5909
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916
5917 int
5918 main ()
5919 {
5920
5921 ;
5922 return 0;
5923 }
5924 _ACEOF
5925 rm -f conftest.$ac_objext conftest$ac_exeext
5926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5927 (eval $ac_link) 2>conftest.er1
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try='test -z "$ac_c_werror_flag"
5935 || test ! -s conftest.err'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; } &&
5941 { ac_try='test -s conftest$ac_exeext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5947 lt_cv_cc_needs_belf=yes
5948 else
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5951
5952 lt_cv_cc_needs_belf=no
5953 fi
5954 rm -f conftest.err conftest.$ac_objext \
5955 conftest$ac_exeext conftest.$ac_ext
5956 ac_ext=c
5957 ac_cpp='$CPP $CPPFLAGS'
5958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5961
5962 fi
5963 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5964 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5965 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5966 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5967 CFLAGS="$SAVE_CFLAGS"
5968 fi
5969 ;;
5970 sparc*-*solaris*)
5971 # Find out which ABI we are using.
5972 echo 'int i;' > conftest.$ac_ext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974 (eval $ac_compile) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; then
5978 case `/usr/bin/file conftest.o` in
5979 *64-bit*)
5980 case $lt_cv_prog_gnu_ld in
5981 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5982 *) LD="${LD-ld} -64" ;;
5983 esac
5984 ;;
5985 esac
5986 fi
5987 rm -rf conftest*
5988 ;;
5989
5990
5991 esac
5992
5993 need_locks="$enable_libtool_lock"
5994
5995
5996 ac_ext=c
5997 ac_cpp='$CPP $CPPFLAGS'
5998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6001 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6002 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6003 # On Suns, sometimes $CPP names a directory.
6004 if test -n "$CPP" && test -d "$CPP"; then
6005 CPP=
6006 fi
6007 if test -z "$CPP"; then
6008 if test "${ac_cv_prog_CPP+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011 # Double quotes because CPP needs to be expanded
6012 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6013 do
6014 ac_preproc_ok=false
6015 for ac_c_preproc_warn_flag in '' yes
6016 do
6017 # Use a header file that comes with gcc, so configuring glibc
6018 # with a fresh cross-compiler works.
6019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6020 # <limits.h> exists even on freestanding compilers.
6021 # On the NeXT, cc -E runs the code through the compiler's parser,
6022 # not just through cpp. "Syntax error" is here to catch this case.
6023 cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h. */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 #ifdef __STDC__
6030 # include <limits.h>
6031 #else
6032 # include <assert.h>
6033 #endif
6034 Syntax error
6035 _ACEOF
6036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } >/dev/null; then
6044 if test -s conftest.err; then
6045 ac_cpp_err=$ac_c_preproc_warn_flag
6046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6047 else
6048 ac_cpp_err=
6049 fi
6050 else
6051 ac_cpp_err=yes
6052 fi
6053 if test -z "$ac_cpp_err"; then
6054 :
6055 else
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6058
6059 # Broken: fails on valid input.
6060 continue
6061 fi
6062 rm -f conftest.err conftest.$ac_ext
6063
6064 # OK, works on sane cases. Now check whether non-existent headers
6065 # can be detected and how.
6066 cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h. */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 #include <ac_nonexistent.h>
6073 _ACEOF
6074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6076 ac_status=$?
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } >/dev/null; then
6082 if test -s conftest.err; then
6083 ac_cpp_err=$ac_c_preproc_warn_flag
6084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6085 else
6086 ac_cpp_err=
6087 fi
6088 else
6089 ac_cpp_err=yes
6090 fi
6091 if test -z "$ac_cpp_err"; then
6092 # Broken: success on invalid input.
6093 continue
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6097
6098 # Passes both tests.
6099 ac_preproc_ok=:
6100 break
6101 fi
6102 rm -f conftest.err conftest.$ac_ext
6103
6104 done
6105 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6106 rm -f conftest.err conftest.$ac_ext
6107 if $ac_preproc_ok; then
6108 break
6109 fi
6110
6111 done
6112 ac_cv_prog_CPP=$CPP
6113
6114 fi
6115 CPP=$ac_cv_prog_CPP
6116 else
6117 ac_cv_prog_CPP=$CPP
6118 fi
6119 echo "$as_me:$LINENO: result: $CPP" >&5
6120 echo "${ECHO_T}$CPP" >&6
6121 ac_preproc_ok=false
6122 for ac_c_preproc_warn_flag in '' yes
6123 do
6124 # Use a header file that comes with gcc, so configuring glibc
6125 # with a fresh cross-compiler works.
6126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6127 # <limits.h> exists even on freestanding compilers.
6128 # On the NeXT, cc -E runs the code through the compiler's parser,
6129 # not just through cpp. "Syntax error" is here to catch this case.
6130 cat >conftest.$ac_ext <<_ACEOF
6131 /* confdefs.h. */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 #ifdef __STDC__
6137 # include <limits.h>
6138 #else
6139 # include <assert.h>
6140 #endif
6141 Syntax error
6142 _ACEOF
6143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } >/dev/null; then
6151 if test -s conftest.err; then
6152 ac_cpp_err=$ac_c_preproc_warn_flag
6153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6154 else
6155 ac_cpp_err=
6156 fi
6157 else
6158 ac_cpp_err=yes
6159 fi
6160 if test -z "$ac_cpp_err"; then
6161 :
6162 else
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6165
6166 # Broken: fails on valid input.
6167 continue
6168 fi
6169 rm -f conftest.err conftest.$ac_ext
6170
6171 # OK, works on sane cases. Now check whether non-existent headers
6172 # can be detected and how.
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #include <ac_nonexistent.h>
6180 _ACEOF
6181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev/null; then
6189 if test -s conftest.err; then
6190 ac_cpp_err=$ac_c_preproc_warn_flag
6191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6192 else
6193 ac_cpp_err=
6194 fi
6195 else
6196 ac_cpp_err=yes
6197 fi
6198 if test -z "$ac_cpp_err"; then
6199 # Broken: success on invalid input.
6200 continue
6201 else
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6204
6205 # Passes both tests.
6206 ac_preproc_ok=:
6207 break
6208 fi
6209 rm -f conftest.err conftest.$ac_ext
6210
6211 done
6212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6213 rm -f conftest.err conftest.$ac_ext
6214 if $ac_preproc_ok; then
6215 :
6216 else
6217 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6218 See \`config.log' for more details." >&5
6219 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6220 See \`config.log' for more details." >&2;}
6221 { (exit 1); exit 1; }; }
6222 fi
6223
6224 ac_ext=c
6225 ac_cpp='$CPP $CPPFLAGS'
6226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6229
6230
6231 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6232 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6233 if test "${ac_cv_header_stdc+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236 cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h. */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 #include <stdlib.h>
6243 #include <stdarg.h>
6244 #include <string.h>
6245 #include <float.h>
6246
6247 int
6248 main ()
6249 {
6250
6251 ;
6252 return 0;
6253 }
6254 _ACEOF
6255 rm -f conftest.$ac_objext
6256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6257 (eval $ac_compile) 2>conftest.er1
6258 ac_status=$?
6259 grep -v '^ *+' conftest.er1 >conftest.err
6260 rm -f conftest.er1
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } &&
6264 { ac_try='test -z "$ac_c_werror_flag"
6265 || test ! -s conftest.err'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 (eval $ac_try) 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; } &&
6271 { ac_try='test -s conftest.$ac_objext'
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 (eval $ac_try) 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; }; then
6277 ac_cv_header_stdc=yes
6278 else
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6281
6282 ac_cv_header_stdc=no
6283 fi
6284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6285
6286 if test $ac_cv_header_stdc = yes; then
6287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 #include <string.h>
6295
6296 _ACEOF
6297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6298 $EGREP "memchr" >/dev/null 2>&1; then
6299 :
6300 else
6301 ac_cv_header_stdc=no
6302 fi
6303 rm -f conftest*
6304
6305 fi
6306
6307 if test $ac_cv_header_stdc = yes; then
6308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6309 cat >conftest.$ac_ext <<_ACEOF
6310 /* confdefs.h. */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6315 #include <stdlib.h>
6316
6317 _ACEOF
6318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6319 $EGREP "free" >/dev/null 2>&1; then
6320 :
6321 else
6322 ac_cv_header_stdc=no
6323 fi
6324 rm -f conftest*
6325
6326 fi
6327
6328 if test $ac_cv_header_stdc = yes; then
6329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6330 if test "$cross_compiling" = yes; then
6331 :
6332 else
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 #include <ctype.h>
6340 #if ((' ' & 0x0FF) == 0x020)
6341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6343 #else
6344 # define ISLOWER(c) \
6345 (('a' <= (c) && (c) <= 'i') \
6346 || ('j' <= (c) && (c) <= 'r') \
6347 || ('s' <= (c) && (c) <= 'z'))
6348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6349 #endif
6350
6351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6352 int
6353 main ()
6354 {
6355 int i;
6356 for (i = 0; i < 256; i++)
6357 if (XOR (islower (i), ISLOWER (i))
6358 || toupper (i) != TOUPPER (i))
6359 exit(2);
6360 exit (0);
6361 }
6362 _ACEOF
6363 rm -f conftest$ac_exeext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365 (eval $ac_link) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 (eval $ac_try) 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6374 :
6375 else
6376 echo "$as_me: program exited with status $ac_status" >&5
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6379
6380 ( exit $ac_status )
6381 ac_cv_header_stdc=no
6382 fi
6383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6384 fi
6385 fi
6386 fi
6387 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6388 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6389 if test $ac_cv_header_stdc = yes; then
6390
6391 cat >>confdefs.h <<\_ACEOF
6392 #define STDC_HEADERS 1
6393 _ACEOF
6394
6395 fi
6396
6397 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6408 inttypes.h stdint.h unistd.h
6409 do
6410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6411 echo "$as_me:$LINENO: checking for $ac_header" >&5
6412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416 cat >conftest.$ac_ext <<_ACEOF
6417 /* confdefs.h. */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 $ac_includes_default
6423
6424 #include <$ac_header>
6425 _ACEOF
6426 rm -f conftest.$ac_objext
6427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6428 (eval $ac_compile) 2>conftest.er1
6429 ac_status=$?
6430 grep -v '^ *+' conftest.er1 >conftest.err
6431 rm -f conftest.er1
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } &&
6435 { ac_try='test -z "$ac_c_werror_flag"
6436 || test ! -s conftest.err'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 (eval $ac_try) 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; } &&
6442 { ac_try='test -s conftest.$ac_objext'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; }; then
6448 eval "$as_ac_Header=yes"
6449 else
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6452
6453 eval "$as_ac_Header=no"
6454 fi
6455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6456 fi
6457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6460 cat >>confdefs.h <<_ACEOF
6461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6462 _ACEOF
6463
6464 fi
6465
6466 done
6467
6468
6469
6470 for ac_header in dlfcn.h
6471 do
6472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6474 echo "$as_me:$LINENO: checking for $ac_header" >&5
6475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 fi
6479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6481 else
6482 # Is the header compilable?
6483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6485 cat >conftest.$ac_ext <<_ACEOF
6486 /* confdefs.h. */
6487 _ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 $ac_includes_default
6492 #include <$ac_header>
6493 _ACEOF
6494 rm -f conftest.$ac_objext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6496 (eval $ac_compile) 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -z "$ac_c_werror_flag"
6504 || test ! -s conftest.err'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; } &&
6510 { ac_try='test -s conftest.$ac_objext'
6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 (eval $ac_try) 2>&5
6513 ac_status=$?
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; }; then
6516 ac_header_compiler=yes
6517 else
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6520
6521 ac_header_compiler=no
6522 fi
6523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6525 echo "${ECHO_T}$ac_header_compiler" >&6
6526
6527 # Is the header present?
6528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6530 cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h. */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 #include <$ac_header>
6537 _ACEOF
6538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } >/dev/null; then
6546 if test -s conftest.err; then
6547 ac_cpp_err=$ac_c_preproc_warn_flag
6548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6549 else
6550 ac_cpp_err=
6551 fi
6552 else
6553 ac_cpp_err=yes
6554 fi
6555 if test -z "$ac_cpp_err"; then
6556 ac_header_preproc=yes
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6560
6561 ac_header_preproc=no
6562 fi
6563 rm -f conftest.err conftest.$ac_ext
6564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6565 echo "${ECHO_T}$ac_header_preproc" >&6
6566
6567 # So? What about this header?
6568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6569 yes:no: )
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6574 ac_header_preproc=yes
6575 ;;
6576 no:yes:* )
6577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6589 (
6590 cat <<\_ASBOX
6591 ## ---------------------------------------- ##
6592 ## Report this to [email protected] ##
6593 ## ---------------------------------------- ##
6594 _ASBOX
6595 ) |
6596 sed "s/^/$as_me: WARNING: /" >&2
6597 ;;
6598 esac
6599 echo "$as_me:$LINENO: checking for $ac_header" >&5
6600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 eval "$as_ac_Header=\$ac_header_preproc"
6605 fi
6606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6608
6609 fi
6610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6611 cat >>confdefs.h <<_ACEOF
6612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6613 _ACEOF
6614
6615 fi
6616
6617 done
6618
6619
6620
6621 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6622 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6623 (test "X$CXX" != "Xg++"))) ; then
6624 ac_ext=cc
6625 ac_cpp='$CXXCPP $CPPFLAGS'
6626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6629 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6630 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6631 if test -z "$CXXCPP"; then
6632 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635 # Double quotes because CXXCPP needs to be expanded
6636 for CXXCPP in "$CXX -E" "/lib/cpp"
6637 do
6638 ac_preproc_ok=false
6639 for ac_cxx_preproc_warn_flag in '' yes
6640 do
6641 # Use a header file that comes with gcc, so configuring glibc
6642 # with a fresh cross-compiler works.
6643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6644 # <limits.h> exists even on freestanding compilers.
6645 # On the NeXT, cc -E runs the code through the compiler's parser,
6646 # not just through cpp. "Syntax error" is here to catch this case.
6647 cat >conftest.$ac_ext <<_ACEOF
6648 /* confdefs.h. */
6649 _ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6653 #ifdef __STDC__
6654 # include <limits.h>
6655 #else
6656 # include <assert.h>
6657 #endif
6658 Syntax error
6659 _ACEOF
6660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } >/dev/null; then
6668 if test -s conftest.err; then
6669 ac_cpp_err=$ac_cxx_preproc_warn_flag
6670 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6671 else
6672 ac_cpp_err=
6673 fi
6674 else
6675 ac_cpp_err=yes
6676 fi
6677 if test -z "$ac_cpp_err"; then
6678 :
6679 else
6680 echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6682
6683 # Broken: fails on valid input.
6684 continue
6685 fi
6686 rm -f conftest.err conftest.$ac_ext
6687
6688 # OK, works on sane cases. Now check whether non-existent headers
6689 # can be detected and how.
6690 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h. */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 #include <ac_nonexistent.h>
6697 _ACEOF
6698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6700 ac_status=$?
6701 grep -v '^ *+' conftest.er1 >conftest.err
6702 rm -f conftest.er1
6703 cat conftest.err >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } >/dev/null; then
6706 if test -s conftest.err; then
6707 ac_cpp_err=$ac_cxx_preproc_warn_flag
6708 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6709 else
6710 ac_cpp_err=
6711 fi
6712 else
6713 ac_cpp_err=yes
6714 fi
6715 if test -z "$ac_cpp_err"; then
6716 # Broken: success on invalid input.
6717 continue
6718 else
6719 echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6721
6722 # Passes both tests.
6723 ac_preproc_ok=:
6724 break
6725 fi
6726 rm -f conftest.err conftest.$ac_ext
6727
6728 done
6729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6730 rm -f conftest.err conftest.$ac_ext
6731 if $ac_preproc_ok; then
6732 break
6733 fi
6734
6735 done
6736 ac_cv_prog_CXXCPP=$CXXCPP
6737
6738 fi
6739 CXXCPP=$ac_cv_prog_CXXCPP
6740 else
6741 ac_cv_prog_CXXCPP=$CXXCPP
6742 fi
6743 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6744 echo "${ECHO_T}$CXXCPP" >&6
6745 ac_preproc_ok=false
6746 for ac_cxx_preproc_warn_flag in '' yes
6747 do
6748 # Use a header file that comes with gcc, so configuring glibc
6749 # with a fresh cross-compiler works.
6750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6751 # <limits.h> exists even on freestanding compilers.
6752 # On the NeXT, cc -E runs the code through the compiler's parser,
6753 # not just through cpp. "Syntax error" is here to catch this case.
6754 cat >conftest.$ac_ext <<_ACEOF
6755 /* confdefs.h. */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 #ifdef __STDC__
6761 # include <limits.h>
6762 #else
6763 # include <assert.h>
6764 #endif
6765 Syntax error
6766 _ACEOF
6767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6769 ac_status=$?
6770 grep -v '^ *+' conftest.er1 >conftest.err
6771 rm -f conftest.er1
6772 cat conftest.err >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } >/dev/null; then
6775 if test -s conftest.err; then
6776 ac_cpp_err=$ac_cxx_preproc_warn_flag
6777 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6778 else
6779 ac_cpp_err=
6780 fi
6781 else
6782 ac_cpp_err=yes
6783 fi
6784 if test -z "$ac_cpp_err"; then
6785 :
6786 else
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6789
6790 # Broken: fails on valid input.
6791 continue
6792 fi
6793 rm -f conftest.err conftest.$ac_ext
6794
6795 # OK, works on sane cases. Now check whether non-existent headers
6796 # can be detected and how.
6797 cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h. */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 #include <ac_nonexistent.h>
6804 _ACEOF
6805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6807 ac_status=$?
6808 grep -v '^ *+' conftest.er1 >conftest.err
6809 rm -f conftest.er1
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } >/dev/null; then
6813 if test -s conftest.err; then
6814 ac_cpp_err=$ac_cxx_preproc_warn_flag
6815 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6816 else
6817 ac_cpp_err=
6818 fi
6819 else
6820 ac_cpp_err=yes
6821 fi
6822 if test -z "$ac_cpp_err"; then
6823 # Broken: success on invalid input.
6824 continue
6825 else
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6828
6829 # Passes both tests.
6830 ac_preproc_ok=:
6831 break
6832 fi
6833 rm -f conftest.err conftest.$ac_ext
6834
6835 done
6836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6837 rm -f conftest.err conftest.$ac_ext
6838 if $ac_preproc_ok; then
6839 :
6840 else
6841 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6842 See \`config.log' for more details." >&5
6843 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6844 See \`config.log' for more details." >&2;}
6845 { (exit 1); exit 1; }; }
6846 fi
6847
6848 ac_ext=cc
6849 ac_cpp='$CXXCPP $CPPFLAGS'
6850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6853
6854 fi
6855
6856 ac_ext=f
6857 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6858 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6859 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6860 if test -n "$ac_tool_prefix"; then
6861 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6862 do
6863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6865 echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6867 if test "${ac_cv_prog_F77+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870 if test -n "$F77"; then
6871 ac_cv_prog_F77="$F77" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6880 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6883 fi
6884 done
6885 done
6886
6887 fi
6888 fi
6889 F77=$ac_cv_prog_F77
6890 if test -n "$F77"; then
6891 echo "$as_me:$LINENO: result: $F77" >&5
6892 echo "${ECHO_T}$F77" >&6
6893 else
6894 echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6
6896 fi
6897
6898 test -n "$F77" && break
6899 done
6900 fi
6901 if test -z "$F77"; then
6902 ac_ct_F77=$F77
6903 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6904 do
6905 # Extract the first word of "$ac_prog", so it can be a program name with args.
6906 set dummy $ac_prog; ac_word=$2
6907 echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6909 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912 if test -n "$ac_ct_F77"; then
6913 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6922 ac_cv_prog_ac_ct_F77="$ac_prog"
6923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6925 fi
6926 done
6927 done
6928
6929 fi
6930 fi
6931 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6932 if test -n "$ac_ct_F77"; then
6933 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6934 echo "${ECHO_T}$ac_ct_F77" >&6
6935 else
6936 echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6
6938 fi
6939
6940 test -n "$ac_ct_F77" && break
6941 done
6942
6943 F77=$ac_ct_F77
6944 fi
6945
6946
6947 # Provide some information about the compiler.
6948 echo "$as_me:6948:" \
6949 "checking for Fortran 77 compiler version" >&5
6950 ac_compiler=`set X $ac_compile; echo $2`
6951 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6952 (eval $ac_compiler --version </dev/null >&5) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }
6956 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6957 (eval $ac_compiler -v </dev/null >&5) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }
6961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6962 (eval $ac_compiler -V </dev/null >&5) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }
6966 rm -f a.out
6967
6968 # If we don't use `.F' as extension, the preprocessor is not run on the
6969 # input file. (Note that this only needs to work for GNU compilers.)
6970 ac_save_ext=$ac_ext
6971 ac_ext=F
6972 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6973 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6974 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977 cat >conftest.$ac_ext <<_ACEOF
6978 program main
6979 #ifndef __GNUC__
6980 choke me
6981 #endif
6982
6983 end
6984 _ACEOF
6985 rm -f conftest.$ac_objext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6987 (eval $ac_compile) 2>conftest.er1
6988 ac_status=$?
6989 grep -v '^ *+' conftest.er1 >conftest.err
6990 rm -f conftest.er1
6991 cat conftest.err >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try='test -z "$ac_f77_werror_flag"
6995 || test ! -s conftest.err'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 (eval $ac_try) 2>&5
6998 ac_status=$?
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; } &&
7001 { ac_try='test -s conftest.$ac_objext'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 (eval $ac_try) 2>&5
7004 ac_status=$?
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007 ac_compiler_gnu=yes
7008 else
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7011
7012 ac_compiler_gnu=no
7013 fi
7014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7015 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7016
7017 fi
7018 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7019 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7020 ac_ext=$ac_save_ext
7021 ac_test_FFLAGS=${FFLAGS+set}
7022 ac_save_FFLAGS=$FFLAGS
7023 FFLAGS=
7024 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7025 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7026 if test "${ac_cv_prog_f77_g+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029 FFLAGS=-g
7030 cat >conftest.$ac_ext <<_ACEOF
7031 program main
7032
7033 end
7034 _ACEOF
7035 rm -f conftest.$ac_objext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037 (eval $ac_compile) 2>conftest.er1
7038 ac_status=$?
7039 grep -v '^ *+' conftest.er1 >conftest.err
7040 rm -f conftest.er1
7041 cat conftest.err >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try='test -z "$ac_f77_werror_flag"
7045 || test ! -s conftest.err'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 (eval $ac_try) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; } &&
7051 { ac_try='test -s conftest.$ac_objext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7057 ac_cv_prog_f77_g=yes
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7061
7062 ac_cv_prog_f77_g=no
7063 fi
7064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7065
7066 fi
7067 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7068 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7069 if test "$ac_test_FFLAGS" = set; then
7070 FFLAGS=$ac_save_FFLAGS
7071 elif test $ac_cv_prog_f77_g = yes; then
7072 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7073 FFLAGS="-g -O2"
7074 else
7075 FFLAGS="-g"
7076 fi
7077 else
7078 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7079 FFLAGS="-O2"
7080 else
7081 FFLAGS=
7082 fi
7083 fi
7084
7085 G77=`test $ac_compiler_gnu = yes && echo yes`
7086 ac_ext=c
7087 ac_cpp='$CPP $CPPFLAGS'
7088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7091
7092
7093
7094 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7095
7096 # find the maximum length of command line arguments
7097 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7098 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7099 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102 i=0
7103 teststring="ABCD"
7104
7105 case $build_os in
7106 msdosdjgpp*)
7107 # On DJGPP, this test can blow up pretty badly due to problems in libc
7108 # (any single argument exceeding 2000 bytes causes a buffer overrun
7109 # during glob expansion). Even if it were fixed, the result of this
7110 # check would be larger than it should be.
7111 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7112 ;;
7113
7114 gnu*)
7115 # Under GNU Hurd, this test is not required because there is
7116 # no limit to the length of command line arguments.
7117 # Libtool will interpret -1 as no limit whatsoever
7118 lt_cv_sys_max_cmd_len=-1;
7119 ;;
7120
7121 cygwin* | mingw*)
7122 # On Win9x/ME, this test blows up -- it succeeds, but takes
7123 # about 5 minutes as the teststring grows exponentially.
7124 # Worse, since 9x/ME are not pre-emptively multitasking,
7125 # you end up with a "frozen" computer, even though with patience
7126 # the test eventually succeeds (with a max line length of 256k).
7127 # Instead, let's just punt: use the minimum linelength reported by
7128 # all of the supported platforms: 8192 (on NT/2K/XP).
7129 lt_cv_sys_max_cmd_len=8192;
7130 ;;
7131
7132 amigaos*)
7133 # On AmigaOS with pdksh, this test takes hours, literally.
7134 # So we just punt and use a minimum line length of 8192.
7135 lt_cv_sys_max_cmd_len=8192;
7136 ;;
7137
7138 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7139 # This has been around since 386BSD, at least. Likely further.
7140 if test -x /sbin/sysctl; then
7141 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7142 elif test -x /usr/sbin/sysctl; then
7143 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7144 else
7145 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7146 fi
7147 # And add a safety zone
7148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7150 ;;
7151
7152 interix*)
7153 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7154 lt_cv_sys_max_cmd_len=196608
7155 ;;
7156
7157 osf*)
7158 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7159 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7160 # nice to cause kernel panics so lets avoid the loop below.
7161 # First set a reasonable default.
7162 lt_cv_sys_max_cmd_len=16384
7163 #
7164 if test -x /sbin/sysconfig; then
7165 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7166 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7167 esac
7168 fi
7169 ;;
7170 sco3.2v5*)
7171 lt_cv_sys_max_cmd_len=102400
7172 ;;
7173 sysv5* | sco5v6* | sysv4.2uw2*)
7174 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7175 if test -n "$kargmax"; then
7176 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7177 else
7178 lt_cv_sys_max_cmd_len=32768
7179 fi
7180 ;;
7181 *)
7182 # If test is not a shell built-in, we'll probably end up computing a
7183 # maximum length that is only half of the actual maximum length, but
7184 # we can't tell.
7185 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7186 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7187 = "XX$teststring") >/dev/null 2>&1 &&
7188 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7189 lt_cv_sys_max_cmd_len=$new_result &&
7190 test $i != 17 # 1/2 MB should be enough
7191 do
7192 i=`expr $i + 1`
7193 teststring=$teststring$teststring
7194 done
7195 teststring=
7196 # Add a significant safety factor because C++ compilers can tack on massive
7197 # amounts of additional arguments before passing them to the linker.
7198 # It appears as though 1/2 is a usable value.
7199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7200 ;;
7201 esac
7202
7203 fi
7204
7205 if test -n $lt_cv_sys_max_cmd_len ; then
7206 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7207 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7208 else
7209 echo "$as_me:$LINENO: result: none" >&5
7210 echo "${ECHO_T}none" >&6
7211 fi
7212
7213
7214
7215
7216 # Check for command to grab the raw symbol name followed by C symbol from nm.
7217 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7218 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7219 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222
7223 # These are sane defaults that work on at least a few old systems.
7224 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7225
7226 # Character class describing NM global symbol codes.
7227 symcode='[BCDEGRST]'
7228
7229 # Regexp to match symbols that can be accessed directly from C.
7230 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7231
7232 # Transform an extracted symbol line into a proper C declaration
7233 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7234
7235 # Transform an extracted symbol line into symbol name and symbol address
7236 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'"
7237
7238 # Define system-specific variables.
7239 case $host_os in
7240 aix*)
7241 symcode='[BCDT]'
7242 ;;
7243 cygwin* | mingw* | pw32*)
7244 symcode='[ABCDGISTW]'
7245 ;;
7246 hpux*) # Its linker distinguishes data from code symbols
7247 if test "$host_cpu" = ia64; then
7248 symcode='[ABCDEGRST]'
7249 fi
7250 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7251 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'"
7252 ;;
7253 linux*)
7254 if test "$host_cpu" = ia64; then
7255 symcode='[ABCDGIRSTW]'
7256 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7257 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'"
7258 fi
7259 ;;
7260 irix* | nonstopux*)
7261 symcode='[BCDEGRST]'
7262 ;;
7263 osf*)
7264 symcode='[BCDEGQRST]'
7265 ;;
7266 solaris*)
7267 symcode='[BDRT]'
7268 ;;
7269 sco3.2v5*)
7270 symcode='[DT]'
7271 ;;
7272 sysv4.2uw2*)
7273 symcode='[DT]'
7274 ;;
7275 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7276 symcode='[ABDT]'
7277 ;;
7278 sysv4)
7279 symcode='[DFNSTU]'
7280 ;;
7281 esac
7282
7283 # Handle CRLF in mingw tool chain
7284 opt_cr=
7285 case $build_os in
7286 mingw*)
7287 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7288 ;;
7289 esac
7290
7291 # If we're using GNU nm, then use its standard symbol codes.
7292 case `$NM -V 2>&1` in
7293 *GNU* | *'with BFD'*)
7294 symcode='[ABCDGIRSTW]' ;;
7295 esac
7296
7297 # Try without a prefix undercore, then with it.
7298 for ac_symprfx in "" "_"; do
7299
7300 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7301 symxfrm="\\1 $ac_symprfx\\2 \\2"
7302
7303 # Write the raw and C identifiers.
7304 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7305
7306 # Check to see that the pipe works correctly.
7307 pipe_works=no
7308
7309 rm -f conftest*
7310 cat > conftest.$ac_ext <<EOF
7311 #ifdef __cplusplus
7312 extern "C" {
7313 #endif
7314 char nm_test_var;
7315 void nm_test_func(){}
7316 #ifdef __cplusplus
7317 }
7318 #endif
7319 int main(){nm_test_var='a';nm_test_func();return(0);}
7320 EOF
7321
7322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7323 (eval $ac_compile) 2>&5
7324 ac_status=$?
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; then
7327 # Now try to grab the symbols.
7328 nlist=conftest.nm
7329 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7330 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } && test -s "$nlist"; then
7334 # Try sorting and uniquifying the output.
7335 if sort "$nlist" | uniq > "$nlist"T; then
7336 mv -f "$nlist"T "$nlist"
7337 else
7338 rm -f "$nlist"T
7339 fi
7340
7341 # Make sure that we snagged all the symbols we need.
7342 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7343 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7344 cat <<EOF > conftest.$ac_ext
7345 #ifdef __cplusplus
7346 extern "C" {
7347 #endif
7348
7349 EOF
7350 # Now generate the symbol file.
7351 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7352
7353 cat <<EOF >> conftest.$ac_ext
7354 #if defined (__STDC__) && __STDC__
7355 # define lt_ptr_t void *
7356 #else
7357 # define lt_ptr_t char *
7358 # define const
7359 #endif
7360
7361 /* The mapping between symbol names and symbols. */
7362 const struct {
7363 const char *name;
7364 lt_ptr_t address;
7365 }
7366 lt_preloaded_symbols[] =
7367 {
7368 EOF
7369 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7370 cat <<\EOF >> conftest.$ac_ext
7371 {0, (lt_ptr_t) 0}
7372 };
7373
7374 #ifdef __cplusplus
7375 }
7376 #endif
7377 EOF
7378 # Now try linking the two files.
7379 mv conftest.$ac_objext conftstm.$ac_objext
7380 lt_save_LIBS="$LIBS"
7381 lt_save_CFLAGS="$CFLAGS"
7382 LIBS="conftstm.$ac_objext"
7383 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7385 (eval $ac_link) 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7389 pipe_works=yes
7390 fi
7391 LIBS="$lt_save_LIBS"
7392 CFLAGS="$lt_save_CFLAGS"
7393 else
7394 echo "cannot find nm_test_func in $nlist" >&5
7395 fi
7396 else
7397 echo "cannot find nm_test_var in $nlist" >&5
7398 fi
7399 else
7400 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7401 fi
7402 else
7403 echo "$progname: failed program was:" >&5
7404 cat conftest.$ac_ext >&5
7405 fi
7406 rm -f conftest* conftst*
7407
7408 # Do not use the global_symbol_pipe unless it works.
7409 if test "$pipe_works" = yes; then
7410 break
7411 else
7412 lt_cv_sys_global_symbol_pipe=
7413 fi
7414 done
7415
7416 fi
7417
7418 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7419 lt_cv_sys_global_symbol_to_cdecl=
7420 fi
7421 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7422 echo "$as_me:$LINENO: result: failed" >&5
7423 echo "${ECHO_T}failed" >&6
7424 else
7425 echo "$as_me:$LINENO: result: ok" >&5
7426 echo "${ECHO_T}ok" >&6
7427 fi
7428
7429 echo "$as_me:$LINENO: checking for objdir" >&5
7430 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7431 if test "${lt_cv_objdir+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434 rm -f .libs 2>/dev/null
7435 mkdir .libs 2>/dev/null
7436 if test -d .libs; then
7437 lt_cv_objdir=.libs
7438 else
7439 # MS-DOS does not allow filenames that begin with a dot.
7440 lt_cv_objdir=_libs
7441 fi
7442 rmdir .libs 2>/dev/null
7443 fi
7444 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7445 echo "${ECHO_T}$lt_cv_objdir" >&6
7446 objdir=$lt_cv_objdir
7447
7448
7449
7450
7451
7452 case $host_os in
7453 aix3*)
7454 # AIX sometimes has problems with the GCC collect2 program. For some
7455 # reason, if we set the COLLECT_NAMES environment variable, the problems
7456 # vanish in a puff of smoke.
7457 if test "X${COLLECT_NAMES+set}" != Xset; then
7458 COLLECT_NAMES=
7459 export COLLECT_NAMES
7460 fi
7461 ;;
7462 esac
7463
7464 # Sed substitution that helps us do robust quoting. It backslashifies
7465 # metacharacters that are still active within double-quoted strings.
7466 Xsed='sed -e 1s/^X//'
7467 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7468
7469 # Same as above, but do not quote variable references.
7470 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7471
7472 # Sed substitution to delay expansion of an escaped shell variable in a
7473 # double_quote_subst'ed string.
7474 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7475
7476 # Sed substitution to avoid accidental globbing in evaled expressions
7477 no_glob_subst='s/\*/\\\*/g'
7478
7479 # Constants:
7480 rm="rm -f"
7481
7482 # Global variables:
7483 default_ofile=libtool
7484 can_build_shared=yes
7485
7486 # All known linkers require a `.a' archive for static linking (except MSVC,
7487 # which needs '.lib').
7488 libext=a
7489 ltmain="$ac_aux_dir/ltmain.sh"
7490 ofile="$default_ofile"
7491 with_gnu_ld="$lt_cv_prog_gnu_ld"
7492
7493 if test -n "$ac_tool_prefix"; then
7494 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7495 set dummy ${ac_tool_prefix}ar; ac_word=$2
7496 echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7498 if test "${ac_cv_prog_AR+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 if test -n "$AR"; then
7502 ac_cv_prog_AR="$AR" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511 ac_cv_prog_AR="${ac_tool_prefix}ar"
7512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515 done
7516 done
7517
7518 fi
7519 fi
7520 AR=$ac_cv_prog_AR
7521 if test -n "$AR"; then
7522 echo "$as_me:$LINENO: result: $AR" >&5
7523 echo "${ECHO_T}$AR" >&6
7524 else
7525 echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6
7527 fi
7528
7529 fi
7530 if test -z "$ac_cv_prog_AR"; then
7531 ac_ct_AR=$AR
7532 # Extract the first word of "ar", so it can be a program name with args.
7533 set dummy ar; ac_word=$2
7534 echo "$as_me:$LINENO: checking for $ac_word" >&5
7535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7536 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539 if test -n "$ac_ct_AR"; then
7540 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7541 else
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549 ac_cv_prog_ac_ct_AR="ar"
7550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 break 2
7552 fi
7553 done
7554 done
7555
7556 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7557 fi
7558 fi
7559 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7560 if test -n "$ac_ct_AR"; then
7561 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7562 echo "${ECHO_T}$ac_ct_AR" >&6
7563 else
7564 echo "$as_me:$LINENO: result: no" >&5
7565 echo "${ECHO_T}no" >&6
7566 fi
7567
7568 AR=$ac_ct_AR
7569 else
7570 AR="$ac_cv_prog_AR"
7571 fi
7572
7573 if test -n "$ac_tool_prefix"; then
7574 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7575 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7576 echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7578 if test "${ac_cv_prog_RANLIB+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581 if test -n "$RANLIB"; then
7582 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7594 fi
7595 done
7596 done
7597
7598 fi
7599 fi
7600 RANLIB=$ac_cv_prog_RANLIB
7601 if test -n "$RANLIB"; then
7602 echo "$as_me:$LINENO: result: $RANLIB" >&5
7603 echo "${ECHO_T}$RANLIB" >&6
7604 else
7605 echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6
7607 fi
7608
7609 fi
7610 if test -z "$ac_cv_prog_RANLIB"; then
7611 ac_ct_RANLIB=$RANLIB
7612 # Extract the first word of "ranlib", so it can be a program name with args.
7613 set dummy ranlib; ac_word=$2
7614 echo "$as_me:$LINENO: checking for $ac_word" >&5
7615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7616 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619 if test -n "$ac_ct_RANLIB"; then
7620 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625 IFS=$as_save_IFS
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_ac_ct_RANLIB="ranlib"
7630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 break 2
7632 fi
7633 done
7634 done
7635
7636 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7637 fi
7638 fi
7639 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7640 if test -n "$ac_ct_RANLIB"; then
7641 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7642 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7643 else
7644 echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6
7646 fi
7647
7648 RANLIB=$ac_ct_RANLIB
7649 else
7650 RANLIB="$ac_cv_prog_RANLIB"
7651 fi
7652
7653 if test -n "$ac_tool_prefix"; then
7654 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7655 set dummy ${ac_tool_prefix}strip; ac_word=$2
7656 echo "$as_me:$LINENO: checking for $ac_word" >&5
7657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7658 if test "${ac_cv_prog_STRIP+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661 if test -n "$STRIP"; then
7662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7671 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 break 2
7674 fi
7675 done
7676 done
7677
7678 fi
7679 fi
7680 STRIP=$ac_cv_prog_STRIP
7681 if test -n "$STRIP"; then
7682 echo "$as_me:$LINENO: result: $STRIP" >&5
7683 echo "${ECHO_T}$STRIP" >&6
7684 else
7685 echo "$as_me:$LINENO: result: no" >&5
7686 echo "${ECHO_T}no" >&6
7687 fi
7688
7689 fi
7690 if test -z "$ac_cv_prog_STRIP"; then
7691 ac_ct_STRIP=$STRIP
7692 # Extract the first word of "strip", so it can be a program name with args.
7693 set dummy strip; ac_word=$2
7694 echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7696 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699 if test -n "$ac_ct_STRIP"; then
7700 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709 ac_cv_prog_ac_ct_STRIP="strip"
7710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 break 2
7712 fi
7713 done
7714 done
7715
7716 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7717 fi
7718 fi
7719 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7720 if test -n "$ac_ct_STRIP"; then
7721 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7722 echo "${ECHO_T}$ac_ct_STRIP" >&6
7723 else
7724 echo "$as_me:$LINENO: result: no" >&5
7725 echo "${ECHO_T}no" >&6
7726 fi
7727
7728 STRIP=$ac_ct_STRIP
7729 else
7730 STRIP="$ac_cv_prog_STRIP"
7731 fi
7732
7733
7734 old_CC="$CC"
7735 old_CFLAGS="$CFLAGS"
7736
7737 # Set sane defaults for various variables
7738 test -z "$AR" && AR=ar
7739 test -z "$AR_FLAGS" && AR_FLAGS=cru
7740 test -z "$AS" && AS=as
7741 test -z "$CC" && CC=cc
7742 test -z "$LTCC" && LTCC=$CC
7743 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7744 test -z "$DLLTOOL" && DLLTOOL=dlltool
7745 test -z "$LD" && LD=ld
7746 test -z "$LN_S" && LN_S="ln -s"
7747 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7748 test -z "$NM" && NM=nm
7749 test -z "$SED" && SED=sed
7750 test -z "$OBJDUMP" && OBJDUMP=objdump
7751 test -z "$RANLIB" && RANLIB=:
7752 test -z "$STRIP" && STRIP=:
7753 test -z "$ac_objext" && ac_objext=o
7754
7755 # Determine commands to create old-style static archives.
7756 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7757 old_postinstall_cmds='chmod 644 $oldlib'
7758 old_postuninstall_cmds=
7759
7760 if test -n "$RANLIB"; then
7761 case $host_os in
7762 openbsd*)
7763 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7764 ;;
7765 *)
7766 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7767 ;;
7768 esac
7769 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7770 fi
7771
7772 for cc_temp in $compiler""; do
7773 case $cc_temp in
7774 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7775 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7776 \-*) ;;
7777 *) break;;
7778 esac
7779 done
7780 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7781
7782
7783 # Only perform the check for file, if the check method requires it
7784 case $deplibs_check_method in
7785 file_magic*)
7786 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7787 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7788 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7789 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792 case $MAGIC_CMD in
7793 [\\/*] | ?:[\\/]*)
7794 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7795 ;;
7796 *)
7797 lt_save_MAGIC_CMD="$MAGIC_CMD"
7798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7799 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7800 for ac_dir in $ac_dummy; do
7801 IFS="$lt_save_ifs"
7802 test -z "$ac_dir" && ac_dir=.
7803 if test -f $ac_dir/${ac_tool_prefix}file; then
7804 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7805 if test -n "$file_magic_test_file"; then
7806 case $deplibs_check_method in
7807 "file_magic "*)
7808 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7810 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7811 $EGREP "$file_magic_regex" > /dev/null; then
7812 :
7813 else
7814 cat <<EOF 1>&2
7815
7816 *** Warning: the command libtool uses to detect shared libraries,
7817 *** $file_magic_cmd, produces output that libtool cannot recognize.
7818 *** The result is that libtool may fail to recognize shared libraries
7819 *** as such. This will affect the creation of libtool libraries that
7820 *** depend on shared libraries, but programs linked with such libtool
7821 *** libraries will work regardless of this problem. Nevertheless, you
7822 *** may want to report the problem to your system manager and/or to
7823 *** [email protected]
7824
7825 EOF
7826 fi ;;
7827 esac
7828 fi
7829 break
7830 fi
7831 done
7832 IFS="$lt_save_ifs"
7833 MAGIC_CMD="$lt_save_MAGIC_CMD"
7834 ;;
7835 esac
7836 fi
7837
7838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7839 if test -n "$MAGIC_CMD"; then
7840 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7841 echo "${ECHO_T}$MAGIC_CMD" >&6
7842 else
7843 echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6
7845 fi
7846
7847 if test -z "$lt_cv_path_MAGIC_CMD"; then
7848 if test -n "$ac_tool_prefix"; then
7849 echo "$as_me:$LINENO: checking for file" >&5
7850 echo $ECHO_N "checking for file... $ECHO_C" >&6
7851 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854 case $MAGIC_CMD in
7855 [\\/*] | ?:[\\/]*)
7856 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7857 ;;
7858 *)
7859 lt_save_MAGIC_CMD="$MAGIC_CMD"
7860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7861 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7862 for ac_dir in $ac_dummy; do
7863 IFS="$lt_save_ifs"
7864 test -z "$ac_dir" && ac_dir=.
7865 if test -f $ac_dir/file; then
7866 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7867 if test -n "$file_magic_test_file"; then
7868 case $deplibs_check_method in
7869 "file_magic "*)
7870 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7871 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7872 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7873 $EGREP "$file_magic_regex" > /dev/null; then
7874 :
7875 else
7876 cat <<EOF 1>&2
7877
7878 *** Warning: the command libtool uses to detect shared libraries,
7879 *** $file_magic_cmd, produces output that libtool cannot recognize.
7880 *** The result is that libtool may fail to recognize shared libraries
7881 *** as such. This will affect the creation of libtool libraries that
7882 *** depend on shared libraries, but programs linked with such libtool
7883 *** libraries will work regardless of this problem. Nevertheless, you
7884 *** may want to report the problem to your system manager and/or to
7885 *** [email protected]
7886
7887 EOF
7888 fi ;;
7889 esac
7890 fi
7891 break
7892 fi
7893 done
7894 IFS="$lt_save_ifs"
7895 MAGIC_CMD="$lt_save_MAGIC_CMD"
7896 ;;
7897 esac
7898 fi
7899
7900 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7901 if test -n "$MAGIC_CMD"; then
7902 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7903 echo "${ECHO_T}$MAGIC_CMD" >&6
7904 else
7905 echo "$as_me:$LINENO: result: no" >&5
7906 echo "${ECHO_T}no" >&6
7907 fi
7908
7909 else
7910 MAGIC_CMD=:
7911 fi
7912 fi
7913
7914 fi
7915 ;;
7916 esac
7917
7918 enable_dlopen=no
7919 enable_win32_dll=no
7920
7921 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7922 if test "${enable_libtool_lock+set}" = set; then
7923 enableval="$enable_libtool_lock"
7924
7925 fi;
7926 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7927
7928
7929 # Check whether --with-pic or --without-pic was given.
7930 if test "${with_pic+set}" = set; then
7931 withval="$with_pic"
7932 pic_mode="$withval"
7933 else
7934 pic_mode=default
7935 fi;
7936 test -z "$pic_mode" && pic_mode=default
7937
7938 # Use C for the default configuration in the libtool script
7939 tagname=
7940 lt_save_CC="$CC"
7941 ac_ext=c
7942 ac_cpp='$CPP $CPPFLAGS'
7943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7946
7947
7948 # Source file extension for C test sources.
7949 ac_ext=c
7950
7951 # Object file extension for compiled C test sources.
7952 objext=o
7953 objext=$objext
7954
7955 # Code to be used in simple compile tests
7956 lt_simple_compile_test_code="int some_variable = 0;\n"
7957
7958 # Code to be used in simple link tests
7959 lt_simple_link_test_code='int main(){return(0);}\n'
7960
7961
7962 # If no C compiler was specified, use CC.
7963 LTCC=${LTCC-"$CC"}
7964
7965 # If no C compiler flags were specified, use CFLAGS.
7966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7967
7968 # Allow CC to be a program name with arguments.
7969 compiler=$CC
7970
7971
7972 # save warnings/boilerplate of simple test code
7973 ac_outfile=conftest.$ac_objext
7974 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7975 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7976 _lt_compiler_boilerplate=`cat conftest.err`
7977 $rm conftest*
7978
7979 ac_outfile=conftest.$ac_objext
7980 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7981 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7982 _lt_linker_boilerplate=`cat conftest.err`
7983 $rm conftest*
7984
7985
7986 ## CAVEAT EMPTOR:
7987 ## There is no encapsulation within the following macros, do not change
7988 ## the running order or otherwise move them around unless you know exactly
7989 ## what you are doing...
7990
7991 lt_prog_compiler_no_builtin_flag=
7992
7993 if test "$GCC" = yes; then
7994 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7995
7996
7997 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7998 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7999 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002 lt_cv_prog_compiler_rtti_exceptions=no
8003 ac_outfile=conftest.$ac_objext
8004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8005 lt_compiler_flag="-fno-rtti -fno-exceptions"
8006 # Insert the option either (1) after the last *FLAGS variable, or
8007 # (2) before a word containing "conftest.", or (3) at the end.
8008 # Note that $ac_compile itself does not contain backslashes and begins
8009 # with a dollar sign (not a hyphen), so the echo should work correctly.
8010 # The option is referenced via a variable to avoid confusing sed.
8011 lt_compile=`echo "$ac_compile" | $SED \
8012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8014 -e 's:$: $lt_compiler_flag:'`
8015 (eval echo "\"\$as_me:8015: $lt_compile\"" >&5)
8016 (eval "$lt_compile" 2>conftest.err)
8017 ac_status=$?
8018 cat conftest.err >&5
8019 echo "$as_me:8019: \$? = $ac_status" >&5
8020 if (exit $ac_status) && test -s "$ac_outfile"; then
8021 # The compiler can only warn and ignore the option if not recognized
8022 # So say no if there are warnings other than the usual output.
8023 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8026 lt_cv_prog_compiler_rtti_exceptions=yes
8027 fi
8028 fi
8029 $rm conftest*
8030
8031 fi
8032 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8033 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8034
8035 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8036 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8037 else
8038 :
8039 fi
8040
8041 fi
8042
8043 lt_prog_compiler_wl=
8044 lt_prog_compiler_pic=
8045 lt_prog_compiler_static=
8046
8047 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8048 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8049
8050 if test "$GCC" = yes; then
8051 lt_prog_compiler_wl='-Wl,'
8052 lt_prog_compiler_static='-static'
8053
8054 case $host_os in
8055 aix*)
8056 # All AIX code is PIC.
8057 if test "$host_cpu" = ia64; then
8058 # AIX 5 now supports IA64 processor
8059 lt_prog_compiler_static='-Bstatic'
8060 fi
8061 ;;
8062
8063 amigaos*)
8064 # FIXME: we need at least 68020 code to build shared libraries, but
8065 # adding the `-m68020' flag to GCC prevents building anything better,
8066 # like `-m68040'.
8067 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8068 ;;
8069
8070 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8071 # PIC is the default for these OSes.
8072 ;;
8073
8074 mingw* | pw32* | os2*)
8075 # This hack is so that the source file can tell whether it is being
8076 # built for inclusion in a dll (and should export symbols for example).
8077 lt_prog_compiler_pic='-DDLL_EXPORT'
8078 ;;
8079
8080 darwin* | rhapsody*)
8081 # PIC is the default on this platform
8082 # Common symbols not allowed in MH_DYLIB files
8083 lt_prog_compiler_pic='-fno-common'
8084 ;;
8085
8086 interix3*)
8087 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8088 # Instead, we relocate shared libraries at runtime.
8089 ;;
8090
8091 msdosdjgpp*)
8092 # Just because we use GCC doesn't mean we suddenly get shared libraries
8093 # on systems that don't support them.
8094 lt_prog_compiler_can_build_shared=no
8095 enable_shared=no
8096 ;;
8097
8098 sysv4*MP*)
8099 if test -d /usr/nec; then
8100 lt_prog_compiler_pic=-Kconform_pic
8101 fi
8102 ;;
8103
8104 hpux*)
8105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8106 # not for PA HP-UX.
8107 case $host_cpu in
8108 hppa*64*|ia64*)
8109 # +Z the default
8110 ;;
8111 *)
8112 lt_prog_compiler_pic='-fPIC'
8113 ;;
8114 esac
8115 ;;
8116
8117 *)
8118 lt_prog_compiler_pic='-fPIC'
8119 ;;
8120 esac
8121 else
8122 # PORTME Check for flag to pass linker flags through the system compiler.
8123 case $host_os in
8124 aix*)
8125 lt_prog_compiler_wl='-Wl,'
8126 if test "$host_cpu" = ia64; then
8127 # AIX 5 now supports IA64 processor
8128 lt_prog_compiler_static='-Bstatic'
8129 else
8130 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8131 fi
8132 ;;
8133 darwin*)
8134 # PIC is the default on this platform
8135 # Common symbols not allowed in MH_DYLIB files
8136 case $cc_basename in
8137 xlc*)
8138 lt_prog_compiler_pic='-qnocommon'
8139 lt_prog_compiler_wl='-Wl,'
8140 ;;
8141 esac
8142 ;;
8143
8144 mingw* | pw32* | os2*)
8145 # This hack is so that the source file can tell whether it is being
8146 # built for inclusion in a dll (and should export symbols for example).
8147 lt_prog_compiler_pic='-DDLL_EXPORT'
8148 ;;
8149
8150 hpux9* | hpux10* | hpux11*)
8151 lt_prog_compiler_wl='-Wl,'
8152 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8153 # not for PA HP-UX.
8154 case $host_cpu in
8155 hppa*64*|ia64*)
8156 # +Z the default
8157 ;;
8158 *)
8159 lt_prog_compiler_pic='+Z'
8160 ;;
8161 esac
8162 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8163 lt_prog_compiler_static='${wl}-a ${wl}archive'
8164 ;;
8165
8166 irix5* | irix6* | nonstopux*)
8167 lt_prog_compiler_wl='-Wl,'
8168 # PIC (with -KPIC) is the default.
8169 lt_prog_compiler_static='-non_shared'
8170 ;;
8171
8172 newsos6)
8173 lt_prog_compiler_pic='-KPIC'
8174 lt_prog_compiler_static='-Bstatic'
8175 ;;
8176
8177 linux*)
8178 case $cc_basename in
8179 icc* | ecc*)
8180 lt_prog_compiler_wl='-Wl,'
8181 lt_prog_compiler_pic='-KPIC'
8182 lt_prog_compiler_static='-static'
8183 ;;
8184 pgcc* | pgf77* | pgf90* | pgf95*)
8185 # Portland Group compilers (*not* the Pentium gcc compiler,
8186 # which looks to be a dead project)
8187 lt_prog_compiler_wl='-Wl,'
8188 lt_prog_compiler_pic='-fpic'
8189 lt_prog_compiler_static='-Bstatic'
8190 ;;
8191 ccc*)
8192 lt_prog_compiler_wl='-Wl,'
8193 # All Alpha code is PIC.
8194 lt_prog_compiler_static='-non_shared'
8195 ;;
8196 esac
8197 ;;
8198
8199 osf3* | osf4* | osf5*)
8200 lt_prog_compiler_wl='-Wl,'
8201 # All OSF/1 code is PIC.
8202 lt_prog_compiler_static='-non_shared'
8203 ;;
8204
8205 solaris*)
8206 lt_prog_compiler_pic='-KPIC'
8207 lt_prog_compiler_static='-Bstatic'
8208 case $cc_basename in
8209 f77* | f90* | f95*)
8210 lt_prog_compiler_wl='-Qoption ld ';;
8211 *)
8212 lt_prog_compiler_wl='-Wl,';;
8213 esac
8214 ;;
8215
8216 sunos4*)
8217 lt_prog_compiler_wl='-Qoption ld '
8218 lt_prog_compiler_pic='-PIC'
8219 lt_prog_compiler_static='-Bstatic'
8220 ;;
8221
8222 sysv4 | sysv4.2uw2* | sysv4.3*)
8223 lt_prog_compiler_wl='-Wl,'
8224 lt_prog_compiler_pic='-KPIC'
8225 lt_prog_compiler_static='-Bstatic'
8226 ;;
8227
8228 sysv4*MP*)
8229 if test -d /usr/nec ;then
8230 lt_prog_compiler_pic='-Kconform_pic'
8231 lt_prog_compiler_static='-Bstatic'
8232 fi
8233 ;;
8234
8235 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8236 lt_prog_compiler_wl='-Wl,'
8237 lt_prog_compiler_pic='-KPIC'
8238 lt_prog_compiler_static='-Bstatic'
8239 ;;
8240
8241 unicos*)
8242 lt_prog_compiler_wl='-Wl,'
8243 lt_prog_compiler_can_build_shared=no
8244 ;;
8245
8246 uts4*)
8247 lt_prog_compiler_pic='-pic'
8248 lt_prog_compiler_static='-Bstatic'
8249 ;;
8250
8251 *)
8252 lt_prog_compiler_can_build_shared=no
8253 ;;
8254 esac
8255 fi
8256
8257 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8258 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8259
8260 #
8261 # Check to make sure the PIC flag actually works.
8262 #
8263 if test -n "$lt_prog_compiler_pic"; then
8264
8265 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8266 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8267 if test "${lt_prog_compiler_pic_works+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270 lt_prog_compiler_pic_works=no
8271 ac_outfile=conftest.$ac_objext
8272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8273 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8274 # Insert the option either (1) after the last *FLAGS variable, or
8275 # (2) before a word containing "conftest.", or (3) at the end.
8276 # Note that $ac_compile itself does not contain backslashes and begins
8277 # with a dollar sign (not a hyphen), so the echo should work correctly.
8278 # The option is referenced via a variable to avoid confusing sed.
8279 lt_compile=`echo "$ac_compile" | $SED \
8280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8282 -e 's:$: $lt_compiler_flag:'`
8283 (eval echo "\"\$as_me:8283: $lt_compile\"" >&5)
8284 (eval "$lt_compile" 2>conftest.err)
8285 ac_status=$?
8286 cat conftest.err >&5
8287 echo "$as_me:8287: \$? = $ac_status" >&5
8288 if (exit $ac_status) && test -s "$ac_outfile"; then
8289 # The compiler can only warn and ignore the option if not recognized
8290 # So say no if there are warnings other than the usual output.
8291 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8293 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8294 lt_prog_compiler_pic_works=yes
8295 fi
8296 fi
8297 $rm conftest*
8298
8299 fi
8300 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8301 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8302
8303 if test x"$lt_prog_compiler_pic_works" = xyes; then
8304 case $lt_prog_compiler_pic in
8305 "" | " "*) ;;
8306 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8307 esac
8308 else
8309 lt_prog_compiler_pic=
8310 lt_prog_compiler_can_build_shared=no
8311 fi
8312
8313 fi
8314 case $host_os in
8315 # For platforms which do not support PIC, -DPIC is meaningless:
8316 *djgpp*)
8317 lt_prog_compiler_pic=
8318 ;;
8319 *)
8320 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8321 ;;
8322 esac
8323
8324 #
8325 # Check to make sure the static flag actually works.
8326 #
8327 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8328 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8329 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8330 if test "${lt_prog_compiler_static_works+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333 lt_prog_compiler_static_works=no
8334 save_LDFLAGS="$LDFLAGS"
8335 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8336 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8337 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8338 # The linker can only warn and ignore the option if not recognized
8339 # So say no if there are warnings
8340 if test -s conftest.err; then
8341 # Append any errors to the config.log.
8342 cat conftest.err 1>&5
8343 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8345 if diff conftest.exp conftest.er2 >/dev/null; then
8346 lt_prog_compiler_static_works=yes
8347 fi
8348 else
8349 lt_prog_compiler_static_works=yes
8350 fi
8351 fi
8352 $rm conftest*
8353 LDFLAGS="$save_LDFLAGS"
8354
8355 fi
8356 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8357 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8358
8359 if test x"$lt_prog_compiler_static_works" = xyes; then
8360 :
8361 else
8362 lt_prog_compiler_static=
8363 fi
8364
8365
8366 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8367 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8368 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371 lt_cv_prog_compiler_c_o=no
8372 $rm -r conftest 2>/dev/null
8373 mkdir conftest
8374 cd conftest
8375 mkdir out
8376 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8377
8378 lt_compiler_flag="-o out/conftest2.$ac_objext"
8379 # Insert the option either (1) after the last *FLAGS variable, or
8380 # (2) before a word containing "conftest.", or (3) at the end.
8381 # Note that $ac_compile itself does not contain backslashes and begins
8382 # with a dollar sign (not a hyphen), so the echo should work correctly.
8383 lt_compile=`echo "$ac_compile" | $SED \
8384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8386 -e 's:$: $lt_compiler_flag:'`
8387 (eval echo "\"\$as_me:8387: $lt_compile\"" >&5)
8388 (eval "$lt_compile" 2>out/conftest.err)
8389 ac_status=$?
8390 cat out/conftest.err >&5
8391 echo "$as_me:8391: \$? = $ac_status" >&5
8392 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8393 then
8394 # The compiler can only warn and ignore the option if not recognized
8395 # So say no if there are warnings
8396 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8397 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8398 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8399 lt_cv_prog_compiler_c_o=yes
8400 fi
8401 fi
8402 chmod u+w . 2>&5
8403 $rm conftest*
8404 # SGI C++ compiler will create directory out/ii_files/ for
8405 # template instantiation
8406 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8407 $rm out/* && rmdir out
8408 cd ..
8409 rmdir conftest
8410 $rm conftest*
8411
8412 fi
8413 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8414 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8415
8416
8417 hard_links="nottested"
8418 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8419 # do not overwrite the value of need_locks provided by the user
8420 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8421 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8422 hard_links=yes
8423 $rm conftest*
8424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8425 touch conftest.a
8426 ln conftest.a conftest.b 2>&5 || hard_links=no
8427 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8428 echo "$as_me:$LINENO: result: $hard_links" >&5
8429 echo "${ECHO_T}$hard_links" >&6
8430 if test "$hard_links" = no; then
8431 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8432 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8433 need_locks=warn
8434 fi
8435 else
8436 need_locks=no
8437 fi
8438
8439 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8440 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8441
8442 runpath_var=
8443 allow_undefined_flag=
8444 enable_shared_with_static_runtimes=no
8445 archive_cmds=
8446 archive_expsym_cmds=
8447 old_archive_From_new_cmds=
8448 old_archive_from_expsyms_cmds=
8449 export_dynamic_flag_spec=
8450 whole_archive_flag_spec=
8451 thread_safe_flag_spec=
8452 hardcode_libdir_flag_spec=
8453 hardcode_libdir_flag_spec_ld=
8454 hardcode_libdir_separator=
8455 hardcode_direct=no
8456 hardcode_minus_L=no
8457 hardcode_shlibpath_var=unsupported
8458 link_all_deplibs=unknown
8459 hardcode_automatic=no
8460 module_cmds=
8461 module_expsym_cmds=
8462 always_export_symbols=no
8463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8464 # include_expsyms should be a list of space-separated symbols to be *always*
8465 # included in the symbol list
8466 include_expsyms=
8467 # exclude_expsyms can be an extended regexp of symbols to exclude
8468 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8469 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8470 # as well as any symbol that contains `d'.
8471 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8472 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8473 # platforms (ab)use it in PIC code, but their linkers get confused if
8474 # the symbol is explicitly referenced. Since portable code cannot
8475 # rely on this symbol name, it's probably fine to never include it in
8476 # preloaded symbol tables.
8477 extract_expsyms_cmds=
8478 # Just being paranoid about ensuring that cc_basename is set.
8479 for cc_temp in $compiler""; do
8480 case $cc_temp in
8481 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8482 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8483 \-*) ;;
8484 *) break;;
8485 esac
8486 done
8487 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8488
8489 case $host_os in
8490 cygwin* | mingw* | pw32*)
8491 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8492 # When not using gcc, we currently assume that we are using
8493 # Microsoft Visual C++.
8494 if test "$GCC" != yes; then
8495 with_gnu_ld=no
8496 fi
8497 ;;
8498 interix*)
8499 # we just hope/assume this is gcc and not c89 (= MSVC++)
8500 with_gnu_ld=yes
8501 ;;
8502 openbsd*)
8503 with_gnu_ld=no
8504 ;;
8505 esac
8506
8507 ld_shlibs=yes
8508 if test "$with_gnu_ld" = yes; then
8509 # If archive_cmds runs LD, not CC, wlarc should be empty
8510 wlarc='${wl}'
8511
8512 # Set some defaults for GNU ld with shared library support. These
8513 # are reset later if shared libraries are not supported. Putting them
8514 # here allows them to be overridden if necessary.
8515 runpath_var=LD_RUN_PATH
8516 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8517 export_dynamic_flag_spec='${wl}--export-dynamic'
8518 # ancient GNU ld didn't support --whole-archive et. al.
8519 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8520 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8521 else
8522 whole_archive_flag_spec=
8523 fi
8524 supports_anon_versioning=no
8525 case `$LD -v 2>/dev/null` in
8526 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8527 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8528 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8529 *\ 2.11.*) ;; # other 2.11 versions
8530 *) supports_anon_versioning=yes ;;
8531 esac
8532
8533 # See if GNU ld supports shared libraries.
8534 case $host_os in
8535 aix3* | aix4* | aix5*)
8536 # On AIX/PPC, the GNU linker is very broken
8537 if test "$host_cpu" != ia64; then
8538 ld_shlibs=no
8539 cat <<EOF 1>&2
8540
8541 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8542 *** to be unable to reliably create shared libraries on AIX.
8543 *** Therefore, libtool is disabling shared libraries support. If you
8544 *** really care for shared libraries, you may want to modify your PATH
8545 *** so that a non-GNU linker is found, and then restart.
8546
8547 EOF
8548 fi
8549 ;;
8550
8551 amigaos*)
8552 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)'
8553 hardcode_libdir_flag_spec='-L$libdir'
8554 hardcode_minus_L=yes
8555
8556 # Samuel A. Falvo II <[email protected]> reports
8557 # that the semantics of dynamic libraries on AmigaOS, at least up
8558 # to version 4, is to share data among multiple programs linked
8559 # with the same dynamic library. Since this doesn't match the
8560 # behavior of shared libraries on other platforms, we can't use
8561 # them.
8562 ld_shlibs=no
8563 ;;
8564
8565 beos*)
8566 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8567 allow_undefined_flag=unsupported
8568 # Joseph Beckenbach <[email protected]> says some releases of gcc
8569 # support --undefined. This deserves some investigation. FIXME
8570 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8571 else
8572 ld_shlibs=no
8573 fi
8574 ;;
8575
8576 cygwin* | mingw* | pw32*)
8577 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8578 # as there is no search path for DLLs.
8579 hardcode_libdir_flag_spec='-L$libdir'
8580 allow_undefined_flag=unsupported
8581 always_export_symbols=no
8582 enable_shared_with_static_runtimes=yes
8583 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8584
8585 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8587 # If the export-symbols file already is a .def file (1st line
8588 # is EXPORTS), use it as is; otherwise, prepend...
8589 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8590 cp $export_symbols $output_objdir/$soname.def;
8591 else
8592 echo EXPORTS > $output_objdir/$soname.def;
8593 cat $export_symbols >> $output_objdir/$soname.def;
8594 fi~
8595 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8596 else
8597 ld_shlibs=no
8598 fi
8599 ;;
8600
8601 interix3*)
8602 hardcode_direct=no
8603 hardcode_shlibpath_var=no
8604 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8605 export_dynamic_flag_spec='${wl}-E'
8606 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8607 # Instead, shared libraries are loaded at an image base (0x10000000 by
8608 # default) and relocated if they conflict, which is a slow very memory
8609 # consuming and fragmenting process. To avoid this, we pick a random,
8610 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8611 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8612 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8613 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'
8614 ;;
8615
8616 linux*)
8617 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8618 tmp_addflag=
8619 case $cc_basename,$host_cpu in
8620 pgcc*) # Portland Group C compiler
8621 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'
8622 tmp_addflag=' $pic_flag'
8623 ;;
8624 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8625 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'
8626 tmp_addflag=' $pic_flag -Mnomain' ;;
8627 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8628 tmp_addflag=' -i_dynamic' ;;
8629 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8630 tmp_addflag=' -i_dynamic -nofor_main' ;;
8631 ifc* | ifort*) # Intel Fortran compiler
8632 tmp_addflag=' -nofor_main' ;;
8633 esac
8634 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8635
8636 if test $supports_anon_versioning = yes; then
8637 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8638 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8639 $echo "local: *; };" >> $output_objdir/$libname.ver~
8640 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8641 fi
8642 else
8643 ld_shlibs=no
8644 fi
8645 ;;
8646
8647 netbsd*)
8648 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8649 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8650 wlarc=
8651 else
8652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8653 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8654 fi
8655 ;;
8656
8657 solaris*)
8658 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8659 ld_shlibs=no
8660 cat <<EOF 1>&2
8661
8662 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8663 *** create shared libraries on Solaris systems. Therefore, libtool
8664 *** is disabling shared libraries support. We urge you to upgrade GNU
8665 *** binutils to release 2.9.1 or newer. Another option is to modify
8666 *** your PATH or compiler configuration so that the native linker is
8667 *** used, and then restart.
8668
8669 EOF
8670 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8672 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8673 else
8674 ld_shlibs=no
8675 fi
8676 ;;
8677
8678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8679 case `$LD -v 2>&1` in
8680 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8681 ld_shlibs=no
8682 cat <<_LT_EOF 1>&2
8683
8684 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8685 *** reliably create shared libraries on SCO systems. Therefore, libtool
8686 *** is disabling shared libraries support. We urge you to upgrade GNU
8687 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8688 *** your PATH or compiler configuration so that the native linker is
8689 *** used, and then restart.
8690
8691 _LT_EOF
8692 ;;
8693 *)
8694 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8695 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8697 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8698 else
8699 ld_shlibs=no
8700 fi
8701 ;;
8702 esac
8703 ;;
8704
8705 sunos4*)
8706 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8707 wlarc=
8708 hardcode_direct=yes
8709 hardcode_shlibpath_var=no
8710 ;;
8711
8712 *)
8713 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8715 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8716 else
8717 ld_shlibs=no
8718 fi
8719 ;;
8720 esac
8721
8722 if test "$ld_shlibs" = no; then
8723 runpath_var=
8724 hardcode_libdir_flag_spec=
8725 export_dynamic_flag_spec=
8726 whole_archive_flag_spec=
8727 fi
8728 else
8729 # PORTME fill in a description of your system's linker (not GNU ld)
8730 case $host_os in
8731 aix3*)
8732 allow_undefined_flag=unsupported
8733 always_export_symbols=yes
8734 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'
8735 # Note: this linker hardcodes the directories in LIBPATH if there
8736 # are no directories specified by -L.
8737 hardcode_minus_L=yes
8738 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8739 # Neither direct hardcoding nor static linking is supported with a
8740 # broken collect2.
8741 hardcode_direct=unsupported
8742 fi
8743 ;;
8744
8745 aix4* | aix5*)
8746 if test "$host_cpu" = ia64; then
8747 # On IA64, the linker does run time linking by default, so we don't
8748 # have to do anything special.
8749 aix_use_runtimelinking=no
8750 exp_sym_flag='-Bexport'
8751 no_entry_flag=""
8752 else
8753 # If we're using GNU nm, then we don't want the "-C" option.
8754 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8755 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8756 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'
8757 else
8758 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'
8759 fi
8760 aix_use_runtimelinking=no
8761
8762 # Test if we are trying to use run time linking or normal
8763 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8764 # need to do runtime linking.
8765 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8766 for ld_flag in $LDFLAGS; do
8767 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8768 aix_use_runtimelinking=yes
8769 break
8770 fi
8771 done
8772 ;;
8773 esac
8774
8775 exp_sym_flag='-bexport'
8776 no_entry_flag='-bnoentry'
8777 fi
8778
8779 # When large executables or shared objects are built, AIX ld can
8780 # have problems creating the table of contents. If linking a library
8781 # or program results in "error TOC overflow" add -mminimal-toc to
8782 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8783 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8784
8785 archive_cmds=''
8786 hardcode_direct=yes
8787 hardcode_libdir_separator=':'
8788 link_all_deplibs=yes
8789
8790 if test "$GCC" = yes; then
8791 case $host_os in aix4.[012]|aix4.[012].*)
8792 # We only want to do this on AIX 4.2 and lower, the check
8793 # below for broken collect2 doesn't work under 4.3+
8794 collect2name=`${CC} -print-prog-name=collect2`
8795 if test -f "$collect2name" && \
8796 strings "$collect2name" | grep resolve_lib_name >/dev/null
8797 then
8798 # We have reworked collect2
8799 hardcode_direct=yes
8800 else
8801 # We have old collect2
8802 hardcode_direct=unsupported
8803 # It fails to find uninstalled libraries when the uninstalled
8804 # path is not listed in the libpath. Setting hardcode_minus_L
8805 # to unsupported forces relinking
8806 hardcode_minus_L=yes
8807 hardcode_libdir_flag_spec='-L$libdir'
8808 hardcode_libdir_separator=
8809 fi
8810 ;;
8811 esac
8812 shared_flag='-shared'
8813 if test "$aix_use_runtimelinking" = yes; then
8814 shared_flag="$shared_flag "'${wl}-G'
8815 fi
8816 else
8817 # not using gcc
8818 if test "$host_cpu" = ia64; then
8819 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8820 # chokes on -Wl,-G. The following line is correct:
8821 shared_flag='-G'
8822 else
8823 if test "$aix_use_runtimelinking" = yes; then
8824 shared_flag='${wl}-G'
8825 else
8826 shared_flag='${wl}-bM:SRE'
8827 fi
8828 fi
8829 fi
8830
8831 # It seems that -bexpall does not export symbols beginning with
8832 # underscore (_), so it is better to generate a list of symbols to export.
8833 always_export_symbols=yes
8834 if test "$aix_use_runtimelinking" = yes; then
8835 # Warning - without using the other runtime loading flags (-brtl),
8836 # -berok will link without error, but may produce a broken library.
8837 allow_undefined_flag='-berok'
8838 # Determine the default libpath from the value encoded in an empty executable.
8839 cat >conftest.$ac_ext <<_ACEOF
8840 /* confdefs.h. */
8841 _ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8845
8846 int
8847 main ()
8848 {
8849
8850 ;
8851 return 0;
8852 }
8853 _ACEOF
8854 rm -f conftest.$ac_objext conftest$ac_exeext
8855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8856 (eval $ac_link) 2>conftest.er1
8857 ac_status=$?
8858 grep -v '^ *+' conftest.er1 >conftest.err
8859 rm -f conftest.er1
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } &&
8863 { ac_try='test -z "$ac_c_werror_flag"
8864 || test ! -s conftest.err'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 (eval $ac_try) 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; } &&
8870 { ac_try='test -s conftest$ac_exeext'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 (eval $ac_try) 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876
8877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8878 }'`
8879 # Check for a 64-bit object if we didn't find anything.
8880 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; }
8881 }'`; fi
8882 else
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8885
8886 fi
8887 rm -f conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8890
8891 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8892 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"
8893 else
8894 if test "$host_cpu" = ia64; then
8895 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8896 allow_undefined_flag="-z nodefs"
8897 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"
8898 else
8899 # Determine the default libpath from the value encoded in an empty executable.
8900 cat >conftest.$ac_ext <<_ACEOF
8901 /* confdefs.h. */
8902 _ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906
8907 int
8908 main ()
8909 {
8910
8911 ;
8912 return 0;
8913 }
8914 _ACEOF
8915 rm -f conftest.$ac_objext conftest$ac_exeext
8916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8917 (eval $ac_link) 2>conftest.er1
8918 ac_status=$?
8919 grep -v '^ *+' conftest.er1 >conftest.err
8920 rm -f conftest.er1
8921 cat conftest.err >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } &&
8924 { ac_try='test -z "$ac_c_werror_flag"
8925 || test ! -s conftest.err'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 (eval $ac_try) 2>&5
8928 ac_status=$?
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; } &&
8931 { ac_try='test -s conftest$ac_exeext'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933 (eval $ac_try) 2>&5
8934 ac_status=$?
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; }; then
8937
8938 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8939 }'`
8940 # Check for a 64-bit object if we didn't find anything.
8941 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; }
8942 }'`; fi
8943 else
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8946
8947 fi
8948 rm -f conftest.err conftest.$ac_objext \
8949 conftest$ac_exeext conftest.$ac_ext
8950 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8951
8952 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8953 # Warning - without using the other run time loading flags,
8954 # -berok will link without error, but may produce a broken library.
8955 no_undefined_flag=' ${wl}-bernotok'
8956 allow_undefined_flag=' ${wl}-berok'
8957 # Exported symbols can be pulled into shared objects from archives
8958 whole_archive_flag_spec='$convenience'
8959 archive_cmds_need_lc=yes
8960 # This is similar to how AIX traditionally builds its shared libraries.
8961 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'
8962 fi
8963 fi
8964 ;;
8965
8966 amigaos*)
8967 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)'
8968 hardcode_libdir_flag_spec='-L$libdir'
8969 hardcode_minus_L=yes
8970 # see comment about different semantics on the GNU ld section
8971 ld_shlibs=no
8972 ;;
8973
8974 bsdi[45]*)
8975 export_dynamic_flag_spec=-rdynamic
8976 ;;
8977
8978 cygwin* | mingw* | pw32*)
8979 # When not using gcc, we currently assume that we are using
8980 # Microsoft Visual C++.
8981 # hardcode_libdir_flag_spec is actually meaningless, as there is
8982 # no search path for DLLs.
8983 hardcode_libdir_flag_spec=' '
8984 allow_undefined_flag=unsupported
8985 # Tell ltmain to make .lib files, not .a files.
8986 libext=lib
8987 # Tell ltmain to make .dll files, not .so files.
8988 shrext_cmds=".dll"
8989 # FIXME: Setting linknames here is a bad hack.
8990 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8991 # The linker will automatically build a .lib file if we build a DLL.
8992 old_archive_From_new_cmds='true'
8993 # FIXME: Should let the user specify the lib program.
8994 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8995 fix_srcfile_path='`cygpath -w "$srcfile"`'
8996 enable_shared_with_static_runtimes=yes
8997 ;;
8998
8999 darwin* | rhapsody*)
9000 case $host_os in
9001 rhapsody* | darwin1.[012])
9002 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9003 ;;
9004 *) # Darwin 1.3 on
9005 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9006 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9007 else
9008 case ${MACOSX_DEPLOYMENT_TARGET} in
9009 10.[012])
9010 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9011 ;;
9012 10.*)
9013 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9014 ;;
9015 esac
9016 fi
9017 ;;
9018 esac
9019 archive_cmds_need_lc=no
9020 hardcode_direct=no
9021 hardcode_automatic=yes
9022 hardcode_shlibpath_var=unsupported
9023 whole_archive_flag_spec=''
9024 link_all_deplibs=yes
9025 if test "$GCC" = yes ; then
9026 output_verbose_link_cmd='echo'
9027 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9028 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9029 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9030 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}'
9031 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}'
9032 else
9033 case $cc_basename in
9034 xlc*)
9035 output_verbose_link_cmd='echo'
9036 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9037 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9038 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9039 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}'
9040 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}'
9041 ;;
9042 *)
9043 ld_shlibs=no
9044 ;;
9045 esac
9046 fi
9047 ;;
9048
9049 dgux*)
9050 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9051 hardcode_libdir_flag_spec='-L$libdir'
9052 hardcode_shlibpath_var=no
9053 ;;
9054
9055 freebsd1*)
9056 ld_shlibs=no
9057 ;;
9058
9059 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9060 # support. Future versions do this automatically, but an explicit c++rt0.o
9061 # does not break anything, and helps significantly (at the cost of a little
9062 # extra space).
9063 freebsd2.2*)
9064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9065 hardcode_libdir_flag_spec='-R$libdir'
9066 hardcode_direct=yes
9067 hardcode_shlibpath_var=no
9068 ;;
9069
9070 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9071 freebsd2*)
9072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9073 hardcode_direct=yes
9074 hardcode_minus_L=yes
9075 hardcode_shlibpath_var=no
9076 ;;
9077
9078 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9079 freebsd* | kfreebsd*-gnu | dragonfly*)
9080 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9081 hardcode_libdir_flag_spec='-R$libdir'
9082 hardcode_direct=yes
9083 hardcode_shlibpath_var=no
9084 ;;
9085
9086 hpux9*)
9087 if test "$GCC" = yes; then
9088 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'
9089 else
9090 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'
9091 fi
9092 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9093 hardcode_libdir_separator=:
9094 hardcode_direct=yes
9095
9096 # hardcode_minus_L: Not really in the search PATH,
9097 # but as the default location of the library.
9098 hardcode_minus_L=yes
9099 export_dynamic_flag_spec='${wl}-E'
9100 ;;
9101
9102 hpux10*)
9103 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9104 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9105 else
9106 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9107 fi
9108 if test "$with_gnu_ld" = no; then
9109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110 hardcode_libdir_separator=:
9111
9112 hardcode_direct=yes
9113 export_dynamic_flag_spec='${wl}-E'
9114
9115 # hardcode_minus_L: Not really in the search PATH,
9116 # but as the default location of the library.
9117 hardcode_minus_L=yes
9118 fi
9119 ;;
9120
9121 hpux11*)
9122 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9123 case $host_cpu in
9124 hppa*64*)
9125 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9126 ;;
9127 ia64*)
9128 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9129 ;;
9130 *)
9131 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9132 ;;
9133 esac
9134 else
9135 case $host_cpu in
9136 hppa*64*)
9137 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9138 ;;
9139 ia64*)
9140 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9141 ;;
9142 *)
9143 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9144 ;;
9145 esac
9146 fi
9147 if test "$with_gnu_ld" = no; then
9148 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9149 hardcode_libdir_separator=:
9150
9151 case $host_cpu in
9152 hppa*64*|ia64*)
9153 hardcode_libdir_flag_spec_ld='+b $libdir'
9154 hardcode_direct=no
9155 hardcode_shlibpath_var=no
9156 ;;
9157 *)
9158 hardcode_direct=yes
9159 export_dynamic_flag_spec='${wl}-E'
9160
9161 # hardcode_minus_L: Not really in the search PATH,
9162 # but as the default location of the library.
9163 hardcode_minus_L=yes
9164 ;;
9165 esac
9166 fi
9167 ;;
9168
9169 irix5* | irix6* | nonstopux*)
9170 if test "$GCC" = yes; then
9171 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'
9172 else
9173 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'
9174 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9175 fi
9176 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9177 hardcode_libdir_separator=:
9178 link_all_deplibs=yes
9179 ;;
9180
9181 netbsd*)
9182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9183 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9184 else
9185 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9186 fi
9187 hardcode_libdir_flag_spec='-R$libdir'
9188 hardcode_direct=yes
9189 hardcode_shlibpath_var=no
9190 ;;
9191
9192 newsos6)
9193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9194 hardcode_direct=yes
9195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9196 hardcode_libdir_separator=:
9197 hardcode_shlibpath_var=no
9198 ;;
9199
9200 openbsd*)
9201 hardcode_direct=yes
9202 hardcode_shlibpath_var=no
9203 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9205 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9206 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9207 export_dynamic_flag_spec='${wl}-E'
9208 else
9209 case $host_os in
9210 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9212 hardcode_libdir_flag_spec='-R$libdir'
9213 ;;
9214 *)
9215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9216 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9217 ;;
9218 esac
9219 fi
9220 ;;
9221
9222 os2*)
9223 hardcode_libdir_flag_spec='-L$libdir'
9224 hardcode_minus_L=yes
9225 allow_undefined_flag=unsupported
9226 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'
9227 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9228 ;;
9229
9230 osf3*)
9231 if test "$GCC" = yes; then
9232 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9233 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'
9234 else
9235 allow_undefined_flag=' -expect_unresolved \*'
9236 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'
9237 fi
9238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9239 hardcode_libdir_separator=:
9240 ;;
9241
9242 osf4* | osf5*) # as osf3* with the addition of -msym flag
9243 if test "$GCC" = yes; then
9244 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9245 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'
9246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9247 else
9248 allow_undefined_flag=' -expect_unresolved \*'
9249 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'
9250 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9251 $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'
9252
9253 # Both c and cxx compiler support -rpath directly
9254 hardcode_libdir_flag_spec='-rpath $libdir'
9255 fi
9256 hardcode_libdir_separator=:
9257 ;;
9258
9259 solaris*)
9260 no_undefined_flag=' -z text'
9261 if test "$GCC" = yes; then
9262 wlarc='${wl}'
9263 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9264 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9265 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9266 else
9267 wlarc=''
9268 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9269 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9270 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9271 fi
9272 hardcode_libdir_flag_spec='-R$libdir'
9273 hardcode_shlibpath_var=no
9274 case $host_os in
9275 solaris2.[0-5] | solaris2.[0-5].*) ;;
9276 *)
9277 # The compiler driver will combine linker options so we
9278 # cannot just pass the convience library names through
9279 # without $wl, iff we do not link with $LD.
9280 # Luckily, gcc supports the same syntax we need for Sun Studio.
9281 # Supported since Solaris 2.6 (maybe 2.5.1?)
9282 case $wlarc in
9283 '')
9284 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9285 *)
9286 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' ;;
9287 esac ;;
9288 esac
9289 link_all_deplibs=yes
9290 ;;
9291
9292 sunos4*)
9293 if test "x$host_vendor" = xsequent; then
9294 # Use $CC to link under sequent, because it throws in some extra .o
9295 # files that make .init and .fini sections work.
9296 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9297 else
9298 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9299 fi
9300 hardcode_libdir_flag_spec='-L$libdir'
9301 hardcode_direct=yes
9302 hardcode_minus_L=yes
9303 hardcode_shlibpath_var=no
9304 ;;
9305
9306 sysv4)
9307 case $host_vendor in
9308 sni)
9309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_direct=yes # is this really true???
9311 ;;
9312 siemens)
9313 ## LD is ld it makes a PLAMLIB
9314 ## CC just makes a GrossModule.
9315 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9316 reload_cmds='$CC -r -o $output$reload_objs'
9317 hardcode_direct=no
9318 ;;
9319 motorola)
9320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9322 ;;
9323 esac
9324 runpath_var='LD_RUN_PATH'
9325 hardcode_shlibpath_var=no
9326 ;;
9327
9328 sysv4.3*)
9329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_shlibpath_var=no
9331 export_dynamic_flag_spec='-Bexport'
9332 ;;
9333
9334 sysv4*MP*)
9335 if test -d /usr/nec; then
9336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_shlibpath_var=no
9338 runpath_var=LD_RUN_PATH
9339 hardcode_runpath_var=yes
9340 ld_shlibs=yes
9341 fi
9342 ;;
9343
9344 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9345 no_undefined_flag='${wl}-z,text'
9346 archive_cmds_need_lc=no
9347 hardcode_shlibpath_var=no
9348 runpath_var='LD_RUN_PATH'
9349
9350 if test "$GCC" = yes; then
9351 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 else
9354 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356 fi
9357 ;;
9358
9359 sysv5* | sco3.2v5* | sco5v6*)
9360 # Note: We can NOT use -z defs as we might desire, because we do not
9361 # link with -lc, and that would cause any symbols used from libc to
9362 # always be unresolved, which means just about no library would
9363 # ever link correctly. If we're not using GNU ld we use -z text
9364 # though, which does catch some bad symbols but isn't as heavy-handed
9365 # as -z defs.
9366 no_undefined_flag='${wl}-z,text'
9367 allow_undefined_flag='${wl}-z,nodefs'
9368 archive_cmds_need_lc=no
9369 hardcode_shlibpath_var=no
9370 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9371 hardcode_libdir_separator=':'
9372 link_all_deplibs=yes
9373 export_dynamic_flag_spec='${wl}-Bexport'
9374 runpath_var='LD_RUN_PATH'
9375
9376 if test "$GCC" = yes; then
9377 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9378 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 else
9380 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9382 fi
9383 ;;
9384
9385 uts4*)
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_shlibpath_var=no
9389 ;;
9390
9391 *)
9392 ld_shlibs=no
9393 ;;
9394 esac
9395 fi
9396
9397 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9398 echo "${ECHO_T}$ld_shlibs" >&6
9399 test "$ld_shlibs" = no && can_build_shared=no
9400
9401 #
9402 # Do we need to explicitly link libc?
9403 #
9404 case "x$archive_cmds_need_lc" in
9405 x|xyes)
9406 # Assume -lc should be added
9407 archive_cmds_need_lc=yes
9408
9409 if test "$enable_shared" = yes && test "$GCC" = yes; then
9410 case $archive_cmds in
9411 *'~'*)
9412 # FIXME: we may have to deal with multi-command sequences.
9413 ;;
9414 '$CC '*)
9415 # Test whether the compiler implicitly links with -lc since on some
9416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9417 # to ld, don't add -lc before -lgcc.
9418 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9419 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9420 $rm conftest*
9421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9422
9423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9424 (eval $ac_compile) 2>&5
9425 ac_status=$?
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } 2>conftest.err; then
9428 soname=conftest
9429 lib=conftest
9430 libobjs=conftest.$ac_objext
9431 deplibs=
9432 wl=$lt_prog_compiler_wl
9433 pic_flag=$lt_prog_compiler_pic
9434 compiler_flags=-v
9435 linker_flags=-v
9436 verstring=
9437 output_objdir=.
9438 libname=conftest
9439 lt_save_allow_undefined_flag=$allow_undefined_flag
9440 allow_undefined_flag=
9441 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9442 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }
9446 then
9447 archive_cmds_need_lc=no
9448 else
9449 archive_cmds_need_lc=yes
9450 fi
9451 allow_undefined_flag=$lt_save_allow_undefined_flag
9452 else
9453 cat conftest.err 1>&5
9454 fi
9455 $rm conftest*
9456 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9457 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9458 ;;
9459 esac
9460 fi
9461 ;;
9462 esac
9463
9464 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9465 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9466 library_names_spec=
9467 libname_spec='lib$name'
9468 soname_spec=
9469 shrext_cmds=".so"
9470 postinstall_cmds=
9471 postuninstall_cmds=
9472 finish_cmds=
9473 finish_eval=
9474 shlibpath_var=
9475 shlibpath_overrides_runpath=unknown
9476 version_type=none
9477 dynamic_linker="$host_os ld.so"
9478 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9479 if test "$GCC" = yes; then
9480 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9481 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9482 # if the path contains ";" then we assume it to be the separator
9483 # otherwise default to the standard path separator (i.e. ":") - it is
9484 # assumed that no part of a normal pathname contains ";" but that should
9485 # okay in the real world where ";" in dirpaths is itself problematic.
9486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9487 else
9488 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9489 fi
9490 else
9491 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9492 fi
9493 need_lib_prefix=unknown
9494 hardcode_into_libs=no
9495
9496 # when you set need_version to no, make sure it does not cause -set_version
9497 # flags to be left without arguments
9498 need_version=unknown
9499
9500 case $host_os in
9501 aix3*)
9502 version_type=linux
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9504 shlibpath_var=LIBPATH
9505
9506 # AIX 3 has no versioning support, so we append a major version to the name.
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 ;;
9509
9510 aix4* | aix5*)
9511 version_type=linux
9512 need_lib_prefix=no
9513 need_version=no
9514 hardcode_into_libs=yes
9515 if test "$host_cpu" = ia64; then
9516 # AIX 5 supports IA64
9517 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9518 shlibpath_var=LD_LIBRARY_PATH
9519 else
9520 # With GCC up to 2.95.x, collect2 would create an import file
9521 # for dependence libraries. The import file would start with
9522 # the line `#! .'. This would cause the generated library to
9523 # depend on `.', always an invalid library. This was fixed in
9524 # development snapshots of GCC prior to 3.0.
9525 case $host_os in
9526 aix4 | aix4.[01] | aix4.[01].*)
9527 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9528 echo ' yes '
9529 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9530 :
9531 else
9532 can_build_shared=no
9533 fi
9534 ;;
9535 esac
9536 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9537 # soname into executable. Probably we can add versioning support to
9538 # collect2, so additional links can be useful in future.
9539 if test "$aix_use_runtimelinking" = yes; then
9540 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9541 # instead of lib<name>.a to let people know that these are not
9542 # typical AIX shared libraries.
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544 else
9545 # We preserve .a as extension for shared libraries through AIX4.2
9546 # and later when we are not doing run time linking.
9547 library_names_spec='${libname}${release}.a $libname.a'
9548 soname_spec='${libname}${release}${shared_ext}$major'
9549 fi
9550 shlibpath_var=LIBPATH
9551 fi
9552 ;;
9553
9554 amigaos*)
9555 library_names_spec='$libname.ixlibrary $libname.a'
9556 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9557 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'
9558 ;;
9559
9560 beos*)
9561 library_names_spec='${libname}${shared_ext}'
9562 dynamic_linker="$host_os ld.so"
9563 shlibpath_var=LIBRARY_PATH
9564 ;;
9565
9566 bsdi[45]*)
9567 version_type=linux
9568 need_version=no
9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9570 soname_spec='${libname}${release}${shared_ext}$major'
9571 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9574 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9575 # the default ld.so.conf also contains /usr/contrib/lib and
9576 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9577 # libtool to hard-code these into programs
9578 ;;
9579
9580 cygwin* | mingw* | pw32*)
9581 version_type=windows
9582 shrext_cmds=".dll"
9583 need_version=no
9584 need_lib_prefix=no
9585
9586 case $GCC,$host_os in
9587 yes,cygwin* | yes,mingw* | yes,pw32*)
9588 library_names_spec='$libname.dll.a'
9589 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9590 postinstall_cmds='base_file=`basename \${file}`~
9591 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9592 dldir=$destdir/`dirname \$dlpath`~
9593 test -d \$dldir || mkdir -p \$dldir~
9594 $install_prog $dir/$dlname \$dldir/$dlname~
9595 chmod a+x \$dldir/$dlname'
9596 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9597 dlpath=$dir/\$dldll~
9598 $rm \$dlpath'
9599 shlibpath_overrides_runpath=yes
9600
9601 case $host_os in
9602 cygwin*)
9603 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9604 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9605 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9606 ;;
9607 mingw*)
9608 # MinGW DLLs use traditional 'lib' prefix
9609 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9610 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9611 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9612 # It is most probably a Windows format PATH printed by
9613 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9614 # path with ; separators, and with drive letters. We can handle the
9615 # drive letters (cygwin fileutils understands them), so leave them,
9616 # especially as we might pass files found there to a mingw objdump,
9617 # which wouldn't understand a cygwinified path. Ahh.
9618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9619 else
9620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9621 fi
9622 ;;
9623 pw32*)
9624 # pw32 DLLs use 'pw' prefix rather than 'lib'
9625 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9626 ;;
9627 esac
9628 ;;
9629
9630 *)
9631 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9632 ;;
9633 esac
9634 dynamic_linker='Win32 ld.exe'
9635 # FIXME: first we should search . and the directory the executable is in
9636 shlibpath_var=PATH
9637 ;;
9638
9639 darwin* | rhapsody*)
9640 dynamic_linker="$host_os dyld"
9641 version_type=darwin
9642 need_lib_prefix=no
9643 need_version=no
9644 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9645 soname_spec='${libname}${release}${major}$shared_ext'
9646 shlibpath_overrides_runpath=yes
9647 shlibpath_var=DYLD_LIBRARY_PATH
9648 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9649 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9650 if test "$GCC" = yes; then
9651 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"`
9652 else
9653 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9654 fi
9655 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9656 ;;
9657
9658 dgux*)
9659 version_type=linux
9660 need_lib_prefix=no
9661 need_version=no
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9663 soname_spec='${libname}${release}${shared_ext}$major'
9664 shlibpath_var=LD_LIBRARY_PATH
9665 ;;
9666
9667 freebsd1*)
9668 dynamic_linker=no
9669 ;;
9670
9671 kfreebsd*-gnu)
9672 version_type=linux
9673 need_lib_prefix=no
9674 need_version=no
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 shlibpath_overrides_runpath=no
9679 hardcode_into_libs=yes
9680 dynamic_linker='GNU ld.so'
9681 ;;
9682
9683 freebsd* | dragonfly*)
9684 # DragonFly does not have aout. When/if they implement a new
9685 # versioning mechanism, adjust this.
9686 if test -x /usr/bin/objformat; then
9687 objformat=`/usr/bin/objformat`
9688 else
9689 case $host_os in
9690 freebsd[123]*) objformat=aout ;;
9691 *) objformat=elf ;;
9692 esac
9693 fi
9694 version_type=freebsd-$objformat
9695 case $version_type in
9696 freebsd-elf*)
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9698 need_version=no
9699 need_lib_prefix=no
9700 ;;
9701 freebsd-*)
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9703 need_version=yes
9704 ;;
9705 esac
9706 shlibpath_var=LD_LIBRARY_PATH
9707 case $host_os in
9708 freebsd2*)
9709 shlibpath_overrides_runpath=yes
9710 ;;
9711 freebsd3.[01]* | freebsdelf3.[01]*)
9712 shlibpath_overrides_runpath=yes
9713 hardcode_into_libs=yes
9714 ;;
9715 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9716 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9717 shlibpath_overrides_runpath=no
9718 hardcode_into_libs=yes
9719 ;;
9720 freebsd*) # from 4.6 on
9721 shlibpath_overrides_runpath=yes
9722 hardcode_into_libs=yes
9723 ;;
9724 esac
9725 ;;
9726
9727 gnu*)
9728 version_type=linux
9729 need_lib_prefix=no
9730 need_version=no
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9732 soname_spec='${libname}${release}${shared_ext}$major'
9733 shlibpath_var=LD_LIBRARY_PATH
9734 hardcode_into_libs=yes
9735 ;;
9736
9737 hpux9* | hpux10* | hpux11*)
9738 # Give a soname corresponding to the major version so that dld.sl refuses to
9739 # link against other versions.
9740 version_type=sunos
9741 need_lib_prefix=no
9742 need_version=no
9743 case $host_cpu in
9744 ia64*)
9745 shrext_cmds='.so'
9746 hardcode_into_libs=yes
9747 dynamic_linker="$host_os dld.so"
9748 shlibpath_var=LD_LIBRARY_PATH
9749 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9751 soname_spec='${libname}${release}${shared_ext}$major'
9752 if test "X$HPUX_IA64_MODE" = X32; then
9753 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9754 else
9755 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9756 fi
9757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9758 ;;
9759 hppa*64*)
9760 shrext_cmds='.sl'
9761 hardcode_into_libs=yes
9762 dynamic_linker="$host_os dld.sl"
9763 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766 soname_spec='${libname}${release}${shared_ext}$major'
9767 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9769 ;;
9770 *)
9771 shrext_cmds='.sl'
9772 dynamic_linker="$host_os dld.sl"
9773 shlibpath_var=SHLIB_PATH
9774 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 ;;
9778 esac
9779 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9780 postinstall_cmds='chmod 555 $lib'
9781 ;;
9782
9783 interix3*)
9784 version_type=linux
9785 need_lib_prefix=no
9786 need_version=no
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9788 soname_spec='${libname}${release}${shared_ext}$major'
9789 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 shlibpath_overrides_runpath=no
9792 hardcode_into_libs=yes
9793 ;;
9794
9795 irix5* | irix6* | nonstopux*)
9796 case $host_os in
9797 nonstopux*) version_type=nonstopux ;;
9798 *)
9799 if test "$lt_cv_prog_gnu_ld" = yes; then
9800 version_type=linux
9801 else
9802 version_type=irix
9803 fi ;;
9804 esac
9805 need_lib_prefix=no
9806 need_version=no
9807 soname_spec='${libname}${release}${shared_ext}$major'
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9809 case $host_os in
9810 irix5* | nonstopux*)
9811 libsuff= shlibsuff=
9812 ;;
9813 *)
9814 case $LD in # libtool.m4 will add one of these switches to LD
9815 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9816 libsuff= shlibsuff= libmagic=32-bit;;
9817 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9818 libsuff=32 shlibsuff=N32 libmagic=N32;;
9819 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9820 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9821 *) libsuff= shlibsuff= libmagic=never-match;;
9822 esac
9823 ;;
9824 esac
9825 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9826 shlibpath_overrides_runpath=no
9827 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9828 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9829 hardcode_into_libs=yes
9830 ;;
9831
9832 # No shared lib support for Linux oldld, aout, or coff.
9833 linux*oldld* | linux*aout* | linux*coff*)
9834 dynamic_linker=no
9835 ;;
9836
9837 # This must be Linux ELF.
9838 linux*)
9839 version_type=linux
9840 need_lib_prefix=no
9841 need_version=no
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9843 soname_spec='${libname}${release}${shared_ext}$major'
9844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9845 shlibpath_var=LD_LIBRARY_PATH
9846 shlibpath_overrides_runpath=no
9847 # This implies no fast_install, which is unacceptable.
9848 # Some rework will be needed to allow for fast_install
9849 # before this can be enabled.
9850 hardcode_into_libs=yes
9851
9852 # Append ld.so.conf contents to the search path
9853 if test -f /etc/ld.so.conf; then
9854 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' ' '`
9855 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9856 fi
9857
9858 # We used to test for /lib/ld.so.1 and disable shared libraries on
9859 # powerpc, because MkLinux only supported shared libraries with the
9860 # GNU dynamic linker. Since this was broken with cross compilers,
9861 # most powerpc-linux boxes support dynamic linking these days and
9862 # people can always --disable-shared, the test was removed, and we
9863 # assume the GNU/Linux dynamic linker is in use.
9864 dynamic_linker='GNU/Linux ld.so'
9865 ;;
9866
9867 knetbsd*-gnu)
9868 version_type=linux
9869 need_lib_prefix=no
9870 need_version=no
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9872 soname_spec='${libname}${release}${shared_ext}$major'
9873 shlibpath_var=LD_LIBRARY_PATH
9874 shlibpath_overrides_runpath=no
9875 hardcode_into_libs=yes
9876 dynamic_linker='GNU ld.so'
9877 ;;
9878
9879 netbsd*)
9880 version_type=sunos
9881 need_lib_prefix=no
9882 need_version=no
9883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9886 dynamic_linker='NetBSD (a.out) ld.so'
9887 else
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 dynamic_linker='NetBSD ld.elf_so'
9891 fi
9892 shlibpath_var=LD_LIBRARY_PATH
9893 shlibpath_overrides_runpath=yes
9894 hardcode_into_libs=yes
9895 ;;
9896
9897 newsos6)
9898 version_type=linux
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9900 shlibpath_var=LD_LIBRARY_PATH
9901 shlibpath_overrides_runpath=yes
9902 ;;
9903
9904 nto-qnx*)
9905 version_type=linux
9906 need_lib_prefix=no
9907 need_version=no
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 soname_spec='${libname}${release}${shared_ext}$major'
9910 shlibpath_var=LD_LIBRARY_PATH
9911 shlibpath_overrides_runpath=yes
9912 ;;
9913
9914 openbsd*)
9915 version_type=sunos
9916 sys_lib_dlsearch_path_spec="/usr/lib"
9917 need_lib_prefix=no
9918 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9919 case $host_os in
9920 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9921 *) need_version=no ;;
9922 esac
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9925 shlibpath_var=LD_LIBRARY_PATH
9926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9927 case $host_os in
9928 openbsd2.[89] | openbsd2.[89].*)
9929 shlibpath_overrides_runpath=no
9930 ;;
9931 *)
9932 shlibpath_overrides_runpath=yes
9933 ;;
9934 esac
9935 else
9936 shlibpath_overrides_runpath=yes
9937 fi
9938 ;;
9939
9940 os2*)
9941 libname_spec='$name'
9942 shrext_cmds=".dll"
9943 need_lib_prefix=no
9944 library_names_spec='$libname${shared_ext} $libname.a'
9945 dynamic_linker='OS/2 ld.exe'
9946 shlibpath_var=LIBPATH
9947 ;;
9948
9949 osf3* | osf4* | osf5*)
9950 version_type=osf
9951 need_lib_prefix=no
9952 need_version=no
9953 soname_spec='${libname}${release}${shared_ext}$major'
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9957 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9958 ;;
9959
9960 solaris*)
9961 version_type=linux
9962 need_lib_prefix=no
9963 need_version=no
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 shlibpath_overrides_runpath=yes
9968 hardcode_into_libs=yes
9969 # ldd complains unless libraries are executable
9970 postinstall_cmds='chmod +x $lib'
9971 ;;
9972
9973 sunos4*)
9974 version_type=sunos
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9976 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9977 shlibpath_var=LD_LIBRARY_PATH
9978 shlibpath_overrides_runpath=yes
9979 if test "$with_gnu_ld" = yes; then
9980 need_lib_prefix=no
9981 fi
9982 need_version=yes
9983 ;;
9984
9985 sysv4 | sysv4.3*)
9986 version_type=linux
9987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988 soname_spec='${libname}${release}${shared_ext}$major'
9989 shlibpath_var=LD_LIBRARY_PATH
9990 case $host_vendor in
9991 sni)
9992 shlibpath_overrides_runpath=no
9993 need_lib_prefix=no
9994 export_dynamic_flag_spec='${wl}-Blargedynsym'
9995 runpath_var=LD_RUN_PATH
9996 ;;
9997 siemens)
9998 need_lib_prefix=no
9999 ;;
10000 motorola)
10001 need_lib_prefix=no
10002 need_version=no
10003 shlibpath_overrides_runpath=no
10004 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10005 ;;
10006 esac
10007 ;;
10008
10009 sysv4*MP*)
10010 if test -d /usr/nec ;then
10011 version_type=linux
10012 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10013 soname_spec='$libname${shared_ext}.$major'
10014 shlibpath_var=LD_LIBRARY_PATH
10015 fi
10016 ;;
10017
10018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10019 version_type=freebsd-elf
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 hardcode_into_libs=yes
10026 if test "$with_gnu_ld" = yes; then
10027 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10028 shlibpath_overrides_runpath=no
10029 else
10030 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10031 shlibpath_overrides_runpath=yes
10032 case $host_os in
10033 sco3.2v5*)
10034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10035 ;;
10036 esac
10037 fi
10038 sys_lib_dlsearch_path_spec='/usr/lib'
10039 ;;
10040
10041 uts4*)
10042 version_type=linux
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 shlibpath_var=LD_LIBRARY_PATH
10046 ;;
10047
10048 *)
10049 dynamic_linker=no
10050 ;;
10051 esac
10052 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10053 echo "${ECHO_T}$dynamic_linker" >&6
10054 test "$dynamic_linker" = no && can_build_shared=no
10055
10056 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10057 if test "$GCC" = yes; then
10058 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10059 fi
10060
10061 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10062 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10063 hardcode_action=
10064 if test -n "$hardcode_libdir_flag_spec" || \
10065 test -n "$runpath_var" || \
10066 test "X$hardcode_automatic" = "Xyes" ; then
10067
10068 # We can hardcode non-existant directories.
10069 if test "$hardcode_direct" != no &&
10070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10071 # have to relink, otherwise we might link with an installed library
10072 # when we should be linking with a yet-to-be-installed one
10073 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10074 test "$hardcode_minus_L" != no; then
10075 # Linking always hardcodes the temporary library directory.
10076 hardcode_action=relink
10077 else
10078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10079 hardcode_action=immediate
10080 fi
10081 else
10082 # We cannot hardcode anything, or else we can only hardcode existing
10083 # directories.
10084 hardcode_action=unsupported
10085 fi
10086 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10087 echo "${ECHO_T}$hardcode_action" >&6
10088
10089 if test "$hardcode_action" = relink; then
10090 # Fast installation is not supported
10091 enable_fast_install=no
10092 elif test "$shlibpath_overrides_runpath" = yes ||
10093 test "$enable_shared" = no; then
10094 # Fast installation is not necessary
10095 enable_fast_install=needless
10096 fi
10097
10098 striplib=
10099 old_striplib=
10100 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10101 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10102 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10103 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10104 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10105 echo "$as_me:$LINENO: result: yes" >&5
10106 echo "${ECHO_T}yes" >&6
10107 else
10108 # FIXME - insert some real tests, host_os isn't really good enough
10109 case $host_os in
10110 darwin*)
10111 if test -n "$STRIP" ; then
10112 striplib="$STRIP -x"
10113 echo "$as_me:$LINENO: result: yes" >&5
10114 echo "${ECHO_T}yes" >&6
10115 else
10116 echo "$as_me:$LINENO: result: no" >&5
10117 echo "${ECHO_T}no" >&6
10118 fi
10119 ;;
10120 *)
10121 echo "$as_me:$LINENO: result: no" >&5
10122 echo "${ECHO_T}no" >&6
10123 ;;
10124 esac
10125 fi
10126
10127 if test "x$enable_dlopen" != xyes; then
10128 enable_dlopen=unknown
10129 enable_dlopen_self=unknown
10130 enable_dlopen_self_static=unknown
10131 else
10132 lt_cv_dlopen=no
10133 lt_cv_dlopen_libs=
10134
10135 case $host_os in
10136 beos*)
10137 lt_cv_dlopen="load_add_on"
10138 lt_cv_dlopen_libs=
10139 lt_cv_dlopen_self=yes
10140 ;;
10141
10142 mingw* | pw32*)
10143 lt_cv_dlopen="LoadLibrary"
10144 lt_cv_dlopen_libs=
10145 ;;
10146
10147 cygwin*)
10148 lt_cv_dlopen="dlopen"
10149 lt_cv_dlopen_libs=
10150 ;;
10151
10152 darwin*)
10153 # if libdl is installed we need to link against it
10154 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10155 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10156 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159 ac_check_lib_save_LIBS=$LIBS
10160 LIBS="-ldl $LIBS"
10161 cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h. */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167
10168 /* Override any gcc2 internal prototype to avoid an error. */
10169 #ifdef __cplusplus
10170 extern "C"
10171 #endif
10172 /* We use char because int might match the return type of a gcc2
10173 builtin and then its argument prototype would still apply. */
10174 char dlopen ();
10175 int
10176 main ()
10177 {
10178 dlopen ();
10179 ;
10180 return 0;
10181 }
10182 _ACEOF
10183 rm -f conftest.$ac_objext conftest$ac_exeext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10185 (eval $ac_link) 2>conftest.er1
10186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_c_werror_flag"
10193 || test ! -s conftest.err'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; } &&
10199 { ac_try='test -s conftest$ac_exeext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_cv_lib_dl_dlopen=yes
10206 else
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10209
10210 ac_cv_lib_dl_dlopen=no
10211 fi
10212 rm -f conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10215 fi
10216 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10217 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10218 if test $ac_cv_lib_dl_dlopen = yes; then
10219 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10220 else
10221
10222 lt_cv_dlopen="dyld"
10223 lt_cv_dlopen_libs=
10224 lt_cv_dlopen_self=yes
10225
10226 fi
10227
10228 ;;
10229
10230 *)
10231 echo "$as_me:$LINENO: checking for shl_load" >&5
10232 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10233 if test "${ac_cv_func_shl_load+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 else
10236 cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h. */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10244 #define shl_load innocuous_shl_load
10245
10246 /* System header to define __stub macros and hopefully few prototypes,
10247 which can conflict with char shl_load (); below.
10248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10249 <limits.h> exists even on freestanding compilers. */
10250
10251 #ifdef __STDC__
10252 # include <limits.h>
10253 #else
10254 # include <assert.h>
10255 #endif
10256
10257 #undef shl_load
10258
10259 /* Override any gcc2 internal prototype to avoid an error. */
10260 #ifdef __cplusplus
10261 extern "C"
10262 {
10263 #endif
10264 /* We use char because int might match the return type of a gcc2
10265 builtin and then its argument prototype would still apply. */
10266 char shl_load ();
10267 /* The GNU C library defines this for functions which it implements
10268 to always fail with ENOSYS. Some functions are actually named
10269 something starting with __ and the normal name is an alias. */
10270 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10271 choke me
10272 #else
10273 char (*f) () = shl_load;
10274 #endif
10275 #ifdef __cplusplus
10276 }
10277 #endif
10278
10279 int
10280 main ()
10281 {
10282 return f != shl_load;
10283 ;
10284 return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>conftest.er1
10290 ac_status=$?
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } &&
10296 { ac_try='test -z "$ac_c_werror_flag"
10297 || test ! -s conftest.err'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try='test -s conftest$ac_exeext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 ac_cv_func_shl_load=yes
10310 else
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314 ac_cv_func_shl_load=no
10315 fi
10316 rm -f conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 fi
10319 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10320 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10321 if test $ac_cv_func_shl_load = yes; then
10322 lt_cv_dlopen="shl_load"
10323 else
10324 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10325 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10326 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 else
10329 ac_check_lib_save_LIBS=$LIBS
10330 LIBS="-ldld $LIBS"
10331 cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h. */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337
10338 /* Override any gcc2 internal prototype to avoid an error. */
10339 #ifdef __cplusplus
10340 extern "C"
10341 #endif
10342 /* We use char because int might match the return type of a gcc2
10343 builtin and then its argument prototype would still apply. */
10344 char shl_load ();
10345 int
10346 main ()
10347 {
10348 shl_load ();
10349 ;
10350 return 0;
10351 }
10352 _ACEOF
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10355 (eval $ac_link) 2>conftest.er1
10356 ac_status=$?
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -f conftest.er1
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } &&
10362 { ac_try='test -z "$ac_c_werror_flag"
10363 || test ! -s conftest.err'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; } &&
10369 { ac_try='test -s conftest$ac_exeext'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then
10375 ac_cv_lib_dld_shl_load=yes
10376 else
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380 ac_cv_lib_dld_shl_load=no
10381 fi
10382 rm -f conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_lib_save_LIBS
10385 fi
10386 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10387 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10388 if test $ac_cv_lib_dld_shl_load = yes; then
10389 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10390 else
10391 echo "$as_me:$LINENO: checking for dlopen" >&5
10392 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10393 if test "${ac_cv_func_dlopen+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 else
10396 cat >conftest.$ac_ext <<_ACEOF
10397 /* confdefs.h. */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10404 #define dlopen innocuous_dlopen
10405
10406 /* System header to define __stub macros and hopefully few prototypes,
10407 which can conflict with char dlopen (); below.
10408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10409 <limits.h> exists even on freestanding compilers. */
10410
10411 #ifdef __STDC__
10412 # include <limits.h>
10413 #else
10414 # include <assert.h>
10415 #endif
10416
10417 #undef dlopen
10418
10419 /* Override any gcc2 internal prototype to avoid an error. */
10420 #ifdef __cplusplus
10421 extern "C"
10422 {
10423 #endif
10424 /* We use char because int might match the return type of a gcc2
10425 builtin and then its argument prototype would still apply. */
10426 char dlopen ();
10427 /* The GNU C library defines this for functions which it implements
10428 to always fail with ENOSYS. Some functions are actually named
10429 something starting with __ and the normal name is an alias. */
10430 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10431 choke me
10432 #else
10433 char (*f) () = dlopen;
10434 #endif
10435 #ifdef __cplusplus
10436 }
10437 #endif
10438
10439 int
10440 main ()
10441 {
10442 return f != dlopen;
10443 ;
10444 return 0;
10445 }
10446 _ACEOF
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10449 (eval $ac_link) 2>conftest.er1
10450 ac_status=$?
10451 grep -v '^ *+' conftest.er1 >conftest.err
10452 rm -f conftest.er1
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } &&
10456 { ac_try='test -z "$ac_c_werror_flag"
10457 || test ! -s conftest.err'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; } &&
10463 { ac_try='test -s conftest$ac_exeext'
10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465 (eval $ac_try) 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 ac_cv_func_dlopen=yes
10470 else
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10473
10474 ac_cv_func_dlopen=no
10475 fi
10476 rm -f conftest.err conftest.$ac_objext \
10477 conftest$ac_exeext conftest.$ac_ext
10478 fi
10479 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10480 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10481 if test $ac_cv_func_dlopen = yes; then
10482 lt_cv_dlopen="dlopen"
10483 else
10484 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10485 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10486 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489 ac_check_lib_save_LIBS=$LIBS
10490 LIBS="-ldl $LIBS"
10491 cat >conftest.$ac_ext <<_ACEOF
10492 /* confdefs.h. */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497
10498 /* Override any gcc2 internal prototype to avoid an error. */
10499 #ifdef __cplusplus
10500 extern "C"
10501 #endif
10502 /* We use char because int might match the return type of a gcc2
10503 builtin and then its argument prototype would still apply. */
10504 char dlopen ();
10505 int
10506 main ()
10507 {
10508 dlopen ();
10509 ;
10510 return 0;
10511 }
10512 _ACEOF
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10515 (eval $ac_link) 2>conftest.er1
10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
10522 { ac_try='test -z "$ac_c_werror_flag"
10523 || test ! -s conftest.err'
10524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; } &&
10529 { ac_try='test -s conftest$ac_exeext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 ac_cv_lib_dl_dlopen=yes
10536 else
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10539
10540 ac_cv_lib_dl_dlopen=no
10541 fi
10542 rm -f conftest.err conftest.$ac_objext \
10543 conftest$ac_exeext conftest.$ac_ext
10544 LIBS=$ac_check_lib_save_LIBS
10545 fi
10546 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10547 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10548 if test $ac_cv_lib_dl_dlopen = yes; then
10549 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10550 else
10551 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10552 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10553 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556 ac_check_lib_save_LIBS=$LIBS
10557 LIBS="-lsvld $LIBS"
10558 cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h. */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10564
10565 /* Override any gcc2 internal prototype to avoid an error. */
10566 #ifdef __cplusplus
10567 extern "C"
10568 #endif
10569 /* We use char because int might match the return type of a gcc2
10570 builtin and then its argument prototype would still apply. */
10571 char dlopen ();
10572 int
10573 main ()
10574 {
10575 dlopen ();
10576 ;
10577 return 0;
10578 }
10579 _ACEOF
10580 rm -f conftest.$ac_objext conftest$ac_exeext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10582 (eval $ac_link) 2>conftest.er1
10583 ac_status=$?
10584 grep -v '^ *+' conftest.er1 >conftest.err
10585 rm -f conftest.er1
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } &&
10589 { ac_try='test -z "$ac_c_werror_flag"
10590 || test ! -s conftest.err'
10591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592 (eval $ac_try) 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; } &&
10596 { ac_try='test -s conftest$ac_exeext'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
10602 ac_cv_lib_svld_dlopen=yes
10603 else
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10606
10607 ac_cv_lib_svld_dlopen=no
10608 fi
10609 rm -f conftest.err conftest.$ac_objext \
10610 conftest$ac_exeext conftest.$ac_ext
10611 LIBS=$ac_check_lib_save_LIBS
10612 fi
10613 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10614 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10615 if test $ac_cv_lib_svld_dlopen = yes; then
10616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10617 else
10618 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10619 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10620 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623 ac_check_lib_save_LIBS=$LIBS
10624 LIBS="-ldld $LIBS"
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631
10632 /* Override any gcc2 internal prototype to avoid an error. */
10633 #ifdef __cplusplus
10634 extern "C"
10635 #endif
10636 /* We use char because int might match the return type of a gcc2
10637 builtin and then its argument prototype would still apply. */
10638 char dld_link ();
10639 int
10640 main ()
10641 {
10642 dld_link ();
10643 ;
10644 return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649 (eval $ac_link) 2>conftest.er1
10650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag"
10657 || test ! -s conftest.err'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 ac_cv_lib_dld_dld_link=yes
10670 else
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10673
10674 ac_cv_lib_dld_dld_link=no
10675 fi
10676 rm -f conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10678 LIBS=$ac_check_lib_save_LIBS
10679 fi
10680 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10681 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10682 if test $ac_cv_lib_dld_dld_link = yes; then
10683 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10684 fi
10685
10686
10687 fi
10688
10689
10690 fi
10691
10692
10693 fi
10694
10695
10696 fi
10697
10698
10699 fi
10700
10701 ;;
10702 esac
10703
10704 if test "x$lt_cv_dlopen" != xno; then
10705 enable_dlopen=yes
10706 else
10707 enable_dlopen=no
10708 fi
10709
10710 case $lt_cv_dlopen in
10711 dlopen)
10712 save_CPPFLAGS="$CPPFLAGS"
10713 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10714
10715 save_LDFLAGS="$LDFLAGS"
10716 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10717
10718 save_LIBS="$LIBS"
10719 LIBS="$lt_cv_dlopen_libs $LIBS"
10720
10721 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10722 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10723 if test "${lt_cv_dlopen_self+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726 if test "$cross_compiling" = yes; then :
10727 lt_cv_dlopen_self=cross
10728 else
10729 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10730 lt_status=$lt_dlunknown
10731 cat > conftest.$ac_ext <<EOF
10732 #line 10732 "configure"
10733 #include "confdefs.h"
10734
10735 #if HAVE_DLFCN_H
10736 #include <dlfcn.h>
10737 #endif
10738
10739 #include <stdio.h>
10740
10741 #ifdef RTLD_GLOBAL
10742 # define LT_DLGLOBAL RTLD_GLOBAL
10743 #else
10744 # ifdef DL_GLOBAL
10745 # define LT_DLGLOBAL DL_GLOBAL
10746 # else
10747 # define LT_DLGLOBAL 0
10748 # endif
10749 #endif
10750
10751 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10752 find out it does not work in some platform. */
10753 #ifndef LT_DLLAZY_OR_NOW
10754 # ifdef RTLD_LAZY
10755 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10756 # else
10757 # ifdef DL_LAZY
10758 # define LT_DLLAZY_OR_NOW DL_LAZY
10759 # else
10760 # ifdef RTLD_NOW
10761 # define LT_DLLAZY_OR_NOW RTLD_NOW
10762 # else
10763 # ifdef DL_NOW
10764 # define LT_DLLAZY_OR_NOW DL_NOW
10765 # else
10766 # define LT_DLLAZY_OR_NOW 0
10767 # endif
10768 # endif
10769 # endif
10770 # endif
10771 #endif
10772
10773 #ifdef __cplusplus
10774 extern "C" void exit (int);
10775 #endif
10776
10777 void fnord() { int i=42;}
10778 int main ()
10779 {
10780 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10781 int status = $lt_dlunknown;
10782
10783 if (self)
10784 {
10785 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10786 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10787 /* dlclose (self); */
10788 }
10789 else
10790 puts (dlerror ());
10791
10792 exit (status);
10793 }
10794 EOF
10795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10796 (eval $ac_link) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10800 (./conftest; exit; ) >&5 2>/dev/null
10801 lt_status=$?
10802 case x$lt_status in
10803 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10804 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10805 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10806 esac
10807 else :
10808 # compilation failed
10809 lt_cv_dlopen_self=no
10810 fi
10811 fi
10812 rm -fr conftest*
10813
10814
10815 fi
10816 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10817 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10818
10819 if test "x$lt_cv_dlopen_self" = xyes; then
10820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10821 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10822 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10823 if test "${lt_cv_dlopen_self_static+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826 if test "$cross_compiling" = yes; then :
10827 lt_cv_dlopen_self_static=cross
10828 else
10829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10830 lt_status=$lt_dlunknown
10831 cat > conftest.$ac_ext <<EOF
10832 #line 10832 "configure"
10833 #include "confdefs.h"
10834
10835 #if HAVE_DLFCN_H
10836 #include <dlfcn.h>
10837 #endif
10838
10839 #include <stdio.h>
10840
10841 #ifdef RTLD_GLOBAL
10842 # define LT_DLGLOBAL RTLD_GLOBAL
10843 #else
10844 # ifdef DL_GLOBAL
10845 # define LT_DLGLOBAL DL_GLOBAL
10846 # else
10847 # define LT_DLGLOBAL 0
10848 # endif
10849 #endif
10850
10851 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10852 find out it does not work in some platform. */
10853 #ifndef LT_DLLAZY_OR_NOW
10854 # ifdef RTLD_LAZY
10855 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10856 # else
10857 # ifdef DL_LAZY
10858 # define LT_DLLAZY_OR_NOW DL_LAZY
10859 # else
10860 # ifdef RTLD_NOW
10861 # define LT_DLLAZY_OR_NOW RTLD_NOW
10862 # else
10863 # ifdef DL_NOW
10864 # define LT_DLLAZY_OR_NOW DL_NOW
10865 # else
10866 # define LT_DLLAZY_OR_NOW 0
10867 # endif
10868 # endif
10869 # endif
10870 # endif
10871 #endif
10872
10873 #ifdef __cplusplus
10874 extern "C" void exit (int);
10875 #endif
10876
10877 void fnord() { int i=42;}
10878 int main ()
10879 {
10880 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10881 int status = $lt_dlunknown;
10882
10883 if (self)
10884 {
10885 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10886 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10887 /* dlclose (self); */
10888 }
10889 else
10890 puts (dlerror ());
10891
10892 exit (status);
10893 }
10894 EOF
10895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10896 (eval $ac_link) 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10900 (./conftest; exit; ) >&5 2>/dev/null
10901 lt_status=$?
10902 case x$lt_status in
10903 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10904 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10905 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10906 esac
10907 else :
10908 # compilation failed
10909 lt_cv_dlopen_self_static=no
10910 fi
10911 fi
10912 rm -fr conftest*
10913
10914
10915 fi
10916 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10917 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10918 fi
10919
10920 CPPFLAGS="$save_CPPFLAGS"
10921 LDFLAGS="$save_LDFLAGS"
10922 LIBS="$save_LIBS"
10923 ;;
10924 esac
10925
10926 case $lt_cv_dlopen_self in
10927 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10928 *) enable_dlopen_self=unknown ;;
10929 esac
10930
10931 case $lt_cv_dlopen_self_static in
10932 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10933 *) enable_dlopen_self_static=unknown ;;
10934 esac
10935 fi
10936
10937
10938 # Report which library types will actually be built
10939 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10940 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10941 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10942 echo "${ECHO_T}$can_build_shared" >&6
10943
10944 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10945 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10946 test "$can_build_shared" = "no" && enable_shared=no
10947
10948 # On AIX, shared libraries and static libraries use the same namespace, and
10949 # are all built from PIC.
10950 case $host_os in
10951 aix3*)
10952 test "$enable_shared" = yes && enable_static=no
10953 if test -n "$RANLIB"; then
10954 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10955 postinstall_cmds='$RANLIB $lib'
10956 fi
10957 ;;
10958
10959 aix4* | aix5*)
10960 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10961 test "$enable_shared" = yes && enable_static=no
10962 fi
10963 ;;
10964 esac
10965 echo "$as_me:$LINENO: result: $enable_shared" >&5
10966 echo "${ECHO_T}$enable_shared" >&6
10967
10968 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10969 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10970 # Make sure either enable_shared or enable_static is yes.
10971 test "$enable_shared" = yes || enable_static=yes
10972 echo "$as_me:$LINENO: result: $enable_static" >&5
10973 echo "${ECHO_T}$enable_static" >&6
10974
10975 # The else clause should only fire when bootstrapping the
10976 # libtool distribution, otherwise you forgot to ship ltmain.sh
10977 # with your package, and you will get complaints that there are
10978 # no rules to generate ltmain.sh.
10979 if test -f "$ltmain"; then
10980 # See if we are running on zsh, and set the options which allow our commands through
10981 # without removal of \ escapes.
10982 if test -n "${ZSH_VERSION+set}" ; then
10983 setopt NO_GLOB_SUBST
10984 fi
10985 # Now quote all the things that may contain metacharacters while being
10986 # careful not to overquote the AC_SUBSTed values. We take copies of the
10987 # variables and quote the copies for generation of the libtool script.
10988 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10989 SED SHELL STRIP \
10990 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10991 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10992 deplibs_check_method reload_flag reload_cmds need_locks \
10993 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10994 lt_cv_sys_global_symbol_to_c_name_address \
10995 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10996 old_postinstall_cmds old_postuninstall_cmds \
10997 compiler \
10998 CC \
10999 LD \
11000 lt_prog_compiler_wl \
11001 lt_prog_compiler_pic \
11002 lt_prog_compiler_static \
11003 lt_prog_compiler_no_builtin_flag \
11004 export_dynamic_flag_spec \
11005 thread_safe_flag_spec \
11006 whole_archive_flag_spec \
11007 enable_shared_with_static_runtimes \
11008 old_archive_cmds \
11009 old_archive_from_new_cmds \
11010 predep_objects \
11011 postdep_objects \
11012 predeps \
11013 postdeps \
11014 compiler_lib_search_path \
11015 archive_cmds \
11016 archive_expsym_cmds \
11017 postinstall_cmds \
11018 postuninstall_cmds \
11019 old_archive_from_expsyms_cmds \
11020 allow_undefined_flag \
11021 no_undefined_flag \
11022 export_symbols_cmds \
11023 hardcode_libdir_flag_spec \
11024 hardcode_libdir_flag_spec_ld \
11025 hardcode_libdir_separator \
11026 hardcode_automatic \
11027 module_cmds \
11028 module_expsym_cmds \
11029 lt_cv_prog_compiler_c_o \
11030 exclude_expsyms \
11031 include_expsyms; do
11032
11033 case $var in
11034 old_archive_cmds | \
11035 old_archive_from_new_cmds | \
11036 archive_cmds | \
11037 archive_expsym_cmds | \
11038 module_cmds | \
11039 module_expsym_cmds | \
11040 old_archive_from_expsyms_cmds | \
11041 export_symbols_cmds | \
11042 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11043 postinstall_cmds | postuninstall_cmds | \
11044 old_postinstall_cmds | old_postuninstall_cmds | \
11045 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11046 # Double-quote double-evaled strings.
11047 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11048 ;;
11049 *)
11050 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11051 ;;
11052 esac
11053 done
11054
11055 case $lt_echo in
11056 *'\$0 --fallback-echo"')
11057 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11058 ;;
11059 esac
11060
11061 cfgfile="${ofile}T"
11062 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11063 $rm -f "$cfgfile"
11064 { echo "$as_me:$LINENO: creating $ofile" >&5
11065 echo "$as_me: creating $ofile" >&6;}
11066
11067 cat <<__EOF__ >> "$cfgfile"
11068 #! $SHELL
11069
11070 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11071 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11072 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11073 #
11074 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11075 # Free Software Foundation, Inc.
11076 #
11077 # This file is part of GNU Libtool:
11078 # Originally by Gordon Matzigkeit <[email protected]>, 1996
11079 #
11080 # This program is free software; you can redistribute it and/or modify
11081 # it under the terms of the GNU General Public License as published by
11082 # the Free Software Foundation; either version 2 of the License, or
11083 # (at your option) any later version.
11084 #
11085 # This program is distributed in the hope that it will be useful, but
11086 # WITHOUT ANY WARRANTY; without even the implied warranty of
11087 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11088 # General Public License for more details.
11089 #
11090 # You should have received a copy of the GNU General Public License
11091 # along with this program; if not, write to the Free Software
11092 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11093 #
11094 # As a special exception to the GNU General Public License, if you
11095 # distribute this file as part of a program that contains a
11096 # configuration script generated by Autoconf, you may include it under
11097 # the same distribution terms that you use for the rest of that program.
11098
11099 # A sed program that does not truncate output.
11100 SED=$lt_SED
11101
11102 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11103 Xsed="$SED -e 1s/^X//"
11104
11105 # The HP-UX ksh and POSIX shell print the target directory to stdout
11106 # if CDPATH is set.
11107 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11108
11109 # The names of the tagged configurations supported by this script.
11110 available_tags=
11111
11112 # ### BEGIN LIBTOOL CONFIG
11113
11114 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11115
11116 # Shell to use when invoking shell scripts.
11117 SHELL=$lt_SHELL
11118
11119 # Whether or not to build shared libraries.
11120 build_libtool_libs=$enable_shared
11121
11122 # Whether or not to build static libraries.
11123 build_old_libs=$enable_static
11124
11125 # Whether or not to add -lc for building shared libraries.
11126 build_libtool_need_lc=$archive_cmds_need_lc
11127
11128 # Whether or not to disallow shared libs when runtime libs are static
11129 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11130
11131 # Whether or not to optimize for fast installation.
11132 fast_install=$enable_fast_install
11133
11134 # The host system.
11135 host_alias=$host_alias
11136 host=$host
11137 host_os=$host_os
11138
11139 # The build system.
11140 build_alias=$build_alias
11141 build=$build
11142 build_os=$build_os
11143
11144 # An echo program that does not interpret backslashes.
11145 echo=$lt_echo
11146
11147 # The archiver.
11148 AR=$lt_AR
11149 AR_FLAGS=$lt_AR_FLAGS
11150
11151 # A C compiler.
11152 LTCC=$lt_LTCC
11153
11154 # LTCC compiler flags.
11155 LTCFLAGS=$lt_LTCFLAGS
11156
11157 # A language-specific compiler.
11158 CC=$lt_compiler
11159
11160 # Is the compiler the GNU C compiler?
11161 with_gcc=$GCC
11162
11163 # An ERE matcher.
11164 EGREP=$lt_EGREP
11165
11166 # The linker used to build libraries.
11167 LD=$lt_LD
11168
11169 # Whether we need hard or soft links.
11170 LN_S=$lt_LN_S
11171
11172 # A BSD-compatible nm program.
11173 NM=$lt_NM
11174
11175 # A symbol stripping program
11176 STRIP=$lt_STRIP
11177
11178 # Used to examine libraries when file_magic_cmd begins "file"
11179 MAGIC_CMD=$MAGIC_CMD
11180
11181 # Used on cygwin: DLL creation program.
11182 DLLTOOL="$DLLTOOL"
11183
11184 # Used on cygwin: object dumper.
11185 OBJDUMP="$OBJDUMP"
11186
11187 # Used on cygwin: assembler.
11188 AS="$AS"
11189
11190 # The name of the directory that contains temporary libtool files.
11191 objdir=$objdir
11192
11193 # How to create reloadable object files.
11194 reload_flag=$lt_reload_flag
11195 reload_cmds=$lt_reload_cmds
11196
11197 # How to pass a linker flag through the compiler.
11198 wl=$lt_lt_prog_compiler_wl
11199
11200 # Object file suffix (normally "o").
11201 objext="$ac_objext"
11202
11203 # Old archive suffix (normally "a").
11204 libext="$libext"
11205
11206 # Shared library suffix (normally ".so").
11207 shrext_cmds='$shrext_cmds'
11208
11209 # Executable file suffix (normally "").
11210 exeext="$exeext"
11211
11212 # Additional compiler flags for building library objects.
11213 pic_flag=$lt_lt_prog_compiler_pic
11214 pic_mode=$pic_mode
11215
11216 # What is the maximum length of a command?
11217 max_cmd_len=$lt_cv_sys_max_cmd_len
11218
11219 # Does compiler simultaneously support -c and -o options?
11220 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11221
11222 # Must we lock files when doing compilation?
11223 need_locks=$lt_need_locks
11224
11225 # Do we need the lib prefix for modules?
11226 need_lib_prefix=$need_lib_prefix
11227
11228 # Do we need a version for libraries?
11229 need_version=$need_version
11230
11231 # Whether dlopen is supported.
11232 dlopen_support=$enable_dlopen
11233
11234 # Whether dlopen of programs is supported.
11235 dlopen_self=$enable_dlopen_self
11236
11237 # Whether dlopen of statically linked programs is supported.
11238 dlopen_self_static=$enable_dlopen_self_static
11239
11240 # Compiler flag to prevent dynamic linking.
11241 link_static_flag=$lt_lt_prog_compiler_static
11242
11243 # Compiler flag to turn off builtin functions.
11244 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11245
11246 # Compiler flag to allow reflexive dlopens.
11247 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11248
11249 # Compiler flag to generate shared objects directly from archives.
11250 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11251
11252 # Compiler flag to generate thread-safe objects.
11253 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11254
11255 # Library versioning type.
11256 version_type=$version_type
11257
11258 # Format of library name prefix.
11259 libname_spec=$lt_libname_spec
11260
11261 # List of archive names. First name is the real one, the rest are links.
11262 # The last name is the one that the linker finds with -lNAME.
11263 library_names_spec=$lt_library_names_spec
11264
11265 # The coded name of the library, if different from the real name.
11266 soname_spec=$lt_soname_spec
11267
11268 # Commands used to build and install an old-style archive.
11269 RANLIB=$lt_RANLIB
11270 old_archive_cmds=$lt_old_archive_cmds
11271 old_postinstall_cmds=$lt_old_postinstall_cmds
11272 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11273
11274 # Create an old-style archive from a shared archive.
11275 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11276
11277 # Create a temporary old-style archive to link instead of a shared archive.
11278 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11279
11280 # Commands used to build and install a shared archive.
11281 archive_cmds=$lt_archive_cmds
11282 archive_expsym_cmds=$lt_archive_expsym_cmds
11283 postinstall_cmds=$lt_postinstall_cmds
11284 postuninstall_cmds=$lt_postuninstall_cmds
11285
11286 # Commands used to build a loadable module (assumed same as above if empty)
11287 module_cmds=$lt_module_cmds
11288 module_expsym_cmds=$lt_module_expsym_cmds
11289
11290 # Commands to strip libraries.
11291 old_striplib=$lt_old_striplib
11292 striplib=$lt_striplib
11293
11294 # Dependencies to place before the objects being linked to create a
11295 # shared library.
11296 predep_objects=$lt_predep_objects
11297
11298 # Dependencies to place after the objects being linked to create a
11299 # shared library.
11300 postdep_objects=$lt_postdep_objects
11301
11302 # Dependencies to place before the objects being linked to create a
11303 # shared library.
11304 predeps=$lt_predeps
11305
11306 # Dependencies to place after the objects being linked to create a
11307 # shared library.
11308 postdeps=$lt_postdeps
11309
11310 # The library search path used internally by the compiler when linking
11311 # a shared library.
11312 compiler_lib_search_path=$lt_compiler_lib_search_path
11313
11314 # Method to check whether dependent libraries are shared objects.
11315 deplibs_check_method=$lt_deplibs_check_method
11316
11317 # Command to use when deplibs_check_method == file_magic.
11318 file_magic_cmd=$lt_file_magic_cmd
11319
11320 # Flag that allows shared libraries with undefined symbols to be built.
11321 allow_undefined_flag=$lt_allow_undefined_flag
11322
11323 # Flag that forces no undefined symbols.
11324 no_undefined_flag=$lt_no_undefined_flag
11325
11326 # Commands used to finish a libtool library installation in a directory.
11327 finish_cmds=$lt_finish_cmds
11328
11329 # Same as above, but a single script fragment to be evaled but not shown.
11330 finish_eval=$lt_finish_eval
11331
11332 # Take the output of nm and produce a listing of raw symbols and C names.
11333 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11334
11335 # Transform the output of nm in a proper C declaration
11336 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11337
11338 # Transform the output of nm in a C name address pair
11339 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11340
11341 # This is the shared library runtime path variable.
11342 runpath_var=$runpath_var
11343
11344 # This is the shared library path variable.
11345 shlibpath_var=$shlibpath_var
11346
11347 # Is shlibpath searched before the hard-coded library search path?
11348 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11349
11350 # How to hardcode a shared library path into an executable.
11351 hardcode_action=$hardcode_action
11352
11353 # Whether we should hardcode library paths into libraries.
11354 hardcode_into_libs=$hardcode_into_libs
11355
11356 # Flag to hardcode \$libdir into a binary during linking.
11357 # This must work even if \$libdir does not exist.
11358 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11359
11360 # If ld is used when linking, flag to hardcode \$libdir into
11361 # a binary during linking. This must work even if \$libdir does
11362 # not exist.
11363 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11364
11365 # Whether we need a single -rpath flag with a separated argument.
11366 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11367
11368 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11369 # resulting binary.
11370 hardcode_direct=$hardcode_direct
11371
11372 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11373 # resulting binary.
11374 hardcode_minus_L=$hardcode_minus_L
11375
11376 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11377 # the resulting binary.
11378 hardcode_shlibpath_var=$hardcode_shlibpath_var
11379
11380 # Set to yes if building a shared library automatically hardcodes DIR into the library
11381 # and all subsequent libraries and executables linked against it.
11382 hardcode_automatic=$hardcode_automatic
11383
11384 # Variables whose values should be saved in libtool wrapper scripts and
11385 # restored at relink time.
11386 variables_saved_for_relink="$variables_saved_for_relink"
11387
11388 # Whether libtool must link a program against all its dependency libraries.
11389 link_all_deplibs=$link_all_deplibs
11390
11391 # Compile-time system search path for libraries
11392 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11393
11394 # Run-time system search path for libraries
11395 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11396
11397 # Fix the shell variable \$srcfile for the compiler.
11398 fix_srcfile_path="$fix_srcfile_path"
11399
11400 # Set to yes if exported symbols are required.
11401 always_export_symbols=$always_export_symbols
11402
11403 # The commands to list exported symbols.
11404 export_symbols_cmds=$lt_export_symbols_cmds
11405
11406 # The commands to extract the exported symbol list from a shared archive.
11407 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11408
11409 # Symbols that should not be listed in the preloaded symbols.
11410 exclude_expsyms=$lt_exclude_expsyms
11411
11412 # Symbols that must always be exported.
11413 include_expsyms=$lt_include_expsyms
11414
11415 # ### END LIBTOOL CONFIG
11416
11417 __EOF__
11418
11419
11420 case $host_os in
11421 aix3*)
11422 cat <<\EOF >> "$cfgfile"
11423
11424 # AIX sometimes has problems with the GCC collect2 program. For some
11425 # reason, if we set the COLLECT_NAMES environment variable, the problems
11426 # vanish in a puff of smoke.
11427 if test "X${COLLECT_NAMES+set}" != Xset; then
11428 COLLECT_NAMES=
11429 export COLLECT_NAMES
11430 fi
11431 EOF
11432 ;;
11433 esac
11434
11435 # We use sed instead of cat because bash on DJGPP gets confused if
11436 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11437 # text mode, it properly converts lines to CR/LF. This bash problem
11438 # is reportedly fixed, but why not run on old versions too?
11439 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11440
11441 mv -f "$cfgfile" "$ofile" || \
11442 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11443 chmod +x "$ofile"
11444
11445 else
11446 # If there is no Makefile yet, we rely on a make rule to execute
11447 # `config.status --recheck' to rerun these tests and create the
11448 # libtool script then.
11449 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11450 if test -f "$ltmain_in"; then
11451 test -f Makefile && make "$ltmain"
11452 fi
11453 fi
11454
11455
11456 ac_ext=c
11457 ac_cpp='$CPP $CPPFLAGS'
11458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11461
11462 CC="$lt_save_CC"
11463
11464
11465 # Check whether --with-tags or --without-tags was given.
11466 if test "${with_tags+set}" = set; then
11467 withval="$with_tags"
11468 tagnames="$withval"
11469 fi;
11470
11471 if test -f "$ltmain" && test -n "$tagnames"; then
11472 if test ! -f "${ofile}"; then
11473 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11474 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11475 fi
11476
11477 if test -z "$LTCC"; then
11478 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11479 if test -z "$LTCC"; then
11480 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11481 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11482 else
11483 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11484 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11485 fi
11486 fi
11487 if test -z "$LTCFLAGS"; then
11488 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11489 fi
11490
11491 # Extract list of available tagged configurations in $ofile.
11492 # Note that this assumes the entire list is on one line.
11493 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11494
11495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11496 for tagname in $tagnames; do
11497 IFS="$lt_save_ifs"
11498 # Check whether tagname contains only valid characters
11499 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11500 "") ;;
11501 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11502 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11503 { (exit 1); exit 1; }; }
11504 ;;
11505 esac
11506
11507 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11508 then
11509 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11510 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11511 { (exit 1); exit 1; }; }
11512 fi
11513
11514 # Update the list of available tags.
11515 if test -n "$tagname"; then
11516 echo appending configuration tag \"$tagname\" to $ofile
11517
11518 case $tagname in
11519 CXX)
11520 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11521 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11522 (test "X$CXX" != "Xg++"))) ; then
11523 ac_ext=cc
11524 ac_cpp='$CXXCPP $CPPFLAGS'
11525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11528
11529
11530
11531
11532 archive_cmds_need_lc_CXX=no
11533 allow_undefined_flag_CXX=
11534 always_export_symbols_CXX=no
11535 archive_expsym_cmds_CXX=
11536 export_dynamic_flag_spec_CXX=
11537 hardcode_direct_CXX=no
11538 hardcode_libdir_flag_spec_CXX=
11539 hardcode_libdir_flag_spec_ld_CXX=
11540 hardcode_libdir_separator_CXX=
11541 hardcode_minus_L_CXX=no
11542 hardcode_shlibpath_var_CXX=unsupported
11543 hardcode_automatic_CXX=no
11544 module_cmds_CXX=
11545 module_expsym_cmds_CXX=
11546 link_all_deplibs_CXX=unknown
11547 old_archive_cmds_CXX=$old_archive_cmds
11548 no_undefined_flag_CXX=
11549 whole_archive_flag_spec_CXX=
11550 enable_shared_with_static_runtimes_CXX=no
11551
11552 # Dependencies to place before and after the object being linked:
11553 predep_objects_CXX=
11554 postdep_objects_CXX=
11555 predeps_CXX=
11556 postdeps_CXX=
11557 compiler_lib_search_path_CXX=
11558
11559 # Source file extension for C++ test sources.
11560 ac_ext=cpp
11561
11562 # Object file extension for compiled C++ test sources.
11563 objext=o
11564 objext_CXX=$objext
11565
11566 # Code to be used in simple compile tests
11567 lt_simple_compile_test_code="int some_variable = 0;\n"
11568
11569 # Code to be used in simple link tests
11570 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11571
11572 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11573
11574 # If no C compiler was specified, use CC.
11575 LTCC=${LTCC-"$CC"}
11576
11577 # If no C compiler flags were specified, use CFLAGS.
11578 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11579
11580 # Allow CC to be a program name with arguments.
11581 compiler=$CC
11582
11583
11584 # save warnings/boilerplate of simple test code
11585 ac_outfile=conftest.$ac_objext
11586 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11587 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11588 _lt_compiler_boilerplate=`cat conftest.err`
11589 $rm conftest*
11590
11591 ac_outfile=conftest.$ac_objext
11592 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11593 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11594 _lt_linker_boilerplate=`cat conftest.err`
11595 $rm conftest*
11596
11597
11598 # Allow CC to be a program name with arguments.
11599 lt_save_CC=$CC
11600 lt_save_LD=$LD
11601 lt_save_GCC=$GCC
11602 GCC=$GXX
11603 lt_save_with_gnu_ld=$with_gnu_ld
11604 lt_save_path_LD=$lt_cv_path_LD
11605 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11606 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11607 else
11608 $as_unset lt_cv_prog_gnu_ld
11609 fi
11610 if test -n "${lt_cv_path_LDCXX+set}"; then
11611 lt_cv_path_LD=$lt_cv_path_LDCXX
11612 else
11613 $as_unset lt_cv_path_LD
11614 fi
11615 test -z "${LDCXX+set}" || LD=$LDCXX
11616 CC=${CXX-"c++"}
11617 compiler=$CC
11618 compiler_CXX=$CC
11619 for cc_temp in $compiler""; do
11620 case $cc_temp in
11621 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11622 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11623 \-*) ;;
11624 *) break;;
11625 esac
11626 done
11627 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11628
11629
11630 # We don't want -fno-exception wen compiling C++ code, so set the
11631 # no_builtin_flag separately
11632 if test "$GXX" = yes; then
11633 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11634 else
11635 lt_prog_compiler_no_builtin_flag_CXX=
11636 fi
11637
11638 if test "$GXX" = yes; then
11639 # Set up default GNU C++ configuration
11640
11641
11642 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11643 if test "${with_gnu_ld+set}" = set; then
11644 withval="$with_gnu_ld"
11645 test "$withval" = no || with_gnu_ld=yes
11646 else
11647 with_gnu_ld=no
11648 fi;
11649 ac_prog=ld
11650 if test "$GCC" = yes; then
11651 # Check if gcc -print-prog-name=ld gives a path.
11652 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11653 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11654 case $host in
11655 *-*-mingw*)
11656 # gcc leaves a trailing carriage return which upsets mingw
11657 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11658 *)
11659 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11660 esac
11661 case $ac_prog in
11662 # Accept absolute paths.
11663 [\\/]* | ?:[\\/]*)
11664 re_direlt='/[^/][^/]*/\.\./'
11665 # Canonicalize the pathname of ld
11666 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11667 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11668 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11669 done
11670 test -z "$LD" && LD="$ac_prog"
11671 ;;
11672 "")
11673 # If it fails, then pretend we aren't using GCC.
11674 ac_prog=ld
11675 ;;
11676 *)
11677 # If it is relative, then search for the first ld in PATH.
11678 with_gnu_ld=unknown
11679 ;;
11680 esac
11681 elif test "$with_gnu_ld" = yes; then
11682 echo "$as_me:$LINENO: checking for GNU ld" >&5
11683 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11684 else
11685 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11686 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11687 fi
11688 if test "${lt_cv_path_LD+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 else
11691 if test -z "$LD"; then
11692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11693 for ac_dir in $PATH; do
11694 IFS="$lt_save_ifs"
11695 test -z "$ac_dir" && ac_dir=.
11696 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11697 lt_cv_path_LD="$ac_dir/$ac_prog"
11698 # Check to see if the program is GNU ld. I'd rather use --version,
11699 # but apparently some variants of GNU ld only accept -v.
11700 # Break only if it was the GNU/non-GNU ld that we prefer.
11701 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11702 *GNU* | *'with BFD'*)
11703 test "$with_gnu_ld" != no && break
11704 ;;
11705 *)
11706 test "$with_gnu_ld" != yes && break
11707 ;;
11708 esac
11709 fi
11710 done
11711 IFS="$lt_save_ifs"
11712 else
11713 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11714 fi
11715 fi
11716
11717 LD="$lt_cv_path_LD"
11718 if test -n "$LD"; then
11719 echo "$as_me:$LINENO: result: $LD" >&5
11720 echo "${ECHO_T}$LD" >&6
11721 else
11722 echo "$as_me:$LINENO: result: no" >&5
11723 echo "${ECHO_T}no" >&6
11724 fi
11725 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11726 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11727 { (exit 1); exit 1; }; }
11728 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11729 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11730 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 else
11733 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11734 case `$LD -v 2>&1 </dev/null` in
11735 *GNU* | *'with BFD'*)
11736 lt_cv_prog_gnu_ld=yes
11737 ;;
11738 *)
11739 lt_cv_prog_gnu_ld=no
11740 ;;
11741 esac
11742 fi
11743 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11744 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11745 with_gnu_ld=$lt_cv_prog_gnu_ld
11746
11747
11748
11749 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11750 # archiving commands below assume that GNU ld is being used.
11751 if test "$with_gnu_ld" = yes; then
11752 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11753 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'
11754
11755 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11757
11758 # If archive_cmds runs LD, not CC, wlarc should be empty
11759 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11760 # investigate it a little bit more. (MM)
11761 wlarc='${wl}'
11762
11763 # ancient GNU ld didn't support --whole-archive et. al.
11764 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11765 grep 'no-whole-archive' > /dev/null; then
11766 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11767 else
11768 whole_archive_flag_spec_CXX=
11769 fi
11770 else
11771 with_gnu_ld=no
11772 wlarc=
11773
11774 # A generic and very simple default shared library creation
11775 # command for GNU C++ for the case where it uses the native
11776 # linker, instead of GNU ld. If possible, this setting should
11777 # overridden to take advantage of the native linker features on
11778 # the platform it is being used on.
11779 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11780 fi
11781
11782 # Commands to make compiler produce verbose output that lists
11783 # what "hidden" libraries, object files and flags are used when
11784 # linking a shared library.
11785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11786
11787 else
11788 GXX=no
11789 with_gnu_ld=no
11790 wlarc=
11791 fi
11792
11793 # PORTME: fill in a description of your system's C++ link characteristics
11794 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11795 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11796 ld_shlibs_CXX=yes
11797 case $host_os in
11798 aix3*)
11799 # FIXME: insert proper C++ library support
11800 ld_shlibs_CXX=no
11801 ;;
11802 aix4* | aix5*)
11803 if test "$host_cpu" = ia64; then
11804 # On IA64, the linker does run time linking by default, so we don't
11805 # have to do anything special.
11806 aix_use_runtimelinking=no
11807 exp_sym_flag='-Bexport'
11808 no_entry_flag=""
11809 else
11810 aix_use_runtimelinking=no
11811
11812 # Test if we are trying to use run time linking or normal
11813 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11814 # need to do runtime linking.
11815 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11816 for ld_flag in $LDFLAGS; do
11817 case $ld_flag in
11818 *-brtl*)
11819 aix_use_runtimelinking=yes
11820 break
11821 ;;
11822 esac
11823 done
11824 ;;
11825 esac
11826
11827 exp_sym_flag='-bexport'
11828 no_entry_flag='-bnoentry'
11829 fi
11830
11831 # When large executables or shared objects are built, AIX ld can
11832 # have problems creating the table of contents. If linking a library
11833 # or program results in "error TOC overflow" add -mminimal-toc to
11834 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11835 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11836
11837 archive_cmds_CXX=''
11838 hardcode_direct_CXX=yes
11839 hardcode_libdir_separator_CXX=':'
11840 link_all_deplibs_CXX=yes
11841
11842 if test "$GXX" = yes; then
11843 case $host_os in aix4.[012]|aix4.[012].*)
11844 # We only want to do this on AIX 4.2 and lower, the check
11845 # below for broken collect2 doesn't work under 4.3+
11846 collect2name=`${CC} -print-prog-name=collect2`
11847 if test -f "$collect2name" && \
11848 strings "$collect2name" | grep resolve_lib_name >/dev/null
11849 then
11850 # We have reworked collect2
11851 hardcode_direct_CXX=yes
11852 else
11853 # We have old collect2
11854 hardcode_direct_CXX=unsupported
11855 # It fails to find uninstalled libraries when the uninstalled
11856 # path is not listed in the libpath. Setting hardcode_minus_L
11857 # to unsupported forces relinking
11858 hardcode_minus_L_CXX=yes
11859 hardcode_libdir_flag_spec_CXX='-L$libdir'
11860 hardcode_libdir_separator_CXX=
11861 fi
11862 ;;
11863 esac
11864 shared_flag='-shared'
11865 if test "$aix_use_runtimelinking" = yes; then
11866 shared_flag="$shared_flag "'${wl}-G'
11867 fi
11868 else
11869 # not using gcc
11870 if test "$host_cpu" = ia64; then
11871 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11872 # chokes on -Wl,-G. The following line is correct:
11873 shared_flag='-G'
11874 else
11875 if test "$aix_use_runtimelinking" = yes; then
11876 shared_flag='${wl}-G'
11877 else
11878 shared_flag='${wl}-bM:SRE'
11879 fi
11880 fi
11881 fi
11882
11883 # It seems that -bexpall does not export symbols beginning with
11884 # underscore (_), so it is better to generate a list of symbols to export.
11885 always_export_symbols_CXX=yes
11886 if test "$aix_use_runtimelinking" = yes; then
11887 # Warning - without using the other runtime loading flags (-brtl),
11888 # -berok will link without error, but may produce a broken library.
11889 allow_undefined_flag_CXX='-berok'
11890 # Determine the default libpath from the value encoded in an empty executable.
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h. */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897
11898 int
11899 main ()
11900 {
11901
11902 ;
11903 return 0;
11904 }
11905 _ACEOF
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908 (eval $ac_link) 2>conftest.er1
11909 ac_status=$?
11910 grep -v '^ *+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } &&
11915 { ac_try='test -z "$ac_cxx_werror_flag"
11916 || test ! -s conftest.err'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; } &&
11922 { ac_try='test -s conftest$ac_exeext'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; }; then
11928
11929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11930 }'`
11931 # Check for a 64-bit object if we didn't find anything.
11932 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; }
11933 }'`; fi
11934 else
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11937
11938 fi
11939 rm -f conftest.err conftest.$ac_objext \
11940 conftest$ac_exeext conftest.$ac_ext
11941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11942
11943 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11944
11945 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"
11946 else
11947 if test "$host_cpu" = ia64; then
11948 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11949 allow_undefined_flag_CXX="-z nodefs"
11950 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"
11951 else
11952 # Determine the default libpath from the value encoded in an empty executable.
11953 cat >conftest.$ac_ext <<_ACEOF
11954 /* confdefs.h. */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11959
11960 int
11961 main ()
11962 {
11963
11964 ;
11965 return 0;
11966 }
11967 _ACEOF
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970 (eval $ac_link) 2>conftest.er1
11971 ac_status=$?
11972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try='test -z "$ac_cxx_werror_flag"
11978 || test ! -s conftest.err'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; } &&
11984 { ac_try='test -s conftest$ac_exeext'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; }; then
11990
11991 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11992 }'`
11993 # Check for a 64-bit object if we didn't find anything.
11994 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; }
11995 }'`; fi
11996 else
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000 fi
12001 rm -f conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12004
12005 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12006 # Warning - without using the other run time loading flags,
12007 # -berok will link without error, but may produce a broken library.
12008 no_undefined_flag_CXX=' ${wl}-bernotok'
12009 allow_undefined_flag_CXX=' ${wl}-berok'
12010 # Exported symbols can be pulled into shared objects from archives
12011 whole_archive_flag_spec_CXX='$convenience'
12012 archive_cmds_need_lc_CXX=yes
12013 # This is similar to how AIX traditionally builds its shared libraries.
12014 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'
12015 fi
12016 fi
12017 ;;
12018
12019 beos*)
12020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12021 allow_undefined_flag_CXX=unsupported
12022 # Joseph Beckenbach <[email protected]> says some releases of gcc
12023 # support --undefined. This deserves some investigation. FIXME
12024 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12025 else
12026 ld_shlibs_CXX=no
12027 fi
12028 ;;
12029
12030 chorus*)
12031 case $cc_basename in
12032 *)
12033 # FIXME: insert proper C++ library support
12034 ld_shlibs_CXX=no
12035 ;;
12036 esac
12037 ;;
12038
12039 cygwin* | mingw* | pw32*)
12040 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12041 # as there is no search path for DLLs.
12042 hardcode_libdir_flag_spec_CXX='-L$libdir'
12043 allow_undefined_flag_CXX=unsupported
12044 always_export_symbols_CXX=no
12045 enable_shared_with_static_runtimes_CXX=yes
12046
12047 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12048 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'
12049 # If the export-symbols file already is a .def file (1st line
12050 # is EXPORTS), use it as is; otherwise, prepend...
12051 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12052 cp $export_symbols $output_objdir/$soname.def;
12053 else
12054 echo EXPORTS > $output_objdir/$soname.def;
12055 cat $export_symbols >> $output_objdir/$soname.def;
12056 fi~
12057 $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'
12058 else
12059 ld_shlibs_CXX=no
12060 fi
12061 ;;
12062 darwin* | rhapsody*)
12063 case $host_os in
12064 rhapsody* | darwin1.[012])
12065 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12066 ;;
12067 *) # Darwin 1.3 on
12068 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12069 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12070 else
12071 case ${MACOSX_DEPLOYMENT_TARGET} in
12072 10.[012])
12073 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12074 ;;
12075 10.*)
12076 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12077 ;;
12078 esac
12079 fi
12080 ;;
12081 esac
12082 archive_cmds_need_lc_CXX=no
12083 hardcode_direct_CXX=no
12084 hardcode_automatic_CXX=yes
12085 hardcode_shlibpath_var_CXX=unsupported
12086 whole_archive_flag_spec_CXX=''
12087 link_all_deplibs_CXX=yes
12088
12089 if test "$GXX" = yes ; then
12090 lt_int_apple_cc_single_mod=no
12091 output_verbose_link_cmd='echo'
12092 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12093 lt_int_apple_cc_single_mod=yes
12094 fi
12095 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12096 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12097 else
12098 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'
12099 fi
12100 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12101 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12102 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12103 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}'
12104 else
12105 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}'
12106 fi
12107 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}'
12108 else
12109 case $cc_basename in
12110 xlc*)
12111 output_verbose_link_cmd='echo'
12112 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'
12113 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12115 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}'
12116 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}'
12117 ;;
12118 *)
12119 ld_shlibs_CXX=no
12120 ;;
12121 esac
12122 fi
12123 ;;
12124
12125 dgux*)
12126 case $cc_basename in
12127 ec++*)
12128 # FIXME: insert proper C++ library support
12129 ld_shlibs_CXX=no
12130 ;;
12131 ghcx*)
12132 # Green Hills C++ Compiler
12133 # FIXME: insert proper C++ library support
12134 ld_shlibs_CXX=no
12135 ;;
12136 *)
12137 # FIXME: insert proper C++ library support
12138 ld_shlibs_CXX=no
12139 ;;
12140 esac
12141 ;;
12142 freebsd[12]*)
12143 # C++ shared libraries reported to be fairly broken before switch to ELF
12144 ld_shlibs_CXX=no
12145 ;;
12146 freebsd-elf*)
12147 archive_cmds_need_lc_CXX=no
12148 ;;
12149 freebsd* | kfreebsd*-gnu | dragonfly*)
12150 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12151 # conventions
12152 ld_shlibs_CXX=yes
12153 ;;
12154 gnu*)
12155 ;;
12156 hpux9*)
12157 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12158 hardcode_libdir_separator_CXX=:
12159 export_dynamic_flag_spec_CXX='${wl}-E'
12160 hardcode_direct_CXX=yes
12161 hardcode_minus_L_CXX=yes # Not in the search PATH,
12162 # but as the default
12163 # location of the library.
12164
12165 case $cc_basename in
12166 CC*)
12167 # FIXME: insert proper C++ library support
12168 ld_shlibs_CXX=no
12169 ;;
12170 aCC*)
12171 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'
12172 # Commands to make compiler produce verbose output that lists
12173 # what "hidden" libraries, object files and flags are used when
12174 # linking a shared library.
12175 #
12176 # There doesn't appear to be a way to prevent this compiler from
12177 # explicitly linking system object files so we need to strip them
12178 # from the output so that they don't get included in the library
12179 # dependencies.
12180 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'
12181 ;;
12182 *)
12183 if test "$GXX" = yes; then
12184 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'
12185 else
12186 # FIXME: insert proper C++ library support
12187 ld_shlibs_CXX=no
12188 fi
12189 ;;
12190 esac
12191 ;;
12192 hpux10*|hpux11*)
12193 if test $with_gnu_ld = no; then
12194 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12195 hardcode_libdir_separator_CXX=:
12196
12197 case $host_cpu in
12198 hppa*64*|ia64*)
12199 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12200 ;;
12201 *)
12202 export_dynamic_flag_spec_CXX='${wl}-E'
12203 ;;
12204 esac
12205 fi
12206 case $host_cpu in
12207 hppa*64*|ia64*)
12208 hardcode_direct_CXX=no
12209 hardcode_shlibpath_var_CXX=no
12210 ;;
12211 *)
12212 hardcode_direct_CXX=yes
12213 hardcode_minus_L_CXX=yes # Not in the search PATH,
12214 # but as the default
12215 # location of the library.
12216 ;;
12217 esac
12218
12219 case $cc_basename in
12220 CC*)
12221 # FIXME: insert proper C++ library support
12222 ld_shlibs_CXX=no
12223 ;;
12224 aCC*)
12225 case $host_cpu in
12226 hppa*64*)
12227 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12228 ;;
12229 ia64*)
12230 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12231 ;;
12232 *)
12233 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12234 ;;
12235 esac
12236 # Commands to make compiler produce verbose output that lists
12237 # what "hidden" libraries, object files and flags are used when
12238 # linking a shared library.
12239 #
12240 # There doesn't appear to be a way to prevent this compiler from
12241 # explicitly linking system object files so we need to strip them
12242 # from the output so that they don't get included in the library
12243 # dependencies.
12244 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'
12245 ;;
12246 *)
12247 if test "$GXX" = yes; then
12248 if test $with_gnu_ld = no; then
12249 case $host_cpu in
12250 hppa*64*)
12251 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12252 ;;
12253 ia64*)
12254 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12255 ;;
12256 *)
12257 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'
12258 ;;
12259 esac
12260 fi
12261 else
12262 # FIXME: insert proper C++ library support
12263 ld_shlibs_CXX=no
12264 fi
12265 ;;
12266 esac
12267 ;;
12268 interix3*)
12269 hardcode_direct_CXX=no
12270 hardcode_shlibpath_var_CXX=no
12271 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12272 export_dynamic_flag_spec_CXX='${wl}-E'
12273 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12274 # Instead, shared libraries are loaded at an image base (0x10000000 by
12275 # default) and relocated if they conflict, which is a slow very memory
12276 # consuming and fragmenting process. To avoid this, we pick a random,
12277 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12278 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12279 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'
12280 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'
12281 ;;
12282 irix5* | irix6*)
12283 case $cc_basename in
12284 CC*)
12285 # SGI C++
12286 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'
12287
12288 # Archives containing C++ object files must be created using
12289 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12290 # necessary to make sure instantiated templates are included
12291 # in the archive.
12292 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12293 ;;
12294 *)
12295 if test "$GXX" = yes; then
12296 if test "$with_gnu_ld" = no; then
12297 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'
12298 else
12299 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'
12300 fi
12301 fi
12302 link_all_deplibs_CXX=yes
12303 ;;
12304 esac
12305 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12306 hardcode_libdir_separator_CXX=:
12307 ;;
12308 linux*)
12309 case $cc_basename in
12310 KCC*)
12311 # Kuck and Associates, Inc. (KAI) C++ Compiler
12312
12313 # KCC will only create a shared library if the output file
12314 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12315 # to its proper name (with version) after linking.
12316 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'
12317 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'
12318 # Commands to make compiler produce verbose output that lists
12319 # what "hidden" libraries, object files and flags are used when
12320 # linking a shared library.
12321 #
12322 # There doesn't appear to be a way to prevent this compiler from
12323 # explicitly linking system object files so we need to strip them
12324 # from the output so that they don't get included in the library
12325 # dependencies.
12326 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'
12327
12328 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12329 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12330
12331 # Archives containing C++ object files must be created using
12332 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12333 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12334 ;;
12335 icpc*)
12336 # Intel C++
12337 with_gnu_ld=yes
12338 # version 8.0 and above of icpc choke on multiply defined symbols
12339 # if we add $predep_objects and $postdep_objects, however 7.1 and
12340 # earlier do not add the objects themselves.
12341 case `$CC -V 2>&1` in
12342 *"Version 7."*)
12343 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12344 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'
12345 ;;
12346 *) # Version 8.0 or newer
12347 tmp_idyn=
12348 case $host_cpu in
12349 ia64*) tmp_idyn=' -i_dynamic';;
12350 esac
12351 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12352 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'
12353 ;;
12354 esac
12355 archive_cmds_need_lc_CXX=no
12356 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12357 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12358 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12359 ;;
12360 pgCC*)
12361 # Portland Group C++ compiler
12362 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12363 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'
12364
12365 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12367 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'
12368 ;;
12369 cxx*)
12370 # Compaq C++
12371 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12372 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'
12373
12374 runpath_var=LD_RUN_PATH
12375 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12376 hardcode_libdir_separator_CXX=:
12377
12378 # Commands to make compiler produce verbose output that lists
12379 # what "hidden" libraries, object files and flags are used when
12380 # linking a shared library.
12381 #
12382 # There doesn't appear to be a way to prevent this compiler from
12383 # explicitly linking system object files so we need to strip them
12384 # from the output so that they don't get included in the library
12385 # dependencies.
12386 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'
12387 ;;
12388 esac
12389 ;;
12390 lynxos*)
12391 # FIXME: insert proper C++ library support
12392 ld_shlibs_CXX=no
12393 ;;
12394 m88k*)
12395 # FIXME: insert proper C++ library support
12396 ld_shlibs_CXX=no
12397 ;;
12398 mvs*)
12399 case $cc_basename in
12400 cxx*)
12401 # FIXME: insert proper C++ library support
12402 ld_shlibs_CXX=no
12403 ;;
12404 *)
12405 # FIXME: insert proper C++ library support
12406 ld_shlibs_CXX=no
12407 ;;
12408 esac
12409 ;;
12410 netbsd*)
12411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12412 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12413 wlarc=
12414 hardcode_libdir_flag_spec_CXX='-R$libdir'
12415 hardcode_direct_CXX=yes
12416 hardcode_shlibpath_var_CXX=no
12417 fi
12418 # Workaround some broken pre-1.5 toolchains
12419 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12420 ;;
12421 openbsd2*)
12422 # C++ shared libraries are fairly broken
12423 ld_shlibs_CXX=no
12424 ;;
12425 openbsd*)
12426 hardcode_direct_CXX=yes
12427 hardcode_shlibpath_var_CXX=no
12428 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12429 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12431 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12432 export_dynamic_flag_spec_CXX='${wl}-E'
12433 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12434 fi
12435 output_verbose_link_cmd='echo'
12436 ;;
12437 osf3*)
12438 case $cc_basename in
12439 KCC*)
12440 # Kuck and Associates, Inc. (KAI) C++ Compiler
12441
12442 # KCC will only create a shared library if the output file
12443 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12444 # to its proper name (with version) after linking.
12445 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'
12446
12447 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12448 hardcode_libdir_separator_CXX=:
12449
12450 # Archives containing C++ object files must be created using
12451 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12452 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12453
12454 ;;
12455 RCC*)
12456 # Rational C++ 2.4.1
12457 # FIXME: insert proper C++ library support
12458 ld_shlibs_CXX=no
12459 ;;
12460 cxx*)
12461 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12462 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'
12463
12464 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12465 hardcode_libdir_separator_CXX=:
12466
12467 # Commands to make compiler produce verbose output that lists
12468 # what "hidden" libraries, object files and flags are used when
12469 # linking a shared library.
12470 #
12471 # There doesn't appear to be a way to prevent this compiler from
12472 # explicitly linking system object files so we need to strip them
12473 # from the output so that they don't get included in the library
12474 # dependencies.
12475 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'
12476 ;;
12477 *)
12478 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12479 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12480 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'
12481
12482 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12483 hardcode_libdir_separator_CXX=:
12484
12485 # Commands to make compiler produce verbose output that lists
12486 # what "hidden" libraries, object files and flags are used when
12487 # linking a shared library.
12488 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12489
12490 else
12491 # FIXME: insert proper C++ library support
12492 ld_shlibs_CXX=no
12493 fi
12494 ;;
12495 esac
12496 ;;
12497 osf4* | osf5*)
12498 case $cc_basename in
12499 KCC*)
12500 # Kuck and Associates, Inc. (KAI) C++ Compiler
12501
12502 # KCC will only create a shared library if the output file
12503 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12504 # to its proper name (with version) after linking.
12505 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'
12506
12507 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12508 hardcode_libdir_separator_CXX=:
12509
12510 # Archives containing C++ object files must be created using
12511 # the KAI C++ compiler.
12512 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12513 ;;
12514 RCC*)
12515 # Rational C++ 2.4.1
12516 # FIXME: insert proper C++ library support
12517 ld_shlibs_CXX=no
12518 ;;
12519 cxx*)
12520 allow_undefined_flag_CXX=' -expect_unresolved \*'
12521 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'
12522 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12523 echo "-hidden">> $lib.exp~
12524 $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~
12525 $rm $lib.exp'
12526
12527 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12528 hardcode_libdir_separator_CXX=:
12529
12530 # Commands to make compiler produce verbose output that lists
12531 # what "hidden" libraries, object files and flags are used when
12532 # linking a shared library.
12533 #
12534 # There doesn't appear to be a way to prevent this compiler from
12535 # explicitly linking system object files so we need to strip them
12536 # from the output so that they don't get included in the library
12537 # dependencies.
12538 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'
12539 ;;
12540 *)
12541 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12542 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12543 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'
12544
12545 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12546 hardcode_libdir_separator_CXX=:
12547
12548 # Commands to make compiler produce verbose output that lists
12549 # what "hidden" libraries, object files and flags are used when
12550 # linking a shared library.
12551 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12552
12553 else
12554 # FIXME: insert proper C++ library support
12555 ld_shlibs_CXX=no
12556 fi
12557 ;;
12558 esac
12559 ;;
12560 psos*)
12561 # FIXME: insert proper C++ library support
12562 ld_shlibs_CXX=no
12563 ;;
12564 sunos4*)
12565 case $cc_basename in
12566 CC*)
12567 # Sun C++ 4.x
12568 # FIXME: insert proper C++ library support
12569 ld_shlibs_CXX=no
12570 ;;
12571 lcc*)
12572 # Lucid
12573 # FIXME: insert proper C++ library support
12574 ld_shlibs_CXX=no
12575 ;;
12576 *)
12577 # FIXME: insert proper C++ library support
12578 ld_shlibs_CXX=no
12579 ;;
12580 esac
12581 ;;
12582 solaris*)
12583 case $cc_basename in
12584 CC*)
12585 # Sun C++ 4.2, 5.x and Centerline C++
12586 archive_cmds_need_lc_CXX=yes
12587 no_undefined_flag_CXX=' -zdefs'
12588 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12589 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12590 $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'
12591
12592 hardcode_libdir_flag_spec_CXX='-R$libdir'
12593 hardcode_shlibpath_var_CXX=no
12594 case $host_os in
12595 solaris2.[0-5] | solaris2.[0-5].*) ;;
12596 *)
12597 # The C++ compiler is used as linker so we must use $wl
12598 # flag to pass the commands to the underlying system
12599 # linker. We must also pass each convience library through
12600 # to the system linker between allextract/defaultextract.
12601 # The C++ compiler will combine linker options so we
12602 # cannot just pass the convience library names through
12603 # without $wl.
12604 # Supported since Solaris 2.6 (maybe 2.5.1?)
12605 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'
12606 ;;
12607 esac
12608 link_all_deplibs_CXX=yes
12609
12610 output_verbose_link_cmd='echo'
12611
12612 # Archives containing C++ object files must be created using
12613 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12614 # necessary to make sure instantiated templates are included
12615 # in the archive.
12616 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12617 ;;
12618 gcx*)
12619 # Green Hills C++ Compiler
12620 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12621
12622 # The C++ compiler must be used to create the archive.
12623 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12624 ;;
12625 *)
12626 # GNU C++ compiler with Solaris linker
12627 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12628 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12629 if $CC --version | grep -v '^2\.7' > /dev/null; then
12630 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12631 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12632 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12633
12634 # Commands to make compiler produce verbose output that lists
12635 # what "hidden" libraries, object files and flags are used when
12636 # linking a shared library.
12637 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12638 else
12639 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12640 # platform.
12641 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12642 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12643 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12644
12645 # Commands to make compiler produce verbose output that lists
12646 # what "hidden" libraries, object files and flags are used when
12647 # linking a shared library.
12648 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12649 fi
12650
12651 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12652 fi
12653 ;;
12654 esac
12655 ;;
12656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12657 no_undefined_flag_CXX='${wl}-z,text'
12658 archive_cmds_need_lc_CXX=no
12659 hardcode_shlibpath_var_CXX=no
12660 runpath_var='LD_RUN_PATH'
12661
12662 case $cc_basename in
12663 CC*)
12664 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12665 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12666 ;;
12667 *)
12668 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12669 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12670 ;;
12671 esac
12672 ;;
12673 sysv5* | sco3.2v5* | sco5v6*)
12674 # Note: We can NOT use -z defs as we might desire, because we do not
12675 # link with -lc, and that would cause any symbols used from libc to
12676 # always be unresolved, which means just about no library would
12677 # ever link correctly. If we're not using GNU ld we use -z text
12678 # though, which does catch some bad symbols but isn't as heavy-handed
12679 # as -z defs.
12680 # For security reasons, it is highly recommended that you always
12681 # use absolute paths for naming shared libraries, and exclude the
12682 # DT_RUNPATH tag from executables and libraries. But doing so
12683 # requires that you compile everything twice, which is a pain.
12684 # So that behaviour is only enabled if SCOABSPATH is set to a
12685 # non-empty value in the environment. Most likely only useful for
12686 # creating official distributions of packages.
12687 # This is a hack until libtool officially supports absolute path
12688 # names for shared libraries.
12689 no_undefined_flag_CXX='${wl}-z,text'
12690 allow_undefined_flag_CXX='${wl}-z,nodefs'
12691 archive_cmds_need_lc_CXX=no
12692 hardcode_shlibpath_var_CXX=no
12693 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12694 hardcode_libdir_separator_CXX=':'
12695 link_all_deplibs_CXX=yes
12696 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12697 runpath_var='LD_RUN_PATH'
12698
12699 case $cc_basename in
12700 CC*)
12701 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12702 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12703 ;;
12704 *)
12705 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12706 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12707 ;;
12708 esac
12709 ;;
12710 tandem*)
12711 case $cc_basename in
12712 NCC*)
12713 # NonStop-UX NCC 3.20
12714 # FIXME: insert proper C++ library support
12715 ld_shlibs_CXX=no
12716 ;;
12717 *)
12718 # FIXME: insert proper C++ library support
12719 ld_shlibs_CXX=no
12720 ;;
12721 esac
12722 ;;
12723 vxworks*)
12724 # FIXME: insert proper C++ library support
12725 ld_shlibs_CXX=no
12726 ;;
12727 *)
12728 # FIXME: insert proper C++ library support
12729 ld_shlibs_CXX=no
12730 ;;
12731 esac
12732 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12733 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12734 test "$ld_shlibs_CXX" = no && can_build_shared=no
12735
12736 GCC_CXX="$GXX"
12737 LD_CXX="$LD"
12738
12739 ## CAVEAT EMPTOR:
12740 ## There is no encapsulation within the following macros, do not change
12741 ## the running order or otherwise move them around unless you know exactly
12742 ## what you are doing...
12743
12744 cat > conftest.$ac_ext <<EOF
12745 class Foo
12746 {
12747 public:
12748 Foo (void) { a = 0; }
12749 private:
12750 int a;
12751 };
12752 EOF
12753
12754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755 (eval $ac_compile) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; then
12759 # Parse the compiler output and extract the necessary
12760 # objects, libraries and library flags.
12761
12762 # Sentinel used to keep track of whether or not we are before
12763 # the conftest object file.
12764 pre_test_object_deps_done=no
12765
12766 # The `*' in the case matches for architectures that use `case' in
12767 # $output_verbose_cmd can trigger glob expansion during the loop
12768 # eval without this substitution.
12769 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12770
12771 for p in `eval $output_verbose_link_cmd`; do
12772 case $p in
12773
12774 -L* | -R* | -l*)
12775 # Some compilers place space between "-{L,R}" and the path.
12776 # Remove the space.
12777 if test $p = "-L" \
12778 || test $p = "-R"; then
12779 prev=$p
12780 continue
12781 else
12782 prev=
12783 fi
12784
12785 if test "$pre_test_object_deps_done" = no; then
12786 case $p in
12787 -L* | -R*)
12788 # Internal compiler library paths should come after those
12789 # provided the user. The postdeps already come after the
12790 # user supplied libs so there is no need to process them.
12791 if test -z "$compiler_lib_search_path_CXX"; then
12792 compiler_lib_search_path_CXX="${prev}${p}"
12793 else
12794 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12795 fi
12796 ;;
12797 # The "-l" case would never come before the object being
12798 # linked, so don't bother handling this case.
12799 esac
12800 else
12801 if test -z "$postdeps_CXX"; then
12802 postdeps_CXX="${prev}${p}"
12803 else
12804 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12805 fi
12806 fi
12807 ;;
12808
12809 *.$objext)
12810 # This assumes that the test object file only shows up
12811 # once in the compiler output.
12812 if test "$p" = "conftest.$objext"; then
12813 pre_test_object_deps_done=yes
12814 continue
12815 fi
12816
12817 if test "$pre_test_object_deps_done" = no; then
12818 if test -z "$predep_objects_CXX"; then
12819 predep_objects_CXX="$p"
12820 else
12821 predep_objects_CXX="$predep_objects_CXX $p"
12822 fi
12823 else
12824 if test -z "$postdep_objects_CXX"; then
12825 postdep_objects_CXX="$p"
12826 else
12827 postdep_objects_CXX="$postdep_objects_CXX $p"
12828 fi
12829 fi
12830 ;;
12831
12832 *) ;; # Ignore the rest.
12833
12834 esac
12835 done
12836
12837 # Clean up.
12838 rm -f a.out a.exe
12839 else
12840 echo "libtool.m4: error: problem compiling CXX test program"
12841 fi
12842
12843 $rm -f confest.$objext
12844
12845 # PORTME: override above test on systems where it is broken
12846 case $host_os in
12847 interix3*)
12848 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12849 # hack all around it, let's just trust "g++" to DTRT.
12850 predep_objects_CXX=
12851 postdep_objects_CXX=
12852 postdeps_CXX=
12853 ;;
12854
12855 solaris*)
12856 case $cc_basename in
12857 CC*)
12858 # Adding this requires a known-good setup of shared libraries for
12859 # Sun compiler versions before 5.6, else PIC objects from an old
12860 # archive will be linked into the output, leading to subtle bugs.
12861 postdeps_CXX='-lCstd -lCrun'
12862 ;;
12863 esac
12864 ;;
12865 esac
12866
12867
12868 case " $postdeps_CXX " in
12869 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12870 esac
12871
12872 lt_prog_compiler_wl_CXX=
12873 lt_prog_compiler_pic_CXX=
12874 lt_prog_compiler_static_CXX=
12875
12876 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12877 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12878
12879 # C++ specific cases for pic, static, wl, etc.
12880 if test "$GXX" = yes; then
12881 lt_prog_compiler_wl_CXX='-Wl,'
12882 lt_prog_compiler_static_CXX='-static'
12883
12884 case $host_os in
12885 aix*)
12886 # All AIX code is PIC.
12887 if test "$host_cpu" = ia64; then
12888 # AIX 5 now supports IA64 processor
12889 lt_prog_compiler_static_CXX='-Bstatic'
12890 fi
12891 ;;
12892 amigaos*)
12893 # FIXME: we need at least 68020 code to build shared libraries, but
12894 # adding the `-m68020' flag to GCC prevents building anything better,
12895 # like `-m68040'.
12896 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12897 ;;
12898 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12899 # PIC is the default for these OSes.
12900 ;;
12901 mingw* | os2* | pw32*)
12902 # This hack is so that the source file can tell whether it is being
12903 # built for inclusion in a dll (and should export symbols for example).
12904 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12905 ;;
12906 darwin* | rhapsody*)
12907 # PIC is the default on this platform
12908 # Common symbols not allowed in MH_DYLIB files
12909 lt_prog_compiler_pic_CXX='-fno-common'
12910 ;;
12911 *djgpp*)
12912 # DJGPP does not support shared libraries at all
12913 lt_prog_compiler_pic_CXX=
12914 ;;
12915 interix3*)
12916 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12917 # Instead, we relocate shared libraries at runtime.
12918 ;;
12919 sysv4*MP*)
12920 if test -d /usr/nec; then
12921 lt_prog_compiler_pic_CXX=-Kconform_pic
12922 fi
12923 ;;
12924 hpux*)
12925 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12926 # not for PA HP-UX.
12927 case $host_cpu in
12928 hppa*64*|ia64*)
12929 ;;
12930 *)
12931 lt_prog_compiler_pic_CXX='-fPIC'
12932 ;;
12933 esac
12934 ;;
12935 *)
12936 lt_prog_compiler_pic_CXX='-fPIC'
12937 ;;
12938 esac
12939 else
12940 case $host_os in
12941 aix4* | aix5*)
12942 # All AIX code is PIC.
12943 if test "$host_cpu" = ia64; then
12944 # AIX 5 now supports IA64 processor
12945 lt_prog_compiler_static_CXX='-Bstatic'
12946 else
12947 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12948 fi
12949 ;;
12950 chorus*)
12951 case $cc_basename in
12952 cxch68*)
12953 # Green Hills C++ Compiler
12954 # _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"
12955 ;;
12956 esac
12957 ;;
12958 darwin*)
12959 # PIC is the default on this platform
12960 # Common symbols not allowed in MH_DYLIB files
12961 case $cc_basename in
12962 xlc*)
12963 lt_prog_compiler_pic_CXX='-qnocommon'
12964 lt_prog_compiler_wl_CXX='-Wl,'
12965 ;;
12966 esac
12967 ;;
12968 dgux*)
12969 case $cc_basename in
12970 ec++*)
12971 lt_prog_compiler_pic_CXX='-KPIC'
12972 ;;
12973 ghcx*)
12974 # Green Hills C++ Compiler
12975 lt_prog_compiler_pic_CXX='-pic'
12976 ;;
12977 *)
12978 ;;
12979 esac
12980 ;;
12981 freebsd* | kfreebsd*-gnu | dragonfly*)
12982 # FreeBSD uses GNU C++
12983 ;;
12984 hpux9* | hpux10* | hpux11*)
12985 case $cc_basename in
12986 CC*)
12987 lt_prog_compiler_wl_CXX='-Wl,'
12988 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12989 if test "$host_cpu" != ia64; then
12990 lt_prog_compiler_pic_CXX='+Z'
12991 fi
12992 ;;
12993 aCC*)
12994 lt_prog_compiler_wl_CXX='-Wl,'
12995 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12996 case $host_cpu in
12997 hppa*64*|ia64*)
12998 # +Z the default
12999 ;;
13000 *)
13001 lt_prog_compiler_pic_CXX='+Z'
13002 ;;
13003 esac
13004 ;;
13005 *)
13006 ;;
13007 esac
13008 ;;
13009 interix*)
13010 # This is c89, which is MS Visual C++ (no shared libs)
13011 # Anyone wants to do a port?
13012 ;;
13013 irix5* | irix6* | nonstopux*)
13014 case $cc_basename in
13015 CC*)
13016 lt_prog_compiler_wl_CXX='-Wl,'
13017 lt_prog_compiler_static_CXX='-non_shared'
13018 # CC pic flag -KPIC is the default.
13019 ;;
13020 *)
13021 ;;
13022 esac
13023 ;;
13024 linux*)
13025 case $cc_basename in
13026 KCC*)
13027 # KAI C++ Compiler
13028 lt_prog_compiler_wl_CXX='--backend -Wl,'
13029 lt_prog_compiler_pic_CXX='-fPIC'
13030 ;;
13031 icpc* | ecpc*)
13032 # Intel C++
13033 lt_prog_compiler_wl_CXX='-Wl,'
13034 lt_prog_compiler_pic_CXX='-KPIC'
13035 lt_prog_compiler_static_CXX='-static'
13036 ;;
13037 pgCC*)
13038 # Portland Group C++ compiler.
13039 lt_prog_compiler_wl_CXX='-Wl,'
13040 lt_prog_compiler_pic_CXX='-fpic'
13041 lt_prog_compiler_static_CXX='-Bstatic'
13042 ;;
13043 cxx*)
13044 # Compaq C++
13045 # Make sure the PIC flag is empty. It appears that all Alpha
13046 # Linux and Compaq Tru64 Unix objects are PIC.
13047 lt_prog_compiler_pic_CXX=
13048 lt_prog_compiler_static_CXX='-non_shared'
13049 ;;
13050 *)
13051 ;;
13052 esac
13053 ;;
13054 lynxos*)
13055 ;;
13056 m88k*)
13057 ;;
13058 mvs*)
13059 case $cc_basename in
13060 cxx*)
13061 lt_prog_compiler_pic_CXX='-W c,exportall'
13062 ;;
13063 *)
13064 ;;
13065 esac
13066 ;;
13067 netbsd*)
13068 ;;
13069 osf3* | osf4* | osf5*)
13070 case $cc_basename in
13071 KCC*)
13072 lt_prog_compiler_wl_CXX='--backend -Wl,'
13073 ;;
13074 RCC*)
13075 # Rational C++ 2.4.1
13076 lt_prog_compiler_pic_CXX='-pic'
13077 ;;
13078 cxx*)
13079 # Digital/Compaq C++
13080 lt_prog_compiler_wl_CXX='-Wl,'
13081 # Make sure the PIC flag is empty. It appears that all Alpha
13082 # Linux and Compaq Tru64 Unix objects are PIC.
13083 lt_prog_compiler_pic_CXX=
13084 lt_prog_compiler_static_CXX='-non_shared'
13085 ;;
13086 *)
13087 ;;
13088 esac
13089 ;;
13090 psos*)
13091 ;;
13092 solaris*)
13093 case $cc_basename in
13094 CC*)
13095 # Sun C++ 4.2, 5.x and Centerline C++
13096 lt_prog_compiler_pic_CXX='-KPIC'
13097 lt_prog_compiler_static_CXX='-Bstatic'
13098 lt_prog_compiler_wl_CXX='-Qoption ld '
13099 ;;
13100 gcx*)
13101 # Green Hills C++ Compiler
13102 lt_prog_compiler_pic_CXX='-PIC'
13103 ;;
13104 *)
13105 ;;
13106 esac
13107 ;;
13108 sunos4*)
13109 case $cc_basename in
13110 CC*)
13111 # Sun C++ 4.x
13112 lt_prog_compiler_pic_CXX='-pic'
13113 lt_prog_compiler_static_CXX='-Bstatic'
13114 ;;
13115 lcc*)
13116 # Lucid
13117 lt_prog_compiler_pic_CXX='-pic'
13118 ;;
13119 *)
13120 ;;
13121 esac
13122 ;;
13123 tandem*)
13124 case $cc_basename in
13125 NCC*)
13126 # NonStop-UX NCC 3.20
13127 lt_prog_compiler_pic_CXX='-KPIC'
13128 ;;
13129 *)
13130 ;;
13131 esac
13132 ;;
13133 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13134 case $cc_basename in
13135 CC*)
13136 lt_prog_compiler_wl_CXX='-Wl,'
13137 lt_prog_compiler_pic_CXX='-KPIC'
13138 lt_prog_compiler_static_CXX='-Bstatic'
13139 ;;
13140 esac
13141 ;;
13142 vxworks*)
13143 ;;
13144 *)
13145 lt_prog_compiler_can_build_shared_CXX=no
13146 ;;
13147 esac
13148 fi
13149
13150 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13151 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13152
13153 #
13154 # Check to make sure the PIC flag actually works.
13155 #
13156 if test -n "$lt_prog_compiler_pic_CXX"; then
13157
13158 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13159 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13160 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 else
13163 lt_prog_compiler_pic_works_CXX=no
13164 ac_outfile=conftest.$ac_objext
13165 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13166 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13167 # Insert the option either (1) after the last *FLAGS variable, or
13168 # (2) before a word containing "conftest.", or (3) at the end.
13169 # Note that $ac_compile itself does not contain backslashes and begins
13170 # with a dollar sign (not a hyphen), so the echo should work correctly.
13171 # The option is referenced via a variable to avoid confusing sed.
13172 lt_compile=`echo "$ac_compile" | $SED \
13173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13175 -e 's:$: $lt_compiler_flag:'`
13176 (eval echo "\"\$as_me:13176: $lt_compile\"" >&5)
13177 (eval "$lt_compile" 2>conftest.err)
13178 ac_status=$?
13179 cat conftest.err >&5
13180 echo "$as_me:13180: \$? = $ac_status" >&5
13181 if (exit $ac_status) && test -s "$ac_outfile"; then
13182 # The compiler can only warn and ignore the option if not recognized
13183 # So say no if there are warnings other than the usual output.
13184 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13187 lt_prog_compiler_pic_works_CXX=yes
13188 fi
13189 fi
13190 $rm conftest*
13191
13192 fi
13193 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13194 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13195
13196 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13197 case $lt_prog_compiler_pic_CXX in
13198 "" | " "*) ;;
13199 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13200 esac
13201 else
13202 lt_prog_compiler_pic_CXX=
13203 lt_prog_compiler_can_build_shared_CXX=no
13204 fi
13205
13206 fi
13207 case $host_os in
13208 # For platforms which do not support PIC, -DPIC is meaningless:
13209 *djgpp*)
13210 lt_prog_compiler_pic_CXX=
13211 ;;
13212 *)
13213 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13214 ;;
13215 esac
13216
13217 #
13218 # Check to make sure the static flag actually works.
13219 #
13220 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13221 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13222 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13223 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226 lt_prog_compiler_static_works_CXX=no
13227 save_LDFLAGS="$LDFLAGS"
13228 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13229 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13230 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13231 # The linker can only warn and ignore the option if not recognized
13232 # So say no if there are warnings
13233 if test -s conftest.err; then
13234 # Append any errors to the config.log.
13235 cat conftest.err 1>&5
13236 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13238 if diff conftest.exp conftest.er2 >/dev/null; then
13239 lt_prog_compiler_static_works_CXX=yes
13240 fi
13241 else
13242 lt_prog_compiler_static_works_CXX=yes
13243 fi
13244 fi
13245 $rm conftest*
13246 LDFLAGS="$save_LDFLAGS"
13247
13248 fi
13249 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13250 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13251
13252 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13253 :
13254 else
13255 lt_prog_compiler_static_CXX=
13256 fi
13257
13258
13259 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13260 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13261 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13263 else
13264 lt_cv_prog_compiler_c_o_CXX=no
13265 $rm -r conftest 2>/dev/null
13266 mkdir conftest
13267 cd conftest
13268 mkdir out
13269 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13270
13271 lt_compiler_flag="-o out/conftest2.$ac_objext"
13272 # Insert the option either (1) after the last *FLAGS variable, or
13273 # (2) before a word containing "conftest.", or (3) at the end.
13274 # Note that $ac_compile itself does not contain backslashes and begins
13275 # with a dollar sign (not a hyphen), so the echo should work correctly.
13276 lt_compile=`echo "$ac_compile" | $SED \
13277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13279 -e 's:$: $lt_compiler_flag:'`
13280 (eval echo "\"\$as_me:13280: $lt_compile\"" >&5)
13281 (eval "$lt_compile" 2>out/conftest.err)
13282 ac_status=$?
13283 cat out/conftest.err >&5
13284 echo "$as_me:13284: \$? = $ac_status" >&5
13285 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13286 then
13287 # The compiler can only warn and ignore the option if not recognized
13288 # So say no if there are warnings
13289 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13290 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13291 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13292 lt_cv_prog_compiler_c_o_CXX=yes
13293 fi
13294 fi
13295 chmod u+w . 2>&5
13296 $rm conftest*
13297 # SGI C++ compiler will create directory out/ii_files/ for
13298 # template instantiation
13299 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13300 $rm out/* && rmdir out
13301 cd ..
13302 rmdir conftest
13303 $rm conftest*
13304
13305 fi
13306 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13307 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13308
13309
13310 hard_links="nottested"
13311 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13312 # do not overwrite the value of need_locks provided by the user
13313 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13314 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13315 hard_links=yes
13316 $rm conftest*
13317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13318 touch conftest.a
13319 ln conftest.a conftest.b 2>&5 || hard_links=no
13320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13321 echo "$as_me:$LINENO: result: $hard_links" >&5
13322 echo "${ECHO_T}$hard_links" >&6
13323 if test "$hard_links" = no; then
13324 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13325 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13326 need_locks=warn
13327 fi
13328 else
13329 need_locks=no
13330 fi
13331
13332 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13333 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13334
13335 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13336 case $host_os in
13337 aix4* | aix5*)
13338 # If we're using GNU nm, then we don't want the "-C" option.
13339 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13340 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13341 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'
13342 else
13343 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'
13344 fi
13345 ;;
13346 pw32*)
13347 export_symbols_cmds_CXX="$ltdll_cmds"
13348 ;;
13349 cygwin* | mingw*)
13350 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'
13351 ;;
13352 *)
13353 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13354 ;;
13355 esac
13356
13357 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13358 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13359 test "$ld_shlibs_CXX" = no && can_build_shared=no
13360
13361 #
13362 # Do we need to explicitly link libc?
13363 #
13364 case "x$archive_cmds_need_lc_CXX" in
13365 x|xyes)
13366 # Assume -lc should be added
13367 archive_cmds_need_lc_CXX=yes
13368
13369 if test "$enable_shared" = yes && test "$GCC" = yes; then
13370 case $archive_cmds_CXX in
13371 *'~'*)
13372 # FIXME: we may have to deal with multi-command sequences.
13373 ;;
13374 '$CC '*)
13375 # Test whether the compiler implicitly links with -lc since on some
13376 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13377 # to ld, don't add -lc before -lgcc.
13378 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13379 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13380 $rm conftest*
13381 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13382
13383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13384 (eval $ac_compile) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } 2>conftest.err; then
13388 soname=conftest
13389 lib=conftest
13390 libobjs=conftest.$ac_objext
13391 deplibs=
13392 wl=$lt_prog_compiler_wl_CXX
13393 pic_flag=$lt_prog_compiler_pic_CXX
13394 compiler_flags=-v
13395 linker_flags=-v
13396 verstring=
13397 output_objdir=.
13398 libname=conftest
13399 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13400 allow_undefined_flag_CXX=
13401 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13402 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }
13406 then
13407 archive_cmds_need_lc_CXX=no
13408 else
13409 archive_cmds_need_lc_CXX=yes
13410 fi
13411 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13412 else
13413 cat conftest.err 1>&5
13414 fi
13415 $rm conftest*
13416 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13417 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13418 ;;
13419 esac
13420 fi
13421 ;;
13422 esac
13423
13424 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13425 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13426 library_names_spec=
13427 libname_spec='lib$name'
13428 soname_spec=
13429 shrext_cmds=".so"
13430 postinstall_cmds=
13431 postuninstall_cmds=
13432 finish_cmds=
13433 finish_eval=
13434 shlibpath_var=
13435 shlibpath_overrides_runpath=unknown
13436 version_type=none
13437 dynamic_linker="$host_os ld.so"
13438 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13439 if test "$GCC" = yes; then
13440 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13441 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13442 # if the path contains ";" then we assume it to be the separator
13443 # otherwise default to the standard path separator (i.e. ":") - it is
13444 # assumed that no part of a normal pathname contains ";" but that should
13445 # okay in the real world where ";" in dirpaths is itself problematic.
13446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13447 else
13448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13449 fi
13450 else
13451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13452 fi
13453 need_lib_prefix=unknown
13454 hardcode_into_libs=no
13455
13456 # when you set need_version to no, make sure it does not cause -set_version
13457 # flags to be left without arguments
13458 need_version=unknown
13459
13460 case $host_os in
13461 aix3*)
13462 version_type=linux
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13464 shlibpath_var=LIBPATH
13465
13466 # AIX 3 has no versioning support, so we append a major version to the name.
13467 soname_spec='${libname}${release}${shared_ext}$major'
13468 ;;
13469
13470 aix4* | aix5*)
13471 version_type=linux
13472 need_lib_prefix=no
13473 need_version=no
13474 hardcode_into_libs=yes
13475 if test "$host_cpu" = ia64; then
13476 # AIX 5 supports IA64
13477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13478 shlibpath_var=LD_LIBRARY_PATH
13479 else
13480 # With GCC up to 2.95.x, collect2 would create an import file
13481 # for dependence libraries. The import file would start with
13482 # the line `#! .'. This would cause the generated library to
13483 # depend on `.', always an invalid library. This was fixed in
13484 # development snapshots of GCC prior to 3.0.
13485 case $host_os in
13486 aix4 | aix4.[01] | aix4.[01].*)
13487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13488 echo ' yes '
13489 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13490 :
13491 else
13492 can_build_shared=no
13493 fi
13494 ;;
13495 esac
13496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13497 # soname into executable. Probably we can add versioning support to
13498 # collect2, so additional links can be useful in future.
13499 if test "$aix_use_runtimelinking" = yes; then
13500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13501 # instead of lib<name>.a to let people know that these are not
13502 # typical AIX shared libraries.
13503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13504 else
13505 # We preserve .a as extension for shared libraries through AIX4.2
13506 # and later when we are not doing run time linking.
13507 library_names_spec='${libname}${release}.a $libname.a'
13508 soname_spec='${libname}${release}${shared_ext}$major'
13509 fi
13510 shlibpath_var=LIBPATH
13511 fi
13512 ;;
13513
13514 amigaos*)
13515 library_names_spec='$libname.ixlibrary $libname.a'
13516 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13517 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'
13518 ;;
13519
13520 beos*)
13521 library_names_spec='${libname}${shared_ext}'
13522 dynamic_linker="$host_os ld.so"
13523 shlibpath_var=LIBRARY_PATH
13524 ;;
13525
13526 bsdi[45]*)
13527 version_type=linux
13528 need_version=no
13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530 soname_spec='${libname}${release}${shared_ext}$major'
13531 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13532 shlibpath_var=LD_LIBRARY_PATH
13533 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13534 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13535 # the default ld.so.conf also contains /usr/contrib/lib and
13536 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13537 # libtool to hard-code these into programs
13538 ;;
13539
13540 cygwin* | mingw* | pw32*)
13541 version_type=windows
13542 shrext_cmds=".dll"
13543 need_version=no
13544 need_lib_prefix=no
13545
13546 case $GCC,$host_os in
13547 yes,cygwin* | yes,mingw* | yes,pw32*)
13548 library_names_spec='$libname.dll.a'
13549 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13550 postinstall_cmds='base_file=`basename \${file}`~
13551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13552 dldir=$destdir/`dirname \$dlpath`~
13553 test -d \$dldir || mkdir -p \$dldir~
13554 $install_prog $dir/$dlname \$dldir/$dlname~
13555 chmod a+x \$dldir/$dlname'
13556 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13557 dlpath=$dir/\$dldll~
13558 $rm \$dlpath'
13559 shlibpath_overrides_runpath=yes
13560
13561 case $host_os in
13562 cygwin*)
13563 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13564 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13565 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13566 ;;
13567 mingw*)
13568 # MinGW DLLs use traditional 'lib' prefix
13569 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13571 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13572 # It is most probably a Windows format PATH printed by
13573 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13574 # path with ; separators, and with drive letters. We can handle the
13575 # drive letters (cygwin fileutils understands them), so leave them,
13576 # especially as we might pass files found there to a mingw objdump,
13577 # which wouldn't understand a cygwinified path. Ahh.
13578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13579 else
13580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13581 fi
13582 ;;
13583 pw32*)
13584 # pw32 DLLs use 'pw' prefix rather than 'lib'
13585 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13586 ;;
13587 esac
13588 ;;
13589
13590 *)
13591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13592 ;;
13593 esac
13594 dynamic_linker='Win32 ld.exe'
13595 # FIXME: first we should search . and the directory the executable is in
13596 shlibpath_var=PATH
13597 ;;
13598
13599 darwin* | rhapsody*)
13600 dynamic_linker="$host_os dyld"
13601 version_type=darwin
13602 need_lib_prefix=no
13603 need_version=no
13604 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13605 soname_spec='${libname}${release}${major}$shared_ext'
13606 shlibpath_overrides_runpath=yes
13607 shlibpath_var=DYLD_LIBRARY_PATH
13608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13609 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13610 if test "$GCC" = yes; then
13611 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"`
13612 else
13613 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13614 fi
13615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13616 ;;
13617
13618 dgux*)
13619 version_type=linux
13620 need_lib_prefix=no
13621 need_version=no
13622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13623 soname_spec='${libname}${release}${shared_ext}$major'
13624 shlibpath_var=LD_LIBRARY_PATH
13625 ;;
13626
13627 freebsd1*)
13628 dynamic_linker=no
13629 ;;
13630
13631 kfreebsd*-gnu)
13632 version_type=linux
13633 need_lib_prefix=no
13634 need_version=no
13635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13636 soname_spec='${libname}${release}${shared_ext}$major'
13637 shlibpath_var=LD_LIBRARY_PATH
13638 shlibpath_overrides_runpath=no
13639 hardcode_into_libs=yes
13640 dynamic_linker='GNU ld.so'
13641 ;;
13642
13643 freebsd* | dragonfly*)
13644 # DragonFly does not have aout. When/if they implement a new
13645 # versioning mechanism, adjust this.
13646 if test -x /usr/bin/objformat; then
13647 objformat=`/usr/bin/objformat`
13648 else
13649 case $host_os in
13650 freebsd[123]*) objformat=aout ;;
13651 *) objformat=elf ;;
13652 esac
13653 fi
13654 version_type=freebsd-$objformat
13655 case $version_type in
13656 freebsd-elf*)
13657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13658 need_version=no
13659 need_lib_prefix=no
13660 ;;
13661 freebsd-*)
13662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13663 need_version=yes
13664 ;;
13665 esac
13666 shlibpath_var=LD_LIBRARY_PATH
13667 case $host_os in
13668 freebsd2*)
13669 shlibpath_overrides_runpath=yes
13670 ;;
13671 freebsd3.[01]* | freebsdelf3.[01]*)
13672 shlibpath_overrides_runpath=yes
13673 hardcode_into_libs=yes
13674 ;;
13675 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13676 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13677 shlibpath_overrides_runpath=no
13678 hardcode_into_libs=yes
13679 ;;
13680 freebsd*) # from 4.6 on
13681 shlibpath_overrides_runpath=yes
13682 hardcode_into_libs=yes
13683 ;;
13684 esac
13685 ;;
13686
13687 gnu*)
13688 version_type=linux
13689 need_lib_prefix=no
13690 need_version=no
13691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13692 soname_spec='${libname}${release}${shared_ext}$major'
13693 shlibpath_var=LD_LIBRARY_PATH
13694 hardcode_into_libs=yes
13695 ;;
13696
13697 hpux9* | hpux10* | hpux11*)
13698 # Give a soname corresponding to the major version so that dld.sl refuses to
13699 # link against other versions.
13700 version_type=sunos
13701 need_lib_prefix=no
13702 need_version=no
13703 case $host_cpu in
13704 ia64*)
13705 shrext_cmds='.so'
13706 hardcode_into_libs=yes
13707 dynamic_linker="$host_os dld.so"
13708 shlibpath_var=LD_LIBRARY_PATH
13709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13711 soname_spec='${libname}${release}${shared_ext}$major'
13712 if test "X$HPUX_IA64_MODE" = X32; then
13713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13714 else
13715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13716 fi
13717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13718 ;;
13719 hppa*64*)
13720 shrext_cmds='.sl'
13721 hardcode_into_libs=yes
13722 dynamic_linker="$host_os dld.sl"
13723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13726 soname_spec='${libname}${release}${shared_ext}$major'
13727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13729 ;;
13730 *)
13731 shrext_cmds='.sl'
13732 dynamic_linker="$host_os dld.sl"
13733 shlibpath_var=SHLIB_PATH
13734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13736 soname_spec='${libname}${release}${shared_ext}$major'
13737 ;;
13738 esac
13739 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13740 postinstall_cmds='chmod 555 $lib'
13741 ;;
13742
13743 interix3*)
13744 version_type=linux
13745 need_lib_prefix=no
13746 need_version=no
13747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13748 soname_spec='${libname}${release}${shared_ext}$major'
13749 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13750 shlibpath_var=LD_LIBRARY_PATH
13751 shlibpath_overrides_runpath=no
13752 hardcode_into_libs=yes
13753 ;;
13754
13755 irix5* | irix6* | nonstopux*)
13756 case $host_os in
13757 nonstopux*) version_type=nonstopux ;;
13758 *)
13759 if test "$lt_cv_prog_gnu_ld" = yes; then
13760 version_type=linux
13761 else
13762 version_type=irix
13763 fi ;;
13764 esac
13765 need_lib_prefix=no
13766 need_version=no
13767 soname_spec='${libname}${release}${shared_ext}$major'
13768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13769 case $host_os in
13770 irix5* | nonstopux*)
13771 libsuff= shlibsuff=
13772 ;;
13773 *)
13774 case $LD in # libtool.m4 will add one of these switches to LD
13775 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13776 libsuff= shlibsuff= libmagic=32-bit;;
13777 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13778 libsuff=32 shlibsuff=N32 libmagic=N32;;
13779 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13780 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13781 *) libsuff= shlibsuff= libmagic=never-match;;
13782 esac
13783 ;;
13784 esac
13785 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13786 shlibpath_overrides_runpath=no
13787 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13788 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13789 hardcode_into_libs=yes
13790 ;;
13791
13792 # No shared lib support for Linux oldld, aout, or coff.
13793 linux*oldld* | linux*aout* | linux*coff*)
13794 dynamic_linker=no
13795 ;;
13796
13797 # This must be Linux ELF.
13798 linux*)
13799 version_type=linux
13800 need_lib_prefix=no
13801 need_version=no
13802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13803 soname_spec='${libname}${release}${shared_ext}$major'
13804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13805 shlibpath_var=LD_LIBRARY_PATH
13806 shlibpath_overrides_runpath=no
13807 # This implies no fast_install, which is unacceptable.
13808 # Some rework will be needed to allow for fast_install
13809 # before this can be enabled.
13810 hardcode_into_libs=yes
13811
13812 # Append ld.so.conf contents to the search path
13813 if test -f /etc/ld.so.conf; then
13814 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' ' '`
13815 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13816 fi
13817
13818 # We used to test for /lib/ld.so.1 and disable shared libraries on
13819 # powerpc, because MkLinux only supported shared libraries with the
13820 # GNU dynamic linker. Since this was broken with cross compilers,
13821 # most powerpc-linux boxes support dynamic linking these days and
13822 # people can always --disable-shared, the test was removed, and we
13823 # assume the GNU/Linux dynamic linker is in use.
13824 dynamic_linker='GNU/Linux ld.so'
13825 ;;
13826
13827 knetbsd*-gnu)
13828 version_type=linux
13829 need_lib_prefix=no
13830 need_version=no
13831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13832 soname_spec='${libname}${release}${shared_ext}$major'
13833 shlibpath_var=LD_LIBRARY_PATH
13834 shlibpath_overrides_runpath=no
13835 hardcode_into_libs=yes
13836 dynamic_linker='GNU ld.so'
13837 ;;
13838
13839 netbsd*)
13840 version_type=sunos
13841 need_lib_prefix=no
13842 need_version=no
13843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13846 dynamic_linker='NetBSD (a.out) ld.so'
13847 else
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 dynamic_linker='NetBSD ld.elf_so'
13851 fi
13852 shlibpath_var=LD_LIBRARY_PATH
13853 shlibpath_overrides_runpath=yes
13854 hardcode_into_libs=yes
13855 ;;
13856
13857 newsos6)
13858 version_type=linux
13859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13860 shlibpath_var=LD_LIBRARY_PATH
13861 shlibpath_overrides_runpath=yes
13862 ;;
13863
13864 nto-qnx*)
13865 version_type=linux
13866 need_lib_prefix=no
13867 need_version=no
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13869 soname_spec='${libname}${release}${shared_ext}$major'
13870 shlibpath_var=LD_LIBRARY_PATH
13871 shlibpath_overrides_runpath=yes
13872 ;;
13873
13874 openbsd*)
13875 version_type=sunos
13876 sys_lib_dlsearch_path_spec="/usr/lib"
13877 need_lib_prefix=no
13878 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13879 case $host_os in
13880 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13881 *) need_version=no ;;
13882 esac
13883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13885 shlibpath_var=LD_LIBRARY_PATH
13886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13887 case $host_os in
13888 openbsd2.[89] | openbsd2.[89].*)
13889 shlibpath_overrides_runpath=no
13890 ;;
13891 *)
13892 shlibpath_overrides_runpath=yes
13893 ;;
13894 esac
13895 else
13896 shlibpath_overrides_runpath=yes
13897 fi
13898 ;;
13899
13900 os2*)
13901 libname_spec='$name'
13902 shrext_cmds=".dll"
13903 need_lib_prefix=no
13904 library_names_spec='$libname${shared_ext} $libname.a'
13905 dynamic_linker='OS/2 ld.exe'
13906 shlibpath_var=LIBPATH
13907 ;;
13908
13909 osf3* | osf4* | osf5*)
13910 version_type=osf
13911 need_lib_prefix=no
13912 need_version=no
13913 soname_spec='${libname}${release}${shared_ext}$major'
13914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13915 shlibpath_var=LD_LIBRARY_PATH
13916 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13917 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13918 ;;
13919
13920 solaris*)
13921 version_type=linux
13922 need_lib_prefix=no
13923 need_version=no
13924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13925 soname_spec='${libname}${release}${shared_ext}$major'
13926 shlibpath_var=LD_LIBRARY_PATH
13927 shlibpath_overrides_runpath=yes
13928 hardcode_into_libs=yes
13929 # ldd complains unless libraries are executable
13930 postinstall_cmds='chmod +x $lib'
13931 ;;
13932
13933 sunos4*)
13934 version_type=sunos
13935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13937 shlibpath_var=LD_LIBRARY_PATH
13938 shlibpath_overrides_runpath=yes
13939 if test "$with_gnu_ld" = yes; then
13940 need_lib_prefix=no
13941 fi
13942 need_version=yes
13943 ;;
13944
13945 sysv4 | sysv4.3*)
13946 version_type=linux
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948 soname_spec='${libname}${release}${shared_ext}$major'
13949 shlibpath_var=LD_LIBRARY_PATH
13950 case $host_vendor in
13951 sni)
13952 shlibpath_overrides_runpath=no
13953 need_lib_prefix=no
13954 export_dynamic_flag_spec='${wl}-Blargedynsym'
13955 runpath_var=LD_RUN_PATH
13956 ;;
13957 siemens)
13958 need_lib_prefix=no
13959 ;;
13960 motorola)
13961 need_lib_prefix=no
13962 need_version=no
13963 shlibpath_overrides_runpath=no
13964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13965 ;;
13966 esac
13967 ;;
13968
13969 sysv4*MP*)
13970 if test -d /usr/nec ;then
13971 version_type=linux
13972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13973 soname_spec='$libname${shared_ext}.$major'
13974 shlibpath_var=LD_LIBRARY_PATH
13975 fi
13976 ;;
13977
13978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13979 version_type=freebsd-elf
13980 need_lib_prefix=no
13981 need_version=no
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13983 soname_spec='${libname}${release}${shared_ext}$major'
13984 shlibpath_var=LD_LIBRARY_PATH
13985 hardcode_into_libs=yes
13986 if test "$with_gnu_ld" = yes; then
13987 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13988 shlibpath_overrides_runpath=no
13989 else
13990 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13991 shlibpath_overrides_runpath=yes
13992 case $host_os in
13993 sco3.2v5*)
13994 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13995 ;;
13996 esac
13997 fi
13998 sys_lib_dlsearch_path_spec='/usr/lib'
13999 ;;
14000
14001 uts4*)
14002 version_type=linux
14003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14004 soname_spec='${libname}${release}${shared_ext}$major'
14005 shlibpath_var=LD_LIBRARY_PATH
14006 ;;
14007
14008 *)
14009 dynamic_linker=no
14010 ;;
14011 esac
14012 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14013 echo "${ECHO_T}$dynamic_linker" >&6
14014 test "$dynamic_linker" = no && can_build_shared=no
14015
14016 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14017 if test "$GCC" = yes; then
14018 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14019 fi
14020
14021 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14022 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14023 hardcode_action_CXX=
14024 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14025 test -n "$runpath_var_CXX" || \
14026 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14027
14028 # We can hardcode non-existant directories.
14029 if test "$hardcode_direct_CXX" != no &&
14030 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14031 # have to relink, otherwise we might link with an installed library
14032 # when we should be linking with a yet-to-be-installed one
14033 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14034 test "$hardcode_minus_L_CXX" != no; then
14035 # Linking always hardcodes the temporary library directory.
14036 hardcode_action_CXX=relink
14037 else
14038 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14039 hardcode_action_CXX=immediate
14040 fi
14041 else
14042 # We cannot hardcode anything, or else we can only hardcode existing
14043 # directories.
14044 hardcode_action_CXX=unsupported
14045 fi
14046 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14047 echo "${ECHO_T}$hardcode_action_CXX" >&6
14048
14049 if test "$hardcode_action_CXX" = relink; then
14050 # Fast installation is not supported
14051 enable_fast_install=no
14052 elif test "$shlibpath_overrides_runpath" = yes ||
14053 test "$enable_shared" = no; then
14054 # Fast installation is not necessary
14055 enable_fast_install=needless
14056 fi
14057
14058
14059 # The else clause should only fire when bootstrapping the
14060 # libtool distribution, otherwise you forgot to ship ltmain.sh
14061 # with your package, and you will get complaints that there are
14062 # no rules to generate ltmain.sh.
14063 if test -f "$ltmain"; then
14064 # See if we are running on zsh, and set the options which allow our commands through
14065 # without removal of \ escapes.
14066 if test -n "${ZSH_VERSION+set}" ; then
14067 setopt NO_GLOB_SUBST
14068 fi
14069 # Now quote all the things that may contain metacharacters while being
14070 # careful not to overquote the AC_SUBSTed values. We take copies of the
14071 # variables and quote the copies for generation of the libtool script.
14072 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14073 SED SHELL STRIP \
14074 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14075 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14076 deplibs_check_method reload_flag reload_cmds need_locks \
14077 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14078 lt_cv_sys_global_symbol_to_c_name_address \
14079 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14080 old_postinstall_cmds old_postuninstall_cmds \
14081 compiler_CXX \
14082 CC_CXX \
14083 LD_CXX \
14084 lt_prog_compiler_wl_CXX \
14085 lt_prog_compiler_pic_CXX \
14086 lt_prog_compiler_static_CXX \
14087 lt_prog_compiler_no_builtin_flag_CXX \
14088 export_dynamic_flag_spec_CXX \
14089 thread_safe_flag_spec_CXX \
14090 whole_archive_flag_spec_CXX \
14091 enable_shared_with_static_runtimes_CXX \
14092 old_archive_cmds_CXX \
14093 old_archive_from_new_cmds_CXX \
14094 predep_objects_CXX \
14095 postdep_objects_CXX \
14096 predeps_CXX \
14097 postdeps_CXX \
14098 compiler_lib_search_path_CXX \
14099 archive_cmds_CXX \
14100 archive_expsym_cmds_CXX \
14101 postinstall_cmds_CXX \
14102 postuninstall_cmds_CXX \
14103 old_archive_from_expsyms_cmds_CXX \
14104 allow_undefined_flag_CXX \
14105 no_undefined_flag_CXX \
14106 export_symbols_cmds_CXX \
14107 hardcode_libdir_flag_spec_CXX \
14108 hardcode_libdir_flag_spec_ld_CXX \
14109 hardcode_libdir_separator_CXX \
14110 hardcode_automatic_CXX \
14111 module_cmds_CXX \
14112 module_expsym_cmds_CXX \
14113 lt_cv_prog_compiler_c_o_CXX \
14114 exclude_expsyms_CXX \
14115 include_expsyms_CXX; do
14116
14117 case $var in
14118 old_archive_cmds_CXX | \
14119 old_archive_from_new_cmds_CXX | \
14120 archive_cmds_CXX | \
14121 archive_expsym_cmds_CXX | \
14122 module_cmds_CXX | \
14123 module_expsym_cmds_CXX | \
14124 old_archive_from_expsyms_cmds_CXX | \
14125 export_symbols_cmds_CXX | \
14126 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14127 postinstall_cmds | postuninstall_cmds | \
14128 old_postinstall_cmds | old_postuninstall_cmds | \
14129 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14130 # Double-quote double-evaled strings.
14131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14132 ;;
14133 *)
14134 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14135 ;;
14136 esac
14137 done
14138
14139 case $lt_echo in
14140 *'\$0 --fallback-echo"')
14141 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14142 ;;
14143 esac
14144
14145 cfgfile="$ofile"
14146
14147 cat <<__EOF__ >> "$cfgfile"
14148 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14149
14150 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14151
14152 # Shell to use when invoking shell scripts.
14153 SHELL=$lt_SHELL
14154
14155 # Whether or not to build shared libraries.
14156 build_libtool_libs=$enable_shared
14157
14158 # Whether or not to build static libraries.
14159 build_old_libs=$enable_static
14160
14161 # Whether or not to add -lc for building shared libraries.
14162 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14163
14164 # Whether or not to disallow shared libs when runtime libs are static
14165 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14166
14167 # Whether or not to optimize for fast installation.
14168 fast_install=$enable_fast_install
14169
14170 # The host system.
14171 host_alias=$host_alias
14172 host=$host
14173 host_os=$host_os
14174
14175 # The build system.
14176 build_alias=$build_alias
14177 build=$build
14178 build_os=$build_os
14179
14180 # An echo program that does not interpret backslashes.
14181 echo=$lt_echo
14182
14183 # The archiver.
14184 AR=$lt_AR
14185 AR_FLAGS=$lt_AR_FLAGS
14186
14187 # A C compiler.
14188 LTCC=$lt_LTCC
14189
14190 # LTCC compiler flags.
14191 LTCFLAGS=$lt_LTCFLAGS
14192
14193 # A language-specific compiler.
14194 CC=$lt_compiler_CXX
14195
14196 # Is the compiler the GNU C compiler?
14197 with_gcc=$GCC_CXX
14198
14199 # An ERE matcher.
14200 EGREP=$lt_EGREP
14201
14202 # The linker used to build libraries.
14203 LD=$lt_LD_CXX
14204
14205 # Whether we need hard or soft links.
14206 LN_S=$lt_LN_S
14207
14208 # A BSD-compatible nm program.
14209 NM=$lt_NM
14210
14211 # A symbol stripping program
14212 STRIP=$lt_STRIP
14213
14214 # Used to examine libraries when file_magic_cmd begins "file"
14215 MAGIC_CMD=$MAGIC_CMD
14216
14217 # Used on cygwin: DLL creation program.
14218 DLLTOOL="$DLLTOOL"
14219
14220 # Used on cygwin: object dumper.
14221 OBJDUMP="$OBJDUMP"
14222
14223 # Used on cygwin: assembler.
14224 AS="$AS"
14225
14226 # The name of the directory that contains temporary libtool files.
14227 objdir=$objdir
14228
14229 # How to create reloadable object files.
14230 reload_flag=$lt_reload_flag
14231 reload_cmds=$lt_reload_cmds
14232
14233 # How to pass a linker flag through the compiler.
14234 wl=$lt_lt_prog_compiler_wl_CXX
14235
14236 # Object file suffix (normally "o").
14237 objext="$ac_objext"
14238
14239 # Old archive suffix (normally "a").
14240 libext="$libext"
14241
14242 # Shared library suffix (normally ".so").
14243 shrext_cmds='$shrext_cmds'
14244
14245 # Executable file suffix (normally "").
14246 exeext="$exeext"
14247
14248 # Additional compiler flags for building library objects.
14249 pic_flag=$lt_lt_prog_compiler_pic_CXX
14250 pic_mode=$pic_mode
14251
14252 # What is the maximum length of a command?
14253 max_cmd_len=$lt_cv_sys_max_cmd_len
14254
14255 # Does compiler simultaneously support -c and -o options?
14256 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14257
14258 # Must we lock files when doing compilation?
14259 need_locks=$lt_need_locks
14260
14261 # Do we need the lib prefix for modules?
14262 need_lib_prefix=$need_lib_prefix
14263
14264 # Do we need a version for libraries?
14265 need_version=$need_version
14266
14267 # Whether dlopen is supported.
14268 dlopen_support=$enable_dlopen
14269
14270 # Whether dlopen of programs is supported.
14271 dlopen_self=$enable_dlopen_self
14272
14273 # Whether dlopen of statically linked programs is supported.
14274 dlopen_self_static=$enable_dlopen_self_static
14275
14276 # Compiler flag to prevent dynamic linking.
14277 link_static_flag=$lt_lt_prog_compiler_static_CXX
14278
14279 # Compiler flag to turn off builtin functions.
14280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14281
14282 # Compiler flag to allow reflexive dlopens.
14283 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14284
14285 # Compiler flag to generate shared objects directly from archives.
14286 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14287
14288 # Compiler flag to generate thread-safe objects.
14289 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14290
14291 # Library versioning type.
14292 version_type=$version_type
14293
14294 # Format of library name prefix.
14295 libname_spec=$lt_libname_spec
14296
14297 # List of archive names. First name is the real one, the rest are links.
14298 # The last name is the one that the linker finds with -lNAME.
14299 library_names_spec=$lt_library_names_spec
14300
14301 # The coded name of the library, if different from the real name.
14302 soname_spec=$lt_soname_spec
14303
14304 # Commands used to build and install an old-style archive.
14305 RANLIB=$lt_RANLIB
14306 old_archive_cmds=$lt_old_archive_cmds_CXX
14307 old_postinstall_cmds=$lt_old_postinstall_cmds
14308 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14309
14310 # Create an old-style archive from a shared archive.
14311 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14312
14313 # Create a temporary old-style archive to link instead of a shared archive.
14314 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14315
14316 # Commands used to build and install a shared archive.
14317 archive_cmds=$lt_archive_cmds_CXX
14318 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14319 postinstall_cmds=$lt_postinstall_cmds
14320 postuninstall_cmds=$lt_postuninstall_cmds
14321
14322 # Commands used to build a loadable module (assumed same as above if empty)
14323 module_cmds=$lt_module_cmds_CXX
14324 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14325
14326 # Commands to strip libraries.
14327 old_striplib=$lt_old_striplib
14328 striplib=$lt_striplib
14329
14330 # Dependencies to place before the objects being linked to create a
14331 # shared library.
14332 predep_objects=$lt_predep_objects_CXX
14333
14334 # Dependencies to place after the objects being linked to create a
14335 # shared library.
14336 postdep_objects=$lt_postdep_objects_CXX
14337
14338 # Dependencies to place before the objects being linked to create a
14339 # shared library.
14340 predeps=$lt_predeps_CXX
14341
14342 # Dependencies to place after the objects being linked to create a
14343 # shared library.
14344 postdeps=$lt_postdeps_CXX
14345
14346 # The library search path used internally by the compiler when linking
14347 # a shared library.
14348 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14349
14350 # Method to check whether dependent libraries are shared objects.
14351 deplibs_check_method=$lt_deplibs_check_method
14352
14353 # Command to use when deplibs_check_method == file_magic.
14354 file_magic_cmd=$lt_file_magic_cmd
14355
14356 # Flag that allows shared libraries with undefined symbols to be built.
14357 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14358
14359 # Flag that forces no undefined symbols.
14360 no_undefined_flag=$lt_no_undefined_flag_CXX
14361
14362 # Commands used to finish a libtool library installation in a directory.
14363 finish_cmds=$lt_finish_cmds
14364
14365 # Same as above, but a single script fragment to be evaled but not shown.
14366 finish_eval=$lt_finish_eval
14367
14368 # Take the output of nm and produce a listing of raw symbols and C names.
14369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14370
14371 # Transform the output of nm in a proper C declaration
14372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14373
14374 # Transform the output of nm in a C name address pair
14375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14376
14377 # This is the shared library runtime path variable.
14378 runpath_var=$runpath_var
14379
14380 # This is the shared library path variable.
14381 shlibpath_var=$shlibpath_var
14382
14383 # Is shlibpath searched before the hard-coded library search path?
14384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14385
14386 # How to hardcode a shared library path into an executable.
14387 hardcode_action=$hardcode_action_CXX
14388
14389 # Whether we should hardcode library paths into libraries.
14390 hardcode_into_libs=$hardcode_into_libs
14391
14392 # Flag to hardcode \$libdir into a binary during linking.
14393 # This must work even if \$libdir does not exist.
14394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14395
14396 # If ld is used when linking, flag to hardcode \$libdir into
14397 # a binary during linking. This must work even if \$libdir does
14398 # not exist.
14399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14400
14401 # Whether we need a single -rpath flag with a separated argument.
14402 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14403
14404 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14405 # resulting binary.
14406 hardcode_direct=$hardcode_direct_CXX
14407
14408 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14409 # resulting binary.
14410 hardcode_minus_L=$hardcode_minus_L_CXX
14411
14412 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14413 # the resulting binary.
14414 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14415
14416 # Set to yes if building a shared library automatically hardcodes DIR into the library
14417 # and all subsequent libraries and executables linked against it.
14418 hardcode_automatic=$hardcode_automatic_CXX
14419
14420 # Variables whose values should be saved in libtool wrapper scripts and
14421 # restored at relink time.
14422 variables_saved_for_relink="$variables_saved_for_relink"
14423
14424 # Whether libtool must link a program against all its dependency libraries.
14425 link_all_deplibs=$link_all_deplibs_CXX
14426
14427 # Compile-time system search path for libraries
14428 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14429
14430 # Run-time system search path for libraries
14431 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14432
14433 # Fix the shell variable \$srcfile for the compiler.
14434 fix_srcfile_path="$fix_srcfile_path_CXX"
14435
14436 # Set to yes if exported symbols are required.
14437 always_export_symbols=$always_export_symbols_CXX
14438
14439 # The commands to list exported symbols.
14440 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14441
14442 # The commands to extract the exported symbol list from a shared archive.
14443 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14444
14445 # Symbols that should not be listed in the preloaded symbols.
14446 exclude_expsyms=$lt_exclude_expsyms_CXX
14447
14448 # Symbols that must always be exported.
14449 include_expsyms=$lt_include_expsyms_CXX
14450
14451 # ### END LIBTOOL TAG CONFIG: $tagname
14452
14453 __EOF__
14454
14455
14456 else
14457 # If there is no Makefile yet, we rely on a make rule to execute
14458 # `config.status --recheck' to rerun these tests and create the
14459 # libtool script then.
14460 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14461 if test -f "$ltmain_in"; then
14462 test -f Makefile && make "$ltmain"
14463 fi
14464 fi
14465
14466
14467 ac_ext=c
14468 ac_cpp='$CPP $CPPFLAGS'
14469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14472
14473 CC=$lt_save_CC
14474 LDCXX=$LD
14475 LD=$lt_save_LD
14476 GCC=$lt_save_GCC
14477 with_gnu_ldcxx=$with_gnu_ld
14478 with_gnu_ld=$lt_save_with_gnu_ld
14479 lt_cv_path_LDCXX=$lt_cv_path_LD
14480 lt_cv_path_LD=$lt_save_path_LD
14481 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14482 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14483
14484 else
14485 tagname=""
14486 fi
14487 ;;
14488
14489 F77)
14490 if test -n "$F77" && test "X$F77" != "Xno"; then
14491
14492 ac_ext=f
14493 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14494 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14495 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14496
14497
14498 archive_cmds_need_lc_F77=no
14499 allow_undefined_flag_F77=
14500 always_export_symbols_F77=no
14501 archive_expsym_cmds_F77=
14502 export_dynamic_flag_spec_F77=
14503 hardcode_direct_F77=no
14504 hardcode_libdir_flag_spec_F77=
14505 hardcode_libdir_flag_spec_ld_F77=
14506 hardcode_libdir_separator_F77=
14507 hardcode_minus_L_F77=no
14508 hardcode_automatic_F77=no
14509 module_cmds_F77=
14510 module_expsym_cmds_F77=
14511 link_all_deplibs_F77=unknown
14512 old_archive_cmds_F77=$old_archive_cmds
14513 no_undefined_flag_F77=
14514 whole_archive_flag_spec_F77=
14515 enable_shared_with_static_runtimes_F77=no
14516
14517 # Source file extension for f77 test sources.
14518 ac_ext=f
14519
14520 # Object file extension for compiled f77 test sources.
14521 objext=o
14522 objext_F77=$objext
14523
14524 # Code to be used in simple compile tests
14525 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14526
14527 # Code to be used in simple link tests
14528 lt_simple_link_test_code=" program t\n end\n"
14529
14530 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14531
14532 # If no C compiler was specified, use CC.
14533 LTCC=${LTCC-"$CC"}
14534
14535 # If no C compiler flags were specified, use CFLAGS.
14536 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14537
14538 # Allow CC to be a program name with arguments.
14539 compiler=$CC
14540
14541
14542 # save warnings/boilerplate of simple test code
14543 ac_outfile=conftest.$ac_objext
14544 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14545 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14546 _lt_compiler_boilerplate=`cat conftest.err`
14547 $rm conftest*
14548
14549 ac_outfile=conftest.$ac_objext
14550 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14551 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14552 _lt_linker_boilerplate=`cat conftest.err`
14553 $rm conftest*
14554
14555
14556 # Allow CC to be a program name with arguments.
14557 lt_save_CC="$CC"
14558 CC=${F77-"f77"}
14559 compiler=$CC
14560 compiler_F77=$CC
14561 for cc_temp in $compiler""; do
14562 case $cc_temp in
14563 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14564 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14565 \-*) ;;
14566 *) break;;
14567 esac
14568 done
14569 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14570
14571
14572 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14573 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14574 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14575 echo "${ECHO_T}$can_build_shared" >&6
14576
14577 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14578 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14579 test "$can_build_shared" = "no" && enable_shared=no
14580
14581 # On AIX, shared libraries and static libraries use the same namespace, and
14582 # are all built from PIC.
14583 case $host_os in
14584 aix3*)
14585 test "$enable_shared" = yes && enable_static=no
14586 if test -n "$RANLIB"; then
14587 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14588 postinstall_cmds='$RANLIB $lib'
14589 fi
14590 ;;
14591 aix4* | aix5*)
14592 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14593 test "$enable_shared" = yes && enable_static=no
14594 fi
14595 ;;
14596 esac
14597 echo "$as_me:$LINENO: result: $enable_shared" >&5
14598 echo "${ECHO_T}$enable_shared" >&6
14599
14600 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14601 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14602 # Make sure either enable_shared or enable_static is yes.
14603 test "$enable_shared" = yes || enable_static=yes
14604 echo "$as_me:$LINENO: result: $enable_static" >&5
14605 echo "${ECHO_T}$enable_static" >&6
14606
14607 GCC_F77="$G77"
14608 LD_F77="$LD"
14609
14610 lt_prog_compiler_wl_F77=
14611 lt_prog_compiler_pic_F77=
14612 lt_prog_compiler_static_F77=
14613
14614 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14615 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14616
14617 if test "$GCC" = yes; then
14618 lt_prog_compiler_wl_F77='-Wl,'
14619 lt_prog_compiler_static_F77='-static'
14620
14621 case $host_os in
14622 aix*)
14623 # All AIX code is PIC.
14624 if test "$host_cpu" = ia64; then
14625 # AIX 5 now supports IA64 processor
14626 lt_prog_compiler_static_F77='-Bstatic'
14627 fi
14628 ;;
14629
14630 amigaos*)
14631 # FIXME: we need at least 68020 code to build shared libraries, but
14632 # adding the `-m68020' flag to GCC prevents building anything better,
14633 # like `-m68040'.
14634 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14635 ;;
14636
14637 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14638 # PIC is the default for these OSes.
14639 ;;
14640
14641 mingw* | pw32* | os2*)
14642 # This hack is so that the source file can tell whether it is being
14643 # built for inclusion in a dll (and should export symbols for example).
14644 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14645 ;;
14646
14647 darwin* | rhapsody*)
14648 # PIC is the default on this platform
14649 # Common symbols not allowed in MH_DYLIB files
14650 lt_prog_compiler_pic_F77='-fno-common'
14651 ;;
14652
14653 interix3*)
14654 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14655 # Instead, we relocate shared libraries at runtime.
14656 ;;
14657
14658 msdosdjgpp*)
14659 # Just because we use GCC doesn't mean we suddenly get shared libraries
14660 # on systems that don't support them.
14661 lt_prog_compiler_can_build_shared_F77=no
14662 enable_shared=no
14663 ;;
14664
14665 sysv4*MP*)
14666 if test -d /usr/nec; then
14667 lt_prog_compiler_pic_F77=-Kconform_pic
14668 fi
14669 ;;
14670
14671 hpux*)
14672 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14673 # not for PA HP-UX.
14674 case $host_cpu in
14675 hppa*64*|ia64*)
14676 # +Z the default
14677 ;;
14678 *)
14679 lt_prog_compiler_pic_F77='-fPIC'
14680 ;;
14681 esac
14682 ;;
14683
14684 *)
14685 lt_prog_compiler_pic_F77='-fPIC'
14686 ;;
14687 esac
14688 else
14689 # PORTME Check for flag to pass linker flags through the system compiler.
14690 case $host_os in
14691 aix*)
14692 lt_prog_compiler_wl_F77='-Wl,'
14693 if test "$host_cpu" = ia64; then
14694 # AIX 5 now supports IA64 processor
14695 lt_prog_compiler_static_F77='-Bstatic'
14696 else
14697 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14698 fi
14699 ;;
14700 darwin*)
14701 # PIC is the default on this platform
14702 # Common symbols not allowed in MH_DYLIB files
14703 case $cc_basename in
14704 xlc*)
14705 lt_prog_compiler_pic_F77='-qnocommon'
14706 lt_prog_compiler_wl_F77='-Wl,'
14707 ;;
14708 esac
14709 ;;
14710
14711 mingw* | pw32* | os2*)
14712 # This hack is so that the source file can tell whether it is being
14713 # built for inclusion in a dll (and should export symbols for example).
14714 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14715 ;;
14716
14717 hpux9* | hpux10* | hpux11*)
14718 lt_prog_compiler_wl_F77='-Wl,'
14719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14720 # not for PA HP-UX.
14721 case $host_cpu in
14722 hppa*64*|ia64*)
14723 # +Z the default
14724 ;;
14725 *)
14726 lt_prog_compiler_pic_F77='+Z'
14727 ;;
14728 esac
14729 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14730 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14731 ;;
14732
14733 irix5* | irix6* | nonstopux*)
14734 lt_prog_compiler_wl_F77='-Wl,'
14735 # PIC (with -KPIC) is the default.
14736 lt_prog_compiler_static_F77='-non_shared'
14737 ;;
14738
14739 newsos6)
14740 lt_prog_compiler_pic_F77='-KPIC'
14741 lt_prog_compiler_static_F77='-Bstatic'
14742 ;;
14743
14744 linux*)
14745 case $cc_basename in
14746 icc* | ecc*)
14747 lt_prog_compiler_wl_F77='-Wl,'
14748 lt_prog_compiler_pic_F77='-KPIC'
14749 lt_prog_compiler_static_F77='-static'
14750 ;;
14751 pgcc* | pgf77* | pgf90* | pgf95*)
14752 # Portland Group compilers (*not* the Pentium gcc compiler,
14753 # which looks to be a dead project)
14754 lt_prog_compiler_wl_F77='-Wl,'
14755 lt_prog_compiler_pic_F77='-fpic'
14756 lt_prog_compiler_static_F77='-Bstatic'
14757 ;;
14758 ccc*)
14759 lt_prog_compiler_wl_F77='-Wl,'
14760 # All Alpha code is PIC.
14761 lt_prog_compiler_static_F77='-non_shared'
14762 ;;
14763 esac
14764 ;;
14765
14766 osf3* | osf4* | osf5*)
14767 lt_prog_compiler_wl_F77='-Wl,'
14768 # All OSF/1 code is PIC.
14769 lt_prog_compiler_static_F77='-non_shared'
14770 ;;
14771
14772 solaris*)
14773 lt_prog_compiler_pic_F77='-KPIC'
14774 lt_prog_compiler_static_F77='-Bstatic'
14775 case $cc_basename in
14776 f77* | f90* | f95*)
14777 lt_prog_compiler_wl_F77='-Qoption ld ';;
14778 *)
14779 lt_prog_compiler_wl_F77='-Wl,';;
14780 esac
14781 ;;
14782
14783 sunos4*)
14784 lt_prog_compiler_wl_F77='-Qoption ld '
14785 lt_prog_compiler_pic_F77='-PIC'
14786 lt_prog_compiler_static_F77='-Bstatic'
14787 ;;
14788
14789 sysv4 | sysv4.2uw2* | sysv4.3*)
14790 lt_prog_compiler_wl_F77='-Wl,'
14791 lt_prog_compiler_pic_F77='-KPIC'
14792 lt_prog_compiler_static_F77='-Bstatic'
14793 ;;
14794
14795 sysv4*MP*)
14796 if test -d /usr/nec ;then
14797 lt_prog_compiler_pic_F77='-Kconform_pic'
14798 lt_prog_compiler_static_F77='-Bstatic'
14799 fi
14800 ;;
14801
14802 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14803 lt_prog_compiler_wl_F77='-Wl,'
14804 lt_prog_compiler_pic_F77='-KPIC'
14805 lt_prog_compiler_static_F77='-Bstatic'
14806 ;;
14807
14808 unicos*)
14809 lt_prog_compiler_wl_F77='-Wl,'
14810 lt_prog_compiler_can_build_shared_F77=no
14811 ;;
14812
14813 uts4*)
14814 lt_prog_compiler_pic_F77='-pic'
14815 lt_prog_compiler_static_F77='-Bstatic'
14816 ;;
14817
14818 *)
14819 lt_prog_compiler_can_build_shared_F77=no
14820 ;;
14821 esac
14822 fi
14823
14824 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14825 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14826
14827 #
14828 # Check to make sure the PIC flag actually works.
14829 #
14830 if test -n "$lt_prog_compiler_pic_F77"; then
14831
14832 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14833 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14834 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 else
14837 lt_prog_compiler_pic_works_F77=no
14838 ac_outfile=conftest.$ac_objext
14839 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14840 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14841 # Insert the option either (1) after the last *FLAGS variable, or
14842 # (2) before a word containing "conftest.", or (3) at the end.
14843 # Note that $ac_compile itself does not contain backslashes and begins
14844 # with a dollar sign (not a hyphen), so the echo should work correctly.
14845 # The option is referenced via a variable to avoid confusing sed.
14846 lt_compile=`echo "$ac_compile" | $SED \
14847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14849 -e 's:$: $lt_compiler_flag:'`
14850 (eval echo "\"\$as_me:14850: $lt_compile\"" >&5)
14851 (eval "$lt_compile" 2>conftest.err)
14852 ac_status=$?
14853 cat conftest.err >&5
14854 echo "$as_me:14854: \$? = $ac_status" >&5
14855 if (exit $ac_status) && test -s "$ac_outfile"; then
14856 # The compiler can only warn and ignore the option if not recognized
14857 # So say no if there are warnings other than the usual output.
14858 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14860 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14861 lt_prog_compiler_pic_works_F77=yes
14862 fi
14863 fi
14864 $rm conftest*
14865
14866 fi
14867 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14868 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14869
14870 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14871 case $lt_prog_compiler_pic_F77 in
14872 "" | " "*) ;;
14873 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14874 esac
14875 else
14876 lt_prog_compiler_pic_F77=
14877 lt_prog_compiler_can_build_shared_F77=no
14878 fi
14879
14880 fi
14881 case $host_os in
14882 # For platforms which do not support PIC, -DPIC is meaningless:
14883 *djgpp*)
14884 lt_prog_compiler_pic_F77=
14885 ;;
14886 *)
14887 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14888 ;;
14889 esac
14890
14891 #
14892 # Check to make sure the static flag actually works.
14893 #
14894 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14895 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14896 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14897 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900 lt_prog_compiler_static_works_F77=no
14901 save_LDFLAGS="$LDFLAGS"
14902 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14903 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14904 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14905 # The linker can only warn and ignore the option if not recognized
14906 # So say no if there are warnings
14907 if test -s conftest.err; then
14908 # Append any errors to the config.log.
14909 cat conftest.err 1>&5
14910 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14912 if diff conftest.exp conftest.er2 >/dev/null; then
14913 lt_prog_compiler_static_works_F77=yes
14914 fi
14915 else
14916 lt_prog_compiler_static_works_F77=yes
14917 fi
14918 fi
14919 $rm conftest*
14920 LDFLAGS="$save_LDFLAGS"
14921
14922 fi
14923 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14924 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14925
14926 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14927 :
14928 else
14929 lt_prog_compiler_static_F77=
14930 fi
14931
14932
14933 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14934 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14935 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 else
14938 lt_cv_prog_compiler_c_o_F77=no
14939 $rm -r conftest 2>/dev/null
14940 mkdir conftest
14941 cd conftest
14942 mkdir out
14943 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14944
14945 lt_compiler_flag="-o out/conftest2.$ac_objext"
14946 # Insert the option either (1) after the last *FLAGS variable, or
14947 # (2) before a word containing "conftest.", or (3) at the end.
14948 # Note that $ac_compile itself does not contain backslashes and begins
14949 # with a dollar sign (not a hyphen), so the echo should work correctly.
14950 lt_compile=`echo "$ac_compile" | $SED \
14951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14953 -e 's:$: $lt_compiler_flag:'`
14954 (eval echo "\"\$as_me:14954: $lt_compile\"" >&5)
14955 (eval "$lt_compile" 2>out/conftest.err)
14956 ac_status=$?
14957 cat out/conftest.err >&5
14958 echo "$as_me:14958: \$? = $ac_status" >&5
14959 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14960 then
14961 # The compiler can only warn and ignore the option if not recognized
14962 # So say no if there are warnings
14963 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14964 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14965 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14966 lt_cv_prog_compiler_c_o_F77=yes
14967 fi
14968 fi
14969 chmod u+w . 2>&5
14970 $rm conftest*
14971 # SGI C++ compiler will create directory out/ii_files/ for
14972 # template instantiation
14973 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14974 $rm out/* && rmdir out
14975 cd ..
14976 rmdir conftest
14977 $rm conftest*
14978
14979 fi
14980 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14981 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14982
14983
14984 hard_links="nottested"
14985 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14986 # do not overwrite the value of need_locks provided by the user
14987 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14988 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14989 hard_links=yes
14990 $rm conftest*
14991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14992 touch conftest.a
14993 ln conftest.a conftest.b 2>&5 || hard_links=no
14994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14995 echo "$as_me:$LINENO: result: $hard_links" >&5
14996 echo "${ECHO_T}$hard_links" >&6
14997 if test "$hard_links" = no; then
14998 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14999 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15000 need_locks=warn
15001 fi
15002 else
15003 need_locks=no
15004 fi
15005
15006 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15007 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15008
15009 runpath_var=
15010 allow_undefined_flag_F77=
15011 enable_shared_with_static_runtimes_F77=no
15012 archive_cmds_F77=
15013 archive_expsym_cmds_F77=
15014 old_archive_From_new_cmds_F77=
15015 old_archive_from_expsyms_cmds_F77=
15016 export_dynamic_flag_spec_F77=
15017 whole_archive_flag_spec_F77=
15018 thread_safe_flag_spec_F77=
15019 hardcode_libdir_flag_spec_F77=
15020 hardcode_libdir_flag_spec_ld_F77=
15021 hardcode_libdir_separator_F77=
15022 hardcode_direct_F77=no
15023 hardcode_minus_L_F77=no
15024 hardcode_shlibpath_var_F77=unsupported
15025 link_all_deplibs_F77=unknown
15026 hardcode_automatic_F77=no
15027 module_cmds_F77=
15028 module_expsym_cmds_F77=
15029 always_export_symbols_F77=no
15030 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15031 # include_expsyms should be a list of space-separated symbols to be *always*
15032 # included in the symbol list
15033 include_expsyms_F77=
15034 # exclude_expsyms can be an extended regexp of symbols to exclude
15035 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15036 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15037 # as well as any symbol that contains `d'.
15038 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15039 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15040 # platforms (ab)use it in PIC code, but their linkers get confused if
15041 # the symbol is explicitly referenced. Since portable code cannot
15042 # rely on this symbol name, it's probably fine to never include it in
15043 # preloaded symbol tables.
15044 extract_expsyms_cmds=
15045 # Just being paranoid about ensuring that cc_basename is set.
15046 for cc_temp in $compiler""; do
15047 case $cc_temp in
15048 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15049 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15050 \-*) ;;
15051 *) break;;
15052 esac
15053 done
15054 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15055
15056 case $host_os in
15057 cygwin* | mingw* | pw32*)
15058 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15059 # When not using gcc, we currently assume that we are using
15060 # Microsoft Visual C++.
15061 if test "$GCC" != yes; then
15062 with_gnu_ld=no
15063 fi
15064 ;;
15065 interix*)
15066 # we just hope/assume this is gcc and not c89 (= MSVC++)
15067 with_gnu_ld=yes
15068 ;;
15069 openbsd*)
15070 with_gnu_ld=no
15071 ;;
15072 esac
15073
15074 ld_shlibs_F77=yes
15075 if test "$with_gnu_ld" = yes; then
15076 # If archive_cmds runs LD, not CC, wlarc should be empty
15077 wlarc='${wl}'
15078
15079 # Set some defaults for GNU ld with shared library support. These
15080 # are reset later if shared libraries are not supported. Putting them
15081 # here allows them to be overridden if necessary.
15082 runpath_var=LD_RUN_PATH
15083 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15084 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15085 # ancient GNU ld didn't support --whole-archive et. al.
15086 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15087 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15088 else
15089 whole_archive_flag_spec_F77=
15090 fi
15091 supports_anon_versioning=no
15092 case `$LD -v 2>/dev/null` in
15093 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15094 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15095 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15096 *\ 2.11.*) ;; # other 2.11 versions
15097 *) supports_anon_versioning=yes ;;
15098 esac
15099
15100 # See if GNU ld supports shared libraries.
15101 case $host_os in
15102 aix3* | aix4* | aix5*)
15103 # On AIX/PPC, the GNU linker is very broken
15104 if test "$host_cpu" != ia64; then
15105 ld_shlibs_F77=no
15106 cat <<EOF 1>&2
15107
15108 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15109 *** to be unable to reliably create shared libraries on AIX.
15110 *** Therefore, libtool is disabling shared libraries support. If you
15111 *** really care for shared libraries, you may want to modify your PATH
15112 *** so that a non-GNU linker is found, and then restart.
15113
15114 EOF
15115 fi
15116 ;;
15117
15118 amigaos*)
15119 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)'
15120 hardcode_libdir_flag_spec_F77='-L$libdir'
15121 hardcode_minus_L_F77=yes
15122
15123 # Samuel A. Falvo II <[email protected]> reports
15124 # that the semantics of dynamic libraries on AmigaOS, at least up
15125 # to version 4, is to share data among multiple programs linked
15126 # with the same dynamic library. Since this doesn't match the
15127 # behavior of shared libraries on other platforms, we can't use
15128 # them.
15129 ld_shlibs_F77=no
15130 ;;
15131
15132 beos*)
15133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15134 allow_undefined_flag_F77=unsupported
15135 # Joseph Beckenbach <[email protected]> says some releases of gcc
15136 # support --undefined. This deserves some investigation. FIXME
15137 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15138 else
15139 ld_shlibs_F77=no
15140 fi
15141 ;;
15142
15143 cygwin* | mingw* | pw32*)
15144 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15145 # as there is no search path for DLLs.
15146 hardcode_libdir_flag_spec_F77='-L$libdir'
15147 allow_undefined_flag_F77=unsupported
15148 always_export_symbols_F77=no
15149 enable_shared_with_static_runtimes_F77=yes
15150 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15151
15152 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15153 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15154 # If the export-symbols file already is a .def file (1st line
15155 # is EXPORTS), use it as is; otherwise, prepend...
15156 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15157 cp $export_symbols $output_objdir/$soname.def;
15158 else
15159 echo EXPORTS > $output_objdir/$soname.def;
15160 cat $export_symbols >> $output_objdir/$soname.def;
15161 fi~
15162 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15163 else
15164 ld_shlibs_F77=no
15165 fi
15166 ;;
15167
15168 interix3*)
15169 hardcode_direct_F77=no
15170 hardcode_shlibpath_var_F77=no
15171 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15172 export_dynamic_flag_spec_F77='${wl}-E'
15173 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15174 # Instead, shared libraries are loaded at an image base (0x10000000 by
15175 # default) and relocated if they conflict, which is a slow very memory
15176 # consuming and fragmenting process. To avoid this, we pick a random,
15177 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15178 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15179 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'
15180 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'
15181 ;;
15182
15183 linux*)
15184 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15185 tmp_addflag=
15186 case $cc_basename,$host_cpu in
15187 pgcc*) # Portland Group C compiler
15188 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'
15189 tmp_addflag=' $pic_flag'
15190 ;;
15191 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15192 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'
15193 tmp_addflag=' $pic_flag -Mnomain' ;;
15194 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15195 tmp_addflag=' -i_dynamic' ;;
15196 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15197 tmp_addflag=' -i_dynamic -nofor_main' ;;
15198 ifc* | ifort*) # Intel Fortran compiler
15199 tmp_addflag=' -nofor_main' ;;
15200 esac
15201 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15202
15203 if test $supports_anon_versioning = yes; then
15204 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15205 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15206 $echo "local: *; };" >> $output_objdir/$libname.ver~
15207 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15208 fi
15209 else
15210 ld_shlibs_F77=no
15211 fi
15212 ;;
15213
15214 netbsd*)
15215 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15216 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15217 wlarc=
15218 else
15219 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15220 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15221 fi
15222 ;;
15223
15224 solaris*)
15225 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15226 ld_shlibs_F77=no
15227 cat <<EOF 1>&2
15228
15229 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15230 *** create shared libraries on Solaris systems. Therefore, libtool
15231 *** is disabling shared libraries support. We urge you to upgrade GNU
15232 *** binutils to release 2.9.1 or newer. Another option is to modify
15233 *** your PATH or compiler configuration so that the native linker is
15234 *** used, and then restart.
15235
15236 EOF
15237 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15238 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15239 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15240 else
15241 ld_shlibs_F77=no
15242 fi
15243 ;;
15244
15245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15246 case `$LD -v 2>&1` in
15247 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15248 ld_shlibs_F77=no
15249 cat <<_LT_EOF 1>&2
15250
15251 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15252 *** reliably create shared libraries on SCO systems. Therefore, libtool
15253 *** is disabling shared libraries support. We urge you to upgrade GNU
15254 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15255 *** your PATH or compiler configuration so that the native linker is
15256 *** used, and then restart.
15257
15258 _LT_EOF
15259 ;;
15260 *)
15261 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15262 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15263 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15264 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15265 else
15266 ld_shlibs_F77=no
15267 fi
15268 ;;
15269 esac
15270 ;;
15271
15272 sunos4*)
15273 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15274 wlarc=
15275 hardcode_direct_F77=yes
15276 hardcode_shlibpath_var_F77=no
15277 ;;
15278
15279 *)
15280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15281 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15282 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15283 else
15284 ld_shlibs_F77=no
15285 fi
15286 ;;
15287 esac
15288
15289 if test "$ld_shlibs_F77" = no; then
15290 runpath_var=
15291 hardcode_libdir_flag_spec_F77=
15292 export_dynamic_flag_spec_F77=
15293 whole_archive_flag_spec_F77=
15294 fi
15295 else
15296 # PORTME fill in a description of your system's linker (not GNU ld)
15297 case $host_os in
15298 aix3*)
15299 allow_undefined_flag_F77=unsupported
15300 always_export_symbols_F77=yes
15301 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'
15302 # Note: this linker hardcodes the directories in LIBPATH if there
15303 # are no directories specified by -L.
15304 hardcode_minus_L_F77=yes
15305 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15306 # Neither direct hardcoding nor static linking is supported with a
15307 # broken collect2.
15308 hardcode_direct_F77=unsupported
15309 fi
15310 ;;
15311
15312 aix4* | aix5*)
15313 if test "$host_cpu" = ia64; then
15314 # On IA64, the linker does run time linking by default, so we don't
15315 # have to do anything special.
15316 aix_use_runtimelinking=no
15317 exp_sym_flag='-Bexport'
15318 no_entry_flag=""
15319 else
15320 # If we're using GNU nm, then we don't want the "-C" option.
15321 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15322 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15323 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'
15324 else
15325 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'
15326 fi
15327 aix_use_runtimelinking=no
15328
15329 # Test if we are trying to use run time linking or normal
15330 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15331 # need to do runtime linking.
15332 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15333 for ld_flag in $LDFLAGS; do
15334 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15335 aix_use_runtimelinking=yes
15336 break
15337 fi
15338 done
15339 ;;
15340 esac
15341
15342 exp_sym_flag='-bexport'
15343 no_entry_flag='-bnoentry'
15344 fi
15345
15346 # When large executables or shared objects are built, AIX ld can
15347 # have problems creating the table of contents. If linking a library
15348 # or program results in "error TOC overflow" add -mminimal-toc to
15349 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15350 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15351
15352 archive_cmds_F77=''
15353 hardcode_direct_F77=yes
15354 hardcode_libdir_separator_F77=':'
15355 link_all_deplibs_F77=yes
15356
15357 if test "$GCC" = yes; then
15358 case $host_os in aix4.[012]|aix4.[012].*)
15359 # We only want to do this on AIX 4.2 and lower, the check
15360 # below for broken collect2 doesn't work under 4.3+
15361 collect2name=`${CC} -print-prog-name=collect2`
15362 if test -f "$collect2name" && \
15363 strings "$collect2name" | grep resolve_lib_name >/dev/null
15364 then
15365 # We have reworked collect2
15366 hardcode_direct_F77=yes
15367 else
15368 # We have old collect2
15369 hardcode_direct_F77=unsupported
15370 # It fails to find uninstalled libraries when the uninstalled
15371 # path is not listed in the libpath. Setting hardcode_minus_L
15372 # to unsupported forces relinking
15373 hardcode_minus_L_F77=yes
15374 hardcode_libdir_flag_spec_F77='-L$libdir'
15375 hardcode_libdir_separator_F77=
15376 fi
15377 ;;
15378 esac
15379 shared_flag='-shared'
15380 if test "$aix_use_runtimelinking" = yes; then
15381 shared_flag="$shared_flag "'${wl}-G'
15382 fi
15383 else
15384 # not using gcc
15385 if test "$host_cpu" = ia64; then
15386 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15387 # chokes on -Wl,-G. The following line is correct:
15388 shared_flag='-G'
15389 else
15390 if test "$aix_use_runtimelinking" = yes; then
15391 shared_flag='${wl}-G'
15392 else
15393 shared_flag='${wl}-bM:SRE'
15394 fi
15395 fi
15396 fi
15397
15398 # It seems that -bexpall does not export symbols beginning with
15399 # underscore (_), so it is better to generate a list of symbols to export.
15400 always_export_symbols_F77=yes
15401 if test "$aix_use_runtimelinking" = yes; then
15402 # Warning - without using the other runtime loading flags (-brtl),
15403 # -berok will link without error, but may produce a broken library.
15404 allow_undefined_flag_F77='-berok'
15405 # Determine the default libpath from the value encoded in an empty executable.
15406 cat >conftest.$ac_ext <<_ACEOF
15407 program main
15408
15409 end
15410 _ACEOF
15411 rm -f conftest.$ac_objext conftest$ac_exeext
15412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15413 (eval $ac_link) 2>conftest.er1
15414 ac_status=$?
15415 grep -v '^ *+' conftest.er1 >conftest.err
15416 rm -f conftest.er1
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try='test -z "$ac_f77_werror_flag"
15421 || test ! -s conftest.err'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15424 ac_status=$?
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; } &&
15427 { ac_try='test -s conftest$ac_exeext'
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15433
15434 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15435 }'`
15436 # Check for a 64-bit object if we didn't find anything.
15437 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; }
15438 }'`; fi
15439 else
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15442
15443 fi
15444 rm -f conftest.err conftest.$ac_objext \
15445 conftest$ac_exeext conftest.$ac_ext
15446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15447
15448 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15449 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"
15450 else
15451 if test "$host_cpu" = ia64; then
15452 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15453 allow_undefined_flag_F77="-z nodefs"
15454 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"
15455 else
15456 # Determine the default libpath from the value encoded in an empty executable.
15457 cat >conftest.$ac_ext <<_ACEOF
15458 program main
15459
15460 end
15461 _ACEOF
15462 rm -f conftest.$ac_objext conftest$ac_exeext
15463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15464 (eval $ac_link) 2>conftest.er1
15465 ac_status=$?
15466 grep -v '^ *+' conftest.er1 >conftest.err
15467 rm -f conftest.er1
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } &&
15471 { ac_try='test -z "$ac_f77_werror_flag"
15472 || test ! -s conftest.err'
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; } &&
15478 { ac_try='test -s conftest$ac_exeext'
15479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15480 (eval $ac_try) 2>&5
15481 ac_status=$?
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); }; }; then
15484
15485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15486 }'`
15487 # Check for a 64-bit object if we didn't find anything.
15488 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; }
15489 }'`; fi
15490 else
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494 fi
15495 rm -f conftest.err conftest.$ac_objext \
15496 conftest$ac_exeext conftest.$ac_ext
15497 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15498
15499 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15500 # Warning - without using the other run time loading flags,
15501 # -berok will link without error, but may produce a broken library.
15502 no_undefined_flag_F77=' ${wl}-bernotok'
15503 allow_undefined_flag_F77=' ${wl}-berok'
15504 # Exported symbols can be pulled into shared objects from archives
15505 whole_archive_flag_spec_F77='$convenience'
15506 archive_cmds_need_lc_F77=yes
15507 # This is similar to how AIX traditionally builds its shared libraries.
15508 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'
15509 fi
15510 fi
15511 ;;
15512
15513 amigaos*)
15514 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)'
15515 hardcode_libdir_flag_spec_F77='-L$libdir'
15516 hardcode_minus_L_F77=yes
15517 # see comment about different semantics on the GNU ld section
15518 ld_shlibs_F77=no
15519 ;;
15520
15521 bsdi[45]*)
15522 export_dynamic_flag_spec_F77=-rdynamic
15523 ;;
15524
15525 cygwin* | mingw* | pw32*)
15526 # When not using gcc, we currently assume that we are using
15527 # Microsoft Visual C++.
15528 # hardcode_libdir_flag_spec is actually meaningless, as there is
15529 # no search path for DLLs.
15530 hardcode_libdir_flag_spec_F77=' '
15531 allow_undefined_flag_F77=unsupported
15532 # Tell ltmain to make .lib files, not .a files.
15533 libext=lib
15534 # Tell ltmain to make .dll files, not .so files.
15535 shrext_cmds=".dll"
15536 # FIXME: Setting linknames here is a bad hack.
15537 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15538 # The linker will automatically build a .lib file if we build a DLL.
15539 old_archive_From_new_cmds_F77='true'
15540 # FIXME: Should let the user specify the lib program.
15541 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15542 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15543 enable_shared_with_static_runtimes_F77=yes
15544 ;;
15545
15546 darwin* | rhapsody*)
15547 case $host_os in
15548 rhapsody* | darwin1.[012])
15549 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15550 ;;
15551 *) # Darwin 1.3 on
15552 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15553 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15554 else
15555 case ${MACOSX_DEPLOYMENT_TARGET} in
15556 10.[012])
15557 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15558 ;;
15559 10.*)
15560 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15561 ;;
15562 esac
15563 fi
15564 ;;
15565 esac
15566 archive_cmds_need_lc_F77=no
15567 hardcode_direct_F77=no
15568 hardcode_automatic_F77=yes
15569 hardcode_shlibpath_var_F77=unsupported
15570 whole_archive_flag_spec_F77=''
15571 link_all_deplibs_F77=yes
15572 if test "$GCC" = yes ; then
15573 output_verbose_link_cmd='echo'
15574 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15575 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15576 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15577 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}'
15578 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}'
15579 else
15580 case $cc_basename in
15581 xlc*)
15582 output_verbose_link_cmd='echo'
15583 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15584 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15586 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}'
15587 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}'
15588 ;;
15589 *)
15590 ld_shlibs_F77=no
15591 ;;
15592 esac
15593 fi
15594 ;;
15595
15596 dgux*)
15597 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15598 hardcode_libdir_flag_spec_F77='-L$libdir'
15599 hardcode_shlibpath_var_F77=no
15600 ;;
15601
15602 freebsd1*)
15603 ld_shlibs_F77=no
15604 ;;
15605
15606 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15607 # support. Future versions do this automatically, but an explicit c++rt0.o
15608 # does not break anything, and helps significantly (at the cost of a little
15609 # extra space).
15610 freebsd2.2*)
15611 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15612 hardcode_libdir_flag_spec_F77='-R$libdir'
15613 hardcode_direct_F77=yes
15614 hardcode_shlibpath_var_F77=no
15615 ;;
15616
15617 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15618 freebsd2*)
15619 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15620 hardcode_direct_F77=yes
15621 hardcode_minus_L_F77=yes
15622 hardcode_shlibpath_var_F77=no
15623 ;;
15624
15625 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15626 freebsd* | kfreebsd*-gnu | dragonfly*)
15627 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15628 hardcode_libdir_flag_spec_F77='-R$libdir'
15629 hardcode_direct_F77=yes
15630 hardcode_shlibpath_var_F77=no
15631 ;;
15632
15633 hpux9*)
15634 if test "$GCC" = yes; then
15635 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'
15636 else
15637 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'
15638 fi
15639 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15640 hardcode_libdir_separator_F77=:
15641 hardcode_direct_F77=yes
15642
15643 # hardcode_minus_L: Not really in the search PATH,
15644 # but as the default location of the library.
15645 hardcode_minus_L_F77=yes
15646 export_dynamic_flag_spec_F77='${wl}-E'
15647 ;;
15648
15649 hpux10*)
15650 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15651 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15652 else
15653 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15654 fi
15655 if test "$with_gnu_ld" = no; then
15656 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15657 hardcode_libdir_separator_F77=:
15658
15659 hardcode_direct_F77=yes
15660 export_dynamic_flag_spec_F77='${wl}-E'
15661
15662 # hardcode_minus_L: Not really in the search PATH,
15663 # but as the default location of the library.
15664 hardcode_minus_L_F77=yes
15665 fi
15666 ;;
15667
15668 hpux11*)
15669 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15670 case $host_cpu in
15671 hppa*64*)
15672 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15673 ;;
15674 ia64*)
15675 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15676 ;;
15677 *)
15678 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15679 ;;
15680 esac
15681 else
15682 case $host_cpu in
15683 hppa*64*)
15684 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15685 ;;
15686 ia64*)
15687 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15688 ;;
15689 *)
15690 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15691 ;;
15692 esac
15693 fi
15694 if test "$with_gnu_ld" = no; then
15695 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15696 hardcode_libdir_separator_F77=:
15697
15698 case $host_cpu in
15699 hppa*64*|ia64*)
15700 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15701 hardcode_direct_F77=no
15702 hardcode_shlibpath_var_F77=no
15703 ;;
15704 *)
15705 hardcode_direct_F77=yes
15706 export_dynamic_flag_spec_F77='${wl}-E'
15707
15708 # hardcode_minus_L: Not really in the search PATH,
15709 # but as the default location of the library.
15710 hardcode_minus_L_F77=yes
15711 ;;
15712 esac
15713 fi
15714 ;;
15715
15716 irix5* | irix6* | nonstopux*)
15717 if test "$GCC" = yes; then
15718 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'
15719 else
15720 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'
15721 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15722 fi
15723 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15724 hardcode_libdir_separator_F77=:
15725 link_all_deplibs_F77=yes
15726 ;;
15727
15728 netbsd*)
15729 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15730 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15731 else
15732 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15733 fi
15734 hardcode_libdir_flag_spec_F77='-R$libdir'
15735 hardcode_direct_F77=yes
15736 hardcode_shlibpath_var_F77=no
15737 ;;
15738
15739 newsos6)
15740 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_direct_F77=yes
15742 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15743 hardcode_libdir_separator_F77=:
15744 hardcode_shlibpath_var_F77=no
15745 ;;
15746
15747 openbsd*)
15748 hardcode_direct_F77=yes
15749 hardcode_shlibpath_var_F77=no
15750 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15751 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15752 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15753 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15754 export_dynamic_flag_spec_F77='${wl}-E'
15755 else
15756 case $host_os in
15757 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15758 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15759 hardcode_libdir_flag_spec_F77='-R$libdir'
15760 ;;
15761 *)
15762 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15763 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15764 ;;
15765 esac
15766 fi
15767 ;;
15768
15769 os2*)
15770 hardcode_libdir_flag_spec_F77='-L$libdir'
15771 hardcode_minus_L_F77=yes
15772 allow_undefined_flag_F77=unsupported
15773 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'
15774 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15775 ;;
15776
15777 osf3*)
15778 if test "$GCC" = yes; then
15779 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15780 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'
15781 else
15782 allow_undefined_flag_F77=' -expect_unresolved \*'
15783 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'
15784 fi
15785 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15786 hardcode_libdir_separator_F77=:
15787 ;;
15788
15789 osf4* | osf5*) # as osf3* with the addition of -msym flag
15790 if test "$GCC" = yes; then
15791 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15792 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'
15793 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15794 else
15795 allow_undefined_flag_F77=' -expect_unresolved \*'
15796 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'
15797 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~
15798 $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'
15799
15800 # Both c and cxx compiler support -rpath directly
15801 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15802 fi
15803 hardcode_libdir_separator_F77=:
15804 ;;
15805
15806 solaris*)
15807 no_undefined_flag_F77=' -z text'
15808 if test "$GCC" = yes; then
15809 wlarc='${wl}'
15810 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15811 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15812 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15813 else
15814 wlarc=''
15815 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15817 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15818 fi
15819 hardcode_libdir_flag_spec_F77='-R$libdir'
15820 hardcode_shlibpath_var_F77=no
15821 case $host_os in
15822 solaris2.[0-5] | solaris2.[0-5].*) ;;
15823 *)
15824 # The compiler driver will combine linker options so we
15825 # cannot just pass the convience library names through
15826 # without $wl, iff we do not link with $LD.
15827 # Luckily, gcc supports the same syntax we need for Sun Studio.
15828 # Supported since Solaris 2.6 (maybe 2.5.1?)
15829 case $wlarc in
15830 '')
15831 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15832 *)
15833 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' ;;
15834 esac ;;
15835 esac
15836 link_all_deplibs_F77=yes
15837 ;;
15838
15839 sunos4*)
15840 if test "x$host_vendor" = xsequent; then
15841 # Use $CC to link under sequent, because it throws in some extra .o
15842 # files that make .init and .fini sections work.
15843 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15844 else
15845 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15846 fi
15847 hardcode_libdir_flag_spec_F77='-L$libdir'
15848 hardcode_direct_F77=yes
15849 hardcode_minus_L_F77=yes
15850 hardcode_shlibpath_var_F77=no
15851 ;;
15852
15853 sysv4)
15854 case $host_vendor in
15855 sni)
15856 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15857 hardcode_direct_F77=yes # is this really true???
15858 ;;
15859 siemens)
15860 ## LD is ld it makes a PLAMLIB
15861 ## CC just makes a GrossModule.
15862 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15863 reload_cmds_F77='$CC -r -o $output$reload_objs'
15864 hardcode_direct_F77=no
15865 ;;
15866 motorola)
15867 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15868 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15869 ;;
15870 esac
15871 runpath_var='LD_RUN_PATH'
15872 hardcode_shlibpath_var_F77=no
15873 ;;
15874
15875 sysv4.3*)
15876 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15877 hardcode_shlibpath_var_F77=no
15878 export_dynamic_flag_spec_F77='-Bexport'
15879 ;;
15880
15881 sysv4*MP*)
15882 if test -d /usr/nec; then
15883 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15884 hardcode_shlibpath_var_F77=no
15885 runpath_var=LD_RUN_PATH
15886 hardcode_runpath_var=yes
15887 ld_shlibs_F77=yes
15888 fi
15889 ;;
15890
15891 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15892 no_undefined_flag_F77='${wl}-z,text'
15893 archive_cmds_need_lc_F77=no
15894 hardcode_shlibpath_var_F77=no
15895 runpath_var='LD_RUN_PATH'
15896
15897 if test "$GCC" = yes; then
15898 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15899 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15900 else
15901 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15902 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 fi
15904 ;;
15905
15906 sysv5* | sco3.2v5* | sco5v6*)
15907 # Note: We can NOT use -z defs as we might desire, because we do not
15908 # link with -lc, and that would cause any symbols used from libc to
15909 # always be unresolved, which means just about no library would
15910 # ever link correctly. If we're not using GNU ld we use -z text
15911 # though, which does catch some bad symbols but isn't as heavy-handed
15912 # as -z defs.
15913 no_undefined_flag_F77='${wl}-z,text'
15914 allow_undefined_flag_F77='${wl}-z,nodefs'
15915 archive_cmds_need_lc_F77=no
15916 hardcode_shlibpath_var_F77=no
15917 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15918 hardcode_libdir_separator_F77=':'
15919 link_all_deplibs_F77=yes
15920 export_dynamic_flag_spec_F77='${wl}-Bexport'
15921 runpath_var='LD_RUN_PATH'
15922
15923 if test "$GCC" = yes; then
15924 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15925 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15926 else
15927 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15928 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15929 fi
15930 ;;
15931
15932 uts4*)
15933 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934 hardcode_libdir_flag_spec_F77='-L$libdir'
15935 hardcode_shlibpath_var_F77=no
15936 ;;
15937
15938 *)
15939 ld_shlibs_F77=no
15940 ;;
15941 esac
15942 fi
15943
15944 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15945 echo "${ECHO_T}$ld_shlibs_F77" >&6
15946 test "$ld_shlibs_F77" = no && can_build_shared=no
15947
15948 #
15949 # Do we need to explicitly link libc?
15950 #
15951 case "x$archive_cmds_need_lc_F77" in
15952 x|xyes)
15953 # Assume -lc should be added
15954 archive_cmds_need_lc_F77=yes
15955
15956 if test "$enable_shared" = yes && test "$GCC" = yes; then
15957 case $archive_cmds_F77 in
15958 *'~'*)
15959 # FIXME: we may have to deal with multi-command sequences.
15960 ;;
15961 '$CC '*)
15962 # Test whether the compiler implicitly links with -lc since on some
15963 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15964 # to ld, don't add -lc before -lgcc.
15965 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15966 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15967 $rm conftest*
15968 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15969
15970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15971 (eval $ac_compile) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } 2>conftest.err; then
15975 soname=conftest
15976 lib=conftest
15977 libobjs=conftest.$ac_objext
15978 deplibs=
15979 wl=$lt_prog_compiler_wl_F77
15980 pic_flag=$lt_prog_compiler_pic_F77
15981 compiler_flags=-v
15982 linker_flags=-v
15983 verstring=
15984 output_objdir=.
15985 libname=conftest
15986 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15987 allow_undefined_flag_F77=
15988 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15989 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }
15993 then
15994 archive_cmds_need_lc_F77=no
15995 else
15996 archive_cmds_need_lc_F77=yes
15997 fi
15998 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15999 else
16000 cat conftest.err 1>&5
16001 fi
16002 $rm conftest*
16003 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16004 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16005 ;;
16006 esac
16007 fi
16008 ;;
16009 esac
16010
16011 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16012 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16013 library_names_spec=
16014 libname_spec='lib$name'
16015 soname_spec=
16016 shrext_cmds=".so"
16017 postinstall_cmds=
16018 postuninstall_cmds=
16019 finish_cmds=
16020 finish_eval=
16021 shlibpath_var=
16022 shlibpath_overrides_runpath=unknown
16023 version_type=none
16024 dynamic_linker="$host_os ld.so"
16025 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16026 if test "$GCC" = yes; then
16027 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16028 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16029 # if the path contains ";" then we assume it to be the separator
16030 # otherwise default to the standard path separator (i.e. ":") - it is
16031 # assumed that no part of a normal pathname contains ";" but that should
16032 # okay in the real world where ";" in dirpaths is itself problematic.
16033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16034 else
16035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16036 fi
16037 else
16038 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16039 fi
16040 need_lib_prefix=unknown
16041 hardcode_into_libs=no
16042
16043 # when you set need_version to no, make sure it does not cause -set_version
16044 # flags to be left without arguments
16045 need_version=unknown
16046
16047 case $host_os in
16048 aix3*)
16049 version_type=linux
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16051 shlibpath_var=LIBPATH
16052
16053 # AIX 3 has no versioning support, so we append a major version to the name.
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 ;;
16056
16057 aix4* | aix5*)
16058 version_type=linux
16059 need_lib_prefix=no
16060 need_version=no
16061 hardcode_into_libs=yes
16062 if test "$host_cpu" = ia64; then
16063 # AIX 5 supports IA64
16064 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16065 shlibpath_var=LD_LIBRARY_PATH
16066 else
16067 # With GCC up to 2.95.x, collect2 would create an import file
16068 # for dependence libraries. The import file would start with
16069 # the line `#! .'. This would cause the generated library to
16070 # depend on `.', always an invalid library. This was fixed in
16071 # development snapshots of GCC prior to 3.0.
16072 case $host_os in
16073 aix4 | aix4.[01] | aix4.[01].*)
16074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16075 echo ' yes '
16076 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16077 :
16078 else
16079 can_build_shared=no
16080 fi
16081 ;;
16082 esac
16083 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16084 # soname into executable. Probably we can add versioning support to
16085 # collect2, so additional links can be useful in future.
16086 if test "$aix_use_runtimelinking" = yes; then
16087 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16088 # instead of lib<name>.a to let people know that these are not
16089 # typical AIX shared libraries.
16090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16091 else
16092 # We preserve .a as extension for shared libraries through AIX4.2
16093 # and later when we are not doing run time linking.
16094 library_names_spec='${libname}${release}.a $libname.a'
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 fi
16097 shlibpath_var=LIBPATH
16098 fi
16099 ;;
16100
16101 amigaos*)
16102 library_names_spec='$libname.ixlibrary $libname.a'
16103 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16104 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'
16105 ;;
16106
16107 beos*)
16108 library_names_spec='${libname}${shared_ext}'
16109 dynamic_linker="$host_os ld.so"
16110 shlibpath_var=LIBRARY_PATH
16111 ;;
16112
16113 bsdi[45]*)
16114 version_type=linux
16115 need_version=no
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117 soname_spec='${libname}${release}${shared_ext}$major'
16118 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16121 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16122 # the default ld.so.conf also contains /usr/contrib/lib and
16123 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16124 # libtool to hard-code these into programs
16125 ;;
16126
16127 cygwin* | mingw* | pw32*)
16128 version_type=windows
16129 shrext_cmds=".dll"
16130 need_version=no
16131 need_lib_prefix=no
16132
16133 case $GCC,$host_os in
16134 yes,cygwin* | yes,mingw* | yes,pw32*)
16135 library_names_spec='$libname.dll.a'
16136 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16137 postinstall_cmds='base_file=`basename \${file}`~
16138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16139 dldir=$destdir/`dirname \$dlpath`~
16140 test -d \$dldir || mkdir -p \$dldir~
16141 $install_prog $dir/$dlname \$dldir/$dlname~
16142 chmod a+x \$dldir/$dlname'
16143 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16144 dlpath=$dir/\$dldll~
16145 $rm \$dlpath'
16146 shlibpath_overrides_runpath=yes
16147
16148 case $host_os in
16149 cygwin*)
16150 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16151 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16152 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16153 ;;
16154 mingw*)
16155 # MinGW DLLs use traditional 'lib' prefix
16156 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16157 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16158 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16159 # It is most probably a Windows format PATH printed by
16160 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16161 # path with ; separators, and with drive letters. We can handle the
16162 # drive letters (cygwin fileutils understands them), so leave them,
16163 # especially as we might pass files found there to a mingw objdump,
16164 # which wouldn't understand a cygwinified path. Ahh.
16165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16166 else
16167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16168 fi
16169 ;;
16170 pw32*)
16171 # pw32 DLLs use 'pw' prefix rather than 'lib'
16172 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16173 ;;
16174 esac
16175 ;;
16176
16177 *)
16178 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16179 ;;
16180 esac
16181 dynamic_linker='Win32 ld.exe'
16182 # FIXME: first we should search . and the directory the executable is in
16183 shlibpath_var=PATH
16184 ;;
16185
16186 darwin* | rhapsody*)
16187 dynamic_linker="$host_os dyld"
16188 version_type=darwin
16189 need_lib_prefix=no
16190 need_version=no
16191 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16192 soname_spec='${libname}${release}${major}$shared_ext'
16193 shlibpath_overrides_runpath=yes
16194 shlibpath_var=DYLD_LIBRARY_PATH
16195 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16196 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16197 if test "$GCC" = yes; then
16198 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"`
16199 else
16200 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16201 fi
16202 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16203 ;;
16204
16205 dgux*)
16206 version_type=linux
16207 need_lib_prefix=no
16208 need_version=no
16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16210 soname_spec='${libname}${release}${shared_ext}$major'
16211 shlibpath_var=LD_LIBRARY_PATH
16212 ;;
16213
16214 freebsd1*)
16215 dynamic_linker=no
16216 ;;
16217
16218 kfreebsd*-gnu)
16219 version_type=linux
16220 need_lib_prefix=no
16221 need_version=no
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16223 soname_spec='${libname}${release}${shared_ext}$major'
16224 shlibpath_var=LD_LIBRARY_PATH
16225 shlibpath_overrides_runpath=no
16226 hardcode_into_libs=yes
16227 dynamic_linker='GNU ld.so'
16228 ;;
16229
16230 freebsd* | dragonfly*)
16231 # DragonFly does not have aout. When/if they implement a new
16232 # versioning mechanism, adjust this.
16233 if test -x /usr/bin/objformat; then
16234 objformat=`/usr/bin/objformat`
16235 else
16236 case $host_os in
16237 freebsd[123]*) objformat=aout ;;
16238 *) objformat=elf ;;
16239 esac
16240 fi
16241 version_type=freebsd-$objformat
16242 case $version_type in
16243 freebsd-elf*)
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16245 need_version=no
16246 need_lib_prefix=no
16247 ;;
16248 freebsd-*)
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16250 need_version=yes
16251 ;;
16252 esac
16253 shlibpath_var=LD_LIBRARY_PATH
16254 case $host_os in
16255 freebsd2*)
16256 shlibpath_overrides_runpath=yes
16257 ;;
16258 freebsd3.[01]* | freebsdelf3.[01]*)
16259 shlibpath_overrides_runpath=yes
16260 hardcode_into_libs=yes
16261 ;;
16262 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16263 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16264 shlibpath_overrides_runpath=no
16265 hardcode_into_libs=yes
16266 ;;
16267 freebsd*) # from 4.6 on
16268 shlibpath_overrides_runpath=yes
16269 hardcode_into_libs=yes
16270 ;;
16271 esac
16272 ;;
16273
16274 gnu*)
16275 version_type=linux
16276 need_lib_prefix=no
16277 need_version=no
16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16279 soname_spec='${libname}${release}${shared_ext}$major'
16280 shlibpath_var=LD_LIBRARY_PATH
16281 hardcode_into_libs=yes
16282 ;;
16283
16284 hpux9* | hpux10* | hpux11*)
16285 # Give a soname corresponding to the major version so that dld.sl refuses to
16286 # link against other versions.
16287 version_type=sunos
16288 need_lib_prefix=no
16289 need_version=no
16290 case $host_cpu in
16291 ia64*)
16292 shrext_cmds='.so'
16293 hardcode_into_libs=yes
16294 dynamic_linker="$host_os dld.so"
16295 shlibpath_var=LD_LIBRARY_PATH
16296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16298 soname_spec='${libname}${release}${shared_ext}$major'
16299 if test "X$HPUX_IA64_MODE" = X32; then
16300 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16301 else
16302 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16303 fi
16304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16305 ;;
16306 hppa*64*)
16307 shrext_cmds='.sl'
16308 hardcode_into_libs=yes
16309 dynamic_linker="$host_os dld.sl"
16310 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16316 ;;
16317 *)
16318 shrext_cmds='.sl'
16319 dynamic_linker="$host_os dld.sl"
16320 shlibpath_var=SHLIB_PATH
16321 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16323 soname_spec='${libname}${release}${shared_ext}$major'
16324 ;;
16325 esac
16326 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16327 postinstall_cmds='chmod 555 $lib'
16328 ;;
16329
16330 interix3*)
16331 version_type=linux
16332 need_lib_prefix=no
16333 need_version=no
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16335 soname_spec='${libname}${release}${shared_ext}$major'
16336 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16337 shlibpath_var=LD_LIBRARY_PATH
16338 shlibpath_overrides_runpath=no
16339 hardcode_into_libs=yes
16340 ;;
16341
16342 irix5* | irix6* | nonstopux*)
16343 case $host_os in
16344 nonstopux*) version_type=nonstopux ;;
16345 *)
16346 if test "$lt_cv_prog_gnu_ld" = yes; then
16347 version_type=linux
16348 else
16349 version_type=irix
16350 fi ;;
16351 esac
16352 need_lib_prefix=no
16353 need_version=no
16354 soname_spec='${libname}${release}${shared_ext}$major'
16355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16356 case $host_os in
16357 irix5* | nonstopux*)
16358 libsuff= shlibsuff=
16359 ;;
16360 *)
16361 case $LD in # libtool.m4 will add one of these switches to LD
16362 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16363 libsuff= shlibsuff= libmagic=32-bit;;
16364 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16365 libsuff=32 shlibsuff=N32 libmagic=N32;;
16366 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16367 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16368 *) libsuff= shlibsuff= libmagic=never-match;;
16369 esac
16370 ;;
16371 esac
16372 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16373 shlibpath_overrides_runpath=no
16374 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16375 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16376 hardcode_into_libs=yes
16377 ;;
16378
16379 # No shared lib support for Linux oldld, aout, or coff.
16380 linux*oldld* | linux*aout* | linux*coff*)
16381 dynamic_linker=no
16382 ;;
16383
16384 # This must be Linux ELF.
16385 linux*)
16386 version_type=linux
16387 need_lib_prefix=no
16388 need_version=no
16389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16390 soname_spec='${libname}${release}${shared_ext}$major'
16391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 shlibpath_overrides_runpath=no
16394 # This implies no fast_install, which is unacceptable.
16395 # Some rework will be needed to allow for fast_install
16396 # before this can be enabled.
16397 hardcode_into_libs=yes
16398
16399 # Append ld.so.conf contents to the search path
16400 if test -f /etc/ld.so.conf; then
16401 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' ' '`
16402 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16403 fi
16404
16405 # We used to test for /lib/ld.so.1 and disable shared libraries on
16406 # powerpc, because MkLinux only supported shared libraries with the
16407 # GNU dynamic linker. Since this was broken with cross compilers,
16408 # most powerpc-linux boxes support dynamic linking these days and
16409 # people can always --disable-shared, the test was removed, and we
16410 # assume the GNU/Linux dynamic linker is in use.
16411 dynamic_linker='GNU/Linux ld.so'
16412 ;;
16413
16414 knetbsd*-gnu)
16415 version_type=linux
16416 need_lib_prefix=no
16417 need_version=no
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16419 soname_spec='${libname}${release}${shared_ext}$major'
16420 shlibpath_var=LD_LIBRARY_PATH
16421 shlibpath_overrides_runpath=no
16422 hardcode_into_libs=yes
16423 dynamic_linker='GNU ld.so'
16424 ;;
16425
16426 netbsd*)
16427 version_type=sunos
16428 need_lib_prefix=no
16429 need_version=no
16430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16433 dynamic_linker='NetBSD (a.out) ld.so'
16434 else
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 dynamic_linker='NetBSD ld.elf_so'
16438 fi
16439 shlibpath_var=LD_LIBRARY_PATH
16440 shlibpath_overrides_runpath=yes
16441 hardcode_into_libs=yes
16442 ;;
16443
16444 newsos6)
16445 version_type=linux
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447 shlibpath_var=LD_LIBRARY_PATH
16448 shlibpath_overrides_runpath=yes
16449 ;;
16450
16451 nto-qnx*)
16452 version_type=linux
16453 need_lib_prefix=no
16454 need_version=no
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456 soname_spec='${libname}${release}${shared_ext}$major'
16457 shlibpath_var=LD_LIBRARY_PATH
16458 shlibpath_overrides_runpath=yes
16459 ;;
16460
16461 openbsd*)
16462 version_type=sunos
16463 sys_lib_dlsearch_path_spec="/usr/lib"
16464 need_lib_prefix=no
16465 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16466 case $host_os in
16467 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16468 *) need_version=no ;;
16469 esac
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16474 case $host_os in
16475 openbsd2.[89] | openbsd2.[89].*)
16476 shlibpath_overrides_runpath=no
16477 ;;
16478 *)
16479 shlibpath_overrides_runpath=yes
16480 ;;
16481 esac
16482 else
16483 shlibpath_overrides_runpath=yes
16484 fi
16485 ;;
16486
16487 os2*)
16488 libname_spec='$name'
16489 shrext_cmds=".dll"
16490 need_lib_prefix=no
16491 library_names_spec='$libname${shared_ext} $libname.a'
16492 dynamic_linker='OS/2 ld.exe'
16493 shlibpath_var=LIBPATH
16494 ;;
16495
16496 osf3* | osf4* | osf5*)
16497 version_type=osf
16498 need_lib_prefix=no
16499 need_version=no
16500 soname_spec='${libname}${release}${shared_ext}$major'
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502 shlibpath_var=LD_LIBRARY_PATH
16503 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16504 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16505 ;;
16506
16507 solaris*)
16508 version_type=linux
16509 need_lib_prefix=no
16510 need_version=no
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 shlibpath_overrides_runpath=yes
16515 hardcode_into_libs=yes
16516 # ldd complains unless libraries are executable
16517 postinstall_cmds='chmod +x $lib'
16518 ;;
16519
16520 sunos4*)
16521 version_type=sunos
16522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16524 shlibpath_var=LD_LIBRARY_PATH
16525 shlibpath_overrides_runpath=yes
16526 if test "$with_gnu_ld" = yes; then
16527 need_lib_prefix=no
16528 fi
16529 need_version=yes
16530 ;;
16531
16532 sysv4 | sysv4.3*)
16533 version_type=linux
16534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16535 soname_spec='${libname}${release}${shared_ext}$major'
16536 shlibpath_var=LD_LIBRARY_PATH
16537 case $host_vendor in
16538 sni)
16539 shlibpath_overrides_runpath=no
16540 need_lib_prefix=no
16541 export_dynamic_flag_spec='${wl}-Blargedynsym'
16542 runpath_var=LD_RUN_PATH
16543 ;;
16544 siemens)
16545 need_lib_prefix=no
16546 ;;
16547 motorola)
16548 need_lib_prefix=no
16549 need_version=no
16550 shlibpath_overrides_runpath=no
16551 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16552 ;;
16553 esac
16554 ;;
16555
16556 sysv4*MP*)
16557 if test -d /usr/nec ;then
16558 version_type=linux
16559 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16560 soname_spec='$libname${shared_ext}.$major'
16561 shlibpath_var=LD_LIBRARY_PATH
16562 fi
16563 ;;
16564
16565 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16566 version_type=freebsd-elf
16567 need_lib_prefix=no
16568 need_version=no
16569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16570 soname_spec='${libname}${release}${shared_ext}$major'
16571 shlibpath_var=LD_LIBRARY_PATH
16572 hardcode_into_libs=yes
16573 if test "$with_gnu_ld" = yes; then
16574 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16575 shlibpath_overrides_runpath=no
16576 else
16577 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16578 shlibpath_overrides_runpath=yes
16579 case $host_os in
16580 sco3.2v5*)
16581 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16582 ;;
16583 esac
16584 fi
16585 sys_lib_dlsearch_path_spec='/usr/lib'
16586 ;;
16587
16588 uts4*)
16589 version_type=linux
16590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16591 soname_spec='${libname}${release}${shared_ext}$major'
16592 shlibpath_var=LD_LIBRARY_PATH
16593 ;;
16594
16595 *)
16596 dynamic_linker=no
16597 ;;
16598 esac
16599 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16600 echo "${ECHO_T}$dynamic_linker" >&6
16601 test "$dynamic_linker" = no && can_build_shared=no
16602
16603 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16604 if test "$GCC" = yes; then
16605 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16606 fi
16607
16608 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16609 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16610 hardcode_action_F77=
16611 if test -n "$hardcode_libdir_flag_spec_F77" || \
16612 test -n "$runpath_var_F77" || \
16613 test "X$hardcode_automatic_F77" = "Xyes" ; then
16614
16615 # We can hardcode non-existant directories.
16616 if test "$hardcode_direct_F77" != no &&
16617 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16618 # have to relink, otherwise we might link with an installed library
16619 # when we should be linking with a yet-to-be-installed one
16620 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16621 test "$hardcode_minus_L_F77" != no; then
16622 # Linking always hardcodes the temporary library directory.
16623 hardcode_action_F77=relink
16624 else
16625 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16626 hardcode_action_F77=immediate
16627 fi
16628 else
16629 # We cannot hardcode anything, or else we can only hardcode existing
16630 # directories.
16631 hardcode_action_F77=unsupported
16632 fi
16633 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16634 echo "${ECHO_T}$hardcode_action_F77" >&6
16635
16636 if test "$hardcode_action_F77" = relink; then
16637 # Fast installation is not supported
16638 enable_fast_install=no
16639 elif test "$shlibpath_overrides_runpath" = yes ||
16640 test "$enable_shared" = no; then
16641 # Fast installation is not necessary
16642 enable_fast_install=needless
16643 fi
16644
16645
16646 # The else clause should only fire when bootstrapping the
16647 # libtool distribution, otherwise you forgot to ship ltmain.sh
16648 # with your package, and you will get complaints that there are
16649 # no rules to generate ltmain.sh.
16650 if test -f "$ltmain"; then
16651 # See if we are running on zsh, and set the options which allow our commands through
16652 # without removal of \ escapes.
16653 if test -n "${ZSH_VERSION+set}" ; then
16654 setopt NO_GLOB_SUBST
16655 fi
16656 # Now quote all the things that may contain metacharacters while being
16657 # careful not to overquote the AC_SUBSTed values. We take copies of the
16658 # variables and quote the copies for generation of the libtool script.
16659 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16660 SED SHELL STRIP \
16661 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16662 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16663 deplibs_check_method reload_flag reload_cmds need_locks \
16664 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16665 lt_cv_sys_global_symbol_to_c_name_address \
16666 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16667 old_postinstall_cmds old_postuninstall_cmds \
16668 compiler_F77 \
16669 CC_F77 \
16670 LD_F77 \
16671 lt_prog_compiler_wl_F77 \
16672 lt_prog_compiler_pic_F77 \
16673 lt_prog_compiler_static_F77 \
16674 lt_prog_compiler_no_builtin_flag_F77 \
16675 export_dynamic_flag_spec_F77 \
16676 thread_safe_flag_spec_F77 \
16677 whole_archive_flag_spec_F77 \
16678 enable_shared_with_static_runtimes_F77 \
16679 old_archive_cmds_F77 \
16680 old_archive_from_new_cmds_F77 \
16681 predep_objects_F77 \
16682 postdep_objects_F77 \
16683 predeps_F77 \
16684 postdeps_F77 \
16685 compiler_lib_search_path_F77 \
16686 archive_cmds_F77 \
16687 archive_expsym_cmds_F77 \
16688 postinstall_cmds_F77 \
16689 postuninstall_cmds_F77 \
16690 old_archive_from_expsyms_cmds_F77 \
16691 allow_undefined_flag_F77 \
16692 no_undefined_flag_F77 \
16693 export_symbols_cmds_F77 \
16694 hardcode_libdir_flag_spec_F77 \
16695 hardcode_libdir_flag_spec_ld_F77 \
16696 hardcode_libdir_separator_F77 \
16697 hardcode_automatic_F77 \
16698 module_cmds_F77 \
16699 module_expsym_cmds_F77 \
16700 lt_cv_prog_compiler_c_o_F77 \
16701 exclude_expsyms_F77 \
16702 include_expsyms_F77; do
16703
16704 case $var in
16705 old_archive_cmds_F77 | \
16706 old_archive_from_new_cmds_F77 | \
16707 archive_cmds_F77 | \
16708 archive_expsym_cmds_F77 | \
16709 module_cmds_F77 | \
16710 module_expsym_cmds_F77 | \
16711 old_archive_from_expsyms_cmds_F77 | \
16712 export_symbols_cmds_F77 | \
16713 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16714 postinstall_cmds | postuninstall_cmds | \
16715 old_postinstall_cmds | old_postuninstall_cmds | \
16716 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16717 # Double-quote double-evaled strings.
16718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16719 ;;
16720 *)
16721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16722 ;;
16723 esac
16724 done
16725
16726 case $lt_echo in
16727 *'\$0 --fallback-echo"')
16728 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16729 ;;
16730 esac
16731
16732 cfgfile="$ofile"
16733
16734 cat <<__EOF__ >> "$cfgfile"
16735 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16736
16737 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16738
16739 # Shell to use when invoking shell scripts.
16740 SHELL=$lt_SHELL
16741
16742 # Whether or not to build shared libraries.
16743 build_libtool_libs=$enable_shared
16744
16745 # Whether or not to build static libraries.
16746 build_old_libs=$enable_static
16747
16748 # Whether or not to add -lc for building shared libraries.
16749 build_libtool_need_lc=$archive_cmds_need_lc_F77
16750
16751 # Whether or not to disallow shared libs when runtime libs are static
16752 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16753
16754 # Whether or not to optimize for fast installation.
16755 fast_install=$enable_fast_install
16756
16757 # The host system.
16758 host_alias=$host_alias
16759 host=$host
16760 host_os=$host_os
16761
16762 # The build system.
16763 build_alias=$build_alias
16764 build=$build
16765 build_os=$build_os
16766
16767 # An echo program that does not interpret backslashes.
16768 echo=$lt_echo
16769
16770 # The archiver.
16771 AR=$lt_AR
16772 AR_FLAGS=$lt_AR_FLAGS
16773
16774 # A C compiler.
16775 LTCC=$lt_LTCC
16776
16777 # LTCC compiler flags.
16778 LTCFLAGS=$lt_LTCFLAGS
16779
16780 # A language-specific compiler.
16781 CC=$lt_compiler_F77
16782
16783 # Is the compiler the GNU C compiler?
16784 with_gcc=$GCC_F77
16785
16786 # An ERE matcher.
16787 EGREP=$lt_EGREP
16788
16789 # The linker used to build libraries.
16790 LD=$lt_LD_F77
16791
16792 # Whether we need hard or soft links.
16793 LN_S=$lt_LN_S
16794
16795 # A BSD-compatible nm program.
16796 NM=$lt_NM
16797
16798 # A symbol stripping program
16799 STRIP=$lt_STRIP
16800
16801 # Used to examine libraries when file_magic_cmd begins "file"
16802 MAGIC_CMD=$MAGIC_CMD
16803
16804 # Used on cygwin: DLL creation program.
16805 DLLTOOL="$DLLTOOL"
16806
16807 # Used on cygwin: object dumper.
16808 OBJDUMP="$OBJDUMP"
16809
16810 # Used on cygwin: assembler.
16811 AS="$AS"
16812
16813 # The name of the directory that contains temporary libtool files.
16814 objdir=$objdir
16815
16816 # How to create reloadable object files.
16817 reload_flag=$lt_reload_flag
16818 reload_cmds=$lt_reload_cmds
16819
16820 # How to pass a linker flag through the compiler.
16821 wl=$lt_lt_prog_compiler_wl_F77
16822
16823 # Object file suffix (normally "o").
16824 objext="$ac_objext"
16825
16826 # Old archive suffix (normally "a").
16827 libext="$libext"
16828
16829 # Shared library suffix (normally ".so").
16830 shrext_cmds='$shrext_cmds'
16831
16832 # Executable file suffix (normally "").
16833 exeext="$exeext"
16834
16835 # Additional compiler flags for building library objects.
16836 pic_flag=$lt_lt_prog_compiler_pic_F77
16837 pic_mode=$pic_mode
16838
16839 # What is the maximum length of a command?
16840 max_cmd_len=$lt_cv_sys_max_cmd_len
16841
16842 # Does compiler simultaneously support -c and -o options?
16843 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16844
16845 # Must we lock files when doing compilation?
16846 need_locks=$lt_need_locks
16847
16848 # Do we need the lib prefix for modules?
16849 need_lib_prefix=$need_lib_prefix
16850
16851 # Do we need a version for libraries?
16852 need_version=$need_version
16853
16854 # Whether dlopen is supported.
16855 dlopen_support=$enable_dlopen
16856
16857 # Whether dlopen of programs is supported.
16858 dlopen_self=$enable_dlopen_self
16859
16860 # Whether dlopen of statically linked programs is supported.
16861 dlopen_self_static=$enable_dlopen_self_static
16862
16863 # Compiler flag to prevent dynamic linking.
16864 link_static_flag=$lt_lt_prog_compiler_static_F77
16865
16866 # Compiler flag to turn off builtin functions.
16867 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16868
16869 # Compiler flag to allow reflexive dlopens.
16870 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16871
16872 # Compiler flag to generate shared objects directly from archives.
16873 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16874
16875 # Compiler flag to generate thread-safe objects.
16876 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16877
16878 # Library versioning type.
16879 version_type=$version_type
16880
16881 # Format of library name prefix.
16882 libname_spec=$lt_libname_spec
16883
16884 # List of archive names. First name is the real one, the rest are links.
16885 # The last name is the one that the linker finds with -lNAME.
16886 library_names_spec=$lt_library_names_spec
16887
16888 # The coded name of the library, if different from the real name.
16889 soname_spec=$lt_soname_spec
16890
16891 # Commands used to build and install an old-style archive.
16892 RANLIB=$lt_RANLIB
16893 old_archive_cmds=$lt_old_archive_cmds_F77
16894 old_postinstall_cmds=$lt_old_postinstall_cmds
16895 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16896
16897 # Create an old-style archive from a shared archive.
16898 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16899
16900 # Create a temporary old-style archive to link instead of a shared archive.
16901 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16902
16903 # Commands used to build and install a shared archive.
16904 archive_cmds=$lt_archive_cmds_F77
16905 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16906 postinstall_cmds=$lt_postinstall_cmds
16907 postuninstall_cmds=$lt_postuninstall_cmds
16908
16909 # Commands used to build a loadable module (assumed same as above if empty)
16910 module_cmds=$lt_module_cmds_F77
16911 module_expsym_cmds=$lt_module_expsym_cmds_F77
16912
16913 # Commands to strip libraries.
16914 old_striplib=$lt_old_striplib
16915 striplib=$lt_striplib
16916
16917 # Dependencies to place before the objects being linked to create a
16918 # shared library.
16919 predep_objects=$lt_predep_objects_F77
16920
16921 # Dependencies to place after the objects being linked to create a
16922 # shared library.
16923 postdep_objects=$lt_postdep_objects_F77
16924
16925 # Dependencies to place before the objects being linked to create a
16926 # shared library.
16927 predeps=$lt_predeps_F77
16928
16929 # Dependencies to place after the objects being linked to create a
16930 # shared library.
16931 postdeps=$lt_postdeps_F77
16932
16933 # The library search path used internally by the compiler when linking
16934 # a shared library.
16935 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16936
16937 # Method to check whether dependent libraries are shared objects.
16938 deplibs_check_method=$lt_deplibs_check_method
16939
16940 # Command to use when deplibs_check_method == file_magic.
16941 file_magic_cmd=$lt_file_magic_cmd
16942
16943 # Flag that allows shared libraries with undefined symbols to be built.
16944 allow_undefined_flag=$lt_allow_undefined_flag_F77
16945
16946 # Flag that forces no undefined symbols.
16947 no_undefined_flag=$lt_no_undefined_flag_F77
16948
16949 # Commands used to finish a libtool library installation in a directory.
16950 finish_cmds=$lt_finish_cmds
16951
16952 # Same as above, but a single script fragment to be evaled but not shown.
16953 finish_eval=$lt_finish_eval
16954
16955 # Take the output of nm and produce a listing of raw symbols and C names.
16956 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16957
16958 # Transform the output of nm in a proper C declaration
16959 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16960
16961 # Transform the output of nm in a C name address pair
16962 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16963
16964 # This is the shared library runtime path variable.
16965 runpath_var=$runpath_var
16966
16967 # This is the shared library path variable.
16968 shlibpath_var=$shlibpath_var
16969
16970 # Is shlibpath searched before the hard-coded library search path?
16971 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16972
16973 # How to hardcode a shared library path into an executable.
16974 hardcode_action=$hardcode_action_F77
16975
16976 # Whether we should hardcode library paths into libraries.
16977 hardcode_into_libs=$hardcode_into_libs
16978
16979 # Flag to hardcode \$libdir into a binary during linking.
16980 # This must work even if \$libdir does not exist.
16981 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16982
16983 # If ld is used when linking, flag to hardcode \$libdir into
16984 # a binary during linking. This must work even if \$libdir does
16985 # not exist.
16986 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16987
16988 # Whether we need a single -rpath flag with a separated argument.
16989 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16990
16991 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16992 # resulting binary.
16993 hardcode_direct=$hardcode_direct_F77
16994
16995 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16996 # resulting binary.
16997 hardcode_minus_L=$hardcode_minus_L_F77
16998
16999 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17000 # the resulting binary.
17001 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17002
17003 # Set to yes if building a shared library automatically hardcodes DIR into the library
17004 # and all subsequent libraries and executables linked against it.
17005 hardcode_automatic=$hardcode_automatic_F77
17006
17007 # Variables whose values should be saved in libtool wrapper scripts and
17008 # restored at relink time.
17009 variables_saved_for_relink="$variables_saved_for_relink"
17010
17011 # Whether libtool must link a program against all its dependency libraries.
17012 link_all_deplibs=$link_all_deplibs_F77
17013
17014 # Compile-time system search path for libraries
17015 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17016
17017 # Run-time system search path for libraries
17018 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17019
17020 # Fix the shell variable \$srcfile for the compiler.
17021 fix_srcfile_path="$fix_srcfile_path_F77"
17022
17023 # Set to yes if exported symbols are required.
17024 always_export_symbols=$always_export_symbols_F77
17025
17026 # The commands to list exported symbols.
17027 export_symbols_cmds=$lt_export_symbols_cmds_F77
17028
17029 # The commands to extract the exported symbol list from a shared archive.
17030 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17031
17032 # Symbols that should not be listed in the preloaded symbols.
17033 exclude_expsyms=$lt_exclude_expsyms_F77
17034
17035 # Symbols that must always be exported.
17036 include_expsyms=$lt_include_expsyms_F77
17037
17038 # ### END LIBTOOL TAG CONFIG: $tagname
17039
17040 __EOF__
17041
17042
17043 else
17044 # If there is no Makefile yet, we rely on a make rule to execute
17045 # `config.status --recheck' to rerun these tests and create the
17046 # libtool script then.
17047 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17048 if test -f "$ltmain_in"; then
17049 test -f Makefile && make "$ltmain"
17050 fi
17051 fi
17052
17053
17054 ac_ext=c
17055 ac_cpp='$CPP $CPPFLAGS'
17056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17059
17060 CC="$lt_save_CC"
17061
17062 else
17063 tagname=""
17064 fi
17065 ;;
17066
17067 GCJ)
17068 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17069
17070
17071
17072 # Source file extension for Java test sources.
17073 ac_ext=java
17074
17075 # Object file extension for compiled Java test sources.
17076 objext=o
17077 objext_GCJ=$objext
17078
17079 # Code to be used in simple compile tests
17080 lt_simple_compile_test_code="class foo {}\n"
17081
17082 # Code to be used in simple link tests
17083 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17084
17085 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17086
17087 # If no C compiler was specified, use CC.
17088 LTCC=${LTCC-"$CC"}
17089
17090 # If no C compiler flags were specified, use CFLAGS.
17091 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17092
17093 # Allow CC to be a program name with arguments.
17094 compiler=$CC
17095
17096
17097 # save warnings/boilerplate of simple test code
17098 ac_outfile=conftest.$ac_objext
17099 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17100 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17101 _lt_compiler_boilerplate=`cat conftest.err`
17102 $rm conftest*
17103
17104 ac_outfile=conftest.$ac_objext
17105 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17106 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17107 _lt_linker_boilerplate=`cat conftest.err`
17108 $rm conftest*
17109
17110
17111 # Allow CC to be a program name with arguments.
17112 lt_save_CC="$CC"
17113 CC=${GCJ-"gcj"}
17114 compiler=$CC
17115 compiler_GCJ=$CC
17116 for cc_temp in $compiler""; do
17117 case $cc_temp in
17118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17120 \-*) ;;
17121 *) break;;
17122 esac
17123 done
17124 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17125
17126
17127 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17128 archive_cmds_need_lc_GCJ=no
17129
17130 old_archive_cmds_GCJ=$old_archive_cmds
17131
17132 ## CAVEAT EMPTOR:
17133 ## There is no encapsulation within the following macros, do not change
17134 ## the running order or otherwise move them around unless you know exactly
17135 ## what you are doing...
17136
17137 lt_prog_compiler_no_builtin_flag_GCJ=
17138
17139 if test "$GCC" = yes; then
17140 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17141
17142
17143 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17144 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17145 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17147 else
17148 lt_cv_prog_compiler_rtti_exceptions=no
17149 ac_outfile=conftest.$ac_objext
17150 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17151 lt_compiler_flag="-fno-rtti -fno-exceptions"
17152 # Insert the option either (1) after the last *FLAGS variable, or
17153 # (2) before a word containing "conftest.", or (3) at the end.
17154 # Note that $ac_compile itself does not contain backslashes and begins
17155 # with a dollar sign (not a hyphen), so the echo should work correctly.
17156 # The option is referenced via a variable to avoid confusing sed.
17157 lt_compile=`echo "$ac_compile" | $SED \
17158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17160 -e 's:$: $lt_compiler_flag:'`
17161 (eval echo "\"\$as_me:17161: $lt_compile\"" >&5)
17162 (eval "$lt_compile" 2>conftest.err)
17163 ac_status=$?
17164 cat conftest.err >&5
17165 echo "$as_me:17165: \$? = $ac_status" >&5
17166 if (exit $ac_status) && test -s "$ac_outfile"; then
17167 # The compiler can only warn and ignore the option if not recognized
17168 # So say no if there are warnings other than the usual output.
17169 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17172 lt_cv_prog_compiler_rtti_exceptions=yes
17173 fi
17174 fi
17175 $rm conftest*
17176
17177 fi
17178 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17179 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17180
17181 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17182 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17183 else
17184 :
17185 fi
17186
17187 fi
17188
17189 lt_prog_compiler_wl_GCJ=
17190 lt_prog_compiler_pic_GCJ=
17191 lt_prog_compiler_static_GCJ=
17192
17193 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17194 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17195
17196 if test "$GCC" = yes; then
17197 lt_prog_compiler_wl_GCJ='-Wl,'
17198 lt_prog_compiler_static_GCJ='-static'
17199
17200 case $host_os in
17201 aix*)
17202 # All AIX code is PIC.
17203 if test "$host_cpu" = ia64; then
17204 # AIX 5 now supports IA64 processor
17205 lt_prog_compiler_static_GCJ='-Bstatic'
17206 fi
17207 ;;
17208
17209 amigaos*)
17210 # FIXME: we need at least 68020 code to build shared libraries, but
17211 # adding the `-m68020' flag to GCC prevents building anything better,
17212 # like `-m68040'.
17213 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17214 ;;
17215
17216 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17217 # PIC is the default for these OSes.
17218 ;;
17219
17220 mingw* | pw32* | os2*)
17221 # This hack is so that the source file can tell whether it is being
17222 # built for inclusion in a dll (and should export symbols for example).
17223 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17224 ;;
17225
17226 darwin* | rhapsody*)
17227 # PIC is the default on this platform
17228 # Common symbols not allowed in MH_DYLIB files
17229 lt_prog_compiler_pic_GCJ='-fno-common'
17230 ;;
17231
17232 interix3*)
17233 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17234 # Instead, we relocate shared libraries at runtime.
17235 ;;
17236
17237 msdosdjgpp*)
17238 # Just because we use GCC doesn't mean we suddenly get shared libraries
17239 # on systems that don't support them.
17240 lt_prog_compiler_can_build_shared_GCJ=no
17241 enable_shared=no
17242 ;;
17243
17244 sysv4*MP*)
17245 if test -d /usr/nec; then
17246 lt_prog_compiler_pic_GCJ=-Kconform_pic
17247 fi
17248 ;;
17249
17250 hpux*)
17251 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17252 # not for PA HP-UX.
17253 case $host_cpu in
17254 hppa*64*|ia64*)
17255 # +Z the default
17256 ;;
17257 *)
17258 lt_prog_compiler_pic_GCJ='-fPIC'
17259 ;;
17260 esac
17261 ;;
17262
17263 *)
17264 lt_prog_compiler_pic_GCJ='-fPIC'
17265 ;;
17266 esac
17267 else
17268 # PORTME Check for flag to pass linker flags through the system compiler.
17269 case $host_os in
17270 aix*)
17271 lt_prog_compiler_wl_GCJ='-Wl,'
17272 if test "$host_cpu" = ia64; then
17273 # AIX 5 now supports IA64 processor
17274 lt_prog_compiler_static_GCJ='-Bstatic'
17275 else
17276 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17277 fi
17278 ;;
17279 darwin*)
17280 # PIC is the default on this platform
17281 # Common symbols not allowed in MH_DYLIB files
17282 case $cc_basename in
17283 xlc*)
17284 lt_prog_compiler_pic_GCJ='-qnocommon'
17285 lt_prog_compiler_wl_GCJ='-Wl,'
17286 ;;
17287 esac
17288 ;;
17289
17290 mingw* | pw32* | os2*)
17291 # This hack is so that the source file can tell whether it is being
17292 # built for inclusion in a dll (and should export symbols for example).
17293 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17294 ;;
17295
17296 hpux9* | hpux10* | hpux11*)
17297 lt_prog_compiler_wl_GCJ='-Wl,'
17298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17299 # not for PA HP-UX.
17300 case $host_cpu in
17301 hppa*64*|ia64*)
17302 # +Z the default
17303 ;;
17304 *)
17305 lt_prog_compiler_pic_GCJ='+Z'
17306 ;;
17307 esac
17308 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17309 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17310 ;;
17311
17312 irix5* | irix6* | nonstopux*)
17313 lt_prog_compiler_wl_GCJ='-Wl,'
17314 # PIC (with -KPIC) is the default.
17315 lt_prog_compiler_static_GCJ='-non_shared'
17316 ;;
17317
17318 newsos6)
17319 lt_prog_compiler_pic_GCJ='-KPIC'
17320 lt_prog_compiler_static_GCJ='-Bstatic'
17321 ;;
17322
17323 linux*)
17324 case $cc_basename in
17325 icc* | ecc*)
17326 lt_prog_compiler_wl_GCJ='-Wl,'
17327 lt_prog_compiler_pic_GCJ='-KPIC'
17328 lt_prog_compiler_static_GCJ='-static'
17329 ;;
17330 pgcc* | pgf77* | pgf90* | pgf95*)
17331 # Portland Group compilers (*not* the Pentium gcc compiler,
17332 # which looks to be a dead project)
17333 lt_prog_compiler_wl_GCJ='-Wl,'
17334 lt_prog_compiler_pic_GCJ='-fpic'
17335 lt_prog_compiler_static_GCJ='-Bstatic'
17336 ;;
17337 ccc*)
17338 lt_prog_compiler_wl_GCJ='-Wl,'
17339 # All Alpha code is PIC.
17340 lt_prog_compiler_static_GCJ='-non_shared'
17341 ;;
17342 esac
17343 ;;
17344
17345 osf3* | osf4* | osf5*)
17346 lt_prog_compiler_wl_GCJ='-Wl,'
17347 # All OSF/1 code is PIC.
17348 lt_prog_compiler_static_GCJ='-non_shared'
17349 ;;
17350
17351 solaris*)
17352 lt_prog_compiler_pic_GCJ='-KPIC'
17353 lt_prog_compiler_static_GCJ='-Bstatic'
17354 case $cc_basename in
17355 f77* | f90* | f95*)
17356 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17357 *)
17358 lt_prog_compiler_wl_GCJ='-Wl,';;
17359 esac
17360 ;;
17361
17362 sunos4*)
17363 lt_prog_compiler_wl_GCJ='-Qoption ld '
17364 lt_prog_compiler_pic_GCJ='-PIC'
17365 lt_prog_compiler_static_GCJ='-Bstatic'
17366 ;;
17367
17368 sysv4 | sysv4.2uw2* | sysv4.3*)
17369 lt_prog_compiler_wl_GCJ='-Wl,'
17370 lt_prog_compiler_pic_GCJ='-KPIC'
17371 lt_prog_compiler_static_GCJ='-Bstatic'
17372 ;;
17373
17374 sysv4*MP*)
17375 if test -d /usr/nec ;then
17376 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17377 lt_prog_compiler_static_GCJ='-Bstatic'
17378 fi
17379 ;;
17380
17381 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17382 lt_prog_compiler_wl_GCJ='-Wl,'
17383 lt_prog_compiler_pic_GCJ='-KPIC'
17384 lt_prog_compiler_static_GCJ='-Bstatic'
17385 ;;
17386
17387 unicos*)
17388 lt_prog_compiler_wl_GCJ='-Wl,'
17389 lt_prog_compiler_can_build_shared_GCJ=no
17390 ;;
17391
17392 uts4*)
17393 lt_prog_compiler_pic_GCJ='-pic'
17394 lt_prog_compiler_static_GCJ='-Bstatic'
17395 ;;
17396
17397 *)
17398 lt_prog_compiler_can_build_shared_GCJ=no
17399 ;;
17400 esac
17401 fi
17402
17403 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17404 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17405
17406 #
17407 # Check to make sure the PIC flag actually works.
17408 #
17409 if test -n "$lt_prog_compiler_pic_GCJ"; then
17410
17411 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17412 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17413 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 else
17416 lt_prog_compiler_pic_works_GCJ=no
17417 ac_outfile=conftest.$ac_objext
17418 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17419 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17420 # Insert the option either (1) after the last *FLAGS variable, or
17421 # (2) before a word containing "conftest.", or (3) at the end.
17422 # Note that $ac_compile itself does not contain backslashes and begins
17423 # with a dollar sign (not a hyphen), so the echo should work correctly.
17424 # The option is referenced via a variable to avoid confusing sed.
17425 lt_compile=`echo "$ac_compile" | $SED \
17426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17428 -e 's:$: $lt_compiler_flag:'`
17429 (eval echo "\"\$as_me:17429: $lt_compile\"" >&5)
17430 (eval "$lt_compile" 2>conftest.err)
17431 ac_status=$?
17432 cat conftest.err >&5
17433 echo "$as_me:17433: \$? = $ac_status" >&5
17434 if (exit $ac_status) && test -s "$ac_outfile"; then
17435 # The compiler can only warn and ignore the option if not recognized
17436 # So say no if there are warnings other than the usual output.
17437 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17440 lt_prog_compiler_pic_works_GCJ=yes
17441 fi
17442 fi
17443 $rm conftest*
17444
17445 fi
17446 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17447 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17448
17449 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17450 case $lt_prog_compiler_pic_GCJ in
17451 "" | " "*) ;;
17452 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17453 esac
17454 else
17455 lt_prog_compiler_pic_GCJ=
17456 lt_prog_compiler_can_build_shared_GCJ=no
17457 fi
17458
17459 fi
17460 case $host_os in
17461 # For platforms which do not support PIC, -DPIC is meaningless:
17462 *djgpp*)
17463 lt_prog_compiler_pic_GCJ=
17464 ;;
17465 *)
17466 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17467 ;;
17468 esac
17469
17470 #
17471 # Check to make sure the static flag actually works.
17472 #
17473 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17474 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17475 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17476 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479 lt_prog_compiler_static_works_GCJ=no
17480 save_LDFLAGS="$LDFLAGS"
17481 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17482 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17483 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17484 # The linker can only warn and ignore the option if not recognized
17485 # So say no if there are warnings
17486 if test -s conftest.err; then
17487 # Append any errors to the config.log.
17488 cat conftest.err 1>&5
17489 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17491 if diff conftest.exp conftest.er2 >/dev/null; then
17492 lt_prog_compiler_static_works_GCJ=yes
17493 fi
17494 else
17495 lt_prog_compiler_static_works_GCJ=yes
17496 fi
17497 fi
17498 $rm conftest*
17499 LDFLAGS="$save_LDFLAGS"
17500
17501 fi
17502 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17503 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17504
17505 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17506 :
17507 else
17508 lt_prog_compiler_static_GCJ=
17509 fi
17510
17511
17512 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17513 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17514 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17515 echo $ECHO_N "(cached) $ECHO_C" >&6
17516 else
17517 lt_cv_prog_compiler_c_o_GCJ=no
17518 $rm -r conftest 2>/dev/null
17519 mkdir conftest
17520 cd conftest
17521 mkdir out
17522 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17523
17524 lt_compiler_flag="-o out/conftest2.$ac_objext"
17525 # Insert the option either (1) after the last *FLAGS variable, or
17526 # (2) before a word containing "conftest.", or (3) at the end.
17527 # Note that $ac_compile itself does not contain backslashes and begins
17528 # with a dollar sign (not a hyphen), so the echo should work correctly.
17529 lt_compile=`echo "$ac_compile" | $SED \
17530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17532 -e 's:$: $lt_compiler_flag:'`
17533 (eval echo "\"\$as_me:17533: $lt_compile\"" >&5)
17534 (eval "$lt_compile" 2>out/conftest.err)
17535 ac_status=$?
17536 cat out/conftest.err >&5
17537 echo "$as_me:17537: \$? = $ac_status" >&5
17538 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17539 then
17540 # The compiler can only warn and ignore the option if not recognized
17541 # So say no if there are warnings
17542 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17543 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17544 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17545 lt_cv_prog_compiler_c_o_GCJ=yes
17546 fi
17547 fi
17548 chmod u+w . 2>&5
17549 $rm conftest*
17550 # SGI C++ compiler will create directory out/ii_files/ for
17551 # template instantiation
17552 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17553 $rm out/* && rmdir out
17554 cd ..
17555 rmdir conftest
17556 $rm conftest*
17557
17558 fi
17559 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17560 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17561
17562
17563 hard_links="nottested"
17564 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17565 # do not overwrite the value of need_locks provided by the user
17566 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17567 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17568 hard_links=yes
17569 $rm conftest*
17570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17571 touch conftest.a
17572 ln conftest.a conftest.b 2>&5 || hard_links=no
17573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17574 echo "$as_me:$LINENO: result: $hard_links" >&5
17575 echo "${ECHO_T}$hard_links" >&6
17576 if test "$hard_links" = no; then
17577 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17578 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17579 need_locks=warn
17580 fi
17581 else
17582 need_locks=no
17583 fi
17584
17585 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17586 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17587
17588 runpath_var=
17589 allow_undefined_flag_GCJ=
17590 enable_shared_with_static_runtimes_GCJ=no
17591 archive_cmds_GCJ=
17592 archive_expsym_cmds_GCJ=
17593 old_archive_From_new_cmds_GCJ=
17594 old_archive_from_expsyms_cmds_GCJ=
17595 export_dynamic_flag_spec_GCJ=
17596 whole_archive_flag_spec_GCJ=
17597 thread_safe_flag_spec_GCJ=
17598 hardcode_libdir_flag_spec_GCJ=
17599 hardcode_libdir_flag_spec_ld_GCJ=
17600 hardcode_libdir_separator_GCJ=
17601 hardcode_direct_GCJ=no
17602 hardcode_minus_L_GCJ=no
17603 hardcode_shlibpath_var_GCJ=unsupported
17604 link_all_deplibs_GCJ=unknown
17605 hardcode_automatic_GCJ=no
17606 module_cmds_GCJ=
17607 module_expsym_cmds_GCJ=
17608 always_export_symbols_GCJ=no
17609 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17610 # include_expsyms should be a list of space-separated symbols to be *always*
17611 # included in the symbol list
17612 include_expsyms_GCJ=
17613 # exclude_expsyms can be an extended regexp of symbols to exclude
17614 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17615 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17616 # as well as any symbol that contains `d'.
17617 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17618 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17619 # platforms (ab)use it in PIC code, but their linkers get confused if
17620 # the symbol is explicitly referenced. Since portable code cannot
17621 # rely on this symbol name, it's probably fine to never include it in
17622 # preloaded symbol tables.
17623 extract_expsyms_cmds=
17624 # Just being paranoid about ensuring that cc_basename is set.
17625 for cc_temp in $compiler""; do
17626 case $cc_temp in
17627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17629 \-*) ;;
17630 *) break;;
17631 esac
17632 done
17633 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17634
17635 case $host_os in
17636 cygwin* | mingw* | pw32*)
17637 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17638 # When not using gcc, we currently assume that we are using
17639 # Microsoft Visual C++.
17640 if test "$GCC" != yes; then
17641 with_gnu_ld=no
17642 fi
17643 ;;
17644 interix*)
17645 # we just hope/assume this is gcc and not c89 (= MSVC++)
17646 with_gnu_ld=yes
17647 ;;
17648 openbsd*)
17649 with_gnu_ld=no
17650 ;;
17651 esac
17652
17653 ld_shlibs_GCJ=yes
17654 if test "$with_gnu_ld" = yes; then
17655 # If archive_cmds runs LD, not CC, wlarc should be empty
17656 wlarc='${wl}'
17657
17658 # Set some defaults for GNU ld with shared library support. These
17659 # are reset later if shared libraries are not supported. Putting them
17660 # here allows them to be overridden if necessary.
17661 runpath_var=LD_RUN_PATH
17662 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17663 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17664 # ancient GNU ld didn't support --whole-archive et. al.
17665 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17666 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17667 else
17668 whole_archive_flag_spec_GCJ=
17669 fi
17670 supports_anon_versioning=no
17671 case `$LD -v 2>/dev/null` in
17672 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17673 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17674 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17675 *\ 2.11.*) ;; # other 2.11 versions
17676 *) supports_anon_versioning=yes ;;
17677 esac
17678
17679 # See if GNU ld supports shared libraries.
17680 case $host_os in
17681 aix3* | aix4* | aix5*)
17682 # On AIX/PPC, the GNU linker is very broken
17683 if test "$host_cpu" != ia64; then
17684 ld_shlibs_GCJ=no
17685 cat <<EOF 1>&2
17686
17687 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17688 *** to be unable to reliably create shared libraries on AIX.
17689 *** Therefore, libtool is disabling shared libraries support. If you
17690 *** really care for shared libraries, you may want to modify your PATH
17691 *** so that a non-GNU linker is found, and then restart.
17692
17693 EOF
17694 fi
17695 ;;
17696
17697 amigaos*)
17698 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)'
17699 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17700 hardcode_minus_L_GCJ=yes
17701
17702 # Samuel A. Falvo II <[email protected]> reports
17703 # that the semantics of dynamic libraries on AmigaOS, at least up
17704 # to version 4, is to share data among multiple programs linked
17705 # with the same dynamic library. Since this doesn't match the
17706 # behavior of shared libraries on other platforms, we can't use
17707 # them.
17708 ld_shlibs_GCJ=no
17709 ;;
17710
17711 beos*)
17712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17713 allow_undefined_flag_GCJ=unsupported
17714 # Joseph Beckenbach <[email protected]> says some releases of gcc
17715 # support --undefined. This deserves some investigation. FIXME
17716 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17717 else
17718 ld_shlibs_GCJ=no
17719 fi
17720 ;;
17721
17722 cygwin* | mingw* | pw32*)
17723 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17724 # as there is no search path for DLLs.
17725 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17726 allow_undefined_flag_GCJ=unsupported
17727 always_export_symbols_GCJ=no
17728 enable_shared_with_static_runtimes_GCJ=yes
17729 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17730
17731 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17732 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17733 # If the export-symbols file already is a .def file (1st line
17734 # is EXPORTS), use it as is; otherwise, prepend...
17735 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17736 cp $export_symbols $output_objdir/$soname.def;
17737 else
17738 echo EXPORTS > $output_objdir/$soname.def;
17739 cat $export_symbols >> $output_objdir/$soname.def;
17740 fi~
17741 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17742 else
17743 ld_shlibs_GCJ=no
17744 fi
17745 ;;
17746
17747 interix3*)
17748 hardcode_direct_GCJ=no
17749 hardcode_shlibpath_var_GCJ=no
17750 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17751 export_dynamic_flag_spec_GCJ='${wl}-E'
17752 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17753 # Instead, shared libraries are loaded at an image base (0x10000000 by
17754 # default) and relocated if they conflict, which is a slow very memory
17755 # consuming and fragmenting process. To avoid this, we pick a random,
17756 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17757 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17758 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'
17759 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'
17760 ;;
17761
17762 linux*)
17763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17764 tmp_addflag=
17765 case $cc_basename,$host_cpu in
17766 pgcc*) # Portland Group C compiler
17767 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'
17768 tmp_addflag=' $pic_flag'
17769 ;;
17770 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17771 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'
17772 tmp_addflag=' $pic_flag -Mnomain' ;;
17773 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17774 tmp_addflag=' -i_dynamic' ;;
17775 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17776 tmp_addflag=' -i_dynamic -nofor_main' ;;
17777 ifc* | ifort*) # Intel Fortran compiler
17778 tmp_addflag=' -nofor_main' ;;
17779 esac
17780 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17781
17782 if test $supports_anon_versioning = yes; then
17783 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17785 $echo "local: *; };" >> $output_objdir/$libname.ver~
17786 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17787 fi
17788 else
17789 ld_shlibs_GCJ=no
17790 fi
17791 ;;
17792
17793 netbsd*)
17794 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17795 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17796 wlarc=
17797 else
17798 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17799 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17800 fi
17801 ;;
17802
17803 solaris*)
17804 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17805 ld_shlibs_GCJ=no
17806 cat <<EOF 1>&2
17807
17808 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17809 *** create shared libraries on Solaris systems. Therefore, libtool
17810 *** is disabling shared libraries support. We urge you to upgrade GNU
17811 *** binutils to release 2.9.1 or newer. Another option is to modify
17812 *** your PATH or compiler configuration so that the native linker is
17813 *** used, and then restart.
17814
17815 EOF
17816 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17817 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17818 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17819 else
17820 ld_shlibs_GCJ=no
17821 fi
17822 ;;
17823
17824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17825 case `$LD -v 2>&1` in
17826 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17827 ld_shlibs_GCJ=no
17828 cat <<_LT_EOF 1>&2
17829
17830 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17831 *** reliably create shared libraries on SCO systems. Therefore, libtool
17832 *** is disabling shared libraries support. We urge you to upgrade GNU
17833 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17834 *** your PATH or compiler configuration so that the native linker is
17835 *** used, and then restart.
17836
17837 _LT_EOF
17838 ;;
17839 *)
17840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17841 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17842 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17843 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17844 else
17845 ld_shlibs_GCJ=no
17846 fi
17847 ;;
17848 esac
17849 ;;
17850
17851 sunos4*)
17852 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17853 wlarc=
17854 hardcode_direct_GCJ=yes
17855 hardcode_shlibpath_var_GCJ=no
17856 ;;
17857
17858 *)
17859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17860 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17861 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17862 else
17863 ld_shlibs_GCJ=no
17864 fi
17865 ;;
17866 esac
17867
17868 if test "$ld_shlibs_GCJ" = no; then
17869 runpath_var=
17870 hardcode_libdir_flag_spec_GCJ=
17871 export_dynamic_flag_spec_GCJ=
17872 whole_archive_flag_spec_GCJ=
17873 fi
17874 else
17875 # PORTME fill in a description of your system's linker (not GNU ld)
17876 case $host_os in
17877 aix3*)
17878 allow_undefined_flag_GCJ=unsupported
17879 always_export_symbols_GCJ=yes
17880 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'
17881 # Note: this linker hardcodes the directories in LIBPATH if there
17882 # are no directories specified by -L.
17883 hardcode_minus_L_GCJ=yes
17884 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17885 # Neither direct hardcoding nor static linking is supported with a
17886 # broken collect2.
17887 hardcode_direct_GCJ=unsupported
17888 fi
17889 ;;
17890
17891 aix4* | aix5*)
17892 if test "$host_cpu" = ia64; then
17893 # On IA64, the linker does run time linking by default, so we don't
17894 # have to do anything special.
17895 aix_use_runtimelinking=no
17896 exp_sym_flag='-Bexport'
17897 no_entry_flag=""
17898 else
17899 # If we're using GNU nm, then we don't want the "-C" option.
17900 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17901 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17902 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'
17903 else
17904 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'
17905 fi
17906 aix_use_runtimelinking=no
17907
17908 # Test if we are trying to use run time linking or normal
17909 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17910 # need to do runtime linking.
17911 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17912 for ld_flag in $LDFLAGS; do
17913 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17914 aix_use_runtimelinking=yes
17915 break
17916 fi
17917 done
17918 ;;
17919 esac
17920
17921 exp_sym_flag='-bexport'
17922 no_entry_flag='-bnoentry'
17923 fi
17924
17925 # When large executables or shared objects are built, AIX ld can
17926 # have problems creating the table of contents. If linking a library
17927 # or program results in "error TOC overflow" add -mminimal-toc to
17928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17930
17931 archive_cmds_GCJ=''
17932 hardcode_direct_GCJ=yes
17933 hardcode_libdir_separator_GCJ=':'
17934 link_all_deplibs_GCJ=yes
17935
17936 if test "$GCC" = yes; then
17937 case $host_os in aix4.[012]|aix4.[012].*)
17938 # We only want to do this on AIX 4.2 and lower, the check
17939 # below for broken collect2 doesn't work under 4.3+
17940 collect2name=`${CC} -print-prog-name=collect2`
17941 if test -f "$collect2name" && \
17942 strings "$collect2name" | grep resolve_lib_name >/dev/null
17943 then
17944 # We have reworked collect2
17945 hardcode_direct_GCJ=yes
17946 else
17947 # We have old collect2
17948 hardcode_direct_GCJ=unsupported
17949 # It fails to find uninstalled libraries when the uninstalled
17950 # path is not listed in the libpath. Setting hardcode_minus_L
17951 # to unsupported forces relinking
17952 hardcode_minus_L_GCJ=yes
17953 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17954 hardcode_libdir_separator_GCJ=
17955 fi
17956 ;;
17957 esac
17958 shared_flag='-shared'
17959 if test "$aix_use_runtimelinking" = yes; then
17960 shared_flag="$shared_flag "'${wl}-G'
17961 fi
17962 else
17963 # not using gcc
17964 if test "$host_cpu" = ia64; then
17965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17966 # chokes on -Wl,-G. The following line is correct:
17967 shared_flag='-G'
17968 else
17969 if test "$aix_use_runtimelinking" = yes; then
17970 shared_flag='${wl}-G'
17971 else
17972 shared_flag='${wl}-bM:SRE'
17973 fi
17974 fi
17975 fi
17976
17977 # It seems that -bexpall does not export symbols beginning with
17978 # underscore (_), so it is better to generate a list of symbols to export.
17979 always_export_symbols_GCJ=yes
17980 if test "$aix_use_runtimelinking" = yes; then
17981 # Warning - without using the other runtime loading flags (-brtl),
17982 # -berok will link without error, but may produce a broken library.
17983 allow_undefined_flag_GCJ='-berok'
17984 # Determine the default libpath from the value encoded in an empty executable.
17985 cat >conftest.$ac_ext <<_ACEOF
17986 /* confdefs.h. */
17987 _ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17991
17992 int
17993 main ()
17994 {
17995
17996 ;
17997 return 0;
17998 }
17999 _ACEOF
18000 rm -f conftest.$ac_objext conftest$ac_exeext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18002 (eval $ac_link) 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try='test -z "$ac_c_werror_flag"
18010 || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try='test -s conftest$ac_exeext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022
18023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18024 }'`
18025 # Check for a 64-bit object if we didn't find anything.
18026 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; }
18027 }'`; fi
18028 else
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18031
18032 fi
18033 rm -f conftest.err conftest.$ac_objext \
18034 conftest$ac_exeext conftest.$ac_ext
18035 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18036
18037 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18038 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"
18039 else
18040 if test "$host_cpu" = ia64; then
18041 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18042 allow_undefined_flag_GCJ="-z nodefs"
18043 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"
18044 else
18045 # Determine the default libpath from the value encoded in an empty executable.
18046 cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h. */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052
18053 int
18054 main ()
18055 {
18056
18057 ;
18058 return 0;
18059 }
18060 _ACEOF
18061 rm -f conftest.$ac_objext conftest$ac_exeext
18062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18063 (eval $ac_link) 2>conftest.er1
18064 ac_status=$?
18065 grep -v '^ *+' conftest.er1 >conftest.err
18066 rm -f conftest.er1
18067 cat conftest.err >&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
18070 { ac_try='test -z "$ac_c_werror_flag"
18071 || test ! -s conftest.err'
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; } &&
18077 { ac_try='test -s conftest$ac_exeext'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; }; then
18083
18084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18085 }'`
18086 # Check for a 64-bit object if we didn't find anything.
18087 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; }
18088 }'`; fi
18089 else
18090 echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.$ac_ext >&5
18092
18093 fi
18094 rm -f conftest.err conftest.$ac_objext \
18095 conftest$ac_exeext conftest.$ac_ext
18096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18097
18098 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18099 # Warning - without using the other run time loading flags,
18100 # -berok will link without error, but may produce a broken library.
18101 no_undefined_flag_GCJ=' ${wl}-bernotok'
18102 allow_undefined_flag_GCJ=' ${wl}-berok'
18103 # Exported symbols can be pulled into shared objects from archives
18104 whole_archive_flag_spec_GCJ='$convenience'
18105 archive_cmds_need_lc_GCJ=yes
18106 # This is similar to how AIX traditionally builds its shared libraries.
18107 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'
18108 fi
18109 fi
18110 ;;
18111
18112 amigaos*)
18113 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)'
18114 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18115 hardcode_minus_L_GCJ=yes
18116 # see comment about different semantics on the GNU ld section
18117 ld_shlibs_GCJ=no
18118 ;;
18119
18120 bsdi[45]*)
18121 export_dynamic_flag_spec_GCJ=-rdynamic
18122 ;;
18123
18124 cygwin* | mingw* | pw32*)
18125 # When not using gcc, we currently assume that we are using
18126 # Microsoft Visual C++.
18127 # hardcode_libdir_flag_spec is actually meaningless, as there is
18128 # no search path for DLLs.
18129 hardcode_libdir_flag_spec_GCJ=' '
18130 allow_undefined_flag_GCJ=unsupported
18131 # Tell ltmain to make .lib files, not .a files.
18132 libext=lib
18133 # Tell ltmain to make .dll files, not .so files.
18134 shrext_cmds=".dll"
18135 # FIXME: Setting linknames here is a bad hack.
18136 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18137 # The linker will automatically build a .lib file if we build a DLL.
18138 old_archive_From_new_cmds_GCJ='true'
18139 # FIXME: Should let the user specify the lib program.
18140 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18141 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18142 enable_shared_with_static_runtimes_GCJ=yes
18143 ;;
18144
18145 darwin* | rhapsody*)
18146 case $host_os in
18147 rhapsody* | darwin1.[012])
18148 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18149 ;;
18150 *) # Darwin 1.3 on
18151 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18152 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18153 else
18154 case ${MACOSX_DEPLOYMENT_TARGET} in
18155 10.[012])
18156 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18157 ;;
18158 10.*)
18159 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18160 ;;
18161 esac
18162 fi
18163 ;;
18164 esac
18165 archive_cmds_need_lc_GCJ=no
18166 hardcode_direct_GCJ=no
18167 hardcode_automatic_GCJ=yes
18168 hardcode_shlibpath_var_GCJ=unsupported
18169 whole_archive_flag_spec_GCJ=''
18170 link_all_deplibs_GCJ=yes
18171 if test "$GCC" = yes ; then
18172 output_verbose_link_cmd='echo'
18173 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18174 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18175 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18176 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}'
18177 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}'
18178 else
18179 case $cc_basename in
18180 xlc*)
18181 output_verbose_link_cmd='echo'
18182 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18183 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18185 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}'
18186 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}'
18187 ;;
18188 *)
18189 ld_shlibs_GCJ=no
18190 ;;
18191 esac
18192 fi
18193 ;;
18194
18195 dgux*)
18196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18197 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18198 hardcode_shlibpath_var_GCJ=no
18199 ;;
18200
18201 freebsd1*)
18202 ld_shlibs_GCJ=no
18203 ;;
18204
18205 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18206 # support. Future versions do this automatically, but an explicit c++rt0.o
18207 # does not break anything, and helps significantly (at the cost of a little
18208 # extra space).
18209 freebsd2.2*)
18210 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18211 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18212 hardcode_direct_GCJ=yes
18213 hardcode_shlibpath_var_GCJ=no
18214 ;;
18215
18216 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18217 freebsd2*)
18218 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18219 hardcode_direct_GCJ=yes
18220 hardcode_minus_L_GCJ=yes
18221 hardcode_shlibpath_var_GCJ=no
18222 ;;
18223
18224 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18225 freebsd* | kfreebsd*-gnu | dragonfly*)
18226 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18227 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18228 hardcode_direct_GCJ=yes
18229 hardcode_shlibpath_var_GCJ=no
18230 ;;
18231
18232 hpux9*)
18233 if test "$GCC" = yes; then
18234 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'
18235 else
18236 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'
18237 fi
18238 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18239 hardcode_libdir_separator_GCJ=:
18240 hardcode_direct_GCJ=yes
18241
18242 # hardcode_minus_L: Not really in the search PATH,
18243 # but as the default location of the library.
18244 hardcode_minus_L_GCJ=yes
18245 export_dynamic_flag_spec_GCJ='${wl}-E'
18246 ;;
18247
18248 hpux10*)
18249 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18250 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18251 else
18252 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18253 fi
18254 if test "$with_gnu_ld" = no; then
18255 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18256 hardcode_libdir_separator_GCJ=:
18257
18258 hardcode_direct_GCJ=yes
18259 export_dynamic_flag_spec_GCJ='${wl}-E'
18260
18261 # hardcode_minus_L: Not really in the search PATH,
18262 # but as the default location of the library.
18263 hardcode_minus_L_GCJ=yes
18264 fi
18265 ;;
18266
18267 hpux11*)
18268 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18269 case $host_cpu in
18270 hppa*64*)
18271 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18272 ;;
18273 ia64*)
18274 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18275 ;;
18276 *)
18277 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18278 ;;
18279 esac
18280 else
18281 case $host_cpu in
18282 hppa*64*)
18283 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18284 ;;
18285 ia64*)
18286 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18287 ;;
18288 *)
18289 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18290 ;;
18291 esac
18292 fi
18293 if test "$with_gnu_ld" = no; then
18294 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18295 hardcode_libdir_separator_GCJ=:
18296
18297 case $host_cpu in
18298 hppa*64*|ia64*)
18299 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18300 hardcode_direct_GCJ=no
18301 hardcode_shlibpath_var_GCJ=no
18302 ;;
18303 *)
18304 hardcode_direct_GCJ=yes
18305 export_dynamic_flag_spec_GCJ='${wl}-E'
18306
18307 # hardcode_minus_L: Not really in the search PATH,
18308 # but as the default location of the library.
18309 hardcode_minus_L_GCJ=yes
18310 ;;
18311 esac
18312 fi
18313 ;;
18314
18315 irix5* | irix6* | nonstopux*)
18316 if test "$GCC" = yes; then
18317 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'
18318 else
18319 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'
18320 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18321 fi
18322 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18323 hardcode_libdir_separator_GCJ=:
18324 link_all_deplibs_GCJ=yes
18325 ;;
18326
18327 netbsd*)
18328 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18329 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18330 else
18331 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18332 fi
18333 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18334 hardcode_direct_GCJ=yes
18335 hardcode_shlibpath_var_GCJ=no
18336 ;;
18337
18338 newsos6)
18339 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18340 hardcode_direct_GCJ=yes
18341 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18342 hardcode_libdir_separator_GCJ=:
18343 hardcode_shlibpath_var_GCJ=no
18344 ;;
18345
18346 openbsd*)
18347 hardcode_direct_GCJ=yes
18348 hardcode_shlibpath_var_GCJ=no
18349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18350 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18351 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18352 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18353 export_dynamic_flag_spec_GCJ='${wl}-E'
18354 else
18355 case $host_os in
18356 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18357 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18358 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18359 ;;
18360 *)
18361 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18362 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18363 ;;
18364 esac
18365 fi
18366 ;;
18367
18368 os2*)
18369 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18370 hardcode_minus_L_GCJ=yes
18371 allow_undefined_flag_GCJ=unsupported
18372 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'
18373 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18374 ;;
18375
18376 osf3*)
18377 if test "$GCC" = yes; then
18378 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18379 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'
18380 else
18381 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18382 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'
18383 fi
18384 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18385 hardcode_libdir_separator_GCJ=:
18386 ;;
18387
18388 osf4* | osf5*) # as osf3* with the addition of -msym flag
18389 if test "$GCC" = yes; then
18390 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18391 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'
18392 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18393 else
18394 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18395 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'
18396 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~
18397 $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'
18398
18399 # Both c and cxx compiler support -rpath directly
18400 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18401 fi
18402 hardcode_libdir_separator_GCJ=:
18403 ;;
18404
18405 solaris*)
18406 no_undefined_flag_GCJ=' -z text'
18407 if test "$GCC" = yes; then
18408 wlarc='${wl}'
18409 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18410 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18411 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18412 else
18413 wlarc=''
18414 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18415 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18416 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18417 fi
18418 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18419 hardcode_shlibpath_var_GCJ=no
18420 case $host_os in
18421 solaris2.[0-5] | solaris2.[0-5].*) ;;
18422 *)
18423 # The compiler driver will combine linker options so we
18424 # cannot just pass the convience library names through
18425 # without $wl, iff we do not link with $LD.
18426 # Luckily, gcc supports the same syntax we need for Sun Studio.
18427 # Supported since Solaris 2.6 (maybe 2.5.1?)
18428 case $wlarc in
18429 '')
18430 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18431 *)
18432 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' ;;
18433 esac ;;
18434 esac
18435 link_all_deplibs_GCJ=yes
18436 ;;
18437
18438 sunos4*)
18439 if test "x$host_vendor" = xsequent; then
18440 # Use $CC to link under sequent, because it throws in some extra .o
18441 # files that make .init and .fini sections work.
18442 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18443 else
18444 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18445 fi
18446 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18447 hardcode_direct_GCJ=yes
18448 hardcode_minus_L_GCJ=yes
18449 hardcode_shlibpath_var_GCJ=no
18450 ;;
18451
18452 sysv4)
18453 case $host_vendor in
18454 sni)
18455 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18456 hardcode_direct_GCJ=yes # is this really true???
18457 ;;
18458 siemens)
18459 ## LD is ld it makes a PLAMLIB
18460 ## CC just makes a GrossModule.
18461 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18462 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18463 hardcode_direct_GCJ=no
18464 ;;
18465 motorola)
18466 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18467 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18468 ;;
18469 esac
18470 runpath_var='LD_RUN_PATH'
18471 hardcode_shlibpath_var_GCJ=no
18472 ;;
18473
18474 sysv4.3*)
18475 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18476 hardcode_shlibpath_var_GCJ=no
18477 export_dynamic_flag_spec_GCJ='-Bexport'
18478 ;;
18479
18480 sysv4*MP*)
18481 if test -d /usr/nec; then
18482 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18483 hardcode_shlibpath_var_GCJ=no
18484 runpath_var=LD_RUN_PATH
18485 hardcode_runpath_var=yes
18486 ld_shlibs_GCJ=yes
18487 fi
18488 ;;
18489
18490 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18491 no_undefined_flag_GCJ='${wl}-z,text'
18492 archive_cmds_need_lc_GCJ=no
18493 hardcode_shlibpath_var_GCJ=no
18494 runpath_var='LD_RUN_PATH'
18495
18496 if test "$GCC" = yes; then
18497 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18498 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18499 else
18500 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18501 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18502 fi
18503 ;;
18504
18505 sysv5* | sco3.2v5* | sco5v6*)
18506 # Note: We can NOT use -z defs as we might desire, because we do not
18507 # link with -lc, and that would cause any symbols used from libc to
18508 # always be unresolved, which means just about no library would
18509 # ever link correctly. If we're not using GNU ld we use -z text
18510 # though, which does catch some bad symbols but isn't as heavy-handed
18511 # as -z defs.
18512 no_undefined_flag_GCJ='${wl}-z,text'
18513 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18514 archive_cmds_need_lc_GCJ=no
18515 hardcode_shlibpath_var_GCJ=no
18516 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18517 hardcode_libdir_separator_GCJ=':'
18518 link_all_deplibs_GCJ=yes
18519 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18520 runpath_var='LD_RUN_PATH'
18521
18522 if test "$GCC" = yes; then
18523 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18524 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18525 else
18526 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18527 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18528 fi
18529 ;;
18530
18531 uts4*)
18532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18533 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18534 hardcode_shlibpath_var_GCJ=no
18535 ;;
18536
18537 *)
18538 ld_shlibs_GCJ=no
18539 ;;
18540 esac
18541 fi
18542
18543 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18544 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18545 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18546
18547 #
18548 # Do we need to explicitly link libc?
18549 #
18550 case "x$archive_cmds_need_lc_GCJ" in
18551 x|xyes)
18552 # Assume -lc should be added
18553 archive_cmds_need_lc_GCJ=yes
18554
18555 if test "$enable_shared" = yes && test "$GCC" = yes; then
18556 case $archive_cmds_GCJ in
18557 *'~'*)
18558 # FIXME: we may have to deal with multi-command sequences.
18559 ;;
18560 '$CC '*)
18561 # Test whether the compiler implicitly links with -lc since on some
18562 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18563 # to ld, don't add -lc before -lgcc.
18564 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18565 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18566 $rm conftest*
18567 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18568
18569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18570 (eval $ac_compile) 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } 2>conftest.err; then
18574 soname=conftest
18575 lib=conftest
18576 libobjs=conftest.$ac_objext
18577 deplibs=
18578 wl=$lt_prog_compiler_wl_GCJ
18579 pic_flag=$lt_prog_compiler_pic_GCJ
18580 compiler_flags=-v
18581 linker_flags=-v
18582 verstring=
18583 output_objdir=.
18584 libname=conftest
18585 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18586 allow_undefined_flag_GCJ=
18587 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18588 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }
18592 then
18593 archive_cmds_need_lc_GCJ=no
18594 else
18595 archive_cmds_need_lc_GCJ=yes
18596 fi
18597 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18598 else
18599 cat conftest.err 1>&5
18600 fi
18601 $rm conftest*
18602 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18603 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18604 ;;
18605 esac
18606 fi
18607 ;;
18608 esac
18609
18610 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18611 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18612 library_names_spec=
18613 libname_spec='lib$name'
18614 soname_spec=
18615 shrext_cmds=".so"
18616 postinstall_cmds=
18617 postuninstall_cmds=
18618 finish_cmds=
18619 finish_eval=
18620 shlibpath_var=
18621 shlibpath_overrides_runpath=unknown
18622 version_type=none
18623 dynamic_linker="$host_os ld.so"
18624 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18625 if test "$GCC" = yes; then
18626 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18627 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18628 # if the path contains ";" then we assume it to be the separator
18629 # otherwise default to the standard path separator (i.e. ":") - it is
18630 # assumed that no part of a normal pathname contains ";" but that should
18631 # okay in the real world where ";" in dirpaths is itself problematic.
18632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18633 else
18634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18635 fi
18636 else
18637 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18638 fi
18639 need_lib_prefix=unknown
18640 hardcode_into_libs=no
18641
18642 # when you set need_version to no, make sure it does not cause -set_version
18643 # flags to be left without arguments
18644 need_version=unknown
18645
18646 case $host_os in
18647 aix3*)
18648 version_type=linux
18649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18650 shlibpath_var=LIBPATH
18651
18652 # AIX 3 has no versioning support, so we append a major version to the name.
18653 soname_spec='${libname}${release}${shared_ext}$major'
18654 ;;
18655
18656 aix4* | aix5*)
18657 version_type=linux
18658 need_lib_prefix=no
18659 need_version=no
18660 hardcode_into_libs=yes
18661 if test "$host_cpu" = ia64; then
18662 # AIX 5 supports IA64
18663 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18664 shlibpath_var=LD_LIBRARY_PATH
18665 else
18666 # With GCC up to 2.95.x, collect2 would create an import file
18667 # for dependence libraries. The import file would start with
18668 # the line `#! .'. This would cause the generated library to
18669 # depend on `.', always an invalid library. This was fixed in
18670 # development snapshots of GCC prior to 3.0.
18671 case $host_os in
18672 aix4 | aix4.[01] | aix4.[01].*)
18673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18674 echo ' yes '
18675 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18676 :
18677 else
18678 can_build_shared=no
18679 fi
18680 ;;
18681 esac
18682 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18683 # soname into executable. Probably we can add versioning support to
18684 # collect2, so additional links can be useful in future.
18685 if test "$aix_use_runtimelinking" = yes; then
18686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18687 # instead of lib<name>.a to let people know that these are not
18688 # typical AIX shared libraries.
18689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18690 else
18691 # We preserve .a as extension for shared libraries through AIX4.2
18692 # and later when we are not doing run time linking.
18693 library_names_spec='${libname}${release}.a $libname.a'
18694 soname_spec='${libname}${release}${shared_ext}$major'
18695 fi
18696 shlibpath_var=LIBPATH
18697 fi
18698 ;;
18699
18700 amigaos*)
18701 library_names_spec='$libname.ixlibrary $libname.a'
18702 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18703 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'
18704 ;;
18705
18706 beos*)
18707 library_names_spec='${libname}${shared_ext}'
18708 dynamic_linker="$host_os ld.so"
18709 shlibpath_var=LIBRARY_PATH
18710 ;;
18711
18712 bsdi[45]*)
18713 version_type=linux
18714 need_version=no
18715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18716 soname_spec='${libname}${release}${shared_ext}$major'
18717 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18718 shlibpath_var=LD_LIBRARY_PATH
18719 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18720 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18721 # the default ld.so.conf also contains /usr/contrib/lib and
18722 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18723 # libtool to hard-code these into programs
18724 ;;
18725
18726 cygwin* | mingw* | pw32*)
18727 version_type=windows
18728 shrext_cmds=".dll"
18729 need_version=no
18730 need_lib_prefix=no
18731
18732 case $GCC,$host_os in
18733 yes,cygwin* | yes,mingw* | yes,pw32*)
18734 library_names_spec='$libname.dll.a'
18735 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18736 postinstall_cmds='base_file=`basename \${file}`~
18737 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18738 dldir=$destdir/`dirname \$dlpath`~
18739 test -d \$dldir || mkdir -p \$dldir~
18740 $install_prog $dir/$dlname \$dldir/$dlname~
18741 chmod a+x \$dldir/$dlname'
18742 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18743 dlpath=$dir/\$dldll~
18744 $rm \$dlpath'
18745 shlibpath_overrides_runpath=yes
18746
18747 case $host_os in
18748 cygwin*)
18749 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18750 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18751 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18752 ;;
18753 mingw*)
18754 # MinGW DLLs use traditional 'lib' prefix
18755 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18756 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18757 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18758 # It is most probably a Windows format PATH printed by
18759 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18760 # path with ; separators, and with drive letters. We can handle the
18761 # drive letters (cygwin fileutils understands them), so leave them,
18762 # especially as we might pass files found there to a mingw objdump,
18763 # which wouldn't understand a cygwinified path. Ahh.
18764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18765 else
18766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18767 fi
18768 ;;
18769 pw32*)
18770 # pw32 DLLs use 'pw' prefix rather than 'lib'
18771 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18772 ;;
18773 esac
18774 ;;
18775
18776 *)
18777 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18778 ;;
18779 esac
18780 dynamic_linker='Win32 ld.exe'
18781 # FIXME: first we should search . and the directory the executable is in
18782 shlibpath_var=PATH
18783 ;;
18784
18785 darwin* | rhapsody*)
18786 dynamic_linker="$host_os dyld"
18787 version_type=darwin
18788 need_lib_prefix=no
18789 need_version=no
18790 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18791 soname_spec='${libname}${release}${major}$shared_ext'
18792 shlibpath_overrides_runpath=yes
18793 shlibpath_var=DYLD_LIBRARY_PATH
18794 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18795 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18796 if test "$GCC" = yes; then
18797 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"`
18798 else
18799 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18800 fi
18801 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18802 ;;
18803
18804 dgux*)
18805 version_type=linux
18806 need_lib_prefix=no
18807 need_version=no
18808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18809 soname_spec='${libname}${release}${shared_ext}$major'
18810 shlibpath_var=LD_LIBRARY_PATH
18811 ;;
18812
18813 freebsd1*)
18814 dynamic_linker=no
18815 ;;
18816
18817 kfreebsd*-gnu)
18818 version_type=linux
18819 need_lib_prefix=no
18820 need_version=no
18821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18822 soname_spec='${libname}${release}${shared_ext}$major'
18823 shlibpath_var=LD_LIBRARY_PATH
18824 shlibpath_overrides_runpath=no
18825 hardcode_into_libs=yes
18826 dynamic_linker='GNU ld.so'
18827 ;;
18828
18829 freebsd* | dragonfly*)
18830 # DragonFly does not have aout. When/if they implement a new
18831 # versioning mechanism, adjust this.
18832 if test -x /usr/bin/objformat; then
18833 objformat=`/usr/bin/objformat`
18834 else
18835 case $host_os in
18836 freebsd[123]*) objformat=aout ;;
18837 *) objformat=elf ;;
18838 esac
18839 fi
18840 version_type=freebsd-$objformat
18841 case $version_type in
18842 freebsd-elf*)
18843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18844 need_version=no
18845 need_lib_prefix=no
18846 ;;
18847 freebsd-*)
18848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18849 need_version=yes
18850 ;;
18851 esac
18852 shlibpath_var=LD_LIBRARY_PATH
18853 case $host_os in
18854 freebsd2*)
18855 shlibpath_overrides_runpath=yes
18856 ;;
18857 freebsd3.[01]* | freebsdelf3.[01]*)
18858 shlibpath_overrides_runpath=yes
18859 hardcode_into_libs=yes
18860 ;;
18861 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18862 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18863 shlibpath_overrides_runpath=no
18864 hardcode_into_libs=yes
18865 ;;
18866 freebsd*) # from 4.6 on
18867 shlibpath_overrides_runpath=yes
18868 hardcode_into_libs=yes
18869 ;;
18870 esac
18871 ;;
18872
18873 gnu*)
18874 version_type=linux
18875 need_lib_prefix=no
18876 need_version=no
18877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18878 soname_spec='${libname}${release}${shared_ext}$major'
18879 shlibpath_var=LD_LIBRARY_PATH
18880 hardcode_into_libs=yes
18881 ;;
18882
18883 hpux9* | hpux10* | hpux11*)
18884 # Give a soname corresponding to the major version so that dld.sl refuses to
18885 # link against other versions.
18886 version_type=sunos
18887 need_lib_prefix=no
18888 need_version=no
18889 case $host_cpu in
18890 ia64*)
18891 shrext_cmds='.so'
18892 hardcode_into_libs=yes
18893 dynamic_linker="$host_os dld.so"
18894 shlibpath_var=LD_LIBRARY_PATH
18895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18897 soname_spec='${libname}${release}${shared_ext}$major'
18898 if test "X$HPUX_IA64_MODE" = X32; then
18899 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18900 else
18901 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18902 fi
18903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18904 ;;
18905 hppa*64*)
18906 shrext_cmds='.sl'
18907 hardcode_into_libs=yes
18908 dynamic_linker="$host_os dld.sl"
18909 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18912 soname_spec='${libname}${release}${shared_ext}$major'
18913 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18915 ;;
18916 *)
18917 shrext_cmds='.sl'
18918 dynamic_linker="$host_os dld.sl"
18919 shlibpath_var=SHLIB_PATH
18920 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18922 soname_spec='${libname}${release}${shared_ext}$major'
18923 ;;
18924 esac
18925 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18926 postinstall_cmds='chmod 555 $lib'
18927 ;;
18928
18929 interix3*)
18930 version_type=linux
18931 need_lib_prefix=no
18932 need_version=no
18933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18934 soname_spec='${libname}${release}${shared_ext}$major'
18935 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18936 shlibpath_var=LD_LIBRARY_PATH
18937 shlibpath_overrides_runpath=no
18938 hardcode_into_libs=yes
18939 ;;
18940
18941 irix5* | irix6* | nonstopux*)
18942 case $host_os in
18943 nonstopux*) version_type=nonstopux ;;
18944 *)
18945 if test "$lt_cv_prog_gnu_ld" = yes; then
18946 version_type=linux
18947 else
18948 version_type=irix
18949 fi ;;
18950 esac
18951 need_lib_prefix=no
18952 need_version=no
18953 soname_spec='${libname}${release}${shared_ext}$major'
18954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18955 case $host_os in
18956 irix5* | nonstopux*)
18957 libsuff= shlibsuff=
18958 ;;
18959 *)
18960 case $LD in # libtool.m4 will add one of these switches to LD
18961 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18962 libsuff= shlibsuff= libmagic=32-bit;;
18963 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18964 libsuff=32 shlibsuff=N32 libmagic=N32;;
18965 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18966 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18967 *) libsuff= shlibsuff= libmagic=never-match;;
18968 esac
18969 ;;
18970 esac
18971 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18972 shlibpath_overrides_runpath=no
18973 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18974 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18975 hardcode_into_libs=yes
18976 ;;
18977
18978 # No shared lib support for Linux oldld, aout, or coff.
18979 linux*oldld* | linux*aout* | linux*coff*)
18980 dynamic_linker=no
18981 ;;
18982
18983 # This must be Linux ELF.
18984 linux*)
18985 version_type=linux
18986 need_lib_prefix=no
18987 need_version=no
18988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18989 soname_spec='${libname}${release}${shared_ext}$major'
18990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18991 shlibpath_var=LD_LIBRARY_PATH
18992 shlibpath_overrides_runpath=no
18993 # This implies no fast_install, which is unacceptable.
18994 # Some rework will be needed to allow for fast_install
18995 # before this can be enabled.
18996 hardcode_into_libs=yes
18997
18998 # Append ld.so.conf contents to the search path
18999 if test -f /etc/ld.so.conf; then
19000 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' ' '`
19001 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19002 fi
19003
19004 # We used to test for /lib/ld.so.1 and disable shared libraries on
19005 # powerpc, because MkLinux only supported shared libraries with the
19006 # GNU dynamic linker. Since this was broken with cross compilers,
19007 # most powerpc-linux boxes support dynamic linking these days and
19008 # people can always --disable-shared, the test was removed, and we
19009 # assume the GNU/Linux dynamic linker is in use.
19010 dynamic_linker='GNU/Linux ld.so'
19011 ;;
19012
19013 knetbsd*-gnu)
19014 version_type=linux
19015 need_lib_prefix=no
19016 need_version=no
19017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19018 soname_spec='${libname}${release}${shared_ext}$major'
19019 shlibpath_var=LD_LIBRARY_PATH
19020 shlibpath_overrides_runpath=no
19021 hardcode_into_libs=yes
19022 dynamic_linker='GNU ld.so'
19023 ;;
19024
19025 netbsd*)
19026 version_type=sunos
19027 need_lib_prefix=no
19028 need_version=no
19029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19032 dynamic_linker='NetBSD (a.out) ld.so'
19033 else
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 dynamic_linker='NetBSD ld.elf_so'
19037 fi
19038 shlibpath_var=LD_LIBRARY_PATH
19039 shlibpath_overrides_runpath=yes
19040 hardcode_into_libs=yes
19041 ;;
19042
19043 newsos6)
19044 version_type=linux
19045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19046 shlibpath_var=LD_LIBRARY_PATH
19047 shlibpath_overrides_runpath=yes
19048 ;;
19049
19050 nto-qnx*)
19051 version_type=linux
19052 need_lib_prefix=no
19053 need_version=no
19054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19055 soname_spec='${libname}${release}${shared_ext}$major'
19056 shlibpath_var=LD_LIBRARY_PATH
19057 shlibpath_overrides_runpath=yes
19058 ;;
19059
19060 openbsd*)
19061 version_type=sunos
19062 sys_lib_dlsearch_path_spec="/usr/lib"
19063 need_lib_prefix=no
19064 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19065 case $host_os in
19066 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19067 *) need_version=no ;;
19068 esac
19069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19071 shlibpath_var=LD_LIBRARY_PATH
19072 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19073 case $host_os in
19074 openbsd2.[89] | openbsd2.[89].*)
19075 shlibpath_overrides_runpath=no
19076 ;;
19077 *)
19078 shlibpath_overrides_runpath=yes
19079 ;;
19080 esac
19081 else
19082 shlibpath_overrides_runpath=yes
19083 fi
19084 ;;
19085
19086 os2*)
19087 libname_spec='$name'
19088 shrext_cmds=".dll"
19089 need_lib_prefix=no
19090 library_names_spec='$libname${shared_ext} $libname.a'
19091 dynamic_linker='OS/2 ld.exe'
19092 shlibpath_var=LIBPATH
19093 ;;
19094
19095 osf3* | osf4* | osf5*)
19096 version_type=osf
19097 need_lib_prefix=no
19098 need_version=no
19099 soname_spec='${libname}${release}${shared_ext}$major'
19100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101 shlibpath_var=LD_LIBRARY_PATH
19102 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19103 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19104 ;;
19105
19106 solaris*)
19107 version_type=linux
19108 need_lib_prefix=no
19109 need_version=no
19110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111 soname_spec='${libname}${release}${shared_ext}$major'
19112 shlibpath_var=LD_LIBRARY_PATH
19113 shlibpath_overrides_runpath=yes
19114 hardcode_into_libs=yes
19115 # ldd complains unless libraries are executable
19116 postinstall_cmds='chmod +x $lib'
19117 ;;
19118
19119 sunos4*)
19120 version_type=sunos
19121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19123 shlibpath_var=LD_LIBRARY_PATH
19124 shlibpath_overrides_runpath=yes
19125 if test "$with_gnu_ld" = yes; then
19126 need_lib_prefix=no
19127 fi
19128 need_version=yes
19129 ;;
19130
19131 sysv4 | sysv4.3*)
19132 version_type=linux
19133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19134 soname_spec='${libname}${release}${shared_ext}$major'
19135 shlibpath_var=LD_LIBRARY_PATH
19136 case $host_vendor in
19137 sni)
19138 shlibpath_overrides_runpath=no
19139 need_lib_prefix=no
19140 export_dynamic_flag_spec='${wl}-Blargedynsym'
19141 runpath_var=LD_RUN_PATH
19142 ;;
19143 siemens)
19144 need_lib_prefix=no
19145 ;;
19146 motorola)
19147 need_lib_prefix=no
19148 need_version=no
19149 shlibpath_overrides_runpath=no
19150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19151 ;;
19152 esac
19153 ;;
19154
19155 sysv4*MP*)
19156 if test -d /usr/nec ;then
19157 version_type=linux
19158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19159 soname_spec='$libname${shared_ext}.$major'
19160 shlibpath_var=LD_LIBRARY_PATH
19161 fi
19162 ;;
19163
19164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19165 version_type=freebsd-elf
19166 need_lib_prefix=no
19167 need_version=no
19168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19169 soname_spec='${libname}${release}${shared_ext}$major'
19170 shlibpath_var=LD_LIBRARY_PATH
19171 hardcode_into_libs=yes
19172 if test "$with_gnu_ld" = yes; then
19173 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19174 shlibpath_overrides_runpath=no
19175 else
19176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19177 shlibpath_overrides_runpath=yes
19178 case $host_os in
19179 sco3.2v5*)
19180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19181 ;;
19182 esac
19183 fi
19184 sys_lib_dlsearch_path_spec='/usr/lib'
19185 ;;
19186
19187 uts4*)
19188 version_type=linux
19189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19190 soname_spec='${libname}${release}${shared_ext}$major'
19191 shlibpath_var=LD_LIBRARY_PATH
19192 ;;
19193
19194 *)
19195 dynamic_linker=no
19196 ;;
19197 esac
19198 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19199 echo "${ECHO_T}$dynamic_linker" >&6
19200 test "$dynamic_linker" = no && can_build_shared=no
19201
19202 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19203 if test "$GCC" = yes; then
19204 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19205 fi
19206
19207 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19208 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19209 hardcode_action_GCJ=
19210 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19211 test -n "$runpath_var_GCJ" || \
19212 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19213
19214 # We can hardcode non-existant directories.
19215 if test "$hardcode_direct_GCJ" != no &&
19216 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19217 # have to relink, otherwise we might link with an installed library
19218 # when we should be linking with a yet-to-be-installed one
19219 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19220 test "$hardcode_minus_L_GCJ" != no; then
19221 # Linking always hardcodes the temporary library directory.
19222 hardcode_action_GCJ=relink
19223 else
19224 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19225 hardcode_action_GCJ=immediate
19226 fi
19227 else
19228 # We cannot hardcode anything, or else we can only hardcode existing
19229 # directories.
19230 hardcode_action_GCJ=unsupported
19231 fi
19232 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19233 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19234
19235 if test "$hardcode_action_GCJ" = relink; then
19236 # Fast installation is not supported
19237 enable_fast_install=no
19238 elif test "$shlibpath_overrides_runpath" = yes ||
19239 test "$enable_shared" = no; then
19240 # Fast installation is not necessary
19241 enable_fast_install=needless
19242 fi
19243
19244
19245 # The else clause should only fire when bootstrapping the
19246 # libtool distribution, otherwise you forgot to ship ltmain.sh
19247 # with your package, and you will get complaints that there are
19248 # no rules to generate ltmain.sh.
19249 if test -f "$ltmain"; then
19250 # See if we are running on zsh, and set the options which allow our commands through
19251 # without removal of \ escapes.
19252 if test -n "${ZSH_VERSION+set}" ; then
19253 setopt NO_GLOB_SUBST
19254 fi
19255 # Now quote all the things that may contain metacharacters while being
19256 # careful not to overquote the AC_SUBSTed values. We take copies of the
19257 # variables and quote the copies for generation of the libtool script.
19258 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19259 SED SHELL STRIP \
19260 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19261 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19262 deplibs_check_method reload_flag reload_cmds need_locks \
19263 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19264 lt_cv_sys_global_symbol_to_c_name_address \
19265 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19266 old_postinstall_cmds old_postuninstall_cmds \
19267 compiler_GCJ \
19268 CC_GCJ \
19269 LD_GCJ \
19270 lt_prog_compiler_wl_GCJ \
19271 lt_prog_compiler_pic_GCJ \
19272 lt_prog_compiler_static_GCJ \
19273 lt_prog_compiler_no_builtin_flag_GCJ \
19274 export_dynamic_flag_spec_GCJ \
19275 thread_safe_flag_spec_GCJ \
19276 whole_archive_flag_spec_GCJ \
19277 enable_shared_with_static_runtimes_GCJ \
19278 old_archive_cmds_GCJ \
19279 old_archive_from_new_cmds_GCJ \
19280 predep_objects_GCJ \
19281 postdep_objects_GCJ \
19282 predeps_GCJ \
19283 postdeps_GCJ \
19284 compiler_lib_search_path_GCJ \
19285 archive_cmds_GCJ \
19286 archive_expsym_cmds_GCJ \
19287 postinstall_cmds_GCJ \
19288 postuninstall_cmds_GCJ \
19289 old_archive_from_expsyms_cmds_GCJ \
19290 allow_undefined_flag_GCJ \
19291 no_undefined_flag_GCJ \
19292 export_symbols_cmds_GCJ \
19293 hardcode_libdir_flag_spec_GCJ \
19294 hardcode_libdir_flag_spec_ld_GCJ \
19295 hardcode_libdir_separator_GCJ \
19296 hardcode_automatic_GCJ \
19297 module_cmds_GCJ \
19298 module_expsym_cmds_GCJ \
19299 lt_cv_prog_compiler_c_o_GCJ \
19300 exclude_expsyms_GCJ \
19301 include_expsyms_GCJ; do
19302
19303 case $var in
19304 old_archive_cmds_GCJ | \
19305 old_archive_from_new_cmds_GCJ | \
19306 archive_cmds_GCJ | \
19307 archive_expsym_cmds_GCJ | \
19308 module_cmds_GCJ | \
19309 module_expsym_cmds_GCJ | \
19310 old_archive_from_expsyms_cmds_GCJ | \
19311 export_symbols_cmds_GCJ | \
19312 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19313 postinstall_cmds | postuninstall_cmds | \
19314 old_postinstall_cmds | old_postuninstall_cmds | \
19315 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19316 # Double-quote double-evaled strings.
19317 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19318 ;;
19319 *)
19320 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19321 ;;
19322 esac
19323 done
19324
19325 case $lt_echo in
19326 *'\$0 --fallback-echo"')
19327 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19328 ;;
19329 esac
19330
19331 cfgfile="$ofile"
19332
19333 cat <<__EOF__ >> "$cfgfile"
19334 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19335
19336 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19337
19338 # Shell to use when invoking shell scripts.
19339 SHELL=$lt_SHELL
19340
19341 # Whether or not to build shared libraries.
19342 build_libtool_libs=$enable_shared
19343
19344 # Whether or not to build static libraries.
19345 build_old_libs=$enable_static
19346
19347 # Whether or not to add -lc for building shared libraries.
19348 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19349
19350 # Whether or not to disallow shared libs when runtime libs are static
19351 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19352
19353 # Whether or not to optimize for fast installation.
19354 fast_install=$enable_fast_install
19355
19356 # The host system.
19357 host_alias=$host_alias
19358 host=$host
19359 host_os=$host_os
19360
19361 # The build system.
19362 build_alias=$build_alias
19363 build=$build
19364 build_os=$build_os
19365
19366 # An echo program that does not interpret backslashes.
19367 echo=$lt_echo
19368
19369 # The archiver.
19370 AR=$lt_AR
19371 AR_FLAGS=$lt_AR_FLAGS
19372
19373 # A C compiler.
19374 LTCC=$lt_LTCC
19375
19376 # LTCC compiler flags.
19377 LTCFLAGS=$lt_LTCFLAGS
19378
19379 # A language-specific compiler.
19380 CC=$lt_compiler_GCJ
19381
19382 # Is the compiler the GNU C compiler?
19383 with_gcc=$GCC_GCJ
19384
19385 # An ERE matcher.
19386 EGREP=$lt_EGREP
19387
19388 # The linker used to build libraries.
19389 LD=$lt_LD_GCJ
19390
19391 # Whether we need hard or soft links.
19392 LN_S=$lt_LN_S
19393
19394 # A BSD-compatible nm program.
19395 NM=$lt_NM
19396
19397 # A symbol stripping program
19398 STRIP=$lt_STRIP
19399
19400 # Used to examine libraries when file_magic_cmd begins "file"
19401 MAGIC_CMD=$MAGIC_CMD
19402
19403 # Used on cygwin: DLL creation program.
19404 DLLTOOL="$DLLTOOL"
19405
19406 # Used on cygwin: object dumper.
19407 OBJDUMP="$OBJDUMP"
19408
19409 # Used on cygwin: assembler.
19410 AS="$AS"
19411
19412 # The name of the directory that contains temporary libtool files.
19413 objdir=$objdir
19414
19415 # How to create reloadable object files.
19416 reload_flag=$lt_reload_flag
19417 reload_cmds=$lt_reload_cmds
19418
19419 # How to pass a linker flag through the compiler.
19420 wl=$lt_lt_prog_compiler_wl_GCJ
19421
19422 # Object file suffix (normally "o").
19423 objext="$ac_objext"
19424
19425 # Old archive suffix (normally "a").
19426 libext="$libext"
19427
19428 # Shared library suffix (normally ".so").
19429 shrext_cmds='$shrext_cmds'
19430
19431 # Executable file suffix (normally "").
19432 exeext="$exeext"
19433
19434 # Additional compiler flags for building library objects.
19435 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19436 pic_mode=$pic_mode
19437
19438 # What is the maximum length of a command?
19439 max_cmd_len=$lt_cv_sys_max_cmd_len
19440
19441 # Does compiler simultaneously support -c and -o options?
19442 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19443
19444 # Must we lock files when doing compilation?
19445 need_locks=$lt_need_locks
19446
19447 # Do we need the lib prefix for modules?
19448 need_lib_prefix=$need_lib_prefix
19449
19450 # Do we need a version for libraries?
19451 need_version=$need_version
19452
19453 # Whether dlopen is supported.
19454 dlopen_support=$enable_dlopen
19455
19456 # Whether dlopen of programs is supported.
19457 dlopen_self=$enable_dlopen_self
19458
19459 # Whether dlopen of statically linked programs is supported.
19460 dlopen_self_static=$enable_dlopen_self_static
19461
19462 # Compiler flag to prevent dynamic linking.
19463 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19464
19465 # Compiler flag to turn off builtin functions.
19466 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19467
19468 # Compiler flag to allow reflexive dlopens.
19469 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19470
19471 # Compiler flag to generate shared objects directly from archives.
19472 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19473
19474 # Compiler flag to generate thread-safe objects.
19475 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19476
19477 # Library versioning type.
19478 version_type=$version_type
19479
19480 # Format of library name prefix.
19481 libname_spec=$lt_libname_spec
19482
19483 # List of archive names. First name is the real one, the rest are links.
19484 # The last name is the one that the linker finds with -lNAME.
19485 library_names_spec=$lt_library_names_spec
19486
19487 # The coded name of the library, if different from the real name.
19488 soname_spec=$lt_soname_spec
19489
19490 # Commands used to build and install an old-style archive.
19491 RANLIB=$lt_RANLIB
19492 old_archive_cmds=$lt_old_archive_cmds_GCJ
19493 old_postinstall_cmds=$lt_old_postinstall_cmds
19494 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19495
19496 # Create an old-style archive from a shared archive.
19497 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19498
19499 # Create a temporary old-style archive to link instead of a shared archive.
19500 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19501
19502 # Commands used to build and install a shared archive.
19503 archive_cmds=$lt_archive_cmds_GCJ
19504 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19505 postinstall_cmds=$lt_postinstall_cmds
19506 postuninstall_cmds=$lt_postuninstall_cmds
19507
19508 # Commands used to build a loadable module (assumed same as above if empty)
19509 module_cmds=$lt_module_cmds_GCJ
19510 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19511
19512 # Commands to strip libraries.
19513 old_striplib=$lt_old_striplib
19514 striplib=$lt_striplib
19515
19516 # Dependencies to place before the objects being linked to create a
19517 # shared library.
19518 predep_objects=$lt_predep_objects_GCJ
19519
19520 # Dependencies to place after the objects being linked to create a
19521 # shared library.
19522 postdep_objects=$lt_postdep_objects_GCJ
19523
19524 # Dependencies to place before the objects being linked to create a
19525 # shared library.
19526 predeps=$lt_predeps_GCJ
19527
19528 # Dependencies to place after the objects being linked to create a
19529 # shared library.
19530 postdeps=$lt_postdeps_GCJ
19531
19532 # The library search path used internally by the compiler when linking
19533 # a shared library.
19534 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19535
19536 # Method to check whether dependent libraries are shared objects.
19537 deplibs_check_method=$lt_deplibs_check_method
19538
19539 # Command to use when deplibs_check_method == file_magic.
19540 file_magic_cmd=$lt_file_magic_cmd
19541
19542 # Flag that allows shared libraries with undefined symbols to be built.
19543 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19544
19545 # Flag that forces no undefined symbols.
19546 no_undefined_flag=$lt_no_undefined_flag_GCJ
19547
19548 # Commands used to finish a libtool library installation in a directory.
19549 finish_cmds=$lt_finish_cmds
19550
19551 # Same as above, but a single script fragment to be evaled but not shown.
19552 finish_eval=$lt_finish_eval
19553
19554 # Take the output of nm and produce a listing of raw symbols and C names.
19555 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19556
19557 # Transform the output of nm in a proper C declaration
19558 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19559
19560 # Transform the output of nm in a C name address pair
19561 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19562
19563 # This is the shared library runtime path variable.
19564 runpath_var=$runpath_var
19565
19566 # This is the shared library path variable.
19567 shlibpath_var=$shlibpath_var
19568
19569 # Is shlibpath searched before the hard-coded library search path?
19570 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19571
19572 # How to hardcode a shared library path into an executable.
19573 hardcode_action=$hardcode_action_GCJ
19574
19575 # Whether we should hardcode library paths into libraries.
19576 hardcode_into_libs=$hardcode_into_libs
19577
19578 # Flag to hardcode \$libdir into a binary during linking.
19579 # This must work even if \$libdir does not exist.
19580 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19581
19582 # If ld is used when linking, flag to hardcode \$libdir into
19583 # a binary during linking. This must work even if \$libdir does
19584 # not exist.
19585 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19586
19587 # Whether we need a single -rpath flag with a separated argument.
19588 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19589
19590 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19591 # resulting binary.
19592 hardcode_direct=$hardcode_direct_GCJ
19593
19594 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19595 # resulting binary.
19596 hardcode_minus_L=$hardcode_minus_L_GCJ
19597
19598 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19599 # the resulting binary.
19600 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19601
19602 # Set to yes if building a shared library automatically hardcodes DIR into the library
19603 # and all subsequent libraries and executables linked against it.
19604 hardcode_automatic=$hardcode_automatic_GCJ
19605
19606 # Variables whose values should be saved in libtool wrapper scripts and
19607 # restored at relink time.
19608 variables_saved_for_relink="$variables_saved_for_relink"
19609
19610 # Whether libtool must link a program against all its dependency libraries.
19611 link_all_deplibs=$link_all_deplibs_GCJ
19612
19613 # Compile-time system search path for libraries
19614 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19615
19616 # Run-time system search path for libraries
19617 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19618
19619 # Fix the shell variable \$srcfile for the compiler.
19620 fix_srcfile_path="$fix_srcfile_path_GCJ"
19621
19622 # Set to yes if exported symbols are required.
19623 always_export_symbols=$always_export_symbols_GCJ
19624
19625 # The commands to list exported symbols.
19626 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19627
19628 # The commands to extract the exported symbol list from a shared archive.
19629 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19630
19631 # Symbols that should not be listed in the preloaded symbols.
19632 exclude_expsyms=$lt_exclude_expsyms_GCJ
19633
19634 # Symbols that must always be exported.
19635 include_expsyms=$lt_include_expsyms_GCJ
19636
19637 # ### END LIBTOOL TAG CONFIG: $tagname
19638
19639 __EOF__
19640
19641
19642 else
19643 # If there is no Makefile yet, we rely on a make rule to execute
19644 # `config.status --recheck' to rerun these tests and create the
19645 # libtool script then.
19646 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19647 if test -f "$ltmain_in"; then
19648 test -f Makefile && make "$ltmain"
19649 fi
19650 fi
19651
19652
19653 ac_ext=c
19654 ac_cpp='$CPP $CPPFLAGS'
19655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19658
19659 CC="$lt_save_CC"
19660
19661 else
19662 tagname=""
19663 fi
19664 ;;
19665
19666 RC)
19667
19668
19669
19670 # Source file extension for RC test sources.
19671 ac_ext=rc
19672
19673 # Object file extension for compiled RC test sources.
19674 objext=o
19675 objext_RC=$objext
19676
19677 # Code to be used in simple compile tests
19678 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19679
19680 # Code to be used in simple link tests
19681 lt_simple_link_test_code="$lt_simple_compile_test_code"
19682
19683 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19684
19685 # If no C compiler was specified, use CC.
19686 LTCC=${LTCC-"$CC"}
19687
19688 # If no C compiler flags were specified, use CFLAGS.
19689 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19690
19691 # Allow CC to be a program name with arguments.
19692 compiler=$CC
19693
19694
19695 # save warnings/boilerplate of simple test code
19696 ac_outfile=conftest.$ac_objext
19697 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19698 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19699 _lt_compiler_boilerplate=`cat conftest.err`
19700 $rm conftest*
19701
19702 ac_outfile=conftest.$ac_objext
19703 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19704 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19705 _lt_linker_boilerplate=`cat conftest.err`
19706 $rm conftest*
19707
19708
19709 # Allow CC to be a program name with arguments.
19710 lt_save_CC="$CC"
19711 CC=${RC-"windres"}
19712 compiler=$CC
19713 compiler_RC=$CC
19714 for cc_temp in $compiler""; do
19715 case $cc_temp in
19716 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19717 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19718 \-*) ;;
19719 *) break;;
19720 esac
19721 done
19722 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19723
19724 lt_cv_prog_compiler_c_o_RC=yes
19725
19726 # The else clause should only fire when bootstrapping the
19727 # libtool distribution, otherwise you forgot to ship ltmain.sh
19728 # with your package, and you will get complaints that there are
19729 # no rules to generate ltmain.sh.
19730 if test -f "$ltmain"; then
19731 # See if we are running on zsh, and set the options which allow our commands through
19732 # without removal of \ escapes.
19733 if test -n "${ZSH_VERSION+set}" ; then
19734 setopt NO_GLOB_SUBST
19735 fi
19736 # Now quote all the things that may contain metacharacters while being
19737 # careful not to overquote the AC_SUBSTed values. We take copies of the
19738 # variables and quote the copies for generation of the libtool script.
19739 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19740 SED SHELL STRIP \
19741 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19742 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19743 deplibs_check_method reload_flag reload_cmds need_locks \
19744 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19745 lt_cv_sys_global_symbol_to_c_name_address \
19746 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19747 old_postinstall_cmds old_postuninstall_cmds \
19748 compiler_RC \
19749 CC_RC \
19750 LD_RC \
19751 lt_prog_compiler_wl_RC \
19752 lt_prog_compiler_pic_RC \
19753 lt_prog_compiler_static_RC \
19754 lt_prog_compiler_no_builtin_flag_RC \
19755 export_dynamic_flag_spec_RC \
19756 thread_safe_flag_spec_RC \
19757 whole_archive_flag_spec_RC \
19758 enable_shared_with_static_runtimes_RC \
19759 old_archive_cmds_RC \
19760 old_archive_from_new_cmds_RC \
19761 predep_objects_RC \
19762 postdep_objects_RC \
19763 predeps_RC \
19764 postdeps_RC \
19765 compiler_lib_search_path_RC \
19766 archive_cmds_RC \
19767 archive_expsym_cmds_RC \
19768 postinstall_cmds_RC \
19769 postuninstall_cmds_RC \
19770 old_archive_from_expsyms_cmds_RC \
19771 allow_undefined_flag_RC \
19772 no_undefined_flag_RC \
19773 export_symbols_cmds_RC \
19774 hardcode_libdir_flag_spec_RC \
19775 hardcode_libdir_flag_spec_ld_RC \
19776 hardcode_libdir_separator_RC \
19777 hardcode_automatic_RC \
19778 module_cmds_RC \
19779 module_expsym_cmds_RC \
19780 lt_cv_prog_compiler_c_o_RC \
19781 exclude_expsyms_RC \
19782 include_expsyms_RC; do
19783
19784 case $var in
19785 old_archive_cmds_RC | \
19786 old_archive_from_new_cmds_RC | \
19787 archive_cmds_RC | \
19788 archive_expsym_cmds_RC | \
19789 module_cmds_RC | \
19790 module_expsym_cmds_RC | \
19791 old_archive_from_expsyms_cmds_RC | \
19792 export_symbols_cmds_RC | \
19793 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19794 postinstall_cmds | postuninstall_cmds | \
19795 old_postinstall_cmds | old_postuninstall_cmds | \
19796 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19797 # Double-quote double-evaled strings.
19798 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19799 ;;
19800 *)
19801 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19802 ;;
19803 esac
19804 done
19805
19806 case $lt_echo in
19807 *'\$0 --fallback-echo"')
19808 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19809 ;;
19810 esac
19811
19812 cfgfile="$ofile"
19813
19814 cat <<__EOF__ >> "$cfgfile"
19815 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19816
19817 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19818
19819 # Shell to use when invoking shell scripts.
19820 SHELL=$lt_SHELL
19821
19822 # Whether or not to build shared libraries.
19823 build_libtool_libs=$enable_shared
19824
19825 # Whether or not to build static libraries.
19826 build_old_libs=$enable_static
19827
19828 # Whether or not to add -lc for building shared libraries.
19829 build_libtool_need_lc=$archive_cmds_need_lc_RC
19830
19831 # Whether or not to disallow shared libs when runtime libs are static
19832 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19833
19834 # Whether or not to optimize for fast installation.
19835 fast_install=$enable_fast_install
19836
19837 # The host system.
19838 host_alias=$host_alias
19839 host=$host
19840 host_os=$host_os
19841
19842 # The build system.
19843 build_alias=$build_alias
19844 build=$build
19845 build_os=$build_os
19846
19847 # An echo program that does not interpret backslashes.
19848 echo=$lt_echo
19849
19850 # The archiver.
19851 AR=$lt_AR
19852 AR_FLAGS=$lt_AR_FLAGS
19853
19854 # A C compiler.
19855 LTCC=$lt_LTCC
19856
19857 # LTCC compiler flags.
19858 LTCFLAGS=$lt_LTCFLAGS
19859
19860 # A language-specific compiler.
19861 CC=$lt_compiler_RC
19862
19863 # Is the compiler the GNU C compiler?
19864 with_gcc=$GCC_RC
19865
19866 # An ERE matcher.
19867 EGREP=$lt_EGREP
19868
19869 # The linker used to build libraries.
19870 LD=$lt_LD_RC
19871
19872 # Whether we need hard or soft links.
19873 LN_S=$lt_LN_S
19874
19875 # A BSD-compatible nm program.
19876 NM=$lt_NM
19877
19878 # A symbol stripping program
19879 STRIP=$lt_STRIP
19880
19881 # Used to examine libraries when file_magic_cmd begins "file"
19882 MAGIC_CMD=$MAGIC_CMD
19883
19884 # Used on cygwin: DLL creation program.
19885 DLLTOOL="$DLLTOOL"
19886
19887 # Used on cygwin: object dumper.
19888 OBJDUMP="$OBJDUMP"
19889
19890 # Used on cygwin: assembler.
19891 AS="$AS"
19892
19893 # The name of the directory that contains temporary libtool files.
19894 objdir=$objdir
19895
19896 # How to create reloadable object files.
19897 reload_flag=$lt_reload_flag
19898 reload_cmds=$lt_reload_cmds
19899
19900 # How to pass a linker flag through the compiler.
19901 wl=$lt_lt_prog_compiler_wl_RC
19902
19903 # Object file suffix (normally "o").
19904 objext="$ac_objext"
19905
19906 # Old archive suffix (normally "a").
19907 libext="$libext"
19908
19909 # Shared library suffix (normally ".so").
19910 shrext_cmds='$shrext_cmds'
19911
19912 # Executable file suffix (normally "").
19913 exeext="$exeext"
19914
19915 # Additional compiler flags for building library objects.
19916 pic_flag=$lt_lt_prog_compiler_pic_RC
19917 pic_mode=$pic_mode
19918
19919 # What is the maximum length of a command?
19920 max_cmd_len=$lt_cv_sys_max_cmd_len
19921
19922 # Does compiler simultaneously support -c and -o options?
19923 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19924
19925 # Must we lock files when doing compilation?
19926 need_locks=$lt_need_locks
19927
19928 # Do we need the lib prefix for modules?
19929 need_lib_prefix=$need_lib_prefix
19930
19931 # Do we need a version for libraries?
19932 need_version=$need_version
19933
19934 # Whether dlopen is supported.
19935 dlopen_support=$enable_dlopen
19936
19937 # Whether dlopen of programs is supported.
19938 dlopen_self=$enable_dlopen_self
19939
19940 # Whether dlopen of statically linked programs is supported.
19941 dlopen_self_static=$enable_dlopen_self_static
19942
19943 # Compiler flag to prevent dynamic linking.
19944 link_static_flag=$lt_lt_prog_compiler_static_RC
19945
19946 # Compiler flag to turn off builtin functions.
19947 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19948
19949 # Compiler flag to allow reflexive dlopens.
19950 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19951
19952 # Compiler flag to generate shared objects directly from archives.
19953 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19954
19955 # Compiler flag to generate thread-safe objects.
19956 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19957
19958 # Library versioning type.
19959 version_type=$version_type
19960
19961 # Format of library name prefix.
19962 libname_spec=$lt_libname_spec
19963
19964 # List of archive names. First name is the real one, the rest are links.
19965 # The last name is the one that the linker finds with -lNAME.
19966 library_names_spec=$lt_library_names_spec
19967
19968 # The coded name of the library, if different from the real name.
19969 soname_spec=$lt_soname_spec
19970
19971 # Commands used to build and install an old-style archive.
19972 RANLIB=$lt_RANLIB
19973 old_archive_cmds=$lt_old_archive_cmds_RC
19974 old_postinstall_cmds=$lt_old_postinstall_cmds
19975 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19976
19977 # Create an old-style archive from a shared archive.
19978 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19979
19980 # Create a temporary old-style archive to link instead of a shared archive.
19981 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19982
19983 # Commands used to build and install a shared archive.
19984 archive_cmds=$lt_archive_cmds_RC
19985 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19986 postinstall_cmds=$lt_postinstall_cmds
19987 postuninstall_cmds=$lt_postuninstall_cmds
19988
19989 # Commands used to build a loadable module (assumed same as above if empty)
19990 module_cmds=$lt_module_cmds_RC
19991 module_expsym_cmds=$lt_module_expsym_cmds_RC
19992
19993 # Commands to strip libraries.
19994 old_striplib=$lt_old_striplib
19995 striplib=$lt_striplib
19996
19997 # Dependencies to place before the objects being linked to create a
19998 # shared library.
19999 predep_objects=$lt_predep_objects_RC
20000
20001 # Dependencies to place after the objects being linked to create a
20002 # shared library.
20003 postdep_objects=$lt_postdep_objects_RC
20004
20005 # Dependencies to place before the objects being linked to create a
20006 # shared library.
20007 predeps=$lt_predeps_RC
20008
20009 # Dependencies to place after the objects being linked to create a
20010 # shared library.
20011 postdeps=$lt_postdeps_RC
20012
20013 # The library search path used internally by the compiler when linking
20014 # a shared library.
20015 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20016
20017 # Method to check whether dependent libraries are shared objects.
20018 deplibs_check_method=$lt_deplibs_check_method
20019
20020 # Command to use when deplibs_check_method == file_magic.
20021 file_magic_cmd=$lt_file_magic_cmd
20022
20023 # Flag that allows shared libraries with undefined symbols to be built.
20024 allow_undefined_flag=$lt_allow_undefined_flag_RC
20025
20026 # Flag that forces no undefined symbols.
20027 no_undefined_flag=$lt_no_undefined_flag_RC
20028
20029 # Commands used to finish a libtool library installation in a directory.
20030 finish_cmds=$lt_finish_cmds
20031
20032 # Same as above, but a single script fragment to be evaled but not shown.
20033 finish_eval=$lt_finish_eval
20034
20035 # Take the output of nm and produce a listing of raw symbols and C names.
20036 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20037
20038 # Transform the output of nm in a proper C declaration
20039 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20040
20041 # Transform the output of nm in a C name address pair
20042 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20043
20044 # This is the shared library runtime path variable.
20045 runpath_var=$runpath_var
20046
20047 # This is the shared library path variable.
20048 shlibpath_var=$shlibpath_var
20049
20050 # Is shlibpath searched before the hard-coded library search path?
20051 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20052
20053 # How to hardcode a shared library path into an executable.
20054 hardcode_action=$hardcode_action_RC
20055
20056 # Whether we should hardcode library paths into libraries.
20057 hardcode_into_libs=$hardcode_into_libs
20058
20059 # Flag to hardcode \$libdir into a binary during linking.
20060 # This must work even if \$libdir does not exist.
20061 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20062
20063 # If ld is used when linking, flag to hardcode \$libdir into
20064 # a binary during linking. This must work even if \$libdir does
20065 # not exist.
20066 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20067
20068 # Whether we need a single -rpath flag with a separated argument.
20069 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20070
20071 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20072 # resulting binary.
20073 hardcode_direct=$hardcode_direct_RC
20074
20075 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20076 # resulting binary.
20077 hardcode_minus_L=$hardcode_minus_L_RC
20078
20079 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20080 # the resulting binary.
20081 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20082
20083 # Set to yes if building a shared library automatically hardcodes DIR into the library
20084 # and all subsequent libraries and executables linked against it.
20085 hardcode_automatic=$hardcode_automatic_RC
20086
20087 # Variables whose values should be saved in libtool wrapper scripts and
20088 # restored at relink time.
20089 variables_saved_for_relink="$variables_saved_for_relink"
20090
20091 # Whether libtool must link a program against all its dependency libraries.
20092 link_all_deplibs=$link_all_deplibs_RC
20093
20094 # Compile-time system search path for libraries
20095 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20096
20097 # Run-time system search path for libraries
20098 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20099
20100 # Fix the shell variable \$srcfile for the compiler.
20101 fix_srcfile_path="$fix_srcfile_path_RC"
20102
20103 # Set to yes if exported symbols are required.
20104 always_export_symbols=$always_export_symbols_RC
20105
20106 # The commands to list exported symbols.
20107 export_symbols_cmds=$lt_export_symbols_cmds_RC
20108
20109 # The commands to extract the exported symbol list from a shared archive.
20110 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20111
20112 # Symbols that should not be listed in the preloaded symbols.
20113 exclude_expsyms=$lt_exclude_expsyms_RC
20114
20115 # Symbols that must always be exported.
20116 include_expsyms=$lt_include_expsyms_RC
20117
20118 # ### END LIBTOOL TAG CONFIG: $tagname
20119
20120 __EOF__
20121
20122
20123 else
20124 # If there is no Makefile yet, we rely on a make rule to execute
20125 # `config.status --recheck' to rerun these tests and create the
20126 # libtool script then.
20127 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20128 if test -f "$ltmain_in"; then
20129 test -f Makefile && make "$ltmain"
20130 fi
20131 fi
20132
20133
20134 ac_ext=c
20135 ac_cpp='$CPP $CPPFLAGS'
20136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20139
20140 CC="$lt_save_CC"
20141
20142 ;;
20143
20144 *)
20145 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20146 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20147 { (exit 1); exit 1; }; }
20148 ;;
20149 esac
20150
20151 # Append the new tag name to the list of available tags.
20152 if test -n "$tagname" ; then
20153 available_tags="$available_tags $tagname"
20154 fi
20155 fi
20156 done
20157 IFS="$lt_save_ifs"
20158
20159 # Now substitute the updated list of available tags.
20160 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20161 mv "${ofile}T" "$ofile"
20162 chmod +x "$ofile"
20163 else
20164 rm -f "${ofile}T"
20165 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20166 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20167 { (exit 1); exit 1; }; }
20168 fi
20169 fi
20170
20171
20172
20173 # This can be used to rebuild libtool when needed
20174 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20175
20176 # Always use our own libtool.
20177 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20178
20179 # Prevent multiple expansion
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191 # No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20192 # AC_REQUIRE([AC_COIN_DLFCN_H])
20193
20194 # NEW: If libtool exists in the directory higher up, we use that one
20195 # instead of creating a new one
20196
20197 # It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20198 # out in front of this macro body. You'll notice that LIBTOOL is already
20199 # defined here. We'll have to count on this macro not being called if libtool
20200 # already exists, or at least move the libtool fixes outside the conditional.
20201 # AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20202 # This test is therefore removed. -- lh, 061214 --
20203 # if test "x$LIBTOOL" = x; then
20204
20205 # AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215 # AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20216
20217
20218
20219 { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20220 echo "$as_me: Build is \"$build\"." >&6;}
20221 mydos2unix='| dos2unix'
20222 case $build in
20223 *-mingw*)
20224 CYGPATH_W=echo
20225 ;;
20226 esac
20227
20228 case $build in
20229 # Here we need to check if -m32 is specified. If so, we need to correct
20230 # sys_lib_search_path_spec
20231 *-cygwin* | *-mingw*)
20232 case "$CXX" in
20233 clang* )
20234 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20235 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20236 echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20237 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20238 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20239 -e 's|libext="lib"|libext="a"|' \
20240 libtool > conftest.bla
20241 ;;
20242 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20243 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20244 echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20245 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20246 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20247 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20248 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20249 -e 's%lib /OUT:%lib -OUT:%' \
20250 -e "s%cygpath -w%$CYGPATH_W%" \
20251 -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%' \
20252 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20253 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20254 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20255 -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"%' \
20256 libtool > conftest.bla
20257 ;;
20258 *)
20259 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20260 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20261 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20262 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20263 -e 's|libext="lib"|libext="a"|' \
20264 libtool > conftest.bla
20265 ;;
20266 esac
20267 mv conftest.bla libtool
20268 chmod 755 libtool
20269
20270 ;;
20271 *x86_64-*)
20272 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20273 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20274 echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20275 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20276 mv conftest.bla libtool
20277 chmod 755 libtool
20278 fi
20279 ;;
20280
20281 *-solaris*)
20282 if test "$GCC" = yes && \
20283 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20284 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20285 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20286 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20287 echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20288 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20289 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20290 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20291 # AC_MSG_NOTICE(Compensating for broken gcc)
20292 for lib in $fixlibtmp ; do
20293 if test -d "${lib}${hdwisa}" ; then
20294 syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20295 fi
20296 done
20297 syslibpath64="${syslibpath64} ${fixlibtmp}"
20298 else
20299 syslibpath64="$fixlibtmp"
20300 fi
20301 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20302 mv conftest.bla libtool
20303 chmod 755 libtool
20304 fi
20305 # AC_MSG_NOTICE(Result is )
20306 # $EGREP 'sys_lib_search_path_spec=' libtool
20307 fi
20308 ;;
20309 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20310 *-darwin*)
20311 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20312 echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20313 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"/' \
20314 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20315 libtool > conftest.bla
20316
20317 mv conftest.bla libtool
20318 chmod 755 libtool
20319 ;;
20320 esac
20321 # This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20322 # the macro. -- lh, 061214 --
20323 # fi
20324
20325 # AC_MSG_NOTICE([End libtool initialisation.])
20326
20327 # AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20328 # set RPATH_FLAGS to the compiler link flags required to hardcode location
20329 # of the shared objects
20330 RPATH_FLAGS=
20331
20332 if test $enable_shared = yes; then
20333 case $build in
20334 *-linux-*)
20335 if test "$GXX" = "yes"; then
20336 RPATH_FLAGS=
20337 for dir in $abs_lib_dir; do
20338 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20339 done
20340 fi ;;
20341 *-darwin*)
20342 RPATH_FLAGS=nothing ;;
20343 *-ibm-*)
20344 case "$CXX" in
20345 xlC* | */xlC* | mpxlC* | */mpxlC*)
20346 RPATH_FLAGS=nothing ;;
20347 esac ;;
20348 *-hp-*)
20349 RPATH_FLAGS=nothing ;;
20350 *-mingw32)
20351 RPATH_FLAGS=nothing ;;
20352 *-*-solaris*)
20353 RPATH_FLAGS=
20354 for dir in $abs_lib_dir; do
20355 RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20356 done
20357 esac
20358
20359 if test "$RPATH_FLAGS" = ""; then
20360 { 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
20361 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;}
20362 fi
20363 if test "$RPATH_FLAGS" = "nothing"; then
20364 RPATH_FLAGS=
20365 fi
20366 fi
20367
20368
20369
20370
20371 else
20372
20373 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20374 echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20375 # get all missing information from the config.log file
20376
20377 # output variables and defines
20378 as_save_IFS=$IFS
20379 IFS='
20380 '
20381 for oneline in `cat $coin_config_dir/config.status`; do
20382 case "$oneline" in
20383 # First some automake conditionals
20384 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \
20385 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20386 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20387 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* )
20388 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20389 # echo "$command"
20390 eval "$command"
20391 ;;
20392 s,@DEFS@* )
20393 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20394 # echo "$command"
20395 eval "$command"
20396 ;;
20397 esac
20398 done
20399 IFS=$as_save_IFS
20400
20401 # And some defines (assuming here that the packages base dir
20402 # doesn't have a config.h file
20403 for word in $defsline; do
20404 # echo word $word
20405 case $word in
20406 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20407 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20408 # echo dd $i
20409 echo $i >>confdefs.h
20410 ;;
20411 esac
20412 done
20413 fi
20414
20415 # AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20416
20417 # Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20418 if test "${enable_dependency_linking+set}" = set; then
20419 enableval="$enable_dependency_linking"
20420 dependency_linking="$enableval"
20421 else
20422 dependency_linking=auto
20423 fi;
20424
20425 if test "$dependency_linking" = auto; then
20426 # On Cygwin and AIX, building DLLs doesn't work
20427 dependency_linking=no
20428 if test x"$coin_disable_shared" = xno; then
20429 case $build in
20430 *-cygwin* | *-mingw*)
20431 case "$CC" in
20432 clang* )
20433 dependency_linking=yes
20434 ;;
20435 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20436 dependency_linking=no
20437 ;;
20438 *gcc*)
20439 dependency_linking=yes
20440 ;;
20441 *)
20442 dependency_linking=yes
20443 ;;
20444 esac
20445 ;;
20446 *)
20447 dependency_linking=yes
20448 ;;
20449 esac
20450 fi
20451 fi
20452
20453 if test "$dependency_linking" = yes ;
20454 then
20455 LT_LDFLAGS="-no-undefined"
20456 else
20457 LT_LDFLAGS=
20458 fi
20459
20460
20461
20462 if test "$dependency_linking" = yes; then
20463 DEPENDENCY_LINKING_TRUE=
20464 DEPENDENCY_LINKING_FALSE='#'
20465 else
20466 DEPENDENCY_LINKING_TRUE='#'
20467 DEPENDENCY_LINKING_FALSE=
20468 fi
20469
20470
20471 # Check if we want to set the library version
20472 echo "$as_me:$LINENO: checking if library version is set" >&5
20473 echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20474 if test x"$coin_libversion" != x; then
20475 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20476 echo "$as_me:$LINENO: result: $coin_libversion" >&5
20477 echo "${ECHO_T}$coin_libversion" >&6
20478 else
20479 echo "$as_me:$LINENO: result: no" >&5
20480 echo "${ECHO_T}no" >&6
20481 fi
20482
20483
20484
20485 #END
20486 }
20487
20488 #############################################################################
20489 # COIN components #
20490 #############################################################################
20491
20492
20493
20494 # Check whether --enable-pkg-config or --disable-pkg-config was given.
20495 if test "${enable_pkg_config+set}" = set; then
20496 enableval="$enable_pkg_config"
20497 use_pkgconfig="$enableval"
20498 else
20499 if test x$coin_cc_is_cl = xtrue; then
20500 use_pkgconfig=no
20501 else
20502 use_pkgconfig=yes
20503 fi
20504 fi;
20505
20506 if test $use_pkgconfig = yes ; then
20507 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20508 if test -n "$ac_tool_prefix"; then
20509 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20510 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20511 echo "$as_me:$LINENO: checking for $ac_word" >&5
20512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20513 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20515 else
20516 if test -n "$PKG_CONFIG"; then
20517 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
20518 else
20519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20520 for as_dir in $PATH
20521 do
20522 IFS=$as_save_IFS
20523 test -z "$as_dir" && as_dir=.
20524 for ac_exec_ext in '' $ac_executable_extensions; do
20525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20526 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
20527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20528 break 2
20529 fi
20530 done
20531 done
20532
20533 fi
20534 fi
20535 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
20536 if test -n "$PKG_CONFIG"; then
20537 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20538 echo "${ECHO_T}$PKG_CONFIG" >&6
20539 else
20540 echo "$as_me:$LINENO: result: no" >&5
20541 echo "${ECHO_T}no" >&6
20542 fi
20543
20544 fi
20545 if test -z "$ac_cv_prog_PKG_CONFIG"; then
20546 ac_ct_PKG_CONFIG=$PKG_CONFIG
20547 # Extract the first word of "pkg-config", so it can be a program name with args.
20548 set dummy pkg-config; ac_word=$2
20549 echo "$as_me:$LINENO: checking for $ac_word" >&5
20550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20551 if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 else
20554 if test -n "$ac_ct_PKG_CONFIG"; then
20555 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
20556 else
20557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20558 for as_dir in $PATH
20559 do
20560 IFS=$as_save_IFS
20561 test -z "$as_dir" && as_dir=.
20562 for ac_exec_ext in '' $ac_executable_extensions; do
20563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20564 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
20565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20566 break 2
20567 fi
20568 done
20569 done
20570
20571 fi
20572 fi
20573 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
20574 if test -n "$ac_ct_PKG_CONFIG"; then
20575 echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
20576 echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
20577 else
20578 echo "$as_me:$LINENO: result: no" >&5
20579 echo "${ECHO_T}no" >&6
20580 fi
20581
20582 PKG_CONFIG=$ac_ct_PKG_CONFIG
20583 else
20584 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
20585 fi
20586
20587 fi
20588 if test -n "$PKG_CONFIG"; then
20589 _pkg_min_version=0.16.0
20590 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20591 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20592 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20593 echo "$as_me:$LINENO: result: yes" >&5
20594 echo "${ECHO_T}yes" >&6
20595 else
20596 echo "$as_me:$LINENO: result: no" >&5
20597 echo "${ECHO_T}no" >&6
20598 PKG_CONFIG=""
20599 fi
20600 fi
20601
20602 # check if pkg-config supports the short-errors flag
20603 if test -n "$PKG_CONFIG" && \
20604 $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20605 pkg_short_errors=" --short-errors "
20606 else
20607 pkg_short_errors=""
20608 fi
20609 fi
20610
20611
20612
20613 if test -n "$PKG_CONFIG"; then
20614 COIN_HAS_PKGCONFIG_TRUE=
20615 COIN_HAS_PKGCONFIG_FALSE='#'
20616 else
20617 COIN_HAS_PKGCONFIG_TRUE='#'
20618 COIN_HAS_PKGCONFIG_FALSE=
20619 fi
20620
20621
20622
20623 # assemble pkg-config search path for installed projects
20624 COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20625
20626 # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
20627 # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
20628 # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
20629 if test "x${prefix}" = xNONE ; then
20630 COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20631 else
20632 COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20633 fi
20634
20635
20636 # Check whether --with-coin-instdir or --without-coin-instdir was given.
20637 if test "${with_coin_instdir+set}" = set; then
20638 withval="$with_coin_instdir"
20639 if test -d "$withval"; then : ; else
20640 { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
20641 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
20642 { (exit 1); exit 1; }; }
20643 fi
20644 COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20645
20646 fi;
20647
20648
20649
20650 # assemble additional pkg-config search paths for uninstalled projects
20651 if test x$coin_projectdir = xyes ; then
20652 # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
20653 # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
20654 # unfortunately, if the user set prefix, then we do not know where the project base directory is located
20655 # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
20656 COIN_PKG_CONFIG_PATH_UNINSTALLED=
20657 if test -f ../coin_subdirs.txt ; then
20658 for i in `cat ../coin_subdirs.txt` ; do
20659 if test -d ../$i ; then
20660 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20661 fi
20662 if test -d ../$i/pkgconfig ; then
20663 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20664 fi
20665 done
20666 fi
20667
20668 if test -f ../../coin_subdirs.txt ; then
20669 for i in `cat ../../coin_subdirs.txt` ; do
20670 if test -d ../../$i ; then
20671 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20672 fi
20673 if test -d ../../$i/pkgconfig ; then
20674 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20675 fi
20676 done
20677 fi
20678
20679
20680 fi
20681
20682 if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
20683 { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
20684 echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
20685 fi
20686
20687
20688
20689 echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils" >&5
20690 echo $ECHO_N "checking for COIN-OR package CoinUtils... $ECHO_C" >&6
20691
20692 coin_has_coinutils=notGiven
20693
20694 # check if user wants to skip package in any case
20695 if test x"$COIN_SKIP_PROJECTS" != x; then
20696 for dir in $COIN_SKIP_PROJECTS; do
20697 if test $dir = "CoinUtils"; then
20698 coin_has_coinutils=skipping
20699 fi
20700 done
20701 fi
20702
20703 if test "$coin_has_coinutils" != skipping; then
20704
20705 # Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
20706 if test "${with_coinutils+set}" = set; then
20707 withval="$with_coinutils"
20708 if test "$withval" = no ; then
20709 coin_has_coinutils=skipping
20710 fi
20711
20712 fi;
20713 fi
20714
20715 COINUTILS_LIBS=
20716 COINUTILS_CFLAGS=
20717 COINUTILS_DATA=
20718 COINUTILS_DEPENDENCIES=
20719 COINUTILS_PCLIBS=
20720 COINUTILS_PCREQUIRES=
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
20739 if test $coin_has_coinutils != skipping; then
20740
20741 # Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
20742 if test "${with_coinutils_lib+set}" = set; then
20743 withval="$with_coinutils_lib"
20744 if test "$withval" = no ; then
20745 coin_has_coinutils=skipping
20746 else
20747 coin_has_coinutils=yes
20748 COINUTILS_LIBS="$withval"
20749 COINUTILS_PCLIBS="$withval"
20750
20751 VOLLIB_PCLIBS="$withval $VOLLIB_PCLIBS"
20752 VOLLIB_LIBS="$withval $VOLLIB_LIBS"
20753
20754 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20755 if test -z "$PKG_CONFIG" ; then
20756 COINUTILS_LIBS_INSTALLED="$withval"
20757 VOLLIB_LIBS_INSTALLED="$withval $VOLLIB_LIBS_INSTALLED"
20758 fi
20759 fi
20760
20761 fi;
20762 fi
20763
20764 if test $coin_has_coinutils != skipping; then
20765
20766 # Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
20767 if test "${with_coinutils_incdir+set}" = set; then
20768 withval="$with_coinutils_incdir"
20769 if test "$withval" = no ; then
20770 coin_has_coinutils=skipping
20771 else
20772 coin_has_coinutils=yes
20773 COINUTILS_CFLAGS="-I`${CYGPATH_W} $withval`"
20774 VOLLIB_CFLAGS="-I`${CYGPATH_W} $withval` $VOLLIB_CFLAGS"
20775 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20776 if test -z "$PKG_CONFIG" ; then
20777 COINUTILS_CFLAGS_INSTALLED="$COINUTILS_CFLAGS"
20778 VOLLIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS $VOLLIB_CFLAGS_INSTALLED"
20779 fi
20780 fi
20781
20782 fi;
20783 fi
20784
20785 if test $coin_has_coinutils != skipping; then
20786
20787 # Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
20788 if test "${with_coinutils_datadir+set}" = set; then
20789 withval="$with_coinutils_datadir"
20790 if test "$withval" = no ; then
20791 coin_has_coinutils=skipping
20792 else
20793 coin_has_coinutils=yes
20794 COINUTILS_DATA="$withval"
20795 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20796 if test -z "$PKG_CONFIG" ; then
20797 COINUTILS_DATA_INSTALLED="$withval"
20798 fi
20799 fi
20800
20801 fi;
20802 fi
20803
20804 if test $coin_has_coinutils = notGiven; then
20805 if test -n "$PKG_CONFIG" ; then
20806 # set search path for pkg-config
20807 # need to export variable to be sure that the following pkg-config gets these values
20808 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20809 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
20810 export PKG_CONFIG_PATH
20811
20812 # let pkg-config do it's magic
20813
20814
20815
20816 if test -n "$PKG_CONFIG" ; then
20817 if $PKG_CONFIG --exists "coinutils"; then
20818 COINUTILS_VERSIONS=`$PKG_CONFIG --modversion "coinutils" 2>/dev/null | tr '\n' ' '`
20819 cflags=`$PKG_CONFIG --cflags "coinutils" 2>/dev/null`
20820 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
20821 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
20822 # but only do this if is not trivial
20823 if test "$CYGPATH_W" != "echo" ; then
20824 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
20825 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
20826 fi
20827 COINUTILS_CFLAGS="$cflags"
20828 COINUTILS_LIBS=`$PKG_CONFIG --libs "coinutils" 2>/dev/null`
20829 COINUTILS_DATA=`$PKG_CONFIG --variable=datadir "coinutils" 2>/dev/null`
20830 coin_has_coinutils=yes
20831 echo "$as_me:$LINENO: result: yes: $COINUTILS_VERSIONS" >&5
20832 echo "${ECHO_T}yes: $COINUTILS_VERSIONS" >&6
20833
20834 # adjust linker flags for (i)cl compiler
20835 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
20836 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
20837 then
20838 COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
20839 fi
20840 COINUTILS_PCREQUIRES="coinutils"
20841
20842 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in VolLib
20843
20844 VOLLIB_PCREQUIRES="coinutils $VOLLIB_PCREQUIRES"
20845 VOLLIB_CFLAGS="$COINUTILS_CFLAGS $VOLLIB_CFLAGS"
20846 VOLLIB_LIBS="$COINUTILS_LIBS $VOLLIB_LIBS"
20847
20848
20849
20850 else
20851 COINUTILS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinutils"`
20852 coin_has_coinutils=notGiven
20853 echo "$as_me:$LINENO: result: not given: $COINUTILS_PKG_ERRORS" >&5
20854 echo "${ECHO_T}not given: $COINUTILS_PKG_ERRORS" >&6
20855
20856 fi
20857 else
20858 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&5
20859 echo "$as_me: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&2;}
20860 { (exit 1); exit 1; }; }
20861 fi
20862
20863
20864
20865
20866 # reset PKG_CONFIG_PATH variable
20867 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
20868 export PKG_CONFIG_PATH
20869
20870 else
20871 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
20872 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
20873
20874 echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils (fallback)" >&5
20875 echo $ECHO_N "checking for COIN-OR package CoinUtils (fallback)... $ECHO_C" >&6
20876
20877 coin_has_coinutils=notGiven
20878 COINUTILS_LIBS=
20879 COINUTILS_LIBS_INSTALLED=
20880 COINUTILS_CFLAGS=
20881 COINUTILS_CFLAGS_INSTALLED=
20882 COINUTILS_DATA=
20883 COINUTILS_DATA_INSTALLED=
20884 COINUTILS_PCLIBS=
20885 COINUTILS_PCREQUIRES=
20886
20887 # initial list of dependencies is "coinutils", but we need to filter out version number specifications (= x, <= x, >= x, != x)
20888 projtoprocess="coinutils"
20889
20890 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
20891 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
20892 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
20893 # also, we setup the DATA variable
20894 allproj=""
20895 allpcfiles=""
20896 allpcifiles=""
20897 while test "x$projtoprocess" != x ; do
20898
20899 for proj in $projtoprocess ; do
20900 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
20901 pcfile=""
20902 save_IFS="$IFS"
20903 IFS=":"
20904 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
20905 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
20906 if test -r "$dir/${proj}-uninstalled.pc" ; then
20907 pcfile="$dir/$proj-uninstalled.pc"
20908 if test -r "$dir/${proj}.pc" ; then
20909 pcifile="$dir/${proj}.pc"
20910 else
20911 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
20912 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
20913 pcifile=
20914 fi
20915 break
20916 fi
20917 done
20918 IFS="$save_IFS"
20919
20920 if test "x$pcfile" != x ; then
20921 # read dependencies from $pcfile and filter it
20922 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
20923
20924 # add projrequires to the front of the list of projects that have to be processed next
20925 # at the same time, remove $proj from this list
20926 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
20927
20928 # read DATA from $pcfile, if _DATA is still empty
20929 if test "x$COINUTILS_DATA" = x ; then
20930 projdatadir=
20931 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
20932 eval `sh -c "$pcfilemod"`
20933 COINUTILS_DATA="$projdatadir"
20934 fi
20935
20936 allproj="$allproj $proj"
20937 allpcfiles="$pcfile:$allpcfiles"
20938
20939 else
20940 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
20941 echo "${ECHO_T}no, dependency $proj not available" >&6
20942 allproj=fail
20943 break 2
20944 fi
20945
20946 if test "x$pcifile" != x ; then
20947 allpcifiles="$pcifile:$allpcifiles"
20948
20949 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
20950 if test "x$COINUTILS_DATA_INSTALLED" = x ; then
20951 projdatadir=
20952 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
20953 eval `sh -c "$pcifilemod"`
20954 if test "${CYGPATH_W}" != "echo"; then
20955 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
20956 fi
20957 COINUTILS_DATA_INSTALLED="$projdatadir"
20958 fi
20959
20960 fi
20961
20962 break
20963 done
20964
20965 # remove spaces on begin of $projtoprocess
20966 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
20967
20968 done
20969
20970 if test "$allproj" != fail ; then
20971
20972 # now go through the list of .pc files and assemble compiler and linker flags
20973 # important is here to obey the reverse order that has been setup before,
20974 # since then libraries that are required by several others should be after these other libraries
20975 pcfilesprocessed=""
20976
20977 save_IFS="$IFS"
20978 IFS=":"
20979 for pcfile in $allpcfiles ; do
20980
20981 # if $pcfile has been processed already, skip this round
20982 if test "x$pcfilesprocessed" != x ; then
20983 for pcfiledone in $pcfilesprocessed ; do
20984 if test "$pcfiledone" = "$pcfile" ; then
20985 continue 2
20986 fi
20987 done
20988 fi
20989
20990 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
20991 # replace "Libs:" by "echo projlibs="
20992 # replace "Cflags:" by "echo projcflags="
20993 # remove every line starting with <some word>:
20994 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
20995
20996 # set projcflags and projlibs variables by running $pcfilemod
20997 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
20998 projcflags=
20999 projlibs=
21000 IFS="$save_IFS"
21001 eval `sh -c "$pcfilemod"`
21002 IFS=":"
21003
21004 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21005 if test "${CYGPATH_W}" != "echo"; then
21006 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21007 fi
21008 COINUTILS_CFLAGS="$projcflags $COINUTILS_CFLAGS"
21009
21010 # set LIBS variable
21011 COINUTILS_LIBS="$projlibs $COINUTILS_LIBS"
21012
21013 # remember that we have processed $pcfile
21014 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21015
21016 done
21017 IFS="$save_IFS"
21018
21019
21020 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21021 # important is here again to obey the reverse order that has been setup before,
21022 # since then libraries that are required by several others should be after these other libraries
21023 pcfilesprocessed=""
21024
21025 save_IFS="$IFS"
21026 IFS=":"
21027 for pcfile in $allpcifiles ; do
21028
21029 # if $pcfile has been processed already, skip this round
21030 if test "x$pcfilesprocessed" != x ; then
21031 for pcfiledone in $pcfilesprocessed ; do
21032 if test "$pcfiledone" = "$pcfile" ; then
21033 continue 2
21034 fi
21035 done
21036 fi
21037
21038 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21039 # replace "Libs:" by "echo projlibs="
21040 # replace "Cflags:" by "echo projcflags="
21041 # remove every line starting with <some word>:
21042 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21043
21044 # set projcflags and projlibs variables by running $pcfilemod
21045 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21046 projcflags=
21047 projlibs=
21048 IFS="$save_IFS"
21049 eval `sh -c "$pcfilemod"`
21050 IFS=":"
21051
21052 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21053 if test "${CYGPATH_W}" != "echo"; then
21054 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21055 fi
21056 COINUTILS_CFLAGS_INSTALLED="$projcflags $COINUTILS_CFLAGS_INSTALLED"
21057
21058 # set LIBS variable
21059 COINUTILS_LIBS_INSTALLED="$projlibs $COINUTILS_LIBS_INSTALLED"
21060
21061 # remember that we have processed $pcfile
21062 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21063
21064 done
21065 IFS="$save_IFS"
21066
21067
21068 # finish up
21069 coin_has_coinutils=yes
21070 echo "$as_me:$LINENO: result: yes" >&5
21071 echo "${ECHO_T}yes" >&6
21072
21073 cat >>confdefs.h <<\_ACEOF
21074 #define COIN_HAS_COINUTILS 1
21075 _ACEOF
21076
21077
21078 # adjust linker flags for (i)cl compiler
21079 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
21080 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21081 # everything of the form "-lname" by "libname.lib", and
21082 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21083 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21084 then
21085 COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21086 COINUTILS_LIBS_INSTALLED=`echo " $COINUTILS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21087 fi
21088
21089 COINUTILS_PCREQUIRES="coinutils"
21090
21091 VOLLIB_PCREQUIRES="coinutils $VOLLIB_PCREQUIRES"
21092 VOLLIB_CFLAGS="$COINUTILS_CFLAGS $VOLLIB_CFLAGS"
21093 VOLLIB_LIBS="$COINUTILS_LIBS $VOLLIB_LIBS"
21094 VOLLIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS_INSTALLED $VOLLIB_CFLAGS_INSTALLED"
21095 VOLLIB_LIBS_INSTALLED="$COINUTILS_LIBS_INSTALLED $VOLLIB_LIBS_INSTALLED"
21096
21097
21098 fi
21099
21100
21101
21102 if test $coin_has_coinutils != notGiven &&
21103 test $coin_has_coinutils != skipping; then
21104 COIN_HAS_COINUTILS_TRUE=
21105 COIN_HAS_COINUTILS_FALSE='#'
21106 else
21107 COIN_HAS_COINUTILS_TRUE='#'
21108 COIN_HAS_COINUTILS_FALSE=
21109 fi
21110
21111
21112
21113 fi
21114
21115 else
21116 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
21117 echo "${ECHO_T}$coin_has_coinutils" >&6
21118 fi
21119
21120 if test $coin_has_coinutils != skipping &&
21121 test $coin_has_coinutils != notGiven ; then
21122
21123 cat >>confdefs.h <<\_ACEOF
21124 #define COIN_HAS_COINUTILS 1
21125 _ACEOF
21126
21127
21128 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21129 if test "${enable_interpackage_dependencies+set}" = set; then
21130 enableval="$enable_interpackage_dependencies"
21131
21132 else
21133 enable_interpackage_dependencies=yes
21134 fi;
21135
21136 if test $enable_interpackage_dependencies = yes ; then
21137 # construct dependencies variables from LIBS variables
21138 # we add an extra space in LIBS so we can substitute out everything starting with " -"
21139 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21140 # then remove everything of the form -xxx
21141 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21142 COINUTILS_DEPENDENCIES=`echo " $COINUTILS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21143
21144 VOLLIB_DEPENDENCIES=`echo " $VOLLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21145
21146 fi
21147
21148 if test 1 = 0 ; then #change this test to enable a bit of debugging output
21149 if test -n "$COINUTILS_CFLAGS" ; then
21150 { echo "$as_me:$LINENO: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&5
21151 echo "$as_me: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&6;}
21152 fi
21153 if test -n "$COINUTILS_LIBS" ; then
21154 { echo "$as_me:$LINENO: CoinUtils LIBS are $COINUTILS_LIBS" >&5
21155 echo "$as_me: CoinUtils LIBS are $COINUTILS_LIBS" >&6;}
21156 fi
21157 if test -n "$COINUTILS_DEPENDENCIES" ; then
21158 { echo "$as_me:$LINENO: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&5
21159 echo "$as_me: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&6;}
21160 fi
21161 if test -n "$COINUTILS_DATA" ; then
21162 { echo "$as_me:$LINENO: CoinUtils DATA is $COINUTILS_DATA" >&5
21163 echo "$as_me: CoinUtils DATA is $COINUTILS_DATA" >&6;}
21164 fi
21165 if test -n "$COINUTILS_PCLIBS" ; then
21166 { echo "$as_me:$LINENO: CoinUtils PCLIBS are $COINUTILS_PCLIBS" >&5
21167 echo "$as_me: CoinUtils PCLIBS are $COINUTILS_PCLIBS" >&6;}
21168 fi
21169 if test -n "$COINUTILS_PCREQUIRES" ; then
21170 { echo "$as_me:$LINENO: CoinUtils PCREQUIRES are $COINUTILS_PCREQUIRES" >&5
21171 echo "$as_me: CoinUtils PCREQUIRES are $COINUTILS_PCREQUIRES" >&6;}
21172 fi
21173
21174 { echo "$as_me:$LINENO: VolLib CFLAGS are $VOLLIB_CFLAGS" >&5
21175 echo "$as_me: VolLib CFLAGS are $VOLLIB_CFLAGS" >&6;}
21176 { echo "$as_me:$LINENO: VolLib LIBS are $VOLLIB_LIBS" >&5
21177 echo "$as_me: VolLib LIBS are $VOLLIB_LIBS" >&6;}
21178 { echo "$as_me:$LINENO: VolLib DEPENDENCIES are $VOLLIB_DEPENDENCIES" >&5
21179 echo "$as_me: VolLib DEPENDENCIES are $VOLLIB_DEPENDENCIES" >&6;}
21180
21181 fi
21182 fi
21183
21184 # Define the Makefile conditional
21185
21186
21187 if test $coin_has_coinutils != notGiven &&
21188 test $coin_has_coinutils != skipping; then
21189 COIN_HAS_COINUTILS_TRUE=
21190 COIN_HAS_COINUTILS_FALSE='#'
21191 else
21192 COIN_HAS_COINUTILS_TRUE='#'
21193 COIN_HAS_COINUTILS_FALSE=
21194 fi
21195
21196
21197
21198
21199 echo "$as_me:$LINENO: checking for COIN-OR package Osi" >&5
21200 echo $ECHO_N "checking for COIN-OR package Osi... $ECHO_C" >&6
21201
21202 coin_has_osi=notGiven
21203
21204 # check if user wants to skip package in any case
21205 if test x"$COIN_SKIP_PROJECTS" != x; then
21206 for dir in $COIN_SKIP_PROJECTS; do
21207 if test $dir = "Osi"; then
21208 coin_has_osi=skipping
21209 fi
21210 done
21211 fi
21212
21213 if test "$coin_has_osi" != skipping; then
21214
21215 # Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
21216 if test "${with_osi+set}" = set; then
21217 withval="$with_osi"
21218 if test "$withval" = no ; then
21219 coin_has_osi=skipping
21220 fi
21221
21222 fi;
21223 fi
21224
21225 OSI_LIBS=
21226 OSI_CFLAGS=
21227 OSI_DATA=
21228 OSI_DEPENDENCIES=
21229 OSI_PCLIBS=
21230 OSI_PCREQUIRES=
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21249 if test $coin_has_osi != skipping; then
21250
21251 # Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
21252 if test "${with_osi_lib+set}" = set; then
21253 withval="$with_osi_lib"
21254 if test "$withval" = no ; then
21255 coin_has_osi=skipping
21256 else
21257 coin_has_osi=yes
21258 OSI_LIBS="$withval"
21259 OSI_PCLIBS="$withval"
21260
21261 OSIVOLLIB_PCLIBS="$withval $OSIVOLLIB_PCLIBS"
21262 OSIVOLLIB_LIBS="$withval $OSIVOLLIB_LIBS"
21263
21264 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21265 if test -z "$PKG_CONFIG" ; then
21266 OSI_LIBS_INSTALLED="$withval"
21267 OSIVOLLIB_LIBS_INSTALLED="$withval $OSIVOLLIB_LIBS_INSTALLED"
21268 fi
21269 fi
21270
21271 fi;
21272 fi
21273
21274 if test $coin_has_osi != skipping; then
21275
21276 # Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
21277 if test "${with_osi_incdir+set}" = set; then
21278 withval="$with_osi_incdir"
21279 if test "$withval" = no ; then
21280 coin_has_osi=skipping
21281 else
21282 coin_has_osi=yes
21283 OSI_CFLAGS="-I`${CYGPATH_W} $withval`"
21284 OSIVOLLIB_CFLAGS="-I`${CYGPATH_W} $withval` $OSIVOLLIB_CFLAGS"
21285 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21286 if test -z "$PKG_CONFIG" ; then
21287 OSI_CFLAGS_INSTALLED="$OSI_CFLAGS"
21288 OSIVOLLIB_CFLAGS_INSTALLED="$OSI_CFLAGS $OSIVOLLIB_CFLAGS_INSTALLED"
21289 fi
21290 fi
21291
21292 fi;
21293 fi
21294
21295 if test $coin_has_osi != skipping; then
21296
21297 # Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
21298 if test "${with_osi_datadir+set}" = set; then
21299 withval="$with_osi_datadir"
21300 if test "$withval" = no ; then
21301 coin_has_osi=skipping
21302 else
21303 coin_has_osi=yes
21304 OSI_DATA="$withval"
21305 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21306 if test -z "$PKG_CONFIG" ; then
21307 OSI_DATA_INSTALLED="$withval"
21308 fi
21309 fi
21310
21311 fi;
21312 fi
21313
21314 if test $coin_has_osi = notGiven; then
21315 if test -n "$PKG_CONFIG" ; then
21316 # set search path for pkg-config
21317 # need to export variable to be sure that the following pkg-config gets these values
21318 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21319 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21320 export PKG_CONFIG_PATH
21321
21322 # let pkg-config do it's magic
21323
21324
21325
21326 if test -n "$PKG_CONFIG" ; then
21327 if $PKG_CONFIG --exists "osi"; then
21328 OSI_VERSIONS=`$PKG_CONFIG --modversion "osi" 2>/dev/null | tr '\n' ' '`
21329 cflags=`$PKG_CONFIG --cflags "osi" 2>/dev/null`
21330 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21331 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21332 # but only do this if is not trivial
21333 if test "$CYGPATH_W" != "echo" ; then
21334 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21335 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21336 fi
21337 OSI_CFLAGS="$cflags"
21338 OSI_LIBS=`$PKG_CONFIG --libs "osi" 2>/dev/null`
21339 OSI_DATA=`$PKG_CONFIG --variable=datadir "osi" 2>/dev/null`
21340 coin_has_osi=yes
21341 echo "$as_me:$LINENO: result: yes: $OSI_VERSIONS" >&5
21342 echo "${ECHO_T}yes: $OSI_VERSIONS" >&6
21343
21344 # adjust linker flags for (i)cl compiler
21345 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
21346 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21347 then
21348 OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21349 fi
21350 OSI_PCREQUIRES="osi"
21351
21352 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in OsiVolLib
21353
21354 OSIVOLLIB_PCREQUIRES="osi $OSIVOLLIB_PCREQUIRES"
21355 OSIVOLLIB_CFLAGS="$OSI_CFLAGS $OSIVOLLIB_CFLAGS"
21356 OSIVOLLIB_LIBS="$OSI_LIBS $OSIVOLLIB_LIBS"
21357
21358
21359
21360 else
21361 OSI_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi"`
21362 coin_has_osi=notGiven
21363 echo "$as_me:$LINENO: result: not given: $OSI_PKG_ERRORS" >&5
21364 echo "${ECHO_T}not given: $OSI_PKG_ERRORS" >&6
21365
21366 fi
21367 else
21368 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Osi without pkg-config\"" >&5
21369 echo "$as_me: error: \"Cannot check for existance of module Osi without pkg-config\"" >&2;}
21370 { (exit 1); exit 1; }; }
21371 fi
21372
21373
21374
21375
21376 # reset PKG_CONFIG_PATH variable
21377 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21378 export PKG_CONFIG_PATH
21379
21380 else
21381 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21382 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21383
21384 echo "$as_me:$LINENO: checking for COIN-OR package Osi (fallback)" >&5
21385 echo $ECHO_N "checking for COIN-OR package Osi (fallback)... $ECHO_C" >&6
21386
21387 coin_has_osi=notGiven
21388 OSI_LIBS=
21389 OSI_LIBS_INSTALLED=
21390 OSI_CFLAGS=
21391 OSI_CFLAGS_INSTALLED=
21392 OSI_DATA=
21393 OSI_DATA_INSTALLED=
21394 OSI_PCLIBS=
21395 OSI_PCREQUIRES=
21396
21397 # initial list of dependencies is "osi", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21398 projtoprocess="osi"
21399
21400 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
21401 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
21402 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
21403 # also, we setup the DATA variable
21404 allproj=""
21405 allpcfiles=""
21406 allpcifiles=""
21407 while test "x$projtoprocess" != x ; do
21408
21409 for proj in $projtoprocess ; do
21410 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21411 pcfile=""
21412 save_IFS="$IFS"
21413 IFS=":"
21414 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21415 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
21416 if test -r "$dir/${proj}-uninstalled.pc" ; then
21417 pcfile="$dir/$proj-uninstalled.pc"
21418 if test -r "$dir/${proj}.pc" ; then
21419 pcifile="$dir/${proj}.pc"
21420 else
21421 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
21422 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
21423 pcifile=
21424 fi
21425 break
21426 fi
21427 done
21428 IFS="$save_IFS"
21429
21430 if test "x$pcfile" != x ; then
21431 # read dependencies from $pcfile and filter it
21432 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
21433
21434 # add projrequires to the front of the list of projects that have to be processed next
21435 # at the same time, remove $proj from this list
21436 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21437
21438 # read DATA from $pcfile, if _DATA is still empty
21439 if test "x$OSI_DATA" = x ; then
21440 projdatadir=
21441 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21442 eval `sh -c "$pcfilemod"`
21443 OSI_DATA="$projdatadir"
21444 fi
21445
21446 allproj="$allproj $proj"
21447 allpcfiles="$pcfile:$allpcfiles"
21448
21449 else
21450 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21451 echo "${ECHO_T}no, dependency $proj not available" >&6
21452 allproj=fail
21453 break 2
21454 fi
21455
21456 if test "x$pcifile" != x ; then
21457 allpcifiles="$pcifile:$allpcifiles"
21458
21459 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21460 if test "x$OSI_DATA_INSTALLED" = x ; then
21461 projdatadir=
21462 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21463 eval `sh -c "$pcifilemod"`
21464 if test "${CYGPATH_W}" != "echo"; then
21465 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21466 fi
21467 OSI_DATA_INSTALLED="$projdatadir"
21468 fi
21469
21470 fi
21471
21472 break
21473 done
21474
21475 # remove spaces on begin of $projtoprocess
21476 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21477
21478 done
21479
21480 if test "$allproj" != fail ; then
21481
21482 # now go through the list of .pc files and assemble compiler and linker flags
21483 # important is here to obey the reverse order that has been setup before,
21484 # since then libraries that are required by several others should be after these other libraries
21485 pcfilesprocessed=""
21486
21487 save_IFS="$IFS"
21488 IFS=":"
21489 for pcfile in $allpcfiles ; do
21490
21491 # if $pcfile has been processed already, skip this round
21492 if test "x$pcfilesprocessed" != x ; then
21493 for pcfiledone in $pcfilesprocessed ; do
21494 if test "$pcfiledone" = "$pcfile" ; then
21495 continue 2
21496 fi
21497 done
21498 fi
21499
21500 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21501 # replace "Libs:" by "echo projlibs="
21502 # replace "Cflags:" by "echo projcflags="
21503 # remove every line starting with <some word>:
21504 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21505
21506 # set projcflags and projlibs variables by running $pcfilemod
21507 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21508 projcflags=
21509 projlibs=
21510 IFS="$save_IFS"
21511 eval `sh -c "$pcfilemod"`
21512 IFS=":"
21513
21514 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21515 if test "${CYGPATH_W}" != "echo"; then
21516 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21517 fi
21518 OSI_CFLAGS="$projcflags $OSI_CFLAGS"
21519
21520 # set LIBS variable
21521 OSI_LIBS="$projlibs $OSI_LIBS"
21522
21523 # remember that we have processed $pcfile
21524 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21525
21526 done
21527 IFS="$save_IFS"
21528
21529
21530 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21531 # important is here again to obey the reverse order that has been setup before,
21532 # since then libraries that are required by several others should be after these other libraries
21533 pcfilesprocessed=""
21534
21535 save_IFS="$IFS"
21536 IFS=":"
21537 for pcfile in $allpcifiles ; do
21538
21539 # if $pcfile has been processed already, skip this round
21540 if test "x$pcfilesprocessed" != x ; then
21541 for pcfiledone in $pcfilesprocessed ; do
21542 if test "$pcfiledone" = "$pcfile" ; then
21543 continue 2
21544 fi
21545 done
21546 fi
21547
21548 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21549 # replace "Libs:" by "echo projlibs="
21550 # replace "Cflags:" by "echo projcflags="
21551 # remove every line starting with <some word>:
21552 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21553
21554 # set projcflags and projlibs variables by running $pcfilemod
21555 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21556 projcflags=
21557 projlibs=
21558 IFS="$save_IFS"
21559 eval `sh -c "$pcfilemod"`
21560 IFS=":"
21561
21562 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21563 if test "${CYGPATH_W}" != "echo"; then
21564 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21565 fi
21566 OSI_CFLAGS_INSTALLED="$projcflags $OSI_CFLAGS_INSTALLED"
21567
21568 # set LIBS variable
21569 OSI_LIBS_INSTALLED="$projlibs $OSI_LIBS_INSTALLED"
21570
21571 # remember that we have processed $pcfile
21572 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21573
21574 done
21575 IFS="$save_IFS"
21576
21577
21578 # finish up
21579 coin_has_osi=yes
21580 echo "$as_me:$LINENO: result: yes" >&5
21581 echo "${ECHO_T}yes" >&6
21582
21583 cat >>confdefs.h <<\_ACEOF
21584 #define COIN_HAS_OSI 1
21585 _ACEOF
21586
21587
21588 # adjust linker flags for (i)cl compiler
21589 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
21590 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21591 # everything of the form "-lname" by "libname.lib", and
21592 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21593 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21594 then
21595 OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21596 OSI_LIBS_INSTALLED=`echo " $OSI_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21597 fi
21598
21599 OSI_PCREQUIRES="osi"
21600
21601 OSIVOLLIB_PCREQUIRES="osi $OSIVOLLIB_PCREQUIRES"
21602 OSIVOLLIB_CFLAGS="$OSI_CFLAGS $OSIVOLLIB_CFLAGS"
21603 OSIVOLLIB_LIBS="$OSI_LIBS $OSIVOLLIB_LIBS"
21604 OSIVOLLIB_CFLAGS_INSTALLED="$OSI_CFLAGS_INSTALLED $OSIVOLLIB_CFLAGS_INSTALLED"
21605 OSIVOLLIB_LIBS_INSTALLED="$OSI_LIBS_INSTALLED $OSIVOLLIB_LIBS_INSTALLED"
21606
21607
21608 fi
21609
21610
21611
21612 if test $coin_has_osi != notGiven &&
21613 test $coin_has_osi != skipping; then
21614 COIN_HAS_OSI_TRUE=
21615 COIN_HAS_OSI_FALSE='#'
21616 else
21617 COIN_HAS_OSI_TRUE='#'
21618 COIN_HAS_OSI_FALSE=
21619 fi
21620
21621
21622
21623 fi
21624
21625 else
21626 echo "$as_me:$LINENO: result: $coin_has_osi" >&5
21627 echo "${ECHO_T}$coin_has_osi" >&6
21628 fi
21629
21630 if test $coin_has_osi != skipping &&
21631 test $coin_has_osi != notGiven ; then
21632
21633 cat >>confdefs.h <<\_ACEOF
21634 #define COIN_HAS_OSI 1
21635 _ACEOF
21636
21637
21638 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21639 if test "${enable_interpackage_dependencies+set}" = set; then
21640 enableval="$enable_interpackage_dependencies"
21641
21642 else
21643 enable_interpackage_dependencies=yes
21644 fi;
21645
21646 if test $enable_interpackage_dependencies = yes ; then
21647 # construct dependencies variables from LIBS variables
21648 # we add an extra space in LIBS so we can substitute out everything starting with " -"
21649 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21650 # then remove everything of the form -xxx
21651 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21652 OSI_DEPENDENCIES=`echo " $OSI_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21653
21654 OSIVOLLIB_DEPENDENCIES=`echo " $OSIVOLLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21655
21656 fi
21657
21658 if test 1 = 0 ; then #change this test to enable a bit of debugging output
21659 if test -n "$OSI_CFLAGS" ; then
21660 { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5
21661 echo "$as_me: Osi CFLAGS are $OSI_CFLAGS" >&6;}
21662 fi
21663 if test -n "$OSI_LIBS" ; then
21664 { echo "$as_me:$LINENO: Osi LIBS are $OSI_LIBS" >&5
21665 echo "$as_me: Osi LIBS are $OSI_LIBS" >&6;}
21666 fi
21667 if test -n "$OSI_DEPENDENCIES" ; then
21668 { echo "$as_me:$LINENO: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&5
21669 echo "$as_me: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&6;}
21670 fi
21671 if test -n "$OSI_DATA" ; then
21672 { echo "$as_me:$LINENO: Osi DATA is $OSI_DATA" >&5
21673 echo "$as_me: Osi DATA is $OSI_DATA" >&6;}
21674 fi
21675 if test -n "$OSI_PCLIBS" ; then
21676 { echo "$as_me:$LINENO: Osi PCLIBS are $OSI_PCLIBS" >&5
21677 echo "$as_me: Osi PCLIBS are $OSI_PCLIBS" >&6;}
21678 fi
21679 if test -n "$OSI_PCREQUIRES" ; then
21680 { echo "$as_me:$LINENO: Osi PCREQUIRES are $OSI_PCREQUIRES" >&5
21681 echo "$as_me: Osi PCREQUIRES are $OSI_PCREQUIRES" >&6;}
21682 fi
21683
21684 { echo "$as_me:$LINENO: OsiVolLib CFLAGS are $OSIVOLLIB_CFLAGS" >&5
21685 echo "$as_me: OsiVolLib CFLAGS are $OSIVOLLIB_CFLAGS" >&6;}
21686 { echo "$as_me:$LINENO: OsiVolLib LIBS are $OSIVOLLIB_LIBS" >&5
21687 echo "$as_me: OsiVolLib LIBS are $OSIVOLLIB_LIBS" >&6;}
21688 { echo "$as_me:$LINENO: OsiVolLib DEPENDENCIES are $OSIVOLLIB_DEPENDENCIES" >&5
21689 echo "$as_me: OsiVolLib DEPENDENCIES are $OSIVOLLIB_DEPENDENCIES" >&6;}
21690
21691 fi
21692 fi
21693
21694 # Define the Makefile conditional
21695
21696
21697 if test $coin_has_osi != notGiven &&
21698 test $coin_has_osi != skipping; then
21699 COIN_HAS_OSI_TRUE=
21700 COIN_HAS_OSI_FALSE='#'
21701 else
21702 COIN_HAS_OSI_TRUE='#'
21703 COIN_HAS_OSI_FALSE=
21704 fi
21705
21706
21707
21708
21709 echo "$as_me:$LINENO: checking for COIN-OR package OsiTests" >&5
21710 echo $ECHO_N "checking for COIN-OR package OsiTests... $ECHO_C" >&6
21711
21712 coin_has_ositests=notGiven
21713
21714 # check if user wants to skip package in any case
21715 if test x"$COIN_SKIP_PROJECTS" != x; then
21716 for dir in $COIN_SKIP_PROJECTS; do
21717 if test $dir = "OsiTests"; then
21718 coin_has_ositests=skipping
21719 fi
21720 done
21721 fi
21722
21723 if test "$coin_has_ositests" != skipping; then
21724
21725 # Check whether --with-m4_tolower(OsiTests) or --without-m4_tolower(OsiTests) was given.
21726 if test "${with_ositests+set}" = set; then
21727 withval="$with_ositests"
21728 if test "$withval" = no ; then
21729 coin_has_ositests=skipping
21730 fi
21731
21732 fi;
21733 fi
21734
21735 OSITESTS_LIBS=
21736 OSITESTS_CFLAGS=
21737 OSITESTS_DATA=
21738 OSITESTS_DEPENDENCIES=
21739 OSITESTS_PCLIBS=
21740 OSITESTS_PCREQUIRES=
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21751 if test $coin_has_ositests != skipping; then
21752
21753 # Check whether --with-m4_tolower(OsiTests)-lib or --without-m4_tolower(OsiTests)-lib was given.
21754 if test "${with_ositests_lib+set}" = set; then
21755 withval="$with_ositests_lib"
21756 if test "$withval" = no ; then
21757 coin_has_ositests=skipping
21758 else
21759 coin_has_ositests=yes
21760 OSITESTS_LIBS="$withval"
21761 OSITESTS_PCLIBS="$withval"
21762
21763 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21764 if test -z "$PKG_CONFIG" ; then
21765 OSITESTS_LIBS_INSTALLED="$withval"
21766
21767 fi
21768 fi
21769
21770 fi;
21771 fi
21772
21773 if test $coin_has_ositests != skipping; then
21774
21775 # Check whether --with-m4_tolower(OsiTests)-incdir or --without-m4_tolower(OsiTests)-incdir was given.
21776 if test "${with_ositests_incdir+set}" = set; then
21777 withval="$with_ositests_incdir"
21778 if test "$withval" = no ; then
21779 coin_has_ositests=skipping
21780 else
21781 coin_has_ositests=yes
21782 OSITESTS_CFLAGS="-I`${CYGPATH_W} $withval`"
21783
21784 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21785 if test -z "$PKG_CONFIG" ; then
21786 OSITESTS_CFLAGS_INSTALLED="$OSITESTS_CFLAGS"
21787
21788 fi
21789 fi
21790
21791 fi;
21792 fi
21793
21794 if test $coin_has_ositests != skipping; then
21795
21796 # Check whether --with-m4_tolower(OsiTests)-datadir or --without-m4_tolower(OsiTests)-datadir was given.
21797 if test "${with_ositests_datadir+set}" = set; then
21798 withval="$with_ositests_datadir"
21799 if test "$withval" = no ; then
21800 coin_has_ositests=skipping
21801 else
21802 coin_has_ositests=yes
21803 OSITESTS_DATA="$withval"
21804 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21805 if test -z "$PKG_CONFIG" ; then
21806 OSITESTS_DATA_INSTALLED="$withval"
21807 fi
21808 fi
21809
21810 fi;
21811 fi
21812
21813 if test $coin_has_ositests = notGiven; then
21814 if test -n "$PKG_CONFIG" ; then
21815 # set search path for pkg-config
21816 # need to export variable to be sure that the following pkg-config gets these values
21817 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21818 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21819 export PKG_CONFIG_PATH
21820
21821 # let pkg-config do it's magic
21822
21823
21824
21825 if test -n "$PKG_CONFIG" ; then
21826 if $PKG_CONFIG --exists "osi-unittests"; then
21827 OSITESTS_VERSIONS=`$PKG_CONFIG --modversion "osi-unittests" 2>/dev/null | tr '\n' ' '`
21828 cflags=`$PKG_CONFIG --cflags "osi-unittests" 2>/dev/null`
21829 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21830 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21831 # but only do this if is not trivial
21832 if test "$CYGPATH_W" != "echo" ; then
21833 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21834 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21835 fi
21836 OSITESTS_CFLAGS="$cflags"
21837 OSITESTS_LIBS=`$PKG_CONFIG --libs "osi-unittests" 2>/dev/null`
21838 OSITESTS_DATA=`$PKG_CONFIG --variable=datadir "osi-unittests" 2>/dev/null`
21839 coin_has_ositests=yes
21840 echo "$as_me:$LINENO: result: yes: $OSITESTS_VERSIONS" >&5
21841 echo "${ECHO_T}yes: $OSITESTS_VERSIONS" >&6
21842
21843 # adjust linker flags for (i)cl compiler
21844 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
21845 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21846 then
21847 OSITESTS_LIBS=`echo " $OSITESTS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21848 fi
21849 OSITESTS_PCREQUIRES="osi-unittests"
21850
21851 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
21852
21853
21854
21855 else
21856 OSITESTS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-unittests"`
21857 coin_has_ositests=notGiven
21858 echo "$as_me:$LINENO: result: not given: $OSITESTS_PKG_ERRORS" >&5
21859 echo "${ECHO_T}not given: $OSITESTS_PKG_ERRORS" >&6
21860
21861 fi
21862 else
21863 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&5
21864 echo "$as_me: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&2;}
21865 { (exit 1); exit 1; }; }
21866 fi
21867
21868
21869
21870
21871 # reset PKG_CONFIG_PATH variable
21872 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21873 export PKG_CONFIG_PATH
21874
21875 else
21876 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21877 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21878
21879 echo "$as_me:$LINENO: checking for COIN-OR package OsiTests (fallback)" >&5
21880 echo $ECHO_N "checking for COIN-OR package OsiTests (fallback)... $ECHO_C" >&6
21881
21882 coin_has_ositests=notGiven
21883 OSITESTS_LIBS=
21884 OSITESTS_LIBS_INSTALLED=
21885 OSITESTS_CFLAGS=
21886 OSITESTS_CFLAGS_INSTALLED=
21887 OSITESTS_DATA=
21888 OSITESTS_DATA_INSTALLED=
21889 OSITESTS_PCLIBS=
21890 OSITESTS_PCREQUIRES=
21891
21892 # initial list of dependencies is "osi-unittests", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21893 projtoprocess="osi-unittests"
21894
21895 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
21896 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
21897 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
21898 # also, we setup the DATA variable
21899 allproj=""
21900 allpcfiles=""
21901 allpcifiles=""
21902 while test "x$projtoprocess" != x ; do
21903
21904 for proj in $projtoprocess ; do
21905 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21906 pcfile=""
21907 save_IFS="$IFS"
21908 IFS=":"
21909 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21910 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
21911 if test -r "$dir/${proj}-uninstalled.pc" ; then
21912 pcfile="$dir/$proj-uninstalled.pc"
21913 if test -r "$dir/${proj}.pc" ; then
21914 pcifile="$dir/${proj}.pc"
21915 else
21916 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
21917 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
21918 pcifile=
21919 fi
21920 break
21921 fi
21922 done
21923 IFS="$save_IFS"
21924
21925 if test "x$pcfile" != x ; then
21926 # read dependencies from $pcfile and filter it
21927 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
21928
21929 # add projrequires to the front of the list of projects that have to be processed next
21930 # at the same time, remove $proj from this list
21931 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21932
21933 # read DATA from $pcfile, if _DATA is still empty
21934 if test "x$OSITESTS_DATA" = x ; then
21935 projdatadir=
21936 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21937 eval `sh -c "$pcfilemod"`
21938 OSITESTS_DATA="$projdatadir"
21939 fi
21940
21941 allproj="$allproj $proj"
21942 allpcfiles="$pcfile:$allpcfiles"
21943
21944 else
21945 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21946 echo "${ECHO_T}no, dependency $proj not available" >&6
21947 allproj=fail
21948 break 2
21949 fi
21950
21951 if test "x$pcifile" != x ; then
21952 allpcifiles="$pcifile:$allpcifiles"
21953
21954 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21955 if test "x$OSITESTS_DATA_INSTALLED" = x ; then
21956 projdatadir=
21957 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21958 eval `sh -c "$pcifilemod"`
21959 if test "${CYGPATH_W}" != "echo"; then
21960 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21961 fi
21962 OSITESTS_DATA_INSTALLED="$projdatadir"
21963 fi
21964
21965 fi
21966
21967 break
21968 done
21969
21970 # remove spaces on begin of $projtoprocess
21971 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21972
21973 done
21974
21975 if test "$allproj" != fail ; then
21976
21977 # now go through the list of .pc files and assemble compiler and linker flags
21978 # important is here to obey the reverse order that has been setup before,
21979 # since then libraries that are required by several others should be after these other libraries
21980 pcfilesprocessed=""
21981
21982 save_IFS="$IFS"
21983 IFS=":"
21984 for pcfile in $allpcfiles ; do
21985
21986 # if $pcfile has been processed already, skip this round
21987 if test "x$pcfilesprocessed" != x ; then
21988 for pcfiledone in $pcfilesprocessed ; do
21989 if test "$pcfiledone" = "$pcfile" ; then
21990 continue 2
21991 fi
21992 done
21993 fi
21994
21995 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21996 # replace "Libs:" by "echo projlibs="
21997 # replace "Cflags:" by "echo projcflags="
21998 # remove every line starting with <some word>:
21999 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22000
22001 # set projcflags and projlibs variables by running $pcfilemod
22002 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22003 projcflags=
22004 projlibs=
22005 IFS="$save_IFS"
22006 eval `sh -c "$pcfilemod"`
22007 IFS=":"
22008
22009 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22010 if test "${CYGPATH_W}" != "echo"; then
22011 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22012 fi
22013 OSITESTS_CFLAGS="$projcflags $OSITESTS_CFLAGS"
22014
22015 # set LIBS variable
22016 OSITESTS_LIBS="$projlibs $OSITESTS_LIBS"
22017
22018 # remember that we have processed $pcfile
22019 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22020
22021 done
22022 IFS="$save_IFS"
22023
22024
22025 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22026 # important is here again to obey the reverse order that has been setup before,
22027 # since then libraries that are required by several others should be after these other libraries
22028 pcfilesprocessed=""
22029
22030 save_IFS="$IFS"
22031 IFS=":"
22032 for pcfile in $allpcifiles ; do
22033
22034 # if $pcfile has been processed already, skip this round
22035 if test "x$pcfilesprocessed" != x ; then
22036 for pcfiledone in $pcfilesprocessed ; do
22037 if test "$pcfiledone" = "$pcfile" ; then
22038 continue 2
22039 fi
22040 done
22041 fi
22042
22043 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22044 # replace "Libs:" by "echo projlibs="
22045 # replace "Cflags:" by "echo projcflags="
22046 # remove every line starting with <some word>:
22047 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22048
22049 # set projcflags and projlibs variables by running $pcfilemod
22050 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22051 projcflags=
22052 projlibs=
22053 IFS="$save_IFS"
22054 eval `sh -c "$pcfilemod"`
22055 IFS=":"
22056
22057 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22058 if test "${CYGPATH_W}" != "echo"; then
22059 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22060 fi
22061 OSITESTS_CFLAGS_INSTALLED="$projcflags $OSITESTS_CFLAGS_INSTALLED"
22062
22063 # set LIBS variable
22064 OSITESTS_LIBS_INSTALLED="$projlibs $OSITESTS_LIBS_INSTALLED"
22065
22066 # remember that we have processed $pcfile
22067 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22068
22069 done
22070 IFS="$save_IFS"
22071
22072
22073 # finish up
22074 coin_has_ositests=yes
22075 echo "$as_me:$LINENO: result: yes" >&5
22076 echo "${ECHO_T}yes" >&6
22077
22078 cat >>confdefs.h <<\_ACEOF
22079 #define COIN_HAS_OSITESTS 1
22080 _ACEOF
22081
22082
22083 # adjust linker flags for (i)cl compiler
22084 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
22085 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22086 # everything of the form "-lname" by "libname.lib", and
22087 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22088 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22089 then
22090 OSITESTS_LIBS=`echo " $OSITESTS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22091 OSITESTS_LIBS_INSTALLED=`echo " $OSITESTS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22092 fi
22093
22094 OSITESTS_PCREQUIRES="osi-unittests"
22095
22096
22097 fi
22098
22099
22100
22101 if test $coin_has_ositests != notGiven &&
22102 test $coin_has_ositests != skipping; then
22103 COIN_HAS_OSITESTS_TRUE=
22104 COIN_HAS_OSITESTS_FALSE='#'
22105 else
22106 COIN_HAS_OSITESTS_TRUE='#'
22107 COIN_HAS_OSITESTS_FALSE=
22108 fi
22109
22110
22111
22112 fi
22113
22114 else
22115 echo "$as_me:$LINENO: result: $coin_has_ositests" >&5
22116 echo "${ECHO_T}$coin_has_ositests" >&6
22117 fi
22118
22119 if test $coin_has_ositests != skipping &&
22120 test $coin_has_ositests != notGiven ; then
22121
22122 cat >>confdefs.h <<\_ACEOF
22123 #define COIN_HAS_OSITESTS 1
22124 _ACEOF
22125
22126
22127 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22128 if test "${enable_interpackage_dependencies+set}" = set; then
22129 enableval="$enable_interpackage_dependencies"
22130
22131 else
22132 enable_interpackage_dependencies=yes
22133 fi;
22134
22135 if test $enable_interpackage_dependencies = yes ; then
22136 # construct dependencies variables from LIBS variables
22137 # we add an extra space in LIBS so we can substitute out everything starting with " -"
22138 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22139 # then remove everything of the form -xxx
22140 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22141 OSITESTS_DEPENDENCIES=`echo " $OSITESTS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22142
22143 fi
22144
22145 if test 1 = 0 ; then #change this test to enable a bit of debugging output
22146 if test -n "$OSITESTS_CFLAGS" ; then
22147 { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
22148 echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}
22149 fi
22150 if test -n "$OSITESTS_LIBS" ; then
22151 { echo "$as_me:$LINENO: OsiTests LIBS are $OSITESTS_LIBS" >&5
22152 echo "$as_me: OsiTests LIBS are $OSITESTS_LIBS" >&6;}
22153 fi
22154 if test -n "$OSITESTS_DEPENDENCIES" ; then
22155 { echo "$as_me:$LINENO: OsiTests DEPENDENCIES are $OSITESTS_DEPENDENCIES" >&5
22156 echo "$as_me: OsiTests DEPENDENCIES are $OSITESTS_DEPENDENCIES" >&6;}
22157 fi
22158 if test -n "$OSITESTS_DATA" ; then
22159 { echo "$as_me:$LINENO: OsiTests DATA is $OSITESTS_DATA" >&5
22160 echo "$as_me: OsiTests DATA is $OSITESTS_DATA" >&6;}
22161 fi
22162 if test -n "$OSITESTS_PCLIBS" ; then
22163 { echo "$as_me:$LINENO: OsiTests PCLIBS are $OSITESTS_PCLIBS" >&5
22164 echo "$as_me: OsiTests PCLIBS are $OSITESTS_PCLIBS" >&6;}
22165 fi
22166 if test -n "$OSITESTS_PCREQUIRES" ; then
22167 { echo "$as_me:$LINENO: OsiTests PCREQUIRES are $OSITESTS_PCREQUIRES" >&5
22168 echo "$as_me: OsiTests PCREQUIRES are $OSITESTS_PCREQUIRES" >&6;}
22169 fi
22170
22171 fi
22172 fi
22173
22174 # Define the Makefile conditional
22175
22176
22177 if test $coin_has_ositests != notGiven &&
22178 test $coin_has_ositests != skipping; then
22179 COIN_HAS_OSITESTS_TRUE=
22180 COIN_HAS_OSITESTS_FALSE='#'
22181 else
22182 COIN_HAS_OSITESTS_TRUE='#'
22183 COIN_HAS_OSITESTS_FALSE=
22184 fi
22185
22186
22187
22188
22189 echo "$as_me:$LINENO: checking for COIN-OR package Sample" >&5
22190 echo $ECHO_N "checking for COIN-OR package Sample... $ECHO_C" >&6
22191
22192 coin_has_sample=notGiven
22193
22194 # check if user wants to skip package in any case
22195 if test x"$COIN_SKIP_PROJECTS" != x; then
22196 for dir in $COIN_SKIP_PROJECTS; do
22197 if test $dir = "Sample"; then
22198 coin_has_sample=skipping
22199 fi
22200 done
22201 fi
22202
22203 if test "$coin_has_sample" != skipping; then
22204
22205 # Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
22206 if test "${with_sample+set}" = set; then
22207 withval="$with_sample"
22208 if test "$withval" = no ; then
22209 coin_has_sample=skipping
22210 fi
22211
22212 fi;
22213 fi
22214
22215 SAMPLE_LIBS=
22216 SAMPLE_CFLAGS=
22217 SAMPLE_DATA=
22218 SAMPLE_DEPENDENCIES=
22219 SAMPLE_PCLIBS=
22220 SAMPLE_PCREQUIRES=
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
22231 if test $coin_has_sample != skipping; then
22232
22233 # Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
22234 if test "${with_sample_lib+set}" = set; then
22235 withval="$with_sample_lib"
22236 if test "$withval" = no ; then
22237 coin_has_sample=skipping
22238 else
22239 coin_has_sample=yes
22240 SAMPLE_LIBS="$withval"
22241 SAMPLE_PCLIBS="$withval"
22242
22243 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22244 if test -z "$PKG_CONFIG" ; then
22245 SAMPLE_LIBS_INSTALLED="$withval"
22246
22247 fi
22248 fi
22249
22250 fi;
22251 fi
22252
22253 if test $coin_has_sample != skipping; then
22254
22255 # Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
22256 if test "${with_sample_incdir+set}" = set; then
22257 withval="$with_sample_incdir"
22258 if test "$withval" = no ; then
22259 coin_has_sample=skipping
22260 else
22261 coin_has_sample=yes
22262 SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`"
22263
22264 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22265 if test -z "$PKG_CONFIG" ; then
22266 SAMPLE_CFLAGS_INSTALLED="$SAMPLE_CFLAGS"
22267
22268 fi
22269 fi
22270
22271 fi;
22272 fi
22273
22274 if test $coin_has_sample != skipping; then
22275
22276 # Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
22277 if test "${with_sample_datadir+set}" = set; then
22278 withval="$with_sample_datadir"
22279 if test "$withval" = no ; then
22280 coin_has_sample=skipping
22281 else
22282 coin_has_sample=yes
22283 SAMPLE_DATA="$withval"
22284 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22285 if test -z "$PKG_CONFIG" ; then
22286 SAMPLE_DATA_INSTALLED="$withval"
22287 fi
22288 fi
22289
22290 fi;
22291 fi
22292
22293 if test $coin_has_sample = notGiven; then
22294 if test -n "$PKG_CONFIG" ; then
22295 # set search path for pkg-config
22296 # need to export variable to be sure that the following pkg-config gets these values
22297 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22298 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
22299 export PKG_CONFIG_PATH
22300
22301 # let pkg-config do it's magic
22302
22303
22304
22305 if test -n "$PKG_CONFIG" ; then
22306 if $PKG_CONFIG --exists "coindatasample"; then
22307 SAMPLE_VERSIONS=`$PKG_CONFIG --modversion "coindatasample" 2>/dev/null | tr '\n' ' '`
22308 cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null`
22309 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
22310 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
22311 # but only do this if is not trivial
22312 if test "$CYGPATH_W" != "echo" ; then
22313 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
22314 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22315 fi
22316 SAMPLE_CFLAGS="$cflags"
22317 SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`
22318 SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null`
22319 coin_has_sample=yes
22320 echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5
22321 echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6
22322
22323 # adjust linker flags for (i)cl compiler
22324 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
22325 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22326 then
22327 SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22328 fi
22329 SAMPLE_PCREQUIRES="coindatasample"
22330
22331 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
22332
22333
22334
22335 else
22336 SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatasample"`
22337 coin_has_sample=notGiven
22338 echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5
22339 echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6
22340
22341 fi
22342 else
22343 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5
22344 echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;}
22345 { (exit 1); exit 1; }; }
22346 fi
22347
22348
22349
22350
22351 # reset PKG_CONFIG_PATH variable
22352 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
22353 export PKG_CONFIG_PATH
22354
22355 else
22356 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22357 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22358
22359 echo "$as_me:$LINENO: checking for COIN-OR package Sample (fallback)" >&5
22360 echo $ECHO_N "checking for COIN-OR package Sample (fallback)... $ECHO_C" >&6
22361
22362 coin_has_sample=notGiven
22363 SAMPLE_LIBS=
22364 SAMPLE_LIBS_INSTALLED=
22365 SAMPLE_CFLAGS=
22366 SAMPLE_CFLAGS_INSTALLED=
22367 SAMPLE_DATA=
22368 SAMPLE_DATA_INSTALLED=
22369 SAMPLE_PCLIBS=
22370 SAMPLE_PCREQUIRES=
22371
22372 # initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22373 projtoprocess="coindatasample"
22374
22375 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22376 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22377 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22378 # also, we setup the DATA variable
22379 allproj=""
22380 allpcfiles=""
22381 allpcifiles=""
22382 while test "x$projtoprocess" != x ; do
22383
22384 for proj in $projtoprocess ; do
22385 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22386 pcfile=""
22387 save_IFS="$IFS"
22388 IFS=":"
22389 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22390 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
22391 if test -r "$dir/${proj}-uninstalled.pc" ; then
22392 pcfile="$dir/$proj-uninstalled.pc"
22393 if test -r "$dir/${proj}.pc" ; then
22394 pcifile="$dir/${proj}.pc"
22395 else
22396 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22397 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22398 pcifile=
22399 fi
22400 break
22401 fi
22402 done
22403 IFS="$save_IFS"
22404
22405 if test "x$pcfile" != x ; then
22406 # read dependencies from $pcfile and filter it
22407 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
22408
22409 # add projrequires to the front of the list of projects that have to be processed next
22410 # at the same time, remove $proj from this list
22411 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22412
22413 # read DATA from $pcfile, if _DATA is still empty
22414 if test "x$SAMPLE_DATA" = x ; then
22415 projdatadir=
22416 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22417 eval `sh -c "$pcfilemod"`
22418 SAMPLE_DATA="$projdatadir"
22419 fi
22420
22421 allproj="$allproj $proj"
22422 allpcfiles="$pcfile:$allpcfiles"
22423
22424 else
22425 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22426 echo "${ECHO_T}no, dependency $proj not available" >&6
22427 allproj=fail
22428 break 2
22429 fi
22430
22431 if test "x$pcifile" != x ; then
22432 allpcifiles="$pcifile:$allpcifiles"
22433
22434 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22435 if test "x$SAMPLE_DATA_INSTALLED" = x ; then
22436 projdatadir=
22437 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22438 eval `sh -c "$pcifilemod"`
22439 if test "${CYGPATH_W}" != "echo"; then
22440 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22441 fi
22442 SAMPLE_DATA_INSTALLED="$projdatadir"
22443 fi
22444
22445 fi
22446
22447 break
22448 done
22449
22450 # remove spaces on begin of $projtoprocess
22451 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22452
22453 done
22454
22455 if test "$allproj" != fail ; then
22456
22457 # now go through the list of .pc files and assemble compiler and linker flags
22458 # important is here to obey the reverse order that has been setup before,
22459 # since then libraries that are required by several others should be after these other libraries
22460 pcfilesprocessed=""
22461
22462 save_IFS="$IFS"
22463 IFS=":"
22464 for pcfile in $allpcfiles ; do
22465
22466 # if $pcfile has been processed already, skip this round
22467 if test "x$pcfilesprocessed" != x ; then
22468 for pcfiledone in $pcfilesprocessed ; do
22469 if test "$pcfiledone" = "$pcfile" ; then
22470 continue 2
22471 fi
22472 done
22473 fi
22474
22475 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22476 # replace "Libs:" by "echo projlibs="
22477 # replace "Cflags:" by "echo projcflags="
22478 # remove every line starting with <some word>:
22479 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22480
22481 # set projcflags and projlibs variables by running $pcfilemod
22482 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22483 projcflags=
22484 projlibs=
22485 IFS="$save_IFS"
22486 eval `sh -c "$pcfilemod"`
22487 IFS=":"
22488
22489 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22490 if test "${CYGPATH_W}" != "echo"; then
22491 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22492 fi
22493 SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS"
22494
22495 # set LIBS variable
22496 SAMPLE_LIBS="$projlibs $SAMPLE_LIBS"
22497
22498 # remember that we have processed $pcfile
22499 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22500
22501 done
22502 IFS="$save_IFS"
22503
22504
22505 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22506 # important is here again to obey the reverse order that has been setup before,
22507 # since then libraries that are required by several others should be after these other libraries
22508 pcfilesprocessed=""
22509
22510 save_IFS="$IFS"
22511 IFS=":"
22512 for pcfile in $allpcifiles ; do
22513
22514 # if $pcfile has been processed already, skip this round
22515 if test "x$pcfilesprocessed" != x ; then
22516 for pcfiledone in $pcfilesprocessed ; do
22517 if test "$pcfiledone" = "$pcfile" ; then
22518 continue 2
22519 fi
22520 done
22521 fi
22522
22523 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22524 # replace "Libs:" by "echo projlibs="
22525 # replace "Cflags:" by "echo projcflags="
22526 # remove every line starting with <some word>:
22527 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22528
22529 # set projcflags and projlibs variables by running $pcfilemod
22530 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22531 projcflags=
22532 projlibs=
22533 IFS="$save_IFS"
22534 eval `sh -c "$pcfilemod"`
22535 IFS=":"
22536
22537 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22538 if test "${CYGPATH_W}" != "echo"; then
22539 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22540 fi
22541 SAMPLE_CFLAGS_INSTALLED="$projcflags $SAMPLE_CFLAGS_INSTALLED"
22542
22543 # set LIBS variable
22544 SAMPLE_LIBS_INSTALLED="$projlibs $SAMPLE_LIBS_INSTALLED"
22545
22546 # remember that we have processed $pcfile
22547 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22548
22549 done
22550 IFS="$save_IFS"
22551
22552
22553 # finish up
22554 coin_has_sample=yes
22555 echo "$as_me:$LINENO: result: yes" >&5
22556 echo "${ECHO_T}yes" >&6
22557
22558 cat >>confdefs.h <<\_ACEOF
22559 #define COIN_HAS_SAMPLE 1
22560 _ACEOF
22561
22562
22563 # adjust linker flags for (i)cl compiler
22564 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
22565 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22566 # everything of the form "-lname" by "libname.lib", and
22567 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22568 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22569 then
22570 SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22571 SAMPLE_LIBS_INSTALLED=`echo " $SAMPLE_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22572 fi
22573
22574 SAMPLE_PCREQUIRES="coindatasample"
22575
22576
22577 fi
22578
22579
22580
22581 if test $coin_has_sample != notGiven &&
22582 test $coin_has_sample != skipping; then
22583 COIN_HAS_SAMPLE_TRUE=
22584 COIN_HAS_SAMPLE_FALSE='#'
22585 else
22586 COIN_HAS_SAMPLE_TRUE='#'
22587 COIN_HAS_SAMPLE_FALSE=
22588 fi
22589
22590
22591
22592 fi
22593
22594 else
22595 echo "$as_me:$LINENO: result: $coin_has_sample" >&5
22596 echo "${ECHO_T}$coin_has_sample" >&6
22597 fi
22598
22599 if test $coin_has_sample != skipping &&
22600 test $coin_has_sample != notGiven ; then
22601
22602 cat >>confdefs.h <<\_ACEOF
22603 #define COIN_HAS_SAMPLE 1
22604 _ACEOF
22605
22606
22607 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22608 if test "${enable_interpackage_dependencies+set}" = set; then
22609 enableval="$enable_interpackage_dependencies"
22610
22611 else
22612 enable_interpackage_dependencies=yes
22613 fi;
22614
22615 if test $enable_interpackage_dependencies = yes ; then
22616 # construct dependencies variables from LIBS variables
22617 # we add an extra space in LIBS so we can substitute out everything starting with " -"
22618 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22619 # then remove everything of the form -xxx
22620 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22621 SAMPLE_DEPENDENCIES=`echo " $SAMPLE_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22622
22623 fi
22624
22625 if test 1 = 0 ; then #change this test to enable a bit of debugging output
22626 if test -n "$SAMPLE_CFLAGS" ; then
22627 { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
22628 echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
22629 fi
22630 if test -n "$SAMPLE_LIBS" ; then
22631 { echo "$as_me:$LINENO: Sample LIBS are $SAMPLE_LIBS" >&5
22632 echo "$as_me: Sample LIBS are $SAMPLE_LIBS" >&6;}
22633 fi
22634 if test -n "$SAMPLE_DEPENDENCIES" ; then
22635 { echo "$as_me:$LINENO: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&5
22636 echo "$as_me: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&6;}
22637 fi
22638 if test -n "$SAMPLE_DATA" ; then
22639 { echo "$as_me:$LINENO: Sample DATA is $SAMPLE_DATA" >&5
22640 echo "$as_me: Sample DATA is $SAMPLE_DATA" >&6;}
22641 fi
22642 if test -n "$SAMPLE_PCLIBS" ; then
22643 { echo "$as_me:$LINENO: Sample PCLIBS are $SAMPLE_PCLIBS" >&5
22644 echo "$as_me: Sample PCLIBS are $SAMPLE_PCLIBS" >&6;}
22645 fi
22646 if test -n "$SAMPLE_PCREQUIRES" ; then
22647 { echo "$as_me:$LINENO: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&5
22648 echo "$as_me: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&6;}
22649 fi
22650
22651 fi
22652 fi
22653
22654 # Define the Makefile conditional
22655
22656
22657 if test $coin_has_sample != notGiven &&
22658 test $coin_has_sample != skipping; then
22659 COIN_HAS_SAMPLE_TRUE=
22660 COIN_HAS_SAMPLE_FALSE='#'
22661 else
22662 COIN_HAS_SAMPLE_TRUE='#'
22663 COIN_HAS_SAMPLE_FALSE=
22664 fi
22665
22666
22667
22668
22669 ##############################################################################
22670 # VPATH links for example input files #
22671 ##############################################################################
22672
22673 # In case this is a VPATH configuration we need to make sure that the
22674 # input files for the examples are available in the VPATH directory.
22675
22676
22677 echo "$as_me:$LINENO: checking whether this is a VPATH configuration" >&5
22678 echo $ECHO_N "checking whether this is a VPATH configuration... $ECHO_C" >&6
22679 if test `cd $srcdir; pwd` != `pwd`; then
22680 coin_vpath_config=yes;
22681 else
22682 coin_vpath_config=no;
22683 fi
22684 echo "$as_me:$LINENO: result: $coin_vpath_config" >&5
22685 echo "${ECHO_T}$coin_vpath_config" >&6
22686
22687
22688
22689 # Allow for newlines in the parameter
22690 if test $coin_vpath_config = yes; then
22691 cvl_tmp="examples/VolUfl/ufl.par"
22692 for file in $cvl_tmp ; do
22693 coin_vpath_link_files="$coin_vpath_link_files $file"
22694 done
22695 fi
22696
22697
22698
22699 # Allow for newlines in the parameter
22700 if test $coin_vpath_config = yes; then
22701 cvl_tmp="examples/VolUfl/data.gz"
22702 for file in $cvl_tmp ; do
22703 coin_vpath_link_files="$coin_vpath_link_files $file"
22704 done
22705 fi
22706
22707
22708
22709 # Allow for newlines in the parameter
22710 if test $coin_vpath_config = yes; then
22711 cvl_tmp="examples/Volume-LP/data.mps.gz"
22712 for file in $cvl_tmp ; do
22713 coin_vpath_link_files="$coin_vpath_link_files $file"
22714 done
22715 fi
22716
22717
22718
22719 # Allow for newlines in the parameter
22720 if test $coin_vpath_config = yes; then
22721 cvl_tmp="examples/Volume-LP/lp.par"
22722 for file in $cvl_tmp ; do
22723 coin_vpath_link_files="$coin_vpath_link_files $file"
22724 done
22725 fi
22726
22727
22728 # Setup doxygen
22729
22730
22731 { echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
22732 echo "$as_me: configuring doxygen documentation options" >&6;}
22733
22734 # Check to see if doxygen is available.
22735
22736 # Extract the first word of "doxygen", so it can be a program name with args.
22737 set dummy doxygen; ac_word=$2
22738 echo "$as_me:$LINENO: checking for $ac_word" >&5
22739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22740 if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
22741 echo $ECHO_N "(cached) $ECHO_C" >&6
22742 else
22743 if test -n "$coin_have_doxygen"; then
22744 ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
22745 else
22746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22747 for as_dir in $PATH
22748 do
22749 IFS=$as_save_IFS
22750 test -z "$as_dir" && as_dir=.
22751 for ac_exec_ext in '' $ac_executable_extensions; do
22752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22753 ac_cv_prog_coin_have_doxygen="yes"
22754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22755 break 2
22756 fi
22757 done
22758 done
22759
22760 test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
22761 fi
22762 fi
22763 coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
22764 if test -n "$coin_have_doxygen"; then
22765 echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
22766 echo "${ECHO_T}$coin_have_doxygen" >&6
22767 else
22768 echo "$as_me:$LINENO: result: no" >&5
22769 echo "${ECHO_T}no" >&6
22770 fi
22771
22772 # Extract the first word of "latex", so it can be a program name with args.
22773 set dummy latex; ac_word=$2
22774 echo "$as_me:$LINENO: checking for $ac_word" >&5
22775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22776 if test "${ac_cv_prog_coin_have_latex+set}" = set; then
22777 echo $ECHO_N "(cached) $ECHO_C" >&6
22778 else
22779 if test -n "$coin_have_latex"; then
22780 ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
22781 else
22782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22783 for as_dir in $PATH
22784 do
22785 IFS=$as_save_IFS
22786 test -z "$as_dir" && as_dir=.
22787 for ac_exec_ext in '' $ac_executable_extensions; do
22788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22789 ac_cv_prog_coin_have_latex="yes"
22790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22791 break 2
22792 fi
22793 done
22794 done
22795
22796 test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
22797 fi
22798 fi
22799 coin_have_latex=$ac_cv_prog_coin_have_latex
22800 if test -n "$coin_have_latex"; then
22801 echo "$as_me:$LINENO: result: $coin_have_latex" >&5
22802 echo "${ECHO_T}$coin_have_latex" >&6
22803 else
22804 echo "$as_me:$LINENO: result: no" >&5
22805 echo "${ECHO_T}no" >&6
22806 fi
22807
22808
22809 # Look for the dot tool from the graphviz package, unless the user has
22810 # disabled it.
22811
22812
22813 # Check whether --with-dot or --without-dot was given.
22814 if test "${with_dot+set}" = set; then
22815 withval="$with_dot"
22816
22817 else
22818 withval=yes
22819 fi;
22820 if test x"$withval" = xno ; then
22821 coin_doxy_usedot=NO
22822 echo "$as_me:$LINENO: checking for dot " >&5
22823 echo $ECHO_N "checking for dot ... $ECHO_C" >&6
22824 echo "$as_me:$LINENO: result: disabled" >&5
22825 echo "${ECHO_T}disabled" >&6
22826 else
22827 # Extract the first word of "dot", so it can be a program name with args.
22828 set dummy dot; ac_word=$2
22829 echo "$as_me:$LINENO: checking for $ac_word" >&5
22830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22831 if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
22832 echo $ECHO_N "(cached) $ECHO_C" >&6
22833 else
22834 if test -n "$coin_doxy_usedot"; then
22835 ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
22836 else
22837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22838 for as_dir in $PATH
22839 do
22840 IFS=$as_save_IFS
22841 test -z "$as_dir" && as_dir=.
22842 for ac_exec_ext in '' $ac_executable_extensions; do
22843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22844 ac_cv_prog_coin_doxy_usedot="YES"
22845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22846 break 2
22847 fi
22848 done
22849 done
22850
22851 test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
22852 fi
22853 fi
22854 coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
22855 if test -n "$coin_doxy_usedot"; then
22856 echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
22857 echo "${ECHO_T}$coin_doxy_usedot" >&6
22858 else
22859 echo "$as_me:$LINENO: result: no" >&5
22860 echo "${ECHO_T}no" >&6
22861 fi
22862
22863 fi
22864
22865 # Generate a tag file name and a log file name
22866
22867 coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
22868
22869 coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
22870
22871
22872
22873 if test $coin_have_doxygen = yes; then
22874 COIN_HAS_DOXYGEN_TRUE=
22875 COIN_HAS_DOXYGEN_FALSE='#'
22876 else
22877 COIN_HAS_DOXYGEN_TRUE='#'
22878 COIN_HAS_DOXYGEN_FALSE=
22879 fi
22880
22881
22882
22883 if test $coin_have_latex = yes; then
22884 COIN_HAS_LATEX_TRUE=
22885 COIN_HAS_LATEX_FALSE='#'
22886 else
22887 COIN_HAS_LATEX_TRUE='#'
22888 COIN_HAS_LATEX_FALSE=
22889 fi
22890
22891
22892 # Process the list of project names and massage them into possible doxygen
22893 # doc'n directories. Prefer 1) classic external, source processed using
22894 # a project-specific doxygen.conf, we use the tag file; 2) classic
22895 # external, source processed using package doxygen.conf; 3) installed
22896 # doxydoc. Alternatives 1) and 2) are only possible if the directory will be
22897 # configured, which we can't know unless this is the package base configure,
22898 # since coin_subdirs is only set there. Hence it's sufficient to check for
22899 # membership. If we use a tag file from a classic external, exclude the
22900 # source from doxygen processing when doxygen runs in the base directory.
22901
22902 coin_doxy_tagfiles=
22903 coin_doxy_excludes=
22904 tmp="CoinUtils Osi"
22905 for proj in $tmp ; do
22906 lc_proj=`echo $proj | tr [A-Z] [a-z]`
22907 echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
22908 echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
22909 doxytag=${lc_proj}_doxy.tag
22910 doxyfound=no
22911 # proj will be configured, hence doxydoc present in build tree
22912 doxysrcdir="${srcdir}/../${proj}"
22913 # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
22914 if test -d "$doxysrcdir" ; then
22915 # with a doxydoc directory?
22916 doxydir="$doxysrcdir/doxydoc"
22917 # AC_MSG_NOTICE([Considering $doxydir (base)])
22918 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
22919 if test -d "$doxydir" ; then
22920 # use tag file; don't process source
22921 doxydir="../${proj}/doxydoc"
22922 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
22923 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
22924 echo "${ECHO_T}$doxydir (tag)" >&6
22925 coin_doxy_excludes="$coin_doxy_excludes */${proj}"
22926 else
22927 # will process the source -- nothing further to be done here
22928 echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
22929 echo "${ECHO_T}$doxysrcdir (src)" >&6
22930 fi
22931 doxyfound=yes
22932 fi
22933 # Not built, fall back to installed tag file
22934 if test $doxyfound = no ; then
22935 eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
22936 # AC_MSG_NOTICE([Considering $doxydir (install)])
22937 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
22938 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
22939 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
22940 echo "${ECHO_T}$doxydir (tag)" >&6
22941 fi
22942 done
22943
22944
22945
22946
22947
22948 ##############################################################################
22949 # Finishing up by writing all the output #
22950 ##############################################################################
22951
22952 # Here list all the files that configure should create (except for the
22953 # configuration header file)
22954 ac_config_files="$ac_config_files Makefile examples/VolLp/Makefile examples/VolUfl/Makefile examples/Volume-LP/Makefile src/Makefile src/OsiVol/Makefile test/Makefile doxydoc/doxygen.conf vol.pc vol-uninstalled.pc"
22955
22956
22957 if test $coin_has_osi = yes ; then
22958 ac_config_files="$ac_config_files osi-vol.pc:src/OsiVol/osi-vol.pc.in osi-vol-uninstalled.pc:src/OsiVol/osi-vol-uninstalled.pc.in"
22959
22960 fi
22961
22962 # even though we do not use the config_vol.h file, we config a header file here
22963 # this is for the compilation of OsiVol, which works much better with -DHAVE_CONFIG_H
22964 # instead of a list of single defines (-DPACKAGE_NAME=...) in the compiler flags
22965 ac_config_headers="$ac_config_headers inc/config_vol.h"
22966
22967
22968 # Finally, we let configure write all the output...
22969
22970
22971
22972
22973 echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
22974 echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
22975 coin_link_input_cmd="$LN_S"
22976 case "$CC" in
22977 clang* ) ;;
22978 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22979 coin_link_input_cmd=cp ;;
22980 esac
22981 echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
22982 echo "${ECHO_T}$coin_link_input_cmd" >&6
22983
22984
22985
22986 if test x$coin_skip_ac_output != xyes; then
22987
22988 # library extension
22989
22990 case "$CC" in
22991 clang* )
22992 LIBEXT=a ;;
22993 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22994 LIBEXT=lib ;;
22995 *) LIBEXT=a ;;
22996 esac
22997
22998 # Define VPATH_DISTCLEANFILES to be everything that needs to be
22999 # cleaned for distclean in a vpath configuration
23000
23001 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
23002
23003 # Take out subdirectories if their configuration concluded that they
23004 # don't need to be compiled
23005 if test x"$coin_ac_skip_subdirs" != x; then
23006 new_subdirs=
23007 for i in $subdirs; do
23008 skipme=no
23009 for j in $coin_ac_skip_subdirs; do
23010 if test $i = $j; then
23011 skipme=yes;
23012 fi
23013 done
23014 if test $skipme = no; then
23015 new_subdirs="$new_subdirs $i"
23016 fi
23017 done
23018 subdirs="$new_subdirs"
23019 fi
23020
23021 # need to come before AC_OUTPUT
23022 if test x$coin_projectdir != xyes; then
23023 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
23024 echo $coin_subdirs > coin_subdirs.txt
23025 else
23026 # substitute for OBJDIR, needed to setup .pc file for uninstalled project
23027 ABSBUILDDIR="`pwd`"
23028
23029 fi
23030
23031 cat >confcache <<\_ACEOF
23032 # This file is a shell script that caches the results of configure
23033 # tests run on this system so they can be shared between configure
23034 # scripts and configure runs, see configure's option --config-cache.
23035 # It is not useful on other systems. If it contains results you don't
23036 # want to keep, you may remove or edit it.
23037 #
23038 # config.status only pays attention to the cache file if you give it
23039 # the --recheck option to rerun configure.
23040 #
23041 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23042 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23043 # following values.
23044
23045 _ACEOF
23046
23047 # The following way of writing the cache mishandles newlines in values,
23048 # but we know of no workaround that is simple, portable, and efficient.
23049 # So, don't put newlines in cache variables' values.
23050 # Ultrix sh set writes to stderr and can't be redirected directly,
23051 # and sets the high bit in the cache file unless we assign to the vars.
23052 {
23053 (set) 2>&1 |
23054 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23055 *ac_space=\ *)
23056 # `set' does not quote correctly, so add quotes (double-quote
23057 # substitution turns \\\\ into \\, and sed turns \\ into \).
23058 sed -n \
23059 "s/'/'\\\\''/g;
23060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23061 ;;
23062 *)
23063 # `set' quotes correctly as required by POSIX, so do not add quotes.
23064 sed -n \
23065 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23066 ;;
23067 esac;
23068 } |
23069 sed '
23070 t clear
23071 : clear
23072 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23073 t end
23074 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23075 : end' >>confcache
23076 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23077 if test -w $cache_file; then
23078 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23079 cat confcache >$cache_file
23080 else
23081 echo "not updating unwritable cache $cache_file"
23082 fi
23083 fi
23084 rm -f confcache
23085
23086 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23087 # Let make expand exec_prefix.
23088 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23089
23090 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23091 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23092 # trailing colons and then remove the whole line if VPATH becomes empty
23093 # (actually we leave an empty line to preserve line numbers).
23094 if test "x$srcdir" = x.; then
23095 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23096 s/:*\$(srcdir):*/:/;
23097 s/:*\${srcdir}:*/:/;
23098 s/:*@srcdir@:*/:/;
23099 s/^\([^=]*=[ ]*\):*/\1/;
23100 s/:*$//;
23101 s/^[^=]*=[ ]*$//;
23102 }'
23103 fi
23104
23105 DEFS=-DHAVE_CONFIG_H
23106
23107 ac_libobjs=
23108 ac_ltlibobjs=
23109 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23110 # 1. Remove the extension, and $U if already installed.
23111 ac_i=`echo "$ac_i" |
23112 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23113 # 2. Add them.
23114 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23115 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23116 done
23117 LIBOBJS=$ac_libobjs
23118
23119 LTLIBOBJS=$ac_ltlibobjs
23120
23121
23122 if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
23123 { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
23124 Usually this means the macro was only invoked conditionally." >&5
23125 echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
23126 Usually this means the macro was only invoked conditionally." >&2;}
23127 { (exit 1); exit 1; }; }
23128 fi
23129 if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
23130 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
23131 Usually this means the macro was only invoked conditionally." >&5
23132 echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
23133 Usually this means the macro was only invoked conditionally." >&2;}
23134 { (exit 1); exit 1; }; }
23135 fi
23136 if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
23137 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
23138 Usually this means the macro was only invoked conditionally." >&5
23139 echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
23140 Usually this means the macro was only invoked conditionally." >&2;}
23141 { (exit 1); exit 1; }; }
23142 fi
23143 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23144 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23145 Usually this means the macro was only invoked conditionally." >&5
23146 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23147 Usually this means the macro was only invoked conditionally." >&2;}
23148 { (exit 1); exit 1; }; }
23149 fi
23150 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23151 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23152 Usually this means the macro was only invoked conditionally." >&5
23153 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23154 Usually this means the macro was only invoked conditionally." >&2;}
23155 { (exit 1); exit 1; }; }
23156 fi
23157 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23158 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23159 Usually this means the macro was only invoked conditionally." >&5
23160 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23161 Usually this means the macro was only invoked conditionally." >&2;}
23162 { (exit 1); exit 1; }; }
23163 fi
23164 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23165 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23166 Usually this means the macro was only invoked conditionally." >&5
23167 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23168 Usually this means the macro was only invoked conditionally." >&2;}
23169 { (exit 1); exit 1; }; }
23170 fi
23171 if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
23172 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
23173 Usually this means the macro was only invoked conditionally." >&5
23174 echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
23175 Usually this means the macro was only invoked conditionally." >&2;}
23176 { (exit 1); exit 1; }; }
23177 fi
23178 if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
23179 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
23180 Usually this means the macro was only invoked conditionally." >&5
23181 echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
23182 Usually this means the macro was only invoked conditionally." >&2;}
23183 { (exit 1); exit 1; }; }
23184 fi
23185 if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
23186 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
23187 Usually this means the macro was only invoked conditionally." >&5
23188 echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
23189 Usually this means the macro was only invoked conditionally." >&2;}
23190 { (exit 1); exit 1; }; }
23191 fi
23192 if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
23193 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
23194 Usually this means the macro was only invoked conditionally." >&5
23195 echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
23196 Usually this means the macro was only invoked conditionally." >&2;}
23197 { (exit 1); exit 1; }; }
23198 fi
23199 if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
23200 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
23201 Usually this means the macro was only invoked conditionally." >&5
23202 echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
23203 Usually this means the macro was only invoked conditionally." >&2;}
23204 { (exit 1); exit 1; }; }
23205 fi
23206 if test -z "${COIN_HAS_OSI_TRUE}" && test -z "${COIN_HAS_OSI_FALSE}"; then
23207 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSI\" was never defined.
23208 Usually this means the macro was only invoked conditionally." >&5
23209 echo "$as_me: error: conditional \"COIN_HAS_OSI\" was never defined.
23210 Usually this means the macro was only invoked conditionally." >&2;}
23211 { (exit 1); exit 1; }; }
23212 fi
23213 if test -z "${COIN_HAS_OSI_TRUE}" && test -z "${COIN_HAS_OSI_FALSE}"; then
23214 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSI\" was never defined.
23215 Usually this means the macro was only invoked conditionally." >&5
23216 echo "$as_me: error: conditional \"COIN_HAS_OSI\" was never defined.
23217 Usually this means the macro was only invoked conditionally." >&2;}
23218 { (exit 1); exit 1; }; }
23219 fi
23220 if test -z "${COIN_HAS_OSITESTS_TRUE}" && test -z "${COIN_HAS_OSITESTS_FALSE}"; then
23221 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
23222 Usually this means the macro was only invoked conditionally." >&5
23223 echo "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
23224 Usually this means the macro was only invoked conditionally." >&2;}
23225 { (exit 1); exit 1; }; }
23226 fi
23227 if test -z "${COIN_HAS_OSITESTS_TRUE}" && test -z "${COIN_HAS_OSITESTS_FALSE}"; then
23228 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
23229 Usually this means the macro was only invoked conditionally." >&5
23230 echo "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
23231 Usually this means the macro was only invoked conditionally." >&2;}
23232 { (exit 1); exit 1; }; }
23233 fi
23234 if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
23235 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
23236 Usually this means the macro was only invoked conditionally." >&5
23237 echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
23238 Usually this means the macro was only invoked conditionally." >&2;}
23239 { (exit 1); exit 1; }; }
23240 fi
23241 if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
23242 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
23243 Usually this means the macro was only invoked conditionally." >&5
23244 echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
23245 Usually this means the macro was only invoked conditionally." >&2;}
23246 { (exit 1); exit 1; }; }
23247 fi
23248 if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
23249 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
23250 Usually this means the macro was only invoked conditionally." >&5
23251 echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
23252 Usually this means the macro was only invoked conditionally." >&2;}
23253 { (exit 1); exit 1; }; }
23254 fi
23255 if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
23256 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
23257 Usually this means the macro was only invoked conditionally." >&5
23258 echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
23259 Usually this means the macro was only invoked conditionally." >&2;}
23260 { (exit 1); exit 1; }; }
23261 fi
23262
23263 : ${CONFIG_STATUS=./config.status}
23264 ac_clean_files_save=$ac_clean_files
23265 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23266 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23267 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23268 cat >$CONFIG_STATUS <<_ACEOF
23269 #! $SHELL
23270 # Generated by $as_me.
23271 # Run this file to recreate the current configuration.
23272 # Compiler output produced by configure, useful for debugging
23273 # configure, is in config.log if it exists.
23274
23275 debug=false
23276 ac_cs_recheck=false
23277 ac_cs_silent=false
23278 SHELL=\${CONFIG_SHELL-$SHELL}
23279 _ACEOF
23280
23281 cat >>$CONFIG_STATUS <<\_ACEOF
23282 ## --------------------- ##
23283 ## M4sh Initialization. ##
23284 ## --------------------- ##
23285
23286 # Be Bourne compatible
23287 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23288 emulate sh
23289 NULLCMD=:
23290 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23291 # is contrary to our usage. Disable this feature.
23292 alias -g '${1+"$@"}'='"$@"'
23293 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23294 set -o posix
23295 fi
23296 DUALCASE=1; export DUALCASE # for MKS sh
23297
23298 # Support unset when possible.
23299 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23300 as_unset=unset
23301 else
23302 as_unset=false
23303 fi
23304
23305
23306 # Work around bugs in pre-3.0 UWIN ksh.
23307 $as_unset ENV MAIL MAILPATH
23308 PS1='$ '
23309 PS2='> '
23310 PS4='+ '
23311
23312 # NLS nuisances.
23313 for as_var in \
23314 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23315 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23316 LC_TELEPHONE LC_TIME
23317 do
23318 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23319 eval $as_var=C; export $as_var
23320 else
23321 $as_unset $as_var
23322 fi
23323 done
23324
23325 # Required to use basename.
23326 if expr a : '\(a\)' >/dev/null 2>&1; then
23327 as_expr=expr
23328 else
23329 as_expr=false
23330 fi
23331
23332 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23333 as_basename=basename
23334 else
23335 as_basename=false
23336 fi
23337
23338
23339 # Name of the executable.
23340 as_me=`$as_basename "$0" ||
23341 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23342 X"$0" : 'X\(//\)$' \| \
23343 X"$0" : 'X\(/\)$' \| \
23344 . : '\(.\)' 2>/dev/null ||
23345 echo X/"$0" |
23346 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23347 /^X\/\(\/\/\)$/{ s//\1/; q; }
23348 /^X\/\(\/\).*/{ s//\1/; q; }
23349 s/.*/./; q'`
23350
23351
23352 # PATH needs CR, and LINENO needs CR and PATH.
23353 # Avoid depending upon Character Ranges.
23354 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23355 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23356 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23357 as_cr_digits='0123456789'
23358 as_cr_alnum=$as_cr_Letters$as_cr_digits
23359
23360 # The user is always right.
23361 if test "${PATH_SEPARATOR+set}" != set; then
23362 echo "#! /bin/sh" >conf$$.sh
23363 echo "exit 0" >>conf$$.sh
23364 chmod +x conf$$.sh
23365 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23366 PATH_SEPARATOR=';'
23367 else
23368 PATH_SEPARATOR=:
23369 fi
23370 rm -f conf$$.sh
23371 fi
23372
23373
23374 as_lineno_1=$LINENO
23375 as_lineno_2=$LINENO
23376 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23377 test "x$as_lineno_1" != "x$as_lineno_2" &&
23378 test "x$as_lineno_3" = "x$as_lineno_2" || {
23379 # Find who we are. Look in the path if we contain no path at all
23380 # relative or not.
23381 case $0 in
23382 *[\\/]* ) as_myself=$0 ;;
23383 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23384 for as_dir in $PATH
23385 do
23386 IFS=$as_save_IFS
23387 test -z "$as_dir" && as_dir=.
23388 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23389 done
23390
23391 ;;
23392 esac
23393 # We did not find ourselves, most probably we were run as `sh COMMAND'
23394 # in which case we are not to be found in the path.
23395 if test "x$as_myself" = x; then
23396 as_myself=$0
23397 fi
23398 if test ! -f "$as_myself"; then
23399 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23400 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23401 { (exit 1); exit 1; }; }
23402 fi
23403 case $CONFIG_SHELL in
23404 '')
23405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23406 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23407 do
23408 IFS=$as_save_IFS
23409 test -z "$as_dir" && as_dir=.
23410 for as_base in sh bash ksh sh5; do
23411 case $as_dir in
23412 /*)
23413 if ("$as_dir/$as_base" -c '
23414 as_lineno_1=$LINENO
23415 as_lineno_2=$LINENO
23416 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23417 test "x$as_lineno_1" != "x$as_lineno_2" &&
23418 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23419 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23420 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23421 CONFIG_SHELL=$as_dir/$as_base
23422 export CONFIG_SHELL
23423 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23424 fi;;
23425 esac
23426 done
23427 done
23428 ;;
23429 esac
23430
23431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23432 # uniformly replaced by the line number. The first 'sed' inserts a
23433 # line-number line before each line; the second 'sed' does the real
23434 # work. The second script uses 'N' to pair each line-number line
23435 # with the numbered line, and appends trailing '-' during
23436 # substitution so that $LINENO is not a special case at line end.
23437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23438 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23439 sed '=' <$as_myself |
23440 sed '
23441 N
23442 s,$,-,
23443 : loop
23444 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23445 t loop
23446 s,-$,,
23447 s,^['$as_cr_digits']*\n,,
23448 ' >$as_me.lineno &&
23449 chmod +x $as_me.lineno ||
23450 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23451 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23452 { (exit 1); exit 1; }; }
23453
23454 # Don't try to exec as it changes $[0], causing all sort of problems
23455 # (the dirname of $[0] is not the place where we might find the
23456 # original and so on. Autoconf is especially sensible to this).
23457 . ./$as_me.lineno
23458 # Exit status is that of the last command.
23459 exit
23460 }
23461
23462
23463 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23464 *c*,-n*) ECHO_N= ECHO_C='
23465 ' ECHO_T=' ' ;;
23466 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23467 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23468 esac
23469
23470 if expr a : '\(a\)' >/dev/null 2>&1; then
23471 as_expr=expr
23472 else
23473 as_expr=false
23474 fi
23475
23476 rm -f conf$$ conf$$.exe conf$$.file
23477 echo >conf$$.file
23478 if ln -s conf$$.file conf$$ 2>/dev/null; then
23479 # We could just check for DJGPP; but this test a) works b) is more generic
23480 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23481 if test -f conf$$.exe; then
23482 # Don't use ln at all; we don't have any links
23483 as_ln_s='cp -p'
23484 else
23485 as_ln_s='ln -s'
23486 fi
23487 elif ln conf$$.file conf$$ 2>/dev/null; then
23488 as_ln_s=ln
23489 else
23490 as_ln_s='cp -p'
23491 fi
23492 rm -f conf$$ conf$$.exe conf$$.file
23493
23494 if mkdir -p . 2>/dev/null; then
23495 as_mkdir_p=:
23496 else
23497 test -d ./-p && rmdir ./-p
23498 as_mkdir_p=false
23499 fi
23500
23501 as_executable_p="test -f"
23502
23503 # Sed expression to map a string onto a valid CPP name.
23504 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23505
23506 # Sed expression to map a string onto a valid variable name.
23507 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23508
23509
23510 # IFS
23511 # We need space, tab and new line, in precisely that order.
23512 as_nl='
23513 '
23514 IFS=" $as_nl"
23515
23516 # CDPATH.
23517 $as_unset CDPATH
23518
23519 exec 6>&1
23520
23521 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23522 # report actual input values of CONFIG_FILES etc. instead of their
23523 # values after options handling. Logging --version etc. is OK.
23524 exec 5>>config.log
23525 {
23526 echo
23527 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23528 ## Running $as_me. ##
23529 _ASBOX
23530 } >&5
23531 cat >&5 <<_CSEOF
23532
23533 This file was extended by Vol $as_me 1.5.4, which was
23534 generated by GNU Autoconf 2.59. Invocation command line was
23535
23536 CONFIG_FILES = $CONFIG_FILES
23537 CONFIG_HEADERS = $CONFIG_HEADERS
23538 CONFIG_LINKS = $CONFIG_LINKS
23539 CONFIG_COMMANDS = $CONFIG_COMMANDS
23540 $ $0 $@
23541
23542 _CSEOF
23543 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23544 echo >&5
23545 _ACEOF
23546
23547 # Files that config.status was made for.
23548 if test -n "$ac_config_files"; then
23549 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23550 fi
23551
23552 if test -n "$ac_config_headers"; then
23553 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23554 fi
23555
23556 if test -n "$ac_config_links"; then
23557 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23558 fi
23559
23560 if test -n "$ac_config_commands"; then
23561 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23562 fi
23563
23564 cat >>$CONFIG_STATUS <<\_ACEOF
23565
23566 ac_cs_usage="\
23567 \`$as_me' instantiates files from templates according to the
23568 current configuration.
23569
23570 Usage: $0 [OPTIONS] [FILE]...
23571
23572 -h, --help print this help, then exit
23573 -V, --version print version number, then exit
23574 -q, --quiet do not print progress messages
23575 -d, --debug don't remove temporary files
23576 --recheck update $as_me by reconfiguring in the same conditions
23577 --file=FILE[:TEMPLATE]
23578 instantiate the configuration file FILE
23579 --header=FILE[:TEMPLATE]
23580 instantiate the configuration header FILE
23581
23582 Configuration files:
23583 $config_files
23584
23585 Configuration headers:
23586 $config_headers
23587
23588 Configuration commands:
23589 $config_commands
23590
23591 Report bugs to <[email protected]>."
23592 _ACEOF
23593
23594 cat >>$CONFIG_STATUS <<_ACEOF
23595 ac_cs_version="\\
23596 Vol config.status 1.5.4
23597 configured by $0, generated by GNU Autoconf 2.59,
23598 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23599
23600 Copyright (C) 2003 Free Software Foundation, Inc.
23601 This config.status script is free software; the Free Software Foundation
23602 gives unlimited permission to copy, distribute and modify it."
23603 srcdir=$srcdir
23604 INSTALL="$INSTALL"
23605 _ACEOF
23606
23607 cat >>$CONFIG_STATUS <<\_ACEOF
23608 # If no file are specified by the user, then we need to provide default
23609 # value. By we need to know if files were specified by the user.
23610 ac_need_defaults=:
23611 while test $# != 0
23612 do
23613 case $1 in
23614 --*=*)
23615 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23616 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23617 ac_shift=:
23618 ;;
23619 -*)
23620 ac_option=$1
23621 ac_optarg=$2
23622 ac_shift=shift
23623 ;;
23624 *) # This is not an option, so the user has probably given explicit
23625 # arguments.
23626 ac_option=$1
23627 ac_need_defaults=false;;
23628 esac
23629
23630 case $ac_option in
23631 # Handling of the options.
23632 _ACEOF
23633 cat >>$CONFIG_STATUS <<\_ACEOF
23634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23635 ac_cs_recheck=: ;;
23636 --version | --vers* | -V )
23637 echo "$ac_cs_version"; exit 0 ;;
23638 --he | --h)
23639 # Conflict between --help and --header
23640 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23641 Try \`$0 --help' for more information." >&5
23642 echo "$as_me: error: ambiguous option: $1
23643 Try \`$0 --help' for more information." >&2;}
23644 { (exit 1); exit 1; }; };;
23645 --help | --hel | -h )
23646 echo "$ac_cs_usage"; exit 0 ;;
23647 --debug | --d* | -d )
23648 debug=: ;;
23649 --file | --fil | --fi | --f )
23650 $ac_shift
23651 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23652 ac_need_defaults=false;;
23653 --header | --heade | --head | --hea )
23654 $ac_shift
23655 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23656 ac_need_defaults=false;;
23657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23658 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23659 ac_cs_silent=: ;;
23660
23661 # This is an error.
23662 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23663 Try \`$0 --help' for more information." >&5
23664 echo "$as_me: error: unrecognized option: $1
23665 Try \`$0 --help' for more information." >&2;}
23666 { (exit 1); exit 1; }; } ;;
23667
23668 *) ac_config_targets="$ac_config_targets $1" ;;
23669
23670 esac
23671 shift
23672 done
23673
23674 ac_configure_extra_args=
23675
23676 if $ac_cs_silent; then
23677 exec 6>/dev/null
23678 ac_configure_extra_args="$ac_configure_extra_args --silent"
23679 fi
23680
23681 _ACEOF
23682 cat >>$CONFIG_STATUS <<_ACEOF
23683 if \$ac_cs_recheck; then
23684 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23685 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23686 fi
23687
23688 _ACEOF
23689
23690 cat >>$CONFIG_STATUS <<_ACEOF
23691 #
23692 # INIT-COMMANDS section.
23693 #
23694
23695 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23696
23697 _ACEOF
23698
23699
23700
23701 cat >>$CONFIG_STATUS <<\_ACEOF
23702 for ac_config_target in $ac_config_targets
23703 do
23704 case "$ac_config_target" in
23705 # Handling of arguments.
23706 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23707 "examples/VolLp/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/VolLp/Makefile" ;;
23708 "examples/VolUfl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/VolUfl/Makefile" ;;
23709 "examples/Volume-LP/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Volume-LP/Makefile" ;;
23710 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23711 "src/OsiVol/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiVol/Makefile" ;;
23712 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23713 "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
23714 "vol.pc" ) CONFIG_FILES="$CONFIG_FILES vol.pc" ;;
23715 "vol-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES vol-uninstalled.pc" ;;
23716 "osi-vol.pc" ) CONFIG_FILES="$CONFIG_FILES osi-vol.pc:src/OsiVol/osi-vol.pc.in" ;;
23717 "osi-vol-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-vol-uninstalled.pc:src/OsiVol/osi-vol-uninstalled.pc.in" ;;
23718 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23719 "inc/config_vol.h" ) CONFIG_HEADERS="$CONFIG_HEADERS inc/config_vol.h" ;;
23720 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23721 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23722 { (exit 1); exit 1; }; };;
23723 esac
23724 done
23725
23726 # If the user did not use the arguments to specify the items to instantiate,
23727 # then the envvar interface is used. Set only those that are not.
23728 # We use the long form for the default assignment because of an extremely
23729 # bizarre bug on SunOS 4.1.3.
23730 if $ac_need_defaults; then
23731 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23732 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23733 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23734 fi
23735
23736 # Have a temporary directory for convenience. Make it in the build tree
23737 # simply because there is no reason to put it here, and in addition,
23738 # creating and moving files from /tmp can sometimes cause problems.
23739 # Create a temporary directory, and hook for its removal unless debugging.
23740 $debug ||
23741 {
23742 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23743 trap '{ (exit 1); exit 1; }' 1 2 13 15
23744 }
23745
23746 # Create a (secure) tmp directory for tmp files.
23747
23748 {
23749 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23750 test -n "$tmp" && test -d "$tmp"
23751 } ||
23752 {
23753 tmp=./confstat$$-$RANDOM
23754 (umask 077 && mkdir $tmp)
23755 } ||
23756 {
23757 echo "$me: cannot create a temporary directory in ." >&2
23758 { (exit 1); exit 1; }
23759 }
23760
23761 _ACEOF
23762
23763 cat >>$CONFIG_STATUS <<_ACEOF
23764
23765 #
23766 # CONFIG_FILES section.
23767 #
23768
23769 # No need to generate the scripts if there are no CONFIG_FILES.
23770 # This happens for instance when ./config.status config.h
23771 if test -n "\$CONFIG_FILES"; then
23772 # Protect against being on the right side of a sed subst in config.status.
23773 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23774 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23775 s,@SHELL@,$SHELL,;t t
23776 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23777 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23778 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23779 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23780 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23781 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23782 s,@exec_prefix@,$exec_prefix,;t t
23783 s,@prefix@,$prefix,;t t
23784 s,@program_transform_name@,$program_transform_name,;t t
23785 s,@bindir@,$bindir,;t t
23786 s,@sbindir@,$sbindir,;t t
23787 s,@libexecdir@,$libexecdir,;t t
23788 s,@datadir@,$datadir,;t t
23789 s,@sysconfdir@,$sysconfdir,;t t
23790 s,@sharedstatedir@,$sharedstatedir,;t t
23791 s,@localstatedir@,$localstatedir,;t t
23792 s,@libdir@,$libdir,;t t
23793 s,@includedir@,$includedir,;t t
23794 s,@oldincludedir@,$oldincludedir,;t t
23795 s,@infodir@,$infodir,;t t
23796 s,@mandir@,$mandir,;t t
23797 s,@build_alias@,$build_alias,;t t
23798 s,@host_alias@,$host_alias,;t t
23799 s,@target_alias@,$target_alias,;t t
23800 s,@DEFS@,$DEFS,;t t
23801 s,@ECHO_C@,$ECHO_C,;t t
23802 s,@ECHO_N@,$ECHO_N,;t t
23803 s,@ECHO_T@,$ECHO_T,;t t
23804 s,@LIBS@,$LIBS,;t t
23805 s,@build@,$build,;t t
23806 s,@build_cpu@,$build_cpu,;t t
23807 s,@build_vendor@,$build_vendor,;t t
23808 s,@build_os@,$build_os,;t t
23809 s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
23810 s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
23811 s,@have_svnversion@,$have_svnversion,;t t
23812 s,@VOL_SVN_REV@,$VOL_SVN_REV,;t t
23813 s,@CDEFS@,$CDEFS,;t t
23814 s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
23815 s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
23816 s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
23817 s,@sol_cc_compiler@,$sol_cc_compiler,;t t
23818 s,@CC@,$CC,;t t
23819 s,@CFLAGS@,$CFLAGS,;t t
23820 s,@LDFLAGS@,$LDFLAGS,;t t
23821 s,@CPPFLAGS@,$CPPFLAGS,;t t
23822 s,@ac_ct_CC@,$ac_ct_CC,;t t
23823 s,@EXEEXT@,$EXEEXT,;t t
23824 s,@OBJEXT@,$OBJEXT,;t t
23825 s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
23826 s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
23827 s,@MPICC@,$MPICC,;t t
23828 s,@CXXDEFS@,$CXXDEFS,;t t
23829 s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
23830 s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
23831 s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
23832 s,@CXX@,$CXX,;t t
23833 s,@CXXFLAGS@,$CXXFLAGS,;t t
23834 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23835 s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
23836 s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
23837 s,@MPICXX@,$MPICXX,;t t
23838 s,@EGREP@,$EGREP,;t t
23839 s,@LN_S@,$LN_S,;t t
23840 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23841 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23842 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23843 s,@CYGPATH_W@,$CYGPATH_W,;t t
23844 s,@PACKAGE@,$PACKAGE,;t t
23845 s,@VERSION@,$VERSION,;t t
23846 s,@ACLOCAL@,$ACLOCAL,;t t
23847 s,@AUTOCONF@,$AUTOCONF,;t t
23848 s,@AUTOMAKE@,$AUTOMAKE,;t t
23849 s,@AUTOHEADER@,$AUTOHEADER,;t t
23850 s,@MAKEINFO@,$MAKEINFO,;t t
23851 s,@install_sh@,$install_sh,;t t
23852 s,@STRIP@,$STRIP,;t t
23853 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23854 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23855 s,@mkdir_p@,$mkdir_p,;t t
23856 s,@AWK@,$AWK,;t t
23857 s,@SET_MAKE@,$SET_MAKE,;t t
23858 s,@am__leading_dot@,$am__leading_dot,;t t
23859 s,@AMTAR@,$AMTAR,;t t
23860 s,@am__tar@,$am__tar,;t t
23861 s,@am__untar@,$am__untar,;t t
23862 s,@DEPDIR@,$DEPDIR,;t t
23863 s,@am__include@,$am__include,;t t
23864 s,@am__quote@,$am__quote,;t t
23865 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23866 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23867 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23868 s,@CCDEPMODE@,$CCDEPMODE,;t t
23869 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23870 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23871 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23872 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23873 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23874 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23875 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23876 s,@MAINT@,$MAINT,;t t
23877 s,@LIBTOOLM4@,$LIBTOOLM4,;t t
23878 s,@have_autoconf@,$have_autoconf,;t t
23879 s,@have_automake@,$have_automake,;t t
23880 s,@have_svn@,$have_svn,;t t
23881 s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
23882 s,@AUX_DIR@,$AUX_DIR,;t t
23883 s,@abs_source_dir@,$abs_source_dir,;t t
23884 s,@abs_lib_dir@,$abs_lib_dir,;t t
23885 s,@abs_include_dir@,$abs_include_dir,;t t
23886 s,@abs_bin_dir@,$abs_bin_dir,;t t
23887 s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
23888 s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
23889 s,@host@,$host,;t t
23890 s,@host_cpu@,$host_cpu,;t t
23891 s,@host_vendor@,$host_vendor,;t t
23892 s,@host_os@,$host_os,;t t
23893 s,@ECHO@,$ECHO,;t t
23894 s,@AR@,$AR,;t t
23895 s,@ac_ct_AR@,$ac_ct_AR,;t t
23896 s,@RANLIB@,$RANLIB,;t t
23897 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23898 s,@CPP@,$CPP,;t t
23899 s,@CXXCPP@,$CXXCPP,;t t
23900 s,@F77@,$F77,;t t
23901 s,@FFLAGS@,$FFLAGS,;t t
23902 s,@ac_ct_F77@,$ac_ct_F77,;t t
23903 s,@LIBTOOL@,$LIBTOOL,;t t
23904 s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
23905 s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
23906 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
23907 s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
23908 s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
23909 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
23910 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23911 s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
23912 s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
23913 s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
23914 s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
23915 s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
23916 s,@COINUTILS_LIBS@,$COINUTILS_LIBS,;t t
23917 s,@COINUTILS_CFLAGS@,$COINUTILS_CFLAGS,;t t
23918 s,@COINUTILS_DATA@,$COINUTILS_DATA,;t t
23919 s,@COINUTILS_DEPENDENCIES@,$COINUTILS_DEPENDENCIES,;t t
23920 s,@COINUTILS_LIBS_INSTALLED@,$COINUTILS_LIBS_INSTALLED,;t t
23921 s,@COINUTILS_CFLAGS_INSTALLED@,$COINUTILS_CFLAGS_INSTALLED,;t t
23922 s,@COINUTILS_DATA_INSTALLED@,$COINUTILS_DATA_INSTALLED,;t t
23923 s,@VOLLIB_CFLAGS@,$VOLLIB_CFLAGS,;t t
23924 s,@VOLLIB_LIBS@,$VOLLIB_LIBS,;t t
23925 s,@VOLLIB_PCLIBS@,$VOLLIB_PCLIBS,;t t
23926 s,@VOLLIB_PCREQUIRES@,$VOLLIB_PCREQUIRES,;t t
23927 s,@VOLLIB_DEPENDENCIES@,$VOLLIB_DEPENDENCIES,;t t
23928 s,@VOLLIB_CFLAGS_INSTALLED@,$VOLLIB_CFLAGS_INSTALLED,;t t
23929 s,@VOLLIB_LIBS_INSTALLED@,$VOLLIB_LIBS_INSTALLED,;t t
23930 s,@COIN_HAS_COINUTILS_TRUE@,$COIN_HAS_COINUTILS_TRUE,;t t
23931 s,@COIN_HAS_COINUTILS_FALSE@,$COIN_HAS_COINUTILS_FALSE,;t t
23932 s,@OSI_LIBS@,$OSI_LIBS,;t t
23933 s,@OSI_CFLAGS@,$OSI_CFLAGS,;t t
23934 s,@OSI_DATA@,$OSI_DATA,;t t
23935 s,@OSI_DEPENDENCIES@,$OSI_DEPENDENCIES,;t t
23936 s,@OSI_LIBS_INSTALLED@,$OSI_LIBS_INSTALLED,;t t
23937 s,@OSI_CFLAGS_INSTALLED@,$OSI_CFLAGS_INSTALLED,;t t
23938 s,@OSI_DATA_INSTALLED@,$OSI_DATA_INSTALLED,;t t
23939 s,@OSIVOLLIB_CFLAGS@,$OSIVOLLIB_CFLAGS,;t t
23940 s,@OSIVOLLIB_LIBS@,$OSIVOLLIB_LIBS,;t t
23941 s,@OSIVOLLIB_PCLIBS@,$OSIVOLLIB_PCLIBS,;t t
23942 s,@OSIVOLLIB_PCREQUIRES@,$OSIVOLLIB_PCREQUIRES,;t t
23943 s,@OSIVOLLIB_DEPENDENCIES@,$OSIVOLLIB_DEPENDENCIES,;t t
23944 s,@OSIVOLLIB_CFLAGS_INSTALLED@,$OSIVOLLIB_CFLAGS_INSTALLED,;t t
23945 s,@OSIVOLLIB_LIBS_INSTALLED@,$OSIVOLLIB_LIBS_INSTALLED,;t t
23946 s,@COIN_HAS_OSI_TRUE@,$COIN_HAS_OSI_TRUE,;t t
23947 s,@COIN_HAS_OSI_FALSE@,$COIN_HAS_OSI_FALSE,;t t
23948 s,@OSITESTS_LIBS@,$OSITESTS_LIBS,;t t
23949 s,@OSITESTS_CFLAGS@,$OSITESTS_CFLAGS,;t t
23950 s,@OSITESTS_DATA@,$OSITESTS_DATA,;t t
23951 s,@OSITESTS_DEPENDENCIES@,$OSITESTS_DEPENDENCIES,;t t
23952 s,@OSITESTS_LIBS_INSTALLED@,$OSITESTS_LIBS_INSTALLED,;t t
23953 s,@OSITESTS_CFLAGS_INSTALLED@,$OSITESTS_CFLAGS_INSTALLED,;t t
23954 s,@OSITESTS_DATA_INSTALLED@,$OSITESTS_DATA_INSTALLED,;t t
23955 s,@COIN_HAS_OSITESTS_TRUE@,$COIN_HAS_OSITESTS_TRUE,;t t
23956 s,@COIN_HAS_OSITESTS_FALSE@,$COIN_HAS_OSITESTS_FALSE,;t t
23957 s,@SAMPLE_LIBS@,$SAMPLE_LIBS,;t t
23958 s,@SAMPLE_CFLAGS@,$SAMPLE_CFLAGS,;t t
23959 s,@SAMPLE_DATA@,$SAMPLE_DATA,;t t
23960 s,@SAMPLE_DEPENDENCIES@,$SAMPLE_DEPENDENCIES,;t t
23961 s,@SAMPLE_LIBS_INSTALLED@,$SAMPLE_LIBS_INSTALLED,;t t
23962 s,@SAMPLE_CFLAGS_INSTALLED@,$SAMPLE_CFLAGS_INSTALLED,;t t
23963 s,@SAMPLE_DATA_INSTALLED@,$SAMPLE_DATA_INSTALLED,;t t
23964 s,@COIN_HAS_SAMPLE_TRUE@,$COIN_HAS_SAMPLE_TRUE,;t t
23965 s,@COIN_HAS_SAMPLE_FALSE@,$COIN_HAS_SAMPLE_FALSE,;t t
23966 s,@coin_have_doxygen@,$coin_have_doxygen,;t t
23967 s,@coin_have_latex@,$coin_have_latex,;t t
23968 s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
23969 s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
23970 s,@coin_doxy_logname@,$coin_doxy_logname,;t t
23971 s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
23972 s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
23973 s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
23974 s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
23975 s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
23976 s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
23977 s,@LIBEXT@,$LIBEXT,;t t
23978 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
23979 s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
23980 s,@LIBOBJS@,$LIBOBJS,;t t
23981 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23982 CEOF
23983
23984 _ACEOF
23985
23986 cat >>$CONFIG_STATUS <<\_ACEOF
23987 # Split the substitutions into bite-sized pieces for seds with
23988 # small command number limits, like on Digital OSF/1 and HP-UX.
23989 ac_max_sed_lines=48
23990 ac_sed_frag=1 # Number of current file.
23991 ac_beg=1 # First line for current file.
23992 ac_end=$ac_max_sed_lines # Line after last line for current file.
23993 ac_more_lines=:
23994 ac_sed_cmds=
23995 while $ac_more_lines; do
23996 if test $ac_beg -gt 1; then
23997 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23998 else
23999 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24000 fi
24001 if test ! -s $tmp/subs.frag; then
24002 ac_more_lines=false
24003 else
24004 # The purpose of the label and of the branching condition is to
24005 # speed up the sed processing (if there are no `@' at all, there
24006 # is no need to browse any of the substitutions).
24007 # These are the two extra sed commands mentioned above.
24008 (echo ':t
24009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24010 if test -z "$ac_sed_cmds"; then
24011 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24012 else
24013 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24014 fi
24015 ac_sed_frag=`expr $ac_sed_frag + 1`
24016 ac_beg=$ac_end
24017 ac_end=`expr $ac_end + $ac_max_sed_lines`
24018 fi
24019 done
24020 if test -z "$ac_sed_cmds"; then
24021 ac_sed_cmds=cat
24022 fi
24023 fi # test -n "$CONFIG_FILES"
24024
24025 _ACEOF
24026 cat >>$CONFIG_STATUS <<\_ACEOF
24027 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24028 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24029 case $ac_file in
24030 - | *:- | *:-:* ) # input from stdin
24031 cat >$tmp/stdin
24032 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24033 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24034 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24035 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24036 * ) ac_file_in=$ac_file.in ;;
24037 esac
24038
24039 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24040 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24041 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24042 X"$ac_file" : 'X\(//\)[^/]' \| \
24043 X"$ac_file" : 'X\(//\)$' \| \
24044 X"$ac_file" : 'X\(/\)' \| \
24045 . : '\(.\)' 2>/dev/null ||
24046 echo X"$ac_file" |
24047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24049 /^X\(\/\/\)$/{ s//\1/; q; }
24050 /^X\(\/\).*/{ s//\1/; q; }
24051 s/.*/./; q'`
24052 { if $as_mkdir_p; then
24053 mkdir -p "$ac_dir"
24054 else
24055 as_dir="$ac_dir"
24056 as_dirs=
24057 while test ! -d "$as_dir"; do
24058 as_dirs="$as_dir $as_dirs"
24059 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24061 X"$as_dir" : 'X\(//\)[^/]' \| \
24062 X"$as_dir" : 'X\(//\)$' \| \
24063 X"$as_dir" : 'X\(/\)' \| \
24064 . : '\(.\)' 2>/dev/null ||
24065 echo X"$as_dir" |
24066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24068 /^X\(\/\/\)$/{ s//\1/; q; }
24069 /^X\(\/\).*/{ s//\1/; q; }
24070 s/.*/./; q'`
24071 done
24072 test ! -n "$as_dirs" || mkdir $as_dirs
24073 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24074 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24075 { (exit 1); exit 1; }; }; }
24076
24077 ac_builddir=.
24078
24079 if test "$ac_dir" != .; then
24080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24081 # A "../" for each directory in $ac_dir_suffix.
24082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24083 else
24084 ac_dir_suffix= ac_top_builddir=
24085 fi
24086
24087 case $srcdir in
24088 .) # No --srcdir option. We are building in place.
24089 ac_srcdir=.
24090 if test -z "$ac_top_builddir"; then
24091 ac_top_srcdir=.
24092 else
24093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24094 fi ;;
24095 [\\/]* | ?:[\\/]* ) # Absolute path.
24096 ac_srcdir=$srcdir$ac_dir_suffix;
24097 ac_top_srcdir=$srcdir ;;
24098 *) # Relative path.
24099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24101 esac
24102
24103 # Do not use `cd foo && pwd` to compute absolute paths, because
24104 # the directories may not exist.
24105 case `pwd` in
24106 .) ac_abs_builddir="$ac_dir";;
24107 *)
24108 case "$ac_dir" in
24109 .) ac_abs_builddir=`pwd`;;
24110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24112 esac;;
24113 esac
24114 case $ac_abs_builddir in
24115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24116 *)
24117 case ${ac_top_builddir}. in
24118 .) ac_abs_top_builddir=$ac_abs_builddir;;
24119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24121 esac;;
24122 esac
24123 case $ac_abs_builddir in
24124 .) ac_abs_srcdir=$ac_srcdir;;
24125 *)
24126 case $ac_srcdir in
24127 .) ac_abs_srcdir=$ac_abs_builddir;;
24128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24130 esac;;
24131 esac
24132 case $ac_abs_builddir in
24133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24134 *)
24135 case $ac_top_srcdir in
24136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24139 esac;;
24140 esac
24141
24142
24143 case $INSTALL in
24144 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24145 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24146 esac
24147
24148 if test x"$ac_file" != x-; then
24149 { echo "$as_me:$LINENO: creating $ac_file" >&5
24150 echo "$as_me: creating $ac_file" >&6;}
24151 rm -f "$ac_file"
24152 fi
24153 # Let's still pretend it is `configure' which instantiates (i.e., don't
24154 # use $as_me), people would be surprised to read:
24155 # /* config.h. Generated by config.status. */
24156 if test x"$ac_file" = x-; then
24157 configure_input=
24158 else
24159 configure_input="$ac_file. "
24160 fi
24161 configure_input=$configure_input"Generated from `echo $ac_file_in |
24162 sed 's,.*/,,'` by configure."
24163
24164 # First look for the input files in the build tree, otherwise in the
24165 # src tree.
24166 ac_file_inputs=`IFS=:
24167 for f in $ac_file_in; do
24168 case $f in
24169 -) echo $tmp/stdin ;;
24170 [\\/$]*)
24171 # Absolute (can't be DOS-style, as IFS=:)
24172 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24173 echo "$as_me: error: cannot find input file: $f" >&2;}
24174 { (exit 1); exit 1; }; }
24175 echo "$f";;
24176 *) # Relative
24177 if test -f "$f"; then
24178 # Build tree
24179 echo "$f"
24180 elif test -f "$srcdir/$f"; then
24181 # Source tree
24182 echo "$srcdir/$f"
24183 else
24184 # /dev/null tree
24185 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24186 echo "$as_me: error: cannot find input file: $f" >&2;}
24187 { (exit 1); exit 1; }; }
24188 fi;;
24189 esac
24190 done` || { (exit 1); exit 1; }
24191 _ACEOF
24192 cat >>$CONFIG_STATUS <<_ACEOF
24193 sed "$ac_vpsub
24194 $extrasub
24195 _ACEOF
24196 cat >>$CONFIG_STATUS <<\_ACEOF
24197 :t
24198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24199 s,@configure_input@,$configure_input,;t t
24200 s,@srcdir@,$ac_srcdir,;t t
24201 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24202 s,@top_srcdir@,$ac_top_srcdir,;t t
24203 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24204 s,@builddir@,$ac_builddir,;t t
24205 s,@abs_builddir@,$ac_abs_builddir,;t t
24206 s,@top_builddir@,$ac_top_builddir,;t t
24207 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24208 s,@INSTALL@,$ac_INSTALL,;t t
24209 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24210 rm -f $tmp/stdin
24211 if test x"$ac_file" != x-; then
24212 mv $tmp/out $ac_file
24213 else
24214 cat $tmp/out
24215 rm -f $tmp/out
24216 fi
24217
24218 done
24219 _ACEOF
24220 cat >>$CONFIG_STATUS <<\_ACEOF
24221
24222 #
24223 # CONFIG_HEADER section.
24224 #
24225
24226 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24227 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24228 #
24229 # ac_d sets the value in "#define NAME VALUE" lines.
24230 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24231 ac_dB='[ ].*$,\1#\2'
24232 ac_dC=' '
24233 ac_dD=',;t'
24234 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24235 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24236 ac_uB='$,\1#\2define\3'
24237 ac_uC=' '
24238 ac_uD=',;t'
24239
24240 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24241 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24242 case $ac_file in
24243 - | *:- | *:-:* ) # input from stdin
24244 cat >$tmp/stdin
24245 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24246 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24247 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24248 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24249 * ) ac_file_in=$ac_file.in ;;
24250 esac
24251
24252 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24253 echo "$as_me: creating $ac_file" >&6;}
24254
24255 # First look for the input files in the build tree, otherwise in the
24256 # src tree.
24257 ac_file_inputs=`IFS=:
24258 for f in $ac_file_in; do
24259 case $f in
24260 -) echo $tmp/stdin ;;
24261 [\\/$]*)
24262 # Absolute (can't be DOS-style, as IFS=:)
24263 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24264 echo "$as_me: error: cannot find input file: $f" >&2;}
24265 { (exit 1); exit 1; }; }
24266 # Do quote $f, to prevent DOS paths from being IFS'd.
24267 echo "$f";;
24268 *) # Relative
24269 if test -f "$f"; then
24270 # Build tree
24271 echo "$f"
24272 elif test -f "$srcdir/$f"; then
24273 # Source tree
24274 echo "$srcdir/$f"
24275 else
24276 # /dev/null tree
24277 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24278 echo "$as_me: error: cannot find input file: $f" >&2;}
24279 { (exit 1); exit 1; }; }
24280 fi;;
24281 esac
24282 done` || { (exit 1); exit 1; }
24283 # Remove the trailing spaces.
24284 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24285
24286 _ACEOF
24287
24288 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24289 # `conftest.undefs', that substitutes the proper values into
24290 # config.h.in to produce config.h. The first handles `#define'
24291 # templates, and the second `#undef' templates.
24292 # And first: Protect against being on the right side of a sed subst in
24293 # config.status. Protect against being in an unquoted here document
24294 # in config.status.
24295 rm -f conftest.defines conftest.undefs
24296 # Using a here document instead of a string reduces the quoting nightmare.
24297 # Putting comments in sed scripts is not portable.
24298 #
24299 # `end' is used to avoid that the second main sed command (meant for
24300 # 0-ary CPP macros) applies to n-ary macro definitions.
24301 # See the Autoconf documentation for `clear'.
24302 cat >confdef2sed.sed <<\_ACEOF
24303 s/[\\&,]/\\&/g
24304 s,[\\$`],\\&,g
24305 t clear
24306 : clear
24307 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24308 t end
24309 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24310 : end
24311 _ACEOF
24312 # If some macros were called several times there might be several times
24313 # the same #defines, which is useless. Nevertheless, we may not want to
24314 # sort them, since we want the *last* AC-DEFINE to be honored.
24315 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24316 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24317 rm -f confdef2sed.sed
24318
24319 # This sed command replaces #undef with comments. This is necessary, for
24320 # example, in the case of _POSIX_SOURCE, which is predefined and required
24321 # on some systems where configure will not decide to define it.
24322 cat >>conftest.undefs <<\_ACEOF
24323 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24324 _ACEOF
24325
24326 # Break up conftest.defines because some shells have a limit on the size
24327 # of here documents, and old seds have small limits too (100 cmds).
24328 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24329 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24330 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24331 echo ' :' >>$CONFIG_STATUS
24332 rm -f conftest.tail
24333 while grep . conftest.defines >/dev/null
24334 do
24335 # Write a limited-size here document to $tmp/defines.sed.
24336 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24337 # Speed up: don't consider the non `#define' lines.
24338 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24339 # Work around the forget-to-reset-the-flag bug.
24340 echo 't clr' >>$CONFIG_STATUS
24341 echo ': clr' >>$CONFIG_STATUS
24342 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24343 echo 'CEOF
24344 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24345 rm -f $tmp/in
24346 mv $tmp/out $tmp/in
24347 ' >>$CONFIG_STATUS
24348 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24349 rm -f conftest.defines
24350 mv conftest.tail conftest.defines
24351 done
24352 rm -f conftest.defines
24353 echo ' fi # grep' >>$CONFIG_STATUS
24354 echo >>$CONFIG_STATUS
24355
24356 # Break up conftest.undefs because some shells have a limit on the size
24357 # of here documents, and old seds have small limits too (100 cmds).
24358 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24359 rm -f conftest.tail
24360 while grep . conftest.undefs >/dev/null
24361 do
24362 # Write a limited-size here document to $tmp/undefs.sed.
24363 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24364 # Speed up: don't consider the non `#undef'
24365 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24366 # Work around the forget-to-reset-the-flag bug.
24367 echo 't clr' >>$CONFIG_STATUS
24368 echo ': clr' >>$CONFIG_STATUS
24369 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24370 echo 'CEOF
24371 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24372 rm -f $tmp/in
24373 mv $tmp/out $tmp/in
24374 ' >>$CONFIG_STATUS
24375 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24376 rm -f conftest.undefs
24377 mv conftest.tail conftest.undefs
24378 done
24379 rm -f conftest.undefs
24380
24381 cat >>$CONFIG_STATUS <<\_ACEOF
24382 # Let's still pretend it is `configure' which instantiates (i.e., don't
24383 # use $as_me), people would be surprised to read:
24384 # /* config.h. Generated by config.status. */
24385 if test x"$ac_file" = x-; then
24386 echo "/* Generated by configure. */" >$tmp/config.h
24387 else
24388 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24389 fi
24390 cat $tmp/in >>$tmp/config.h
24391 rm -f $tmp/in
24392 if test x"$ac_file" != x-; then
24393 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24394 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24395 echo "$as_me: $ac_file is unchanged" >&6;}
24396 else
24397 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24399 X"$ac_file" : 'X\(//\)[^/]' \| \
24400 X"$ac_file" : 'X\(//\)$' \| \
24401 X"$ac_file" : 'X\(/\)' \| \
24402 . : '\(.\)' 2>/dev/null ||
24403 echo X"$ac_file" |
24404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24405 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24406 /^X\(\/\/\)$/{ s//\1/; q; }
24407 /^X\(\/\).*/{ s//\1/; q; }
24408 s/.*/./; q'`
24409 { if $as_mkdir_p; then
24410 mkdir -p "$ac_dir"
24411 else
24412 as_dir="$ac_dir"
24413 as_dirs=
24414 while test ! -d "$as_dir"; do
24415 as_dirs="$as_dir $as_dirs"
24416 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24418 X"$as_dir" : 'X\(//\)[^/]' \| \
24419 X"$as_dir" : 'X\(//\)$' \| \
24420 X"$as_dir" : 'X\(/\)' \| \
24421 . : '\(.\)' 2>/dev/null ||
24422 echo X"$as_dir" |
24423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24425 /^X\(\/\/\)$/{ s//\1/; q; }
24426 /^X\(\/\).*/{ s//\1/; q; }
24427 s/.*/./; q'`
24428 done
24429 test ! -n "$as_dirs" || mkdir $as_dirs
24430 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24431 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24432 { (exit 1); exit 1; }; }; }
24433
24434 rm -f $ac_file
24435 mv $tmp/config.h $ac_file
24436 fi
24437 else
24438 cat $tmp/config.h
24439 rm -f $tmp/config.h
24440 fi
24441 # Compute $ac_file's index in $config_headers.
24442 _am_stamp_count=1
24443 for _am_header in $config_headers :; do
24444 case $_am_header in
24445 $ac_file | $ac_file:* )
24446 break ;;
24447 * )
24448 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24449 esac
24450 done
24451 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24452 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24453 X$ac_file : 'X\(//\)[^/]' \| \
24454 X$ac_file : 'X\(//\)$' \| \
24455 X$ac_file : 'X\(/\)' \| \
24456 . : '\(.\)' 2>/dev/null ||
24457 echo X$ac_file |
24458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24459 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24460 /^X\(\/\/\)$/{ s//\1/; q; }
24461 /^X\(\/\).*/{ s//\1/; q; }
24462 s/.*/./; q'`/stamp-h$_am_stamp_count
24463 done
24464 _ACEOF
24465 cat >>$CONFIG_STATUS <<\_ACEOF
24466
24467 #
24468 # CONFIG_COMMANDS section.
24469 #
24470 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24471 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24472 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24473 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24474 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24475 X"$ac_dest" : 'X\(//\)[^/]' \| \
24476 X"$ac_dest" : 'X\(//\)$' \| \
24477 X"$ac_dest" : 'X\(/\)' \| \
24478 . : '\(.\)' 2>/dev/null ||
24479 echo X"$ac_dest" |
24480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24482 /^X\(\/\/\)$/{ s//\1/; q; }
24483 /^X\(\/\).*/{ s//\1/; q; }
24484 s/.*/./; q'`
24485 { if $as_mkdir_p; then
24486 mkdir -p "$ac_dir"
24487 else
24488 as_dir="$ac_dir"
24489 as_dirs=
24490 while test ! -d "$as_dir"; do
24491 as_dirs="$as_dir $as_dirs"
24492 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24494 X"$as_dir" : 'X\(//\)[^/]' \| \
24495 X"$as_dir" : 'X\(//\)$' \| \
24496 X"$as_dir" : 'X\(/\)' \| \
24497 . : '\(.\)' 2>/dev/null ||
24498 echo X"$as_dir" |
24499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24500 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24501 /^X\(\/\/\)$/{ s//\1/; q; }
24502 /^X\(\/\).*/{ s//\1/; q; }
24503 s/.*/./; q'`
24504 done
24505 test ! -n "$as_dirs" || mkdir $as_dirs
24506 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24507 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24508 { (exit 1); exit 1; }; }; }
24509
24510 ac_builddir=.
24511
24512 if test "$ac_dir" != .; then
24513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24514 # A "../" for each directory in $ac_dir_suffix.
24515 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24516 else
24517 ac_dir_suffix= ac_top_builddir=
24518 fi
24519
24520 case $srcdir in
24521 .) # No --srcdir option. We are building in place.
24522 ac_srcdir=.
24523 if test -z "$ac_top_builddir"; then
24524 ac_top_srcdir=.
24525 else
24526 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24527 fi ;;
24528 [\\/]* | ?:[\\/]* ) # Absolute path.
24529 ac_srcdir=$srcdir$ac_dir_suffix;
24530 ac_top_srcdir=$srcdir ;;
24531 *) # Relative path.
24532 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24533 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24534 esac
24535
24536 # Do not use `cd foo && pwd` to compute absolute paths, because
24537 # the directories may not exist.
24538 case `pwd` in
24539 .) ac_abs_builddir="$ac_dir";;
24540 *)
24541 case "$ac_dir" in
24542 .) ac_abs_builddir=`pwd`;;
24543 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24544 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24545 esac;;
24546 esac
24547 case $ac_abs_builddir in
24548 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24549 *)
24550 case ${ac_top_builddir}. in
24551 .) ac_abs_top_builddir=$ac_abs_builddir;;
24552 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24553 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24554 esac;;
24555 esac
24556 case $ac_abs_builddir in
24557 .) ac_abs_srcdir=$ac_srcdir;;
24558 *)
24559 case $ac_srcdir in
24560 .) ac_abs_srcdir=$ac_abs_builddir;;
24561 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24562 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24563 esac;;
24564 esac
24565 case $ac_abs_builddir in
24566 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24567 *)
24568 case $ac_top_srcdir in
24569 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24570 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24571 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24572 esac;;
24573 esac
24574
24575
24576 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24577 echo "$as_me: executing $ac_dest commands" >&6;}
24578 case $ac_dest in
24579 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24580 # Strip MF so we end up with the name of the file.
24581 mf=`echo "$mf" | sed -e 's/:.*$//'`
24582 # Check whether this is an Automake generated Makefile or not.
24583 # We used to match only the files named `Makefile.in', but
24584 # some people rename them; so instead we look at the file content.
24585 # Grep'ing the first line is not enough: some people post-process
24586 # each Makefile.in and add a new line on top of each file to say so.
24587 # So let's grep whole file.
24588 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24589 dirpart=`(dirname "$mf") 2>/dev/null ||
24590 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24591 X"$mf" : 'X\(//\)[^/]' \| \
24592 X"$mf" : 'X\(//\)$' \| \
24593 X"$mf" : 'X\(/\)' \| \
24594 . : '\(.\)' 2>/dev/null ||
24595 echo X"$mf" |
24596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24598 /^X\(\/\/\)$/{ s//\1/; q; }
24599 /^X\(\/\).*/{ s//\1/; q; }
24600 s/.*/./; q'`
24601 else
24602 continue
24603 fi
24604 # Extract the definition of DEPDIR, am__include, and am__quote
24605 # from the Makefile without running `make'.
24606 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24607 test -z "$DEPDIR" && continue
24608 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24609 test -z "am__include" && continue
24610 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24611 # When using ansi2knr, U may be empty or an underscore; expand it
24612 U=`sed -n 's/^U = //p' < "$mf"`
24613 # Find all dependency output files, they are included files with
24614 # $(DEPDIR) in their names. We invoke sed twice because it is the
24615 # simplest approach to changing $(DEPDIR) to its actual value in the
24616 # expansion.
24617 for file in `sed -n "
24618 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24619 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24620 # Make sure the directory exists.
24621 test -f "$dirpart/$file" && continue
24622 fdir=`(dirname "$file") 2>/dev/null ||
24623 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24624 X"$file" : 'X\(//\)[^/]' \| \
24625 X"$file" : 'X\(//\)$' \| \
24626 X"$file" : 'X\(/\)' \| \
24627 . : '\(.\)' 2>/dev/null ||
24628 echo X"$file" |
24629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24631 /^X\(\/\/\)$/{ s//\1/; q; }
24632 /^X\(\/\).*/{ s//\1/; q; }
24633 s/.*/./; q'`
24634 { if $as_mkdir_p; then
24635 mkdir -p $dirpart/$fdir
24636 else
24637 as_dir=$dirpart/$fdir
24638 as_dirs=
24639 while test ! -d "$as_dir"; do
24640 as_dirs="$as_dir $as_dirs"
24641 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24643 X"$as_dir" : 'X\(//\)[^/]' \| \
24644 X"$as_dir" : 'X\(//\)$' \| \
24645 X"$as_dir" : 'X\(/\)' \| \
24646 . : '\(.\)' 2>/dev/null ||
24647 echo X"$as_dir" |
24648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24650 /^X\(\/\/\)$/{ s//\1/; q; }
24651 /^X\(\/\).*/{ s//\1/; q; }
24652 s/.*/./; q'`
24653 done
24654 test ! -n "$as_dirs" || mkdir $as_dirs
24655 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24656 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24657 { (exit 1); exit 1; }; }; }
24658
24659 # echo "creating $dirpart/$file"
24660 echo '# dummy' > "$dirpart/$file"
24661 done
24662 done
24663 ;;
24664 esac
24665 done
24666 _ACEOF
24667
24668 cat >>$CONFIG_STATUS <<\_ACEOF
24669
24670 { (exit 0); exit 0; }
24671 _ACEOF
24672 chmod +x $CONFIG_STATUS
24673 ac_clean_files=$ac_clean_files_save
24674
24675
24676 # configure is writing to config.log, and then calls config.status.
24677 # config.status does its own redirection, appending to config.log.
24678 # Unfortunately, on DOS this fails, as config.log is still kept open
24679 # by configure, so config.status won't be able to write to it; its
24680 # output is simply discarded. So we exec the FD to /dev/null,
24681 # effectively closing config.log, so it can be properly (re)opened and
24682 # appended to by config.status. When coming back to configure, we
24683 # need to make the FD available again.
24684 if test "$no_create" != yes; then
24685 ac_cs_success=:
24686 ac_config_status_args=
24687 test "$silent" = yes &&
24688 ac_config_status_args="$ac_config_status_args --quiet"
24689 exec 5>/dev/null
24690 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24691 exec 5>>config.log
24692 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24693 # would make configure fail if this is the last instruction.
24694 $ac_cs_success || { (exit 1); exit 1; }
24695 fi
24696
24697
24698 if test x"$coin_vpath_link_files" = x; then : ; else
24699 lnkcmd="$coin_link_input_cmd"
24700 if test "$lnkcmd" = cp; then
24701 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
24702 echo "$as_me: Copying data files for VPATH configuration" >&6;}
24703 else
24704 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
24705 echo "$as_me: Creating VPATH links for data files" >&6;}
24706 fi
24707 for file in $coin_vpath_link_files; do
24708 dir=`(dirname "./$file") 2>/dev/null ||
24709 $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24710 X"./$file" : 'X\(//\)[^/]' \| \
24711 X"./$file" : 'X\(//\)$' \| \
24712 X"./$file" : 'X\(/\)' \| \
24713 . : '\(.\)' 2>/dev/null ||
24714 echo X"./$file" |
24715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24717 /^X\(\/\/\)$/{ s//\1/; q; }
24718 /^X\(\/\).*/{ s//\1/; q; }
24719 s/.*/./; q'`
24720 if test -d $dir; then : ; else
24721 { if $as_mkdir_p; then
24722 mkdir -p $dir
24723 else
24724 as_dir=$dir
24725 as_dirs=
24726 while test ! -d "$as_dir"; do
24727 as_dirs="$as_dir $as_dirs"
24728 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24729 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24730 X"$as_dir" : 'X\(//\)[^/]' \| \
24731 X"$as_dir" : 'X\(//\)$' \| \
24732 X"$as_dir" : 'X\(/\)' \| \
24733 . : '\(.\)' 2>/dev/null ||
24734 echo X"$as_dir" |
24735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24737 /^X\(\/\/\)$/{ s//\1/; q; }
24738 /^X\(\/\).*/{ s//\1/; q; }
24739 s/.*/./; q'`
24740 done
24741 test ! -n "$as_dirs" || mkdir $as_dirs
24742 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
24743 echo "$as_me: error: cannot create directory $dir" >&2;}
24744 { (exit 1); exit 1; }; }; }
24745
24746 fi
24747 rm -f $file
24748 $lnkcmd $abs_source_dir/$file $file
24749 done
24750 fi
24751
24752 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
24753 echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
24754 if test x$coin_projectdir = xyes; then
24755 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
24756 echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
24757 else
24758 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
24759 echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
24760 fi
24761 else
24762 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
24763 echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
24764 fi
24765
24766