573
573
AC_DEFUN([KDE_SUBST_PROGRAMS],
575
575
AC_ARG_WITH(arts,
576
AC_HELP_STRING([--without-arts],[build without aRts [default=yes]]),
576
AC_HELP_STRING([--without-arts],[build without aRts [default=no]]),
577
577
[build_arts=$withval],
580
AM_CONDITIONAL(include_ARTS, test "$build_arts" != "no")
581
if test "$build_arts" == "no"; then
580
AM_CONDITIONAL(include_ARTS, test "$build_arts" '!=' "no")
581
if test "$build_arts" = "no"; then
582
582
AC_DEFINE(WITHOUT_ARTS, 1, [Defined if compiling without arts])
586
586
kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
587
587
KDE_FIND_PATH(dcopidl, DCOPIDL, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(dcopidl)])
588
588
KDE_FIND_PATH(dcopidl2cpp, DCOPIDL2CPP, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(dcopidl2cpp)])
589
if test "$build_arts" != "no"; then
589
if test "$build_arts" '!=' "no"; then
590
590
KDE_FIND_PATH(mcopidl, MCOPIDL, [$kde_default_bindirs], [KDE_MISSING_ARTS_ERROR(mcopidl)])
591
591
KDE_FIND_PATH(artsc-config, ARTSCCONFIG, [$kde_default_bindirs], [KDE_MISSING_ARTS_ERROR(artsc-config)])
593
593
KDE_FIND_PATH(meinproc, MEINPROC, [$kde_default_bindirs])
596
597
if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
599
if test "$kde_qtver" = "3" && test "$kde_qtsubver" -le 1; then
601
if test "$kde_qtver" = "3"; then
602
if test "$kde_qtsubver" -le 1; then
605
if test "$kde_qtsubver" -le 2; then
605
612
KDE_FIND_PATH(kconfig_compiler, KCONFIG_COMPILER, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(kconfig_compiler)])
606
613
KDE_FIND_PATH(dcopidlng, DCOPIDLNG, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(dcopidlng)])
608
KDE_FIND_PATH(xmllint, XMLLINT, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [XMLLINT=""])
615
if test -n "$kde33ornewer"; then
616
KDE_FIND_PATH(makekdewidgets, MAKEKDEWIDGETS, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(makekdewidgets)])
617
AC_SUBST(MAKEKDEWIDGETS)
619
KDE_FIND_PATH(xmllint, XMLLINT, [${prefix}/bin ${exec_prefix}/bin], [XMLLINT=""])
610
621
if test -n "$MEINPROC" && test ! "$MEINPROC" = "compiled"; then
611
622
kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
1186
1207
if test -z "$3"; then
1187
1208
if test $kde_qtver = 3; then
1188
1209
if test $kde_qtsubver -gt 0; then
1189
kde_qt_verstring="QT_VERSION >= 0x03@VER@00"
1210
kde_qt_verstring="QT_VERSION >= 0x03@VER@00 && QT_VERSION < 0x040000"
1190
1211
qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
1191
1212
kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
1193
kde_qt_verstring="QT_VERSION >= 300"
1214
kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000"
1196
1217
if test $kde_qtver = 2; then
1688
1709
AC_SUBST(KDE_NO_UNDEFINED)
1712
dnl Check if the linker supports --enable-new-dtags and --as-needed
1713
AC_DEFUN([KDE_CHECK_NEW_LDFLAGS],
1715
AC_ARG_ENABLE(new_ldflags,
1716
AC_HELP_STRING([--enable-new-ldflags],
1717
[enable the new linker flags]),
1718
kde_use_new_ldflags=$enableval,
1719
kde_use_new_ldflags=no)
1721
LDFLAGS_AS_NEEDED=""
1722
LDFLAGS_NEW_DTAGS=""
1723
if test "x$kde_use_new_ldflags" = "xyes"; then
1724
LDFLAGS_NEW_DTAGS=""
1725
KDE_CHECK_COMPILER_FLAG([Wl,--enable-new-dtags],
1726
[LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"],)
1728
KDE_CHECK_COMPILER_FLAG([Wl,--as-needed],
1729
[LDFLAGS_AS_NEEDED="-Wl,--as-needed"],)
1731
AC_SUBST(LDFLAGS_AS_NEEDED)
1732
AC_SUBST(LDFLAGS_NEW_DTAGS)
1691
1735
AC_DEFUN([KDE_CHECK_NMCHECK],
1693
1737
AC_ARG_ENABLE(nmcheck,AC_HELP_STRING([--enable-nmcheck],[enable automatic namespace cleanness check]),
2027
2071
AC_SUBST(LIB_KDECORE, "-lkdecore")
2028
2072
AC_SUBST(LIB_KDEUI, "-lkdeui")
2029
2073
AC_SUBST(LIB_KIO, "-lkio")
2074
AC_SUBST(LIB_KJS, "-lkjs")
2030
2075
AC_SUBST(LIB_SMB, "-lsmb")
2031
2076
AC_SUBST(LIB_KAB, "-lkab")
2032
2077
AC_SUBST(LIB_KABC, "-lkabc")
2036
2081
AC_SUBST(LIB_KDEPRINT, "-lkdeprint")
2037
2082
AC_SUBST(LIB_KUTILS, "-lkutils")
2038
2083
AC_SUBST(LIB_KDEPIM, "-lkdepim")
2084
AC_SUBST(LIB_KIMPROXY, "-lkimproxy")
2085
AC_SUBST(LIB_KNEWSTUFF, "-lknewstuff")
2086
AC_SUBST(LIB_KDNSSD, "-lkdnssd")
2039
2087
# these are for backward compatibility
2040
2088
AC_SUBST(LIB_KSYCOCA, "-lkio")
2041
2089
AC_SUBST(LIB_KFILE, "-lkio")
2429
AC_DEFUN([AC_CHECK_RES_QUERY],
2431
KDE_CHECK_FUNC_EXT(res_query, [
2432
#include <sys/types.h>
2433
#include <netinet/in.h>
2434
#include <arpa/nameser.h>
2439
res_query(NULL, 0, 0, NULL, 0);
2441
[int res_query(const char *, int, int, unsigned char *, int)],
2445
AC_DEFUN([AC_CHECK_DN_SKIPNAME],
2447
KDE_CHECK_FUNC_EXT(dn_skipname, [
2448
#include <sys/types.h>
2449
#include <netinet/in.h>
2450
#include <arpa/nameser.h>
2454
dn_skipname (NULL, NULL);
2456
[int dn_skipname (unsigned char *, unsigned char *)],
2375
2461
AC_DEFUN([AC_FIND_GIF],
2376
2462
[AC_MSG_CHECKING([for giflib])
2377
2463
AC_CACHE_VAL(ac_cv_lib_gif,
2977
3063
CXXFLAGS="-Wall -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
2980
CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3066
CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
2981
3067
CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
2982
3068
KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
2983
3069
KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
2992
3078
if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
2993
3079
CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
3083
AC_HELP_STRING([--enable-pch],
3084
[enables precompiled header support (currently only KCC or gcc >=3.4+unsermake) [default=no]]),
3085
[ kde_use_pch=$enableval ],[ kde_use_pch=no ])
3087
HAVE_GCC_VISIBILITY=0
3088
AC_SUBST([HAVE_GCC_VISIBILITY])
2996
3090
if test "$GXX" = "yes"; then
2997
3091
KDE_CHECK_COMPILER_FLAG(fno-exceptions,[CXXFLAGS="$CXXFLAGS -fno-exceptions"])
2998
3092
KDE_CHECK_COMPILER_FLAG(fno-check-new, [CXXFLAGS="$CXXFLAGS -fno-check-new"])
2999
3093
KDE_CHECK_COMPILER_FLAG(fno-common, [CXXFLAGS="$CXXFLAGS -fno-common"])
3000
3094
KDE_CHECK_COMPILER_FLAG(fexceptions, [USE_EXCEPTIONS="-fexceptions"], USE_EXCEPTIONS= )
3001
3095
ENABLE_PERMISSIVE_FLAG="-fpermissive"
3097
if test "$kde_use_pch" = "yes"; then
3098
AC_MSG_CHECKING(whether gcc supports precompiling c header files)
3100
if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
3101
kde_gcc_supports_pch=yes
3104
kde_gcc_supports_pch=no
3107
if test "$kde_gcc_supports_pch" = "yes"; then
3108
AC_MSG_CHECKING(whether gcc supports precompiling c++ header files)
3109
if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then
3110
kde_gcc_supports_pch=yes
3113
kde_gcc_supports_pch=no
3117
rm -f conftest.h conftest.h.gch
3119
AM_CONDITIONAL(unsermake_enable_pch, test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes")
3003
3121
if test "$CXX" = "KCC"; then
3004
3122
dnl unfortunately we currently cannot disable exception support in KCC
3006
3124
dnl KDE_CHECK_COMPILER_FLAG(-no_exceptions,[CXXFLAGS="$CXXFLAGS --no_exceptions"])
3007
3125
dnl KDE_CHECK_COMPILER_FLAG(-exceptions, [USE_EXCEPTIONS="--exceptions"], USE_EXCEPTIONS= )
3010
AC_HELP_STRING([--enable-pch],
3011
[enables precompiled header support (currently only KCC) [default=no]]),
3013
kde_use_pch=$enableval
3016
3127
if test "$kde_use_pch" = "yes"; then
3017
3128
dnl TODO: support --pch-dir!
3018
3129
KDE_CHECK_COMPILER_FLAG(-pch,[CXXFLAGS="$CXXFLAGS --pch"])
3068
3179
KDE_CHECK_COMPILER_FLAG(O0,[NOOPT_CXXFLAGS=-O0])
3181
AC_ARG_ENABLE(coverage,
3182
AC_HELP_STRING([--enable-coverage],[use gcc coverage testing]), [
3183
if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
3184
ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
3185
ac_coverage_linker="-lgcc"
3186
elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
3187
ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
3188
ac_coverage_linker=""
3190
AC_MSG_ERROR([coverage with your compiler is not supported])
3192
CFLAGS="$CFLAGS $ac_coverage_compiler"
3193
CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
3194
LDFLAGS="$LDFLAGS $ac_coverage_linker"
3070
3197
AC_SUBST(NOOPT_CXXFLAGS)
3071
3198
AC_SUBST(NOOPT_CFLAGS)
3072
3199
AC_SUBST(ENABLE_PERMISSIVE_FLAG)
3201
KDE_CHECK_NEW_LDFLAGS
3074
3202
KDE_CHECK_FINAL
3075
3203
KDE_CHECK_CLOSURE
3076
3204
KDE_CHECK_NMCHECK
3078
3206
ifdef([AM_DEPENDENCIES], AC_REQUIRE([KDE_ADD_DEPENDENCIES]), [])
3209
AC_DEFUN([KDE_CHECK_AND_ADD_HIDDEN_VISIBILITY],
3211
if test "$GXX" = "yes"; then
3212
KDE_CHECK_COMPILER_FLAG(fno-exceptions,[CXXFLAGS="$CXXFLAGS -fno-exceptions"])
3213
KDE_CHECK_COMPILER_FLAG(fno-check-new, [CXXFLAGS="$CXXFLAGS -fno-check-new"])
3214
KDE_CHECK_COMPILER_FLAG(fno-common, [CXXFLAGS="$CXXFLAGS -fno-common"])
3215
KDE_CHECK_COMPILER_FLAG(fvisibility=hidden,
3217
CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
3218
HAVE_GCC_VISIBILITY=1
3219
AC_DEFINE_UNQUOTED(__KDE_HAVE_GCC_VISIBILITY, "$HAVE_GCC_VISIBILITY", [define to 1 if -fvisibility is supported])
3224
AC_DEFUN([KDE_ENABLE_HIDDEN_VISIBILITY],
3226
AC_REQUIRE([KDE_CHECK_AND_ADD_HIDDEN_VISIBILITY])
3081
3229
AC_DEFUN([KDE_ADD_DEPENDENCIES],
3083
3231
[A]M_DEPENDENCIES(CC)
3109
3257
AC_SUBST(AUTOCONF,'$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure')
3112
# AC_DEFUN([KDE_CHECK_LIB64],
3260
AC_DEFUN([KDE_CHECK_LIB64],
3262
kdelibsuff="$kde_libs_suffix"
3263
if test -z "$kdelibsuff"; then
3115
3266
AC_ARG_ENABLE(libsuffix,
3116
3267
AC_HELP_STRING([--enable-libsuffix],
3117
3268
[/lib directory suffix (64,32,none[=default])]),
3187
3342
dnl Check for the type of the third argument of getsockname
3188
AC_DEFUN([AC_CHECK_SOCKLEN_T], [
3189
AC_MSG_CHECKING(for socklen_t)
3190
AC_CACHE_VAL(ac_cv_socklen_t, [
3194
#include <sys/types.h>
3195
#include <sys/socket.h>
3198
getsockname(0,(struct sockaddr*)0, &a);
3200
ac_cv_socklen_t=socklen_t,
3343
AC_DEFUN([AC_CHECK_SOCKLEN_T],
3345
AC_MSG_CHECKING(for socklen_t)
3346
AC_CACHE_VAL(kde_cv_socklen_t,
3201
3350
AC_TRY_COMPILE([
3202
#include <sys/types.h>
3203
#include <sys/socket.h>
3206
getsockname(0,(struct sockaddr*)0, &a);
3208
ac_cv_socklen_t=int,
3209
ac_cv_socklen_t=size_t
3215
AC_MSG_RESULT($ac_cv_socklen_t)
3216
if test "$ac_cv_socklen_t" != "socklen_t"; then
3217
AC_DEFINE_UNQUOTED(socklen_t, $ac_cv_socklen_t,
3218
[Define the real type of socklen_t])
3220
AC_DEFINE_UNQUOTED(ksize_t, socklen_t, [Compatibility define])
3351
#include <sys/types.h>
3352
#include <sys/socket.h>
3356
getpeername(0,0,&len);
3359
kde_cv_socklen_t=yes
3360
kde_cv_socklen_t_equiv=socklen_t
3364
AC_MSG_RESULT($kde_cv_socklen_t)
3365
if test $kde_cv_socklen_t = no; then
3366
AC_MSG_CHECKING([for socklen_t equivalent for socket functions])
3367
AC_CACHE_VAL(kde_cv_socklen_t_equiv,
3369
kde_cv_socklen_t_equiv=int
3371
for t in int size_t unsigned long "unsigned long"; do
3373
#include <sys/types.h>
3374
#include <sys/socket.h>
3378
getpeername(0,0,&len);
3381
kde_cv_socklen_t_equiv="$t"
3387
AC_MSG_RESULT($kde_cv_socklen_t_equiv)
3389
AC_DEFINE_UNQUOTED(kde_socklen_t, $kde_cv_socklen_t_equiv,
3390
[type to use in place of socklen_t if not defined])
3391
AC_DEFINE_UNQUOTED(ksize_t, $kde_cv_socklen_t_equiv,
3392
[type to use in place of socklen_t if not defined (deprecated, use kde_socklen_t)])
3224
3395
dnl This is a merge of some macros out of the gettext aclocal.m4
3616
3787
AC_TRY_LINK([#include <GL/gl.h>
3617
3788
#include <GL/glu.h>
3619
ac_cv_have_gl="mesa", ac_cv_have_gl="no")
3620
if test "x$ac_cv_have_gl" = "xno"; then
3621
LDFLAGS="$ac_save_ldflags $X_LDFLAGS $GL_LDFLAGS $all_libraries -lGLU -lGL"
3622
test "x$kde_use_qt_mac" != xyes && test "x$kde_use_qt_emb" != xyes && LDFLAGS="$LDFLAGS -lX11"
3623
LDFLAGS="$LDFLAGS $LIB_XEXT -lm $LIBSOCKET"
3624
CXXFLAGS="$ac_save_cflags $X_INCLUDES"
3625
test -n "$GL_INCLUDE" && CFLAGS="-I$GL_INCLUDE $CFLAGS"
3626
AC_TRY_LINK([#include <GL/gl.h>
3629
ac_cv_have_gl="yes", ac_cv_have_gl="no")
3790
ac_cv_have_gl="yes", ac_cv_have_gl="no")
3631
3791
AC_LANG_RESTORE
3632
3792
LDFLAGS="$ac_save_ldflags"
3633
3793
CXXFLAGS="$ac_save_cxxflags"
3642
3802
AC_DEFINE(HAVE_GL, 1, [Defines if you have GL (Mesa, OpenGL, ...)])
3643
3803
if test "$GL_LDFLAGS" = ""; then
3644
if test "$ac_cv_have_gl" = "mesa"; then
3645
GLLIB='-lMesaGLU -lMesaGL $(LIB_X11)'
3647
GLLIB='-lGLU -lGL $(LIB_X11)'
3804
GLLIB='-lGLU -lGL $(LIB_X11)'
3650
if test "$ac_cv_have_gl" = "mesa"; then
3651
GLLIB="$GL_LDFLAGS -lMesaGLU -lMesaGL "'$(LIB_X11)'
3653
GLLIB="$GL_LDFLAGS -lGLU -lGL "'$(LIB_X11)'
3806
GLLIB="$GL_LDFLAGS -lGLU -lGL "'$(LIB_X11)'
3656
3808
if test "$GL_INCLUDE" = ""; then
3951
4103
AC_DEFUN([KDE_CHECK_LIBPTHREAD],
4105
dnl This code is here specifically to handle the
4106
dnl various flavors of threading library on FreeBSD
4107
dnl 4-, 5-, and 6-, and the (weird) rules around it.
4108
dnl There may be an environment PTHREAD_LIBS that
4109
dnl specifies what to use; otherwise, search for it.
4110
dnl -pthread is special cased and unsets LIBPTHREAD
3955
4114
if test -n "$PTHREAD_LIBS"; then
3956
PTHREAD_LIBS_save="$PTHREAD_LIBS"
3957
PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
3958
KDE_CHECK_LIB($PTHREAD_LIBS, pthread_create, [LIBPTHREAD="$PTHREAD_LIBS_save"] )
3959
PTHREAD_LIBS="$PTHREAD_LIBS_save"
4115
if test "x$PTHREAD_LIBS" = "x-pthread" ; then
4116
LIBPTHREAD="PTHREAD"
4118
PTHREAD_LIBS_save="$PTHREAD_LIBS"
4119
PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
4120
AC_MSG_CHECKING([for pthread_create in $PTHREAD_LIBS])
4121
KDE_CHECK_LIB($PTHREAD_LIBS, pthread_create, [
4122
LIBPTHREAD="$PTHREAD_LIBS_save"])
4123
PTHREAD_LIBS="$PTHREAD_LIBS_save"
4127
dnl Is this test really needed, in the face of the Tru64 test below?
3962
4128
if test -z "$LIBPTHREAD"; then
3963
AC_CHECK_LIB(pthread, pthread_create, [LIBPTHREAD="-lpthread"] )
4129
AC_CHECK_LIB(pthread, pthread_create, [LIBPTHREAD="-lpthread"])
4132
dnl This is a special Tru64 check, see BR 76171 issue #18.
4133
if test -z "$LIBPTHREAD" ; then
4134
AC_MSG_CHECKING([for pthread_create in -lpthread])
4136
LIBS="$LIBS -lpthread"
4137
AC_TRY_LINK([#include <pthread.h>],[(void)pthread_create(0,0,0,0);],[
4139
LIBPTHREAD="-lpthread"],[
4144
dnl Un-special-case for FreeBSD.
4145
if test "x$LIBPTHREAD" = "xPTHREAD" ; then
3966
4149
AC_SUBST(LIBPTHREAD)
4191
4374
AC_DEFUN([KDE_CHECK_PYTHON],
4193
KDE_CHECK_PYTHON_INTERN("2.3",
4194
[KDE_CHECK_PYTHON_INTERN("2.2",
4195
[KDE_CHECK_PYTHON_INTERN("2.1",
4196
[KDE_CHECK_PYTHON_INTERN("2.0",
4197
[KDE_CHECK_PYTHON_INTERN($1, $2) ])
4376
KDE_CHECK_PYTHON_INTERN("2.4",
4377
[KDE_CHECK_PYTHON_INTERN("2.3",
4378
[KDE_CHECK_PYTHON_INTERN("2.2",
4379
[KDE_CHECK_PYTHON_INTERN("2.1",
4380
[KDE_CHECK_PYTHON_INTERN("2.0",
4381
[KDE_CHECK_PYTHON_INTERN($1, $2) ])
4203
4388
AC_DEFUN([KDE_CHECK_STL],
4524
4709
# And delete superfluous '/' to make compares easier
4525
4710
prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
4526
4711
exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
4713
kde_libs_prefix='$(prefix)'
4714
kde_libs_htmldir='$(kde_htmldir)'
4715
AC_SUBST(kde_libs_prefix)
4716
AC_SUBST(kde_libs_htmldir)
4527
4717
KDE_FAST_CONFIGURE
5647
AC_DEFUN([KDE_CHECK_LARGEFILE],
5650
if test "$ac_cv_sys_file_offset_bits" != no; then
5651
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
5654
if test "x$ac_cv_sys_large_files" != "xno"; then
5655
CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=1"
5660
dnl A small extension to PKG_CHECK_MODULES (defined in pkg.m4.in)
5661
dnl which allows to search for libs that get installed into the KDE prefix.
5663
dnl Syntax: KDE_PKG_CHECK_MODULES(KSTUFF, libkexif >= 0.2 glib = 1.3.4, action-if, action-not)
5664
dnl defines KSTUFF_LIBS, KSTUFF_CFLAGS, see pkg-config man page
5665
dnl also defines KSTUFF_PKG_ERRORS on error
5666
AC_DEFUN([KDE_PKG_CHECK_MODULES], [
5668
PKG_CONFIG_PATH="$prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
5669
if test "$prefix" != "$kde_libs_prefix"; then
5670
PKG_CONFIG_PATH="$kde_libs_prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
5672
export PKG_CONFIG_PATH
5673
PKG_CHECK_MODULES($1,$2,$3,$4)
5455
5676
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
5457
5678
# serial 47 AC_PROG_LIBTOOL
7988
8209
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7989
8210
case "$host_os" in
7990
8211
rhapsody* | darwin1.[[012]])
7991
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
8212
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
7993
8214
*) # Darwin 1.3 on
7994
test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
8215
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8216
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
8218
case ${MACOSX_DEPLOYMENT_TARGET} in
8220
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
8223
allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
7997
8229
output_verbose_link_cmd='echo'
7998
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
7999
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8230
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
8231
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
8000
8232
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8001
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8002
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8233
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8234
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8003
8235
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8004
8236
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
8005
8237
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8116
8348
# Check if GNU C++ uses GNU ld as the underlying linker, since the
8117
8349
# archiving commands below assume that GNU ld is being used.
8118
8350
if test "$with_gnu_ld" = yes; then
8119
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8120
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8351
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
8352
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8122
8354
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
8123
8355
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8143
8375
# linker, instead of GNU ld. If possible, this setting should
8144
8376
# overridden to take advantage of the native linker features on
8145
8377
# the platform it is being used on.
8146
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8378
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
8149
8381
# Commands to make compiler produce verbose output that lists
8237
8469
_LT_AC_SYS_LIBPATH_AIX
8238
8470
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8240
_LT_AC_TAGVAR(archive_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` '" $shared_flag"
8241
_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}$exp_sym_flag:\$export_symbols $shared_flag"
8472
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
8473
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8243
8475
if test "$host_cpu" = ia64; then
8244
8476
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8245
8477
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8246
_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"
8478
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8248
8480
# Determine the default libpath from the value encoded in an empty executable.
8249
8481
_LT_AC_SYS_LIBPATH_AIX
8258
8490
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
8259
8491
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8260
8492
# This is similar to how AIX traditionally builds it's shared libraries.
8261
_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'
8493
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8280
8512
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8282
8514
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8283
_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'
8515
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8284
8516
# If the export-symbols file already is a .def file (1st line
8285
8517
# is EXPORTS), use it as is; otherwise, prepend...
8286
8518
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8300
8532
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8301
8533
case "$host_os" in
8302
8534
rhapsody* | darwin1.[[012]])
8303
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
8535
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
8305
8537
*) # Darwin 1.3 on
8306
test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
8538
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8539
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
8541
case ${MACOSX_DEPLOYMENT_TARGET} in
8543
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
8546
allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
8309
8552
lt_int_apple_cc_single_mod=no
8312
8555
lt_int_apple_cc_single_mod=yes
8314
8557
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8315
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8558
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
8317
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8560
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
8319
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8562
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
8321
8564
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8322
8565
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8323
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8566
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8325
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8568
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8327
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8570
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8328
8571
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8329
8572
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
8330
8573
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8381
8624
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8384
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8627
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8385
8628
# Commands to make compiler produce verbose output that lists
8386
8629
# what "hidden" libraries, object files and flags are used when
8387
8630
# linking a shared library.
8499
8742
if test "$GXX" = yes; then
8500
8743
if test "$with_gnu_ld" = no; then
8501
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
8744
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
8503
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
8746
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
8506
8749
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8517
8760
# KCC will only create a shared library if the output file
8518
8761
# ends with ".so" (or ".sl" for HP-UX), so rename the library
8519
8762
# to its proper name (with version) after linking.
8520
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
8521
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
8763
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
8764
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
8522
8765
# Commands to make compiler produce verbose output that lists
8523
8766
# what "hidden" libraries, object files and flags are used when
8524
8767
# linking a shared library.
8541
8784
with_gnu_ld=yes
8542
8785
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8543
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8544
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8786
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
8787
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8545
8788
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8546
8789
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8547
8790
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8551
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8552
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
8794
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
8795
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
8554
8797
runpath_var=LD_RUN_PATH
8555
8798
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8606
8849
# KCC will only create a shared library if the output file
8607
8850
# ends with ".so" (or ".sl" for HP-UX), so rename the library
8608
8851
# to its proper name (with version) after linking.
8609
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
8852
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
8611
8854
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8612
8855
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8625
8868
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8626
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
8869
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
8628
8871
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8629
8872
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8642
8885
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8643
8886
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8644
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
8887
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
8646
8889
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8647
8890
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8666
8909
# KCC will only create a shared library if the output file
8667
8910
# ends with ".so" (or ".sl" for HP-UX), so rename the library
8668
8911
# to its proper name (with version) after linking.
8669
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
8912
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
8671
8914
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8672
8915
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8684
8927
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8685
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
8928
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
8686
8929
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
8687
8930
echo "-hidden">> $lib.exp~
8688
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
8931
$CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
8691
8934
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8705
8948
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8706
8949
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8707
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
8950
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
8709
8952
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8710
8953
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8762
9005
# Sun C++ 4.2, 5.x and Centerline C++
8763
9006
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8764
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9007
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
8765
9008
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8766
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9009
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
8768
9011
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8769
9012
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8807
9050
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8808
9051
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
8809
9052
if $CC --version | grep -v '^2\.7' > /dev/null; then
8810
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9053
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
8811
9054
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8812
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9055
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
8814
9057
# Commands to make compiler produce verbose output that lists
8815
9058
# what "hidden" libraries, object files and flags are used when
8819
9062
# g++ 2.7 appears to require `-G' NOT `-shared' on this
8821
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9064
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
8822
9065
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8823
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9066
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
8825
9068
# Commands to make compiler produce verbose output that lists
8826
9069
# what "hidden" libraries, object files and flags are used when
10482
10725
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10483
10726
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10484
10727
# support --undefined. This deserves some investigation. FIXME
10485
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10728
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10487
10730
_LT_AC_TAGVAR(ld_shlibs, $1)=no
10498
10741
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
10500
10743
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10501
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10744
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10502
10745
# If the export-symbols file already is a .def file (1st line
10503
10746
# is EXPORTS), use it as is; otherwise, prepend...
10504
10747
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10518
10761
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10521
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10522
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10764
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10765
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10539
10782
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10540
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10541
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10783
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10784
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10543
10786
_LT_AC_TAGVAR(ld_shlibs, $1)=no
10555
10798
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10556
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10557
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10799
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10800
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10559
10802
_LT_AC_TAGVAR(ld_shlibs, $1)=no
10668
10911
# Determine the default libpath from the value encoded in an empty executable.
10669
10912
_LT_AC_SYS_LIBPATH_AIX
10670
10913
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
10671
_LT_AC_TAGVAR(archive_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` '" $shared_flag"
10672
_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}$exp_sym_flag:\$export_symbols $shared_flag"
10914
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
10915
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10674
10917
if test "$host_cpu" = ia64; then
10675
10918
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
10676
10919
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
10677
_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"
10920
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10679
10922
# Determine the default libpath from the value encoded in an empty executable.
10680
10923
_LT_AC_SYS_LIBPATH_AIX
10689
10932
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
10690
10933
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
10691
10934
# This is similar to how AIX traditionally builds it's shared libraries.
10692
_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'
10935
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10718
10961
# Tell ltmain to make .dll files, not .so files.
10719
10962
shrext=".dll"
10720
10963
# FIXME: Setting linknames here is a bad hack.
10721
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10964
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10722
10965
# The linker will automatically build a .lib file if we build a DLL.
10723
10966
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
10724
10967
# FIXME: Should let the user specify the lib program.
10732
10975
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
10733
10976
case "$host_os" in
10734
10977
rhapsody* | darwin1.[[012]])
10735
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
10978
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
10737
10980
*) # Darwin 1.3 on
10738
test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
10981
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10982
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
10984
case ${MACOSX_DEPLOYMENT_TARGET} in
10986
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
10989
allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
10741
10995
lt_int_apple_cc_single_mod=no
10744
10998
lt_int_apple_cc_single_mod=yes
10746
11000
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10747
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11001
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
10749
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11003
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
10751
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11005
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
10752
11006
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10753
11007
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10754
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11008
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10756
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11010
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10758
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11012
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10759
11013
_LT_AC_TAGVAR(hardcode_direct, $1)=no
10760
11014
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
10761
11015
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
10798
11052
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10800
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11054
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
10801
11055
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10802
11056
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
10803
11057
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10874
11128
irix5* | irix6* | nonstopux*)
10875
11129
if test "$GCC" = yes; then
10876
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11130
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10878
11132
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10879
11133
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
10906
11160
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
10907
11161
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10908
11162
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10909
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11163
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
10910
11164
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10911
11165
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10927
11181
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10928
11182
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10929
11183
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10930
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11184
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
10931
11185
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10935
11189
if test "$GCC" = yes; then
10936
11190
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10937
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11191
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10939
11193
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10940
11194
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10946
11200
osf4* | osf5*) # as osf3* with the addition of -msym flag
10947
11201
if test "$GCC" = yes; then
10948
11202
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10949
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11203
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10950
11204
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10952
11206
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10972
11226
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
10973
11227
if test "$GCC" = yes; then
10974
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11228
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10975
11229
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10976
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11230
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
10978
11232
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979
11233
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10993
11247
if test "x$host_vendor" = xsequent; then
10994
11248
# Use $CC to link under sequent, because it throws in some extra .o
10995
11249
# files that make .init and .fini sections work.
10996
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11250
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
10998
11252
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11053
11307
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
11054
11308
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
11055
11309
if test "$GCC" = yes; then
11056
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11310
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11058
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11312
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11060
11314
runpath_var='LD_RUN_PATH'
11061
11315
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11275
11529
AC_MSG_RESULT([$SED])
11532
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
11533
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
11534
dnl also defines GSTUFF_PKG_ERRORS on error
11535
AC_DEFUN([PKG_CHECK_MODULES], [
11538
if test -z "$PKG_CONFIG"; then
11539
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
11542
if test "$PKG_CONFIG" = "no" ; then
11543
echo "*** The pkg-config script could not be found. Make sure it is"
11544
echo "*** in your path, or set the PKG_CONFIG environment variable"
11545
echo "*** to the full path to pkg-config."
11546
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11548
PKG_CONFIG_MIN_VERSION=0.9.0
11549
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11550
AC_MSG_CHECKING(for $2)
11552
if $PKG_CONFIG --exists "$2" ; then
11556
AC_MSG_CHECKING($1_CFLAGS)
11557
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
11558
AC_MSG_RESULT($$1_CFLAGS)
11560
AC_MSG_CHECKING($1_LIBS)
11561
$1_LIBS=`$PKG_CONFIG --libs "$2"`
11562
AC_MSG_RESULT($$1_LIBS)
11566
## If we have a custom action on failure, don't print errors, but
11567
## do set a variable so people can do so.
11568
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
11569
ifelse([$4], ,echo $$1_PKG_ERRORS,)
11572
AC_SUBST($1_CFLAGS)
11575
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11576
echo "*** See http://www.freedesktop.org/software/pkgconfig"
11580
if test $succeeded = yes; then
11581
ifelse([$3], , :, [$3])
11583
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])
11278
11589
# AM_CONDITIONAL -*- Autoconf -*-
11280
11591
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
12156
12467
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
12157
12468
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
12160
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
12161
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
12162
dnl also defines GSTUFF_PKG_ERRORS on error
12163
AC_DEFUN(PKG_CHECK_MODULES, [
12166
if test -z "$PKG_CONFIG"; then
12167
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
12170
if test "$PKG_CONFIG" = "no" ; then
12171
echo "*** The pkg-config script could not be found. Make sure it is"
12172
echo "*** in your path, or set the PKG_CONFIG environment variable"
12173
echo "*** to the full path to pkg-config."
12174
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12176
PKG_CONFIG_MIN_VERSION=0.9.0
12177
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12178
AC_MSG_CHECKING(for $2)
12180
if $PKG_CONFIG --exists "$2" ; then
12184
AC_MSG_CHECKING($1_CFLAGS)
12185
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
12186
AC_MSG_RESULT($$1_CFLAGS)
12188
AC_MSG_CHECKING($1_LIBS)
12189
$1_LIBS=`$PKG_CONFIG --libs "$2"`
12190
AC_MSG_RESULT($$1_LIBS)
12194
## If we have a custom action on failure, don't print errors, but
12195
## do set a variable so people can do so.
12196
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
12197
ifelse([$4], ,echo $$1_PKG_ERRORS,)
12200
AC_SUBST($1_CFLAGS)
12203
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12204
echo "*** See http://www.freedesktop.org/software/pkgconfig"
12208
if test $succeeded = yes; then
12209
ifelse([$3], , :, [$3])
12211
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])