# C++ compiler options
CXXFLAGS := @CXXFLAGS@
CXXINC := $(filter -I%,@CXX@)
-CXXOPTS := $(CXXFLAGS)
+CXXOPTS := $(CXXFLAGS) @PICFLAG@
ifeq ($(notdir $(firstword $(CXX))),g++)
# It's GCC, or pretending to be it -- so it better smell like it!
# Code generation
DOXYGEN
AR
EXCEPTIONS
+PICFLAG
CONFIG_FILES
SUBDIRS
configure_args
with_compiler
with_bugurl
enable_checking
+enable_host_shared
enable_exceptions
'
ac_precious_vars='build_alias
only specific categories of checks. Categories are:
yes,no,all,none,release. Flags are: misc,valgrind or
other strings
+ --enable-host-shared build host code as shared libraries
--enable-exceptions enable exceptions & rtti
Optional Packages:
fi
+# Enable --enable-host-shared.
+# Check whether --enable-host-shared was given.
+if test "${enable_host_shared+set}" = set; then :
+ enableval=$enable_host_shared; PICFLAG=-fPIC
+else
+ PICFLAG=
+fi
+
+
# Check whether --enable-exceptions was given.
if test "${enable_exceptions+set}" = set; then :
AC_DEFINE(NMS_CHECKING, 0)
fi
+# Enable --enable-host-shared.
+AC_ARG_ENABLE(host-shared,
+[AS_HELP_STRING([--enable-host-shared],
+ [build host code as shared libraries])],
+[PICFLAG=-fPIC], [PICFLAG=])
+AC_SUBST(PICFLAG)
NMS_ENABLE_EXCEPTIONS