Updated build system as per Ralf's suggestions to Chapter 9 in Autotools book.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@1108 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
jcalcote
2009-07-28 18:39:19 +00:00
parent 495cca0a7b
commit 62fc7e082f
34 changed files with 222 additions and 203 deletions

View File

@@ -18,7 +18,7 @@ AC_PROG_CXX
AC_PROG_INSTALL
# Checks for optional programs.
AC_PROG_TRY_DOXYGEN
FLM_PROG_TRY_DOXYGEN
# Configure FTKLIB, FTKINC, FTK_LTLIB and FTK_INCLUDE
FLM_FTK_SEARCH
@@ -83,37 +83,41 @@ gcc_opt_flags="-O -foptimize-sibling-calls
case $host in
sparc-*-solaris*)
LDFLAGS="$LDFLAGS -R /usr/lib/lwp"
if "x$CXX" != "xg++"; then
if "x$debug" = xno; then
CXXFLAGS="$CXXFLAGS -xO3"
fi
SUN_STUDIO_COMPILER=`"$CXX" -V | grep "Sun C++"`
if "x$SUN_STUDIO_COMPILER" = "xSun C++"; then
CXXFLAGS="$CXXFLAGS -errwarn=%all -errtags -erroff=hidef,inllargeuse,doubunder"
fi
fi ;;
case $CXX in
*g++*) ;;
*)
if "x$debug" = xno; then
CXXFLAGS="$CXXFLAGS -xO3"
fi
SUN_STUDIO_COMPILER=`$CXX -V | grep "Sun C++"`
if "x$SUN_STUDIO_COMPILER" = "xSun C++"; then
CXXFLAGS="$CXXFLAGS -errwarn=%all -errtags -erroff=hidef,inllargeuse,doubunder"
fi ;;
esac ;;
*-apple-darwin*)
AC_DEFINE([OSX], [1], [Define if building on Apple OSX.]) ;;
*-*-aix*)
if "x$CXX" != "xg++"; then
CXXFLAGS="$CXXFLAGS -qstrict -q$build_bits"
LDFLAGS="$LDFLAGS -q$build_bits -X$build_bits"
fi ;;
case $CXX in
*g++*) ;;
*) CXXFLAGS="$CXXFLAGS -qstrict" ;;
esac ;;
*-*-hpux*)
if "x$CXX" != "xg++"; then
# Disable "Placement operator delete invocation is not yet implemented" warning
CXXFLAGS="$CXXFLAGS +W930"
fi ;;
case $CXX in
*g++*) ;;
*)
# Disable "Placement operator delete invocation is not yet implemented" warning
CXXFLAGS="$CXXFLAGS +W930" ;;
esac ;;
esac
AC_CONFIG_FILES([Makefile
obs/sqlflaim.spec
obs/Makefile
src/Makefile
libflaimsql.pc])
src/libflaimsql.pc])
AC_OUTPUT
echo "