Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions Project/GNU/Library/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ AC_CONFIG_SRCDIR([../../../Source/ZenLib/Ztring.cpp])
dnl -------------------------------------------------------------------------
dnl sets build, host, target variables and the same with _alias
dnl
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([foreign -Wall])

dnl -------------------------------------------------------------------------
Expand All @@ -24,11 +24,22 @@ dnl
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
AC_DISABLE_STATIC
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
AC_PROG_INSTALL

dnl -------------------------------------------------------------------------
dnl Libtool init
dnl
case "$host_os" in
darwin*)
dnl libtool wrongly detects -single_module as unsupported with recent Xcode/Clang versions.
dnl This causes the master object to be linked using a buggy code path that does not honor
dnl $compiler_flags, and flags such as -arch or -mmacos-version-min to be silently dropped.
lt_cv_apple_cc_single_mod=yes
;;
esac

LT_INIT([disable-static win32-dll])

dnl #########################################################################
dnl ### Options
dnl #########################################################################
Expand Down Expand Up @@ -278,8 +289,9 @@ AC_SUBST(ZenLib_wstring_missing)
AC_SUBST(ZenLib_LargeFiles)
AC_CONFIG_FILES(libzen-config, [chmod u+x libzen-config])
AC_CONFIG_FILES(libzen.pc)
AC_CONFIG_FILES([Makefile])

AC_OUTPUT(Makefile)
AC_OUTPUT

dnl #########################################################################
dnl ### Report how we have been configured
Expand All @@ -297,4 +309,5 @@ echo " Create static lib? $enable_static"
echo " Create shared lib? $enable_shared"
echo ""
echo " CXXFLAGS: $CXXFLAGS"
echo " LDFLAGS: $LDFLAGS"
echo " LIBS: $LIBS"