Codebase list eiciel / 36a83ee
Imported Upstream version 0.9.1 Michael Biebl 15 years ago
21 changed file(s) with 2686 addition(s) and 4169 deletion(s). Raw diff Collapse all Expand all
7474 INSTALL_SCRIPT = @INSTALL_SCRIPT@
7575 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
7676 INTLLIBS = @INTLLIBS@
77 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
7877 LDFLAGS = @LDFLAGS@
7978 LIBICONV = @LIBICONV@
8079 LIBINTL = @LIBINTL@
113112 ac_ct_F77 = @ac_ct_F77@
114113 ac_ct_RANLIB = @ac_ct_RANLIB@
115114 ac_ct_STRIP = @ac_ct_STRIP@
116 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
117115 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
118116 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
119117 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
832832 Usually this means the macro was only invoked conditionally.])
833833 fi])])
834834
835 # gettext.m4 serial 37 (gettext-0.14.4)
836 dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
837 dnl This file is free software; the Free Software Foundation
838 dnl gives unlimited permission to copy and/or distribute it,
839 dnl with or without modifications, as long as this notice is preserved.
835 # gettext.m4 serial 20 (gettext-0.12)
836 dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
837 dnl This file is free software, distributed under the terms of the GNU
838 dnl General Public License. As a special exception to the GNU General
839 dnl Public License, this file may be distributed as part of a program
840 dnl that contains a configuration script generated by Autoconf, under
841 dnl the same distribution terms as the rest of that program.
840842 dnl
841843 dnl This file can can be used in projects which are not available under
842844 dnl the GNU General Public License or the GNU Library General Public
897899 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
898900 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
899901 ])])])])
900 define([gt_included_intl], ifelse([$1], [external], [no], [yes]))
901 define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
902 define(gt_included_intl, ifelse([$1], [external], [no], [yes]))
903 define(gt_libtool_suffix_prefix, ifelse([$1], [use-libtool], [l], []))
902904
903905 AC_REQUIRE([AM_PO_SUBDIRS])dnl
904906 ifelse(gt_included_intl, yes, [
924926 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
925927 ])
926928
927 dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
928 gt_INTL_MACOSX
929
930929 dnl Set USE_NLS.
931930 AM_NLS
932931
973972 ], [])[extern int _nl_msg_cat_cntr;
974973 extern int *_nl_domain_bindings;],
975974 [bindtextdomain ("", "");
976 return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
975 return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
977976 gt_cv_func_gnugettext_libc=yes,
978977 gt_cv_func_gnugettext_libc=no)])
979978
10071006 #ifdef __cplusplus
10081007 "C"
10091008 #endif
1010 const char *_nl_expand_alias (const char *);],
1009 const char *_nl_expand_alias ();],
10111010 [bindtextdomain ("", "");
1012 return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
1011 return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
10131012 gt_cv_func_gnugettext_libintl=yes,
10141013 gt_cv_func_gnugettext_libintl=no)
10151014 dnl Now see whether libintl exists and depends on libiconv.
10281027 #ifdef __cplusplus
10291028 "C"
10301029 #endif
1031 const char *_nl_expand_alias (const char *);],
1030 const char *_nl_expand_alias ();],
10321031 [bindtextdomain ("", "");
1033 return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
1032 return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
10341033 [LIBINTL="$LIBINTL $LIBICONV"
10351034 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10361035 gt_cv_func_gnugettext_libintl=yes
10731072 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10741073 fi
10751074
1076 CATOBJEXT=
10771075 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10781076 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10791077 dnl Mark actions to use GNU gettext tools.
10801078 CATOBJEXT=.gmo
10811079 fi
10821080 ])
1083
1084 if test -n "$INTL_MACOSX_LIBS"; then
1085 if test "$gt_use_preinstalled_gnugettext" = "yes" \
1086 || test "$nls_cv_use_gnu_gettext" = "yes"; then
1087 dnl Some extra flags are needed during linking.
1088 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
1089 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
1090 fi
1091 fi
10921081
10931082 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10941083 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11651154 AC_SUBST(GENCAT)
11661155
11671156 dnl For backward compatibility. Some Makefiles may be using this.
1168 INTLOBJS=
11691157 if test "$USE_INCLUDED_LIBINTL" = yes; then
11701158 INTLOBJS="\$(GETTOBJS)"
11711159 fi
11961184 AC_REQUIRE([AM_MKINSTALLDIRS])dnl
11971185 AC_REQUIRE([AC_PROG_CC])dnl
11981186 AC_REQUIRE([AC_CANONICAL_HOST])dnl
1199 AC_REQUIRE([gt_GLIBC2])dnl
12001187 AC_REQUIRE([AC_PROG_RANLIB])dnl
12011188 AC_REQUIRE([AC_ISC_POSIX])dnl
12021189 AC_REQUIRE([AC_HEADER_STDC])dnl
12031190 AC_REQUIRE([AC_C_CONST])dnl
1204 AC_REQUIRE([bh_C_SIGNED])dnl
12051191 AC_REQUIRE([AC_C_INLINE])dnl
12061192 AC_REQUIRE([AC_TYPE_OFF_T])dnl
12071193 AC_REQUIRE([AC_TYPE_SIZE_T])dnl
1208 AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl
1209 AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
1210 AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
1211 AC_REQUIRE([gt_TYPE_WINT_T])dnl
1212 AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
1213 AC_REQUIRE([gl_AC_HEADER_STDINT_H])
1214 AC_REQUIRE([gt_TYPE_INTMAX_T])
1215 AC_REQUIRE([gt_PRINTF_POSIX])
12161194 AC_REQUIRE([AC_FUNC_ALLOCA])dnl
12171195 AC_REQUIRE([AC_FUNC_MMAP])dnl
1218 AC_REQUIRE([gl_GLIBC21])dnl
1196 AC_REQUIRE([jm_GLIBC21])dnl
12191197 AC_REQUIRE([gt_INTDIV0])dnl
1220 AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl
1198 AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl
12211199 AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
12221200 AC_REQUIRE([gt_INTTYPES_PRI])dnl
1223 AC_REQUIRE([gl_XSIZE])dnl
1224 AC_REQUIRE([gt_INTL_MACOSX])dnl
1225
1226 AC_CHECK_TYPE([ptrdiff_t], ,
1227 [AC_DEFINE([ptrdiff_t], [long],
1228 [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
1229 ])
1201
12301202 AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12311203 stdlib.h string.h unistd.h sys/param.h])
1232 AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \
1233 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
1234 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
1204 AC_CHECK_FUNCS([feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
1205 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
1206 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
12351207 __fsetlocking])
1236
1237 dnl Use the _snprintf function only if it is declared (because on NetBSD it
1238 dnl is defined as a weak alias of snprintf; we prefer to use the latter).
1239 gt_CHECK_DECL(_snprintf, [#include <stdio.h>])
1240 gt_CHECK_DECL(_snwprintf, [#include <stdio.h>])
1241
1242 dnl Use the *_unlocked functions only if they are declared.
1243 dnl (because some of them were defined without being declared in Solaris
1244 dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
1245 dnl on Solaris 2.5.1 to run on Solaris 2.6).
1246 dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
1247 gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>])
1248 gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>])
1249 gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>])
1250
1251 case $gt_cv_func_printf_posix in
1252 *yes) HAVE_POSIX_PRINTF=1 ;;
1253 *) HAVE_POSIX_PRINTF=0 ;;
1254 esac
1255 AC_SUBST([HAVE_POSIX_PRINTF])
1256 if test "$ac_cv_func_asprintf" = yes; then
1257 HAVE_ASPRINTF=1
1258 else
1259 HAVE_ASPRINTF=0
1260 fi
1261 AC_SUBST([HAVE_ASPRINTF])
1262 if test "$ac_cv_func_snprintf" = yes; then
1263 HAVE_SNPRINTF=1
1264 else
1265 HAVE_SNPRINTF=0
1266 fi
1267 AC_SUBST([HAVE_SNPRINTF])
1268 if test "$ac_cv_func_wprintf" = yes; then
1269 HAVE_WPRINTF=1
1270 else
1271 HAVE_WPRINTF=0
1272 fi
1273 AC_SUBST([HAVE_WPRINTF])
12741208
12751209 AM_ICONV
12761210 AM_LANGINFO_CODESET
12771211 if test $ac_cv_header_locale_h = yes; then
1278 gt_LC_MESSAGES
1279 fi
1280
1281 if test -n "$INTL_MACOSX_LIBS"; then
1282 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
1212 AM_LC_MESSAGES
12831213 fi
12841214
12851215 dnl intl/plural.c is generated from intl/plural.y. It requires bison,
13151245 ])
13161246
13171247
1318 dnl Checks for special options needed on MacOS X.
1319 dnl Defines INTL_MACOSX_LIBS.
1320 AC_DEFUN([gt_INTL_MACOSX],
1321 [
1322 dnl Check for API introduced in MacOS X 10.2.
1323 AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
1324 gt_cv_func_CFPreferencesCopyAppValue,
1325 [gt_save_CPPFLAGS="$CPPFLAGS"
1326 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
1327 gt_save_LIBS="$LIBS"
1328 LIBS="$LIBS -framework CoreFoundation"
1329 AC_TRY_LINK([#include <CFPreferences.h>],
1330 [CFPreferencesCopyAppValue(NULL, NULL)],
1331 [gt_cv_func_CFPreferencesCopyAppValue=yes],
1332 [gt_cv_func_CFPreferencesCopyAppValue=no])
1333 CPPFLAGS="$gt_save_CPPFLAGS"
1334 LIBS="$gt_save_LIBS"])
1335 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
1336 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
1337 [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
1338 fi
1339 dnl Check for API introduced in MacOS X 10.3.
1340 AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
1341 [gt_save_CPPFLAGS="$CPPFLAGS"
1342 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
1343 gt_save_LIBS="$LIBS"
1344 LIBS="$LIBS -framework CoreFoundation"
1345 AC_TRY_LINK([#include <CFLocale.h>], [CFLocaleCopyCurrent();],
1346 [gt_cv_func_CFLocaleCopyCurrent=yes],
1347 [gt_cv_func_CFLocaleCopyCurrent=no])
1348 CPPFLAGS="$gt_save_CPPFLAGS"
1349 LIBS="$gt_save_LIBS"])
1350 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
1351 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
1352 [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
1353 fi
1354 INTL_MACOSX_LIBS=
1355 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
1356 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
1357 fi
1358 AC_SUBST([INTL_MACOSX_LIBS])
1359 ])
1360
1361
1362 dnl gt_CHECK_DECL(FUNC, INCLUDES)
1363 dnl Check whether a function is declared.
1364 AC_DEFUN([gt_CHECK_DECL],
1365 [
1366 AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1,
1367 [AC_TRY_COMPILE([$2], [
1368 #ifndef $1
1369 char *p = (char *) $1;
1370 #endif
1371 ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])
1372 if test $ac_cv_have_decl_$1 = yes; then
1373 gt_value=1
1374 else
1375 gt_value=0
1376 fi
1377 AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],
1378 [Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
1379 ])
1380
1381
13821248 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
13831249 AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
13841250
1385 # po.m4 serial 7 (gettext-0.14.3)
1386 dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
1387 dnl This file is free software; the Free Software Foundation
1388 dnl gives unlimited permission to copy and/or distribute it,
1389 dnl with or without modifications, as long as this notice is preserved.
1251 # po.m4 serial 1 (gettext-0.12)
1252 dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
1253 dnl This file is free software, distributed under the terms of the GNU
1254 dnl General Public License. As a special exception to the GNU General
1255 dnl Public License, this file may be distributed as part of a program
1256 dnl that contains a configuration script generated by Autoconf, under
1257 dnl the same distribution terms as the rest of that program.
13901258 dnl
13911259 dnl This file can can be used in projects which are not available under
13921260 dnl the GNU General Public License or the GNU Library General Public
14011269 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
14021270 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
14031271
1404 AC_PREREQ(2.50)
1405
14061272 dnl Checks for all prerequisites of the po subdirectory.
14071273 AC_DEFUN([AM_PO_SUBDIRS],
14081274 [
14181284 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
14191285 dnl The second test excludes FreeBSD msgfmt.
14201286 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
1421 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
1287 [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
14221288 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
14231289 :)
14241290 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
14271293 dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
14281294 dnl The second test excludes FreeBSD xgettext.
14291295 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
1430 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
1296 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14311297 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
14321298 :)
14331299 dnl Remove leftover from FreeBSD xgettext call.
14351301
14361302 dnl Search for GNU msgmerge 0.11 or newer in the PATH.
14371303 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
1438 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
1304 [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :)
14391305
14401306 dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
14411307 dnl Test whether we really found GNU msgfmt.
14901356 /*) top_srcdir="$ac_given_srcdir" ;;
14911357 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14921358 esac
1493 # Treat a directory as a PO directory if and only if it has a
1494 # POTFILES.in file. This allows packages to have multiple PO
1495 # directories under different names or in different locations.
14961359 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14971360 rm -f "$ac_dir/POTFILES"
14981361 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14991362 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15001363 POMAKEFILEDEPS="POTFILES.in"
1501 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
1364 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15021365 # on $ac_dir but don't depend on user-specified configuration
15031366 # parameters.
15041367 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15061369 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15071370 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15081371 fi
1509 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
1372 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15101373 # Hide the ALL_LINGUAS assigment from automake.
15111374 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15121375 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15141377 # The set of available languages was given in configure.in.
15151378 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15161379 fi
1517 # Compute POFILES
1518 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
1519 # Compute UPDATEPOFILES
1520 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
1521 # Compute DUMMYPOFILES
1522 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
1523 # Compute GMOFILES
1524 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15251380 case "$ac_given_srcdir" in
15261381 .) srcdirpre= ;;
15271382 *) srcdirpre='$(srcdir)/' ;;
15281383 esac
15291384 POFILES=
1385 GMOFILES=
15301386 UPDATEPOFILES=
15311387 DUMMYPOFILES=
1532 GMOFILES=
15331388 for lang in $ALL_LINGUAS; do
15341389 POFILES="$POFILES $srcdirpre$lang.po"
1390 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15351391 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15361392 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
1537 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15381393 done
15391394 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15401395 # environment variable.
15691424 done
15701425 fi
15711426 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
1572 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
1427 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15731428 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15741429 if test -f "$f"; then
15751430 case "$f" in
15831438 esac
15841439 done],
15851440 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
1586 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
1441 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15871442 # from automake.
15881443 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15891444 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15911446 ])
15921447 ])
15931448
1594 dnl Postprocesses a Makefile in a directory containing PO files.
1595 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
1596 [
1597 # When this code is run, in config.status, two variables have already been
1598 # set:
1599 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
1600 # - LINGUAS is the value of the environment variable LINGUAS at configure
1601 # time.
1602
1603 changequote(,)dnl
1604 # Adjust a relative srcdir.
1605 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
1606 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
1607 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
1608 # In autoconf-2.13 it is called $ac_given_srcdir.
1609 # In autoconf-2.50 it is called $srcdir.
1610 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
1611 case "$ac_given_srcdir" in
1612 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
1613 /*) top_srcdir="$ac_given_srcdir" ;;
1614 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
1615 esac
1616
1617 # Find a way to echo strings without interpreting backslash.
1618 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
1619 gt_echo='echo'
1620 else
1621 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
1622 gt_echo='printf %s\n'
1623 else
1624 echo_func () {
1625 cat <<EOT
1626 $*
1627 EOT
1628 }
1629 gt_echo='echo_func'
1630 fi
1631 fi
1632
1633 # A sed script that extracts the value of VARIABLE from a Makefile.
1634 sed_x_variable='
1635 # Test if the hold space is empty.
1636 x
1637 s/P/P/
1638 x
1639 ta
1640 # Yes it was empty. Look if we have the expected variable definition.
1641 /^[ ]*VARIABLE[ ]*=/{
1642 # Seen the first line of the variable definition.
1643 s/^[ ]*VARIABLE[ ]*=//
1644 ba
1645 }
1646 bd
1647 :a
1648 # Here we are processing a line from the variable definition.
1649 # Remove comment, more precisely replace it with a space.
1650 s/#.*$/ /
1651 # See if the line ends in a backslash.
1652 tb
1653 :b
1654 s/\\$//
1655 # Print the line, without the trailing backslash.
1656 p
1657 tc
1658 # There was no trailing backslash. The end of the variable definition is
1659 # reached. Clear the hold space.
1660 s/^.*$//
1661 x
1662 bd
1663 :c
1664 # A trailing backslash means that the variable definition continues in the
1665 # next line. Put a nonempty string into the hold space to indicate this.
1666 s/^.*$/P/
1667 x
1668 :d
1669 '
1670 changequote([,])dnl
1671
1672 # Set POTFILES to the value of the Makefile variable POTFILES.
1673 sed_x_POTFILES="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`"
1674 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
1675 # Compute POTFILES_DEPS as
1676 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
1677 POTFILES_DEPS=
1678 for file in $POTFILES; do
1679 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
1680 done
1681 POMAKEFILEDEPS=""
1682
1683 if test -n "$OBSOLETE_ALL_LINGUAS"; then
1684 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
1685 fi
1686 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
1687 # The LINGUAS file contains the set of available languages.
1688 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
1689 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
1690 else
1691 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
1692 sed_x_LINGUAS="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`"
1693 ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
1694 fi
1695 # Hide the ALL_LINGUAS assigment from automake.
1696 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
1697 # Compute POFILES
1698 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
1699 # Compute UPDATEPOFILES
1700 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
1701 # Compute DUMMYPOFILES
1702 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
1703 # Compute GMOFILES
1704 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
1705 # Compute PROPERTIESFILES
1706 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
1707 # Compute CLASSFILES
1708 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
1709 # Compute QMFILES
1710 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
1711 # Compute MSGFILES
1712 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
1713 # Compute RESOURCESDLLFILES
1714 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
1715 case "$ac_given_srcdir" in
1716 .) srcdirpre= ;;
1717 *) srcdirpre='$(srcdir)/' ;;
1718 esac
1719 POFILES=
1720 UPDATEPOFILES=
1721 DUMMYPOFILES=
1722 GMOFILES=
1723 PROPERTIESFILES=
1724 CLASSFILES=
1725 QMFILES=
1726 MSGFILES=
1727 RESOURCESDLLFILES=
1728 for lang in $ALL_LINGUAS; do
1729 POFILES="$POFILES $srcdirpre$lang.po"
1730 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
1731 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
1732 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1733 PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
1734 CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
1735 QMFILES="$QMFILES $srcdirpre$lang.qm"
1736 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1737 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
1738 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
1739 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
1740 done
1741 # CATALOGS depends on both $ac_dir and the user's LINGUAS
1742 # environment variable.
1743 INST_LINGUAS=
1744 if test -n "$ALL_LINGUAS"; then
1745 for presentlang in $ALL_LINGUAS; do
1746 useit=no
1747 if test "%UNSET%" != "$LINGUAS"; then
1748 desiredlanguages="$LINGUAS"
1749 else
1750 desiredlanguages="$ALL_LINGUAS"
1751 fi
1752 for desiredlang in $desiredlanguages; do
1753 # Use the presentlang catalog if desiredlang is
1754 # a. equal to presentlang, or
1755 # b. a variant of presentlang (because in this case,
1756 # presentlang can be used as a fallback for messages
1757 # which are not translated in the desiredlang catalog).
1758 case "$desiredlang" in
1759 "$presentlang"*) useit=yes;;
1760 esac
1761 done
1762 if test $useit = yes; then
1763 INST_LINGUAS="$INST_LINGUAS $presentlang"
1764 fi
1765 done
1766 fi
1767 CATALOGS=
1768 JAVACATALOGS=
1769 QTCATALOGS=
1770 TCLCATALOGS=
1771 CSHARPCATALOGS=
1772 if test -n "$INST_LINGUAS"; then
1773 for lang in $INST_LINGUAS; do
1774 CATALOGS="$CATALOGS $lang.gmo"
1775 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
1776 QTCATALOGS="$QTCATALOGS $lang.qm"
1777 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1778 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
1779 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
1780 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
1781 done
1782 fi
1783
1784 sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
1785 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
1786 # Add dependencies that cannot be formulated as a simple suffix rule.
1787 for lang in $ALL_LINGUAS; do
1788 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1789 cat >> "$ac_file.tmp" <<EOF
1790 $frobbedlang.msg: $lang.po
1791 @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
1792 \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
1793 EOF
1794 done
1795 fi
1796 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
1797 # Add dependencies that cannot be formulated as a simple suffix rule.
1798 for lang in $ALL_LINGUAS; do
1799 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
1800 cat >> "$ac_file.tmp" <<EOF
1801 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
1802 @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
1803 \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
1804 EOF
1805 done
1806 fi
1807 if test -n "$POMAKEFILEDEPS"; then
1808 cat >> "$ac_file.tmp" <<EOF
1809 Makefile: $POMAKEFILEDEPS
1810 EOF
1811 fi
1812 mv "$ac_file.tmp" "$ac_file"
1813 ])
1814
1815 # nls.m4 serial 2 (gettext-0.14.3)
1816 dnl Copyright (C) 1995-2003, 2005 Free Software Foundation, Inc.
1817 dnl This file is free software; the Free Software Foundation
1818 dnl gives unlimited permission to copy and/or distribute it,
1819 dnl with or without modifications, as long as this notice is preserved.
1449 # nls.m4 serial 1 (gettext-0.12)
1450 dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
1451 dnl This file is free software, distributed under the terms of the GNU
1452 dnl General Public License. As a special exception to the GNU General
1453 dnl Public License, this file may be distributed as part of a program
1454 dnl that contains a configuration script generated by Autoconf, under
1455 dnl the same distribution terms as the rest of that program.
18201456 dnl
18211457 dnl This file can can be used in projects which are not available under
18221458 dnl the GNU General Public License or the GNU Library General Public
18301466 dnl Authors:
18311467 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
18321468 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1833
1834 AC_PREREQ(2.50)
18351469
18361470 AC_DEFUN([AM_NLS],
18371471 [
18461480
18471481 AC_DEFUN([AM_MKINSTALLDIRS],
18481482 [
1849 dnl Tell automake >= 1.10 to complain if mkinstalldirs is missing.
1850 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])])
18511483 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
18521484 dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
18531485 dnl Try to locate it.
18641496 AC_SUBST(MKINSTALLDIRS)
18651497 ])
18661498
1867 # progtest.m4 serial 4 (gettext-0.14.2)
1868 dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
1869 dnl This file is free software; the Free Software Foundation
1870 dnl gives unlimited permission to copy and/or distribute it,
1871 dnl with or without modifications, as long as this notice is preserved.
1499 # progtest.m4 serial 3 (gettext-0.12)
1500 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
1501 dnl This file is free software, distributed under the terms of the GNU
1502 dnl General Public License. As a special exception to the GNU General
1503 dnl Public License, this file may be distributed as part of a program
1504 dnl that contains a configuration script generated by Autoconf, under
1505 dnl the same distribution terms as the rest of that program.
18721506 dnl
18731507 dnl This file can can be used in projects which are not available under
18741508 dnl the GNU General Public License or the GNU Library General Public
18811515
18821516 dnl Authors:
18831517 dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
1884
1885 AC_PREREQ(2.50)
18861518
18871519 # Search path for a program which passes the given test.
18881520
19331565 test -z "$ac_dir" && ac_dir=.
19341566 for ac_exec_ext in '' $ac_executable_extensions; do
19351567 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1936 echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
19371568 if [$3]; then
19381569 ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
19391570 break 2
19571588 AC_SUBST($1)dnl
19581589 ])
19591590
1960 # lib-prefix.m4 serial 4 (gettext-0.14.2)
1961 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
1962 dnl This file is free software; the Free Software Foundation
1963 dnl gives unlimited permission to copy and/or distribute it,
1964 dnl with or without modifications, as long as this notice is preserved.
1591 # lib-prefix.m4 serial 2 (gettext-0.12)
1592 dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
1593 dnl This file is free software, distributed under the terms of the GNU
1594 dnl General Public License. As a special exception to the GNU General
1595 dnl Public License, this file may be distributed as part of a program
1596 dnl that contains a configuration script generated by Autoconf, under
1597 dnl the same distribution terms as the rest of that program.
19651598
19661599 dnl From Bruno Haible.
19671600
19701603 dnl require excessive bracketing.
19711604 ifdef([AC_HELP_STRING],
19721605 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
1973 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
1606 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
19741607
19751608 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
19761609 dnl to access previously installed libraries. The basic assumption is that
20281661 if test "X$additional_includedir" = "X/usr/local/include"; then
20291662 if test -n "$GCC"; then
20301663 case $host_os in
2031 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
1664 linux*) haveit=yes;;
20321665 esac
20331666 fi
20341667 fi
21111744 prefix="$acl_save_prefix"
21121745 ])
21131746
2114 # lib-link.m4 serial 6 (gettext-0.14.3)
2115 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
2116 dnl This file is free software; the Free Software Foundation
2117 dnl gives unlimited permission to copy and/or distribute it,
2118 dnl with or without modifications, as long as this notice is preserved.
1747 # lib-link.m4 serial 4 (gettext-0.12)
1748 dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
1749 dnl This file is free software, distributed under the terms of the GNU
1750 dnl General Public License. As a special exception to the GNU General
1751 dnl Public License, this file may be distributed as part of a program
1752 dnl that contains a configuration script generated by Autoconf, under
1753 dnl the same distribution terms as the rest of that program.
21191754
21201755 dnl From Bruno Haible.
2121
2122 AC_PREREQ(2.50)
21231756
21241757 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
21251758 dnl the libraries corresponding to explicit and implicit dependencies.
22081841 dnl hardcode_direct, hardcode_minus_L.
22091842 AC_DEFUN([AC_LIB_RPATH],
22101843 [
2211 dnl Tell automake >= 1.10 to complain if config.rpath is missing.
2212 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
22131844 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
22141845 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
22151846 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
24652096 if test "X$additional_includedir" = "X/usr/local/include"; then
24662097 if test -n "$GCC"; then
24672098 case $host_os in
2468 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2099 linux*) haveit=yes;;
24692100 esac
24702101 fi
24712102 fi
25142145 if test "X$additional_libdir" = "X/usr/local/lib"; then
25152146 if test -n "$GCC"; then
25162147 case $host_os in
2517 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2148 linux*) haveit=yes;;
25182149 esac
25192150 fi
25202151 fi
26652296 done
26662297 ])
26672298
2668 # lib-ld.m4 serial 3 (gettext-0.13)
2299 # lib-ld.m4 serial 2 (gettext-0.12)
26692300 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
2670 dnl This file is free software; the Free Software Foundation
2671 dnl gives unlimited permission to copy and/or distribute it,
2672 dnl with or without modifications, as long as this notice is preserved.
2301 dnl This file is free software, distributed under the terms of the GNU
2302 dnl General Public License. As a special exception to the GNU General
2303 dnl Public License, this file may be distributed as part of a program
2304 dnl that contains a configuration script generated by Autoconf, under
2305 dnl the same distribution terms as the rest of that program.
26732306
26742307 dnl Subroutines of libtool.m4,
26752308 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
26792312 AC_DEFUN([AC_LIB_PROG_LD_GNU],
26802313 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
26812314 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2682 case `$LD -v 2>&1 </dev/null` in
2683 *GNU* | *'with BFD'*)
2684 acl_cv_prog_gnu_ld=yes ;;
2685 *)
2686 acl_cv_prog_gnu_ld=no ;;
2687 esac])
2315 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2316 acl_cv_prog_gnu_ld=yes
2317 else
2318 acl_cv_prog_gnu_ld=no
2319 fi])
26882320 with_gnu_ld=$acl_cv_prog_gnu_ld
26892321 ])
26902322
27542386 # Check to see if the program is GNU ld. I'd rather use --version,
27552387 # but apparently some GNU ld's only accept -v.
27562388 # Break only if it was the GNU/non-GNU ld that we prefer.
2757 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
2758 *GNU* | *'with BFD'*)
2759 test "$with_gnu_ld" != no && break ;;
2760 *)
2761 test "$with_gnu_ld" != yes && break ;;
2762 esac
2389 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2390 test "$with_gnu_ld" != no && break
2391 else
2392 test "$with_gnu_ld" != yes && break
2393 fi
27632394 fi
27642395 done
27652396 IFS="$ac_save_ifs"
27782409
27792410 # iconv.m4 serial AM4 (gettext-0.11.3)
27802411 dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
2781 dnl This file is free software; the Free Software Foundation
2782 dnl gives unlimited permission to copy and/or distribute it,
2783 dnl with or without modifications, as long as this notice is preserved.
2412 dnl This file is free software, distributed under the terms of the GNU
2413 dnl General Public License. As a special exception to the GNU General
2414 dnl Public License, this file may be distributed as part of a program
2415 dnl that contains a configuration script generated by Autoconf, under
2416 dnl the same distribution terms as the rest of that program.
27842417
27852418 dnl From Bruno Haible.
27862419
28782511 fi
28792512 ])
28802513
2881 # glibc2.m4 serial 1
2882 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
2883 dnl This file is free software; the Free Software Foundation
2884 dnl gives unlimited permission to copy and/or distribute it,
2885 dnl with or without modifications, as long as this notice is preserved.
2886
2887 # Test for the GNU C Library, version 2.0 or newer.
2888 # From Bruno Haible.
2889
2890 AC_DEFUN([gt_GLIBC2],
2891 [
2892 AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer,
2893 ac_cv_gnu_library_2,
2894 [AC_EGREP_CPP([Lucky GNU user],
2895 [
2896 #include <features.h>
2897 #ifdef __GNU_LIBRARY__
2898 #if (__GLIBC__ >= 2)
2899 Lucky GNU user
2900 #endif
2901 #endif
2902 ],
2903 ac_cv_gnu_library_2=yes,
2904 ac_cv_gnu_library_2=no)
2905 ]
2906 )
2907 AC_SUBST(GLIBC2)
2908 GLIBC2="$ac_cv_gnu_library_2"
2909 ]
2910 )
2911
29122514 # isc-posix.m4 serial 2 (gettext-0.11.2)
29132515 dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
2914 dnl This file is free software; the Free Software Foundation
2915 dnl gives unlimited permission to copy and/or distribute it,
2916 dnl with or without modifications, as long as this notice is preserved.
2516 dnl This file is free software, distributed under the terms of the GNU
2517 dnl General Public License. As a special exception to the GNU General
2518 dnl Public License, this file may be distributed as part of a program
2519 dnl that contains a configuration script generated by Autoconf, under
2520 dnl the same distribution terms as the rest of that program.
29172521
29182522 # This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
29192523
29342538 ]
29352539 )
29362540
2937 # signed.m4 serial 1 (gettext-0.10.40)
2938 dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
2939 dnl This file is free software; the Free Software Foundation
2940 dnl gives unlimited permission to copy and/or distribute it,
2941 dnl with or without modifications, as long as this notice is preserved.
2942
2943 dnl From Bruno Haible.
2944
2945 AC_DEFUN([bh_C_SIGNED],
2946 [
2947 AC_CACHE_CHECK([for signed], bh_cv_c_signed,
2948 [AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)])
2949 if test $bh_cv_c_signed = no; then
2950 AC_DEFINE(signed, ,
2951 [Define to empty if the C compiler doesn't support this keyword.])
2952 fi
2953 ])
2954
2955 # longlong.m4 serial 5
2956 dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
2957 dnl This file is free software; the Free Software Foundation
2958 dnl gives unlimited permission to copy and/or distribute it,
2959 dnl with or without modifications, as long as this notice is preserved.
2960
2961 dnl From Paul Eggert.
2962
2963 # Define HAVE_LONG_LONG if 'long long' works.
2964
2965 AC_DEFUN([gl_AC_TYPE_LONG_LONG],
2966 [
2967 AC_CACHE_CHECK([for long long], ac_cv_type_long_long,
2968 [AC_TRY_LINK([long long ll = 1LL; int i = 63;],
2969 [long long llmax = (long long) -1;
2970 return ll << i | ll >> i | llmax / ll | llmax % ll;],
2971 ac_cv_type_long_long=yes,
2972 ac_cv_type_long_long=no)])
2973 if test $ac_cv_type_long_long = yes; then
2974 AC_DEFINE(HAVE_LONG_LONG, 1,
2975 [Define if you have the 'long long' type.])
2976 fi
2977 ])
2978
2979 # longdouble.m4 serial 1 (gettext-0.12)
2980 dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
2981 dnl This file is free software; the Free Software Foundation
2982 dnl gives unlimited permission to copy and/or distribute it,
2983 dnl with or without modifications, as long as this notice is preserved.
2984
2985 dnl From Bruno Haible.
2986 dnl Test whether the compiler supports the 'long double' type.
2987 dnl Prerequisite: AC_PROG_CC
2988
2989 AC_DEFUN([gt_TYPE_LONGDOUBLE],
2990 [
2991 AC_CACHE_CHECK([for long double], gt_cv_c_long_double,
2992 [if test "$GCC" = yes; then
2993 gt_cv_c_long_double=yes
2994 else
2995 AC_TRY_COMPILE([
2996 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
2997 long double foo = 0.0;
2998 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
2999 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
3000 ], ,
3001 gt_cv_c_long_double=yes, gt_cv_c_long_double=no)
3002 fi])
3003 if test $gt_cv_c_long_double = yes; then
3004 AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.])
3005 fi
3006 ])
3007
3008 # wchar_t.m4 serial 1 (gettext-0.12)
3009 dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
3010 dnl This file is free software; the Free Software Foundation
3011 dnl gives unlimited permission to copy and/or distribute it,
3012 dnl with or without modifications, as long as this notice is preserved.
3013
3014 dnl From Bruno Haible.
3015 dnl Test whether <stddef.h> has the 'wchar_t' type.
3016 dnl Prerequisite: AC_PROG_CC
3017
3018 AC_DEFUN([gt_TYPE_WCHAR_T],
3019 [
3020 AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t,
3021 [AC_TRY_COMPILE([#include <stddef.h>
3022 wchar_t foo = (wchar_t)'\0';], ,
3023 gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)])
3024 if test $gt_cv_c_wchar_t = yes; then
3025 AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.])
3026 fi
3027 ])
3028
3029 # wint_t.m4 serial 1 (gettext-0.12)
3030 dnl Copyright (C) 2003 Free Software Foundation, Inc.
3031 dnl This file is free software; the Free Software Foundation
3032 dnl gives unlimited permission to copy and/or distribute it,
3033 dnl with or without modifications, as long as this notice is preserved.
3034
3035 dnl From Bruno Haible.
3036 dnl Test whether <wchar.h> has the 'wint_t' type.
3037 dnl Prerequisite: AC_PROG_CC
3038
3039 AC_DEFUN([gt_TYPE_WINT_T],
3040 [
3041 AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t,
3042 [AC_TRY_COMPILE([#include <wchar.h>
3043 wint_t foo = (wchar_t)'\0';], ,
3044 gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)])
3045 if test $gt_cv_c_wint_t = yes; then
3046 AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.])
3047 fi
3048 ])
3049
3050 # inttypes_h.m4 serial 6
3051 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
3052 dnl This file is free software; the Free Software Foundation
3053 dnl gives unlimited permission to copy and/or distribute it,
3054 dnl with or without modifications, as long as this notice is preserved.
3055
3056 dnl From Paul Eggert.
3057
3058 # Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
3059 # doesn't clash with <sys/types.h>, and declares uintmax_t.
3060
3061 AC_DEFUN([gl_AC_HEADER_INTTYPES_H],
3062 [
3063 AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h,
3064 [AC_TRY_COMPILE(
3065 [#include <sys/types.h>
3066 #include <inttypes.h>],
3067 [uintmax_t i = (uintmax_t) -1;],
3068 gl_cv_header_inttypes_h=yes,
3069 gl_cv_header_inttypes_h=no)])
3070 if test $gl_cv_header_inttypes_h = yes; then
3071 AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
3072 [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
3073 and declares uintmax_t. ])
3074 fi
3075 ])
3076
3077 # stdint_h.m4 serial 5
3078 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
3079 dnl This file is free software; the Free Software Foundation
3080 dnl gives unlimited permission to copy and/or distribute it,
3081 dnl with or without modifications, as long as this notice is preserved.
3082
3083 dnl From Paul Eggert.
3084
3085 # Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
3086 # doesn't clash with <sys/types.h>, and declares uintmax_t.
3087
3088 AC_DEFUN([gl_AC_HEADER_STDINT_H],
3089 [
3090 AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h,
3091 [AC_TRY_COMPILE(
3092 [#include <sys/types.h>
3093 #include <stdint.h>],
3094 [uintmax_t i = (uintmax_t) -1;],
3095 gl_cv_header_stdint_h=yes,
3096 gl_cv_header_stdint_h=no)])
3097 if test $gl_cv_header_stdint_h = yes; then
3098 AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
3099 [Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
3100 and declares uintmax_t. ])
3101 fi
3102 ])
3103
3104 # intmax.m4 serial 2 (gettext-0.14.2)
3105 dnl Copyright (C) 2002-2005 Free Software Foundation, Inc.
3106 dnl This file is free software; the Free Software Foundation
3107 dnl gives unlimited permission to copy and/or distribute it,
3108 dnl with or without modifications, as long as this notice is preserved.
3109
3110 dnl From Bruno Haible.
3111 dnl Test whether the system has the 'intmax_t' type, but don't attempt to
3112 dnl find a replacement if it is lacking.
3113
3114 AC_DEFUN([gt_TYPE_INTMAX_T],
3115 [
3116 AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
3117 AC_REQUIRE([gl_AC_HEADER_STDINT_H])
3118 AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t,
3119 [AC_TRY_COMPILE([
3120 #include <stddef.h>
3121 #include <stdlib.h>
3122 #if HAVE_STDINT_H_WITH_UINTMAX
3123 #include <stdint.h>
3124 #endif
3125 #if HAVE_INTTYPES_H_WITH_UINTMAX
3126 #include <inttypes.h>
3127 #endif
3128 ], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)])
3129 if test $gt_cv_c_intmax_t = yes; then
3130 AC_DEFINE(HAVE_INTMAX_T, 1,
3131 [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
3132 fi
3133 ])
3134
3135 # printf-posix.m4 serial 2 (gettext-0.13.1)
3136 dnl Copyright (C) 2003 Free Software Foundation, Inc.
3137 dnl This file is free software; the Free Software Foundation
3138 dnl gives unlimited permission to copy and/or distribute it,
3139 dnl with or without modifications, as long as this notice is preserved.
3140
3141 dnl From Bruno Haible.
3142 dnl Test whether the printf() function supports POSIX/XSI format strings with
3143 dnl positions.
3144
3145 AC_DEFUN([gt_PRINTF_POSIX],
3146 [
3147 AC_REQUIRE([AC_PROG_CC])
3148 AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings],
3149 gt_cv_func_printf_posix,
3150 [
3151 AC_TRY_RUN([
3152 #include <stdio.h>
3153 #include <string.h>
3154 /* The string "%2$d %1$d", with dollar characters protected from the shell's
3155 dollar expansion (possibly an autoconf bug). */
3156 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
3157 static char buf[100];
3158 int main ()
3159 {
3160 sprintf (buf, format, 33, 55);
3161 return (strcmp (buf, "55 33") != 0);
3162 }], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no,
3163 [
3164 AC_EGREP_CPP(notposix, [
3165 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
3166 notposix
3167 #endif
3168 ], gt_cv_func_printf_posix="guessing no",
3169 gt_cv_func_printf_posix="guessing yes")
3170 ])
3171 ])
3172 case $gt_cv_func_printf_posix in
3173 *yes)
3174 AC_DEFINE(HAVE_POSIX_PRINTF, 1,
3175 [Define if your printf() function supports format strings with positions.])
3176 ;;
3177 esac
3178 ])
3179
3180 # glibc21.m4 serial 3
3181 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
3182 dnl This file is free software; the Free Software Foundation
3183 dnl gives unlimited permission to copy and/or distribute it,
3184 dnl with or without modifications, as long as this notice is preserved.
2541 # glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40)
2542 dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
2543 dnl This file is free software, distributed under the terms of the GNU
2544 dnl General Public License. As a special exception to the GNU General
2545 dnl Public License, this file may be distributed as part of a program
2546 dnl that contains a configuration script generated by Autoconf, under
2547 dnl the same distribution terms as the rest of that program.
31852548
31862549 # Test for the GNU C Library, version 2.1 or newer.
31872550 # From Bruno Haible.
31882551
3189 AC_DEFUN([gl_GLIBC21],
2552 AC_DEFUN([jm_GLIBC21],
31902553 [
31912554 AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
31922555 ac_cv_gnu_library_2_1,
32102573
32112574 # intdiv0.m4 serial 1 (gettext-0.11.3)
32122575 dnl Copyright (C) 2002 Free Software Foundation, Inc.
3213 dnl This file is free software; the Free Software Foundation
3214 dnl gives unlimited permission to copy and/or distribute it,
3215 dnl with or without modifications, as long as this notice is preserved.
2576 dnl This file is free software, distributed under the terms of the GNU
2577 dnl General Public License. As a special exception to the GNU General
2578 dnl Public License, this file may be distributed as part of a program
2579 dnl that contains a configuration script generated by Autoconf, under
2580 dnl the same distribution terms as the rest of that program.
32162581
32172582 dnl From Bruno Haible.
32182583
32792644 [Define if integer division by zero raises signal SIGFPE.])
32802645 ])
32812646
3282 # uintmax_t.m4 serial 9
3283 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
3284 dnl This file is free software; the Free Software Foundation
3285 dnl gives unlimited permission to copy and/or distribute it,
3286 dnl with or without modifications, as long as this notice is preserved.
2647 # uintmax_t.m4 serial 7 (gettext-0.12)
2648 dnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
2649 dnl This file is free software, distributed under the terms of the GNU
2650 dnl General Public License. As a special exception to the GNU General
2651 dnl Public License, this file may be distributed as part of a program
2652 dnl that contains a configuration script generated by Autoconf, under
2653 dnl the same distribution terms as the rest of that program.
32872654
32882655 dnl From Paul Eggert.
32892656
32922659 # Define uintmax_t to 'unsigned long' or 'unsigned long long'
32932660 # if it is not already defined in <stdint.h> or <inttypes.h>.
32942661
3295 AC_DEFUN([gl_AC_TYPE_UINTMAX_T],
2662 AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
32962663 [
3297 AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
3298 AC_REQUIRE([gl_AC_HEADER_STDINT_H])
3299 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
3300 AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG])
2664 AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
2665 AC_REQUIRE([jm_AC_HEADER_STDINT_H])
2666 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
2667 AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
33012668 test $ac_cv_type_unsigned_long_long = yes \
33022669 && ac_type='unsigned long long' \
33032670 || ac_type='unsigned long'
33102677 fi
33112678 ])
33122679
3313 # ulonglong.m4 serial 4
3314 dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
3315 dnl This file is free software; the Free Software Foundation
3316 dnl gives unlimited permission to copy and/or distribute it,
3317 dnl with or without modifications, as long as this notice is preserved.
2680 # inttypes_h.m4 serial 5 (gettext-0.12)
2681 dnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
2682 dnl This file is free software, distributed under the terms of the GNU
2683 dnl General Public License. As a special exception to the GNU General
2684 dnl Public License, this file may be distributed as part of a program
2685 dnl that contains a configuration script generated by Autoconf, under
2686 dnl the same distribution terms as the rest of that program.
33182687
33192688 dnl From Paul Eggert.
33202689
3321 # Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works.
3322
3323 AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG],
2690 # Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
2691 # doesn't clash with <sys/types.h>, and declares uintmax_t.
2692
2693 AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
2694 [
2695 AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
2696 [AC_TRY_COMPILE(
2697 [#include <sys/types.h>
2698 #include <inttypes.h>],
2699 [uintmax_t i = (uintmax_t) -1;],
2700 jm_ac_cv_header_inttypes_h=yes,
2701 jm_ac_cv_header_inttypes_h=no)])
2702 if test $jm_ac_cv_header_inttypes_h = yes; then
2703 AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
2704 [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
2705 and declares uintmax_t. ])
2706 fi
2707 ])
2708
2709 # stdint_h.m4 serial 3 (gettext-0.12)
2710 dnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
2711 dnl This file is free software, distributed under the terms of the GNU
2712 dnl General Public License. As a special exception to the GNU General
2713 dnl Public License, this file may be distributed as part of a program
2714 dnl that contains a configuration script generated by Autoconf, under
2715 dnl the same distribution terms as the rest of that program.
2716
2717 dnl From Paul Eggert.
2718
2719 # Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
2720 # doesn't clash with <sys/types.h>, and declares uintmax_t.
2721
2722 AC_DEFUN([jm_AC_HEADER_STDINT_H],
2723 [
2724 AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
2725 [AC_TRY_COMPILE(
2726 [#include <sys/types.h>
2727 #include <stdint.h>],
2728 [uintmax_t i = (uintmax_t) -1;],
2729 jm_ac_cv_header_stdint_h=yes,
2730 jm_ac_cv_header_stdint_h=no)])
2731 if test $jm_ac_cv_header_stdint_h = yes; then
2732 AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
2733 [Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
2734 and declares uintmax_t. ])
2735 fi
2736 ])
2737
2738 # ulonglong.m4 serial 2 (fileutils-4.0.32, gettext-0.10.40)
2739 dnl Copyright (C) 1999-2002 Free Software Foundation, Inc.
2740 dnl This file is free software, distributed under the terms of the GNU
2741 dnl General Public License. As a special exception to the GNU General
2742 dnl Public License, this file may be distributed as part of a program
2743 dnl that contains a configuration script generated by Autoconf, under
2744 dnl the same distribution terms as the rest of that program.
2745
2746 dnl From Paul Eggert.
2747
2748 AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG],
33242749 [
33252750 AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
3326 [AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;],
2751 [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;],
33272752 [unsigned long long ullmax = (unsigned long long) -1;
33282753 return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
33292754 ac_cv_type_unsigned_long_long=yes,
33302755 ac_cv_type_unsigned_long_long=no)])
33312756 if test $ac_cv_type_unsigned_long_long = yes; then
33322757 AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
3333 [Define if you have the 'unsigned long long' type.])
2758 [Define if you have the unsigned long long type.])
33342759 fi
33352760 ])
33362761
33372762 # inttypes.m4 serial 1 (gettext-0.11.4)
33382763 dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
3339 dnl This file is free software; the Free Software Foundation
3340 dnl gives unlimited permission to copy and/or distribute it,
3341 dnl with or without modifications, as long as this notice is preserved.
2764 dnl This file is free software, distributed under the terms of the GNU
2765 dnl General Public License. As a special exception to the GNU General
2766 dnl Public License, this file may be distributed as part of a program
2767 dnl that contains a configuration script generated by Autoconf, under
2768 dnl the same distribution terms as the rest of that program.
33422769
33432770 dnl From Paul Eggert.
33442771
33622789
33632790 # inttypes-pri.m4 serial 1 (gettext-0.11.4)
33642791 dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
3365 dnl This file is free software; the Free Software Foundation
3366 dnl gives unlimited permission to copy and/or distribute it,
3367 dnl with or without modifications, as long as this notice is preserved.
2792 dnl This file is free software, distributed under the terms of the GNU
2793 dnl General Public License. As a special exception to the GNU General
2794 dnl Public License, this file may be distributed as part of a program
2795 dnl that contains a configuration script generated by Autoconf, under
2796 dnl the same distribution terms as the rest of that program.
33682797
33692798 dnl From Bruno Haible.
33702799
33912820 fi
33922821 ])
33932822
3394 # xsize.m4 serial 3
3395 dnl Copyright (C) 2003-2004 Free Software Foundation, Inc.
3396 dnl This file is free software; the Free Software Foundation
3397 dnl gives unlimited permission to copy and/or distribute it,
3398 dnl with or without modifications, as long as this notice is preserved.
3399
3400 AC_DEFUN([gl_XSIZE],
3401 [
3402 dnl Prerequisites of lib/xsize.h.
3403 AC_REQUIRE([gl_SIZE_MAX])
3404 AC_REQUIRE([AC_C_INLINE])
3405 AC_CHECK_HEADERS(stdint.h)
3406 ])
3407
3408 # size_max.m4 serial 2
3409 dnl Copyright (C) 2003 Free Software Foundation, Inc.
3410 dnl This file is free software; the Free Software Foundation
3411 dnl gives unlimited permission to copy and/or distribute it,
3412 dnl with or without modifications, as long as this notice is preserved.
3413
3414 dnl From Bruno Haible.
3415
3416 AC_DEFUN([gl_SIZE_MAX],
3417 [
3418 AC_CHECK_HEADERS(stdint.h)
3419 dnl First test whether the system already has SIZE_MAX.
3420 AC_MSG_CHECKING([for SIZE_MAX])
3421 result=
3422 AC_EGREP_CPP([Found it], [
3423 #include <limits.h>
3424 #if HAVE_STDINT_H
3425 #include <stdint.h>
3426 #endif
3427 #ifdef SIZE_MAX
3428 Found it
3429 #endif
3430 ], result=yes)
3431 if test -z "$result"; then
3432 dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
3433 dnl than the type 'unsigned long'.
3434 dnl The _AC_COMPUTE_INT macro works up to LONG_MAX, since it uses 'expr',
3435 dnl which is guaranteed to work from LONG_MIN to LONG_MAX.
3436 _AC_COMPUTE_INT([~(size_t)0 / 10], res_hi,
3437 [#include <stddef.h>], result=?)
3438 _AC_COMPUTE_INT([~(size_t)0 % 10], res_lo,
3439 [#include <stddef.h>], result=?)
3440 _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint,
3441 [#include <stddef.h>], result=?)
3442 if test "$fits_in_uint" = 1; then
3443 dnl Even though SIZE_MAX fits in an unsigned int, it must be of type
3444 dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'.
3445 AC_TRY_COMPILE([#include <stddef.h>
3446 extern size_t foo;
3447 extern unsigned long foo;
3448 ], [], fits_in_uint=0)
3449 fi
3450 if test -z "$result"; then
3451 if test "$fits_in_uint" = 1; then
3452 result="$res_hi$res_lo"U
3453 else
3454 result="$res_hi$res_lo"UL
3455 fi
3456 else
3457 dnl Shouldn't happen, but who knows...
3458 result='~(size_t)0'
3459 fi
3460 fi
3461 AC_MSG_RESULT([$result])
3462 if test "$result" != yes; then
3463 AC_DEFINE_UNQUOTED([SIZE_MAX], [$result],
3464 [Define as the maximum value of type 'size_t', if the system doesn't define it.])
3465 fi
3466 ])
3467
34682823 # codeset.m4 serial AM1 (gettext-0.10.40)
34692824 dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
3470 dnl This file is free software; the Free Software Foundation
3471 dnl gives unlimited permission to copy and/or distribute it,
3472 dnl with or without modifications, as long as this notice is preserved.
2825 dnl This file is free software, distributed under the terms of the GNU
2826 dnl General Public License. As a special exception to the GNU General
2827 dnl Public License, this file may be distributed as part of a program
2828 dnl that contains a configuration script generated by Autoconf, under
2829 dnl the same distribution terms as the rest of that program.
34732830
34742831 dnl From Bruno Haible.
34752832
34872844 fi
34882845 ])
34892846
3490 # lcmessage.m4 serial 4 (gettext-0.14.2)
3491 dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc.
3492 dnl This file is free software; the Free Software Foundation
3493 dnl gives unlimited permission to copy and/or distribute it,
3494 dnl with or without modifications, as long as this notice is preserved.
2847 # lcmessage.m4 serial 3 (gettext-0.11.3)
2848 dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
2849 dnl This file is free software, distributed under the terms of the GNU
2850 dnl General Public License. As a special exception to the GNU General
2851 dnl Public License, this file may be distributed as part of a program
2852 dnl that contains a configuration script generated by Autoconf, under
2853 dnl the same distribution terms as the rest of that program.
34952854 dnl
34962855 dnl This file can can be used in projects which are not available under
34972856 dnl the GNU General Public License or the GNU Library General Public
35072866
35082867 # Check whether LC_MESSAGES is available in <locale.h>.
35092868
3510 AC_DEFUN([gt_LC_MESSAGES],
2869 AC_DEFUN([AM_LC_MESSAGES],
35112870 [
3512 AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES,
2871 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
35132872 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
3514 gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)])
3515 if test $gt_cv_val_LC_MESSAGES = yes; then
2873 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
2874 if test $am_cv_val_LC_MESSAGES = yes; then
35162875 AC_DEFINE(HAVE_LC_MESSAGES, 1,
35172876 [Define if your <locale.h> file defines LC_MESSAGES.])
35182877 fi
35202879
35212880 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
35222881
3523 # serial 47 AC_PROG_LIBTOOL
2882 # serial 48 AC_PROG_LIBTOOL
35242883
35252884
35262885 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
36703029 test -z "$AS" && AS=as
36713030 test -z "$CC" && CC=cc
36723031 test -z "$LTCC" && LTCC=$CC
3032 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
36733033 test -z "$DLLTOOL" && DLLTOOL=dlltool
36743034 test -z "$LD" && LD=ld
36753035 test -z "$LN_S" && LN_S="ln -s"
36893049 if test -n "$RANLIB"; then
36903050 case $host_os in
36913051 openbsd*)
3692 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3052 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
36933053 ;;
36943054 *)
3695 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3055 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
36963056 ;;
36973057 esac
36983058 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
37523112 *** \$ltmain is not defined, please check the patch for consistency! ***
37533113 ])
37543114 fi
3755 gentoo_lt_version="1.5.20"
3756 gentoo_ltmain_version=`grep '^@<:@ @:>@*VERSION=' $ltmain | sed -e 's|^@<:@ @:>@*VERSION=||'`
3115 gentoo_lt_version="1.5.22"
3116 gentoo_ltmain_version=`sed -n '/^[[ ]]*VERSION=/{s/^[[ ]]*VERSION=//;p;q;}' "$ltmain"`
37573117 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
37583118 AC_MSG_RESULT(no)
37593119 AC_MSG_ERROR([
37823142
37833143 # If no C compiler was specified, use CC.
37843144 LTCC=${LTCC-"$CC"}
3145
3146 # If no C compiler flags were specified, use CFLAGS.
3147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
37853148
37863149 # Allow CC to be a program name with arguments.
37873150 compiler=$CC
38113174 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
38123175 [ac_outfile=conftest.$ac_objext
38133176 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
3814 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
3177 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
38153178 _lt_compiler_boilerplate=`cat conftest.err`
38163179 $rm conftest*
38173180 ])# _LT_COMPILER_BOILERPLATE
38243187 AC_DEFUN([_LT_LINKER_BOILERPLATE],
38253188 [ac_outfile=conftest.$ac_objext
38263189 printf "$lt_simple_link_test_code" >conftest.$ac_ext
3827 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
3190 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
38283191 _lt_linker_boilerplate=`cat conftest.err`
38293192 $rm conftest*
38303193 ])# _LT_LINKER_BOILERPLATE
41173480 rm -rf conftest*
41183481 ;;
41193482
4120 *-*-linux*)
4121 # Test if the compiler is 64bit
4122 echo 'int i;' > conftest.$ac_ext
4123 lt_cv_cc_64bit_output=no
4124 if AC_TRY_EVAL(ac_compile); then
4125 case `/usr/bin/file conftest.$ac_objext` in
4126 *"ELF 64"*)
4127 lt_cv_cc_64bit_output=yes
4128 ;;
4129 esac
4130 fi
4131 rm -rf conftest*
4132 ;;
4133
41343483 *-*-sco3.2v5*)
41353484 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
41363485 SAVE_CFLAGS="$CFLAGS"
41443493 CFLAGS="$SAVE_CFLAGS"
41453494 fi
41463495 ;;
3496 sparc*-*solaris*)
3497 # Find out which ABI we are using.
3498 echo 'int i;' > conftest.$ac_ext
3499 if AC_TRY_EVAL(ac_compile); then
3500 case `/usr/bin/file conftest.o` in
3501 *64-bit*)
3502 case $lt_cv_prog_gnu_ld in
3503 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3504 *) LD="${LD-ld} -64" ;;
3505 esac
3506 ;;
3507 esac
3508 fi
3509 rm -rf conftest*
3510 ;;
3511
41473512 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
41483513 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
41493514 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
41863551 if (exit $ac_status) && test -s "$ac_outfile"; then
41873552 # The compiler can only warn and ignore the option if not recognized
41883553 # So say no if there are warnings other than the usual output.
4189 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
4190 $SED '/^$/d' conftest.err >conftest.er2
4191 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
3554 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
3555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
41923557 $2=yes
41933558 fi
41943559 fi
42193584 if test -s conftest.err; then
42203585 # Append any errors to the config.log.
42213586 cat conftest.err 1>&AS_MESSAGE_LOG_FD
4222 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
4223 $SED '/^$/d' conftest.err >conftest.er2
3587 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
3588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
42243589 if diff conftest.exp conftest.er2 >/dev/null; then
42253590 $2=yes
42263591 fi
42953660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
42963661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
42973662 ;;
3663
3664 interix*)
3665 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3666 lt_cv_sys_max_cmd_len=196608
3667 ;;
3668
42983669 osf*)
42993670 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
43003671 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
43063677 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
43073678 *1*) lt_cv_sys_max_cmd_len=-1 ;;
43083679 esac
3680 fi
3681 ;;
3682 sco3.2v5*)
3683 lt_cv_sys_max_cmd_len=102400
3684 ;;
3685 sysv5* | sco5v6* | sysv4.2uw2*)
3686 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3687 if test -n "$kargmax"; then
3688 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
3689 else
3690 lt_cv_sys_max_cmd_len=32768
43093691 fi
43103692 ;;
43113693 *)
43393721
43403722
43413723 # _LT_AC_CHECK_DLFCN
4342 # --------------------
3724 # ------------------
43433725 AC_DEFUN([_LT_AC_CHECK_DLFCN],
43443726 [AC_CHECK_HEADERS(dlfcn.h)dnl
43453727 ])# _LT_AC_CHECK_DLFCN
43473729
43483730 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
43493731 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
4350 # ------------------------------------------------------------------
3732 # ---------------------------------------------------------------------
43513733 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
43523734 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
43533735 if test "$cross_compiling" = yes; then :
44133795 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
44143796 /* dlclose (self); */
44153797 }
3798 else
3799 puts (dlerror ());
44163800
44173801 exit (status);
44183802 }]
44233807 case x$lt_status in
44243808 x$lt_dlno_uscore) $1 ;;
44253809 x$lt_dlneed_uscore) $2 ;;
4426 x$lt_unknown|x*) $3 ;;
3810 x$lt_dlunknown|x*) $3 ;;
44273811 esac
44283812 else :
44293813 # compilation failed
44353819
44363820
44373821 # AC_LIBTOOL_DLOPEN_SELF
4438 # -------------------
3822 # ----------------------
44393823 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
44403824 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
44413825 if test "x$enable_dlopen" != xyes; then
45063890 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
45073891
45083892 save_LDFLAGS="$LDFLAGS"
4509 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
3893 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
45103894
45113895 save_LIBS="$LIBS"
45123896 LIBS="$lt_cv_dlopen_libs $LIBS"
45193903 ])
45203904
45213905 if test "x$lt_cv_dlopen_self" = xyes; then
4522 LDFLAGS="$LDFLAGS $link_static_flag"
3906 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
45233907 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
45243908 lt_cv_dlopen_self_static, [dnl
45253909 _LT_AC_TRY_DLOPEN_SELF(
45793963 then
45803964 # The compiler can only warn and ignore the option if not recognized
45813965 # So say no if there are warnings
4582 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
4583 $SED '/^$/d' out/conftest.err >out/conftest.er2
4584 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3966 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
3967 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3968 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
45853969 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
45863970 fi
45873971 fi
50034387 shlibpath_overrides_runpath=yes
50044388 hardcode_into_libs=yes
50054389 ;;
5006 *) # from 3.2 on
4390 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
4391 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
50074392 shlibpath_overrides_runpath=no
4393 hardcode_into_libs=yes
4394 ;;
4395 freebsd*) # from 4.6 on
4396 shlibpath_overrides_runpath=yes
50084397 hardcode_into_libs=yes
50094398 ;;
50104399 esac
50664455 postinstall_cmds='chmod 555 $lib'
50674456 ;;
50684457
4458 interix3*)
4459 version_type=linux
4460 need_lib_prefix=no
4461 need_version=no
4462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4463 soname_spec='${libname}${release}${shared_ext}$major'
4464 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
4465 shlibpath_var=LD_LIBRARY_PATH
4466 shlibpath_overrides_runpath=no
4467 hardcode_into_libs=yes
4468 ;;
4469
50694470 irix5* | irix6* | nonstopux*)
50704471 case $host_os in
50714472 nonstopux*) version_type=nonstopux ;;
51294530 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
51304531 fi
51314532
5132 case $host_cpu:$lt_cv_cc_64bit_output in
5133 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
5134 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
5135 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
5136 ;;
5137 esac
5138
51394533 # We used to test for /lib/ld.so.1 and disable shared libraries on
51404534 # powerpc, because MkLinux only supported shared libraries with the
51414535 # GNU dynamic linker. Since this was broken with cross compilers,
51434537 # people can always --disable-shared, the test was removed, and we
51444538 # assume the GNU/Linux dynamic linker is in use.
51454539 dynamic_linker='GNU/Linux ld.so'
5146
5147 # Find out which ABI we are using (multilib Linux x86_64 hack).
5148 libsuff=
5149 case "$host_cpu" in
5150 x86_64*)
5151 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
5152 if AC_TRY_EVAL(ac_compile); then
5153 case `/usr/bin/file conftest.$ac_objext` in
5154 *64-bit*)
5155 libsuff=64
5156 ;;
5157 esac
5158 fi
5159 rm -rf conftest*
5160 ;;
5161 *)
5162 ;;
5163 esac
5164 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
5165 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
51664540 ;;
51674541
51684542 knetbsd*-gnu)
52144588
52154589 openbsd*)
52164590 version_type=sunos
4591 sys_lib_dlsearch_path_spec="/usr/lib"
52174592 need_lib_prefix=no
52184593 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
52194594 case $host_os in
52574632 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
52584633 ;;
52594634
5260 sco3.2v5*)
5261 version_type=osf
5262 soname_spec='${libname}${release}${shared_ext}$major'
5263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5264 shlibpath_var=LD_LIBRARY_PATH
5265 ;;
5266
52674635 solaris*)
52684636 version_type=linux
52694637 need_lib_prefix=no
52894657 need_version=yes
52904658 ;;
52914659
5292 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4660 sysv4 | sysv4.3*)
52934661 version_type=linux
52944662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
52954663 soname_spec='${libname}${release}${shared_ext}$major'
53224690 fi
53234691 ;;
53244692
4693 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4694 version_type=freebsd-elf
4695 need_lib_prefix=no
4696 need_version=no
4697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4698 soname_spec='${libname}${release}${shared_ext}$major'
4699 shlibpath_var=LD_LIBRARY_PATH
4700 hardcode_into_libs=yes
4701 if test "$with_gnu_ld" = yes; then
4702 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
4703 shlibpath_overrides_runpath=no
4704 else
4705 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
4706 shlibpath_overrides_runpath=yes
4707 case $host_os in
4708 sco3.2v5*)
4709 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
4710 ;;
4711 esac
4712 fi
4713 sys_lib_dlsearch_path_spec='/usr/lib'
4714 ;;
4715
53254716 uts4*)
53264717 version_type=linux
53274718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
53354726 esac
53364727 AC_MSG_RESULT([$dynamic_linker])
53374728 test "$dynamic_linker" = no && can_build_shared=no
4729
4730 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4731 if test "$GCC" = yes; then
4732 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4733 fi
53384734 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
53394735
53404736
53584754 else
53594755 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
53604756 fi
4757 fi
4758 if test -z "$LTCFLAGS"; then
4759 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
53614760 fi
53624761
53634762 # Extract list of available tagged configurations in $ofile.
54874886
54884887 # AC_DISABLE_SHARED
54894888 # -----------------
5490 #- set the default shared flag to --disable-shared
4889 # set the default shared flag to --disable-shared
54914890 AC_DEFUN([AC_DISABLE_SHARED],
54924891 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
54934892 AC_ENABLE_SHARED(no)
57955194 case $host_os in
57965195 darwin*)
57975196 if test "$GCC" = yes; then
5798 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5197 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
57995198 else
58005199 reload_cmds='$LD$reload_flag -o $output$reload_objs'
58015200 fi
58955294 esac
58965295 ;;
58975296
5297 interix3*)
5298 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5299 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
5300 ;;
5301
58985302 irix5* | irix6* | nonstopux*)
58995303 case $LD in
59005304 *-32|*"-32 ") libmagic=32-bit;;
59405344 lt_cv_deplibs_check_method=pass_all
59415345 ;;
59425346
5943 sco3.2v5*)
5944 lt_cv_deplibs_check_method=pass_all
5945 ;;
5946
59475347 solaris*)
59485348 lt_cv_deplibs_check_method=pass_all
59495349 ;;
59505350
5951 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5351 sysv4 | sysv4.3*)
59525352 case $host_vendor in
59535353 motorola)
59545354 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]]'
59695369 siemens)
59705370 lt_cv_deplibs_check_method=pass_all
59715371 ;;
5372 pc)
5373 lt_cv_deplibs_check_method=pass_all
5374 ;;
59725375 esac
59735376 ;;
59745377
5975 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
5378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
59765379 lt_cv_deplibs_check_method=pass_all
59775380 ;;
59785381 esac
59925395 # Let the user override the test.
59935396 lt_cv_path_NM="$NM"
59945397 else
5995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5996 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5997 IFS="$lt_save_ifs"
5998 test -z "$ac_dir" && ac_dir=.
5999 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6000 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6001 # Check to see if the nm accepts a BSD-compat flag.
6002 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6003 # nm: unknown option "B" ignored
6004 # Tru64's nm complains that /dev/null is an invalid object file
6005 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6006 */dev/null* | *'Invalid file or object type'*)
6007 lt_cv_path_NM="$tmp_nm -B"
6008 break
6009 ;;
6010 *)
6011 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6012 */dev/null*)
6013 lt_cv_path_NM="$tmp_nm -p"
5398 lt_nm_to_check="${ac_tool_prefix}nm"
5399 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5400 lt_nm_to_check="$lt_nm_to_check nm"
5401 fi
5402 for lt_tmp_nm in $lt_nm_to_check; do
5403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5404 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5405 IFS="$lt_save_ifs"
5406 test -z "$ac_dir" && ac_dir=.
5407 tmp_nm="$ac_dir/$lt_tmp_nm"
5408 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5409 # Check to see if the nm accepts a BSD-compat flag.
5410 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5411 # nm: unknown option "B" ignored
5412 # Tru64's nm complains that /dev/null is an invalid object file
5413 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5414 */dev/null* | *'Invalid file or object type'*)
5415 lt_cv_path_NM="$tmp_nm -B"
60145416 break
60155417 ;;
60165418 *)
6017 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6018 continue # so that we can try to find one that supports BSD flags
5419 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5420 */dev/null*)
5421 lt_cv_path_NM="$tmp_nm -p"
5422 break
5423 ;;
5424 *)
5425 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5426 continue # so that we can try to find one that supports BSD flags
5427 ;;
5428 esac
60195429 ;;
60205430 esac
6021 esac
6022 fi
5431 fi
5432 done
5433 IFS="$lt_save_ifs"
60235434 done
6024 IFS="$lt_save_ifs"
60255435 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
60265436 fi])
60275437 NM="$lt_cv_path_NM"
61275537 ])# _LT_AC_LANG_CXX
61285538
61295539 # _LT_AC_PROG_CXXCPP
6130 # ---------------
5540 # ------------------
61315541 AC_DEFUN([_LT_AC_PROG_CXXCPP],
61325542 [
61335543 AC_REQUIRE([AC_PROG_CXX])
61765586
61775587
61785588 # AC_LIBTOOL_RC
6179 # --------------
5589 # -------------
61805590 # enable support for Windows resource files
61815591 AC_DEFUN([AC_LIBTOOL_RC],
61825592 [AC_REQUIRE([LT_AC_PROG_RC])
62135623 _LT_COMPILER_BOILERPLATE
62145624 _LT_LINKER_BOILERPLATE
62155625
6216 #
6217 # Check for any special shared library compilation flags.
6218 #
6219 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
6220 if test "$GCC" = no; then
6221 case $host_os in
6222 sco3.2v5*)
6223 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
6224 ;;
6225 esac
6226 fi
6227 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
6228 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
6229 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
6230 else
6231 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
6232 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
6233 fi
6234 fi
6235
6236
6237 #
6238 # Check to make sure the static flag actually works.
6239 #
6240 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
6241 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
6242 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
6243 [],
6244 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6245
6246
62475626 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
62485627 AC_LIBTOOL_PROG_COMPILER_PIC($1)
62495628 AC_LIBTOOL_PROG_CC_C_O($1)
62525631 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
62535632 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
62545633 AC_LIBTOOL_SYS_LIB_STRIP
6255 AC_LIBTOOL_DLOPEN_SELF($1)
6256
6257 # Report which librarie types wil actually be built
5634 AC_LIBTOOL_DLOPEN_SELF
5635
5636 # Report which library types will actually be built
62585637 AC_MSG_CHECKING([if libtool supports shared libraries])
62595638 AC_MSG_RESULT([$can_build_shared])
62605639
63135692 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
63145693 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
63155694 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5695 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
63165696 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
63175697 _LT_AC_TAGVAR(module_cmds, $1)=
63185698 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
63405720 lt_simple_compile_test_code="int some_variable = 0;\n"
63415721
63425722 # Code to be used in simple link tests
6343 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
5723 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
63445724
63455725 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
63465726 _LT_AC_SYS_COMPILER
63595739 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
63605740 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
63615741 else
6362 unset lt_cv_prog_gnu_ld
5742 $as_unset lt_cv_prog_gnu_ld
63635743 fi
63645744 if test -n "${lt_cv_path_LDCXX+set}"; then
63655745 lt_cv_path_LD=$lt_cv_path_LDCXX
63665746 else
6367 unset lt_cv_path_LD
5747 $as_unset lt_cv_path_LD
63685748 fi
63695749 test -z "${LDCXX+set}" || LD=$LDCXX
63705750 CC=${CXX-"c++"}
64595839 ;;
64605840 esac
64615841 done
5842 ;;
64625843 esac
64635844
64645845 exp_sym_flag='-bexport'
64965877 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
64975878 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
64985879 fi
5880 ;;
64995881 esac
65005882 shared_flag='-shared'
65015883 if test "$aix_use_runtimelinking" = yes; then
65275909 _LT_AC_SYS_LIBPATH_AIX
65285910 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
65295911
6530 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
5912 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
65315913 else
65325914 if test "$host_cpu" = ia64; then
65335915 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
65345916 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6535 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
5917 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
65365918 else
65375919 # Determine the default libpath from the value encoded in an empty executable.
65385920 _LT_AC_SYS_LIBPATH_AIX
65415923 # -berok will link without error, but may produce a broken library.
65425924 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
65435925 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6544 # -bexpall does not export symbols beginning with underscore (_)
6545 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
65465926 # Exported symbols can be pulled into shared objects from archives
6547 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5927 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
65485928 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
65495929 # This is similar to how AIX traditionally builds its shared libraries.
6550 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
5930 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
65515931 fi
65525932 fi
65535933 ;;
5934
5935 beos*)
5936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5937 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5938 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5939 # support --undefined. This deserves some investigation. FIXME
5940 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5941 else
5942 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5943 fi
5944 ;;
5945
65545946 chorus*)
65555947 case $cc_basename in
65565948 *)
65605952 esac
65615953 ;;
65625954
6563
65645955 cygwin* | mingw* | pw32*)
65655956 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
65665957 # as there is no search path for DLLs.
65705961 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
65715962
65725963 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6573 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5964 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
65745965 # If the export-symbols file already is a .def file (1st line
65755966 # is EXPORTS), use it as is; otherwise, prepend...
65765967 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
65795970 echo EXPORTS > $output_objdir/$soname.def;
65805971 cat $export_symbols >> $output_objdir/$soname.def;
65815972 fi~
6582 $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'
5973 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
65835974 else
65845975 _LT_AC_TAGVAR(ld_shlibs, $1)=no
65855976 fi
67166107 ;;
67176108 hpux10*|hpux11*)
67186109 if test $with_gnu_ld = no; then
6110 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6111 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6112
67196113 case $host_cpu in
6720 hppa*64*)
6721 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6114 hppa*64*|ia64*)
67226115 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6723 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6724 ;;
6725 ia64*)
6726 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
67276116 ;;
67286117 *)
6729 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6730 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
67316118 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
67326119 ;;
67336120 esac
67346121 fi
67356122 case $host_cpu in
6736 hppa*64*)
6123 hppa*64*|ia64*)
67376124 _LT_AC_TAGVAR(hardcode_direct, $1)=no
67386125 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6739 ;;
6740 ia64*)
6741 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6742 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6743 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6744 # but as the default
6745 # location of the library.
67466126 ;;
67476127 *)
67486128 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
67596139 ;;
67606140 aCC*)
67616141 case $host_cpu in
6762 hppa*64*|ia64*)
6763 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
6142 hppa*64*)
6143 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6144 ;;
6145 ia64*)
6146 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
67646147 ;;
67656148 *)
67666149 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
67806163 if test "$GXX" = yes; then
67816164 if test $with_gnu_ld = no; then
67826165 case $host_cpu in
6783 ia64*|hppa*64*)
6784 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
6166 hppa*64*)
6167 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6168 ;;
6169 ia64*)
6170 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
67856171 ;;
67866172 *)
67876173 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
67946180 fi
67956181 ;;
67966182 esac
6183 ;;
6184 interix3*)
6185 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6186 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6187 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6188 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6189 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6190 # Instead, shared libraries are loaded at an image base (0x10000000 by
6191 # default) and relocated if they conflict, which is a slow very memory
6192 # consuming and fragmenting process. To avoid this, we pick a random,
6193 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6194 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6195 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6196 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
67976197 ;;
67986198 irix5* | irix6*)
67996199 case $cc_basename in
70776477 # FIXME: insert proper C++ library support
70786478 _LT_AC_TAGVAR(ld_shlibs, $1)=no
70796479 ;;
7080 sco*)
7081 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7082 case $cc_basename in
7083 CC*)
7084 # FIXME: insert proper C++ library support
7085 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7086 ;;
7087 *)
7088 # FIXME: insert proper C++ library support
7089 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7090 ;;
7091 esac
7092 ;;
70936480 sunos4*)
70946481 case $cc_basename in
70956482 CC*)
71826569 ;;
71836570 esac
71846571 ;;
7185 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6572 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6573 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
71866574 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6575 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6576 runpath_var='LD_RUN_PATH'
6577
6578 case $cc_basename in
6579 CC*)
6580 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6581 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6582 ;;
6583 *)
6584 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6585 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6586 ;;
6587 esac
6588 ;;
6589 sysv5* | sco3.2v5* | sco5v6*)
6590 # Note: We can NOT use -z defs as we might desire, because we do not
6591 # link with -lc, and that would cause any symbols used from libc to
6592 # always be unresolved, which means just about no library would
6593 # ever link correctly. If we're not using GNU ld we use -z text
6594 # though, which does catch some bad symbols but isn't as heavy-handed
6595 # as -z defs.
6596 # For security reasons, it is highly recommended that you always
6597 # use absolute paths for naming shared libraries, and exclude the
6598 # DT_RUNPATH tag from executables and libraries. But doing so
6599 # requires that you compile everything twice, which is a pain.
6600 # So that behaviour is only enabled if SCOABSPATH is set to a
6601 # non-empty value in the environment. Most likely only useful for
6602 # creating official distributions of packages.
6603 # This is a hack until libtool officially supports absolute path
6604 # names for shared libraries.
6605 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6606 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6607 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6608 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6609 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6610 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6611 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6612 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6613 runpath_var='LD_RUN_PATH'
6614
6615 case $cc_basename in
6616 CC*)
6617 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6618 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6619 ;;
6620 *)
6621 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6622 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6623 ;;
6624 esac
71876625 ;;
71886626 tandem*)
71896627 case $cc_basename in
72206658 AC_LIBTOOL_PROG_LD_SHLIBS($1)
72216659 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
72226660 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7223 AC_LIBTOOL_SYS_LIB_STRIP
7224 AC_LIBTOOL_DLOPEN_SELF($1)
72256661
72266662 AC_LIBTOOL_CONFIG($1)
72276663
72396675 ])# AC_LIBTOOL_LANG_CXX_CONFIG
72406676
72416677 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
7242 # ------------------------
6678 # ------------------------------------
72436679 # Figure out "hidden" library dependencies from verbose
72446680 # compiler output when linking a shared library.
72456681 # Parse the compiler output and extract the necessary
73726808 # PORTME: override above test on systems where it is broken
73736809 ifelse([$1],[CXX],
73746810 [case $host_os in
6811 interix3*)
6812 # Interix 3.5 installs completely hosed .la files for C++, so rather than
6813 # hack all around it, let's just trust "g++" to DTRT.
6814 _LT_AC_TAGVAR(predep_objects,$1)=
6815 _LT_AC_TAGVAR(postdep_objects,$1)=
6816 _LT_AC_TAGVAR(postdeps,$1)=
6817 ;;
6818
73756819 solaris*)
73766820 case $cc_basename in
73776821 CC*)
73816825 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
73826826 ;;
73836827 esac
6828 ;;
73846829 esac
73856830 ])
73866831
73906835 ])# AC_LIBTOOL_POSTDEP_PREDEP
73916836
73926837 # AC_LIBTOOL_LANG_F77_CONFIG
7393 # ------------------------
6838 # --------------------------
73946839 # Ensure that the configuration vars for the C compiler are
73956840 # suitably defined. Those variables are subsequently used by
73966841 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
74746919 test "$enable_shared" = yes || enable_static=yes
74756920 AC_MSG_RESULT([$enable_static])
74766921
7477 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7478
74796922 _LT_AC_TAGVAR(GCC, $1)="$G77"
74806923 _LT_AC_TAGVAR(LD, $1)="$LD"
74816924
74856928 AC_LIBTOOL_PROG_LD_SHLIBS($1)
74866929 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
74876930 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7488 AC_LIBTOOL_SYS_LIB_STRIP
7489
74906931
74916932 AC_LIBTOOL_CONFIG($1)
74926933
75436984 AC_LIBTOOL_PROG_LD_SHLIBS($1)
75446985 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
75456986 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7546 AC_LIBTOOL_SYS_LIB_STRIP
7547 AC_LIBTOOL_DLOPEN_SELF($1)
75486987
75496988 AC_LIBTOOL_CONFIG($1)
75506989
75546993
75556994
75566995 # AC_LIBTOOL_LANG_RC_CONFIG
7557 # --------------------------
6996 # -------------------------
75586997 # Ensure that the configuration vars for the Windows resource compiler are
75596998 # suitably defined. Those variables are subsequently used by
75606999 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
76177056 # Now quote all the things that may contain metacharacters while being
76187057 # careful not to overquote the AC_SUBSTed values. We take copies of the
76197058 # variables and quote the copies for generation of the libtool script.
7620 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
7059 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
76217060 SED SHELL STRIP \
76227061 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
76237062 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
77867225 # A C compiler.
77877226 LTCC=$lt_LTCC
77887227
7228 # LTCC compiler flags.
7229 LTCFLAGS=$lt_LTCFLAGS
7230
77897231 # A language-specific compiler.
77907232 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
77917233
81597601 osf*)
81607602 symcode='[[BCDEGQRST]]'
81617603 ;;
8162 solaris* | sysv5*)
7604 solaris*)
81637605 symcode='[[BDRT]]'
7606 ;;
7607 sco3.2v5*)
7608 symcode='[[DT]]'
7609 ;;
7610 sysv4.2uw2*)
7611 symcode='[[DT]]'
7612 ;;
7613 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7614 symcode='[[ABDT]]'
81647615 ;;
81657616 sysv4)
81667617 symcode='[[DFNSTU]]'
83437794 *djgpp*)
83447795 # DJGPP does not support shared libraries at all
83457796 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7797 ;;
7798 interix3*)
7799 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7800 # Instead, we relocate shared libraries at runtime.
83467801 ;;
83477802 sysv4*MP*)
83487803 if test -d /usr/nec; then
84137868 case $cc_basename in
84147869 CC*)
84157870 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8416 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7871 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
84177872 if test "$host_cpu" != ia64; then
84187873 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
84197874 fi
84207875 ;;
84217876 aCC*)
84227877 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8423 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7878 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
84247879 case $host_cpu in
84257880 hppa*64*|ia64*)
84267881 # +Z the default
84337888 *)
84347889 ;;
84357890 esac
7891 ;;
7892 interix*)
7893 # This is c89, which is MS Visual C++ (no shared libs)
7894 # Anyone wants to do a port?
84367895 ;;
84377896 irix5* | irix6* | nonstopux*)
84387897 case $cc_basename in
85137972 ;;
85147973 psos*)
85157974 ;;
8516 sco*)
8517 case $cc_basename in
8518 CC*)
8519 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8520 ;;
8521 *)
8522 ;;
8523 esac
8524 ;;
85257975 solaris*)
85267976 case $cc_basename in
85277977 CC*)
85638013 ;;
85648014 esac
85658015 ;;
8566 unixware*)
8016 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8017 case $cc_basename in
8018 CC*)
8019 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8020 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8021 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8022 ;;
8023 esac
85678024 ;;
85688025 vxworks*)
85698026 ;;
86088065 # PIC is the default on this platform
86098066 # Common symbols not allowed in MH_DYLIB files
86108067 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
8068 ;;
8069
8070 interix3*)
8071 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8072 # Instead, we relocate shared libraries at runtime.
86118073 ;;
86128074
86138075 msdosdjgpp*)
87248186 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
87258187 ;;
87268188
8727 sco3.2v5*)
8728 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
8729 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
8730 ;;
8731
87328189 solaris*)
87338190 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
87348191 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
87468203 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
87478204 ;;
87488205
8749 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8206 sysv4 | sysv4.2uw2* | sysv4.3*)
87508207 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
87518208 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
87528209 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
87578214 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
87588215 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
87598216 fi
8217 ;;
8218
8219 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8220 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8221 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8222 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
87608223 ;;
87618224
87628225 unicos*)
88008263 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
88018264 ;;
88028265 esac
8266
8267 #
8268 # Check to make sure the static flag actually works.
8269 #
8270 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
8271 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
8272 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
8273 $lt_tmp_static_flag,
8274 [],
8275 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
88038276 ])
88048277
88058278
88788351 with_gnu_ld=no
88798352 fi
88808353 ;;
8354 interix*)
8355 # we just hope/assume this is gcc and not c89 (= MSVC++)
8356 with_gnu_ld=yes
8357 ;;
88818358 openbsd*)
88828359 with_gnu_ld=no
88838360 ;;
89628439 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
89638440
89648441 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8965 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8442 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
89668443 # If the export-symbols file already is a .def file (1st line
89678444 # is EXPORTS), use it as is; otherwise, prepend...
89688445 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
89718448 echo EXPORTS > $output_objdir/$soname.def;
89728449 cat $export_symbols >> $output_objdir/$soname.def;
89738450 fi~
8974 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8451 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
89758452 else
89768453 _LT_AC_TAGVAR(ld_shlibs, $1)=no
89778454 fi
8455 ;;
8456
8457 interix3*)
8458 _LT_AC_TAGVAR(hardcode_direct, $1)=no
8459 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8460 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8461 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8462 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8463 # Instead, shared libraries are loaded at an image base (0x10000000 by
8464 # default) and relocated if they conflict, which is a slow very memory
8465 # consuming and fragmenting process. To avoid this, we pick a random,
8466 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8467 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8468 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8469 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
89788470 ;;
89798471
89808472 linux*)
90188510 fi
90198511 ;;
90208512
9021 solaris* | sysv5*)
8513 solaris*)
90228514 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
90238515 _LT_AC_TAGVAR(ld_shlibs, $1)=no
90248516 cat <<EOF 1>&2
90378529 else
90388530 _LT_AC_TAGVAR(ld_shlibs, $1)=no
90398531 fi
8532 ;;
8533
8534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8535 case `$LD -v 2>&1` in
8536 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
8537 _LT_AC_TAGVAR(ld_shlibs, $1)=no
8538 cat <<_LT_EOF 1>&2
8539
8540 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8541 *** reliably create shared libraries on SCO systems. Therefore, libtool
8542 *** is disabling shared libraries support. We urge you to upgrade GNU
8543 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8544 *** your PATH or compiler configuration so that the native linker is
8545 *** used, and then restart.
8546
8547 _LT_EOF
8548 ;;
8549 *)
8550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8551 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8552 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8553 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8554 else
8555 _LT_AC_TAGVAR(ld_shlibs, $1)=no
8556 fi
8557 ;;
8558 esac
90408559 ;;
90418560
90428561 sunos4*)
90728591 # Note: this linker hardcodes the directories in LIBPATH if there
90738592 # are no directories specified by -L.
90748593 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9075 if test "$GCC" = yes && test -z "$link_static_flag"; then
8594 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
90768595 # Neither direct hardcoding nor static linking is supported with a
90778596 # broken collect2.
90788597 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
91068625 break
91078626 fi
91088627 done
8628 ;;
91098629 esac
91108630
91118631 exp_sym_flag='-bexport'
91438663 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
91448664 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
91458665 fi
8666 ;;
91468667 esac
91478668 shared_flag='-shared'
91488669 if test "$aix_use_runtimelinking" = yes; then
91558676 # chokes on -Wl,-G. The following line is correct:
91568677 shared_flag='-G'
91578678 else
9158 if test "$aix_use_runtimelinking" = yes; then
8679 if test "$aix_use_runtimelinking" = yes; then
91598680 shared_flag='${wl}-G'
91608681 else
91618682 shared_flag='${wl}-bM:SRE'
9162 fi
8683 fi
91638684 fi
91648685 fi
91658686
91738694 # Determine the default libpath from the value encoded in an empty executable.
91748695 _LT_AC_SYS_LIBPATH_AIX
91758696 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
9176 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
8697 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
91778698 else
91788699 if test "$host_cpu" = ia64; then
91798700 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
91808701 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
9181 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
8702 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
91828703 else
91838704 # Determine the default libpath from the value encoded in an empty executable.
91848705 _LT_AC_SYS_LIBPATH_AIX
91878708 # -berok will link without error, but may produce a broken library.
91888709 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
91898710 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
9190 # -bexpall does not export symbols beginning with underscore (_)
9191 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
91928711 # Exported symbols can be pulled into shared objects from archives
9193 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
8712 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
91948713 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
91958714 # This is similar to how AIX traditionally builds its shared libraries.
9196 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
8715 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
91978716 fi
91988717 fi
91998718 ;;
93348853 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
93358854 ;;
93368855
9337 hpux10* | hpux11*)
8856 hpux10*)
8857 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8858 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8859 else
8860 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8861 fi
8862 if test "$with_gnu_ld" = no; then
8863 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8864 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8865
8866 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8867 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8868
8869 # hardcode_minus_L: Not really in the search PATH,
8870 # but as the default location of the library.
8871 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8872 fi
8873 ;;
8874
8875 hpux11*)
93388876 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
93398877 case $host_cpu in
9340 hppa*64*|ia64*)
8878 hppa*64*)
93418879 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8880 ;;
8881 ia64*)
8882 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
93428883 ;;
93438884 *)
93448885 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
93468887 esac
93478888 else
93488889 case $host_cpu in
9349 hppa*64*|ia64*)
9350 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8890 hppa*64*)
8891 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8892 ;;
8893 ia64*)
8894 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
93518895 ;;
93528896 *)
9353 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8897 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
93548898 ;;
93558899 esac
93568900 fi
93578901 if test "$with_gnu_ld" = no; then
8902 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8903 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8904
93588905 case $host_cpu in
9359 hppa*64*)
9360 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8906 hppa*64*|ia64*)
93618907 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
9362 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
93638908 _LT_AC_TAGVAR(hardcode_direct, $1)=no
93648909 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
93658910 ;;
9366 ia64*)
9367 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9368 _LT_AC_TAGVAR(hardcode_direct, $1)=no
9369 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9370
9371 # hardcode_minus_L: Not really in the search PATH,
9372 # but as the default location of the library.
9373 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9374 ;;
93758911 *)
9376 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
9377 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
93788912 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
93798913 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
93808914
94749008 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
94759009 fi
94769010 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9477 ;;
9478
9479 sco3.2v5*)
9480 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9481 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9482 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
9483 runpath_var=LD_RUN_PATH
9484 hardcode_runpath_var=yes
94859011 ;;
94869012
94879013 solaris*)
95699095 fi
95709096 ;;
95719097
9572 sysv4.2uw2*)
9573 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9574 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9575 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
9576 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9577 hardcode_runpath_var=yes
9578 runpath_var=LD_RUN_PATH
9579 ;;
9580
9581 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
9582 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
9583 if test "$GCC" = yes; then
9584 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9585 else
9586 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9587 fi
9588 runpath_var='LD_RUN_PATH'
9589 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9590 ;;
9591
9592 sysv5*)
9593 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
9594 # $CC -shared without GNU ld will not create a library from C++
9595 # object files and a static libstdc++, better avoid it by now
9596 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9597 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9598 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9599 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
9098 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
9099 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
9100 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
96009101 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
96019102 runpath_var='LD_RUN_PATH'
9103
9104 if test "$GCC" = yes; then
9105 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9106 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9107 else
9108 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9109 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9110 fi
9111 ;;
9112
9113 sysv5* | sco3.2v5* | sco5v6*)
9114 # Note: We can NOT use -z defs as we might desire, because we do not
9115 # link with -lc, and that would cause any symbols used from libc to
9116 # always be unresolved, which means just about no library would
9117 # ever link correctly. If we're not using GNU ld we use -z text
9118 # though, which does catch some bad symbols but isn't as heavy-handed
9119 # as -z defs.
9120 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
9121 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
9122 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9123 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9124 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9125 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
9126 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9127 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
9128 runpath_var='LD_RUN_PATH'
9129
9130 if test "$GCC" = yes; then
9131 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9132 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9133 else
9134 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9135 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9136 fi
96029137 ;;
96039138
96049139 uts4*)
96159150 ])
96169151 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
96179152 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
9618
9619 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9620 if test "$GCC" = yes; then
9621 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9622 fi
96239153
96249154 #
96259155 # Do we need to explicitly link libc?
96489178 libobjs=conftest.$ac_objext
96499179 deplibs=
96509180 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
9181 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
96519182 compiler_flags=-v
96529183 linker_flags=-v
96539184 verstring=
98039334 AC_MSG_RESULT([$SED])
98049335 ])
98059336
9806 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
9807 #
9808 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
9809 #
9810 # This program is free software; you can redistribute it and/or modify
9811 # it under the terms of the GNU General Public License as published by
9812 # the Free Software Foundation; either version 2 of the License, or
9813 # (at your option) any later version.
9814 #
9815 # This program is distributed in the hope that it will be useful, but
9816 # WITHOUT ANY WARRANTY; without even the implied warranty of
9817 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9818 # General Public License for more details.
9819 #
9820 # You should have received a copy of the GNU General Public License
9821 # along with this program; if not, write to the Free Software
9822 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9823 #
9824 # As a special exception to the GNU General Public License, if you
9825 # distribute this file as part of a program that contains a
9826 # configuration script generated by Autoconf, you may include it under
9827 # the same distribution terms that you use for the rest of that program.
9828
9829 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
9830 # ----------------------------------
9831 AC_DEFUN([PKG_PROG_PKG_CONFIG],
9832 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9833 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
9834 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
9835 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9836 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
9837 fi
9838 if test -n "$PKG_CONFIG"; then
9839 _pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
9840 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
9841 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9842 AC_MSG_RESULT([yes])
9843 else
9844 AC_MSG_RESULT([no])
9845 PKG_CONFIG=""
9846 fi
9847
9848 fi[]dnl
9849 ])# PKG_PROG_PKG_CONFIG
9850
9851 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9852 #
9853 # Check to see whether a particular set of modules exists. Similar
9854 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
9855 #
9856 #
9857 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
9858 # this or PKG_CHECK_MODULES is called, or make sure to call
9859 # PKG_CHECK_EXISTS manually
9860 # --------------------------------------------------------------
9861 AC_DEFUN([PKG_CHECK_EXISTS],
9862 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9863 if test -n "$PKG_CONFIG" && \
9864 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9865 m4_ifval([$2], [$2], [:])
9866 m4_ifvaln([$3], [else
9867 $3])dnl
9868 fi])
9869
9870
9871 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9872 # ---------------------------------------------
9873 m4_define([_PKG_CONFIG],
9874 [if test -n "$PKG_CONFIG"; then
9875 PKG_CHECK_EXISTS([$3],
9876 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
9877 [pkg_failed=yes])
9878 else
9879 pkg_failed=untried
9880 fi[]dnl
9881 ])# _PKG_CONFIG
9882
9883 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9884 # [ACTION-IF-NOT-FOUND])
9885 #
9886 #
9887 # Note that if there is a possibility the first call to
9888 # PKG_CHECK_MODULES might not happen, you should be sure to include an
9889 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9890 #
9891 #
9892 # --------------------------------------------------------------
9893 AC_DEFUN([PKG_CHECK_MODULES],
9894 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9895 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
9896 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
9897
9898 pkg_failed=no
9899 AC_MSG_CHECKING([for $1])
9900
9901 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
9902 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
9903
9904 if test $pkg_failed = yes; then
9905 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
9906 # Put the nasty error message in config.log where it belongs
9907 echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
9908
9909 ifelse([$4], , [AC_MSG_ERROR(dnl
9910 [Package requirements ($2) were not met.
9911 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9912 installed software in a non-standard prefix.
9913
9914 Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
9915 to avoid the need to call pkg-config. See the pkg-config man page for
9916 more details.])],
9917 [$4])
9918 elif test $pkg_failed = untried; then
9919 ifelse([$4], , [AC_MSG_FAILURE(dnl
9920 [The pkg-config script could not be found or is too old. Make sure it
9921 is in your PATH or set the PKG_CONFIG environment variable to the full
9922 path to pkg-config.
9923
9924 Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
9925 to avoid the need to call pkg-config. See the pkg-config man page for
9926 more details.
9927
9928 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
9929 [$4])
9930 else
9931 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9932 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9933 AC_MSG_RESULT([yes])
9934 ifelse([$3], , :, [$3])
9935 fi[]dnl
9936 ])# PKG_CHECK_MODULES
9937
9337
9338 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
9339 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
9340 dnl also defines GSTUFF_PKG_ERRORS on error
9341 AC_DEFUN(PKG_CHECK_MODULES, [
9342 succeeded=no
9343
9344 if test -z "$PKG_CONFIG"; then
9345 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
9346 fi
9347
9348 if test "$PKG_CONFIG" = "no" ; then
9349 echo "*** The pkg-config script could not be found. Make sure it is"
9350 echo "*** in your path, or set the PKG_CONFIG environment variable"
9351 echo "*** to the full path to pkg-config."
9352 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9353 else
9354 PKG_CONFIG_MIN_VERSION=0.9.0
9355 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9356 AC_MSG_CHECKING(for $2)
9357
9358 if $PKG_CONFIG --exists "$2" ; then
9359 AC_MSG_RESULT(yes)
9360 succeeded=yes
9361
9362 AC_MSG_CHECKING($1_CFLAGS)
9363 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
9364 AC_MSG_RESULT($$1_CFLAGS)
9365
9366 AC_MSG_CHECKING($1_LIBS)
9367 $1_LIBS=`$PKG_CONFIG --libs "$2"`
9368 AC_MSG_RESULT($$1_LIBS)
9369 else
9370 $1_CFLAGS=""
9371 $1_LIBS=""
9372 ## If we have a custom action on failure, don't print errors, but
9373 ## do set a variable so people can do so.
9374 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
9375 ifelse([$4], ,echo $$1_PKG_ERRORS,)
9376 fi
9377
9378 AC_SUBST($1_CFLAGS)
9379 AC_SUBST($1_LIBS)
9380 else
9381 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9382 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9383 fi
9384 fi
9385
9386 if test $succeeded = yes; then
9387 ifelse([$3], , :, [$3])
9388 else
9389 ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
9390 fi
9391 ])
9392
9393
9394
1717
1818 /* Define to 1 if you have the <attr/xattr.h> header file. */
1919 #undef HAVE_ATTR_XATTR_H
20
21 /* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
22 CoreFoundation framework. */
23 #undef HAVE_CFLOCALECOPYCURRENT
24
25 /* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
26 the CoreFoundation framework. */
27 #undef HAVE_CFPREFERENCESCOPYAPPVALUE
2820
2921 /* Define if the GNU dcgettext() function is already present or preinstalled.
3022 */
+1223
-2724
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.59 for eiciel 0.9.
2 # Generated by GNU Autoconf 2.59 for eiciel 0.9.1.
33 #
44 # Report bugs to <rofi@ya.com>.
55 #
422422 # Identity of this package.
423423 PACKAGE_NAME='eiciel'
424424 PACKAGE_TARNAME='eiciel'
425 PACKAGE_VERSION='0.9'
426 PACKAGE_STRING='eiciel 0.9'
425 PACKAGE_VERSION='0.9.1'
426 PACKAGE_STRING='eiciel 0.9.1'
427427 PACKAGE_BUGREPORT='rofi@ya.com'
428428
429429 ac_unique_file="src/eiciel_standalone.cpp"
464464 # include <unistd.h>
465465 #endif"
466466
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE 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 INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG GTKMM_CFLAGS GTKMM_LIBS NAUTILUS_EXTENSIONS_DIR ENABLE_USER_XATTR_TRUE ENABLE_USER_XATTR_FALSE llibreria_acl LIBOBJS LTLIBOBJS'
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE 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 LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG GTKMM_CFLAGS GTKMM_LIBS NAUTILUS_EXTENSIONS_DIR ENABLE_USER_XATTR_TRUE ENABLE_USER_XATTR_FALSE llibreria_acl LIBOBJS LTLIBOBJS'
468468 ac_subst_files=''
469469
470470 # Initialize some variables set by options.
945945 ac_env_FFLAGS_value=$FFLAGS
946946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947947 ac_cv_env_FFLAGS_value=$FFLAGS
948 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
949 ac_env_PKG_CONFIG_value=$PKG_CONFIG
950 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
951 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
952 ac_env_GTKMM_CFLAGS_set=${GTKMM_CFLAGS+set}
953 ac_env_GTKMM_CFLAGS_value=$GTKMM_CFLAGS
954 ac_cv_env_GTKMM_CFLAGS_set=${GTKMM_CFLAGS+set}
955 ac_cv_env_GTKMM_CFLAGS_value=$GTKMM_CFLAGS
956 ac_env_GTKMM_LIBS_set=${GTKMM_LIBS+set}
957 ac_env_GTKMM_LIBS_value=$GTKMM_LIBS
958 ac_cv_env_GTKMM_LIBS_set=${GTKMM_LIBS+set}
959 ac_cv_env_GTKMM_LIBS_value=$GTKMM_LIBS
960948
961949 #
962950 # Report the --help message.
965953 # Omit some internal or obsolete options to make the list less imposing.
966954 # This message is too long to be a string in the A/UX 3.1 sh.
967955 cat <<_ACEOF
968 \`configure' configures eiciel 0.9 to adapt to many kinds of systems.
956 \`configure' configures eiciel 0.9.1 to adapt to many kinds of systems.
969957
970958 Usage: $0 [OPTION]... [VAR=VALUE]...
971959
10321020
10331021 if test -n "$ac_init_help"; then
10341022 case $ac_init_help in
1035 short | recursive ) echo "Configuration of eiciel 0.9:";;
1023 short | recursive ) echo "Configuration of eiciel 0.9.1:";;
10361024 esac
10371025 cat <<\_ACEOF
10381026
10851073 CXXCPP C++ preprocessor
10861074 F77 Fortran 77 compiler command
10871075 FFLAGS Fortran 77 compiler flags
1088 PKG_CONFIG path to pkg-config utility
1089 GTKMM_CFLAGS
1090 C compiler flags for GTKMM, overriding pkg-config
1091 GTKMM_LIBS linker flags for GTKMM, overriding pkg-config
10921076
10931077 Use these variables to override the choices made by `configure' or to help
10941078 it to find libraries and programs with nonstandard names/locations.
11891173 test -n "$ac_init_help" && exit 0
11901174 if $ac_init_version; then
11911175 cat <<\_ACEOF
1192 eiciel configure 0.9
1176 eiciel configure 0.9.1
11931177 generated by GNU Autoconf 2.59
11941178
11951179 Copyright (C) 2003 Free Software Foundation, Inc.
12031187 This file contains any messages produced by compilers while
12041188 running configure, to aid debugging if configure makes a mistake.
12051189
1206 It was created by eiciel $as_me 0.9, which was
1190 It was created by eiciel $as_me 0.9.1, which was
12071191 generated by GNU Autoconf 2.59. Invocation command line was
12081192
12091193 $ $0 $@
19001884
19011885 # Define the identity of the package.
19021886 PACKAGE='eiciel'
1903 VERSION='0.9'
1887 VERSION='0.9.1'
19041888
19051889
19061890 cat >>confdefs.h <<_ACEOF
20282012
20292013
20302014
2031
20322015 MKINSTALLDIRS=
20332016 if test -n "$ac_aux_dir"; then
20342017 case "$ac_aux_dir" in
21052088 test -z "$ac_dir" && ac_dir=.
21062089 for ac_exec_ext in '' $ac_executable_extensions; do
21072090 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2108 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2109 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
2091 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
21102092 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21112093 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
21122094 break 2
22162198 test -z "$ac_dir" && ac_dir=.
22172199 for ac_exec_ext in '' $ac_executable_extensions; do
22182200 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2219 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2220 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
2201 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22212202 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22222203 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22232204 break 2
22882269 test -z "$ac_dir" && ac_dir=.
22892270 for ac_exec_ext in '' $ac_executable_extensions; do
22902271 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2291 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2292 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
2272 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22932273 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22942274 break 2
22952275 fi
35233503 # Check to see if the program is GNU ld. I'd rather use --version,
35243504 # but apparently some GNU ld's only accept -v.
35253505 # Break only if it was the GNU/non-GNU ld that we prefer.
3526 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
3527 *GNU* | *'with BFD'*)
3528 test "$with_gnu_ld" != no && break ;;
3529 *)
3530 test "$with_gnu_ld" != yes && break ;;
3531 esac
3506 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3507 test "$with_gnu_ld" != no && break
3508 else
3509 test "$with_gnu_ld" != yes && break
3510 fi
35323511 fi
35333512 done
35343513 IFS="$ac_save_ifs"
35543533 echo $ECHO_N "(cached) $ECHO_C" >&6
35553534 else
35563535 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3557 case `$LD -v 2>&1 </dev/null` in
3558 *GNU* | *'with BFD'*)
3559 acl_cv_prog_gnu_ld=yes ;;
3560 *)
3561 acl_cv_prog_gnu_ld=no ;;
3562 esac
3536 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3537 acl_cv_prog_gnu_ld=yes
3538 else
3539 acl_cv_prog_gnu_ld=no
3540 fi
35633541 fi
35643542 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
35653543 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
35663544 with_gnu_ld=$acl_cv_prog_gnu_ld
3567
35683545
35693546
35703547
38133790 if test "X$additional_includedir" = "X/usr/local/include"; then
38143791 if test -n "$GCC"; then
38153792 case $host_os in
3816 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
3793 linux*) haveit=yes;;
38173794 esac
38183795 fi
38193796 fi
38573834 if test "X$additional_libdir" = "X/usr/local/lib"; then
38583835 if test -n "$GCC"; then
38593836 case $host_os in
3860 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
3837 linux*) haveit=yes;;
38613838 esac
38623839 fi
38633840 fi
39983975
39993976
40003977
4001 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
4002 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
4003 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 gt_save_CPPFLAGS="$CPPFLAGS"
4007 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
4008 gt_save_LIBS="$LIBS"
4009 LIBS="$LIBS -framework CoreFoundation"
4010 cat >conftest.$ac_ext <<_ACEOF
4011 /* confdefs.h. */
4012 _ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4016 #include <CFPreferences.h>
4017 int
4018 main ()
4019 {
4020 CFPreferencesCopyAppValue(NULL, NULL)
4021 ;
4022 return 0;
4023 }
4024 _ACEOF
4025 rm -f conftest.$ac_objext conftest$ac_exeext
4026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4027 (eval $ac_link) 2>conftest.er1
4028 ac_status=$?
4029 grep -v '^ *+' conftest.er1 >conftest.err
4030 rm -f conftest.er1
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -z "$ac_c_werror_flag"
4035 || test ! -s conftest.err'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; } &&
4041 { ac_try='test -s conftest$ac_exeext'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4047 gt_cv_func_CFPreferencesCopyAppValue=yes
4048 else
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4051
4052 gt_cv_func_CFPreferencesCopyAppValue=no
4053 fi
4054 rm -f conftest.err conftest.$ac_objext \
4055 conftest$ac_exeext conftest.$ac_ext
4056 CPPFLAGS="$gt_save_CPPFLAGS"
4057 LIBS="$gt_save_LIBS"
4058 fi
4059 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
4060 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
4061 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
4062
4063 cat >>confdefs.h <<\_ACEOF
4064 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
4065 _ACEOF
4066
4067 fi
4068 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
4069 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
4070 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073 gt_save_CPPFLAGS="$CPPFLAGS"
4074 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
4075 gt_save_LIBS="$LIBS"
4076 LIBS="$LIBS -framework CoreFoundation"
4077 cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h. */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 #include <CFLocale.h>
4084 int
4085 main ()
4086 {
4087 CFLocaleCopyCurrent();
4088 ;
4089 return 0;
4090 }
4091 _ACEOF
4092 rm -f conftest.$ac_objext conftest$ac_exeext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4094 (eval $ac_link) 2>conftest.er1
4095 ac_status=$?
4096 grep -v '^ *+' conftest.er1 >conftest.err
4097 rm -f conftest.er1
4098 cat conftest.err >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } &&
4101 { ac_try='test -z "$ac_c_werror_flag"
4102 || test ! -s conftest.err'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 (eval $ac_try) 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; } &&
4108 { ac_try='test -s conftest$ac_exeext'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 (eval $ac_try) 2>&5
4111 ac_status=$?
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 gt_cv_func_CFLocaleCopyCurrent=yes
4115 else
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4118
4119 gt_cv_func_CFLocaleCopyCurrent=no
4120 fi
4121 rm -f conftest.err conftest.$ac_objext \
4122 conftest$ac_exeext conftest.$ac_ext
4123 CPPFLAGS="$gt_save_CPPFLAGS"
4124 LIBS="$gt_save_LIBS"
4125 fi
4126 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
4127 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
4128 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4129
4130 cat >>confdefs.h <<\_ACEOF
4131 #define HAVE_CFLOCALECOPYCURRENT 1
4132 _ACEOF
4133
4134 fi
4135 INTL_MACOSX_LIBS=
4136 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4137 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
4138 fi
4139
4140
4141
4142
41433978 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
41443979 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
41453980 # Check whether --enable-nls or --disable-nls was given.
41854020 main ()
41864021 {
41874022 bindtextdomain ("", "");
4188 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4023 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
41894024 ;
41904025 return 0;
41914026 }
46024437 if test "X$additional_includedir" = "X/usr/local/include"; then
46034438 if test -n "$GCC"; then
46044439 case $host_os in
4605 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4440 linux*) haveit=yes;;
46064441 esac
46074442 fi
46084443 fi
46464481 if test "X$additional_libdir" = "X/usr/local/lib"; then
46474482 if test -n "$GCC"; then
46484483 case $host_os in
4649 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4484 linux*) haveit=yes;;
46504485 esac
46514486 fi
46524487 fi
47904625 #ifdef __cplusplus
47914626 "C"
47924627 #endif
4793 const char *_nl_expand_alias (const char *);
4628 const char *_nl_expand_alias ();
47944629 int
47954630 main ()
47964631 {
47974632 bindtextdomain ("", "");
4798 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
4633 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
47994634 ;
48004635 return 0;
48014636 }
48454680 #ifdef __cplusplus
48464681 "C"
48474682 #endif
4848 const char *_nl_expand_alias (const char *);
4683 const char *_nl_expand_alias ();
48494684 int
48504685 main ()
48514686 {
48524687 bindtextdomain ("", "");
4853 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
4688 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
48544689 ;
48554690 return 0;
48564691 }
49084743 fi
49094744
49104745
4911
4912 if test -n "$INTL_MACOSX_LIBS"; then
4913 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4914 || test "$nls_cv_use_gnu_gettext" = "yes"; then
4915 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
4916 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
4917 fi
4918 fi
49194746
49204747 if test "$gt_use_preinstalled_gnugettext" = "yes" \
49214748 || test "$nls_cv_use_gnu_gettext" = "yes"; then
60625889 case $host_os in
60635890 darwin*)
60645891 if test "$GCC" = yes; then
6065 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5892 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
60665893 else
60675894 reload_cmds='$LD$reload_flag -o $output$reload_objs'
60685895 fi
60785905 # Let the user override the test.
60795906 lt_cv_path_NM="$NM"
60805907 else
6081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6082 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6083 IFS="$lt_save_ifs"
6084 test -z "$ac_dir" && ac_dir=.
6085 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6086 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6087 # Check to see if the nm accepts a BSD-compat flag.
6088 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6089 # nm: unknown option "B" ignored
6090 # Tru64's nm complains that /dev/null is an invalid object file
6091 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6092 */dev/null* | *'Invalid file or object type'*)
6093 lt_cv_path_NM="$tmp_nm -B"
6094 break
6095 ;;
6096 *)
6097 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6098 */dev/null*)
6099 lt_cv_path_NM="$tmp_nm -p"
5908 lt_nm_to_check="${ac_tool_prefix}nm"
5909 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5910 lt_nm_to_check="$lt_nm_to_check nm"
5911 fi
5912 for lt_tmp_nm in $lt_nm_to_check; do
5913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5914 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5915 IFS="$lt_save_ifs"
5916 test -z "$ac_dir" && ac_dir=.
5917 tmp_nm="$ac_dir/$lt_tmp_nm"
5918 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5919 # Check to see if the nm accepts a BSD-compat flag.
5920 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5921 # nm: unknown option "B" ignored
5922 # Tru64's nm complains that /dev/null is an invalid object file
5923 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5924 */dev/null* | *'Invalid file or object type'*)
5925 lt_cv_path_NM="$tmp_nm -B"
61005926 break
61015927 ;;
61025928 *)
6103 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6104 continue # so that we can try to find one that supports BSD flags
5929 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5930 */dev/null*)
5931 lt_cv_path_NM="$tmp_nm -p"
5932 break
5933 ;;
5934 *)
5935 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5936 continue # so that we can try to find one that supports BSD flags
5937 ;;
5938 esac
61055939 ;;
61065940 esac
6107 esac
6108 fi
5941 fi
5942 done
5943 IFS="$lt_save_ifs"
61095944 done
6110 IFS="$lt_save_ifs"
61115945 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
61125946 fi
61135947 fi
62156049 esac
62166050 ;;
62176051
6052 interix3*)
6053 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6055 ;;
6056
62186057 irix5* | irix6* | nonstopux*)
62196058 case $LD in
62206059 *-32|*"-32 ") libmagic=32-bit;;
62606099 lt_cv_deplibs_check_method=pass_all
62616100 ;;
62626101
6263 sco3.2v5*)
6264 lt_cv_deplibs_check_method=pass_all
6265 ;;
6266
62676102 solaris*)
62686103 lt_cv_deplibs_check_method=pass_all
62696104 ;;
62706105
6271 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6106 sysv4 | sysv4.3*)
62726107 case $host_vendor in
62736108 motorola)
62746109 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]'
62896124 siemens)
62906125 lt_cv_deplibs_check_method=pass_all
62916126 ;;
6127 pc)
6128 lt_cv_deplibs_check_method=pass_all
6129 ;;
62926130 esac
62936131 ;;
62946132
6295 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
62966134 lt_cv_deplibs_check_method=pass_all
62976135 ;;
62986136 esac
63096147
63106148 # If no C compiler was specified, use CC.
63116149 LTCC=${LTCC-"$CC"}
6150
6151 # If no C compiler flags were specified, use CFLAGS.
6152 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
63126153
63136154 # Allow CC to be a program name with arguments.
63146155 compiler=$CC
63446185 ;;
63456186 *-*-irix6*)
63466187 # Find out which ABI we are using.
6347 echo '#line 6348 "configure"' > conftest.$ac_ext
6188 echo '#line 6189 "configure"' > conftest.$ac_ext
63486189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63496190 (eval $ac_compile) 2>&5
63506191 ac_status=$?
64196260 LD="${LD-ld} -m elf64_sparc"
64206261 ;;
64216262 esac
6422 ;;
6423 esac
6424 fi
6425 rm -rf conftest*
6426 ;;
6427
6428 *-*-linux*)
6429 # Test if the compiler is 64bit
6430 echo 'int i;' > conftest.$ac_ext
6431 lt_cv_cc_64bit_output=no
6432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433 (eval $ac_compile) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; then
6437 case `/usr/bin/file conftest.$ac_objext` in
6438 *"ELF 64"*)
6439 lt_cv_cc_64bit_output=yes
64406263 ;;
64416264 esac
64426265 fi
65186341 CFLAGS="$SAVE_CFLAGS"
65196342 fi
65206343 ;;
6344 sparc*-*solaris*)
6345 # Find out which ABI we are using.
6346 echo 'int i;' > conftest.$ac_ext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; then
6352 case `/usr/bin/file conftest.o` in
6353 *64-bit*)
6354 case $lt_cv_prog_gnu_ld in
6355 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6356 *) LD="${LD-ld} -64" ;;
6357 esac
6358 ;;
6359 esac
6360 fi
6361 rm -rf conftest*
6362 ;;
6363
65216364
65226365 esac
65236366
72437086
72447087
72457088 # Provide some information about the compiler.
7246 echo "$as_me:7247:" \
7089 echo "$as_me:7090:" \
72477090 "checking for Fortran 77 compiler version" >&5
72487091 ac_compiler=`set X $ac_compile; echo $2`
72497092 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
74467289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
74477290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
74487291 ;;
7292
7293 interix*)
7294 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7295 lt_cv_sys_max_cmd_len=196608
7296 ;;
7297
74497298 osf*)
74507299 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
74517300 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
74577306 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
74587307 *1*) lt_cv_sys_max_cmd_len=-1 ;;
74597308 esac
7309 fi
7310 ;;
7311 sco3.2v5*)
7312 lt_cv_sys_max_cmd_len=102400
7313 ;;
7314 sysv5* | sco5v6* | sysv4.2uw2*)
7315 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7316 if test -n "$kargmax"; then
7317 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7318 else
7319 lt_cv_sys_max_cmd_len=32768
74607320 fi
74617321 ;;
74627322 *)
75447404 osf*)
75457405 symcode='[BCDEGQRST]'
75467406 ;;
7547 solaris* | sysv5*)
7407 solaris*)
75487408 symcode='[BDRT]'
7409 ;;
7410 sco3.2v5*)
7411 symcode='[DT]'
7412 ;;
7413 sysv4.2uw2*)
7414 symcode='[DT]'
7415 ;;
7416 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7417 symcode='[ABDT]'
75497418 ;;
75507419 sysv4)
75517420 symcode='[DFNSTU]'
80127881 test -z "$AS" && AS=as
80137882 test -z "$CC" && CC=cc
80147883 test -z "$LTCC" && LTCC=$CC
7884 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
80157885 test -z "$DLLTOOL" && DLLTOOL=dlltool
80167886 test -z "$LD" && LD=ld
80177887 test -z "$LN_S" && LN_S="ln -s"
80317901 if test -n "$RANLIB"; then
80327902 case $host_os in
80337903 openbsd*)
8034 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7904 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
80357905 ;;
80367906 *)
8037 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7907 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
80387908 ;;
80397909 esac
80407910 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
82298099 " >&2;}
82308100 { (exit 1); exit 1; }; }
82318101 fi
8232 gentoo_lt_version="1.5.20"
8233 gentoo_ltmain_version=`grep '^[ ]*VERSION=' $ltmain | sed -e 's|^[ ]*VERSION=||'`
8102 gentoo_lt_version="1.5.22"
8103 gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
82348104 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
82358105 echo "$as_me:$LINENO: result: no" >&5
82368106 echo "${ECHO_T}no" >&6
82948164 # If no C compiler was specified, use CC.
82958165 LTCC=${LTCC-"$CC"}
82968166
8167 # If no C compiler flags were specified, use CFLAGS.
8168 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8169
82978170 # Allow CC to be a program name with arguments.
82988171 compiler=$CC
82998172
83018174 # save warnings/boilerplate of simple test code
83028175 ac_outfile=conftest.$ac_objext
83038176 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8177 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
83058178 _lt_compiler_boilerplate=`cat conftest.err`
83068179 $rm conftest*
83078180
83088181 ac_outfile=conftest.$ac_objext
83098182 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8183 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
83118184 _lt_linker_boilerplate=`cat conftest.err`
83128185 $rm conftest*
8313
8314
8315 #
8316 # Check for any special shared library compilation flags.
8317 #
8318 lt_prog_cc_shlib=
8319 if test "$GCC" = no; then
8320 case $host_os in
8321 sco3.2v5*)
8322 lt_prog_cc_shlib='-belf'
8323 ;;
8324 esac
8325 fi
8326 if test -n "$lt_prog_cc_shlib"; then
8327 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8328 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8329 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8330 else
8331 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8332 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8333 lt_cv_prog_cc_can_build_shared=no
8334 fi
8335 fi
8336
8337
8338 #
8339 # Check to make sure the static flag actually works.
8340 #
8341 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8342 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8343 if test "${lt_prog_compiler_static_works+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346 lt_prog_compiler_static_works=no
8347 save_LDFLAGS="$LDFLAGS"
8348 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8349 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8350 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8351 # The linker can only warn and ignore the option if not recognized
8352 # So say no if there are warnings
8353 if test -s conftest.err; then
8354 # Append any errors to the config.log.
8355 cat conftest.err 1>&5
8356 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8357 $SED '/^$/d' conftest.err >conftest.er2
8358 if diff conftest.exp conftest.er2 >/dev/null; then
8359 lt_prog_compiler_static_works=yes
8360 fi
8361 else
8362 lt_prog_compiler_static_works=yes
8363 fi
8364 fi
8365 $rm conftest*
8366 LDFLAGS="$save_LDFLAGS"
8367
8368 fi
8369 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8370 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8371
8372 if test x"$lt_prog_compiler_static_works" = xyes; then
8373 :
8374 else
8375 lt_prog_compiler_static=
8376 fi
8377
83788186
83798187
83808188
84028210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
84038211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
84048212 -e 's:$: $lt_compiler_flag:'`
8405 (eval echo "\"\$as_me:8406: $lt_compile\"" >&5)
8213 (eval echo "\"\$as_me:8214: $lt_compile\"" >&5)
84068214 (eval "$lt_compile" 2>conftest.err)
84078215 ac_status=$?
84088216 cat conftest.err >&5
8409 echo "$as_me:8410: \$? = $ac_status" >&5
8217 echo "$as_me:8218: \$? = $ac_status" >&5
84108218 if (exit $ac_status) && test -s "$ac_outfile"; then
84118219 # The compiler can only warn and ignore the option if not recognized
84128220 # So say no if there are warnings other than the usual output.
8413 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8414 $SED '/^$/d' conftest.err >conftest.er2
8415 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8221 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8223 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
84168224 lt_cv_prog_compiler_rtti_exceptions=yes
84178225 fi
84188226 fi
84718279 # PIC is the default on this platform
84728280 # Common symbols not allowed in MH_DYLIB files
84738281 lt_prog_compiler_pic='-fno-common'
8282 ;;
8283
8284 interix3*)
8285 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8286 # Instead, we relocate shared libraries at runtime.
84748287 ;;
84758288
84768289 msdosdjgpp*)
85878400 lt_prog_compiler_static='-non_shared'
85888401 ;;
85898402
8590 sco3.2v5*)
8591 lt_prog_compiler_pic='-Kpic'
8592 lt_prog_compiler_static='-dn'
8593 ;;
8594
85958403 solaris*)
85968404 lt_prog_compiler_pic='-KPIC'
85978405 lt_prog_compiler_static='-Bstatic'
86098417 lt_prog_compiler_static='-Bstatic'
86108418 ;;
86118419
8612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8420 sysv4 | sysv4.2uw2* | sysv4.3*)
86138421 lt_prog_compiler_wl='-Wl,'
86148422 lt_prog_compiler_pic='-KPIC'
86158423 lt_prog_compiler_static='-Bstatic'
86208428 lt_prog_compiler_pic='-Kconform_pic'
86218429 lt_prog_compiler_static='-Bstatic'
86228430 fi
8431 ;;
8432
8433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8434 lt_prog_compiler_wl='-Wl,'
8435 lt_prog_compiler_pic='-KPIC'
8436 lt_prog_compiler_static='-Bstatic'
86238437 ;;
86248438
86258439 unicos*)
86648478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
86658479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
86668480 -e 's:$: $lt_compiler_flag:'`
8667 (eval echo "\"\$as_me:8668: $lt_compile\"" >&5)
8481 (eval echo "\"\$as_me:8482: $lt_compile\"" >&5)
86688482 (eval "$lt_compile" 2>conftest.err)
86698483 ac_status=$?
86708484 cat conftest.err >&5
8671 echo "$as_me:8672: \$? = $ac_status" >&5
8485 echo "$as_me:8486: \$? = $ac_status" >&5
86728486 if (exit $ac_status) && test -s "$ac_outfile"; then
86738487 # The compiler can only warn and ignore the option if not recognized
86748488 # So say no if there are warnings other than the usual output.
8675 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8676 $SED '/^$/d' conftest.err >conftest.er2
8677 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8489 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8491 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
86788492 lt_prog_compiler_pic_works=yes
86798493 fi
86808494 fi
87058519 ;;
87068520 esac
87078521
8522 #
8523 # Check to make sure the static flag actually works.
8524 #
8525 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8526 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8527 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8528 if test "${lt_prog_compiler_static_works+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531 lt_prog_compiler_static_works=no
8532 save_LDFLAGS="$LDFLAGS"
8533 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8534 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8535 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8536 # The linker can only warn and ignore the option if not recognized
8537 # So say no if there are warnings
8538 if test -s conftest.err; then
8539 # Append any errors to the config.log.
8540 cat conftest.err 1>&5
8541 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8543 if diff conftest.exp conftest.er2 >/dev/null; then
8544 lt_prog_compiler_static_works=yes
8545 fi
8546 else
8547 lt_prog_compiler_static_works=yes
8548 fi
8549 fi
8550 $rm conftest*
8551 LDFLAGS="$save_LDFLAGS"
8552
8553 fi
8554 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8555 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8556
8557 if test x"$lt_prog_compiler_static_works" = xyes; then
8558 :
8559 else
8560 lt_prog_compiler_static=
8561 fi
8562
8563
87088564 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
87098565 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
87108566 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
87268582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
87278583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
87288584 -e 's:$: $lt_compiler_flag:'`
8729 (eval echo "\"\$as_me:8730: $lt_compile\"" >&5)
8585 (eval echo "\"\$as_me:8586: $lt_compile\"" >&5)
87308586 (eval "$lt_compile" 2>out/conftest.err)
87318587 ac_status=$?
87328588 cat out/conftest.err >&5
8733 echo "$as_me:8734: \$? = $ac_status" >&5
8589 echo "$as_me:8590: \$? = $ac_status" >&5
87348590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
87358591 then
87368592 # The compiler can only warn and ignore the option if not recognized
87378593 # So say no if there are warnings
8738 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8739 $SED '/^$/d' out/conftest.err >out/conftest.er2
8740 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8594 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
87418597 lt_cv_prog_compiler_c_o=yes
87428598 fi
87438599 fi
88378693 with_gnu_ld=no
88388694 fi
88398695 ;;
8696 interix*)
8697 # we just hope/assume this is gcc and not c89 (= MSVC++)
8698 with_gnu_ld=yes
8699 ;;
88408700 openbsd*)
88418701 with_gnu_ld=no
88428702 ;;
89218781 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
89228782
89238783 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
89258785 # If the export-symbols file already is a .def file (1st line
89268786 # is EXPORTS), use it as is; otherwise, prepend...
89278787 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
89308790 echo EXPORTS > $output_objdir/$soname.def;
89318791 cat $export_symbols >> $output_objdir/$soname.def;
89328792 fi~
8933 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8793 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
89348794 else
89358795 ld_shlibs=no
89368796 fi
8797 ;;
8798
8799 interix3*)
8800 hardcode_direct=no
8801 hardcode_shlibpath_var=no
8802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8803 export_dynamic_flag_spec='${wl}-E'
8804 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8805 # Instead, shared libraries are loaded at an image base (0x10000000 by
8806 # default) and relocated if they conflict, which is a slow very memory
8807 # consuming and fragmenting process. To avoid this, we pick a random,
8808 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8809 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8810 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8811 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
89378812 ;;
89388813
89398814 linux*)
89778852 fi
89788853 ;;
89798854
8980 solaris* | sysv5*)
8855 solaris*)
89818856 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
89828857 ld_shlibs=no
89838858 cat <<EOF 1>&2
89968871 else
89978872 ld_shlibs=no
89988873 fi
8874 ;;
8875
8876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8877 case `$LD -v 2>&1` in
8878 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8879 ld_shlibs=no
8880 cat <<_LT_EOF 1>&2
8881
8882 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8883 *** reliably create shared libraries on SCO systems. Therefore, libtool
8884 *** is disabling shared libraries support. We urge you to upgrade GNU
8885 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8886 *** your PATH or compiler configuration so that the native linker is
8887 *** used, and then restart.
8888
8889 _LT_EOF
8890 ;;
8891 *)
8892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8893 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8895 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8896 else
8897 ld_shlibs=no
8898 fi
8899 ;;
8900 esac
89998901 ;;
90008902
90018903 sunos4*)
90318933 # Note: this linker hardcodes the directories in LIBPATH if there
90328934 # are no directories specified by -L.
90338935 hardcode_minus_L=yes
9034 if test "$GCC" = yes && test -z "$link_static_flag"; then
8936 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
90358937 # Neither direct hardcoding nor static linking is supported with a
90368938 # broken collect2.
90378939 hardcode_direct=unsupported
90658967 break
90668968 fi
90678969 done
8970 ;;
90688971 esac
90698972
90708973 exp_sym_flag='-bexport'
91029005 hardcode_libdir_flag_spec='-L$libdir'
91039006 hardcode_libdir_separator=
91049007 fi
9008 ;;
91059009 esac
91069010 shared_flag='-shared'
91079011 if test "$aix_use_runtimelinking" = yes; then
91149018 # chokes on -Wl,-G. The following line is correct:
91159019 shared_flag='-G'
91169020 else
9117 if test "$aix_use_runtimelinking" = yes; then
9021 if test "$aix_use_runtimelinking" = yes; then
91189022 shared_flag='${wl}-G'
91199023 else
91209024 shared_flag='${wl}-bM:SRE'
9121 fi
9025 fi
91229026 fi
91239027 fi
91249028
91839087 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
91849088
91859089 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9186 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"
9090 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
91879091 else
91889092 if test "$host_cpu" = ia64; then
91899093 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
91909094 allow_undefined_flag="-z nodefs"
9191 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"
9095 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
91929096 else
91939097 # Determine the default libpath from the value encoded in an empty executable.
91949098 cat >conftest.$ac_ext <<_ACEOF
92489152 # -berok will link without error, but may produce a broken library.
92499153 no_undefined_flag=' ${wl}-bernotok'
92509154 allow_undefined_flag=' ${wl}-berok'
9251 # -bexpall does not export symbols beginning with underscore (_)
9252 always_export_symbols=yes
92539155 # Exported symbols can be pulled into shared objects from archives
9254 whole_archive_flag_spec=' '
9156 whole_archive_flag_spec='$convenience'
92559157 archive_cmds_need_lc=yes
92569158 # This is similar to how AIX traditionally builds its shared libraries.
9257 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'
9159 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
92589160 fi
92599161 fi
92609162 ;;
93959297 export_dynamic_flag_spec='${wl}-E'
93969298 ;;
93979299
9398 hpux10* | hpux11*)
9300 hpux10*)
9301 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9302 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9303 else
9304 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9305 fi
9306 if test "$with_gnu_ld" = no; then
9307 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9308 hardcode_libdir_separator=:
9309
9310 hardcode_direct=yes
9311 export_dynamic_flag_spec='${wl}-E'
9312
9313 # hardcode_minus_L: Not really in the search PATH,
9314 # but as the default location of the library.
9315 hardcode_minus_L=yes
9316 fi
9317 ;;
9318
9319 hpux11*)
93999320 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
94009321 case $host_cpu in
9401 hppa*64*|ia64*)
9322 hppa*64*)
94029323 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9324 ;;
9325 ia64*)
9326 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
94039327 ;;
94049328 *)
94059329 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
94079331 esac
94089332 else
94099333 case $host_cpu in
9410 hppa*64*|ia64*)
9411 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9334 hppa*64*)
9335 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9336 ;;
9337 ia64*)
9338 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
94129339 ;;
94139340 *)
9414 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9341 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
94159342 ;;
94169343 esac
94179344 fi
94189345 if test "$with_gnu_ld" = no; then
9346 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9347 hardcode_libdir_separator=:
9348
94199349 case $host_cpu in
9420 hppa*64*)
9421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9350 hppa*64*|ia64*)
94229351 hardcode_libdir_flag_spec_ld='+b $libdir'
9423 hardcode_libdir_separator=:
94249352 hardcode_direct=no
94259353 hardcode_shlibpath_var=no
94269354 ;;
9427 ia64*)
9428 hardcode_libdir_flag_spec='-L$libdir'
9429 hardcode_direct=no
9430 hardcode_shlibpath_var=no
9431
9432 # hardcode_minus_L: Not really in the search PATH,
9433 # but as the default location of the library.
9434 hardcode_minus_L=yes
9435 ;;
94369355 *)
9437 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9438 hardcode_libdir_separator=:
94399356 hardcode_direct=yes
94409357 export_dynamic_flag_spec='${wl}-E'
94419358
95359452 hardcode_libdir_flag_spec='-rpath $libdir'
95369453 fi
95379454 hardcode_libdir_separator=:
9538 ;;
9539
9540 sco3.2v5*)
9541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_shlibpath_var=no
9543 export_dynamic_flag_spec='${wl}-Bexport'
9544 runpath_var=LD_RUN_PATH
9545 hardcode_runpath_var=yes
95469455 ;;
95479456
95489457 solaris*)
96309539 fi
96319540 ;;
96329541
9633 sysv4.2uw2*)
9634 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9635 hardcode_direct=yes
9636 hardcode_minus_L=no
9637 hardcode_shlibpath_var=no
9638 hardcode_runpath_var=yes
9639 runpath_var=LD_RUN_PATH
9640 ;;
9641
9642 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9643 no_undefined_flag='${wl}-z ${wl}text'
9644 if test "$GCC" = yes; then
9645 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9646 else
9647 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9648 fi
9649 runpath_var='LD_RUN_PATH'
9650 hardcode_shlibpath_var=no
9651 ;;
9652
9653 sysv5*)
9654 no_undefined_flag=' -z text'
9655 # $CC -shared without GNU ld will not create a library from C++
9656 # object files and a static libstdc++, better avoid it by now
9657 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9659 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9660 hardcode_libdir_flag_spec=
9542 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9543 no_undefined_flag='${wl}-z,text'
9544 archive_cmds_need_lc=no
96619545 hardcode_shlibpath_var=no
96629546 runpath_var='LD_RUN_PATH'
9547
9548 if test "$GCC" = yes; then
9549 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9550 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9551 else
9552 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9553 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9554 fi
9555 ;;
9556
9557 sysv5* | sco3.2v5* | sco5v6*)
9558 # Note: We can NOT use -z defs as we might desire, because we do not
9559 # link with -lc, and that would cause any symbols used from libc to
9560 # always be unresolved, which means just about no library would
9561 # ever link correctly. If we're not using GNU ld we use -z text
9562 # though, which does catch some bad symbols but isn't as heavy-handed
9563 # as -z defs.
9564 no_undefined_flag='${wl}-z,text'
9565 allow_undefined_flag='${wl}-z,nodefs'
9566 archive_cmds_need_lc=no
9567 hardcode_shlibpath_var=no
9568 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9569 hardcode_libdir_separator=':'
9570 link_all_deplibs=yes
9571 export_dynamic_flag_spec='${wl}-Bexport'
9572 runpath_var='LD_RUN_PATH'
9573
9574 if test "$GCC" = yes; then
9575 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 else
9578 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9579 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9580 fi
96639581 ;;
96649582
96659583 uts4*)
96779595 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
96789596 echo "${ECHO_T}$ld_shlibs" >&6
96799597 test "$ld_shlibs" = no && can_build_shared=no
9680
9681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9682 if test "$GCC" = yes; then
9683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9684 fi
96859598
96869599 #
96879600 # Do we need to explicitly link libc?
97159628 libobjs=conftest.$ac_objext
97169629 deplibs=
97179630 wl=$lt_prog_compiler_wl
9631 pic_flag=$lt_prog_compiler_pic
97189632 compiler_flags=-v
97199633 linker_flags=-v
97209634 verstring=
100339947 shlibpath_overrides_runpath=yes
100349948 hardcode_into_libs=yes
100359949 ;;
10036 *) # from 3.2 on
9950 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9951 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
100379952 shlibpath_overrides_runpath=no
9953 hardcode_into_libs=yes
9954 ;;
9955 freebsd*) # from 4.6 on
9956 shlibpath_overrides_runpath=yes
100389957 hardcode_into_libs=yes
100399958 ;;
100409959 esac
1009610015 postinstall_cmds='chmod 555 $lib'
1009710016 ;;
1009810017
10018 interix3*)
10019 version_type=linux
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 shlibpath_overrides_runpath=no
10027 hardcode_into_libs=yes
10028 ;;
10029
1009910030 irix5* | irix6* | nonstopux*)
1010010031 case $host_os in
1010110032 nonstopux*) version_type=nonstopux ;;
1015910090 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1016010091 fi
1016110092
10162 case $host_cpu:$lt_cv_cc_64bit_output in
10163 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
10164 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
10165 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
10166 ;;
10167 esac
10168
1016910093 # We used to test for /lib/ld.so.1 and disable shared libraries on
1017010094 # powerpc, because MkLinux only supported shared libraries with the
1017110095 # GNU dynamic linker. Since this was broken with cross compilers,
1017310097 # people can always --disable-shared, the test was removed, and we
1017410098 # assume the GNU/Linux dynamic linker is in use.
1017510099 dynamic_linker='GNU/Linux ld.so'
10176
10177 # Find out which ABI we are using (multilib Linux x86_64 hack).
10178 libsuff=
10179 case "$host_cpu" in
10180 x86_64*)
10181 echo '#line 10182 "configure"' > conftest.$ac_ext
10182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183 (eval $ac_compile) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; then
10187 case `/usr/bin/file conftest.$ac_objext` in
10188 *64-bit*)
10189 libsuff=64
10190 ;;
10191 esac
10192 fi
10193 rm -rf conftest*
10194 ;;
10195 *)
10196 ;;
10197 esac
10198 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10199 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1020010100 ;;
1020110101
1020210102 knetbsd*-gnu)
1024810148
1024910149 openbsd*)
1025010150 version_type=sunos
10151 sys_lib_dlsearch_path_spec="/usr/lib"
1025110152 need_lib_prefix=no
1025210153 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1025310154 case $host_os in
1029110192 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1029210193 ;;
1029310194
10294 sco3.2v5*)
10295 version_type=osf
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 ;;
10300
1030110195 solaris*)
1030210196 version_type=linux
1030310197 need_lib_prefix=no
1032310217 need_version=yes
1032410218 ;;
1032510219
10326 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10220 sysv4 | sysv4.3*)
1032710221 version_type=linux
1032810222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1032910223 soname_spec='${libname}${release}${shared_ext}$major'
1035610250 fi
1035710251 ;;
1035810252
10253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10254 version_type=freebsd-elf
10255 need_lib_prefix=no
10256 need_version=no
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10258 soname_spec='${libname}${release}${shared_ext}$major'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 hardcode_into_libs=yes
10261 if test "$with_gnu_ld" = yes; then
10262 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10263 shlibpath_overrides_runpath=no
10264 else
10265 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10266 shlibpath_overrides_runpath=yes
10267 case $host_os in
10268 sco3.2v5*)
10269 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10270 ;;
10271 esac
10272 fi
10273 sys_lib_dlsearch_path_spec='/usr/lib'
10274 ;;
10275
1035910276 uts4*)
1036010277 version_type=linux
1036110278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1037010287 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
1037110288 echo "${ECHO_T}$dynamic_linker" >&6
1037210289 test "$dynamic_linker" = no && can_build_shared=no
10290
10291 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10292 if test "$GCC" = yes; then
10293 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10294 fi
1037310295
1037410296 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
1037510297 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1102610948 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1102710949
1102810950 save_LDFLAGS="$LDFLAGS"
11029 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10951 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1103010952
1103110953 save_LIBS="$LIBS"
1103210954 LIBS="$lt_cv_dlopen_libs $LIBS"
1104210964 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1104310965 lt_status=$lt_dlunknown
1104410966 cat > conftest.$ac_ext <<EOF
11045 #line 11046 "configure"
10967 #line 10968 "configure"
1104610968 #include "confdefs.h"
1104710969
1104810970 #if HAVE_DLFCN_H
1109911021 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1110011022 /* dlclose (self); */
1110111023 }
11024 else
11025 puts (dlerror ());
1110211026
1110311027 exit (status);
1110411028 }
1111311037 case x$lt_status in
1111411038 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
1111511039 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11116 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11040 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1111711041 esac
1111811042 else :
1111911043 # compilation failed
1112811052 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
1112911053
1113011054 if test "x$lt_cv_dlopen_self" = xyes; then
11131 LDFLAGS="$LDFLAGS $link_static_flag"
11055 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1113211056 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
1113311057 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
1113411058 if test "${lt_cv_dlopen_self_static+set}" = set; then
1114011064 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1114111065 lt_status=$lt_dlunknown
1114211066 cat > conftest.$ac_ext <<EOF
11143 #line 11144 "configure"
11067 #line 11068 "configure"
1114411068 #include "confdefs.h"
1114511069
1114611070 #if HAVE_DLFCN_H
1119711121 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1119811122 /* dlclose (self); */
1119911123 }
11124 else
11125 puts (dlerror ());
1120011126
1120111127 exit (status);
1120211128 }
1121111137 case x$lt_status in
1121211138 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
1121311139 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11214 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11140 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1121511141 esac
1121611142 else :
1121711143 # compilation failed
1124411170 fi
1124511171
1124611172
11247 # Report which librarie types wil actually be built
11173 # Report which library types will actually be built
1124811174 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
1124911175 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
1125011176 echo "$as_me:$LINENO: result: $can_build_shared" >&5
1129411220 # Now quote all the things that may contain metacharacters while being
1129511221 # careful not to overquote the AC_SUBSTed values. We take copies of the
1129611222 # variables and quote the copies for generation of the libtool script.
11297 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11223 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1129811224 SED SHELL STRIP \
1129911225 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1130011226 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1146011386 # A C compiler.
1146111387 LTCC=$lt_LTCC
1146211388
11389 # LTCC compiler flags.
11390 LTCFLAGS=$lt_LTCFLAGS
11391
1146311392 # A language-specific compiler.
1146411393 CC=$lt_compiler
1146511394
1178911718 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
1179011719 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
1179111720 fi
11721 fi
11722 if test -z "$LTCFLAGS"; then
11723 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1179211724 fi
1179311725
1179411726 # Extract list of available tagged configurations in $ofile.
1184211774 hardcode_libdir_flag_spec_ld_CXX=
1184311775 hardcode_libdir_separator_CXX=
1184411776 hardcode_minus_L_CXX=no
11777 hardcode_shlibpath_var_CXX=unsupported
1184511778 hardcode_automatic_CXX=no
1184611779 module_cmds_CXX=
1184711780 module_expsym_cmds_CXX=
1186911802 lt_simple_compile_test_code="int some_variable = 0;\n"
1187011803
1187111804 # Code to be used in simple link tests
11872 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11805 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
1187311806
1187411807 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
1187511808
1187611809 # If no C compiler was specified, use CC.
1187711810 LTCC=${LTCC-"$CC"}
11811
11812 # If no C compiler flags were specified, use CFLAGS.
11813 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1187811814
1187911815 # Allow CC to be a program name with arguments.
1188011816 compiler=$CC
1188311819 # save warnings/boilerplate of simple test code
1188411820 ac_outfile=conftest.$ac_objext
1188511821 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11886 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11822 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1188711823 _lt_compiler_boilerplate=`cat conftest.err`
1188811824 $rm conftest*
1188911825
1189011826 ac_outfile=conftest.$ac_objext
1189111827 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11892 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11828 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1189311829 _lt_linker_boilerplate=`cat conftest.err`
1189411830 $rm conftest*
1189511831
1190411840 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
1190511841 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
1190611842 else
11907 unset lt_cv_prog_gnu_ld
11843 $as_unset lt_cv_prog_gnu_ld
1190811844 fi
1190911845 if test -n "${lt_cv_path_LDCXX+set}"; then
1191011846 lt_cv_path_LD=$lt_cv_path_LDCXX
1191111847 else
11912 unset lt_cv_path_LD
11848 $as_unset lt_cv_path_LD
1191311849 fi
1191411850 test -z "${LDCXX+set}" || LD=$LDCXX
1191511851 CC=${CXX-"c++"}
1212012056 ;;
1212112057 esac
1212212058 done
12059 ;;
1212312060 esac
1212412061
1212512062 exp_sym_flag='-bexport'
1215712094 hardcode_libdir_flag_spec_CXX='-L$libdir'
1215812095 hardcode_libdir_separator_CXX=
1215912096 fi
12097 ;;
1216012098 esac
1216112099 shared_flag='-shared'
1216212100 if test "$aix_use_runtimelinking" = yes; then
1223912177
1224012178 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1224112179
12242 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"
12180 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1224312181 else
1224412182 if test "$host_cpu" = ia64; then
1224512183 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
1224612184 allow_undefined_flag_CXX="-z nodefs"
12247 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"
12185 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
1224812186 else
1224912187 # Determine the default libpath from the value encoded in an empty executable.
1225012188 cat >conftest.$ac_ext <<_ACEOF
1230412242 # -berok will link without error, but may produce a broken library.
1230512243 no_undefined_flag_CXX=' ${wl}-bernotok'
1230612244 allow_undefined_flag_CXX=' ${wl}-berok'
12307 # -bexpall does not export symbols beginning with underscore (_)
12308 always_export_symbols_CXX=yes
1230912245 # Exported symbols can be pulled into shared objects from archives
12310 whole_archive_flag_spec_CXX=' '
12246 whole_archive_flag_spec_CXX='$convenience'
1231112247 archive_cmds_need_lc_CXX=yes
1231212248 # This is similar to how AIX traditionally builds its shared libraries.
12313 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'
12249 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1231412250 fi
1231512251 fi
1231612252 ;;
12253
12254 beos*)
12255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12256 allow_undefined_flag_CXX=unsupported
12257 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12258 # support --undefined. This deserves some investigation. FIXME
12259 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12260 else
12261 ld_shlibs_CXX=no
12262 fi
12263 ;;
12264
1231712265 chorus*)
1231812266 case $cc_basename in
1231912267 *)
1232312271 esac
1232412272 ;;
1232512273
12326
1232712274 cygwin* | mingw* | pw32*)
1232812275 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
1232912276 # as there is no search path for DLLs.
1233312280 enable_shared_with_static_runtimes_CXX=yes
1233412281
1233512282 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12336 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'
12283 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1233712284 # If the export-symbols file already is a .def file (1st line
1233812285 # is EXPORTS), use it as is; otherwise, prepend...
1233912286 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1234212289 echo EXPORTS > $output_objdir/$soname.def;
1234312290 cat $export_symbols >> $output_objdir/$soname.def;
1234412291 fi~
12345 $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'
12292 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1234612293 else
1234712294 ld_shlibs_CXX=no
1234812295 fi
1247912426 ;;
1248012427 hpux10*|hpux11*)
1248112428 if test $with_gnu_ld = no; then
12429 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12430 hardcode_libdir_separator_CXX=:
12431
1248212432 case $host_cpu in
12483 hppa*64*)
12484 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12433 hppa*64*|ia64*)
1248512434 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12486 hardcode_libdir_separator_CXX=:
12487 ;;
12488 ia64*)
12489 hardcode_libdir_flag_spec_CXX='-L$libdir'
1249012435 ;;
1249112436 *)
12492 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12493 hardcode_libdir_separator_CXX=:
1249412437 export_dynamic_flag_spec_CXX='${wl}-E'
1249512438 ;;
1249612439 esac
1249712440 fi
1249812441 case $host_cpu in
12499 hppa*64*)
12442 hppa*64*|ia64*)
1250012443 hardcode_direct_CXX=no
1250112444 hardcode_shlibpath_var_CXX=no
12502 ;;
12503 ia64*)
12504 hardcode_direct_CXX=no
12505 hardcode_shlibpath_var_CXX=no
12506 hardcode_minus_L_CXX=yes # Not in the search PATH,
12507 # but as the default
12508 # location of the library.
1250912445 ;;
1251012446 *)
1251112447 hardcode_direct_CXX=yes
1252212458 ;;
1252312459 aCC*)
1252412460 case $host_cpu in
12525 hppa*64*|ia64*)
12526 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12461 hppa*64*)
12462 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12463 ;;
12464 ia64*)
12465 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1252712466 ;;
1252812467 *)
1252912468 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1254312482 if test "$GXX" = yes; then
1254412483 if test $with_gnu_ld = no; then
1254512484 case $host_cpu in
12546 ia64*|hppa*64*)
12547 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12485 hppa*64*)
12486 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12487 ;;
12488 ia64*)
12489 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1254812490 ;;
1254912491 *)
1255012492 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'
1255712499 fi
1255812500 ;;
1255912501 esac
12502 ;;
12503 interix3*)
12504 hardcode_direct_CXX=no
12505 hardcode_shlibpath_var_CXX=no
12506 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12507 export_dynamic_flag_spec_CXX='${wl}-E'
12508 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12509 # Instead, shared libraries are loaded at an image base (0x10000000 by
12510 # default) and relocated if they conflict, which is a slow very memory
12511 # consuming and fragmenting process. To avoid this, we pick a random,
12512 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12513 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12514 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12515 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1256012516 ;;
1256112517 irix5* | irix6*)
1256212518 case $cc_basename in
1284012796 # FIXME: insert proper C++ library support
1284112797 ld_shlibs_CXX=no
1284212798 ;;
12843 sco*)
12844 archive_cmds_need_lc_CXX=no
12845 case $cc_basename in
12846 CC*)
12847 # FIXME: insert proper C++ library support
12848 ld_shlibs_CXX=no
12849 ;;
12850 *)
12851 # FIXME: insert proper C++ library support
12852 ld_shlibs_CXX=no
12853 ;;
12854 esac
12855 ;;
1285612799 sunos4*)
1285712800 case $cc_basename in
1285812801 CC*)
1294512888 ;;
1294612889 esac
1294712890 ;;
12948 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12891 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12892 no_undefined_flag_CXX='${wl}-z,text'
1294912893 archive_cmds_need_lc_CXX=no
12894 hardcode_shlibpath_var_CXX=no
12895 runpath_var='LD_RUN_PATH'
12896
12897 case $cc_basename in
12898 CC*)
12899 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12900 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12901 ;;
12902 *)
12903 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12904 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12905 ;;
12906 esac
12907 ;;
12908 sysv5* | sco3.2v5* | sco5v6*)
12909 # Note: We can NOT use -z defs as we might desire, because we do not
12910 # link with -lc, and that would cause any symbols used from libc to
12911 # always be unresolved, which means just about no library would
12912 # ever link correctly. If we're not using GNU ld we use -z text
12913 # though, which does catch some bad symbols but isn't as heavy-handed
12914 # as -z defs.
12915 # For security reasons, it is highly recommended that you always
12916 # use absolute paths for naming shared libraries, and exclude the
12917 # DT_RUNPATH tag from executables and libraries. But doing so
12918 # requires that you compile everything twice, which is a pain.
12919 # So that behaviour is only enabled if SCOABSPATH is set to a
12920 # non-empty value in the environment. Most likely only useful for
12921 # creating official distributions of packages.
12922 # This is a hack until libtool officially supports absolute path
12923 # names for shared libraries.
12924 no_undefined_flag_CXX='${wl}-z,text'
12925 allow_undefined_flag_CXX='${wl}-z,nodefs'
12926 archive_cmds_need_lc_CXX=no
12927 hardcode_shlibpath_var_CXX=no
12928 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12929 hardcode_libdir_separator_CXX=':'
12930 link_all_deplibs_CXX=yes
12931 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12932 runpath_var='LD_RUN_PATH'
12933
12934 case $cc_basename in
12935 CC*)
12936 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12937 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12938 ;;
12939 *)
12940 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12941 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12942 ;;
12943 esac
1295012944 ;;
1295112945 tandem*)
1295212946 case $cc_basename in
1308113075
1308213076 # PORTME: override above test on systems where it is broken
1308313077 case $host_os in
13078 interix3*)
13079 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13080 # hack all around it, let's just trust "g++" to DTRT.
13081 predep_objects_CXX=
13082 postdep_objects_CXX=
13083 postdeps_CXX=
13084 ;;
13085
1308413086 solaris*)
1308513087 case $cc_basename in
1308613088 CC*)
1309013092 postdeps_CXX='-lCstd -lCrun'
1309113093 ;;
1309213094 esac
13095 ;;
1309313096 esac
1309413097
1309513098
1313913142 *djgpp*)
1314013143 # DJGPP does not support shared libraries at all
1314113144 lt_prog_compiler_pic_CXX=
13145 ;;
13146 interix3*)
13147 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13148 # Instead, we relocate shared libraries at runtime.
1314213149 ;;
1314313150 sysv4*MP*)
1314413151 if test -d /usr/nec; then
1320913216 case $cc_basename in
1321013217 CC*)
1321113218 lt_prog_compiler_wl_CXX='-Wl,'
13212 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13219 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
1321313220 if test "$host_cpu" != ia64; then
1321413221 lt_prog_compiler_pic_CXX='+Z'
1321513222 fi
1321613223 ;;
1321713224 aCC*)
1321813225 lt_prog_compiler_wl_CXX='-Wl,'
13219 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13226 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
1322013227 case $host_cpu in
1322113228 hppa*64*|ia64*)
1322213229 # +Z the default
1322913236 *)
1323013237 ;;
1323113238 esac
13239 ;;
13240 interix*)
13241 # This is c89, which is MS Visual C++ (no shared libs)
13242 # Anyone wants to do a port?
1323213243 ;;
1323313244 irix5* | irix6* | nonstopux*)
1323413245 case $cc_basename in
1330913320 ;;
1331013321 psos*)
1331113322 ;;
13312 sco*)
13313 case $cc_basename in
13314 CC*)
13315 lt_prog_compiler_pic_CXX='-fPIC'
13316 ;;
13317 *)
13318 ;;
13319 esac
13320 ;;
1332113323 solaris*)
1332213324 case $cc_basename in
1332313325 CC*)
1335913361 ;;
1336013362 esac
1336113363 ;;
13362 unixware*)
13364 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13365 case $cc_basename in
13366 CC*)
13367 lt_prog_compiler_wl_CXX='-Wl,'
13368 lt_prog_compiler_pic_CXX='-KPIC'
13369 lt_prog_compiler_static_CXX='-Bstatic'
13370 ;;
13371 esac
1336313372 ;;
1336413373 vxworks*)
1336513374 ;;
1339513404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1339613405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1339713406 -e 's:$: $lt_compiler_flag:'`
13398 (eval echo "\"\$as_me:13399: $lt_compile\"" >&5)
13407 (eval echo "\"\$as_me:13408: $lt_compile\"" >&5)
1339913408 (eval "$lt_compile" 2>conftest.err)
1340013409 ac_status=$?
1340113410 cat conftest.err >&5
13402 echo "$as_me:13403: \$? = $ac_status" >&5
13411 echo "$as_me:13412: \$? = $ac_status" >&5
1340313412 if (exit $ac_status) && test -s "$ac_outfile"; then
1340413413 # The compiler can only warn and ignore the option if not recognized
1340513414 # So say no if there are warnings other than the usual output.
13406 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13407 $SED '/^$/d' conftest.err >conftest.er2
13408 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13415 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13417 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1340913418 lt_prog_compiler_pic_works_CXX=yes
1341013419 fi
1341113420 fi
1343613445 ;;
1343713446 esac
1343813447
13448 #
13449 # Check to make sure the static flag actually works.
13450 #
13451 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13452 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13453 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13454 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 else
13457 lt_prog_compiler_static_works_CXX=no
13458 save_LDFLAGS="$LDFLAGS"
13459 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13460 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13461 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13462 # The linker can only warn and ignore the option if not recognized
13463 # So say no if there are warnings
13464 if test -s conftest.err; then
13465 # Append any errors to the config.log.
13466 cat conftest.err 1>&5
13467 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13469 if diff conftest.exp conftest.er2 >/dev/null; then
13470 lt_prog_compiler_static_works_CXX=yes
13471 fi
13472 else
13473 lt_prog_compiler_static_works_CXX=yes
13474 fi
13475 fi
13476 $rm conftest*
13477 LDFLAGS="$save_LDFLAGS"
13478
13479 fi
13480 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13481 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13482
13483 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13484 :
13485 else
13486 lt_prog_compiler_static_CXX=
13487 fi
13488
13489
1343913490 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
1344013491 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1344113492 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
1345713508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1345813509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1345913510 -e 's:$: $lt_compiler_flag:'`
13460 (eval echo "\"\$as_me:13461: $lt_compile\"" >&5)
13511 (eval echo "\"\$as_me:13512: $lt_compile\"" >&5)
1346113512 (eval "$lt_compile" 2>out/conftest.err)
1346213513 ac_status=$?
1346313514 cat out/conftest.err >&5
13464 echo "$as_me:13465: \$? = $ac_status" >&5
13515 echo "$as_me:13516: \$? = $ac_status" >&5
1346513516 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1346613517 then
1346713518 # The compiler can only warn and ignore the option if not recognized
1346813519 # So say no if there are warnings
13469 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13470 $SED '/^$/d' out/conftest.err >out/conftest.er2
13471 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13520 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13521 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13522 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1347213523 lt_cv_prog_compiler_c_o_CXX=yes
1347313524 fi
1347413525 fi
1353813589 echo "${ECHO_T}$ld_shlibs_CXX" >&6
1353913590 test "$ld_shlibs_CXX" = no && can_build_shared=no
1354013591
13541 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13542 if test "$GCC" = yes; then
13543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13544 fi
13545
1354613592 #
1354713593 # Do we need to explicitly link libc?
1354813594 #
1357513621 libobjs=conftest.$ac_objext
1357613622 deplibs=
1357713623 wl=$lt_prog_compiler_wl_CXX
13624 pic_flag=$lt_prog_compiler_pic_CXX
1357813625 compiler_flags=-v
1357913626 linker_flags=-v
1358013627 verstring=
1389313940 shlibpath_overrides_runpath=yes
1389413941 hardcode_into_libs=yes
1389513942 ;;
13896 *) # from 3.2 on
13943 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13944 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1389713945 shlibpath_overrides_runpath=no
13946 hardcode_into_libs=yes
13947 ;;
13948 freebsd*) # from 4.6 on
13949 shlibpath_overrides_runpath=yes
1389813950 hardcode_into_libs=yes
1389913951 ;;
1390013952 esac
1395614008 postinstall_cmds='chmod 555 $lib'
1395714009 ;;
1395814010
14011 interix3*)
14012 version_type=linux
14013 need_lib_prefix=no
14014 need_version=no
14015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14016 soname_spec='${libname}${release}${shared_ext}$major'
14017 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14018 shlibpath_var=LD_LIBRARY_PATH
14019 shlibpath_overrides_runpath=no
14020 hardcode_into_libs=yes
14021 ;;
14022
1395914023 irix5* | irix6* | nonstopux*)
1396014024 case $host_os in
1396114025 nonstopux*) version_type=nonstopux ;;
1401914083 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1402014084 fi
1402114085
14022 case $host_cpu:$lt_cv_cc_64bit_output in
14023 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
14024 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
14025 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
14026 ;;
14027 esac
14028
1402914086 # We used to test for /lib/ld.so.1 and disable shared libraries on
1403014087 # powerpc, because MkLinux only supported shared libraries with the
1403114088 # GNU dynamic linker. Since this was broken with cross compilers,
1403314090 # people can always --disable-shared, the test was removed, and we
1403414091 # assume the GNU/Linux dynamic linker is in use.
1403514092 dynamic_linker='GNU/Linux ld.so'
14036
14037 # Find out which ABI we are using (multilib Linux x86_64 hack).
14038 libsuff=
14039 case "$host_cpu" in
14040 x86_64*)
14041 echo '#line 14042 "configure"' > conftest.$ac_ext
14042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14043 (eval $ac_compile) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; then
14047 case `/usr/bin/file conftest.$ac_objext` in
14048 *64-bit*)
14049 libsuff=64
14050 ;;
14051 esac
14052 fi
14053 rm -rf conftest*
14054 ;;
14055 *)
14056 ;;
14057 esac
14058 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14059 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1406014093 ;;
1406114094
1406214095 knetbsd*-gnu)
1410814141
1410914142 openbsd*)
1411014143 version_type=sunos
14144 sys_lib_dlsearch_path_spec="/usr/lib"
1411114145 need_lib_prefix=no
1411214146 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1411314147 case $host_os in
1415114185 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1415214186 ;;
1415314187
14154 sco3.2v5*)
14155 version_type=osf
14156 soname_spec='${libname}${release}${shared_ext}$major'
14157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14158 shlibpath_var=LD_LIBRARY_PATH
14159 ;;
14160
1416114188 solaris*)
1416214189 version_type=linux
1416314190 need_lib_prefix=no
1418314210 need_version=yes
1418414211 ;;
1418514212
14186 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14213 sysv4 | sysv4.3*)
1418714214 version_type=linux
1418814215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1418914216 soname_spec='${libname}${release}${shared_ext}$major'
1421614243 fi
1421714244 ;;
1421814245
14246 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14247 version_type=freebsd-elf
14248 need_lib_prefix=no
14249 need_version=no
14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14251 soname_spec='${libname}${release}${shared_ext}$major'
14252 shlibpath_var=LD_LIBRARY_PATH
14253 hardcode_into_libs=yes
14254 if test "$with_gnu_ld" = yes; then
14255 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14256 shlibpath_overrides_runpath=no
14257 else
14258 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14259 shlibpath_overrides_runpath=yes
14260 case $host_os in
14261 sco3.2v5*)
14262 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14263 ;;
14264 esac
14265 fi
14266 sys_lib_dlsearch_path_spec='/usr/lib'
14267 ;;
14268
1421914269 uts4*)
1422014270 version_type=linux
1422114271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1423014280 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
1423114281 echo "${ECHO_T}$dynamic_linker" >&6
1423214282 test "$dynamic_linker" = no && can_build_shared=no
14283
14284 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14285 if test "$GCC" = yes; then
14286 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14287 fi
1423314288
1423414289 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
1423514290 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1426814323 enable_fast_install=needless
1426914324 fi
1427014325
14271 striplib=
14272 old_striplib=
14273 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14274 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14275 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14276 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14277 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14278 echo "$as_me:$LINENO: result: yes" >&5
14279 echo "${ECHO_T}yes" >&6
14280 else
14281 # FIXME - insert some real tests, host_os isn't really good enough
14282 case $host_os in
14283 darwin*)
14284 if test -n "$STRIP" ; then
14285 striplib="$STRIP -x"
14286 echo "$as_me:$LINENO: result: yes" >&5
14287 echo "${ECHO_T}yes" >&6
14288 else
14289 echo "$as_me:$LINENO: result: no" >&5
14290 echo "${ECHO_T}no" >&6
14291 fi
14292 ;;
14293 *)
14294 echo "$as_me:$LINENO: result: no" >&5
14295 echo "${ECHO_T}no" >&6
14296 ;;
14297 esac
14298 fi
14299
14300 if test "x$enable_dlopen" != xyes; then
14301 enable_dlopen=unknown
14302 enable_dlopen_self=unknown
14303 enable_dlopen_self_static=unknown
14304 else
14305 lt_cv_dlopen=no
14306 lt_cv_dlopen_libs=
14307
14308 case $host_os in
14309 beos*)
14310 lt_cv_dlopen="load_add_on"
14311 lt_cv_dlopen_libs=
14312 lt_cv_dlopen_self=yes
14313 ;;
14314
14315 mingw* | pw32*)
14316 lt_cv_dlopen="LoadLibrary"
14317 lt_cv_dlopen_libs=
14318 ;;
14319
14320 cygwin*)
14321 lt_cv_dlopen="dlopen"
14322 lt_cv_dlopen_libs=
14323 ;;
14324
14325 darwin*)
14326 # if libdl is installed we need to link against it
14327 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14328 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14329 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 else
14332 ac_check_lib_save_LIBS=$LIBS
14333 LIBS="-ldl $LIBS"
14334 cat >conftest.$ac_ext <<_ACEOF
14335 /* confdefs.h. */
14336 _ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340
14341 /* Override any gcc2 internal prototype to avoid an error. */
14342 #ifdef __cplusplus
14343 extern "C"
14344 #endif
14345 /* We use char because int might match the return type of a gcc2
14346 builtin and then its argument prototype would still apply. */
14347 char dlopen ();
14348 int
14349 main ()
14350 {
14351 dlopen ();
14352 ;
14353 return 0;
14354 }
14355 _ACEOF
14356 rm -f conftest.$ac_objext conftest$ac_exeext
14357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14358 (eval $ac_link) 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } &&
14365 { ac_try='test -z "$ac_cxx_werror_flag"
14366 || test ! -s conftest.err'
14367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368 (eval $ac_try) 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; } &&
14372 { ac_try='test -s conftest$ac_exeext'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; }; then
14378 ac_cv_lib_dl_dlopen=yes
14379 else
14380 echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.$ac_ext >&5
14382
14383 ac_cv_lib_dl_dlopen=no
14384 fi
14385 rm -f conftest.err conftest.$ac_objext \
14386 conftest$ac_exeext conftest.$ac_ext
14387 LIBS=$ac_check_lib_save_LIBS
14388 fi
14389 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14390 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14391 if test $ac_cv_lib_dl_dlopen = yes; then
14392 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14393 else
14394
14395 lt_cv_dlopen="dyld"
14396 lt_cv_dlopen_libs=
14397 lt_cv_dlopen_self=yes
14398
14399 fi
14400
14401 ;;
14402
14403 *)
14404 echo "$as_me:$LINENO: checking for shl_load" >&5
14405 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14406 if test "${ac_cv_func_shl_load+set}" = set; then
14407 echo $ECHO_N "(cached) $ECHO_C" >&6
14408 else
14409 cat >conftest.$ac_ext <<_ACEOF
14410 /* confdefs.h. */
14411 _ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14415 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14417 #define shl_load innocuous_shl_load
14418
14419 /* System header to define __stub macros and hopefully few prototypes,
14420 which can conflict with char shl_load (); below.
14421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14422 <limits.h> exists even on freestanding compilers. */
14423
14424 #ifdef __STDC__
14425 # include <limits.h>
14426 #else
14427 # include <assert.h>
14428 #endif
14429
14430 #undef shl_load
14431
14432 /* Override any gcc2 internal prototype to avoid an error. */
14433 #ifdef __cplusplus
14434 extern "C"
14435 {
14436 #endif
14437 /* We use char because int might match the return type of a gcc2
14438 builtin and then its argument prototype would still apply. */
14439 char shl_load ();
14440 /* The GNU C library defines this for functions which it implements
14441 to always fail with ENOSYS. Some functions are actually named
14442 something starting with __ and the normal name is an alias. */
14443 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14444 choke me
14445 #else
14446 char (*f) () = shl_load;
14447 #endif
14448 #ifdef __cplusplus
14449 }
14450 #endif
14451
14452 int
14453 main ()
14454 {
14455 return f != shl_load;
14456 ;
14457 return 0;
14458 }
14459 _ACEOF
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14462 (eval $ac_link) 2>conftest.er1
14463 ac_status=$?
14464 grep -v '^ *+' conftest.er1 >conftest.err
14465 rm -f conftest.er1
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
14469 { ac_try='test -z "$ac_cxx_werror_flag"
14470 || test ! -s conftest.err'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest$ac_exeext'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_cv_func_shl_load=yes
14483 else
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14486
14487 ac_cv_func_shl_load=no
14488 fi
14489 rm -f conftest.err conftest.$ac_objext \
14490 conftest$ac_exeext conftest.$ac_ext
14491 fi
14492 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14493 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14494 if test $ac_cv_func_shl_load = yes; then
14495 lt_cv_dlopen="shl_load"
14496 else
14497 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14498 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14499 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502 ac_check_lib_save_LIBS=$LIBS
14503 LIBS="-ldld $LIBS"
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h. */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510
14511 /* Override any gcc2 internal prototype to avoid an error. */
14512 #ifdef __cplusplus
14513 extern "C"
14514 #endif
14515 /* We use char because int might match the return type of a gcc2
14516 builtin and then its argument prototype would still apply. */
14517 char shl_load ();
14518 int
14519 main ()
14520 {
14521 shl_load ();
14522 ;
14523 return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest.$ac_objext conftest$ac_exeext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14528 (eval $ac_link) 2>conftest.er1
14529 ac_status=$?
14530 grep -v '^ *+' conftest.er1 >conftest.err
14531 rm -f conftest.er1
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } &&
14535 { ac_try='test -z "$ac_cxx_werror_flag"
14536 || test ! -s conftest.err'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } &&
14542 { ac_try='test -s conftest$ac_exeext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_cv_lib_dld_shl_load=yes
14549 else
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14552
14553 ac_cv_lib_dld_shl_load=no
14554 fi
14555 rm -f conftest.err conftest.$ac_objext \
14556 conftest$ac_exeext conftest.$ac_ext
14557 LIBS=$ac_check_lib_save_LIBS
14558 fi
14559 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14560 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14561 if test $ac_cv_lib_dld_shl_load = yes; then
14562 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14563 else
14564 echo "$as_me:$LINENO: checking for dlopen" >&5
14565 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14566 if test "${ac_cv_func_dlopen+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14568 else
14569 cat >conftest.$ac_ext <<_ACEOF
14570 /* confdefs.h. */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14577 #define dlopen innocuous_dlopen
14578
14579 /* System header to define __stub macros and hopefully few prototypes,
14580 which can conflict with char dlopen (); below.
14581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14582 <limits.h> exists even on freestanding compilers. */
14583
14584 #ifdef __STDC__
14585 # include <limits.h>
14586 #else
14587 # include <assert.h>
14588 #endif
14589
14590 #undef dlopen
14591
14592 /* Override any gcc2 internal prototype to avoid an error. */
14593 #ifdef __cplusplus
14594 extern "C"
14595 {
14596 #endif
14597 /* We use char because int might match the return type of a gcc2
14598 builtin and then its argument prototype would still apply. */
14599 char dlopen ();
14600 /* The GNU C library defines this for functions which it implements
14601 to always fail with ENOSYS. Some functions are actually named
14602 something starting with __ and the normal name is an alias. */
14603 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14604 choke me
14605 #else
14606 char (*f) () = dlopen;
14607 #endif
14608 #ifdef __cplusplus
14609 }
14610 #endif
14611
14612 int
14613 main ()
14614 {
14615 return f != dlopen;
14616 ;
14617 return 0;
14618 }
14619 _ACEOF
14620 rm -f conftest.$ac_objext conftest$ac_exeext
14621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14622 (eval $ac_link) 2>conftest.er1
14623 ac_status=$?
14624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
14629 { ac_try='test -z "$ac_cxx_werror_flag"
14630 || test ! -s conftest.err'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; } &&
14636 { ac_try='test -s conftest$ac_exeext'
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14642 ac_cv_func_dlopen=yes
14643 else
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647 ac_cv_func_dlopen=no
14648 fi
14649 rm -f conftest.err conftest.$ac_objext \
14650 conftest$ac_exeext conftest.$ac_ext
14651 fi
14652 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14653 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14654 if test $ac_cv_func_dlopen = yes; then
14655 lt_cv_dlopen="dlopen"
14656 else
14657 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14658 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 else
14662 ac_check_lib_save_LIBS=$LIBS
14663 LIBS="-ldl $LIBS"
14664 cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h. */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670
14671 /* Override any gcc2 internal prototype to avoid an error. */
14672 #ifdef __cplusplus
14673 extern "C"
14674 #endif
14675 /* We use char because int might match the return type of a gcc2
14676 builtin and then its argument prototype would still apply. */
14677 char dlopen ();
14678 int
14679 main ()
14680 {
14681 dlopen ();
14682 ;
14683 return 0;
14684 }
14685 _ACEOF
14686 rm -f conftest.$ac_objext conftest$ac_exeext
14687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14688 (eval $ac_link) 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -z "$ac_cxx_werror_flag"
14696 || test ! -s conftest.err'
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; } &&
14702 { ac_try='test -s conftest$ac_exeext'
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14705 ac_status=$?
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; }; then
14708 ac_cv_lib_dl_dlopen=yes
14709 else
14710 echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14712
14713 ac_cv_lib_dl_dlopen=no
14714 fi
14715 rm -f conftest.err conftest.$ac_objext \
14716 conftest$ac_exeext conftest.$ac_ext
14717 LIBS=$ac_check_lib_save_LIBS
14718 fi
14719 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14720 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14721 if test $ac_cv_lib_dl_dlopen = yes; then
14722 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14723 else
14724 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14725 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14726 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729 ac_check_lib_save_LIBS=$LIBS
14730 LIBS="-lsvld $LIBS"
14731 cat >conftest.$ac_ext <<_ACEOF
14732 /* confdefs.h. */
14733 _ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h. */
14737
14738 /* Override any gcc2 internal prototype to avoid an error. */
14739 #ifdef __cplusplus
14740 extern "C"
14741 #endif
14742 /* We use char because int might match the return type of a gcc2
14743 builtin and then its argument prototype would still apply. */
14744 char dlopen ();
14745 int
14746 main ()
14747 {
14748 dlopen ();
14749 ;
14750 return 0;
14751 }
14752 _ACEOF
14753 rm -f conftest.$ac_objext conftest$ac_exeext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755 (eval $ac_link) 2>conftest.er1
14756 ac_status=$?
14757 grep -v '^ *+' conftest.er1 >conftest.err
14758 rm -f conftest.er1
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } &&
14762 { ac_try='test -z "$ac_cxx_werror_flag"
14763 || test ! -s conftest.err'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; } &&
14769 { ac_try='test -s conftest$ac_exeext'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14775 ac_cv_lib_svld_dlopen=yes
14776 else
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14779
14780 ac_cv_lib_svld_dlopen=no
14781 fi
14782 rm -f conftest.err conftest.$ac_objext \
14783 conftest$ac_exeext conftest.$ac_ext
14784 LIBS=$ac_check_lib_save_LIBS
14785 fi
14786 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14787 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14788 if test $ac_cv_lib_svld_dlopen = yes; then
14789 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14790 else
14791 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14792 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14793 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 else
14796 ac_check_lib_save_LIBS=$LIBS
14797 LIBS="-ldld $LIBS"
14798 cat >conftest.$ac_ext <<_ACEOF
14799 /* confdefs.h. */
14800 _ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804
14805 /* Override any gcc2 internal prototype to avoid an error. */
14806 #ifdef __cplusplus
14807 extern "C"
14808 #endif
14809 /* We use char because int might match the return type of a gcc2
14810 builtin and then its argument prototype would still apply. */
14811 char dld_link ();
14812 int
14813 main ()
14814 {
14815 dld_link ();
14816 ;
14817 return 0;
14818 }
14819 _ACEOF
14820 rm -f conftest.$ac_objext conftest$ac_exeext
14821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14822 (eval $ac_link) 2>conftest.er1
14823 ac_status=$?
14824 grep -v '^ *+' conftest.er1 >conftest.err
14825 rm -f conftest.er1
14826 cat conftest.err >&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } &&
14829 { ac_try='test -z "$ac_cxx_werror_flag"
14830 || test ! -s conftest.err'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; } &&
14836 { ac_try='test -s conftest$ac_exeext'
14837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838 (eval $ac_try) 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14842 ac_cv_lib_dld_dld_link=yes
14843 else
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14846
14847 ac_cv_lib_dld_dld_link=no
14848 fi
14849 rm -f conftest.err conftest.$ac_objext \
14850 conftest$ac_exeext conftest.$ac_ext
14851 LIBS=$ac_check_lib_save_LIBS
14852 fi
14853 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14854 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14855 if test $ac_cv_lib_dld_dld_link = yes; then
14856 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14857 fi
14858
14859
14860 fi
14861
14862
14863 fi
14864
14865
14866 fi
14867
14868
14869 fi
14870
14871
14872 fi
14873
14874 ;;
14875 esac
14876
14877 if test "x$lt_cv_dlopen" != xno; then
14878 enable_dlopen=yes
14879 else
14880 enable_dlopen=no
14881 fi
14882
14883 case $lt_cv_dlopen in
14884 dlopen)
14885 save_CPPFLAGS="$CPPFLAGS"
14886 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14887
14888 save_LDFLAGS="$LDFLAGS"
14889 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14890
14891 save_LIBS="$LIBS"
14892 LIBS="$lt_cv_dlopen_libs $LIBS"
14893
14894 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14895 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14896 if test "${lt_cv_dlopen_self+set}" = set; then
14897 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 else
14899 if test "$cross_compiling" = yes; then :
14900 lt_cv_dlopen_self=cross
14901 else
14902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14903 lt_status=$lt_dlunknown
14904 cat > conftest.$ac_ext <<EOF
14905 #line 14906 "configure"
14906 #include "confdefs.h"
14907
14908 #if HAVE_DLFCN_H
14909 #include <dlfcn.h>
14910 #endif
14911
14912 #include <stdio.h>
14913
14914 #ifdef RTLD_GLOBAL
14915 # define LT_DLGLOBAL RTLD_GLOBAL
14916 #else
14917 # ifdef DL_GLOBAL
14918 # define LT_DLGLOBAL DL_GLOBAL
14919 # else
14920 # define LT_DLGLOBAL 0
14921 # endif
14922 #endif
14923
14924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14925 find out it does not work in some platform. */
14926 #ifndef LT_DLLAZY_OR_NOW
14927 # ifdef RTLD_LAZY
14928 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14929 # else
14930 # ifdef DL_LAZY
14931 # define LT_DLLAZY_OR_NOW DL_LAZY
14932 # else
14933 # ifdef RTLD_NOW
14934 # define LT_DLLAZY_OR_NOW RTLD_NOW
14935 # else
14936 # ifdef DL_NOW
14937 # define LT_DLLAZY_OR_NOW DL_NOW
14938 # else
14939 # define LT_DLLAZY_OR_NOW 0
14940 # endif
14941 # endif
14942 # endif
14943 # endif
14944 #endif
14945
14946 #ifdef __cplusplus
14947 extern "C" void exit (int);
14948 #endif
14949
14950 void fnord() { int i=42;}
14951 int main ()
14952 {
14953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14954 int status = $lt_dlunknown;
14955
14956 if (self)
14957 {
14958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14959 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14960 /* dlclose (self); */
14961 }
14962
14963 exit (status);
14964 }
14965 EOF
14966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14967 (eval $ac_link) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14971 (./conftest; exit; ) >&5 2>/dev/null
14972 lt_status=$?
14973 case x$lt_status in
14974 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14975 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14976 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14977 esac
14978 else :
14979 # compilation failed
14980 lt_cv_dlopen_self=no
14981 fi
14982 fi
14983 rm -fr conftest*
14984
14985
14986 fi
14987 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14988 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14989
14990 if test "x$lt_cv_dlopen_self" = xyes; then
14991 LDFLAGS="$LDFLAGS $link_static_flag"
14992 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14993 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14994 if test "${lt_cv_dlopen_self_static+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997 if test "$cross_compiling" = yes; then :
14998 lt_cv_dlopen_self_static=cross
14999 else
15000 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15001 lt_status=$lt_dlunknown
15002 cat > conftest.$ac_ext <<EOF
15003 #line 15004 "configure"
15004 #include "confdefs.h"
15005
15006 #if HAVE_DLFCN_H
15007 #include <dlfcn.h>
15008 #endif
15009
15010 #include <stdio.h>
15011
15012 #ifdef RTLD_GLOBAL
15013 # define LT_DLGLOBAL RTLD_GLOBAL
15014 #else
15015 # ifdef DL_GLOBAL
15016 # define LT_DLGLOBAL DL_GLOBAL
15017 # else
15018 # define LT_DLGLOBAL 0
15019 # endif
15020 #endif
15021
15022 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15023 find out it does not work in some platform. */
15024 #ifndef LT_DLLAZY_OR_NOW
15025 # ifdef RTLD_LAZY
15026 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15027 # else
15028 # ifdef DL_LAZY
15029 # define LT_DLLAZY_OR_NOW DL_LAZY
15030 # else
15031 # ifdef RTLD_NOW
15032 # define LT_DLLAZY_OR_NOW RTLD_NOW
15033 # else
15034 # ifdef DL_NOW
15035 # define LT_DLLAZY_OR_NOW DL_NOW
15036 # else
15037 # define LT_DLLAZY_OR_NOW 0
15038 # endif
15039 # endif
15040 # endif
15041 # endif
15042 #endif
15043
15044 #ifdef __cplusplus
15045 extern "C" void exit (int);
15046 #endif
15047
15048 void fnord() { int i=42;}
15049 int main ()
15050 {
15051 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15052 int status = $lt_dlunknown;
15053
15054 if (self)
15055 {
15056 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15057 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15058 /* dlclose (self); */
15059 }
15060
15061 exit (status);
15062 }
15063 EOF
15064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15065 (eval $ac_link) 2>&5
15066 ac_status=$?
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15069 (./conftest; exit; ) >&5 2>/dev/null
15070 lt_status=$?
15071 case x$lt_status in
15072 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15073 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15074 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15075 esac
15076 else :
15077 # compilation failed
15078 lt_cv_dlopen_self_static=no
15079 fi
15080 fi
15081 rm -fr conftest*
15082
15083
15084 fi
15085 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15086 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15087 fi
15088
15089 CPPFLAGS="$save_CPPFLAGS"
15090 LDFLAGS="$save_LDFLAGS"
15091 LIBS="$save_LIBS"
15092 ;;
15093 esac
15094
15095 case $lt_cv_dlopen_self in
15096 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15097 *) enable_dlopen_self=unknown ;;
15098 esac
15099
15100 case $lt_cv_dlopen_self_static in
15101 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15102 *) enable_dlopen_self_static=unknown ;;
15103 esac
15104 fi
15105
1510614326
1510714327 # The else clause should only fire when bootstrapping the
1510814328 # libtool distribution, otherwise you forgot to ship ltmain.sh
1511714337 # Now quote all the things that may contain metacharacters while being
1511814338 # careful not to overquote the AC_SUBSTed values. We take copies of the
1511914339 # variables and quote the copies for generation of the libtool script.
15120 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14340 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1512114341 SED SHELL STRIP \
1512214342 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1512314343 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1523514455 # A C compiler.
1523614456 LTCC=$lt_LTCC
1523714457
14458 # LTCC compiler flags.
14459 LTCFLAGS=$lt_LTCFLAGS
14460
1523814461 # A language-specific compiler.
1523914462 CC=$lt_compiler_CXX
1524014463
1557714800 # If no C compiler was specified, use CC.
1557814801 LTCC=${LTCC-"$CC"}
1557914802
14803 # If no C compiler flags were specified, use CFLAGS.
14804 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14805
1558014806 # Allow CC to be a program name with arguments.
1558114807 compiler=$CC
1558214808
1558414810 # save warnings/boilerplate of simple test code
1558514811 ac_outfile=conftest.$ac_objext
1558614812 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15587 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14813 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1558814814 _lt_compiler_boilerplate=`cat conftest.err`
1558914815 $rm conftest*
1559014816
1559114817 ac_outfile=conftest.$ac_objext
1559214818 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15593 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14819 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1559414820 _lt_linker_boilerplate=`cat conftest.err`
1559514821 $rm conftest*
1559614822
1564614872 echo "$as_me:$LINENO: result: $enable_static" >&5
1564714873 echo "${ECHO_T}$enable_static" >&6
1564814874
15649 test "$ld_shlibs_F77" = no && can_build_shared=no
15650
1565114875 GCC_F77="$G77"
1565214876 LD_F77="$LD"
1565314877
1569214916 # PIC is the default on this platform
1569314917 # Common symbols not allowed in MH_DYLIB files
1569414918 lt_prog_compiler_pic_F77='-fno-common'
14919 ;;
14920
14921 interix3*)
14922 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14923 # Instead, we relocate shared libraries at runtime.
1569514924 ;;
1569614925
1569714926 msdosdjgpp*)
1580815037 lt_prog_compiler_static_F77='-non_shared'
1580915038 ;;
1581015039
15811 sco3.2v5*)
15812 lt_prog_compiler_pic_F77='-Kpic'
15813 lt_prog_compiler_static_F77='-dn'
15814 ;;
15815
1581615040 solaris*)
1581715041 lt_prog_compiler_pic_F77='-KPIC'
1581815042 lt_prog_compiler_static_F77='-Bstatic'
1583015054 lt_prog_compiler_static_F77='-Bstatic'
1583115055 ;;
1583215056
15833 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15057 sysv4 | sysv4.2uw2* | sysv4.3*)
1583415058 lt_prog_compiler_wl_F77='-Wl,'
1583515059 lt_prog_compiler_pic_F77='-KPIC'
1583615060 lt_prog_compiler_static_F77='-Bstatic'
1584115065 lt_prog_compiler_pic_F77='-Kconform_pic'
1584215066 lt_prog_compiler_static_F77='-Bstatic'
1584315067 fi
15068 ;;
15069
15070 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15071 lt_prog_compiler_wl_F77='-Wl,'
15072 lt_prog_compiler_pic_F77='-KPIC'
15073 lt_prog_compiler_static_F77='-Bstatic'
1584415074 ;;
1584515075
1584615076 unicos*)
1588515115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1588615116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1588715117 -e 's:$: $lt_compiler_flag:'`
15888 (eval echo "\"\$as_me:15889: $lt_compile\"" >&5)
15118 (eval echo "\"\$as_me:15119: $lt_compile\"" >&5)
1588915119 (eval "$lt_compile" 2>conftest.err)
1589015120 ac_status=$?
1589115121 cat conftest.err >&5
15892 echo "$as_me:15893: \$? = $ac_status" >&5
15122 echo "$as_me:15123: \$? = $ac_status" >&5
1589315123 if (exit $ac_status) && test -s "$ac_outfile"; then
1589415124 # The compiler can only warn and ignore the option if not recognized
1589515125 # So say no if there are warnings other than the usual output.
15896 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15897 $SED '/^$/d' conftest.err >conftest.er2
15898 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15126 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1589915129 lt_prog_compiler_pic_works_F77=yes
1590015130 fi
1590115131 fi
1592615156 ;;
1592715157 esac
1592815158
15159 #
15160 # Check to make sure the static flag actually works.
15161 #
15162 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15163 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15164 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15165 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 else
15168 lt_prog_compiler_static_works_F77=no
15169 save_LDFLAGS="$LDFLAGS"
15170 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15171 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15172 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15173 # The linker can only warn and ignore the option if not recognized
15174 # So say no if there are warnings
15175 if test -s conftest.err; then
15176 # Append any errors to the config.log.
15177 cat conftest.err 1>&5
15178 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15180 if diff conftest.exp conftest.er2 >/dev/null; then
15181 lt_prog_compiler_static_works_F77=yes
15182 fi
15183 else
15184 lt_prog_compiler_static_works_F77=yes
15185 fi
15186 fi
15187 $rm conftest*
15188 LDFLAGS="$save_LDFLAGS"
15189
15190 fi
15191 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15192 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15193
15194 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15195 :
15196 else
15197 lt_prog_compiler_static_F77=
15198 fi
15199
15200
1592915201 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
1593015202 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1593115203 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
1594715219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1594815220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1594915221 -e 's:$: $lt_compiler_flag:'`
15950 (eval echo "\"\$as_me:15951: $lt_compile\"" >&5)
15222 (eval echo "\"\$as_me:15223: $lt_compile\"" >&5)
1595115223 (eval "$lt_compile" 2>out/conftest.err)
1595215224 ac_status=$?
1595315225 cat out/conftest.err >&5
15954 echo "$as_me:15955: \$? = $ac_status" >&5
15226 echo "$as_me:15227: \$? = $ac_status" >&5
1595515227 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1595615228 then
1595715229 # The compiler can only warn and ignore the option if not recognized
1595815230 # So say no if there are warnings
15959 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15960 $SED '/^$/d' out/conftest.err >out/conftest.er2
15961 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15231 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1596215234 lt_cv_prog_compiler_c_o_F77=yes
1596315235 fi
1596415236 fi
1605815330 with_gnu_ld=no
1605915331 fi
1606015332 ;;
15333 interix*)
15334 # we just hope/assume this is gcc and not c89 (= MSVC++)
15335 with_gnu_ld=yes
15336 ;;
1606115337 openbsd*)
1606215338 with_gnu_ld=no
1606315339 ;;
1614215418 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
1614315419
1614415420 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16145 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15421 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1614615422 # If the export-symbols file already is a .def file (1st line
1614715423 # is EXPORTS), use it as is; otherwise, prepend...
1614815424 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1615115427 echo EXPORTS > $output_objdir/$soname.def;
1615215428 cat $export_symbols >> $output_objdir/$soname.def;
1615315429 fi~
16154 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15430 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1615515431 else
1615615432 ld_shlibs_F77=no
1615715433 fi
15434 ;;
15435
15436 interix3*)
15437 hardcode_direct_F77=no
15438 hardcode_shlibpath_var_F77=no
15439 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15440 export_dynamic_flag_spec_F77='${wl}-E'
15441 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15442 # Instead, shared libraries are loaded at an image base (0x10000000 by
15443 # default) and relocated if they conflict, which is a slow very memory
15444 # consuming and fragmenting process. To avoid this, we pick a random,
15445 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15446 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15447 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15448 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1615815449 ;;
1615915450
1616015451 linux*)
1619815489 fi
1619915490 ;;
1620015491
16201 solaris* | sysv5*)
15492 solaris*)
1620215493 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
1620315494 ld_shlibs_F77=no
1620415495 cat <<EOF 1>&2
1621715508 else
1621815509 ld_shlibs_F77=no
1621915510 fi
15511 ;;
15512
15513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15514 case `$LD -v 2>&1` in
15515 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15516 ld_shlibs_F77=no
15517 cat <<_LT_EOF 1>&2
15518
15519 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15520 *** reliably create shared libraries on SCO systems. Therefore, libtool
15521 *** is disabling shared libraries support. We urge you to upgrade GNU
15522 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15523 *** your PATH or compiler configuration so that the native linker is
15524 *** used, and then restart.
15525
15526 _LT_EOF
15527 ;;
15528 *)
15529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15530 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15531 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15532 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15533 else
15534 ld_shlibs_F77=no
15535 fi
15536 ;;
15537 esac
1622015538 ;;
1622115539
1622215540 sunos4*)
1625215570 # Note: this linker hardcodes the directories in LIBPATH if there
1625315571 # are no directories specified by -L.
1625415572 hardcode_minus_L_F77=yes
16255 if test "$GCC" = yes && test -z "$link_static_flag"; then
15573 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1625615574 # Neither direct hardcoding nor static linking is supported with a
1625715575 # broken collect2.
1625815576 hardcode_direct_F77=unsupported
1628615604 break
1628715605 fi
1628815606 done
15607 ;;
1628915608 esac
1629015609
1629115610 exp_sym_flag='-bexport'
1632315642 hardcode_libdir_flag_spec_F77='-L$libdir'
1632415643 hardcode_libdir_separator_F77=
1632515644 fi
15645 ;;
1632615646 esac
1632715647 shared_flag='-shared'
1632815648 if test "$aix_use_runtimelinking" = yes; then
1633515655 # chokes on -Wl,-G. The following line is correct:
1633615656 shared_flag='-G'
1633715657 else
16338 if test "$aix_use_runtimelinking" = yes; then
15658 if test "$aix_use_runtimelinking" = yes; then
1633915659 shared_flag='${wl}-G'
1634015660 else
1634115661 shared_flag='${wl}-bM:SRE'
16342 fi
15662 fi
1634315663 fi
1634415664 fi
1634515665
1639415714 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1639515715
1639615716 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16397 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"
15717 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1639815718 else
1639915719 if test "$host_cpu" = ia64; then
1640015720 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
1640115721 allow_undefined_flag_F77="-z nodefs"
16402 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"
15722 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
1640315723 else
1640415724 # Determine the default libpath from the value encoded in an empty executable.
1640515725 cat >conftest.$ac_ext <<_ACEOF
1644915769 # -berok will link without error, but may produce a broken library.
1645015770 no_undefined_flag_F77=' ${wl}-bernotok'
1645115771 allow_undefined_flag_F77=' ${wl}-berok'
16452 # -bexpall does not export symbols beginning with underscore (_)
16453 always_export_symbols_F77=yes
1645415772 # Exported symbols can be pulled into shared objects from archives
16455 whole_archive_flag_spec_F77=' '
15773 whole_archive_flag_spec_F77='$convenience'
1645615774 archive_cmds_need_lc_F77=yes
1645715775 # This is similar to how AIX traditionally builds its shared libraries.
16458 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'
15776 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1645915777 fi
1646015778 fi
1646115779 ;;
1659615914 export_dynamic_flag_spec_F77='${wl}-E'
1659715915 ;;
1659815916
16599 hpux10* | hpux11*)
15917 hpux10*)
15918 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15919 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15920 else
15921 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15922 fi
15923 if test "$with_gnu_ld" = no; then
15924 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15925 hardcode_libdir_separator_F77=:
15926
15927 hardcode_direct_F77=yes
15928 export_dynamic_flag_spec_F77='${wl}-E'
15929
15930 # hardcode_minus_L: Not really in the search PATH,
15931 # but as the default location of the library.
15932 hardcode_minus_L_F77=yes
15933 fi
15934 ;;
15935
15936 hpux11*)
1660015937 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1660115938 case $host_cpu in
16602 hppa*64*|ia64*)
15939 hppa*64*)
1660315940 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15941 ;;
15942 ia64*)
15943 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1660415944 ;;
1660515945 *)
1660615946 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1660815948 esac
1660915949 else
1661015950 case $host_cpu in
16611 hppa*64*|ia64*)
16612 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15951 hppa*64*)
15952 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15953 ;;
15954 ia64*)
15955 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1661315956 ;;
1661415957 *)
16615 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15958 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1661615959 ;;
1661715960 esac
1661815961 fi
1661915962 if test "$with_gnu_ld" = no; then
15963 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15964 hardcode_libdir_separator_F77=:
15965
1662015966 case $host_cpu in
16621 hppa*64*)
16622 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15967 hppa*64*|ia64*)
1662315968 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16624 hardcode_libdir_separator_F77=:
1662515969 hardcode_direct_F77=no
1662615970 hardcode_shlibpath_var_F77=no
1662715971 ;;
16628 ia64*)
16629 hardcode_libdir_flag_spec_F77='-L$libdir'
16630 hardcode_direct_F77=no
16631 hardcode_shlibpath_var_F77=no
16632
16633 # hardcode_minus_L: Not really in the search PATH,
16634 # but as the default location of the library.
16635 hardcode_minus_L_F77=yes
16636 ;;
1663715972 *)
16638 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16639 hardcode_libdir_separator_F77=:
1664015973 hardcode_direct_F77=yes
1664115974 export_dynamic_flag_spec_F77='${wl}-E'
1664215975
1673616069 hardcode_libdir_flag_spec_F77='-rpath $libdir'
1673716070 fi
1673816071 hardcode_libdir_separator_F77=:
16739 ;;
16740
16741 sco3.2v5*)
16742 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16743 hardcode_shlibpath_var_F77=no
16744 export_dynamic_flag_spec_F77='${wl}-Bexport'
16745 runpath_var=LD_RUN_PATH
16746 hardcode_runpath_var=yes
1674716072 ;;
1674816073
1674916074 solaris*)
1683116156 fi
1683216157 ;;
1683316158
16834 sysv4.2uw2*)
16835 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16836 hardcode_direct_F77=yes
16837 hardcode_minus_L_F77=no
16838 hardcode_shlibpath_var_F77=no
16839 hardcode_runpath_var=yes
16840 runpath_var=LD_RUN_PATH
16841 ;;
16842
16843 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16844 no_undefined_flag_F77='${wl}-z ${wl}text'
16845 if test "$GCC" = yes; then
16846 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16847 else
16848 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16849 fi
16850 runpath_var='LD_RUN_PATH'
16851 hardcode_shlibpath_var_F77=no
16852 ;;
16853
16854 sysv5*)
16855 no_undefined_flag_F77=' -z text'
16856 # $CC -shared without GNU ld will not create a library from C++
16857 # object files and a static libstdc++, better avoid it by now
16858 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16859 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16860 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16861 hardcode_libdir_flag_spec_F77=
16159 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16160 no_undefined_flag_F77='${wl}-z,text'
16161 archive_cmds_need_lc_F77=no
1686216162 hardcode_shlibpath_var_F77=no
1686316163 runpath_var='LD_RUN_PATH'
16164
16165 if test "$GCC" = yes; then
16166 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16167 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16168 else
16169 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16170 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16171 fi
16172 ;;
16173
16174 sysv5* | sco3.2v5* | sco5v6*)
16175 # Note: We can NOT use -z defs as we might desire, because we do not
16176 # link with -lc, and that would cause any symbols used from libc to
16177 # always be unresolved, which means just about no library would
16178 # ever link correctly. If we're not using GNU ld we use -z text
16179 # though, which does catch some bad symbols but isn't as heavy-handed
16180 # as -z defs.
16181 no_undefined_flag_F77='${wl}-z,text'
16182 allow_undefined_flag_F77='${wl}-z,nodefs'
16183 archive_cmds_need_lc_F77=no
16184 hardcode_shlibpath_var_F77=no
16185 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16186 hardcode_libdir_separator_F77=':'
16187 link_all_deplibs_F77=yes
16188 export_dynamic_flag_spec_F77='${wl}-Bexport'
16189 runpath_var='LD_RUN_PATH'
16190
16191 if test "$GCC" = yes; then
16192 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16193 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16194 else
16195 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16196 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16197 fi
1686416198 ;;
1686516199
1686616200 uts4*)
1687816212 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
1687916213 echo "${ECHO_T}$ld_shlibs_F77" >&6
1688016214 test "$ld_shlibs_F77" = no && can_build_shared=no
16881
16882 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16883 if test "$GCC" = yes; then
16884 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16885 fi
1688616215
1688716216 #
1688816217 # Do we need to explicitly link libc?
1691616245 libobjs=conftest.$ac_objext
1691716246 deplibs=
1691816247 wl=$lt_prog_compiler_wl_F77
16248 pic_flag=$lt_prog_compiler_pic_F77
1691916249 compiler_flags=-v
1692016250 linker_flags=-v
1692116251 verstring=
1723416564 shlibpath_overrides_runpath=yes
1723516565 hardcode_into_libs=yes
1723616566 ;;
17237 *) # from 3.2 on
16567 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16568 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1723816569 shlibpath_overrides_runpath=no
16570 hardcode_into_libs=yes
16571 ;;
16572 freebsd*) # from 4.6 on
16573 shlibpath_overrides_runpath=yes
1723916574 hardcode_into_libs=yes
1724016575 ;;
1724116576 esac
1729716632 postinstall_cmds='chmod 555 $lib'
1729816633 ;;
1729916634
16635 interix3*)
16636 version_type=linux
16637 need_lib_prefix=no
16638 need_version=no
16639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16640 soname_spec='${libname}${release}${shared_ext}$major'
16641 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16642 shlibpath_var=LD_LIBRARY_PATH
16643 shlibpath_overrides_runpath=no
16644 hardcode_into_libs=yes
16645 ;;
16646
1730016647 irix5* | irix6* | nonstopux*)
1730116648 case $host_os in
1730216649 nonstopux*) version_type=nonstopux ;;
1736016707 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1736116708 fi
1736216709
17363 case $host_cpu:$lt_cv_cc_64bit_output in
17364 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
17365 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
17366 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
17367 ;;
17368 esac
17369
1737016710 # We used to test for /lib/ld.so.1 and disable shared libraries on
1737116711 # powerpc, because MkLinux only supported shared libraries with the
1737216712 # GNU dynamic linker. Since this was broken with cross compilers,
1737416714 # people can always --disable-shared, the test was removed, and we
1737516715 # assume the GNU/Linux dynamic linker is in use.
1737616716 dynamic_linker='GNU/Linux ld.so'
17377
17378 # Find out which ABI we are using (multilib Linux x86_64 hack).
17379 libsuff=
17380 case "$host_cpu" in
17381 x86_64*)
17382 echo '#line 17383 "configure"' > conftest.$ac_ext
17383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17384 (eval $ac_compile) 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; then
17388 case `/usr/bin/file conftest.$ac_objext` in
17389 *64-bit*)
17390 libsuff=64
17391 ;;
17392 esac
17393 fi
17394 rm -rf conftest*
17395 ;;
17396 *)
17397 ;;
17398 esac
17399 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
17400 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1740116717 ;;
1740216718
1740316719 knetbsd*-gnu)
1744916765
1745016766 openbsd*)
1745116767 version_type=sunos
16768 sys_lib_dlsearch_path_spec="/usr/lib"
1745216769 need_lib_prefix=no
1745316770 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1745416771 case $host_os in
1749216809 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1749316810 ;;
1749416811
17495 sco3.2v5*)
17496 version_type=osf
17497 soname_spec='${libname}${release}${shared_ext}$major'
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17499 shlibpath_var=LD_LIBRARY_PATH
17500 ;;
17501
1750216812 solaris*)
1750316813 version_type=linux
1750416814 need_lib_prefix=no
1752416834 need_version=yes
1752516835 ;;
1752616836
17527 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16837 sysv4 | sysv4.3*)
1752816838 version_type=linux
1752916839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1753016840 soname_spec='${libname}${release}${shared_ext}$major'
1755716867 fi
1755816868 ;;
1755916869
16870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16871 version_type=freebsd-elf
16872 need_lib_prefix=no
16873 need_version=no
16874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16875 soname_spec='${libname}${release}${shared_ext}$major'
16876 shlibpath_var=LD_LIBRARY_PATH
16877 hardcode_into_libs=yes
16878 if test "$with_gnu_ld" = yes; then
16879 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16880 shlibpath_overrides_runpath=no
16881 else
16882 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16883 shlibpath_overrides_runpath=yes
16884 case $host_os in
16885 sco3.2v5*)
16886 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16887 ;;
16888 esac
16889 fi
16890 sys_lib_dlsearch_path_spec='/usr/lib'
16891 ;;
16892
1756016893 uts4*)
1756116894 version_type=linux
1756216895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1757116904 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
1757216905 echo "${ECHO_T}$dynamic_linker" >&6
1757316906 test "$dynamic_linker" = no && can_build_shared=no
16907
16908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16909 if test "$GCC" = yes; then
16910 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16911 fi
1757416912
1757516913 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
1757616914 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1760916947 enable_fast_install=needless
1761016948 fi
1761116949
17612 striplib=
17613 old_striplib=
17614 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17615 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17616 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17617 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17618 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17619 echo "$as_me:$LINENO: result: yes" >&5
17620 echo "${ECHO_T}yes" >&6
17621 else
17622 # FIXME - insert some real tests, host_os isn't really good enough
17623 case $host_os in
17624 darwin*)
17625 if test -n "$STRIP" ; then
17626 striplib="$STRIP -x"
17627 echo "$as_me:$LINENO: result: yes" >&5
17628 echo "${ECHO_T}yes" >&6
17629 else
17630 echo "$as_me:$LINENO: result: no" >&5
17631 echo "${ECHO_T}no" >&6
17632 fi
17633 ;;
17634 *)
17635 echo "$as_me:$LINENO: result: no" >&5
17636 echo "${ECHO_T}no" >&6
17637 ;;
17638 esac
17639 fi
17640
17641
1764216950
1764316951 # The else clause should only fire when bootstrapping the
1764416952 # libtool distribution, otherwise you forgot to ship ltmain.sh
1765316961 # Now quote all the things that may contain metacharacters while being
1765416962 # careful not to overquote the AC_SUBSTed values. We take copies of the
1765516963 # variables and quote the copies for generation of the libtool script.
17656 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16964 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1765716965 SED SHELL STRIP \
1765816966 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1765916967 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1777117079 # A C compiler.
1777217080 LTCC=$lt_LTCC
1777317081
17082 # LTCC compiler flags.
17083 LTCFLAGS=$lt_LTCFLAGS
17084
1777417085 # A language-specific compiler.
1777517086 CC=$lt_compiler_F77
1777617087
1808117392 # If no C compiler was specified, use CC.
1808217393 LTCC=${LTCC-"$CC"}
1808317394
17395 # If no C compiler flags were specified, use CFLAGS.
17396 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17397
1808417398 # Allow CC to be a program name with arguments.
1808517399 compiler=$CC
1808617400
1808817402 # save warnings/boilerplate of simple test code
1808917403 ac_outfile=conftest.$ac_objext
1809017404 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18091 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17405 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1809217406 _lt_compiler_boilerplate=`cat conftest.err`
1809317407 $rm conftest*
1809417408
1809517409 ac_outfile=conftest.$ac_objext
1809617410 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18097 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17411 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1809817412 _lt_linker_boilerplate=`cat conftest.err`
1809917413 $rm conftest*
1810017414
1814517459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1814617460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1814717461 -e 's:$: $lt_compiler_flag:'`
18148 (eval echo "\"\$as_me:18149: $lt_compile\"" >&5)
17462 (eval echo "\"\$as_me:17463: $lt_compile\"" >&5)
1814917463 (eval "$lt_compile" 2>conftest.err)
1815017464 ac_status=$?
1815117465 cat conftest.err >&5
18152 echo "$as_me:18153: \$? = $ac_status" >&5
17466 echo "$as_me:17467: \$? = $ac_status" >&5
1815317467 if (exit $ac_status) && test -s "$ac_outfile"; then
1815417468 # The compiler can only warn and ignore the option if not recognized
1815517469 # So say no if there are warnings other than the usual output.
18156 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18157 $SED '/^$/d' conftest.err >conftest.er2
18158 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1815917473 lt_cv_prog_compiler_rtti_exceptions=yes
1816017474 fi
1816117475 fi
1821417528 # PIC is the default on this platform
1821517529 # Common symbols not allowed in MH_DYLIB files
1821617530 lt_prog_compiler_pic_GCJ='-fno-common'
17531 ;;
17532
17533 interix3*)
17534 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17535 # Instead, we relocate shared libraries at runtime.
1821717536 ;;
1821817537
1821917538 msdosdjgpp*)
1833017649 lt_prog_compiler_static_GCJ='-non_shared'
1833117650 ;;
1833217651
18333 sco3.2v5*)
18334 lt_prog_compiler_pic_GCJ='-Kpic'
18335 lt_prog_compiler_static_GCJ='-dn'
18336 ;;
18337
1833817652 solaris*)
1833917653 lt_prog_compiler_pic_GCJ='-KPIC'
1834017654 lt_prog_compiler_static_GCJ='-Bstatic'
1835217666 lt_prog_compiler_static_GCJ='-Bstatic'
1835317667 ;;
1835417668
18355 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17669 sysv4 | sysv4.2uw2* | sysv4.3*)
1835617670 lt_prog_compiler_wl_GCJ='-Wl,'
1835717671 lt_prog_compiler_pic_GCJ='-KPIC'
1835817672 lt_prog_compiler_static_GCJ='-Bstatic'
1836317677 lt_prog_compiler_pic_GCJ='-Kconform_pic'
1836417678 lt_prog_compiler_static_GCJ='-Bstatic'
1836517679 fi
17680 ;;
17681
17682 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17683 lt_prog_compiler_wl_GCJ='-Wl,'
17684 lt_prog_compiler_pic_GCJ='-KPIC'
17685 lt_prog_compiler_static_GCJ='-Bstatic'
1836617686 ;;
1836717687
1836817688 unicos*)
1840717727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1840817728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1840917729 -e 's:$: $lt_compiler_flag:'`
18410 (eval echo "\"\$as_me:18411: $lt_compile\"" >&5)
17730 (eval echo "\"\$as_me:17731: $lt_compile\"" >&5)
1841117731 (eval "$lt_compile" 2>conftest.err)
1841217732 ac_status=$?
1841317733 cat conftest.err >&5
18414 echo "$as_me:18415: \$? = $ac_status" >&5
17734 echo "$as_me:17735: \$? = $ac_status" >&5
1841517735 if (exit $ac_status) && test -s "$ac_outfile"; then
1841617736 # The compiler can only warn and ignore the option if not recognized
1841717737 # So say no if there are warnings other than the usual output.
18418 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18419 $SED '/^$/d' conftest.err >conftest.er2
18420 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17738 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1842117741 lt_prog_compiler_pic_works_GCJ=yes
1842217742 fi
1842317743 fi
1844817768 ;;
1844917769 esac
1845017770
17771 #
17772 # Check to make sure the static flag actually works.
17773 #
17774 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17775 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17776 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17777 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17779 else
17780 lt_prog_compiler_static_works_GCJ=no
17781 save_LDFLAGS="$LDFLAGS"
17782 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17783 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17785 # The linker can only warn and ignore the option if not recognized
17786 # So say no if there are warnings
17787 if test -s conftest.err; then
17788 # Append any errors to the config.log.
17789 cat conftest.err 1>&5
17790 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17792 if diff conftest.exp conftest.er2 >/dev/null; then
17793 lt_prog_compiler_static_works_GCJ=yes
17794 fi
17795 else
17796 lt_prog_compiler_static_works_GCJ=yes
17797 fi
17798 fi
17799 $rm conftest*
17800 LDFLAGS="$save_LDFLAGS"
17801
17802 fi
17803 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17804 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17805
17806 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17807 :
17808 else
17809 lt_prog_compiler_static_GCJ=
17810 fi
17811
17812
1845117813 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
1845217814 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1845317815 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
1846917831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1847017832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1847117833 -e 's:$: $lt_compiler_flag:'`
18472 (eval echo "\"\$as_me:18473: $lt_compile\"" >&5)
17834 (eval echo "\"\$as_me:17835: $lt_compile\"" >&5)
1847317835 (eval "$lt_compile" 2>out/conftest.err)
1847417836 ac_status=$?
1847517837 cat out/conftest.err >&5
18476 echo "$as_me:18477: \$? = $ac_status" >&5
17838 echo "$as_me:17839: \$? = $ac_status" >&5
1847717839 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1847817840 then
1847917841 # The compiler can only warn and ignore the option if not recognized
1848017842 # So say no if there are warnings
18481 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18482 $SED '/^$/d' out/conftest.err >out/conftest.er2
18483 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17843 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17844 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17845 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1848417846 lt_cv_prog_compiler_c_o_GCJ=yes
1848517847 fi
1848617848 fi
1858017942 with_gnu_ld=no
1858117943 fi
1858217944 ;;
17945 interix*)
17946 # we just hope/assume this is gcc and not c89 (= MSVC++)
17947 with_gnu_ld=yes
17948 ;;
1858317949 openbsd*)
1858417950 with_gnu_ld=no
1858517951 ;;
1866418030 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
1866518031
1866618032 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18667 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18033 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1866818034 # If the export-symbols file already is a .def file (1st line
1866918035 # is EXPORTS), use it as is; otherwise, prepend...
1867018036 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1867318039 echo EXPORTS > $output_objdir/$soname.def;
1867418040 cat $export_symbols >> $output_objdir/$soname.def;
1867518041 fi~
18676 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18042 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1867718043 else
1867818044 ld_shlibs_GCJ=no
1867918045 fi
18046 ;;
18047
18048 interix3*)
18049 hardcode_direct_GCJ=no
18050 hardcode_shlibpath_var_GCJ=no
18051 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18052 export_dynamic_flag_spec_GCJ='${wl}-E'
18053 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18054 # Instead, shared libraries are loaded at an image base (0x10000000 by
18055 # default) and relocated if they conflict, which is a slow very memory
18056 # consuming and fragmenting process. To avoid this, we pick a random,
18057 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18058 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18059 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18060 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1868018061 ;;
1868118062
1868218063 linux*)
1872018101 fi
1872118102 ;;
1872218103
18723 solaris* | sysv5*)
18104 solaris*)
1872418105 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
1872518106 ld_shlibs_GCJ=no
1872618107 cat <<EOF 1>&2
1873918120 else
1874018121 ld_shlibs_GCJ=no
1874118122 fi
18123 ;;
18124
18125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18126 case `$LD -v 2>&1` in
18127 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18128 ld_shlibs_GCJ=no
18129 cat <<_LT_EOF 1>&2
18130
18131 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18132 *** reliably create shared libraries on SCO systems. Therefore, libtool
18133 *** is disabling shared libraries support. We urge you to upgrade GNU
18134 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18135 *** your PATH or compiler configuration so that the native linker is
18136 *** used, and then restart.
18137
18138 _LT_EOF
18139 ;;
18140 *)
18141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18142 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18143 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18144 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18145 else
18146 ld_shlibs_GCJ=no
18147 fi
18148 ;;
18149 esac
1874218150 ;;
1874318151
1874418152 sunos4*)
1877418182 # Note: this linker hardcodes the directories in LIBPATH if there
1877518183 # are no directories specified by -L.
1877618184 hardcode_minus_L_GCJ=yes
18777 if test "$GCC" = yes && test -z "$link_static_flag"; then
18185 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1877818186 # Neither direct hardcoding nor static linking is supported with a
1877918187 # broken collect2.
1878018188 hardcode_direct_GCJ=unsupported
1880818216 break
1880918217 fi
1881018218 done
18219 ;;
1881118220 esac
1881218221
1881318222 exp_sym_flag='-bexport'
1884518254 hardcode_libdir_flag_spec_GCJ='-L$libdir'
1884618255 hardcode_libdir_separator_GCJ=
1884718256 fi
18257 ;;
1884818258 esac
1884918259 shared_flag='-shared'
1885018260 if test "$aix_use_runtimelinking" = yes; then
1885718267 # chokes on -Wl,-G. The following line is correct:
1885818268 shared_flag='-G'
1885918269 else
18860 if test "$aix_use_runtimelinking" = yes; then
18270 if test "$aix_use_runtimelinking" = yes; then
1886118271 shared_flag='${wl}-G'
1886218272 else
1886318273 shared_flag='${wl}-bM:SRE'
18864 fi
18274 fi
1886518275 fi
1886618276 fi
1886718277
1892618336 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1892718337
1892818338 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18929 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"
18339 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1893018340 else
1893118341 if test "$host_cpu" = ia64; then
1893218342 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
1893318343 allow_undefined_flag_GCJ="-z nodefs"
18934 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"
18344 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
1893518345 else
1893618346 # Determine the default libpath from the value encoded in an empty executable.
1893718347 cat >conftest.$ac_ext <<_ACEOF
1899118401 # -berok will link without error, but may produce a broken library.
1899218402 no_undefined_flag_GCJ=' ${wl}-bernotok'
1899318403 allow_undefined_flag_GCJ=' ${wl}-berok'
18994 # -bexpall does not export symbols beginning with underscore (_)
18995 always_export_symbols_GCJ=yes
1899618404 # Exported symbols can be pulled into shared objects from archives
18997 whole_archive_flag_spec_GCJ=' '
18405 whole_archive_flag_spec_GCJ='$convenience'
1899818406 archive_cmds_need_lc_GCJ=yes
1899918407 # This is similar to how AIX traditionally builds its shared libraries.
19000 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'
18408 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1900118409 fi
1900218410 fi
1900318411 ;;
1913818546 export_dynamic_flag_spec_GCJ='${wl}-E'
1913918547 ;;
1914018548
19141 hpux10* | hpux11*)
18549 hpux10*)
18550 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18551 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18552 else
18553 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18554 fi
18555 if test "$with_gnu_ld" = no; then
18556 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18557 hardcode_libdir_separator_GCJ=:
18558
18559 hardcode_direct_GCJ=yes
18560 export_dynamic_flag_spec_GCJ='${wl}-E'
18561
18562 # hardcode_minus_L: Not really in the search PATH,
18563 # but as the default location of the library.
18564 hardcode_minus_L_GCJ=yes
18565 fi
18566 ;;
18567
18568 hpux11*)
1914218569 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1914318570 case $host_cpu in
19144 hppa*64*|ia64*)
18571 hppa*64*)
1914518572 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18573 ;;
18574 ia64*)
18575 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1914618576 ;;
1914718577 *)
1914818578 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1915018580 esac
1915118581 else
1915218582 case $host_cpu in
19153 hppa*64*|ia64*)
19154 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18583 hppa*64*)
18584 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18585 ;;
18586 ia64*)
18587 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1915518588 ;;
1915618589 *)
19157 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18590 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1915818591 ;;
1915918592 esac
1916018593 fi
1916118594 if test "$with_gnu_ld" = no; then
18595 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18596 hardcode_libdir_separator_GCJ=:
18597
1916218598 case $host_cpu in
19163 hppa*64*)
19164 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18599 hppa*64*|ia64*)
1916518600 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19166 hardcode_libdir_separator_GCJ=:
1916718601 hardcode_direct_GCJ=no
1916818602 hardcode_shlibpath_var_GCJ=no
1916918603 ;;
19170 ia64*)
19171 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19172 hardcode_direct_GCJ=no
19173 hardcode_shlibpath_var_GCJ=no
19174
19175 # hardcode_minus_L: Not really in the search PATH,
19176 # but as the default location of the library.
19177 hardcode_minus_L_GCJ=yes
19178 ;;
1917918604 *)
19180 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19181 hardcode_libdir_separator_GCJ=:
1918218605 hardcode_direct_GCJ=yes
1918318606 export_dynamic_flag_spec_GCJ='${wl}-E'
1918418607
1927818701 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
1927918702 fi
1928018703 hardcode_libdir_separator_GCJ=:
19281 ;;
19282
19283 sco3.2v5*)
19284 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19285 hardcode_shlibpath_var_GCJ=no
19286 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19287 runpath_var=LD_RUN_PATH
19288 hardcode_runpath_var=yes
1928918704 ;;
1929018705
1929118706 solaris*)
1937318788 fi
1937418789 ;;
1937518790
19376 sysv4.2uw2*)
19377 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19378 hardcode_direct_GCJ=yes
19379 hardcode_minus_L_GCJ=no
19380 hardcode_shlibpath_var_GCJ=no
19381 hardcode_runpath_var=yes
19382 runpath_var=LD_RUN_PATH
19383 ;;
19384
19385 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19386 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19387 if test "$GCC" = yes; then
19388 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19389 else
19390 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19391 fi
19392 runpath_var='LD_RUN_PATH'
19393 hardcode_shlibpath_var_GCJ=no
19394 ;;
19395
19396 sysv5*)
19397 no_undefined_flag_GCJ=' -z text'
19398 # $CC -shared without GNU ld will not create a library from C++
19399 # object files and a static libstdc++, better avoid it by now
19400 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19401 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19402 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19403 hardcode_libdir_flag_spec_GCJ=
18791 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18792 no_undefined_flag_GCJ='${wl}-z,text'
18793 archive_cmds_need_lc_GCJ=no
1940418794 hardcode_shlibpath_var_GCJ=no
1940518795 runpath_var='LD_RUN_PATH'
18796
18797 if test "$GCC" = yes; then
18798 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18799 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18800 else
18801 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18802 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18803 fi
18804 ;;
18805
18806 sysv5* | sco3.2v5* | sco5v6*)
18807 # Note: We can NOT use -z defs as we might desire, because we do not
18808 # link with -lc, and that would cause any symbols used from libc to
18809 # always be unresolved, which means just about no library would
18810 # ever link correctly. If we're not using GNU ld we use -z text
18811 # though, which does catch some bad symbols but isn't as heavy-handed
18812 # as -z defs.
18813 no_undefined_flag_GCJ='${wl}-z,text'
18814 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18815 archive_cmds_need_lc_GCJ=no
18816 hardcode_shlibpath_var_GCJ=no
18817 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18818 hardcode_libdir_separator_GCJ=':'
18819 link_all_deplibs_GCJ=yes
18820 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18821 runpath_var='LD_RUN_PATH'
18822
18823 if test "$GCC" = yes; then
18824 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18825 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18826 else
18827 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18828 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18829 fi
1940618830 ;;
1940718831
1940818832 uts4*)
1942018844 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
1942118845 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
1942218846 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19423
19424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19425 if test "$GCC" = yes; then
19426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19427 fi
1942818847
1942918848 #
1943018849 # Do we need to explicitly link libc?
1945818877 libobjs=conftest.$ac_objext
1945918878 deplibs=
1946018879 wl=$lt_prog_compiler_wl_GCJ
18880 pic_flag=$lt_prog_compiler_pic_GCJ
1946118881 compiler_flags=-v
1946218882 linker_flags=-v
1946318883 verstring=
1977619196 shlibpath_overrides_runpath=yes
1977719197 hardcode_into_libs=yes
1977819198 ;;
19779 *) # from 3.2 on
19199 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19200 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1978019201 shlibpath_overrides_runpath=no
19202 hardcode_into_libs=yes
19203 ;;
19204 freebsd*) # from 4.6 on
19205 shlibpath_overrides_runpath=yes
1978119206 hardcode_into_libs=yes
1978219207 ;;
1978319208 esac
1983919264 postinstall_cmds='chmod 555 $lib'
1984019265 ;;
1984119266
19267 interix3*)
19268 version_type=linux
19269 need_lib_prefix=no
19270 need_version=no
19271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19272 soname_spec='${libname}${release}${shared_ext}$major'
19273 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19274 shlibpath_var=LD_LIBRARY_PATH
19275 shlibpath_overrides_runpath=no
19276 hardcode_into_libs=yes
19277 ;;
19278
1984219279 irix5* | irix6* | nonstopux*)
1984319280 case $host_os in
1984419281 nonstopux*) version_type=nonstopux ;;
1990219339 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1990319340 fi
1990419341
19905 case $host_cpu:$lt_cv_cc_64bit_output in
19906 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
19907 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
19908 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
19909 ;;
19910 esac
19911
1991219342 # We used to test for /lib/ld.so.1 and disable shared libraries on
1991319343 # powerpc, because MkLinux only supported shared libraries with the
1991419344 # GNU dynamic linker. Since this was broken with cross compilers,
1991619346 # people can always --disable-shared, the test was removed, and we
1991719347 # assume the GNU/Linux dynamic linker is in use.
1991819348 dynamic_linker='GNU/Linux ld.so'
19919
19920 # Find out which ABI we are using (multilib Linux x86_64 hack).
19921 libsuff=
19922 case "$host_cpu" in
19923 x86_64*)
19924 echo '#line 19925 "configure"' > conftest.$ac_ext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19926 (eval $ac_compile) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; then
19930 case `/usr/bin/file conftest.$ac_objext` in
19931 *64-bit*)
19932 libsuff=64
19933 ;;
19934 esac
19935 fi
19936 rm -rf conftest*
19937 ;;
19938 *)
19939 ;;
19940 esac
19941 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
19942 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1994319349 ;;
1994419350
1994519351 knetbsd*-gnu)
1999119397
1999219398 openbsd*)
1999319399 version_type=sunos
19400 sys_lib_dlsearch_path_spec="/usr/lib"
1999419401 need_lib_prefix=no
1999519402 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1999619403 case $host_os in
2003419441 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2003519442 ;;
2003619443
20037 sco3.2v5*)
20038 version_type=osf
20039 soname_spec='${libname}${release}${shared_ext}$major'
20040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20041 shlibpath_var=LD_LIBRARY_PATH
20042 ;;
20043
2004419444 solaris*)
2004519445 version_type=linux
2004619446 need_lib_prefix=no
2006619466 need_version=yes
2006719467 ;;
2006819468
20069 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19469 sysv4 | sysv4.3*)
2007019470 version_type=linux
2007119471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2007219472 soname_spec='${libname}${release}${shared_ext}$major'
2009919499 fi
2010019500 ;;
2010119501
19502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19503 version_type=freebsd-elf
19504 need_lib_prefix=no
19505 need_version=no
19506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19507 soname_spec='${libname}${release}${shared_ext}$major'
19508 shlibpath_var=LD_LIBRARY_PATH
19509 hardcode_into_libs=yes
19510 if test "$with_gnu_ld" = yes; then
19511 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19512 shlibpath_overrides_runpath=no
19513 else
19514 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19515 shlibpath_overrides_runpath=yes
19516 case $host_os in
19517 sco3.2v5*)
19518 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19519 ;;
19520 esac
19521 fi
19522 sys_lib_dlsearch_path_spec='/usr/lib'
19523 ;;
19524
2010219525 uts4*)
2010319526 version_type=linux
2010419527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2011319536 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
2011419537 echo "${ECHO_T}$dynamic_linker" >&6
2011519538 test "$dynamic_linker" = no && can_build_shared=no
19539
19540 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19541 if test "$GCC" = yes; then
19542 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19543 fi
2011619544
2011719545 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
2011819546 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
2015119579 enable_fast_install=needless
2015219580 fi
2015319581
20154 striplib=
20155 old_striplib=
20156 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20157 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20158 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20159 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20160 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20161 echo "$as_me:$LINENO: result: yes" >&5
20162 echo "${ECHO_T}yes" >&6
20163 else
20164 # FIXME - insert some real tests, host_os isn't really good enough
20165 case $host_os in
20166 darwin*)
20167 if test -n "$STRIP" ; then
20168 striplib="$STRIP -x"
20169 echo "$as_me:$LINENO: result: yes" >&5
20170 echo "${ECHO_T}yes" >&6
20171 else
20172 echo "$as_me:$LINENO: result: no" >&5
20173 echo "${ECHO_T}no" >&6
20174 fi
20175 ;;
20176 *)
20177 echo "$as_me:$LINENO: result: no" >&5
20178 echo "${ECHO_T}no" >&6
20179 ;;
20180 esac
20181 fi
20182
20183 if test "x$enable_dlopen" != xyes; then
20184 enable_dlopen=unknown
20185 enable_dlopen_self=unknown
20186 enable_dlopen_self_static=unknown
20187 else
20188 lt_cv_dlopen=no
20189 lt_cv_dlopen_libs=
20190
20191 case $host_os in
20192 beos*)
20193 lt_cv_dlopen="load_add_on"
20194 lt_cv_dlopen_libs=
20195 lt_cv_dlopen_self=yes
20196 ;;
20197
20198 mingw* | pw32*)
20199 lt_cv_dlopen="LoadLibrary"
20200 lt_cv_dlopen_libs=
20201 ;;
20202
20203 cygwin*)
20204 lt_cv_dlopen="dlopen"
20205 lt_cv_dlopen_libs=
20206 ;;
20207
20208 darwin*)
20209 # if libdl is installed we need to link against it
20210 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20211 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20212 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215 ac_check_lib_save_LIBS=$LIBS
20216 LIBS="-ldl $LIBS"
20217 cat >conftest.$ac_ext <<_ACEOF
20218 /* confdefs.h. */
20219 _ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20223
20224 /* Override any gcc2 internal prototype to avoid an error. */
20225 #ifdef __cplusplus
20226 extern "C"
20227 #endif
20228 /* We use char because int might match the return type of a gcc2
20229 builtin and then its argument prototype would still apply. */
20230 char dlopen ();
20231 int
20232 main ()
20233 {
20234 dlopen ();
20235 ;
20236 return 0;
20237 }
20238 _ACEOF
20239 rm -f conftest.$ac_objext conftest$ac_exeext
20240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20241 (eval $ac_link) 2>conftest.er1
20242 ac_status=$?
20243 grep -v '^ *+' conftest.er1 >conftest.err
20244 rm -f conftest.er1
20245 cat conftest.err >&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } &&
20248 { ac_try='test -z "$ac_cxx_werror_flag"
20249 || test ! -s conftest.err'
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; } &&
20255 { ac_try='test -s conftest$ac_exeext'
20256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; }; then
20261 ac_cv_lib_dl_dlopen=yes
20262 else
20263 echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20265
20266 ac_cv_lib_dl_dlopen=no
20267 fi
20268 rm -f conftest.err conftest.$ac_objext \
20269 conftest$ac_exeext conftest.$ac_ext
20270 LIBS=$ac_check_lib_save_LIBS
20271 fi
20272 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20273 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20274 if test $ac_cv_lib_dl_dlopen = yes; then
20275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20276 else
20277
20278 lt_cv_dlopen="dyld"
20279 lt_cv_dlopen_libs=
20280 lt_cv_dlopen_self=yes
20281
20282 fi
20283
20284 ;;
20285
20286 *)
20287 echo "$as_me:$LINENO: checking for shl_load" >&5
20288 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20289 if test "${ac_cv_func_shl_load+set}" = set; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20291 else
20292 cat >conftest.$ac_ext <<_ACEOF
20293 /* confdefs.h. */
20294 _ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20298 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20300 #define shl_load innocuous_shl_load
20301
20302 /* System header to define __stub macros and hopefully few prototypes,
20303 which can conflict with char shl_load (); below.
20304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20305 <limits.h> exists even on freestanding compilers. */
20306
20307 #ifdef __STDC__
20308 # include <limits.h>
20309 #else
20310 # include <assert.h>
20311 #endif
20312
20313 #undef shl_load
20314
20315 /* Override any gcc2 internal prototype to avoid an error. */
20316 #ifdef __cplusplus
20317 extern "C"
20318 {
20319 #endif
20320 /* We use char because int might match the return type of a gcc2
20321 builtin and then its argument prototype would still apply. */
20322 char shl_load ();
20323 /* The GNU C library defines this for functions which it implements
20324 to always fail with ENOSYS. Some functions are actually named
20325 something starting with __ and the normal name is an alias. */
20326 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20327 choke me
20328 #else
20329 char (*f) () = shl_load;
20330 #endif
20331 #ifdef __cplusplus
20332 }
20333 #endif
20334
20335 int
20336 main ()
20337 {
20338 return f != shl_load;
20339 ;
20340 return 0;
20341 }
20342 _ACEOF
20343 rm -f conftest.$ac_objext conftest$ac_exeext
20344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20345 (eval $ac_link) 2>conftest.er1
20346 ac_status=$?
20347 grep -v '^ *+' conftest.er1 >conftest.err
20348 rm -f conftest.er1
20349 cat conftest.err >&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } &&
20352 { ac_try='test -z "$ac_cxx_werror_flag"
20353 || test ! -s conftest.err'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20356 ac_status=$?
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; } &&
20359 { ac_try='test -s conftest$ac_exeext'
20360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361 (eval $ac_try) 2>&5
20362 ac_status=$?
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); }; }; then
20365 ac_cv_func_shl_load=yes
20366 else
20367 echo "$as_me: failed program was:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20369
20370 ac_cv_func_shl_load=no
20371 fi
20372 rm -f conftest.err conftest.$ac_objext \
20373 conftest$ac_exeext conftest.$ac_ext
20374 fi
20375 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20376 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20377 if test $ac_cv_func_shl_load = yes; then
20378 lt_cv_dlopen="shl_load"
20379 else
20380 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20381 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20382 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20384 else
20385 ac_check_lib_save_LIBS=$LIBS
20386 LIBS="-ldld $LIBS"
20387 cat >conftest.$ac_ext <<_ACEOF
20388 /* confdefs.h. */
20389 _ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20393
20394 /* Override any gcc2 internal prototype to avoid an error. */
20395 #ifdef __cplusplus
20396 extern "C"
20397 #endif
20398 /* We use char because int might match the return type of a gcc2
20399 builtin and then its argument prototype would still apply. */
20400 char shl_load ();
20401 int
20402 main ()
20403 {
20404 shl_load ();
20405 ;
20406 return 0;
20407 }
20408 _ACEOF
20409 rm -f conftest.$ac_objext conftest$ac_exeext
20410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20411 (eval $ac_link) 2>conftest.er1
20412 ac_status=$?
20413 grep -v '^ *+' conftest.er1 >conftest.err
20414 rm -f conftest.er1
20415 cat conftest.err >&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } &&
20418 { ac_try='test -z "$ac_cxx_werror_flag"
20419 || test ! -s conftest.err'
20420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421 (eval $ac_try) 2>&5
20422 ac_status=$?
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; } &&
20425 { ac_try='test -s conftest$ac_exeext'
20426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427 (eval $ac_try) 2>&5
20428 ac_status=$?
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }; }; then
20431 ac_cv_lib_dld_shl_load=yes
20432 else
20433 echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20435
20436 ac_cv_lib_dld_shl_load=no
20437 fi
20438 rm -f conftest.err conftest.$ac_objext \
20439 conftest$ac_exeext conftest.$ac_ext
20440 LIBS=$ac_check_lib_save_LIBS
20441 fi
20442 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20443 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20444 if test $ac_cv_lib_dld_shl_load = yes; then
20445 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20446 else
20447 echo "$as_me:$LINENO: checking for dlopen" >&5
20448 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20449 if test "${ac_cv_func_dlopen+set}" = set; then
20450 echo $ECHO_N "(cached) $ECHO_C" >&6
20451 else
20452 cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h. */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20458 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20460 #define dlopen innocuous_dlopen
20461
20462 /* System header to define __stub macros and hopefully few prototypes,
20463 which can conflict with char dlopen (); below.
20464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20465 <limits.h> exists even on freestanding compilers. */
20466
20467 #ifdef __STDC__
20468 # include <limits.h>
20469 #else
20470 # include <assert.h>
20471 #endif
20472
20473 #undef dlopen
20474
20475 /* Override any gcc2 internal prototype to avoid an error. */
20476 #ifdef __cplusplus
20477 extern "C"
20478 {
20479 #endif
20480 /* We use char because int might match the return type of a gcc2
20481 builtin and then its argument prototype would still apply. */
20482 char dlopen ();
20483 /* The GNU C library defines this for functions which it implements
20484 to always fail with ENOSYS. Some functions are actually named
20485 something starting with __ and the normal name is an alias. */
20486 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20487 choke me
20488 #else
20489 char (*f) () = dlopen;
20490 #endif
20491 #ifdef __cplusplus
20492 }
20493 #endif
20494
20495 int
20496 main ()
20497 {
20498 return f != dlopen;
20499 ;
20500 return 0;
20501 }
20502 _ACEOF
20503 rm -f conftest.$ac_objext conftest$ac_exeext
20504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20505 (eval $ac_link) 2>conftest.er1
20506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } &&
20512 { ac_try='test -z "$ac_cxx_werror_flag"
20513 || test ! -s conftest.err'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20516 ac_status=$?
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; } &&
20519 { ac_try='test -s conftest$ac_exeext'
20520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521 (eval $ac_try) 2>&5
20522 ac_status=$?
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; }; then
20525 ac_cv_func_dlopen=yes
20526 else
20527 echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20529
20530 ac_cv_func_dlopen=no
20531 fi
20532 rm -f conftest.err conftest.$ac_objext \
20533 conftest$ac_exeext conftest.$ac_ext
20534 fi
20535 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20536 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20537 if test $ac_cv_func_dlopen = yes; then
20538 lt_cv_dlopen="dlopen"
20539 else
20540 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20541 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20542 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20544 else
20545 ac_check_lib_save_LIBS=$LIBS
20546 LIBS="-ldl $LIBS"
20547 cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h. */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20553
20554 /* Override any gcc2 internal prototype to avoid an error. */
20555 #ifdef __cplusplus
20556 extern "C"
20557 #endif
20558 /* We use char because int might match the return type of a gcc2
20559 builtin and then its argument prototype would still apply. */
20560 char dlopen ();
20561 int
20562 main ()
20563 {
20564 dlopen ();
20565 ;
20566 return 0;
20567 }
20568 _ACEOF
20569 rm -f conftest.$ac_objext conftest$ac_exeext
20570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20571 (eval $ac_link) 2>conftest.er1
20572 ac_status=$?
20573 grep -v '^ *+' conftest.er1 >conftest.err
20574 rm -f conftest.er1
20575 cat conftest.err >&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); } &&
20578 { ac_try='test -z "$ac_cxx_werror_flag"
20579 || test ! -s conftest.err'
20580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20581 (eval $ac_try) 2>&5
20582 ac_status=$?
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; } &&
20585 { ac_try='test -s conftest$ac_exeext'
20586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587 (eval $ac_try) 2>&5
20588 ac_status=$?
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; }; then
20591 ac_cv_lib_dl_dlopen=yes
20592 else
20593 echo "$as_me: failed program was:" >&5
20594 sed 's/^/| /' conftest.$ac_ext >&5
20595
20596 ac_cv_lib_dl_dlopen=no
20597 fi
20598 rm -f conftest.err conftest.$ac_objext \
20599 conftest$ac_exeext conftest.$ac_ext
20600 LIBS=$ac_check_lib_save_LIBS
20601 fi
20602 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20603 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20604 if test $ac_cv_lib_dl_dlopen = yes; then
20605 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20606 else
20607 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20608 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20609 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612 ac_check_lib_save_LIBS=$LIBS
20613 LIBS="-lsvld $LIBS"
20614 cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h. */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20620
20621 /* Override any gcc2 internal prototype to avoid an error. */
20622 #ifdef __cplusplus
20623 extern "C"
20624 #endif
20625 /* We use char because int might match the return type of a gcc2
20626 builtin and then its argument prototype would still apply. */
20627 char dlopen ();
20628 int
20629 main ()
20630 {
20631 dlopen ();
20632 ;
20633 return 0;
20634 }
20635 _ACEOF
20636 rm -f conftest.$ac_objext conftest$ac_exeext
20637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20638 (eval $ac_link) 2>conftest.er1
20639 ac_status=$?
20640 grep -v '^ *+' conftest.er1 >conftest.err
20641 rm -f conftest.er1
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try='test -z "$ac_cxx_werror_flag"
20646 || test ! -s conftest.err'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try='test -s conftest$ac_exeext'
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_cv_lib_svld_dlopen=yes
20659 else
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20662
20663 ac_cv_lib_svld_dlopen=no
20664 fi
20665 rm -f conftest.err conftest.$ac_objext \
20666 conftest$ac_exeext conftest.$ac_ext
20667 LIBS=$ac_check_lib_save_LIBS
20668 fi
20669 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20670 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20671 if test $ac_cv_lib_svld_dlopen = yes; then
20672 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20673 else
20674 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20675 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20676 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20677 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 else
20679 ac_check_lib_save_LIBS=$LIBS
20680 LIBS="-ldld $LIBS"
20681 cat >conftest.$ac_ext <<_ACEOF
20682 /* confdefs.h. */
20683 _ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h. */
20687
20688 /* Override any gcc2 internal prototype to avoid an error. */
20689 #ifdef __cplusplus
20690 extern "C"
20691 #endif
20692 /* We use char because int might match the return type of a gcc2
20693 builtin and then its argument prototype would still apply. */
20694 char dld_link ();
20695 int
20696 main ()
20697 {
20698 dld_link ();
20699 ;
20700 return 0;
20701 }
20702 _ACEOF
20703 rm -f conftest.$ac_objext conftest$ac_exeext
20704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20705 (eval $ac_link) 2>conftest.er1
20706 ac_status=$?
20707 grep -v '^ *+' conftest.er1 >conftest.err
20708 rm -f conftest.er1
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } &&
20712 { ac_try='test -z "$ac_cxx_werror_flag"
20713 || test ! -s conftest.err'
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; } &&
20719 { ac_try='test -s conftest$ac_exeext'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20722 ac_status=$?
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 ac_cv_lib_dld_dld_link=yes
20726 else
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20729
20730 ac_cv_lib_dld_dld_link=no
20731 fi
20732 rm -f conftest.err conftest.$ac_objext \
20733 conftest$ac_exeext conftest.$ac_ext
20734 LIBS=$ac_check_lib_save_LIBS
20735 fi
20736 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20737 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20738 if test $ac_cv_lib_dld_dld_link = yes; then
20739 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20740 fi
20741
20742
20743 fi
20744
20745
20746 fi
20747
20748
20749 fi
20750
20751
20752 fi
20753
20754
20755 fi
20756
20757 ;;
20758 esac
20759
20760 if test "x$lt_cv_dlopen" != xno; then
20761 enable_dlopen=yes
20762 else
20763 enable_dlopen=no
20764 fi
20765
20766 case $lt_cv_dlopen in
20767 dlopen)
20768 save_CPPFLAGS="$CPPFLAGS"
20769 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20770
20771 save_LDFLAGS="$LDFLAGS"
20772 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20773
20774 save_LIBS="$LIBS"
20775 LIBS="$lt_cv_dlopen_libs $LIBS"
20776
20777 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20778 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20779 if test "${lt_cv_dlopen_self+set}" = set; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20781 else
20782 if test "$cross_compiling" = yes; then :
20783 lt_cv_dlopen_self=cross
20784 else
20785 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20786 lt_status=$lt_dlunknown
20787 cat > conftest.$ac_ext <<EOF
20788 #line 20789 "configure"
20789 #include "confdefs.h"
20790
20791 #if HAVE_DLFCN_H
20792 #include <dlfcn.h>
20793 #endif
20794
20795 #include <stdio.h>
20796
20797 #ifdef RTLD_GLOBAL
20798 # define LT_DLGLOBAL RTLD_GLOBAL
20799 #else
20800 # ifdef DL_GLOBAL
20801 # define LT_DLGLOBAL DL_GLOBAL
20802 # else
20803 # define LT_DLGLOBAL 0
20804 # endif
20805 #endif
20806
20807 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20808 find out it does not work in some platform. */
20809 #ifndef LT_DLLAZY_OR_NOW
20810 # ifdef RTLD_LAZY
20811 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20812 # else
20813 # ifdef DL_LAZY
20814 # define LT_DLLAZY_OR_NOW DL_LAZY
20815 # else
20816 # ifdef RTLD_NOW
20817 # define LT_DLLAZY_OR_NOW RTLD_NOW
20818 # else
20819 # ifdef DL_NOW
20820 # define LT_DLLAZY_OR_NOW DL_NOW
20821 # else
20822 # define LT_DLLAZY_OR_NOW 0
20823 # endif
20824 # endif
20825 # endif
20826 # endif
20827 #endif
20828
20829 #ifdef __cplusplus
20830 extern "C" void exit (int);
20831 #endif
20832
20833 void fnord() { int i=42;}
20834 int main ()
20835 {
20836 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20837 int status = $lt_dlunknown;
20838
20839 if (self)
20840 {
20841 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20842 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20843 /* dlclose (self); */
20844 }
20845
20846 exit (status);
20847 }
20848 EOF
20849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20850 (eval $ac_link) 2>&5
20851 ac_status=$?
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20854 (./conftest; exit; ) >&5 2>/dev/null
20855 lt_status=$?
20856 case x$lt_status in
20857 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20858 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20859 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20860 esac
20861 else :
20862 # compilation failed
20863 lt_cv_dlopen_self=no
20864 fi
20865 fi
20866 rm -fr conftest*
20867
20868
20869 fi
20870 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20871 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20872
20873 if test "x$lt_cv_dlopen_self" = xyes; then
20874 LDFLAGS="$LDFLAGS $link_static_flag"
20875 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20876 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20877 if test "${lt_cv_dlopen_self_static+set}" = set; then
20878 echo $ECHO_N "(cached) $ECHO_C" >&6
20879 else
20880 if test "$cross_compiling" = yes; then :
20881 lt_cv_dlopen_self_static=cross
20882 else
20883 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20884 lt_status=$lt_dlunknown
20885 cat > conftest.$ac_ext <<EOF
20886 #line 20887 "configure"
20887 #include "confdefs.h"
20888
20889 #if HAVE_DLFCN_H
20890 #include <dlfcn.h>
20891 #endif
20892
20893 #include <stdio.h>
20894
20895 #ifdef RTLD_GLOBAL
20896 # define LT_DLGLOBAL RTLD_GLOBAL
20897 #else
20898 # ifdef DL_GLOBAL
20899 # define LT_DLGLOBAL DL_GLOBAL
20900 # else
20901 # define LT_DLGLOBAL 0
20902 # endif
20903 #endif
20904
20905 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20906 find out it does not work in some platform. */
20907 #ifndef LT_DLLAZY_OR_NOW
20908 # ifdef RTLD_LAZY
20909 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20910 # else
20911 # ifdef DL_LAZY
20912 # define LT_DLLAZY_OR_NOW DL_LAZY
20913 # else
20914 # ifdef RTLD_NOW
20915 # define LT_DLLAZY_OR_NOW RTLD_NOW
20916 # else
20917 # ifdef DL_NOW
20918 # define LT_DLLAZY_OR_NOW DL_NOW
20919 # else
20920 # define LT_DLLAZY_OR_NOW 0
20921 # endif
20922 # endif
20923 # endif
20924 # endif
20925 #endif
20926
20927 #ifdef __cplusplus
20928 extern "C" void exit (int);
20929 #endif
20930
20931 void fnord() { int i=42;}
20932 int main ()
20933 {
20934 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20935 int status = $lt_dlunknown;
20936
20937 if (self)
20938 {
20939 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20940 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20941 /* dlclose (self); */
20942 }
20943
20944 exit (status);
20945 }
20946 EOF
20947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20948 (eval $ac_link) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20952 (./conftest; exit; ) >&5 2>/dev/null
20953 lt_status=$?
20954 case x$lt_status in
20955 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20956 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20957 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20958 esac
20959 else :
20960 # compilation failed
20961 lt_cv_dlopen_self_static=no
20962 fi
20963 fi
20964 rm -fr conftest*
20965
20966
20967 fi
20968 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20969 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20970 fi
20971
20972 CPPFLAGS="$save_CPPFLAGS"
20973 LDFLAGS="$save_LDFLAGS"
20974 LIBS="$save_LIBS"
20975 ;;
20976 esac
20977
20978 case $lt_cv_dlopen_self in
20979 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20980 *) enable_dlopen_self=unknown ;;
20981 esac
20982
20983 case $lt_cv_dlopen_self_static in
20984 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20985 *) enable_dlopen_self_static=unknown ;;
20986 esac
20987 fi
20988
2098919582
2099019583 # The else clause should only fire when bootstrapping the
2099119584 # libtool distribution, otherwise you forgot to ship ltmain.sh
2100019593 # Now quote all the things that may contain metacharacters while being
2100119594 # careful not to overquote the AC_SUBSTed values. We take copies of the
2100219595 # variables and quote the copies for generation of the libtool script.
21003 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19596 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
2100419597 SED SHELL STRIP \
2100519598 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
2100619599 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
2111819711 # A C compiler.
2111919712 LTCC=$lt_LTCC
2112019713
19714 # LTCC compiler flags.
19715 LTCFLAGS=$lt_LTCFLAGS
19716
2112119717 # A language-specific compiler.
2112219718 CC=$lt_compiler_GCJ
2112319719
2142720023 # If no C compiler was specified, use CC.
2142820024 LTCC=${LTCC-"$CC"}
2142920025
20026 # If no C compiler flags were specified, use CFLAGS.
20027 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20028
2143020029 # Allow CC to be a program name with arguments.
2143120030 compiler=$CC
2143220031
2143420033 # save warnings/boilerplate of simple test code
2143520034 ac_outfile=conftest.$ac_objext
2143620035 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21437 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2143820037 _lt_compiler_boilerplate=`cat conftest.err`
2143920038 $rm conftest*
2144020039
2144120040 ac_outfile=conftest.$ac_objext
2144220041 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21443 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2144420043 _lt_linker_boilerplate=`cat conftest.err`
2144520044 $rm conftest*
2144620045
2147520074 # Now quote all the things that may contain metacharacters while being
2147620075 # careful not to overquote the AC_SUBSTed values. We take copies of the
2147720076 # variables and quote the copies for generation of the libtool script.
21478 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20077 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
2147920078 SED SHELL STRIP \
2148020079 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
2148120080 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
2159320192 # A C compiler.
2159420193 LTCC=$lt_LTCC
2159520194
20195 # LTCC compiler flags.
20196 LTCFLAGS=$lt_LTCFLAGS
20197
2159620198 # A language-specific compiler.
2159720199 CC=$lt_compiler_RC
2159820200
2193520537
2193620538
2193720539
21938
21939 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21940 if test -n "$ac_tool_prefix"; then
21941 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21942 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20540 succeeded=no
20541
20542 if test -z "$PKG_CONFIG"; then
20543 # Extract the first word of "pkg-config", so it can be a program name with args.
20544 set dummy pkg-config; ac_word=$2
2194320545 echo "$as_me:$LINENO: checking for $ac_word" >&5
2194420546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2194520547 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2196420566 done
2196520567 done
2196620568
20569 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
2196720570 ;;
2196820571 esac
2196920572 fi
2197720580 echo "${ECHO_T}no" >&6
2197820581 fi
2197920582
21980 fi
21981 if test -z "$ac_cv_path_PKG_CONFIG"; then
21982 ac_pt_PKG_CONFIG=$PKG_CONFIG
21983 # Extract the first word of "pkg-config", so it can be a program name with args.
21984 set dummy pkg-config; ac_word=$2
21985 echo "$as_me:$LINENO: checking for $ac_word" >&5
21986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21987 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
21989 else
21990 case $ac_pt_PKG_CONFIG in
21991 [\\/]* | ?:[\\/]*)
21992 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21993 ;;
21994 *)
21995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21996 for as_dir in $PATH
21997 do
21998 IFS=$as_save_IFS
21999 test -z "$as_dir" && as_dir=.
22000 for ac_exec_ext in '' $ac_executable_extensions; do
22001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22002 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22004 break 2
2200520583 fi
22006 done
22007 done
22008
22009 ;;
22010 esac
22011 fi
22012 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22013
22014 if test -n "$ac_pt_PKG_CONFIG"; then
22015 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22016 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
22017 else
22018 echo "$as_me:$LINENO: result: no" >&5
22019 echo "${ECHO_T}no" >&6
22020 fi
22021
22022 PKG_CONFIG=$ac_pt_PKG_CONFIG
22023 else
22024 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22025 fi
22026
22027 fi
22028 if test -n "$PKG_CONFIG"; then
22029 _pkg_min_version=0.9.0
22030 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22031 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
22032 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22033 echo "$as_me:$LINENO: result: yes" >&5
20584
20585 if test "$PKG_CONFIG" = "no" ; then
20586 echo "*** The pkg-config script could not be found. Make sure it is"
20587 echo "*** in your path, or set the PKG_CONFIG environment variable"
20588 echo "*** to the full path to pkg-config."
20589 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20590 else
20591 PKG_CONFIG_MIN_VERSION=0.9.0
20592 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20593 echo "$as_me:$LINENO: checking for gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0" >&5
20594 echo $ECHO_N "checking for gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0... $ECHO_C" >&6
20595
20596 if $PKG_CONFIG --exists "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0" ; then
20597 echo "$as_me:$LINENO: result: yes" >&5
2203420598 echo "${ECHO_T}yes" >&6
22035 else
22036 echo "$as_me:$LINENO: result: no" >&5
22037 echo "${ECHO_T}no" >&6
22038 PKG_CONFIG=""
22039 fi
22040
22041 fi
22042
22043 pkg_failed=no
22044 echo "$as_me:$LINENO: checking for GTKMM" >&5
22045 echo $ECHO_N "checking for GTKMM... $ECHO_C" >&6
22046
22047 if test -n "$PKG_CONFIG"; then
22048 if test -n "$PKG_CONFIG" && \
22049 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0\"") >&5
22050 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0") 2>&5
22051 ac_status=$?
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; then
22054 pkg_cv_GTKMM_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0" 2>/dev/null`
22055 else
22056 pkg_failed=yes
22057 fi
22058 else
22059 pkg_failed=untried
22060 fi
22061 if test -n "$PKG_CONFIG"; then
22062 if test -n "$PKG_CONFIG" && \
22063 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0\"") >&5
22064 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0") 2>&5
22065 ac_status=$?
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; then
22068 pkg_cv_GTKMM_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0" 2>/dev/null`
22069 else
22070 pkg_failed=yes
22071 fi
22072 else
22073 pkg_failed=untried
22074 fi
22075
22076 if test $pkg_failed = yes; then
22077 GTKMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0"`
22078 # Put the nasty error message in config.log where it belongs
22079 echo "$GTKMM_PKG_ERRORS" 1>&5
22080
22081 { { echo "$as_me:$LINENO: error: Package requirements (gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0) were not met.
22082 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22083 installed software in a non-standard prefix.
22084
22085 Alternatively you may set the GTKMM_CFLAGS and GTKMM_LIBS environment variables
22086 to avoid the need to call pkg-config. See the pkg-config man page for
22087 more details." >&5
22088 echo "$as_me: error: Package requirements (gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0) were not met.
22089 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22090 installed software in a non-standard prefix.
22091
22092 Alternatively you may set the GTKMM_CFLAGS and GTKMM_LIBS environment variables
22093 to avoid the need to call pkg-config. See the pkg-config man page for
22094 more details." >&2;}
20599 succeeded=yes
20600
20601 echo "$as_me:$LINENO: checking GTKMM_CFLAGS" >&5
20602 echo $ECHO_N "checking GTKMM_CFLAGS... $ECHO_C" >&6
20603 GTKMM_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0"`
20604 echo "$as_me:$LINENO: result: $GTKMM_CFLAGS" >&5
20605 echo "${ECHO_T}$GTKMM_CFLAGS" >&6
20606
20607 echo "$as_me:$LINENO: checking GTKMM_LIBS" >&5
20608 echo $ECHO_N "checking GTKMM_LIBS... $ECHO_C" >&6
20609 GTKMM_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0"`
20610 echo "$as_me:$LINENO: result: $GTKMM_LIBS" >&5
20611 echo "${ECHO_T}$GTKMM_LIBS" >&6
20612 else
20613 GTKMM_CFLAGS=""
20614 GTKMM_LIBS=""
20615 ## If we have a custom action on failure, don't print errors, but
20616 ## do set a variable so people can do so.
20617 GTKMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0"`
20618 echo $GTKMM_PKG_ERRORS
20619 fi
20620
20621
20622
20623 else
20624 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20625 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20626 fi
20627 fi
20628
20629 if test $succeeded = yes; then
20630 :
20631 else
20632 { { echo "$as_me:$LINENO: error: Library requirements (gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20633 echo "$as_me: error: Library requirements (gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
2209520634 { (exit 1); exit 1; }; }
22096 elif test $pkg_failed = untried; then
22097 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22098 is in your PATH or set the PKG_CONFIG environment variable to the full
22099 path to pkg-config.
22100
22101 Alternatively you may set the GTKMM_CFLAGS and GTKMM_LIBS environment variables
22102 to avoid the need to call pkg-config. See the pkg-config man page for
22103 more details.
22104
22105 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22106 See \`config.log' for more details." >&5
22107 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22108 is in your PATH or set the PKG_CONFIG environment variable to the full
22109 path to pkg-config.
22110
22111 Alternatively you may set the GTKMM_CFLAGS and GTKMM_LIBS environment variables
22112 to avoid the need to call pkg-config. See the pkg-config man page for
22113 more details.
22114
22115 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22116 See \`config.log' for more details." >&2;}
22117 { (exit 1); exit 1; }; }
22118 else
22119 GTKMM_CFLAGS=$pkg_cv_GTKMM_CFLAGS
22120 GTKMM_LIBS=$pkg_cv_GTKMM_LIBS
22121 echo "$as_me:$LINENO: result: yes" >&5
22122 echo "${ECHO_T}yes" >&6
22123 :
22124 fi
20635 fi
20636
2212520637
2212620638 echo "$as_me:$LINENO: checking for nautilus extensions directory" >&5
2212720639 echo $ECHO_N "checking for nautilus extensions directory... $ECHO_C" >&6
2326321775 } >&5
2326421776 cat >&5 <<_CSEOF
2326521777
23266 This file was extended by eiciel $as_me 0.9, which was
21778 This file was extended by eiciel $as_me 0.9.1, which was
2326721779 generated by GNU Autoconf 2.59. Invocation command line was
2326821780
2326921781 CONFIG_FILES = $CONFIG_FILES
2332621838
2332721839 cat >>$CONFIG_STATUS <<_ACEOF
2332821840 ac_cs_version="\\
23329 eiciel config.status 0.9
21841 eiciel config.status 0.9.1
2333021842 configured by $0, generated by GNU Autoconf 2.59,
2333121843 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2333221844
2342621938 #
2342721939
2342821940 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23429 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21941 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
2343021942 # from automake.
2343121943 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
2343221944 # Capture the value of LINGUAS because we need it to compute CATALOGS.
2359322105 s,@CCDEPMODE@,$CCDEPMODE,;t t
2359422106 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
2359522107 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23596 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
2359722108 s,@LIBICONV@,$LIBICONV,;t t
2359822109 s,@LTLIBICONV@,$LTLIBICONV,;t t
2359922110 s,@INTLLIBS@,$INTLLIBS,;t t
2362022131 s,@ac_ct_F77@,$ac_ct_F77,;t t
2362122132 s,@LIBTOOL@,$LIBTOOL,;t t
2362222133 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23623 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
2362422134 s,@GTKMM_CFLAGS@,$GTKMM_CFLAGS,;t t
2362522135 s,@GTKMM_LIBS@,$GTKMM_LIBS,;t t
2362622136 s,@NAUTILUS_EXTENSIONS_DIR@,$NAUTILUS_EXTENSIONS_DIR,;t t
2424622756 /*) top_srcdir="$ac_given_srcdir" ;;
2424722757 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
2424822758 esac
24249 # Treat a directory as a PO directory if and only if it has a
24250 # POTFILES.in file. This allows packages to have multiple PO
24251 # directories under different names or in different locations.
2425222759 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
2425322760 rm -f "$ac_dir/POTFILES"
2425422761 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
2425522762 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
2425622763 POMAKEFILEDEPS="POTFILES.in"
24257 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22764 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
2425822765 # on $ac_dir but don't depend on user-specified configuration
2425922766 # parameters.
2426022767 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
2426222769 if test -n "$OBSOLETE_ALL_LINGUAS"; then
2426322770 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
2426422771 fi
24265 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22772 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
2426622773 # Hide the ALL_LINGUAS assigment from automake.
2426722774 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
2426822775 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
2427022777 # The set of available languages was given in configure.in.
2427122778 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
2427222779 fi
24273 # Compute POFILES
24274 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24275 # Compute UPDATEPOFILES
24276 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24277 # Compute DUMMYPOFILES
24278 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24279 # Compute GMOFILES
24280 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
2428122780 case "$ac_given_srcdir" in
2428222781 .) srcdirpre= ;;
2428322782 *) srcdirpre='$(srcdir)/' ;;
2428422783 esac
2428522784 POFILES=
22785 GMOFILES=
2428622786 UPDATEPOFILES=
2428722787 DUMMYPOFILES=
24288 GMOFILES=
2428922788 for lang in $ALL_LINGUAS; do
2429022789 POFILES="$POFILES $srcdirpre$lang.po"
22790 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
2429122791 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
2429222792 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24293 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
2429422793 done
2429522794 # CATALOGS depends on both $ac_dir and the user's LINGUAS
2429622795 # environment variable.
2432522824 done
2432622825 fi
2432722826 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24328 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22827 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
2432922828 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
2433022829 if test -f "$f"; then
2433122830 case "$f" in
00 dnl Establim el nom del paquet, la versió i l'email de contacte
1 AC_INIT(eiciel, 0.9, rofi@ya.com)
1 AC_INIT(eiciel, 0.9.1, rofi@ya.com)
22
33 dnl On estem ?
44 AC_CANONICAL_BUILD
7474 INSTALL_SCRIPT = @INSTALL_SCRIPT@
7575 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
7676 INTLLIBS = @INTLLIBS@
77 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
7877 LDFLAGS = @LDFLAGS@
7978 LIBICONV = @LIBICONV@
8079 LIBINTL = @LIBINTL@
113112 ac_ct_F77 = @ac_ct_F77@
114113 ac_ct_RANLIB = @ac_ct_RANLIB@
115114 ac_ct_STRIP = @ac_ct_STRIP@
116 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
117115 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
118116 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
119117 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
11 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
22 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
33 <!ENTITY eiciel "Eiciel">
4 <!ENTITY version "0.9">
4 <!ENTITY version "0.9.1">
55 ]>
66 <?yelp:chunk-depth 2?>
77 <article id="index" lang="en">
7474 INSTALL_SCRIPT = @INSTALL_SCRIPT@
7575 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
7676 INTLLIBS = @INTLLIBS@
77 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
7877 LDFLAGS = @LDFLAGS@
7978 LIBICONV = @LIBICONV@
8079 LIBINTL = @LIBINTL@
113112 ac_ct_F77 = @ac_ct_F77@
114113 ac_ct_RANLIB = @ac_ct_RANLIB@
115114 ac_ct_STRIP = @ac_ct_STRIP@
116 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
117115 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
118116 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
119117 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
7474 INSTALL_SCRIPT = @INSTALL_SCRIPT@
7575 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
7676 INTLLIBS = @INTLLIBS@
77 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
7877 LDFLAGS = @LDFLAGS@
7978 LIBICONV = @LIBICONV@
8079 LIBINTL = @LIBINTL@
113112 ac_ct_F77 = @ac_ct_F77@
114113 ac_ct_RANLIB = @ac_ct_RANLIB@
115114 ac_ct_STRIP = @ac_ct_STRIP@
116 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
117115 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
118116 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
119117 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
7474 INSTALL_SCRIPT = @INSTALL_SCRIPT@
7575 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
7676 INTLLIBS = @INTLLIBS@
77 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
7877 LDFLAGS = @LDFLAGS@
7978 LIBICONV = @LIBICONV@
8079 LIBINTL = @LIBINTL@
113112 ac_ct_F77 = @ac_ct_F77@
114113 ac_ct_RANLIB = @ac_ct_RANLIB@
115114 ac_ct_STRIP = @ac_ct_STRIP@
116 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
117115 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
118116 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
119117 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
7474 INSTALL_SCRIPT = @INSTALL_SCRIPT@
7575 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
7676 INTLLIBS = @INTLLIBS@
77 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
7877 LDFLAGS = @LDFLAGS@
7978 LIBICONV = @LIBICONV@
8079 LIBINTL = @LIBINTL@
113112 ac_ct_F77 = @ac_ct_F77@
114113 ac_ct_RANLIB = @ac_ct_RANLIB@
115114 ac_ct_STRIP = @ac_ct_STRIP@
116 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
117115 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
118116 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
119117 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
4545
4646 PROGRAM=ltmain.sh
4747 PACKAGE=libtool
48 VERSION=1.5.20
49 TIMESTAMP=" (1.1220.2.287 2005/08/31 18:54:15)"
48 VERSION=1.5.22
49 TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
5050
5151 # See if we are running on zsh, and set the options which allow our
5252 # commands through without removal of \ escapes.
141141 show="$echo"
142142 show_help=
143143 execute_dlfiles=
144 duplicate_deps=no
145 preserve_args=
144146 lo2o="s/\\.lo\$/.${objext}/"
145147 o2lo="s/\\.${objext}\$/.lo/"
146148
172174 # Shell function definitions:
173175 # This seems to be the best place for them
174176
177 # func_mktempdir [string]
178 # Make a temporary directory that won't clash with other running
179 # libtool processes, and avoids race conditions if possible. If
180 # given, STRING is the basename for that directory.
181 func_mktempdir ()
182 {
183 my_template="${TMPDIR-/tmp}/${1-$progname}"
184
185 if test "$run" = ":"; then
186 # Return a directory name, but don't create it in dry-run mode
187 my_tmpdir="${my_template}-$$"
188 else
189
190 # If mktemp works, use that first and foremost
191 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
192
193 if test ! -d "$my_tmpdir"; then
194 # Failing that, at least try and use $RANDOM to avoid a race
195 my_tmpdir="${my_template}-${RANDOM-0}$$"
196
197 save_mktempdir_umask=`umask`
198 umask 0077
199 $mkdir "$my_tmpdir"
200 umask $save_mktempdir_umask
201 fi
202
203 # If we're not in dry-run mode, bomb out on failure
204 test -d "$my_tmpdir" || {
205 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
206 exit $EXIT_FAILURE
207 }
208 fi
209
210 $echo "X$my_tmpdir" | $Xsed
211 }
212
213
175214 # func_win32_libid arg
176215 # return the library type of file 'arg'
177216 #
190229 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
191230 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
192231 win32_nmres=`eval $NM -f posix -A $1 | \
193 sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
194 if test "X$win32_nmres" = "Ximport" ; then
195 win32_libid_type="x86 archive import"
196 else
197 win32_libid_type="x86 archive static"
198 fi
232 $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
233 case $win32_nmres in
234 import*) win32_libid_type="x86 archive import";;
235 *) win32_libid_type="x86 archive static";;
236 esac
199237 fi
200238 ;;
201239 *DLL*)
342380 $run ${rm}r "$my_xdir"
343381 $show "$mkdir $my_xdir"
344382 $run $mkdir "$my_xdir"
345 status=$?
346 if test "$status" -ne 0 && test ! -d "$my_xdir"; then
347 exit $status
383 exit_status=$?
384 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
385 exit $exit_status
348386 fi
349387 case $host in
350388 *-darwin*)
399437 # Darwin sucks
400438 eval std_shrext=\"$shrext_cmds\"
401439
440 disable_libs=no
441
402442 # Parse our command line options once, thoroughly.
403443 while test "$#" -gt 0
404444 do
515555 preserve_args="$preserve_args $arg"
516556 ;;
517557
518 --tag) prevopt="--tag" prev=tag ;;
558 --tag)
559 prevopt="--tag"
560 prev=tag
561 preserve_args="$preserve_args --tag"
562 ;;
519563 --tag=*)
520564 set tag "$optarg" ${1+"$@"}
521565 shift
546590 $echo "$help" 1>&2
547591 exit $EXIT_FAILURE
548592 fi
593
594 case $disable_libs in
595 no)
596 ;;
597 shared)
598 build_libtool_libs=no
599 build_old_libs=yes
600 ;;
601 static)
602 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
603 ;;
604 esac
549605
550606 # If this variable is set in any of the actions, the command in it
551607 # will be execed at the end. This prevents here-documents from being
903959 if test ! -d "${xdir}$objdir"; then
904960 $show "$mkdir ${xdir}$objdir"
905961 $run $mkdir ${xdir}$objdir
906 status=$?
907 if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
908 exit $status
962 exit_status=$?
963 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
964 exit $exit_status
909965 fi
910966 fi
911967
11081164 no_install=no
11091165 objs=
11101166 non_pic_objects=
1167 notinst_path= # paths that contain not-installed libtool libraries
11111168 precious_files_regex=
11121169 prefer_static_libs=no
11131170 preload=no
11361193 if test -n "$link_static_flag"; then
11371194 dlopen_self=$dlopen_self_static
11381195 fi
1196 prefer_static_libs=yes
11391197 else
11401198 if test -z "$pic_flag" && test -n "$link_static_flag"; then
11411199 dlopen_self=$dlopen_self_static
11421200 fi
1201 prefer_static_libs=built
11431202 fi
11441203 build_libtool_libs=no
11451204 build_old_libs=yes
1146 prefer_static_libs=yes
11471205 break
11481206 ;;
11491207 esac
13181376 if test -z "$pic_object" || test "$pic_object" = none ; then
13191377 arg="$non_pic_object"
13201378 fi
1379 else
1380 # If the PIC object exists, use it instead.
1381 # $xdir was prepended to $pic_object above.
1382 non_pic_object="$pic_object"
1383 non_pic_objects="$non_pic_objects $non_pic_object"
13211384 fi
13221385 else
13231386 # Only an error if not doing a dry-run.
14011464 prev=
14021465 continue
14031466 ;;
1404 darwin_framework)
1405 compiler_flags="$compiler_flags $arg"
1467 darwin_framework|darwin_framework_skip)
1468 test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
14061469 compile_command="$compile_command $arg"
14071470 finalize_command="$finalize_command $arg"
14081471 prev=
14661529 continue
14671530 ;;
14681531
1469 -framework|-arch)
1470 prev=darwin_framework
1471 compiler_flags="$compiler_flags $arg"
1532 -framework|-arch|-isysroot)
1533 case " $CC " in
1534 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1535 prev=darwin_framework_skip ;;
1536 *) compiler_flags="$compiler_flags $arg"
1537 prev=darwin_framework ;;
1538 esac
14721539 compile_command="$compile_command $arg"
14731540 finalize_command="$finalize_command $arg"
1474 continue
1475 ;;
1541 continue
1542 ;;
14761543
14771544 -inst-prefix-dir)
14781545 prev=inst_prefix
15001567 absdir=`cd "$dir" && pwd`
15011568 if test -z "$absdir"; then
15021569 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1503 exit $EXIT_FAILURE
1570 absdir="$dir"
1571 notinst_path="$notinst_path $dir"
15041572 fi
15051573 dir="$absdir"
15061574 ;;
15141582 esac
15151583 case $host in
15161584 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1585 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
15171586 case :$dllsearchpath: in
15181587 *":$dir:"*) ;;
15191588 *) dllsearchpath="$dllsearchpath:$dir";;
15201589 esac
1590 case :$dllsearchpath: in
1591 *":$testbindir:"*) ;;
1592 *) dllsearchpath="$dllsearchpath:$testbindir";;
1593 esac
15211594 ;;
15221595 esac
15231596 continue
15261599 -l*)
15271600 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
15281601 case $host in
1529 *-*-cygwin* | *-*-pw32* | *-*-beos*)
1602 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
15301603 # These systems don't actually have a C or math library (as such)
15311604 continue
15321605 ;;
1533 *-*-mingw* | *-*-os2*)
1606 *-*-os2*)
15341607 # These systems don't actually have a C library (as such)
15351608 test "X$arg" = "X-lc" && continue
15361609 ;;
15421615 # Rhapsody C and math libraries are in the System framework
15431616 deplibs="$deplibs -framework System"
15441617 continue
1618 ;;
1619 *-*-sco3.2v5* | *-*-sco5v6*)
1620 # Causes problems with __ctype
1621 test "X$arg" = "X-lc" && continue
1622 ;;
1623 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
1624 # Compiler inserts libc in the correct place for threads to work
1625 test "X$arg" = "X-lc" && continue
1626 ;;
15451627 esac
15461628 elif test "X$arg" = "X-lc_r"; then
15471629 case $host in
15831665 # +DA*, +DD* enable 64-bit mode on the HP compiler
15841666 # -q* pass through compiler args for the IBM compiler
15851667 # -m* pass through architecture-specific compiler args for GCC
1586 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*)
1668 # -m*, -t[45]*, -txscale* pass through architecture-specific
1669 # compiler args for GCC
1670 # -pg pass through profiling flag for GCC
1671 # @file GCC response files
1672 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
1673 -t[45]*|-txscale*|@*)
15871674
15881675 # Unknown arguments in both finalize_command and compile_command need
15891676 # to be aesthetically quoted because they are evaled later.
15951682 esac
15961683 compile_command="$compile_command $arg"
15971684 finalize_command="$finalize_command $arg"
1598 if test "$with_gcc" = "yes" ; then
1599 compiler_flags="$compiler_flags $arg"
1600 fi
1685 compiler_flags="$compiler_flags $arg"
16011686 continue
16021687 ;;
16031688
17501835 continue
17511836 ;;
17521837
1753 -Kthread | -mthreads | -mt | -pthread | -pthreads | -threads | -qthreaded | -kthread )
1754 compiler_flags="$compiler_flags $arg"
1755 continue
1756 ;;
1757
17581838 # Some other compiler flag.
17591839 -* | +*)
17601840 # Unknown arguments in both finalize_command and compile_command need
18401920 if test -z "$pic_object" || test "$pic_object" = none ; then
18411921 arg="$non_pic_object"
18421922 fi
1923 else
1924 # If the PIC object exists, use it instead.
1925 # $xdir was prepended to $pic_object above.
1926 non_pic_object="$pic_object"
1927 non_pic_objects="$non_pic_objects $non_pic_object"
18431928 fi
18441929 else
18451930 # Only an error if not doing a dry-run.
19452030 if test ! -d "$output_objdir"; then
19462031 $show "$mkdir $output_objdir"
19472032 $run $mkdir $output_objdir
1948 status=$?
1949 if test "$status" -ne 0 && test ! -d "$output_objdir"; then
1950 exit $status
2033 exit_status=$?
2034 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
2035 exit $exit_status
19512036 fi
19522037 fi
19532038
20102095 newlib_search_path=
20112096 need_relink=no # whether we're linking any uninstalled libtool libraries
20122097 notinst_deplibs= # not-installed libtool libraries
2013 notinst_path= # paths that contain not-installed libtool libraries
20142098 case $linkmode in
20152099 lib)
20162100 passes="conv link"
22462330 esac # case $deplib
22472331 if test "$found" = yes || test -f "$lib"; then :
22482332 else
2249 $echo "$modename: cannot find the library \`$lib'" 1>&2
2333 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
22502334 exit $EXIT_FAILURE
22512335 fi
22522336
24972581 fi
24982582
24992583 link_static=no # Whether the deplib will be linked statically
2584 use_static_libs=$prefer_static_libs
2585 if test "$use_static_libs" = built && test "$installed" = yes ; then
2586 use_static_libs=no
2587 fi
25002588 if test -n "$library_names" &&
2501 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
2589 { test "$use_static_libs" = no || test -z "$old_library"; }; then
25022590 if test "$installed" = no; then
25032591 notinst_deplibs="$notinst_deplibs $lib"
25042592 need_relink=yes
26112699 if test "$hardcode_direct" = no; then
26122700 add="$dir/$linklib"
26132701 case $host in
2614 *-*-sco3.2v5* ) add_dir="-L$dir" ;;
2702 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
2703 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
2704 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
2705 *-*-unixware7*) add_dir="-L$dir" ;;
26152706 *-*-darwin* )
26162707 # if the lib is a module then we can not link against
26172708 # it, someone is ignoring the new warnings I added
2618 if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
2709 if /usr/bin/file -L $add 2> /dev/null |
2710 $EGREP ": [^:]* bundle" >/dev/null ; then
26192711 $echo "** Warning, lib $linklib is a module, not a shared library"
26202712 if test -z "$old_library" ; then
26212713 $echo
33663458
33673459 # Eliminate all temporary directories.
33683460 for path in $notinst_path; do
3369 lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
3370 deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
3371 dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
3461 lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3462 deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3463 dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
33723464 done
33733465
33743466 if test -n "$xrpath"; then
34213513 ;;
34223514 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
34233515 # Do not include libc due to us having libc/libc_r.
3424 test "X$arg" = "X-lc" && continue
3516 ;;
3517 *-*-sco3.2v5* | *-*-sco5v6*)
3518 # Causes problems with __ctype
3519 ;;
3520 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
3521 # Compiler inserts libc in the correct place for threads to work
34253522 ;;
34263523 *)
34273524 # Add libc to deplibs on all other systems if necessary.
34653562 int main() { return 0; }
34663563 EOF
34673564 $rm conftest
3468 $LTCC -o conftest conftest.c $deplibs
3565 $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
34693566 if test "$?" -eq 0 ; then
34703567 ldd_output=`ldd conftest`
34713568 for i in $deplibs; do
35103607 # If $name is empty we are operating on a -L argument.
35113608 if test "$name" != "" && test "$name" != "0"; then
35123609 $rm conftest
3513 $LTCC -o conftest conftest.c $i
3610 $LTCC $LTCFLAGS -o conftest conftest.c $i
35143611 # Did it work?
35153612 if test "$?" -eq 0 ; then
35163613 ldd_output=`ldd conftest`
37643861 deplibs=$newdeplibs
37653862 fi
37663863
3864
3865 # move library search paths that coincide with paths to not yet
3866 # installed libraries to the beginning of the library search list
3867 new_libs=
3868 for path in $notinst_path; do
3869 case " $new_libs " in
3870 *" -L$path/$objdir "*) ;;
3871 *)
3872 case " $deplibs " in
3873 *" -L$path/$objdir "*)
3874 new_libs="$new_libs -L$path/$objdir" ;;
3875 esac
3876 ;;
3877 esac
3878 done
3879 for deplib in $deplibs; do
3880 case $deplib in
3881 -L*)
3882 case " $new_libs " in
3883 *" $deplib "*) ;;
3884 *) new_libs="$new_libs $deplib" ;;
3885 esac
3886 ;;
3887 *) new_libs="$new_libs $deplib" ;;
3888 esac
3889 done
3890 deplibs="$new_libs"
3891
3892
37673893 # All the library-specific variables (install_libdir is set above).
37683894 library_names=
37693895 old_library=
38473973 fi
38483974
38493975 lib="$output_objdir/$realname"
3976 linknames=
38503977 for link
38513978 do
38523979 linknames="$linknames $link"
42784405 ;;
42794406 esac
42804407
4408
4409 # move library search paths that coincide with paths to not yet
4410 # installed libraries to the beginning of the library search list
4411 new_libs=
4412 for path in $notinst_path; do
4413 case " $new_libs " in
4414 *" -L$path/$objdir "*) ;;
4415 *)
4416 case " $compile_deplibs " in
4417 *" -L$path/$objdir "*)
4418 new_libs="$new_libs -L$path/$objdir" ;;
4419 esac
4420 ;;
4421 esac
4422 done
4423 for deplib in $compile_deplibs; do
4424 case $deplib in
4425 -L*)
4426 case " $new_libs " in
4427 *" $deplib "*) ;;
4428 *) new_libs="$new_libs $deplib" ;;
4429 esac
4430 ;;
4431 *) new_libs="$new_libs $deplib" ;;
4432 esac
4433 done
4434 compile_deplibs="$new_libs"
4435
4436
42814437 compile_command="$compile_command $compile_deplibs"
42824438 finalize_command="$finalize_command $finalize_deplibs"
42834439
43224478 fi
43234479 case $host in
43244480 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4481 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
43254482 case :$dllsearchpath: in
43264483 *":$libdir:"*) ;;
43274484 *) dllsearchpath="$dllsearchpath:$libdir";;
4485 esac
4486 case :$dllsearchpath: in
4487 *":$testbindir:"*) ;;
4488 *) dllsearchpath="$dllsearchpath:$testbindir";;
43284489 esac
43294490 ;;
43304491 esac
44424603 export_symbols="$output_objdir/$outputname.exp"
44434604 $run $rm $export_symbols
44444605 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4606 case $host in
4607 *cygwin* | *mingw* )
4608 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4609 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4610 ;;
4611 esac
44454612 else
4446 $run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4613 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
44474614 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
44484615 $run eval 'mv "$nlist"T "$nlist"'
4616 case $host in
4617 *cygwin* | *mingw* )
4618 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4619 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4620 ;;
4621 esac
44494622 fi
44504623 fi
44514624
45624735 esac
45634736
45644737 # Now compile the dynamic symbol file.
4565 $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4566 $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4738 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4739 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
45674740
45684741 # Clean up the generated files.
45694742 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
45704743 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
45714744
45724745 # Transform the symbol file into the correct name.
4573 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4574 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4746 case $host in
4747 *cygwin* | *mingw* )
4748 if test -f "$output_objdir/${outputname}.def" ; then
4749 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4750 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4751 else
4752 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4753 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4754 fi
4755 ;;
4756 * )
4757 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4758 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4759 ;;
4760 esac
45754761 ;;
45764762 *)
45774763 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
45964782 # We have no uninstalled library dependencies, so finalize right now.
45974783 $show "$link_command"
45984784 $run eval "$link_command"
4599 status=$?
4785 exit_status=$?
46004786
46014787 # Delete the generated files.
46024788 if test -n "$dlsyms"; then
46044790 $run $rm "$output_objdir/${outputname}S.${objext}"
46054791 fi
46064792
4607 exit $status
4793 exit $exit_status
46084794 fi
46094795
46104796 if test -n "$shlibpath_var"; then
47444930 esac
47454931 case $host in
47464932 *cygwin* | *mingw* )
4747 cwrappersource=`$echo ${objdir}/lt-${outputname}.c`
4748 cwrapper=`$echo ${output}.exe`
4749 $rm $cwrappersource $cwrapper
4750 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4933 output_name=`basename $output`
4934 output_path=`dirname $output`
4935 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4936 cwrapper="$output_path/$output_name.exe"
4937 $rm $cwrappersource $cwrapper
4938 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
47514939
47524940 cat > $cwrappersource <<EOF
47534941
47724960 #include <malloc.h>
47734961 #include <stdarg.h>
47744962 #include <assert.h>
4963 #include <string.h>
4964 #include <ctype.h>
4965 #include <sys/stat.h>
47754966
47764967 #if defined(PATH_MAX)
47774968 # define LT_PATHMAX PATH_MAX
47824973 #endif
47834974
47844975 #ifndef DIR_SEPARATOR
4785 #define DIR_SEPARATOR '/'
4976 # define DIR_SEPARATOR '/'
4977 # define PATH_SEPARATOR ':'
47864978 #endif
47874979
47884980 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
47894981 defined (__OS2__)
4790 #define HAVE_DOS_BASED_FILE_SYSTEM
4791 #ifndef DIR_SEPARATOR_2
4792 #define DIR_SEPARATOR_2 '\\'
4793 #endif
4982 # define HAVE_DOS_BASED_FILE_SYSTEM
4983 # ifndef DIR_SEPARATOR_2
4984 # define DIR_SEPARATOR_2 '\\'
4985 # endif
4986 # ifndef PATH_SEPARATOR_2
4987 # define PATH_SEPARATOR_2 ';'
4988 # endif
47944989 #endif
47954990
47964991 #ifndef DIR_SEPARATOR_2
48004995 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
48014996 #endif /* DIR_SEPARATOR_2 */
48024997
4998 #ifndef PATH_SEPARATOR_2
4999 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
5000 #else /* PATH_SEPARATOR_2 */
5001 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
5002 #endif /* PATH_SEPARATOR_2 */
5003
48035004 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
48045005 #define XFREE(stale) do { \
48055006 if (stale) { free ((void *) stale); stale = 0; } \
48065007 } while (0)
48075008
5009 /* -DDEBUG is fairly common in CFLAGS. */
5010 #undef DEBUG
5011 #if defined DEBUGWRAPPER
5012 # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
5013 #else
5014 # define DEBUG(format, ...)
5015 #endif
5016
48085017 const char *program_name = NULL;
48095018
48105019 void * xmalloc (size_t num);
48115020 char * xstrdup (const char *string);
4812 char * basename (const char *name);
4813 char * fnqualify(const char *path);
5021 const char * base_name (const char *name);
5022 char * find_executable(const char *wrapper);
5023 int check_executable(const char *path);
48145024 char * strendzap(char *str, const char *pat);
48155025 void lt_fatal (const char *message, ...);
48165026
48205030 char **newargz;
48215031 int i;
48225032
4823 program_name = (char *) xstrdup ((char *) basename (argv[0]));
5033 program_name = (char *) xstrdup (base_name (argv[0]));
5034 DEBUG("(main) argv[0] : %s\n",argv[0]);
5035 DEBUG("(main) program_name : %s\n",program_name);
48245036 newargz = XMALLOC(char *, argc+2);
48255037 EOF
48265038
4827 cat >> $cwrappersource <<EOF
4828 newargz[0] = "$SHELL";
5039 cat >> $cwrappersource <<EOF
5040 newargz[0] = (char *) xstrdup("$SHELL");
48295041 EOF
48305042
4831 cat >> $cwrappersource <<"EOF"
4832 newargz[1] = fnqualify(argv[0]);
5043 cat >> $cwrappersource <<"EOF"
5044 newargz[1] = find_executable(argv[0]);
5045 if (newargz[1] == NULL)
5046 lt_fatal("Couldn't find %s", argv[0]);
5047 DEBUG("(main) found exe at : %s\n",newargz[1]);
48335048 /* we know the script has the same name, without the .exe */
48345049 /* so make sure newargz[1] doesn't end in .exe */
48355050 strendzap(newargz[1],".exe");
48365051 for (i = 1; i < argc; i++)
48375052 newargz[i+1] = xstrdup(argv[i]);
48385053 newargz[argc+1] = NULL;
5054
5055 for (i=0; i<argc+1; i++)
5056 {
5057 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5058 ;
5059 }
5060
48395061 EOF
48405062
4841 cat >> $cwrappersource <<EOF
5063 case $host_os in
5064 mingw*)
5065 cat >> $cwrappersource <<EOF
5066 execv("$SHELL",(char const **)newargz);
5067 EOF
5068 ;;
5069 *)
5070 cat >> $cwrappersource <<EOF
48425071 execv("$SHELL",newargz);
48435072 EOF
4844
4845 cat >> $cwrappersource <<"EOF"
5073 ;;
5074 esac
5075
5076 cat >> $cwrappersource <<"EOF"
48465077 return 127;
48475078 }
48485079
48635094 ;
48645095 }
48655096
4866 char *
4867 basename (const char *name)
5097 const char *
5098 base_name (const char *name)
48685099 {
48695100 const char *base;
48705101
48715102 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
48725103 /* Skip over the disk name in MSDOS pathnames. */
4873 if (isalpha (name[0]) && name[1] == ':')
5104 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
48745105 name += 2;
48755106 #endif
48765107
48775108 for (base = name; *name; name++)
48785109 if (IS_DIR_SEPARATOR (*name))
48795110 base = name + 1;
4880 return (char *) base;
5111 return base;
48815112 }
48825113
5114 int
5115 check_executable(const char * path)
5116 {
5117 struct stat st;
5118
5119 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5120 if ((!path) || (!*path))
5121 return 0;
5122
5123 if ((stat (path, &st) >= 0) &&
5124 (
5125 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5126 #if defined (S_IXOTH)
5127 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5128 #endif
5129 #if defined (S_IXGRP)
5130 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5131 #endif
5132 ((st.st_mode & S_IXUSR) == S_IXUSR))
5133 )
5134 return 1;
5135 else
5136 return 0;
5137 }
5138
5139 /* Searches for the full path of the wrapper. Returns
5140 newly allocated full path name if found, NULL otherwise */
48835141 char *
4884 fnqualify(const char *path)
5142 find_executable (const char* wrapper)
48855143 {
4886 size_t size;
4887 char *p;
5144 int has_slash = 0;
5145 const char* p;
5146 const char* p_next;
5147 /* static buffer for getcwd */
48885148 char tmp[LT_PATHMAX + 1];
4889
4890 assert(path != NULL);
4891
4892 /* Is it qualified already? */
5149 int tmp_len;
5150 char* concat_name;
5151
5152 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
5153
5154 if ((wrapper == NULL) || (*wrapper == '\0'))
5155 return NULL;
5156
5157 /* Absolute path? */
48935158 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4894 if (isalpha (path[0]) && path[1] == ':')
4895 return xstrdup (path);
5159 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
5160 {
5161 concat_name = xstrdup (wrapper);
5162 if (check_executable(concat_name))
5163 return concat_name;
5164 XFREE(concat_name);
5165 }
5166 else
5167 {
48965168 #endif
4897 if (IS_DIR_SEPARATOR (path[0]))
4898 return xstrdup (path);
4899
4900 /* prepend the current directory */
4901 /* doesn't handle '~' */
5169 if (IS_DIR_SEPARATOR (wrapper[0]))
5170 {
5171 concat_name = xstrdup (wrapper);
5172 if (check_executable(concat_name))
5173 return concat_name;
5174 XFREE(concat_name);
5175 }
5176 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5177 }
5178 #endif
5179
5180 for (p = wrapper; *p; p++)
5181 if (*p == '/')
5182 {
5183 has_slash = 1;
5184 break;
5185 }
5186 if (!has_slash)
5187 {
5188 /* no slashes; search PATH */
5189 const char* path = getenv ("PATH");
5190 if (path != NULL)
5191 {
5192 for (p = path; *p; p = p_next)
5193 {
5194 const char* q;
5195 size_t p_len;
5196 for (q = p; *q; q++)
5197 if (IS_PATH_SEPARATOR(*q))
5198 break;
5199 p_len = q - p;
5200 p_next = (*q == '\0' ? q : q + 1);
5201 if (p_len == 0)
5202 {
5203 /* empty path: current directory */
5204 if (getcwd (tmp, LT_PATHMAX) == NULL)
5205 lt_fatal ("getcwd failed");
5206 tmp_len = strlen(tmp);
5207 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5208 memcpy (concat_name, tmp, tmp_len);
5209 concat_name[tmp_len] = '/';
5210 strcpy (concat_name + tmp_len + 1, wrapper);
5211 }
5212 else
5213 {
5214 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5215 memcpy (concat_name, p, p_len);
5216 concat_name[p_len] = '/';
5217 strcpy (concat_name + p_len + 1, wrapper);
5218 }
5219 if (check_executable(concat_name))
5220 return concat_name;
5221 XFREE(concat_name);
5222 }
5223 }
5224 /* not found in PATH; assume curdir */
5225 }
5226 /* Relative path | not found in path: prepend cwd */
49025227 if (getcwd (tmp, LT_PATHMAX) == NULL)
49035228 lt_fatal ("getcwd failed");
4904 size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
4905 p = XMALLOC(char, size);
4906 sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
4907 return p;
5229 tmp_len = strlen(tmp);
5230 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5231 memcpy (concat_name, tmp, tmp_len);
5232 concat_name[tmp_len] = '/';
5233 strcpy (concat_name + tmp_len + 1, wrapper);
5234
5235 if (check_executable(concat_name))
5236 return concat_name;
5237 XFREE(concat_name);
5238 return NULL;
49085239 }
49095240
49105241 char *
49485279 va_end (ap);
49495280 }
49505281 EOF
4951 # we should really use a build-platform specific compiler
4952 # here, but OTOH, the wrappers (shell script and this C one)
4953 # are only useful if you want to execute the "real" binary.
4954 # Since the "real" binary is built for $host, then this
4955 # wrapper might as well be built for $host, too.
4956 $run $LTCC -s -o $cwrapper $cwrappersource
4957 ;;
4958 esac
4959 $rm $output
4960 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5282 # we should really use a build-platform specific compiler
5283 # here, but OTOH, the wrappers (shell script and this C one)
5284 # are only useful if you want to execute the "real" binary.
5285 # Since the "real" binary is built for $host, then this
5286 # wrapper might as well be built for $host, too.
5287 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
5288 ;;
5289 esac
5290 $rm $output
5291 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
49615292
49625293 $echo > $output "\
49635294 #! $SHELL
51925523 $run ${rm}r "$gentop"
51935524 $show "$mkdir $gentop"
51945525 $run $mkdir "$gentop"
5195 status=$?
5196 if test "$status" -ne 0 && test ! -d "$gentop"; then
5197 exit $status
5526 exit_status=$?
5527 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5528 exit $exit_status
51985529 fi
51995530 fi
52005531
59096240 outputname=
59106241 if test "$fast_install" = no && test -n "$relink_command"; then
59116242 if test "$finalize" = yes && test -z "$run"; then
5912 tmpdir="/tmp"
5913 test -n "$TMPDIR" && tmpdir="$TMPDIR"
5914 tmpdir="$tmpdir/libtool-$$"
5915 save_umask=`umask`
5916 umask 0077
5917 if $mkdir "$tmpdir"; then
5918 umask $save_umask
5919 else
5920 umask $save_umask
5921 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5922 continue
5923 fi
6243 tmpdir=`func_mktempdir`
59246244 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
59256245 outputname="$tmpdir/$file"
59266246 # Replace the output file specification.
60446364 # Exit here if they wanted silent mode.
60456365 test "$show" = : && exit $EXIT_SUCCESS
60466366
6047 $echo "----------------------------------------------------------------------"
6367 $echo "X----------------------------------------------------------------------" | $Xsed
60486368 $echo "Libraries have been installed in:"
60496369 for libdir in $libdirs; do
60506370 $echo " $libdir"
60776397 $echo
60786398 $echo "See any operating system documentation about shared libraries for"
60796399 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
6080 $echo "----------------------------------------------------------------------"
6400 $echo "X----------------------------------------------------------------------" | $Xsed
60816401 exit $EXIT_SUCCESS
60826402 ;;
60836403
62946614 rmfiles="$rmfiles $objdir/$n"
62956615 done
62966616 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6297 test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6298
6299 if test "$mode" = uninstall; then
6617
6618 case "$mode" in
6619 clean)
6620 case " $library_names " in
6621 # " " in the beginning catches empty $dlname
6622 *" $dlname "*) ;;
6623 *) rmfiles="$rmfiles $objdir/$dlname" ;;
6624 esac
6625 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6626 ;;
6627 uninstall)
63006628 if test -n "$library_names"; then
63016629 # Do each command in the postuninstall commands.
63026630 cmds=$postuninstall_cmds
63296657 IFS="$save_ifs"
63306658 fi
63316659 # FIXME: should reinstall the best remaining shared library.
6332 fi
6660 ;;
6661 esac
63336662 fi
63346663 ;;
63356664
66286957 # configuration. But we'll never go from static-only to shared-only.
66296958
66306959 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6631 build_libtool_libs=no
6632 build_old_libs=yes
6960 disable_libs=shared
66336961 # ### END LIBTOOL TAG CONFIG: disable-shared
66346962
66356963 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
6636 build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
6964 disable_libs=static
66376965 # ### END LIBTOOL TAG CONFIG: disable-static
66386966
66396967 # Local Variables:
7474 INSTALL_SCRIPT = @INSTALL_SCRIPT@
7575 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
7676 INTLLIBS = @INTLLIBS@
77 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
7877 LDFLAGS = @LDFLAGS@
7978 LIBICONV = @LIBICONV@
8079 LIBINTL = @LIBINTL@
113112 ac_ct_F77 = @ac_ct_F77@
114113 ac_ct_RANLIB = @ac_ct_RANLIB@
115114 ac_ct_STRIP = @ac_ct_STRIP@
116 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
117115 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
118116 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
119117 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
00 # Llenguatges disponibles
1 ca es de
1 ca es de sv
Binary diff not shown
0 # Swedish translation of eiciel.
1 # Copyright (C) 2006 Roger Ferrer Ibáñez
2 # This file is distributed under the same license as the eiciel package.
3 # Daniel Nylander <po@danielnylander.se>, 2006.
4 #
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: eiciel 0.9-1\n"
8 "Report-Msgid-Bugs-To: Roger Ferrer Ibáñez <rofi@ya.com>\n"
9 "POT-Creation-Date: 2005-12-08 15:42+0100\n"
10 "PO-Revision-Date: 2006-01-29 00:08+0100\n"
11 "Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
12 "Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16
17 #: src/gestor_acl.cpp:50 src/gestor_xattr.cpp:34
18 msgid "Only regular files or directories supported"
19 msgstr "Endast vanliga filer eller kataloger stöds"
20
21 #: src/gestor_acl.cpp:551
22 msgid "Textual representation of the ACL is wrong"
23 msgstr "Textrepresentation av tillgångskontrollistan är fel"
24
25 #: src/gestor_acl.cpp:573
26 msgid "Default textual representation of the ACL is wrong"
27 msgstr "Förvald textrepresentation av tillgångkontrollistan är fel"
28
29 #: src/eiciel_main_controler.cpp:170
30 msgid "Mask"
31 msgstr "Mask"
32
33 #: src/eiciel_main_controler.cpp:175
34 msgid "Other"
35 msgstr "Annat"
36
37 #: src/eiciel_main_controler.cpp:248
38 msgid "Default Mask"
39 msgstr "Förvald mask"
40
41 #: src/eiciel_main_controler.cpp:256
42 msgid "Default Other"
43 msgstr "Förvald annan"
44
45 #: src/eiciel_main_controler.cpp:319
46 msgid "Could not add ACL entry: "
47 msgstr "Kunde inte lägga till post i tillgångkontrollista: "
48
49 #: src/eiciel_main_controler.cpp:367
50 msgid "Could not remove ACL entry: "
51 msgstr "Kunde inte ta bort post i tillgångkontrollista: "
52
53 #: src/eiciel_main_controler.cpp:451
54 msgid "Could not modify ACL entry: "
55 msgstr "Kunde inte ändra post i tillgångkontrollista: "
56
57 #: src/eiciel_main_controler.cpp:467
58 msgid "Are you sure you want to remove all ACL default entries?"
59 msgstr ""
60 "Är du säker att du villa ta bort alla förvalda poster i tillgångkontrollista?"
61
62 #: src/eiciel_main_window.cpp:24
63 msgid "User"
64 msgstr "Användare"
65
66 #: src/eiciel_main_window.cpp:25
67 msgid "Group"
68 msgstr "Grupp"
69
70 #: src/eiciel_main_window.cpp:26
71 msgid "Default"
72 msgstr "Förvald"
73
74 #: src/eiciel_main_window.cpp:27
75 msgid "Default ACL"
76 msgstr "Förvald tillgångskontrollista"
77
78 #: src/eiciel_main_window.cpp:28
79 msgid "Also show system participants"
80 msgstr "Visa även systemdeltagare"
81
82 #: src/eiciel_main_window.cpp:32 src/eiciel_nautilus_page.cpp:134
83 #: src/eiciel_container.cpp:60
84 msgid "Access Control List"
85 msgstr "Tillgångskontrollista"
86
87 #: src/eiciel_main_window.cpp:33
88 msgid "Participants List"
89 msgstr "Deltagarlista"
90
91 #: src/eiciel_main_window.cpp:79
92 msgid "Entry"
93 msgstr "Post"
94
95 #: src/eiciel_main_window.cpp:82
96 msgid "Read"
97 msgstr "Läs"
98
99 #: src/eiciel_main_window.cpp:94
100 msgid "Write"
101 msgstr "Skriv"
102
103 #: src/eiciel_main_window.cpp:103
104 msgid "Execution"
105 msgstr "Kör"
106
107 #: src/eiciel_main_window.cpp:145
108 msgid "Participant"
109 msgstr "Deltagare"
110
111 #: src/eiciel_main_window.cpp:297
112 msgid ""
113 "<span size=\"smaller\"><span foreground=\"#cc0000\" weight=\"bold\">!</span> "
114 "means an ineffective permission.</span>"
115 msgstr ""
116 "<span size=\"smaller\"><span foreground=\"#cc0000\" weight=\"bold\">!</span> "
117 "betyder en ineffekt rättighet.</span>"
118
119 #: src/eiciel_nautilus_page.cpp:155 src/eiciel_container.cpp:68
120 msgid "Extended user attributes"
121 msgstr "Utökade användarattribut"
122
123 #: src/eiciel_container.cpp:23
124 msgid "<b>File name</b>"
125 msgstr "<b>Filnamn</b>"
126
127 #: src/eiciel_container.cpp:24 src/eiciel_container.cpp:216
128 msgid "No file opened"
129 msgstr "Ingen fil öppnades"
130
131 #: src/eiciel_container.cpp:27 src/eiciel_container.cpp:224
132 msgid "About..."
133 msgstr "Om..."
134
135 #: src/eiciel_container.cpp:127
136 msgid "Could not show the help file even if it was found"
137 msgstr "Kunde inte visa hjälpfilen även om den hittades"
138
139 #: src/eiciel_container.cpp:136
140 msgid "Help file not found"
141 msgstr "Hjälpfil hittades inte"
142
143 #: src/eiciel_container.cpp:158
144 msgid "Choose a file or a directory"
145 msgstr "Välj en fil eller en katalog"
146
147 #: src/eiciel_container.cpp:178
148 msgid "Could not open the file \""
149 msgstr "Kunde inte öppna filen \""
150
151 #: src/eiciel_xattr_window.cpp:40
152 msgid "Name"
153 msgstr "Namn"
154
155 #: src/eiciel_xattr_window.cpp:52
156 msgid "Value"
157 msgstr "Värde"
158
159 #: src/eiciel_xattr_window.cpp:180
160 msgid "Could not rename attribute name: "
161 msgstr "Kunde inte byta namn på attribut: "
162
163 #: src/eiciel_xattr_window.cpp:202
164 msgid "Could not change attribute value: "
165 msgstr "Kunde inte ändra attributvärde: "
166
167 #: src/eiciel_xattr_window.cpp:226
168 msgid "Could not remove attribute: "
169 msgstr "Kunde inte ta bort attribut: "
170
171 #: src/eiciel_xattr_window.cpp:245 src/eiciel_xattr_window.cpp:254
172 msgid "New attribute"
173 msgstr "Nytt attribut"
174
175 #: src/eiciel_xattr_window.cpp:284
176 msgid "New value"
177 msgstr "Nytt värde"
178
179 #: src/eiciel_xattr_window.cpp:299
180 msgid "Could not add attribute: "
181 msgstr "Kunde inte lägga till attribut: "
5656 eiciel_xattr_controler.hpp \
5757 llista_xattr.hpp
5858 endif
59
60 desktopfilesdir=@datadir@/applications
61
62 dist_desktopfiles_DATA=eiciel.desktop
63
64 eiciel.desktop : eiciel.desktop.in
65 sed -e "s|@DSK_VERSION@|$(VERSION)|;s|@DSK_bindir@|$(bindir)|;s|@DSK_pkgdatadir@|$(pkgdatadir)|" $< > $@
66
67 EXTRA_DIST= \
68 eiciel.desktop.in
9090 INSTALL_SCRIPT = @INSTALL_SCRIPT@
9191 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
9292 INTLLIBS = @INTLLIBS@
93 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
9493 LDFLAGS = @LDFLAGS@
9594 LIBICONV = @LIBICONV@
9695 LIBINTL = @LIBINTL@
129128 ac_ct_F77 = @ac_ct_F77@
130129 ac_ct_RANLIB = @ac_ct_RANLIB@
131130 ac_ct_STRIP = @ac_ct_STRIP@
132 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
133131 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
134132 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
135133 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
210208 cellrenderer_acl.hpp \
211209 cellrenderer_acl.cpp \
212210 $(am__append_2)
211
212 desktopfilesdir = @datadir@/applications
213
214 dist_desktopfiles_DATA = eiciel.desktop
215
216 EXTRA_DIST = \
217 eiciel.desktop.in
218
213219 subdir = src
214220 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
215221 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
299305 $(AM_LDFLAGS) $(LDFLAGS) -o $@
300306 DIST_SOURCES = $(am__libeiciel_nautilus_la_SOURCES_DIST) \
301307 $(am__eiciel_SOURCES_DIST)
302 DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
308 DATA = $(dist_desktopfiles_DATA)
309
310 DIST_COMMON = $(dist_desktopfiles_DATA) $(srcdir)/Makefile.in \
311 Makefile.am
303312 SOURCES = $(libeiciel_nautilus_la_SOURCES) $(eiciel_SOURCES)
304313
305314 all: all-am
10011010 distclean-libtool:
10021011 -rm -f libtool
10031012 uninstall-info-am:
1013 dist_desktopfilesDATA_INSTALL = $(INSTALL_DATA)
1014 install-dist_desktopfilesDATA: $(dist_desktopfiles_DATA)
1015 @$(NORMAL_INSTALL)
1016 $(mkinstalldirs) $(DESTDIR)$(desktopfilesdir)
1017 @list='$(dist_desktopfiles_DATA)'; for p in $$list; do \
1018 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1019 f="`echo $$p | sed -e 's|^.*/||'`"; \
1020 echo " $(dist_desktopfilesDATA_INSTALL) $$d$$p $(DESTDIR)$(desktopfilesdir)/$$f"; \
1021 $(dist_desktopfilesDATA_INSTALL) $$d$$p $(DESTDIR)$(desktopfilesdir)/$$f; \
1022 done
1023
1024 uninstall-dist_desktopfilesDATA:
1025 @$(NORMAL_UNINSTALL)
1026 @list='$(dist_desktopfiles_DATA)'; for p in $$list; do \
1027 f="`echo $$p | sed -e 's|^.*/||'`"; \
1028 echo " rm -f $(DESTDIR)$(desktopfilesdir)/$$f"; \
1029 rm -f $(DESTDIR)$(desktopfilesdir)/$$f; \
1030 done
10041031
10051032 ETAGS = etags
10061033 ETAGSFLAGS =
10891116 done
10901117 check-am: all-am
10911118 check: check-am
1092 all-am: Makefile $(LTLIBRARIES) $(PROGRAMS)
1119 all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA)
10931120
10941121 installdirs:
1095 $(mkinstalldirs) $(DESTDIR)$(nautilusextdir) $(DESTDIR)$(bindir)
1122 $(mkinstalldirs) $(DESTDIR)$(nautilusextdir) $(DESTDIR)$(bindir) $(DESTDIR)$(desktopfilesdir)
10961123 install: install-am
10971124 install-exec: install-exec-am
10981125 install-data: install-data-am
11361163
11371164 info-am:
11381165
1139 install-data-am: install-nautilusextLTLIBRARIES
1166 install-data-am: install-dist_desktopfilesDATA \
1167 install-nautilusextLTLIBRARIES
11401168
11411169 install-exec-am: install-binPROGRAMS
11421170
11641192
11651193 ps-am:
11661194
1167 uninstall-am: uninstall-binPROGRAMS uninstall-info-am \
1168 uninstall-nautilusextLTLIBRARIES
1195 uninstall-am: uninstall-binPROGRAMS uninstall-dist_desktopfilesDATA \
1196 uninstall-info-am uninstall-nautilusextLTLIBRARIES
11691197
11701198 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
11711199 clean-generic clean-libtool clean-nautilusextLTLIBRARIES ctags \
11721200 distclean distclean-compile distclean-generic distclean-libtool \
11731201 distclean-tags distdir dvi dvi-am info info-am install \
11741202 install-am install-binPROGRAMS install-data install-data-am \
1175 install-exec install-exec-am install-info install-info-am \
1176 install-man install-nautilusextLTLIBRARIES install-strip \
1177 installcheck installcheck-am installdirs maintainer-clean \
1203 install-dist_desktopfilesDATA install-exec install-exec-am \
1204 install-info install-info-am install-man \
1205 install-nautilusextLTLIBRARIES install-strip installcheck \
1206 installcheck-am installdirs maintainer-clean \
11781207 maintainer-clean-generic mostlyclean mostlyclean-compile \
11791208 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
11801209 tags uninstall uninstall-am uninstall-binPROGRAMS \
1181 uninstall-info-am uninstall-nautilusextLTLIBRARIES
1182
1210 uninstall-dist_desktopfilesDATA uninstall-info-am \
1211 uninstall-nautilusextLTLIBRARIES
1212
1213
1214 eiciel.desktop : eiciel.desktop.in
1215 sed -e "s|@DSK_VERSION@|$(VERSION)|;s|@DSK_bindir@|$(bindir)|;s|@DSK_pkgdatadir@|$(pkgdatadir)|" $< > $@
11831216 # Tell versions [3.59,3.63) of GNU make to not export all variables.
11841217 # Otherwise a system limit (for SysV at least) may be exceeded.
11851218 .NOEXPORT:
0 [Desktop Entry]
1 Encoding=UTF-8
2 Name=Eiciel
3 GenericName=Access control list editor
4 GenericName[ca]=Editor de llistes de control d'accés
5 GenericName[es]=Editor de listas de control de acceso
6 Comment=View or change ACL and User Extended Attributes on files and directories
7 Comment[ca]=Visualitza o canvia la llista de control d'accés i els atributs d'usuari en fitxers i directoris
8 Comment[es]=Visualiza o cambia la lista de control de acceso y los atributos de usuario en ficheros y directorios
9 Exec=/usr/local/bin/eiciel
10 Icon=/usr/local/share/eiciel/img/icona_eiciel_24.png
11 Terminal=false
12 Type=Application
13 Categories=Application;Accessories;GNOME;System;
14 Version=0.9.1
0 [Desktop Entry]
1 Encoding=UTF-8
2 Name=Eiciel
3 GenericName=Access control list editor
4 GenericName[ca]=Editor de llistes de control d'accés
5 GenericName[es]=Editor de listas de control de acceso
6 Comment=View or change ACL and User Extended Attributes on files and directories
7 Comment[ca]=Visualitza o canvia la llista de control d'accés i els atributs d'usuari en fitxers i directoris
8 Comment[es]=Visualiza o cambia la lista de control de acceso y los atributos de usuario en ficheros y directorios
9 Exec=@DSK_bindir@/eiciel
10 Icon=@DSK_pkgdatadir@/img/icona_eiciel_24.png
11 Terminal=false
12 Type=Application
13 Categories=Application;Accessories;GNOME;System;
14 Version=@DSK_VERSION@
3939
4040 void comprovarEditable();
4141 public:
42 EicielXAttrControler::EicielXAttrControler();
42 EicielXAttrControler();
4343 bool fitxerObert() { return _fitxerObert; };
4444
4545 void obrirFitxer(const Glib::ustring& nomFitxer) throw (GestorXAttrException);