~ubuntu-branches/ubuntu/precise/evince/precise-updates

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-01-06 09:56:51 UTC
  • mto: (1.6.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 68.
  • Revision ID: james.westby@ubuntu.com-20090106095651-dgipxsorilswacxa
Tags: upstream-2.25.4
Import upstream version 2.25.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
 
[m4_warning([this file was generated for autoconf 2.61.
 
16
m4_if(AC_AUTOCONF_VERSION, [2.63],,
 
17
[m4_warning([this file was generated for autoconf 2.63.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
34
34
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
35
35
  fi
36
36
 
37
 
  AC_ARG_WITH(gconf-source, 
38
 
  [  --with-gconf-source=sourceaddress      Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
 
37
  AC_ARG_WITH([gconf-source],
 
38
              AC_HELP_STRING([--with-gconf-source=sourceaddress],
 
39
                             [Config database for installing schema files.]),
 
40
              [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
39
41
 
40
42
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
41
43
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
44
46
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
45
47
  fi
46
48
 
47
 
  AC_ARG_WITH(gconf-schema-file-dir, 
48
 
  [  --with-gconf-schema-file-dir=dir        Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
 
49
  AC_ARG_WITH([gconf-schema-file-dir],
 
50
              AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
 
51
                             [Directory for installing schema files.]),
 
52
              [GCONF_SCHEMA_FILE_DIR="$withval"],)
49
53
 
50
54
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
51
55
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
778
782
 
779
783
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
780
784
# serial 40 IT_PROG_INTLTOOL
781
 
AC_DEFUN([IT_PROG_INTLTOOL],
782
 
[AC_PREREQ([2.50])dnl
 
785
AC_DEFUN([IT_PROG_INTLTOOL], [
 
786
AC_PREREQ([2.50])dnl
 
787
AC_REQUIRE([AM_NLS])dnl
783
788
 
784
789
case "$am__api_version" in
785
790
    1.[01234])
852
857
AC_PATH_PROG(XGETTEXT, xgettext)
853
858
AC_PATH_PROG(MSGMERGE, msgmerge)
854
859
AC_PATH_PROG(MSGFMT, msgfmt)
 
860
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
855
861
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
856
862
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
857
863
fi
923
929
dnl of config.status.
924
930
AC_CONFIG_COMMANDS_PRE([
925
931
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
932
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" ]; then
 
933
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
934
    fi
926
935
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
927
936
    >"$1/stamp-it.tmp"
928
937
    [sed '/^#/d
931
940
        '"s|^|  $ac_top_srcdir/|" \
932
941
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
933
942
    ]
934
 
    if test ! -f "$1/Makefile"; then
935
 
      AC_MSG_ERROR([$1/Makefile is not ready.])
936
 
    fi
937
 
    mv "$1/Makefile" "$1/Makefile.tmp"
938
943
    [sed '/^POTFILES =/,/[^\\]$/ {
939
944
                /^POTFILES =/!d
940
945
                r $1/POTFILES
941
946
          }
942
 
         ' "$1/Makefile.tmp" >"$1/Makefile"]
 
947
         ' "$1/Makefile.in" >"$1/Makefile"]
943
948
    rm -f "$1/Makefile.tmp"
944
949
    mv "$1/stamp-it.tmp" "$1/stamp-it"
945
950
  ])
946
951
])dnl
947
952
])
948
953
 
949
 
 
950
954
# deprecated macros
951
955
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
952
956
# A hint is needed for aclocal from Automake <= 1.9.4:
955
959
 
956
960
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
957
961
 
958
 
# serial 51 AC_PROG_LIBTOOL
 
962
# serial 52 AC_PROG_LIBTOOL
959
963
 
960
964
 
961
965
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1043
1047
AC_REQUIRE([AC_OBJEXT])dnl
1044
1048
AC_REQUIRE([AC_EXEEXT])dnl
1045
1049
dnl
1046
 
 
1047
1050
AC_LIBTOOL_SYS_MAX_CMD_LEN
1048
1051
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1049
1052
AC_LIBTOOL_OBJDIR
1145
1148
  ;;
1146
1149
esac
1147
1150
 
 
1151
_LT_REQUIRED_DARWIN_CHECKS
 
1152
 
1148
1153
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1149
1154
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1150
1155
enable_win32_dll=yes, enable_win32_dll=no)
1224
1229
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1225
1230
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1226
1231
_lt_linker_boilerplate=`cat conftest.err`
1227
 
$rm conftest*
 
1232
$rm -r conftest*
1228
1233
])# _LT_LINKER_BOILERPLATE
1229
1234
 
 
1235
# _LT_REQUIRED_DARWIN_CHECKS
 
1236
# --------------------------
 
1237
# Check for some things on darwin
 
1238
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
1239
  case $host_os in
 
1240
    rhapsody* | darwin*)
 
1241
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
1242
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
1243
 
 
1244
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
1245
      [lt_cv_apple_cc_single_mod=no
 
1246
      if test -z "${LT_MULTI_MODULE}"; then
 
1247
   # By default we will add the -single_module flag. You can override
 
1248
   # by either setting the environment variable LT_MULTI_MODULE
 
1249
   # non-empty at configure time, or by adding -multi_module to the
 
1250
   # link flags.
 
1251
   echo "int foo(void){return 1;}" > conftest.c
 
1252
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1253
     -dynamiclib ${wl}-single_module conftest.c
 
1254
   if test -f libconftest.dylib; then
 
1255
     lt_cv_apple_cc_single_mod=yes
 
1256
     rm -rf libconftest.dylib*
 
1257
   fi
 
1258
   rm conftest.c
 
1259
      fi])
 
1260
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
1261
      [lt_cv_ld_exported_symbols_list],
 
1262
      [lt_cv_ld_exported_symbols_list=no
 
1263
      save_LDFLAGS=$LDFLAGS
 
1264
      echo "_main" > conftest.sym
 
1265
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
1266
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
1267
   [lt_cv_ld_exported_symbols_list=yes],
 
1268
   [lt_cv_ld_exported_symbols_list=no])
 
1269
   LDFLAGS="$save_LDFLAGS"
 
1270
    ])
 
1271
    case $host_os in
 
1272
    rhapsody* | darwin1.[[0123]])
 
1273
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
1274
    darwin1.*)
 
1275
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1276
    darwin*)
 
1277
      # if running on 10.5 or later, the deployment target defaults
 
1278
      # to the OS version, if on x86, and 10.4, the deployment
 
1279
      # target defaults to 10.4. Don't you love it?
 
1280
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
1281
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
1282
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1283
   10.[[012]]*)
 
1284
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1285
   10.*)
 
1286
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1287
      esac
 
1288
    ;;
 
1289
  esac
 
1290
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
1291
      _lt_dar_single_mod='$single_module'
 
1292
    fi
 
1293
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
1294
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
1295
    else
 
1296
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
1297
    fi
 
1298
    if test "$DSYMUTIL" != ":"; then
 
1299
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
1300
    else
 
1301
      _lt_dsymutil=
 
1302
    fi
 
1303
    ;;
 
1304
  esac
 
1305
])
1230
1306
 
1231
1307
# _LT_AC_SYS_LIBPATH_AIX
1232
1308
# ----------------------
1552
1628
    *64-bit*)
1553
1629
      case $lt_cv_prog_gnu_ld in
1554
1630
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1555
 
      *)    LD="${LD-ld} -64" ;;
 
1631
      *)
 
1632
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
1633
          LD="${LD-ld} -64"
 
1634
        fi
 
1635
        ;;
1556
1636
      esac
1557
1637
      ;;
1558
1638
    esac
1645
1725
       $2=yes
1646
1726
     fi
1647
1727
   fi
1648
 
   $rm conftest*
 
1728
   $rm -r conftest*
1649
1729
   LDFLAGS="$save_LDFLAGS"
1650
1730
])
1651
1731
 
1916
1996
    AC_CHECK_FUNC([shl_load],
1917
1997
          [lt_cv_dlopen="shl_load"],
1918
1998
      [AC_CHECK_LIB([dld], [shl_load],
1919
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1999
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1920
2000
        [AC_CHECK_FUNC([dlopen],
1921
2001
              [lt_cv_dlopen="dlopen"],
1922
2002
          [AC_CHECK_LIB([dl], [dlopen],
1924
2004
            [AC_CHECK_LIB([svld], [dlopen],
1925
2005
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1926
2006
              [AC_CHECK_LIB([dld], [dld_link],
1927
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
2007
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1928
2008
              ])
1929
2009
            ])
1930
2010
          ])
2241
2321
  soname_spec='${libname}${release}${shared_ext}$major'
2242
2322
  ;;
2243
2323
 
2244
 
aix4* | aix5*)
 
2324
aix[[4-9]]*)
2245
2325
  version_type=linux
2246
2326
  need_lib_prefix=no
2247
2327
  need_version=no
2764
2844
AC_MSG_RESULT([$dynamic_linker])
2765
2845
test "$dynamic_linker" = no && can_build_shared=no
2766
2846
 
 
2847
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
2848
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
2849
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
2850
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
2851
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
2852
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
2853
 
2767
2854
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2768
2855
if test "$GCC" = yes; then
2769
2856
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3263
3350
# whether `pass_all' will *always* work, you probably want this one.
3264
3351
 
3265
3352
case $host_os in
3266
 
aix4* | aix5*)
 
3353
aix[[4-9]]*)
3267
3354
  lt_cv_deplibs_check_method=pass_all
3268
3355
  ;;
3269
3356
 
3699
3786
  fi
3700
3787
  ;;
3701
3788
 
3702
 
aix4* | aix5*)
 
3789
aix[[4-9]]*)
3703
3790
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3704
3791
    test "$enable_shared" = yes && enable_static=no
3705
3792
  fi
3756
3843
_LT_AC_TAGVAR(predeps, $1)=
3757
3844
_LT_AC_TAGVAR(postdeps, $1)=
3758
3845
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
3846
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3759
3847
 
3760
3848
# Source file extension for C++ test sources.
3761
3849
ac_ext=cpp
3865
3953
    # FIXME: insert proper C++ library support
3866
3954
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3867
3955
    ;;
3868
 
  aix4* | aix5*)
 
3956
  aix[[4-9]]*)
3869
3957
    if test "$host_cpu" = ia64; then
3870
3958
      # On IA64, the linker does run time linking by default, so we don't
3871
3959
      # have to do anything special.
3878
3966
      # Test if we are trying to use run time linking or normal
3879
3967
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3880
3968
      # need to do runtime linking.
3881
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3969
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3882
3970
        for ld_flag in $LDFLAGS; do
3883
3971
          case $ld_flag in
3884
3972
          *-brtl*)
4024
4112
    fi
4025
4113
  ;;
4026
4114
      darwin* | rhapsody*)
4027
 
        case $host_os in
4028
 
        rhapsody* | darwin1.[[012]])
4029
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
4030
 
         ;;
4031
 
       *) # Darwin 1.3 on
4032
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4033
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4034
 
         else
4035
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
4036
 
             10.[[012]])
4037
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4038
 
               ;;
4039
 
             10.*)
4040
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
4041
 
               ;;
4042
 
           esac
4043
 
         fi
4044
 
         ;;
4045
 
        esac
4046
4115
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4047
4116
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4048
4117
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4049
4118
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4050
4119
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4051
4120
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4052
 
 
4053
 
    if test "$GXX" = yes ; then
4054
 
      lt_int_apple_cc_single_mod=no
 
4121
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
4122
      if test "$GXX" = yes ; then
4055
4123
      output_verbose_link_cmd='echo'
4056
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
4057
 
       lt_int_apple_cc_single_mod=yes
 
4124
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
4125
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
4126
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
4127
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
4128
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
4129
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
4130
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
4058
4131
      fi
4059
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4060
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4061
 
      else
4062
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4063
 
        fi
4064
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4065
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4066
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4067
 
            _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}'
4068
 
          else
4069
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4070
 
          fi
4071
 
            _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}'
4072
4132
      else
4073
4133
      case $cc_basename in
4074
4134
        xlc*)
4319
4379
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4320
4380
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4321
4381
        ;;
4322
 
      pgCC*)
 
4382
      pgCC* | pgcpp*)
4323
4383
        # Portland Group C++ compiler
4324
4384
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4325
4385
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4754
4814
# compiler output when linking a shared library.
4755
4815
# Parse the compiler output and extract the necessary
4756
4816
# objects, libraries and library flags.
4757
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
4817
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
4818
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4758
4819
dnl we can't use the lt_simple_compile_test_code here,
4759
4820
dnl because it contains code intended for an executable,
4760
4821
dnl not a library.  It's possible we should let each
4879
4940
 
4880
4941
$rm -f confest.$objext
4881
4942
 
 
4943
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4944
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4945
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4946
fi
 
4947
 
4882
4948
# PORTME: override above test on systems where it is broken
4883
4949
ifelse([$1],[CXX],
4884
4950
[case $host_os in
4935
5001
  ;;
4936
5002
esac
4937
5003
])
4938
 
 
4939
5004
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4940
5005
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4941
5006
esac
5020
5085
    postinstall_cmds='$RANLIB $lib'
5021
5086
  fi
5022
5087
  ;;
5023
 
aix4* | aix5*)
 
5088
aix[[4-9]]*)
5024
5089
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5025
5090
    test "$enable_shared" = yes && enable_static=no
5026
5091
  fi
5197
5262
    _LT_AC_TAGVAR(predeps, $1) \
5198
5263
    _LT_AC_TAGVAR(postdeps, $1) \
5199
5264
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
5265
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
5200
5266
    _LT_AC_TAGVAR(archive_cmds, $1) \
5201
5267
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5202
5268
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
5259
5325
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5260
5326
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5261
5327
#
5262
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
5328
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5263
5329
# Free Software Foundation, Inc.
5264
5330
#
5265
5331
# This file is part of GNU Libtool:
5496
5562
# shared library.
5497
5563
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5498
5564
 
 
5565
# The directories searched by this compiler when creating a shared
 
5566
# library
 
5567
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
5568
 
5499
5569
# The library search path used internally by the compiler when linking
5500
5570
# a shared library.
5501
5571
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5845
5915
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5846
5916
    cat conftest.$ac_ext >&5
5847
5917
  fi
5848
 
  rm -f conftest* conftst*
 
5918
  rm -rf conftest* conftst*
5849
5919
 
5850
5920
  # Do not use the global_symbol_pipe unless it works.
5851
5921
  if test "$pipe_works" = yes; then
5902
5972
      # built for inclusion in a dll (and should export symbols for example).
5903
5973
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5904
5974
      # (--disable-auto-import) libraries
5905
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5975
      m4_if([$1], [GCJ], [],
 
5976
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5906
5977
      ;;
5907
5978
    darwin* | rhapsody*)
5908
5979
      # PIC is the default on this platform
5939
6010
    esac
5940
6011
  else
5941
6012
    case $host_os in
5942
 
      aix4* | aix5*)
 
6013
      aix[[4-9]]*)
5943
6014
        # All AIX code is PIC.
5944
6015
        if test "$host_cpu" = ia64; then
5945
6016
          # AIX 5 now supports IA64 processor
6035
6106
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6036
6107
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6037
6108
            ;;
6038
 
          pgCC*)
 
6109
          pgCC* | pgcpp*)
6039
6110
            # Portland Group C++ compiler.
6040
6111
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6041
6112
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6186
6257
      # built for inclusion in a dll (and should export symbols for example).
6187
6258
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6188
6259
      # (--disable-auto-import) libraries
6189
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
6260
      m4_if([$1], [GCJ], [],
 
6261
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6190
6262
      ;;
6191
6263
 
6192
6264
    darwin* | rhapsody*)
6256
6328
    mingw* | cygwin* | pw32* | os2*)
6257
6329
      # This hack is so that the source file can tell whether it is being
6258
6330
      # built for inclusion in a dll (and should export symbols for example).
6259
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
6331
      m4_if([$1], [GCJ], [],
 
6332
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6260
6333
      ;;
6261
6334
 
6262
6335
    hpux9* | hpux10* | hpux11*)
6393
6466
#
6394
6467
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6395
6468
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6396
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
6469
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6397
6470
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6398
6471
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6399
6472
     "" | " "*) ;;
6417
6490
#
6418
6491
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6419
6492
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6420
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
6493
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6421
6494
  $lt_tmp_static_flag,
6422
6495
  [],
6423
6496
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6433
6506
ifelse([$1],[CXX],[
6434
6507
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6435
6508
  case $host_os in
6436
 
  aix4* | aix5*)
 
6509
  aix[[4-9]]*)
6437
6510
    # If we're using GNU nm, then we don't want the "-C" option.
6438
6511
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
6439
6512
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6452
6525
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6453
6526
  ;;
6454
6527
  esac
 
6528
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6455
6529
],[
6456
6530
  runpath_var=
6457
6531
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6482
6556
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6483
6557
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6484
6558
  # as well as any symbol that contains `d'.
6485
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
6559
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6486
6560
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6487
6561
  # platforms (ab)use it in PIC code, but their linkers get confused if
6488
6562
  # the symbol is explicitly referenced.  Since portable code cannot
6489
6563
  # rely on this symbol name, it's probably fine to never include it in
6490
6564
  # preloaded symbol tables.
 
6565
  # Exclude shared library initialization/finalization symbols.
 
6566
dnl Note also adjust exclude_expsyms for C++ above.
6491
6567
  extract_expsyms_cmds=
6492
6568
  # Just being paranoid about ensuring that cc_basename is set.
6493
6569
  _LT_CC_BASENAME([$compiler])
6537
6613
 
6538
6614
    # See if GNU ld supports shared libraries.
6539
6615
    case $host_os in
6540
 
    aix3* | aix4* | aix5*)
 
6616
    aix[[3-9]]*)
6541
6617
      # On AIX/PPC, the GNU linker is very broken
6542
6618
      if test "$host_cpu" != ia64; then
6543
6619
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6756
6832
      fi
6757
6833
      ;;
6758
6834
 
6759
 
    aix4* | aix5*)
 
6835
    aix[[4-9]]*)
6760
6836
      if test "$host_cpu" = ia64; then
6761
6837
        # On IA64, the linker does run time linking by default, so we don't
6762
6838
        # have to do anything special.
6776
6852
        # Test if we are trying to use run time linking or normal
6777
6853
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6778
6854
        # need to do runtime linking.
6779
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
6855
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6780
6856
          for ld_flag in $LDFLAGS; do
6781
6857
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6782
6858
            aix_use_runtimelinking=yes
6936
7012
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6937
7013
    if test "$GCC" = yes ; then
6938
7014
        output_verbose_link_cmd='echo'
6939
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6940
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6941
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6942
 
      _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}'
6943
 
      _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}'
 
7015
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
7016
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
7017
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
7018
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6944
7019
    else
6945
7020
      case $cc_basename in
6946
7021
        xlc*)
7521
7596
AC_MSG_RESULT([$SED])
7522
7597
])
7523
7598
 
 
7599
# nls.m4 serial 3 (gettext-0.15)
 
7600
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
 
7601
dnl This file is free software; the Free Software Foundation
 
7602
dnl gives unlimited permission to copy and/or distribute it,
 
7603
dnl with or without modifications, as long as this notice is preserved.
 
7604
dnl
 
7605
dnl This file can can be used in projects which are not available under
 
7606
dnl the GNU General Public License or the GNU Library General Public
 
7607
dnl License but which still want to provide support for the GNU gettext
 
7608
dnl functionality.
 
7609
dnl Please note that the actual code of the GNU gettext library is covered
 
7610
dnl by the GNU Library General Public License, and the rest of the GNU
 
7611
dnl gettext package package is covered by the GNU General Public License.
 
7612
dnl They are *not* in the public domain.
 
7613
 
 
7614
dnl Authors:
 
7615
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
7616
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
7617
 
 
7618
AC_PREREQ(2.50)
 
7619
 
 
7620
AC_DEFUN([AM_NLS],
 
7621
[
 
7622
  AC_MSG_CHECKING([whether NLS is requested])
 
7623
  dnl Default is enabled NLS
 
7624
  AC_ARG_ENABLE(nls,
 
7625
    [  --disable-nls           do not use Native Language Support],
 
7626
    USE_NLS=$enableval, USE_NLS=yes)
 
7627
  AC_MSG_RESULT($USE_NLS)
 
7628
  AC_SUBST(USE_NLS)
 
7629
])
 
7630
 
7524
7631
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
7525
7632
7526
7633
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.