~ubuntu-branches/ubuntu/jaunty/goffice/jaunty-updates

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Aron Sisak
  • Date: 2007-07-24 19:38:48 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20070724193848-1drk5szc3ykeud8f
Tags: 0.4.2-0ubuntu1
* New upstream release:
  - Foocanvas bug that scaled images by 1 extra pixel. [#314864]
  - Fix compilation for Gtk+ trunk.
  - Fix chart guru help button. [#394181]
  - Minor memory leak.

Show diffs side-by-side

added added

removed removed

Lines of Context:
900
900
 
901
901
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
902
902
 
903
 
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
 
903
# serial 51 Debian 1.5.24-1 AC_PROG_LIBTOOL
904
904
 
905
905
 
906
906
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1063
1063
test -z "$ac_objext" && ac_objext=o
1064
1064
 
1065
1065
# Determine commands to create old-style static archives.
1066
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
1066
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1067
1067
old_postinstall_cmds='chmod 644 $oldlib'
1068
1068
old_postuninstall_cmds=
1069
1069
 
1150
1150
# Check for compiler boilerplate output or warnings with
1151
1151
# the simple compiler test code.
1152
1152
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1153
 
[ac_outfile=conftest.$ac_objext
1154
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
1153
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1154
ac_outfile=conftest.$ac_objext
 
1155
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1155
1156
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1156
1157
_lt_compiler_boilerplate=`cat conftest.err`
1157
1158
$rm conftest*
1163
1164
# Check for linker boilerplate output or warnings with
1164
1165
# the simple link test code.
1165
1166
AC_DEFUN([_LT_LINKER_BOILERPLATE],
1166
 
[ac_outfile=conftest.$ac_objext
1167
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
1167
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1168
ac_outfile=conftest.$ac_objext
 
1169
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1168
1170
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1169
1171
_lt_linker_boilerplate=`cat conftest.err`
1170
1172
$rm conftest*
1180
1182
# If we don't find anything, use the default library path according
1181
1183
# to the aix ld manual.
1182
1184
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1183
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1184
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
1185
 
}'`
 
1185
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1186
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
1187
lt_aix_libpath_sed='
 
1188
    /Import File Strings/,/^$/ {
 
1189
        /^0/ {
 
1190
            s/^0  *\(.*\)$/\1/
 
1191
            p
 
1192
        }
 
1193
    }'
 
1194
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1186
1195
# Check for a 64-bit object if we didn't find anything.
1187
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
1188
 
}'`; fi],[])
 
1196
if test -z "$aix_libpath"; then
 
1197
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1198
fi],[])
1189
1199
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1190
1200
])# _LT_AC_SYS_LIBPATH_AIX
1191
1201
 
1416
1426
  rm -rf conftest*
1417
1427
  ;;
1418
1428
 
1419
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
1429
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
1430
s390*-*linux*|sparc*-*linux*)
1420
1431
  # Find out which ABI we are using.
1421
1432
  echo 'int i;' > conftest.$ac_ext
1422
1433
  if AC_TRY_EVAL(ac_compile); then
1423
1434
    case `/usr/bin/file conftest.o` in
1424
1435
    *32-bit*)
1425
1436
      case $host in
 
1437
        x86_64-*kfreebsd*-gnu)
 
1438
          LD="${LD-ld} -m elf_i386_fbsd"
 
1439
          ;;
1426
1440
        x86_64-*linux*)
1427
1441
          LD="${LD-ld} -m elf_i386"
1428
1442
          ;;
1439
1453
      ;;
1440
1454
    *64-bit*)
1441
1455
      case $host in
 
1456
        x86_64-*kfreebsd*-gnu)
 
1457
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
1458
          ;;
1442
1459
        x86_64-*linux*)
1443
1460
          LD="${LD-ld} -m elf_x86_64"
1444
1461
          ;;
1510
1527
AC_CACHE_CHECK([$1], [$2],
1511
1528
  [$2=no
1512
1529
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1513
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1530
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1514
1531
   lt_compiler_flag="$3"
1515
1532
   # Insert the option either (1) after the last *FLAGS variable, or
1516
1533
   # (2) before a word containing "conftest.", or (3) at the end.
1551
1568
# ------------------------------------------------------------
1552
1569
# Check whether the given compiler option works
1553
1570
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1554
 
[AC_CACHE_CHECK([$1], [$2],
 
1571
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1572
AC_CACHE_CHECK([$1], [$2],
1555
1573
  [$2=no
1556
1574
   save_LDFLAGS="$LDFLAGS"
1557
1575
   LDFLAGS="$LDFLAGS $3"
1558
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
1576
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1559
1577
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1560
1578
     # The linker can only warn and ignore the option if not recognized
1561
1579
     # So say no if there are warnings
1669
1687
    fi
1670
1688
    ;;
1671
1689
  *)
1672
 
    # If test is not a shell built-in, we'll probably end up computing a
1673
 
    # maximum length that is only half of the actual maximum length, but
1674
 
    # we can't tell.
1675
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1676
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
1690
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
1691
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
1692
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
1693
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
1694
    else
 
1695
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
1696
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1677
1697
               = "XX$teststring") >/dev/null 2>&1 &&
1678
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
1679
 
            lt_cv_sys_max_cmd_len=$new_result &&
1680
 
            test $i != 17 # 1/2 MB should be enough
1681
 
    do
1682
 
      i=`expr $i + 1`
1683
 
      teststring=$teststring$teststring
1684
 
    done
1685
 
    teststring=
1686
 
    # Add a significant safety factor because C++ compilers can tack on massive
1687
 
    # amounts of additional arguments before passing them to the linker.
1688
 
    # It appears as though 1/2 is a usable value.
1689
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1698
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
1699
              lt_cv_sys_max_cmd_len=$new_result &&
 
1700
              test $i != 17 # 1/2 MB should be enough
 
1701
      do
 
1702
        i=`expr $i + 1`
 
1703
        teststring=$teststring$teststring
 
1704
      done
 
1705
      teststring=
 
1706
      # Add a significant safety factor because C++ compilers can tack on massive
 
1707
      # amounts of additional arguments before passing them to the linker.
 
1708
      # It appears as though 1/2 is a usable value.
 
1709
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1710
    fi
1690
1711
    ;;
1691
1712
  esac
1692
1713
])
1913
1934
# ---------------------------------
1914
1935
# Check to see if options -c and -o are simultaneously supported by compiler
1915
1936
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1916
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1937
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1938
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1917
1939
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1918
1940
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1919
1941
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1921
1943
   mkdir conftest
1922
1944
   cd conftest
1923
1945
   mkdir out
1924
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1946
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1925
1947
 
1926
1948
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1927
1949
   # Insert the option either (1) after the last *FLAGS variable, or
2061
2083
   darwin*)
2062
2084
       if test -n "$STRIP" ; then
2063
2085
         striplib="$STRIP -x"
 
2086
         old_striplib="$STRIP -S"
2064
2087
         AC_MSG_RESULT([yes])
2065
2088
       else
2066
2089
  AC_MSG_RESULT([no])
2078
2101
# -----------------------------
2079
2102
# PORTME Fill in your ld.so characteristics
2080
2103
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2081
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
2104
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2105
AC_MSG_CHECKING([dynamic linker characteristics])
2082
2106
library_names_spec=
2083
2107
libname_spec='lib$name'
2084
2108
soname_spec=
2092
2116
version_type=none
2093
2117
dynamic_linker="$host_os ld.so"
2094
2118
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
2119
m4_if($1,[],[
2095
2120
if test "$GCC" = yes; then
2096
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2097
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
2121
  case $host_os in
 
2122
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
2123
    *) lt_awk_arg="/^libraries:/" ;;
 
2124
  esac
 
2125
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2126
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
2098
2127
    # if the path contains ";" then we assume it to be the separator
2099
2128
    # otherwise default to the standard path separator (i.e. ":") - it is
2100
2129
    # assumed that no part of a normal pathname contains ";" but that should
2101
2130
    # okay in the real world where ";" in dirpaths is itself problematic.
2102
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2131
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2103
2132
  else
2104
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2133
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2105
2134
  fi
 
2135
  # Ok, now we have the path, separated by spaces, we can step through it
 
2136
  # and add multilib dir if necessary.
 
2137
  lt_tmp_lt_search_path_spec=
 
2138
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
2139
  for lt_sys_path in $lt_search_path_spec; do
 
2140
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
2141
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
2142
    else
 
2143
      test -d "$lt_sys_path" && \
 
2144
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
2145
    fi
 
2146
  done
 
2147
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
2148
BEGIN {RS=" "; FS="/|\n";} {
 
2149
  lt_foo="";
 
2150
  lt_count=0;
 
2151
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
2152
    if ($lt_i != "" && $lt_i != ".") {
 
2153
      if ($lt_i == "..") {
 
2154
        lt_count++;
 
2155
      } else {
 
2156
        if (lt_count == 0) {
 
2157
          lt_foo="/" $lt_i lt_foo;
 
2158
        } else {
 
2159
          lt_count--;
 
2160
        }
 
2161
      }
 
2162
    }
 
2163
  }
 
2164
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
2165
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
2166
}'`
 
2167
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
2106
2168
else
2107
2169
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2108
 
fi
 
2170
fi])
2109
2171
need_lib_prefix=unknown
2110
2172
hardcode_into_libs=no
2111
2173
 
2262
2324
  shlibpath_overrides_runpath=yes
2263
2325
  shlibpath_var=DYLD_LIBRARY_PATH
2264
2326
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2265
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2266
 
  if test "$GCC" = yes; then
2267
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2268
 
  else
2269
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2270
 
  fi
 
2327
  m4_if([$1], [],[
 
2328
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
2271
2329
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2272
2330
  ;;
2273
2331
 
2321
2379
    shlibpath_overrides_runpath=no
2322
2380
    hardcode_into_libs=yes
2323
2381
    ;;
2324
 
  freebsd*) # from 4.6 on
 
2382
  *) # from 4.6 on, and DragonFly
2325
2383
    shlibpath_overrides_runpath=yes
2326
2384
    hardcode_into_libs=yes
2327
2385
    ;;
2384
2442
  postinstall_cmds='chmod 555 $lib'
2385
2443
  ;;
2386
2444
 
2387
 
interix3*)
 
2445
interix[[3-9]]*)
2388
2446
  version_type=linux
2389
2447
  need_lib_prefix=no
2390
2448
  need_version=no
2455
2513
 
2456
2514
  # Append ld.so.conf contents to the search path
2457
2515
  if test -f /etc/ld.so.conf; then
2458
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
2516
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2459
2517
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2460
2518
  fi
2461
2519
 
2561
2619
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2562
2620
  ;;
2563
2621
 
 
2622
rdos*)
 
2623
  dynamic_linker=no
 
2624
  ;;
 
2625
 
2564
2626
solaris*)
2565
2627
  version_type=linux
2566
2628
  need_lib_prefix=no
2666
2728
# _LT_AC_TAGCONFIG
2667
2729
# ----------------
2668
2730
AC_DEFUN([_LT_AC_TAGCONFIG],
2669
 
[AC_ARG_WITH([tags],
 
2731
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2732
AC_ARG_WITH([tags],
2670
2733
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2671
2734
        [include additional configurations @<:@automatic@:>@])],
2672
2735
    [tagnames="$withval"])
2927
2990
 
2928
2991
# AC_PATH_TOOL_PREFIX
2929
2992
# -------------------
2930
 
# find a file program which can recognise shared library
 
2993
# find a file program which can recognize shared library
2931
2994
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2932
2995
[AC_REQUIRE([AC_PROG_EGREP])dnl
2933
2996
AC_MSG_CHECKING([for $1])
2990
3053
 
2991
3054
# AC_PATH_MAGIC
2992
3055
# -------------
2993
 
# find a file program which can recognise a shared library
 
3056
# find a file program which can recognize a shared library
2994
3057
AC_DEFUN([AC_PATH_MAGIC],
2995
3058
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2996
3059
if test -z "$lt_cv_path_MAGIC_CMD"; then
3137
3200
# how to check for library dependencies
3138
3201
#  -- PORTME fill in with the dynamic library characteristics
3139
3202
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3140
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
3203
[AC_CACHE_CHECK([how to recognize dependent libraries],
3141
3204
lt_cv_deplibs_check_method,
3142
3205
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3143
3206
lt_cv_file_magic_test_file=
3176
3239
 
3177
3240
mingw* | pw32*)
3178
3241
  # Base MSYS/MinGW do not provide the 'file' command needed by
3179
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3180
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3181
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3242
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
3243
  # unless we find 'file', for example because we are cross-compiling.
 
3244
  if ( file / ) >/dev/null 2>&1; then
 
3245
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3246
    lt_cv_file_magic_cmd='func_win32_libid'
 
3247
  else
 
3248
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3249
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3250
  fi
3182
3251
  ;;
3183
3252
 
3184
3253
darwin* | rhapsody*)
3223
3292
  esac
3224
3293
  ;;
3225
3294
 
3226
 
interix3*)
 
3295
interix[[3-9]]*)
3227
3296
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3228
3297
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3229
3298
  ;;
3273
3342
  lt_cv_deplibs_check_method=pass_all
3274
3343
  ;;
3275
3344
 
 
3345
rdos*)
 
3346
  lt_cv_deplibs_check_method=pass_all
 
3347
  ;;
 
3348
 
3276
3349
solaris*)
3277
3350
  lt_cv_deplibs_check_method=pass_all
3278
3351
  ;;
3325
3398
  lt_cv_path_NM="$NM"
3326
3399
else
3327
3400
  lt_nm_to_check="${ac_tool_prefix}nm"
3328
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
3401
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3329
3402
    lt_nm_to_check="$lt_nm_to_check nm"
3330
3403
  fi
3331
3404
  for lt_tmp_nm in $lt_nm_to_check; do
3541
3614
_LT_AC_TAGVAR(objext, $1)=$objext
3542
3615
 
3543
3616
# Code to be used in simple compile tests
3544
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3617
lt_simple_compile_test_code="int some_variable = 0;"
3545
3618
 
3546
3619
# Code to be used in simple link tests
3547
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
3620
lt_simple_link_test_code='int main(){return(0);}'
3548
3621
 
3549
3622
_LT_AC_SYS_COMPILER
3550
3623
 
3646
3719
_LT_AC_TAGVAR(objext, $1)=$objext
3647
3720
 
3648
3721
# Code to be used in simple compile tests
3649
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3722
lt_simple_compile_test_code="int some_variable = 0;"
3650
3723
 
3651
3724
# Code to be used in simple link tests
3652
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
3725
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3653
3726
 
3654
3727
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3655
3728
_LT_AC_SYS_COMPILER
3795
3868
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3796
3869
        then
3797
3870
          # We have reworked collect2
3798
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3871
          :
3799
3872
        else
3800
3873
          # We have old collect2
3801
3874
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3954
4027
      case $cc_basename in
3955
4028
        xlc*)
3956
4029
         output_verbose_link_cmd='echo'
3957
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
4030
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3958
4031
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3959
4032
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3960
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4033
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3961
4034
          _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}'
3962
4035
          ;;
3963
4036
       *)
4040
4113
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4041
4114
 
4042
4115
      case $host_cpu in
4043
 
      hppa*64*|ia64*)
4044
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4045
 
        ;;
 
4116
      hppa*64*|ia64*) ;;
4046
4117
      *)
4047
4118
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4048
4119
        ;;
4110
4181
        ;;
4111
4182
    esac
4112
4183
    ;;
4113
 
  interix3*)
 
4184
  interix[[3-9]]*)
4114
4185
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
4115
4186
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4116
4187
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4230
4301
        # dependencies.
4231
4302
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4232
4303
        ;;
 
4304
      *)
 
4305
        case `$CC -V 2>&1 | sed 5q` in
 
4306
        *Sun\ C*)
 
4307
          # Sun C++ 5.9
 
4308
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4309
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4310
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
4311
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4312
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
4313
 
 
4314
          # Not sure whether something based on
 
4315
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
4316
          # would be better.
 
4317
          output_verbose_link_cmd='echo'
 
4318
 
 
4319
          # Archives containing C++ object files must be created using
 
4320
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
4321
          # necessary to make sure instantiated templates are included
 
4322
          # in the archive.
 
4323
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
4324
          ;;
 
4325
        esac
 
4326
        ;;
4233
4327
    esac
4234
4328
    ;;
4235
4329
  lynxos*)
4268
4362
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4269
4363
    ;;
4270
4364
  openbsd*)
4271
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4272
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4273
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4274
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4275
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4276
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4277
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4278
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4365
    if test -f /usr/libexec/ld.so; then
 
4366
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4367
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4368
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
4369
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4370
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4371
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
4372
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4373
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4374
      fi
 
4375
      output_verbose_link_cmd='echo'
 
4376
    else
 
4377
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4279
4378
    fi
4280
 
    output_verbose_link_cmd='echo'
4281
4379
    ;;
4282
4380
  osf3*)
4283
4381
    case $cc_basename in
4439
4537
        case $host_os in
4440
4538
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4441
4539
          *)
4442
 
            # The C++ compiler is used as linker so we must use $wl
4443
 
            # flag to pass the commands to the underlying system
4444
 
            # linker. We must also pass each convience library through
4445
 
            # to the system linker between allextract/defaultextract.
4446
 
            # The C++ compiler will combine linker options so we
4447
 
            # cannot just pass the convience library names through
4448
 
            # without $wl.
 
4540
            # The compiler driver will combine and reorder linker options,
 
4541
            # but understands `-z linker_flag'.
4449
4542
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4450
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
4543
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4451
4544
            ;;
4452
4545
        esac
4453
4546
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4494
4587
          fi
4495
4588
 
4496
4589
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
4590
          case $host_os in
 
4591
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
4592
          *)
 
4593
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
4594
            ;;
 
4595
          esac
4497
4596
        fi
4498
4597
        ;;
4499
4598
    esac
4737
4836
# PORTME: override above test on systems where it is broken
4738
4837
ifelse([$1],[CXX],
4739
4838
[case $host_os in
4740
 
interix3*)
 
4839
interix[[3-9]]*)
4741
4840
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4742
4841
  # hack all around it, let's just trust "g++" to DTRT.
4743
4842
  _LT_AC_TAGVAR(predep_objects,$1)=
4745
4844
  _LT_AC_TAGVAR(postdeps,$1)=
4746
4845
  ;;
4747
4846
 
 
4847
linux*)
 
4848
  case `$CC -V 2>&1 | sed 5q` in
 
4849
  *Sun\ C*)
 
4850
    # Sun C++ 5.9
 
4851
    #
 
4852
    # The more standards-conforming stlport4 library is
 
4853
    # incompatible with the Cstd library. Avoid specifying
 
4854
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4855
    # -library=stlport4 depends on it.
 
4856
    case " $CXX $CXXFLAGS " in
 
4857
    *" -library=stlport4 "*)
 
4858
      solaris_use_stlport4=yes
 
4859
      ;;
 
4860
    esac
 
4861
    if test "$solaris_use_stlport4" != yes; then
 
4862
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4863
    fi
 
4864
    ;;
 
4865
  esac
 
4866
  ;;
 
4867
 
4748
4868
solaris*)
4749
4869
  case $cc_basename in
4750
4870
  CC*)
 
4871
    # The more standards-conforming stlport4 library is
 
4872
    # incompatible with the Cstd library. Avoid specifying
 
4873
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4874
    # -library=stlport4 depends on it.
 
4875
    case " $CXX $CXXFLAGS " in
 
4876
    *" -library=stlport4 "*)
 
4877
      solaris_use_stlport4=yes
 
4878
      ;;
 
4879
    esac
 
4880
 
4751
4881
    # Adding this requires a known-good setup of shared libraries for
4752
4882
    # Sun compiler versions before 5.6, else PIC objects from an old
4753
4883
    # archive will be linked into the output, leading to subtle bugs.
4754
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4884
    if test "$solaris_use_stlport4" != yes; then
 
4885
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4886
    fi
4755
4887
    ;;
4756
4888
  esac
4757
4889
  ;;
4800
4932
_LT_AC_TAGVAR(objext, $1)=$objext
4801
4933
 
4802
4934
# Code to be used in simple compile tests
4803
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4935
lt_simple_compile_test_code="\
 
4936
      subroutine t
 
4937
      return
 
4938
      end
 
4939
"
4804
4940
 
4805
4941
# Code to be used in simple link tests
4806
 
lt_simple_link_test_code="      program t\n      end\n"
 
4942
lt_simple_link_test_code="\
 
4943
      program t
 
4944
      end
 
4945
"
4807
4946
 
4808
4947
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4809
4948
_LT_AC_SYS_COMPILER
4882
5021
_LT_AC_TAGVAR(objext, $1)=$objext
4883
5022
 
4884
5023
# Code to be used in simple compile tests
4885
 
lt_simple_compile_test_code="class foo {}\n"
 
5024
lt_simple_compile_test_code="class foo {}"
4886
5025
 
4887
5026
# Code to be used in simple link tests
4888
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
5027
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4889
5028
 
4890
5029
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4891
5030
_LT_AC_SYS_COMPILER
4938
5077
_LT_AC_TAGVAR(objext, $1)=$objext
4939
5078
 
4940
5079
# Code to be used in simple compile tests
4941
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
5080
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4942
5081
 
4943
5082
# Code to be used in simple link tests
4944
5083
lt_simple_link_test_code="$lt_simple_compile_test_code"
5027
5166
    _LT_AC_TAGVAR(module_cmds, $1) \
5028
5167
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5029
5168
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
5169
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
5030
5170
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
5031
5171
    _LT_AC_TAGVAR(include_expsyms, $1); do
5032
5172
 
5073
5213
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5074
5214
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5075
5215
#
5076
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
5216
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
5077
5217
# Free Software Foundation, Inc.
5078
5218
#
5079
5219
# This file is part of GNU Libtool:
5398
5538
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5399
5539
 
5400
5540
# Fix the shell variable \$srcfile for the compiler.
5401
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
5541
fix_srcfile_path=$lt_fix_srcfile_path
5402
5542
 
5403
5543
# Set to yes if exported symbols are required.
5404
5544
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5481
5621
# ---------------------------------
5482
5622
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5483
5623
[AC_REQUIRE([AC_CANONICAL_HOST])
 
5624
AC_REQUIRE([LT_AC_PROG_SED])
5484
5625
AC_REQUIRE([AC_PROG_NM])
5485
5626
AC_REQUIRE([AC_OBJEXT])
5486
5627
# Check for command to grab the raw symbol name followed by C symbol from nm.
5707
5848
      # like `-m68040'.
5708
5849
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5709
5850
      ;;
5710
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5851
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5711
5852
      # PIC is the default for these OSes.
5712
5853
      ;;
5713
 
    mingw* | os2* | pw32*)
 
5854
    mingw* | cygwin* | os2* | pw32*)
5714
5855
      # This hack is so that the source file can tell whether it is being
5715
5856
      # built for inclusion in a dll (and should export symbols for example).
 
5857
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5858
      # (--disable-auto-import) libraries
5716
5859
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5717
5860
      ;;
5718
5861
    darwin* | rhapsody*)
5724
5867
      # DJGPP does not support shared libraries at all
5725
5868
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5726
5869
      ;;
5727
 
    interix3*)
 
5870
    interix[[3-9]]*)
5728
5871
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5729
5872
      # Instead, we relocate shared libraries at runtime.
5730
5873
      ;;
5860
6003
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5861
6004
            ;;
5862
6005
          *)
 
6006
            case `$CC -V 2>&1 | sed 5q` in
 
6007
            *Sun\ C*)
 
6008
              # Sun C++ 5.9
 
6009
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6010
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6011
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6012
              ;;
 
6013
            esac
5863
6014
            ;;
5864
6015
        esac
5865
6016
        ;;
5980
6131
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5981
6132
      ;;
5982
6133
 
5983
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6134
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5984
6135
      # PIC is the default for these OSes.
5985
6136
      ;;
5986
6137
 
5987
 
    mingw* | pw32* | os2*)
 
6138
    mingw* | cygwin* | pw32* | os2*)
5988
6139
      # This hack is so that the source file can tell whether it is being
5989
6140
      # built for inclusion in a dll (and should export symbols for example).
 
6141
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
6142
      # (--disable-auto-import) libraries
5990
6143
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5991
6144
      ;;
5992
6145
 
5996
6149
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5997
6150
      ;;
5998
6151
 
5999
 
    interix3*)
 
6152
    interix[[3-9]]*)
6000
6153
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6001
6154
      # Instead, we relocate shared libraries at runtime.
6002
6155
      ;;
6054
6207
       esac
6055
6208
       ;;
6056
6209
 
6057
 
    mingw* | pw32* | os2*)
 
6210
    mingw* | cygwin* | pw32* | os2*)
6058
6211
      # This hack is so that the source file can tell whether it is being
6059
6212
      # built for inclusion in a dll (and should export symbols for example).
6060
6213
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6106
6259
        # All Alpha code is PIC.
6107
6260
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6108
6261
        ;;
 
6262
      *)
 
6263
        case `$CC -V 2>&1 | sed 5q` in
 
6264
        *Sun\ C*)
 
6265
          # Sun C 5.9
 
6266
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6267
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6268
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6269
          ;;
 
6270
        *Sun\ F*)
 
6271
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
6272
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6273
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6274
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
6275
          ;;
 
6276
        esac
 
6277
        ;;
6109
6278
      esac
6110
6279
      ;;
6111
6280
 
6115
6284
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6116
6285
      ;;
6117
6286
 
 
6287
    rdos*)
 
6288
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6289
      ;;
 
6290
 
6118
6291
    solaris*)
6119
6292
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6120
6293
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6209
6382
# ------------------------------------
6210
6383
# See if the linker supports building shared libraries.
6211
6384
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6212
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6385
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
6386
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6213
6387
ifelse([$1],[CXX],[
6214
6388
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6215
6389
  case $host_os in
6226
6400
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6227
6401
  ;;
6228
6402
  cygwin* | mingw*)
6229
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6403
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6230
6404
  ;;
6231
6405
  linux* | k*bsd*-gnu)
6232
6406
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6368
6542
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6369
6543
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6370
6544
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6371
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6545
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6372
6546
 
6373
6547
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6374
6548
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6386
6560
      fi
6387
6561
      ;;
6388
6562
 
6389
 
    interix3*)
 
6563
    interix[[3-9]]*)
6390
6564
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6391
6565
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6392
6566
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6401
6575
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6402
6576
      ;;
6403
6577
 
6404
 
    linux* | k*bsd*-gnu)
 
6578
    gnu* | linux* | k*bsd*-gnu)
6405
6579
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6406
6580
        tmp_addflag=
6407
6581
        case $cc_basename,$host_cpu in
6419
6593
        ifc* | ifort*)                  # Intel Fortran compiler
6420
6594
          tmp_addflag=' -nofor_main' ;;
6421
6595
        esac
6422
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6596
        case `$CC -V 2>&1 | sed 5q` in
 
6597
        *Sun\ C*)                       # Sun C 5.9
 
6598
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6599
          tmp_sharedflag='-G' ;;
 
6600
        *Sun\ F*)                       # Sun Fortran 8.3
 
6601
          tmp_sharedflag='-G' ;;
 
6602
        *)
 
6603
          tmp_sharedflag='-shared' ;;
 
6604
        esac
 
6605
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6423
6606
 
6424
6607
        if test $supports_anon_versioning = yes; then
6425
6608
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6426
6609
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6427
6610
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6428
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6611
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6429
6612
        fi
6430
6613
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6431
6614
      else
6466
6649
 
6467
6650
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6468
6651
      case `$LD -v 2>&1` in
6469
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
6652
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6470
6653
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6471
6654
        cat <<_LT_EOF 1>&2
6472
6655
 
6585
6768
           strings "$collect2name" | grep resolve_lib_name >/dev/null
6586
6769
          then
6587
6770
          # We have reworked collect2
6588
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6771
          :
6589
6772
          else
6590
6773
          # We have old collect2
6591
6774
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6678
6861
      # The linker will automatically build a .lib file if we build a DLL.
6679
6862
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6680
6863
      # FIXME: Should let the user specify the lib program.
6681
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6864
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6682
6865
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6683
6866
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6684
6867
      ;;
6720
6903
      case $cc_basename in
6721
6904
        xlc*)
6722
6905
         output_verbose_link_cmd='echo'
6723
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6906
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6724
6907
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6725
6908
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6726
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6909
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6727
6910
          _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}'
6728
6911
          ;;
6729
6912
       *)
6885
7068
      ;;
6886
7069
 
6887
7070
    openbsd*)
6888
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6889
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6890
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6891
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6892
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6893
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6894
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7071
      if test -f /usr/libexec/ld.so; then
 
7072
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7073
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7074
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7075
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7076
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7077
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7078
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7079
        else
 
7080
          case $host_os in
 
7081
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
7082
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7083
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7084
             ;;
 
7085
           *)
 
7086
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7087
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7088
             ;;
 
7089
          esac
 
7090
        fi
6895
7091
      else
6896
 
       case $host_os in
6897
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6898
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6899
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6900
 
           ;;
6901
 
         *)
6902
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6903
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6904
 
           ;;
6905
 
       esac
 
7092
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6906
7093
      fi
6907
7094
      ;;
6908
7095
 
6961
7148
      case $host_os in
6962
7149
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6963
7150
      *)
6964
 
        # The compiler driver will combine linker options so we
6965
 
        # cannot just pass the convience library names through
6966
 
        # without $wl, iff we do not link with $LD.
6967
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7151
        # The compiler driver will combine and reorder linker options,
 
7152
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
7153
        # but is careful enough not to reorder.
6968
7154
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6969
 
        case $wlarc in
6970
 
        '')
6971
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6972
 
        *)
6973
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6974
 
        esac ;;
 
7155
        if test "$GCC" = yes; then
 
7156
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7157
        else
 
7158
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
7159
        fi
 
7160
        ;;
6975
7161
      esac
6976
7162
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6977
7163
      ;;
7028
7214
      fi
7029
7215
      ;;
7030
7216
 
7031
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
7217
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7032
7218
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7033
7219
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7034
7220
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7103
7289
      # to ld, don't add -lc before -lgcc.
7104
7290
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7105
7291
      $rm conftest*
7106
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7292
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7107
7293
 
7108
7294
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7109
7295
        soname=conftest
7206
7392
[AC_CHECK_TOOL(RC, windres, no)
7207
7393
])
7208
7394
 
 
7395
 
 
7396
# Cheap backport of AS_EXECUTABLE_P and required macros
 
7397
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
7398
 
 
7399
# _AS_TEST_PREPARE
 
7400
# ----------------
 
7401
m4_ifndef([_AS_TEST_PREPARE],
 
7402
[m4_defun([_AS_TEST_PREPARE],
 
7403
[if test -x / >/dev/null 2>&1; then
 
7404
  as_executable_p='test -x'
 
7405
else
 
7406
  as_executable_p='test -f'
 
7407
fi
 
7408
])])# _AS_TEST_PREPARE
 
7409
 
 
7410
# AS_EXECUTABLE_P
 
7411
# ---------------
 
7412
# Check whether a file is executable.
 
7413
m4_ifndef([AS_EXECUTABLE_P],
 
7414
[m4_defun([AS_EXECUTABLE_P],
 
7415
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
7416
$as_executable_p $1[]dnl
 
7417
])])# AS_EXECUTABLE_P
 
7418
 
7209
7419
# NOTE: This macro has been submitted for inclusion into   #
7210
7420
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7211
7421
#  a released version of Autoconf we should remove this    #
7226
7436
  test -z "$as_dir" && as_dir=.
7227
7437
  for lt_ac_prog in sed gsed; do
7228
7438
    for ac_exec_ext in '' $ac_executable_extensions; do
7229
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
7439
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7230
7440
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7231
7441
      fi
7232
7442
    done
7233
7443
  done
7234
7444
done
 
7445
IFS=$as_save_IFS
7235
7446
lt_ac_max=0
7236
7447
lt_ac_count=0
7237
7448
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7264
7475
done
7265
7476
])
7266
7477
SED=$lt_cv_path_SED
 
7478
AC_SUBST([SED])
7267
7479
AC_MSG_RESULT([$SED])
7268
7480
])
7269
7481
 
8024
8236
                   [use gtk-doc to build documentation [[default=no]]]),,
8025
8237
    [enable_gtk_doc=no])
8026
8238
 
8027
 
  have_gtk_doc=no
8028
8239
  if test x$enable_gtk_doc = xyes; then
8029
 
    if test -z "$PKG_CONFIG"; then
8030
 
      AC_PATH_PROG([PKG_CONFIG], [pkg-config], [no])
8031
 
    fi
8032
 
    if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
8033
 
      have_gtk_doc=yes
8034
 
    fi
8035
 
 
8036
 
  dnl do we want to do a version check?
8037
 
ifelse([$1],[],,
8038
 
    [gtk_doc_min_version=$1
8039
 
    if test "$have_gtk_doc" = yes; then
8040
 
      AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
8041
 
      if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
8042
 
        AC_MSG_RESULT([yes])
8043
 
      else
8044
 
        AC_MSG_RESULT([no])
8045
 
        have_gtk_doc=no
8046
 
      fi
8047
 
    fi
8048
 
])
8049
 
    if test "$have_gtk_doc" != yes; then
8050
 
      enable_gtk_doc=no
8051
 
    fi
 
8240
    ifelse([$1],[],
 
8241
      [PKG_CHECK_EXISTS([gtk-doc],, 
 
8242
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
 
8243
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
 
8244
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
8052
8245
  fi
8053
8246
 
 
8247
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
 
8248
  AC_MSG_RESULT($enable_gtk_doc)
 
8249
 
8054
8250
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
8055
8251
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
8056
8252
])