~ubuntu-branches/ubuntu/edgy/digikam/edgy-updates

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Achim Bohnet
  • Date: 2005-03-10 02:39:02 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050310023902-023nymfst5mg696c
Tags: 0.7.2-2
* debian/TODO: clean
* digikam manpage: better --detect-camera description

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
dnl Set ac_x_includes and/or ac_x_libraries.
44
44
AC_DEFUN([KDE_PATH_X_DIRECT],
45
45
[
46
 
# AC_REQUIRE([KDE_CHECK_LIB64])
 
46
AC_REQUIRE([KDE_CHECK_LIB64])
47
47
 
48
48
if test "$ac_x_includes" = NO; then
49
49
  # Guess where to find include files, by looking for this one X11 .h file.
108
108
  # Don't add to $LIBS permanently.
109
109
  ac_save_LIBS="$LIBS"
110
110
  LIBS="-l$x_direct_test_library $LIBS"
111
 
AC_TRY_LINK(, [${x_direct_test_function}()],
 
111
AC_TRY_LINK([#include <X11/Intrinsic.h>], [${x_direct_test_function}(1)],
112
112
[LIBS="$ac_save_LIBS"
113
113
# We can link X programs with no special library path.
114
114
ac_x_libraries=],
573
573
AC_DEFUN([KDE_SUBST_PROGRAMS],
574
574
[
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],
578
578
        [build_arts=yes]
579
579
    )
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])
583
583
    fi
584
584
 
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)])
592
592
        fi
593
593
        KDE_FIND_PATH(meinproc, MEINPROC, [$kde_default_bindirs])
594
594
 
595
595
        kde32ornewer=1
 
596
        kde33ornewer=1
596
597
        if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
597
598
            kde32ornewer=
 
599
            kde33ornewer=
598
600
        else
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
600
603
                kde32ornewer=
 
604
              fi
 
605
              if test "$kde_qtsubver" -le 2; then
 
606
                kde33ornewer=
 
607
              fi
601
608
            fi
602
609
        fi
603
610
 
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)])
607
614
        fi
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)
 
618
        fi
 
619
        KDE_FIND_PATH(xmllint, XMLLINT, [${prefix}/bin ${exec_prefix}/bin], [XMLLINT=""])
609
620
 
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"
774
785
   # darwin requires a poll emulation library
775
786
   AC_CHECK_LIB(poll, poll, LIB_POLL="-lpoll")
776
787
 
 
788
   # for some image handling on Mac OS X
 
789
   AC_CHECK_HEADERS(Carbon/Carbon.h)
 
790
 
777
791
   # CoreAudio framework
778
792
   AC_CHECK_HEADER(CoreAudio/CoreAudio.h, [
779
793
     AC_DEFINE(HAVE_COREAUDIO, 1, [Define if you have the CoreAudio API])
862
876
AC_DEFUN([K_PATH_X],
863
877
[
864
878
AC_REQUIRE([KDE_MISC_TESTS])dnl
865
 
# AC_REQUIRE([KDE_CHECK_LIB64])
 
879
AC_REQUIRE([KDE_CHECK_LIB64])
866
880
 
867
881
AC_ARG_ENABLE(
868
882
  embedded,
885
899
  kde_use_qt_mac=no
886
900
)
887
901
 
 
902
# used to disable x11-specific stuff on special platforms
 
903
AM_CONDITIONAL(include_x11, test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no")
 
904
 
888
905
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
889
906
 
890
907
AC_MSG_CHECKING(for X)
980
997
  X_LDFLAGS="-L$x_libraries"
981
998
fi
982
999
all_includes="$X_INCLUDES"
983
 
all_libraries="$X_LDFLAGS"
 
1000
all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED $LDFLAGS_NEW_DTAGS"
984
1001
 
985
1002
# Check for libraries that X11R6 Xt/Xaw programs need.
986
1003
ac_save_LDFLAGS="$LDFLAGS"
1142
1159
AC_DEFUN([KDE_USE_QT],
1143
1160
[
1144
1161
if test -z "$1"; then
1145
 
  # Current default Qt version: 3.1
 
1162
  # Current default Qt version: 3.3
1146
1163
  kde_qtver=3
1147
 
  kde_qtsubver=1
 
1164
  kde_qtsubver=3
1148
1165
else
1149
1166
  kde_qtsubver=`echo "$1" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
1150
1167
  # following is the check if subversion isnt found in passed argument
1168
1185
  if test "$kde_qtver" = "3"; then
1169
1186
    if test $kde_qtsubver -gt 0; then
1170
1187
         if test $kde_qtsubver -gt 1; then
1171
 
            kde_qt_minversion=">= Qt 3.2"
 
1188
            if test $kde_qtsubver -gt 2; then
 
1189
                kde_qt_minversion=">= Qt 3.3"
 
1190
            else
 
1191
                kde_qt_minversion=">= Qt 3.2"
 
1192
            fi
1172
1193
         else
1173
1194
            kde_qt_minversion=">= Qt 3.1 (20021021)"
1174
1195
         fi
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,"`
1192
1213
     else
1193
 
       kde_qt_verstring="QT_VERSION >= 300"
 
1214
       kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000"
1194
1215
     fi
1195
1216
   fi
1196
1217
   if test $kde_qtver = 2; then
1285
1306
[
1286
1307
AC_REQUIRE([K_PATH_X])
1287
1308
AC_REQUIRE([KDE_USE_QT])
1288
 
# AC_REQUIRE([KDE_CHECK_LIB64])
 
1309
AC_REQUIRE([KDE_CHECK_LIB64])
1289
1310
 
1290
1311
dnl ------------------------------------------------------------------------
1291
1312
dnl Add configure flag to enable linking to MT version of Qt library.
1558
1579
 QT_LDFLAGS=""
1559
1580
else
1560
1581
 QT_LDFLAGS="-L$qt_libraries"
1561
 
 all_libraries="$all_libraries $QT_LDFLAGS"
 
1582
 all_libraries="$QT_LDFLAGS $all_libraries"
1562
1583
fi
1563
1584
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
1564
1585
 
1688
1709
  AC_SUBST(KDE_NO_UNDEFINED)
1689
1710
])
1690
1711
 
 
1712
dnl Check if the linker supports --enable-new-dtags and --as-needed
 
1713
AC_DEFUN([KDE_CHECK_NEW_LDFLAGS],
 
1714
[
 
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)
 
1720
 
 
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"],)
 
1727
 
 
1728
       KDE_CHECK_COMPILER_FLAG([Wl,--as-needed],
 
1729
                [LDFLAGS_AS_NEEDED="-Wl,--as-needed"],)
 
1730
  fi
 
1731
  AC_SUBST(LDFLAGS_AS_NEEDED)
 
1732
  AC_SUBST(LDFLAGS_NEW_DTAGS)
 
1733
])
 
1734
 
1691
1735
AC_DEFUN([KDE_CHECK_NMCHECK],
1692
1736
[
1693
1737
  AC_ARG_ENABLE(nmcheck,AC_HELP_STRING([--enable-nmcheck],[enable automatic namespace cleanness check]),
1722
1766
[
1723
1767
AC_REQUIRE([KDE_CHECK_STL])
1724
1768
AC_REQUIRE([AC_PATH_QT])dnl
1725
 
# AC_REQUIRE([KDE_CHECK_LIB64])
 
1769
AC_REQUIRE([KDE_CHECK_LIB64])
1726
1770
 
1727
1771
AC_CHECK_RPATH
1728
1772
AC_MSG_CHECKING([for KDE])
1848
1892
 
1849
1893
KDE_LDFLAGS="-L$kde_libraries"
1850
1894
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then 
1851
 
 all_libraries="$all_libraries $KDE_LDFLAGS"
 
1895
 all_libraries="$KDE_LDFLAGS $all_libraries"
1852
1896
fi
1853
1897
 
1854
1898
AC_SUBST(KDE_LDFLAGS)
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")
2289
2337
        [MKSTEMPS])
2290
2338
])
2291
2339
 
 
2340
AC_DEFUN([AC_CHECK_MKSTEMP],
 
2341
[
 
2342
        KDE_CHECK_FUNC_EXT(mkstemp, [
 
2343
#include <stdlib.h>
 
2344
#include <unistd.h>
 
2345
],
 
2346
        [
 
2347
mkstemp("/tmp/aaaXXXXXX");
 
2348
],
 
2349
        [int mkstemp(char *)],
 
2350
        [MKSTEMP])
 
2351
])
 
2352
 
2292
2353
AC_DEFUN([AC_CHECK_MKDTEMP],
2293
2354
[
2294
2355
        KDE_CHECK_FUNC_EXT(mkdtemp, [
2328
2389
  LIBS=$kde_libs_safe
2329
2390
  AC_SUBST(LIBRESOLV)
2330
2391
 
2331
 
  AC_MSG_CHECKING([if res_init is available])
2332
 
  AC_TRY_COMPILE(
 
2392
  KDE_CHECK_FUNC_EXT(res_init,
2333
2393
    [
2334
2394
#include <sys/types.h>
2335
2395
#include <netinet/in.h>
2336
2396
#include <arpa/nameser.h>
2337
2397
#include <resolv.h>
2338
2398
    ],
2339
 
    [
2340
 
      res_init();
2341
 
    ],
2342
 
    [
2343
 
      AC_MSG_RESULT(yes)
2344
 
      AC_DEFINE(HAVE_RES_INIT, 1, [Define if you have the res_init function])
2345
 
    ],
2346
 
    [ AC_MSG_RESULT(no) ]
2347
 
  )
 
2399
    [res_init()],
 
2400
    [int res_init(void)],
 
2401
    [RES_INIT])
2348
2402
])
2349
2403
 
2350
2404
AC_DEFUN([AC_CHECK_STRLCPY],
2372
2426
        [STRLCAT])
2373
2427
])
2374
2428
 
 
2429
AC_DEFUN([AC_CHECK_RES_QUERY],
 
2430
[
 
2431
        KDE_CHECK_FUNC_EXT(res_query, [
 
2432
#include <sys/types.h>
 
2433
#include <netinet/in.h>
 
2434
#include <arpa/nameser.h>
 
2435
#include <resolv.h>
 
2436
#include <netdb.h>
 
2437
],
 
2438
[
 
2439
res_query(NULL, 0, 0, NULL, 0);
 
2440
],
 
2441
        [int res_query(const char *, int, int, unsigned char *, int)],
 
2442
        [RES_QUERY])
 
2443
])
 
2444
 
 
2445
AC_DEFUN([AC_CHECK_DN_SKIPNAME],
 
2446
[
 
2447
        KDE_CHECK_FUNC_EXT(dn_skipname, [
 
2448
#include <sys/types.h>
 
2449
#include <netinet/in.h>
 
2450
#include <arpa/nameser.h>
 
2451
#include <resolv.h>
 
2452
],
 
2453
[
 
2454
dn_skipname (NULL, NULL);
 
2455
],
 
2456
        [int dn_skipname (unsigned char *, unsigned char *)],
 
2457
        [DN_SKIPNAME])
 
2458
])
 
2459
 
 
2460
 
2375
2461
AC_DEFUN([AC_FIND_GIF],
2376
2462
   [AC_MSG_CHECKING([for giflib])
2377
2463
AC_CACHE_VAL(ac_cv_lib_gif,
2879
2965
    fi
2880
2966
   ], [kde_use_strict_options="no"])
2881
2967
 
2882
 
  AC_ARG_ENABLE(warnings,AC_HELP_STRING([--disable-warnings],[disables compilation with -Wall and similiar]),
 
2968
  AC_ARG_ENABLE(warnings,AC_HELP_STRING([--disable-warnings],[disables compilation with -Wall and similar]),
2883
2969
   [
2884
2970
    if test $enableval = "no"; then
2885
2971
         kde_use_warnings="no"
2977
3063
        CXXFLAGS="-Wall -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
2978
3064
        case $host in
2979
3065
          *-*-linux-gnu)        
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"
2994
3080
  fi
2995
 
    
 
3081
 
 
3082
  AC_ARG_ENABLE(pch,
 
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 ])
 
3086
 
 
3087
  HAVE_GCC_VISIBILITY=0
 
3088
  AC_SUBST([HAVE_GCC_VISIBILITY])
 
3089
 
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"
 
3096
 
 
3097
    if test "$kde_use_pch" = "yes"; then
 
3098
        AC_MSG_CHECKING(whether gcc supports precompiling c header files)
 
3099
        echo >conftest.h
 
3100
        if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
 
3101
            kde_gcc_supports_pch=yes
 
3102
            AC_MSG_RESULT(yes)
 
3103
        else
 
3104
            kde_gcc_supports_pch=no
 
3105
            AC_MSG_RESULT(no)
 
3106
        fi
 
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
 
3111
                AC_MSG_RESULT(yes)
 
3112
            else
 
3113
                kde_gcc_supports_pch=no
 
3114
                AC_MSG_RESULT(no)
 
3115
            fi
 
3116
        fi
 
3117
        rm -f conftest.h conftest.h.gch
 
3118
    fi
 
3119
    AM_CONDITIONAL(unsermake_enable_pch, test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes")
3002
3120
  fi
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=   )
3008
3126
 
3009
 
    AC_ARG_ENABLE(pch,
3010
 
        AC_HELP_STRING([--enable-pch],
3011
 
                       [enables precompiled header support (currently only KCC) [default=no]]),
3012
 
    [
3013
 
      kde_use_pch=$enableval
3014
 
    ],[kde_use_pch=no])
3015
 
 
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"])
3067
3178
  fi
3068
3179
  KDE_CHECK_COMPILER_FLAG(O0,[NOOPT_CXXFLAGS=-O0])
3069
3180
 
 
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=""
 
3189
      else
 
3190
        AC_MSG_ERROR([coverage with your compiler is not supported])
 
3191
      fi
 
3192
      CFLAGS="$CFLAGS $ac_coverage_compiler"
 
3193
      CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
 
3194
      LDFLAGS="$LDFLAGS $ac_coverage_linker"
 
3195
    ])
 
3196
 
3070
3197
  AC_SUBST(NOOPT_CXXFLAGS)
3071
3198
  AC_SUBST(NOOPT_CFLAGS)
3072
3199
  AC_SUBST(ENABLE_PERMISSIVE_FLAG)
3073
3200
 
 
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]), [])
3079
3207
])
3080
3208
 
 
3209
AC_DEFUN([KDE_CHECK_AND_ADD_HIDDEN_VISIBILITY],
 
3210
[
 
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, 
 
3216
    [
 
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])
 
3220
    ])
 
3221
  fi
 
3222
])
 
3223
 
 
3224
AC_DEFUN([KDE_ENABLE_HIDDEN_VISIBILITY],
 
3225
[
 
3226
  AC_REQUIRE([KDE_CHECK_AND_ADD_HIDDEN_VISIBILITY])
 
3227
])
 
3228
 
3081
3229
AC_DEFUN([KDE_ADD_DEPENDENCIES],
3082
3230
[
3083
3231
   [A]M_DEPENDENCIES(CC)
3092
3240
AC_REQUIRE([AC_ENABLE_STATIC])
3093
3241
 
3094
3242
AC_REQUIRE([AC_LIBTOOL_DLOPEN])
3095
 
# AC_REQUIRE([KDE_CHECK_LIB64])
 
3243
AC_REQUIRE([KDE_CHECK_LIB64])
3096
3244
 
3097
3245
AC_OBJEXT
3098
3246
AC_EXEEXT
3109
3257
AC_SUBST(AUTOCONF,'$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure')
3110
3258
])
3111
3259
 
3112
 
# AC_DEFUN([KDE_CHECK_LIB64],
 
3260
AC_DEFUN([KDE_CHECK_LIB64],
3113
3261
[
3114
 
    kdelibsuff=no
 
3262
    kdelibsuff="$kde_libs_suffix"
 
3263
    if test -z "$kdelibsuff"; then
 
3264
       kdelibsuff=no
 
3265
    fi
3115
3266
    AC_ARG_ENABLE(libsuffix,
3116
3267
        AC_HELP_STRING([--enable-libsuffix],
3117
3268
            [/lib directory suffix (64,32,none[=default])]),
3129
3280
            libdir="$libdir${kdelibsuff}"
3130
3281
            AC_SUBST([libdir], ["$libdir"])  dnl ugly hack for lib64 platforms
3131
3282
        fi
3132
 
        AC_DEFINE_UNQUOTED(KDELIBSUFF, ["\"${kdelibsuff}\""], Suffix for lib directories)
 
3283
        AC_DEFINE_UNQUOTED(KDELIBSUFF, ["${kdelibsuff}"], Suffix for lib directories)
3133
3284
        AC_MSG_RESULT([using lib directory suffix $kdelibsuff])
3134
3285
    fi
3135
3286
])
3164
3315
 
3165
3316
if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
3166
3317
 
3167
 
  KDE_RPATH="-R \$(kde_libraries)"
 
3318
  KDE_RPATH="-R \$(libdir)"
 
3319
 
 
3320
  if test "$kde_libraries" != "$libdir"; then
 
3321
      KDE_RPATH="$KDE_RPATH -R \$(kde_libraries)"
 
3322
  fi
3168
3323
 
3169
3324
  if test -n "$qt_libraries"; then
3170
3325
    KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
3185
3340
])
3186
3341
 
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, [
3191
 
    AC_LANG_SAVE
3192
 
    AC_LANG_CPLUSPLUS
3193
 
    AC_TRY_COMPILE([
3194
 
#include <sys/types.h>
3195
 
#include <sys/socket.h>
3196
 
      ],[
3197
 
socklen_t a=0;
3198
 
getsockname(0,(struct sockaddr*)0, &a);
3199
 
      ],
3200
 
      ac_cv_socklen_t=socklen_t,
 
3343
AC_DEFUN([AC_CHECK_SOCKLEN_T],
 
3344
[
 
3345
   AC_MSG_CHECKING(for socklen_t)
 
3346
   AC_CACHE_VAL(kde_cv_socklen_t,
 
3347
   [
 
3348
      AC_LANG_PUSH(C++)
 
3349
      kde_cv_socklen_t=no
3201
3350
      AC_TRY_COMPILE([
3202
 
#include <sys/types.h>
3203
 
#include <sys/socket.h>
3204
 
        ],[
3205
 
int a=0;
3206
 
getsockname(0,(struct sockaddr*)0, &a);
3207
 
        ],
3208
 
        ac_cv_socklen_t=int,
3209
 
        ac_cv_socklen_t=size_t
3210
 
      )
3211
 
    )
3212
 
    AC_LANG_RESTORE
3213
 
  ])
3214
 
 
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])
3219
 
  fi
3220
 
  AC_DEFINE_UNQUOTED(ksize_t, socklen_t, [Compatibility define])
3221
 
 
 
3351
         #include <sys/types.h>
 
3352
         #include <sys/socket.h>
 
3353
      ],
 
3354
      [
 
3355
         socklen_t len;
 
3356
         getpeername(0,0,&len);
 
3357
      ],
 
3358
      [
 
3359
         kde_cv_socklen_t=yes
 
3360
         kde_cv_socklen_t_equiv=socklen_t
 
3361
      ])
 
3362
      AC_LANG_POP(C++)
 
3363
   ])
 
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,
 
3368
      [
 
3369
         kde_cv_socklen_t_equiv=int
 
3370
         AC_LANG_PUSH(C++)
 
3371
         for t in int size_t unsigned long "unsigned long"; do
 
3372
            AC_TRY_COMPILE([
 
3373
               #include <sys/types.h>
 
3374
               #include <sys/socket.h>
 
3375
            ],
 
3376
            [
 
3377
               $t len;
 
3378
               getpeername(0,0,&len);
 
3379
            ],
 
3380
            [
 
3381
               kde_cv_socklen_t_equiv="$t"
 
3382
               break
 
3383
            ])
 
3384
         done
 
3385
         AC_LANG_POP(C++)
 
3386
      ])
 
3387
      AC_MSG_RESULT($kde_cv_socklen_t_equiv)
 
3388
   fi
 
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)])
3222
3393
])
3223
3394
 
3224
3395
dnl This is a merge of some macros out of the gettext aclocal.m4
3608
3779
    AC_LANG_CPLUSPLUS
3609
3780
    ac_save_ldflags="$LDFLAGS"
3610
3781
    ac_save_cxxflags="$CXXFLAGS"
3611
 
    LDFLAGS="$LDFLAGS $GL_LDFLAGS $X_LDFLAGS $all_libraries -lMesaGL -lMesaGLU"
 
3782
    LDFLAGS="$LDFLAGS $GL_LDFLAGS $X_LDFLAGS $all_libraries -lGL -lGLU"
3612
3783
    test "x$kde_use_qt_mac" != xyes && test "x$kde_use_qt_emb" != xyes && LDFLAGS="$LDFLAGS -lX11"
3613
3784
    LDFLAGS="$LDFLAGS $LIB_XEXT -lm $LIBSOCKET"
3614
3785
    CXXFLAGS="$CFLAGS $X_INCLUDES"
3616
3787
    AC_TRY_LINK([#include <GL/gl.h>
3617
3788
#include <GL/glu.h>
3618
3789
], [],
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>
3627
 
#include <GL/glu.h>
3628
 
], [],
3629
 
          ac_cv_have_gl="yes", ac_cv_have_gl="no")
3630
 
    fi
 
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"
3641
3801
  else
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)'
3646
 
       else
3647
 
          GLLIB='-lGLU -lGL $(LIB_X11)'
3648
 
       fi
 
3804
       GLLIB='-lGLU -lGL $(LIB_X11)'
3649
3805
    else
3650
 
       if test "$ac_cv_have_gl" = "mesa"; then
3651
 
          GLLIB="$GL_LDFLAGS -lMesaGLU -lMesaGL "'$(LIB_X11)'
3652
 
       else
3653
 
          GLLIB="$GL_LDFLAGS -lGLU -lGL "'$(LIB_X11)'
3654
 
       fi
 
3806
       GLLIB="$GL_LDFLAGS -lGLU -lGL "'$(LIB_X11)'
3655
3807
    fi
3656
3808
    if test "$GL_INCLUDE" = ""; then
3657
3809
       GLINC=""
3950
4102
 
3951
4103
AC_DEFUN([KDE_CHECK_LIBPTHREAD],
3952
4104
[
 
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
 
4111
  dnl below if found.
3953
4112
  LIBPTHREAD=""
3954
4113
 
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"
 
4117
    else
 
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"
 
4124
    fi
3960
4125
  fi
3961
4126
 
 
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"])
 
4130
  fi
 
4131
 
 
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])
 
4135
    kde_safe_libs=$LIBS
 
4136
    LIBS="$LIBS -lpthread"
 
4137
    AC_TRY_LINK([#include <pthread.h>],[(void)pthread_create(0,0,0,0);],[
 
4138
        AC_MSG_RESULT(yes)
 
4139
        LIBPTHREAD="-lpthread"],[
 
4140
        AC_MSG_RESULT(no)])
 
4141
    LIBS=$kde_safe_libs
 
4142
  fi
 
4143
 
 
4144
  dnl Un-special-case for FreeBSD.
 
4145
  if test "x$LIBPTHREAD" = "xPTHREAD" ; then
 
4146
    LIBPTHREAD=""
3964
4147
  fi
3965
4148
 
3966
4149
  AC_SUBST(LIBPTHREAD)
4190
4373
 
4191
4374
AC_DEFUN([KDE_CHECK_PYTHON],
4192
4375
[
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) ])
 
4382
         ])
4198
4383
       ])
4199
4384
     ])
4200
 
   ])
 
4385
  ])
4201
4386
])
4202
4387
 
4203
4388
AC_DEFUN([KDE_CHECK_STL],
4229
4414
   else
4230
4415
         AC_MSG_ERROR([Your Installation isn't able to compile simple C++ programs.
4231
4416
Check config.log for details - if you're using a Linux distribution you might miss
4232
 
a package named similiar to libstd++-dev.])
 
4417
a package named similar to libstdc++-dev.])
4233
4418
   fi
4234
4419
 
4235
4420
   CXXFLAGS="$ac_save_CXXFLAGS"
4321
4506
[
4322
4507
 
4323
4508
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
 
4509
TOPSUBDIRS=""
4324
4510
 
4325
4511
if test ! -s $srcdir/subdirs; then
4326
4512
  dnl Note: Makefile.common creates subdirs, so this is just a fallback
4327
 
  TOPSUBDIRS=""
4328
4513
  files=`cd $srcdir && ls -1`
4329
4514
  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
4330
4515
  for i in $dirs; do
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,/$,,'`
 
4712
 
 
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
4528
4718
  KDE_CONF_FILES
4529
4719
])
4556
4746
                    ])
4557
4747
  fi
4558
4748
  kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
 
4749
  kde_libs_suffix=`$KDECONFIG --libsuffix`
4559
4750
 
4560
4751
  AC_MSG_CHECKING([where to install])
4561
4752
  if test "x$prefix" = "xNONE"; then
5209
5400
AC_DEFUN([KDE_CHECK_SSL],
5210
5401
[
5211
5402
LIBSSL="-lssl -lcrypto"
5212
 
# AC_REQUIRE([KDE_CHECK_LIB64])
 
5403
AC_REQUIRE([KDE_CHECK_LIB64])
5213
5404
 
5214
5405
ac_ssl_includes=NO ac_ssl_libraries=NO
5215
5406
ssl_libraries=""
5452
5643
        ])
5453
5644
    AC_SUBST(PERL)
5454
5645
])
 
5646
 
 
5647
AC_DEFUN([KDE_CHECK_LARGEFILE],
 
5648
[
 
5649
AC_SYS_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"
 
5652
fi
 
5653
 
 
5654
if test "x$ac_cv_sys_large_files" != "xno"; then
 
5655
  CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=1"
 
5656
fi
 
5657
 
 
5658
])
 
5659
 
 
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.
 
5662
dnl
 
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], [
 
5667
 
 
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"
 
5671
   fi
 
5672
   export PKG_CONFIG_PATH
 
5673
   PKG_CHECK_MODULES($1,$2,$3,$4)
 
5674
])
 
5675
 
5455
5676
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
5456
5677
 
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'
7992
8213
      ;;
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'
 
8217
      else
 
8218
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
8219
          10.[012])
 
8220
            allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
8221
            ;;
 
8222
          10.*)
 
8223
            allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
 
8224
            ;;
 
8225
        esac
 
8226
      fi
7995
8227
      ;;
7996
8228
    esac
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'
8121
8353
 
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'
8147
8379
  fi
8148
8380
 
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"
8239
8471
 
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"
8242
8474
     else
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"
8247
8479
      else
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'
8262
8494
      fi
8263
8495
    fi
8264
8496
    ;;
8280
8512
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8281
8513
 
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
8289
8521
        echo EXPORTS > $output_objdir/$soname.def;
8290
8522
        cat $export_symbols >> $output_objdir/$soname.def;
8291
8523
      fi~
8292
 
      $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'
 
8524
      $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8293
8525
    else
8294
8526
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
8295
8527
    fi
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'
8304
8536
      ;;
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'
 
8540
      else
 
8541
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
8542
          10.[012])
 
8543
            allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
8544
            ;;
 
8545
          10.*)
 
8546
            allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
 
8547
            ;;
 
8548
        esac
 
8549
      fi
8307
8550
      ;;
8308
8551
    esac
8309
8552
    lt_int_apple_cc_single_mod=no
8312
8555
      lt_int_apple_cc_single_mod=yes
8313
8556
    fi
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'
8316
8559
    else
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'
8318
8561
    fi
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'
8320
8563
 
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}'
8324
8567
    else
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}'
8326
8569
    fi
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
8382
8625
      ;;
8383
8626
    aCC)
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.
8394
8637
      ;;
8395
8638
    *)
8396
8639
      if test "$GXX" = yes; then
8397
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8640
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
8398
8641
      else
8399
8642
        # FIXME: insert proper C++ library support
8400
8643
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
8451
8694
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
8452
8695
          ;;
8453
8696
        *)
8454
 
          _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'
 
8697
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
8455
8698
          ;;
8456
8699
        esac
8457
8700
        # Commands to make compiler produce verbose output that lists
8472
8715
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
8473
8716
              ;;
8474
8717
            *)
8475
 
              _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'
 
8718
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
8476
8719
              ;;
8477
8720
            esac
8478
8721
          fi
8487
8730
    case $cc_basename in
8488
8731
      CC)
8489
8732
        # SGI C++
8490
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
8733
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
8491
8734
 
8492
8735
        # Archives containing C++ object files must be created using
8493
8736
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
8498
8741
      *)
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'
8502
8745
          else
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'
8504
8747
          fi
8505
8748
        fi
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.
8540
8783
        # Intel C++
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'
8548
8791
        ;;
8549
8792
      cxx)
8550
8793
        # Compaq C++
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'
8553
8796
 
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'
8610
8853
 
8611
8854
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8612
8855
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8623
8866
        ;;
8624
8867
      cxx)
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'
8627
8870
 
8628
8871
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8629
8872
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8641
8884
      *)
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'
8645
8888
 
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'
8670
8913
 
8671
8914
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8672
8915
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8682
8925
        ;;
8683
8926
      cxx)
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~
8689
8932
          $rm $lib.exp'
8690
8933
 
8691
8934
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8704
8947
      *)
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'
8708
8951
 
8709
8952
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8710
8953
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8761
9004
      CC)
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'
8767
9010
 
8768
9011
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8769
9012
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8797
9040
        ;;
8798
9041
      gcx)
8799
9042
        # Green Hills C++ Compiler
8800
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
9043
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
8801
9044
 
8802
9045
        # The C++ compiler must be used to create the archive.
8803
9046
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
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'
8813
9056
 
8814
9057
            # Commands to make compiler produce verbose output that lists
8815
9058
            # what "hidden" libraries, object files and flags are used when
8818
9061
          else
8819
9062
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
8820
9063
            # platform.
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'
8824
9067
 
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'
10486
10729
      else
10487
10730
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
10488
10731
      fi
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'
10499
10742
 
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
10507
10750
          echo EXPORTS > $output_objdir/$soname.def;
10508
10751
          cat $export_symbols >> $output_objdir/$soname.def;
10509
10752
        fi~
10510
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
10753
        $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
10511
10754
      else
10512
10755
        ld_shlibs=no
10513
10756
      fi
10518
10761
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10519
10762
        wlarc=
10520
10763
      else
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'
10523
10766
      fi
10524
10767
      ;;
10525
10768
 
10537
10780
 
10538
10781
EOF
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'
10542
10785
      else
10543
10786
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
10544
10787
      fi
10553
10796
 
10554
10797
    *)
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'
10558
10801
      else
10559
10802
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
10560
10803
      fi
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"
10673
10916
       else
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"
10678
10921
        else
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'
10693
10936
        fi
10694
10937
      fi
10695
10938
      ;;
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'
10736
10979
        ;;
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'
 
10983
        else
 
10984
          case ${MACOSX_DEPLOYMENT_TARGET} in
 
10985
            10.[012])
 
10986
              allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
10987
              ;;
 
10988
            10.*)
 
10989
              allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
 
10990
              ;;
 
10991
          esac
 
10992
        fi
10739
10993
        ;;
10740
10994
      esac
10741
10995
        lt_int_apple_cc_single_mod=no
10744
10998
          lt_int_apple_cc_single_mod=yes
10745
10999
        fi
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'
10748
11002
        else
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'
10750
11004
      fi
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}'
10755
11009
        else
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}'
10757
11011
        fi
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
10797
11051
 
10798
11052
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10799
11053
    freebsd*)
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
10805
11059
 
10806
11060
    hpux9*)
10807
11061
      if test "$GCC" = yes; then
10808
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11062
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10809
11063
      else
10810
11064
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10811
11065
      fi
10823
11077
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10824
11078
        case "$host_cpu" in
10825
11079
        hppa*64*|ia64*)
10826
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11080
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10827
11081
          ;;
10828
11082
        *)
10829
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
11083
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
10830
11084
          ;;
10831
11085
        esac
10832
11086
      else
10873
11127
 
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'
10877
11131
      else
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'
10912
11166
      else
10916
11170
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10917
11171
           ;;
10918
11172
         *)
10919
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
11173
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
10920
11174
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10921
11175
           ;;
10922
11176
       esac
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'
10932
11186
      ;;
10933
11187
 
10934
11188
    osf3*)
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'
10938
11192
      else
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'
10951
11205
      else
10952
11206
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10971
11225
    solaris*)
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'
10977
11231
      else
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'
10997
11251
      else
10998
11252
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10999
11253
      fi
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'
11057
11311
      else
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'
11059
11313
      fi
11060
11314
      runpath_var='LD_RUN_PATH'
11061
11315
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11275
11529
AC_MSG_RESULT([$SED])
11276
11530
])
11277
11531
 
 
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], [
 
11536
  succeeded=no
 
11537
 
 
11538
  if test -z "$PKG_CONFIG"; then
 
11539
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
11540
  fi
 
11541
 
 
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."
 
11547
  else
 
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)
 
11551
 
 
11552
        if $PKG_CONFIG --exists "$2" ; then
 
11553
            AC_MSG_RESULT(yes)
 
11554
            succeeded=yes
 
11555
 
 
11556
            AC_MSG_CHECKING($1_CFLAGS)
 
11557
            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
 
11558
            AC_MSG_RESULT($$1_CFLAGS)
 
11559
 
 
11560
            AC_MSG_CHECKING($1_LIBS)
 
11561
            $1_LIBS=`$PKG_CONFIG --libs "$2"`
 
11562
            AC_MSG_RESULT($$1_LIBS)
 
11563
        else
 
11564
            $1_CFLAGS=""
 
11565
            $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,)
 
11570
        fi
 
11571
 
 
11572
        AC_SUBST($1_CFLAGS)
 
11573
        AC_SUBST($1_LIBS)
 
11574
     else
 
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"
 
11577
     fi
 
11578
  fi
 
11579
 
 
11580
  if test $succeeded = yes; then
 
11581
     ifelse([$3], , :, [$3])
 
11582
  else
 
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])
 
11584
  fi
 
11585
])
 
11586
 
 
11587
 
 
11588
 
11278
11589
# AM_CONDITIONAL                                              -*- Autoconf -*-
11279
11590
 
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($@)])
12158
12469
 
12159
 
 
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, [
12164
 
  succeeded=no
12165
 
 
12166
 
  if test -z "$PKG_CONFIG"; then
12167
 
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
12168
 
  fi
12169
 
 
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."
12175
 
  else
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)
12179
 
 
12180
 
        if $PKG_CONFIG --exists "$2" ; then
12181
 
            AC_MSG_RESULT(yes)
12182
 
            succeeded=yes
12183
 
 
12184
 
            AC_MSG_CHECKING($1_CFLAGS)
12185
 
            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
12186
 
            AC_MSG_RESULT($$1_CFLAGS)
12187
 
 
12188
 
            AC_MSG_CHECKING($1_LIBS)
12189
 
            $1_LIBS=`$PKG_CONFIG --libs "$2"`
12190
 
            AC_MSG_RESULT($$1_LIBS)
12191
 
        else
12192
 
            $1_CFLAGS=""
12193
 
            $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,)
12198
 
        fi
12199
 
 
12200
 
        AC_SUBST($1_CFLAGS)
12201
 
        AC_SUBST($1_LIBS)
12202
 
     else
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"
12205
 
     fi
12206
 
  fi
12207
 
 
12208
 
  if test $succeeded = yes; then
12209
 
     ifelse([$3], , :, [$3])
12210
 
  else
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])
12212
 
  fi
12213
 
])
12214
 
 
12215
 
 
12216