Checklist UI improvements
[maepad.git] / configure
blob1983f7a6fb34ddb8ba7b25cf3a1a535a9105acd2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
294 done
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
318 done
319 IFS="$lt_save_ifs"
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
367 prev="$cmd"
368 done
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 exec 6>&1
406 # Initializations.
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
428 ac_unique_file="Makefile.am"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
466 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP RANLIB ac_ct_RANLIB EGREP LN_S ECHO AR ac_ct_AR CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_SERVICE_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT ALL_LINGUAS DATADIRNAME PKG_CONFIG ac_pt_PKG_CONFIG HILDON_CFLAGS HILDON_LIBS DBUS_CFLAGS DBUS_LIBS OSSO_CFLAGS OSSO_LIBS SQL3_CFLAGS SQL3_LIBS GETTEXT_PACKAGE USE_NLS MSGFMT MSGFMT_OPTS GMSGFMT XGETTEXT CATALOGS CATOBJEXT GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS desktopentrydir serviceentrydir localedir pixmapdir icon_26x26dir icon_34x34dir icon_40x40dir icon_50x50dir icon_scalabledir pluginlibdir plugindesktopentrydir LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
507 ac_prev=
508 for ac_option
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
521 case $ac_option in
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
540 --config-cache | -C)
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 esac
804 done
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821 done
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833 done
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
879 else
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
948 ac_env_PKG_CONFIG_value=$PKG_CONFIG
949 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
951 ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
952 ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
953 ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
954 ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
955 ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
956 ac_env_HILDON_LIBS_value=$HILDON_LIBS
957 ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
958 ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
959 ac_env_DBUS_CFLAGS_set=${DBUS_CFLAGS+set}
960 ac_env_DBUS_CFLAGS_value=$DBUS_CFLAGS
961 ac_cv_env_DBUS_CFLAGS_set=${DBUS_CFLAGS+set}
962 ac_cv_env_DBUS_CFLAGS_value=$DBUS_CFLAGS
963 ac_env_DBUS_LIBS_set=${DBUS_LIBS+set}
964 ac_env_DBUS_LIBS_value=$DBUS_LIBS
965 ac_cv_env_DBUS_LIBS_set=${DBUS_LIBS+set}
966 ac_cv_env_DBUS_LIBS_value=$DBUS_LIBS
967 ac_env_OSSO_CFLAGS_set=${OSSO_CFLAGS+set}
968 ac_env_OSSO_CFLAGS_value=$OSSO_CFLAGS
969 ac_cv_env_OSSO_CFLAGS_set=${OSSO_CFLAGS+set}
970 ac_cv_env_OSSO_CFLAGS_value=$OSSO_CFLAGS
971 ac_env_OSSO_LIBS_set=${OSSO_LIBS+set}
972 ac_env_OSSO_LIBS_value=$OSSO_LIBS
973 ac_cv_env_OSSO_LIBS_set=${OSSO_LIBS+set}
974 ac_cv_env_OSSO_LIBS_value=$OSSO_LIBS
975 ac_env_SQL3_CFLAGS_set=${SQL3_CFLAGS+set}
976 ac_env_SQL3_CFLAGS_value=$SQL3_CFLAGS
977 ac_cv_env_SQL3_CFLAGS_set=${SQL3_CFLAGS+set}
978 ac_cv_env_SQL3_CFLAGS_value=$SQL3_CFLAGS
979 ac_env_SQL3_LIBS_set=${SQL3_LIBS+set}
980 ac_env_SQL3_LIBS_value=$SQL3_LIBS
981 ac_cv_env_SQL3_LIBS_set=${SQL3_LIBS+set}
982 ac_cv_env_SQL3_LIBS_value=$SQL3_LIBS
985 # Report the --help message.
987 if test "$ac_init_help" = "long"; then
988 # Omit some internal or obsolete options to make the list less imposing.
989 # This message is too long to be a string in the A/UX 3.1 sh.
990 cat <<_ACEOF
991 \`configure' configures this package to adapt to many kinds of systems.
993 Usage: $0 [OPTION]... [VAR=VALUE]...
995 To assign environment variables (e.g., CC, CFLAGS...), specify them as
996 VAR=VALUE. See below for descriptions of some of the useful variables.
998 Defaults for the options are specified in brackets.
1000 Configuration:
1001 -h, --help display this help and exit
1002 --help=short display options specific to this package
1003 --help=recursive display the short help of all the included packages
1004 -V, --version display version information and exit
1005 -q, --quiet, --silent do not print \`checking...' messages
1006 --cache-file=FILE cache test results in FILE [disabled]
1007 -C, --config-cache alias for \`--cache-file=config.cache'
1008 -n, --no-create do not create output files
1009 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1011 _ACEOF
1013 cat <<_ACEOF
1014 Installation directories:
1015 --prefix=PREFIX install architecture-independent files in PREFIX
1016 [$ac_default_prefix]
1017 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1018 [PREFIX]
1020 By default, \`make install' will install all the files in
1021 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1022 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1023 for instance \`--prefix=\$HOME'.
1025 For better control, use the options below.
1027 Fine tuning of the installation directories:
1028 --bindir=DIR user executables [EPREFIX/bin]
1029 --sbindir=DIR system admin executables [EPREFIX/sbin]
1030 --libexecdir=DIR program executables [EPREFIX/libexec]
1031 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1032 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1033 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1034 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1035 --libdir=DIR object code libraries [EPREFIX/lib]
1036 --includedir=DIR C header files [PREFIX/include]
1037 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1038 --infodir=DIR info documentation [PREFIX/info]
1039 --mandir=DIR man documentation [PREFIX/man]
1040 _ACEOF
1042 cat <<\_ACEOF
1044 Program names:
1045 --program-prefix=PREFIX prepend PREFIX to installed program names
1046 --program-suffix=SUFFIX append SUFFIX to installed program names
1047 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1049 System types:
1050 --build=BUILD configure for building on BUILD [guessed]
1051 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1052 _ACEOF
1055 if test -n "$ac_init_help"; then
1057 cat <<\_ACEOF
1059 Optional Features:
1060 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1061 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1062 --disable-dependency-tracking Speeds up one-time builds
1063 --enable-dependency-tracking Do not reject slow dependency extractors
1064 --enable-shared[=PKGS]
1065 build shared libraries [default=yes]
1066 --enable-static[=PKGS]
1067 build static libraries [default=yes]
1068 --enable-fast-install[=PKGS]
1069 optimize for fast installation [default=yes]
1070 --disable-libtool-lock avoid locking (might break parallel builds)
1071 --enable-debug Debugging (default=no)
1073 Optional Packages:
1074 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1075 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1076 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1077 --with-pic try to use only PIC/non-PIC objects [default=use
1078 both]
1079 --with-tags[=TAGS]
1080 include additional configurations [automatic]
1082 Some influential environment variables:
1083 CC C compiler command
1084 CFLAGS C compiler flags
1085 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1086 nonstandard directory <lib dir>
1087 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1088 headers in a nonstandard directory <include dir>
1089 CPP C preprocessor
1090 CXX C++ compiler command
1091 CXXFLAGS C++ compiler flags
1092 CXXCPP C++ preprocessor
1093 F77 Fortran 77 compiler command
1094 FFLAGS Fortran 77 compiler flags
1095 PKG_CONFIG path to pkg-config utility
1096 HILDON_CFLAGS
1097 C compiler flags for HILDON, overriding pkg-config
1098 HILDON_LIBS linker flags for HILDON, overriding pkg-config
1099 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1100 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1101 OSSO_CFLAGS C compiler flags for OSSO, overriding pkg-config
1102 OSSO_LIBS linker flags for OSSO, overriding pkg-config
1103 SQL3_CFLAGS C compiler flags for SQL3, overriding pkg-config
1104 SQL3_LIBS linker flags for SQL3, overriding pkg-config
1106 Use these variables to override the choices made by `configure' or to help
1107 it to find libraries and programs with nonstandard names/locations.
1109 _ACEOF
1112 if test "$ac_init_help" = "recursive"; then
1113 # If there are subdirs, report their specific --help.
1114 ac_popdir=`pwd`
1115 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1116 test -d $ac_dir || continue
1117 ac_builddir=.
1119 if test "$ac_dir" != .; then
1120 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1121 # A "../" for each directory in $ac_dir_suffix.
1122 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1123 else
1124 ac_dir_suffix= ac_top_builddir=
1127 case $srcdir in
1128 .) # No --srcdir option. We are building in place.
1129 ac_srcdir=.
1130 if test -z "$ac_top_builddir"; then
1131 ac_top_srcdir=.
1132 else
1133 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1134 fi ;;
1135 [\\/]* | ?:[\\/]* ) # Absolute path.
1136 ac_srcdir=$srcdir$ac_dir_suffix;
1137 ac_top_srcdir=$srcdir ;;
1138 *) # Relative path.
1139 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1140 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1141 esac
1143 # Do not use `cd foo && pwd` to compute absolute paths, because
1144 # the directories may not exist.
1145 case `pwd` in
1146 .) ac_abs_builddir="$ac_dir";;
1148 case "$ac_dir" in
1149 .) ac_abs_builddir=`pwd`;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1151 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1152 esac;;
1153 esac
1154 case $ac_abs_builddir in
1155 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 case ${ac_top_builddir}. in
1158 .) ac_abs_top_builddir=$ac_abs_builddir;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1161 esac;;
1162 esac
1163 case $ac_abs_builddir in
1164 .) ac_abs_srcdir=$ac_srcdir;;
1166 case $ac_srcdir in
1167 .) ac_abs_srcdir=$ac_abs_builddir;;
1168 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1169 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1170 esac;;
1171 esac
1172 case $ac_abs_builddir in
1173 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 case $ac_top_srcdir in
1176 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1177 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1179 esac;;
1180 esac
1182 cd $ac_dir
1183 # Check for guested configure; otherwise get Cygnus style configure.
1184 if test -f $ac_srcdir/configure.gnu; then
1185 echo
1186 $SHELL $ac_srcdir/configure.gnu --help=recursive
1187 elif test -f $ac_srcdir/configure; then
1188 echo
1189 $SHELL $ac_srcdir/configure --help=recursive
1190 elif test -f $ac_srcdir/configure.ac ||
1191 test -f $ac_srcdir/configure.in; then
1192 echo
1193 $ac_configure --help
1194 else
1195 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1197 cd "$ac_popdir"
1198 done
1201 test -n "$ac_init_help" && exit 0
1202 if $ac_init_version; then
1203 cat <<\_ACEOF
1205 Copyright (C) 2003 Free Software Foundation, Inc.
1206 This configure script is free software; the Free Software Foundation
1207 gives unlimited permission to copy, distribute and modify it.
1208 _ACEOF
1209 exit 0
1211 exec 5>config.log
1212 cat >&5 <<_ACEOF
1213 This file contains any messages produced by compilers while
1214 running configure, to aid debugging if configure makes a mistake.
1216 It was created by $as_me, which was
1217 generated by GNU Autoconf 2.59. Invocation command line was
1219 $ $0 $@
1221 _ACEOF
1223 cat <<_ASUNAME
1224 ## --------- ##
1225 ## Platform. ##
1226 ## --------- ##
1228 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1229 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1230 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1231 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1232 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1234 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1235 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1237 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1238 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1239 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1240 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1241 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1242 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1243 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1245 _ASUNAME
1247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1248 for as_dir in $PATH
1250 IFS=$as_save_IFS
1251 test -z "$as_dir" && as_dir=.
1252 echo "PATH: $as_dir"
1253 done
1255 } >&5
1257 cat >&5 <<_ACEOF
1260 ## ----------- ##
1261 ## Core tests. ##
1262 ## ----------- ##
1264 _ACEOF
1267 # Keep a trace of the command line.
1268 # Strip out --no-create and --no-recursion so they do not pile up.
1269 # Strip out --silent because we don't want to record it for future runs.
1270 # Also quote any args containing shell meta-characters.
1271 # Make two passes to allow for proper duplicate-argument suppression.
1272 ac_configure_args=
1273 ac_configure_args0=
1274 ac_configure_args1=
1275 ac_sep=
1276 ac_must_keep_next=false
1277 for ac_pass in 1 2
1279 for ac_arg
1281 case $ac_arg in
1282 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284 | -silent | --silent | --silen | --sile | --sil)
1285 continue ;;
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1288 esac
1289 case $ac_pass in
1290 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1292 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1293 if test $ac_must_keep_next = true; then
1294 ac_must_keep_next=false # Got value, back to normal.
1295 else
1296 case $ac_arg in
1297 *=* | --config-cache | -C | -disable-* | --disable-* \
1298 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1299 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1300 | -with-* | --with-* | -without-* | --without-* | --x)
1301 case "$ac_configure_args0 " in
1302 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1303 esac
1305 -* ) ac_must_keep_next=true ;;
1306 esac
1308 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1309 # Get rid of the leading space.
1310 ac_sep=" "
1312 esac
1313 done
1314 done
1315 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1316 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1318 # When interrupted or exit'd, cleanup temporary files, and complete
1319 # config.log. We remove comments because anyway the quotes in there
1320 # would cause problems or look ugly.
1321 # WARNING: Be sure not to use single quotes in there, as some shells,
1322 # such as our DU 5.0 friend, will then `close' the trap.
1323 trap 'exit_status=$?
1324 # Save into config.log some information that might help in debugging.
1326 echo
1328 cat <<\_ASBOX
1329 ## ---------------- ##
1330 ## Cache variables. ##
1331 ## ---------------- ##
1332 _ASBOX
1333 echo
1334 # The following way of writing the cache mishandles newlines in values,
1336 (set) 2>&1 |
1337 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1338 *ac_space=\ *)
1339 sed -n \
1340 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1344 sed -n \
1345 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1347 esac;
1349 echo
1351 cat <<\_ASBOX
1352 ## ----------------- ##
1353 ## Output variables. ##
1354 ## ----------------- ##
1355 _ASBOX
1356 echo
1357 for ac_var in $ac_subst_vars
1359 eval ac_val=$`echo $ac_var`
1360 echo "$ac_var='"'"'$ac_val'"'"'"
1361 done | sort
1362 echo
1364 if test -n "$ac_subst_files"; then
1365 cat <<\_ASBOX
1366 ## ------------- ##
1367 ## Output files. ##
1368 ## ------------- ##
1369 _ASBOX
1370 echo
1371 for ac_var in $ac_subst_files
1373 eval ac_val=$`echo $ac_var`
1374 echo "$ac_var='"'"'$ac_val'"'"'"
1375 done | sort
1376 echo
1379 if test -s confdefs.h; then
1380 cat <<\_ASBOX
1381 ## ----------- ##
1382 ## confdefs.h. ##
1383 ## ----------- ##
1384 _ASBOX
1385 echo
1386 sed "/^$/d" confdefs.h | sort
1387 echo
1389 test "$ac_signal" != 0 &&
1390 echo "$as_me: caught signal $ac_signal"
1391 echo "$as_me: exit $exit_status"
1392 } >&5
1393 rm -f core *.core &&
1394 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1395 exit $exit_status
1397 for ac_signal in 1 2 13 15; do
1398 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1399 done
1400 ac_signal=0
1402 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1403 rm -rf conftest* confdefs.h
1404 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1405 echo >confdefs.h
1407 # Predefined preprocessor variables.
1409 cat >>confdefs.h <<_ACEOF
1410 #define PACKAGE_NAME "$PACKAGE_NAME"
1411 _ACEOF
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1416 _ACEOF
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1421 _ACEOF
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_STRING "$PACKAGE_STRING"
1426 _ACEOF
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1431 _ACEOF
1434 # Let the site file select an alternate cache file if it wants to.
1435 # Prefer explicitly selected file to automatically selected ones.
1436 if test -z "$CONFIG_SITE"; then
1437 if test "x$prefix" != xNONE; then
1438 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1439 else
1440 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1443 for ac_site_file in $CONFIG_SITE; do
1444 if test -r "$ac_site_file"; then
1445 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1446 echo "$as_me: loading site script $ac_site_file" >&6;}
1447 sed 's/^/| /' "$ac_site_file" >&5
1448 . "$ac_site_file"
1450 done
1452 if test -r "$cache_file"; then
1453 # Some versions of bash will fail to source /dev/null (special
1454 # files actually), so we avoid doing that.
1455 if test -f "$cache_file"; then
1456 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1457 echo "$as_me: loading cache $cache_file" >&6;}
1458 case $cache_file in
1459 [\\/]* | ?:[\\/]* ) . $cache_file;;
1460 *) . ./$cache_file;;
1461 esac
1463 else
1464 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1465 echo "$as_me: creating cache $cache_file" >&6;}
1466 >$cache_file
1469 # Check that the precious variables saved in the cache have kept the same
1470 # value.
1471 ac_cache_corrupted=false
1472 for ac_var in `(set) 2>&1 |
1473 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1474 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1475 eval ac_new_set=\$ac_env_${ac_var}_set
1476 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1477 eval ac_new_val="\$ac_env_${ac_var}_value"
1478 case $ac_old_set,$ac_new_set in
1479 set,)
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1481 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1482 ac_cache_corrupted=: ;;
1483 ,set)
1484 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1485 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1486 ac_cache_corrupted=: ;;
1487 ,);;
1489 if test "x$ac_old_val" != "x$ac_new_val"; then
1490 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1491 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1492 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1493 echo "$as_me: former value: $ac_old_val" >&2;}
1494 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1495 echo "$as_me: current value: $ac_new_val" >&2;}
1496 ac_cache_corrupted=:
1497 fi;;
1498 esac
1499 # Pass precious variables to config.status.
1500 if test "$ac_new_set" = set; then
1501 case $ac_new_val in
1502 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1503 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1504 *) ac_arg=$ac_var=$ac_new_val ;;
1505 esac
1506 case " $ac_configure_args " in
1507 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1508 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1509 esac
1511 done
1512 if $ac_cache_corrupted; then
1513 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1514 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1515 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1516 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1517 { (exit 1); exit 1; }; }
1520 ac_ext=c
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1544 am__api_version="1.7"
1545 ac_aux_dir=
1546 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1547 if test -f $ac_dir/install-sh; then
1548 ac_aux_dir=$ac_dir
1549 ac_install_sh="$ac_aux_dir/install-sh -c"
1550 break
1551 elif test -f $ac_dir/install.sh; then
1552 ac_aux_dir=$ac_dir
1553 ac_install_sh="$ac_aux_dir/install.sh -c"
1554 break
1555 elif test -f $ac_dir/shtool; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/shtool install -c"
1558 break
1560 done
1561 if test -z "$ac_aux_dir"; then
1562 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1563 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1564 { (exit 1); exit 1; }; }
1566 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1567 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1568 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1570 # Find a good install program. We prefer a C program (faster),
1571 # so one script is as good as another. But avoid the broken or
1572 # incompatible versions:
1573 # SysV /etc/install, /usr/sbin/install
1574 # SunOS /usr/etc/install
1575 # IRIX /sbin/install
1576 # AIX /bin/install
1577 # AmigaOS /C/install, which installs bootblocks on floppy discs
1578 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1581 # OS/2's system install, which has a completely different semantic
1582 # ./install, which can be erroneously created by make from ./install.sh.
1583 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1584 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1585 if test -z "$INSTALL"; then
1586 if test "${ac_cv_path_install+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
1594 # Account for people who put trailing slashes in PATH elements.
1595 case $as_dir/ in
1596 ./ | .// | /cC/* | \
1597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1598 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1599 /usr/ucb/* ) ;;
1601 # OSF1 and SCO ODT 3.0 have their own names for install.
1602 # Don't use installbsd from OSF since it installs stuff as root
1603 # by default.
1604 for ac_prog in ginstall scoinst install; do
1605 for ac_exec_ext in '' $ac_executable_extensions; do
1606 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1607 if test $ac_prog = install &&
1608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1609 # AIX install. It has an incompatible calling convention.
1611 elif test $ac_prog = install &&
1612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1613 # program-specific install script used by HP pwplus--don't use.
1615 else
1616 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1617 break 3
1620 done
1621 done
1623 esac
1624 done
1628 if test "${ac_cv_path_install+set}" = set; then
1629 INSTALL=$ac_cv_path_install
1630 else
1631 # As a last resort, use the slow shell script. We don't cache a
1632 # path for INSTALL within a source directory, because that will
1633 # break other packages using the cache if that directory is
1634 # removed, or if the path is relative.
1635 INSTALL=$ac_install_sh
1638 echo "$as_me:$LINENO: result: $INSTALL" >&5
1639 echo "${ECHO_T}$INSTALL" >&6
1641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1642 # It thinks the first close brace ends the variable substitution.
1643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1645 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1647 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1649 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1650 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1651 # Just in case
1652 sleep 1
1653 echo timestamp > conftest.file
1654 # Do `set' in a subshell so we don't clobber the current shell's
1655 # arguments. Must try -L first in case configure is actually a
1656 # symlink; some systems play weird games with the mod time of symlinks
1657 # (eg FreeBSD returns the mod time of the symlink's containing
1658 # directory).
1659 if (
1660 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1661 if test "$*" = "X"; then
1662 # -L didn't work.
1663 set X `ls -t $srcdir/configure conftest.file`
1665 rm -f conftest.file
1666 if test "$*" != "X $srcdir/configure conftest.file" \
1667 && test "$*" != "X conftest.file $srcdir/configure"; then
1669 # If neither matched, then we have a broken ls. This can happen
1670 # if, for instance, CONFIG_SHELL is bash and it inherits a
1671 # broken ls alias from the environment. This has actually
1672 # happened. Such a system could not be considered "sane".
1673 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1674 alias in your environment" >&5
1675 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1676 alias in your environment" >&2;}
1677 { (exit 1); exit 1; }; }
1680 test "$2" = conftest.file
1682 then
1683 # Ok.
1685 else
1686 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1687 Check your system clock" >&5
1688 echo "$as_me: error: newly created file is older than distributed files!
1689 Check your system clock" >&2;}
1690 { (exit 1); exit 1; }; }
1692 echo "$as_me:$LINENO: result: yes" >&5
1693 echo "${ECHO_T}yes" >&6
1694 test "$program_prefix" != NONE &&
1695 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1696 # Use a double $ so make ignores it.
1697 test "$program_suffix" != NONE &&
1698 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1699 # Double any \ or $. echo might interpret backslashes.
1700 # By default was `s,x,x', remove it if useless.
1701 cat <<\_ACEOF >conftest.sed
1702 s/[\\$]/&&/g;s/;s,x,x,$//
1703 _ACEOF
1704 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1705 rm conftest.sed
1708 # expand $ac_aux_dir to an absolute path
1709 am_aux_dir=`cd $ac_aux_dir && pwd`
1711 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1712 # Use eval to expand $SHELL
1713 if eval "$MISSING --run true"; then
1714 am_missing_run="$MISSING --run "
1715 else
1716 am_missing_run=
1717 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1718 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1721 for ac_prog in gawk mawk nawk awk
1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
1724 set dummy $ac_prog; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_AWK+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730 if test -n "$AWK"; then
1731 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_AWK="$ac_prog"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1744 done
1745 done
1749 AWK=$ac_cv_prog_AWK
1750 if test -n "$AWK"; then
1751 echo "$as_me:$LINENO: result: $AWK" >&5
1752 echo "${ECHO_T}$AWK" >&6
1753 else
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1758 test -n "$AWK" && break
1759 done
1761 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1762 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1763 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1764 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 else
1767 cat >conftest.make <<\_ACEOF
1768 all:
1769 @echo 'ac_maketemp="$(MAKE)"'
1770 _ACEOF
1771 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1772 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1773 if test -n "$ac_maketemp"; then
1774 eval ac_cv_prog_make_${ac_make}_set=yes
1775 else
1776 eval ac_cv_prog_make_${ac_make}_set=no
1778 rm -f conftest.make
1780 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1781 echo "$as_me:$LINENO: result: yes" >&5
1782 echo "${ECHO_T}yes" >&6
1783 SET_MAKE=
1784 else
1785 echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1787 SET_MAKE="MAKE=${MAKE-make}"
1790 rm -rf .tst 2>/dev/null
1791 mkdir .tst 2>/dev/null
1792 if test -d .tst; then
1793 am__leading_dot=.
1794 else
1795 am__leading_dot=_
1797 rmdir .tst 2>/dev/null
1799 # test to see if srcdir already configured
1800 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1801 test -f $srcdir/config.status; then
1802 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1803 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1804 { (exit 1); exit 1; }; }
1807 # test whether we have cygpath
1808 if test -z "$CYGPATH_W"; then
1809 if (cygpath --version) >/dev/null 2>/dev/null; then
1810 CYGPATH_W='cygpath -w'
1811 else
1812 CYGPATH_W=echo
1817 # Define the identity of the package.
1818 PACKAGE=maemopadplus
1819 VERSION=0.34
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE "$PACKAGE"
1824 _ACEOF
1827 cat >>confdefs.h <<_ACEOF
1828 #define VERSION "$VERSION"
1829 _ACEOF
1831 # Some tools Automake needs.
1833 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1836 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1839 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1842 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1845 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1848 AMTAR=${AMTAR-"${am_missing_run}tar"}
1850 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1852 # Installed binaries are usually stripped using `strip' when the user
1853 # run `make install-strip'. However `strip' might not be the right
1854 # tool to use in cross-compilation environments, therefore Automake
1855 # will honor the `STRIP' environment variable to overrule this program.
1856 if test "$cross_compiling" != no; then
1857 if test -n "$ac_tool_prefix"; then
1858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1859 set dummy ${ac_tool_prefix}strip; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_STRIP+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865 if test -n "$STRIP"; then
1866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 break 2
1879 done
1880 done
1884 STRIP=$ac_cv_prog_STRIP
1885 if test -n "$STRIP"; then
1886 echo "$as_me:$LINENO: result: $STRIP" >&5
1887 echo "${ECHO_T}$STRIP" >&6
1888 else
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1894 if test -z "$ac_cv_prog_STRIP"; then
1895 ac_ct_STRIP=$STRIP
1896 # Extract the first word of "strip", so it can be a program name with args.
1897 set dummy strip; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903 if test -n "$ac_ct_STRIP"; then
1904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1905 else
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1909 IFS=$as_save_IFS
1910 test -z "$as_dir" && as_dir=.
1911 for ac_exec_ext in '' $ac_executable_extensions; do
1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913 ac_cv_prog_ac_ct_STRIP="strip"
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 break 2
1917 done
1918 done
1920 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1923 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1924 if test -n "$ac_ct_STRIP"; then
1925 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1926 echo "${ECHO_T}$ac_ct_STRIP" >&6
1927 else
1928 echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1932 STRIP=$ac_ct_STRIP
1933 else
1934 STRIP="$ac_cv_prog_STRIP"
1938 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1940 # We need awk for the "check" target. The system "awk" is bad on
1941 # some platforms.
1945 ac_config_headers="$ac_config_headers config.h"
1948 # Make sure we can run config.sub.
1949 $ac_config_sub sun4 >/dev/null 2>&1 ||
1950 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1951 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1952 { (exit 1); exit 1; }; }
1954 echo "$as_me:$LINENO: checking build system type" >&5
1955 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1956 if test "${ac_cv_build+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959 ac_cv_build_alias=$build_alias
1960 test -z "$ac_cv_build_alias" &&
1961 ac_cv_build_alias=`$ac_config_guess`
1962 test -z "$ac_cv_build_alias" &&
1963 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1964 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1965 { (exit 1); exit 1; }; }
1966 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1967 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1968 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1969 { (exit 1); exit 1; }; }
1972 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1973 echo "${ECHO_T}$ac_cv_build" >&6
1974 build=$ac_cv_build
1975 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1976 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1977 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1980 echo "$as_me:$LINENO: checking host system type" >&5
1981 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1982 if test "${ac_cv_host+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985 ac_cv_host_alias=$host_alias
1986 test -z "$ac_cv_host_alias" &&
1987 ac_cv_host_alias=$ac_cv_build_alias
1988 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1989 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1990 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1991 { (exit 1); exit 1; }; }
1994 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1995 echo "${ECHO_T}$ac_cv_host" >&6
1996 host=$ac_cv_host
1997 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1998 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1999 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 break 2
2030 done
2031 done
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037 echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2039 else
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2045 if test -z "$ac_cv_prog_CC"; then
2046 ac_ct_CC=$CC
2047 # Extract the first word of "gcc", so it can be a program name with args.
2048 set dummy gcc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2060 IFS=$as_save_IFS
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_ac_ct_CC="gcc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2068 done
2069 done
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6
2077 else
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2082 CC=$ac_ct_CC
2083 else
2084 CC="$ac_cv_prog_CC"
2087 if test -z "$CC"; then
2088 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}cc; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_CC="${ac_tool_prefix}cc"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 break 2
2110 done
2111 done
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2125 if test -z "$ac_cv_prog_CC"; then
2126 ac_ct_CC=$CC
2127 # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc; ac_word=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 if test -n "$ac_ct_CC"; then
2135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144 ac_cv_prog_ac_ct_CC="cc"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 break 2
2148 done
2149 done
2153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2154 if test -n "$ac_ct_CC"; then
2155 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2156 echo "${ECHO_T}$ac_ct_CC" >&6
2157 else
2158 echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2162 CC=$ac_ct_CC
2163 else
2164 CC="$ac_cv_prog_CC"
2168 if test -z "$CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC="$CC" # Let the user override the test.
2178 else
2179 ac_prog_rejected=no
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188 ac_prog_rejected=yes
2189 continue
2191 ac_cv_prog_CC="cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2195 done
2196 done
2198 if test $ac_prog_rejected = yes; then
2199 # We found a bogon in the path, so make sure we never use it.
2200 set dummy $ac_cv_prog_CC
2201 shift
2202 if test $# != 0; then
2203 # We chose a different compiler from the bogus one.
2204 # However, it has the same basename, so the bogon will be chosen
2205 # first if we set CC to just the basename; use the full file name.
2206 shift
2207 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2212 CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214 echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2216 else
2217 echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2222 if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
2224 for ac_prog in cl
2226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2247 done
2248 done
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2261 test -n "$CC" && break
2262 done
2264 if test -z "$CC"; then
2265 ac_ct_CC=$CC
2266 for ac_prog in cl
2268 # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy $ac_prog; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275 if test -n "$ac_ct_CC"; then
2276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_ac_ct_CC="$ac_prog"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 break 2
2289 done
2290 done
2294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297 echo "${ECHO_T}$ac_ct_CC" >&6
2298 else
2299 echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2303 test -n "$ac_ct_CC" && break
2304 done
2306 CC=$ac_ct_CC
2312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2318 # Provide some information about the compiler.
2319 echo "$as_me:$LINENO:" \
2320 "checking for C compiler version" >&5
2321 ac_compiler=`set X $ac_compile; echo $2`
2322 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2323 (eval $ac_compiler --version </dev/null >&5) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2328 (eval $ac_compiler -v </dev/null >&5) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }
2332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2333 (eval $ac_compiler -V </dev/null >&5) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }
2338 cat >conftest.$ac_ext <<_ACEOF
2339 /* confdefs.h. */
2340 _ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2346 main ()
2350 return 0;
2352 _ACEOF
2353 ac_clean_files_save=$ac_clean_files
2354 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2355 # Try to create an executable without -o first, disregard a.out.
2356 # It will help us diagnose broken compilers, and finding out an intuition
2357 # of exeext.
2358 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2359 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2360 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2361 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2362 (eval $ac_link_default) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; then
2366 # Find the output, starting from the most likely. This scheme is
2367 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2368 # resort.
2370 # Be careful to initialize this variable, since it used to be cached.
2371 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2372 ac_cv_exeext=
2373 # b.out is created by i960 compilers.
2374 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2376 test -f "$ac_file" || continue
2377 case $ac_file in
2378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2380 conftest.$ac_ext )
2381 # This is the source file.
2383 [ab].out )
2384 # We found the default executable, but exeext='' is most
2385 # certainly right.
2386 break;;
2387 *.* )
2388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2389 # FIXME: I believe we export ac_cv_exeext for Libtool,
2390 # but it would be cool to find out if it's true. Does anybody
2391 # maintain Libtool? --akim.
2392 export ac_cv_exeext
2393 break;;
2395 break;;
2396 esac
2397 done
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&2;}
2406 { (exit 77); exit 77; }; }
2409 ac_exeext=$ac_cv_exeext
2410 echo "$as_me:$LINENO: result: $ac_file" >&5
2411 echo "${ECHO_T}$ac_file" >&6
2413 # Check the compiler produces executables we can run. If not, either
2414 # the compiler is broken, or we cross compile.
2415 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2418 # If not cross compiling, check that we can run a simple program.
2419 if test "$cross_compiling" != yes; then
2420 if { ac_try='./$ac_file'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 (eval $ac_try) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2426 cross_compiling=no
2427 else
2428 if test "$cross_compiling" = maybe; then
2429 cross_compiling=yes
2430 else
2431 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2432 If you meant to cross compile, use \`--host'.
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2441 echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2444 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2445 ac_clean_files=$ac_clean_files_save
2446 # Check the compiler produces executables we can run. If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2449 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2450 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2451 echo "${ECHO_T}$cross_compiling" >&6
2453 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2454 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2456 (eval $ac_link) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; then
2460 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2461 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2462 # work properly (i.e., refer to `conftest.exe'), while it won't with
2463 # `rm'.
2464 for ac_file in conftest.exe conftest conftest.*; do
2465 test -f "$ac_file" || continue
2466 case $ac_file in
2467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2468 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2469 export ac_cv_exeext
2470 break;;
2471 * ) break;;
2472 esac
2473 done
2474 else
2475 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2478 See \`config.log' for more details." >&2;}
2479 { (exit 1); exit 1; }; }
2482 rm -f conftest$ac_cv_exeext
2483 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2484 echo "${ECHO_T}$ac_cv_exeext" >&6
2486 rm -f conftest.$ac_ext
2487 EXEEXT=$ac_cv_exeext
2488 ac_exeext=$EXEEXT
2489 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2490 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2491 if test "${ac_cv_objext+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494 cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h. */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2502 main ()
2506 return 0;
2508 _ACEOF
2509 rm -f conftest.o conftest.obj
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; then
2515 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2516 case $ac_file in
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2518 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2519 break;;
2520 esac
2521 done
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2535 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2536 echo "${ECHO_T}$ac_cv_objext" >&6
2537 OBJEXT=$ac_cv_objext
2538 ac_objext=$OBJEXT
2539 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2540 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2541 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h. */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2552 main ()
2554 #ifndef __GNUC__
2555 choke me
2556 #endif
2559 return 0;
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>conftest.er1
2565 ac_status=$?
2566 grep -v '^ *+' conftest.er1 >conftest.err
2567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 ac_compiler_gnu=yes
2584 else
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2588 ac_compiler_gnu=no
2590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2591 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2594 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2595 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2596 GCC=`test $ac_compiler_gnu = yes && echo yes`
2597 ac_test_CFLAGS=${CFLAGS+set}
2598 ac_save_CFLAGS=$CFLAGS
2599 CFLAGS="-g"
2600 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2601 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2602 if test "${ac_cv_prog_cc_g+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605 cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h. */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2613 main ()
2617 return 0;
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622 (eval $ac_compile) 2>conftest.er1
2623 ac_status=$?
2624 grep -v '^ *+' conftest.er1 >conftest.err
2625 rm -f conftest.er1
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2641 ac_cv_prog_cc_g=yes
2642 else
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 ac_cv_prog_cc_g=no
2648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2650 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2651 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2652 if test "$ac_test_CFLAGS" = set; then
2653 CFLAGS=$ac_save_CFLAGS
2654 elif test $ac_cv_prog_cc_g = yes; then
2655 if test "$GCC" = yes; then
2656 CFLAGS="-g -O2"
2657 else
2658 CFLAGS="-g"
2660 else
2661 if test "$GCC" = yes; then
2662 CFLAGS="-O2"
2663 else
2664 CFLAGS=
2667 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2668 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2669 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672 ac_cv_prog_cc_stdc=no
2673 ac_save_CC=$CC
2674 cat >conftest.$ac_ext <<_ACEOF
2675 /* confdefs.h. */
2676 _ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
2680 #include <stdarg.h>
2681 #include <stdio.h>
2682 #include <sys/types.h>
2683 #include <sys/stat.h>
2684 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2685 struct buf { int x; };
2686 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2687 static char *e (p, i)
2688 char **p;
2689 int i;
2691 return p[i];
2693 static char *f (char * (*g) (char **, int), char **p, ...)
2695 char *s;
2696 va_list v;
2697 va_start (v,p);
2698 s = g (p, va_arg (v,int));
2699 va_end (v);
2700 return s;
2703 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2704 function prototypes and stuff, but not '\xHH' hex character constants.
2705 These don't provoke an error unfortunately, instead are silently treated
2706 as 'x'. The following induces an error, until -std1 is added to get
2707 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2708 array size at least. It's necessary to write '\x00'==0 to get something
2709 that's true only with -std1. */
2710 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2712 int test (int i, double x);
2713 struct s1 {int (*f) (int a);};
2714 struct s2 {int (*f) (double a);};
2715 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2716 int argc;
2717 char **argv;
2719 main ()
2721 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2723 return 0;
2725 _ACEOF
2726 # Don't try gcc -ansi; that turns off useful extensions and
2727 # breaks some systems' header files.
2728 # AIX -qlanglvl=ansi
2729 # Ultrix and OSF/1 -std1
2730 # HP-UX 10.20 and later -Ae
2731 # HP-UX older versions -Aa -D_HPUX_SOURCE
2732 # SVR4 -Xc -D__EXTENSIONS__
2733 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2735 CC="$ac_save_CC $ac_arg"
2736 rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738 (eval $ac_compile) 2>conftest.er1
2739 ac_status=$?
2740 grep -v '^ *+' conftest.er1 >conftest.err
2741 rm -f conftest.er1
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 (eval $ac_try) 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2757 ac_cv_prog_cc_stdc=$ac_arg
2758 break
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2764 rm -f conftest.err conftest.$ac_objext
2765 done
2766 rm -f conftest.$ac_ext conftest.$ac_objext
2767 CC=$ac_save_CC
2771 case "x$ac_cv_prog_cc_stdc" in
2772 x|xno)
2773 echo "$as_me:$LINENO: result: none needed" >&5
2774 echo "${ECHO_T}none needed" >&6 ;;
2776 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2777 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2778 CC="$CC $ac_cv_prog_cc_stdc" ;;
2779 esac
2781 # Some people use a C++ compiler to compile C. Since we use `exit',
2782 # in C++ we need to declare it. In case someone uses the same compiler
2783 # for both compiling C and C++ we need to have the C++ compiler decide
2784 # the declaration of exit, since it's the most demanding environment.
2785 cat >conftest.$ac_ext <<_ACEOF
2786 #ifndef __cplusplus
2787 choke me
2788 #endif
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>conftest.er1
2793 ac_status=$?
2794 grep -v '^ *+' conftest.er1 >conftest.err
2795 rm -f conftest.er1
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
2799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 for ac_declaration in \
2812 '' \
2813 'extern "C" void std::exit (int) throw (); using std::exit;' \
2814 'extern "C" void std::exit (int); using std::exit;' \
2815 'extern "C" void exit (int) throw ();' \
2816 'extern "C" void exit (int);' \
2817 'void exit (int);'
2819 cat >conftest.$ac_ext <<_ACEOF
2820 /* confdefs.h. */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2825 $ac_declaration
2826 #include <stdlib.h>
2828 main ()
2830 exit (42);
2832 return 0;
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2838 ac_status=$?
2839 grep -v '^ *+' conftest.er1 >conftest.err
2840 rm -f conftest.er1
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; } &&
2850 { ac_try='test -s conftest.$ac_objext'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 (eval $ac_try) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2857 else
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2861 continue
2863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864 cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h. */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2870 $ac_declaration
2872 main ()
2874 exit (42);
2876 return 0;
2878 _ACEOF
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2882 ac_status=$?
2883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 break
2901 else
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 done
2908 rm -f conftest*
2909 if test -n "$ac_declaration"; then
2910 echo '#ifdef __cplusplus' >>confdefs.h
2911 echo $ac_declaration >>confdefs.h
2912 echo '#endif' >>confdefs.h
2915 else
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 DEPDIR="${am__leading_dot}deps"
2928 ac_config_commands="$ac_config_commands depfiles"
2931 am_make=${MAKE-make}
2932 cat > confinc << 'END'
2933 am__doit:
2934 @echo done
2935 .PHONY: am__doit
2937 # If we don't find an include directive, just comment out the code.
2938 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2939 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2940 am__include="#"
2941 am__quote=
2942 _am_result=none
2943 # First try GNU make style include.
2944 echo "include confinc" > confmf
2945 # We grep out `Entering directory' and `Leaving directory'
2946 # messages which can occur if `w' ends up in MAKEFLAGS.
2947 # In particular we don't look at `^make:' because GNU make might
2948 # be invoked under some other name (usually "gmake"), in which
2949 # case it prints its new name instead of `make'.
2950 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2951 am__include=include
2952 am__quote=
2953 _am_result=GNU
2955 # Now try BSD make style include.
2956 if test "$am__include" = "#"; then
2957 echo '.include "confinc"' > confmf
2958 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2959 am__include=.include
2960 am__quote="\""
2961 _am_result=BSD
2966 echo "$as_me:$LINENO: result: $_am_result" >&5
2967 echo "${ECHO_T}$_am_result" >&6
2968 rm -f confinc confmf
2970 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2971 if test "${enable_dependency_tracking+set}" = set; then
2972 enableval="$enable_dependency_tracking"
2975 if test "x$enable_dependency_tracking" != xno; then
2976 am_depcomp="$ac_aux_dir/depcomp"
2977 AMDEPBACKSLASH='\'
2981 if test "x$enable_dependency_tracking" != xno; then
2982 AMDEP_TRUE=
2983 AMDEP_FALSE='#'
2984 else
2985 AMDEP_TRUE='#'
2986 AMDEP_FALSE=
2992 depcc="$CC" am_compiler_list=
2994 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2995 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2996 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3000 # We make a subdir and do the tests there. Otherwise we can end up
3001 # making bogus files that we don't know about and never remove. For
3002 # instance it was reported that on HP-UX the gcc test will end up
3003 # making a dummy file named `D' -- because `-MD' means `put the output
3004 # in D'.
3005 mkdir conftest.dir
3006 # Copy depcomp to subdir because otherwise we won't find it if we're
3007 # using a relative directory.
3008 cp "$am_depcomp" conftest.dir
3009 cd conftest.dir
3010 # We will build objects and dependencies in a subdirectory because
3011 # it helps to detect inapplicable dependency modes. For instance
3012 # both Tru64's cc and ICC support -MD to output dependencies as a
3013 # side effect of compilation, but ICC will put the dependencies in
3014 # the current directory while Tru64 will put them in the object
3015 # directory.
3016 mkdir sub
3018 am_cv_CC_dependencies_compiler_type=none
3019 if test "$am_compiler_list" = ""; then
3020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3022 for depmode in $am_compiler_list; do
3023 # Setup a source with many dependencies, because some compilers
3024 # like to wrap large dependency lists on column 80 (with \), and
3025 # we should not choose a depcomp mode which is confused by this.
3027 # We need to recreate these files for each test, as the compiler may
3028 # overwrite some of them when testing with obscure command lines.
3029 # This happens at least with the AIX C compiler.
3030 : > sub/conftest.c
3031 for i in 1 2 3 4 5 6; do
3032 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3033 : > sub/conftst$i.h
3034 done
3035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3037 case $depmode in
3038 nosideeffect)
3039 # after this tag, mechanisms are not by side-effect, so they'll
3040 # only be used when explicitly requested
3041 if test "x$enable_dependency_tracking" = xyes; then
3042 continue
3043 else
3044 break
3047 none) break ;;
3048 esac
3049 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3050 # mode. It turns out that the SunPro C++ compiler does not properly
3051 # handle `-M -o', and we need to detect this.
3052 if depmode=$depmode \
3053 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3054 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3055 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3056 >/dev/null 2>conftest.err &&
3057 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3058 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3059 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3060 # icc doesn't choke on unknown options, it will just issue warnings
3061 # (even with -Werror). So we grep stderr for any message
3062 # that says an option was ignored.
3063 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3064 am_cv_CC_dependencies_compiler_type=$depmode
3065 break
3068 done
3070 cd ..
3071 rm -rf conftest.dir
3072 else
3073 am_cv_CC_dependencies_compiler_type=none
3077 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3078 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3079 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3084 test "x$enable_dependency_tracking" != xno \
3085 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3086 am__fastdepCC_TRUE=
3087 am__fastdepCC_FALSE='#'
3088 else
3089 am__fastdepCC_TRUE='#'
3090 am__fastdepCC_FALSE=
3094 ac_ext=c
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3100 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3101 # On Suns, sometimes $CPP names a directory.
3102 if test -n "$CPP" && test -d "$CPP"; then
3103 CPP=
3105 if test -z "$CPP"; then
3106 if test "${ac_cv_prog_CPP+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 # Double quotes because CPP needs to be expanded
3110 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3112 ac_preproc_ok=false
3113 for ac_c_preproc_warn_flag in '' yes
3115 # Use a header file that comes with gcc, so configuring glibc
3116 # with a fresh cross-compiler works.
3117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3118 # <limits.h> exists even on freestanding compilers.
3119 # On the NeXT, cc -E runs the code through the compiler's parser,
3120 # not just through cpp. "Syntax error" is here to catch this case.
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #ifdef __STDC__
3128 # include <limits.h>
3129 #else
3130 # include <assert.h>
3131 #endif
3132 Syntax error
3133 _ACEOF
3134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } >/dev/null; then
3142 if test -s conftest.err; then
3143 ac_cpp_err=$ac_c_preproc_warn_flag
3144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3145 else
3146 ac_cpp_err=
3148 else
3149 ac_cpp_err=yes
3151 if test -z "$ac_cpp_err"; then
3153 else
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 # Broken: fails on valid input.
3158 continue
3160 rm -f conftest.err conftest.$ac_ext
3162 # OK, works on sane cases. Now check whether non-existent headers
3163 # can be detected and how.
3164 cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h. */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3170 #include <ac_nonexistent.h>
3171 _ACEOF
3172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3174 ac_status=$?
3175 grep -v '^ *+' conftest.er1 >conftest.err
3176 rm -f conftest.er1
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } >/dev/null; then
3180 if test -s conftest.err; then
3181 ac_cpp_err=$ac_c_preproc_warn_flag
3182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3183 else
3184 ac_cpp_err=
3186 else
3187 ac_cpp_err=yes
3189 if test -z "$ac_cpp_err"; then
3190 # Broken: success on invalid input.
3191 continue
3192 else
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3196 # Passes both tests.
3197 ac_preproc_ok=:
3198 break
3200 rm -f conftest.err conftest.$ac_ext
3202 done
3203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3204 rm -f conftest.err conftest.$ac_ext
3205 if $ac_preproc_ok; then
3206 break
3209 done
3210 ac_cv_prog_CPP=$CPP
3213 CPP=$ac_cv_prog_CPP
3214 else
3215 ac_cv_prog_CPP=$CPP
3217 echo "$as_me:$LINENO: result: $CPP" >&5
3218 echo "${ECHO_T}$CPP" >&6
3219 ac_preproc_ok=false
3220 for ac_c_preproc_warn_flag in '' yes
3222 # Use a header file that comes with gcc, so configuring glibc
3223 # with a fresh cross-compiler works.
3224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3225 # <limits.h> exists even on freestanding compilers.
3226 # On the NeXT, cc -E runs the code through the compiler's parser,
3227 # not just through cpp. "Syntax error" is here to catch this case.
3228 cat >conftest.$ac_ext <<_ACEOF
3229 /* confdefs.h. */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3234 #ifdef __STDC__
3235 # include <limits.h>
3236 #else
3237 # include <assert.h>
3238 #endif
3239 Syntax error
3240 _ACEOF
3241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3243 ac_status=$?
3244 grep -v '^ *+' conftest.er1 >conftest.err
3245 rm -f conftest.er1
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } >/dev/null; then
3249 if test -s conftest.err; then
3250 ac_cpp_err=$ac_c_preproc_warn_flag
3251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252 else
3253 ac_cpp_err=
3255 else
3256 ac_cpp_err=yes
3258 if test -z "$ac_cpp_err"; then
3260 else
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 # Broken: fails on valid input.
3265 continue
3267 rm -f conftest.err conftest.$ac_ext
3269 # OK, works on sane cases. Now check whether non-existent headers
3270 # can be detected and how.
3271 cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h. */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3277 #include <ac_nonexistent.h>
3278 _ACEOF
3279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290 else
3291 ac_cpp_err=
3293 else
3294 ac_cpp_err=yes
3296 if test -z "$ac_cpp_err"; then
3297 # Broken: success on invalid input.
3298 continue
3299 else
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 # Passes both tests.
3304 ac_preproc_ok=:
3305 break
3307 rm -f conftest.err conftest.$ac_ext
3309 done
3310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3311 rm -f conftest.err conftest.$ac_ext
3312 if $ac_preproc_ok; then
3314 else
3315 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3316 See \`config.log' for more details." >&5
3317 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3318 See \`config.log' for more details." >&2;}
3319 { (exit 1); exit 1; }; }
3322 ac_ext=c
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 # Find a good install program. We prefer a C program (faster),
3329 # so one script is as good as another. But avoid the broken or
3330 # incompatible versions:
3331 # SysV /etc/install, /usr/sbin/install
3332 # SunOS /usr/etc/install
3333 # IRIX /sbin/install
3334 # AIX /bin/install
3335 # AmigaOS /C/install, which installs bootblocks on floppy discs
3336 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3337 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3338 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3339 # OS/2's system install, which has a completely different semantic
3340 # ./install, which can be erroneously created by make from ./install.sh.
3341 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3342 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3343 if test -z "$INSTALL"; then
3344 if test "${ac_cv_path_install+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 # Account for people who put trailing slashes in PATH elements.
3353 case $as_dir/ in
3354 ./ | .// | /cC/* | \
3355 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3356 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3357 /usr/ucb/* ) ;;
3359 # OSF1 and SCO ODT 3.0 have their own names for install.
3360 # Don't use installbsd from OSF since it installs stuff as root
3361 # by default.
3362 for ac_prog in ginstall scoinst install; do
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3365 if test $ac_prog = install &&
3366 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3367 # AIX install. It has an incompatible calling convention.
3369 elif test $ac_prog = install &&
3370 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3371 # program-specific install script used by HP pwplus--don't use.
3373 else
3374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3375 break 3
3378 done
3379 done
3381 esac
3382 done
3386 if test "${ac_cv_path_install+set}" = set; then
3387 INSTALL=$ac_cv_path_install
3388 else
3389 # As a last resort, use the slow shell script. We don't cache a
3390 # path for INSTALL within a source directory, because that will
3391 # break other packages using the cache if that directory is
3392 # removed, or if the path is relative.
3393 INSTALL=$ac_install_sh
3396 echo "$as_me:$LINENO: result: $INSTALL" >&5
3397 echo "${ECHO_T}$INSTALL" >&6
3399 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3400 # It thinks the first close brace ends the variable substitution.
3401 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3403 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3405 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3407 if test -n "$ac_tool_prefix"; then
3408 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3410 echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3412 if test "${ac_cv_prog_RANLIB+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 if test -n "$RANLIB"; then
3416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3429 done
3430 done
3434 RANLIB=$ac_cv_prog_RANLIB
3435 if test -n "$RANLIB"; then
3436 echo "$as_me:$LINENO: result: $RANLIB" >&5
3437 echo "${ECHO_T}$RANLIB" >&6
3438 else
3439 echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3444 if test -z "$ac_cv_prog_RANLIB"; then
3445 ac_ct_RANLIB=$RANLIB
3446 # Extract the first word of "ranlib", so it can be a program name with args.
3447 set dummy ranlib; ac_word=$2
3448 echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3450 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453 if test -n "$ac_ct_RANLIB"; then
3454 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3459 IFS=$as_save_IFS
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463 ac_cv_prog_ac_ct_RANLIB="ranlib"
3464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 break 2
3467 done
3468 done
3470 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3473 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3474 if test -n "$ac_ct_RANLIB"; then
3475 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3476 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3477 else
3478 echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6
3482 RANLIB=$ac_ct_RANLIB
3483 else
3484 RANLIB="$ac_cv_prog_RANLIB"
3487 # Check whether --enable-shared or --disable-shared was given.
3488 if test "${enable_shared+set}" = set; then
3489 enableval="$enable_shared"
3490 p=${PACKAGE-default}
3491 case $enableval in
3492 yes) enable_shared=yes ;;
3493 no) enable_shared=no ;;
3495 enable_shared=no
3496 # Look at the argument we got. We use all the common list separators.
3497 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3498 for pkg in $enableval; do
3499 IFS="$lt_save_ifs"
3500 if test "X$pkg" = "X$p"; then
3501 enable_shared=yes
3503 done
3504 IFS="$lt_save_ifs"
3506 esac
3507 else
3508 enable_shared=yes
3511 # Check whether --enable-static or --disable-static was given.
3512 if test "${enable_static+set}" = set; then
3513 enableval="$enable_static"
3514 p=${PACKAGE-default}
3515 case $enableval in
3516 yes) enable_static=yes ;;
3517 no) enable_static=no ;;
3519 enable_static=no
3520 # Look at the argument we got. We use all the common list separators.
3521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3522 for pkg in $enableval; do
3523 IFS="$lt_save_ifs"
3524 if test "X$pkg" = "X$p"; then
3525 enable_static=yes
3527 done
3528 IFS="$lt_save_ifs"
3530 esac
3531 else
3532 enable_static=yes
3535 # Check whether --enable-fast-install or --disable-fast-install was given.
3536 if test "${enable_fast_install+set}" = set; then
3537 enableval="$enable_fast_install"
3538 p=${PACKAGE-default}
3539 case $enableval in
3540 yes) enable_fast_install=yes ;;
3541 no) enable_fast_install=no ;;
3543 enable_fast_install=no
3544 # Look at the argument we got. We use all the common list separators.
3545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3546 for pkg in $enableval; do
3547 IFS="$lt_save_ifs"
3548 if test "X$pkg" = "X$p"; then
3549 enable_fast_install=yes
3551 done
3552 IFS="$lt_save_ifs"
3554 esac
3555 else
3556 enable_fast_install=yes
3559 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3560 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3561 if test "${lt_cv_path_SED+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 # Loop through the user's path and test for sed and gsed.
3565 # Then use that list of sed's as ones to test for truncation.
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for lt_ac_prog in sed gsed; do
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3574 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3576 done
3577 done
3578 done
3579 lt_ac_max=0
3580 lt_ac_count=0
3581 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3582 # along with /bin/sed that truncates output.
3583 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3584 test ! -f $lt_ac_sed && continue
3585 cat /dev/null > conftest.in
3586 lt_ac_count=0
3587 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3588 # Check for GNU sed and select it if it is found.
3589 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3590 lt_cv_path_SED=$lt_ac_sed
3591 break
3593 while true; do
3594 cat conftest.in conftest.in >conftest.tmp
3595 mv conftest.tmp conftest.in
3596 cp conftest.in conftest.nl
3597 echo >>conftest.nl
3598 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3599 cmp -s conftest.out conftest.nl || break
3600 # 10000 chars as input seems more than enough
3601 test $lt_ac_count -gt 10 && break
3602 lt_ac_count=`expr $lt_ac_count + 1`
3603 if test $lt_ac_count -gt $lt_ac_max; then
3604 lt_ac_max=$lt_ac_count
3605 lt_cv_path_SED=$lt_ac_sed
3607 done
3608 done
3612 SED=$lt_cv_path_SED
3613 echo "$as_me:$LINENO: result: $SED" >&5
3614 echo "${ECHO_T}$SED" >&6
3616 echo "$as_me:$LINENO: checking for egrep" >&5
3617 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3618 if test "${ac_cv_prog_egrep+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3622 then ac_cv_prog_egrep='grep -E'
3623 else ac_cv_prog_egrep='egrep'
3626 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3627 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3628 EGREP=$ac_cv_prog_egrep
3632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3633 if test "${with_gnu_ld+set}" = set; then
3634 withval="$with_gnu_ld"
3635 test "$withval" = no || with_gnu_ld=yes
3636 else
3637 with_gnu_ld=no
3639 ac_prog=ld
3640 if test "$GCC" = yes; then
3641 # Check if gcc -print-prog-name=ld gives a path.
3642 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3644 case $host in
3645 *-*-mingw*)
3646 # gcc leaves a trailing carriage return which upsets mingw
3647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3650 esac
3651 case $ac_prog in
3652 # Accept absolute paths.
3653 [\\/]* | ?:[\\/]*)
3654 re_direlt='/[^/][^/]*/\.\./'
3655 # Canonicalize the pathname of ld
3656 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3657 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3658 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3659 done
3660 test -z "$LD" && LD="$ac_prog"
3663 # If it fails, then pretend we aren't using GCC.
3664 ac_prog=ld
3667 # If it is relative, then search for the first ld in PATH.
3668 with_gnu_ld=unknown
3670 esac
3671 elif test "$with_gnu_ld" = yes; then
3672 echo "$as_me:$LINENO: checking for GNU ld" >&5
3673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3674 else
3675 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3678 if test "${lt_cv_path_LD+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 if test -z "$LD"; then
3682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3683 for ac_dir in $PATH; do
3684 IFS="$lt_save_ifs"
3685 test -z "$ac_dir" && ac_dir=.
3686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3687 lt_cv_path_LD="$ac_dir/$ac_prog"
3688 # Check to see if the program is GNU ld. I'd rather use --version,
3689 # but apparently some variants of GNU ld only accept -v.
3690 # Break only if it was the GNU/non-GNU ld that we prefer.
3691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3692 *GNU* | *'with BFD'*)
3693 test "$with_gnu_ld" != no && break
3696 test "$with_gnu_ld" != yes && break
3698 esac
3700 done
3701 IFS="$lt_save_ifs"
3702 else
3703 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3707 LD="$lt_cv_path_LD"
3708 if test -n "$LD"; then
3709 echo "$as_me:$LINENO: result: $LD" >&5
3710 echo "${ECHO_T}$LD" >&6
3711 else
3712 echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6
3715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3717 { (exit 1); exit 1; }; }
3718 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3720 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3724 case `$LD -v 2>&1 </dev/null` in
3725 *GNU* | *'with BFD'*)
3726 lt_cv_prog_gnu_ld=yes
3729 lt_cv_prog_gnu_ld=no
3731 esac
3733 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3735 with_gnu_ld=$lt_cv_prog_gnu_ld
3738 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3739 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3740 if test "${lt_cv_ld_reload_flag+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 lt_cv_ld_reload_flag='-r'
3745 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3746 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3747 reload_flag=$lt_cv_ld_reload_flag
3748 case $reload_flag in
3749 "" | " "*) ;;
3750 *) reload_flag=" $reload_flag" ;;
3751 esac
3752 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3753 case $host_os in
3754 darwin*)
3755 if test "$GCC" = yes; then
3756 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3757 else
3758 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3761 esac
3763 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3764 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3765 if test "${lt_cv_path_NM+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 if test -n "$NM"; then
3769 # Let the user override the test.
3770 lt_cv_path_NM="$NM"
3771 else
3772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3773 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3774 IFS="$lt_save_ifs"
3775 test -z "$ac_dir" && ac_dir=.
3776 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3777 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3778 # Check to see if the nm accepts a BSD-compat flag.
3779 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3780 # nm: unknown option "B" ignored
3781 # Tru64's nm complains that /dev/null is an invalid object file
3782 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3783 */dev/null* | *'Invalid file or object type'*)
3784 lt_cv_path_NM="$tmp_nm -B"
3785 break
3788 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3789 */dev/null*)
3790 lt_cv_path_NM="$tmp_nm -p"
3791 break
3794 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3795 continue # so that we can try to find one that supports BSD flags
3797 esac
3798 esac
3800 done
3801 IFS="$lt_save_ifs"
3802 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3805 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3806 echo "${ECHO_T}$lt_cv_path_NM" >&6
3807 NM="$lt_cv_path_NM"
3809 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3810 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3811 LN_S=$as_ln_s
3812 if test "$LN_S" = "ln -s"; then
3813 echo "$as_me:$LINENO: result: yes" >&5
3814 echo "${ECHO_T}yes" >&6
3815 else
3816 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3817 echo "${ECHO_T}no, using $LN_S" >&6
3820 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3821 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3822 if test "${lt_cv_deplibs_check_method+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 lt_cv_file_magic_cmd='$MAGIC_CMD'
3826 lt_cv_file_magic_test_file=
3827 lt_cv_deplibs_check_method='unknown'
3828 # Need to set the preceding variable on all platforms that support
3829 # interlibrary dependencies.
3830 # 'none' -- dependencies not supported.
3831 # `unknown' -- same as none, but documents that we really don't know.
3832 # 'pass_all' -- all dependencies passed with no checks.
3833 # 'test_compile' -- check by making test program.
3834 # 'file_magic [[regex]]' -- check by looking for files in library path
3835 # which responds to the $file_magic_cmd with a given extended regex.
3836 # If you have `file' or equivalent on your system and you're not sure
3837 # whether `pass_all' will *always* work, you probably want this one.
3839 case $host_os in
3840 aix4* | aix5*)
3841 lt_cv_deplibs_check_method=pass_all
3844 beos*)
3845 lt_cv_deplibs_check_method=pass_all
3848 bsdi[45]*)
3849 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3850 lt_cv_file_magic_cmd='/usr/bin/file -L'
3851 lt_cv_file_magic_test_file=/shlib/libc.so
3854 cygwin*)
3855 # func_win32_libid is a shell function defined in ltmain.sh
3856 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3857 lt_cv_file_magic_cmd='func_win32_libid'
3860 mingw* | pw32*)
3861 # Base MSYS/MinGW do not provide the 'file' command needed by
3862 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3863 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3864 lt_cv_file_magic_cmd='$OBJDUMP -f'
3867 darwin* | rhapsody*)
3868 lt_cv_deplibs_check_method=pass_all
3871 freebsd* | kfreebsd*-gnu | dragonfly*)
3872 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3873 case $host_cpu in
3874 i*86 )
3875 # Not sure whether the presence of OpenBSD here was a mistake.
3876 # Let's accept both of them until this is cleared up.
3877 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3878 lt_cv_file_magic_cmd=/usr/bin/file
3879 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3881 esac
3882 else
3883 lt_cv_deplibs_check_method=pass_all
3887 gnu*)
3888 lt_cv_deplibs_check_method=pass_all
3891 hpux10.20* | hpux11*)
3892 lt_cv_file_magic_cmd=/usr/bin/file
3893 case $host_cpu in
3894 ia64*)
3895 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3896 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3898 hppa*64*)
3899 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]'
3900 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3903 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3904 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3906 esac
3909 irix5* | irix6* | nonstopux*)
3910 case $LD in
3911 *-32|*"-32 ") libmagic=32-bit;;
3912 *-n32|*"-n32 ") libmagic=N32;;
3913 *-64|*"-64 ") libmagic=64-bit;;
3914 *) libmagic=never-match;;
3915 esac
3916 lt_cv_deplibs_check_method=pass_all
3919 # This must be Linux ELF.
3920 linux*)
3921 lt_cv_deplibs_check_method=pass_all
3924 netbsd*)
3925 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3927 else
3928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3932 newos6*)
3933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3934 lt_cv_file_magic_cmd=/usr/bin/file
3935 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3938 nto-qnx*)
3939 lt_cv_deplibs_check_method=unknown
3942 openbsd*)
3943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3945 else
3946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3950 osf3* | osf4* | osf5*)
3951 lt_cv_deplibs_check_method=pass_all
3954 sco3.2v5*)
3955 lt_cv_deplibs_check_method=pass_all
3958 solaris*)
3959 lt_cv_deplibs_check_method=pass_all
3962 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3963 case $host_vendor in
3964 motorola)
3965 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]'
3966 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3968 ncr)
3969 lt_cv_deplibs_check_method=pass_all
3971 sequent)
3972 lt_cv_file_magic_cmd='/bin/file'
3973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3975 sni)
3976 lt_cv_file_magic_cmd='/bin/file'
3977 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3978 lt_cv_file_magic_test_file=/lib/libc.so
3980 siemens)
3981 lt_cv_deplibs_check_method=pass_all
3983 esac
3986 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3987 lt_cv_deplibs_check_method=pass_all
3989 esac
3992 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3993 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3994 file_magic_cmd=$lt_cv_file_magic_cmd
3995 deplibs_check_method=$lt_cv_deplibs_check_method
3996 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4001 # If no C compiler was specified, use CC.
4002 LTCC=${LTCC-"$CC"}
4004 # Allow CC to be a program name with arguments.
4005 compiler=$CC
4008 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4009 if test "${enable_libtool_lock+set}" = set; then
4010 enableval="$enable_libtool_lock"
4013 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4015 # Some flags need to be propagated to the compiler or linker for good
4016 # libtool support.
4017 case $host in
4018 ia64-*-hpux*)
4019 # Find out which ABI we are using.
4020 echo 'int i;' > conftest.$ac_ext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; then
4026 case `/usr/bin/file conftest.$ac_objext` in
4027 *ELF-32*)
4028 HPUX_IA64_MODE="32"
4030 *ELF-64*)
4031 HPUX_IA64_MODE="64"
4033 esac
4035 rm -rf conftest*
4037 *-*-irix6*)
4038 # Find out which ABI we are using.
4039 echo '#line 4039 "configure"' > conftest.$ac_ext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; then
4045 if test "$lt_cv_prog_gnu_ld" = yes; then
4046 case `/usr/bin/file conftest.$ac_objext` in
4047 *32-bit*)
4048 LD="${LD-ld} -melf32bsmip"
4050 *N32*)
4051 LD="${LD-ld} -melf32bmipn32"
4053 *64-bit*)
4054 LD="${LD-ld} -melf64bmip"
4056 esac
4057 else
4058 case `/usr/bin/file conftest.$ac_objext` in
4059 *32-bit*)
4060 LD="${LD-ld} -32"
4062 *N32*)
4063 LD="${LD-ld} -n32"
4065 *64-bit*)
4066 LD="${LD-ld} -64"
4068 esac
4071 rm -rf conftest*
4074 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4075 # Find out which ABI we are using.
4076 echo 'int i;' > conftest.$ac_ext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4078 (eval $ac_compile) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; then
4082 case `/usr/bin/file conftest.o` in
4083 *32-bit*)
4084 case $host in
4085 x86_64-*linux*)
4086 LD="${LD-ld} -m elf_i386"
4088 ppc64-*linux*|powerpc64-*linux*)
4089 LD="${LD-ld} -m elf32ppclinux"
4091 s390x-*linux*)
4092 LD="${LD-ld} -m elf_s390"
4094 sparc64-*linux*)
4095 LD="${LD-ld} -m elf32_sparc"
4097 esac
4099 *64-bit*)
4100 case $host in
4101 x86_64-*linux*)
4102 LD="${LD-ld} -m elf_x86_64"
4104 ppc*-*linux*|powerpc*-*linux*)
4105 LD="${LD-ld} -m elf64ppc"
4107 s390*-*linux*)
4108 LD="${LD-ld} -m elf64_s390"
4110 sparc*-*linux*)
4111 LD="${LD-ld} -m elf64_sparc"
4113 esac
4115 esac
4117 rm -rf conftest*
4120 *-*-sco3.2v5*)
4121 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4122 SAVE_CFLAGS="$CFLAGS"
4123 CFLAGS="$CFLAGS -belf"
4124 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4125 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4126 if test "${lt_cv_cc_needs_belf+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129 ac_ext=c
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4143 main ()
4147 return 0;
4149 _ACEOF
4150 rm -f conftest.$ac_objext conftest$ac_exeext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4152 (eval $ac_link) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest$ac_exeext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 lt_cv_cc_needs_belf=yes
4172 else
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4176 lt_cv_cc_needs_belf=no
4178 rm -f conftest.err conftest.$ac_objext \
4179 conftest$ac_exeext conftest.$ac_ext
4180 ac_ext=c
4181 ac_cpp='$CPP $CPPFLAGS'
4182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4188 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4189 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4190 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4191 CFLAGS="$SAVE_CFLAGS"
4195 esac
4197 need_locks="$enable_libtool_lock"
4201 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4202 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4203 if test "${ac_cv_header_stdc+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206 cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h. */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 #include <stdlib.h>
4213 #include <stdarg.h>
4214 #include <string.h>
4215 #include <float.h>
4218 main ()
4222 return 0;
4224 _ACEOF
4225 rm -f conftest.$ac_objext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 (eval $ac_try) 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_cv_header_stdc=yes
4247 else
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 ac_cv_header_stdc=no
4253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4255 if test $ac_cv_header_stdc = yes; then
4256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4257 cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h. */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4263 #include <string.h>
4265 _ACEOF
4266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4267 $EGREP "memchr" >/dev/null 2>&1; then
4269 else
4270 ac_cv_header_stdc=no
4272 rm -f conftest*
4276 if test $ac_cv_header_stdc = yes; then
4277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4278 cat >conftest.$ac_ext <<_ACEOF
4279 /* confdefs.h. */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4284 #include <stdlib.h>
4286 _ACEOF
4287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4288 $EGREP "free" >/dev/null 2>&1; then
4290 else
4291 ac_cv_header_stdc=no
4293 rm -f conftest*
4297 if test $ac_cv_header_stdc = yes; then
4298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4299 if test "$cross_compiling" = yes; then
4301 else
4302 cat >conftest.$ac_ext <<_ACEOF
4303 /* confdefs.h. */
4304 _ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h. */
4308 #include <ctype.h>
4309 #if ((' ' & 0x0FF) == 0x020)
4310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4312 #else
4313 # define ISLOWER(c) \
4314 (('a' <= (c) && (c) <= 'i') \
4315 || ('j' <= (c) && (c) <= 'r') \
4316 || ('s' <= (c) && (c) <= 'z'))
4317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4318 #endif
4320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4322 main ()
4324 int i;
4325 for (i = 0; i < 256; i++)
4326 if (XOR (islower (i), ISLOWER (i))
4327 || toupper (i) != TOUPPER (i))
4328 exit(2);
4329 exit (0);
4331 _ACEOF
4332 rm -f conftest$ac_exeext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4334 (eval $ac_link) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4344 else
4345 echo "$as_me: program exited with status $ac_status" >&5
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 ( exit $ac_status )
4350 ac_cv_header_stdc=no
4352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4356 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4357 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4358 if test $ac_cv_header_stdc = yes; then
4360 cat >>confdefs.h <<\_ACEOF
4361 #define STDC_HEADERS 1
4362 _ACEOF
4366 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4376 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4377 inttypes.h stdint.h unistd.h
4379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4380 echo "$as_me:$LINENO: checking for $ac_header" >&5
4381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 cat >conftest.$ac_ext <<_ACEOF
4386 /* confdefs.h. */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4391 $ac_includes_default
4393 #include <$ac_header>
4394 _ACEOF
4395 rm -f conftest.$ac_objext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>conftest.er1
4398 ac_status=$?
4399 grep -v '^ *+' conftest.er1 >conftest.err
4400 rm -f conftest.er1
4401 cat conftest.err >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 (eval $ac_try) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; } &&
4410 { ac_try='test -s conftest.$ac_objext'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 (eval $ac_try) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; }; then
4416 eval "$as_ac_Header=yes"
4417 else
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 eval "$as_ac_Header=no"
4423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4428 cat >>confdefs.h <<_ACEOF
4429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4430 _ACEOF
4434 done
4438 for ac_header in dlfcn.h
4440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442 echo "$as_me:$LINENO: checking for $ac_header" >&5
4443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4449 else
4450 # Is the header compilable?
4451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4453 cat >conftest.$ac_ext <<_ACEOF
4454 /* confdefs.h. */
4455 _ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h. */
4459 $ac_includes_default
4460 #include <$ac_header>
4461 _ACEOF
4462 rm -f conftest.$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>conftest.er1
4465 ac_status=$?
4466 grep -v '^ *+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try='test -s conftest.$ac_objext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_header_compiler=yes
4484 else
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4488 ac_header_compiler=no
4490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4492 echo "${ECHO_T}$ac_header_compiler" >&6
4494 # Is the header present?
4495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4497 cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h. */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 #include <$ac_header>
4504 _ACEOF
4505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4507 ac_status=$?
4508 grep -v '^ *+' conftest.er1 >conftest.err
4509 rm -f conftest.er1
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } >/dev/null; then
4513 if test -s conftest.err; then
4514 ac_cpp_err=$ac_c_preproc_warn_flag
4515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4516 else
4517 ac_cpp_err=
4519 else
4520 ac_cpp_err=yes
4522 if test -z "$ac_cpp_err"; then
4523 ac_header_preproc=yes
4524 else
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4528 ac_header_preproc=no
4530 rm -f conftest.err conftest.$ac_ext
4531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4532 echo "${ECHO_T}$ac_header_preproc" >&6
4534 # So? What about this header?
4535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4536 yes:no: )
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4541 ac_header_preproc=yes
4543 no:yes:* )
4544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4557 cat <<\_ASBOX
4558 ## ------------------------------------------ ##
4559 ## Report this to the AC_PACKAGE_NAME lists. ##
4560 ## ------------------------------------------ ##
4561 _ASBOX
4563 sed "s/^/$as_me: WARNING: /" >&2
4565 esac
4566 echo "$as_me:$LINENO: checking for $ac_header" >&5
4567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 eval "$as_ac_Header=\$ac_header_preproc"
4573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4578 cat >>confdefs.h <<_ACEOF
4579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4580 _ACEOF
4584 done
4586 ac_ext=cc
4587 ac_cpp='$CXXCPP $CPPFLAGS'
4588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4591 if test -n "$ac_tool_prefix"; then
4592 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_CXX+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601 if test -n "$CXX"; then
4602 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4615 done
4616 done
4620 CXX=$ac_cv_prog_CXX
4621 if test -n "$CXX"; then
4622 echo "$as_me:$LINENO: result: $CXX" >&5
4623 echo "${ECHO_T}$CXX" >&6
4624 else
4625 echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6
4629 test -n "$CXX" && break
4630 done
4632 if test -z "$CXX"; then
4633 ac_ct_CXX=$CXX
4634 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4636 # Extract the first word of "$ac_prog", so it can be a program name with args.
4637 set dummy $ac_prog; ac_word=$2
4638 echo "$as_me:$LINENO: checking for $ac_word" >&5
4639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4640 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 if test -n "$ac_ct_CXX"; then
4644 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_ac_ct_CXX="$ac_prog"
4654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4657 done
4658 done
4662 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4663 if test -n "$ac_ct_CXX"; then
4664 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4665 echo "${ECHO_T}$ac_ct_CXX" >&6
4666 else
4667 echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6
4671 test -n "$ac_ct_CXX" && break
4672 done
4673 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4675 CXX=$ac_ct_CXX
4679 # Provide some information about the compiler.
4680 echo "$as_me:$LINENO:" \
4681 "checking for C++ compiler version" >&5
4682 ac_compiler=`set X $ac_compile; echo $2`
4683 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4684 (eval $ac_compiler --version </dev/null >&5) 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }
4688 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4689 (eval $ac_compiler -v </dev/null >&5) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }
4693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4694 (eval $ac_compiler -V </dev/null >&5) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }
4699 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4700 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4701 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704 cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h. */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4712 main ()
4714 #ifndef __GNUC__
4715 choke me
4716 #endif
4719 return 0;
4721 _ACEOF
4722 rm -f conftest.$ac_objext
4723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4724 (eval $ac_compile) 2>conftest.er1
4725 ac_status=$?
4726 grep -v '^ *+' conftest.er1 >conftest.err
4727 rm -f conftest.er1
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try='test -s conftest.$ac_objext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_compiler_gnu=yes
4744 else
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 ac_compiler_gnu=no
4750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4751 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4754 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4755 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4756 GXX=`test $ac_compiler_gnu = yes && echo yes`
4757 ac_test_CXXFLAGS=${CXXFLAGS+set}
4758 ac_save_CXXFLAGS=$CXXFLAGS
4759 CXXFLAGS="-g"
4760 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4761 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4762 if test "${ac_cv_prog_cxx_g+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765 cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h. */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4773 main ()
4777 return 0;
4779 _ACEOF
4780 rm -f conftest.$ac_objext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 (eval $ac_try) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; } &&
4795 { ac_try='test -s conftest.$ac_objext'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 (eval $ac_try) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; }; then
4801 ac_cv_prog_cxx_g=yes
4802 else
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4806 ac_cv_prog_cxx_g=no
4808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4811 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4812 if test "$ac_test_CXXFLAGS" = set; then
4813 CXXFLAGS=$ac_save_CXXFLAGS
4814 elif test $ac_cv_prog_cxx_g = yes; then
4815 if test "$GXX" = yes; then
4816 CXXFLAGS="-g -O2"
4817 else
4818 CXXFLAGS="-g"
4820 else
4821 if test "$GXX" = yes; then
4822 CXXFLAGS="-O2"
4823 else
4824 CXXFLAGS=
4827 for ac_declaration in \
4828 '' \
4829 'extern "C" void std::exit (int) throw (); using std::exit;' \
4830 'extern "C" void std::exit (int); using std::exit;' \
4831 'extern "C" void exit (int) throw ();' \
4832 'extern "C" void exit (int);' \
4833 'void exit (int);'
4835 cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h. */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 $ac_declaration
4842 #include <stdlib.h>
4844 main ()
4846 exit (42);
4848 return 0;
4850 _ACEOF
4851 rm -f conftest.$ac_objext
4852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>conftest.er1
4854 ac_status=$?
4855 grep -v '^ *+' conftest.er1 >conftest.err
4856 rm -f conftest.er1
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } &&
4860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; } &&
4866 { ac_try='test -s conftest.$ac_objext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4873 else
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 continue
4879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4880 cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h. */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 $ac_declaration
4888 main ()
4890 exit (42);
4892 return 0;
4894 _ACEOF
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; } &&
4910 { ac_try='test -s conftest.$ac_objext'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 (eval $ac_try) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4916 break
4917 else
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4923 done
4924 rm -f conftest*
4925 if test -n "$ac_declaration"; then
4926 echo '#ifdef __cplusplus' >>confdefs.h
4927 echo $ac_declaration >>confdefs.h
4928 echo '#endif' >>confdefs.h
4931 ac_ext=cc
4932 ac_cpp='$CXXCPP $CPPFLAGS'
4933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4937 depcc="$CXX" am_compiler_list=
4939 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4940 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4941 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4945 # We make a subdir and do the tests there. Otherwise we can end up
4946 # making bogus files that we don't know about and never remove. For
4947 # instance it was reported that on HP-UX the gcc test will end up
4948 # making a dummy file named `D' -- because `-MD' means `put the output
4949 # in D'.
4950 mkdir conftest.dir
4951 # Copy depcomp to subdir because otherwise we won't find it if we're
4952 # using a relative directory.
4953 cp "$am_depcomp" conftest.dir
4954 cd conftest.dir
4955 # We will build objects and dependencies in a subdirectory because
4956 # it helps to detect inapplicable dependency modes. For instance
4957 # both Tru64's cc and ICC support -MD to output dependencies as a
4958 # side effect of compilation, but ICC will put the dependencies in
4959 # the current directory while Tru64 will put them in the object
4960 # directory.
4961 mkdir sub
4963 am_cv_CXX_dependencies_compiler_type=none
4964 if test "$am_compiler_list" = ""; then
4965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4967 for depmode in $am_compiler_list; do
4968 # Setup a source with many dependencies, because some compilers
4969 # like to wrap large dependency lists on column 80 (with \), and
4970 # we should not choose a depcomp mode which is confused by this.
4972 # We need to recreate these files for each test, as the compiler may
4973 # overwrite some of them when testing with obscure command lines.
4974 # This happens at least with the AIX C compiler.
4975 : > sub/conftest.c
4976 for i in 1 2 3 4 5 6; do
4977 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4978 : > sub/conftst$i.h
4979 done
4980 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4982 case $depmode in
4983 nosideeffect)
4984 # after this tag, mechanisms are not by side-effect, so they'll
4985 # only be used when explicitly requested
4986 if test "x$enable_dependency_tracking" = xyes; then
4987 continue
4988 else
4989 break
4992 none) break ;;
4993 esac
4994 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4995 # mode. It turns out that the SunPro C++ compiler does not properly
4996 # handle `-M -o', and we need to detect this.
4997 if depmode=$depmode \
4998 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4999 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5000 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5001 >/dev/null 2>conftest.err &&
5002 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5003 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5004 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5005 # icc doesn't choke on unknown options, it will just issue warnings
5006 # (even with -Werror). So we grep stderr for any message
5007 # that says an option was ignored.
5008 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5009 am_cv_CXX_dependencies_compiler_type=$depmode
5010 break
5013 done
5015 cd ..
5016 rm -rf conftest.dir
5017 else
5018 am_cv_CXX_dependencies_compiler_type=none
5022 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5023 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5024 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5029 test "x$enable_dependency_tracking" != xno \
5030 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5031 am__fastdepCXX_TRUE=
5032 am__fastdepCXX_FALSE='#'
5033 else
5034 am__fastdepCXX_TRUE='#'
5035 am__fastdepCXX_FALSE=
5041 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5042 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5043 (test "X$CXX" != "Xg++"))) ; then
5044 ac_ext=cc
5045 ac_cpp='$CXXCPP $CPPFLAGS'
5046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5049 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5050 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5051 if test -z "$CXXCPP"; then
5052 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 else
5055 # Double quotes because CXXCPP needs to be expanded
5056 for CXXCPP in "$CXX -E" "/lib/cpp"
5058 ac_preproc_ok=false
5059 for ac_cxx_preproc_warn_flag in '' yes
5061 # Use a header file that comes with gcc, so configuring glibc
5062 # with a fresh cross-compiler works.
5063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5064 # <limits.h> exists even on freestanding compilers.
5065 # On the NeXT, cc -E runs the code through the compiler's parser,
5066 # not just through cpp. "Syntax error" is here to catch this case.
5067 cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h. */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 #ifdef __STDC__
5074 # include <limits.h>
5075 #else
5076 # include <assert.h>
5077 #endif
5078 Syntax error
5079 _ACEOF
5080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } >/dev/null; then
5088 if test -s conftest.err; then
5089 ac_cpp_err=$ac_cxx_preproc_warn_flag
5090 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5091 else
5092 ac_cpp_err=
5094 else
5095 ac_cpp_err=yes
5097 if test -z "$ac_cpp_err"; then
5099 else
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5103 # Broken: fails on valid input.
5104 continue
5106 rm -f conftest.err conftest.$ac_ext
5108 # OK, works on sane cases. Now check whether non-existent headers
5109 # can be detected and how.
5110 cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h. */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 #include <ac_nonexistent.h>
5117 _ACEOF
5118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5120 ac_status=$?
5121 grep -v '^ *+' conftest.er1 >conftest.err
5122 rm -f conftest.er1
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } >/dev/null; then
5126 if test -s conftest.err; then
5127 ac_cpp_err=$ac_cxx_preproc_warn_flag
5128 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5129 else
5130 ac_cpp_err=
5132 else
5133 ac_cpp_err=yes
5135 if test -z "$ac_cpp_err"; then
5136 # Broken: success on invalid input.
5137 continue
5138 else
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 # Passes both tests.
5143 ac_preproc_ok=:
5144 break
5146 rm -f conftest.err conftest.$ac_ext
5148 done
5149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5150 rm -f conftest.err conftest.$ac_ext
5151 if $ac_preproc_ok; then
5152 break
5155 done
5156 ac_cv_prog_CXXCPP=$CXXCPP
5159 CXXCPP=$ac_cv_prog_CXXCPP
5160 else
5161 ac_cv_prog_CXXCPP=$CXXCPP
5163 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5164 echo "${ECHO_T}$CXXCPP" >&6
5165 ac_preproc_ok=false
5166 for ac_cxx_preproc_warn_flag in '' yes
5168 # Use a header file that comes with gcc, so configuring glibc
5169 # with a fresh cross-compiler works.
5170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5171 # <limits.h> exists even on freestanding compilers.
5172 # On the NeXT, cc -E runs the code through the compiler's parser,
5173 # not just through cpp. "Syntax error" is here to catch this case.
5174 cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h. */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 #ifdef __STDC__
5181 # include <limits.h>
5182 #else
5183 # include <assert.h>
5184 #endif
5185 Syntax error
5186 _ACEOF
5187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } >/dev/null; then
5195 if test -s conftest.err; then
5196 ac_cpp_err=$ac_cxx_preproc_warn_flag
5197 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5198 else
5199 ac_cpp_err=
5201 else
5202 ac_cpp_err=yes
5204 if test -z "$ac_cpp_err"; then
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 # Broken: fails on valid input.
5211 continue
5213 rm -f conftest.err conftest.$ac_ext
5215 # OK, works on sane cases. Now check whether non-existent headers
5216 # can be detected and how.
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 #include <ac_nonexistent.h>
5224 _ACEOF
5225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5227 ac_status=$?
5228 grep -v '^ *+' conftest.er1 >conftest.err
5229 rm -f conftest.er1
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } >/dev/null; then
5233 if test -s conftest.err; then
5234 ac_cpp_err=$ac_cxx_preproc_warn_flag
5235 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5236 else
5237 ac_cpp_err=
5239 else
5240 ac_cpp_err=yes
5242 if test -z "$ac_cpp_err"; then
5243 # Broken: success on invalid input.
5244 continue
5245 else
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 # Passes both tests.
5250 ac_preproc_ok=:
5251 break
5253 rm -f conftest.err conftest.$ac_ext
5255 done
5256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5257 rm -f conftest.err conftest.$ac_ext
5258 if $ac_preproc_ok; then
5260 else
5261 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5262 See \`config.log' for more details." >&5
5263 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5264 See \`config.log' for more details." >&2;}
5265 { (exit 1); exit 1; }; }
5268 ac_ext=cc
5269 ac_cpp='$CXXCPP $CPPFLAGS'
5270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5277 ac_ext=f
5278 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5279 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5280 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5281 if test -n "$ac_tool_prefix"; then
5282 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5286 echo "$as_me:$LINENO: checking for $ac_word" >&5
5287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5288 if test "${ac_cv_prog_F77+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291 if test -n "$F77"; then
5292 ac_cv_prog_F77="$F77" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5305 done
5306 done
5310 F77=$ac_cv_prog_F77
5311 if test -n "$F77"; then
5312 echo "$as_me:$LINENO: result: $F77" >&5
5313 echo "${ECHO_T}$F77" >&6
5314 else
5315 echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6
5319 test -n "$F77" && break
5320 done
5322 if test -z "$F77"; then
5323 ac_ct_F77=$F77
5324 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5326 # Extract the first word of "$ac_prog", so it can be a program name with args.
5327 set dummy $ac_prog; ac_word=$2
5328 echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333 if test -n "$ac_ct_F77"; then
5334 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5335 else
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_ac_ct_F77="$ac_prog"
5344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5347 done
5348 done
5352 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5353 if test -n "$ac_ct_F77"; then
5354 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5355 echo "${ECHO_T}$ac_ct_F77" >&6
5356 else
5357 echo "$as_me:$LINENO: result: no" >&5
5358 echo "${ECHO_T}no" >&6
5361 test -n "$ac_ct_F77" && break
5362 done
5364 F77=$ac_ct_F77
5368 # Provide some information about the compiler.
5369 echo "$as_me:5369:" \
5370 "checking for Fortran 77 compiler version" >&5
5371 ac_compiler=`set X $ac_compile; echo $2`
5372 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5373 (eval $ac_compiler --version </dev/null >&5) 2>&5
5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }
5377 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5378 (eval $ac_compiler -v </dev/null >&5) 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }
5382 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5383 (eval $ac_compiler -V </dev/null >&5) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }
5387 rm -f a.out
5389 # If we don't use `.F' as extension, the preprocessor is not run on the
5390 # input file. (Note that this only needs to work for GNU compilers.)
5391 ac_save_ext=$ac_ext
5392 ac_ext=F
5393 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5394 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5395 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398 cat >conftest.$ac_ext <<_ACEOF
5399 program main
5400 #ifndef __GNUC__
5401 choke me
5402 #endif
5405 _ACEOF
5406 rm -f conftest.$ac_objext
5407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5408 (eval $ac_compile) 2>conftest.er1
5409 ac_status=$?
5410 grep -v '^ *+' conftest.er1 >conftest.err
5411 rm -f conftest.er1
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } &&
5415 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 (eval $ac_try) 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; } &&
5421 { ac_try='test -s conftest.$ac_objext'
5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 (eval $ac_try) 2>&5
5424 ac_status=$?
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; }; then
5427 ac_compiler_gnu=yes
5428 else
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5432 ac_compiler_gnu=no
5434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5435 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5438 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5439 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5440 ac_ext=$ac_save_ext
5441 ac_test_FFLAGS=${FFLAGS+set}
5442 ac_save_FFLAGS=$FFLAGS
5443 FFLAGS=
5444 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5445 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5446 if test "${ac_cv_prog_f77_g+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449 FFLAGS=-g
5450 cat >conftest.$ac_ext <<_ACEOF
5451 program main
5454 _ACEOF
5455 rm -f conftest.$ac_objext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457 (eval $ac_compile) 2>conftest.er1
5458 ac_status=$?
5459 grep -v '^ *+' conftest.er1 >conftest.err
5460 rm -f conftest.er1
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 (eval $ac_try) 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; } &&
5470 { ac_try='test -s conftest.$ac_objext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 (eval $ac_try) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_cv_prog_f77_g=yes
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 ac_cv_prog_f77_g=no
5483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5487 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5488 if test "$ac_test_FFLAGS" = set; then
5489 FFLAGS=$ac_save_FFLAGS
5490 elif test $ac_cv_prog_f77_g = yes; then
5491 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5492 FFLAGS="-g -O2"
5493 else
5494 FFLAGS="-g"
5496 else
5497 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5498 FFLAGS="-O2"
5499 else
5500 FFLAGS=
5504 G77=`test $ac_compiler_gnu = yes && echo yes`
5505 ac_ext=c
5506 ac_cpp='$CPP $CPPFLAGS'
5507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5513 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5515 # find the maximum length of command line arguments
5516 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5517 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5518 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5522 teststring="ABCD"
5524 case $build_os in
5525 msdosdjgpp*)
5526 # On DJGPP, this test can blow up pretty badly due to problems in libc
5527 # (any single argument exceeding 2000 bytes causes a buffer overrun
5528 # during glob expansion). Even if it were fixed, the result of this
5529 # check would be larger than it should be.
5530 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5533 gnu*)
5534 # Under GNU Hurd, this test is not required because there is
5535 # no limit to the length of command line arguments.
5536 # Libtool will interpret -1 as no limit whatsoever
5537 lt_cv_sys_max_cmd_len=-1;
5540 cygwin* | mingw*)
5541 # On Win9x/ME, this test blows up -- it succeeds, but takes
5542 # about 5 minutes as the teststring grows exponentially.
5543 # Worse, since 9x/ME are not pre-emptively multitasking,
5544 # you end up with a "frozen" computer, even though with patience
5545 # the test eventually succeeds (with a max line length of 256k).
5546 # Instead, let's just punt: use the minimum linelength reported by
5547 # all of the supported platforms: 8192 (on NT/2K/XP).
5548 lt_cv_sys_max_cmd_len=8192;
5551 amigaos*)
5552 # On AmigaOS with pdksh, this test takes hours, literally.
5553 # So we just punt and use a minimum line length of 8192.
5554 lt_cv_sys_max_cmd_len=8192;
5557 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5558 # This has been around since 386BSD, at least. Likely further.
5559 if test -x /sbin/sysctl; then
5560 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5561 elif test -x /usr/sbin/sysctl; then
5562 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5563 else
5564 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5566 # And add a safety zone
5567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5570 osf*)
5571 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5572 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5573 # nice to cause kernel panics so lets avoid the loop below.
5574 # First set a reasonable default.
5575 lt_cv_sys_max_cmd_len=16384
5577 if test -x /sbin/sysconfig; then
5578 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5579 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5580 esac
5584 # If test is not a shell built-in, we'll probably end up computing a
5585 # maximum length that is only half of the actual maximum length, but
5586 # we can't tell.
5587 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5588 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5589 = "XX$teststring") >/dev/null 2>&1 &&
5590 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5591 lt_cv_sys_max_cmd_len=$new_result &&
5592 test $i != 17 # 1/2 MB should be enough
5594 i=`expr $i + 1`
5595 teststring=$teststring$teststring
5596 done
5597 teststring=
5598 # Add a significant safety factor because C++ compilers can tack on massive
5599 # amounts of additional arguments before passing them to the linker.
5600 # It appears as though 1/2 is a usable value.
5601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5603 esac
5607 if test -n $lt_cv_sys_max_cmd_len ; then
5608 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5609 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5610 else
5611 echo "$as_me:$LINENO: result: none" >&5
5612 echo "${ECHO_T}none" >&6
5618 # Check for command to grab the raw symbol name followed by C symbol from nm.
5619 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5620 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5621 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5625 # These are sane defaults that work on at least a few old systems.
5626 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5628 # Character class describing NM global symbol codes.
5629 symcode='[BCDEGRST]'
5631 # Regexp to match symbols that can be accessed directly from C.
5632 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5634 # Transform an extracted symbol line into a proper C declaration
5635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5637 # Transform an extracted symbol line into symbol name and symbol address
5638 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'"
5640 # Define system-specific variables.
5641 case $host_os in
5642 aix*)
5643 symcode='[BCDT]'
5645 cygwin* | mingw* | pw32*)
5646 symcode='[ABCDGISTW]'
5648 hpux*) # Its linker distinguishes data from code symbols
5649 if test "$host_cpu" = ia64; then
5650 symcode='[ABCDEGRST]'
5652 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5653 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'"
5655 linux*)
5656 if test "$host_cpu" = ia64; then
5657 symcode='[ABCDGIRSTW]'
5658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5659 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'"
5662 irix* | nonstopux*)
5663 symcode='[BCDEGRST]'
5665 osf*)
5666 symcode='[BCDEGQRST]'
5668 solaris* | sysv5*)
5669 symcode='[BDRT]'
5671 sysv4)
5672 symcode='[DFNSTU]'
5674 esac
5676 # Handle CRLF in mingw tool chain
5677 opt_cr=
5678 case $build_os in
5679 mingw*)
5680 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5682 esac
5684 # If we're using GNU nm, then use its standard symbol codes.
5685 case `$NM -V 2>&1` in
5686 *GNU* | *'with BFD'*)
5687 symcode='[ABCDGIRSTW]' ;;
5688 esac
5690 # Try without a prefix undercore, then with it.
5691 for ac_symprfx in "" "_"; do
5693 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5694 symxfrm="\\1 $ac_symprfx\\2 \\2"
5696 # Write the raw and C identifiers.
5697 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5699 # Check to see that the pipe works correctly.
5700 pipe_works=no
5702 rm -f conftest*
5703 cat > conftest.$ac_ext <<EOF
5704 #ifdef __cplusplus
5705 extern "C" {
5706 #endif
5707 char nm_test_var;
5708 void nm_test_func(){}
5709 #ifdef __cplusplus
5711 #endif
5712 int main(){nm_test_var='a';nm_test_func();return(0);}
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; then
5720 # Now try to grab the symbols.
5721 nlist=conftest.nm
5722 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5723 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } && test -s "$nlist"; then
5727 # Try sorting and uniquifying the output.
5728 if sort "$nlist" | uniq > "$nlist"T; then
5729 mv -f "$nlist"T "$nlist"
5730 else
5731 rm -f "$nlist"T
5734 # Make sure that we snagged all the symbols we need.
5735 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5736 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5737 cat <<EOF > conftest.$ac_ext
5738 #ifdef __cplusplus
5739 extern "C" {
5740 #endif
5743 # Now generate the symbol file.
5744 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5746 cat <<EOF >> conftest.$ac_ext
5747 #if defined (__STDC__) && __STDC__
5748 # define lt_ptr_t void *
5749 #else
5750 # define lt_ptr_t char *
5751 # define const
5752 #endif
5754 /* The mapping between symbol names and symbols. */
5755 const struct {
5756 const char *name;
5757 lt_ptr_t address;
5759 lt_preloaded_symbols[] =
5762 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5763 cat <<\EOF >> conftest.$ac_ext
5764 {0, (lt_ptr_t) 0}
5767 #ifdef __cplusplus
5769 #endif
5771 # Now try linking the two files.
5772 mv conftest.$ac_objext conftstm.$ac_objext
5773 lt_save_LIBS="$LIBS"
5774 lt_save_CFLAGS="$CFLAGS"
5775 LIBS="conftstm.$ac_objext"
5776 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5778 (eval $ac_link) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5782 pipe_works=yes
5784 LIBS="$lt_save_LIBS"
5785 CFLAGS="$lt_save_CFLAGS"
5786 else
5787 echo "cannot find nm_test_func in $nlist" >&5
5789 else
5790 echo "cannot find nm_test_var in $nlist" >&5
5792 else
5793 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5795 else
5796 echo "$progname: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5799 rm -f conftest* conftst*
5801 # Do not use the global_symbol_pipe unless it works.
5802 if test "$pipe_works" = yes; then
5803 break
5804 else
5805 lt_cv_sys_global_symbol_pipe=
5807 done
5811 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5812 lt_cv_sys_global_symbol_to_cdecl=
5814 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5815 echo "$as_me:$LINENO: result: failed" >&5
5816 echo "${ECHO_T}failed" >&6
5817 else
5818 echo "$as_me:$LINENO: result: ok" >&5
5819 echo "${ECHO_T}ok" >&6
5822 echo "$as_me:$LINENO: checking for objdir" >&5
5823 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5824 if test "${lt_cv_objdir+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827 rm -f .libs 2>/dev/null
5828 mkdir .libs 2>/dev/null
5829 if test -d .libs; then
5830 lt_cv_objdir=.libs
5831 else
5832 # MS-DOS does not allow filenames that begin with a dot.
5833 lt_cv_objdir=_libs
5835 rmdir .libs 2>/dev/null
5837 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5838 echo "${ECHO_T}$lt_cv_objdir" >&6
5839 objdir=$lt_cv_objdir
5845 case $host_os in
5846 aix3*)
5847 # AIX sometimes has problems with the GCC collect2 program. For some
5848 # reason, if we set the COLLECT_NAMES environment variable, the problems
5849 # vanish in a puff of smoke.
5850 if test "X${COLLECT_NAMES+set}" != Xset; then
5851 COLLECT_NAMES=
5852 export COLLECT_NAMES
5855 esac
5857 # Sed substitution that helps us do robust quoting. It backslashifies
5858 # metacharacters that are still active within double-quoted strings.
5859 Xsed='sed -e 1s/^X//'
5860 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5862 # Same as above, but do not quote variable references.
5863 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5865 # Sed substitution to delay expansion of an escaped shell variable in a
5866 # double_quote_subst'ed string.
5867 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5869 # Sed substitution to avoid accidental globbing in evaled expressions
5870 no_glob_subst='s/\*/\\\*/g'
5872 # Constants:
5873 rm="rm -f"
5875 # Global variables:
5876 default_ofile=libtool
5877 can_build_shared=yes
5879 # All known linkers require a `.a' archive for static linking (except MSVC,
5880 # which needs '.lib').
5881 libext=a
5882 ltmain="$ac_aux_dir/ltmain.sh"
5883 ofile="$default_ofile"
5884 with_gnu_ld="$lt_cv_prog_gnu_ld"
5886 if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}ar; ac_word=$2
5889 echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891 if test "${ac_cv_prog_AR+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894 if test -n "$AR"; then
5895 ac_cv_prog_AR="$AR" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_AR="${ac_tool_prefix}ar"
5905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5908 done
5909 done
5913 AR=$ac_cv_prog_AR
5914 if test -n "$AR"; then
5915 echo "$as_me:$LINENO: result: $AR" >&5
5916 echo "${ECHO_T}$AR" >&6
5917 else
5918 echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5923 if test -z "$ac_cv_prog_AR"; then
5924 ac_ct_AR=$AR
5925 # Extract the first word of "ar", so it can be a program name with args.
5926 set dummy ar; ac_word=$2
5927 echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5929 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932 if test -n "$ac_ct_AR"; then
5933 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942 ac_cv_prog_ac_ct_AR="ar"
5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5946 done
5947 done
5949 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5952 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5953 if test -n "$ac_ct_AR"; then
5954 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5955 echo "${ECHO_T}$ac_ct_AR" >&6
5956 else
5957 echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6
5961 AR=$ac_ct_AR
5962 else
5963 AR="$ac_cv_prog_AR"
5966 if test -n "$ac_tool_prefix"; then
5967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5968 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5969 echo "$as_me:$LINENO: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5971 if test "${ac_cv_prog_RANLIB+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 if test -n "$RANLIB"; then
5975 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5988 done
5989 done
5993 RANLIB=$ac_cv_prog_RANLIB
5994 if test -n "$RANLIB"; then
5995 echo "$as_me:$LINENO: result: $RANLIB" >&5
5996 echo "${ECHO_T}$RANLIB" >&6
5997 else
5998 echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6
6003 if test -z "$ac_cv_prog_RANLIB"; then
6004 ac_ct_RANLIB=$RANLIB
6005 # Extract the first word of "ranlib", so it can be a program name with args.
6006 set dummy ranlib; ac_word=$2
6007 echo "$as_me:$LINENO: checking for $ac_word" >&5
6008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6009 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012 if test -n "$ac_ct_RANLIB"; then
6013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_ac_ct_RANLIB="ranlib"
6023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6026 done
6027 done
6029 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6032 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6033 if test -n "$ac_ct_RANLIB"; then
6034 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6035 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6036 else
6037 echo "$as_me:$LINENO: result: no" >&5
6038 echo "${ECHO_T}no" >&6
6041 RANLIB=$ac_ct_RANLIB
6042 else
6043 RANLIB="$ac_cv_prog_RANLIB"
6046 if test -n "$ac_tool_prefix"; then
6047 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6048 set dummy ${ac_tool_prefix}strip; ac_word=$2
6049 echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6051 if test "${ac_cv_prog_STRIP+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054 if test -n "$STRIP"; then
6055 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 break 2
6068 done
6069 done
6073 STRIP=$ac_cv_prog_STRIP
6074 if test -n "$STRIP"; then
6075 echo "$as_me:$LINENO: result: $STRIP" >&5
6076 echo "${ECHO_T}$STRIP" >&6
6077 else
6078 echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6
6083 if test -z "$ac_cv_prog_STRIP"; then
6084 ac_ct_STRIP=$STRIP
6085 # Extract the first word of "strip", so it can be a program name with args.
6086 set dummy strip; ac_word=$2
6087 echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6089 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092 if test -n "$ac_ct_STRIP"; then
6093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_ac_ct_STRIP="strip"
6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6106 done
6107 done
6109 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6113 if test -n "$ac_ct_STRIP"; then
6114 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6115 echo "${ECHO_T}$ac_ct_STRIP" >&6
6116 else
6117 echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6
6121 STRIP=$ac_ct_STRIP
6122 else
6123 STRIP="$ac_cv_prog_STRIP"
6127 old_CC="$CC"
6128 old_CFLAGS="$CFLAGS"
6130 # Set sane defaults for various variables
6131 test -z "$AR" && AR=ar
6132 test -z "$AR_FLAGS" && AR_FLAGS=cru
6133 test -z "$AS" && AS=as
6134 test -z "$CC" && CC=cc
6135 test -z "$LTCC" && LTCC=$CC
6136 test -z "$DLLTOOL" && DLLTOOL=dlltool
6137 test -z "$LD" && LD=ld
6138 test -z "$LN_S" && LN_S="ln -s"
6139 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6140 test -z "$NM" && NM=nm
6141 test -z "$SED" && SED=sed
6142 test -z "$OBJDUMP" && OBJDUMP=objdump
6143 test -z "$RANLIB" && RANLIB=:
6144 test -z "$STRIP" && STRIP=:
6145 test -z "$ac_objext" && ac_objext=o
6147 # Determine commands to create old-style static archives.
6148 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6149 old_postinstall_cmds='chmod 644 $oldlib'
6150 old_postuninstall_cmds=
6152 if test -n "$RANLIB"; then
6153 case $host_os in
6154 openbsd*)
6155 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6158 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6160 esac
6161 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6164 for cc_temp in $compiler""; do
6165 case $cc_temp in
6166 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6167 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6168 \-*) ;;
6169 *) break;;
6170 esac
6171 done
6172 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6175 # Only perform the check for file, if the check method requires it
6176 case $deplibs_check_method in
6177 file_magic*)
6178 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6179 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6180 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6181 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184 case $MAGIC_CMD in
6185 [\\/*] | ?:[\\/]*)
6186 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6189 lt_save_MAGIC_CMD="$MAGIC_CMD"
6190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6191 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6192 for ac_dir in $ac_dummy; do
6193 IFS="$lt_save_ifs"
6194 test -z "$ac_dir" && ac_dir=.
6195 if test -f $ac_dir/${ac_tool_prefix}file; then
6196 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6197 if test -n "$file_magic_test_file"; then
6198 case $deplibs_check_method in
6199 "file_magic "*)
6200 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6202 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6203 $EGREP "$file_magic_regex" > /dev/null; then
6205 else
6206 cat <<EOF 1>&2
6208 *** Warning: the command libtool uses to detect shared libraries,
6209 *** $file_magic_cmd, produces output that libtool cannot recognize.
6210 *** The result is that libtool may fail to recognize shared libraries
6211 *** as such. This will affect the creation of libtool libraries that
6212 *** depend on shared libraries, but programs linked with such libtool
6213 *** libraries will work regardless of this problem. Nevertheless, you
6214 *** may want to report the problem to your system manager and/or to
6215 *** bug-libtool@gnu.org
6218 fi ;;
6219 esac
6221 break
6223 done
6224 IFS="$lt_save_ifs"
6225 MAGIC_CMD="$lt_save_MAGIC_CMD"
6227 esac
6230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6231 if test -n "$MAGIC_CMD"; then
6232 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6233 echo "${ECHO_T}$MAGIC_CMD" >&6
6234 else
6235 echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6
6239 if test -z "$lt_cv_path_MAGIC_CMD"; then
6240 if test -n "$ac_tool_prefix"; then
6241 echo "$as_me:$LINENO: checking for file" >&5
6242 echo $ECHO_N "checking for file... $ECHO_C" >&6
6243 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246 case $MAGIC_CMD in
6247 [\\/*] | ?:[\\/]*)
6248 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6251 lt_save_MAGIC_CMD="$MAGIC_CMD"
6252 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6253 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6254 for ac_dir in $ac_dummy; do
6255 IFS="$lt_save_ifs"
6256 test -z "$ac_dir" && ac_dir=.
6257 if test -f $ac_dir/file; then
6258 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6259 if test -n "$file_magic_test_file"; then
6260 case $deplibs_check_method in
6261 "file_magic "*)
6262 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6264 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6265 $EGREP "$file_magic_regex" > /dev/null; then
6267 else
6268 cat <<EOF 1>&2
6270 *** Warning: the command libtool uses to detect shared libraries,
6271 *** $file_magic_cmd, produces output that libtool cannot recognize.
6272 *** The result is that libtool may fail to recognize shared libraries
6273 *** as such. This will affect the creation of libtool libraries that
6274 *** depend on shared libraries, but programs linked with such libtool
6275 *** libraries will work regardless of this problem. Nevertheless, you
6276 *** may want to report the problem to your system manager and/or to
6277 *** bug-libtool@gnu.org
6280 fi ;;
6281 esac
6283 break
6285 done
6286 IFS="$lt_save_ifs"
6287 MAGIC_CMD="$lt_save_MAGIC_CMD"
6289 esac
6292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6293 if test -n "$MAGIC_CMD"; then
6294 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6295 echo "${ECHO_T}$MAGIC_CMD" >&6
6296 else
6297 echo "$as_me:$LINENO: result: no" >&5
6298 echo "${ECHO_T}no" >&6
6301 else
6302 MAGIC_CMD=:
6308 esac
6310 enable_dlopen=no
6311 enable_win32_dll=no
6313 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6314 if test "${enable_libtool_lock+set}" = set; then
6315 enableval="$enable_libtool_lock"
6318 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6321 # Check whether --with-pic or --without-pic was given.
6322 if test "${with_pic+set}" = set; then
6323 withval="$with_pic"
6324 pic_mode="$withval"
6325 else
6326 pic_mode=default
6328 test -z "$pic_mode" && pic_mode=default
6330 # Use C for the default configuration in the libtool script
6331 tagname=
6332 lt_save_CC="$CC"
6333 ac_ext=c
6334 ac_cpp='$CPP $CPPFLAGS'
6335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6340 # Source file extension for C test sources.
6341 ac_ext=c
6343 # Object file extension for compiled C test sources.
6344 objext=o
6345 objext=$objext
6347 # Code to be used in simple compile tests
6348 lt_simple_compile_test_code="int some_variable = 0;\n"
6350 # Code to be used in simple link tests
6351 lt_simple_link_test_code='int main(){return(0);}\n'
6354 # If no C compiler was specified, use CC.
6355 LTCC=${LTCC-"$CC"}
6357 # Allow CC to be a program name with arguments.
6358 compiler=$CC
6361 # save warnings/boilerplate of simple test code
6362 ac_outfile=conftest.$ac_objext
6363 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6364 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6365 _lt_compiler_boilerplate=`cat conftest.err`
6366 $rm conftest*
6368 ac_outfile=conftest.$ac_objext
6369 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6370 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6371 _lt_linker_boilerplate=`cat conftest.err`
6372 $rm conftest*
6376 # Check for any special shared library compilation flags.
6378 lt_prog_cc_shlib=
6379 if test "$GCC" = no; then
6380 case $host_os in
6381 sco3.2v5*)
6382 lt_prog_cc_shlib='-belf'
6384 esac
6386 if test -n "$lt_prog_cc_shlib"; then
6387 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6388 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6389 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6390 else
6391 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6392 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6393 lt_cv_prog_cc_can_build_shared=no
6399 # Check to make sure the static flag actually works.
6401 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6402 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6403 if test "${lt_prog_compiler_static_works+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406 lt_prog_compiler_static_works=no
6407 save_LDFLAGS="$LDFLAGS"
6408 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6409 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6410 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6411 # The linker can only warn and ignore the option if not recognized
6412 # So say no if there are warnings
6413 if test -s conftest.err; then
6414 # Append any errors to the config.log.
6415 cat conftest.err 1>&5
6416 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6417 $SED '/^$/d' conftest.err >conftest.er2
6418 if diff conftest.exp conftest.er2 >/dev/null; then
6419 lt_prog_compiler_static_works=yes
6421 else
6422 lt_prog_compiler_static_works=yes
6425 $rm conftest*
6426 LDFLAGS="$save_LDFLAGS"
6429 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6430 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6432 if test x"$lt_prog_compiler_static_works" = xyes; then
6434 else
6435 lt_prog_compiler_static=
6441 lt_prog_compiler_no_builtin_flag=
6443 if test "$GCC" = yes; then
6444 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6447 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6448 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6449 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 lt_cv_prog_compiler_rtti_exceptions=no
6453 ac_outfile=conftest.$ac_objext
6454 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6455 lt_compiler_flag="-fno-rtti -fno-exceptions"
6456 # Insert the option either (1) after the last *FLAGS variable, or
6457 # (2) before a word containing "conftest.", or (3) at the end.
6458 # Note that $ac_compile itself does not contain backslashes and begins
6459 # with a dollar sign (not a hyphen), so the echo should work correctly.
6460 # The option is referenced via a variable to avoid confusing sed.
6461 lt_compile=`echo "$ac_compile" | $SED \
6462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6464 -e 's:$: $lt_compiler_flag:'`
6465 (eval echo "\"\$as_me:6465: $lt_compile\"" >&5)
6466 (eval "$lt_compile" 2>conftest.err)
6467 ac_status=$?
6468 cat conftest.err >&5
6469 echo "$as_me:6469: \$? = $ac_status" >&5
6470 if (exit $ac_status) && test -s "$ac_outfile"; then
6471 # The compiler can only warn and ignore the option if not recognized
6472 # So say no if there are warnings other than the usual output.
6473 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6474 $SED '/^$/d' conftest.err >conftest.er2
6475 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6476 lt_cv_prog_compiler_rtti_exceptions=yes
6479 $rm conftest*
6482 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6483 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6487 else
6493 lt_prog_compiler_wl=
6494 lt_prog_compiler_pic=
6495 lt_prog_compiler_static=
6497 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6498 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6500 if test "$GCC" = yes; then
6501 lt_prog_compiler_wl='-Wl,'
6502 lt_prog_compiler_static='-static'
6504 case $host_os in
6505 aix*)
6506 # All AIX code is PIC.
6507 if test "$host_cpu" = ia64; then
6508 # AIX 5 now supports IA64 processor
6509 lt_prog_compiler_static='-Bstatic'
6513 amigaos*)
6514 # FIXME: we need at least 68020 code to build shared libraries, but
6515 # adding the `-m68020' flag to GCC prevents building anything better,
6516 # like `-m68040'.
6517 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6520 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6521 # PIC is the default for these OSes.
6524 mingw* | pw32* | os2*)
6525 # This hack is so that the source file can tell whether it is being
6526 # built for inclusion in a dll (and should export symbols for example).
6527 lt_prog_compiler_pic='-DDLL_EXPORT'
6530 darwin* | rhapsody*)
6531 # PIC is the default on this platform
6532 # Common symbols not allowed in MH_DYLIB files
6533 lt_prog_compiler_pic='-fno-common'
6536 msdosdjgpp*)
6537 # Just because we use GCC doesn't mean we suddenly get shared libraries
6538 # on systems that don't support them.
6539 lt_prog_compiler_can_build_shared=no
6540 enable_shared=no
6543 sysv4*MP*)
6544 if test -d /usr/nec; then
6545 lt_prog_compiler_pic=-Kconform_pic
6549 hpux*)
6550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6551 # not for PA HP-UX.
6552 case $host_cpu in
6553 hppa*64*|ia64*)
6554 # +Z the default
6557 lt_prog_compiler_pic='-fPIC'
6559 esac
6563 lt_prog_compiler_pic='-fPIC'
6565 esac
6566 else
6567 # PORTME Check for flag to pass linker flags through the system compiler.
6568 case $host_os in
6569 aix*)
6570 lt_prog_compiler_wl='-Wl,'
6571 if test "$host_cpu" = ia64; then
6572 # AIX 5 now supports IA64 processor
6573 lt_prog_compiler_static='-Bstatic'
6574 else
6575 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6578 darwin*)
6579 # PIC is the default on this platform
6580 # Common symbols not allowed in MH_DYLIB files
6581 case $cc_basename in
6582 xlc*)
6583 lt_prog_compiler_pic='-qnocommon'
6584 lt_prog_compiler_wl='-Wl,'
6586 esac
6589 mingw* | pw32* | os2*)
6590 # This hack is so that the source file can tell whether it is being
6591 # built for inclusion in a dll (and should export symbols for example).
6592 lt_prog_compiler_pic='-DDLL_EXPORT'
6595 hpux9* | hpux10* | hpux11*)
6596 lt_prog_compiler_wl='-Wl,'
6597 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6598 # not for PA HP-UX.
6599 case $host_cpu in
6600 hppa*64*|ia64*)
6601 # +Z the default
6604 lt_prog_compiler_pic='+Z'
6606 esac
6607 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6608 lt_prog_compiler_static='${wl}-a ${wl}archive'
6611 irix5* | irix6* | nonstopux*)
6612 lt_prog_compiler_wl='-Wl,'
6613 # PIC (with -KPIC) is the default.
6614 lt_prog_compiler_static='-non_shared'
6617 newsos6)
6618 lt_prog_compiler_pic='-KPIC'
6619 lt_prog_compiler_static='-Bstatic'
6622 linux*)
6623 case $cc_basename in
6624 icc* | ecc*)
6625 lt_prog_compiler_wl='-Wl,'
6626 lt_prog_compiler_pic='-KPIC'
6627 lt_prog_compiler_static='-static'
6629 pgcc* | pgf77* | pgf90* | pgf95*)
6630 # Portland Group compilers (*not* the Pentium gcc compiler,
6631 # which looks to be a dead project)
6632 lt_prog_compiler_wl='-Wl,'
6633 lt_prog_compiler_pic='-fpic'
6634 lt_prog_compiler_static='-Bstatic'
6636 ccc*)
6637 lt_prog_compiler_wl='-Wl,'
6638 # All Alpha code is PIC.
6639 lt_prog_compiler_static='-non_shared'
6641 esac
6644 osf3* | osf4* | osf5*)
6645 lt_prog_compiler_wl='-Wl,'
6646 # All OSF/1 code is PIC.
6647 lt_prog_compiler_static='-non_shared'
6650 sco3.2v5*)
6651 lt_prog_compiler_pic='-Kpic'
6652 lt_prog_compiler_static='-dn'
6655 solaris*)
6656 lt_prog_compiler_pic='-KPIC'
6657 lt_prog_compiler_static='-Bstatic'
6658 case $cc_basename in
6659 f77* | f90* | f95*)
6660 lt_prog_compiler_wl='-Qoption ld ';;
6662 lt_prog_compiler_wl='-Wl,';;
6663 esac
6666 sunos4*)
6667 lt_prog_compiler_wl='-Qoption ld '
6668 lt_prog_compiler_pic='-PIC'
6669 lt_prog_compiler_static='-Bstatic'
6672 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6673 lt_prog_compiler_wl='-Wl,'
6674 lt_prog_compiler_pic='-KPIC'
6675 lt_prog_compiler_static='-Bstatic'
6678 sysv4*MP*)
6679 if test -d /usr/nec ;then
6680 lt_prog_compiler_pic='-Kconform_pic'
6681 lt_prog_compiler_static='-Bstatic'
6685 unicos*)
6686 lt_prog_compiler_wl='-Wl,'
6687 lt_prog_compiler_can_build_shared=no
6690 uts4*)
6691 lt_prog_compiler_pic='-pic'
6692 lt_prog_compiler_static='-Bstatic'
6696 lt_prog_compiler_can_build_shared=no
6698 esac
6701 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6702 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6705 # Check to make sure the PIC flag actually works.
6707 if test -n "$lt_prog_compiler_pic"; then
6709 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6710 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6711 if test "${lt_prog_compiler_pic_works+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714 lt_prog_compiler_pic_works=no
6715 ac_outfile=conftest.$ac_objext
6716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6717 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6718 # Insert the option either (1) after the last *FLAGS variable, or
6719 # (2) before a word containing "conftest.", or (3) at the end.
6720 # Note that $ac_compile itself does not contain backslashes and begins
6721 # with a dollar sign (not a hyphen), so the echo should work correctly.
6722 # The option is referenced via a variable to avoid confusing sed.
6723 lt_compile=`echo "$ac_compile" | $SED \
6724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6726 -e 's:$: $lt_compiler_flag:'`
6727 (eval echo "\"\$as_me:6727: $lt_compile\"" >&5)
6728 (eval "$lt_compile" 2>conftest.err)
6729 ac_status=$?
6730 cat conftest.err >&5
6731 echo "$as_me:6731: \$? = $ac_status" >&5
6732 if (exit $ac_status) && test -s "$ac_outfile"; then
6733 # The compiler can only warn and ignore the option if not recognized
6734 # So say no if there are warnings other than the usual output.
6735 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6736 $SED '/^$/d' conftest.err >conftest.er2
6737 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6738 lt_prog_compiler_pic_works=yes
6741 $rm conftest*
6744 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6745 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6747 if test x"$lt_prog_compiler_pic_works" = xyes; then
6748 case $lt_prog_compiler_pic in
6749 "" | " "*) ;;
6750 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6751 esac
6752 else
6753 lt_prog_compiler_pic=
6754 lt_prog_compiler_can_build_shared=no
6758 case $host_os in
6759 # For platforms which do not support PIC, -DPIC is meaningless:
6760 *djgpp*)
6761 lt_prog_compiler_pic=
6764 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6766 esac
6768 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6769 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6770 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773 lt_cv_prog_compiler_c_o=no
6774 $rm -r conftest 2>/dev/null
6775 mkdir conftest
6776 cd conftest
6777 mkdir out
6778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6780 lt_compiler_flag="-o out/conftest2.$ac_objext"
6781 # Insert the option either (1) after the last *FLAGS variable, or
6782 # (2) before a word containing "conftest.", or (3) at the end.
6783 # Note that $ac_compile itself does not contain backslashes and begins
6784 # with a dollar sign (not a hyphen), so the echo should work correctly.
6785 lt_compile=`echo "$ac_compile" | $SED \
6786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6788 -e 's:$: $lt_compiler_flag:'`
6789 (eval echo "\"\$as_me:6789: $lt_compile\"" >&5)
6790 (eval "$lt_compile" 2>out/conftest.err)
6791 ac_status=$?
6792 cat out/conftest.err >&5
6793 echo "$as_me:6793: \$? = $ac_status" >&5
6794 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6795 then
6796 # The compiler can only warn and ignore the option if not recognized
6797 # So say no if there are warnings
6798 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6799 $SED '/^$/d' out/conftest.err >out/conftest.er2
6800 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6801 lt_cv_prog_compiler_c_o=yes
6804 chmod u+w . 2>&5
6805 $rm conftest*
6806 # SGI C++ compiler will create directory out/ii_files/ for
6807 # template instantiation
6808 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6809 $rm out/* && rmdir out
6810 cd ..
6811 rmdir conftest
6812 $rm conftest*
6815 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6816 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6819 hard_links="nottested"
6820 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6821 # do not overwrite the value of need_locks provided by the user
6822 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6823 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6824 hard_links=yes
6825 $rm conftest*
6826 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6827 touch conftest.a
6828 ln conftest.a conftest.b 2>&5 || hard_links=no
6829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6830 echo "$as_me:$LINENO: result: $hard_links" >&5
6831 echo "${ECHO_T}$hard_links" >&6
6832 if test "$hard_links" = no; then
6833 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6834 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6835 need_locks=warn
6837 else
6838 need_locks=no
6841 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6842 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6844 runpath_var=
6845 allow_undefined_flag=
6846 enable_shared_with_static_runtimes=no
6847 archive_cmds=
6848 archive_expsym_cmds=
6849 old_archive_From_new_cmds=
6850 old_archive_from_expsyms_cmds=
6851 export_dynamic_flag_spec=
6852 whole_archive_flag_spec=
6853 thread_safe_flag_spec=
6854 hardcode_libdir_flag_spec=
6855 hardcode_libdir_flag_spec_ld=
6856 hardcode_libdir_separator=
6857 hardcode_direct=no
6858 hardcode_minus_L=no
6859 hardcode_shlibpath_var=unsupported
6860 link_all_deplibs=unknown
6861 hardcode_automatic=no
6862 module_cmds=
6863 module_expsym_cmds=
6864 always_export_symbols=no
6865 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6866 # include_expsyms should be a list of space-separated symbols to be *always*
6867 # included in the symbol list
6868 include_expsyms=
6869 # exclude_expsyms can be an extended regexp of symbols to exclude
6870 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6871 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6872 # as well as any symbol that contains `d'.
6873 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6874 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6875 # platforms (ab)use it in PIC code, but their linkers get confused if
6876 # the symbol is explicitly referenced. Since portable code cannot
6877 # rely on this symbol name, it's probably fine to never include it in
6878 # preloaded symbol tables.
6879 extract_expsyms_cmds=
6880 # Just being paranoid about ensuring that cc_basename is set.
6881 for cc_temp in $compiler""; do
6882 case $cc_temp in
6883 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6884 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6885 \-*) ;;
6886 *) break;;
6887 esac
6888 done
6889 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6891 case $host_os in
6892 cygwin* | mingw* | pw32*)
6893 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6894 # When not using gcc, we currently assume that we are using
6895 # Microsoft Visual C++.
6896 if test "$GCC" != yes; then
6897 with_gnu_ld=no
6900 openbsd*)
6901 with_gnu_ld=no
6903 esac
6905 ld_shlibs=yes
6906 if test "$with_gnu_ld" = yes; then
6907 # If archive_cmds runs LD, not CC, wlarc should be empty
6908 wlarc='${wl}'
6910 # Set some defaults for GNU ld with shared library support. These
6911 # are reset later if shared libraries are not supported. Putting them
6912 # here allows them to be overridden if necessary.
6913 runpath_var=LD_RUN_PATH
6914 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6915 export_dynamic_flag_spec='${wl}--export-dynamic'
6916 # ancient GNU ld didn't support --whole-archive et. al.
6917 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6918 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6919 else
6920 whole_archive_flag_spec=
6922 supports_anon_versioning=no
6923 case `$LD -v 2>/dev/null` in
6924 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6927 *\ 2.11.*) ;; # other 2.11 versions
6928 *) supports_anon_versioning=yes ;;
6929 esac
6931 # See if GNU ld supports shared libraries.
6932 case $host_os in
6933 aix3* | aix4* | aix5*)
6934 # On AIX/PPC, the GNU linker is very broken
6935 if test "$host_cpu" != ia64; then
6936 ld_shlibs=no
6937 cat <<EOF 1>&2
6939 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6940 *** to be unable to reliably create shared libraries on AIX.
6941 *** Therefore, libtool is disabling shared libraries support. If you
6942 *** really care for shared libraries, you may want to modify your PATH
6943 *** so that a non-GNU linker is found, and then restart.
6949 amigaos*)
6950 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)'
6951 hardcode_libdir_flag_spec='-L$libdir'
6952 hardcode_minus_L=yes
6954 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6955 # that the semantics of dynamic libraries on AmigaOS, at least up
6956 # to version 4, is to share data among multiple programs linked
6957 # with the same dynamic library. Since this doesn't match the
6958 # behavior of shared libraries on other platforms, we can't use
6959 # them.
6960 ld_shlibs=no
6963 beos*)
6964 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6965 allow_undefined_flag=unsupported
6966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6967 # support --undefined. This deserves some investigation. FIXME
6968 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6969 else
6970 ld_shlibs=no
6974 cygwin* | mingw* | pw32*)
6975 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6976 # as there is no search path for DLLs.
6977 hardcode_libdir_flag_spec='-L$libdir'
6978 allow_undefined_flag=unsupported
6979 always_export_symbols=no
6980 enable_shared_with_static_runtimes=yes
6981 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6983 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6985 # If the export-symbols file already is a .def file (1st line
6986 # is EXPORTS), use it as is; otherwise, prepend...
6987 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6988 cp $export_symbols $output_objdir/$soname.def;
6989 else
6990 echo EXPORTS > $output_objdir/$soname.def;
6991 cat $export_symbols >> $output_objdir/$soname.def;
6993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6994 else
6995 ld_shlibs=no
6999 linux*)
7000 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7001 tmp_addflag=
7002 case $cc_basename,$host_cpu in
7003 pgcc*) # Portland Group C compiler
7004 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'
7005 tmp_addflag=' $pic_flag'
7007 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7008 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'
7009 tmp_addflag=' $pic_flag -Mnomain' ;;
7010 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7011 tmp_addflag=' -i_dynamic' ;;
7012 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7013 tmp_addflag=' -i_dynamic -nofor_main' ;;
7014 ifc* | ifort*) # Intel Fortran compiler
7015 tmp_addflag=' -nofor_main' ;;
7016 esac
7017 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7019 if test $supports_anon_versioning = yes; then
7020 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7021 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7022 $echo "local: *; };" >> $output_objdir/$libname.ver~
7023 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7025 else
7026 ld_shlibs=no
7030 netbsd*)
7031 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7032 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7033 wlarc=
7034 else
7035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7040 solaris* | sysv5*)
7041 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7042 ld_shlibs=no
7043 cat <<EOF 1>&2
7045 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7046 *** create shared libraries on Solaris systems. Therefore, libtool
7047 *** is disabling shared libraries support. We urge you to upgrade GNU
7048 *** binutils to release 2.9.1 or newer. Another option is to modify
7049 *** your PATH or compiler configuration so that the native linker is
7050 *** used, and then restart.
7053 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7055 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7056 else
7057 ld_shlibs=no
7061 sunos4*)
7062 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7063 wlarc=
7064 hardcode_direct=yes
7065 hardcode_shlibpath_var=no
7069 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7071 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7072 else
7073 ld_shlibs=no
7076 esac
7078 if test "$ld_shlibs" = no; then
7079 runpath_var=
7080 hardcode_libdir_flag_spec=
7081 export_dynamic_flag_spec=
7082 whole_archive_flag_spec=
7084 else
7085 # PORTME fill in a description of your system's linker (not GNU ld)
7086 case $host_os in
7087 aix3*)
7088 allow_undefined_flag=unsupported
7089 always_export_symbols=yes
7090 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'
7091 # Note: this linker hardcodes the directories in LIBPATH if there
7092 # are no directories specified by -L.
7093 hardcode_minus_L=yes
7094 if test "$GCC" = yes && test -z "$link_static_flag"; then
7095 # Neither direct hardcoding nor static linking is supported with a
7096 # broken collect2.
7097 hardcode_direct=unsupported
7101 aix4* | aix5*)
7102 if test "$host_cpu" = ia64; then
7103 # On IA64, the linker does run time linking by default, so we don't
7104 # have to do anything special.
7105 aix_use_runtimelinking=no
7106 exp_sym_flag='-Bexport'
7107 no_entry_flag=""
7108 else
7109 # If we're using GNU nm, then we don't want the "-C" option.
7110 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7111 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7112 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'
7113 else
7114 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'
7116 aix_use_runtimelinking=no
7118 # Test if we are trying to use run time linking or normal
7119 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7120 # need to do runtime linking.
7121 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7122 for ld_flag in $LDFLAGS; do
7123 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7124 aix_use_runtimelinking=yes
7125 break
7127 done
7128 esac
7130 exp_sym_flag='-bexport'
7131 no_entry_flag='-bnoentry'
7134 # When large executables or shared objects are built, AIX ld can
7135 # have problems creating the table of contents. If linking a library
7136 # or program results in "error TOC overflow" add -mminimal-toc to
7137 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7138 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7140 archive_cmds=''
7141 hardcode_direct=yes
7142 hardcode_libdir_separator=':'
7143 link_all_deplibs=yes
7145 if test "$GCC" = yes; then
7146 case $host_os in aix4.[012]|aix4.[012].*)
7147 # We only want to do this on AIX 4.2 and lower, the check
7148 # below for broken collect2 doesn't work under 4.3+
7149 collect2name=`${CC} -print-prog-name=collect2`
7150 if test -f "$collect2name" && \
7151 strings "$collect2name" | grep resolve_lib_name >/dev/null
7152 then
7153 # We have reworked collect2
7154 hardcode_direct=yes
7155 else
7156 # We have old collect2
7157 hardcode_direct=unsupported
7158 # It fails to find uninstalled libraries when the uninstalled
7159 # path is not listed in the libpath. Setting hardcode_minus_L
7160 # to unsupported forces relinking
7161 hardcode_minus_L=yes
7162 hardcode_libdir_flag_spec='-L$libdir'
7163 hardcode_libdir_separator=
7165 esac
7166 shared_flag='-shared'
7167 if test "$aix_use_runtimelinking" = yes; then
7168 shared_flag="$shared_flag "'${wl}-G'
7170 else
7171 # not using gcc
7172 if test "$host_cpu" = ia64; then
7173 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7174 # chokes on -Wl,-G. The following line is correct:
7175 shared_flag='-G'
7176 else
7177 if test "$aix_use_runtimelinking" = yes; then
7178 shared_flag='${wl}-G'
7179 else
7180 shared_flag='${wl}-bM:SRE'
7185 # It seems that -bexpall does not export symbols beginning with
7186 # underscore (_), so it is better to generate a list of symbols to export.
7187 always_export_symbols=yes
7188 if test "$aix_use_runtimelinking" = yes; then
7189 # Warning - without using the other runtime loading flags (-brtl),
7190 # -berok will link without error, but may produce a broken library.
7191 allow_undefined_flag='-berok'
7192 # Determine the default libpath from the value encoded in an empty executable.
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7201 main ()
7205 return 0;
7207 _ACEOF
7208 rm -f conftest.$ac_objext conftest$ac_exeext
7209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7210 (eval $ac_link) 2>conftest.er1
7211 ac_status=$?
7212 grep -v '^ *+' conftest.er1 >conftest.err
7213 rm -f conftest.er1
7214 cat conftest.err >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } &&
7217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 (eval $ac_try) 2>&5
7220 ac_status=$?
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; } &&
7223 { ac_try='test -s conftest$ac_exeext'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7230 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7232 # Check for a 64-bit object if we didn't find anything.
7233 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; }
7234 }'`; fi
7235 else
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7240 rm -f conftest.err conftest.$ac_objext \
7241 conftest$ac_exeext conftest.$ac_ext
7242 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7244 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7245 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7246 else
7247 if test "$host_cpu" = ia64; then
7248 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7249 allow_undefined_flag="-z nodefs"
7250 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7251 else
7252 # Determine the default libpath from the value encoded in an empty executable.
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h. */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7261 main ()
7265 return 0;
7267 _ACEOF
7268 rm -f conftest.$ac_objext conftest$ac_exeext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7270 (eval $ac_link) 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 (eval $ac_try) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; } &&
7283 { ac_try='test -s conftest$ac_exeext'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 (eval $ac_try) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; }; then
7290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7292 # Check for a 64-bit object if we didn't find anything.
7293 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; }
7294 }'`; fi
7295 else
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7300 rm -f conftest.err conftest.$ac_objext \
7301 conftest$ac_exeext conftest.$ac_ext
7302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7304 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7305 # Warning - without using the other run time loading flags,
7306 # -berok will link without error, but may produce a broken library.
7307 no_undefined_flag=' ${wl}-bernotok'
7308 allow_undefined_flag=' ${wl}-berok'
7309 # -bexpall does not export symbols beginning with underscore (_)
7310 always_export_symbols=yes
7311 # Exported symbols can be pulled into shared objects from archives
7312 whole_archive_flag_spec=' '
7313 archive_cmds_need_lc=yes
7314 # This is similar to how AIX traditionally builds its shared libraries.
7315 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7320 amigaos*)
7321 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)'
7322 hardcode_libdir_flag_spec='-L$libdir'
7323 hardcode_minus_L=yes
7324 # see comment about different semantics on the GNU ld section
7325 ld_shlibs=no
7328 bsdi[45]*)
7329 export_dynamic_flag_spec=-rdynamic
7332 cygwin* | mingw* | pw32*)
7333 # When not using gcc, we currently assume that we are using
7334 # Microsoft Visual C++.
7335 # hardcode_libdir_flag_spec is actually meaningless, as there is
7336 # no search path for DLLs.
7337 hardcode_libdir_flag_spec=' '
7338 allow_undefined_flag=unsupported
7339 # Tell ltmain to make .lib files, not .a files.
7340 libext=lib
7341 # Tell ltmain to make .dll files, not .so files.
7342 shrext_cmds=".dll"
7343 # FIXME: Setting linknames here is a bad hack.
7344 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7345 # The linker will automatically build a .lib file if we build a DLL.
7346 old_archive_From_new_cmds='true'
7347 # FIXME: Should let the user specify the lib program.
7348 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7349 fix_srcfile_path='`cygpath -w "$srcfile"`'
7350 enable_shared_with_static_runtimes=yes
7353 darwin* | rhapsody*)
7354 case $host_os in
7355 rhapsody* | darwin1.[012])
7356 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7358 *) # Darwin 1.3 on
7359 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7360 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7361 else
7362 case ${MACOSX_DEPLOYMENT_TARGET} in
7363 10.[012])
7364 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7366 10.*)
7367 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7369 esac
7372 esac
7373 archive_cmds_need_lc=no
7374 hardcode_direct=no
7375 hardcode_automatic=yes
7376 hardcode_shlibpath_var=unsupported
7377 whole_archive_flag_spec=''
7378 link_all_deplibs=yes
7379 if test "$GCC" = yes ; then
7380 output_verbose_link_cmd='echo'
7381 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7382 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7383 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7384 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}'
7385 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}'
7386 else
7387 case $cc_basename in
7388 xlc*)
7389 output_verbose_link_cmd='echo'
7390 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7391 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7392 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7393 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}'
7394 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}'
7397 ld_shlibs=no
7399 esac
7403 dgux*)
7404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7405 hardcode_libdir_flag_spec='-L$libdir'
7406 hardcode_shlibpath_var=no
7409 freebsd1*)
7410 ld_shlibs=no
7413 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7414 # support. Future versions do this automatically, but an explicit c++rt0.o
7415 # does not break anything, and helps significantly (at the cost of a little
7416 # extra space).
7417 freebsd2.2*)
7418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7419 hardcode_libdir_flag_spec='-R$libdir'
7420 hardcode_direct=yes
7421 hardcode_shlibpath_var=no
7424 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7425 freebsd2*)
7426 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7427 hardcode_direct=yes
7428 hardcode_minus_L=yes
7429 hardcode_shlibpath_var=no
7432 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7433 freebsd* | kfreebsd*-gnu | dragonfly*)
7434 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7435 hardcode_libdir_flag_spec='-R$libdir'
7436 hardcode_direct=yes
7437 hardcode_shlibpath_var=no
7440 hpux9*)
7441 if test "$GCC" = yes; then
7442 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'
7443 else
7444 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'
7446 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7447 hardcode_libdir_separator=:
7448 hardcode_direct=yes
7450 # hardcode_minus_L: Not really in the search PATH,
7451 # but as the default location of the library.
7452 hardcode_minus_L=yes
7453 export_dynamic_flag_spec='${wl}-E'
7456 hpux10* | hpux11*)
7457 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7458 case $host_cpu in
7459 hppa*64*|ia64*)
7460 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7463 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7465 esac
7466 else
7467 case $host_cpu in
7468 hppa*64*|ia64*)
7469 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7472 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7474 esac
7476 if test "$with_gnu_ld" = no; then
7477 case $host_cpu in
7478 hppa*64*)
7479 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7480 hardcode_libdir_flag_spec_ld='+b $libdir'
7481 hardcode_libdir_separator=:
7482 hardcode_direct=no
7483 hardcode_shlibpath_var=no
7485 ia64*)
7486 hardcode_libdir_flag_spec='-L$libdir'
7487 hardcode_direct=no
7488 hardcode_shlibpath_var=no
7490 # hardcode_minus_L: Not really in the search PATH,
7491 # but as the default location of the library.
7492 hardcode_minus_L=yes
7495 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7496 hardcode_libdir_separator=:
7497 hardcode_direct=yes
7498 export_dynamic_flag_spec='${wl}-E'
7500 # hardcode_minus_L: Not really in the search PATH,
7501 # but as the default location of the library.
7502 hardcode_minus_L=yes
7504 esac
7508 irix5* | irix6* | nonstopux*)
7509 if test "$GCC" = yes; then
7510 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'
7511 else
7512 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'
7513 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7516 hardcode_libdir_separator=:
7517 link_all_deplibs=yes
7520 netbsd*)
7521 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7523 else
7524 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7526 hardcode_libdir_flag_spec='-R$libdir'
7527 hardcode_direct=yes
7528 hardcode_shlibpath_var=no
7531 newsos6)
7532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7533 hardcode_direct=yes
7534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7535 hardcode_libdir_separator=:
7536 hardcode_shlibpath_var=no
7539 openbsd*)
7540 hardcode_direct=yes
7541 hardcode_shlibpath_var=no
7542 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7543 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7544 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7545 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7546 export_dynamic_flag_spec='${wl}-E'
7547 else
7548 case $host_os in
7549 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7551 hardcode_libdir_flag_spec='-R$libdir'
7554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7555 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7557 esac
7561 os2*)
7562 hardcode_libdir_flag_spec='-L$libdir'
7563 hardcode_minus_L=yes
7564 allow_undefined_flag=unsupported
7565 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'
7566 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7569 osf3*)
7570 if test "$GCC" = yes; then
7571 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7572 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'
7573 else
7574 allow_undefined_flag=' -expect_unresolved \*'
7575 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'
7577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7578 hardcode_libdir_separator=:
7581 osf4* | osf5*) # as osf3* with the addition of -msym flag
7582 if test "$GCC" = yes; then
7583 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7584 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'
7585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7586 else
7587 allow_undefined_flag=' -expect_unresolved \*'
7588 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'
7589 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7590 $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'
7592 # Both c and cxx compiler support -rpath directly
7593 hardcode_libdir_flag_spec='-rpath $libdir'
7595 hardcode_libdir_separator=:
7598 sco3.2v5*)
7599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7600 hardcode_shlibpath_var=no
7601 export_dynamic_flag_spec='${wl}-Bexport'
7602 runpath_var=LD_RUN_PATH
7603 hardcode_runpath_var=yes
7606 solaris*)
7607 no_undefined_flag=' -z text'
7608 if test "$GCC" = yes; then
7609 wlarc='${wl}'
7610 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7611 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7612 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7613 else
7614 wlarc=''
7615 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7616 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7617 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7619 hardcode_libdir_flag_spec='-R$libdir'
7620 hardcode_shlibpath_var=no
7621 case $host_os in
7622 solaris2.[0-5] | solaris2.[0-5].*) ;;
7624 # The compiler driver will combine linker options so we
7625 # cannot just pass the convience library names through
7626 # without $wl, iff we do not link with $LD.
7627 # Luckily, gcc supports the same syntax we need for Sun Studio.
7628 # Supported since Solaris 2.6 (maybe 2.5.1?)
7629 case $wlarc in
7631 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7633 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' ;;
7634 esac ;;
7635 esac
7636 link_all_deplibs=yes
7639 sunos4*)
7640 if test "x$host_vendor" = xsequent; then
7641 # Use $CC to link under sequent, because it throws in some extra .o
7642 # files that make .init and .fini sections work.
7643 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7644 else
7645 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7647 hardcode_libdir_flag_spec='-L$libdir'
7648 hardcode_direct=yes
7649 hardcode_minus_L=yes
7650 hardcode_shlibpath_var=no
7653 sysv4)
7654 case $host_vendor in
7655 sni)
7656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7657 hardcode_direct=yes # is this really true???
7659 siemens)
7660 ## LD is ld it makes a PLAMLIB
7661 ## CC just makes a GrossModule.
7662 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7663 reload_cmds='$CC -r -o $output$reload_objs'
7664 hardcode_direct=no
7666 motorola)
7667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7668 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7670 esac
7671 runpath_var='LD_RUN_PATH'
7672 hardcode_shlibpath_var=no
7675 sysv4.3*)
7676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7677 hardcode_shlibpath_var=no
7678 export_dynamic_flag_spec='-Bexport'
7681 sysv4*MP*)
7682 if test -d /usr/nec; then
7683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7684 hardcode_shlibpath_var=no
7685 runpath_var=LD_RUN_PATH
7686 hardcode_runpath_var=yes
7687 ld_shlibs=yes
7691 sysv4.2uw2*)
7692 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7693 hardcode_direct=yes
7694 hardcode_minus_L=no
7695 hardcode_shlibpath_var=no
7696 hardcode_runpath_var=yes
7697 runpath_var=LD_RUN_PATH
7700 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7701 no_undefined_flag='${wl}-z ${wl}text'
7702 if test "$GCC" = yes; then
7703 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7704 else
7705 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7707 runpath_var='LD_RUN_PATH'
7708 hardcode_shlibpath_var=no
7711 sysv5*)
7712 no_undefined_flag=' -z text'
7713 # $CC -shared without GNU ld will not create a library from C++
7714 # object files and a static libstdc++, better avoid it by now
7715 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7716 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7717 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7718 hardcode_libdir_flag_spec=
7719 hardcode_shlibpath_var=no
7720 runpath_var='LD_RUN_PATH'
7723 uts4*)
7724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7725 hardcode_libdir_flag_spec='-L$libdir'
7726 hardcode_shlibpath_var=no
7730 ld_shlibs=no
7732 esac
7735 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7736 echo "${ECHO_T}$ld_shlibs" >&6
7737 test "$ld_shlibs" = no && can_build_shared=no
7739 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7740 if test "$GCC" = yes; then
7741 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7745 # Do we need to explicitly link libc?
7747 case "x$archive_cmds_need_lc" in
7748 x|xyes)
7749 # Assume -lc should be added
7750 archive_cmds_need_lc=yes
7752 if test "$enable_shared" = yes && test "$GCC" = yes; then
7753 case $archive_cmds in
7754 *'~'*)
7755 # FIXME: we may have to deal with multi-command sequences.
7757 '$CC '*)
7758 # Test whether the compiler implicitly links with -lc since on some
7759 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7760 # to ld, don't add -lc before -lgcc.
7761 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7762 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7763 $rm conftest*
7764 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7767 (eval $ac_compile) 2>&5
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } 2>conftest.err; then
7771 soname=conftest
7772 lib=conftest
7773 libobjs=conftest.$ac_objext
7774 deplibs=
7775 wl=$lt_prog_compiler_wl
7776 compiler_flags=-v
7777 linker_flags=-v
7778 verstring=
7779 output_objdir=.
7780 libname=conftest
7781 lt_save_allow_undefined_flag=$allow_undefined_flag
7782 allow_undefined_flag=
7783 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7784 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }
7788 then
7789 archive_cmds_need_lc=no
7790 else
7791 archive_cmds_need_lc=yes
7793 allow_undefined_flag=$lt_save_allow_undefined_flag
7794 else
7795 cat conftest.err 1>&5
7797 $rm conftest*
7798 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7799 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7801 esac
7804 esac
7806 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7807 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7808 library_names_spec=
7809 libname_spec='lib$name'
7810 soname_spec=
7811 shrext_cmds=".so"
7812 postinstall_cmds=
7813 postuninstall_cmds=
7814 finish_cmds=
7815 finish_eval=
7816 shlibpath_var=
7817 shlibpath_overrides_runpath=unknown
7818 version_type=none
7819 dynamic_linker="$host_os ld.so"
7820 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7821 if test "$GCC" = yes; then
7822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7823 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7824 # if the path contains ";" then we assume it to be the separator
7825 # otherwise default to the standard path separator (i.e. ":") - it is
7826 # assumed that no part of a normal pathname contains ";" but that should
7827 # okay in the real world where ";" in dirpaths is itself problematic.
7828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7829 else
7830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7832 else
7833 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7835 need_lib_prefix=unknown
7836 hardcode_into_libs=no
7838 # when you set need_version to no, make sure it does not cause -set_version
7839 # flags to be left without arguments
7840 need_version=unknown
7842 case $host_os in
7843 aix3*)
7844 version_type=linux
7845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7846 shlibpath_var=LIBPATH
7848 # AIX 3 has no versioning support, so we append a major version to the name.
7849 soname_spec='${libname}${release}${shared_ext}$major'
7852 aix4* | aix5*)
7853 version_type=linux
7854 need_lib_prefix=no
7855 need_version=no
7856 hardcode_into_libs=yes
7857 if test "$host_cpu" = ia64; then
7858 # AIX 5 supports IA64
7859 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7860 shlibpath_var=LD_LIBRARY_PATH
7861 else
7862 # With GCC up to 2.95.x, collect2 would create an import file
7863 # for dependence libraries. The import file would start with
7864 # the line `#! .'. This would cause the generated library to
7865 # depend on `.', always an invalid library. This was fixed in
7866 # development snapshots of GCC prior to 3.0.
7867 case $host_os in
7868 aix4 | aix4.[01] | aix4.[01].*)
7869 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7870 echo ' yes '
7871 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7873 else
7874 can_build_shared=no
7877 esac
7878 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7879 # soname into executable. Probably we can add versioning support to
7880 # collect2, so additional links can be useful in future.
7881 if test "$aix_use_runtimelinking" = yes; then
7882 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7883 # instead of lib<name>.a to let people know that these are not
7884 # typical AIX shared libraries.
7885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7886 else
7887 # We preserve .a as extension for shared libraries through AIX4.2
7888 # and later when we are not doing run time linking.
7889 library_names_spec='${libname}${release}.a $libname.a'
7890 soname_spec='${libname}${release}${shared_ext}$major'
7892 shlibpath_var=LIBPATH
7896 amigaos*)
7897 library_names_spec='$libname.ixlibrary $libname.a'
7898 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7899 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'
7902 beos*)
7903 library_names_spec='${libname}${shared_ext}'
7904 dynamic_linker="$host_os ld.so"
7905 shlibpath_var=LIBRARY_PATH
7908 bsdi[45]*)
7909 version_type=linux
7910 need_version=no
7911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7912 soname_spec='${libname}${release}${shared_ext}$major'
7913 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7914 shlibpath_var=LD_LIBRARY_PATH
7915 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7916 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7917 # the default ld.so.conf also contains /usr/contrib/lib and
7918 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7919 # libtool to hard-code these into programs
7922 cygwin* | mingw* | pw32*)
7923 version_type=windows
7924 shrext_cmds=".dll"
7925 need_version=no
7926 need_lib_prefix=no
7928 case $GCC,$host_os in
7929 yes,cygwin* | yes,mingw* | yes,pw32*)
7930 library_names_spec='$libname.dll.a'
7931 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7932 postinstall_cmds='base_file=`basename \${file}`~
7933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7934 dldir=$destdir/`dirname \$dlpath`~
7935 test -d \$dldir || mkdir -p \$dldir~
7936 $install_prog $dir/$dlname \$dldir/$dlname~
7937 chmod a+x \$dldir/$dlname'
7938 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7939 dlpath=$dir/\$dldll~
7940 $rm \$dlpath'
7941 shlibpath_overrides_runpath=yes
7943 case $host_os in
7944 cygwin*)
7945 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7946 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7947 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7949 mingw*)
7950 # MinGW DLLs use traditional 'lib' prefix
7951 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7952 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7953 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7954 # It is most probably a Windows format PATH printed by
7955 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7956 # path with ; separators, and with drive letters. We can handle the
7957 # drive letters (cygwin fileutils understands them), so leave them,
7958 # especially as we might pass files found there to a mingw objdump,
7959 # which wouldn't understand a cygwinified path. Ahh.
7960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7961 else
7962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7965 pw32*)
7966 # pw32 DLLs use 'pw' prefix rather than 'lib'
7967 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7969 esac
7973 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7975 esac
7976 dynamic_linker='Win32 ld.exe'
7977 # FIXME: first we should search . and the directory the executable is in
7978 shlibpath_var=PATH
7981 darwin* | rhapsody*)
7982 dynamic_linker="$host_os dyld"
7983 version_type=darwin
7984 need_lib_prefix=no
7985 need_version=no
7986 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7987 soname_spec='${libname}${release}${major}$shared_ext'
7988 shlibpath_overrides_runpath=yes
7989 shlibpath_var=DYLD_LIBRARY_PATH
7990 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7991 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7992 if test "$GCC" = yes; then
7993 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"`
7994 else
7995 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7997 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8000 dgux*)
8001 version_type=linux
8002 need_lib_prefix=no
8003 need_version=no
8004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8005 soname_spec='${libname}${release}${shared_ext}$major'
8006 shlibpath_var=LD_LIBRARY_PATH
8009 freebsd1*)
8010 dynamic_linker=no
8013 kfreebsd*-gnu)
8014 version_type=linux
8015 need_lib_prefix=no
8016 need_version=no
8017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8018 soname_spec='${libname}${release}${shared_ext}$major'
8019 shlibpath_var=LD_LIBRARY_PATH
8020 shlibpath_overrides_runpath=no
8021 hardcode_into_libs=yes
8022 dynamic_linker='GNU ld.so'
8025 freebsd* | dragonfly*)
8026 # DragonFly does not have aout. When/if they implement a new
8027 # versioning mechanism, adjust this.
8028 if test -x /usr/bin/objformat; then
8029 objformat=`/usr/bin/objformat`
8030 else
8031 case $host_os in
8032 freebsd[123]*) objformat=aout ;;
8033 *) objformat=elf ;;
8034 esac
8036 version_type=freebsd-$objformat
8037 case $version_type in
8038 freebsd-elf*)
8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8040 need_version=no
8041 need_lib_prefix=no
8043 freebsd-*)
8044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8045 need_version=yes
8047 esac
8048 shlibpath_var=LD_LIBRARY_PATH
8049 case $host_os in
8050 freebsd2*)
8051 shlibpath_overrides_runpath=yes
8053 freebsd3.[01]* | freebsdelf3.[01]*)
8054 shlibpath_overrides_runpath=yes
8055 hardcode_into_libs=yes
8057 *) # from 3.2 on
8058 shlibpath_overrides_runpath=no
8059 hardcode_into_libs=yes
8061 esac
8064 gnu*)
8065 version_type=linux
8066 need_lib_prefix=no
8067 need_version=no
8068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8069 soname_spec='${libname}${release}${shared_ext}$major'
8070 shlibpath_var=LD_LIBRARY_PATH
8071 hardcode_into_libs=yes
8074 hpux9* | hpux10* | hpux11*)
8075 # Give a soname corresponding to the major version so that dld.sl refuses to
8076 # link against other versions.
8077 version_type=sunos
8078 need_lib_prefix=no
8079 need_version=no
8080 case $host_cpu in
8081 ia64*)
8082 shrext_cmds='.so'
8083 hardcode_into_libs=yes
8084 dynamic_linker="$host_os dld.so"
8085 shlibpath_var=LD_LIBRARY_PATH
8086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8088 soname_spec='${libname}${release}${shared_ext}$major'
8089 if test "X$HPUX_IA64_MODE" = X32; then
8090 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8091 else
8092 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8096 hppa*64*)
8097 shrext_cmds='.sl'
8098 hardcode_into_libs=yes
8099 dynamic_linker="$host_os dld.sl"
8100 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8103 soname_spec='${libname}${release}${shared_ext}$major'
8104 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8108 shrext_cmds='.sl'
8109 dynamic_linker="$host_os dld.sl"
8110 shlibpath_var=SHLIB_PATH
8111 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8113 soname_spec='${libname}${release}${shared_ext}$major'
8115 esac
8116 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8117 postinstall_cmds='chmod 555 $lib'
8120 irix5* | irix6* | nonstopux*)
8121 case $host_os in
8122 nonstopux*) version_type=nonstopux ;;
8124 if test "$lt_cv_prog_gnu_ld" = yes; then
8125 version_type=linux
8126 else
8127 version_type=irix
8128 fi ;;
8129 esac
8130 need_lib_prefix=no
8131 need_version=no
8132 soname_spec='${libname}${release}${shared_ext}$major'
8133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8134 case $host_os in
8135 irix5* | nonstopux*)
8136 libsuff= shlibsuff=
8139 case $LD in # libtool.m4 will add one of these switches to LD
8140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8141 libsuff= shlibsuff= libmagic=32-bit;;
8142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8143 libsuff=32 shlibsuff=N32 libmagic=N32;;
8144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8145 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8146 *) libsuff= shlibsuff= libmagic=never-match;;
8147 esac
8149 esac
8150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8151 shlibpath_overrides_runpath=no
8152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8154 hardcode_into_libs=yes
8157 # No shared lib support for Linux oldld, aout, or coff.
8158 linux*oldld* | linux*aout* | linux*coff*)
8159 dynamic_linker=no
8162 # This must be Linux ELF.
8163 linux*)
8164 version_type=linux
8165 need_lib_prefix=no
8166 need_version=no
8167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8168 soname_spec='${libname}${release}${shared_ext}$major'
8169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8170 shlibpath_var=LD_LIBRARY_PATH
8171 shlibpath_overrides_runpath=no
8172 # This implies no fast_install, which is unacceptable.
8173 # Some rework will be needed to allow for fast_install
8174 # before this can be enabled.
8175 hardcode_into_libs=yes
8177 # Append ld.so.conf contents to the search path
8178 if test -f /etc/ld.so.conf; then
8179 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' ' '`
8180 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8183 # We used to test for /lib/ld.so.1 and disable shared libraries on
8184 # powerpc, because MkLinux only supported shared libraries with the
8185 # GNU dynamic linker. Since this was broken with cross compilers,
8186 # most powerpc-linux boxes support dynamic linking these days and
8187 # people can always --disable-shared, the test was removed, and we
8188 # assume the GNU/Linux dynamic linker is in use.
8189 dynamic_linker='GNU/Linux ld.so'
8192 knetbsd*-gnu)
8193 version_type=linux
8194 need_lib_prefix=no
8195 need_version=no
8196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8197 soname_spec='${libname}${release}${shared_ext}$major'
8198 shlibpath_var=LD_LIBRARY_PATH
8199 shlibpath_overrides_runpath=no
8200 hardcode_into_libs=yes
8201 dynamic_linker='GNU ld.so'
8204 netbsd*)
8205 version_type=sunos
8206 need_lib_prefix=no
8207 need_version=no
8208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8211 dynamic_linker='NetBSD (a.out) ld.so'
8212 else
8213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8214 soname_spec='${libname}${release}${shared_ext}$major'
8215 dynamic_linker='NetBSD ld.elf_so'
8217 shlibpath_var=LD_LIBRARY_PATH
8218 shlibpath_overrides_runpath=yes
8219 hardcode_into_libs=yes
8222 newsos6)
8223 version_type=linux
8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8225 shlibpath_var=LD_LIBRARY_PATH
8226 shlibpath_overrides_runpath=yes
8229 nto-qnx*)
8230 version_type=linux
8231 need_lib_prefix=no
8232 need_version=no
8233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8234 soname_spec='${libname}${release}${shared_ext}$major'
8235 shlibpath_var=LD_LIBRARY_PATH
8236 shlibpath_overrides_runpath=yes
8239 openbsd*)
8240 version_type=sunos
8241 need_lib_prefix=no
8242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8243 case $host_os in
8244 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8245 *) need_version=no ;;
8246 esac
8247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8249 shlibpath_var=LD_LIBRARY_PATH
8250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8251 case $host_os in
8252 openbsd2.[89] | openbsd2.[89].*)
8253 shlibpath_overrides_runpath=no
8256 shlibpath_overrides_runpath=yes
8258 esac
8259 else
8260 shlibpath_overrides_runpath=yes
8264 os2*)
8265 libname_spec='$name'
8266 shrext_cmds=".dll"
8267 need_lib_prefix=no
8268 library_names_spec='$libname${shared_ext} $libname.a'
8269 dynamic_linker='OS/2 ld.exe'
8270 shlibpath_var=LIBPATH
8273 osf3* | osf4* | osf5*)
8274 version_type=osf
8275 need_lib_prefix=no
8276 need_version=no
8277 soname_spec='${libname}${release}${shared_ext}$major'
8278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8279 shlibpath_var=LD_LIBRARY_PATH
8280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8284 sco3.2v5*)
8285 version_type=osf
8286 soname_spec='${libname}${release}${shared_ext}$major'
8287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8288 shlibpath_var=LD_LIBRARY_PATH
8291 solaris*)
8292 version_type=linux
8293 need_lib_prefix=no
8294 need_version=no
8295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8296 soname_spec='${libname}${release}${shared_ext}$major'
8297 shlibpath_var=LD_LIBRARY_PATH
8298 shlibpath_overrides_runpath=yes
8299 hardcode_into_libs=yes
8300 # ldd complains unless libraries are executable
8301 postinstall_cmds='chmod +x $lib'
8304 sunos4*)
8305 version_type=sunos
8306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8307 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8308 shlibpath_var=LD_LIBRARY_PATH
8309 shlibpath_overrides_runpath=yes
8310 if test "$with_gnu_ld" = yes; then
8311 need_lib_prefix=no
8313 need_version=yes
8316 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8317 version_type=linux
8318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8319 soname_spec='${libname}${release}${shared_ext}$major'
8320 shlibpath_var=LD_LIBRARY_PATH
8321 case $host_vendor in
8322 sni)
8323 shlibpath_overrides_runpath=no
8324 need_lib_prefix=no
8325 export_dynamic_flag_spec='${wl}-Blargedynsym'
8326 runpath_var=LD_RUN_PATH
8328 siemens)
8329 need_lib_prefix=no
8331 motorola)
8332 need_lib_prefix=no
8333 need_version=no
8334 shlibpath_overrides_runpath=no
8335 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8337 esac
8340 sysv4*MP*)
8341 if test -d /usr/nec ;then
8342 version_type=linux
8343 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8344 soname_spec='$libname${shared_ext}.$major'
8345 shlibpath_var=LD_LIBRARY_PATH
8349 uts4*)
8350 version_type=linux
8351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8352 soname_spec='${libname}${release}${shared_ext}$major'
8353 shlibpath_var=LD_LIBRARY_PATH
8357 dynamic_linker=no
8359 esac
8360 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8361 echo "${ECHO_T}$dynamic_linker" >&6
8362 test "$dynamic_linker" = no && can_build_shared=no
8364 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8365 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8366 hardcode_action=
8367 if test -n "$hardcode_libdir_flag_spec" || \
8368 test -n "$runpath_var" || \
8369 test "X$hardcode_automatic" = "Xyes" ; then
8371 # We can hardcode non-existant directories.
8372 if test "$hardcode_direct" != no &&
8373 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8374 # have to relink, otherwise we might link with an installed library
8375 # when we should be linking with a yet-to-be-installed one
8376 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8377 test "$hardcode_minus_L" != no; then
8378 # Linking always hardcodes the temporary library directory.
8379 hardcode_action=relink
8380 else
8381 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8382 hardcode_action=immediate
8384 else
8385 # We cannot hardcode anything, or else we can only hardcode existing
8386 # directories.
8387 hardcode_action=unsupported
8389 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8390 echo "${ECHO_T}$hardcode_action" >&6
8392 if test "$hardcode_action" = relink; then
8393 # Fast installation is not supported
8394 enable_fast_install=no
8395 elif test "$shlibpath_overrides_runpath" = yes ||
8396 test "$enable_shared" = no; then
8397 # Fast installation is not necessary
8398 enable_fast_install=needless
8401 striplib=
8402 old_striplib=
8403 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8404 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8405 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8406 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8407 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8408 echo "$as_me:$LINENO: result: yes" >&5
8409 echo "${ECHO_T}yes" >&6
8410 else
8411 # FIXME - insert some real tests, host_os isn't really good enough
8412 case $host_os in
8413 darwin*)
8414 if test -n "$STRIP" ; then
8415 striplib="$STRIP -x"
8416 echo "$as_me:$LINENO: result: yes" >&5
8417 echo "${ECHO_T}yes" >&6
8418 else
8419 echo "$as_me:$LINENO: result: no" >&5
8420 echo "${ECHO_T}no" >&6
8424 echo "$as_me:$LINENO: result: no" >&5
8425 echo "${ECHO_T}no" >&6
8427 esac
8430 if test "x$enable_dlopen" != xyes; then
8431 enable_dlopen=unknown
8432 enable_dlopen_self=unknown
8433 enable_dlopen_self_static=unknown
8434 else
8435 lt_cv_dlopen=no
8436 lt_cv_dlopen_libs=
8438 case $host_os in
8439 beos*)
8440 lt_cv_dlopen="load_add_on"
8441 lt_cv_dlopen_libs=
8442 lt_cv_dlopen_self=yes
8445 mingw* | pw32*)
8446 lt_cv_dlopen="LoadLibrary"
8447 lt_cv_dlopen_libs=
8450 cygwin*)
8451 lt_cv_dlopen="dlopen"
8452 lt_cv_dlopen_libs=
8455 darwin*)
8456 # if libdl is installed we need to link against it
8457 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8458 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8459 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462 ac_check_lib_save_LIBS=$LIBS
8463 LIBS="-ldl $LIBS"
8464 cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h. */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8471 /* Override any gcc2 internal prototype to avoid an error. */
8472 #ifdef __cplusplus
8473 extern "C"
8474 #endif
8475 /* We use char because int might match the return type of a gcc2
8476 builtin and then its argument prototype would still apply. */
8477 char dlopen ();
8479 main ()
8481 dlopen ();
8483 return 0;
8485 _ACEOF
8486 rm -f conftest.$ac_objext conftest$ac_exeext
8487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8488 (eval $ac_link) 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 (eval $ac_try) 2>&5
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; } &&
8501 { ac_try='test -s conftest$ac_exeext'
8502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 (eval $ac_try) 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; }; then
8507 ac_cv_lib_dl_dlopen=yes
8508 else
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8512 ac_cv_lib_dl_dlopen=no
8514 rm -f conftest.err conftest.$ac_objext \
8515 conftest$ac_exeext conftest.$ac_ext
8516 LIBS=$ac_check_lib_save_LIBS
8518 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8519 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8520 if test $ac_cv_lib_dl_dlopen = yes; then
8521 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8522 else
8524 lt_cv_dlopen="dyld"
8525 lt_cv_dlopen_libs=
8526 lt_cv_dlopen_self=yes
8533 echo "$as_me:$LINENO: checking for shl_load" >&5
8534 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8535 if test "${ac_cv_func_shl_load+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 else
8538 cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h. */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8544 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8546 #define shl_load innocuous_shl_load
8548 /* System header to define __stub macros and hopefully few prototypes,
8549 which can conflict with char shl_load (); below.
8550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8551 <limits.h> exists even on freestanding compilers. */
8553 #ifdef __STDC__
8554 # include <limits.h>
8555 #else
8556 # include <assert.h>
8557 #endif
8559 #undef shl_load
8561 /* Override any gcc2 internal prototype to avoid an error. */
8562 #ifdef __cplusplus
8563 extern "C"
8565 #endif
8566 /* We use char because int might match the return type of a gcc2
8567 builtin and then its argument prototype would still apply. */
8568 char shl_load ();
8569 /* The GNU C library defines this for functions which it implements
8570 to always fail with ENOSYS. Some functions are actually named
8571 something starting with __ and the normal name is an alias. */
8572 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8573 choke me
8574 #else
8575 char (*f) () = shl_load;
8576 #endif
8577 #ifdef __cplusplus
8579 #endif
8582 main ()
8584 return f != shl_load;
8586 return 0;
8588 _ACEOF
8589 rm -f conftest.$ac_objext conftest$ac_exeext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8591 (eval $ac_link) 2>conftest.er1
8592 ac_status=$?
8593 grep -v '^ *+' conftest.er1 >conftest.err
8594 rm -f conftest.er1
8595 cat conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } &&
8598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 (eval $ac_try) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; } &&
8604 { ac_try='test -s conftest$ac_exeext'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 (eval $ac_try) 2>&5
8607 ac_status=$?
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; }; then
8610 ac_cv_func_shl_load=yes
8611 else
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8615 ac_cv_func_shl_load=no
8617 rm -f conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
8620 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8621 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8622 if test $ac_cv_func_shl_load = yes; then
8623 lt_cv_dlopen="shl_load"
8624 else
8625 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8626 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8627 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 else
8630 ac_check_lib_save_LIBS=$LIBS
8631 LIBS="-ldld $LIBS"
8632 cat >conftest.$ac_ext <<_ACEOF
8633 /* confdefs.h. */
8634 _ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8639 /* Override any gcc2 internal prototype to avoid an error. */
8640 #ifdef __cplusplus
8641 extern "C"
8642 #endif
8643 /* We use char because int might match the return type of a gcc2
8644 builtin and then its argument prototype would still apply. */
8645 char shl_load ();
8647 main ()
8649 shl_load ();
8651 return 0;
8653 _ACEOF
8654 rm -f conftest.$ac_objext conftest$ac_exeext
8655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8656 (eval $ac_link) 2>conftest.er1
8657 ac_status=$?
8658 grep -v '^ *+' conftest.er1 >conftest.err
8659 rm -f conftest.er1
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } &&
8663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; } &&
8669 { ac_try='test -s conftest$ac_exeext'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 (eval $ac_try) 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; }; then
8675 ac_cv_lib_dld_shl_load=yes
8676 else
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 ac_cv_lib_dld_shl_load=no
8682 rm -f conftest.err conftest.$ac_objext \
8683 conftest$ac_exeext conftest.$ac_ext
8684 LIBS=$ac_check_lib_save_LIBS
8686 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8687 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8688 if test $ac_cv_lib_dld_shl_load = yes; then
8689 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8690 else
8691 echo "$as_me:$LINENO: checking for dlopen" >&5
8692 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8693 if test "${ac_cv_func_dlopen+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8704 #define dlopen innocuous_dlopen
8706 /* System header to define __stub macros and hopefully few prototypes,
8707 which can conflict with char dlopen (); below.
8708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709 <limits.h> exists even on freestanding compilers. */
8711 #ifdef __STDC__
8712 # include <limits.h>
8713 #else
8714 # include <assert.h>
8715 #endif
8717 #undef dlopen
8719 /* Override any gcc2 internal prototype to avoid an error. */
8720 #ifdef __cplusplus
8721 extern "C"
8723 #endif
8724 /* We use char because int might match the return type of a gcc2
8725 builtin and then its argument prototype would still apply. */
8726 char dlopen ();
8727 /* The GNU C library defines this for functions which it implements
8728 to always fail with ENOSYS. Some functions are actually named
8729 something starting with __ and the normal name is an alias. */
8730 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8731 choke me
8732 #else
8733 char (*f) () = dlopen;
8734 #endif
8735 #ifdef __cplusplus
8737 #endif
8740 main ()
8742 return f != dlopen;
8744 return 0;
8746 _ACEOF
8747 rm -f conftest.$ac_objext conftest$ac_exeext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8749 (eval $ac_link) 2>conftest.er1
8750 ac_status=$?
8751 grep -v '^ *+' conftest.er1 >conftest.err
8752 rm -f conftest.er1
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 (eval $ac_try) 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; } &&
8762 { ac_try='test -s conftest$ac_exeext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 ac_cv_func_dlopen=yes
8769 else
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 ac_cv_func_dlopen=no
8775 rm -f conftest.err conftest.$ac_objext \
8776 conftest$ac_exeext conftest.$ac_ext
8778 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8779 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8780 if test $ac_cv_func_dlopen = yes; then
8781 lt_cv_dlopen="dlopen"
8782 else
8783 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8784 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8785 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788 ac_check_lib_save_LIBS=$LIBS
8789 LIBS="-ldl $LIBS"
8790 cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h. */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8797 /* Override any gcc2 internal prototype to avoid an error. */
8798 #ifdef __cplusplus
8799 extern "C"
8800 #endif
8801 /* We use char because int might match the return type of a gcc2
8802 builtin and then its argument prototype would still apply. */
8803 char dlopen ();
8805 main ()
8807 dlopen ();
8809 return 0;
8811 _ACEOF
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 (eval $ac_try) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; } &&
8827 { ac_try='test -s conftest$ac_exeext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_cv_lib_dl_dlopen=yes
8834 else
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 ac_cv_lib_dl_dlopen=no
8840 rm -f conftest.err conftest.$ac_objext \
8841 conftest$ac_exeext conftest.$ac_ext
8842 LIBS=$ac_check_lib_save_LIBS
8844 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8845 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8846 if test $ac_cv_lib_dl_dlopen = yes; then
8847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8848 else
8849 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8850 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8851 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854 ac_check_lib_save_LIBS=$LIBS
8855 LIBS="-lsvld $LIBS"
8856 cat >conftest.$ac_ext <<_ACEOF
8857 /* confdefs.h. */
8858 _ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h. */
8863 /* Override any gcc2 internal prototype to avoid an error. */
8864 #ifdef __cplusplus
8865 extern "C"
8866 #endif
8867 /* We use char because int might match the return type of a gcc2
8868 builtin and then its argument prototype would still apply. */
8869 char dlopen ();
8871 main ()
8873 dlopen ();
8875 return 0;
8877 _ACEOF
8878 rm -f conftest.$ac_objext conftest$ac_exeext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880 (eval $ac_link) 2>conftest.er1
8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } &&
8887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 (eval $ac_try) 2>&5
8890 ac_status=$?
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; } &&
8893 { ac_try='test -s conftest$ac_exeext'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 (eval $ac_try) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8899 ac_cv_lib_svld_dlopen=yes
8900 else
8901 echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8904 ac_cv_lib_svld_dlopen=no
8906 rm -f conftest.err conftest.$ac_objext \
8907 conftest$ac_exeext conftest.$ac_ext
8908 LIBS=$ac_check_lib_save_LIBS
8910 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8911 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8912 if test $ac_cv_lib_svld_dlopen = yes; then
8913 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8914 else
8915 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8916 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8917 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920 ac_check_lib_save_LIBS=$LIBS
8921 LIBS="-ldld $LIBS"
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h. */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8929 /* Override any gcc2 internal prototype to avoid an error. */
8930 #ifdef __cplusplus
8931 extern "C"
8932 #endif
8933 /* We use char because int might match the return type of a gcc2
8934 builtin and then its argument prototype would still apply. */
8935 char dld_link ();
8937 main ()
8939 dld_link ();
8941 return 0;
8943 _ACEOF
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946 (eval $ac_link) 2>conftest.er1
8947 ac_status=$?
8948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 (eval $ac_try) 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; } &&
8959 { ac_try='test -s conftest$ac_exeext'
8960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 (eval $ac_try) 2>&5
8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; }; then
8965 ac_cv_lib_dld_dld_link=yes
8966 else
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 ac_cv_lib_dld_dld_link=no
8972 rm -f conftest.err conftest.$ac_objext \
8973 conftest$ac_exeext conftest.$ac_ext
8974 LIBS=$ac_check_lib_save_LIBS
8976 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8977 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8978 if test $ac_cv_lib_dld_dld_link = yes; then
8979 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8998 esac
9000 if test "x$lt_cv_dlopen" != xno; then
9001 enable_dlopen=yes
9002 else
9003 enable_dlopen=no
9006 case $lt_cv_dlopen in
9007 dlopen)
9008 save_CPPFLAGS="$CPPFLAGS"
9009 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9011 save_LDFLAGS="$LDFLAGS"
9012 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9014 save_LIBS="$LIBS"
9015 LIBS="$lt_cv_dlopen_libs $LIBS"
9017 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9018 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9019 if test "${lt_cv_dlopen_self+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022 if test "$cross_compiling" = yes; then :
9023 lt_cv_dlopen_self=cross
9024 else
9025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9026 lt_status=$lt_dlunknown
9027 cat > conftest.$ac_ext <<EOF
9028 #line 9028 "configure"
9029 #include "confdefs.h"
9031 #if HAVE_DLFCN_H
9032 #include <dlfcn.h>
9033 #endif
9035 #include <stdio.h>
9037 #ifdef RTLD_GLOBAL
9038 # define LT_DLGLOBAL RTLD_GLOBAL
9039 #else
9040 # ifdef DL_GLOBAL
9041 # define LT_DLGLOBAL DL_GLOBAL
9042 # else
9043 # define LT_DLGLOBAL 0
9044 # endif
9045 #endif
9047 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9048 find out it does not work in some platform. */
9049 #ifndef LT_DLLAZY_OR_NOW
9050 # ifdef RTLD_LAZY
9051 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9052 # else
9053 # ifdef DL_LAZY
9054 # define LT_DLLAZY_OR_NOW DL_LAZY
9055 # else
9056 # ifdef RTLD_NOW
9057 # define LT_DLLAZY_OR_NOW RTLD_NOW
9058 # else
9059 # ifdef DL_NOW
9060 # define LT_DLLAZY_OR_NOW DL_NOW
9061 # else
9062 # define LT_DLLAZY_OR_NOW 0
9063 # endif
9064 # endif
9065 # endif
9066 # endif
9067 #endif
9069 #ifdef __cplusplus
9070 extern "C" void exit (int);
9071 #endif
9073 void fnord() { int i=42;}
9074 int main ()
9076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9077 int status = $lt_dlunknown;
9079 if (self)
9081 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9082 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9083 /* dlclose (self); */
9086 exit (status);
9089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9090 (eval $ac_link) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9094 (./conftest; exit; ) >&5 2>/dev/null
9095 lt_status=$?
9096 case x$lt_status in
9097 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9098 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9099 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9100 esac
9101 else :
9102 # compilation failed
9103 lt_cv_dlopen_self=no
9106 rm -fr conftest*
9110 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9111 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9113 if test "x$lt_cv_dlopen_self" = xyes; then
9114 LDFLAGS="$LDFLAGS $link_static_flag"
9115 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9116 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9117 if test "${lt_cv_dlopen_self_static+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120 if test "$cross_compiling" = yes; then :
9121 lt_cv_dlopen_self_static=cross
9122 else
9123 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9124 lt_status=$lt_dlunknown
9125 cat > conftest.$ac_ext <<EOF
9126 #line 9126 "configure"
9127 #include "confdefs.h"
9129 #if HAVE_DLFCN_H
9130 #include <dlfcn.h>
9131 #endif
9133 #include <stdio.h>
9135 #ifdef RTLD_GLOBAL
9136 # define LT_DLGLOBAL RTLD_GLOBAL
9137 #else
9138 # ifdef DL_GLOBAL
9139 # define LT_DLGLOBAL DL_GLOBAL
9140 # else
9141 # define LT_DLGLOBAL 0
9142 # endif
9143 #endif
9145 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9146 find out it does not work in some platform. */
9147 #ifndef LT_DLLAZY_OR_NOW
9148 # ifdef RTLD_LAZY
9149 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9150 # else
9151 # ifdef DL_LAZY
9152 # define LT_DLLAZY_OR_NOW DL_LAZY
9153 # else
9154 # ifdef RTLD_NOW
9155 # define LT_DLLAZY_OR_NOW RTLD_NOW
9156 # else
9157 # ifdef DL_NOW
9158 # define LT_DLLAZY_OR_NOW DL_NOW
9159 # else
9160 # define LT_DLLAZY_OR_NOW 0
9161 # endif
9162 # endif
9163 # endif
9164 # endif
9165 #endif
9167 #ifdef __cplusplus
9168 extern "C" void exit (int);
9169 #endif
9171 void fnord() { int i=42;}
9172 int main ()
9174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9175 int status = $lt_dlunknown;
9177 if (self)
9179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9180 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9181 /* dlclose (self); */
9184 exit (status);
9187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9188 (eval $ac_link) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9192 (./conftest; exit; ) >&5 2>/dev/null
9193 lt_status=$?
9194 case x$lt_status in
9195 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9196 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9197 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9198 esac
9199 else :
9200 # compilation failed
9201 lt_cv_dlopen_self_static=no
9204 rm -fr conftest*
9208 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9209 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9212 CPPFLAGS="$save_CPPFLAGS"
9213 LDFLAGS="$save_LDFLAGS"
9214 LIBS="$save_LIBS"
9216 esac
9218 case $lt_cv_dlopen_self in
9219 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9220 *) enable_dlopen_self=unknown ;;
9221 esac
9223 case $lt_cv_dlopen_self_static in
9224 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9225 *) enable_dlopen_self_static=unknown ;;
9226 esac
9230 # Report which librarie types wil actually be built
9231 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9232 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9233 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9234 echo "${ECHO_T}$can_build_shared" >&6
9236 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9237 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9238 test "$can_build_shared" = "no" && enable_shared=no
9240 # On AIX, shared libraries and static libraries use the same namespace, and
9241 # are all built from PIC.
9242 case $host_os in
9243 aix3*)
9244 test "$enable_shared" = yes && enable_static=no
9245 if test -n "$RANLIB"; then
9246 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9247 postinstall_cmds='$RANLIB $lib'
9251 aix4* | aix5*)
9252 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9253 test "$enable_shared" = yes && enable_static=no
9256 esac
9257 echo "$as_me:$LINENO: result: $enable_shared" >&5
9258 echo "${ECHO_T}$enable_shared" >&6
9260 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9261 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9262 # Make sure either enable_shared or enable_static is yes.
9263 test "$enable_shared" = yes || enable_static=yes
9264 echo "$as_me:$LINENO: result: $enable_static" >&5
9265 echo "${ECHO_T}$enable_static" >&6
9267 # The else clause should only fire when bootstrapping the
9268 # libtool distribution, otherwise you forgot to ship ltmain.sh
9269 # with your package, and you will get complaints that there are
9270 # no rules to generate ltmain.sh.
9271 if test -f "$ltmain"; then
9272 # See if we are running on zsh, and set the options which allow our commands through
9273 # without removal of \ escapes.
9274 if test -n "${ZSH_VERSION+set}" ; then
9275 setopt NO_GLOB_SUBST
9277 # Now quote all the things that may contain metacharacters while being
9278 # careful not to overquote the AC_SUBSTed values. We take copies of the
9279 # variables and quote the copies for generation of the libtool script.
9280 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9281 SED SHELL STRIP \
9282 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9283 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9284 deplibs_check_method reload_flag reload_cmds need_locks \
9285 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9286 lt_cv_sys_global_symbol_to_c_name_address \
9287 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9288 old_postinstall_cmds old_postuninstall_cmds \
9289 compiler \
9290 CC \
9291 LD \
9292 lt_prog_compiler_wl \
9293 lt_prog_compiler_pic \
9294 lt_prog_compiler_static \
9295 lt_prog_compiler_no_builtin_flag \
9296 export_dynamic_flag_spec \
9297 thread_safe_flag_spec \
9298 whole_archive_flag_spec \
9299 enable_shared_with_static_runtimes \
9300 old_archive_cmds \
9301 old_archive_from_new_cmds \
9302 predep_objects \
9303 postdep_objects \
9304 predeps \
9305 postdeps \
9306 compiler_lib_search_path \
9307 archive_cmds \
9308 archive_expsym_cmds \
9309 postinstall_cmds \
9310 postuninstall_cmds \
9311 old_archive_from_expsyms_cmds \
9312 allow_undefined_flag \
9313 no_undefined_flag \
9314 export_symbols_cmds \
9315 hardcode_libdir_flag_spec \
9316 hardcode_libdir_flag_spec_ld \
9317 hardcode_libdir_separator \
9318 hardcode_automatic \
9319 module_cmds \
9320 module_expsym_cmds \
9321 lt_cv_prog_compiler_c_o \
9322 exclude_expsyms \
9323 include_expsyms; do
9325 case $var in
9326 old_archive_cmds | \
9327 old_archive_from_new_cmds | \
9328 archive_cmds | \
9329 archive_expsym_cmds | \
9330 module_cmds | \
9331 module_expsym_cmds | \
9332 old_archive_from_expsyms_cmds | \
9333 export_symbols_cmds | \
9334 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9335 postinstall_cmds | postuninstall_cmds | \
9336 old_postinstall_cmds | old_postuninstall_cmds | \
9337 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9338 # Double-quote double-evaled strings.
9339 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9344 esac
9345 done
9347 case $lt_echo in
9348 *'\$0 --fallback-echo"')
9349 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9351 esac
9353 cfgfile="${ofile}T"
9354 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9355 $rm -f "$cfgfile"
9356 { echo "$as_me:$LINENO: creating $ofile" >&5
9357 echo "$as_me: creating $ofile" >&6;}
9359 cat <<__EOF__ >> "$cfgfile"
9360 #! $SHELL
9362 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9363 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9364 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9366 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9367 # Free Software Foundation, Inc.
9369 # This file is part of GNU Libtool:
9370 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9372 # This program is free software; you can redistribute it and/or modify
9373 # it under the terms of the GNU General Public License as published by
9374 # the Free Software Foundation; either version 2 of the License, or
9375 # (at your option) any later version.
9377 # This program is distributed in the hope that it will be useful, but
9378 # WITHOUT ANY WARRANTY; without even the implied warranty of
9379 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9380 # General Public License for more details.
9382 # You should have received a copy of the GNU General Public License
9383 # along with this program; if not, write to the Free Software
9384 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9386 # As a special exception to the GNU General Public License, if you
9387 # distribute this file as part of a program that contains a
9388 # configuration script generated by Autoconf, you may include it under
9389 # the same distribution terms that you use for the rest of that program.
9391 # A sed program that does not truncate output.
9392 SED=$lt_SED
9394 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9395 Xsed="$SED -e 1s/^X//"
9397 # The HP-UX ksh and POSIX shell print the target directory to stdout
9398 # if CDPATH is set.
9399 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9401 # The names of the tagged configurations supported by this script.
9402 available_tags=
9404 # ### BEGIN LIBTOOL CONFIG
9406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9408 # Shell to use when invoking shell scripts.
9409 SHELL=$lt_SHELL
9411 # Whether or not to build shared libraries.
9412 build_libtool_libs=$enable_shared
9414 # Whether or not to build static libraries.
9415 build_old_libs=$enable_static
9417 # Whether or not to add -lc for building shared libraries.
9418 build_libtool_need_lc=$archive_cmds_need_lc
9420 # Whether or not to disallow shared libs when runtime libs are static
9421 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9423 # Whether or not to optimize for fast installation.
9424 fast_install=$enable_fast_install
9426 # The host system.
9427 host_alias=$host_alias
9428 host=$host
9429 host_os=$host_os
9431 # The build system.
9432 build_alias=$build_alias
9433 build=$build
9434 build_os=$build_os
9436 # An echo program that does not interpret backslashes.
9437 echo=$lt_echo
9439 # The archiver.
9440 AR=$lt_AR
9441 AR_FLAGS=$lt_AR_FLAGS
9443 # A C compiler.
9444 LTCC=$lt_LTCC
9446 # A language-specific compiler.
9447 CC=$lt_compiler
9449 # Is the compiler the GNU C compiler?
9450 with_gcc=$GCC
9452 # An ERE matcher.
9453 EGREP=$lt_EGREP
9455 # The linker used to build libraries.
9456 LD=$lt_LD
9458 # Whether we need hard or soft links.
9459 LN_S=$lt_LN_S
9461 # A BSD-compatible nm program.
9462 NM=$lt_NM
9464 # A symbol stripping program
9465 STRIP=$lt_STRIP
9467 # Used to examine libraries when file_magic_cmd begins "file"
9468 MAGIC_CMD=$MAGIC_CMD
9470 # Used on cygwin: DLL creation program.
9471 DLLTOOL="$DLLTOOL"
9473 # Used on cygwin: object dumper.
9474 OBJDUMP="$OBJDUMP"
9476 # Used on cygwin: assembler.
9477 AS="$AS"
9479 # The name of the directory that contains temporary libtool files.
9480 objdir=$objdir
9482 # How to create reloadable object files.
9483 reload_flag=$lt_reload_flag
9484 reload_cmds=$lt_reload_cmds
9486 # How to pass a linker flag through the compiler.
9487 wl=$lt_lt_prog_compiler_wl
9489 # Object file suffix (normally "o").
9490 objext="$ac_objext"
9492 # Old archive suffix (normally "a").
9493 libext="$libext"
9495 # Shared library suffix (normally ".so").
9496 shrext_cmds='$shrext_cmds'
9498 # Executable file suffix (normally "").
9499 exeext="$exeext"
9501 # Additional compiler flags for building library objects.
9502 pic_flag=$lt_lt_prog_compiler_pic
9503 pic_mode=$pic_mode
9505 # What is the maximum length of a command?
9506 max_cmd_len=$lt_cv_sys_max_cmd_len
9508 # Does compiler simultaneously support -c and -o options?
9509 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9511 # Must we lock files when doing compilation?
9512 need_locks=$lt_need_locks
9514 # Do we need the lib prefix for modules?
9515 need_lib_prefix=$need_lib_prefix
9517 # Do we need a version for libraries?
9518 need_version=$need_version
9520 # Whether dlopen is supported.
9521 dlopen_support=$enable_dlopen
9523 # Whether dlopen of programs is supported.
9524 dlopen_self=$enable_dlopen_self
9526 # Whether dlopen of statically linked programs is supported.
9527 dlopen_self_static=$enable_dlopen_self_static
9529 # Compiler flag to prevent dynamic linking.
9530 link_static_flag=$lt_lt_prog_compiler_static
9532 # Compiler flag to turn off builtin functions.
9533 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9535 # Compiler flag to allow reflexive dlopens.
9536 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9538 # Compiler flag to generate shared objects directly from archives.
9539 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9541 # Compiler flag to generate thread-safe objects.
9542 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9544 # Library versioning type.
9545 version_type=$version_type
9547 # Format of library name prefix.
9548 libname_spec=$lt_libname_spec
9550 # List of archive names. First name is the real one, the rest are links.
9551 # The last name is the one that the linker finds with -lNAME.
9552 library_names_spec=$lt_library_names_spec
9554 # The coded name of the library, if different from the real name.
9555 soname_spec=$lt_soname_spec
9557 # Commands used to build and install an old-style archive.
9558 RANLIB=$lt_RANLIB
9559 old_archive_cmds=$lt_old_archive_cmds
9560 old_postinstall_cmds=$lt_old_postinstall_cmds
9561 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9563 # Create an old-style archive from a shared archive.
9564 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9566 # Create a temporary old-style archive to link instead of a shared archive.
9567 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9569 # Commands used to build and install a shared archive.
9570 archive_cmds=$lt_archive_cmds
9571 archive_expsym_cmds=$lt_archive_expsym_cmds
9572 postinstall_cmds=$lt_postinstall_cmds
9573 postuninstall_cmds=$lt_postuninstall_cmds
9575 # Commands used to build a loadable module (assumed same as above if empty)
9576 module_cmds=$lt_module_cmds
9577 module_expsym_cmds=$lt_module_expsym_cmds
9579 # Commands to strip libraries.
9580 old_striplib=$lt_old_striplib
9581 striplib=$lt_striplib
9583 # Dependencies to place before the objects being linked to create a
9584 # shared library.
9585 predep_objects=$lt_predep_objects
9587 # Dependencies to place after the objects being linked to create a
9588 # shared library.
9589 postdep_objects=$lt_postdep_objects
9591 # Dependencies to place before the objects being linked to create a
9592 # shared library.
9593 predeps=$lt_predeps
9595 # Dependencies to place after the objects being linked to create a
9596 # shared library.
9597 postdeps=$lt_postdeps
9599 # The library search path used internally by the compiler when linking
9600 # a shared library.
9601 compiler_lib_search_path=$lt_compiler_lib_search_path
9603 # Method to check whether dependent libraries are shared objects.
9604 deplibs_check_method=$lt_deplibs_check_method
9606 # Command to use when deplibs_check_method == file_magic.
9607 file_magic_cmd=$lt_file_magic_cmd
9609 # Flag that allows shared libraries with undefined symbols to be built.
9610 allow_undefined_flag=$lt_allow_undefined_flag
9612 # Flag that forces no undefined symbols.
9613 no_undefined_flag=$lt_no_undefined_flag
9615 # Commands used to finish a libtool library installation in a directory.
9616 finish_cmds=$lt_finish_cmds
9618 # Same as above, but a single script fragment to be evaled but not shown.
9619 finish_eval=$lt_finish_eval
9621 # Take the output of nm and produce a listing of raw symbols and C names.
9622 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9624 # Transform the output of nm in a proper C declaration
9625 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9627 # Transform the output of nm in a C name address pair
9628 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9630 # This is the shared library runtime path variable.
9631 runpath_var=$runpath_var
9633 # This is the shared library path variable.
9634 shlibpath_var=$shlibpath_var
9636 # Is shlibpath searched before the hard-coded library search path?
9637 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9639 # How to hardcode a shared library path into an executable.
9640 hardcode_action=$hardcode_action
9642 # Whether we should hardcode library paths into libraries.
9643 hardcode_into_libs=$hardcode_into_libs
9645 # Flag to hardcode \$libdir into a binary during linking.
9646 # This must work even if \$libdir does not exist.
9647 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9649 # If ld is used when linking, flag to hardcode \$libdir into
9650 # a binary during linking. This must work even if \$libdir does
9651 # not exist.
9652 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9654 # Whether we need a single -rpath flag with a separated argument.
9655 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9657 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9658 # resulting binary.
9659 hardcode_direct=$hardcode_direct
9661 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9662 # resulting binary.
9663 hardcode_minus_L=$hardcode_minus_L
9665 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9666 # the resulting binary.
9667 hardcode_shlibpath_var=$hardcode_shlibpath_var
9669 # Set to yes if building a shared library automatically hardcodes DIR into the library
9670 # and all subsequent libraries and executables linked against it.
9671 hardcode_automatic=$hardcode_automatic
9673 # Variables whose values should be saved in libtool wrapper scripts and
9674 # restored at relink time.
9675 variables_saved_for_relink="$variables_saved_for_relink"
9677 # Whether libtool must link a program against all its dependency libraries.
9678 link_all_deplibs=$link_all_deplibs
9680 # Compile-time system search path for libraries
9681 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9683 # Run-time system search path for libraries
9684 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9686 # Fix the shell variable \$srcfile for the compiler.
9687 fix_srcfile_path="$fix_srcfile_path"
9689 # Set to yes if exported symbols are required.
9690 always_export_symbols=$always_export_symbols
9692 # The commands to list exported symbols.
9693 export_symbols_cmds=$lt_export_symbols_cmds
9695 # The commands to extract the exported symbol list from a shared archive.
9696 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9698 # Symbols that should not be listed in the preloaded symbols.
9699 exclude_expsyms=$lt_exclude_expsyms
9701 # Symbols that must always be exported.
9702 include_expsyms=$lt_include_expsyms
9704 # ### END LIBTOOL CONFIG
9706 __EOF__
9709 case $host_os in
9710 aix3*)
9711 cat <<\EOF >> "$cfgfile"
9713 # AIX sometimes has problems with the GCC collect2 program. For some
9714 # reason, if we set the COLLECT_NAMES environment variable, the problems
9715 # vanish in a puff of smoke.
9716 if test "X${COLLECT_NAMES+set}" != Xset; then
9717 COLLECT_NAMES=
9718 export COLLECT_NAMES
9722 esac
9724 # We use sed instead of cat because bash on DJGPP gets confused if
9725 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9726 # text mode, it properly converts lines to CR/LF. This bash problem
9727 # is reportedly fixed, but why not run on old versions too?
9728 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9730 mv -f "$cfgfile" "$ofile" || \
9731 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9732 chmod +x "$ofile"
9734 else
9735 # If there is no Makefile yet, we rely on a make rule to execute
9736 # `config.status --recheck' to rerun these tests and create the
9737 # libtool script then.
9738 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9739 if test -f "$ltmain_in"; then
9740 test -f Makefile && make "$ltmain"
9745 ac_ext=c
9746 ac_cpp='$CPP $CPPFLAGS'
9747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9751 CC="$lt_save_CC"
9754 # Check whether --with-tags or --without-tags was given.
9755 if test "${with_tags+set}" = set; then
9756 withval="$with_tags"
9757 tagnames="$withval"
9760 if test -f "$ltmain" && test -n "$tagnames"; then
9761 if test ! -f "${ofile}"; then
9762 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9763 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9766 if test -z "$LTCC"; then
9767 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9768 if test -z "$LTCC"; then
9769 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9770 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9771 else
9772 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9773 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9777 # Extract list of available tagged configurations in $ofile.
9778 # Note that this assumes the entire list is on one line.
9779 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9782 for tagname in $tagnames; do
9783 IFS="$lt_save_ifs"
9784 # Check whether tagname contains only valid characters
9785 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9786 "") ;;
9787 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9788 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9789 { (exit 1); exit 1; }; }
9791 esac
9793 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9794 then
9795 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9796 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9797 { (exit 1); exit 1; }; }
9800 # Update the list of available tags.
9801 if test -n "$tagname"; then
9802 echo appending configuration tag \"$tagname\" to $ofile
9804 case $tagname in
9805 CXX)
9806 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9807 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9808 (test "X$CXX" != "Xg++"))) ; then
9809 ac_ext=cc
9810 ac_cpp='$CXXCPP $CPPFLAGS'
9811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9818 archive_cmds_need_lc_CXX=no
9819 allow_undefined_flag_CXX=
9820 always_export_symbols_CXX=no
9821 archive_expsym_cmds_CXX=
9822 export_dynamic_flag_spec_CXX=
9823 hardcode_direct_CXX=no
9824 hardcode_libdir_flag_spec_CXX=
9825 hardcode_libdir_flag_spec_ld_CXX=
9826 hardcode_libdir_separator_CXX=
9827 hardcode_minus_L_CXX=no
9828 hardcode_automatic_CXX=no
9829 module_cmds_CXX=
9830 module_expsym_cmds_CXX=
9831 link_all_deplibs_CXX=unknown
9832 old_archive_cmds_CXX=$old_archive_cmds
9833 no_undefined_flag_CXX=
9834 whole_archive_flag_spec_CXX=
9835 enable_shared_with_static_runtimes_CXX=no
9837 # Dependencies to place before and after the object being linked:
9838 predep_objects_CXX=
9839 postdep_objects_CXX=
9840 predeps_CXX=
9841 postdeps_CXX=
9842 compiler_lib_search_path_CXX=
9844 # Source file extension for C++ test sources.
9845 ac_ext=cpp
9847 # Object file extension for compiled C++ test sources.
9848 objext=o
9849 objext_CXX=$objext
9851 # Code to be used in simple compile tests
9852 lt_simple_compile_test_code="int some_variable = 0;\n"
9854 # Code to be used in simple link tests
9855 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9857 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9859 # If no C compiler was specified, use CC.
9860 LTCC=${LTCC-"$CC"}
9862 # Allow CC to be a program name with arguments.
9863 compiler=$CC
9866 # save warnings/boilerplate of simple test code
9867 ac_outfile=conftest.$ac_objext
9868 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9869 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9870 _lt_compiler_boilerplate=`cat conftest.err`
9871 $rm conftest*
9873 ac_outfile=conftest.$ac_objext
9874 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9875 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9876 _lt_linker_boilerplate=`cat conftest.err`
9877 $rm conftest*
9880 # Allow CC to be a program name with arguments.
9881 lt_save_CC=$CC
9882 lt_save_LD=$LD
9883 lt_save_GCC=$GCC
9884 GCC=$GXX
9885 lt_save_with_gnu_ld=$with_gnu_ld
9886 lt_save_path_LD=$lt_cv_path_LD
9887 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9888 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9889 else
9890 unset lt_cv_prog_gnu_ld
9892 if test -n "${lt_cv_path_LDCXX+set}"; then
9893 lt_cv_path_LD=$lt_cv_path_LDCXX
9894 else
9895 unset lt_cv_path_LD
9897 test -z "${LDCXX+set}" || LD=$LDCXX
9898 CC=${CXX-"c++"}
9899 compiler=$CC
9900 compiler_CXX=$CC
9901 for cc_temp in $compiler""; do
9902 case $cc_temp in
9903 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9904 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9905 \-*) ;;
9906 *) break;;
9907 esac
9908 done
9909 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9912 # We don't want -fno-exception wen compiling C++ code, so set the
9913 # no_builtin_flag separately
9914 if test "$GXX" = yes; then
9915 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9916 else
9917 lt_prog_compiler_no_builtin_flag_CXX=
9920 if test "$GXX" = yes; then
9921 # Set up default GNU C++ configuration
9924 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9925 if test "${with_gnu_ld+set}" = set; then
9926 withval="$with_gnu_ld"
9927 test "$withval" = no || with_gnu_ld=yes
9928 else
9929 with_gnu_ld=no
9931 ac_prog=ld
9932 if test "$GCC" = yes; then
9933 # Check if gcc -print-prog-name=ld gives a path.
9934 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9935 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9936 case $host in
9937 *-*-mingw*)
9938 # gcc leaves a trailing carriage return which upsets mingw
9939 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9941 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9942 esac
9943 case $ac_prog in
9944 # Accept absolute paths.
9945 [\\/]* | ?:[\\/]*)
9946 re_direlt='/[^/][^/]*/\.\./'
9947 # Canonicalize the pathname of ld
9948 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9949 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9950 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9951 done
9952 test -z "$LD" && LD="$ac_prog"
9955 # If it fails, then pretend we aren't using GCC.
9956 ac_prog=ld
9959 # If it is relative, then search for the first ld in PATH.
9960 with_gnu_ld=unknown
9962 esac
9963 elif test "$with_gnu_ld" = yes; then
9964 echo "$as_me:$LINENO: checking for GNU ld" >&5
9965 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9966 else
9967 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9968 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9970 if test "${lt_cv_path_LD+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 else
9973 if test -z "$LD"; then
9974 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9975 for ac_dir in $PATH; do
9976 IFS="$lt_save_ifs"
9977 test -z "$ac_dir" && ac_dir=.
9978 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9979 lt_cv_path_LD="$ac_dir/$ac_prog"
9980 # Check to see if the program is GNU ld. I'd rather use --version,
9981 # but apparently some variants of GNU ld only accept -v.
9982 # Break only if it was the GNU/non-GNU ld that we prefer.
9983 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9984 *GNU* | *'with BFD'*)
9985 test "$with_gnu_ld" != no && break
9988 test "$with_gnu_ld" != yes && break
9990 esac
9992 done
9993 IFS="$lt_save_ifs"
9994 else
9995 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9999 LD="$lt_cv_path_LD"
10000 if test -n "$LD"; then
10001 echo "$as_me:$LINENO: result: $LD" >&5
10002 echo "${ECHO_T}$LD" >&6
10003 else
10004 echo "$as_me:$LINENO: result: no" >&5
10005 echo "${ECHO_T}no" >&6
10007 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10008 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10009 { (exit 1); exit 1; }; }
10010 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10011 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10012 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10016 case `$LD -v 2>&1 </dev/null` in
10017 *GNU* | *'with BFD'*)
10018 lt_cv_prog_gnu_ld=yes
10021 lt_cv_prog_gnu_ld=no
10023 esac
10025 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10026 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10027 with_gnu_ld=$lt_cv_prog_gnu_ld
10031 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10032 # archiving commands below assume that GNU ld is being used.
10033 if test "$with_gnu_ld" = yes; then
10034 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10035 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'
10037 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10038 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10040 # If archive_cmds runs LD, not CC, wlarc should be empty
10041 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10042 # investigate it a little bit more. (MM)
10043 wlarc='${wl}'
10045 # ancient GNU ld didn't support --whole-archive et. al.
10046 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10047 grep 'no-whole-archive' > /dev/null; then
10048 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10049 else
10050 whole_archive_flag_spec_CXX=
10052 else
10053 with_gnu_ld=no
10054 wlarc=
10056 # A generic and very simple default shared library creation
10057 # command for GNU C++ for the case where it uses the native
10058 # linker, instead of GNU ld. If possible, this setting should
10059 # overridden to take advantage of the native linker features on
10060 # the platform it is being used on.
10061 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10064 # Commands to make compiler produce verbose output that lists
10065 # what "hidden" libraries, object files and flags are used when
10066 # linking a shared library.
10067 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10069 else
10070 GXX=no
10071 with_gnu_ld=no
10072 wlarc=
10075 # PORTME: fill in a description of your system's C++ link characteristics
10076 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10077 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10078 ld_shlibs_CXX=yes
10079 case $host_os in
10080 aix3*)
10081 # FIXME: insert proper C++ library support
10082 ld_shlibs_CXX=no
10084 aix4* | aix5*)
10085 if test "$host_cpu" = ia64; then
10086 # On IA64, the linker does run time linking by default, so we don't
10087 # have to do anything special.
10088 aix_use_runtimelinking=no
10089 exp_sym_flag='-Bexport'
10090 no_entry_flag=""
10091 else
10092 aix_use_runtimelinking=no
10094 # Test if we are trying to use run time linking or normal
10095 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10096 # need to do runtime linking.
10097 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10098 for ld_flag in $LDFLAGS; do
10099 case $ld_flag in
10100 *-brtl*)
10101 aix_use_runtimelinking=yes
10102 break
10104 esac
10105 done
10106 esac
10108 exp_sym_flag='-bexport'
10109 no_entry_flag='-bnoentry'
10112 # When large executables or shared objects are built, AIX ld can
10113 # have problems creating the table of contents. If linking a library
10114 # or program results in "error TOC overflow" add -mminimal-toc to
10115 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10116 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10118 archive_cmds_CXX=''
10119 hardcode_direct_CXX=yes
10120 hardcode_libdir_separator_CXX=':'
10121 link_all_deplibs_CXX=yes
10123 if test "$GXX" = yes; then
10124 case $host_os in aix4.[012]|aix4.[012].*)
10125 # We only want to do this on AIX 4.2 and lower, the check
10126 # below for broken collect2 doesn't work under 4.3+
10127 collect2name=`${CC} -print-prog-name=collect2`
10128 if test -f "$collect2name" && \
10129 strings "$collect2name" | grep resolve_lib_name >/dev/null
10130 then
10131 # We have reworked collect2
10132 hardcode_direct_CXX=yes
10133 else
10134 # We have old collect2
10135 hardcode_direct_CXX=unsupported
10136 # It fails to find uninstalled libraries when the uninstalled
10137 # path is not listed in the libpath. Setting hardcode_minus_L
10138 # to unsupported forces relinking
10139 hardcode_minus_L_CXX=yes
10140 hardcode_libdir_flag_spec_CXX='-L$libdir'
10141 hardcode_libdir_separator_CXX=
10143 esac
10144 shared_flag='-shared'
10145 if test "$aix_use_runtimelinking" = yes; then
10146 shared_flag="$shared_flag "'${wl}-G'
10148 else
10149 # not using gcc
10150 if test "$host_cpu" = ia64; then
10151 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10152 # chokes on -Wl,-G. The following line is correct:
10153 shared_flag='-G'
10154 else
10155 if test "$aix_use_runtimelinking" = yes; then
10156 shared_flag='${wl}-G'
10157 else
10158 shared_flag='${wl}-bM:SRE'
10163 # It seems that -bexpall does not export symbols beginning with
10164 # underscore (_), so it is better to generate a list of symbols to export.
10165 always_export_symbols_CXX=yes
10166 if test "$aix_use_runtimelinking" = yes; then
10167 # Warning - without using the other runtime loading flags (-brtl),
10168 # -berok will link without error, but may produce a broken library.
10169 allow_undefined_flag_CXX='-berok'
10170 # Determine the default libpath from the value encoded in an empty executable.
10171 cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h. */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10179 main ()
10183 return 0;
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest$ac_exeext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10208 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10210 # Check for a 64-bit object if we didn't find anything.
10211 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; }
10212 }'`; fi
10213 else
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10218 rm -f conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10220 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10222 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10224 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10225 else
10226 if test "$host_cpu" = ia64; then
10227 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10228 allow_undefined_flag_CXX="-z nodefs"
10229 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10230 else
10231 # Determine the default libpath from the value encoded in an empty executable.
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h. */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10240 main ()
10244 return 0;
10246 _ACEOF
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10249 (eval $ac_link) 2>conftest.er1
10250 ac_status=$?
10251 grep -v '^ *+' conftest.er1 >conftest.err
10252 rm -f conftest.er1
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
10256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; } &&
10262 { ac_try='test -s conftest$ac_exeext'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10265 ac_status=$?
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10271 # Check for a 64-bit object if we didn't find anything.
10272 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; }
10273 }'`; fi
10274 else
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10279 rm -f conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10283 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10284 # Warning - without using the other run time loading flags,
10285 # -berok will link without error, but may produce a broken library.
10286 no_undefined_flag_CXX=' ${wl}-bernotok'
10287 allow_undefined_flag_CXX=' ${wl}-berok'
10288 # -bexpall does not export symbols beginning with underscore (_)
10289 always_export_symbols_CXX=yes
10290 # Exported symbols can be pulled into shared objects from archives
10291 whole_archive_flag_spec_CXX=' '
10292 archive_cmds_need_lc_CXX=yes
10293 # This is similar to how AIX traditionally builds its shared libraries.
10294 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10298 chorus*)
10299 case $cc_basename in
10301 # FIXME: insert proper C++ library support
10302 ld_shlibs_CXX=no
10304 esac
10308 cygwin* | mingw* | pw32*)
10309 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10310 # as there is no search path for DLLs.
10311 hardcode_libdir_flag_spec_CXX='-L$libdir'
10312 allow_undefined_flag_CXX=unsupported
10313 always_export_symbols_CXX=no
10314 enable_shared_with_static_runtimes_CXX=yes
10316 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10317 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10318 # If the export-symbols file already is a .def file (1st line
10319 # is EXPORTS), use it as is; otherwise, prepend...
10320 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10321 cp $export_symbols $output_objdir/$soname.def;
10322 else
10323 echo EXPORTS > $output_objdir/$soname.def;
10324 cat $export_symbols >> $output_objdir/$soname.def;
10326 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10327 else
10328 ld_shlibs_CXX=no
10331 darwin* | rhapsody*)
10332 case $host_os in
10333 rhapsody* | darwin1.[012])
10334 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10336 *) # Darwin 1.3 on
10337 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10338 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10339 else
10340 case ${MACOSX_DEPLOYMENT_TARGET} in
10341 10.[012])
10342 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10344 10.*)
10345 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10347 esac
10350 esac
10351 archive_cmds_need_lc_CXX=no
10352 hardcode_direct_CXX=no
10353 hardcode_automatic_CXX=yes
10354 hardcode_shlibpath_var_CXX=unsupported
10355 whole_archive_flag_spec_CXX=''
10356 link_all_deplibs_CXX=yes
10358 if test "$GXX" = yes ; then
10359 lt_int_apple_cc_single_mod=no
10360 output_verbose_link_cmd='echo'
10361 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10362 lt_int_apple_cc_single_mod=yes
10364 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10365 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10366 else
10367 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'
10369 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10370 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10371 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10372 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}'
10373 else
10374 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}'
10376 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}'
10377 else
10378 case $cc_basename in
10379 xlc*)
10380 output_verbose_link_cmd='echo'
10381 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'
10382 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10383 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10384 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}'
10385 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}'
10388 ld_shlibs_CXX=no
10390 esac
10394 dgux*)
10395 case $cc_basename in
10396 ec++*)
10397 # FIXME: insert proper C++ library support
10398 ld_shlibs_CXX=no
10400 ghcx*)
10401 # Green Hills C++ Compiler
10402 # FIXME: insert proper C++ library support
10403 ld_shlibs_CXX=no
10406 # FIXME: insert proper C++ library support
10407 ld_shlibs_CXX=no
10409 esac
10411 freebsd[12]*)
10412 # C++ shared libraries reported to be fairly broken before switch to ELF
10413 ld_shlibs_CXX=no
10415 freebsd-elf*)
10416 archive_cmds_need_lc_CXX=no
10418 freebsd* | kfreebsd*-gnu | dragonfly*)
10419 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10420 # conventions
10421 ld_shlibs_CXX=yes
10423 gnu*)
10425 hpux9*)
10426 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10427 hardcode_libdir_separator_CXX=:
10428 export_dynamic_flag_spec_CXX='${wl}-E'
10429 hardcode_direct_CXX=yes
10430 hardcode_minus_L_CXX=yes # Not in the search PATH,
10431 # but as the default
10432 # location of the library.
10434 case $cc_basename in
10435 CC*)
10436 # FIXME: insert proper C++ library support
10437 ld_shlibs_CXX=no
10439 aCC*)
10440 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'
10441 # Commands to make compiler produce verbose output that lists
10442 # what "hidden" libraries, object files and flags are used when
10443 # linking a shared library.
10445 # There doesn't appear to be a way to prevent this compiler from
10446 # explicitly linking system object files so we need to strip them
10447 # from the output so that they don't get included in the library
10448 # dependencies.
10449 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'
10452 if test "$GXX" = yes; then
10453 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'
10454 else
10455 # FIXME: insert proper C++ library support
10456 ld_shlibs_CXX=no
10459 esac
10461 hpux10*|hpux11*)
10462 if test $with_gnu_ld = no; then
10463 case $host_cpu in
10464 hppa*64*)
10465 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10466 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10467 hardcode_libdir_separator_CXX=:
10469 ia64*)
10470 hardcode_libdir_flag_spec_CXX='-L$libdir'
10473 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10474 hardcode_libdir_separator_CXX=:
10475 export_dynamic_flag_spec_CXX='${wl}-E'
10477 esac
10479 case $host_cpu in
10480 hppa*64*)
10481 hardcode_direct_CXX=no
10482 hardcode_shlibpath_var_CXX=no
10484 ia64*)
10485 hardcode_direct_CXX=no
10486 hardcode_shlibpath_var_CXX=no
10487 hardcode_minus_L_CXX=yes # Not in the search PATH,
10488 # but as the default
10489 # location of the library.
10492 hardcode_direct_CXX=yes
10493 hardcode_minus_L_CXX=yes # Not in the search PATH,
10494 # but as the default
10495 # location of the library.
10497 esac
10499 case $cc_basename in
10500 CC*)
10501 # FIXME: insert proper C++ library support
10502 ld_shlibs_CXX=no
10504 aCC*)
10505 case $host_cpu in
10506 hppa*64*|ia64*)
10507 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10510 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10512 esac
10513 # Commands to make compiler produce verbose output that lists
10514 # what "hidden" libraries, object files and flags are used when
10515 # linking a shared library.
10517 # There doesn't appear to be a way to prevent this compiler from
10518 # explicitly linking system object files so we need to strip them
10519 # from the output so that they don't get included in the library
10520 # dependencies.
10521 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'
10524 if test "$GXX" = yes; then
10525 if test $with_gnu_ld = no; then
10526 case $host_cpu in
10527 ia64*|hppa*64*)
10528 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10531 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'
10533 esac
10535 else
10536 # FIXME: insert proper C++ library support
10537 ld_shlibs_CXX=no
10540 esac
10542 irix5* | irix6*)
10543 case $cc_basename in
10544 CC*)
10545 # SGI C++
10546 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'
10548 # Archives containing C++ object files must be created using
10549 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10550 # necessary to make sure instantiated templates are included
10551 # in the archive.
10552 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10555 if test "$GXX" = yes; then
10556 if test "$with_gnu_ld" = no; then
10557 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'
10558 else
10559 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'
10562 link_all_deplibs_CXX=yes
10564 esac
10565 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10566 hardcode_libdir_separator_CXX=:
10568 linux*)
10569 case $cc_basename in
10570 KCC*)
10571 # Kuck and Associates, Inc. (KAI) C++ Compiler
10573 # KCC will only create a shared library if the output file
10574 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10575 # to its proper name (with version) after linking.
10576 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'
10577 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'
10578 # Commands to make compiler produce verbose output that lists
10579 # what "hidden" libraries, object files and flags are used when
10580 # linking a shared library.
10582 # There doesn't appear to be a way to prevent this compiler from
10583 # explicitly linking system object files so we need to strip them
10584 # from the output so that they don't get included in the library
10585 # dependencies.
10586 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'
10588 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10589 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10591 # Archives containing C++ object files must be created using
10592 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10593 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10595 icpc*)
10596 # Intel C++
10597 with_gnu_ld=yes
10598 # version 8.0 and above of icpc choke on multiply defined symbols
10599 # if we add $predep_objects and $postdep_objects, however 7.1 and
10600 # earlier do not add the objects themselves.
10601 case `$CC -V 2>&1` in
10602 *"Version 7."*)
10603 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10604 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'
10606 *) # Version 8.0 or newer
10607 tmp_idyn=
10608 case $host_cpu in
10609 ia64*) tmp_idyn=' -i_dynamic';;
10610 esac
10611 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10612 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'
10614 esac
10615 archive_cmds_need_lc_CXX=no
10616 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10617 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10618 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10620 pgCC*)
10621 # Portland Group C++ compiler
10622 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10623 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'
10625 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10626 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10627 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'
10629 cxx*)
10630 # Compaq C++
10631 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10632 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'
10634 runpath_var=LD_RUN_PATH
10635 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10636 hardcode_libdir_separator_CXX=:
10638 # Commands to make compiler produce verbose output that lists
10639 # what "hidden" libraries, object files and flags are used when
10640 # linking a shared library.
10642 # There doesn't appear to be a way to prevent this compiler from
10643 # explicitly linking system object files so we need to strip them
10644 # from the output so that they don't get included in the library
10645 # dependencies.
10646 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'
10648 esac
10650 lynxos*)
10651 # FIXME: insert proper C++ library support
10652 ld_shlibs_CXX=no
10654 m88k*)
10655 # FIXME: insert proper C++ library support
10656 ld_shlibs_CXX=no
10658 mvs*)
10659 case $cc_basename in
10660 cxx*)
10661 # FIXME: insert proper C++ library support
10662 ld_shlibs_CXX=no
10665 # FIXME: insert proper C++ library support
10666 ld_shlibs_CXX=no
10668 esac
10670 netbsd*)
10671 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10672 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10673 wlarc=
10674 hardcode_libdir_flag_spec_CXX='-R$libdir'
10675 hardcode_direct_CXX=yes
10676 hardcode_shlibpath_var_CXX=no
10678 # Workaround some broken pre-1.5 toolchains
10679 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10681 openbsd2*)
10682 # C++ shared libraries are fairly broken
10683 ld_shlibs_CXX=no
10685 openbsd*)
10686 hardcode_direct_CXX=yes
10687 hardcode_shlibpath_var_CXX=no
10688 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10689 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10691 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10692 export_dynamic_flag_spec_CXX='${wl}-E'
10693 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10695 output_verbose_link_cmd='echo'
10697 osf3*)
10698 case $cc_basename in
10699 KCC*)
10700 # Kuck and Associates, Inc. (KAI) C++ Compiler
10702 # KCC will only create a shared library if the output file
10703 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10704 # to its proper name (with version) after linking.
10705 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'
10707 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10708 hardcode_libdir_separator_CXX=:
10710 # Archives containing C++ object files must be created using
10711 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10712 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10715 RCC*)
10716 # Rational C++ 2.4.1
10717 # FIXME: insert proper C++ library support
10718 ld_shlibs_CXX=no
10720 cxx*)
10721 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10722 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'
10724 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10725 hardcode_libdir_separator_CXX=:
10727 # Commands to make compiler produce verbose output that lists
10728 # what "hidden" libraries, object files and flags are used when
10729 # linking a shared library.
10731 # There doesn't appear to be a way to prevent this compiler from
10732 # explicitly linking system object files so we need to strip them
10733 # from the output so that they don't get included in the library
10734 # dependencies.
10735 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'
10738 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10739 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10740 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'
10742 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10743 hardcode_libdir_separator_CXX=:
10745 # Commands to make compiler produce verbose output that lists
10746 # what "hidden" libraries, object files and flags are used when
10747 # linking a shared library.
10748 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10750 else
10751 # FIXME: insert proper C++ library support
10752 ld_shlibs_CXX=no
10755 esac
10757 osf4* | osf5*)
10758 case $cc_basename in
10759 KCC*)
10760 # Kuck and Associates, Inc. (KAI) C++ Compiler
10762 # KCC will only create a shared library if the output file
10763 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10764 # to its proper name (with version) after linking.
10765 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'
10767 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10768 hardcode_libdir_separator_CXX=:
10770 # Archives containing C++ object files must be created using
10771 # the KAI C++ compiler.
10772 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10774 RCC*)
10775 # Rational C++ 2.4.1
10776 # FIXME: insert proper C++ library support
10777 ld_shlibs_CXX=no
10779 cxx*)
10780 allow_undefined_flag_CXX=' -expect_unresolved \*'
10781 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'
10782 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10783 echo "-hidden">> $lib.exp~
10784 $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~
10785 $rm $lib.exp'
10787 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10788 hardcode_libdir_separator_CXX=:
10790 # Commands to make compiler produce verbose output that lists
10791 # what "hidden" libraries, object files and flags are used when
10792 # linking a shared library.
10794 # There doesn't appear to be a way to prevent this compiler from
10795 # explicitly linking system object files so we need to strip them
10796 # from the output so that they don't get included in the library
10797 # dependencies.
10798 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'
10801 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10802 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10803 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'
10805 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10806 hardcode_libdir_separator_CXX=:
10808 # Commands to make compiler produce verbose output that lists
10809 # what "hidden" libraries, object files and flags are used when
10810 # linking a shared library.
10811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10813 else
10814 # FIXME: insert proper C++ library support
10815 ld_shlibs_CXX=no
10818 esac
10820 psos*)
10821 # FIXME: insert proper C++ library support
10822 ld_shlibs_CXX=no
10824 sco*)
10825 archive_cmds_need_lc_CXX=no
10826 case $cc_basename in
10827 CC*)
10828 # FIXME: insert proper C++ library support
10829 ld_shlibs_CXX=no
10832 # FIXME: insert proper C++ library support
10833 ld_shlibs_CXX=no
10835 esac
10837 sunos4*)
10838 case $cc_basename in
10839 CC*)
10840 # Sun C++ 4.x
10841 # FIXME: insert proper C++ library support
10842 ld_shlibs_CXX=no
10844 lcc*)
10845 # Lucid
10846 # FIXME: insert proper C++ library support
10847 ld_shlibs_CXX=no
10850 # FIXME: insert proper C++ library support
10851 ld_shlibs_CXX=no
10853 esac
10855 solaris*)
10856 case $cc_basename in
10857 CC*)
10858 # Sun C++ 4.2, 5.x and Centerline C++
10859 archive_cmds_need_lc_CXX=yes
10860 no_undefined_flag_CXX=' -zdefs'
10861 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10862 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10863 $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'
10865 hardcode_libdir_flag_spec_CXX='-R$libdir'
10866 hardcode_shlibpath_var_CXX=no
10867 case $host_os in
10868 solaris2.[0-5] | solaris2.[0-5].*) ;;
10870 # The C++ compiler is used as linker so we must use $wl
10871 # flag to pass the commands to the underlying system
10872 # linker. We must also pass each convience library through
10873 # to the system linker between allextract/defaultextract.
10874 # The C++ compiler will combine linker options so we
10875 # cannot just pass the convience library names through
10876 # without $wl.
10877 # Supported since Solaris 2.6 (maybe 2.5.1?)
10878 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'
10880 esac
10881 link_all_deplibs_CXX=yes
10883 output_verbose_link_cmd='echo'
10885 # Archives containing C++ object files must be created using
10886 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10887 # necessary to make sure instantiated templates are included
10888 # in the archive.
10889 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10891 gcx*)
10892 # Green Hills C++ Compiler
10893 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10895 # The C++ compiler must be used to create the archive.
10896 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10899 # GNU C++ compiler with Solaris linker
10900 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10901 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10902 if $CC --version | grep -v '^2\.7' > /dev/null; then
10903 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10904 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10905 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10907 # Commands to make compiler produce verbose output that lists
10908 # what "hidden" libraries, object files and flags are used when
10909 # linking a shared library.
10910 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10911 else
10912 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10913 # platform.
10914 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10915 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10916 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10918 # Commands to make compiler produce verbose output that lists
10919 # what "hidden" libraries, object files and flags are used when
10920 # linking a shared library.
10921 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10924 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10927 esac
10929 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10930 archive_cmds_need_lc_CXX=no
10932 tandem*)
10933 case $cc_basename in
10934 NCC*)
10935 # NonStop-UX NCC 3.20
10936 # FIXME: insert proper C++ library support
10937 ld_shlibs_CXX=no
10940 # FIXME: insert proper C++ library support
10941 ld_shlibs_CXX=no
10943 esac
10945 vxworks*)
10946 # FIXME: insert proper C++ library support
10947 ld_shlibs_CXX=no
10950 # FIXME: insert proper C++ library support
10951 ld_shlibs_CXX=no
10953 esac
10954 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10955 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10956 test "$ld_shlibs_CXX" = no && can_build_shared=no
10958 GCC_CXX="$GXX"
10959 LD_CXX="$LD"
10962 cat > conftest.$ac_ext <<EOF
10963 class Foo
10965 public:
10966 Foo (void) { a = 0; }
10967 private:
10968 int a;
10972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10973 (eval $ac_compile) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; then
10977 # Parse the compiler output and extract the necessary
10978 # objects, libraries and library flags.
10980 # Sentinel used to keep track of whether or not we are before
10981 # the conftest object file.
10982 pre_test_object_deps_done=no
10984 # The `*' in the case matches for architectures that use `case' in
10985 # $output_verbose_cmd can trigger glob expansion during the loop
10986 # eval without this substitution.
10987 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10989 for p in `eval $output_verbose_link_cmd`; do
10990 case $p in
10992 -L* | -R* | -l*)
10993 # Some compilers place space between "-{L,R}" and the path.
10994 # Remove the space.
10995 if test $p = "-L" \
10996 || test $p = "-R"; then
10997 prev=$p
10998 continue
10999 else
11000 prev=
11003 if test "$pre_test_object_deps_done" = no; then
11004 case $p in
11005 -L* | -R*)
11006 # Internal compiler library paths should come after those
11007 # provided the user. The postdeps already come after the
11008 # user supplied libs so there is no need to process them.
11009 if test -z "$compiler_lib_search_path_CXX"; then
11010 compiler_lib_search_path_CXX="${prev}${p}"
11011 else
11012 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11015 # The "-l" case would never come before the object being
11016 # linked, so don't bother handling this case.
11017 esac
11018 else
11019 if test -z "$postdeps_CXX"; then
11020 postdeps_CXX="${prev}${p}"
11021 else
11022 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11027 *.$objext)
11028 # This assumes that the test object file only shows up
11029 # once in the compiler output.
11030 if test "$p" = "conftest.$objext"; then
11031 pre_test_object_deps_done=yes
11032 continue
11035 if test "$pre_test_object_deps_done" = no; then
11036 if test -z "$predep_objects_CXX"; then
11037 predep_objects_CXX="$p"
11038 else
11039 predep_objects_CXX="$predep_objects_CXX $p"
11041 else
11042 if test -z "$postdep_objects_CXX"; then
11043 postdep_objects_CXX="$p"
11044 else
11045 postdep_objects_CXX="$postdep_objects_CXX $p"
11050 *) ;; # Ignore the rest.
11052 esac
11053 done
11055 # Clean up.
11056 rm -f a.out a.exe
11057 else
11058 echo "libtool.m4: error: problem compiling CXX test program"
11061 $rm -f confest.$objext
11063 # PORTME: override above test on systems where it is broken
11064 case $host_os in
11065 solaris*)
11066 case $cc_basename in
11067 CC*)
11068 # Adding this requires a known-good setup of shared libraries for
11069 # Sun compiler versions before 5.6, else PIC objects from an old
11070 # archive will be linked into the output, leading to subtle bugs.
11071 postdeps_CXX='-lCstd -lCrun'
11073 esac
11074 esac
11077 case " $postdeps_CXX " in
11078 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11079 esac
11081 lt_prog_compiler_wl_CXX=
11082 lt_prog_compiler_pic_CXX=
11083 lt_prog_compiler_static_CXX=
11085 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11086 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11088 # C++ specific cases for pic, static, wl, etc.
11089 if test "$GXX" = yes; then
11090 lt_prog_compiler_wl_CXX='-Wl,'
11091 lt_prog_compiler_static_CXX='-static'
11093 case $host_os in
11094 aix*)
11095 # All AIX code is PIC.
11096 if test "$host_cpu" = ia64; then
11097 # AIX 5 now supports IA64 processor
11098 lt_prog_compiler_static_CXX='-Bstatic'
11101 amigaos*)
11102 # FIXME: we need at least 68020 code to build shared libraries, but
11103 # adding the `-m68020' flag to GCC prevents building anything better,
11104 # like `-m68040'.
11105 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11107 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11108 # PIC is the default for these OSes.
11110 mingw* | os2* | pw32*)
11111 # This hack is so that the source file can tell whether it is being
11112 # built for inclusion in a dll (and should export symbols for example).
11113 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11115 darwin* | rhapsody*)
11116 # PIC is the default on this platform
11117 # Common symbols not allowed in MH_DYLIB files
11118 lt_prog_compiler_pic_CXX='-fno-common'
11120 *djgpp*)
11121 # DJGPP does not support shared libraries at all
11122 lt_prog_compiler_pic_CXX=
11124 sysv4*MP*)
11125 if test -d /usr/nec; then
11126 lt_prog_compiler_pic_CXX=-Kconform_pic
11129 hpux*)
11130 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11131 # not for PA HP-UX.
11132 case $host_cpu in
11133 hppa*64*|ia64*)
11136 lt_prog_compiler_pic_CXX='-fPIC'
11138 esac
11141 lt_prog_compiler_pic_CXX='-fPIC'
11143 esac
11144 else
11145 case $host_os in
11146 aix4* | aix5*)
11147 # All AIX code is PIC.
11148 if test "$host_cpu" = ia64; then
11149 # AIX 5 now supports IA64 processor
11150 lt_prog_compiler_static_CXX='-Bstatic'
11151 else
11152 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11155 chorus*)
11156 case $cc_basename in
11157 cxch68*)
11158 # Green Hills C++ Compiler
11159 # _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"
11161 esac
11163 darwin*)
11164 # PIC is the default on this platform
11165 # Common symbols not allowed in MH_DYLIB files
11166 case $cc_basename in
11167 xlc*)
11168 lt_prog_compiler_pic_CXX='-qnocommon'
11169 lt_prog_compiler_wl_CXX='-Wl,'
11171 esac
11173 dgux*)
11174 case $cc_basename in
11175 ec++*)
11176 lt_prog_compiler_pic_CXX='-KPIC'
11178 ghcx*)
11179 # Green Hills C++ Compiler
11180 lt_prog_compiler_pic_CXX='-pic'
11184 esac
11186 freebsd* | kfreebsd*-gnu | dragonfly*)
11187 # FreeBSD uses GNU C++
11189 hpux9* | hpux10* | hpux11*)
11190 case $cc_basename in
11191 CC*)
11192 lt_prog_compiler_wl_CXX='-Wl,'
11193 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11194 if test "$host_cpu" != ia64; then
11195 lt_prog_compiler_pic_CXX='+Z'
11198 aCC*)
11199 lt_prog_compiler_wl_CXX='-Wl,'
11200 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11201 case $host_cpu in
11202 hppa*64*|ia64*)
11203 # +Z the default
11206 lt_prog_compiler_pic_CXX='+Z'
11208 esac
11212 esac
11214 irix5* | irix6* | nonstopux*)
11215 case $cc_basename in
11216 CC*)
11217 lt_prog_compiler_wl_CXX='-Wl,'
11218 lt_prog_compiler_static_CXX='-non_shared'
11219 # CC pic flag -KPIC is the default.
11223 esac
11225 linux*)
11226 case $cc_basename in
11227 KCC*)
11228 # KAI C++ Compiler
11229 lt_prog_compiler_wl_CXX='--backend -Wl,'
11230 lt_prog_compiler_pic_CXX='-fPIC'
11232 icpc* | ecpc*)
11233 # Intel C++
11234 lt_prog_compiler_wl_CXX='-Wl,'
11235 lt_prog_compiler_pic_CXX='-KPIC'
11236 lt_prog_compiler_static_CXX='-static'
11238 pgCC*)
11239 # Portland Group C++ compiler.
11240 lt_prog_compiler_wl_CXX='-Wl,'
11241 lt_prog_compiler_pic_CXX='-fpic'
11242 lt_prog_compiler_static_CXX='-Bstatic'
11244 cxx*)
11245 # Compaq C++
11246 # Make sure the PIC flag is empty. It appears that all Alpha
11247 # Linux and Compaq Tru64 Unix objects are PIC.
11248 lt_prog_compiler_pic_CXX=
11249 lt_prog_compiler_static_CXX='-non_shared'
11253 esac
11255 lynxos*)
11257 m88k*)
11259 mvs*)
11260 case $cc_basename in
11261 cxx*)
11262 lt_prog_compiler_pic_CXX='-W c,exportall'
11266 esac
11268 netbsd*)
11270 osf3* | osf4* | osf5*)
11271 case $cc_basename in
11272 KCC*)
11273 lt_prog_compiler_wl_CXX='--backend -Wl,'
11275 RCC*)
11276 # Rational C++ 2.4.1
11277 lt_prog_compiler_pic_CXX='-pic'
11279 cxx*)
11280 # Digital/Compaq C++
11281 lt_prog_compiler_wl_CXX='-Wl,'
11282 # Make sure the PIC flag is empty. It appears that all Alpha
11283 # Linux and Compaq Tru64 Unix objects are PIC.
11284 lt_prog_compiler_pic_CXX=
11285 lt_prog_compiler_static_CXX='-non_shared'
11289 esac
11291 psos*)
11293 sco*)
11294 case $cc_basename in
11295 CC*)
11296 lt_prog_compiler_pic_CXX='-fPIC'
11300 esac
11302 solaris*)
11303 case $cc_basename in
11304 CC*)
11305 # Sun C++ 4.2, 5.x and Centerline C++
11306 lt_prog_compiler_pic_CXX='-KPIC'
11307 lt_prog_compiler_static_CXX='-Bstatic'
11308 lt_prog_compiler_wl_CXX='-Qoption ld '
11310 gcx*)
11311 # Green Hills C++ Compiler
11312 lt_prog_compiler_pic_CXX='-PIC'
11316 esac
11318 sunos4*)
11319 case $cc_basename in
11320 CC*)
11321 # Sun C++ 4.x
11322 lt_prog_compiler_pic_CXX='-pic'
11323 lt_prog_compiler_static_CXX='-Bstatic'
11325 lcc*)
11326 # Lucid
11327 lt_prog_compiler_pic_CXX='-pic'
11331 esac
11333 tandem*)
11334 case $cc_basename in
11335 NCC*)
11336 # NonStop-UX NCC 3.20
11337 lt_prog_compiler_pic_CXX='-KPIC'
11341 esac
11343 unixware*)
11345 vxworks*)
11348 lt_prog_compiler_can_build_shared_CXX=no
11350 esac
11353 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11354 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11357 # Check to make sure the PIC flag actually works.
11359 if test -n "$lt_prog_compiler_pic_CXX"; then
11361 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11362 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11363 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 else
11366 lt_prog_compiler_pic_works_CXX=no
11367 ac_outfile=conftest.$ac_objext
11368 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11369 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11370 # Insert the option either (1) after the last *FLAGS variable, or
11371 # (2) before a word containing "conftest.", or (3) at the end.
11372 # Note that $ac_compile itself does not contain backslashes and begins
11373 # with a dollar sign (not a hyphen), so the echo should work correctly.
11374 # The option is referenced via a variable to avoid confusing sed.
11375 lt_compile=`echo "$ac_compile" | $SED \
11376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11378 -e 's:$: $lt_compiler_flag:'`
11379 (eval echo "\"\$as_me:11379: $lt_compile\"" >&5)
11380 (eval "$lt_compile" 2>conftest.err)
11381 ac_status=$?
11382 cat conftest.err >&5
11383 echo "$as_me:11383: \$? = $ac_status" >&5
11384 if (exit $ac_status) && test -s "$ac_outfile"; then
11385 # The compiler can only warn and ignore the option if not recognized
11386 # So say no if there are warnings other than the usual output.
11387 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11388 $SED '/^$/d' conftest.err >conftest.er2
11389 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11390 lt_prog_compiler_pic_works_CXX=yes
11393 $rm conftest*
11396 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11397 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11399 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11400 case $lt_prog_compiler_pic_CXX in
11401 "" | " "*) ;;
11402 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11403 esac
11404 else
11405 lt_prog_compiler_pic_CXX=
11406 lt_prog_compiler_can_build_shared_CXX=no
11410 case $host_os in
11411 # For platforms which do not support PIC, -DPIC is meaningless:
11412 *djgpp*)
11413 lt_prog_compiler_pic_CXX=
11416 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11418 esac
11420 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11421 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11422 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425 lt_cv_prog_compiler_c_o_CXX=no
11426 $rm -r conftest 2>/dev/null
11427 mkdir conftest
11428 cd conftest
11429 mkdir out
11430 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11432 lt_compiler_flag="-o out/conftest2.$ac_objext"
11433 # Insert the option either (1) after the last *FLAGS variable, or
11434 # (2) before a word containing "conftest.", or (3) at the end.
11435 # Note that $ac_compile itself does not contain backslashes and begins
11436 # with a dollar sign (not a hyphen), so the echo should work correctly.
11437 lt_compile=`echo "$ac_compile" | $SED \
11438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11440 -e 's:$: $lt_compiler_flag:'`
11441 (eval echo "\"\$as_me:11441: $lt_compile\"" >&5)
11442 (eval "$lt_compile" 2>out/conftest.err)
11443 ac_status=$?
11444 cat out/conftest.err >&5
11445 echo "$as_me:11445: \$? = $ac_status" >&5
11446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11447 then
11448 # The compiler can only warn and ignore the option if not recognized
11449 # So say no if there are warnings
11450 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11451 $SED '/^$/d' out/conftest.err >out/conftest.er2
11452 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11453 lt_cv_prog_compiler_c_o_CXX=yes
11456 chmod u+w . 2>&5
11457 $rm conftest*
11458 # SGI C++ compiler will create directory out/ii_files/ for
11459 # template instantiation
11460 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11461 $rm out/* && rmdir out
11462 cd ..
11463 rmdir conftest
11464 $rm conftest*
11467 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11468 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11471 hard_links="nottested"
11472 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11473 # do not overwrite the value of need_locks provided by the user
11474 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11475 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11476 hard_links=yes
11477 $rm conftest*
11478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11479 touch conftest.a
11480 ln conftest.a conftest.b 2>&5 || hard_links=no
11481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11482 echo "$as_me:$LINENO: result: $hard_links" >&5
11483 echo "${ECHO_T}$hard_links" >&6
11484 if test "$hard_links" = no; then
11485 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11486 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11487 need_locks=warn
11489 else
11490 need_locks=no
11493 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11494 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11496 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11497 case $host_os in
11498 aix4* | aix5*)
11499 # If we're using GNU nm, then we don't want the "-C" option.
11500 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11501 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11502 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'
11503 else
11504 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'
11507 pw32*)
11508 export_symbols_cmds_CXX="$ltdll_cmds"
11510 cygwin* | mingw*)
11511 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'
11514 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11516 esac
11518 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11519 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11520 test "$ld_shlibs_CXX" = no && can_build_shared=no
11522 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11523 if test "$GCC" = yes; then
11524 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11528 # Do we need to explicitly link libc?
11530 case "x$archive_cmds_need_lc_CXX" in
11531 x|xyes)
11532 # Assume -lc should be added
11533 archive_cmds_need_lc_CXX=yes
11535 if test "$enable_shared" = yes && test "$GCC" = yes; then
11536 case $archive_cmds_CXX in
11537 *'~'*)
11538 # FIXME: we may have to deal with multi-command sequences.
11540 '$CC '*)
11541 # Test whether the compiler implicitly links with -lc since on some
11542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11543 # to ld, don't add -lc before -lgcc.
11544 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11546 $rm conftest*
11547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11550 (eval $ac_compile) 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } 2>conftest.err; then
11554 soname=conftest
11555 lib=conftest
11556 libobjs=conftest.$ac_objext
11557 deplibs=
11558 wl=$lt_prog_compiler_wl_CXX
11559 compiler_flags=-v
11560 linker_flags=-v
11561 verstring=
11562 output_objdir=.
11563 libname=conftest
11564 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11565 allow_undefined_flag_CXX=
11566 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11567 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }
11571 then
11572 archive_cmds_need_lc_CXX=no
11573 else
11574 archive_cmds_need_lc_CXX=yes
11576 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11577 else
11578 cat conftest.err 1>&5
11580 $rm conftest*
11581 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11582 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11584 esac
11587 esac
11589 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11590 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11591 library_names_spec=
11592 libname_spec='lib$name'
11593 soname_spec=
11594 shrext_cmds=".so"
11595 postinstall_cmds=
11596 postuninstall_cmds=
11597 finish_cmds=
11598 finish_eval=
11599 shlibpath_var=
11600 shlibpath_overrides_runpath=unknown
11601 version_type=none
11602 dynamic_linker="$host_os ld.so"
11603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11604 if test "$GCC" = yes; then
11605 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11606 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11607 # if the path contains ";" then we assume it to be the separator
11608 # otherwise default to the standard path separator (i.e. ":") - it is
11609 # assumed that no part of a normal pathname contains ";" but that should
11610 # okay in the real world where ";" in dirpaths is itself problematic.
11611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11612 else
11613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11615 else
11616 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11618 need_lib_prefix=unknown
11619 hardcode_into_libs=no
11621 # when you set need_version to no, make sure it does not cause -set_version
11622 # flags to be left without arguments
11623 need_version=unknown
11625 case $host_os in
11626 aix3*)
11627 version_type=linux
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11629 shlibpath_var=LIBPATH
11631 # AIX 3 has no versioning support, so we append a major version to the name.
11632 soname_spec='${libname}${release}${shared_ext}$major'
11635 aix4* | aix5*)
11636 version_type=linux
11637 need_lib_prefix=no
11638 need_version=no
11639 hardcode_into_libs=yes
11640 if test "$host_cpu" = ia64; then
11641 # AIX 5 supports IA64
11642 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11643 shlibpath_var=LD_LIBRARY_PATH
11644 else
11645 # With GCC up to 2.95.x, collect2 would create an import file
11646 # for dependence libraries. The import file would start with
11647 # the line `#! .'. This would cause the generated library to
11648 # depend on `.', always an invalid library. This was fixed in
11649 # development snapshots of GCC prior to 3.0.
11650 case $host_os in
11651 aix4 | aix4.[01] | aix4.[01].*)
11652 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11653 echo ' yes '
11654 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11656 else
11657 can_build_shared=no
11660 esac
11661 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11662 # soname into executable. Probably we can add versioning support to
11663 # collect2, so additional links can be useful in future.
11664 if test "$aix_use_runtimelinking" = yes; then
11665 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11666 # instead of lib<name>.a to let people know that these are not
11667 # typical AIX shared libraries.
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11669 else
11670 # We preserve .a as extension for shared libraries through AIX4.2
11671 # and later when we are not doing run time linking.
11672 library_names_spec='${libname}${release}.a $libname.a'
11673 soname_spec='${libname}${release}${shared_ext}$major'
11675 shlibpath_var=LIBPATH
11679 amigaos*)
11680 library_names_spec='$libname.ixlibrary $libname.a'
11681 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11682 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'
11685 beos*)
11686 library_names_spec='${libname}${shared_ext}'
11687 dynamic_linker="$host_os ld.so"
11688 shlibpath_var=LIBRARY_PATH
11691 bsdi[45]*)
11692 version_type=linux
11693 need_version=no
11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695 soname_spec='${libname}${release}${shared_ext}$major'
11696 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11697 shlibpath_var=LD_LIBRARY_PATH
11698 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11699 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11700 # the default ld.so.conf also contains /usr/contrib/lib and
11701 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11702 # libtool to hard-code these into programs
11705 cygwin* | mingw* | pw32*)
11706 version_type=windows
11707 shrext_cmds=".dll"
11708 need_version=no
11709 need_lib_prefix=no
11711 case $GCC,$host_os in
11712 yes,cygwin* | yes,mingw* | yes,pw32*)
11713 library_names_spec='$libname.dll.a'
11714 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11715 postinstall_cmds='base_file=`basename \${file}`~
11716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11717 dldir=$destdir/`dirname \$dlpath`~
11718 test -d \$dldir || mkdir -p \$dldir~
11719 $install_prog $dir/$dlname \$dldir/$dlname~
11720 chmod a+x \$dldir/$dlname'
11721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11722 dlpath=$dir/\$dldll~
11723 $rm \$dlpath'
11724 shlibpath_overrides_runpath=yes
11726 case $host_os in
11727 cygwin*)
11728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11730 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11732 mingw*)
11733 # MinGW DLLs use traditional 'lib' prefix
11734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11735 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11736 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11737 # It is most probably a Windows format PATH printed by
11738 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11739 # path with ; separators, and with drive letters. We can handle the
11740 # drive letters (cygwin fileutils understands them), so leave them,
11741 # especially as we might pass files found there to a mingw objdump,
11742 # which wouldn't understand a cygwinified path. Ahh.
11743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11744 else
11745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11748 pw32*)
11749 # pw32 DLLs use 'pw' prefix rather than 'lib'
11750 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11752 esac
11756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11758 esac
11759 dynamic_linker='Win32 ld.exe'
11760 # FIXME: first we should search . and the directory the executable is in
11761 shlibpath_var=PATH
11764 darwin* | rhapsody*)
11765 dynamic_linker="$host_os dyld"
11766 version_type=darwin
11767 need_lib_prefix=no
11768 need_version=no
11769 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11770 soname_spec='${libname}${release}${major}$shared_ext'
11771 shlibpath_overrides_runpath=yes
11772 shlibpath_var=DYLD_LIBRARY_PATH
11773 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11774 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11775 if test "$GCC" = yes; then
11776 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"`
11777 else
11778 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11783 dgux*)
11784 version_type=linux
11785 need_lib_prefix=no
11786 need_version=no
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11792 freebsd1*)
11793 dynamic_linker=no
11796 kfreebsd*-gnu)
11797 version_type=linux
11798 need_lib_prefix=no
11799 need_version=no
11800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11801 soname_spec='${libname}${release}${shared_ext}$major'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=no
11804 hardcode_into_libs=yes
11805 dynamic_linker='GNU ld.so'
11808 freebsd* | dragonfly*)
11809 # DragonFly does not have aout. When/if they implement a new
11810 # versioning mechanism, adjust this.
11811 if test -x /usr/bin/objformat; then
11812 objformat=`/usr/bin/objformat`
11813 else
11814 case $host_os in
11815 freebsd[123]*) objformat=aout ;;
11816 *) objformat=elf ;;
11817 esac
11819 version_type=freebsd-$objformat
11820 case $version_type in
11821 freebsd-elf*)
11822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11823 need_version=no
11824 need_lib_prefix=no
11826 freebsd-*)
11827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11828 need_version=yes
11830 esac
11831 shlibpath_var=LD_LIBRARY_PATH
11832 case $host_os in
11833 freebsd2*)
11834 shlibpath_overrides_runpath=yes
11836 freebsd3.[01]* | freebsdelf3.[01]*)
11837 shlibpath_overrides_runpath=yes
11838 hardcode_into_libs=yes
11840 *) # from 3.2 on
11841 shlibpath_overrides_runpath=no
11842 hardcode_into_libs=yes
11844 esac
11847 gnu*)
11848 version_type=linux
11849 need_lib_prefix=no
11850 need_version=no
11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11852 soname_spec='${libname}${release}${shared_ext}$major'
11853 shlibpath_var=LD_LIBRARY_PATH
11854 hardcode_into_libs=yes
11857 hpux9* | hpux10* | hpux11*)
11858 # Give a soname corresponding to the major version so that dld.sl refuses to
11859 # link against other versions.
11860 version_type=sunos
11861 need_lib_prefix=no
11862 need_version=no
11863 case $host_cpu in
11864 ia64*)
11865 shrext_cmds='.so'
11866 hardcode_into_libs=yes
11867 dynamic_linker="$host_os dld.so"
11868 shlibpath_var=LD_LIBRARY_PATH
11869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11871 soname_spec='${libname}${release}${shared_ext}$major'
11872 if test "X$HPUX_IA64_MODE" = X32; then
11873 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11874 else
11875 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11879 hppa*64*)
11880 shrext_cmds='.sl'
11881 hardcode_into_libs=yes
11882 dynamic_linker="$host_os dld.sl"
11883 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11886 soname_spec='${libname}${release}${shared_ext}$major'
11887 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11891 shrext_cmds='.sl'
11892 dynamic_linker="$host_os dld.sl"
11893 shlibpath_var=SHLIB_PATH
11894 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11896 soname_spec='${libname}${release}${shared_ext}$major'
11898 esac
11899 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11900 postinstall_cmds='chmod 555 $lib'
11903 irix5* | irix6* | nonstopux*)
11904 case $host_os in
11905 nonstopux*) version_type=nonstopux ;;
11907 if test "$lt_cv_prog_gnu_ld" = yes; then
11908 version_type=linux
11909 else
11910 version_type=irix
11911 fi ;;
11912 esac
11913 need_lib_prefix=no
11914 need_version=no
11915 soname_spec='${libname}${release}${shared_ext}$major'
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11917 case $host_os in
11918 irix5* | nonstopux*)
11919 libsuff= shlibsuff=
11922 case $LD in # libtool.m4 will add one of these switches to LD
11923 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11924 libsuff= shlibsuff= libmagic=32-bit;;
11925 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11926 libsuff=32 shlibsuff=N32 libmagic=N32;;
11927 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11928 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11929 *) libsuff= shlibsuff= libmagic=never-match;;
11930 esac
11932 esac
11933 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11934 shlibpath_overrides_runpath=no
11935 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11936 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11937 hardcode_into_libs=yes
11940 # No shared lib support for Linux oldld, aout, or coff.
11941 linux*oldld* | linux*aout* | linux*coff*)
11942 dynamic_linker=no
11945 # This must be Linux ELF.
11946 linux*)
11947 version_type=linux
11948 need_lib_prefix=no
11949 need_version=no
11950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11951 soname_spec='${libname}${release}${shared_ext}$major'
11952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11953 shlibpath_var=LD_LIBRARY_PATH
11954 shlibpath_overrides_runpath=no
11955 # This implies no fast_install, which is unacceptable.
11956 # Some rework will be needed to allow for fast_install
11957 # before this can be enabled.
11958 hardcode_into_libs=yes
11960 # Append ld.so.conf contents to the search path
11961 if test -f /etc/ld.so.conf; then
11962 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' ' '`
11963 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11966 # We used to test for /lib/ld.so.1 and disable shared libraries on
11967 # powerpc, because MkLinux only supported shared libraries with the
11968 # GNU dynamic linker. Since this was broken with cross compilers,
11969 # most powerpc-linux boxes support dynamic linking these days and
11970 # people can always --disable-shared, the test was removed, and we
11971 # assume the GNU/Linux dynamic linker is in use.
11972 dynamic_linker='GNU/Linux ld.so'
11975 knetbsd*-gnu)
11976 version_type=linux
11977 need_lib_prefix=no
11978 need_version=no
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11980 soname_spec='${libname}${release}${shared_ext}$major'
11981 shlibpath_var=LD_LIBRARY_PATH
11982 shlibpath_overrides_runpath=no
11983 hardcode_into_libs=yes
11984 dynamic_linker='GNU ld.so'
11987 netbsd*)
11988 version_type=sunos
11989 need_lib_prefix=no
11990 need_version=no
11991 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11994 dynamic_linker='NetBSD (a.out) ld.so'
11995 else
11996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11997 soname_spec='${libname}${release}${shared_ext}$major'
11998 dynamic_linker='NetBSD ld.elf_so'
12000 shlibpath_var=LD_LIBRARY_PATH
12001 shlibpath_overrides_runpath=yes
12002 hardcode_into_libs=yes
12005 newsos6)
12006 version_type=linux
12007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12008 shlibpath_var=LD_LIBRARY_PATH
12009 shlibpath_overrides_runpath=yes
12012 nto-qnx*)
12013 version_type=linux
12014 need_lib_prefix=no
12015 need_version=no
12016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12017 soname_spec='${libname}${release}${shared_ext}$major'
12018 shlibpath_var=LD_LIBRARY_PATH
12019 shlibpath_overrides_runpath=yes
12022 openbsd*)
12023 version_type=sunos
12024 need_lib_prefix=no
12025 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12026 case $host_os in
12027 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12028 *) need_version=no ;;
12029 esac
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12032 shlibpath_var=LD_LIBRARY_PATH
12033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12034 case $host_os in
12035 openbsd2.[89] | openbsd2.[89].*)
12036 shlibpath_overrides_runpath=no
12039 shlibpath_overrides_runpath=yes
12041 esac
12042 else
12043 shlibpath_overrides_runpath=yes
12047 os2*)
12048 libname_spec='$name'
12049 shrext_cmds=".dll"
12050 need_lib_prefix=no
12051 library_names_spec='$libname${shared_ext} $libname.a'
12052 dynamic_linker='OS/2 ld.exe'
12053 shlibpath_var=LIBPATH
12056 osf3* | osf4* | osf5*)
12057 version_type=osf
12058 need_lib_prefix=no
12059 need_version=no
12060 soname_spec='${libname}${release}${shared_ext}$major'
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 shlibpath_var=LD_LIBRARY_PATH
12063 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12064 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12067 sco3.2v5*)
12068 version_type=osf
12069 soname_spec='${libname}${release}${shared_ext}$major'
12070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12071 shlibpath_var=LD_LIBRARY_PATH
12074 solaris*)
12075 version_type=linux
12076 need_lib_prefix=no
12077 need_version=no
12078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12079 soname_spec='${libname}${release}${shared_ext}$major'
12080 shlibpath_var=LD_LIBRARY_PATH
12081 shlibpath_overrides_runpath=yes
12082 hardcode_into_libs=yes
12083 # ldd complains unless libraries are executable
12084 postinstall_cmds='chmod +x $lib'
12087 sunos4*)
12088 version_type=sunos
12089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12090 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12091 shlibpath_var=LD_LIBRARY_PATH
12092 shlibpath_overrides_runpath=yes
12093 if test "$with_gnu_ld" = yes; then
12094 need_lib_prefix=no
12096 need_version=yes
12099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12100 version_type=linux
12101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12102 soname_spec='${libname}${release}${shared_ext}$major'
12103 shlibpath_var=LD_LIBRARY_PATH
12104 case $host_vendor in
12105 sni)
12106 shlibpath_overrides_runpath=no
12107 need_lib_prefix=no
12108 export_dynamic_flag_spec='${wl}-Blargedynsym'
12109 runpath_var=LD_RUN_PATH
12111 siemens)
12112 need_lib_prefix=no
12114 motorola)
12115 need_lib_prefix=no
12116 need_version=no
12117 shlibpath_overrides_runpath=no
12118 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12120 esac
12123 sysv4*MP*)
12124 if test -d /usr/nec ;then
12125 version_type=linux
12126 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12127 soname_spec='$libname${shared_ext}.$major'
12128 shlibpath_var=LD_LIBRARY_PATH
12132 uts4*)
12133 version_type=linux
12134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12135 soname_spec='${libname}${release}${shared_ext}$major'
12136 shlibpath_var=LD_LIBRARY_PATH
12140 dynamic_linker=no
12142 esac
12143 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12144 echo "${ECHO_T}$dynamic_linker" >&6
12145 test "$dynamic_linker" = no && can_build_shared=no
12147 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12148 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12149 hardcode_action_CXX=
12150 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12151 test -n "$runpath_var_CXX" || \
12152 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12154 # We can hardcode non-existant directories.
12155 if test "$hardcode_direct_CXX" != no &&
12156 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12157 # have to relink, otherwise we might link with an installed library
12158 # when we should be linking with a yet-to-be-installed one
12159 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12160 test "$hardcode_minus_L_CXX" != no; then
12161 # Linking always hardcodes the temporary library directory.
12162 hardcode_action_CXX=relink
12163 else
12164 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12165 hardcode_action_CXX=immediate
12167 else
12168 # We cannot hardcode anything, or else we can only hardcode existing
12169 # directories.
12170 hardcode_action_CXX=unsupported
12172 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12173 echo "${ECHO_T}$hardcode_action_CXX" >&6
12175 if test "$hardcode_action_CXX" = relink; then
12176 # Fast installation is not supported
12177 enable_fast_install=no
12178 elif test "$shlibpath_overrides_runpath" = yes ||
12179 test "$enable_shared" = no; then
12180 # Fast installation is not necessary
12181 enable_fast_install=needless
12184 striplib=
12185 old_striplib=
12186 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12187 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12188 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12189 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12190 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12191 echo "$as_me:$LINENO: result: yes" >&5
12192 echo "${ECHO_T}yes" >&6
12193 else
12194 # FIXME - insert some real tests, host_os isn't really good enough
12195 case $host_os in
12196 darwin*)
12197 if test -n "$STRIP" ; then
12198 striplib="$STRIP -x"
12199 echo "$as_me:$LINENO: result: yes" >&5
12200 echo "${ECHO_T}yes" >&6
12201 else
12202 echo "$as_me:$LINENO: result: no" >&5
12203 echo "${ECHO_T}no" >&6
12207 echo "$as_me:$LINENO: result: no" >&5
12208 echo "${ECHO_T}no" >&6
12210 esac
12213 if test "x$enable_dlopen" != xyes; then
12214 enable_dlopen=unknown
12215 enable_dlopen_self=unknown
12216 enable_dlopen_self_static=unknown
12217 else
12218 lt_cv_dlopen=no
12219 lt_cv_dlopen_libs=
12221 case $host_os in
12222 beos*)
12223 lt_cv_dlopen="load_add_on"
12224 lt_cv_dlopen_libs=
12225 lt_cv_dlopen_self=yes
12228 mingw* | pw32*)
12229 lt_cv_dlopen="LoadLibrary"
12230 lt_cv_dlopen_libs=
12233 cygwin*)
12234 lt_cv_dlopen="dlopen"
12235 lt_cv_dlopen_libs=
12238 darwin*)
12239 # if libdl is installed we need to link against it
12240 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12241 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12242 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245 ac_check_lib_save_LIBS=$LIBS
12246 LIBS="-ldl $LIBS"
12247 cat >conftest.$ac_ext <<_ACEOF
12248 /* confdefs.h. */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h. */
12254 /* Override any gcc2 internal prototype to avoid an error. */
12255 #ifdef __cplusplus
12256 extern "C"
12257 #endif
12258 /* We use char because int might match the return type of a gcc2
12259 builtin and then its argument prototype would still apply. */
12260 char dlopen ();
12262 main ()
12264 dlopen ();
12266 return 0;
12268 _ACEOF
12269 rm -f conftest.$ac_objext conftest$ac_exeext
12270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12271 (eval $ac_link) 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; } &&
12284 { ac_try='test -s conftest$ac_exeext'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12290 ac_cv_lib_dl_dlopen=yes
12291 else
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12295 ac_cv_lib_dl_dlopen=no
12297 rm -f conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12303 if test $ac_cv_lib_dl_dlopen = yes; then
12304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12305 else
12307 lt_cv_dlopen="dyld"
12308 lt_cv_dlopen_libs=
12309 lt_cv_dlopen_self=yes
12316 echo "$as_me:$LINENO: checking for shl_load" >&5
12317 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12318 if test "${ac_cv_func_shl_load+set}" = set; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
12320 else
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h. */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12329 #define shl_load innocuous_shl_load
12331 /* System header to define __stub macros and hopefully few prototypes,
12332 which can conflict with char shl_load (); below.
12333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12334 <limits.h> exists even on freestanding compilers. */
12336 #ifdef __STDC__
12337 # include <limits.h>
12338 #else
12339 # include <assert.h>
12340 #endif
12342 #undef shl_load
12344 /* Override any gcc2 internal prototype to avoid an error. */
12345 #ifdef __cplusplus
12346 extern "C"
12348 #endif
12349 /* We use char because int might match the return type of a gcc2
12350 builtin and then its argument prototype would still apply. */
12351 char shl_load ();
12352 /* The GNU C library defines this for functions which it implements
12353 to always fail with ENOSYS. Some functions are actually named
12354 something starting with __ and the normal name is an alias. */
12355 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12356 choke me
12357 #else
12358 char (*f) () = shl_load;
12359 #endif
12360 #ifdef __cplusplus
12362 #endif
12365 main ()
12367 return f != shl_load;
12369 return 0;
12371 _ACEOF
12372 rm -f conftest.$ac_objext conftest$ac_exeext
12373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12374 (eval $ac_link) 2>conftest.er1
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
12381 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; } &&
12387 { ac_try='test -s conftest$ac_exeext'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; }; then
12393 ac_cv_func_shl_load=yes
12394 else
12395 echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12398 ac_cv_func_shl_load=no
12400 rm -f conftest.err conftest.$ac_objext \
12401 conftest$ac_exeext conftest.$ac_ext
12403 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12404 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12405 if test $ac_cv_func_shl_load = yes; then
12406 lt_cv_dlopen="shl_load"
12407 else
12408 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12409 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12410 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12411 echo $ECHO_N "(cached) $ECHO_C" >&6
12412 else
12413 ac_check_lib_save_LIBS=$LIBS
12414 LIBS="-ldld $LIBS"
12415 cat >conftest.$ac_ext <<_ACEOF
12416 /* confdefs.h. */
12417 _ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12422 /* Override any gcc2 internal prototype to avoid an error. */
12423 #ifdef __cplusplus
12424 extern "C"
12425 #endif
12426 /* We use char because int might match the return type of a gcc2
12427 builtin and then its argument prototype would still apply. */
12428 char shl_load ();
12430 main ()
12432 shl_load ();
12434 return 0;
12436 _ACEOF
12437 rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12439 (eval $ac_link) 2>conftest.er1
12440 ac_status=$?
12441 grep -v '^ *+' conftest.er1 >conftest.err
12442 rm -f conftest.er1
12443 cat conftest.err >&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } &&
12446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; } &&
12452 { ac_try='test -s conftest$ac_exeext'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 ac_cv_lib_dld_shl_load=yes
12459 else
12460 echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12463 ac_cv_lib_dld_shl_load=no
12465 rm -f conftest.err conftest.$ac_objext \
12466 conftest$ac_exeext conftest.$ac_ext
12467 LIBS=$ac_check_lib_save_LIBS
12469 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12470 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12471 if test $ac_cv_lib_dld_shl_load = yes; then
12472 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12473 else
12474 echo "$as_me:$LINENO: checking for dlopen" >&5
12475 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12476 if test "${ac_cv_func_dlopen+set}" = set; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 else
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h. */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12487 #define dlopen innocuous_dlopen
12489 /* System header to define __stub macros and hopefully few prototypes,
12490 which can conflict with char dlopen (); below.
12491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12492 <limits.h> exists even on freestanding compilers. */
12494 #ifdef __STDC__
12495 # include <limits.h>
12496 #else
12497 # include <assert.h>
12498 #endif
12500 #undef dlopen
12502 /* Override any gcc2 internal prototype to avoid an error. */
12503 #ifdef __cplusplus
12504 extern "C"
12506 #endif
12507 /* We use char because int might match the return type of a gcc2
12508 builtin and then its argument prototype would still apply. */
12509 char dlopen ();
12510 /* The GNU C library defines this for functions which it implements
12511 to always fail with ENOSYS. Some functions are actually named
12512 something starting with __ and the normal name is an alias. */
12513 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12514 choke me
12515 #else
12516 char (*f) () = dlopen;
12517 #endif
12518 #ifdef __cplusplus
12520 #endif
12523 main ()
12525 return f != dlopen;
12527 return 0;
12529 _ACEOF
12530 rm -f conftest.$ac_objext conftest$ac_exeext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12532 (eval $ac_link) 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; } &&
12545 { ac_try='test -s conftest$ac_exeext'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; }; then
12551 ac_cv_func_dlopen=yes
12552 else
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 ac_cv_func_dlopen=no
12558 rm -f conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext conftest.$ac_ext
12561 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12562 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12563 if test $ac_cv_func_dlopen = yes; then
12564 lt_cv_dlopen="dlopen"
12565 else
12566 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12567 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12568 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 else
12571 ac_check_lib_save_LIBS=$LIBS
12572 LIBS="-ldl $LIBS"
12573 cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h. */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12580 /* Override any gcc2 internal prototype to avoid an error. */
12581 #ifdef __cplusplus
12582 extern "C"
12583 #endif
12584 /* We use char because int might match the return type of a gcc2
12585 builtin and then its argument prototype would still apply. */
12586 char dlopen ();
12588 main ()
12590 dlopen ();
12592 return 0;
12594 _ACEOF
12595 rm -f conftest.$ac_objext conftest$ac_exeext
12596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12597 (eval $ac_link) 2>conftest.er1
12598 ac_status=$?
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
12604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12607 ac_status=$?
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; } &&
12610 { ac_try='test -s conftest$ac_exeext'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
12616 ac_cv_lib_dl_dlopen=yes
12617 else
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 ac_cv_lib_dl_dlopen=no
12623 rm -f conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext conftest.$ac_ext
12625 LIBS=$ac_check_lib_save_LIBS
12627 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12628 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12629 if test $ac_cv_lib_dl_dlopen = yes; then
12630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12631 else
12632 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12633 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12634 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 else
12637 ac_check_lib_save_LIBS=$LIBS
12638 LIBS="-lsvld $LIBS"
12639 cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h. */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12646 /* Override any gcc2 internal prototype to avoid an error. */
12647 #ifdef __cplusplus
12648 extern "C"
12649 #endif
12650 /* We use char because int might match the return type of a gcc2
12651 builtin and then its argument prototype would still apply. */
12652 char dlopen ();
12654 main ()
12656 dlopen ();
12658 return 0;
12660 _ACEOF
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12663 (eval $ac_link) 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; } &&
12676 { ac_try='test -s conftest$ac_exeext'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 ac_cv_lib_svld_dlopen=yes
12683 else
12684 echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12687 ac_cv_lib_svld_dlopen=no
12689 rm -f conftest.err conftest.$ac_objext \
12690 conftest$ac_exeext conftest.$ac_ext
12691 LIBS=$ac_check_lib_save_LIBS
12693 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12694 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12695 if test $ac_cv_lib_svld_dlopen = yes; then
12696 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12697 else
12698 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12699 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12700 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12703 ac_check_lib_save_LIBS=$LIBS
12704 LIBS="-ldld $LIBS"
12705 cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h. */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12712 /* Override any gcc2 internal prototype to avoid an error. */
12713 #ifdef __cplusplus
12714 extern "C"
12715 #endif
12716 /* We use char because int might match the return type of a gcc2
12717 builtin and then its argument prototype would still apply. */
12718 char dld_link ();
12720 main ()
12722 dld_link ();
12724 return 0;
12726 _ACEOF
12727 rm -f conftest.$ac_objext conftest$ac_exeext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12729 (eval $ac_link) 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; } &&
12742 { ac_try='test -s conftest$ac_exeext'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12745 ac_status=$?
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; }; then
12748 ac_cv_lib_dld_dld_link=yes
12749 else
12750 echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12753 ac_cv_lib_dld_dld_link=no
12755 rm -f conftest.err conftest.$ac_objext \
12756 conftest$ac_exeext conftest.$ac_ext
12757 LIBS=$ac_check_lib_save_LIBS
12759 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12760 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12761 if test $ac_cv_lib_dld_dld_link = yes; then
12762 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12781 esac
12783 if test "x$lt_cv_dlopen" != xno; then
12784 enable_dlopen=yes
12785 else
12786 enable_dlopen=no
12789 case $lt_cv_dlopen in
12790 dlopen)
12791 save_CPPFLAGS="$CPPFLAGS"
12792 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12794 save_LDFLAGS="$LDFLAGS"
12795 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12797 save_LIBS="$LIBS"
12798 LIBS="$lt_cv_dlopen_libs $LIBS"
12800 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12801 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12802 if test "${lt_cv_dlopen_self+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12805 if test "$cross_compiling" = yes; then :
12806 lt_cv_dlopen_self=cross
12807 else
12808 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12809 lt_status=$lt_dlunknown
12810 cat > conftest.$ac_ext <<EOF
12811 #line 12811 "configure"
12812 #include "confdefs.h"
12814 #if HAVE_DLFCN_H
12815 #include <dlfcn.h>
12816 #endif
12818 #include <stdio.h>
12820 #ifdef RTLD_GLOBAL
12821 # define LT_DLGLOBAL RTLD_GLOBAL
12822 #else
12823 # ifdef DL_GLOBAL
12824 # define LT_DLGLOBAL DL_GLOBAL
12825 # else
12826 # define LT_DLGLOBAL 0
12827 # endif
12828 #endif
12830 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12831 find out it does not work in some platform. */
12832 #ifndef LT_DLLAZY_OR_NOW
12833 # ifdef RTLD_LAZY
12834 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12835 # else
12836 # ifdef DL_LAZY
12837 # define LT_DLLAZY_OR_NOW DL_LAZY
12838 # else
12839 # ifdef RTLD_NOW
12840 # define LT_DLLAZY_OR_NOW RTLD_NOW
12841 # else
12842 # ifdef DL_NOW
12843 # define LT_DLLAZY_OR_NOW DL_NOW
12844 # else
12845 # define LT_DLLAZY_OR_NOW 0
12846 # endif
12847 # endif
12848 # endif
12849 # endif
12850 #endif
12852 #ifdef __cplusplus
12853 extern "C" void exit (int);
12854 #endif
12856 void fnord() { int i=42;}
12857 int main ()
12859 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12860 int status = $lt_dlunknown;
12862 if (self)
12864 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12865 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12866 /* dlclose (self); */
12869 exit (status);
12872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12873 (eval $ac_link) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12877 (./conftest; exit; ) >&5 2>/dev/null
12878 lt_status=$?
12879 case x$lt_status in
12880 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12881 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12882 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12883 esac
12884 else :
12885 # compilation failed
12886 lt_cv_dlopen_self=no
12889 rm -fr conftest*
12893 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12894 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12896 if test "x$lt_cv_dlopen_self" = xyes; then
12897 LDFLAGS="$LDFLAGS $link_static_flag"
12898 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12899 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12900 if test "${lt_cv_dlopen_self_static+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903 if test "$cross_compiling" = yes; then :
12904 lt_cv_dlopen_self_static=cross
12905 else
12906 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12907 lt_status=$lt_dlunknown
12908 cat > conftest.$ac_ext <<EOF
12909 #line 12909 "configure"
12910 #include "confdefs.h"
12912 #if HAVE_DLFCN_H
12913 #include <dlfcn.h>
12914 #endif
12916 #include <stdio.h>
12918 #ifdef RTLD_GLOBAL
12919 # define LT_DLGLOBAL RTLD_GLOBAL
12920 #else
12921 # ifdef DL_GLOBAL
12922 # define LT_DLGLOBAL DL_GLOBAL
12923 # else
12924 # define LT_DLGLOBAL 0
12925 # endif
12926 #endif
12928 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12929 find out it does not work in some platform. */
12930 #ifndef LT_DLLAZY_OR_NOW
12931 # ifdef RTLD_LAZY
12932 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12933 # else
12934 # ifdef DL_LAZY
12935 # define LT_DLLAZY_OR_NOW DL_LAZY
12936 # else
12937 # ifdef RTLD_NOW
12938 # define LT_DLLAZY_OR_NOW RTLD_NOW
12939 # else
12940 # ifdef DL_NOW
12941 # define LT_DLLAZY_OR_NOW DL_NOW
12942 # else
12943 # define LT_DLLAZY_OR_NOW 0
12944 # endif
12945 # endif
12946 # endif
12947 # endif
12948 #endif
12950 #ifdef __cplusplus
12951 extern "C" void exit (int);
12952 #endif
12954 void fnord() { int i=42;}
12955 int main ()
12957 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12958 int status = $lt_dlunknown;
12960 if (self)
12962 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12963 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12964 /* dlclose (self); */
12967 exit (status);
12970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12971 (eval $ac_link) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12975 (./conftest; exit; ) >&5 2>/dev/null
12976 lt_status=$?
12977 case x$lt_status in
12978 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12979 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12980 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12981 esac
12982 else :
12983 # compilation failed
12984 lt_cv_dlopen_self_static=no
12987 rm -fr conftest*
12991 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12992 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12995 CPPFLAGS="$save_CPPFLAGS"
12996 LDFLAGS="$save_LDFLAGS"
12997 LIBS="$save_LIBS"
12999 esac
13001 case $lt_cv_dlopen_self in
13002 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13003 *) enable_dlopen_self=unknown ;;
13004 esac
13006 case $lt_cv_dlopen_self_static in
13007 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13008 *) enable_dlopen_self_static=unknown ;;
13009 esac
13013 # The else clause should only fire when bootstrapping the
13014 # libtool distribution, otherwise you forgot to ship ltmain.sh
13015 # with your package, and you will get complaints that there are
13016 # no rules to generate ltmain.sh.
13017 if test -f "$ltmain"; then
13018 # See if we are running on zsh, and set the options which allow our commands through
13019 # without removal of \ escapes.
13020 if test -n "${ZSH_VERSION+set}" ; then
13021 setopt NO_GLOB_SUBST
13023 # Now quote all the things that may contain metacharacters while being
13024 # careful not to overquote the AC_SUBSTed values. We take copies of the
13025 # variables and quote the copies for generation of the libtool script.
13026 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13027 SED SHELL STRIP \
13028 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13029 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13030 deplibs_check_method reload_flag reload_cmds need_locks \
13031 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13032 lt_cv_sys_global_symbol_to_c_name_address \
13033 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13034 old_postinstall_cmds old_postuninstall_cmds \
13035 compiler_CXX \
13036 CC_CXX \
13037 LD_CXX \
13038 lt_prog_compiler_wl_CXX \
13039 lt_prog_compiler_pic_CXX \
13040 lt_prog_compiler_static_CXX \
13041 lt_prog_compiler_no_builtin_flag_CXX \
13042 export_dynamic_flag_spec_CXX \
13043 thread_safe_flag_spec_CXX \
13044 whole_archive_flag_spec_CXX \
13045 enable_shared_with_static_runtimes_CXX \
13046 old_archive_cmds_CXX \
13047 old_archive_from_new_cmds_CXX \
13048 predep_objects_CXX \
13049 postdep_objects_CXX \
13050 predeps_CXX \
13051 postdeps_CXX \
13052 compiler_lib_search_path_CXX \
13053 archive_cmds_CXX \
13054 archive_expsym_cmds_CXX \
13055 postinstall_cmds_CXX \
13056 postuninstall_cmds_CXX \
13057 old_archive_from_expsyms_cmds_CXX \
13058 allow_undefined_flag_CXX \
13059 no_undefined_flag_CXX \
13060 export_symbols_cmds_CXX \
13061 hardcode_libdir_flag_spec_CXX \
13062 hardcode_libdir_flag_spec_ld_CXX \
13063 hardcode_libdir_separator_CXX \
13064 hardcode_automatic_CXX \
13065 module_cmds_CXX \
13066 module_expsym_cmds_CXX \
13067 lt_cv_prog_compiler_c_o_CXX \
13068 exclude_expsyms_CXX \
13069 include_expsyms_CXX; do
13071 case $var in
13072 old_archive_cmds_CXX | \
13073 old_archive_from_new_cmds_CXX | \
13074 archive_cmds_CXX | \
13075 archive_expsym_cmds_CXX | \
13076 module_cmds_CXX | \
13077 module_expsym_cmds_CXX | \
13078 old_archive_from_expsyms_cmds_CXX | \
13079 export_symbols_cmds_CXX | \
13080 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13081 postinstall_cmds | postuninstall_cmds | \
13082 old_postinstall_cmds | old_postuninstall_cmds | \
13083 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13084 # Double-quote double-evaled strings.
13085 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13088 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13090 esac
13091 done
13093 case $lt_echo in
13094 *'\$0 --fallback-echo"')
13095 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13097 esac
13099 cfgfile="$ofile"
13101 cat <<__EOF__ >> "$cfgfile"
13102 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13104 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13106 # Shell to use when invoking shell scripts.
13107 SHELL=$lt_SHELL
13109 # Whether or not to build shared libraries.
13110 build_libtool_libs=$enable_shared
13112 # Whether or not to build static libraries.
13113 build_old_libs=$enable_static
13115 # Whether or not to add -lc for building shared libraries.
13116 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13118 # Whether or not to disallow shared libs when runtime libs are static
13119 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13121 # Whether or not to optimize for fast installation.
13122 fast_install=$enable_fast_install
13124 # The host system.
13125 host_alias=$host_alias
13126 host=$host
13127 host_os=$host_os
13129 # The build system.
13130 build_alias=$build_alias
13131 build=$build
13132 build_os=$build_os
13134 # An echo program that does not interpret backslashes.
13135 echo=$lt_echo
13137 # The archiver.
13138 AR=$lt_AR
13139 AR_FLAGS=$lt_AR_FLAGS
13141 # A C compiler.
13142 LTCC=$lt_LTCC
13144 # A language-specific compiler.
13145 CC=$lt_compiler_CXX
13147 # Is the compiler the GNU C compiler?
13148 with_gcc=$GCC_CXX
13150 # An ERE matcher.
13151 EGREP=$lt_EGREP
13153 # The linker used to build libraries.
13154 LD=$lt_LD_CXX
13156 # Whether we need hard or soft links.
13157 LN_S=$lt_LN_S
13159 # A BSD-compatible nm program.
13160 NM=$lt_NM
13162 # A symbol stripping program
13163 STRIP=$lt_STRIP
13165 # Used to examine libraries when file_magic_cmd begins "file"
13166 MAGIC_CMD=$MAGIC_CMD
13168 # Used on cygwin: DLL creation program.
13169 DLLTOOL="$DLLTOOL"
13171 # Used on cygwin: object dumper.
13172 OBJDUMP="$OBJDUMP"
13174 # Used on cygwin: assembler.
13175 AS="$AS"
13177 # The name of the directory that contains temporary libtool files.
13178 objdir=$objdir
13180 # How to create reloadable object files.
13181 reload_flag=$lt_reload_flag
13182 reload_cmds=$lt_reload_cmds
13184 # How to pass a linker flag through the compiler.
13185 wl=$lt_lt_prog_compiler_wl_CXX
13187 # Object file suffix (normally "o").
13188 objext="$ac_objext"
13190 # Old archive suffix (normally "a").
13191 libext="$libext"
13193 # Shared library suffix (normally ".so").
13194 shrext_cmds='$shrext_cmds'
13196 # Executable file suffix (normally "").
13197 exeext="$exeext"
13199 # Additional compiler flags for building library objects.
13200 pic_flag=$lt_lt_prog_compiler_pic_CXX
13201 pic_mode=$pic_mode
13203 # What is the maximum length of a command?
13204 max_cmd_len=$lt_cv_sys_max_cmd_len
13206 # Does compiler simultaneously support -c and -o options?
13207 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13209 # Must we lock files when doing compilation?
13210 need_locks=$lt_need_locks
13212 # Do we need the lib prefix for modules?
13213 need_lib_prefix=$need_lib_prefix
13215 # Do we need a version for libraries?
13216 need_version=$need_version
13218 # Whether dlopen is supported.
13219 dlopen_support=$enable_dlopen
13221 # Whether dlopen of programs is supported.
13222 dlopen_self=$enable_dlopen_self
13224 # Whether dlopen of statically linked programs is supported.
13225 dlopen_self_static=$enable_dlopen_self_static
13227 # Compiler flag to prevent dynamic linking.
13228 link_static_flag=$lt_lt_prog_compiler_static_CXX
13230 # Compiler flag to turn off builtin functions.
13231 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13233 # Compiler flag to allow reflexive dlopens.
13234 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13236 # Compiler flag to generate shared objects directly from archives.
13237 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13239 # Compiler flag to generate thread-safe objects.
13240 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13242 # Library versioning type.
13243 version_type=$version_type
13245 # Format of library name prefix.
13246 libname_spec=$lt_libname_spec
13248 # List of archive names. First name is the real one, the rest are links.
13249 # The last name is the one that the linker finds with -lNAME.
13250 library_names_spec=$lt_library_names_spec
13252 # The coded name of the library, if different from the real name.
13253 soname_spec=$lt_soname_spec
13255 # Commands used to build and install an old-style archive.
13256 RANLIB=$lt_RANLIB
13257 old_archive_cmds=$lt_old_archive_cmds_CXX
13258 old_postinstall_cmds=$lt_old_postinstall_cmds
13259 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13261 # Create an old-style archive from a shared archive.
13262 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13264 # Create a temporary old-style archive to link instead of a shared archive.
13265 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13267 # Commands used to build and install a shared archive.
13268 archive_cmds=$lt_archive_cmds_CXX
13269 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13270 postinstall_cmds=$lt_postinstall_cmds
13271 postuninstall_cmds=$lt_postuninstall_cmds
13273 # Commands used to build a loadable module (assumed same as above if empty)
13274 module_cmds=$lt_module_cmds_CXX
13275 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13277 # Commands to strip libraries.
13278 old_striplib=$lt_old_striplib
13279 striplib=$lt_striplib
13281 # Dependencies to place before the objects being linked to create a
13282 # shared library.
13283 predep_objects=$lt_predep_objects_CXX
13285 # Dependencies to place after the objects being linked to create a
13286 # shared library.
13287 postdep_objects=$lt_postdep_objects_CXX
13289 # Dependencies to place before the objects being linked to create a
13290 # shared library.
13291 predeps=$lt_predeps_CXX
13293 # Dependencies to place after the objects being linked to create a
13294 # shared library.
13295 postdeps=$lt_postdeps_CXX
13297 # The library search path used internally by the compiler when linking
13298 # a shared library.
13299 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13301 # Method to check whether dependent libraries are shared objects.
13302 deplibs_check_method=$lt_deplibs_check_method
13304 # Command to use when deplibs_check_method == file_magic.
13305 file_magic_cmd=$lt_file_magic_cmd
13307 # Flag that allows shared libraries with undefined symbols to be built.
13308 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13310 # Flag that forces no undefined symbols.
13311 no_undefined_flag=$lt_no_undefined_flag_CXX
13313 # Commands used to finish a libtool library installation in a directory.
13314 finish_cmds=$lt_finish_cmds
13316 # Same as above, but a single script fragment to be evaled but not shown.
13317 finish_eval=$lt_finish_eval
13319 # Take the output of nm and produce a listing of raw symbols and C names.
13320 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13322 # Transform the output of nm in a proper C declaration
13323 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13325 # Transform the output of nm in a C name address pair
13326 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13328 # This is the shared library runtime path variable.
13329 runpath_var=$runpath_var
13331 # This is the shared library path variable.
13332 shlibpath_var=$shlibpath_var
13334 # Is shlibpath searched before the hard-coded library search path?
13335 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13337 # How to hardcode a shared library path into an executable.
13338 hardcode_action=$hardcode_action_CXX
13340 # Whether we should hardcode library paths into libraries.
13341 hardcode_into_libs=$hardcode_into_libs
13343 # Flag to hardcode \$libdir into a binary during linking.
13344 # This must work even if \$libdir does not exist.
13345 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13347 # If ld is used when linking, flag to hardcode \$libdir into
13348 # a binary during linking. This must work even if \$libdir does
13349 # not exist.
13350 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13352 # Whether we need a single -rpath flag with a separated argument.
13353 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13355 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13356 # resulting binary.
13357 hardcode_direct=$hardcode_direct_CXX
13359 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13360 # resulting binary.
13361 hardcode_minus_L=$hardcode_minus_L_CXX
13363 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13364 # the resulting binary.
13365 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13367 # Set to yes if building a shared library automatically hardcodes DIR into the library
13368 # and all subsequent libraries and executables linked against it.
13369 hardcode_automatic=$hardcode_automatic_CXX
13371 # Variables whose values should be saved in libtool wrapper scripts and
13372 # restored at relink time.
13373 variables_saved_for_relink="$variables_saved_for_relink"
13375 # Whether libtool must link a program against all its dependency libraries.
13376 link_all_deplibs=$link_all_deplibs_CXX
13378 # Compile-time system search path for libraries
13379 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13381 # Run-time system search path for libraries
13382 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13384 # Fix the shell variable \$srcfile for the compiler.
13385 fix_srcfile_path="$fix_srcfile_path_CXX"
13387 # Set to yes if exported symbols are required.
13388 always_export_symbols=$always_export_symbols_CXX
13390 # The commands to list exported symbols.
13391 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13393 # The commands to extract the exported symbol list from a shared archive.
13394 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13396 # Symbols that should not be listed in the preloaded symbols.
13397 exclude_expsyms=$lt_exclude_expsyms_CXX
13399 # Symbols that must always be exported.
13400 include_expsyms=$lt_include_expsyms_CXX
13402 # ### END LIBTOOL TAG CONFIG: $tagname
13404 __EOF__
13407 else
13408 # If there is no Makefile yet, we rely on a make rule to execute
13409 # `config.status --recheck' to rerun these tests and create the
13410 # libtool script then.
13411 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13412 if test -f "$ltmain_in"; then
13413 test -f Makefile && make "$ltmain"
13418 ac_ext=c
13419 ac_cpp='$CPP $CPPFLAGS'
13420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13424 CC=$lt_save_CC
13425 LDCXX=$LD
13426 LD=$lt_save_LD
13427 GCC=$lt_save_GCC
13428 with_gnu_ldcxx=$with_gnu_ld
13429 with_gnu_ld=$lt_save_with_gnu_ld
13430 lt_cv_path_LDCXX=$lt_cv_path_LD
13431 lt_cv_path_LD=$lt_save_path_LD
13432 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13433 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13435 else
13436 tagname=""
13440 F77)
13441 if test -n "$F77" && test "X$F77" != "Xno"; then
13443 ac_ext=f
13444 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13445 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13446 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13449 archive_cmds_need_lc_F77=no
13450 allow_undefined_flag_F77=
13451 always_export_symbols_F77=no
13452 archive_expsym_cmds_F77=
13453 export_dynamic_flag_spec_F77=
13454 hardcode_direct_F77=no
13455 hardcode_libdir_flag_spec_F77=
13456 hardcode_libdir_flag_spec_ld_F77=
13457 hardcode_libdir_separator_F77=
13458 hardcode_minus_L_F77=no
13459 hardcode_automatic_F77=no
13460 module_cmds_F77=
13461 module_expsym_cmds_F77=
13462 link_all_deplibs_F77=unknown
13463 old_archive_cmds_F77=$old_archive_cmds
13464 no_undefined_flag_F77=
13465 whole_archive_flag_spec_F77=
13466 enable_shared_with_static_runtimes_F77=no
13468 # Source file extension for f77 test sources.
13469 ac_ext=f
13471 # Object file extension for compiled f77 test sources.
13472 objext=o
13473 objext_F77=$objext
13475 # Code to be used in simple compile tests
13476 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13478 # Code to be used in simple link tests
13479 lt_simple_link_test_code=" program t\n end\n"
13481 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13483 # If no C compiler was specified, use CC.
13484 LTCC=${LTCC-"$CC"}
13486 # Allow CC to be a program name with arguments.
13487 compiler=$CC
13490 # save warnings/boilerplate of simple test code
13491 ac_outfile=conftest.$ac_objext
13492 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13493 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13494 _lt_compiler_boilerplate=`cat conftest.err`
13495 $rm conftest*
13497 ac_outfile=conftest.$ac_objext
13498 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13499 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13500 _lt_linker_boilerplate=`cat conftest.err`
13501 $rm conftest*
13504 # Allow CC to be a program name with arguments.
13505 lt_save_CC="$CC"
13506 CC=${F77-"f77"}
13507 compiler=$CC
13508 compiler_F77=$CC
13509 for cc_temp in $compiler""; do
13510 case $cc_temp in
13511 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13512 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13513 \-*) ;;
13514 *) break;;
13515 esac
13516 done
13517 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13520 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13521 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13522 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13523 echo "${ECHO_T}$can_build_shared" >&6
13525 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13526 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13527 test "$can_build_shared" = "no" && enable_shared=no
13529 # On AIX, shared libraries and static libraries use the same namespace, and
13530 # are all built from PIC.
13531 case $host_os in
13532 aix3*)
13533 test "$enable_shared" = yes && enable_static=no
13534 if test -n "$RANLIB"; then
13535 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13536 postinstall_cmds='$RANLIB $lib'
13539 aix4* | aix5*)
13540 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13541 test "$enable_shared" = yes && enable_static=no
13544 esac
13545 echo "$as_me:$LINENO: result: $enable_shared" >&5
13546 echo "${ECHO_T}$enable_shared" >&6
13548 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13549 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13550 # Make sure either enable_shared or enable_static is yes.
13551 test "$enable_shared" = yes || enable_static=yes
13552 echo "$as_me:$LINENO: result: $enable_static" >&5
13553 echo "${ECHO_T}$enable_static" >&6
13555 test "$ld_shlibs_F77" = no && can_build_shared=no
13557 GCC_F77="$G77"
13558 LD_F77="$LD"
13560 lt_prog_compiler_wl_F77=
13561 lt_prog_compiler_pic_F77=
13562 lt_prog_compiler_static_F77=
13564 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13565 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13567 if test "$GCC" = yes; then
13568 lt_prog_compiler_wl_F77='-Wl,'
13569 lt_prog_compiler_static_F77='-static'
13571 case $host_os in
13572 aix*)
13573 # All AIX code is PIC.
13574 if test "$host_cpu" = ia64; then
13575 # AIX 5 now supports IA64 processor
13576 lt_prog_compiler_static_F77='-Bstatic'
13580 amigaos*)
13581 # FIXME: we need at least 68020 code to build shared libraries, but
13582 # adding the `-m68020' flag to GCC prevents building anything better,
13583 # like `-m68040'.
13584 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13587 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13588 # PIC is the default for these OSes.
13591 mingw* | pw32* | os2*)
13592 # This hack is so that the source file can tell whether it is being
13593 # built for inclusion in a dll (and should export symbols for example).
13594 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13597 darwin* | rhapsody*)
13598 # PIC is the default on this platform
13599 # Common symbols not allowed in MH_DYLIB files
13600 lt_prog_compiler_pic_F77='-fno-common'
13603 msdosdjgpp*)
13604 # Just because we use GCC doesn't mean we suddenly get shared libraries
13605 # on systems that don't support them.
13606 lt_prog_compiler_can_build_shared_F77=no
13607 enable_shared=no
13610 sysv4*MP*)
13611 if test -d /usr/nec; then
13612 lt_prog_compiler_pic_F77=-Kconform_pic
13616 hpux*)
13617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13618 # not for PA HP-UX.
13619 case $host_cpu in
13620 hppa*64*|ia64*)
13621 # +Z the default
13624 lt_prog_compiler_pic_F77='-fPIC'
13626 esac
13630 lt_prog_compiler_pic_F77='-fPIC'
13632 esac
13633 else
13634 # PORTME Check for flag to pass linker flags through the system compiler.
13635 case $host_os in
13636 aix*)
13637 lt_prog_compiler_wl_F77='-Wl,'
13638 if test "$host_cpu" = ia64; then
13639 # AIX 5 now supports IA64 processor
13640 lt_prog_compiler_static_F77='-Bstatic'
13641 else
13642 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13645 darwin*)
13646 # PIC is the default on this platform
13647 # Common symbols not allowed in MH_DYLIB files
13648 case $cc_basename in
13649 xlc*)
13650 lt_prog_compiler_pic_F77='-qnocommon'
13651 lt_prog_compiler_wl_F77='-Wl,'
13653 esac
13656 mingw* | pw32* | os2*)
13657 # This hack is so that the source file can tell whether it is being
13658 # built for inclusion in a dll (and should export symbols for example).
13659 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13662 hpux9* | hpux10* | hpux11*)
13663 lt_prog_compiler_wl_F77='-Wl,'
13664 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13665 # not for PA HP-UX.
13666 case $host_cpu in
13667 hppa*64*|ia64*)
13668 # +Z the default
13671 lt_prog_compiler_pic_F77='+Z'
13673 esac
13674 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13675 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13678 irix5* | irix6* | nonstopux*)
13679 lt_prog_compiler_wl_F77='-Wl,'
13680 # PIC (with -KPIC) is the default.
13681 lt_prog_compiler_static_F77='-non_shared'
13684 newsos6)
13685 lt_prog_compiler_pic_F77='-KPIC'
13686 lt_prog_compiler_static_F77='-Bstatic'
13689 linux*)
13690 case $cc_basename in
13691 icc* | ecc*)
13692 lt_prog_compiler_wl_F77='-Wl,'
13693 lt_prog_compiler_pic_F77='-KPIC'
13694 lt_prog_compiler_static_F77='-static'
13696 pgcc* | pgf77* | pgf90* | pgf95*)
13697 # Portland Group compilers (*not* the Pentium gcc compiler,
13698 # which looks to be a dead project)
13699 lt_prog_compiler_wl_F77='-Wl,'
13700 lt_prog_compiler_pic_F77='-fpic'
13701 lt_prog_compiler_static_F77='-Bstatic'
13703 ccc*)
13704 lt_prog_compiler_wl_F77='-Wl,'
13705 # All Alpha code is PIC.
13706 lt_prog_compiler_static_F77='-non_shared'
13708 esac
13711 osf3* | osf4* | osf5*)
13712 lt_prog_compiler_wl_F77='-Wl,'
13713 # All OSF/1 code is PIC.
13714 lt_prog_compiler_static_F77='-non_shared'
13717 sco3.2v5*)
13718 lt_prog_compiler_pic_F77='-Kpic'
13719 lt_prog_compiler_static_F77='-dn'
13722 solaris*)
13723 lt_prog_compiler_pic_F77='-KPIC'
13724 lt_prog_compiler_static_F77='-Bstatic'
13725 case $cc_basename in
13726 f77* | f90* | f95*)
13727 lt_prog_compiler_wl_F77='-Qoption ld ';;
13729 lt_prog_compiler_wl_F77='-Wl,';;
13730 esac
13733 sunos4*)
13734 lt_prog_compiler_wl_F77='-Qoption ld '
13735 lt_prog_compiler_pic_F77='-PIC'
13736 lt_prog_compiler_static_F77='-Bstatic'
13739 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13740 lt_prog_compiler_wl_F77='-Wl,'
13741 lt_prog_compiler_pic_F77='-KPIC'
13742 lt_prog_compiler_static_F77='-Bstatic'
13745 sysv4*MP*)
13746 if test -d /usr/nec ;then
13747 lt_prog_compiler_pic_F77='-Kconform_pic'
13748 lt_prog_compiler_static_F77='-Bstatic'
13752 unicos*)
13753 lt_prog_compiler_wl_F77='-Wl,'
13754 lt_prog_compiler_can_build_shared_F77=no
13757 uts4*)
13758 lt_prog_compiler_pic_F77='-pic'
13759 lt_prog_compiler_static_F77='-Bstatic'
13763 lt_prog_compiler_can_build_shared_F77=no
13765 esac
13768 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13769 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13772 # Check to make sure the PIC flag actually works.
13774 if test -n "$lt_prog_compiler_pic_F77"; then
13776 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13777 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13778 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781 lt_prog_compiler_pic_works_F77=no
13782 ac_outfile=conftest.$ac_objext
13783 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13784 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13785 # Insert the option either (1) after the last *FLAGS variable, or
13786 # (2) before a word containing "conftest.", or (3) at the end.
13787 # Note that $ac_compile itself does not contain backslashes and begins
13788 # with a dollar sign (not a hyphen), so the echo should work correctly.
13789 # The option is referenced via a variable to avoid confusing sed.
13790 lt_compile=`echo "$ac_compile" | $SED \
13791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13793 -e 's:$: $lt_compiler_flag:'`
13794 (eval echo "\"\$as_me:13794: $lt_compile\"" >&5)
13795 (eval "$lt_compile" 2>conftest.err)
13796 ac_status=$?
13797 cat conftest.err >&5
13798 echo "$as_me:13798: \$? = $ac_status" >&5
13799 if (exit $ac_status) && test -s "$ac_outfile"; then
13800 # The compiler can only warn and ignore the option if not recognized
13801 # So say no if there are warnings other than the usual output.
13802 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13803 $SED '/^$/d' conftest.err >conftest.er2
13804 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13805 lt_prog_compiler_pic_works_F77=yes
13808 $rm conftest*
13811 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13812 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13814 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13815 case $lt_prog_compiler_pic_F77 in
13816 "" | " "*) ;;
13817 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13818 esac
13819 else
13820 lt_prog_compiler_pic_F77=
13821 lt_prog_compiler_can_build_shared_F77=no
13825 case $host_os in
13826 # For platforms which do not support PIC, -DPIC is meaningless:
13827 *djgpp*)
13828 lt_prog_compiler_pic_F77=
13831 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13833 esac
13835 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13836 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13837 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 else
13840 lt_cv_prog_compiler_c_o_F77=no
13841 $rm -r conftest 2>/dev/null
13842 mkdir conftest
13843 cd conftest
13844 mkdir out
13845 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13847 lt_compiler_flag="-o out/conftest2.$ac_objext"
13848 # Insert the option either (1) after the last *FLAGS variable, or
13849 # (2) before a word containing "conftest.", or (3) at the end.
13850 # Note that $ac_compile itself does not contain backslashes and begins
13851 # with a dollar sign (not a hyphen), so the echo should work correctly.
13852 lt_compile=`echo "$ac_compile" | $SED \
13853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13855 -e 's:$: $lt_compiler_flag:'`
13856 (eval echo "\"\$as_me:13856: $lt_compile\"" >&5)
13857 (eval "$lt_compile" 2>out/conftest.err)
13858 ac_status=$?
13859 cat out/conftest.err >&5
13860 echo "$as_me:13860: \$? = $ac_status" >&5
13861 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13862 then
13863 # The compiler can only warn and ignore the option if not recognized
13864 # So say no if there are warnings
13865 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13866 $SED '/^$/d' out/conftest.err >out/conftest.er2
13867 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13868 lt_cv_prog_compiler_c_o_F77=yes
13871 chmod u+w . 2>&5
13872 $rm conftest*
13873 # SGI C++ compiler will create directory out/ii_files/ for
13874 # template instantiation
13875 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13876 $rm out/* && rmdir out
13877 cd ..
13878 rmdir conftest
13879 $rm conftest*
13882 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13883 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13886 hard_links="nottested"
13887 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13888 # do not overwrite the value of need_locks provided by the user
13889 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13890 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13891 hard_links=yes
13892 $rm conftest*
13893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13894 touch conftest.a
13895 ln conftest.a conftest.b 2>&5 || hard_links=no
13896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13897 echo "$as_me:$LINENO: result: $hard_links" >&5
13898 echo "${ECHO_T}$hard_links" >&6
13899 if test "$hard_links" = no; then
13900 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13901 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13902 need_locks=warn
13904 else
13905 need_locks=no
13908 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13909 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13911 runpath_var=
13912 allow_undefined_flag_F77=
13913 enable_shared_with_static_runtimes_F77=no
13914 archive_cmds_F77=
13915 archive_expsym_cmds_F77=
13916 old_archive_From_new_cmds_F77=
13917 old_archive_from_expsyms_cmds_F77=
13918 export_dynamic_flag_spec_F77=
13919 whole_archive_flag_spec_F77=
13920 thread_safe_flag_spec_F77=
13921 hardcode_libdir_flag_spec_F77=
13922 hardcode_libdir_flag_spec_ld_F77=
13923 hardcode_libdir_separator_F77=
13924 hardcode_direct_F77=no
13925 hardcode_minus_L_F77=no
13926 hardcode_shlibpath_var_F77=unsupported
13927 link_all_deplibs_F77=unknown
13928 hardcode_automatic_F77=no
13929 module_cmds_F77=
13930 module_expsym_cmds_F77=
13931 always_export_symbols_F77=no
13932 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13933 # include_expsyms should be a list of space-separated symbols to be *always*
13934 # included in the symbol list
13935 include_expsyms_F77=
13936 # exclude_expsyms can be an extended regexp of symbols to exclude
13937 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13938 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13939 # as well as any symbol that contains `d'.
13940 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13941 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13942 # platforms (ab)use it in PIC code, but their linkers get confused if
13943 # the symbol is explicitly referenced. Since portable code cannot
13944 # rely on this symbol name, it's probably fine to never include it in
13945 # preloaded symbol tables.
13946 extract_expsyms_cmds=
13947 # Just being paranoid about ensuring that cc_basename is set.
13948 for cc_temp in $compiler""; do
13949 case $cc_temp in
13950 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13951 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13952 \-*) ;;
13953 *) break;;
13954 esac
13955 done
13956 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13958 case $host_os in
13959 cygwin* | mingw* | pw32*)
13960 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13961 # When not using gcc, we currently assume that we are using
13962 # Microsoft Visual C++.
13963 if test "$GCC" != yes; then
13964 with_gnu_ld=no
13967 openbsd*)
13968 with_gnu_ld=no
13970 esac
13972 ld_shlibs_F77=yes
13973 if test "$with_gnu_ld" = yes; then
13974 # If archive_cmds runs LD, not CC, wlarc should be empty
13975 wlarc='${wl}'
13977 # Set some defaults for GNU ld with shared library support. These
13978 # are reset later if shared libraries are not supported. Putting them
13979 # here allows them to be overridden if necessary.
13980 runpath_var=LD_RUN_PATH
13981 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13982 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13983 # ancient GNU ld didn't support --whole-archive et. al.
13984 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13985 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13986 else
13987 whole_archive_flag_spec_F77=
13989 supports_anon_versioning=no
13990 case `$LD -v 2>/dev/null` in
13991 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13992 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13993 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13994 *\ 2.11.*) ;; # other 2.11 versions
13995 *) supports_anon_versioning=yes ;;
13996 esac
13998 # See if GNU ld supports shared libraries.
13999 case $host_os in
14000 aix3* | aix4* | aix5*)
14001 # On AIX/PPC, the GNU linker is very broken
14002 if test "$host_cpu" != ia64; then
14003 ld_shlibs_F77=no
14004 cat <<EOF 1>&2
14006 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14007 *** to be unable to reliably create shared libraries on AIX.
14008 *** Therefore, libtool is disabling shared libraries support. If you
14009 *** really care for shared libraries, you may want to modify your PATH
14010 *** so that a non-GNU linker is found, and then restart.
14016 amigaos*)
14017 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)'
14018 hardcode_libdir_flag_spec_F77='-L$libdir'
14019 hardcode_minus_L_F77=yes
14021 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14022 # that the semantics of dynamic libraries on AmigaOS, at least up
14023 # to version 4, is to share data among multiple programs linked
14024 # with the same dynamic library. Since this doesn't match the
14025 # behavior of shared libraries on other platforms, we can't use
14026 # them.
14027 ld_shlibs_F77=no
14030 beos*)
14031 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14032 allow_undefined_flag_F77=unsupported
14033 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14034 # support --undefined. This deserves some investigation. FIXME
14035 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14036 else
14037 ld_shlibs_F77=no
14041 cygwin* | mingw* | pw32*)
14042 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14043 # as there is no search path for DLLs.
14044 hardcode_libdir_flag_spec_F77='-L$libdir'
14045 allow_undefined_flag_F77=unsupported
14046 always_export_symbols_F77=no
14047 enable_shared_with_static_runtimes_F77=yes
14048 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14050 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14051 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14052 # If the export-symbols file already is a .def file (1st line
14053 # is EXPORTS), use it as is; otherwise, prepend...
14054 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14055 cp $export_symbols $output_objdir/$soname.def;
14056 else
14057 echo EXPORTS > $output_objdir/$soname.def;
14058 cat $export_symbols >> $output_objdir/$soname.def;
14060 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14061 else
14062 ld_shlibs_F77=no
14066 linux*)
14067 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14068 tmp_addflag=
14069 case $cc_basename,$host_cpu in
14070 pgcc*) # Portland Group C compiler
14071 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'
14072 tmp_addflag=' $pic_flag'
14074 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14075 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'
14076 tmp_addflag=' $pic_flag -Mnomain' ;;
14077 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14078 tmp_addflag=' -i_dynamic' ;;
14079 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14080 tmp_addflag=' -i_dynamic -nofor_main' ;;
14081 ifc* | ifort*) # Intel Fortran compiler
14082 tmp_addflag=' -nofor_main' ;;
14083 esac
14084 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14086 if test $supports_anon_versioning = yes; then
14087 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14088 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14089 $echo "local: *; };" >> $output_objdir/$libname.ver~
14090 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14092 else
14093 ld_shlibs_F77=no
14097 netbsd*)
14098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14099 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14100 wlarc=
14101 else
14102 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14103 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14107 solaris* | sysv5*)
14108 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14109 ld_shlibs_F77=no
14110 cat <<EOF 1>&2
14112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14113 *** create shared libraries on Solaris systems. Therefore, libtool
14114 *** is disabling shared libraries support. We urge you to upgrade GNU
14115 *** binutils to release 2.9.1 or newer. Another option is to modify
14116 *** your PATH or compiler configuration so that the native linker is
14117 *** used, and then restart.
14120 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14121 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14122 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14123 else
14124 ld_shlibs_F77=no
14128 sunos4*)
14129 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14130 wlarc=
14131 hardcode_direct_F77=yes
14132 hardcode_shlibpath_var_F77=no
14136 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14137 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14138 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14139 else
14140 ld_shlibs_F77=no
14143 esac
14145 if test "$ld_shlibs_F77" = no; then
14146 runpath_var=
14147 hardcode_libdir_flag_spec_F77=
14148 export_dynamic_flag_spec_F77=
14149 whole_archive_flag_spec_F77=
14151 else
14152 # PORTME fill in a description of your system's linker (not GNU ld)
14153 case $host_os in
14154 aix3*)
14155 allow_undefined_flag_F77=unsupported
14156 always_export_symbols_F77=yes
14157 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'
14158 # Note: this linker hardcodes the directories in LIBPATH if there
14159 # are no directories specified by -L.
14160 hardcode_minus_L_F77=yes
14161 if test "$GCC" = yes && test -z "$link_static_flag"; then
14162 # Neither direct hardcoding nor static linking is supported with a
14163 # broken collect2.
14164 hardcode_direct_F77=unsupported
14168 aix4* | aix5*)
14169 if test "$host_cpu" = ia64; then
14170 # On IA64, the linker does run time linking by default, so we don't
14171 # have to do anything special.
14172 aix_use_runtimelinking=no
14173 exp_sym_flag='-Bexport'
14174 no_entry_flag=""
14175 else
14176 # If we're using GNU nm, then we don't want the "-C" option.
14177 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14178 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14179 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'
14180 else
14181 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'
14183 aix_use_runtimelinking=no
14185 # Test if we are trying to use run time linking or normal
14186 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14187 # need to do runtime linking.
14188 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14189 for ld_flag in $LDFLAGS; do
14190 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14191 aix_use_runtimelinking=yes
14192 break
14194 done
14195 esac
14197 exp_sym_flag='-bexport'
14198 no_entry_flag='-bnoentry'
14201 # When large executables or shared objects are built, AIX ld can
14202 # have problems creating the table of contents. If linking a library
14203 # or program results in "error TOC overflow" add -mminimal-toc to
14204 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14205 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14207 archive_cmds_F77=''
14208 hardcode_direct_F77=yes
14209 hardcode_libdir_separator_F77=':'
14210 link_all_deplibs_F77=yes
14212 if test "$GCC" = yes; then
14213 case $host_os in aix4.[012]|aix4.[012].*)
14214 # We only want to do this on AIX 4.2 and lower, the check
14215 # below for broken collect2 doesn't work under 4.3+
14216 collect2name=`${CC} -print-prog-name=collect2`
14217 if test -f "$collect2name" && \
14218 strings "$collect2name" | grep resolve_lib_name >/dev/null
14219 then
14220 # We have reworked collect2
14221 hardcode_direct_F77=yes
14222 else
14223 # We have old collect2
14224 hardcode_direct_F77=unsupported
14225 # It fails to find uninstalled libraries when the uninstalled
14226 # path is not listed in the libpath. Setting hardcode_minus_L
14227 # to unsupported forces relinking
14228 hardcode_minus_L_F77=yes
14229 hardcode_libdir_flag_spec_F77='-L$libdir'
14230 hardcode_libdir_separator_F77=
14232 esac
14233 shared_flag='-shared'
14234 if test "$aix_use_runtimelinking" = yes; then
14235 shared_flag="$shared_flag "'${wl}-G'
14237 else
14238 # not using gcc
14239 if test "$host_cpu" = ia64; then
14240 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14241 # chokes on -Wl,-G. The following line is correct:
14242 shared_flag='-G'
14243 else
14244 if test "$aix_use_runtimelinking" = yes; then
14245 shared_flag='${wl}-G'
14246 else
14247 shared_flag='${wl}-bM:SRE'
14252 # It seems that -bexpall does not export symbols beginning with
14253 # underscore (_), so it is better to generate a list of symbols to export.
14254 always_export_symbols_F77=yes
14255 if test "$aix_use_runtimelinking" = yes; then
14256 # Warning - without using the other runtime loading flags (-brtl),
14257 # -berok will link without error, but may produce a broken library.
14258 allow_undefined_flag_F77='-berok'
14259 # Determine the default libpath from the value encoded in an empty executable.
14260 cat >conftest.$ac_ext <<_ACEOF
14261 program main
14264 _ACEOF
14265 rm -f conftest.$ac_objext conftest$ac_exeext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14267 (eval $ac_link) 2>conftest.er1
14268 ac_status=$?
14269 grep -v '^ *+' conftest.er1 >conftest.err
14270 rm -f conftest.er1
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest$ac_exeext'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14287 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14289 # Check for a 64-bit object if we didn't find anything.
14290 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; }
14291 }'`; fi
14292 else
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14297 rm -f conftest.err conftest.$ac_objext \
14298 conftest$ac_exeext conftest.$ac_ext
14299 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14301 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14302 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14303 else
14304 if test "$host_cpu" = ia64; then
14305 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14306 allow_undefined_flag_F77="-z nodefs"
14307 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14308 else
14309 # Determine the default libpath from the value encoded in an empty executable.
14310 cat >conftest.$ac_ext <<_ACEOF
14311 program main
14314 _ACEOF
14315 rm -f conftest.$ac_objext conftest$ac_exeext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14317 (eval $ac_link) 2>conftest.er1
14318 ac_status=$?
14319 grep -v '^ *+' conftest.er1 >conftest.err
14320 rm -f conftest.er1
14321 cat conftest.err >&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); } &&
14324 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; } &&
14330 { ac_try='test -s conftest$ac_exeext'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14339 # Check for a 64-bit object if we didn't find anything.
14340 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; }
14341 }'`; fi
14342 else
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14347 rm -f conftest.err conftest.$ac_objext \
14348 conftest$ac_exeext conftest.$ac_ext
14349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14351 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14352 # Warning - without using the other run time loading flags,
14353 # -berok will link without error, but may produce a broken library.
14354 no_undefined_flag_F77=' ${wl}-bernotok'
14355 allow_undefined_flag_F77=' ${wl}-berok'
14356 # -bexpall does not export symbols beginning with underscore (_)
14357 always_export_symbols_F77=yes
14358 # Exported symbols can be pulled into shared objects from archives
14359 whole_archive_flag_spec_F77=' '
14360 archive_cmds_need_lc_F77=yes
14361 # This is similar to how AIX traditionally builds its shared libraries.
14362 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14367 amigaos*)
14368 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)'
14369 hardcode_libdir_flag_spec_F77='-L$libdir'
14370 hardcode_minus_L_F77=yes
14371 # see comment about different semantics on the GNU ld section
14372 ld_shlibs_F77=no
14375 bsdi[45]*)
14376 export_dynamic_flag_spec_F77=-rdynamic
14379 cygwin* | mingw* | pw32*)
14380 # When not using gcc, we currently assume that we are using
14381 # Microsoft Visual C++.
14382 # hardcode_libdir_flag_spec is actually meaningless, as there is
14383 # no search path for DLLs.
14384 hardcode_libdir_flag_spec_F77=' '
14385 allow_undefined_flag_F77=unsupported
14386 # Tell ltmain to make .lib files, not .a files.
14387 libext=lib
14388 # Tell ltmain to make .dll files, not .so files.
14389 shrext_cmds=".dll"
14390 # FIXME: Setting linknames here is a bad hack.
14391 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14392 # The linker will automatically build a .lib file if we build a DLL.
14393 old_archive_From_new_cmds_F77='true'
14394 # FIXME: Should let the user specify the lib program.
14395 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14396 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14397 enable_shared_with_static_runtimes_F77=yes
14400 darwin* | rhapsody*)
14401 case $host_os in
14402 rhapsody* | darwin1.[012])
14403 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14405 *) # Darwin 1.3 on
14406 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14407 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14408 else
14409 case ${MACOSX_DEPLOYMENT_TARGET} in
14410 10.[012])
14411 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14413 10.*)
14414 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14416 esac
14419 esac
14420 archive_cmds_need_lc_F77=no
14421 hardcode_direct_F77=no
14422 hardcode_automatic_F77=yes
14423 hardcode_shlibpath_var_F77=unsupported
14424 whole_archive_flag_spec_F77=''
14425 link_all_deplibs_F77=yes
14426 if test "$GCC" = yes ; then
14427 output_verbose_link_cmd='echo'
14428 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14429 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14430 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14431 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}'
14432 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}'
14433 else
14434 case $cc_basename in
14435 xlc*)
14436 output_verbose_link_cmd='echo'
14437 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14438 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14439 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14440 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}'
14441 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}'
14444 ld_shlibs_F77=no
14446 esac
14450 dgux*)
14451 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14452 hardcode_libdir_flag_spec_F77='-L$libdir'
14453 hardcode_shlibpath_var_F77=no
14456 freebsd1*)
14457 ld_shlibs_F77=no
14460 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14461 # support. Future versions do this automatically, but an explicit c++rt0.o
14462 # does not break anything, and helps significantly (at the cost of a little
14463 # extra space).
14464 freebsd2.2*)
14465 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14466 hardcode_libdir_flag_spec_F77='-R$libdir'
14467 hardcode_direct_F77=yes
14468 hardcode_shlibpath_var_F77=no
14471 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14472 freebsd2*)
14473 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14474 hardcode_direct_F77=yes
14475 hardcode_minus_L_F77=yes
14476 hardcode_shlibpath_var_F77=no
14479 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14480 freebsd* | kfreebsd*-gnu | dragonfly*)
14481 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14482 hardcode_libdir_flag_spec_F77='-R$libdir'
14483 hardcode_direct_F77=yes
14484 hardcode_shlibpath_var_F77=no
14487 hpux9*)
14488 if test "$GCC" = yes; then
14489 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'
14490 else
14491 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'
14493 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14494 hardcode_libdir_separator_F77=:
14495 hardcode_direct_F77=yes
14497 # hardcode_minus_L: Not really in the search PATH,
14498 # but as the default location of the library.
14499 hardcode_minus_L_F77=yes
14500 export_dynamic_flag_spec_F77='${wl}-E'
14503 hpux10* | hpux11*)
14504 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14505 case $host_cpu in
14506 hppa*64*|ia64*)
14507 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14510 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14512 esac
14513 else
14514 case $host_cpu in
14515 hppa*64*|ia64*)
14516 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14519 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14521 esac
14523 if test "$with_gnu_ld" = no; then
14524 case $host_cpu in
14525 hppa*64*)
14526 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14527 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14528 hardcode_libdir_separator_F77=:
14529 hardcode_direct_F77=no
14530 hardcode_shlibpath_var_F77=no
14532 ia64*)
14533 hardcode_libdir_flag_spec_F77='-L$libdir'
14534 hardcode_direct_F77=no
14535 hardcode_shlibpath_var_F77=no
14537 # hardcode_minus_L: Not really in the search PATH,
14538 # but as the default location of the library.
14539 hardcode_minus_L_F77=yes
14542 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14543 hardcode_libdir_separator_F77=:
14544 hardcode_direct_F77=yes
14545 export_dynamic_flag_spec_F77='${wl}-E'
14547 # hardcode_minus_L: Not really in the search PATH,
14548 # but as the default location of the library.
14549 hardcode_minus_L_F77=yes
14551 esac
14555 irix5* | irix6* | nonstopux*)
14556 if test "$GCC" = yes; then
14557 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'
14558 else
14559 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'
14560 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14562 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14563 hardcode_libdir_separator_F77=:
14564 link_all_deplibs_F77=yes
14567 netbsd*)
14568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14569 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14570 else
14571 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14573 hardcode_libdir_flag_spec_F77='-R$libdir'
14574 hardcode_direct_F77=yes
14575 hardcode_shlibpath_var_F77=no
14578 newsos6)
14579 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14580 hardcode_direct_F77=yes
14581 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14582 hardcode_libdir_separator_F77=:
14583 hardcode_shlibpath_var_F77=no
14586 openbsd*)
14587 hardcode_direct_F77=yes
14588 hardcode_shlibpath_var_F77=no
14589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14590 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14591 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14592 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14593 export_dynamic_flag_spec_F77='${wl}-E'
14594 else
14595 case $host_os in
14596 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14597 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14598 hardcode_libdir_flag_spec_F77='-R$libdir'
14601 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14602 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14604 esac
14608 os2*)
14609 hardcode_libdir_flag_spec_F77='-L$libdir'
14610 hardcode_minus_L_F77=yes
14611 allow_undefined_flag_F77=unsupported
14612 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'
14613 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14616 osf3*)
14617 if test "$GCC" = yes; then
14618 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14619 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'
14620 else
14621 allow_undefined_flag_F77=' -expect_unresolved \*'
14622 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'
14624 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14625 hardcode_libdir_separator_F77=:
14628 osf4* | osf5*) # as osf3* with the addition of -msym flag
14629 if test "$GCC" = yes; then
14630 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14631 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'
14632 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14633 else
14634 allow_undefined_flag_F77=' -expect_unresolved \*'
14635 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'
14636 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~
14637 $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'
14639 # Both c and cxx compiler support -rpath directly
14640 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14642 hardcode_libdir_separator_F77=:
14645 sco3.2v5*)
14646 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14647 hardcode_shlibpath_var_F77=no
14648 export_dynamic_flag_spec_F77='${wl}-Bexport'
14649 runpath_var=LD_RUN_PATH
14650 hardcode_runpath_var=yes
14653 solaris*)
14654 no_undefined_flag_F77=' -z text'
14655 if test "$GCC" = yes; then
14656 wlarc='${wl}'
14657 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14658 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14659 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14660 else
14661 wlarc=''
14662 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14663 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14664 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14666 hardcode_libdir_flag_spec_F77='-R$libdir'
14667 hardcode_shlibpath_var_F77=no
14668 case $host_os in
14669 solaris2.[0-5] | solaris2.[0-5].*) ;;
14671 # The compiler driver will combine linker options so we
14672 # cannot just pass the convience library names through
14673 # without $wl, iff we do not link with $LD.
14674 # Luckily, gcc supports the same syntax we need for Sun Studio.
14675 # Supported since Solaris 2.6 (maybe 2.5.1?)
14676 case $wlarc in
14678 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14680 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' ;;
14681 esac ;;
14682 esac
14683 link_all_deplibs_F77=yes
14686 sunos4*)
14687 if test "x$host_vendor" = xsequent; then
14688 # Use $CC to link under sequent, because it throws in some extra .o
14689 # files that make .init and .fini sections work.
14690 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14691 else
14692 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14694 hardcode_libdir_flag_spec_F77='-L$libdir'
14695 hardcode_direct_F77=yes
14696 hardcode_minus_L_F77=yes
14697 hardcode_shlibpath_var_F77=no
14700 sysv4)
14701 case $host_vendor in
14702 sni)
14703 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14704 hardcode_direct_F77=yes # is this really true???
14706 siemens)
14707 ## LD is ld it makes a PLAMLIB
14708 ## CC just makes a GrossModule.
14709 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14710 reload_cmds_F77='$CC -r -o $output$reload_objs'
14711 hardcode_direct_F77=no
14713 motorola)
14714 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14715 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14717 esac
14718 runpath_var='LD_RUN_PATH'
14719 hardcode_shlibpath_var_F77=no
14722 sysv4.3*)
14723 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14724 hardcode_shlibpath_var_F77=no
14725 export_dynamic_flag_spec_F77='-Bexport'
14728 sysv4*MP*)
14729 if test -d /usr/nec; then
14730 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14731 hardcode_shlibpath_var_F77=no
14732 runpath_var=LD_RUN_PATH
14733 hardcode_runpath_var=yes
14734 ld_shlibs_F77=yes
14738 sysv4.2uw2*)
14739 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14740 hardcode_direct_F77=yes
14741 hardcode_minus_L_F77=no
14742 hardcode_shlibpath_var_F77=no
14743 hardcode_runpath_var=yes
14744 runpath_var=LD_RUN_PATH
14747 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14748 no_undefined_flag_F77='${wl}-z ${wl}text'
14749 if test "$GCC" = yes; then
14750 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14751 else
14752 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14754 runpath_var='LD_RUN_PATH'
14755 hardcode_shlibpath_var_F77=no
14758 sysv5*)
14759 no_undefined_flag_F77=' -z text'
14760 # $CC -shared without GNU ld will not create a library from C++
14761 # object files and a static libstdc++, better avoid it by now
14762 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14763 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14764 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14765 hardcode_libdir_flag_spec_F77=
14766 hardcode_shlibpath_var_F77=no
14767 runpath_var='LD_RUN_PATH'
14770 uts4*)
14771 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14772 hardcode_libdir_flag_spec_F77='-L$libdir'
14773 hardcode_shlibpath_var_F77=no
14777 ld_shlibs_F77=no
14779 esac
14782 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14783 echo "${ECHO_T}$ld_shlibs_F77" >&6
14784 test "$ld_shlibs_F77" = no && can_build_shared=no
14786 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14787 if test "$GCC" = yes; then
14788 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14792 # Do we need to explicitly link libc?
14794 case "x$archive_cmds_need_lc_F77" in
14795 x|xyes)
14796 # Assume -lc should be added
14797 archive_cmds_need_lc_F77=yes
14799 if test "$enable_shared" = yes && test "$GCC" = yes; then
14800 case $archive_cmds_F77 in
14801 *'~'*)
14802 # FIXME: we may have to deal with multi-command sequences.
14804 '$CC '*)
14805 # Test whether the compiler implicitly links with -lc since on some
14806 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14807 # to ld, don't add -lc before -lgcc.
14808 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14809 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14810 $rm conftest*
14811 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14814 (eval $ac_compile) 2>&5
14815 ac_status=$?
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } 2>conftest.err; then
14818 soname=conftest
14819 lib=conftest
14820 libobjs=conftest.$ac_objext
14821 deplibs=
14822 wl=$lt_prog_compiler_wl_F77
14823 compiler_flags=-v
14824 linker_flags=-v
14825 verstring=
14826 output_objdir=.
14827 libname=conftest
14828 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14829 allow_undefined_flag_F77=
14830 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14831 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }
14835 then
14836 archive_cmds_need_lc_F77=no
14837 else
14838 archive_cmds_need_lc_F77=yes
14840 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14841 else
14842 cat conftest.err 1>&5
14844 $rm conftest*
14845 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14846 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14848 esac
14851 esac
14853 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14854 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14855 library_names_spec=
14856 libname_spec='lib$name'
14857 soname_spec=
14858 shrext_cmds=".so"
14859 postinstall_cmds=
14860 postuninstall_cmds=
14861 finish_cmds=
14862 finish_eval=
14863 shlibpath_var=
14864 shlibpath_overrides_runpath=unknown
14865 version_type=none
14866 dynamic_linker="$host_os ld.so"
14867 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14868 if test "$GCC" = yes; then
14869 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14870 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14871 # if the path contains ";" then we assume it to be the separator
14872 # otherwise default to the standard path separator (i.e. ":") - it is
14873 # assumed that no part of a normal pathname contains ";" but that should
14874 # okay in the real world where ";" in dirpaths is itself problematic.
14875 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14876 else
14877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14879 else
14880 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14882 need_lib_prefix=unknown
14883 hardcode_into_libs=no
14885 # when you set need_version to no, make sure it does not cause -set_version
14886 # flags to be left without arguments
14887 need_version=unknown
14889 case $host_os in
14890 aix3*)
14891 version_type=linux
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14893 shlibpath_var=LIBPATH
14895 # AIX 3 has no versioning support, so we append a major version to the name.
14896 soname_spec='${libname}${release}${shared_ext}$major'
14899 aix4* | aix5*)
14900 version_type=linux
14901 need_lib_prefix=no
14902 need_version=no
14903 hardcode_into_libs=yes
14904 if test "$host_cpu" = ia64; then
14905 # AIX 5 supports IA64
14906 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14907 shlibpath_var=LD_LIBRARY_PATH
14908 else
14909 # With GCC up to 2.95.x, collect2 would create an import file
14910 # for dependence libraries. The import file would start with
14911 # the line `#! .'. This would cause the generated library to
14912 # depend on `.', always an invalid library. This was fixed in
14913 # development snapshots of GCC prior to 3.0.
14914 case $host_os in
14915 aix4 | aix4.[01] | aix4.[01].*)
14916 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14917 echo ' yes '
14918 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14920 else
14921 can_build_shared=no
14924 esac
14925 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14926 # soname into executable. Probably we can add versioning support to
14927 # collect2, so additional links can be useful in future.
14928 if test "$aix_use_runtimelinking" = yes; then
14929 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14930 # instead of lib<name>.a to let people know that these are not
14931 # typical AIX shared libraries.
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 else
14934 # We preserve .a as extension for shared libraries through AIX4.2
14935 # and later when we are not doing run time linking.
14936 library_names_spec='${libname}${release}.a $libname.a'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14939 shlibpath_var=LIBPATH
14943 amigaos*)
14944 library_names_spec='$libname.ixlibrary $libname.a'
14945 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14946 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'
14949 beos*)
14950 library_names_spec='${libname}${shared_ext}'
14951 dynamic_linker="$host_os ld.so"
14952 shlibpath_var=LIBRARY_PATH
14955 bsdi[45]*)
14956 version_type=linux
14957 need_version=no
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14961 shlibpath_var=LD_LIBRARY_PATH
14962 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14963 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14964 # the default ld.so.conf also contains /usr/contrib/lib and
14965 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14966 # libtool to hard-code these into programs
14969 cygwin* | mingw* | pw32*)
14970 version_type=windows
14971 shrext_cmds=".dll"
14972 need_version=no
14973 need_lib_prefix=no
14975 case $GCC,$host_os in
14976 yes,cygwin* | yes,mingw* | yes,pw32*)
14977 library_names_spec='$libname.dll.a'
14978 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14979 postinstall_cmds='base_file=`basename \${file}`~
14980 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14981 dldir=$destdir/`dirname \$dlpath`~
14982 test -d \$dldir || mkdir -p \$dldir~
14983 $install_prog $dir/$dlname \$dldir/$dlname~
14984 chmod a+x \$dldir/$dlname'
14985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14986 dlpath=$dir/\$dldll~
14987 $rm \$dlpath'
14988 shlibpath_overrides_runpath=yes
14990 case $host_os in
14991 cygwin*)
14992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14993 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14994 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14996 mingw*)
14997 # MinGW DLLs use traditional 'lib' prefix
14998 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14999 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15000 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15001 # It is most probably a Windows format PATH printed by
15002 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15003 # path with ; separators, and with drive letters. We can handle the
15004 # drive letters (cygwin fileutils understands them), so leave them,
15005 # especially as we might pass files found there to a mingw objdump,
15006 # which wouldn't understand a cygwinified path. Ahh.
15007 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15008 else
15009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15012 pw32*)
15013 # pw32 DLLs use 'pw' prefix rather than 'lib'
15014 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15016 esac
15020 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15022 esac
15023 dynamic_linker='Win32 ld.exe'
15024 # FIXME: first we should search . and the directory the executable is in
15025 shlibpath_var=PATH
15028 darwin* | rhapsody*)
15029 dynamic_linker="$host_os dyld"
15030 version_type=darwin
15031 need_lib_prefix=no
15032 need_version=no
15033 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15034 soname_spec='${libname}${release}${major}$shared_ext'
15035 shlibpath_overrides_runpath=yes
15036 shlibpath_var=DYLD_LIBRARY_PATH
15037 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15038 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15039 if test "$GCC" = yes; then
15040 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"`
15041 else
15042 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15044 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15047 dgux*)
15048 version_type=linux
15049 need_lib_prefix=no
15050 need_version=no
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15052 soname_spec='${libname}${release}${shared_ext}$major'
15053 shlibpath_var=LD_LIBRARY_PATH
15056 freebsd1*)
15057 dynamic_linker=no
15060 kfreebsd*-gnu)
15061 version_type=linux
15062 need_lib_prefix=no
15063 need_version=no
15064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15065 soname_spec='${libname}${release}${shared_ext}$major'
15066 shlibpath_var=LD_LIBRARY_PATH
15067 shlibpath_overrides_runpath=no
15068 hardcode_into_libs=yes
15069 dynamic_linker='GNU ld.so'
15072 freebsd* | dragonfly*)
15073 # DragonFly does not have aout. When/if they implement a new
15074 # versioning mechanism, adjust this.
15075 if test -x /usr/bin/objformat; then
15076 objformat=`/usr/bin/objformat`
15077 else
15078 case $host_os in
15079 freebsd[123]*) objformat=aout ;;
15080 *) objformat=elf ;;
15081 esac
15083 version_type=freebsd-$objformat
15084 case $version_type in
15085 freebsd-elf*)
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15087 need_version=no
15088 need_lib_prefix=no
15090 freebsd-*)
15091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15092 need_version=yes
15094 esac
15095 shlibpath_var=LD_LIBRARY_PATH
15096 case $host_os in
15097 freebsd2*)
15098 shlibpath_overrides_runpath=yes
15100 freebsd3.[01]* | freebsdelf3.[01]*)
15101 shlibpath_overrides_runpath=yes
15102 hardcode_into_libs=yes
15104 *) # from 3.2 on
15105 shlibpath_overrides_runpath=no
15106 hardcode_into_libs=yes
15108 esac
15111 gnu*)
15112 version_type=linux
15113 need_lib_prefix=no
15114 need_version=no
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 shlibpath_var=LD_LIBRARY_PATH
15118 hardcode_into_libs=yes
15121 hpux9* | hpux10* | hpux11*)
15122 # Give a soname corresponding to the major version so that dld.sl refuses to
15123 # link against other versions.
15124 version_type=sunos
15125 need_lib_prefix=no
15126 need_version=no
15127 case $host_cpu in
15128 ia64*)
15129 shrext_cmds='.so'
15130 hardcode_into_libs=yes
15131 dynamic_linker="$host_os dld.so"
15132 shlibpath_var=LD_LIBRARY_PATH
15133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135 soname_spec='${libname}${release}${shared_ext}$major'
15136 if test "X$HPUX_IA64_MODE" = X32; then
15137 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15138 else
15139 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15143 hppa*64*)
15144 shrext_cmds='.sl'
15145 hardcode_into_libs=yes
15146 dynamic_linker="$host_os dld.sl"
15147 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15155 shrext_cmds='.sl'
15156 dynamic_linker="$host_os dld.sl"
15157 shlibpath_var=SHLIB_PATH
15158 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15160 soname_spec='${libname}${release}${shared_ext}$major'
15162 esac
15163 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15164 postinstall_cmds='chmod 555 $lib'
15167 irix5* | irix6* | nonstopux*)
15168 case $host_os in
15169 nonstopux*) version_type=nonstopux ;;
15171 if test "$lt_cv_prog_gnu_ld" = yes; then
15172 version_type=linux
15173 else
15174 version_type=irix
15175 fi ;;
15176 esac
15177 need_lib_prefix=no
15178 need_version=no
15179 soname_spec='${libname}${release}${shared_ext}$major'
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15181 case $host_os in
15182 irix5* | nonstopux*)
15183 libsuff= shlibsuff=
15186 case $LD in # libtool.m4 will add one of these switches to LD
15187 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15188 libsuff= shlibsuff= libmagic=32-bit;;
15189 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15190 libsuff=32 shlibsuff=N32 libmagic=N32;;
15191 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15192 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15193 *) libsuff= shlibsuff= libmagic=never-match;;
15194 esac
15196 esac
15197 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15198 shlibpath_overrides_runpath=no
15199 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15200 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15201 hardcode_into_libs=yes
15204 # No shared lib support for Linux oldld, aout, or coff.
15205 linux*oldld* | linux*aout* | linux*coff*)
15206 dynamic_linker=no
15209 # This must be Linux ELF.
15210 linux*)
15211 version_type=linux
15212 need_lib_prefix=no
15213 need_version=no
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15217 shlibpath_var=LD_LIBRARY_PATH
15218 shlibpath_overrides_runpath=no
15219 # This implies no fast_install, which is unacceptable.
15220 # Some rework will be needed to allow for fast_install
15221 # before this can be enabled.
15222 hardcode_into_libs=yes
15224 # Append ld.so.conf contents to the search path
15225 if test -f /etc/ld.so.conf; then
15226 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' ' '`
15227 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15230 # We used to test for /lib/ld.so.1 and disable shared libraries on
15231 # powerpc, because MkLinux only supported shared libraries with the
15232 # GNU dynamic linker. Since this was broken with cross compilers,
15233 # most powerpc-linux boxes support dynamic linking these days and
15234 # people can always --disable-shared, the test was removed, and we
15235 # assume the GNU/Linux dynamic linker is in use.
15236 dynamic_linker='GNU/Linux ld.so'
15239 knetbsd*-gnu)
15240 version_type=linux
15241 need_lib_prefix=no
15242 need_version=no
15243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15244 soname_spec='${libname}${release}${shared_ext}$major'
15245 shlibpath_var=LD_LIBRARY_PATH
15246 shlibpath_overrides_runpath=no
15247 hardcode_into_libs=yes
15248 dynamic_linker='GNU ld.so'
15251 netbsd*)
15252 version_type=sunos
15253 need_lib_prefix=no
15254 need_version=no
15255 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15258 dynamic_linker='NetBSD (a.out) ld.so'
15259 else
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15261 soname_spec='${libname}${release}${shared_ext}$major'
15262 dynamic_linker='NetBSD ld.elf_so'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 shlibpath_overrides_runpath=yes
15266 hardcode_into_libs=yes
15269 newsos6)
15270 version_type=linux
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272 shlibpath_var=LD_LIBRARY_PATH
15273 shlibpath_overrides_runpath=yes
15276 nto-qnx*)
15277 version_type=linux
15278 need_lib_prefix=no
15279 need_version=no
15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15281 soname_spec='${libname}${release}${shared_ext}$major'
15282 shlibpath_var=LD_LIBRARY_PATH
15283 shlibpath_overrides_runpath=yes
15286 openbsd*)
15287 version_type=sunos
15288 need_lib_prefix=no
15289 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15290 case $host_os in
15291 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15292 *) need_version=no ;;
15293 esac
15294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15298 case $host_os in
15299 openbsd2.[89] | openbsd2.[89].*)
15300 shlibpath_overrides_runpath=no
15303 shlibpath_overrides_runpath=yes
15305 esac
15306 else
15307 shlibpath_overrides_runpath=yes
15311 os2*)
15312 libname_spec='$name'
15313 shrext_cmds=".dll"
15314 need_lib_prefix=no
15315 library_names_spec='$libname${shared_ext} $libname.a'
15316 dynamic_linker='OS/2 ld.exe'
15317 shlibpath_var=LIBPATH
15320 osf3* | osf4* | osf5*)
15321 version_type=osf
15322 need_lib_prefix=no
15323 need_version=no
15324 soname_spec='${libname}${release}${shared_ext}$major'
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326 shlibpath_var=LD_LIBRARY_PATH
15327 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15328 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15331 sco3.2v5*)
15332 version_type=osf
15333 soname_spec='${libname}${release}${shared_ext}$major'
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335 shlibpath_var=LD_LIBRARY_PATH
15338 solaris*)
15339 version_type=linux
15340 need_lib_prefix=no
15341 need_version=no
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15343 soname_spec='${libname}${release}${shared_ext}$major'
15344 shlibpath_var=LD_LIBRARY_PATH
15345 shlibpath_overrides_runpath=yes
15346 hardcode_into_libs=yes
15347 # ldd complains unless libraries are executable
15348 postinstall_cmds='chmod +x $lib'
15351 sunos4*)
15352 version_type=sunos
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15354 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=yes
15357 if test "$with_gnu_ld" = yes; then
15358 need_lib_prefix=no
15360 need_version=yes
15363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15364 version_type=linux
15365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15366 soname_spec='${libname}${release}${shared_ext}$major'
15367 shlibpath_var=LD_LIBRARY_PATH
15368 case $host_vendor in
15369 sni)
15370 shlibpath_overrides_runpath=no
15371 need_lib_prefix=no
15372 export_dynamic_flag_spec='${wl}-Blargedynsym'
15373 runpath_var=LD_RUN_PATH
15375 siemens)
15376 need_lib_prefix=no
15378 motorola)
15379 need_lib_prefix=no
15380 need_version=no
15381 shlibpath_overrides_runpath=no
15382 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15384 esac
15387 sysv4*MP*)
15388 if test -d /usr/nec ;then
15389 version_type=linux
15390 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15391 soname_spec='$libname${shared_ext}.$major'
15392 shlibpath_var=LD_LIBRARY_PATH
15396 uts4*)
15397 version_type=linux
15398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15399 soname_spec='${libname}${release}${shared_ext}$major'
15400 shlibpath_var=LD_LIBRARY_PATH
15404 dynamic_linker=no
15406 esac
15407 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15408 echo "${ECHO_T}$dynamic_linker" >&6
15409 test "$dynamic_linker" = no && can_build_shared=no
15411 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15412 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15413 hardcode_action_F77=
15414 if test -n "$hardcode_libdir_flag_spec_F77" || \
15415 test -n "$runpath_var_F77" || \
15416 test "X$hardcode_automatic_F77" = "Xyes" ; then
15418 # We can hardcode non-existant directories.
15419 if test "$hardcode_direct_F77" != no &&
15420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15421 # have to relink, otherwise we might link with an installed library
15422 # when we should be linking with a yet-to-be-installed one
15423 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15424 test "$hardcode_minus_L_F77" != no; then
15425 # Linking always hardcodes the temporary library directory.
15426 hardcode_action_F77=relink
15427 else
15428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15429 hardcode_action_F77=immediate
15431 else
15432 # We cannot hardcode anything, or else we can only hardcode existing
15433 # directories.
15434 hardcode_action_F77=unsupported
15436 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15437 echo "${ECHO_T}$hardcode_action_F77" >&6
15439 if test "$hardcode_action_F77" = relink; then
15440 # Fast installation is not supported
15441 enable_fast_install=no
15442 elif test "$shlibpath_overrides_runpath" = yes ||
15443 test "$enable_shared" = no; then
15444 # Fast installation is not necessary
15445 enable_fast_install=needless
15448 striplib=
15449 old_striplib=
15450 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15451 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15452 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15453 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15454 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15455 echo "$as_me:$LINENO: result: yes" >&5
15456 echo "${ECHO_T}yes" >&6
15457 else
15458 # FIXME - insert some real tests, host_os isn't really good enough
15459 case $host_os in
15460 darwin*)
15461 if test -n "$STRIP" ; then
15462 striplib="$STRIP -x"
15463 echo "$as_me:$LINENO: result: yes" >&5
15464 echo "${ECHO_T}yes" >&6
15465 else
15466 echo "$as_me:$LINENO: result: no" >&5
15467 echo "${ECHO_T}no" >&6
15471 echo "$as_me:$LINENO: result: no" >&5
15472 echo "${ECHO_T}no" >&6
15474 esac
15479 # The else clause should only fire when bootstrapping the
15480 # libtool distribution, otherwise you forgot to ship ltmain.sh
15481 # with your package, and you will get complaints that there are
15482 # no rules to generate ltmain.sh.
15483 if test -f "$ltmain"; then
15484 # See if we are running on zsh, and set the options which allow our commands through
15485 # without removal of \ escapes.
15486 if test -n "${ZSH_VERSION+set}" ; then
15487 setopt NO_GLOB_SUBST
15489 # Now quote all the things that may contain metacharacters while being
15490 # careful not to overquote the AC_SUBSTed values. We take copies of the
15491 # variables and quote the copies for generation of the libtool script.
15492 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15493 SED SHELL STRIP \
15494 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15495 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15496 deplibs_check_method reload_flag reload_cmds need_locks \
15497 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15498 lt_cv_sys_global_symbol_to_c_name_address \
15499 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15500 old_postinstall_cmds old_postuninstall_cmds \
15501 compiler_F77 \
15502 CC_F77 \
15503 LD_F77 \
15504 lt_prog_compiler_wl_F77 \
15505 lt_prog_compiler_pic_F77 \
15506 lt_prog_compiler_static_F77 \
15507 lt_prog_compiler_no_builtin_flag_F77 \
15508 export_dynamic_flag_spec_F77 \
15509 thread_safe_flag_spec_F77 \
15510 whole_archive_flag_spec_F77 \
15511 enable_shared_with_static_runtimes_F77 \
15512 old_archive_cmds_F77 \
15513 old_archive_from_new_cmds_F77 \
15514 predep_objects_F77 \
15515 postdep_objects_F77 \
15516 predeps_F77 \
15517 postdeps_F77 \
15518 compiler_lib_search_path_F77 \
15519 archive_cmds_F77 \
15520 archive_expsym_cmds_F77 \
15521 postinstall_cmds_F77 \
15522 postuninstall_cmds_F77 \
15523 old_archive_from_expsyms_cmds_F77 \
15524 allow_undefined_flag_F77 \
15525 no_undefined_flag_F77 \
15526 export_symbols_cmds_F77 \
15527 hardcode_libdir_flag_spec_F77 \
15528 hardcode_libdir_flag_spec_ld_F77 \
15529 hardcode_libdir_separator_F77 \
15530 hardcode_automatic_F77 \
15531 module_cmds_F77 \
15532 module_expsym_cmds_F77 \
15533 lt_cv_prog_compiler_c_o_F77 \
15534 exclude_expsyms_F77 \
15535 include_expsyms_F77; do
15537 case $var in
15538 old_archive_cmds_F77 | \
15539 old_archive_from_new_cmds_F77 | \
15540 archive_cmds_F77 | \
15541 archive_expsym_cmds_F77 | \
15542 module_cmds_F77 | \
15543 module_expsym_cmds_F77 | \
15544 old_archive_from_expsyms_cmds_F77 | \
15545 export_symbols_cmds_F77 | \
15546 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15547 postinstall_cmds | postuninstall_cmds | \
15548 old_postinstall_cmds | old_postuninstall_cmds | \
15549 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15550 # Double-quote double-evaled strings.
15551 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15556 esac
15557 done
15559 case $lt_echo in
15560 *'\$0 --fallback-echo"')
15561 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15563 esac
15565 cfgfile="$ofile"
15567 cat <<__EOF__ >> "$cfgfile"
15568 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15570 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15572 # Shell to use when invoking shell scripts.
15573 SHELL=$lt_SHELL
15575 # Whether or not to build shared libraries.
15576 build_libtool_libs=$enable_shared
15578 # Whether or not to build static libraries.
15579 build_old_libs=$enable_static
15581 # Whether or not to add -lc for building shared libraries.
15582 build_libtool_need_lc=$archive_cmds_need_lc_F77
15584 # Whether or not to disallow shared libs when runtime libs are static
15585 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15587 # Whether or not to optimize for fast installation.
15588 fast_install=$enable_fast_install
15590 # The host system.
15591 host_alias=$host_alias
15592 host=$host
15593 host_os=$host_os
15595 # The build system.
15596 build_alias=$build_alias
15597 build=$build
15598 build_os=$build_os
15600 # An echo program that does not interpret backslashes.
15601 echo=$lt_echo
15603 # The archiver.
15604 AR=$lt_AR
15605 AR_FLAGS=$lt_AR_FLAGS
15607 # A C compiler.
15608 LTCC=$lt_LTCC
15610 # A language-specific compiler.
15611 CC=$lt_compiler_F77
15613 # Is the compiler the GNU C compiler?
15614 with_gcc=$GCC_F77
15616 # An ERE matcher.
15617 EGREP=$lt_EGREP
15619 # The linker used to build libraries.
15620 LD=$lt_LD_F77
15622 # Whether we need hard or soft links.
15623 LN_S=$lt_LN_S
15625 # A BSD-compatible nm program.
15626 NM=$lt_NM
15628 # A symbol stripping program
15629 STRIP=$lt_STRIP
15631 # Used to examine libraries when file_magic_cmd begins "file"
15632 MAGIC_CMD=$MAGIC_CMD
15634 # Used on cygwin: DLL creation program.
15635 DLLTOOL="$DLLTOOL"
15637 # Used on cygwin: object dumper.
15638 OBJDUMP="$OBJDUMP"
15640 # Used on cygwin: assembler.
15641 AS="$AS"
15643 # The name of the directory that contains temporary libtool files.
15644 objdir=$objdir
15646 # How to create reloadable object files.
15647 reload_flag=$lt_reload_flag
15648 reload_cmds=$lt_reload_cmds
15650 # How to pass a linker flag through the compiler.
15651 wl=$lt_lt_prog_compiler_wl_F77
15653 # Object file suffix (normally "o").
15654 objext="$ac_objext"
15656 # Old archive suffix (normally "a").
15657 libext="$libext"
15659 # Shared library suffix (normally ".so").
15660 shrext_cmds='$shrext_cmds'
15662 # Executable file suffix (normally "").
15663 exeext="$exeext"
15665 # Additional compiler flags for building library objects.
15666 pic_flag=$lt_lt_prog_compiler_pic_F77
15667 pic_mode=$pic_mode
15669 # What is the maximum length of a command?
15670 max_cmd_len=$lt_cv_sys_max_cmd_len
15672 # Does compiler simultaneously support -c and -o options?
15673 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15675 # Must we lock files when doing compilation?
15676 need_locks=$lt_need_locks
15678 # Do we need the lib prefix for modules?
15679 need_lib_prefix=$need_lib_prefix
15681 # Do we need a version for libraries?
15682 need_version=$need_version
15684 # Whether dlopen is supported.
15685 dlopen_support=$enable_dlopen
15687 # Whether dlopen of programs is supported.
15688 dlopen_self=$enable_dlopen_self
15690 # Whether dlopen of statically linked programs is supported.
15691 dlopen_self_static=$enable_dlopen_self_static
15693 # Compiler flag to prevent dynamic linking.
15694 link_static_flag=$lt_lt_prog_compiler_static_F77
15696 # Compiler flag to turn off builtin functions.
15697 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15699 # Compiler flag to allow reflexive dlopens.
15700 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15702 # Compiler flag to generate shared objects directly from archives.
15703 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15705 # Compiler flag to generate thread-safe objects.
15706 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15708 # Library versioning type.
15709 version_type=$version_type
15711 # Format of library name prefix.
15712 libname_spec=$lt_libname_spec
15714 # List of archive names. First name is the real one, the rest are links.
15715 # The last name is the one that the linker finds with -lNAME.
15716 library_names_spec=$lt_library_names_spec
15718 # The coded name of the library, if different from the real name.
15719 soname_spec=$lt_soname_spec
15721 # Commands used to build and install an old-style archive.
15722 RANLIB=$lt_RANLIB
15723 old_archive_cmds=$lt_old_archive_cmds_F77
15724 old_postinstall_cmds=$lt_old_postinstall_cmds
15725 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15727 # Create an old-style archive from a shared archive.
15728 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15730 # Create a temporary old-style archive to link instead of a shared archive.
15731 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15733 # Commands used to build and install a shared archive.
15734 archive_cmds=$lt_archive_cmds_F77
15735 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15736 postinstall_cmds=$lt_postinstall_cmds
15737 postuninstall_cmds=$lt_postuninstall_cmds
15739 # Commands used to build a loadable module (assumed same as above if empty)
15740 module_cmds=$lt_module_cmds_F77
15741 module_expsym_cmds=$lt_module_expsym_cmds_F77
15743 # Commands to strip libraries.
15744 old_striplib=$lt_old_striplib
15745 striplib=$lt_striplib
15747 # Dependencies to place before the objects being linked to create a
15748 # shared library.
15749 predep_objects=$lt_predep_objects_F77
15751 # Dependencies to place after the objects being linked to create a
15752 # shared library.
15753 postdep_objects=$lt_postdep_objects_F77
15755 # Dependencies to place before the objects being linked to create a
15756 # shared library.
15757 predeps=$lt_predeps_F77
15759 # Dependencies to place after the objects being linked to create a
15760 # shared library.
15761 postdeps=$lt_postdeps_F77
15763 # The library search path used internally by the compiler when linking
15764 # a shared library.
15765 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15767 # Method to check whether dependent libraries are shared objects.
15768 deplibs_check_method=$lt_deplibs_check_method
15770 # Command to use when deplibs_check_method == file_magic.
15771 file_magic_cmd=$lt_file_magic_cmd
15773 # Flag that allows shared libraries with undefined symbols to be built.
15774 allow_undefined_flag=$lt_allow_undefined_flag_F77
15776 # Flag that forces no undefined symbols.
15777 no_undefined_flag=$lt_no_undefined_flag_F77
15779 # Commands used to finish a libtool library installation in a directory.
15780 finish_cmds=$lt_finish_cmds
15782 # Same as above, but a single script fragment to be evaled but not shown.
15783 finish_eval=$lt_finish_eval
15785 # Take the output of nm and produce a listing of raw symbols and C names.
15786 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15788 # Transform the output of nm in a proper C declaration
15789 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15791 # Transform the output of nm in a C name address pair
15792 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15794 # This is the shared library runtime path variable.
15795 runpath_var=$runpath_var
15797 # This is the shared library path variable.
15798 shlibpath_var=$shlibpath_var
15800 # Is shlibpath searched before the hard-coded library search path?
15801 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15803 # How to hardcode a shared library path into an executable.
15804 hardcode_action=$hardcode_action_F77
15806 # Whether we should hardcode library paths into libraries.
15807 hardcode_into_libs=$hardcode_into_libs
15809 # Flag to hardcode \$libdir into a binary during linking.
15810 # This must work even if \$libdir does not exist.
15811 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15813 # If ld is used when linking, flag to hardcode \$libdir into
15814 # a binary during linking. This must work even if \$libdir does
15815 # not exist.
15816 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15818 # Whether we need a single -rpath flag with a separated argument.
15819 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15821 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15822 # resulting binary.
15823 hardcode_direct=$hardcode_direct_F77
15825 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15826 # resulting binary.
15827 hardcode_minus_L=$hardcode_minus_L_F77
15829 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15830 # the resulting binary.
15831 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15833 # Set to yes if building a shared library automatically hardcodes DIR into the library
15834 # and all subsequent libraries and executables linked against it.
15835 hardcode_automatic=$hardcode_automatic_F77
15837 # Variables whose values should be saved in libtool wrapper scripts and
15838 # restored at relink time.
15839 variables_saved_for_relink="$variables_saved_for_relink"
15841 # Whether libtool must link a program against all its dependency libraries.
15842 link_all_deplibs=$link_all_deplibs_F77
15844 # Compile-time system search path for libraries
15845 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15847 # Run-time system search path for libraries
15848 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15850 # Fix the shell variable \$srcfile for the compiler.
15851 fix_srcfile_path="$fix_srcfile_path_F77"
15853 # Set to yes if exported symbols are required.
15854 always_export_symbols=$always_export_symbols_F77
15856 # The commands to list exported symbols.
15857 export_symbols_cmds=$lt_export_symbols_cmds_F77
15859 # The commands to extract the exported symbol list from a shared archive.
15860 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15862 # Symbols that should not be listed in the preloaded symbols.
15863 exclude_expsyms=$lt_exclude_expsyms_F77
15865 # Symbols that must always be exported.
15866 include_expsyms=$lt_include_expsyms_F77
15868 # ### END LIBTOOL TAG CONFIG: $tagname
15870 __EOF__
15873 else
15874 # If there is no Makefile yet, we rely on a make rule to execute
15875 # `config.status --recheck' to rerun these tests and create the
15876 # libtool script then.
15877 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15878 if test -f "$ltmain_in"; then
15879 test -f Makefile && make "$ltmain"
15884 ac_ext=c
15885 ac_cpp='$CPP $CPPFLAGS'
15886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15890 CC="$lt_save_CC"
15892 else
15893 tagname=""
15897 GCJ)
15898 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15902 # Source file extension for Java test sources.
15903 ac_ext=java
15905 # Object file extension for compiled Java test sources.
15906 objext=o
15907 objext_GCJ=$objext
15909 # Code to be used in simple compile tests
15910 lt_simple_compile_test_code="class foo {}\n"
15912 # Code to be used in simple link tests
15913 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15915 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15917 # If no C compiler was specified, use CC.
15918 LTCC=${LTCC-"$CC"}
15920 # Allow CC to be a program name with arguments.
15921 compiler=$CC
15924 # save warnings/boilerplate of simple test code
15925 ac_outfile=conftest.$ac_objext
15926 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15927 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15928 _lt_compiler_boilerplate=`cat conftest.err`
15929 $rm conftest*
15931 ac_outfile=conftest.$ac_objext
15932 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15933 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15934 _lt_linker_boilerplate=`cat conftest.err`
15935 $rm conftest*
15938 # Allow CC to be a program name with arguments.
15939 lt_save_CC="$CC"
15940 CC=${GCJ-"gcj"}
15941 compiler=$CC
15942 compiler_GCJ=$CC
15943 for cc_temp in $compiler""; do
15944 case $cc_temp in
15945 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15946 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15947 \-*) ;;
15948 *) break;;
15949 esac
15950 done
15951 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15954 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15955 archive_cmds_need_lc_GCJ=no
15957 old_archive_cmds_GCJ=$old_archive_cmds
15960 lt_prog_compiler_no_builtin_flag_GCJ=
15962 if test "$GCC" = yes; then
15963 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15966 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15967 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15968 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15970 else
15971 lt_cv_prog_compiler_rtti_exceptions=no
15972 ac_outfile=conftest.$ac_objext
15973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15974 lt_compiler_flag="-fno-rtti -fno-exceptions"
15975 # Insert the option either (1) after the last *FLAGS variable, or
15976 # (2) before a word containing "conftest.", or (3) at the end.
15977 # Note that $ac_compile itself does not contain backslashes and begins
15978 # with a dollar sign (not a hyphen), so the echo should work correctly.
15979 # The option is referenced via a variable to avoid confusing sed.
15980 lt_compile=`echo "$ac_compile" | $SED \
15981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15983 -e 's:$: $lt_compiler_flag:'`
15984 (eval echo "\"\$as_me:15984: $lt_compile\"" >&5)
15985 (eval "$lt_compile" 2>conftest.err)
15986 ac_status=$?
15987 cat conftest.err >&5
15988 echo "$as_me:15988: \$? = $ac_status" >&5
15989 if (exit $ac_status) && test -s "$ac_outfile"; then
15990 # The compiler can only warn and ignore the option if not recognized
15991 # So say no if there are warnings other than the usual output.
15992 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15993 $SED '/^$/d' conftest.err >conftest.er2
15994 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15995 lt_cv_prog_compiler_rtti_exceptions=yes
15998 $rm conftest*
16001 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16002 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16004 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16005 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16006 else
16012 lt_prog_compiler_wl_GCJ=
16013 lt_prog_compiler_pic_GCJ=
16014 lt_prog_compiler_static_GCJ=
16016 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16017 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16019 if test "$GCC" = yes; then
16020 lt_prog_compiler_wl_GCJ='-Wl,'
16021 lt_prog_compiler_static_GCJ='-static'
16023 case $host_os in
16024 aix*)
16025 # All AIX code is PIC.
16026 if test "$host_cpu" = ia64; then
16027 # AIX 5 now supports IA64 processor
16028 lt_prog_compiler_static_GCJ='-Bstatic'
16032 amigaos*)
16033 # FIXME: we need at least 68020 code to build shared libraries, but
16034 # adding the `-m68020' flag to GCC prevents building anything better,
16035 # like `-m68040'.
16036 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16039 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16040 # PIC is the default for these OSes.
16043 mingw* | pw32* | os2*)
16044 # This hack is so that the source file can tell whether it is being
16045 # built for inclusion in a dll (and should export symbols for example).
16046 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16049 darwin* | rhapsody*)
16050 # PIC is the default on this platform
16051 # Common symbols not allowed in MH_DYLIB files
16052 lt_prog_compiler_pic_GCJ='-fno-common'
16055 msdosdjgpp*)
16056 # Just because we use GCC doesn't mean we suddenly get shared libraries
16057 # on systems that don't support them.
16058 lt_prog_compiler_can_build_shared_GCJ=no
16059 enable_shared=no
16062 sysv4*MP*)
16063 if test -d /usr/nec; then
16064 lt_prog_compiler_pic_GCJ=-Kconform_pic
16068 hpux*)
16069 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16070 # not for PA HP-UX.
16071 case $host_cpu in
16072 hppa*64*|ia64*)
16073 # +Z the default
16076 lt_prog_compiler_pic_GCJ='-fPIC'
16078 esac
16082 lt_prog_compiler_pic_GCJ='-fPIC'
16084 esac
16085 else
16086 # PORTME Check for flag to pass linker flags through the system compiler.
16087 case $host_os in
16088 aix*)
16089 lt_prog_compiler_wl_GCJ='-Wl,'
16090 if test "$host_cpu" = ia64; then
16091 # AIX 5 now supports IA64 processor
16092 lt_prog_compiler_static_GCJ='-Bstatic'
16093 else
16094 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16097 darwin*)
16098 # PIC is the default on this platform
16099 # Common symbols not allowed in MH_DYLIB files
16100 case $cc_basename in
16101 xlc*)
16102 lt_prog_compiler_pic_GCJ='-qnocommon'
16103 lt_prog_compiler_wl_GCJ='-Wl,'
16105 esac
16108 mingw* | pw32* | os2*)
16109 # This hack is so that the source file can tell whether it is being
16110 # built for inclusion in a dll (and should export symbols for example).
16111 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16114 hpux9* | hpux10* | hpux11*)
16115 lt_prog_compiler_wl_GCJ='-Wl,'
16116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16117 # not for PA HP-UX.
16118 case $host_cpu in
16119 hppa*64*|ia64*)
16120 # +Z the default
16123 lt_prog_compiler_pic_GCJ='+Z'
16125 esac
16126 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16127 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16130 irix5* | irix6* | nonstopux*)
16131 lt_prog_compiler_wl_GCJ='-Wl,'
16132 # PIC (with -KPIC) is the default.
16133 lt_prog_compiler_static_GCJ='-non_shared'
16136 newsos6)
16137 lt_prog_compiler_pic_GCJ='-KPIC'
16138 lt_prog_compiler_static_GCJ='-Bstatic'
16141 linux*)
16142 case $cc_basename in
16143 icc* | ecc*)
16144 lt_prog_compiler_wl_GCJ='-Wl,'
16145 lt_prog_compiler_pic_GCJ='-KPIC'
16146 lt_prog_compiler_static_GCJ='-static'
16148 pgcc* | pgf77* | pgf90* | pgf95*)
16149 # Portland Group compilers (*not* the Pentium gcc compiler,
16150 # which looks to be a dead project)
16151 lt_prog_compiler_wl_GCJ='-Wl,'
16152 lt_prog_compiler_pic_GCJ='-fpic'
16153 lt_prog_compiler_static_GCJ='-Bstatic'
16155 ccc*)
16156 lt_prog_compiler_wl_GCJ='-Wl,'
16157 # All Alpha code is PIC.
16158 lt_prog_compiler_static_GCJ='-non_shared'
16160 esac
16163 osf3* | osf4* | osf5*)
16164 lt_prog_compiler_wl_GCJ='-Wl,'
16165 # All OSF/1 code is PIC.
16166 lt_prog_compiler_static_GCJ='-non_shared'
16169 sco3.2v5*)
16170 lt_prog_compiler_pic_GCJ='-Kpic'
16171 lt_prog_compiler_static_GCJ='-dn'
16174 solaris*)
16175 lt_prog_compiler_pic_GCJ='-KPIC'
16176 lt_prog_compiler_static_GCJ='-Bstatic'
16177 case $cc_basename in
16178 f77* | f90* | f95*)
16179 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16181 lt_prog_compiler_wl_GCJ='-Wl,';;
16182 esac
16185 sunos4*)
16186 lt_prog_compiler_wl_GCJ='-Qoption ld '
16187 lt_prog_compiler_pic_GCJ='-PIC'
16188 lt_prog_compiler_static_GCJ='-Bstatic'
16191 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16192 lt_prog_compiler_wl_GCJ='-Wl,'
16193 lt_prog_compiler_pic_GCJ='-KPIC'
16194 lt_prog_compiler_static_GCJ='-Bstatic'
16197 sysv4*MP*)
16198 if test -d /usr/nec ;then
16199 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16200 lt_prog_compiler_static_GCJ='-Bstatic'
16204 unicos*)
16205 lt_prog_compiler_wl_GCJ='-Wl,'
16206 lt_prog_compiler_can_build_shared_GCJ=no
16209 uts4*)
16210 lt_prog_compiler_pic_GCJ='-pic'
16211 lt_prog_compiler_static_GCJ='-Bstatic'
16215 lt_prog_compiler_can_build_shared_GCJ=no
16217 esac
16220 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16221 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16224 # Check to make sure the PIC flag actually works.
16226 if test -n "$lt_prog_compiler_pic_GCJ"; then
16228 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16229 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16230 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16232 else
16233 lt_prog_compiler_pic_works_GCJ=no
16234 ac_outfile=conftest.$ac_objext
16235 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16236 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16237 # Insert the option either (1) after the last *FLAGS variable, or
16238 # (2) before a word containing "conftest.", or (3) at the end.
16239 # Note that $ac_compile itself does not contain backslashes and begins
16240 # with a dollar sign (not a hyphen), so the echo should work correctly.
16241 # The option is referenced via a variable to avoid confusing sed.
16242 lt_compile=`echo "$ac_compile" | $SED \
16243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16245 -e 's:$: $lt_compiler_flag:'`
16246 (eval echo "\"\$as_me:16246: $lt_compile\"" >&5)
16247 (eval "$lt_compile" 2>conftest.err)
16248 ac_status=$?
16249 cat conftest.err >&5
16250 echo "$as_me:16250: \$? = $ac_status" >&5
16251 if (exit $ac_status) && test -s "$ac_outfile"; then
16252 # The compiler can only warn and ignore the option if not recognized
16253 # So say no if there are warnings other than the usual output.
16254 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16255 $SED '/^$/d' conftest.err >conftest.er2
16256 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16257 lt_prog_compiler_pic_works_GCJ=yes
16260 $rm conftest*
16263 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16264 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16266 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16267 case $lt_prog_compiler_pic_GCJ in
16268 "" | " "*) ;;
16269 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16270 esac
16271 else
16272 lt_prog_compiler_pic_GCJ=
16273 lt_prog_compiler_can_build_shared_GCJ=no
16277 case $host_os in
16278 # For platforms which do not support PIC, -DPIC is meaningless:
16279 *djgpp*)
16280 lt_prog_compiler_pic_GCJ=
16283 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16285 esac
16287 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16288 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16289 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16290 echo $ECHO_N "(cached) $ECHO_C" >&6
16291 else
16292 lt_cv_prog_compiler_c_o_GCJ=no
16293 $rm -r conftest 2>/dev/null
16294 mkdir conftest
16295 cd conftest
16296 mkdir out
16297 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16299 lt_compiler_flag="-o out/conftest2.$ac_objext"
16300 # Insert the option either (1) after the last *FLAGS variable, or
16301 # (2) before a word containing "conftest.", or (3) at the end.
16302 # Note that $ac_compile itself does not contain backslashes and begins
16303 # with a dollar sign (not a hyphen), so the echo should work correctly.
16304 lt_compile=`echo "$ac_compile" | $SED \
16305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16307 -e 's:$: $lt_compiler_flag:'`
16308 (eval echo "\"\$as_me:16308: $lt_compile\"" >&5)
16309 (eval "$lt_compile" 2>out/conftest.err)
16310 ac_status=$?
16311 cat out/conftest.err >&5
16312 echo "$as_me:16312: \$? = $ac_status" >&5
16313 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16314 then
16315 # The compiler can only warn and ignore the option if not recognized
16316 # So say no if there are warnings
16317 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16318 $SED '/^$/d' out/conftest.err >out/conftest.er2
16319 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16320 lt_cv_prog_compiler_c_o_GCJ=yes
16323 chmod u+w . 2>&5
16324 $rm conftest*
16325 # SGI C++ compiler will create directory out/ii_files/ for
16326 # template instantiation
16327 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16328 $rm out/* && rmdir out
16329 cd ..
16330 rmdir conftest
16331 $rm conftest*
16334 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16335 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16338 hard_links="nottested"
16339 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16340 # do not overwrite the value of need_locks provided by the user
16341 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16342 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16343 hard_links=yes
16344 $rm conftest*
16345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16346 touch conftest.a
16347 ln conftest.a conftest.b 2>&5 || hard_links=no
16348 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16349 echo "$as_me:$LINENO: result: $hard_links" >&5
16350 echo "${ECHO_T}$hard_links" >&6
16351 if test "$hard_links" = no; then
16352 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16353 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16354 need_locks=warn
16356 else
16357 need_locks=no
16360 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16361 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16363 runpath_var=
16364 allow_undefined_flag_GCJ=
16365 enable_shared_with_static_runtimes_GCJ=no
16366 archive_cmds_GCJ=
16367 archive_expsym_cmds_GCJ=
16368 old_archive_From_new_cmds_GCJ=
16369 old_archive_from_expsyms_cmds_GCJ=
16370 export_dynamic_flag_spec_GCJ=
16371 whole_archive_flag_spec_GCJ=
16372 thread_safe_flag_spec_GCJ=
16373 hardcode_libdir_flag_spec_GCJ=
16374 hardcode_libdir_flag_spec_ld_GCJ=
16375 hardcode_libdir_separator_GCJ=
16376 hardcode_direct_GCJ=no
16377 hardcode_minus_L_GCJ=no
16378 hardcode_shlibpath_var_GCJ=unsupported
16379 link_all_deplibs_GCJ=unknown
16380 hardcode_automatic_GCJ=no
16381 module_cmds_GCJ=
16382 module_expsym_cmds_GCJ=
16383 always_export_symbols_GCJ=no
16384 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16385 # include_expsyms should be a list of space-separated symbols to be *always*
16386 # included in the symbol list
16387 include_expsyms_GCJ=
16388 # exclude_expsyms can be an extended regexp of symbols to exclude
16389 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16390 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16391 # as well as any symbol that contains `d'.
16392 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16393 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16394 # platforms (ab)use it in PIC code, but their linkers get confused if
16395 # the symbol is explicitly referenced. Since portable code cannot
16396 # rely on this symbol name, it's probably fine to never include it in
16397 # preloaded symbol tables.
16398 extract_expsyms_cmds=
16399 # Just being paranoid about ensuring that cc_basename is set.
16400 for cc_temp in $compiler""; do
16401 case $cc_temp in
16402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16404 \-*) ;;
16405 *) break;;
16406 esac
16407 done
16408 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16410 case $host_os in
16411 cygwin* | mingw* | pw32*)
16412 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16413 # When not using gcc, we currently assume that we are using
16414 # Microsoft Visual C++.
16415 if test "$GCC" != yes; then
16416 with_gnu_ld=no
16419 openbsd*)
16420 with_gnu_ld=no
16422 esac
16424 ld_shlibs_GCJ=yes
16425 if test "$with_gnu_ld" = yes; then
16426 # If archive_cmds runs LD, not CC, wlarc should be empty
16427 wlarc='${wl}'
16429 # Set some defaults for GNU ld with shared library support. These
16430 # are reset later if shared libraries are not supported. Putting them
16431 # here allows them to be overridden if necessary.
16432 runpath_var=LD_RUN_PATH
16433 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16434 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16435 # ancient GNU ld didn't support --whole-archive et. al.
16436 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16437 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16438 else
16439 whole_archive_flag_spec_GCJ=
16441 supports_anon_versioning=no
16442 case `$LD -v 2>/dev/null` in
16443 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16444 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16445 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16446 *\ 2.11.*) ;; # other 2.11 versions
16447 *) supports_anon_versioning=yes ;;
16448 esac
16450 # See if GNU ld supports shared libraries.
16451 case $host_os in
16452 aix3* | aix4* | aix5*)
16453 # On AIX/PPC, the GNU linker is very broken
16454 if test "$host_cpu" != ia64; then
16455 ld_shlibs_GCJ=no
16456 cat <<EOF 1>&2
16458 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16459 *** to be unable to reliably create shared libraries on AIX.
16460 *** Therefore, libtool is disabling shared libraries support. If you
16461 *** really care for shared libraries, you may want to modify your PATH
16462 *** so that a non-GNU linker is found, and then restart.
16468 amigaos*)
16469 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)'
16470 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16471 hardcode_minus_L_GCJ=yes
16473 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16474 # that the semantics of dynamic libraries on AmigaOS, at least up
16475 # to version 4, is to share data among multiple programs linked
16476 # with the same dynamic library. Since this doesn't match the
16477 # behavior of shared libraries on other platforms, we can't use
16478 # them.
16479 ld_shlibs_GCJ=no
16482 beos*)
16483 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16484 allow_undefined_flag_GCJ=unsupported
16485 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16486 # support --undefined. This deserves some investigation. FIXME
16487 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16488 else
16489 ld_shlibs_GCJ=no
16493 cygwin* | mingw* | pw32*)
16494 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16495 # as there is no search path for DLLs.
16496 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16497 allow_undefined_flag_GCJ=unsupported
16498 always_export_symbols_GCJ=no
16499 enable_shared_with_static_runtimes_GCJ=yes
16500 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16502 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16503 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16504 # If the export-symbols file already is a .def file (1st line
16505 # is EXPORTS), use it as is; otherwise, prepend...
16506 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16507 cp $export_symbols $output_objdir/$soname.def;
16508 else
16509 echo EXPORTS > $output_objdir/$soname.def;
16510 cat $export_symbols >> $output_objdir/$soname.def;
16512 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16513 else
16514 ld_shlibs_GCJ=no
16518 linux*)
16519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16520 tmp_addflag=
16521 case $cc_basename,$host_cpu in
16522 pgcc*) # Portland Group C compiler
16523 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'
16524 tmp_addflag=' $pic_flag'
16526 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16527 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'
16528 tmp_addflag=' $pic_flag -Mnomain' ;;
16529 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16530 tmp_addflag=' -i_dynamic' ;;
16531 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16532 tmp_addflag=' -i_dynamic -nofor_main' ;;
16533 ifc* | ifort*) # Intel Fortran compiler
16534 tmp_addflag=' -nofor_main' ;;
16535 esac
16536 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16538 if test $supports_anon_versioning = yes; then
16539 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16540 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16541 $echo "local: *; };" >> $output_objdir/$libname.ver~
16542 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16544 else
16545 ld_shlibs_GCJ=no
16549 netbsd*)
16550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16551 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16552 wlarc=
16553 else
16554 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16555 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16559 solaris* | sysv5*)
16560 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16561 ld_shlibs_GCJ=no
16562 cat <<EOF 1>&2
16564 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16565 *** create shared libraries on Solaris systems. Therefore, libtool
16566 *** is disabling shared libraries support. We urge you to upgrade GNU
16567 *** binutils to release 2.9.1 or newer. Another option is to modify
16568 *** your PATH or compiler configuration so that the native linker is
16569 *** used, and then restart.
16572 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16573 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16574 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16575 else
16576 ld_shlibs_GCJ=no
16580 sunos4*)
16581 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16582 wlarc=
16583 hardcode_direct_GCJ=yes
16584 hardcode_shlibpath_var_GCJ=no
16588 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16589 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16590 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16591 else
16592 ld_shlibs_GCJ=no
16595 esac
16597 if test "$ld_shlibs_GCJ" = no; then
16598 runpath_var=
16599 hardcode_libdir_flag_spec_GCJ=
16600 export_dynamic_flag_spec_GCJ=
16601 whole_archive_flag_spec_GCJ=
16603 else
16604 # PORTME fill in a description of your system's linker (not GNU ld)
16605 case $host_os in
16606 aix3*)
16607 allow_undefined_flag_GCJ=unsupported
16608 always_export_symbols_GCJ=yes
16609 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'
16610 # Note: this linker hardcodes the directories in LIBPATH if there
16611 # are no directories specified by -L.
16612 hardcode_minus_L_GCJ=yes
16613 if test "$GCC" = yes && test -z "$link_static_flag"; then
16614 # Neither direct hardcoding nor static linking is supported with a
16615 # broken collect2.
16616 hardcode_direct_GCJ=unsupported
16620 aix4* | aix5*)
16621 if test "$host_cpu" = ia64; then
16622 # On IA64, the linker does run time linking by default, so we don't
16623 # have to do anything special.
16624 aix_use_runtimelinking=no
16625 exp_sym_flag='-Bexport'
16626 no_entry_flag=""
16627 else
16628 # If we're using GNU nm, then we don't want the "-C" option.
16629 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16630 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16631 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'
16632 else
16633 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'
16635 aix_use_runtimelinking=no
16637 # Test if we are trying to use run time linking or normal
16638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16639 # need to do runtime linking.
16640 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16641 for ld_flag in $LDFLAGS; do
16642 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16643 aix_use_runtimelinking=yes
16644 break
16646 done
16647 esac
16649 exp_sym_flag='-bexport'
16650 no_entry_flag='-bnoentry'
16653 # When large executables or shared objects are built, AIX ld can
16654 # have problems creating the table of contents. If linking a library
16655 # or program results in "error TOC overflow" add -mminimal-toc to
16656 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16657 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16659 archive_cmds_GCJ=''
16660 hardcode_direct_GCJ=yes
16661 hardcode_libdir_separator_GCJ=':'
16662 link_all_deplibs_GCJ=yes
16664 if test "$GCC" = yes; then
16665 case $host_os in aix4.[012]|aix4.[012].*)
16666 # We only want to do this on AIX 4.2 and lower, the check
16667 # below for broken collect2 doesn't work under 4.3+
16668 collect2name=`${CC} -print-prog-name=collect2`
16669 if test -f "$collect2name" && \
16670 strings "$collect2name" | grep resolve_lib_name >/dev/null
16671 then
16672 # We have reworked collect2
16673 hardcode_direct_GCJ=yes
16674 else
16675 # We have old collect2
16676 hardcode_direct_GCJ=unsupported
16677 # It fails to find uninstalled libraries when the uninstalled
16678 # path is not listed in the libpath. Setting hardcode_minus_L
16679 # to unsupported forces relinking
16680 hardcode_minus_L_GCJ=yes
16681 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16682 hardcode_libdir_separator_GCJ=
16684 esac
16685 shared_flag='-shared'
16686 if test "$aix_use_runtimelinking" = yes; then
16687 shared_flag="$shared_flag "'${wl}-G'
16689 else
16690 # not using gcc
16691 if test "$host_cpu" = ia64; then
16692 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16693 # chokes on -Wl,-G. The following line is correct:
16694 shared_flag='-G'
16695 else
16696 if test "$aix_use_runtimelinking" = yes; then
16697 shared_flag='${wl}-G'
16698 else
16699 shared_flag='${wl}-bM:SRE'
16704 # It seems that -bexpall does not export symbols beginning with
16705 # underscore (_), so it is better to generate a list of symbols to export.
16706 always_export_symbols_GCJ=yes
16707 if test "$aix_use_runtimelinking" = yes; then
16708 # Warning - without using the other runtime loading flags (-brtl),
16709 # -berok will link without error, but may produce a broken library.
16710 allow_undefined_flag_GCJ='-berok'
16711 # Determine the default libpath from the value encoded in an empty executable.
16712 cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h. */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16720 main ()
16724 return 0;
16726 _ACEOF
16727 rm -f conftest.$ac_objext conftest$ac_exeext
16728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16729 (eval $ac_link) 2>conftest.er1
16730 ac_status=$?
16731 grep -v '^ *+' conftest.er1 >conftest.err
16732 rm -f conftest.er1
16733 cat conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest$ac_exeext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16751 # Check for a 64-bit object if we didn't find anything.
16752 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; }
16753 }'`; fi
16754 else
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16759 rm -f conftest.err conftest.$ac_objext \
16760 conftest$ac_exeext conftest.$ac_ext
16761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16763 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16764 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16765 else
16766 if test "$host_cpu" = ia64; then
16767 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16768 allow_undefined_flag_GCJ="-z nodefs"
16769 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16770 else
16771 # Determine the default libpath from the value encoded in an empty executable.
16772 cat >conftest.$ac_ext <<_ACEOF
16773 /* confdefs.h. */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h. */
16780 main ()
16784 return 0;
16786 _ACEOF
16787 rm -f conftest.$ac_objext conftest$ac_exeext
16788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16789 (eval $ac_link) 2>conftest.er1
16790 ac_status=$?
16791 grep -v '^ *+' conftest.er1 >conftest.err
16792 rm -f conftest.er1
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } &&
16796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; } &&
16802 { ac_try='test -s conftest$ac_exeext'
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
16809 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16811 # Check for a 64-bit object if we didn't find anything.
16812 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; }
16813 }'`; fi
16814 else
16815 echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16819 rm -f conftest.err conftest.$ac_objext \
16820 conftest$ac_exeext conftest.$ac_ext
16821 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16823 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16824 # Warning - without using the other run time loading flags,
16825 # -berok will link without error, but may produce a broken library.
16826 no_undefined_flag_GCJ=' ${wl}-bernotok'
16827 allow_undefined_flag_GCJ=' ${wl}-berok'
16828 # -bexpall does not export symbols beginning with underscore (_)
16829 always_export_symbols_GCJ=yes
16830 # Exported symbols can be pulled into shared objects from archives
16831 whole_archive_flag_spec_GCJ=' '
16832 archive_cmds_need_lc_GCJ=yes
16833 # This is similar to how AIX traditionally builds its shared libraries.
16834 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16839 amigaos*)
16840 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)'
16841 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16842 hardcode_minus_L_GCJ=yes
16843 # see comment about different semantics on the GNU ld section
16844 ld_shlibs_GCJ=no
16847 bsdi[45]*)
16848 export_dynamic_flag_spec_GCJ=-rdynamic
16851 cygwin* | mingw* | pw32*)
16852 # When not using gcc, we currently assume that we are using
16853 # Microsoft Visual C++.
16854 # hardcode_libdir_flag_spec is actually meaningless, as there is
16855 # no search path for DLLs.
16856 hardcode_libdir_flag_spec_GCJ=' '
16857 allow_undefined_flag_GCJ=unsupported
16858 # Tell ltmain to make .lib files, not .a files.
16859 libext=lib
16860 # Tell ltmain to make .dll files, not .so files.
16861 shrext_cmds=".dll"
16862 # FIXME: Setting linknames here is a bad hack.
16863 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16864 # The linker will automatically build a .lib file if we build a DLL.
16865 old_archive_From_new_cmds_GCJ='true'
16866 # FIXME: Should let the user specify the lib program.
16867 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16868 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16869 enable_shared_with_static_runtimes_GCJ=yes
16872 darwin* | rhapsody*)
16873 case $host_os in
16874 rhapsody* | darwin1.[012])
16875 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16877 *) # Darwin 1.3 on
16878 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16879 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16880 else
16881 case ${MACOSX_DEPLOYMENT_TARGET} in
16882 10.[012])
16883 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16885 10.*)
16886 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16888 esac
16891 esac
16892 archive_cmds_need_lc_GCJ=no
16893 hardcode_direct_GCJ=no
16894 hardcode_automatic_GCJ=yes
16895 hardcode_shlibpath_var_GCJ=unsupported
16896 whole_archive_flag_spec_GCJ=''
16897 link_all_deplibs_GCJ=yes
16898 if test "$GCC" = yes ; then
16899 output_verbose_link_cmd='echo'
16900 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16901 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16902 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16903 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}'
16904 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}'
16905 else
16906 case $cc_basename in
16907 xlc*)
16908 output_verbose_link_cmd='echo'
16909 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16910 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16911 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16912 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}'
16913 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}'
16916 ld_shlibs_GCJ=no
16918 esac
16922 dgux*)
16923 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16924 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16925 hardcode_shlibpath_var_GCJ=no
16928 freebsd1*)
16929 ld_shlibs_GCJ=no
16932 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16933 # support. Future versions do this automatically, but an explicit c++rt0.o
16934 # does not break anything, and helps significantly (at the cost of a little
16935 # extra space).
16936 freebsd2.2*)
16937 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16938 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16939 hardcode_direct_GCJ=yes
16940 hardcode_shlibpath_var_GCJ=no
16943 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16944 freebsd2*)
16945 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16946 hardcode_direct_GCJ=yes
16947 hardcode_minus_L_GCJ=yes
16948 hardcode_shlibpath_var_GCJ=no
16951 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16952 freebsd* | kfreebsd*-gnu | dragonfly*)
16953 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16954 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16955 hardcode_direct_GCJ=yes
16956 hardcode_shlibpath_var_GCJ=no
16959 hpux9*)
16960 if test "$GCC" = yes; then
16961 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'
16962 else
16963 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'
16965 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16966 hardcode_libdir_separator_GCJ=:
16967 hardcode_direct_GCJ=yes
16969 # hardcode_minus_L: Not really in the search PATH,
16970 # but as the default location of the library.
16971 hardcode_minus_L_GCJ=yes
16972 export_dynamic_flag_spec_GCJ='${wl}-E'
16975 hpux10* | hpux11*)
16976 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16977 case $host_cpu in
16978 hppa*64*|ia64*)
16979 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16982 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16984 esac
16985 else
16986 case $host_cpu in
16987 hppa*64*|ia64*)
16988 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16991 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16993 esac
16995 if test "$with_gnu_ld" = no; then
16996 case $host_cpu in
16997 hppa*64*)
16998 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16999 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17000 hardcode_libdir_separator_GCJ=:
17001 hardcode_direct_GCJ=no
17002 hardcode_shlibpath_var_GCJ=no
17004 ia64*)
17005 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17006 hardcode_direct_GCJ=no
17007 hardcode_shlibpath_var_GCJ=no
17009 # hardcode_minus_L: Not really in the search PATH,
17010 # but as the default location of the library.
17011 hardcode_minus_L_GCJ=yes
17014 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17015 hardcode_libdir_separator_GCJ=:
17016 hardcode_direct_GCJ=yes
17017 export_dynamic_flag_spec_GCJ='${wl}-E'
17019 # hardcode_minus_L: Not really in the search PATH,
17020 # but as the default location of the library.
17021 hardcode_minus_L_GCJ=yes
17023 esac
17027 irix5* | irix6* | nonstopux*)
17028 if test "$GCC" = yes; then
17029 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'
17030 else
17031 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'
17032 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17034 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17035 hardcode_libdir_separator_GCJ=:
17036 link_all_deplibs_GCJ=yes
17039 netbsd*)
17040 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17041 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17042 else
17043 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17045 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17046 hardcode_direct_GCJ=yes
17047 hardcode_shlibpath_var_GCJ=no
17050 newsos6)
17051 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17052 hardcode_direct_GCJ=yes
17053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17054 hardcode_libdir_separator_GCJ=:
17055 hardcode_shlibpath_var_GCJ=no
17058 openbsd*)
17059 hardcode_direct_GCJ=yes
17060 hardcode_shlibpath_var_GCJ=no
17061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17062 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17063 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17065 export_dynamic_flag_spec_GCJ='${wl}-E'
17066 else
17067 case $host_os in
17068 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17069 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17070 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17073 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17074 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17076 esac
17080 os2*)
17081 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17082 hardcode_minus_L_GCJ=yes
17083 allow_undefined_flag_GCJ=unsupported
17084 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'
17085 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17088 osf3*)
17089 if test "$GCC" = yes; then
17090 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17091 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'
17092 else
17093 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17094 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'
17096 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17097 hardcode_libdir_separator_GCJ=:
17100 osf4* | osf5*) # as osf3* with the addition of -msym flag
17101 if test "$GCC" = yes; then
17102 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17103 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'
17104 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17105 else
17106 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17107 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'
17108 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~
17109 $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'
17111 # Both c and cxx compiler support -rpath directly
17112 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17114 hardcode_libdir_separator_GCJ=:
17117 sco3.2v5*)
17118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17119 hardcode_shlibpath_var_GCJ=no
17120 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17121 runpath_var=LD_RUN_PATH
17122 hardcode_runpath_var=yes
17125 solaris*)
17126 no_undefined_flag_GCJ=' -z text'
17127 if test "$GCC" = yes; then
17128 wlarc='${wl}'
17129 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17130 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17131 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17132 else
17133 wlarc=''
17134 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17135 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17136 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17138 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17139 hardcode_shlibpath_var_GCJ=no
17140 case $host_os in
17141 solaris2.[0-5] | solaris2.[0-5].*) ;;
17143 # The compiler driver will combine linker options so we
17144 # cannot just pass the convience library names through
17145 # without $wl, iff we do not link with $LD.
17146 # Luckily, gcc supports the same syntax we need for Sun Studio.
17147 # Supported since Solaris 2.6 (maybe 2.5.1?)
17148 case $wlarc in
17150 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17152 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' ;;
17153 esac ;;
17154 esac
17155 link_all_deplibs_GCJ=yes
17158 sunos4*)
17159 if test "x$host_vendor" = xsequent; then
17160 # Use $CC to link under sequent, because it throws in some extra .o
17161 # files that make .init and .fini sections work.
17162 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17163 else
17164 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17166 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17167 hardcode_direct_GCJ=yes
17168 hardcode_minus_L_GCJ=yes
17169 hardcode_shlibpath_var_GCJ=no
17172 sysv4)
17173 case $host_vendor in
17174 sni)
17175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17176 hardcode_direct_GCJ=yes # is this really true???
17178 siemens)
17179 ## LD is ld it makes a PLAMLIB
17180 ## CC just makes a GrossModule.
17181 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17182 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17183 hardcode_direct_GCJ=no
17185 motorola)
17186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17187 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17189 esac
17190 runpath_var='LD_RUN_PATH'
17191 hardcode_shlibpath_var_GCJ=no
17194 sysv4.3*)
17195 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17196 hardcode_shlibpath_var_GCJ=no
17197 export_dynamic_flag_spec_GCJ='-Bexport'
17200 sysv4*MP*)
17201 if test -d /usr/nec; then
17202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17203 hardcode_shlibpath_var_GCJ=no
17204 runpath_var=LD_RUN_PATH
17205 hardcode_runpath_var=yes
17206 ld_shlibs_GCJ=yes
17210 sysv4.2uw2*)
17211 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17212 hardcode_direct_GCJ=yes
17213 hardcode_minus_L_GCJ=no
17214 hardcode_shlibpath_var_GCJ=no
17215 hardcode_runpath_var=yes
17216 runpath_var=LD_RUN_PATH
17219 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17220 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17221 if test "$GCC" = yes; then
17222 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17223 else
17224 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17226 runpath_var='LD_RUN_PATH'
17227 hardcode_shlibpath_var_GCJ=no
17230 sysv5*)
17231 no_undefined_flag_GCJ=' -z text'
17232 # $CC -shared without GNU ld will not create a library from C++
17233 # object files and a static libstdc++, better avoid it by now
17234 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17236 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17237 hardcode_libdir_flag_spec_GCJ=
17238 hardcode_shlibpath_var_GCJ=no
17239 runpath_var='LD_RUN_PATH'
17242 uts4*)
17243 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17244 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17245 hardcode_shlibpath_var_GCJ=no
17249 ld_shlibs_GCJ=no
17251 esac
17254 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17255 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17256 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17258 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17259 if test "$GCC" = yes; then
17260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17264 # Do we need to explicitly link libc?
17266 case "x$archive_cmds_need_lc_GCJ" in
17267 x|xyes)
17268 # Assume -lc should be added
17269 archive_cmds_need_lc_GCJ=yes
17271 if test "$enable_shared" = yes && test "$GCC" = yes; then
17272 case $archive_cmds_GCJ in
17273 *'~'*)
17274 # FIXME: we may have to deal with multi-command sequences.
17276 '$CC '*)
17277 # Test whether the compiler implicitly links with -lc since on some
17278 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17279 # to ld, don't add -lc before -lgcc.
17280 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17281 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17282 $rm conftest*
17283 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17286 (eval $ac_compile) 2>&5
17287 ac_status=$?
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } 2>conftest.err; then
17290 soname=conftest
17291 lib=conftest
17292 libobjs=conftest.$ac_objext
17293 deplibs=
17294 wl=$lt_prog_compiler_wl_GCJ
17295 compiler_flags=-v
17296 linker_flags=-v
17297 verstring=
17298 output_objdir=.
17299 libname=conftest
17300 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17301 allow_undefined_flag_GCJ=
17302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17303 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }
17307 then
17308 archive_cmds_need_lc_GCJ=no
17309 else
17310 archive_cmds_need_lc_GCJ=yes
17312 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17313 else
17314 cat conftest.err 1>&5
17316 $rm conftest*
17317 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17318 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17320 esac
17323 esac
17325 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17326 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17327 library_names_spec=
17328 libname_spec='lib$name'
17329 soname_spec=
17330 shrext_cmds=".so"
17331 postinstall_cmds=
17332 postuninstall_cmds=
17333 finish_cmds=
17334 finish_eval=
17335 shlibpath_var=
17336 shlibpath_overrides_runpath=unknown
17337 version_type=none
17338 dynamic_linker="$host_os ld.so"
17339 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17340 if test "$GCC" = yes; then
17341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17342 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17343 # if the path contains ";" then we assume it to be the separator
17344 # otherwise default to the standard path separator (i.e. ":") - it is
17345 # assumed that no part of a normal pathname contains ";" but that should
17346 # okay in the real world where ";" in dirpaths is itself problematic.
17347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17348 else
17349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17351 else
17352 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17354 need_lib_prefix=unknown
17355 hardcode_into_libs=no
17357 # when you set need_version to no, make sure it does not cause -set_version
17358 # flags to be left without arguments
17359 need_version=unknown
17361 case $host_os in
17362 aix3*)
17363 version_type=linux
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17365 shlibpath_var=LIBPATH
17367 # AIX 3 has no versioning support, so we append a major version to the name.
17368 soname_spec='${libname}${release}${shared_ext}$major'
17371 aix4* | aix5*)
17372 version_type=linux
17373 need_lib_prefix=no
17374 need_version=no
17375 hardcode_into_libs=yes
17376 if test "$host_cpu" = ia64; then
17377 # AIX 5 supports IA64
17378 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 else
17381 # With GCC up to 2.95.x, collect2 would create an import file
17382 # for dependence libraries. The import file would start with
17383 # the line `#! .'. This would cause the generated library to
17384 # depend on `.', always an invalid library. This was fixed in
17385 # development snapshots of GCC prior to 3.0.
17386 case $host_os in
17387 aix4 | aix4.[01] | aix4.[01].*)
17388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17389 echo ' yes '
17390 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17392 else
17393 can_build_shared=no
17396 esac
17397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17398 # soname into executable. Probably we can add versioning support to
17399 # collect2, so additional links can be useful in future.
17400 if test "$aix_use_runtimelinking" = yes; then
17401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17402 # instead of lib<name>.a to let people know that these are not
17403 # typical AIX shared libraries.
17404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405 else
17406 # We preserve .a as extension for shared libraries through AIX4.2
17407 # and later when we are not doing run time linking.
17408 library_names_spec='${libname}${release}.a $libname.a'
17409 soname_spec='${libname}${release}${shared_ext}$major'
17411 shlibpath_var=LIBPATH
17415 amigaos*)
17416 library_names_spec='$libname.ixlibrary $libname.a'
17417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17418 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'
17421 beos*)
17422 library_names_spec='${libname}${shared_ext}'
17423 dynamic_linker="$host_os ld.so"
17424 shlibpath_var=LIBRARY_PATH
17427 bsdi[45]*)
17428 version_type=linux
17429 need_version=no
17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17431 soname_spec='${libname}${release}${shared_ext}$major'
17432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17433 shlibpath_var=LD_LIBRARY_PATH
17434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17436 # the default ld.so.conf also contains /usr/contrib/lib and
17437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17438 # libtool to hard-code these into programs
17441 cygwin* | mingw* | pw32*)
17442 version_type=windows
17443 shrext_cmds=".dll"
17444 need_version=no
17445 need_lib_prefix=no
17447 case $GCC,$host_os in
17448 yes,cygwin* | yes,mingw* | yes,pw32*)
17449 library_names_spec='$libname.dll.a'
17450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17451 postinstall_cmds='base_file=`basename \${file}`~
17452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17453 dldir=$destdir/`dirname \$dlpath`~
17454 test -d \$dldir || mkdir -p \$dldir~
17455 $install_prog $dir/$dlname \$dldir/$dlname~
17456 chmod a+x \$dldir/$dlname'
17457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17458 dlpath=$dir/\$dldll~
17459 $rm \$dlpath'
17460 shlibpath_overrides_runpath=yes
17462 case $host_os in
17463 cygwin*)
17464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17465 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17466 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17468 mingw*)
17469 # MinGW DLLs use traditional 'lib' prefix
17470 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17472 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17473 # It is most probably a Windows format PATH printed by
17474 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17475 # path with ; separators, and with drive letters. We can handle the
17476 # drive letters (cygwin fileutils understands them), so leave them,
17477 # especially as we might pass files found there to a mingw objdump,
17478 # which wouldn't understand a cygwinified path. Ahh.
17479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17480 else
17481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17484 pw32*)
17485 # pw32 DLLs use 'pw' prefix rather than 'lib'
17486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17488 esac
17492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17494 esac
17495 dynamic_linker='Win32 ld.exe'
17496 # FIXME: first we should search . and the directory the executable is in
17497 shlibpath_var=PATH
17500 darwin* | rhapsody*)
17501 dynamic_linker="$host_os dyld"
17502 version_type=darwin
17503 need_lib_prefix=no
17504 need_version=no
17505 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17506 soname_spec='${libname}${release}${major}$shared_ext'
17507 shlibpath_overrides_runpath=yes
17508 shlibpath_var=DYLD_LIBRARY_PATH
17509 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17510 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17511 if test "$GCC" = yes; then
17512 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"`
17513 else
17514 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17516 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17519 dgux*)
17520 version_type=linux
17521 need_lib_prefix=no
17522 need_version=no
17523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17524 soname_spec='${libname}${release}${shared_ext}$major'
17525 shlibpath_var=LD_LIBRARY_PATH
17528 freebsd1*)
17529 dynamic_linker=no
17532 kfreebsd*-gnu)
17533 version_type=linux
17534 need_lib_prefix=no
17535 need_version=no
17536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17537 soname_spec='${libname}${release}${shared_ext}$major'
17538 shlibpath_var=LD_LIBRARY_PATH
17539 shlibpath_overrides_runpath=no
17540 hardcode_into_libs=yes
17541 dynamic_linker='GNU ld.so'
17544 freebsd* | dragonfly*)
17545 # DragonFly does not have aout. When/if they implement a new
17546 # versioning mechanism, adjust this.
17547 if test -x /usr/bin/objformat; then
17548 objformat=`/usr/bin/objformat`
17549 else
17550 case $host_os in
17551 freebsd[123]*) objformat=aout ;;
17552 *) objformat=elf ;;
17553 esac
17555 version_type=freebsd-$objformat
17556 case $version_type in
17557 freebsd-elf*)
17558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17559 need_version=no
17560 need_lib_prefix=no
17562 freebsd-*)
17563 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17564 need_version=yes
17566 esac
17567 shlibpath_var=LD_LIBRARY_PATH
17568 case $host_os in
17569 freebsd2*)
17570 shlibpath_overrides_runpath=yes
17572 freebsd3.[01]* | freebsdelf3.[01]*)
17573 shlibpath_overrides_runpath=yes
17574 hardcode_into_libs=yes
17576 *) # from 3.2 on
17577 shlibpath_overrides_runpath=no
17578 hardcode_into_libs=yes
17580 esac
17583 gnu*)
17584 version_type=linux
17585 need_lib_prefix=no
17586 need_version=no
17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17588 soname_spec='${libname}${release}${shared_ext}$major'
17589 shlibpath_var=LD_LIBRARY_PATH
17590 hardcode_into_libs=yes
17593 hpux9* | hpux10* | hpux11*)
17594 # Give a soname corresponding to the major version so that dld.sl refuses to
17595 # link against other versions.
17596 version_type=sunos
17597 need_lib_prefix=no
17598 need_version=no
17599 case $host_cpu in
17600 ia64*)
17601 shrext_cmds='.so'
17602 hardcode_into_libs=yes
17603 dynamic_linker="$host_os dld.so"
17604 shlibpath_var=LD_LIBRARY_PATH
17605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17607 soname_spec='${libname}${release}${shared_ext}$major'
17608 if test "X$HPUX_IA64_MODE" = X32; then
17609 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17610 else
17611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17615 hppa*64*)
17616 shrext_cmds='.sl'
17617 hardcode_into_libs=yes
17618 dynamic_linker="$host_os dld.sl"
17619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622 soname_spec='${libname}${release}${shared_ext}$major'
17623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17627 shrext_cmds='.sl'
17628 dynamic_linker="$host_os dld.sl"
17629 shlibpath_var=SHLIB_PATH
17630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632 soname_spec='${libname}${release}${shared_ext}$major'
17634 esac
17635 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17636 postinstall_cmds='chmod 555 $lib'
17639 irix5* | irix6* | nonstopux*)
17640 case $host_os in
17641 nonstopux*) version_type=nonstopux ;;
17643 if test "$lt_cv_prog_gnu_ld" = yes; then
17644 version_type=linux
17645 else
17646 version_type=irix
17647 fi ;;
17648 esac
17649 need_lib_prefix=no
17650 need_version=no
17651 soname_spec='${libname}${release}${shared_ext}$major'
17652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17653 case $host_os in
17654 irix5* | nonstopux*)
17655 libsuff= shlibsuff=
17658 case $LD in # libtool.m4 will add one of these switches to LD
17659 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17660 libsuff= shlibsuff= libmagic=32-bit;;
17661 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17662 libsuff=32 shlibsuff=N32 libmagic=N32;;
17663 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17664 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17665 *) libsuff= shlibsuff= libmagic=never-match;;
17666 esac
17668 esac
17669 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17670 shlibpath_overrides_runpath=no
17671 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17672 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17673 hardcode_into_libs=yes
17676 # No shared lib support for Linux oldld, aout, or coff.
17677 linux*oldld* | linux*aout* | linux*coff*)
17678 dynamic_linker=no
17681 # This must be Linux ELF.
17682 linux*)
17683 version_type=linux
17684 need_lib_prefix=no
17685 need_version=no
17686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17687 soname_spec='${libname}${release}${shared_ext}$major'
17688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17689 shlibpath_var=LD_LIBRARY_PATH
17690 shlibpath_overrides_runpath=no
17691 # This implies no fast_install, which is unacceptable.
17692 # Some rework will be needed to allow for fast_install
17693 # before this can be enabled.
17694 hardcode_into_libs=yes
17696 # Append ld.so.conf contents to the search path
17697 if test -f /etc/ld.so.conf; then
17698 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' ' '`
17699 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17702 # We used to test for /lib/ld.so.1 and disable shared libraries on
17703 # powerpc, because MkLinux only supported shared libraries with the
17704 # GNU dynamic linker. Since this was broken with cross compilers,
17705 # most powerpc-linux boxes support dynamic linking these days and
17706 # people can always --disable-shared, the test was removed, and we
17707 # assume the GNU/Linux dynamic linker is in use.
17708 dynamic_linker='GNU/Linux ld.so'
17711 knetbsd*-gnu)
17712 version_type=linux
17713 need_lib_prefix=no
17714 need_version=no
17715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17716 soname_spec='${libname}${release}${shared_ext}$major'
17717 shlibpath_var=LD_LIBRARY_PATH
17718 shlibpath_overrides_runpath=no
17719 hardcode_into_libs=yes
17720 dynamic_linker='GNU ld.so'
17723 netbsd*)
17724 version_type=sunos
17725 need_lib_prefix=no
17726 need_version=no
17727 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17730 dynamic_linker='NetBSD (a.out) ld.so'
17731 else
17732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17733 soname_spec='${libname}${release}${shared_ext}$major'
17734 dynamic_linker='NetBSD ld.elf_so'
17736 shlibpath_var=LD_LIBRARY_PATH
17737 shlibpath_overrides_runpath=yes
17738 hardcode_into_libs=yes
17741 newsos6)
17742 version_type=linux
17743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17744 shlibpath_var=LD_LIBRARY_PATH
17745 shlibpath_overrides_runpath=yes
17748 nto-qnx*)
17749 version_type=linux
17750 need_lib_prefix=no
17751 need_version=no
17752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17753 soname_spec='${libname}${release}${shared_ext}$major'
17754 shlibpath_var=LD_LIBRARY_PATH
17755 shlibpath_overrides_runpath=yes
17758 openbsd*)
17759 version_type=sunos
17760 need_lib_prefix=no
17761 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17762 case $host_os in
17763 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17764 *) need_version=no ;;
17765 esac
17766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17768 shlibpath_var=LD_LIBRARY_PATH
17769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17770 case $host_os in
17771 openbsd2.[89] | openbsd2.[89].*)
17772 shlibpath_overrides_runpath=no
17775 shlibpath_overrides_runpath=yes
17777 esac
17778 else
17779 shlibpath_overrides_runpath=yes
17783 os2*)
17784 libname_spec='$name'
17785 shrext_cmds=".dll"
17786 need_lib_prefix=no
17787 library_names_spec='$libname${shared_ext} $libname.a'
17788 dynamic_linker='OS/2 ld.exe'
17789 shlibpath_var=LIBPATH
17792 osf3* | osf4* | osf5*)
17793 version_type=osf
17794 need_lib_prefix=no
17795 need_version=no
17796 soname_spec='${libname}${release}${shared_ext}$major'
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17798 shlibpath_var=LD_LIBRARY_PATH
17799 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17800 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17803 sco3.2v5*)
17804 version_type=osf
17805 soname_spec='${libname}${release}${shared_ext}$major'
17806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17807 shlibpath_var=LD_LIBRARY_PATH
17810 solaris*)
17811 version_type=linux
17812 need_lib_prefix=no
17813 need_version=no
17814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17815 soname_spec='${libname}${release}${shared_ext}$major'
17816 shlibpath_var=LD_LIBRARY_PATH
17817 shlibpath_overrides_runpath=yes
17818 hardcode_into_libs=yes
17819 # ldd complains unless libraries are executable
17820 postinstall_cmds='chmod +x $lib'
17823 sunos4*)
17824 version_type=sunos
17825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17826 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17827 shlibpath_var=LD_LIBRARY_PATH
17828 shlibpath_overrides_runpath=yes
17829 if test "$with_gnu_ld" = yes; then
17830 need_lib_prefix=no
17832 need_version=yes
17835 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17836 version_type=linux
17837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17838 soname_spec='${libname}${release}${shared_ext}$major'
17839 shlibpath_var=LD_LIBRARY_PATH
17840 case $host_vendor in
17841 sni)
17842 shlibpath_overrides_runpath=no
17843 need_lib_prefix=no
17844 export_dynamic_flag_spec='${wl}-Blargedynsym'
17845 runpath_var=LD_RUN_PATH
17847 siemens)
17848 need_lib_prefix=no
17850 motorola)
17851 need_lib_prefix=no
17852 need_version=no
17853 shlibpath_overrides_runpath=no
17854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17856 esac
17859 sysv4*MP*)
17860 if test -d /usr/nec ;then
17861 version_type=linux
17862 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17863 soname_spec='$libname${shared_ext}.$major'
17864 shlibpath_var=LD_LIBRARY_PATH
17868 uts4*)
17869 version_type=linux
17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17871 soname_spec='${libname}${release}${shared_ext}$major'
17872 shlibpath_var=LD_LIBRARY_PATH
17876 dynamic_linker=no
17878 esac
17879 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17880 echo "${ECHO_T}$dynamic_linker" >&6
17881 test "$dynamic_linker" = no && can_build_shared=no
17883 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17884 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17885 hardcode_action_GCJ=
17886 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17887 test -n "$runpath_var_GCJ" || \
17888 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17890 # We can hardcode non-existant directories.
17891 if test "$hardcode_direct_GCJ" != no &&
17892 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17893 # have to relink, otherwise we might link with an installed library
17894 # when we should be linking with a yet-to-be-installed one
17895 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17896 test "$hardcode_minus_L_GCJ" != no; then
17897 # Linking always hardcodes the temporary library directory.
17898 hardcode_action_GCJ=relink
17899 else
17900 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17901 hardcode_action_GCJ=immediate
17903 else
17904 # We cannot hardcode anything, or else we can only hardcode existing
17905 # directories.
17906 hardcode_action_GCJ=unsupported
17908 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17909 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17911 if test "$hardcode_action_GCJ" = relink; then
17912 # Fast installation is not supported
17913 enable_fast_install=no
17914 elif test "$shlibpath_overrides_runpath" = yes ||
17915 test "$enable_shared" = no; then
17916 # Fast installation is not necessary
17917 enable_fast_install=needless
17920 striplib=
17921 old_striplib=
17922 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17923 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17924 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17925 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17926 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17927 echo "$as_me:$LINENO: result: yes" >&5
17928 echo "${ECHO_T}yes" >&6
17929 else
17930 # FIXME - insert some real tests, host_os isn't really good enough
17931 case $host_os in
17932 darwin*)
17933 if test -n "$STRIP" ; then
17934 striplib="$STRIP -x"
17935 echo "$as_me:$LINENO: result: yes" >&5
17936 echo "${ECHO_T}yes" >&6
17937 else
17938 echo "$as_me:$LINENO: result: no" >&5
17939 echo "${ECHO_T}no" >&6
17943 echo "$as_me:$LINENO: result: no" >&5
17944 echo "${ECHO_T}no" >&6
17946 esac
17949 if test "x$enable_dlopen" != xyes; then
17950 enable_dlopen=unknown
17951 enable_dlopen_self=unknown
17952 enable_dlopen_self_static=unknown
17953 else
17954 lt_cv_dlopen=no
17955 lt_cv_dlopen_libs=
17957 case $host_os in
17958 beos*)
17959 lt_cv_dlopen="load_add_on"
17960 lt_cv_dlopen_libs=
17961 lt_cv_dlopen_self=yes
17964 mingw* | pw32*)
17965 lt_cv_dlopen="LoadLibrary"
17966 lt_cv_dlopen_libs=
17969 cygwin*)
17970 lt_cv_dlopen="dlopen"
17971 lt_cv_dlopen_libs=
17974 darwin*)
17975 # if libdl is installed we need to link against it
17976 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17977 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17978 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 else
17981 ac_check_lib_save_LIBS=$LIBS
17982 LIBS="-ldl $LIBS"
17983 cat >conftest.$ac_ext <<_ACEOF
17984 /* confdefs.h. */
17985 _ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17990 /* Override any gcc2 internal prototype to avoid an error. */
17991 #ifdef __cplusplus
17992 extern "C"
17993 #endif
17994 /* We use char because int might match the return type of a gcc2
17995 builtin and then its argument prototype would still apply. */
17996 char dlopen ();
17998 main ()
18000 dlopen ();
18002 return 0;
18004 _ACEOF
18005 rm -f conftest.$ac_objext conftest$ac_exeext
18006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18007 (eval $ac_link) 2>conftest.er1
18008 ac_status=$?
18009 grep -v '^ *+' conftest.er1 >conftest.err
18010 rm -f conftest.er1
18011 cat conftest.err >&5
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); } &&
18014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18016 (eval $ac_try) 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; } &&
18020 { ac_try='test -s conftest$ac_exeext'
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; }; then
18026 ac_cv_lib_dl_dlopen=yes
18027 else
18028 echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18031 ac_cv_lib_dl_dlopen=no
18033 rm -f conftest.err conftest.$ac_objext \
18034 conftest$ac_exeext conftest.$ac_ext
18035 LIBS=$ac_check_lib_save_LIBS
18037 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18038 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18039 if test $ac_cv_lib_dl_dlopen = yes; then
18040 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18041 else
18043 lt_cv_dlopen="dyld"
18044 lt_cv_dlopen_libs=
18045 lt_cv_dlopen_self=yes
18052 echo "$as_me:$LINENO: checking for shl_load" >&5
18053 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18054 if test "${ac_cv_func_shl_load+set}" = set; then
18055 echo $ECHO_N "(cached) $ECHO_C" >&6
18056 else
18057 cat >conftest.$ac_ext <<_ACEOF
18058 /* confdefs.h. */
18059 _ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18063 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18065 #define shl_load innocuous_shl_load
18067 /* System header to define __stub macros and hopefully few prototypes,
18068 which can conflict with char shl_load (); below.
18069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18070 <limits.h> exists even on freestanding compilers. */
18072 #ifdef __STDC__
18073 # include <limits.h>
18074 #else
18075 # include <assert.h>
18076 #endif
18078 #undef shl_load
18080 /* Override any gcc2 internal prototype to avoid an error. */
18081 #ifdef __cplusplus
18082 extern "C"
18084 #endif
18085 /* We use char because int might match the return type of a gcc2
18086 builtin and then its argument prototype would still apply. */
18087 char shl_load ();
18088 /* The GNU C library defines this for functions which it implements
18089 to always fail with ENOSYS. Some functions are actually named
18090 something starting with __ and the normal name is an alias. */
18091 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18092 choke me
18093 #else
18094 char (*f) () = shl_load;
18095 #endif
18096 #ifdef __cplusplus
18098 #endif
18101 main ()
18103 return f != shl_load;
18105 return 0;
18107 _ACEOF
18108 rm -f conftest.$ac_objext conftest$ac_exeext
18109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18110 (eval $ac_link) 2>conftest.er1
18111 ac_status=$?
18112 grep -v '^ *+' conftest.er1 >conftest.err
18113 rm -f conftest.er1
18114 cat conftest.err >&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } &&
18117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest$ac_exeext'
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; }; then
18129 ac_cv_func_shl_load=yes
18130 else
18131 echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18134 ac_cv_func_shl_load=no
18136 rm -f conftest.err conftest.$ac_objext \
18137 conftest$ac_exeext conftest.$ac_ext
18139 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18140 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18141 if test $ac_cv_func_shl_load = yes; then
18142 lt_cv_dlopen="shl_load"
18143 else
18144 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18145 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18146 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 else
18149 ac_check_lib_save_LIBS=$LIBS
18150 LIBS="-ldld $LIBS"
18151 cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h. */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18158 /* Override any gcc2 internal prototype to avoid an error. */
18159 #ifdef __cplusplus
18160 extern "C"
18161 #endif
18162 /* We use char because int might match the return type of a gcc2
18163 builtin and then its argument prototype would still apply. */
18164 char shl_load ();
18166 main ()
18168 shl_load ();
18170 return 0;
18172 _ACEOF
18173 rm -f conftest.$ac_objext conftest$ac_exeext
18174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18175 (eval $ac_link) 2>conftest.er1
18176 ac_status=$?
18177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
18182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184 (eval $ac_try) 2>&5
18185 ac_status=$?
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; } &&
18188 { ac_try='test -s conftest$ac_exeext'
18189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190 (eval $ac_try) 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; }; then
18194 ac_cv_lib_dld_shl_load=yes
18195 else
18196 echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18199 ac_cv_lib_dld_shl_load=no
18201 rm -f conftest.err conftest.$ac_objext \
18202 conftest$ac_exeext conftest.$ac_ext
18203 LIBS=$ac_check_lib_save_LIBS
18205 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18206 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18207 if test $ac_cv_lib_dld_shl_load = yes; then
18208 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18209 else
18210 echo "$as_me:$LINENO: checking for dlopen" >&5
18211 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18212 if test "${ac_cv_func_dlopen+set}" = set; then
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 else
18215 cat >conftest.$ac_ext <<_ACEOF
18216 /* confdefs.h. */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h. */
18221 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18223 #define dlopen innocuous_dlopen
18225 /* System header to define __stub macros and hopefully few prototypes,
18226 which can conflict with char dlopen (); below.
18227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18228 <limits.h> exists even on freestanding compilers. */
18230 #ifdef __STDC__
18231 # include <limits.h>
18232 #else
18233 # include <assert.h>
18234 #endif
18236 #undef dlopen
18238 /* Override any gcc2 internal prototype to avoid an error. */
18239 #ifdef __cplusplus
18240 extern "C"
18242 #endif
18243 /* We use char because int might match the return type of a gcc2
18244 builtin and then its argument prototype would still apply. */
18245 char dlopen ();
18246 /* The GNU C library defines this for functions which it implements
18247 to always fail with ENOSYS. Some functions are actually named
18248 something starting with __ and the normal name is an alias. */
18249 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18250 choke me
18251 #else
18252 char (*f) () = dlopen;
18253 #endif
18254 #ifdef __cplusplus
18256 #endif
18259 main ()
18261 return f != dlopen;
18263 return 0;
18265 _ACEOF
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18268 (eval $ac_link) 2>conftest.er1
18269 ac_status=$?
18270 grep -v '^ *+' conftest.er1 >conftest.err
18271 rm -f conftest.er1
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } &&
18281 { ac_try='test -s conftest$ac_exeext'
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; }; then
18287 ac_cv_func_dlopen=yes
18288 else
18289 echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.$ac_ext >&5
18292 ac_cv_func_dlopen=no
18294 rm -f conftest.err conftest.$ac_objext \
18295 conftest$ac_exeext conftest.$ac_ext
18297 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18298 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18299 if test $ac_cv_func_dlopen = yes; then
18300 lt_cv_dlopen="dlopen"
18301 else
18302 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18303 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18304 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307 ac_check_lib_save_LIBS=$LIBS
18308 LIBS="-ldl $LIBS"
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h. */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18316 /* Override any gcc2 internal prototype to avoid an error. */
18317 #ifdef __cplusplus
18318 extern "C"
18319 #endif
18320 /* We use char because int might match the return type of a gcc2
18321 builtin and then its argument prototype would still apply. */
18322 char dlopen ();
18324 main ()
18326 dlopen ();
18328 return 0;
18330 _ACEOF
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18333 (eval $ac_link) 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try='test -s conftest$ac_exeext'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18352 ac_cv_lib_dl_dlopen=yes
18353 else
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18357 ac_cv_lib_dl_dlopen=no
18359 rm -f conftest.err conftest.$ac_objext \
18360 conftest$ac_exeext conftest.$ac_ext
18361 LIBS=$ac_check_lib_save_LIBS
18363 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18364 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18365 if test $ac_cv_lib_dl_dlopen = yes; then
18366 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18367 else
18368 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18369 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18370 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18371 echo $ECHO_N "(cached) $ECHO_C" >&6
18372 else
18373 ac_check_lib_save_LIBS=$LIBS
18374 LIBS="-lsvld $LIBS"
18375 cat >conftest.$ac_ext <<_ACEOF
18376 /* confdefs.h. */
18377 _ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18382 /* Override any gcc2 internal prototype to avoid an error. */
18383 #ifdef __cplusplus
18384 extern "C"
18385 #endif
18386 /* We use char because int might match the return type of a gcc2
18387 builtin and then its argument prototype would still apply. */
18388 char dlopen ();
18390 main ()
18392 dlopen ();
18394 return 0;
18396 _ACEOF
18397 rm -f conftest.$ac_objext conftest$ac_exeext
18398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18399 (eval $ac_link) 2>conftest.er1
18400 ac_status=$?
18401 grep -v '^ *+' conftest.er1 >conftest.err
18402 rm -f conftest.er1
18403 cat conftest.err >&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } &&
18406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408 (eval $ac_try) 2>&5
18409 ac_status=$?
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; } &&
18412 { ac_try='test -s conftest$ac_exeext'
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 ac_cv_lib_svld_dlopen=yes
18419 else
18420 echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18423 ac_cv_lib_svld_dlopen=no
18425 rm -f conftest.err conftest.$ac_objext \
18426 conftest$ac_exeext conftest.$ac_ext
18427 LIBS=$ac_check_lib_save_LIBS
18429 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18430 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18431 if test $ac_cv_lib_svld_dlopen = yes; then
18432 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18433 else
18434 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18435 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18436 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18438 else
18439 ac_check_lib_save_LIBS=$LIBS
18440 LIBS="-ldld $LIBS"
18441 cat >conftest.$ac_ext <<_ACEOF
18442 /* confdefs.h. */
18443 _ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h. */
18448 /* Override any gcc2 internal prototype to avoid an error. */
18449 #ifdef __cplusplus
18450 extern "C"
18451 #endif
18452 /* We use char because int might match the return type of a gcc2
18453 builtin and then its argument prototype would still apply. */
18454 char dld_link ();
18456 main ()
18458 dld_link ();
18460 return 0;
18462 _ACEOF
18463 rm -f conftest.$ac_objext conftest$ac_exeext
18464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18465 (eval $ac_link) 2>conftest.er1
18466 ac_status=$?
18467 grep -v '^ *+' conftest.er1 >conftest.err
18468 rm -f conftest.er1
18469 cat conftest.err >&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); } &&
18472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; } &&
18478 { ac_try='test -s conftest$ac_exeext'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 ac_cv_lib_dld_dld_link=yes
18485 else
18486 echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18489 ac_cv_lib_dld_dld_link=no
18491 rm -f conftest.err conftest.$ac_objext \
18492 conftest$ac_exeext conftest.$ac_ext
18493 LIBS=$ac_check_lib_save_LIBS
18495 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18496 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18497 if test $ac_cv_lib_dld_dld_link = yes; then
18498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18517 esac
18519 if test "x$lt_cv_dlopen" != xno; then
18520 enable_dlopen=yes
18521 else
18522 enable_dlopen=no
18525 case $lt_cv_dlopen in
18526 dlopen)
18527 save_CPPFLAGS="$CPPFLAGS"
18528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18530 save_LDFLAGS="$LDFLAGS"
18531 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18533 save_LIBS="$LIBS"
18534 LIBS="$lt_cv_dlopen_libs $LIBS"
18536 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18537 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18538 if test "${lt_cv_dlopen_self+set}" = set; then
18539 echo $ECHO_N "(cached) $ECHO_C" >&6
18540 else
18541 if test "$cross_compiling" = yes; then :
18542 lt_cv_dlopen_self=cross
18543 else
18544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18545 lt_status=$lt_dlunknown
18546 cat > conftest.$ac_ext <<EOF
18547 #line 18547 "configure"
18548 #include "confdefs.h"
18550 #if HAVE_DLFCN_H
18551 #include <dlfcn.h>
18552 #endif
18554 #include <stdio.h>
18556 #ifdef RTLD_GLOBAL
18557 # define LT_DLGLOBAL RTLD_GLOBAL
18558 #else
18559 # ifdef DL_GLOBAL
18560 # define LT_DLGLOBAL DL_GLOBAL
18561 # else
18562 # define LT_DLGLOBAL 0
18563 # endif
18564 #endif
18566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18567 find out it does not work in some platform. */
18568 #ifndef LT_DLLAZY_OR_NOW
18569 # ifdef RTLD_LAZY
18570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18571 # else
18572 # ifdef DL_LAZY
18573 # define LT_DLLAZY_OR_NOW DL_LAZY
18574 # else
18575 # ifdef RTLD_NOW
18576 # define LT_DLLAZY_OR_NOW RTLD_NOW
18577 # else
18578 # ifdef DL_NOW
18579 # define LT_DLLAZY_OR_NOW DL_NOW
18580 # else
18581 # define LT_DLLAZY_OR_NOW 0
18582 # endif
18583 # endif
18584 # endif
18585 # endif
18586 #endif
18588 #ifdef __cplusplus
18589 extern "C" void exit (int);
18590 #endif
18592 void fnord() { int i=42;}
18593 int main ()
18595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18596 int status = $lt_dlunknown;
18598 if (self)
18600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18602 /* dlclose (self); */
18605 exit (status);
18608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609 (eval $ac_link) 2>&5
18610 ac_status=$?
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18613 (./conftest; exit; ) >&5 2>/dev/null
18614 lt_status=$?
18615 case x$lt_status in
18616 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18617 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18618 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18619 esac
18620 else :
18621 # compilation failed
18622 lt_cv_dlopen_self=no
18625 rm -fr conftest*
18629 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18630 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18632 if test "x$lt_cv_dlopen_self" = xyes; then
18633 LDFLAGS="$LDFLAGS $link_static_flag"
18634 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18635 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18636 if test "${lt_cv_dlopen_self_static+set}" = set; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18638 else
18639 if test "$cross_compiling" = yes; then :
18640 lt_cv_dlopen_self_static=cross
18641 else
18642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18643 lt_status=$lt_dlunknown
18644 cat > conftest.$ac_ext <<EOF
18645 #line 18645 "configure"
18646 #include "confdefs.h"
18648 #if HAVE_DLFCN_H
18649 #include <dlfcn.h>
18650 #endif
18652 #include <stdio.h>
18654 #ifdef RTLD_GLOBAL
18655 # define LT_DLGLOBAL RTLD_GLOBAL
18656 #else
18657 # ifdef DL_GLOBAL
18658 # define LT_DLGLOBAL DL_GLOBAL
18659 # else
18660 # define LT_DLGLOBAL 0
18661 # endif
18662 #endif
18664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18665 find out it does not work in some platform. */
18666 #ifndef LT_DLLAZY_OR_NOW
18667 # ifdef RTLD_LAZY
18668 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18669 # else
18670 # ifdef DL_LAZY
18671 # define LT_DLLAZY_OR_NOW DL_LAZY
18672 # else
18673 # ifdef RTLD_NOW
18674 # define LT_DLLAZY_OR_NOW RTLD_NOW
18675 # else
18676 # ifdef DL_NOW
18677 # define LT_DLLAZY_OR_NOW DL_NOW
18678 # else
18679 # define LT_DLLAZY_OR_NOW 0
18680 # endif
18681 # endif
18682 # endif
18683 # endif
18684 #endif
18686 #ifdef __cplusplus
18687 extern "C" void exit (int);
18688 #endif
18690 void fnord() { int i=42;}
18691 int main ()
18693 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18694 int status = $lt_dlunknown;
18696 if (self)
18698 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18699 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18700 /* dlclose (self); */
18703 exit (status);
18706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18707 (eval $ac_link) 2>&5
18708 ac_status=$?
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18711 (./conftest; exit; ) >&5 2>/dev/null
18712 lt_status=$?
18713 case x$lt_status in
18714 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18715 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18716 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18717 esac
18718 else :
18719 # compilation failed
18720 lt_cv_dlopen_self_static=no
18723 rm -fr conftest*
18727 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18728 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18731 CPPFLAGS="$save_CPPFLAGS"
18732 LDFLAGS="$save_LDFLAGS"
18733 LIBS="$save_LIBS"
18735 esac
18737 case $lt_cv_dlopen_self in
18738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18739 *) enable_dlopen_self=unknown ;;
18740 esac
18742 case $lt_cv_dlopen_self_static in
18743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18744 *) enable_dlopen_self_static=unknown ;;
18745 esac
18749 # The else clause should only fire when bootstrapping the
18750 # libtool distribution, otherwise you forgot to ship ltmain.sh
18751 # with your package, and you will get complaints that there are
18752 # no rules to generate ltmain.sh.
18753 if test -f "$ltmain"; then
18754 # See if we are running on zsh, and set the options which allow our commands through
18755 # without removal of \ escapes.
18756 if test -n "${ZSH_VERSION+set}" ; then
18757 setopt NO_GLOB_SUBST
18759 # Now quote all the things that may contain metacharacters while being
18760 # careful not to overquote the AC_SUBSTed values. We take copies of the
18761 # variables and quote the copies for generation of the libtool script.
18762 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18763 SED SHELL STRIP \
18764 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18765 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18766 deplibs_check_method reload_flag reload_cmds need_locks \
18767 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18768 lt_cv_sys_global_symbol_to_c_name_address \
18769 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18770 old_postinstall_cmds old_postuninstall_cmds \
18771 compiler_GCJ \
18772 CC_GCJ \
18773 LD_GCJ \
18774 lt_prog_compiler_wl_GCJ \
18775 lt_prog_compiler_pic_GCJ \
18776 lt_prog_compiler_static_GCJ \
18777 lt_prog_compiler_no_builtin_flag_GCJ \
18778 export_dynamic_flag_spec_GCJ \
18779 thread_safe_flag_spec_GCJ \
18780 whole_archive_flag_spec_GCJ \
18781 enable_shared_with_static_runtimes_GCJ \
18782 old_archive_cmds_GCJ \
18783 old_archive_from_new_cmds_GCJ \
18784 predep_objects_GCJ \
18785 postdep_objects_GCJ \
18786 predeps_GCJ \
18787 postdeps_GCJ \
18788 compiler_lib_search_path_GCJ \
18789 archive_cmds_GCJ \
18790 archive_expsym_cmds_GCJ \
18791 postinstall_cmds_GCJ \
18792 postuninstall_cmds_GCJ \
18793 old_archive_from_expsyms_cmds_GCJ \
18794 allow_undefined_flag_GCJ \
18795 no_undefined_flag_GCJ \
18796 export_symbols_cmds_GCJ \
18797 hardcode_libdir_flag_spec_GCJ \
18798 hardcode_libdir_flag_spec_ld_GCJ \
18799 hardcode_libdir_separator_GCJ \
18800 hardcode_automatic_GCJ \
18801 module_cmds_GCJ \
18802 module_expsym_cmds_GCJ \
18803 lt_cv_prog_compiler_c_o_GCJ \
18804 exclude_expsyms_GCJ \
18805 include_expsyms_GCJ; do
18807 case $var in
18808 old_archive_cmds_GCJ | \
18809 old_archive_from_new_cmds_GCJ | \
18810 archive_cmds_GCJ | \
18811 archive_expsym_cmds_GCJ | \
18812 module_cmds_GCJ | \
18813 module_expsym_cmds_GCJ | \
18814 old_archive_from_expsyms_cmds_GCJ | \
18815 export_symbols_cmds_GCJ | \
18816 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18817 postinstall_cmds | postuninstall_cmds | \
18818 old_postinstall_cmds | old_postuninstall_cmds | \
18819 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18820 # Double-quote double-evaled strings.
18821 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18824 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18826 esac
18827 done
18829 case $lt_echo in
18830 *'\$0 --fallback-echo"')
18831 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18833 esac
18835 cfgfile="$ofile"
18837 cat <<__EOF__ >> "$cfgfile"
18838 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18842 # Shell to use when invoking shell scripts.
18843 SHELL=$lt_SHELL
18845 # Whether or not to build shared libraries.
18846 build_libtool_libs=$enable_shared
18848 # Whether or not to build static libraries.
18849 build_old_libs=$enable_static
18851 # Whether or not to add -lc for building shared libraries.
18852 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18854 # Whether or not to disallow shared libs when runtime libs are static
18855 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18857 # Whether or not to optimize for fast installation.
18858 fast_install=$enable_fast_install
18860 # The host system.
18861 host_alias=$host_alias
18862 host=$host
18863 host_os=$host_os
18865 # The build system.
18866 build_alias=$build_alias
18867 build=$build
18868 build_os=$build_os
18870 # An echo program that does not interpret backslashes.
18871 echo=$lt_echo
18873 # The archiver.
18874 AR=$lt_AR
18875 AR_FLAGS=$lt_AR_FLAGS
18877 # A C compiler.
18878 LTCC=$lt_LTCC
18880 # A language-specific compiler.
18881 CC=$lt_compiler_GCJ
18883 # Is the compiler the GNU C compiler?
18884 with_gcc=$GCC_GCJ
18886 # An ERE matcher.
18887 EGREP=$lt_EGREP
18889 # The linker used to build libraries.
18890 LD=$lt_LD_GCJ
18892 # Whether we need hard or soft links.
18893 LN_S=$lt_LN_S
18895 # A BSD-compatible nm program.
18896 NM=$lt_NM
18898 # A symbol stripping program
18899 STRIP=$lt_STRIP
18901 # Used to examine libraries when file_magic_cmd begins "file"
18902 MAGIC_CMD=$MAGIC_CMD
18904 # Used on cygwin: DLL creation program.
18905 DLLTOOL="$DLLTOOL"
18907 # Used on cygwin: object dumper.
18908 OBJDUMP="$OBJDUMP"
18910 # Used on cygwin: assembler.
18911 AS="$AS"
18913 # The name of the directory that contains temporary libtool files.
18914 objdir=$objdir
18916 # How to create reloadable object files.
18917 reload_flag=$lt_reload_flag
18918 reload_cmds=$lt_reload_cmds
18920 # How to pass a linker flag through the compiler.
18921 wl=$lt_lt_prog_compiler_wl_GCJ
18923 # Object file suffix (normally "o").
18924 objext="$ac_objext"
18926 # Old archive suffix (normally "a").
18927 libext="$libext"
18929 # Shared library suffix (normally ".so").
18930 shrext_cmds='$shrext_cmds'
18932 # Executable file suffix (normally "").
18933 exeext="$exeext"
18935 # Additional compiler flags for building library objects.
18936 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18937 pic_mode=$pic_mode
18939 # What is the maximum length of a command?
18940 max_cmd_len=$lt_cv_sys_max_cmd_len
18942 # Does compiler simultaneously support -c and -o options?
18943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18945 # Must we lock files when doing compilation?
18946 need_locks=$lt_need_locks
18948 # Do we need the lib prefix for modules?
18949 need_lib_prefix=$need_lib_prefix
18951 # Do we need a version for libraries?
18952 need_version=$need_version
18954 # Whether dlopen is supported.
18955 dlopen_support=$enable_dlopen
18957 # Whether dlopen of programs is supported.
18958 dlopen_self=$enable_dlopen_self
18960 # Whether dlopen of statically linked programs is supported.
18961 dlopen_self_static=$enable_dlopen_self_static
18963 # Compiler flag to prevent dynamic linking.
18964 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18966 # Compiler flag to turn off builtin functions.
18967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18969 # Compiler flag to allow reflexive dlopens.
18970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18972 # Compiler flag to generate shared objects directly from archives.
18973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18975 # Compiler flag to generate thread-safe objects.
18976 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18978 # Library versioning type.
18979 version_type=$version_type
18981 # Format of library name prefix.
18982 libname_spec=$lt_libname_spec
18984 # List of archive names. First name is the real one, the rest are links.
18985 # The last name is the one that the linker finds with -lNAME.
18986 library_names_spec=$lt_library_names_spec
18988 # The coded name of the library, if different from the real name.
18989 soname_spec=$lt_soname_spec
18991 # Commands used to build and install an old-style archive.
18992 RANLIB=$lt_RANLIB
18993 old_archive_cmds=$lt_old_archive_cmds_GCJ
18994 old_postinstall_cmds=$lt_old_postinstall_cmds
18995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18997 # Create an old-style archive from a shared archive.
18998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19000 # Create a temporary old-style archive to link instead of a shared archive.
19001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19003 # Commands used to build and install a shared archive.
19004 archive_cmds=$lt_archive_cmds_GCJ
19005 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19006 postinstall_cmds=$lt_postinstall_cmds
19007 postuninstall_cmds=$lt_postuninstall_cmds
19009 # Commands used to build a loadable module (assumed same as above if empty)
19010 module_cmds=$lt_module_cmds_GCJ
19011 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19013 # Commands to strip libraries.
19014 old_striplib=$lt_old_striplib
19015 striplib=$lt_striplib
19017 # Dependencies to place before the objects being linked to create a
19018 # shared library.
19019 predep_objects=$lt_predep_objects_GCJ
19021 # Dependencies to place after the objects being linked to create a
19022 # shared library.
19023 postdep_objects=$lt_postdep_objects_GCJ
19025 # Dependencies to place before the objects being linked to create a
19026 # shared library.
19027 predeps=$lt_predeps_GCJ
19029 # Dependencies to place after the objects being linked to create a
19030 # shared library.
19031 postdeps=$lt_postdeps_GCJ
19033 # The library search path used internally by the compiler when linking
19034 # a shared library.
19035 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19037 # Method to check whether dependent libraries are shared objects.
19038 deplibs_check_method=$lt_deplibs_check_method
19040 # Command to use when deplibs_check_method == file_magic.
19041 file_magic_cmd=$lt_file_magic_cmd
19043 # Flag that allows shared libraries with undefined symbols to be built.
19044 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19046 # Flag that forces no undefined symbols.
19047 no_undefined_flag=$lt_no_undefined_flag_GCJ
19049 # Commands used to finish a libtool library installation in a directory.
19050 finish_cmds=$lt_finish_cmds
19052 # Same as above, but a single script fragment to be evaled but not shown.
19053 finish_eval=$lt_finish_eval
19055 # Take the output of nm and produce a listing of raw symbols and C names.
19056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19058 # Transform the output of nm in a proper C declaration
19059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19061 # Transform the output of nm in a C name address pair
19062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19064 # This is the shared library runtime path variable.
19065 runpath_var=$runpath_var
19067 # This is the shared library path variable.
19068 shlibpath_var=$shlibpath_var
19070 # Is shlibpath searched before the hard-coded library search path?
19071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19073 # How to hardcode a shared library path into an executable.
19074 hardcode_action=$hardcode_action_GCJ
19076 # Whether we should hardcode library paths into libraries.
19077 hardcode_into_libs=$hardcode_into_libs
19079 # Flag to hardcode \$libdir into a binary during linking.
19080 # This must work even if \$libdir does not exist.
19081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19083 # If ld is used when linking, flag to hardcode \$libdir into
19084 # a binary during linking. This must work even if \$libdir does
19085 # not exist.
19086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19088 # Whether we need a single -rpath flag with a separated argument.
19089 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19092 # resulting binary.
19093 hardcode_direct=$hardcode_direct_GCJ
19095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19096 # resulting binary.
19097 hardcode_minus_L=$hardcode_minus_L_GCJ
19099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19100 # the resulting binary.
19101 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19103 # Set to yes if building a shared library automatically hardcodes DIR into the library
19104 # and all subsequent libraries and executables linked against it.
19105 hardcode_automatic=$hardcode_automatic_GCJ
19107 # Variables whose values should be saved in libtool wrapper scripts and
19108 # restored at relink time.
19109 variables_saved_for_relink="$variables_saved_for_relink"
19111 # Whether libtool must link a program against all its dependency libraries.
19112 link_all_deplibs=$link_all_deplibs_GCJ
19114 # Compile-time system search path for libraries
19115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19117 # Run-time system search path for libraries
19118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19120 # Fix the shell variable \$srcfile for the compiler.
19121 fix_srcfile_path="$fix_srcfile_path_GCJ"
19123 # Set to yes if exported symbols are required.
19124 always_export_symbols=$always_export_symbols_GCJ
19126 # The commands to list exported symbols.
19127 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19129 # The commands to extract the exported symbol list from a shared archive.
19130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19132 # Symbols that should not be listed in the preloaded symbols.
19133 exclude_expsyms=$lt_exclude_expsyms_GCJ
19135 # Symbols that must always be exported.
19136 include_expsyms=$lt_include_expsyms_GCJ
19138 # ### END LIBTOOL TAG CONFIG: $tagname
19140 __EOF__
19143 else
19144 # If there is no Makefile yet, we rely on a make rule to execute
19145 # `config.status --recheck' to rerun these tests and create the
19146 # libtool script then.
19147 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19148 if test -f "$ltmain_in"; then
19149 test -f Makefile && make "$ltmain"
19154 ac_ext=c
19155 ac_cpp='$CPP $CPPFLAGS'
19156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19160 CC="$lt_save_CC"
19162 else
19163 tagname=""
19171 # Source file extension for RC test sources.
19172 ac_ext=rc
19174 # Object file extension for compiled RC test sources.
19175 objext=o
19176 objext_RC=$objext
19178 # Code to be used in simple compile tests
19179 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19181 # Code to be used in simple link tests
19182 lt_simple_link_test_code="$lt_simple_compile_test_code"
19184 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19186 # If no C compiler was specified, use CC.
19187 LTCC=${LTCC-"$CC"}
19189 # Allow CC to be a program name with arguments.
19190 compiler=$CC
19193 # save warnings/boilerplate of simple test code
19194 ac_outfile=conftest.$ac_objext
19195 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19196 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19197 _lt_compiler_boilerplate=`cat conftest.err`
19198 $rm conftest*
19200 ac_outfile=conftest.$ac_objext
19201 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19202 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19203 _lt_linker_boilerplate=`cat conftest.err`
19204 $rm conftest*
19207 # Allow CC to be a program name with arguments.
19208 lt_save_CC="$CC"
19209 CC=${RC-"windres"}
19210 compiler=$CC
19211 compiler_RC=$CC
19212 for cc_temp in $compiler""; do
19213 case $cc_temp in
19214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19216 \-*) ;;
19217 *) break;;
19218 esac
19219 done
19220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19222 lt_cv_prog_compiler_c_o_RC=yes
19224 # The else clause should only fire when bootstrapping the
19225 # libtool distribution, otherwise you forgot to ship ltmain.sh
19226 # with your package, and you will get complaints that there are
19227 # no rules to generate ltmain.sh.
19228 if test -f "$ltmain"; then
19229 # See if we are running on zsh, and set the options which allow our commands through
19230 # without removal of \ escapes.
19231 if test -n "${ZSH_VERSION+set}" ; then
19232 setopt NO_GLOB_SUBST
19234 # Now quote all the things that may contain metacharacters while being
19235 # careful not to overquote the AC_SUBSTed values. We take copies of the
19236 # variables and quote the copies for generation of the libtool script.
19237 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19238 SED SHELL STRIP \
19239 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19240 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19241 deplibs_check_method reload_flag reload_cmds need_locks \
19242 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19243 lt_cv_sys_global_symbol_to_c_name_address \
19244 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19245 old_postinstall_cmds old_postuninstall_cmds \
19246 compiler_RC \
19247 CC_RC \
19248 LD_RC \
19249 lt_prog_compiler_wl_RC \
19250 lt_prog_compiler_pic_RC \
19251 lt_prog_compiler_static_RC \
19252 lt_prog_compiler_no_builtin_flag_RC \
19253 export_dynamic_flag_spec_RC \
19254 thread_safe_flag_spec_RC \
19255 whole_archive_flag_spec_RC \
19256 enable_shared_with_static_runtimes_RC \
19257 old_archive_cmds_RC \
19258 old_archive_from_new_cmds_RC \
19259 predep_objects_RC \
19260 postdep_objects_RC \
19261 predeps_RC \
19262 postdeps_RC \
19263 compiler_lib_search_path_RC \
19264 archive_cmds_RC \
19265 archive_expsym_cmds_RC \
19266 postinstall_cmds_RC \
19267 postuninstall_cmds_RC \
19268 old_archive_from_expsyms_cmds_RC \
19269 allow_undefined_flag_RC \
19270 no_undefined_flag_RC \
19271 export_symbols_cmds_RC \
19272 hardcode_libdir_flag_spec_RC \
19273 hardcode_libdir_flag_spec_ld_RC \
19274 hardcode_libdir_separator_RC \
19275 hardcode_automatic_RC \
19276 module_cmds_RC \
19277 module_expsym_cmds_RC \
19278 lt_cv_prog_compiler_c_o_RC \
19279 exclude_expsyms_RC \
19280 include_expsyms_RC; do
19282 case $var in
19283 old_archive_cmds_RC | \
19284 old_archive_from_new_cmds_RC | \
19285 archive_cmds_RC | \
19286 archive_expsym_cmds_RC | \
19287 module_cmds_RC | \
19288 module_expsym_cmds_RC | \
19289 old_archive_from_expsyms_cmds_RC | \
19290 export_symbols_cmds_RC | \
19291 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19292 postinstall_cmds | postuninstall_cmds | \
19293 old_postinstall_cmds | old_postuninstall_cmds | \
19294 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19295 # Double-quote double-evaled strings.
19296 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19301 esac
19302 done
19304 case $lt_echo in
19305 *'\$0 --fallback-echo"')
19306 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19308 esac
19310 cfgfile="$ofile"
19312 cat <<__EOF__ >> "$cfgfile"
19313 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19315 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19317 # Shell to use when invoking shell scripts.
19318 SHELL=$lt_SHELL
19320 # Whether or not to build shared libraries.
19321 build_libtool_libs=$enable_shared
19323 # Whether or not to build static libraries.
19324 build_old_libs=$enable_static
19326 # Whether or not to add -lc for building shared libraries.
19327 build_libtool_need_lc=$archive_cmds_need_lc_RC
19329 # Whether or not to disallow shared libs when runtime libs are static
19330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19332 # Whether or not to optimize for fast installation.
19333 fast_install=$enable_fast_install
19335 # The host system.
19336 host_alias=$host_alias
19337 host=$host
19338 host_os=$host_os
19340 # The build system.
19341 build_alias=$build_alias
19342 build=$build
19343 build_os=$build_os
19345 # An echo program that does not interpret backslashes.
19346 echo=$lt_echo
19348 # The archiver.
19349 AR=$lt_AR
19350 AR_FLAGS=$lt_AR_FLAGS
19352 # A C compiler.
19353 LTCC=$lt_LTCC
19355 # A language-specific compiler.
19356 CC=$lt_compiler_RC
19358 # Is the compiler the GNU C compiler?
19359 with_gcc=$GCC_RC
19361 # An ERE matcher.
19362 EGREP=$lt_EGREP
19364 # The linker used to build libraries.
19365 LD=$lt_LD_RC
19367 # Whether we need hard or soft links.
19368 LN_S=$lt_LN_S
19370 # A BSD-compatible nm program.
19371 NM=$lt_NM
19373 # A symbol stripping program
19374 STRIP=$lt_STRIP
19376 # Used to examine libraries when file_magic_cmd begins "file"
19377 MAGIC_CMD=$MAGIC_CMD
19379 # Used on cygwin: DLL creation program.
19380 DLLTOOL="$DLLTOOL"
19382 # Used on cygwin: object dumper.
19383 OBJDUMP="$OBJDUMP"
19385 # Used on cygwin: assembler.
19386 AS="$AS"
19388 # The name of the directory that contains temporary libtool files.
19389 objdir=$objdir
19391 # How to create reloadable object files.
19392 reload_flag=$lt_reload_flag
19393 reload_cmds=$lt_reload_cmds
19395 # How to pass a linker flag through the compiler.
19396 wl=$lt_lt_prog_compiler_wl_RC
19398 # Object file suffix (normally "o").
19399 objext="$ac_objext"
19401 # Old archive suffix (normally "a").
19402 libext="$libext"
19404 # Shared library suffix (normally ".so").
19405 shrext_cmds='$shrext_cmds'
19407 # Executable file suffix (normally "").
19408 exeext="$exeext"
19410 # Additional compiler flags for building library objects.
19411 pic_flag=$lt_lt_prog_compiler_pic_RC
19412 pic_mode=$pic_mode
19414 # What is the maximum length of a command?
19415 max_cmd_len=$lt_cv_sys_max_cmd_len
19417 # Does compiler simultaneously support -c and -o options?
19418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19420 # Must we lock files when doing compilation?
19421 need_locks=$lt_need_locks
19423 # Do we need the lib prefix for modules?
19424 need_lib_prefix=$need_lib_prefix
19426 # Do we need a version for libraries?
19427 need_version=$need_version
19429 # Whether dlopen is supported.
19430 dlopen_support=$enable_dlopen
19432 # Whether dlopen of programs is supported.
19433 dlopen_self=$enable_dlopen_self
19435 # Whether dlopen of statically linked programs is supported.
19436 dlopen_self_static=$enable_dlopen_self_static
19438 # Compiler flag to prevent dynamic linking.
19439 link_static_flag=$lt_lt_prog_compiler_static_RC
19441 # Compiler flag to turn off builtin functions.
19442 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19444 # Compiler flag to allow reflexive dlopens.
19445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19447 # Compiler flag to generate shared objects directly from archives.
19448 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19450 # Compiler flag to generate thread-safe objects.
19451 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19453 # Library versioning type.
19454 version_type=$version_type
19456 # Format of library name prefix.
19457 libname_spec=$lt_libname_spec
19459 # List of archive names. First name is the real one, the rest are links.
19460 # The last name is the one that the linker finds with -lNAME.
19461 library_names_spec=$lt_library_names_spec
19463 # The coded name of the library, if different from the real name.
19464 soname_spec=$lt_soname_spec
19466 # Commands used to build and install an old-style archive.
19467 RANLIB=$lt_RANLIB
19468 old_archive_cmds=$lt_old_archive_cmds_RC
19469 old_postinstall_cmds=$lt_old_postinstall_cmds
19470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19472 # Create an old-style archive from a shared archive.
19473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19475 # Create a temporary old-style archive to link instead of a shared archive.
19476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19478 # Commands used to build and install a shared archive.
19479 archive_cmds=$lt_archive_cmds_RC
19480 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19481 postinstall_cmds=$lt_postinstall_cmds
19482 postuninstall_cmds=$lt_postuninstall_cmds
19484 # Commands used to build a loadable module (assumed same as above if empty)
19485 module_cmds=$lt_module_cmds_RC
19486 module_expsym_cmds=$lt_module_expsym_cmds_RC
19488 # Commands to strip libraries.
19489 old_striplib=$lt_old_striplib
19490 striplib=$lt_striplib
19492 # Dependencies to place before the objects being linked to create a
19493 # shared library.
19494 predep_objects=$lt_predep_objects_RC
19496 # Dependencies to place after the objects being linked to create a
19497 # shared library.
19498 postdep_objects=$lt_postdep_objects_RC
19500 # Dependencies to place before the objects being linked to create a
19501 # shared library.
19502 predeps=$lt_predeps_RC
19504 # Dependencies to place after the objects being linked to create a
19505 # shared library.
19506 postdeps=$lt_postdeps_RC
19508 # The library search path used internally by the compiler when linking
19509 # a shared library.
19510 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19512 # Method to check whether dependent libraries are shared objects.
19513 deplibs_check_method=$lt_deplibs_check_method
19515 # Command to use when deplibs_check_method == file_magic.
19516 file_magic_cmd=$lt_file_magic_cmd
19518 # Flag that allows shared libraries with undefined symbols to be built.
19519 allow_undefined_flag=$lt_allow_undefined_flag_RC
19521 # Flag that forces no undefined symbols.
19522 no_undefined_flag=$lt_no_undefined_flag_RC
19524 # Commands used to finish a libtool library installation in a directory.
19525 finish_cmds=$lt_finish_cmds
19527 # Same as above, but a single script fragment to be evaled but not shown.
19528 finish_eval=$lt_finish_eval
19530 # Take the output of nm and produce a listing of raw symbols and C names.
19531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19533 # Transform the output of nm in a proper C declaration
19534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19536 # Transform the output of nm in a C name address pair
19537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19539 # This is the shared library runtime path variable.
19540 runpath_var=$runpath_var
19542 # This is the shared library path variable.
19543 shlibpath_var=$shlibpath_var
19545 # Is shlibpath searched before the hard-coded library search path?
19546 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19548 # How to hardcode a shared library path into an executable.
19549 hardcode_action=$hardcode_action_RC
19551 # Whether we should hardcode library paths into libraries.
19552 hardcode_into_libs=$hardcode_into_libs
19554 # Flag to hardcode \$libdir into a binary during linking.
19555 # This must work even if \$libdir does not exist.
19556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19558 # If ld is used when linking, flag to hardcode \$libdir into
19559 # a binary during linking. This must work even if \$libdir does
19560 # not exist.
19561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19563 # Whether we need a single -rpath flag with a separated argument.
19564 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19566 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19567 # resulting binary.
19568 hardcode_direct=$hardcode_direct_RC
19570 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19571 # resulting binary.
19572 hardcode_minus_L=$hardcode_minus_L_RC
19574 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19575 # the resulting binary.
19576 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19578 # Set to yes if building a shared library automatically hardcodes DIR into the library
19579 # and all subsequent libraries and executables linked against it.
19580 hardcode_automatic=$hardcode_automatic_RC
19582 # Variables whose values should be saved in libtool wrapper scripts and
19583 # restored at relink time.
19584 variables_saved_for_relink="$variables_saved_for_relink"
19586 # Whether libtool must link a program against all its dependency libraries.
19587 link_all_deplibs=$link_all_deplibs_RC
19589 # Compile-time system search path for libraries
19590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19592 # Run-time system search path for libraries
19593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19595 # Fix the shell variable \$srcfile for the compiler.
19596 fix_srcfile_path="$fix_srcfile_path_RC"
19598 # Set to yes if exported symbols are required.
19599 always_export_symbols=$always_export_symbols_RC
19601 # The commands to list exported symbols.
19602 export_symbols_cmds=$lt_export_symbols_cmds_RC
19604 # The commands to extract the exported symbol list from a shared archive.
19605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19607 # Symbols that should not be listed in the preloaded symbols.
19608 exclude_expsyms=$lt_exclude_expsyms_RC
19610 # Symbols that must always be exported.
19611 include_expsyms=$lt_include_expsyms_RC
19613 # ### END LIBTOOL TAG CONFIG: $tagname
19615 __EOF__
19618 else
19619 # If there is no Makefile yet, we rely on a make rule to execute
19620 # `config.status --recheck' to rerun these tests and create the
19621 # libtool script then.
19622 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19623 if test -f "$ltmain_in"; then
19624 test -f Makefile && make "$ltmain"
19629 ac_ext=c
19630 ac_cpp='$CPP $CPPFLAGS'
19631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19635 CC="$lt_save_CC"
19640 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19641 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19642 { (exit 1); exit 1; }; }
19644 esac
19646 # Append the new tag name to the list of available tags.
19647 if test -n "$tagname" ; then
19648 available_tags="$available_tags $tagname"
19651 done
19652 IFS="$lt_save_ifs"
19654 # Now substitute the updated list of available tags.
19655 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19656 mv "${ofile}T" "$ofile"
19657 chmod +x "$ofile"
19658 else
19659 rm -f "${ofile}T"
19660 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19661 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19662 { (exit 1); exit 1; }; }
19668 # This can be used to rebuild libtool when needed
19669 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19671 # Always use our own libtool.
19672 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19674 # Prevent multiple expansion
19696 case "$am__api_version" in
19697 1.01234)
19698 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
19699 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
19700 { (exit 1); exit 1; }; }
19704 esac
19706 if test -n "0.23"; then
19707 echo "$as_me:$LINENO: checking for intltool >= 0.23" >&5
19708 echo $ECHO_N "checking for intltool >= 0.23... $ECHO_C" >&6
19710 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.23 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
19711 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
19712 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
19714 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
19715 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
19716 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
19717 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.23 or later." >&5
19718 echo "$as_me: error: Your intltool is too old. You need intltool 0.23 or later." >&2;}
19719 { (exit 1); exit 1; }; }
19722 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19723 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19724 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19725 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19726 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
19727 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19728 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19729 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19730 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19731 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19732 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19733 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
19734 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19735 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19736 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19737 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19738 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19739 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19760 # Use the tools built into the package, not the ones that are installed.
19761 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
19763 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
19765 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
19768 # Extract the first word of "perl", so it can be a program name with args.
19769 set dummy perl; ac_word=$2
19770 echo "$as_me:$LINENO: checking for $ac_word" >&5
19771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19772 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19775 case $INTLTOOL_PERL in
19776 [\\/]* | ?:[\\/]*)
19777 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
19780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19781 for as_dir in $PATH
19783 IFS=$as_save_IFS
19784 test -z "$as_dir" && as_dir=.
19785 for ac_exec_ext in '' $ac_executable_extensions; do
19786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19787 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
19788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19789 break 2
19791 done
19792 done
19795 esac
19797 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
19799 if test -n "$INTLTOOL_PERL"; then
19800 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
19801 echo "${ECHO_T}$INTLTOOL_PERL" >&6
19802 else
19803 echo "$as_me:$LINENO: result: no" >&5
19804 echo "${ECHO_T}no" >&6
19807 if test -z "$INTLTOOL_PERL"; then
19808 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
19809 echo "$as_me: error: perl not found; required for intltool" >&2;}
19810 { (exit 1); exit 1; }; }
19812 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
19813 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
19814 echo "$as_me: error: perl 5.x required for intltool" >&2;}
19815 { (exit 1); exit 1; }; }
19817 if test "x" != "xno-xml"; then
19818 echo "$as_me:$LINENO: checking for XML::Parser" >&5
19819 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
19820 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
19821 echo "$as_me:$LINENO: result: ok" >&5
19822 echo "${ECHO_T}ok" >&6
19823 else
19824 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
19825 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
19826 { (exit 1); exit 1; }; }
19830 # Extract the first word of "iconv", so it can be a program name with args.
19831 set dummy iconv; ac_word=$2
19832 echo "$as_me:$LINENO: checking for $ac_word" >&5
19833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19834 if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
19835 echo $ECHO_N "(cached) $ECHO_C" >&6
19836 else
19837 case $INTLTOOL_ICONV in
19838 [\\/]* | ?:[\\/]*)
19839 ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
19842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19843 for as_dir in $PATH
19845 IFS=$as_save_IFS
19846 test -z "$as_dir" && as_dir=.
19847 for ac_exec_ext in '' $ac_executable_extensions; do
19848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19849 ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
19850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19851 break 2
19853 done
19854 done
19856 test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
19858 esac
19860 INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
19862 if test -n "$INTLTOOL_ICONV"; then
19863 echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
19864 echo "${ECHO_T}$INTLTOOL_ICONV" >&6
19865 else
19866 echo "$as_me:$LINENO: result: no" >&5
19867 echo "${ECHO_T}no" >&6
19870 # Extract the first word of "msgfmt", so it can be a program name with args.
19871 set dummy msgfmt; ac_word=$2
19872 echo "$as_me:$LINENO: checking for $ac_word" >&5
19873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19874 if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19876 else
19877 case $INTLTOOL_MSGFMT in
19878 [\\/]* | ?:[\\/]*)
19879 ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
19882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19883 for as_dir in $PATH
19885 IFS=$as_save_IFS
19886 test -z "$as_dir" && as_dir=.
19887 for ac_exec_ext in '' $ac_executable_extensions; do
19888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19889 ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19891 break 2
19893 done
19894 done
19896 test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
19898 esac
19900 INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
19902 if test -n "$INTLTOOL_MSGFMT"; then
19903 echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
19904 echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6
19905 else
19906 echo "$as_me:$LINENO: result: no" >&5
19907 echo "${ECHO_T}no" >&6
19910 # Extract the first word of "msgmerge", so it can be a program name with args.
19911 set dummy msgmerge; ac_word=$2
19912 echo "$as_me:$LINENO: checking for $ac_word" >&5
19913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19914 if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 else
19917 case $INTLTOOL_MSGMERGE in
19918 [\\/]* | ?:[\\/]*)
19919 ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
19922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19923 for as_dir in $PATH
19925 IFS=$as_save_IFS
19926 test -z "$as_dir" && as_dir=.
19927 for ac_exec_ext in '' $ac_executable_extensions; do
19928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19929 ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
19930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19931 break 2
19933 done
19934 done
19936 test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
19938 esac
19940 INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
19942 if test -n "$INTLTOOL_MSGMERGE"; then
19943 echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
19944 echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6
19945 else
19946 echo "$as_me:$LINENO: result: no" >&5
19947 echo "${ECHO_T}no" >&6
19950 # Extract the first word of "xgettext", so it can be a program name with args.
19951 set dummy xgettext; ac_word=$2
19952 echo "$as_me:$LINENO: checking for $ac_word" >&5
19953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19954 if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
19955 echo $ECHO_N "(cached) $ECHO_C" >&6
19956 else
19957 case $INTLTOOL_XGETTEXT in
19958 [\\/]* | ?:[\\/]*)
19959 ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
19962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19963 for as_dir in $PATH
19965 IFS=$as_save_IFS
19966 test -z "$as_dir" && as_dir=.
19967 for ac_exec_ext in '' $ac_executable_extensions; do
19968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19969 ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
19970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19971 break 2
19973 done
19974 done
19976 test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
19978 esac
19980 INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
19982 if test -n "$INTLTOOL_XGETTEXT"; then
19983 echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
19984 echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6
19985 else
19986 echo "$as_me:$LINENO: result: no" >&5
19987 echo "${ECHO_T}no" >&6
19991 # Substitute ALL_LINGUAS so we can use it in po/Makefile
19994 # Set DATADIRNAME correctly if it is not set yet
19995 # (copied from glib-gettext.m4)
19996 if test -z "$DATADIRNAME"; then
19997 cat >conftest.$ac_ext <<_ACEOF
19998 /* confdefs.h. */
19999 _ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h. */
20005 main ()
20007 extern int _nl_msg_cat_cntr;
20008 return _nl_msg_cat_cntr
20010 return 0;
20012 _ACEOF
20013 rm -f conftest.$ac_objext conftest$ac_exeext
20014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20015 (eval $ac_link) 2>conftest.er1
20016 ac_status=$?
20017 grep -v '^ *+' conftest.er1 >conftest.err
20018 rm -f conftest.er1
20019 cat conftest.err >&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } &&
20022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; } &&
20028 { ac_try='test -s conftest$ac_exeext'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; }; then
20034 DATADIRNAME=share
20035 else
20036 echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20039 case $host in
20040 *-*-solaris*)
20041 echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
20042 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
20043 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
20044 echo $ECHO_N "(cached) $ECHO_C" >&6
20045 else
20046 cat >conftest.$ac_ext <<_ACEOF
20047 /* confdefs.h. */
20048 _ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h. */
20052 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
20053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20054 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
20056 /* System header to define __stub macros and hopefully few prototypes,
20057 which can conflict with char bind_textdomain_codeset (); below.
20058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20059 <limits.h> exists even on freestanding compilers. */
20061 #ifdef __STDC__
20062 # include <limits.h>
20063 #else
20064 # include <assert.h>
20065 #endif
20067 #undef bind_textdomain_codeset
20069 /* Override any gcc2 internal prototype to avoid an error. */
20070 #ifdef __cplusplus
20071 extern "C"
20073 #endif
20074 /* We use char because int might match the return type of a gcc2
20075 builtin and then its argument prototype would still apply. */
20076 char bind_textdomain_codeset ();
20077 /* The GNU C library defines this for functions which it implements
20078 to always fail with ENOSYS. Some functions are actually named
20079 something starting with __ and the normal name is an alias. */
20080 #if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
20081 choke me
20082 #else
20083 char (*f) () = bind_textdomain_codeset;
20084 #endif
20085 #ifdef __cplusplus
20087 #endif
20090 main ()
20092 return f != bind_textdomain_codeset;
20094 return 0;
20096 _ACEOF
20097 rm -f conftest.$ac_objext conftest$ac_exeext
20098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20099 (eval $ac_link) 2>conftest.er1
20100 ac_status=$?
20101 grep -v '^ *+' conftest.er1 >conftest.err
20102 rm -f conftest.er1
20103 cat conftest.err >&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } &&
20106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; } &&
20112 { ac_try='test -s conftest$ac_exeext'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; }; then
20118 ac_cv_func_bind_textdomain_codeset=yes
20119 else
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 ac_cv_func_bind_textdomain_codeset=no
20125 rm -f conftest.err conftest.$ac_objext \
20126 conftest$ac_exeext conftest.$ac_ext
20128 echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
20129 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
20130 if test $ac_cv_func_bind_textdomain_codeset = yes; then
20131 DATADIRNAME=share
20132 else
20133 DATADIRNAME=lib
20138 DATADIRNAME=lib
20140 esac
20142 rm -f conftest.err conftest.$ac_objext \
20143 conftest$ac_exeext conftest.$ac_ext
20150 ac_config_commands="$ac_config_commands intltool"
20154 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20155 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20156 if test "${ac_cv_header_stdc+set}" = set; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159 cat >conftest.$ac_ext <<_ACEOF
20160 /* confdefs.h. */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20165 #include <stdlib.h>
20166 #include <stdarg.h>
20167 #include <string.h>
20168 #include <float.h>
20171 main ()
20175 return 0;
20177 _ACEOF
20178 rm -f conftest.$ac_objext
20179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20180 (eval $ac_compile) 2>conftest.er1
20181 ac_status=$?
20182 grep -v '^ *+' conftest.er1 >conftest.err
20183 rm -f conftest.er1
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } &&
20187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189 (eval $ac_try) 2>&5
20190 ac_status=$?
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; } &&
20193 { ac_try='test -s conftest.$ac_objext'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
20199 ac_cv_header_stdc=yes
20200 else
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20204 ac_cv_header_stdc=no
20206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20208 if test $ac_cv_header_stdc = yes; then
20209 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20210 cat >conftest.$ac_ext <<_ACEOF
20211 /* confdefs.h. */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 #include <string.h>
20218 _ACEOF
20219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20220 $EGREP "memchr" >/dev/null 2>&1; then
20222 else
20223 ac_cv_header_stdc=no
20225 rm -f conftest*
20229 if test $ac_cv_header_stdc = yes; then
20230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20231 cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h. */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20237 #include <stdlib.h>
20239 _ACEOF
20240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20241 $EGREP "free" >/dev/null 2>&1; then
20243 else
20244 ac_cv_header_stdc=no
20246 rm -f conftest*
20250 if test $ac_cv_header_stdc = yes; then
20251 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20252 if test "$cross_compiling" = yes; then
20254 else
20255 cat >conftest.$ac_ext <<_ACEOF
20256 /* confdefs.h. */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20261 #include <ctype.h>
20262 #if ((' ' & 0x0FF) == 0x020)
20263 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20264 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20265 #else
20266 # define ISLOWER(c) \
20267 (('a' <= (c) && (c) <= 'i') \
20268 || ('j' <= (c) && (c) <= 'r') \
20269 || ('s' <= (c) && (c) <= 'z'))
20270 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20271 #endif
20273 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20275 main ()
20277 int i;
20278 for (i = 0; i < 256; i++)
20279 if (XOR (islower (i), ISLOWER (i))
20280 || toupper (i) != TOUPPER (i))
20281 exit(2);
20282 exit (0);
20284 _ACEOF
20285 rm -f conftest$ac_exeext
20286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20287 (eval $ac_link) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292 (eval $ac_try) 2>&5
20293 ac_status=$?
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); }; }; then
20297 else
20298 echo "$as_me: program exited with status $ac_status" >&5
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20302 ( exit $ac_status )
20303 ac_cv_header_stdc=no
20305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20309 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20310 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20311 if test $ac_cv_header_stdc = yes; then
20313 cat >>confdefs.h <<\_ACEOF
20314 #define STDC_HEADERS 1
20315 _ACEOF
20320 # Option to enable debugging
20321 # Check whether --enable-debug or --disable-debug was given.
20322 if test "${enable_debug+set}" = set; then
20323 enableval="$enable_debug"
20324 with_debug=yes
20325 else
20326 with_debug=no
20329 if test "x$with_debug" == "xyes" ; then
20330 CFLAGS="$CFLAGS -ggdb -O0 -DDEBUG -Wall -ansi -pedantic"
20331 else
20332 # CFLAGS="$CFLAGS -O2 -Wall -ansi -pedantic"
20333 CFLAGS="$CFLAGS -O2 -Wall -ansi"
20336 # Hildon library dependencies
20339 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20340 if test -n "$ac_tool_prefix"; then
20341 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20342 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20343 echo "$as_me:$LINENO: checking for $ac_word" >&5
20344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20345 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20346 echo $ECHO_N "(cached) $ECHO_C" >&6
20347 else
20348 case $PKG_CONFIG in
20349 [\\/]* | ?:[\\/]*)
20350 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20354 for as_dir in $PATH
20356 IFS=$as_save_IFS
20357 test -z "$as_dir" && as_dir=.
20358 for ac_exec_ext in '' $ac_executable_extensions; do
20359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20360 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20362 break 2
20364 done
20365 done
20368 esac
20370 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20372 if test -n "$PKG_CONFIG"; then
20373 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20374 echo "${ECHO_T}$PKG_CONFIG" >&6
20375 else
20376 echo "$as_me:$LINENO: result: no" >&5
20377 echo "${ECHO_T}no" >&6
20381 if test -z "$ac_cv_path_PKG_CONFIG"; then
20382 ac_pt_PKG_CONFIG=$PKG_CONFIG
20383 # Extract the first word of "pkg-config", so it can be a program name with args.
20384 set dummy pkg-config; ac_word=$2
20385 echo "$as_me:$LINENO: checking for $ac_word" >&5
20386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20387 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 else
20390 case $ac_pt_PKG_CONFIG in
20391 [\\/]* | ?:[\\/]*)
20392 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20396 for as_dir in $PATH
20398 IFS=$as_save_IFS
20399 test -z "$as_dir" && as_dir=.
20400 for ac_exec_ext in '' $ac_executable_extensions; do
20401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20402 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20404 break 2
20406 done
20407 done
20410 esac
20412 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20414 if test -n "$ac_pt_PKG_CONFIG"; then
20415 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20416 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
20417 else
20418 echo "$as_me:$LINENO: result: no" >&5
20419 echo "${ECHO_T}no" >&6
20422 PKG_CONFIG=$ac_pt_PKG_CONFIG
20423 else
20424 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20428 if test -n "$PKG_CONFIG"; then
20429 _pkg_min_version=0.9.0
20430 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20431 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20432 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20433 echo "$as_me:$LINENO: result: yes" >&5
20434 echo "${ECHO_T}yes" >&6
20435 else
20436 echo "$as_me:$LINENO: result: no" >&5
20437 echo "${ECHO_T}no" >&6
20438 PKG_CONFIG=""
20443 pkg_failed=no
20444 echo "$as_me:$LINENO: checking for HILDON" >&5
20445 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
20447 if test -n "$PKG_CONFIG"; then
20448 if test -n "$HILDON_CFLAGS"; then
20449 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
20450 else
20451 if test -n "$PKG_CONFIG" && \
20452 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 0.9.9 hildon-fm-2 wpeditor\"") >&5
20453 ($PKG_CONFIG --exists --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor") 2>&5
20454 ac_status=$?
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; then
20457 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor" 2>/dev/null`
20458 else
20459 pkg_failed=yes
20462 else
20463 pkg_failed=untried
20465 if test -n "$PKG_CONFIG"; then
20466 if test -n "$HILDON_LIBS"; then
20467 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
20468 else
20469 if test -n "$PKG_CONFIG" && \
20470 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 0.9.9 hildon-fm-2 wpeditor\"") >&5
20471 ($PKG_CONFIG --exists --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor") 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; then
20475 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor" 2>/dev/null`
20476 else
20477 pkg_failed=yes
20480 else
20481 pkg_failed=untried
20486 if test $pkg_failed = yes; then
20488 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20489 _pkg_short_errors_supported=yes
20490 else
20491 _pkg_short_errors_supported=no
20493 if test $_pkg_short_errors_supported = yes; then
20494 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor"`
20495 else
20496 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor"`
20498 # Put the nasty error message in config.log where it belongs
20499 echo "$HILDON_PKG_ERRORS" >&5
20501 { { echo "$as_me:$LINENO: error: Package requirements (hildon-1 >= 0.9.9 hildon-fm-2 wpeditor) were not met:
20503 $HILDON_PKG_ERRORS
20505 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20506 installed software in a non-standard prefix.
20508 Alternatively, you may set the environment variables HILDON_CFLAGS
20509 and HILDON_LIBS to avoid the need to call pkg-config.
20510 See the pkg-config man page for more details.
20511 " >&5
20512 echo "$as_me: error: Package requirements (hildon-1 >= 0.9.9 hildon-fm-2 wpeditor) were not met:
20514 $HILDON_PKG_ERRORS
20516 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20517 installed software in a non-standard prefix.
20519 Alternatively, you may set the environment variables HILDON_CFLAGS
20520 and HILDON_LIBS to avoid the need to call pkg-config.
20521 See the pkg-config man page for more details.
20522 " >&2;}
20523 { (exit 1); exit 1; }; }
20524 elif test $pkg_failed = untried; then
20525 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20526 is in your PATH or set the PKG_CONFIG environment variable to the full
20527 path to pkg-config.
20529 Alternatively, you may set the environment variables HILDON_CFLAGS
20530 and HILDON_LIBS to avoid the need to call pkg-config.
20531 See the pkg-config man page for more details.
20533 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20534 See \`config.log' for more details." >&5
20535 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20536 is in your PATH or set the PKG_CONFIG environment variable to the full
20537 path to pkg-config.
20539 Alternatively, you may set the environment variables HILDON_CFLAGS
20540 and HILDON_LIBS to avoid the need to call pkg-config.
20541 See the pkg-config man page for more details.
20543 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20544 See \`config.log' for more details." >&2;}
20545 { (exit 1); exit 1; }; }
20546 else
20547 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
20548 HILDON_LIBS=$pkg_cv_HILDON_LIBS
20549 echo "$as_me:$LINENO: result: yes" >&5
20550 echo "${ECHO_T}yes" >&6
20556 # Only used for the .service file path
20558 pkg_failed=no
20559 echo "$as_me:$LINENO: checking for DBUS" >&5
20560 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6
20562 if test -n "$PKG_CONFIG"; then
20563 if test -n "$DBUS_CFLAGS"; then
20564 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
20565 else
20566 if test -n "$PKG_CONFIG" && \
20567 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.23.4\"") >&5
20568 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.23.4") 2>&5
20569 ac_status=$?
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; then
20572 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= 0.23.4" 2>/dev/null`
20573 else
20574 pkg_failed=yes
20577 else
20578 pkg_failed=untried
20580 if test -n "$PKG_CONFIG"; then
20581 if test -n "$DBUS_LIBS"; then
20582 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
20583 else
20584 if test -n "$PKG_CONFIG" && \
20585 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.23.4\"") >&5
20586 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.23.4") 2>&5
20587 ac_status=$?
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); }; then
20590 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 >= 0.23.4" 2>/dev/null`
20591 else
20592 pkg_failed=yes
20595 else
20596 pkg_failed=untried
20601 if test $pkg_failed = yes; then
20603 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20604 _pkg_short_errors_supported=yes
20605 else
20606 _pkg_short_errors_supported=no
20608 if test $_pkg_short_errors_supported = yes; then
20609 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1 >= 0.23.4"`
20610 else
20611 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 >= 0.23.4"`
20613 # Put the nasty error message in config.log where it belongs
20614 echo "$DBUS_PKG_ERRORS" >&5
20616 { { echo "$as_me:$LINENO: error: Package requirements (dbus-glib-1 >= 0.23.4) were not met:
20618 $DBUS_PKG_ERRORS
20620 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20621 installed software in a non-standard prefix.
20623 Alternatively, you may set the environment variables DBUS_CFLAGS
20624 and DBUS_LIBS to avoid the need to call pkg-config.
20625 See the pkg-config man page for more details.
20626 " >&5
20627 echo "$as_me: error: Package requirements (dbus-glib-1 >= 0.23.4) were not met:
20629 $DBUS_PKG_ERRORS
20631 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20632 installed software in a non-standard prefix.
20634 Alternatively, you may set the environment variables DBUS_CFLAGS
20635 and DBUS_LIBS to avoid the need to call pkg-config.
20636 See the pkg-config man page for more details.
20637 " >&2;}
20638 { (exit 1); exit 1; }; }
20639 elif test $pkg_failed = untried; then
20640 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20641 is in your PATH or set the PKG_CONFIG environment variable to the full
20642 path to pkg-config.
20644 Alternatively, you may set the environment variables DBUS_CFLAGS
20645 and DBUS_LIBS to avoid the need to call pkg-config.
20646 See the pkg-config man page for more details.
20648 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20649 See \`config.log' for more details." >&5
20650 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20651 is in your PATH or set the PKG_CONFIG environment variable to the full
20652 path to pkg-config.
20654 Alternatively, you may set the environment variables DBUS_CFLAGS
20655 and DBUS_LIBS to avoid the need to call pkg-config.
20656 See the pkg-config man page for more details.
20658 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20659 See \`config.log' for more details." >&2;}
20660 { (exit 1); exit 1; }; }
20661 else
20662 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
20663 DBUS_LIBS=$pkg_cv_DBUS_LIBS
20664 echo "$as_me:$LINENO: result: yes" >&5
20665 echo "${ECHO_T}yes" >&6
20669 # OSSO application framework dependencies
20671 pkg_failed=no
20672 echo "$as_me:$LINENO: checking for OSSO" >&5
20673 echo $ECHO_N "checking for OSSO... $ECHO_C" >&6
20675 if test -n "$PKG_CONFIG"; then
20676 if test -n "$OSSO_CFLAGS"; then
20677 pkg_cv_OSSO_CFLAGS="$OSSO_CFLAGS"
20678 else
20679 if test -n "$PKG_CONFIG" && \
20680 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11\"") >&5
20681 ($PKG_CONFIG --exists --print-errors "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11") 2>&5
20682 ac_status=$?
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; then
20685 pkg_cv_OSSO_CFLAGS=`$PKG_CONFIG --cflags "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11" 2>/dev/null`
20686 else
20687 pkg_failed=yes
20690 else
20691 pkg_failed=untried
20693 if test -n "$PKG_CONFIG"; then
20694 if test -n "$OSSO_LIBS"; then
20695 pkg_cv_OSSO_LIBS="$OSSO_LIBS"
20696 else
20697 if test -n "$PKG_CONFIG" && \
20698 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11\"") >&5
20699 ($PKG_CONFIG --exists --print-errors "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11") 2>&5
20700 ac_status=$?
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; then
20703 pkg_cv_OSSO_LIBS=`$PKG_CONFIG --libs "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11" 2>/dev/null`
20704 else
20705 pkg_failed=yes
20708 else
20709 pkg_failed=untried
20714 if test $pkg_failed = yes; then
20716 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20717 _pkg_short_errors_supported=yes
20718 else
20719 _pkg_short_errors_supported=no
20721 if test $_pkg_short_errors_supported = yes; then
20722 OSSO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11"`
20723 else
20724 OSSO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11"`
20726 # Put the nasty error message in config.log where it belongs
20727 echo "$OSSO_PKG_ERRORS" >&5
20729 { { echo "$as_me:$LINENO: error: Package requirements (libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11) were not met:
20731 $OSSO_PKG_ERRORS
20733 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20734 installed software in a non-standard prefix.
20736 Alternatively, you may set the environment variables OSSO_CFLAGS
20737 and OSSO_LIBS to avoid the need to call pkg-config.
20738 See the pkg-config man page for more details.
20739 " >&5
20740 echo "$as_me: error: Package requirements (libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11) were not met:
20742 $OSSO_PKG_ERRORS
20744 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20745 installed software in a non-standard prefix.
20747 Alternatively, you may set the environment variables OSSO_CFLAGS
20748 and OSSO_LIBS to avoid the need to call pkg-config.
20749 See the pkg-config man page for more details.
20750 " >&2;}
20751 { (exit 1); exit 1; }; }
20752 elif test $pkg_failed = untried; then
20753 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20754 is in your PATH or set the PKG_CONFIG environment variable to the full
20755 path to pkg-config.
20757 Alternatively, you may set the environment variables OSSO_CFLAGS
20758 and OSSO_LIBS to avoid the need to call pkg-config.
20759 See the pkg-config man page for more details.
20761 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20762 See \`config.log' for more details." >&5
20763 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20764 is in your PATH or set the PKG_CONFIG environment variable to the full
20765 path to pkg-config.
20767 Alternatively, you may set the environment variables OSSO_CFLAGS
20768 and OSSO_LIBS to avoid the need to call pkg-config.
20769 See the pkg-config man page for more details.
20771 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20772 See \`config.log' for more details." >&2;}
20773 { (exit 1); exit 1; }; }
20774 else
20775 OSSO_CFLAGS=$pkg_cv_OSSO_CFLAGS
20776 OSSO_LIBS=$pkg_cv_OSSO_LIBS
20777 echo "$as_me:$LINENO: result: yes" >&5
20778 echo "${ECHO_T}yes" >&6
20784 # libxml2
20785 #PKG_CHECK_MODULES(XML2, libxml-2.0 >= 2.6.0)
20786 #AC_SUBST(XML2_LIBS)
20787 #AC_SUBST(XML2_CFLAGS)
20789 # sqlite3
20791 pkg_failed=no
20792 echo "$as_me:$LINENO: checking for SQL3" >&5
20793 echo $ECHO_N "checking for SQL3... $ECHO_C" >&6
20795 if test -n "$PKG_CONFIG"; then
20796 if test -n "$SQL3_CFLAGS"; then
20797 pkg_cv_SQL3_CFLAGS="$SQL3_CFLAGS"
20798 else
20799 if test -n "$PKG_CONFIG" && \
20800 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.0\"") >&5
20801 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.0") 2>&5
20802 ac_status=$?
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; then
20805 pkg_cv_SQL3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.0" 2>/dev/null`
20806 else
20807 pkg_failed=yes
20810 else
20811 pkg_failed=untried
20813 if test -n "$PKG_CONFIG"; then
20814 if test -n "$SQL3_LIBS"; then
20815 pkg_cv_SQL3_LIBS="$SQL3_LIBS"
20816 else
20817 if test -n "$PKG_CONFIG" && \
20818 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.0\"") >&5
20819 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.0") 2>&5
20820 ac_status=$?
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; then
20823 pkg_cv_SQL3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.0" 2>/dev/null`
20824 else
20825 pkg_failed=yes
20828 else
20829 pkg_failed=untried
20834 if test $pkg_failed = yes; then
20836 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20837 _pkg_short_errors_supported=yes
20838 else
20839 _pkg_short_errors_supported=no
20841 if test $_pkg_short_errors_supported = yes; then
20842 SQL3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3 >= 3.0"`
20843 else
20844 SQL3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3 >= 3.0"`
20846 # Put the nasty error message in config.log where it belongs
20847 echo "$SQL3_PKG_ERRORS" >&5
20849 { { echo "$as_me:$LINENO: error: Package requirements (sqlite3 >= 3.0) were not met:
20851 $SQL3_PKG_ERRORS
20853 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20854 installed software in a non-standard prefix.
20856 Alternatively, you may set the environment variables SQL3_CFLAGS
20857 and SQL3_LIBS to avoid the need to call pkg-config.
20858 See the pkg-config man page for more details.
20859 " >&5
20860 echo "$as_me: error: Package requirements (sqlite3 >= 3.0) were not met:
20862 $SQL3_PKG_ERRORS
20864 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20865 installed software in a non-standard prefix.
20867 Alternatively, you may set the environment variables SQL3_CFLAGS
20868 and SQL3_LIBS to avoid the need to call pkg-config.
20869 See the pkg-config man page for more details.
20870 " >&2;}
20871 { (exit 1); exit 1; }; }
20872 elif test $pkg_failed = untried; then
20873 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20874 is in your PATH or set the PKG_CONFIG environment variable to the full
20875 path to pkg-config.
20877 Alternatively, you may set the environment variables SQL3_CFLAGS
20878 and SQL3_LIBS to avoid the need to call pkg-config.
20879 See the pkg-config man page for more details.
20881 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20882 See \`config.log' for more details." >&5
20883 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20884 is in your PATH or set the PKG_CONFIG environment variable to the full
20885 path to pkg-config.
20887 Alternatively, you may set the environment variables SQL3_CFLAGS
20888 and SQL3_LIBS to avoid the need to call pkg-config.
20889 See the pkg-config man page for more details.
20891 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20892 See \`config.log' for more details." >&2;}
20893 { (exit 1); exit 1; }; }
20894 else
20895 SQL3_CFLAGS=$pkg_cv_SQL3_CFLAGS
20896 SQL3_LIBS=$pkg_cv_SQL3_LIBS
20897 echo "$as_me:$LINENO: result: yes" >&5
20898 echo "${ECHO_T}yes" >&6
20904 # Localisation
20905 GETTEXT_PACKAGE=$PACKAGE
20908 cat >>confdefs.h <<_ACEOF
20909 #define GETTEXT_PACKAGE "${GETTEXT_PACKAGE}"
20910 _ACEOF
20912 ALL_LINGUAS="en_GB fi_FI de_DE"
20915 for ac_header in locale.h
20917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20919 echo "$as_me:$LINENO: checking for $ac_header" >&5
20920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20922 echo $ECHO_N "(cached) $ECHO_C" >&6
20924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20926 else
20927 # Is the header compilable?
20928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20930 cat >conftest.$ac_ext <<_ACEOF
20931 /* confdefs.h. */
20932 _ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20936 $ac_includes_default
20937 #include <$ac_header>
20938 _ACEOF
20939 rm -f conftest.$ac_objext
20940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20941 (eval $ac_compile) 2>conftest.er1
20942 ac_status=$?
20943 grep -v '^ *+' conftest.er1 >conftest.err
20944 rm -f conftest.er1
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } &&
20948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950 (eval $ac_try) 2>&5
20951 ac_status=$?
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); }; } &&
20954 { ac_try='test -s conftest.$ac_objext'
20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 (eval $ac_try) 2>&5
20957 ac_status=$?
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; }; then
20960 ac_header_compiler=yes
20961 else
20962 echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20965 ac_header_compiler=no
20967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20969 echo "${ECHO_T}$ac_header_compiler" >&6
20971 # Is the header present?
20972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20974 cat >conftest.$ac_ext <<_ACEOF
20975 /* confdefs.h. */
20976 _ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h. */
20980 #include <$ac_header>
20981 _ACEOF
20982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20984 ac_status=$?
20985 grep -v '^ *+' conftest.er1 >conftest.err
20986 rm -f conftest.er1
20987 cat conftest.err >&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } >/dev/null; then
20990 if test -s conftest.err; then
20991 ac_cpp_err=$ac_c_preproc_warn_flag
20992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20993 else
20994 ac_cpp_err=
20996 else
20997 ac_cpp_err=yes
20999 if test -z "$ac_cpp_err"; then
21000 ac_header_preproc=yes
21001 else
21002 echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21005 ac_header_preproc=no
21007 rm -f conftest.err conftest.$ac_ext
21008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21009 echo "${ECHO_T}$ac_header_preproc" >&6
21011 # So? What about this header?
21012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21013 yes:no: )
21014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21018 ac_header_preproc=yes
21020 no:yes:* )
21021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21034 cat <<\_ASBOX
21035 ## ------------------------------------------ ##
21036 ## Report this to the AC_PACKAGE_NAME lists. ##
21037 ## ------------------------------------------ ##
21038 _ASBOX
21040 sed "s/^/$as_me: WARNING: /" >&2
21042 esac
21043 echo "$as_me:$LINENO: checking for $ac_header" >&5
21044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21046 echo $ECHO_N "(cached) $ECHO_C" >&6
21047 else
21048 eval "$as_ac_Header=\$ac_header_preproc"
21050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21055 cat >>confdefs.h <<_ACEOF
21056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21057 _ACEOF
21061 done
21063 if test $ac_cv_header_locale_h = yes; then
21064 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
21065 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
21066 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21068 else
21069 cat >conftest.$ac_ext <<_ACEOF
21070 /* confdefs.h. */
21071 _ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h. */
21075 #include <locale.h>
21077 main ()
21079 return LC_MESSAGES
21081 return 0;
21083 _ACEOF
21084 rm -f conftest.$ac_objext conftest$ac_exeext
21085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21086 (eval $ac_link) 2>conftest.er1
21087 ac_status=$?
21088 grep -v '^ *+' conftest.er1 >conftest.err
21089 rm -f conftest.er1
21090 cat conftest.err >&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); } &&
21093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; } &&
21099 { ac_try='test -s conftest$ac_exeext'
21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21102 ac_status=$?
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; }; then
21105 am_cv_val_LC_MESSAGES=yes
21106 else
21107 echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21110 am_cv_val_LC_MESSAGES=no
21112 rm -f conftest.err conftest.$ac_objext \
21113 conftest$ac_exeext conftest.$ac_ext
21115 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
21116 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
21117 if test $am_cv_val_LC_MESSAGES = yes; then
21119 cat >>confdefs.h <<\_ACEOF
21120 #define HAVE_LC_MESSAGES 1
21121 _ACEOF
21125 USE_NLS=yes
21128 gt_cv_have_gettext=no
21130 CATOBJEXT=NONE
21131 XGETTEXT=:
21132 INTLLIBS=
21134 if test "${ac_cv_header_libintl_h+set}" = set; then
21135 echo "$as_me:$LINENO: checking for libintl.h" >&5
21136 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21137 if test "${ac_cv_header_libintl_h+set}" = set; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21140 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21141 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21142 else
21143 # Is the header compilable?
21144 echo "$as_me:$LINENO: checking libintl.h usability" >&5
21145 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
21146 cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h. */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21152 $ac_includes_default
21153 #include <libintl.h>
21154 _ACEOF
21155 rm -f conftest.$ac_objext
21156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21157 (eval $ac_compile) 2>conftest.er1
21158 ac_status=$?
21159 grep -v '^ *+' conftest.er1 >conftest.err
21160 rm -f conftest.er1
21161 cat conftest.err >&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } &&
21164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21167 ac_status=$?
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; } &&
21170 { ac_try='test -s conftest.$ac_objext'
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21173 ac_status=$?
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; }; then
21176 ac_header_compiler=yes
21177 else
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 ac_header_compiler=no
21183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21185 echo "${ECHO_T}$ac_header_compiler" >&6
21187 # Is the header present?
21188 echo "$as_me:$LINENO: checking libintl.h presence" >&5
21189 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
21190 cat >conftest.$ac_ext <<_ACEOF
21191 /* confdefs.h. */
21192 _ACEOF
21193 cat confdefs.h >>conftest.$ac_ext
21194 cat >>conftest.$ac_ext <<_ACEOF
21195 /* end confdefs.h. */
21196 #include <libintl.h>
21197 _ACEOF
21198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21200 ac_status=$?
21201 grep -v '^ *+' conftest.er1 >conftest.err
21202 rm -f conftest.er1
21203 cat conftest.err >&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } >/dev/null; then
21206 if test -s conftest.err; then
21207 ac_cpp_err=$ac_c_preproc_warn_flag
21208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21209 else
21210 ac_cpp_err=
21212 else
21213 ac_cpp_err=yes
21215 if test -z "$ac_cpp_err"; then
21216 ac_header_preproc=yes
21217 else
21218 echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21221 ac_header_preproc=no
21223 rm -f conftest.err conftest.$ac_ext
21224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21225 echo "${ECHO_T}$ac_header_preproc" >&6
21227 # So? What about this header?
21228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21229 yes:no: )
21230 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21231 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21232 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21233 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21234 ac_header_preproc=yes
21236 no:yes:* )
21237 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21238 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
21240 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
21241 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21242 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21243 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
21244 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21245 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21246 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21248 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21250 cat <<\_ASBOX
21251 ## ------------------------------------------ ##
21252 ## Report this to the AC_PACKAGE_NAME lists. ##
21253 ## ------------------------------------------ ##
21254 _ASBOX
21256 sed "s/^/$as_me: WARNING: /" >&2
21258 esac
21259 echo "$as_me:$LINENO: checking for libintl.h" >&5
21260 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21261 if test "${ac_cv_header_libintl_h+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21263 else
21264 ac_cv_header_libintl_h=$ac_header_preproc
21266 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21267 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21270 if test $ac_cv_header_libintl_h = yes; then
21271 gt_cv_func_dgettext_libintl="no"
21272 libintl_extra_libs=""
21275 # First check in libc
21277 echo "$as_me:$LINENO: checking for ngettext in libc" >&5
21278 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
21279 if test "${gt_cv_func_ngettext_libc+set}" = set; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21281 else
21282 cat >conftest.$ac_ext <<_ACEOF
21283 /* confdefs.h. */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21289 #include <libintl.h>
21292 main ()
21294 return !ngettext ("","", 1)
21296 return 0;
21298 _ACEOF
21299 rm -f conftest.$ac_objext conftest$ac_exeext
21300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21301 (eval $ac_link) 2>conftest.er1
21302 ac_status=$?
21303 grep -v '^ *+' conftest.er1 >conftest.err
21304 rm -f conftest.er1
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } &&
21308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; } &&
21314 { ac_try='test -s conftest$ac_exeext'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21317 ac_status=$?
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; }; then
21320 gt_cv_func_ngettext_libc=yes
21321 else
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21325 gt_cv_func_ngettext_libc=no
21327 rm -f conftest.err conftest.$ac_objext \
21328 conftest$ac_exeext conftest.$ac_ext
21331 echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
21332 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
21334 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
21335 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
21336 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
21337 if test "${gt_cv_func_dgettext_libc+set}" = set; then
21338 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 else
21340 cat >conftest.$ac_ext <<_ACEOF
21341 /* confdefs.h. */
21342 _ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21347 #include <libintl.h>
21350 main ()
21352 return !dgettext ("","")
21354 return 0;
21356 _ACEOF
21357 rm -f conftest.$ac_objext conftest$ac_exeext
21358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21359 (eval $ac_link) 2>conftest.er1
21360 ac_status=$?
21361 grep -v '^ *+' conftest.er1 >conftest.err
21362 rm -f conftest.er1
21363 cat conftest.err >&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } &&
21366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21368 (eval $ac_try) 2>&5
21369 ac_status=$?
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; } &&
21372 { ac_try='test -s conftest$ac_exeext'
21373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374 (eval $ac_try) 2>&5
21375 ac_status=$?
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; }; then
21378 gt_cv_func_dgettext_libc=yes
21379 else
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21383 gt_cv_func_dgettext_libc=no
21385 rm -f conftest.err conftest.$ac_objext \
21386 conftest$ac_exeext conftest.$ac_ext
21389 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
21390 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
21393 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
21395 for ac_func in bind_textdomain_codeset
21397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21398 echo "$as_me:$LINENO: checking for $ac_func" >&5
21399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21400 if eval "test \"\${$as_ac_var+set}\" = set"; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21402 else
21403 cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h. */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21411 #define $ac_func innocuous_$ac_func
21413 /* System header to define __stub macros and hopefully few prototypes,
21414 which can conflict with char $ac_func (); below.
21415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21416 <limits.h> exists even on freestanding compilers. */
21418 #ifdef __STDC__
21419 # include <limits.h>
21420 #else
21421 # include <assert.h>
21422 #endif
21424 #undef $ac_func
21426 /* Override any gcc2 internal prototype to avoid an error. */
21427 #ifdef __cplusplus
21428 extern "C"
21430 #endif
21431 /* We use char because int might match the return type of a gcc2
21432 builtin and then its argument prototype would still apply. */
21433 char $ac_func ();
21434 /* The GNU C library defines this for functions which it implements
21435 to always fail with ENOSYS. Some functions are actually named
21436 something starting with __ and the normal name is an alias. */
21437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21438 choke me
21439 #else
21440 char (*f) () = $ac_func;
21441 #endif
21442 #ifdef __cplusplus
21444 #endif
21447 main ()
21449 return f != $ac_func;
21451 return 0;
21453 _ACEOF
21454 rm -f conftest.$ac_objext conftest$ac_exeext
21455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21456 (eval $ac_link) 2>conftest.er1
21457 ac_status=$?
21458 grep -v '^ *+' conftest.er1 >conftest.err
21459 rm -f conftest.er1
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
21463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; } &&
21469 { ac_try='test -s conftest$ac_exeext'
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21472 ac_status=$?
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; }; then
21475 eval "$as_ac_var=yes"
21476 else
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21480 eval "$as_ac_var=no"
21482 rm -f conftest.err conftest.$ac_objext \
21483 conftest$ac_exeext conftest.$ac_ext
21485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21487 if test `eval echo '${'$as_ac_var'}'` = yes; then
21488 cat >>confdefs.h <<_ACEOF
21489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21490 _ACEOF
21493 done
21498 # If we don't have everything we want, check in libintl
21500 if test "$gt_cv_func_dgettext_libc" != "yes" \
21501 || test "$gt_cv_func_ngettext_libc" != "yes" \
21502 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
21504 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
21505 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
21506 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 else
21509 ac_check_lib_save_LIBS=$LIBS
21510 LIBS="-lintl $LIBS"
21511 cat >conftest.$ac_ext <<_ACEOF
21512 /* confdefs.h. */
21513 _ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21518 /* Override any gcc2 internal prototype to avoid an error. */
21519 #ifdef __cplusplus
21520 extern "C"
21521 #endif
21522 /* We use char because int might match the return type of a gcc2
21523 builtin and then its argument prototype would still apply. */
21524 char bindtextdomain ();
21526 main ()
21528 bindtextdomain ();
21530 return 0;
21532 _ACEOF
21533 rm -f conftest.$ac_objext conftest$ac_exeext
21534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21535 (eval $ac_link) 2>conftest.er1
21536 ac_status=$?
21537 grep -v '^ *+' conftest.er1 >conftest.err
21538 rm -f conftest.er1
21539 cat conftest.err >&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } &&
21542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; } &&
21548 { ac_try='test -s conftest$ac_exeext'
21549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21551 ac_status=$?
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; }; then
21554 ac_cv_lib_intl_bindtextdomain=yes
21555 else
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21559 ac_cv_lib_intl_bindtextdomain=no
21561 rm -f conftest.err conftest.$ac_objext \
21562 conftest$ac_exeext conftest.$ac_ext
21563 LIBS=$ac_check_lib_save_LIBS
21565 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
21566 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
21567 if test $ac_cv_lib_intl_bindtextdomain = yes; then
21568 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21569 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
21570 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21571 echo $ECHO_N "(cached) $ECHO_C" >&6
21572 else
21573 ac_check_lib_save_LIBS=$LIBS
21574 LIBS="-lintl $LIBS"
21575 cat >conftest.$ac_ext <<_ACEOF
21576 /* confdefs.h. */
21577 _ACEOF
21578 cat confdefs.h >>conftest.$ac_ext
21579 cat >>conftest.$ac_ext <<_ACEOF
21580 /* end confdefs.h. */
21582 /* Override any gcc2 internal prototype to avoid an error. */
21583 #ifdef __cplusplus
21584 extern "C"
21585 #endif
21586 /* We use char because int might match the return type of a gcc2
21587 builtin and then its argument prototype would still apply. */
21588 char ngettext ();
21590 main ()
21592 ngettext ();
21594 return 0;
21596 _ACEOF
21597 rm -f conftest.$ac_objext conftest$ac_exeext
21598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21599 (eval $ac_link) 2>conftest.er1
21600 ac_status=$?
21601 grep -v '^ *+' conftest.er1 >conftest.err
21602 rm -f conftest.er1
21603 cat conftest.err >&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } &&
21606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; } &&
21612 { ac_try='test -s conftest$ac_exeext'
21613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614 (eval $ac_try) 2>&5
21615 ac_status=$?
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; }; then
21618 ac_cv_lib_intl_ngettext=yes
21619 else
21620 echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21623 ac_cv_lib_intl_ngettext=no
21625 rm -f conftest.err conftest.$ac_objext \
21626 conftest$ac_exeext conftest.$ac_ext
21627 LIBS=$ac_check_lib_save_LIBS
21629 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21630 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
21631 if test $ac_cv_lib_intl_ngettext = yes; then
21632 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21633 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
21634 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21636 else
21637 ac_check_lib_save_LIBS=$LIBS
21638 LIBS="-lintl $LIBS"
21639 cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h. */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21646 /* Override any gcc2 internal prototype to avoid an error. */
21647 #ifdef __cplusplus
21648 extern "C"
21649 #endif
21650 /* We use char because int might match the return type of a gcc2
21651 builtin and then its argument prototype would still apply. */
21652 char dgettext ();
21654 main ()
21656 dgettext ();
21658 return 0;
21660 _ACEOF
21661 rm -f conftest.$ac_objext conftest$ac_exeext
21662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21663 (eval $ac_link) 2>conftest.er1
21664 ac_status=$?
21665 grep -v '^ *+' conftest.er1 >conftest.err
21666 rm -f conftest.er1
21667 cat conftest.err >&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } &&
21670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21673 ac_status=$?
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; } &&
21676 { ac_try='test -s conftest$ac_exeext'
21677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21678 (eval $ac_try) 2>&5
21679 ac_status=$?
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); }; }; then
21682 ac_cv_lib_intl_dgettext=yes
21683 else
21684 echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21687 ac_cv_lib_intl_dgettext=no
21689 rm -f conftest.err conftest.$ac_objext \
21690 conftest$ac_exeext conftest.$ac_ext
21691 LIBS=$ac_check_lib_save_LIBS
21693 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21694 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
21695 if test $ac_cv_lib_intl_dgettext = yes; then
21696 gt_cv_func_dgettext_libintl=yes
21704 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
21705 echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
21706 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
21707 echo "$as_me:$LINENO: result: " >&5
21708 echo "${ECHO_T}" >&6
21709 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21710 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
21711 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
21713 else
21714 ac_check_lib_save_LIBS=$LIBS
21715 LIBS="-lintl -liconv $LIBS"
21716 cat >conftest.$ac_ext <<_ACEOF
21717 /* confdefs.h. */
21718 _ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21723 /* Override any gcc2 internal prototype to avoid an error. */
21724 #ifdef __cplusplus
21725 extern "C"
21726 #endif
21727 /* We use char because int might match the return type of a gcc2
21728 builtin and then its argument prototype would still apply. */
21729 char ngettext ();
21731 main ()
21733 ngettext ();
21735 return 0;
21737 _ACEOF
21738 rm -f conftest.$ac_objext conftest$ac_exeext
21739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21740 (eval $ac_link) 2>conftest.er1
21741 ac_status=$?
21742 grep -v '^ *+' conftest.er1 >conftest.err
21743 rm -f conftest.er1
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } &&
21747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749 (eval $ac_try) 2>&5
21750 ac_status=$?
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; } &&
21753 { ac_try='test -s conftest$ac_exeext'
21754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755 (eval $ac_try) 2>&5
21756 ac_status=$?
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; }; then
21759 ac_cv_lib_intl_ngettext=yes
21760 else
21761 echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21764 ac_cv_lib_intl_ngettext=no
21766 rm -f conftest.err conftest.$ac_objext \
21767 conftest$ac_exeext conftest.$ac_ext
21768 LIBS=$ac_check_lib_save_LIBS
21770 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21771 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
21772 if test $ac_cv_lib_intl_ngettext = yes; then
21773 echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
21774 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
21775 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21777 else
21778 ac_check_lib_save_LIBS=$LIBS
21779 LIBS="-lintl -liconv $LIBS"
21780 cat >conftest.$ac_ext <<_ACEOF
21781 /* confdefs.h. */
21782 _ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h. */
21787 /* Override any gcc2 internal prototype to avoid an error. */
21788 #ifdef __cplusplus
21789 extern "C"
21790 #endif
21791 /* We use char because int might match the return type of a gcc2
21792 builtin and then its argument prototype would still apply. */
21793 char dcgettext ();
21795 main ()
21797 dcgettext ();
21799 return 0;
21801 _ACEOF
21802 rm -f conftest.$ac_objext conftest$ac_exeext
21803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21804 (eval $ac_link) 2>conftest.er1
21805 ac_status=$?
21806 grep -v '^ *+' conftest.er1 >conftest.err
21807 rm -f conftest.er1
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } &&
21811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813 (eval $ac_try) 2>&5
21814 ac_status=$?
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; } &&
21817 { ac_try='test -s conftest$ac_exeext'
21818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21819 (eval $ac_try) 2>&5
21820 ac_status=$?
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); }; }; then
21823 ac_cv_lib_intl_dcgettext=yes
21824 else
21825 echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21828 ac_cv_lib_intl_dcgettext=no
21830 rm -f conftest.err conftest.$ac_objext \
21831 conftest$ac_exeext conftest.$ac_ext
21832 LIBS=$ac_check_lib_save_LIBS
21834 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
21835 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
21836 if test $ac_cv_lib_intl_dcgettext = yes; then
21837 gt_cv_func_dgettext_libintl=yes
21838 libintl_extra_libs=-liconv
21839 else
21843 else
21850 # If we found libintl, then check in it for bind_textdomain_codeset();
21851 # we'll prefer libc if neither have bind_textdomain_codeset(),
21852 # and both have dgettext and ngettext
21854 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
21855 glib_save_LIBS="$LIBS"
21856 LIBS="$LIBS -lintl $libintl_extra_libs"
21857 unset ac_cv_func_bind_textdomain_codeset
21859 for ac_func in bind_textdomain_codeset
21861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21862 echo "$as_me:$LINENO: checking for $ac_func" >&5
21863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21864 if eval "test \"\${$as_ac_var+set}\" = set"; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21866 else
21867 cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h. */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21875 #define $ac_func innocuous_$ac_func
21877 /* System header to define __stub macros and hopefully few prototypes,
21878 which can conflict with char $ac_func (); below.
21879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21880 <limits.h> exists even on freestanding compilers. */
21882 #ifdef __STDC__
21883 # include <limits.h>
21884 #else
21885 # include <assert.h>
21886 #endif
21888 #undef $ac_func
21890 /* Override any gcc2 internal prototype to avoid an error. */
21891 #ifdef __cplusplus
21892 extern "C"
21894 #endif
21895 /* We use char because int might match the return type of a gcc2
21896 builtin and then its argument prototype would still apply. */
21897 char $ac_func ();
21898 /* The GNU C library defines this for functions which it implements
21899 to always fail with ENOSYS. Some functions are actually named
21900 something starting with __ and the normal name is an alias. */
21901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21902 choke me
21903 #else
21904 char (*f) () = $ac_func;
21905 #endif
21906 #ifdef __cplusplus
21908 #endif
21911 main ()
21913 return f != $ac_func;
21915 return 0;
21917 _ACEOF
21918 rm -f conftest.$ac_objext conftest$ac_exeext
21919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21920 (eval $ac_link) 2>conftest.er1
21921 ac_status=$?
21922 grep -v '^ *+' conftest.er1 >conftest.err
21923 rm -f conftest.er1
21924 cat conftest.err >&5
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); } &&
21927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929 (eval $ac_try) 2>&5
21930 ac_status=$?
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); }; } &&
21933 { ac_try='test -s conftest$ac_exeext'
21934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935 (eval $ac_try) 2>&5
21936 ac_status=$?
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); }; }; then
21939 eval "$as_ac_var=yes"
21940 else
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 eval "$as_ac_var=no"
21946 rm -f conftest.err conftest.$ac_objext \
21947 conftest$ac_exeext conftest.$ac_ext
21949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21951 if test `eval echo '${'$as_ac_var'}'` = yes; then
21952 cat >>confdefs.h <<_ACEOF
21953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21954 _ACEOF
21957 done
21959 LIBS="$glib_save_LIBS"
21961 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
21962 gt_cv_func_dgettext_libc=no
21963 else
21964 if test "$gt_cv_func_dgettext_libc" = "yes" \
21965 && test "$gt_cv_func_ngettext_libc" = "yes"; then
21966 gt_cv_func_dgettext_libintl=no
21972 if test "$gt_cv_func_dgettext_libc" = "yes" \
21973 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
21974 gt_cv_have_gettext=yes
21977 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
21978 INTLLIBS="-lintl $libintl_extra_libs"
21981 if test "$gt_cv_have_gettext" = "yes"; then
21983 cat >>confdefs.h <<\_ACEOF
21984 #define HAVE_GETTEXT 1
21985 _ACEOF
21987 # Extract the first word of "msgfmt", so it can be a program name with args.
21988 set dummy msgfmt; ac_word=$2
21989 echo "$as_me:$LINENO: checking for $ac_word" >&5
21990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21991 if test "${ac_cv_path_MSGFMT+set}" = set; then
21992 echo $ECHO_N "(cached) $ECHO_C" >&6
21993 else
21994 case "$MSGFMT" in
21996 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22000 for ac_dir in $PATH; do
22001 test -z "$ac_dir" && ac_dir=.
22002 if test -f $ac_dir/$ac_word; then
22003 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
22004 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
22005 break
22008 done
22009 IFS="$ac_save_ifs"
22010 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
22012 esac
22014 MSGFMT="$ac_cv_path_MSGFMT"
22015 if test "$MSGFMT" != "no"; then
22016 echo "$as_me:$LINENO: result: $MSGFMT" >&5
22017 echo "${ECHO_T}$MSGFMT" >&6
22018 else
22019 echo "$as_me:$LINENO: result: no" >&5
22020 echo "${ECHO_T}no" >&6
22022 if test "$MSGFMT" != "no"; then
22023 glib_save_LIBS="$LIBS"
22024 LIBS="$LIBS $INTLLIBS"
22026 for ac_func in dcgettext
22028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22029 echo "$as_me:$LINENO: checking for $ac_func" >&5
22030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22031 if eval "test \"\${$as_ac_var+set}\" = set"; then
22032 echo $ECHO_N "(cached) $ECHO_C" >&6
22033 else
22034 cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h. */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22042 #define $ac_func innocuous_$ac_func
22044 /* System header to define __stub macros and hopefully few prototypes,
22045 which can conflict with char $ac_func (); below.
22046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22047 <limits.h> exists even on freestanding compilers. */
22049 #ifdef __STDC__
22050 # include <limits.h>
22051 #else
22052 # include <assert.h>
22053 #endif
22055 #undef $ac_func
22057 /* Override any gcc2 internal prototype to avoid an error. */
22058 #ifdef __cplusplus
22059 extern "C"
22061 #endif
22062 /* We use char because int might match the return type of a gcc2
22063 builtin and then its argument prototype would still apply. */
22064 char $ac_func ();
22065 /* The GNU C library defines this for functions which it implements
22066 to always fail with ENOSYS. Some functions are actually named
22067 something starting with __ and the normal name is an alias. */
22068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22069 choke me
22070 #else
22071 char (*f) () = $ac_func;
22072 #endif
22073 #ifdef __cplusplus
22075 #endif
22078 main ()
22080 return f != $ac_func;
22082 return 0;
22084 _ACEOF
22085 rm -f conftest.$ac_objext conftest$ac_exeext
22086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22087 (eval $ac_link) 2>conftest.er1
22088 ac_status=$?
22089 grep -v '^ *+' conftest.er1 >conftest.err
22090 rm -f conftest.er1
22091 cat conftest.err >&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } &&
22094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096 (eval $ac_try) 2>&5
22097 ac_status=$?
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; } &&
22100 { ac_try='test -s conftest$ac_exeext'
22101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22102 (eval $ac_try) 2>&5
22103 ac_status=$?
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); }; }; then
22106 eval "$as_ac_var=yes"
22107 else
22108 echo "$as_me: failed program was:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22111 eval "$as_ac_var=no"
22113 rm -f conftest.err conftest.$ac_objext \
22114 conftest$ac_exeext conftest.$ac_ext
22116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22118 if test `eval echo '${'$as_ac_var'}'` = yes; then
22119 cat >>confdefs.h <<_ACEOF
22120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22121 _ACEOF
22124 done
22126 MSGFMT_OPTS=
22127 echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
22128 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6
22129 cat >conftest.foo <<_ACEOF
22131 msgid ""
22132 msgstr ""
22133 "Content-Type: text/plain; charset=UTF-8\n"
22134 "Project-Id-Version: test 1.0\n"
22135 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
22136 "Last-Translator: test <foo@bar.xx>\n"
22137 "Language-Team: C <LL@li.org>\n"
22138 "MIME-Version: 1.0\n"
22139 "Content-Transfer-Encoding: 8bit\n"
22141 _ACEOF
22142 if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
22143 (msgfmt -c -o /dev/null conftest.foo) 2>&5
22144 ac_status=$?
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); }; then
22147 MSGFMT_OPTS=-c; echo "$as_me:$LINENO: result: yes" >&5
22148 echo "${ECHO_T}yes" >&6
22149 else echo "$as_me:$LINENO: result: no" >&5
22150 echo "${ECHO_T}no" >&6
22151 echo "$as_me: failed input was:" >&5
22152 sed 's/^/| /' conftest.foo >&5
22155 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22156 set dummy gmsgfmt; ac_word=$2
22157 echo "$as_me:$LINENO: checking for $ac_word" >&5
22158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22159 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22160 echo $ECHO_N "(cached) $ECHO_C" >&6
22161 else
22162 case $GMSGFMT in
22163 [\\/]* | ?:[\\/]*)
22164 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22168 for as_dir in $PATH
22170 IFS=$as_save_IFS
22171 test -z "$as_dir" && as_dir=.
22172 for ac_exec_ext in '' $ac_executable_extensions; do
22173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22174 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22176 break 2
22178 done
22179 done
22181 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22183 esac
22185 GMSGFMT=$ac_cv_path_GMSGFMT
22187 if test -n "$GMSGFMT"; then
22188 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22189 echo "${ECHO_T}$GMSGFMT" >&6
22190 else
22191 echo "$as_me:$LINENO: result: no" >&5
22192 echo "${ECHO_T}no" >&6
22195 # Extract the first word of "xgettext", so it can be a program name with args.
22196 set dummy xgettext; ac_word=$2
22197 echo "$as_me:$LINENO: checking for $ac_word" >&5
22198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22199 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22201 else
22202 case "$XGETTEXT" in
22204 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22208 for ac_dir in $PATH; do
22209 test -z "$ac_dir" && ac_dir=.
22210 if test -f $ac_dir/$ac_word; then
22211 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
22212 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
22213 break
22216 done
22217 IFS="$ac_save_ifs"
22218 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22220 esac
22222 XGETTEXT="$ac_cv_path_XGETTEXT"
22223 if test "$XGETTEXT" != ":"; then
22224 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22225 echo "${ECHO_T}$XGETTEXT" >&6
22226 else
22227 echo "$as_me:$LINENO: result: no" >&5
22228 echo "${ECHO_T}no" >&6
22231 cat >conftest.$ac_ext <<_ACEOF
22232 /* confdefs.h. */
22233 _ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h. */
22239 main ()
22241 extern int _nl_msg_cat_cntr;
22242 return _nl_msg_cat_cntr
22244 return 0;
22246 _ACEOF
22247 rm -f conftest.$ac_objext conftest$ac_exeext
22248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22249 (eval $ac_link) 2>conftest.er1
22250 ac_status=$?
22251 grep -v '^ *+' conftest.er1 >conftest.err
22252 rm -f conftest.er1
22253 cat conftest.err >&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); } &&
22256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258 (eval $ac_try) 2>&5
22259 ac_status=$?
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; } &&
22262 { ac_try='test -s conftest$ac_exeext'
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22265 ac_status=$?
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; }; then
22268 CATOBJEXT=.gmo
22269 DATADIRNAME=share
22270 else
22271 echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22274 case $host in
22275 *-*-solaris*)
22276 echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
22277 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
22278 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
22279 echo $ECHO_N "(cached) $ECHO_C" >&6
22280 else
22281 cat >conftest.$ac_ext <<_ACEOF
22282 /* confdefs.h. */
22283 _ACEOF
22284 cat confdefs.h >>conftest.$ac_ext
22285 cat >>conftest.$ac_ext <<_ACEOF
22286 /* end confdefs.h. */
22287 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
22288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22289 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
22291 /* System header to define __stub macros and hopefully few prototypes,
22292 which can conflict with char bind_textdomain_codeset (); below.
22293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22294 <limits.h> exists even on freestanding compilers. */
22296 #ifdef __STDC__
22297 # include <limits.h>
22298 #else
22299 # include <assert.h>
22300 #endif
22302 #undef bind_textdomain_codeset
22304 /* Override any gcc2 internal prototype to avoid an error. */
22305 #ifdef __cplusplus
22306 extern "C"
22308 #endif
22309 /* We use char because int might match the return type of a gcc2
22310 builtin and then its argument prototype would still apply. */
22311 char bind_textdomain_codeset ();
22312 /* The GNU C library defines this for functions which it implements
22313 to always fail with ENOSYS. Some functions are actually named
22314 something starting with __ and the normal name is an alias. */
22315 #if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
22316 choke me
22317 #else
22318 char (*f) () = bind_textdomain_codeset;
22319 #endif
22320 #ifdef __cplusplus
22322 #endif
22325 main ()
22327 return f != bind_textdomain_codeset;
22329 return 0;
22331 _ACEOF
22332 rm -f conftest.$ac_objext conftest$ac_exeext
22333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22334 (eval $ac_link) 2>conftest.er1
22335 ac_status=$?
22336 grep -v '^ *+' conftest.er1 >conftest.err
22337 rm -f conftest.er1
22338 cat conftest.err >&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } &&
22341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22344 ac_status=$?
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; } &&
22347 { ac_try='test -s conftest$ac_exeext'
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
22353 ac_cv_func_bind_textdomain_codeset=yes
22354 else
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 ac_cv_func_bind_textdomain_codeset=no
22360 rm -f conftest.err conftest.$ac_objext \
22361 conftest$ac_exeext conftest.$ac_ext
22363 echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
22364 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
22365 if test $ac_cv_func_bind_textdomain_codeset = yes; then
22366 CATOBJEXT=.gmo
22367 DATADIRNAME=share
22368 else
22369 CATOBJEXT=.mo
22370 DATADIRNAME=lib
22375 CATOBJEXT=.mo
22376 DATADIRNAME=lib
22378 esac
22380 rm -f conftest.err conftest.$ac_objext \
22381 conftest$ac_exeext conftest.$ac_ext
22382 LIBS="$glib_save_LIBS"
22383 INSTOBJEXT=.mo
22384 else
22385 gt_cv_have_gettext=no
22393 if test "$gt_cv_have_gettext" = "yes" ; then
22395 cat >>confdefs.h <<\_ACEOF
22396 #define ENABLE_NLS 1
22397 _ACEOF
22401 if test "$XGETTEXT" != ":"; then
22402 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
22404 else
22405 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22406 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22407 XGETTEXT=":"
22411 # We need to process the po/ directory.
22412 POSUB=po
22414 ac_config_commands="$ac_config_commands default-1"
22417 for lang in $ALL_LINGUAS; do
22418 GMOFILES="$GMOFILES $lang.gmo"
22419 POFILES="$POFILES $lang.po"
22420 done
22434 if test "$gt_cv_have_gettext" = "yes"; then
22435 if test "x$ALL_LINGUAS" = "x"; then
22436 LINGUAS=
22437 else
22438 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
22439 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
22440 NEW_LINGUAS=
22441 for presentlang in $ALL_LINGUAS; do
22442 useit=no
22443 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
22444 desiredlanguages="$LINGUAS"
22445 else
22446 desiredlanguages="$ALL_LINGUAS"
22448 for desiredlang in $desiredlanguages; do
22449 # Use the presentlang catalog if desiredlang is
22450 # a. equal to presentlang, or
22451 # b. a variant of presentlang (because in this case,
22452 # presentlang can be used as a fallback for messages
22453 # which are not translated in the desiredlang catalog).
22454 case "$desiredlang" in
22455 "$presentlang"*) useit=yes;;
22456 esac
22457 done
22458 if test $useit = yes; then
22459 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
22461 done
22462 LINGUAS=$NEW_LINGUAS
22463 echo "$as_me:$LINENO: result: $LINGUAS" >&5
22464 echo "${ECHO_T}$LINGUAS" >&6
22467 if test -n "$LINGUAS"; then
22468 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
22472 MKINSTALLDIRS=
22473 if test -n "$ac_aux_dir"; then
22474 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
22476 if test -z "$MKINSTALLDIRS"; then
22477 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22481 test -d po || mkdir po
22482 if test "x$srcdir" != "x."; then
22483 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
22484 posrcprefix="$srcdir/"
22485 else
22486 posrcprefix="../$srcdir/"
22488 else
22489 posrcprefix="../"
22491 rm -f po/POTFILES
22492 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
22493 < $srcdir/po/POTFILES.in > po/POTFILES
22496 # To make application visible in maemo Task Navigator it needs a Desktop
22497 # file for the application.
22498 # D-BUS service file is needed to be able to launch the maemo application
22499 # and connect it to D-BUS services.
22500 # The following line defines install directories for these files.
22501 desktopentrydir=/usr/share/applications/hildon
22502 serviceentrydir=/usr/share/dbus-1/services
22504 # Application locale install directory
22505 localedir=/usr/share/locale
22507 # Application pixmaps install directory
22508 pixmapdir=/usr/share/pixmaps/$PACKAGE
22510 # Application icon install directories
22511 icon_26x26dir=$datadir/icons/hicolor/26x26/hildon
22512 icon_34x34dir=$datadir/icons/hicolor/34x34/hildon
22513 icon_40x40dir=$datadir/icons/hicolor/40x40/hildon
22514 icon_50x50dir=$datadir/icons/hicolor/50x50/hildon
22515 icon_scalabledir=$datadir/icons/hicolor/scalable/hildon
22517 # Hildon control panel plugin install directories
22518 pluginlibdir=`$PKG_CONFIG hildon-control-panel --variable=plugindir`
22519 plugindesktopentrydir=`$PKG_CONFIG hildon-control-panel --variable=plugindesktopentrydir`
22521 # Define as variables in Makefiles
22534 # Application Installer uses alternative root prefix /var/lib/install
22535 # where packages are installed. Build time and run time are different.
22536 # Define runtime paths to applications in config.h.
22537 #runtime_root=/var/lib/install
22538 #runtime_localedir=$runtime_root$localedir
22539 #runtime_pixmapdir=$runtime_root$pixmapdir
22542 cat >>confdefs.h <<_ACEOF
22543 #define LOCALEDIR "${localedir}"
22544 _ACEOF
22547 cat >>confdefs.h <<_ACEOF
22548 #define PIXMAPDIR "${pixmapdir}"
22549 _ACEOF
22552 # Produce output files
22553 ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile po/Makefile.in po/Makefile"
22554 cat >confcache <<\_ACEOF
22555 # This file is a shell script that caches the results of configure
22556 # tests run on this system so they can be shared between configure
22557 # scripts and configure runs, see configure's option --config-cache.
22558 # It is not useful on other systems. If it contains results you don't
22559 # want to keep, you may remove or edit it.
22561 # config.status only pays attention to the cache file if you give it
22562 # the --recheck option to rerun configure.
22564 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22565 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22566 # following values.
22568 _ACEOF
22570 # The following way of writing the cache mishandles newlines in values,
22571 # but we know of no workaround that is simple, portable, and efficient.
22572 # So, don't put newlines in cache variables' values.
22573 # Ultrix sh set writes to stderr and can't be redirected directly,
22574 # and sets the high bit in the cache file unless we assign to the vars.
22576 (set) 2>&1 |
22577 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22578 *ac_space=\ *)
22579 # `set' does not quote correctly, so add quotes (double-quote
22580 # substitution turns \\\\ into \\, and sed turns \\ into \).
22581 sed -n \
22582 "s/'/'\\\\''/g;
22583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22586 # `set' quotes correctly as required by POSIX, so do not add quotes.
22587 sed -n \
22588 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22590 esac;
22592 sed '
22593 t clear
22594 : clear
22595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22596 t end
22597 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22598 : end' >>confcache
22599 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22600 if test -w $cache_file; then
22601 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22602 cat confcache >$cache_file
22603 else
22604 echo "not updating unwritable cache $cache_file"
22607 rm -f confcache
22609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22610 # Let make expand exec_prefix.
22611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22613 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22614 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22615 # trailing colons and then remove the whole line if VPATH becomes empty
22616 # (actually we leave an empty line to preserve line numbers).
22617 if test "x$srcdir" = x.; then
22618 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22619 s/:*\$(srcdir):*/:/;
22620 s/:*\${srcdir}:*/:/;
22621 s/:*@srcdir@:*/:/;
22622 s/^\([^=]*=[ ]*\):*/\1/;
22623 s/:*$//;
22624 s/^[^=]*=[ ]*$//;
22628 DEFS=-DHAVE_CONFIG_H
22630 ac_libobjs=
22631 ac_ltlibobjs=
22632 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22633 # 1. Remove the extension, and $U if already installed.
22634 ac_i=`echo "$ac_i" |
22635 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22636 # 2. Add them.
22637 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22638 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22639 done
22640 LIBOBJS=$ac_libobjs
22642 LTLIBOBJS=$ac_ltlibobjs
22645 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22646 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22647 Usually this means the macro was only invoked conditionally." >&5
22648 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22649 Usually this means the macro was only invoked conditionally." >&2;}
22650 { (exit 1); exit 1; }; }
22652 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22653 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22654 Usually this means the macro was only invoked conditionally." >&5
22655 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22656 Usually this means the macro was only invoked conditionally." >&2;}
22657 { (exit 1); exit 1; }; }
22659 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22660 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22661 Usually this means the macro was only invoked conditionally." >&5
22662 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22663 Usually this means the macro was only invoked conditionally." >&2;}
22664 { (exit 1); exit 1; }; }
22667 ac_config_commands="$ac_config_commands po/stamp-it"
22671 : ${CONFIG_STATUS=./config.status}
22672 ac_clean_files_save=$ac_clean_files
22673 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22674 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22675 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22676 cat >$CONFIG_STATUS <<_ACEOF
22677 #! $SHELL
22678 # Generated by $as_me.
22679 # Run this file to recreate the current configuration.
22680 # Compiler output produced by configure, useful for debugging
22681 # configure, is in config.log if it exists.
22683 debug=false
22684 ac_cs_recheck=false
22685 ac_cs_silent=false
22686 SHELL=\${CONFIG_SHELL-$SHELL}
22687 _ACEOF
22689 cat >>$CONFIG_STATUS <<\_ACEOF
22690 ## --------------------- ##
22691 ## M4sh Initialization. ##
22692 ## --------------------- ##
22694 # Be Bourne compatible
22695 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22696 emulate sh
22697 NULLCMD=:
22698 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22699 # is contrary to our usage. Disable this feature.
22700 alias -g '${1+"$@"}'='"$@"'
22701 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22702 set -o posix
22704 DUALCASE=1; export DUALCASE # for MKS sh
22706 # Support unset when possible.
22707 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22708 as_unset=unset
22709 else
22710 as_unset=false
22714 # Work around bugs in pre-3.0 UWIN ksh.
22715 $as_unset ENV MAIL MAILPATH
22716 PS1='$ '
22717 PS2='> '
22718 PS4='+ '
22720 # NLS nuisances.
22721 for as_var in \
22722 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22723 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22724 LC_TELEPHONE LC_TIME
22726 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22727 eval $as_var=C; export $as_var
22728 else
22729 $as_unset $as_var
22731 done
22733 # Required to use basename.
22734 if expr a : '\(a\)' >/dev/null 2>&1; then
22735 as_expr=expr
22736 else
22737 as_expr=false
22740 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22741 as_basename=basename
22742 else
22743 as_basename=false
22747 # Name of the executable.
22748 as_me=`$as_basename "$0" ||
22749 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22750 X"$0" : 'X\(//\)$' \| \
22751 X"$0" : 'X\(/\)$' \| \
22752 . : '\(.\)' 2>/dev/null ||
22753 echo X/"$0" |
22754 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22755 /^X\/\(\/\/\)$/{ s//\1/; q; }
22756 /^X\/\(\/\).*/{ s//\1/; q; }
22757 s/.*/./; q'`
22760 # PATH needs CR, and LINENO needs CR and PATH.
22761 # Avoid depending upon Character Ranges.
22762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22765 as_cr_digits='0123456789'
22766 as_cr_alnum=$as_cr_Letters$as_cr_digits
22768 # The user is always right.
22769 if test "${PATH_SEPARATOR+set}" != set; then
22770 echo "#! /bin/sh" >conf$$.sh
22771 echo "exit 0" >>conf$$.sh
22772 chmod +x conf$$.sh
22773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22774 PATH_SEPARATOR=';'
22775 else
22776 PATH_SEPARATOR=:
22778 rm -f conf$$.sh
22782 as_lineno_1=$LINENO
22783 as_lineno_2=$LINENO
22784 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22785 test "x$as_lineno_1" != "x$as_lineno_2" &&
22786 test "x$as_lineno_3" = "x$as_lineno_2" || {
22787 # Find who we are. Look in the path if we contain no path at all
22788 # relative or not.
22789 case $0 in
22790 *[\\/]* ) as_myself=$0 ;;
22791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22792 for as_dir in $PATH
22794 IFS=$as_save_IFS
22795 test -z "$as_dir" && as_dir=.
22796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22797 done
22800 esac
22801 # We did not find ourselves, most probably we were run as `sh COMMAND'
22802 # in which case we are not to be found in the path.
22803 if test "x$as_myself" = x; then
22804 as_myself=$0
22806 if test ! -f "$as_myself"; then
22807 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22808 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22809 { (exit 1); exit 1; }; }
22811 case $CONFIG_SHELL in
22813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22814 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22816 IFS=$as_save_IFS
22817 test -z "$as_dir" && as_dir=.
22818 for as_base in sh bash ksh sh5; do
22819 case $as_dir in
22821 if ("$as_dir/$as_base" -c '
22822 as_lineno_1=$LINENO
22823 as_lineno_2=$LINENO
22824 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22825 test "x$as_lineno_1" != "x$as_lineno_2" &&
22826 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22827 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22828 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22829 CONFIG_SHELL=$as_dir/$as_base
22830 export CONFIG_SHELL
22831 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22832 fi;;
22833 esac
22834 done
22835 done
22837 esac
22839 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22840 # uniformly replaced by the line number. The first 'sed' inserts a
22841 # line-number line before each line; the second 'sed' does the real
22842 # work. The second script uses 'N' to pair each line-number line
22843 # with the numbered line, and appends trailing '-' during
22844 # substitution so that $LINENO is not a special case at line end.
22845 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22846 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22847 sed '=' <$as_myself |
22848 sed '
22850 s,$,-,
22851 : loop
22852 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22853 t loop
22854 s,-$,,
22855 s,^['$as_cr_digits']*\n,,
22856 ' >$as_me.lineno &&
22857 chmod +x $as_me.lineno ||
22858 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22859 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22860 { (exit 1); exit 1; }; }
22862 # Don't try to exec as it changes $[0], causing all sort of problems
22863 # (the dirname of $[0] is not the place where we might find the
22864 # original and so on. Autoconf is especially sensible to this).
22865 . ./$as_me.lineno
22866 # Exit status is that of the last command.
22867 exit
22871 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22872 *c*,-n*) ECHO_N= ECHO_C='
22873 ' ECHO_T=' ' ;;
22874 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22875 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22876 esac
22878 if expr a : '\(a\)' >/dev/null 2>&1; then
22879 as_expr=expr
22880 else
22881 as_expr=false
22884 rm -f conf$$ conf$$.exe conf$$.file
22885 echo >conf$$.file
22886 if ln -s conf$$.file conf$$ 2>/dev/null; then
22887 # We could just check for DJGPP; but this test a) works b) is more generic
22888 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22889 if test -f conf$$.exe; then
22890 # Don't use ln at all; we don't have any links
22891 as_ln_s='cp -p'
22892 else
22893 as_ln_s='ln -s'
22895 elif ln conf$$.file conf$$ 2>/dev/null; then
22896 as_ln_s=ln
22897 else
22898 as_ln_s='cp -p'
22900 rm -f conf$$ conf$$.exe conf$$.file
22902 if mkdir -p . 2>/dev/null; then
22903 as_mkdir_p=:
22904 else
22905 test -d ./-p && rmdir ./-p
22906 as_mkdir_p=false
22909 as_executable_p="test -f"
22911 # Sed expression to map a string onto a valid CPP name.
22912 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22914 # Sed expression to map a string onto a valid variable name.
22915 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22918 # IFS
22919 # We need space, tab and new line, in precisely that order.
22920 as_nl='
22922 IFS=" $as_nl"
22924 # CDPATH.
22925 $as_unset CDPATH
22927 exec 6>&1
22929 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22930 # report actual input values of CONFIG_FILES etc. instead of their
22931 # values after options handling. Logging --version etc. is OK.
22932 exec 5>>config.log
22934 echo
22935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22936 ## Running $as_me. ##
22937 _ASBOX
22938 } >&5
22939 cat >&5 <<_CSEOF
22941 This file was extended by $as_me, which was
22942 generated by GNU Autoconf 2.59. Invocation command line was
22944 CONFIG_FILES = $CONFIG_FILES
22945 CONFIG_HEADERS = $CONFIG_HEADERS
22946 CONFIG_LINKS = $CONFIG_LINKS
22947 CONFIG_COMMANDS = $CONFIG_COMMANDS
22948 $ $0 $@
22950 _CSEOF
22951 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22952 echo >&5
22953 _ACEOF
22955 # Files that config.status was made for.
22956 if test -n "$ac_config_files"; then
22957 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22960 if test -n "$ac_config_headers"; then
22961 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22964 if test -n "$ac_config_links"; then
22965 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22968 if test -n "$ac_config_commands"; then
22969 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22972 cat >>$CONFIG_STATUS <<\_ACEOF
22974 ac_cs_usage="\
22975 \`$as_me' instantiates files from templates according to the
22976 current configuration.
22978 Usage: $0 [OPTIONS] [FILE]...
22980 -h, --help print this help, then exit
22981 -V, --version print version number, then exit
22982 -q, --quiet do not print progress messages
22983 -d, --debug don't remove temporary files
22984 --recheck update $as_me by reconfiguring in the same conditions
22985 --file=FILE[:TEMPLATE]
22986 instantiate the configuration file FILE
22987 --header=FILE[:TEMPLATE]
22988 instantiate the configuration header FILE
22990 Configuration files:
22991 $config_files
22993 Configuration headers:
22994 $config_headers
22996 Configuration commands:
22997 $config_commands
22999 Report bugs to <bug-autoconf@gnu.org>."
23000 _ACEOF
23002 cat >>$CONFIG_STATUS <<_ACEOF
23003 ac_cs_version="\\
23004 config.status
23005 configured by $0, generated by GNU Autoconf 2.59,
23006 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23008 Copyright (C) 2003 Free Software Foundation, Inc.
23009 This config.status script is free software; the Free Software Foundation
23010 gives unlimited permission to copy, distribute and modify it."
23011 srcdir=$srcdir
23012 INSTALL="$INSTALL"
23013 _ACEOF
23015 cat >>$CONFIG_STATUS <<\_ACEOF
23016 # If no file are specified by the user, then we need to provide default
23017 # value. By we need to know if files were specified by the user.
23018 ac_need_defaults=:
23019 while test $# != 0
23021 case $1 in
23022 --*=*)
23023 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23024 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23025 ac_shift=:
23028 ac_option=$1
23029 ac_optarg=$2
23030 ac_shift=shift
23032 *) # This is not an option, so the user has probably given explicit
23033 # arguments.
23034 ac_option=$1
23035 ac_need_defaults=false;;
23036 esac
23038 case $ac_option in
23039 # Handling of the options.
23040 _ACEOF
23041 cat >>$CONFIG_STATUS <<\_ACEOF
23042 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23043 ac_cs_recheck=: ;;
23044 --version | --vers* | -V )
23045 echo "$ac_cs_version"; exit 0 ;;
23046 --he | --h)
23047 # Conflict between --help and --header
23048 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23049 Try \`$0 --help' for more information." >&5
23050 echo "$as_me: error: ambiguous option: $1
23051 Try \`$0 --help' for more information." >&2;}
23052 { (exit 1); exit 1; }; };;
23053 --help | --hel | -h )
23054 echo "$ac_cs_usage"; exit 0 ;;
23055 --debug | --d* | -d )
23056 debug=: ;;
23057 --file | --fil | --fi | --f )
23058 $ac_shift
23059 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23060 ac_need_defaults=false;;
23061 --header | --heade | --head | --hea )
23062 $ac_shift
23063 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23064 ac_need_defaults=false;;
23065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23066 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23067 ac_cs_silent=: ;;
23069 # This is an error.
23070 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23071 Try \`$0 --help' for more information." >&5
23072 echo "$as_me: error: unrecognized option: $1
23073 Try \`$0 --help' for more information." >&2;}
23074 { (exit 1); exit 1; }; } ;;
23076 *) ac_config_targets="$ac_config_targets $1" ;;
23078 esac
23079 shift
23080 done
23082 ac_configure_extra_args=
23084 if $ac_cs_silent; then
23085 exec 6>/dev/null
23086 ac_configure_extra_args="$ac_configure_extra_args --silent"
23089 _ACEOF
23090 cat >>$CONFIG_STATUS <<_ACEOF
23091 if \$ac_cs_recheck; then
23092 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23093 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23096 _ACEOF
23098 cat >>$CONFIG_STATUS <<_ACEOF
23100 # INIT-COMMANDS section.
23103 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23104 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
23105 prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
23106 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
23107 INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
23108 INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'
23111 _ACEOF
23115 cat >>$CONFIG_STATUS <<\_ACEOF
23116 for ac_config_target in $ac_config_targets
23118 case "$ac_config_target" in
23119 # Handling of arguments.
23120 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23121 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23122 "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
23123 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23124 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
23125 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23126 "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
23127 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23128 "po/stamp-it" ) CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
23129 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23130 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23131 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23132 { (exit 1); exit 1; }; };;
23133 esac
23134 done
23136 # If the user did not use the arguments to specify the items to instantiate,
23137 # then the envvar interface is used. Set only those that are not.
23138 # We use the long form for the default assignment because of an extremely
23139 # bizarre bug on SunOS 4.1.3.
23140 if $ac_need_defaults; then
23141 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23142 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23143 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23146 # Have a temporary directory for convenience. Make it in the build tree
23147 # simply because there is no reason to put it here, and in addition,
23148 # creating and moving files from /tmp can sometimes cause problems.
23149 # Create a temporary directory, and hook for its removal unless debugging.
23150 $debug ||
23152 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23153 trap '{ (exit 1); exit 1; }' 1 2 13 15
23156 # Create a (secure) tmp directory for tmp files.
23159 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23160 test -n "$tmp" && test -d "$tmp"
23161 } ||
23163 tmp=./confstat$$-$RANDOM
23164 (umask 077 && mkdir $tmp)
23165 } ||
23167 echo "$me: cannot create a temporary directory in ." >&2
23168 { (exit 1); exit 1; }
23171 _ACEOF
23173 cat >>$CONFIG_STATUS <<_ACEOF
23176 # CONFIG_FILES section.
23179 # No need to generate the scripts if there are no CONFIG_FILES.
23180 # This happens for instance when ./config.status config.h
23181 if test -n "\$CONFIG_FILES"; then
23182 # Protect against being on the right side of a sed subst in config.status.
23183 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23184 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23185 s,@SHELL@,$SHELL,;t t
23186 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23187 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23188 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23189 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23190 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23191 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23192 s,@exec_prefix@,$exec_prefix,;t t
23193 s,@prefix@,$prefix,;t t
23194 s,@program_transform_name@,$program_transform_name,;t t
23195 s,@bindir@,$bindir,;t t
23196 s,@sbindir@,$sbindir,;t t
23197 s,@libexecdir@,$libexecdir,;t t
23198 s,@datadir@,$datadir,;t t
23199 s,@sysconfdir@,$sysconfdir,;t t
23200 s,@sharedstatedir@,$sharedstatedir,;t t
23201 s,@localstatedir@,$localstatedir,;t t
23202 s,@libdir@,$libdir,;t t
23203 s,@includedir@,$includedir,;t t
23204 s,@oldincludedir@,$oldincludedir,;t t
23205 s,@infodir@,$infodir,;t t
23206 s,@mandir@,$mandir,;t t
23207 s,@build_alias@,$build_alias,;t t
23208 s,@host_alias@,$host_alias,;t t
23209 s,@target_alias@,$target_alias,;t t
23210 s,@DEFS@,$DEFS,;t t
23211 s,@ECHO_C@,$ECHO_C,;t t
23212 s,@ECHO_N@,$ECHO_N,;t t
23213 s,@ECHO_T@,$ECHO_T,;t t
23214 s,@LIBS@,$LIBS,;t t
23215 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23216 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23217 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23218 s,@CYGPATH_W@,$CYGPATH_W,;t t
23219 s,@PACKAGE@,$PACKAGE,;t t
23220 s,@VERSION@,$VERSION,;t t
23221 s,@ACLOCAL@,$ACLOCAL,;t t
23222 s,@AUTOCONF@,$AUTOCONF,;t t
23223 s,@AUTOMAKE@,$AUTOMAKE,;t t
23224 s,@AUTOHEADER@,$AUTOHEADER,;t t
23225 s,@MAKEINFO@,$MAKEINFO,;t t
23226 s,@AMTAR@,$AMTAR,;t t
23227 s,@install_sh@,$install_sh,;t t
23228 s,@STRIP@,$STRIP,;t t
23229 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23230 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23231 s,@AWK@,$AWK,;t t
23232 s,@SET_MAKE@,$SET_MAKE,;t t
23233 s,@am__leading_dot@,$am__leading_dot,;t t
23234 s,@build@,$build,;t t
23235 s,@build_cpu@,$build_cpu,;t t
23236 s,@build_vendor@,$build_vendor,;t t
23237 s,@build_os@,$build_os,;t t
23238 s,@host@,$host,;t t
23239 s,@host_cpu@,$host_cpu,;t t
23240 s,@host_vendor@,$host_vendor,;t t
23241 s,@host_os@,$host_os,;t t
23242 s,@CC@,$CC,;t t
23243 s,@CFLAGS@,$CFLAGS,;t t
23244 s,@LDFLAGS@,$LDFLAGS,;t t
23245 s,@CPPFLAGS@,$CPPFLAGS,;t t
23246 s,@ac_ct_CC@,$ac_ct_CC,;t t
23247 s,@EXEEXT@,$EXEEXT,;t t
23248 s,@OBJEXT@,$OBJEXT,;t t
23249 s,@DEPDIR@,$DEPDIR,;t t
23250 s,@am__include@,$am__include,;t t
23251 s,@am__quote@,$am__quote,;t t
23252 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23253 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23254 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23255 s,@CCDEPMODE@,$CCDEPMODE,;t t
23256 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23257 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23258 s,@CPP@,$CPP,;t t
23259 s,@RANLIB@,$RANLIB,;t t
23260 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23261 s,@EGREP@,$EGREP,;t t
23262 s,@LN_S@,$LN_S,;t t
23263 s,@ECHO@,$ECHO,;t t
23264 s,@AR@,$AR,;t t
23265 s,@ac_ct_AR@,$ac_ct_AR,;t t
23266 s,@CXX@,$CXX,;t t
23267 s,@CXXFLAGS@,$CXXFLAGS,;t t
23268 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23269 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23270 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23271 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23272 s,@CXXCPP@,$CXXCPP,;t t
23273 s,@F77@,$F77,;t t
23274 s,@FFLAGS@,$FFLAGS,;t t
23275 s,@ac_ct_F77@,$ac_ct_F77,;t t
23276 s,@LIBTOOL@,$LIBTOOL,;t t
23277 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
23278 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
23279 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
23280 s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
23281 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
23282 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
23283 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
23284 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
23285 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
23286 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
23287 s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
23288 s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
23289 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
23290 s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t
23291 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
23292 s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
23293 s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
23294 s,@INTLTOOL_SERVICE_RULE@,$INTLTOOL_SERVICE_RULE,;t t
23295 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
23296 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
23297 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
23298 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
23299 s,@INTLTOOL_ICONV@,$INTLTOOL_ICONV,;t t
23300 s,@INTLTOOL_MSGFMT@,$INTLTOOL_MSGFMT,;t t
23301 s,@INTLTOOL_MSGMERGE@,$INTLTOOL_MSGMERGE,;t t
23302 s,@INTLTOOL_XGETTEXT@,$INTLTOOL_XGETTEXT,;t t
23303 s,@ALL_LINGUAS@,$ALL_LINGUAS,;t t
23304 s,@DATADIRNAME@,$DATADIRNAME,;t t
23305 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23306 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
23307 s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
23308 s,@HILDON_LIBS@,$HILDON_LIBS,;t t
23309 s,@DBUS_CFLAGS@,$DBUS_CFLAGS,;t t
23310 s,@DBUS_LIBS@,$DBUS_LIBS,;t t
23311 s,@OSSO_CFLAGS@,$OSSO_CFLAGS,;t t
23312 s,@OSSO_LIBS@,$OSSO_LIBS,;t t
23313 s,@SQL3_CFLAGS@,$SQL3_CFLAGS,;t t
23314 s,@SQL3_LIBS@,$SQL3_LIBS,;t t
23315 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
23316 s,@USE_NLS@,$USE_NLS,;t t
23317 s,@MSGFMT@,$MSGFMT,;t t
23318 s,@MSGFMT_OPTS@,$MSGFMT_OPTS,;t t
23319 s,@GMSGFMT@,$GMSGFMT,;t t
23320 s,@XGETTEXT@,$XGETTEXT,;t t
23321 s,@CATALOGS@,$CATALOGS,;t t
23322 s,@CATOBJEXT@,$CATOBJEXT,;t t
23323 s,@GMOFILES@,$GMOFILES,;t t
23324 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23325 s,@INTLLIBS@,$INTLLIBS,;t t
23326 s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
23327 s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
23328 s,@POFILES@,$POFILES,;t t
23329 s,@POSUB@,$POSUB,;t t
23330 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
23331 s,@desktopentrydir@,$desktopentrydir,;t t
23332 s,@serviceentrydir@,$serviceentrydir,;t t
23333 s,@localedir@,$localedir,;t t
23334 s,@pixmapdir@,$pixmapdir,;t t
23335 s,@icon_26x26dir@,$icon_26x26dir,;t t
23336 s,@icon_34x34dir@,$icon_34x34dir,;t t
23337 s,@icon_40x40dir@,$icon_40x40dir,;t t
23338 s,@icon_50x50dir@,$icon_50x50dir,;t t
23339 s,@icon_scalabledir@,$icon_scalabledir,;t t
23340 s,@pluginlibdir@,$pluginlibdir,;t t
23341 s,@plugindesktopentrydir@,$plugindesktopentrydir,;t t
23342 s,@LIBOBJS@,$LIBOBJS,;t t
23343 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23344 CEOF
23346 _ACEOF
23348 cat >>$CONFIG_STATUS <<\_ACEOF
23349 # Split the substitutions into bite-sized pieces for seds with
23350 # small command number limits, like on Digital OSF/1 and HP-UX.
23351 ac_max_sed_lines=48
23352 ac_sed_frag=1 # Number of current file.
23353 ac_beg=1 # First line for current file.
23354 ac_end=$ac_max_sed_lines # Line after last line for current file.
23355 ac_more_lines=:
23356 ac_sed_cmds=
23357 while $ac_more_lines; do
23358 if test $ac_beg -gt 1; then
23359 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23360 else
23361 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23363 if test ! -s $tmp/subs.frag; then
23364 ac_more_lines=false
23365 else
23366 # The purpose of the label and of the branching condition is to
23367 # speed up the sed processing (if there are no `@' at all, there
23368 # is no need to browse any of the substitutions).
23369 # These are the two extra sed commands mentioned above.
23370 (echo ':t
23371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23372 if test -z "$ac_sed_cmds"; then
23373 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23374 else
23375 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23377 ac_sed_frag=`expr $ac_sed_frag + 1`
23378 ac_beg=$ac_end
23379 ac_end=`expr $ac_end + $ac_max_sed_lines`
23381 done
23382 if test -z "$ac_sed_cmds"; then
23383 ac_sed_cmds=cat
23385 fi # test -n "$CONFIG_FILES"
23387 _ACEOF
23388 cat >>$CONFIG_STATUS <<\_ACEOF
23389 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23390 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23391 case $ac_file in
23392 - | *:- | *:-:* ) # input from stdin
23393 cat >$tmp/stdin
23394 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23396 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23397 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23398 * ) ac_file_in=$ac_file.in ;;
23399 esac
23401 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23402 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23403 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23404 X"$ac_file" : 'X\(//\)[^/]' \| \
23405 X"$ac_file" : 'X\(//\)$' \| \
23406 X"$ac_file" : 'X\(/\)' \| \
23407 . : '\(.\)' 2>/dev/null ||
23408 echo X"$ac_file" |
23409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23410 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23411 /^X\(\/\/\)$/{ s//\1/; q; }
23412 /^X\(\/\).*/{ s//\1/; q; }
23413 s/.*/./; q'`
23414 { if $as_mkdir_p; then
23415 mkdir -p "$ac_dir"
23416 else
23417 as_dir="$ac_dir"
23418 as_dirs=
23419 while test ! -d "$as_dir"; do
23420 as_dirs="$as_dir $as_dirs"
23421 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23422 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23423 X"$as_dir" : 'X\(//\)[^/]' \| \
23424 X"$as_dir" : 'X\(//\)$' \| \
23425 X"$as_dir" : 'X\(/\)' \| \
23426 . : '\(.\)' 2>/dev/null ||
23427 echo X"$as_dir" |
23428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23429 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23430 /^X\(\/\/\)$/{ s//\1/; q; }
23431 /^X\(\/\).*/{ s//\1/; q; }
23432 s/.*/./; q'`
23433 done
23434 test ! -n "$as_dirs" || mkdir $as_dirs
23435 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23436 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23437 { (exit 1); exit 1; }; }; }
23439 ac_builddir=.
23441 if test "$ac_dir" != .; then
23442 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23443 # A "../" for each directory in $ac_dir_suffix.
23444 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23445 else
23446 ac_dir_suffix= ac_top_builddir=
23449 case $srcdir in
23450 .) # No --srcdir option. We are building in place.
23451 ac_srcdir=.
23452 if test -z "$ac_top_builddir"; then
23453 ac_top_srcdir=.
23454 else
23455 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23456 fi ;;
23457 [\\/]* | ?:[\\/]* ) # Absolute path.
23458 ac_srcdir=$srcdir$ac_dir_suffix;
23459 ac_top_srcdir=$srcdir ;;
23460 *) # Relative path.
23461 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23462 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23463 esac
23465 # Do not use `cd foo && pwd` to compute absolute paths, because
23466 # the directories may not exist.
23467 case `pwd` in
23468 .) ac_abs_builddir="$ac_dir";;
23470 case "$ac_dir" in
23471 .) ac_abs_builddir=`pwd`;;
23472 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23473 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23474 esac;;
23475 esac
23476 case $ac_abs_builddir in
23477 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23479 case ${ac_top_builddir}. in
23480 .) ac_abs_top_builddir=$ac_abs_builddir;;
23481 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23482 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23483 esac;;
23484 esac
23485 case $ac_abs_builddir in
23486 .) ac_abs_srcdir=$ac_srcdir;;
23488 case $ac_srcdir in
23489 .) ac_abs_srcdir=$ac_abs_builddir;;
23490 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23491 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23492 esac;;
23493 esac
23494 case $ac_abs_builddir in
23495 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23497 case $ac_top_srcdir in
23498 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23499 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23500 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23501 esac;;
23502 esac
23505 case $INSTALL in
23506 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23507 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23508 esac
23510 # Let's still pretend it is `configure' which instantiates (i.e., don't
23511 # use $as_me), people would be surprised to read:
23512 # /* config.h. Generated by config.status. */
23513 if test x"$ac_file" = x-; then
23514 configure_input=
23515 else
23516 configure_input="$ac_file. "
23518 configure_input=$configure_input"Generated from `echo $ac_file_in |
23519 sed 's,.*/,,'` by configure."
23521 # First look for the input files in the build tree, otherwise in the
23522 # src tree.
23523 ac_file_inputs=`IFS=:
23524 for f in $ac_file_in; do
23525 case $f in
23526 -) echo $tmp/stdin ;;
23527 [\\/$]*)
23528 # Absolute (can't be DOS-style, as IFS=:)
23529 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23530 echo "$as_me: error: cannot find input file: $f" >&2;}
23531 { (exit 1); exit 1; }; }
23532 echo "$f";;
23533 *) # Relative
23534 if test -f "$f"; then
23535 # Build tree
23536 echo "$f"
23537 elif test -f "$srcdir/$f"; then
23538 # Source tree
23539 echo "$srcdir/$f"
23540 else
23541 # /dev/null tree
23542 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23543 echo "$as_me: error: cannot find input file: $f" >&2;}
23544 { (exit 1); exit 1; }; }
23545 fi;;
23546 esac
23547 done` || { (exit 1); exit 1; }
23549 if test x"$ac_file" != x-; then
23550 { echo "$as_me:$LINENO: creating $ac_file" >&5
23551 echo "$as_me: creating $ac_file" >&6;}
23552 rm -f "$ac_file"
23554 _ACEOF
23555 cat >>$CONFIG_STATUS <<_ACEOF
23556 sed "$ac_vpsub
23557 $extrasub
23558 _ACEOF
23559 cat >>$CONFIG_STATUS <<\_ACEOF
23561 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23562 s,@configure_input@,$configure_input,;t t
23563 s,@srcdir@,$ac_srcdir,;t t
23564 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23565 s,@top_srcdir@,$ac_top_srcdir,;t t
23566 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23567 s,@builddir@,$ac_builddir,;t t
23568 s,@abs_builddir@,$ac_abs_builddir,;t t
23569 s,@top_builddir@,$ac_top_builddir,;t t
23570 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23571 s,@INSTALL@,$ac_INSTALL,;t t
23572 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23573 rm -f $tmp/stdin
23574 if test x"$ac_file" != x-; then
23575 mv $tmp/out $ac_file
23576 else
23577 cat $tmp/out
23578 rm -f $tmp/out
23581 done
23582 _ACEOF
23583 cat >>$CONFIG_STATUS <<\_ACEOF
23586 # CONFIG_HEADER section.
23589 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23590 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23592 # ac_d sets the value in "#define NAME VALUE" lines.
23593 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23594 ac_dB='[ ].*$,\1#\2'
23595 ac_dC=' '
23596 ac_dD=',;t'
23597 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23598 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23599 ac_uB='$,\1#\2define\3'
23600 ac_uC=' '
23601 ac_uD=',;t'
23603 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23604 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23605 case $ac_file in
23606 - | *:- | *:-:* ) # input from stdin
23607 cat >$tmp/stdin
23608 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23609 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23610 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23612 * ) ac_file_in=$ac_file.in ;;
23613 esac
23615 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23616 echo "$as_me: creating $ac_file" >&6;}
23618 # First look for the input files in the build tree, otherwise in the
23619 # src tree.
23620 ac_file_inputs=`IFS=:
23621 for f in $ac_file_in; do
23622 case $f in
23623 -) echo $tmp/stdin ;;
23624 [\\/$]*)
23625 # Absolute (can't be DOS-style, as IFS=:)
23626 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23627 echo "$as_me: error: cannot find input file: $f" >&2;}
23628 { (exit 1); exit 1; }; }
23629 # Do quote $f, to prevent DOS paths from being IFS'd.
23630 echo "$f";;
23631 *) # Relative
23632 if test -f "$f"; then
23633 # Build tree
23634 echo "$f"
23635 elif test -f "$srcdir/$f"; then
23636 # Source tree
23637 echo "$srcdir/$f"
23638 else
23639 # /dev/null tree
23640 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23641 echo "$as_me: error: cannot find input file: $f" >&2;}
23642 { (exit 1); exit 1; }; }
23643 fi;;
23644 esac
23645 done` || { (exit 1); exit 1; }
23646 # Remove the trailing spaces.
23647 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23649 _ACEOF
23651 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23652 # `conftest.undefs', that substitutes the proper values into
23653 # config.h.in to produce config.h. The first handles `#define'
23654 # templates, and the second `#undef' templates.
23655 # And first: Protect against being on the right side of a sed subst in
23656 # config.status. Protect against being in an unquoted here document
23657 # in config.status.
23658 rm -f conftest.defines conftest.undefs
23659 # Using a here document instead of a string reduces the quoting nightmare.
23660 # Putting comments in sed scripts is not portable.
23662 # `end' is used to avoid that the second main sed command (meant for
23663 # 0-ary CPP macros) applies to n-ary macro definitions.
23664 # See the Autoconf documentation for `clear'.
23665 cat >confdef2sed.sed <<\_ACEOF
23666 s/[\\&,]/\\&/g
23667 s,[\\$`],\\&,g
23668 t clear
23669 : clear
23670 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23671 t end
23672 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23673 : end
23674 _ACEOF
23675 # If some macros were called several times there might be several times
23676 # the same #defines, which is useless. Nevertheless, we may not want to
23677 # sort them, since we want the *last* AC-DEFINE to be honored.
23678 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23679 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23680 rm -f confdef2sed.sed
23682 # This sed command replaces #undef with comments. This is necessary, for
23683 # example, in the case of _POSIX_SOURCE, which is predefined and required
23684 # on some systems where configure will not decide to define it.
23685 cat >>conftest.undefs <<\_ACEOF
23686 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23687 _ACEOF
23689 # Break up conftest.defines because some shells have a limit on the size
23690 # of here documents, and old seds have small limits too (100 cmds).
23691 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23692 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23693 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23694 echo ' :' >>$CONFIG_STATUS
23695 rm -f conftest.tail
23696 while grep . conftest.defines >/dev/null
23698 # Write a limited-size here document to $tmp/defines.sed.
23699 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23700 # Speed up: don't consider the non `#define' lines.
23701 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23702 # Work around the forget-to-reset-the-flag bug.
23703 echo 't clr' >>$CONFIG_STATUS
23704 echo ': clr' >>$CONFIG_STATUS
23705 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23706 echo 'CEOF
23707 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23708 rm -f $tmp/in
23709 mv $tmp/out $tmp/in
23710 ' >>$CONFIG_STATUS
23711 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23712 rm -f conftest.defines
23713 mv conftest.tail conftest.defines
23714 done
23715 rm -f conftest.defines
23716 echo ' fi # grep' >>$CONFIG_STATUS
23717 echo >>$CONFIG_STATUS
23719 # Break up conftest.undefs because some shells have a limit on the size
23720 # of here documents, and old seds have small limits too (100 cmds).
23721 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23722 rm -f conftest.tail
23723 while grep . conftest.undefs >/dev/null
23725 # Write a limited-size here document to $tmp/undefs.sed.
23726 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23727 # Speed up: don't consider the non `#undef'
23728 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23729 # Work around the forget-to-reset-the-flag bug.
23730 echo 't clr' >>$CONFIG_STATUS
23731 echo ': clr' >>$CONFIG_STATUS
23732 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23733 echo 'CEOF
23734 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23735 rm -f $tmp/in
23736 mv $tmp/out $tmp/in
23737 ' >>$CONFIG_STATUS
23738 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23739 rm -f conftest.undefs
23740 mv conftest.tail conftest.undefs
23741 done
23742 rm -f conftest.undefs
23744 cat >>$CONFIG_STATUS <<\_ACEOF
23745 # Let's still pretend it is `configure' which instantiates (i.e., don't
23746 # use $as_me), people would be surprised to read:
23747 # /* config.h. Generated by config.status. */
23748 if test x"$ac_file" = x-; then
23749 echo "/* Generated by configure. */" >$tmp/config.h
23750 else
23751 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23753 cat $tmp/in >>$tmp/config.h
23754 rm -f $tmp/in
23755 if test x"$ac_file" != x-; then
23756 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23757 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23758 echo "$as_me: $ac_file is unchanged" >&6;}
23759 else
23760 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23761 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23762 X"$ac_file" : 'X\(//\)[^/]' \| \
23763 X"$ac_file" : 'X\(//\)$' \| \
23764 X"$ac_file" : 'X\(/\)' \| \
23765 . : '\(.\)' 2>/dev/null ||
23766 echo X"$ac_file" |
23767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23769 /^X\(\/\/\)$/{ s//\1/; q; }
23770 /^X\(\/\).*/{ s//\1/; q; }
23771 s/.*/./; q'`
23772 { if $as_mkdir_p; then
23773 mkdir -p "$ac_dir"
23774 else
23775 as_dir="$ac_dir"
23776 as_dirs=
23777 while test ! -d "$as_dir"; do
23778 as_dirs="$as_dir $as_dirs"
23779 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23781 X"$as_dir" : 'X\(//\)[^/]' \| \
23782 X"$as_dir" : 'X\(//\)$' \| \
23783 X"$as_dir" : 'X\(/\)' \| \
23784 . : '\(.\)' 2>/dev/null ||
23785 echo X"$as_dir" |
23786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23788 /^X\(\/\/\)$/{ s//\1/; q; }
23789 /^X\(\/\).*/{ s//\1/; q; }
23790 s/.*/./; q'`
23791 done
23792 test ! -n "$as_dirs" || mkdir $as_dirs
23793 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23794 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23795 { (exit 1); exit 1; }; }; }
23797 rm -f $ac_file
23798 mv $tmp/config.h $ac_file
23800 else
23801 cat $tmp/config.h
23802 rm -f $tmp/config.h
23804 # Compute $ac_file's index in $config_headers.
23805 _am_stamp_count=1
23806 for _am_header in $config_headers :; do
23807 case $_am_header in
23808 $ac_file | $ac_file:* )
23809 break ;;
23811 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23812 esac
23813 done
23814 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23815 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23816 X$ac_file : 'X\(//\)[^/]' \| \
23817 X$ac_file : 'X\(//\)$' \| \
23818 X$ac_file : 'X\(/\)' \| \
23819 . : '\(.\)' 2>/dev/null ||
23820 echo X$ac_file |
23821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23823 /^X\(\/\/\)$/{ s//\1/; q; }
23824 /^X\(\/\).*/{ s//\1/; q; }
23825 s/.*/./; q'`/stamp-h$_am_stamp_count
23826 done
23827 _ACEOF
23828 cat >>$CONFIG_STATUS <<\_ACEOF
23831 # CONFIG_COMMANDS section.
23833 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23834 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23835 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23836 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23837 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23838 X"$ac_dest" : 'X\(//\)[^/]' \| \
23839 X"$ac_dest" : 'X\(//\)$' \| \
23840 X"$ac_dest" : 'X\(/\)' \| \
23841 . : '\(.\)' 2>/dev/null ||
23842 echo X"$ac_dest" |
23843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23845 /^X\(\/\/\)$/{ s//\1/; q; }
23846 /^X\(\/\).*/{ s//\1/; q; }
23847 s/.*/./; q'`
23848 { if $as_mkdir_p; then
23849 mkdir -p "$ac_dir"
23850 else
23851 as_dir="$ac_dir"
23852 as_dirs=
23853 while test ! -d "$as_dir"; do
23854 as_dirs="$as_dir $as_dirs"
23855 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23856 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23857 X"$as_dir" : 'X\(//\)[^/]' \| \
23858 X"$as_dir" : 'X\(//\)$' \| \
23859 X"$as_dir" : 'X\(/\)' \| \
23860 . : '\(.\)' 2>/dev/null ||
23861 echo X"$as_dir" |
23862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23864 /^X\(\/\/\)$/{ s//\1/; q; }
23865 /^X\(\/\).*/{ s//\1/; q; }
23866 s/.*/./; q'`
23867 done
23868 test ! -n "$as_dirs" || mkdir $as_dirs
23869 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23870 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23871 { (exit 1); exit 1; }; }; }
23873 ac_builddir=.
23875 if test "$ac_dir" != .; then
23876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23877 # A "../" for each directory in $ac_dir_suffix.
23878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23879 else
23880 ac_dir_suffix= ac_top_builddir=
23883 case $srcdir in
23884 .) # No --srcdir option. We are building in place.
23885 ac_srcdir=.
23886 if test -z "$ac_top_builddir"; then
23887 ac_top_srcdir=.
23888 else
23889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23890 fi ;;
23891 [\\/]* | ?:[\\/]* ) # Absolute path.
23892 ac_srcdir=$srcdir$ac_dir_suffix;
23893 ac_top_srcdir=$srcdir ;;
23894 *) # Relative path.
23895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23897 esac
23899 # Do not use `cd foo && pwd` to compute absolute paths, because
23900 # the directories may not exist.
23901 case `pwd` in
23902 .) ac_abs_builddir="$ac_dir";;
23904 case "$ac_dir" in
23905 .) ac_abs_builddir=`pwd`;;
23906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23908 esac;;
23909 esac
23910 case $ac_abs_builddir in
23911 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23913 case ${ac_top_builddir}. in
23914 .) ac_abs_top_builddir=$ac_abs_builddir;;
23915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23917 esac;;
23918 esac
23919 case $ac_abs_builddir in
23920 .) ac_abs_srcdir=$ac_srcdir;;
23922 case $ac_srcdir in
23923 .) ac_abs_srcdir=$ac_abs_builddir;;
23924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23926 esac;;
23927 esac
23928 case $ac_abs_builddir in
23929 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23931 case $ac_top_srcdir in
23932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23935 esac;;
23936 esac
23939 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23940 echo "$as_me: executing $ac_dest commands" >&6;}
23941 case $ac_dest in
23942 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23943 # Strip MF so we end up with the name of the file.
23944 mf=`echo "$mf" | sed -e 's/:.*$//'`
23945 # Check whether this is an Automake generated Makefile or not.
23946 # We used to match only the files named `Makefile.in', but
23947 # some people rename them; so instead we look at the file content.
23948 # Grep'ing the first line is not enough: some people post-process
23949 # each Makefile.in and add a new line on top of each file to say so.
23950 # So let's grep whole file.
23951 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23952 dirpart=`(dirname "$mf") 2>/dev/null ||
23953 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23954 X"$mf" : 'X\(//\)[^/]' \| \
23955 X"$mf" : 'X\(//\)$' \| \
23956 X"$mf" : 'X\(/\)' \| \
23957 . : '\(.\)' 2>/dev/null ||
23958 echo X"$mf" |
23959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23961 /^X\(\/\/\)$/{ s//\1/; q; }
23962 /^X\(\/\).*/{ s//\1/; q; }
23963 s/.*/./; q'`
23964 else
23965 continue
23967 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23968 # Extract the definition of DEP_FILES from the Makefile without
23969 # running `make'.
23970 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
23971 test -z "$DEPDIR" && continue
23972 # When using ansi2knr, U may be empty or an underscore; expand it
23973 U=`sed -n -e '/^U = / s///p' < "$mf"`
23974 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23975 # We invoke sed twice because it is the simplest approach to
23976 # changing $(DEPDIR) to its actual value in the expansion.
23977 for file in `sed -n -e '
23978 /^DEP_FILES = .*\\\\$/ {
23979 s/^DEP_FILES = //
23980 :loop
23981 s/\\\\$//
23984 /\\\\$/ b loop
23987 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23988 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23989 # Make sure the directory exists.
23990 test -f "$dirpart/$file" && continue
23991 fdir=`(dirname "$file") 2>/dev/null ||
23992 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23993 X"$file" : 'X\(//\)[^/]' \| \
23994 X"$file" : 'X\(//\)$' \| \
23995 X"$file" : 'X\(/\)' \| \
23996 . : '\(.\)' 2>/dev/null ||
23997 echo X"$file" |
23998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24000 /^X\(\/\/\)$/{ s//\1/; q; }
24001 /^X\(\/\).*/{ s//\1/; q; }
24002 s/.*/./; q'`
24003 { if $as_mkdir_p; then
24004 mkdir -p $dirpart/$fdir
24005 else
24006 as_dir=$dirpart/$fdir
24007 as_dirs=
24008 while test ! -d "$as_dir"; do
24009 as_dirs="$as_dir $as_dirs"
24010 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24012 X"$as_dir" : 'X\(//\)[^/]' \| \
24013 X"$as_dir" : 'X\(//\)$' \| \
24014 X"$as_dir" : 'X\(/\)' \| \
24015 . : '\(.\)' 2>/dev/null ||
24016 echo X"$as_dir" |
24017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24019 /^X\(\/\/\)$/{ s//\1/; q; }
24020 /^X\(\/\).*/{ s//\1/; q; }
24021 s/.*/./; q'`
24022 done
24023 test ! -n "$as_dirs" || mkdir $as_dirs
24024 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24025 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24026 { (exit 1); exit 1; }; }; }
24028 # echo "creating $dirpart/$file"
24029 echo '# dummy' > "$dirpart/$file"
24030 done
24031 done
24033 intltool )
24035 for file in intltool-extract intltool-merge intltool-update; do
24036 sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
24037 -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
24038 -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
24039 -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
24040 -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
24041 -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
24042 -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
24043 < ${ac_aux_dir}/${file}.in > ${file}.out
24044 if cmp -s ${file} ${file}.out 2>/dev/null; then
24045 rm -f ${file}.out
24046 else
24047 mv -f ${file}.out ${file}
24049 chmod ugo+x ${file}
24050 chmod u+w ${file}
24051 done
24054 default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
24055 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
24056 esac ;;
24057 po/stamp-it )
24058 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
24059 >"po/stamp-it.tmp"
24060 sed '/^#/d
24061 s/^[[].*] *//
24062 /^[ ]*$/d
24063 '"s|^| $ac_top_srcdir/|" \
24064 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
24066 if test ! -f "po/Makefile"; then
24067 { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
24068 echo "$as_me: error: po/Makefile is not ready." >&2;}
24069 { (exit 1); exit 1; }; }
24071 mv "po/Makefile" "po/Makefile.tmp"
24072 sed '/^POTFILES =/,/[^\\]$/ {
24073 /^POTFILES =/!d
24074 r po/POTFILES
24076 ' "po/Makefile.tmp" >"po/Makefile"
24077 rm -f "po/Makefile.tmp"
24078 mv "po/stamp-it.tmp" "po/stamp-it"
24080 esac
24081 done
24082 _ACEOF
24084 cat >>$CONFIG_STATUS <<\_ACEOF
24086 { (exit 0); exit 0; }
24087 _ACEOF
24088 chmod +x $CONFIG_STATUS
24089 ac_clean_files=$ac_clean_files_save
24092 # configure is writing to config.log, and then calls config.status.
24093 # config.status does its own redirection, appending to config.log.
24094 # Unfortunately, on DOS this fails, as config.log is still kept open
24095 # by configure, so config.status won't be able to write to it; its
24096 # output is simply discarded. So we exec the FD to /dev/null,
24097 # effectively closing config.log, so it can be properly (re)opened and
24098 # appended to by config.status. When coming back to configure, we
24099 # need to make the FD available again.
24100 if test "$no_create" != yes; then
24101 ac_cs_success=:
24102 ac_config_status_args=
24103 test "$silent" = yes &&
24104 ac_config_status_args="$ac_config_status_args --quiet"
24105 exec 5>/dev/null
24106 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24107 exec 5>>config.log
24108 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24109 # would make configure fail if this is the last instruction.
24110 $ac_cs_success || { (exit 1); exit 1; }