]> git.mxchange.org Git - simgear.git/blobdiff - configure.in
MacOS tweaks contributed by Darrell Walisser.
[simgear.git] / configure.in
index 9181d6d8722c6df4b0de0c09d4ca8116f7cbb87a..fffe05c5e762c7dae46ed9718184d240bac0e3bc 100644 (file)
@@ -8,6 +8,23 @@ AC_INIT(simgear/bucket/newbucket.cxx)
 dnl Initialize the automake stuff
 AM_INIT_AUTOMAKE(SimGear, 0.0.14)
 
+dnl Specify KAI C++ compiler and flags.
+dnl Borrowed with slight modification from blitz distribution.
+AC_ARG_WITH(cxx,
+  [  --with-cxx=COMPILER[:name-flags] set options for COMPILER (KCC)],
+  [case "$withval" in
+    KCC*)    # KAI C++ http://www.kai.com/
+      echo "Configuring for KAI C++"
+      AC_SG_SET_COMPILER($withval,"KCC","--restrict --strict_warnings")
+      CXX_OPTIMIZE_FLAGS=="+K3 -O3"
+      CXX_DEBUG_FLAGS="-g +K0"
+    ;;
+  esac
+])
+
+echo CXX = $CXX
+echo CC = $CC
+
 dnl Checks for programs.
 AC_PROG_MAKE_SET
 AC_PROG_CC
@@ -251,6 +268,7 @@ AC_OUTPUT( \
        simgear/Makefile \
        simgear/version.h \
        simgear/bucket/Makefile \
+       simgear/camera/Makefile \
        simgear/debug/Makefile \
        simgear/ephemeris/Makefile \
        simgear/io/Makefile \