Blame m4/lib-link.m4

Packit fc043f
# lib-link.m4 serial 26 (gettext-0.18.2)
Packit fc043f
dnl Copyright (C) 2001-2014 Free Software Foundation, Inc.
Packit fc043f
dnl This file is free software; the Free Software Foundation
Packit fc043f
dnl gives unlimited permission to copy and/or distribute it,
Packit fc043f
dnl with or without modifications, as long as this notice is preserved.
Packit fc043f
Packit fc043f
dnl From Bruno Haible.
Packit fc043f
Packit fc043f
AC_PREREQ([2.54])
Packit fc043f
Packit fc043f
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
Packit fc043f
dnl the libraries corresponding to explicit and implicit dependencies.
Packit fc043f
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
Packit fc043f
dnl augments the CPPFLAGS variable.
Packit fc043f
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
Packit fc043f
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
Packit fc043f
AC_DEFUN([AC_LIB_LINKFLAGS],
Packit fc043f
[
Packit fc043f
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
Packit fc043f
  AC_REQUIRE([AC_LIB_RPATH])
Packit fc043f
  pushdef([Name],[m4_translit([$1],[./+-], [____])])
Packit fc043f
  pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
Packit fc043f
                                   [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
Packit fc043f
  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
Packit fc043f
    AC_LIB_LINKFLAGS_BODY([$1], [$2])
Packit fc043f
    ac_cv_lib[]Name[]_libs="$LIB[]NAME"
Packit fc043f
    ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
Packit fc043f
    ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
Packit fc043f
    ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
Packit fc043f
  ])
Packit fc043f
  LIB[]NAME="$ac_cv_lib[]Name[]_libs"
Packit fc043f
  LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
Packit fc043f
  INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
Packit fc043f
  LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
Packit fc043f
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
Packit fc043f
  AC_SUBST([LIB]NAME)
Packit fc043f
  AC_SUBST([LTLIB]NAME)
Packit fc043f
  AC_SUBST([LIB]NAME[_PREFIX])
Packit fc043f
  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
Packit fc043f
  dnl results of this search when this library appears as a dependency.
Packit fc043f
  HAVE_LIB[]NAME=yes
Packit fc043f
  popdef([NAME])
Packit fc043f
  popdef([Name])
Packit fc043f
])
Packit fc043f
Packit fc043f
dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
Packit fc043f
dnl searches for libname and the libraries corresponding to explicit and
Packit fc043f
dnl implicit dependencies, together with the specified include files and
Packit fc043f
dnl the ability to compile and link the specified testcode. The missing-message
Packit fc043f
dnl defaults to 'no' and may contain additional hints for the user.
Packit fc043f
dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME}
Packit fc043f
dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and
Packit fc043f
dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
Packit fc043f
dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
Packit fc043f
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
Packit fc043f
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
Packit fc043f
AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
Packit fc043f
[
Packit fc043f
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
Packit fc043f
  AC_REQUIRE([AC_LIB_RPATH])
Packit fc043f
  pushdef([Name],[m4_translit([$1],[./+-], [____])])
Packit fc043f
  pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
Packit fc043f
                                   [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
Packit fc043f
Packit fc043f
  dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
Packit fc043f
  dnl accordingly.
Packit fc043f
  AC_LIB_LINKFLAGS_BODY([$1], [$2])
Packit fc043f
Packit fc043f
  dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
Packit fc043f
  dnl because if the user has installed lib[]Name and not disabled its use
Packit fc043f
  dnl via --without-lib[]Name-prefix, he wants to use it.
Packit fc043f
  ac_save_CPPFLAGS="$CPPFLAGS"
Packit fc043f
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
Packit fc043f
Packit fc043f
  AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
Packit fc043f
    ac_save_LIBS="$LIBS"
Packit fc043f
    dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
Packit fc043f
    dnl because these -l options might require -L options that are present in
Packit fc043f
    dnl LIBS. -l options benefit only from the -L options listed before it.
Packit fc043f
    dnl Otherwise, add it to the front of LIBS, because it may be a static
Packit fc043f
    dnl library that depends on another static library that is present in LIBS.
Packit fc043f
    dnl Static libraries benefit only from the static libraries listed after
Packit fc043f
    dnl it.
Packit fc043f
    case " $LIB[]NAME" in
Packit fc043f
      *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
Packit fc043f
      *)       LIBS="$LIB[]NAME $LIBS" ;;
Packit fc043f
    esac
Packit fc043f
    AC_LINK_IFELSE(
Packit fc043f
      [AC_LANG_PROGRAM([[$3]], [[$4]])],
Packit fc043f
      [ac_cv_lib[]Name=yes],
Packit fc043f
      [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
Packit fc043f
    LIBS="$ac_save_LIBS"
Packit fc043f
  ])
Packit fc043f
  if test "$ac_cv_lib[]Name" = yes; then
Packit fc043f
    HAVE_LIB[]NAME=yes
Packit fc043f
    AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
Packit fc043f
    AC_MSG_CHECKING([how to link with lib[]$1])
Packit fc043f
    AC_MSG_RESULT([$LIB[]NAME])
Packit fc043f
  else
Packit fc043f
    HAVE_LIB[]NAME=no
Packit fc043f
    dnl If $LIB[]NAME didn't lead to a usable library, we don't need
Packit fc043f
    dnl $INC[]NAME either.
Packit fc043f
    CPPFLAGS="$ac_save_CPPFLAGS"
Packit fc043f
    LIB[]NAME=
Packit fc043f
    LTLIB[]NAME=
Packit fc043f
    LIB[]NAME[]_PREFIX=
Packit fc043f
  fi
Packit fc043f
  AC_SUBST([HAVE_LIB]NAME)
Packit fc043f
  AC_SUBST([LIB]NAME)
Packit fc043f
  AC_SUBST([LTLIB]NAME)
Packit fc043f
  AC_SUBST([LIB]NAME[_PREFIX])
Packit fc043f
  popdef([NAME])
Packit fc043f
  popdef([Name])
Packit fc043f
])
Packit fc043f
Packit fc043f
dnl Determine the platform dependent parameters needed to use rpath:
Packit fc043f
dnl   acl_libext,
Packit fc043f
dnl   acl_shlibext,
Packit fc043f
dnl   acl_libname_spec,
Packit fc043f
dnl   acl_library_names_spec,
Packit fc043f
dnl   acl_hardcode_libdir_flag_spec,
Packit fc043f
dnl   acl_hardcode_libdir_separator,
Packit fc043f
dnl   acl_hardcode_direct,
Packit fc043f
dnl   acl_hardcode_minus_L.
Packit fc043f
AC_DEFUN([AC_LIB_RPATH],
Packit fc043f
[
Packit fc043f
  dnl Tell automake >= 1.10 to complain if config.rpath is missing.
Packit fc043f
  m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
Packit fc043f
  AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
Packit fc043f
  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
Packit fc043f
  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
Packit fc043f
  AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
Packit fc043f
  AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
Packit fc043f
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
Packit fc043f
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
Packit fc043f
    . ./conftest.sh
Packit fc043f
    rm -f ./conftest.sh
Packit fc043f
    acl_cv_rpath=done
Packit fc043f
  ])
Packit fc043f
  wl="$acl_cv_wl"
Packit fc043f
  acl_libext="$acl_cv_libext"
Packit fc043f
  acl_shlibext="$acl_cv_shlibext"
Packit fc043f
  acl_libname_spec="$acl_cv_libname_spec"
Packit fc043f
  acl_library_names_spec="$acl_cv_library_names_spec"
Packit fc043f
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
Packit fc043f
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
Packit fc043f
  acl_hardcode_direct="$acl_cv_hardcode_direct"
Packit fc043f
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Packit fc043f
  dnl Determine whether the user wants rpath handling at all.
Packit fc043f
  AC_ARG_ENABLE([rpath],
Packit fc043f
    [  --disable-rpath         do not hardcode runtime library paths],
Packit fc043f
    :, enable_rpath=yes)
Packit fc043f
])
Packit fc043f
Packit fc043f
dnl AC_LIB_FROMPACKAGE(name, package)
Packit fc043f
dnl declares that libname comes from the given package. The configure file
Packit fc043f
dnl will then not have a --with-libname-prefix option but a
Packit fc043f
dnl --with-package-prefix option. Several libraries can come from the same
Packit fc043f
dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar
Packit fc043f
dnl macro call that searches for libname.
Packit fc043f
AC_DEFUN([AC_LIB_FROMPACKAGE],
Packit fc043f
[
Packit fc043f
  pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
Packit fc043f
                                   [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
Packit fc043f
  define([acl_frompackage_]NAME, [$2])
Packit fc043f
  popdef([NAME])
Packit fc043f
  pushdef([PACK],[$2])
Packit fc043f
  pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
Packit fc043f
                                     [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
Packit fc043f
  define([acl_libsinpackage_]PACKUP,
Packit fc043f
    m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1])
Packit fc043f
  popdef([PACKUP])
Packit fc043f
  popdef([PACK])
Packit fc043f
])
Packit fc043f
Packit fc043f
dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
Packit fc043f
dnl the libraries corresponding to explicit and implicit dependencies.
Packit fc043f
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
Packit fc043f
dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
Packit fc043f
dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
Packit fc043f
AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
Packit fc043f
[
Packit fc043f
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
Packit fc043f
  pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
Packit fc043f
                                   [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
Packit fc043f
  pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
Packit fc043f
  pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
Packit fc043f
                                     [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
Packit fc043f
  pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
Packit fc043f
  dnl Autoconf >= 2.61 supports dots in --with options.
Packit fc043f
  pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)])
Packit fc043f
  dnl By default, look in $includedir and $libdir.
Packit fc043f
  use_additional=yes
Packit fc043f
  AC_LIB_WITH_FINAL_PREFIX([
Packit fc043f
    eval additional_includedir=\"$includedir\"
Packit fc043f
    eval additional_libdir=\"$libdir\"
Packit fc043f
  ])
Packit fc043f
  AC_ARG_WITH(P_A_C_K[-prefix],
Packit fc043f
[[  --with-]]P_A_C_K[[-prefix[=DIR]  search for ]PACKLIBS[ in DIR/include and DIR/lib
Packit fc043f
  --without-]]P_A_C_K[[-prefix     don't search for ]PACKLIBS[ in includedir and libdir]],
Packit fc043f
[
Packit fc043f
    if test "X$withval" = "Xno"; then
Packit fc043f
      use_additional=no
Packit fc043f
    else
Packit fc043f
      if test "X$withval" = "X"; then
Packit fc043f
        AC_LIB_WITH_FINAL_PREFIX([
Packit fc043f
          eval additional_includedir=\"$includedir\"
Packit fc043f
          eval additional_libdir=\"$libdir\"
Packit fc043f
        ])
Packit fc043f
      else
Packit fc043f
        additional_includedir="$withval/include"
Packit fc043f
        additional_libdir="$withval/$acl_libdirstem"
Packit fc043f
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
Packit fc043f
           && ! test -d "$withval/$acl_libdirstem"; then
Packit fc043f
          additional_libdir="$withval/$acl_libdirstem2"
Packit fc043f
        fi
Packit fc043f
      fi
Packit fc043f
    fi
Packit fc043f
])
Packit fc043f
  dnl Search the library and its dependencies in $additional_libdir and
Packit fc043f
  dnl $LDFLAGS. Using breadth-first-seach.
Packit fc043f
  LIB[]NAME=
Packit fc043f
  LTLIB[]NAME=
Packit fc043f
  INC[]NAME=
Packit fc043f
  LIB[]NAME[]_PREFIX=
Packit fc043f
  dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
Packit fc043f
  dnl computed. So it has to be reset here.
Packit fc043f
  HAVE_LIB[]NAME=
Packit fc043f
  rpathdirs=
Packit fc043f
  ltrpathdirs=
Packit fc043f
  names_already_handled=
Packit fc043f
  names_next_round='$1 $2'
Packit fc043f
  while test -n "$names_next_round"; do
Packit fc043f
    names_this_round="$names_next_round"
Packit fc043f
    names_next_round=
Packit fc043f
    for name in $names_this_round; do
Packit fc043f
      already_handled=
Packit fc043f
      for n in $names_already_handled; do
Packit fc043f
        if test "$n" = "$name"; then
Packit fc043f
          already_handled=yes
Packit fc043f
          break
Packit fc043f
        fi
Packit fc043f
      done
Packit fc043f
      if test -z "$already_handled"; then
Packit fc043f
        names_already_handled="$names_already_handled $name"
Packit fc043f
        dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
Packit fc043f
        dnl or AC_LIB_HAVE_LINKFLAGS call.
Packit fc043f
        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Packit fc043f
        eval value=\"\$HAVE_LIB$uppername\"
Packit fc043f
        if test -n "$value"; then
Packit fc043f
          if test "$value" = yes; then
Packit fc043f
            eval value=\"\$LIB$uppername\"
Packit fc043f
            test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
Packit fc043f
            eval value=\"\$LTLIB$uppername\"
Packit fc043f
            test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
Packit fc043f
          else
Packit fc043f
            dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
Packit fc043f
            dnl that this library doesn't exist. So just drop it.
Packit fc043f
            :
Packit fc043f
          fi
Packit fc043f
        else
Packit fc043f
          dnl Search the library lib$name in $additional_libdir and $LDFLAGS
Packit fc043f
          dnl and the already constructed $LIBNAME/$LTLIBNAME.
Packit fc043f
          found_dir=
Packit fc043f
          found_la=
Packit fc043f
          found_so=
Packit fc043f
          found_a=
Packit fc043f
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
Packit fc043f
          if test -n "$acl_shlibext"; then
Packit fc043f
            shrext=".$acl_shlibext"             # typically: shrext=.so
Packit fc043f
          else
Packit fc043f
            shrext=
Packit fc043f
          fi
Packit fc043f
          if test $use_additional = yes; then
Packit fc043f
            dir="$additional_libdir"
Packit fc043f
            dnl The same code as in the loop below:
Packit fc043f
            dnl First look for a shared library.
Packit fc043f
            if test -n "$acl_shlibext"; then
Packit fc043f
              if test -f "$dir/$libname$shrext"; then
Packit fc043f
                found_dir="$dir"
Packit fc043f
                found_so="$dir/$libname$shrext"
Packit fc043f
              else
Packit fc043f
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
Packit fc043f
                  ver=`(cd "$dir" && \
Packit fc043f
                        for f in "$libname$shrext".*; do echo "$f"; done \
Packit fc043f
                        | sed -e "s,^$libname$shrext\\\\.,," \
Packit fc043f
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
Packit fc043f
                        | sed 1q ) 2>/dev/null`
Packit fc043f
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
Packit fc043f
                    found_dir="$dir"
Packit fc043f
                    found_so="$dir/$libname$shrext.$ver"
Packit fc043f
                  fi
Packit fc043f
                else
Packit fc043f
                  eval library_names=\"$acl_library_names_spec\"
Packit fc043f
                  for f in $library_names; do
Packit fc043f
                    if test -f "$dir/$f"; then
Packit fc043f
                      found_dir="$dir"
Packit fc043f
                      found_so="$dir/$f"
Packit fc043f
                      break
Packit fc043f
                    fi
Packit fc043f
                  done
Packit fc043f
                fi
Packit fc043f
              fi
Packit fc043f
            fi
Packit fc043f
            dnl Then look for a static library.
Packit fc043f
            if test "X$found_dir" = "X"; then
Packit fc043f
              if test -f "$dir/$libname.$acl_libext"; then
Packit fc043f
                found_dir="$dir"
Packit fc043f
                found_a="$dir/$libname.$acl_libext"
Packit fc043f
              fi
Packit fc043f
            fi
Packit fc043f
            if test "X$found_dir" != "X"; then
Packit fc043f
              if test -f "$dir/$libname.la"; then
Packit fc043f
                found_la="$dir/$libname.la"
Packit fc043f
              fi
Packit fc043f
            fi
Packit fc043f
          fi
Packit fc043f
          if test "X$found_dir" = "X"; then
Packit fc043f
            for x in $LDFLAGS $LTLIB[]NAME; do
Packit fc043f
              AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
Packit fc043f
              case "$x" in
Packit fc043f
                -L*)
Packit fc043f
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
Packit fc043f
                  dnl First look for a shared library.
Packit fc043f
                  if test -n "$acl_shlibext"; then
Packit fc043f
                    if test -f "$dir/$libname$shrext"; then
Packit fc043f
                      found_dir="$dir"
Packit fc043f
                      found_so="$dir/$libname$shrext"
Packit fc043f
                    else
Packit fc043f
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
Packit fc043f
                        ver=`(cd "$dir" && \
Packit fc043f
                              for f in "$libname$shrext".*; do echo "$f"; done \
Packit fc043f
                              | sed -e "s,^$libname$shrext\\\\.,," \
Packit fc043f
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
Packit fc043f
                              | sed 1q ) 2>/dev/null`
Packit fc043f
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
Packit fc043f
                          found_dir="$dir"
Packit fc043f
                          found_so="$dir/$libname$shrext.$ver"
Packit fc043f
                        fi
Packit fc043f
                      else
Packit fc043f
                        eval library_names=\"$acl_library_names_spec\"
Packit fc043f
                        for f in $library_names; do
Packit fc043f
                          if test -f "$dir/$f"; then
Packit fc043f
                            found_dir="$dir"
Packit fc043f
                            found_so="$dir/$f"
Packit fc043f
                            break
Packit fc043f
                          fi
Packit fc043f
                        done
Packit fc043f
                      fi
Packit fc043f
                    fi
Packit fc043f
                  fi
Packit fc043f
                  dnl Then look for a static library.
Packit fc043f
                  if test "X$found_dir" = "X"; then
Packit fc043f
                    if test -f "$dir/$libname.$acl_libext"; then
Packit fc043f
                      found_dir="$dir"
Packit fc043f
                      found_a="$dir/$libname.$acl_libext"
Packit fc043f
                    fi
Packit fc043f
                  fi
Packit fc043f
                  if test "X$found_dir" != "X"; then
Packit fc043f
                    if test -f "$dir/$libname.la"; then
Packit fc043f
                      found_la="$dir/$libname.la"
Packit fc043f
                    fi
Packit fc043f
                  fi
Packit fc043f
                  ;;
Packit fc043f
              esac
Packit fc043f
              if test "X$found_dir" != "X"; then
Packit fc043f
                break
Packit fc043f
              fi
Packit fc043f
            done
Packit fc043f
          fi
Packit fc043f
          if test "X$found_dir" != "X"; then
Packit fc043f
            dnl Found the library.
Packit fc043f
            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
Packit fc043f
            if test "X$found_so" != "X"; then
Packit fc043f
              dnl Linking with a shared library. We attempt to hardcode its
Packit fc043f
              dnl directory into the executable's runpath, unless it's the
Packit fc043f
              dnl standard /usr/lib.
Packit fc043f
              if test "$enable_rpath" = no \
Packit fc043f
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
Packit fc043f
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Packit fc043f
                dnl No hardcoding is needed.
Packit fc043f
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
Packit fc043f
              else
Packit fc043f
                dnl Use an explicit option to hardcode DIR into the resulting
Packit fc043f
                dnl binary.
Packit fc043f
                dnl Potentially add DIR to ltrpathdirs.
Packit fc043f
                dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
Packit fc043f
                haveit=
Packit fc043f
                for x in $ltrpathdirs; do
Packit fc043f
                  if test "X$x" = "X$found_dir"; then
Packit fc043f
                    haveit=yes
Packit fc043f
                    break
Packit fc043f
                  fi
Packit fc043f
                done
Packit fc043f
                if test -z "$haveit"; then
Packit fc043f
                  ltrpathdirs="$ltrpathdirs $found_dir"
Packit fc043f
                fi
Packit fc043f
                dnl The hardcoding into $LIBNAME is system dependent.
Packit fc043f
                if test "$acl_hardcode_direct" = yes; then
Packit fc043f
                  dnl Using DIR/libNAME.so during linking hardcodes DIR into the
Packit fc043f
                  dnl resulting binary.
Packit fc043f
                  LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
Packit fc043f
                else
Packit fc043f
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Packit fc043f
                    dnl Use an explicit option to hardcode DIR into the resulting
Packit fc043f
                    dnl binary.
Packit fc043f
                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
Packit fc043f
                    dnl Potentially add DIR to rpathdirs.
Packit fc043f
                    dnl The rpathdirs will be appended to $LIBNAME at the end.
Packit fc043f
                    haveit=
Packit fc043f
                    for x in $rpathdirs; do
Packit fc043f
                      if test "X$x" = "X$found_dir"; then
Packit fc043f
                        haveit=yes
Packit fc043f
                        break
Packit fc043f
                      fi
Packit fc043f
                    done
Packit fc043f
                    if test -z "$haveit"; then
Packit fc043f
                      rpathdirs="$rpathdirs $found_dir"
Packit fc043f
                    fi
Packit fc043f
                  else
Packit fc043f
                    dnl Rely on "-L$found_dir".
Packit fc043f
                    dnl But don't add it if it's already contained in the LDFLAGS
Packit fc043f
                    dnl or the already constructed $LIBNAME
Packit fc043f
                    haveit=
Packit fc043f
                    for x in $LDFLAGS $LIB[]NAME; do
Packit fc043f
                      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
Packit fc043f
                      if test "X$x" = "X-L$found_dir"; then
Packit fc043f
                        haveit=yes
Packit fc043f
                        break
Packit fc043f
                      fi
Packit fc043f
                    done
Packit fc043f
                    if test -z "$haveit"; then
Packit fc043f
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
Packit fc043f
                    fi
Packit fc043f
                    if test "$acl_hardcode_minus_L" != no; then
Packit fc043f
                      dnl FIXME: Not sure whether we should use
Packit fc043f
                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
Packit fc043f
                      dnl here.
Packit fc043f
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
Packit fc043f
                    else
Packit fc043f
                      dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
Packit fc043f
                      dnl here, because this doesn't fit in flags passed to the
Packit fc043f
                      dnl compiler. So give up. No hardcoding. This affects only
Packit fc043f
                      dnl very old systems.
Packit fc043f
                      dnl FIXME: Not sure whether we should use
Packit fc043f
                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
Packit fc043f
                      dnl here.
Packit fc043f
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
Packit fc043f
                    fi
Packit fc043f
                  fi
Packit fc043f
                fi
Packit fc043f
              fi
Packit fc043f
            else
Packit fc043f
              if test "X$found_a" != "X"; then
Packit fc043f
                dnl Linking with a static library.
Packit fc043f
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
Packit fc043f
              else
Packit fc043f
                dnl We shouldn't come here, but anyway it's good to have a
Packit fc043f
                dnl fallback.
Packit fc043f
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
Packit fc043f
              fi
Packit fc043f
            fi
Packit fc043f
            dnl Assume the include files are nearby.
Packit fc043f
            additional_includedir=
Packit fc043f
            case "$found_dir" in
Packit fc043f
              */$acl_libdirstem | */$acl_libdirstem/)
Packit fc043f
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
Packit fc043f
                if test "$name" = '$1'; then
Packit fc043f
                  LIB[]NAME[]_PREFIX="$basedir"
Packit fc043f
                fi
Packit fc043f
                additional_includedir="$basedir/include"
Packit fc043f
                ;;
Packit fc043f
              */$acl_libdirstem2 | */$acl_libdirstem2/)
Packit fc043f
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
Packit fc043f
                if test "$name" = '$1'; then
Packit fc043f
                  LIB[]NAME[]_PREFIX="$basedir"
Packit fc043f
                fi
Packit fc043f
                additional_includedir="$basedir/include"
Packit fc043f
                ;;
Packit fc043f
            esac
Packit fc043f
            if test "X$additional_includedir" != "X"; then
Packit fc043f
              dnl Potentially add $additional_includedir to $INCNAME.
Packit fc043f
              dnl But don't add it
Packit fc043f
              dnl   1. if it's the standard /usr/include,
Packit fc043f
              dnl   2. if it's /usr/local/include and we are using GCC on Linux,
Packit fc043f
              dnl   3. if it's already present in $CPPFLAGS or the already
Packit fc043f
              dnl      constructed $INCNAME,
Packit fc043f
              dnl   4. if it doesn't exist as a directory.
Packit fc043f
              if test "X$additional_includedir" != "X/usr/include"; then
Packit fc043f
                haveit=
Packit fc043f
                if test "X$additional_includedir" = "X/usr/local/include"; then
Packit fc043f
                  if test -n "$GCC"; then
Packit fc043f
                    case $host_os in
Packit fc043f
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Packit fc043f
                    esac
Packit fc043f
                  fi
Packit fc043f
                fi
Packit fc043f
                if test -z "$haveit"; then
Packit fc043f
                  for x in $CPPFLAGS $INC[]NAME; do
Packit fc043f
                    AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
Packit fc043f
                    if test "X$x" = "X-I$additional_includedir"; then
Packit fc043f
                      haveit=yes
Packit fc043f
                      break
Packit fc043f
                    fi
Packit fc043f
                  done
Packit fc043f
                  if test -z "$haveit"; then
Packit fc043f
                    if test -d "$additional_includedir"; then
Packit fc043f
                      dnl Really add $additional_includedir to $INCNAME.
Packit fc043f
                      INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
Packit fc043f
                    fi
Packit fc043f
                  fi
Packit fc043f
                fi
Packit fc043f
              fi
Packit fc043f
            fi
Packit fc043f
            dnl Look for dependencies.
Packit fc043f
            if test -n "$found_la"; then
Packit fc043f
              dnl Read the .la file. It defines the variables
Packit fc043f
              dnl dlname, library_names, old_library, dependency_libs, current,
Packit fc043f
              dnl age, revision, installed, dlopen, dlpreopen, libdir.
Packit fc043f
              save_libdir="$libdir"
Packit fc043f
              case "$found_la" in
Packit fc043f
                */* | *\\*) . "$found_la" ;;
Packit fc043f
                *) . "./$found_la" ;;
Packit fc043f
              esac
Packit fc043f
              libdir="$save_libdir"
Packit fc043f
              dnl We use only dependency_libs.
Packit fc043f
              for dep in $dependency_libs; do
Packit fc043f
                case "$dep" in
Packit fc043f
                  -L*)
Packit fc043f
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Packit fc043f
                    dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
Packit fc043f
                    dnl But don't add it
Packit fc043f
                    dnl   1. if it's the standard /usr/lib,
Packit fc043f
                    dnl   2. if it's /usr/local/lib and we are using GCC on Linux,
Packit fc043f
                    dnl   3. if it's already present in $LDFLAGS or the already
Packit fc043f
                    dnl      constructed $LIBNAME,
Packit fc043f
                    dnl   4. if it doesn't exist as a directory.
Packit fc043f
                    if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
Packit fc043f
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Packit fc043f
                      haveit=
Packit fc043f
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
Packit fc043f
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Packit fc043f
                        if test -n "$GCC"; then
Packit fc043f
                          case $host_os in
Packit fc043f
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Packit fc043f
                          esac
Packit fc043f
                        fi
Packit fc043f
                      fi
Packit fc043f
                      if test -z "$haveit"; then
Packit fc043f
                        haveit=
Packit fc043f
                        for x in $LDFLAGS $LIB[]NAME; do
Packit fc043f
                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
Packit fc043f
                          if test "X$x" = "X-L$additional_libdir"; then
Packit fc043f
                            haveit=yes
Packit fc043f
                            break
Packit fc043f
                          fi
Packit fc043f
                        done
Packit fc043f
                        if test -z "$haveit"; then
Packit fc043f
                          if test -d "$additional_libdir"; then
Packit fc043f
                            dnl Really add $additional_libdir to $LIBNAME.
Packit fc043f
                            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
Packit fc043f
                          fi
Packit fc043f
                        fi
Packit fc043f
                        haveit=
Packit fc043f
                        for x in $LDFLAGS $LTLIB[]NAME; do
Packit fc043f
                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
Packit fc043f
                          if test "X$x" = "X-L$additional_libdir"; then
Packit fc043f
                            haveit=yes
Packit fc043f
                            break
Packit fc043f
                          fi
Packit fc043f
                        done
Packit fc043f
                        if test -z "$haveit"; then
Packit fc043f
                          if test -d "$additional_libdir"; then
Packit fc043f
                            dnl Really add $additional_libdir to $LTLIBNAME.
Packit fc043f
                            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
Packit fc043f
                          fi
Packit fc043f
                        fi
Packit fc043f
                      fi
Packit fc043f
                    fi
Packit fc043f
                    ;;
Packit fc043f
                  -R*)
Packit fc043f
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
Packit fc043f
                    if test "$enable_rpath" != no; then
Packit fc043f
                      dnl Potentially add DIR to rpathdirs.
Packit fc043f
                      dnl The rpathdirs will be appended to $LIBNAME at the end.
Packit fc043f
                      haveit=
Packit fc043f
                      for x in $rpathdirs; do
Packit fc043f
                        if test "X$x" = "X$dir"; then
Packit fc043f
                          haveit=yes
Packit fc043f
                          break
Packit fc043f
                        fi
Packit fc043f
                      done
Packit fc043f
                      if test -z "$haveit"; then
Packit fc043f
                        rpathdirs="$rpathdirs $dir"
Packit fc043f
                      fi
Packit fc043f
                      dnl Potentially add DIR to ltrpathdirs.
Packit fc043f
                      dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
Packit fc043f
                      haveit=
Packit fc043f
                      for x in $ltrpathdirs; do
Packit fc043f
                        if test "X$x" = "X$dir"; then
Packit fc043f
                          haveit=yes
Packit fc043f
                          break
Packit fc043f
                        fi
Packit fc043f
                      done
Packit fc043f
                      if test -z "$haveit"; then
Packit fc043f
                        ltrpathdirs="$ltrpathdirs $dir"
Packit fc043f
                      fi
Packit fc043f
                    fi
Packit fc043f
                    ;;
Packit fc043f
                  -l*)
Packit fc043f
                    dnl Handle this in the next round.
Packit fc043f
                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
Packit fc043f
                    ;;
Packit fc043f
                  *.la)
Packit fc043f
                    dnl Handle this in the next round. Throw away the .la's
Packit fc043f
                    dnl directory; it is already contained in a preceding -L
Packit fc043f
                    dnl option.
Packit fc043f
                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
Packit fc043f
                    ;;
Packit fc043f
                  *)
Packit fc043f
                    dnl Most likely an immediate library name.
Packit fc043f
                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
Packit fc043f
                    LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
Packit fc043f
                    ;;
Packit fc043f
                esac
Packit fc043f
              done
Packit fc043f
            fi
Packit fc043f
          else
Packit fc043f
            dnl Didn't find the library; assume it is in the system directories
Packit fc043f
            dnl known to the linker and runtime loader. (All the system
Packit fc043f
            dnl directories known to the linker should also be known to the
Packit fc043f
            dnl runtime loader, otherwise the system is severely misconfigured.)
Packit fc043f
            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
Packit fc043f
            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
Packit fc043f
          fi
Packit fc043f
        fi
Packit fc043f
      fi
Packit fc043f
    done
Packit fc043f
  done
Packit fc043f
  if test "X$rpathdirs" != "X"; then
Packit fc043f
    if test -n "$acl_hardcode_libdir_separator"; then
Packit fc043f
      dnl Weird platform: only the last -rpath option counts, the user must
Packit fc043f
      dnl pass all path elements in one option. We can arrange that for a
Packit fc043f
      dnl single library, but not when more than one $LIBNAMEs are used.
Packit fc043f
      alldirs=
Packit fc043f
      for found_dir in $rpathdirs; do
Packit fc043f
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Packit fc043f
      done
Packit fc043f
      dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
Packit fc043f
      acl_save_libdir="$libdir"
Packit fc043f
      libdir="$alldirs"
Packit fc043f
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
Packit fc043f
      libdir="$acl_save_libdir"
Packit fc043f
      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
Packit fc043f
    else
Packit fc043f
      dnl The -rpath options are cumulative.
Packit fc043f
      for found_dir in $rpathdirs; do
Packit fc043f
        acl_save_libdir="$libdir"
Packit fc043f
        libdir="$found_dir"
Packit fc043f
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
Packit fc043f
        libdir="$acl_save_libdir"
Packit fc043f
        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
Packit fc043f
      done
Packit fc043f
    fi
Packit fc043f
  fi
Packit fc043f
  if test "X$ltrpathdirs" != "X"; then
Packit fc043f
    dnl When using libtool, the option that works for both libraries and
Packit fc043f
    dnl executables is -R. The -R options are cumulative.
Packit fc043f
    for found_dir in $ltrpathdirs; do
Packit fc043f
      LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
Packit fc043f
    done
Packit fc043f
  fi
Packit fc043f
  popdef([P_A_C_K])
Packit fc043f
  popdef([PACKLIBS])
Packit fc043f
  popdef([PACKUP])
Packit fc043f
  popdef([PACK])
Packit fc043f
  popdef([NAME])
Packit fc043f
])
Packit fc043f
Packit fc043f
dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
Packit fc043f
dnl unless already present in VAR.
Packit fc043f
dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
Packit fc043f
dnl contains two or three consecutive elements that belong together.
Packit fc043f
AC_DEFUN([AC_LIB_APPENDTOVAR],
Packit fc043f
[
Packit fc043f
  for element in [$2]; do
Packit fc043f
    haveit=
Packit fc043f
    for x in $[$1]; do
Packit fc043f
      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
Packit fc043f
      if test "X$x" = "X$element"; then
Packit fc043f
        haveit=yes
Packit fc043f
        break
Packit fc043f
      fi
Packit fc043f
    done
Packit fc043f
    if test -z "$haveit"; then
Packit fc043f
      [$1]="${[$1]}${[$1]:+ }$element"
Packit fc043f
    fi
Packit fc043f
  done
Packit fc043f
])
Packit fc043f
Packit fc043f
dnl For those cases where a variable contains several -L and -l options
Packit fc043f
dnl referring to unknown libraries and directories, this macro determines the
Packit fc043f
dnl necessary additional linker options for the runtime path.
Packit fc043f
dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
Packit fc043f
dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
Packit fc043f
dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
Packit fc043f
dnl otherwise linking without libtool is assumed.
Packit fc043f
AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
Packit fc043f
[
Packit fc043f
  AC_REQUIRE([AC_LIB_RPATH])
Packit fc043f
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
Packit fc043f
  $1=
Packit fc043f
  if test "$enable_rpath" != no; then
Packit fc043f
    if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Packit fc043f
      dnl Use an explicit option to hardcode directories into the resulting
Packit fc043f
      dnl binary.
Packit fc043f
      rpathdirs=
Packit fc043f
      next=
Packit fc043f
      for opt in $2; do
Packit fc043f
        if test -n "$next"; then
Packit fc043f
          dir="$next"
Packit fc043f
          dnl No need to hardcode the standard /usr/lib.
Packit fc043f
          if test "X$dir" != "X/usr/$acl_libdirstem" \
Packit fc043f
             && test "X$dir" != "X/usr/$acl_libdirstem2"; then
Packit fc043f
            rpathdirs="$rpathdirs $dir"
Packit fc043f
          fi
Packit fc043f
          next=
Packit fc043f
        else
Packit fc043f
          case $opt in
Packit fc043f
            -L) next=yes ;;
Packit fc043f
            -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
Packit fc043f
                 dnl No need to hardcode the standard /usr/lib.
Packit fc043f
                 if test "X$dir" != "X/usr/$acl_libdirstem" \
Packit fc043f
                    && test "X$dir" != "X/usr/$acl_libdirstem2"; then
Packit fc043f
                   rpathdirs="$rpathdirs $dir"
Packit fc043f
                 fi
Packit fc043f
                 next= ;;
Packit fc043f
            *) next= ;;
Packit fc043f
          esac
Packit fc043f
        fi
Packit fc043f
      done
Packit fc043f
      if test "X$rpathdirs" != "X"; then
Packit fc043f
        if test -n ""$3""; then
Packit fc043f
          dnl libtool is used for linking. Use -R options.
Packit fc043f
          for dir in $rpathdirs; do
Packit fc043f
            $1="${$1}${$1:+ }-R$dir"
Packit fc043f
          done
Packit fc043f
        else
Packit fc043f
          dnl The linker is used for linking directly.
Packit fc043f
          if test -n "$acl_hardcode_libdir_separator"; then
Packit fc043f
            dnl Weird platform: only the last -rpath option counts, the user
Packit fc043f
            dnl must pass all path elements in one option.
Packit fc043f
            alldirs=
Packit fc043f
            for dir in $rpathdirs; do
Packit fc043f
              alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
Packit fc043f
            done
Packit fc043f
            acl_save_libdir="$libdir"
Packit fc043f
            libdir="$alldirs"
Packit fc043f
            eval flag=\"$acl_hardcode_libdir_flag_spec\"
Packit fc043f
            libdir="$acl_save_libdir"
Packit fc043f
            $1="$flag"
Packit fc043f
          else
Packit fc043f
            dnl The -rpath options are cumulative.
Packit fc043f
            for dir in $rpathdirs; do
Packit fc043f
              acl_save_libdir="$libdir"
Packit fc043f
              libdir="$dir"
Packit fc043f
              eval flag=\"$acl_hardcode_libdir_flag_spec\"
Packit fc043f
              libdir="$acl_save_libdir"
Packit fc043f
              $1="${$1}${$1:+ }$flag"
Packit fc043f
            done
Packit fc043f
          fi
Packit fc043f
        fi
Packit fc043f
      fi
Packit fc043f
    fi
Packit fc043f
  fi
Packit fc043f
  AC_SUBST([$1])
Packit fc043f
])