The R Project SVN R

Rev

Rev 28320 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28320 Rev 28346
Line 8014... Line 8014...
8014
SED=$lt_cv_path_SED
8014
SED=$lt_cv_path_SED
8015
])
8015
])
8016
AC_MSG_RESULT([$SED])
8016
AC_MSG_RESULT([$SED])
8017
])
8017
])
8018
 
8018
 
-
 
8019
# lib-prefix.m4 serial 3 (gettext-0.13)
-
 
8020
dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
-
 
8021
dnl This file is free software, distributed under the terms of the GNU
-
 
8022
dnl General Public License.  As a special exception to the GNU General
-
 
8023
dnl Public License, this file may be distributed as part of a program
-
 
8024
dnl that contains a configuration script generated by Autoconf, under
-
 
8025
dnl the same distribution terms as the rest of that program.
-
 
8026
 
-
 
8027
dnl From Bruno Haible.
-
 
8028
 
-
 
8029
dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
-
 
8030
dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
-
 
8031
dnl require excessive bracketing.
-
 
8032
ifdef([AC_HELP_STRING],
-
 
8033
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
-
 
8034
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
-
 
8035
 
-
 
8036
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
-
 
8037
dnl to access previously installed libraries. The basic assumption is that
-
 
8038
dnl a user will want packages to use other packages he previously installed
-
 
8039
dnl with the same --prefix option.
-
 
8040
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
-
 
8041
dnl libraries, but is otherwise very convenient.
-
 
8042
AC_DEFUN([AC_LIB_PREFIX],
-
 
8043
[
-
 
8044
  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
-
 
8045
  AC_REQUIRE([AC_PROG_CC])
-
 
8046
  AC_REQUIRE([AC_CANONICAL_HOST])
-
 
8047
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
-
 
8048
  dnl By default, look in $includedir and $libdir.
-
 
8049
  use_additional=yes
-
 
8050
  AC_LIB_WITH_FINAL_PREFIX([
-
 
8051
    eval additional_includedir=\"$includedir\"
-
 
8052
    eval additional_libdir=\"$libdir\"
-
 
8053
  ])
-
 
8054
  AC_LIB_ARG_WITH([lib-prefix],
-
 
8055
[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
-
 
8056
  --without-lib-prefix    don't search for libraries in includedir and libdir],
-
 
8057
[
-
 
8058
    if test "X$withval" = "Xno"; then
-
 
8059
      use_additional=no
-
 
8060
    else
-
 
8061
      if test "X$withval" = "X"; then
-
 
8062
        AC_LIB_WITH_FINAL_PREFIX([
-
 
8063
          eval additional_includedir=\"$includedir\"
-
 
8064
          eval additional_libdir=\"$libdir\"
-
 
8065
        ])
-
 
8066
      else
-
 
8067
        additional_includedir="$withval/include"
-
 
8068
        additional_libdir="$withval/lib"
-
 
8069
      fi
-
 
8070
    fi
-
 
8071
])
-
 
8072
  if test $use_additional = yes; then
-
 
8073
    dnl Potentially add $additional_includedir to $CPPFLAGS.
-
 
8074
    dnl But don't add it
-
 
8075
    dnl   1. if it's the standard /usr/include,
-
 
8076
    dnl   2. if it's already present in $CPPFLAGS,
-
 
8077
    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
-
 
8078
    dnl   4. if it doesn't exist as a directory.
-
 
8079
    if test "X$additional_includedir" != "X/usr/include"; then
-
 
8080
      haveit=
-
 
8081
      for x in $CPPFLAGS; do
-
 
8082
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
-
 
8083
        if test "X$x" = "X-I$additional_includedir"; then
-
 
8084
          haveit=yes
-
 
8085
          break
-
 
8086
        fi
-
 
8087
      done
-
 
8088
      if test -z "$haveit"; then
-
 
8089
        if test "X$additional_includedir" = "X/usr/local/include"; then
-
 
8090
          if test -n "$GCC"; then
-
 
8091
            case $host_os in
-
 
8092
              linux*) haveit=yes;;
-
 
8093
            esac
-
 
8094
          fi
-
 
8095
        fi
-
 
8096
        if test -z "$haveit"; then
-
 
8097
          if test -d "$additional_includedir"; then
-
 
8098
            dnl Really add $additional_includedir to $CPPFLAGS.
-
 
8099
            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
-
 
8100
          fi
-
 
8101
        fi
-
 
8102
      fi
-
 
8103
    fi
-
 
8104
    dnl Potentially add $additional_libdir to $LDFLAGS.
-
 
8105
    dnl But don't add it
-
 
8106
    dnl   1. if it's the standard /usr/lib,
-
 
8107
    dnl   2. if it's already present in $LDFLAGS,
-
 
8108
    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
-
 
8109
    dnl   4. if it doesn't exist as a directory.
-
 
8110
    if test "X$additional_libdir" != "X/usr/lib"; then
-
 
8111
      haveit=
-
 
8112
      for x in $LDFLAGS; do
-
 
8113
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
-
 
8114
        if test "X$x" = "X-L$additional_libdir"; then
-
 
8115
          haveit=yes
-
 
8116
          break
-
 
8117
        fi
-
 
8118
      done
-
 
8119
      if test -z "$haveit"; then
-
 
8120
        if test "X$additional_libdir" = "X/usr/local/lib"; then
-
 
8121
          if test -n "$GCC"; then
-
 
8122
            case $host_os in
-
 
8123
              linux*) haveit=yes;;
-
 
8124
            esac
-
 
8125
          fi
-
 
8126
        fi
-
 
8127
        if test -z "$haveit"; then
-
 
8128
          if test -d "$additional_libdir"; then
-
 
8129
            dnl Really add $additional_libdir to $LDFLAGS.
-
 
8130
            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
-
 
8131
          fi
-
 
8132
        fi
-
 
8133
      fi
-
 
8134
    fi
-
 
8135
  fi
-
 
8136
])
-
 
8137
 
-
 
8138
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
-
 
8139
dnl acl_final_exec_prefix, containing the values to which $prefix and
-
 
8140
dnl $exec_prefix will expand at the end of the configure script.
-
 
8141
AC_DEFUN([AC_LIB_PREPARE_PREFIX],
-
 
8142
[
-
 
8143
  dnl Unfortunately, prefix and exec_prefix get only finally determined
-
 
8144
  dnl at the end of configure.
-
 
8145
  if test "X$prefix" = "XNONE"; then
-
 
8146
    acl_final_prefix="$ac_default_prefix"
-
 
8147
  else
-
 
8148
    acl_final_prefix="$prefix"
-
 
8149
  fi
-
 
8150
  if test "X$exec_prefix" = "XNONE"; then
-
 
8151
    acl_final_exec_prefix='${prefix}'
-
 
8152
  else
-
 
8153
    acl_final_exec_prefix="$exec_prefix"
-
 
8154
  fi
-
 
8155
  acl_save_prefix="$prefix"
-
 
8156
  prefix="$acl_final_prefix"
-
 
8157
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
-
 
8158
  prefix="$acl_save_prefix"
-
 
8159
])
-
 
8160
 
-
 
8161
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
-
 
8162
dnl variables prefix and exec_prefix bound to the values they will have
-
 
8163
dnl at the end of the configure script.
-
 
8164
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
-
 
8165
[
-
 
8166
  acl_save_prefix="$prefix"
-
 
8167
  prefix="$acl_final_prefix"
-
 
8168
  acl_save_exec_prefix="$exec_prefix"
-
 
8169
  exec_prefix="$acl_final_exec_prefix"
-
 
8170
  $1
-
 
8171
  exec_prefix="$acl_save_exec_prefix"
-
 
8172
  prefix="$acl_save_prefix"
-
 
8173
])
-
 
8174
 
-
 
8175
# lib-link.m4 serial 4 (gettext-0.12)
-
 
8176
dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
-
 
8177
dnl This file is free software, distributed under the terms of the GNU
-
 
8178
dnl General Public License.  As a special exception to the GNU General
-
 
8179
dnl Public License, this file may be distributed as part of a program
-
 
8180
dnl that contains a configuration script generated by Autoconf, under
-
 
8181
dnl the same distribution terms as the rest of that program.
-
 
8182
 
-
 
8183
dnl From Bruno Haible.
-
 
8184
 
-
 
8185
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
-
 
8186
dnl the libraries corresponding to explicit and implicit dependencies.
-
 
8187
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
-
 
8188
dnl augments the CPPFLAGS variable.
-
 
8189
AC_DEFUN([AC_LIB_LINKFLAGS],
-
 
8190
[
-
 
8191
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
-
 
8192
  AC_REQUIRE([AC_LIB_RPATH])
-
 
8193
  define([Name],[translit([$1],[./-], [___])])
-
 
8194
  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
-
 
8195
                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
-
 
8196
  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
-
 
8197
    AC_LIB_LINKFLAGS_BODY([$1], [$2])
-
 
8198
    ac_cv_lib[]Name[]_libs="$LIB[]NAME"
-
 
8199
    ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
-
 
8200
    ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
-
 
8201
  ])
-
 
8202
  LIB[]NAME="$ac_cv_lib[]Name[]_libs"
-
 
8203
  LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
-
 
8204
  INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
-
 
8205
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
-
 
8206
  AC_SUBST([LIB]NAME)
-
 
8207
  AC_SUBST([LTLIB]NAME)
-
 
8208
  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
-
 
8209
  dnl results of this search when this library appears as a dependency.
-
 
8210
  HAVE_LIB[]NAME=yes
-
 
8211
  undefine([Name])
-
 
8212
  undefine([NAME])
-
 
8213
])
-
 
8214
 
-
 
8215
dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
-
 
8216
dnl searches for libname and the libraries corresponding to explicit and
-
 
8217
dnl implicit dependencies, together with the specified include files and
-
 
8218
dnl the ability to compile and link the specified testcode. If found, it
-
 
8219
dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
-
 
8220
dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
-
 
8221
dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
-
 
8222
dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
-
 
8223
AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
-
 
8224
[
-
 
8225
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
-
 
8226
  AC_REQUIRE([AC_LIB_RPATH])
-
 
8227
  define([Name],[translit([$1],[./-], [___])])
-
 
8228
  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
-
 
8229
                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
-
 
8230
 
-
 
8231
  dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
-
 
8232
  dnl accordingly.
-
 
8233
  AC_LIB_LINKFLAGS_BODY([$1], [$2])
-
 
8234
 
-
 
8235
  dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
-
 
8236
  dnl because if the user has installed lib[]Name and not disabled its use
-
 
8237
  dnl via --without-lib[]Name-prefix, he wants to use it.
-
 
8238
  ac_save_CPPFLAGS="$CPPFLAGS"
-
 
8239
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
-
 
8240
 
-
 
8241
  AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
-
 
8242
    ac_save_LIBS="$LIBS"
-
 
8243
    LIBS="$LIBS $LIB[]NAME"
-
 
8244
    AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
-
 
8245
    LIBS="$ac_save_LIBS"
-
 
8246
  ])
-
 
8247
  if test "$ac_cv_lib[]Name" = yes; then
-
 
8248
    HAVE_LIB[]NAME=yes
-
 
8249
    AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
-
 
8250
    AC_MSG_CHECKING([how to link with lib[]$1])
-
 
8251
    AC_MSG_RESULT([$LIB[]NAME])
-
 
8252
  else
-
 
8253
    HAVE_LIB[]NAME=no
-
 
8254
    dnl If $LIB[]NAME didn't lead to a usable library, we don't need
-
 
8255
    dnl $INC[]NAME either.
-
 
8256
    CPPFLAGS="$ac_save_CPPFLAGS"
-
 
8257
    LIB[]NAME=
-
 
8258
    LTLIB[]NAME=
-
 
8259
  fi
-
 
8260
  AC_SUBST([HAVE_LIB]NAME)
-
 
8261
  AC_SUBST([LIB]NAME)
-
 
8262
  AC_SUBST([LTLIB]NAME)
-
 
8263
  undefine([Name])
-
 
8264
  undefine([NAME])
-
 
8265
])
-
 
8266
 
-
 
8267
dnl Determine the platform dependent parameters needed to use rpath:
-
 
8268
dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
-
 
8269
dnl hardcode_direct, hardcode_minus_L.
-
 
8270
AC_DEFUN([AC_LIB_RPATH],
-
 
8271
[
-
 
8272
  AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
-
 
8273
  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
-
 
8274
  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
-
 
8275
  AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
-
 
8276
  AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
-
 
8277
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
-
 
8278
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
-
 
8279
    . ./conftest.sh
-
 
8280
    rm -f ./conftest.sh
-
 
8281
    acl_cv_rpath=done
-
 
8282
  ])
-
 
8283
  wl="$acl_cv_wl"
-
 
8284
  libext="$acl_cv_libext"
-
 
8285
  shlibext="$acl_cv_shlibext"
-
 
8286
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
-
 
8287
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
-
 
8288
  hardcode_direct="$acl_cv_hardcode_direct"
-
 
8289
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
-
 
8290
  dnl Determine whether the user wants rpath handling at all.
-
 
8291
  AC_ARG_ENABLE(rpath,
-
 
8292
    [  --disable-rpath         do not hardcode runtime library paths],
-
 
8293
    :, enable_rpath=yes)
-
 
8294
])
-
 
8295
 
-
 
8296
dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
-
 
8297
dnl the libraries corresponding to explicit and implicit dependencies.
-
 
8298
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
-
 
8299
AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
-
 
8300
[
-
 
8301
  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
-
 
8302
                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
-
 
8303
  dnl By default, look in $includedir and $libdir.
-
 
8304
  use_additional=yes
-
 
8305
  AC_LIB_WITH_FINAL_PREFIX([
-
 
8306
    eval additional_includedir=\"$includedir\"
-
 
8307
    eval additional_libdir=\"$libdir\"
-
 
8308
  ])
-
 
8309
  AC_LIB_ARG_WITH([lib$1-prefix],
-
 
8310
[  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
-
 
8311
  --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
-
 
8312
[
-
 
8313
    if test "X$withval" = "Xno"; then
-
 
8314
      use_additional=no
-
 
8315
    else
-
 
8316
      if test "X$withval" = "X"; then
-
 
8317
        AC_LIB_WITH_FINAL_PREFIX([
-
 
8318
          eval additional_includedir=\"$includedir\"
-
 
8319
          eval additional_libdir=\"$libdir\"
-
 
8320
        ])
-
 
8321
      else
-
 
8322
        additional_includedir="$withval/include"
-
 
8323
        additional_libdir="$withval/lib"
-
 
8324
      fi
-
 
8325
    fi
-
 
8326
])
-
 
8327
  dnl Search the library and its dependencies in $additional_libdir and
-
 
8328
  dnl $LDFLAGS. Using breadth-first-seach.
-
 
8329
  LIB[]NAME=
-
 
8330
  LTLIB[]NAME=
-
 
8331
  INC[]NAME=
-
 
8332
  rpathdirs=
-
 
8333
  ltrpathdirs=
-
 
8334
  names_already_handled=
-
 
8335
  names_next_round='$1 $2'
-
 
8336
  while test -n "$names_next_round"; do
-
 
8337
    names_this_round="$names_next_round"
-
 
8338
    names_next_round=
-
 
8339
    for name in $names_this_round; do
-
 
8340
      already_handled=
-
 
8341
      for n in $names_already_handled; do
-
 
8342
        if test "$n" = "$name"; then
-
 
8343
          already_handled=yes
-
 
8344
          break
-
 
8345
        fi
-
 
8346
      done
-
 
8347
      if test -z "$already_handled"; then
-
 
8348
        names_already_handled="$names_already_handled $name"
-
 
8349
        dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
-
 
8350
        dnl or AC_LIB_HAVE_LINKFLAGS call.
-
 
8351
        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
-
 
8352
        eval value=\"\$HAVE_LIB$uppername\"
-
 
8353
        if test -n "$value"; then
-
 
8354
          if test "$value" = yes; then
-
 
8355
            eval value=\"\$LIB$uppername\"
-
 
8356
            test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
-
 
8357
            eval value=\"\$LTLIB$uppername\"
-
 
8358
            test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
-
 
8359
          else
-
 
8360
            dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
-
 
8361
            dnl that this library doesn't exist. So just drop it.
-
 
8362
            :
-
 
8363
          fi
-
 
8364
        else
-
 
8365
          dnl Search the library lib$name in $additional_libdir and $LDFLAGS
-
 
8366
          dnl and the already constructed $LIBNAME/$LTLIBNAME.
-
 
8367
          found_dir=
-
 
8368
          found_la=
-
 
8369
          found_so=
-
 
8370
          found_a=
-
 
8371
          if test $use_additional = yes; then
-
 
8372
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
-
 
8373
              found_dir="$additional_libdir"
-
 
8374
              found_so="$additional_libdir/lib$name.$shlibext"
-
 
8375
              if test -f "$additional_libdir/lib$name.la"; then
-
 
8376
                found_la="$additional_libdir/lib$name.la"
-
 
8377
              fi
-
 
8378
            else
-
 
8379
              if test -f "$additional_libdir/lib$name.$libext"; then
-
 
8380
                found_dir="$additional_libdir"
-
 
8381
                found_a="$additional_libdir/lib$name.$libext"
-
 
8382
                if test -f "$additional_libdir/lib$name.la"; then
-
 
8383
                  found_la="$additional_libdir/lib$name.la"
-
 
8384
                fi
-
 
8385
              fi
-
 
8386
            fi
-
 
8387
          fi
-
 
8388
          if test "X$found_dir" = "X"; then
-
 
8389
            for x in $LDFLAGS $LTLIB[]NAME; do
-
 
8390
              AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
-
 
8391
              case "$x" in
-
 
8392
                -L*)
-
 
8393
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
-
 
8394
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
-
 
8395
                    found_dir="$dir"
-
 
8396
                    found_so="$dir/lib$name.$shlibext"
-
 
8397
                    if test -f "$dir/lib$name.la"; then
-
 
8398
                      found_la="$dir/lib$name.la"
-
 
8399
                    fi
-
 
8400
                  else
-
 
8401
                    if test -f "$dir/lib$name.$libext"; then
-
 
8402
                      found_dir="$dir"
-
 
8403
                      found_a="$dir/lib$name.$libext"
-
 
8404
                      if test -f "$dir/lib$name.la"; then
-
 
8405
                        found_la="$dir/lib$name.la"
-
 
8406
                      fi
-
 
8407
                    fi
-
 
8408
                  fi
-
 
8409
                  ;;
-
 
8410
              esac
-
 
8411
              if test "X$found_dir" != "X"; then
-
 
8412
                break
-
 
8413
              fi
-
 
8414
            done
-
 
8415
          fi
-
 
8416
          if test "X$found_dir" != "X"; then
-
 
8417
            dnl Found the library.
-
 
8418
            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
-
 
8419
            if test "X$found_so" != "X"; then
-
 
8420
              dnl Linking with a shared library. We attempt to hardcode its
-
 
8421
              dnl directory into the executable's runpath, unless it's the
-
 
8422
              dnl standard /usr/lib.
-
 
8423
              if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
-
 
8424
                dnl No hardcoding is needed.
-
 
8425
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
-
 
8426
              else
-
 
8427
                dnl Use an explicit option to hardcode DIR into the resulting
-
 
8428
                dnl binary.
-
 
8429
                dnl Potentially add DIR to ltrpathdirs.
-
 
8430
                dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
-
 
8431
                haveit=
-
 
8432
                for x in $ltrpathdirs; do
-
 
8433
                  if test "X$x" = "X$found_dir"; then
-
 
8434
                    haveit=yes
-
 
8435
                    break
-
 
8436
                  fi
-
 
8437
                done
-
 
8438
                if test -z "$haveit"; then
-
 
8439
                  ltrpathdirs="$ltrpathdirs $found_dir"
-
 
8440
                fi
-
 
8441
                dnl The hardcoding into $LIBNAME is system dependent.
-
 
8442
                if test "$hardcode_direct" = yes; then
-
 
8443
                  dnl Using DIR/libNAME.so during linking hardcodes DIR into the
-
 
8444
                  dnl resulting binary.
-
 
8445
                  LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
-
 
8446
                else
-
 
8447
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
-
 
8448
                    dnl Use an explicit option to hardcode DIR into the resulting
-
 
8449
                    dnl binary.
-
 
8450
                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
-
 
8451
                    dnl Potentially add DIR to rpathdirs.
-
 
8452
                    dnl The rpathdirs will be appended to $LIBNAME at the end.
-
 
8453
                    haveit=
-
 
8454
                    for x in $rpathdirs; do
-
 
8455
                      if test "X$x" = "X$found_dir"; then
-
 
8456
                        haveit=yes
-
 
8457
                        break
-
 
8458
                      fi
-
 
8459
                    done
-
 
8460
                    if test -z "$haveit"; then
-
 
8461
                      rpathdirs="$rpathdirs $found_dir"
-
 
8462
                    fi
-
 
8463
                  else
-
 
8464
                    dnl Rely on "-L$found_dir".
-
 
8465
                    dnl But don't add it if it's already contained in the LDFLAGS
-
 
8466
                    dnl or the already constructed $LIBNAME
-
 
8467
                    haveit=
-
 
8468
                    for x in $LDFLAGS $LIB[]NAME; do
-
 
8469
                      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
-
 
8470
                      if test "X$x" = "X-L$found_dir"; then
-
 
8471
                        haveit=yes
-
 
8472
                        break
-
 
8473
                      fi
-
 
8474
                    done
-
 
8475
                    if test -z "$haveit"; then
-
 
8476
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
-
 
8477
                    fi
-
 
8478
                    if test "$hardcode_minus_L" != no; then
-
 
8479
                      dnl FIXME: Not sure whether we should use
-
 
8480
                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
-
 
8481
                      dnl here.
-
 
8482
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
-
 
8483
                    else
-
 
8484
                      dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
-
 
8485
                      dnl here, because this doesn't fit in flags passed to the
-
 
8486
                      dnl compiler. So give up. No hardcoding. This affects only
-
 
8487
                      dnl very old systems.
-
 
8488
                      dnl FIXME: Not sure whether we should use
-
 
8489
                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
-
 
8490
                      dnl here.
-
 
8491
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
-
 
8492
                    fi
-
 
8493
                  fi
-
 
8494
                fi
-
 
8495
              fi
-
 
8496
            else
-
 
8497
              if test "X$found_a" != "X"; then
-
 
8498
                dnl Linking with a static library.
-
 
8499
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
-
 
8500
              else
-
 
8501
                dnl We shouldn't come here, but anyway it's good to have a
-
 
8502
                dnl fallback.
-
 
8503
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
-
 
8504
              fi
-
 
8505
            fi
-
 
8506
            dnl Assume the include files are nearby.
-
 
8507
            additional_includedir=
-
 
8508
            case "$found_dir" in
-
 
8509
              */lib | */lib/)
-
 
8510
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
-
 
8511
                additional_includedir="$basedir/include"
-
 
8512
                ;;
-
 
8513
            esac
-
 
8514
            if test "X$additional_includedir" != "X"; then
-
 
8515
              dnl Potentially add $additional_includedir to $INCNAME.
-
 
8516
              dnl But don't add it
-
 
8517
              dnl   1. if it's the standard /usr/include,
-
 
8518
              dnl   2. if it's /usr/local/include and we are using GCC on Linux,
-
 
8519
              dnl   3. if it's already present in $CPPFLAGS or the already
-
 
8520
              dnl      constructed $INCNAME,
-
 
8521
              dnl   4. if it doesn't exist as a directory.
-
 
8522
              if test "X$additional_includedir" != "X/usr/include"; then
-
 
8523
                haveit=
-
 
8524
                if test "X$additional_includedir" = "X/usr/local/include"; then
-
 
8525
                  if test -n "$GCC"; then
-
 
8526
                    case $host_os in
-
 
8527
                      linux*) haveit=yes;;
-
 
8528
                    esac
-
 
8529
                  fi
-
 
8530
                fi
-
 
8531
                if test -z "$haveit"; then
-
 
8532
                  for x in $CPPFLAGS $INC[]NAME; do
-
 
8533
                    AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
-
 
8534
                    if test "X$x" = "X-I$additional_includedir"; then
-
 
8535
                      haveit=yes
-
 
8536
                      break
-
 
8537
                    fi
-
 
8538
                  done
-
 
8539
                  if test -z "$haveit"; then
-
 
8540
                    if test -d "$additional_includedir"; then
-
 
8541
                      dnl Really add $additional_includedir to $INCNAME.
-
 
8542
                      INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
-
 
8543
                    fi
-
 
8544
                  fi
-
 
8545
                fi
-
 
8546
              fi
-
 
8547
            fi
-
 
8548
            dnl Look for dependencies.
-
 
8549
            if test -n "$found_la"; then
-
 
8550
              dnl Read the .la file. It defines the variables
-
 
8551
              dnl dlname, library_names, old_library, dependency_libs, current,
-
 
8552
              dnl age, revision, installed, dlopen, dlpreopen, libdir.
-
 
8553
              save_libdir="$libdir"
-
 
8554
              case "$found_la" in
-
 
8555
                */* | *\\*) . "$found_la" ;;
-
 
8556
                *) . "./$found_la" ;;
-
 
8557
              esac
-
 
8558
              libdir="$save_libdir"
-
 
8559
              dnl We use only dependency_libs.
-
 
8560
              for dep in $dependency_libs; do
-
 
8561
                case "$dep" in
-
 
8562
                  -L*)
-
 
8563
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
-
 
8564
                    dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
-
 
8565
                    dnl But don't add it
-
 
8566
                    dnl   1. if it's the standard /usr/lib,
-
 
8567
                    dnl   2. if it's /usr/local/lib and we are using GCC on Linux,
-
 
8568
                    dnl   3. if it's already present in $LDFLAGS or the already
-
 
8569
                    dnl      constructed $LIBNAME,
-
 
8570
                    dnl   4. if it doesn't exist as a directory.
-
 
8571
                    if test "X$additional_libdir" != "X/usr/lib"; then
-
 
8572
                      haveit=
-
 
8573
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
-
 
8574
                        if test -n "$GCC"; then
-
 
8575
                          case $host_os in
-
 
8576
                            linux*) haveit=yes;;
-
 
8577
                          esac
-
 
8578
                        fi
-
 
8579
                      fi
-
 
8580
                      if test -z "$haveit"; then
-
 
8581
                        haveit=
-
 
8582
                        for x in $LDFLAGS $LIB[]NAME; do
-
 
8583
                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
-
 
8584
                          if test "X$x" = "X-L$additional_libdir"; then
-
 
8585
                            haveit=yes
-
 
8586
                            break
-
 
8587
                          fi
-
 
8588
                        done
-
 
8589
                        if test -z "$haveit"; then
-
 
8590
                          if test -d "$additional_libdir"; then
-
 
8591
                            dnl Really add $additional_libdir to $LIBNAME.
-
 
8592
                            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
-
 
8593
                          fi
-
 
8594
                        fi
-
 
8595
                        haveit=
-
 
8596
                        for x in $LDFLAGS $LTLIB[]NAME; do
-
 
8597
                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
-
 
8598
                          if test "X$x" = "X-L$additional_libdir"; then
-
 
8599
                            haveit=yes
-
 
8600
                            break
-
 
8601
                          fi
-
 
8602
                        done
-
 
8603
                        if test -z "$haveit"; then
-
 
8604
                          if test -d "$additional_libdir"; then
-
 
8605
                            dnl Really add $additional_libdir to $LTLIBNAME.
-
 
8606
                            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
-
 
8607
                          fi
-
 
8608
                        fi
-
 
8609
                      fi
-
 
8610
                    fi
-
 
8611
                    ;;
-
 
8612
                  -R*)
-
 
8613
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
-
 
8614
                    if test "$enable_rpath" != no; then
-
 
8615
                      dnl Potentially add DIR to rpathdirs.
-
 
8616
                      dnl The rpathdirs will be appended to $LIBNAME at the end.
-
 
8617
                      haveit=
-
 
8618
                      for x in $rpathdirs; do
-
 
8619
                        if test "X$x" = "X$dir"; then
-
 
8620
                          haveit=yes
-
 
8621
                          break
-
 
8622
                        fi
-
 
8623
                      done
-
 
8624
                      if test -z "$haveit"; then
-
 
8625
                        rpathdirs="$rpathdirs $dir"
-
 
8626
                      fi
-
 
8627
                      dnl Potentially add DIR to ltrpathdirs.
-
 
8628
                      dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
-
 
8629
                      haveit=
-
 
8630
                      for x in $ltrpathdirs; do
-
 
8631
                        if test "X$x" = "X$dir"; then
-
 
8632
                          haveit=yes
-
 
8633
                          break
-
 
8634
                        fi
-
 
8635
                      done
-
 
8636
                      if test -z "$haveit"; then
-
 
8637
                        ltrpathdirs="$ltrpathdirs $dir"
-
 
8638
                      fi
-
 
8639
                    fi
-
 
8640
                    ;;
-
 
8641
                  -l*)
-
 
8642
                    dnl Handle this in the next round.
-
 
8643
                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
-
 
8644
                    ;;
-
 
8645
                  *.la)
-
 
8646
                    dnl Handle this in the next round. Throw away the .la's
-
 
8647
                    dnl directory; it is already contained in a preceding -L
-
 
8648
                    dnl option.
-
 
8649
                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
-
 
8650
                    ;;
-
 
8651
                  *)
-
 
8652
                    dnl Most likely an immediate library name.
-
 
8653
                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
-
 
8654
                    LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
-
 
8655
                    ;;
-
 
8656
                esac
-
 
8657
              done
-
 
8658
            fi
-
 
8659
          else
-
 
8660
            dnl Didn't find the library; assume it is in the system directories
-
 
8661
            dnl known to the linker and runtime loader. (All the system
-
 
8662
            dnl directories known to the linker should also be known to the
-
 
8663
            dnl runtime loader, otherwise the system is severely misconfigured.)
-
 
8664
            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
-
 
8665
            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
-
 
8666
          fi
-
 
8667
        fi
-
 
8668
      fi
-
 
8669
    done
-
 
8670
  done
-
 
8671
  if test "X$rpathdirs" != "X"; then
-
 
8672
    if test -n "$hardcode_libdir_separator"; then
-
 
8673
      dnl Weird platform: only the last -rpath option counts, the user must
-
 
8674
      dnl pass all path elements in one option. We can arrange that for a
-
 
8675
      dnl single library, but not when more than one $LIBNAMEs are used.
-
 
8676
      alldirs=
-
 
8677
      for found_dir in $rpathdirs; do
-
 
8678
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
-
 
8679
      done
-
 
8680
      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
-
 
8681
      acl_save_libdir="$libdir"
-
 
8682
      libdir="$alldirs"
-
 
8683
      eval flag=\"$hardcode_libdir_flag_spec\"
-
 
8684
      libdir="$acl_save_libdir"
-
 
8685
      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
-
 
8686
    else
-
 
8687
      dnl The -rpath options are cumulative.
-
 
8688
      for found_dir in $rpathdirs; do
-
 
8689
        acl_save_libdir="$libdir"
-
 
8690
        libdir="$found_dir"
-
 
8691
        eval flag=\"$hardcode_libdir_flag_spec\"
-
 
8692
        libdir="$acl_save_libdir"
-
 
8693
        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
-
 
8694
      done
-
 
8695
    fi
-
 
8696
  fi
-
 
8697
  if test "X$ltrpathdirs" != "X"; then
-
 
8698
    dnl When using libtool, the option that works for both libraries and
-
 
8699
    dnl executables is -R. The -R options are cumulative.
-
 
8700
    for found_dir in $ltrpathdirs; do
-
 
8701
      LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
-
 
8702
    done
-
 
8703
  fi
-
 
8704
])
-
 
8705
 
-
 
8706
dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
-
 
8707
dnl unless already present in VAR.
-
 
8708
dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
-
 
8709
dnl contains two or three consecutive elements that belong together.
-
 
8710
AC_DEFUN([AC_LIB_APPENDTOVAR],
-
 
8711
[
-
 
8712
  for element in [$2]; do
-
 
8713
    haveit=
-
 
8714
    for x in $[$1]; do
-
 
8715
      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
-
 
8716
      if test "X$x" = "X$element"; then
-
 
8717
        haveit=yes
-
 
8718
        break
-
 
8719
      fi
-
 
8720
    done
-
 
8721
    if test -z "$haveit"; then
-
 
8722
      [$1]="${[$1]}${[$1]:+ }$element"
-
 
8723
    fi
-
 
8724
  done
-
 
8725
])
-
 
8726
 
-
 
8727
# lib-ld.m4 serial 3 (gettext-0.13)
-
 
8728
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
-
 
8729
dnl This file is free software, distributed under the terms of the GNU
-
 
8730
dnl General Public License.  As a special exception to the GNU General
-
 
8731
dnl Public License, this file may be distributed as part of a program
-
 
8732
dnl that contains a configuration script generated by Autoconf, under
-
 
8733
dnl the same distribution terms as the rest of that program.
-
 
8734
 
-
 
8735
dnl Subroutines of libtool.m4,
-
 
8736
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
-
 
8737
dnl with libtool.m4.
-
 
8738
 
-
 
8739
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
-
 
8740
AC_DEFUN([AC_LIB_PROG_LD_GNU],
-
 
8741
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
-
 
8742
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
-
 
8743
case `$LD -v 2>&1 </dev/null` in
-
 
8744
*GNU* | *'with BFD'*)
-
 
8745
  acl_cv_prog_gnu_ld=yes ;;
-
 
8746
*)
-
 
8747
  acl_cv_prog_gnu_ld=no ;;
-
 
8748
esac])
-
 
8749
with_gnu_ld=$acl_cv_prog_gnu_ld
-
 
8750
])
-
 
8751
 
-
 
8752
dnl From libtool-1.4. Sets the variable LD.
-
 
8753
AC_DEFUN([AC_LIB_PROG_LD],
-
 
8754
[AC_ARG_WITH(gnu-ld,
-
 
8755
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
-
 
8756
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
-
 
8757
AC_REQUIRE([AC_PROG_CC])dnl
-
 
8758
AC_REQUIRE([AC_CANONICAL_HOST])dnl
-
 
8759
# Prepare PATH_SEPARATOR.
-
 
8760
# The user is always right.
-
 
8761
if test "${PATH_SEPARATOR+set}" != set; then
-
 
8762
  echo "#! /bin/sh" >conf$$.sh
-
 
8763
  echo  "exit 0"   >>conf$$.sh
-
 
8764
  chmod +x conf$$.sh
-
 
8765
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
-
 
8766
    PATH_SEPARATOR=';'
-
 
8767
  else
-
 
8768
    PATH_SEPARATOR=:
-
 
8769
  fi
-
 
8770
  rm -f conf$$.sh
-
 
8771
fi
-
 
8772
ac_prog=ld
-
 
8773
if test "$GCC" = yes; then
-
 
8774
  # Check if gcc -print-prog-name=ld gives a path.
-
 
8775
  AC_MSG_CHECKING([for ld used by GCC])
-
 
8776
  case $host in
-
 
8777
  *-*-mingw*)
-
 
8778
    # gcc leaves a trailing carriage return which upsets mingw
-
 
8779
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
-
 
8780
  *)
-
 
8781
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
-
 
8782
  esac
-
 
8783
  case $ac_prog in
-
 
8784
    # Accept absolute paths.
-
 
8785
    [[\\/]* | [A-Za-z]:[\\/]*)]
-
 
8786
      [re_direlt='/[^/][^/]*/\.\./']
-
 
8787
      # Canonicalize the path of ld
-
 
8788
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
-
 
8789
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
-
 
8790
	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
-
 
8791
      done
-
 
8792
      test -z "$LD" && LD="$ac_prog"
-
 
8793
      ;;
-
 
8794
  "")
-
 
8795
    # If it fails, then pretend we aren't using GCC.
-
 
8796
    ac_prog=ld
-
 
8797
    ;;
-
 
8798
  *)
-
 
8799
    # If it is relative, then search for the first ld in PATH.
-
 
8800
    with_gnu_ld=unknown
-
 
8801
    ;;
-
 
8802
  esac
-
 
8803
elif test "$with_gnu_ld" = yes; then
-
 
8804
  AC_MSG_CHECKING([for GNU ld])
-
 
8805
else
-
 
8806
  AC_MSG_CHECKING([for non-GNU ld])
-
 
8807
fi
-
 
8808
AC_CACHE_VAL(acl_cv_path_LD,
-
 
8809
[if test -z "$LD"; then
-
 
8810
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
-
 
8811
  for ac_dir in $PATH; do
-
 
8812
    test -z "$ac_dir" && ac_dir=.
-
 
8813
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
-
 
8814
      acl_cv_path_LD="$ac_dir/$ac_prog"
-
 
8815
      # Check to see if the program is GNU ld.  I'd rather use --version,
-
 
8816
      # but apparently some GNU ld's only accept -v.
-
 
8817
      # Break only if it was the GNU/non-GNU ld that we prefer.
-
 
8818
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
-
 
8819
      *GNU* | *'with BFD'*)
-
 
8820
	test "$with_gnu_ld" != no && break ;;
-
 
8821
      *)
-
 
8822
	test "$with_gnu_ld" != yes && break ;;
-
 
8823
      esac
-
 
8824
    fi
-
 
8825
  done
-
 
8826
  IFS="$ac_save_ifs"
-
 
8827
else
-
 
8828
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
-
 
8829
fi])
-
 
8830
LD="$acl_cv_path_LD"
-
 
8831
if test -n "$LD"; then
-
 
8832
  AC_MSG_RESULT($LD)
-
 
8833
else
-
 
8834
  AC_MSG_RESULT(no)
-
 
8835
fi
-
 
8836
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
-
 
8837
AC_LIB_PROG_LD_GNU
-
 
8838
])
-
 
8839
 
8019
# Define a conditional.
8840
# Define a conditional.
8020
 
8841
 
8021
AC_DEFUN([AM_CONDITIONAL],
8842
AC_DEFUN([AM_CONDITIONAL],
8022
[AC_SUBST($1_TRUE)
8843
[AC_SUBST($1_TRUE)
8023
AC_SUBST($1_FALSE)
8844
AC_SUBST($1_FALSE)