Blame config/lthostflags.m4

Packit Service 72eb06
dnl Copyright (C) 2010 Free Software Foundation, Inc.
Packit Service 72eb06
dnl This file is free software, distributed under the terms of the GNU
Packit Service 72eb06
dnl General Public License.  As a special exception to the GNU General
Packit Service 72eb06
dnl Public License, this file may be distributed as part of a program
Packit Service 72eb06
dnl that contains a configuration script generated by Autoconf, under
Packit Service 72eb06
dnl the same distribution terms as the rest of that program.
Packit Service 72eb06
Packit Service 72eb06
dnl usage: ACX_LT_HOST_FLAGS([default_flags])
Packit Service 72eb06
dnl Defines and AC_SUBSTs lt_host_flags
Packit Service 72eb06
Packit Service 72eb06
Packit Service 72eb06
AC_DEFUN([ACX_LT_HOST_FLAGS], [
Packit Service 72eb06
AC_REQUIRE([AC_CANONICAL_SYSTEM])
Packit Service 72eb06
Packit Service 72eb06
case $host in
Packit Service 72eb06
  *-cygwin* | *-mingw*)
Packit Service 72eb06
    # 'host' will be top-level target in the case of a target lib,
Packit Service 72eb06
    # we must compare to with_cross_host to decide if this is a native
Packit Service 72eb06
    # or cross-compiler and select where to install dlls appropriately.
Packit Service 72eb06
    if test -n "$with_cross_host" &&
Packit Service 72eb06
	test x"$with_cross_host" != x"no"; then
Packit Service 72eb06
      lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
Packit Service 72eb06
    else
Packit Service 72eb06
      lt_host_flags='-no-undefined -bindir "$(bindir)"';
Packit Service 72eb06
    fi
Packit Service 72eb06
    ;;
Packit Service 72eb06
  *)
Packit Service 72eb06
    lt_host_flags=[$1]
Packit Service 72eb06
    ;;
Packit Service 72eb06
esac
Packit Service 72eb06
Packit Service 72eb06
AC_SUBST(lt_host_flags)
Packit Service 72eb06
])