fixed with-includedir
authorGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Wed, 8 Jan 2003 14:28:49 +0000 (14:28 +0000)
committerGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Wed, 8 Jan 2003 14:28:49 +0000 (14:28 +0000)
[r582]

configure
configure.in

index 7bb5b2c..baa485a 100755 (executable)
--- a/configure
+++ b/configure
@@ -847,6 +847,11 @@ Optional Features:
   --enable-autodoc        enable auto documentation
   --enable-firmjni        check for tools necesarry to construct a java native interface for Firm
 
+Optional Packages:
+  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
+  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
+  --with-includedir=dir add directory to include search path
+
 Some influential environment variables:
   CC          C compiler command
   CFLAGS      C compiler flags
@@ -1285,6 +1290,14 @@ libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${
 
 
 
+# Check whether --with-includedir or --without-includedir was given.
+if test "${with_includedir+set}" = set; then
+  withval="$with_includedir"
+  CPPFLAGS=$CPPFLAGS" -I"$withval
+else
+  T_FLAG=""
+fi;
+
 
 # Check whether --enable-debug or --disable-debug was given.
 if test "${enable_debug+set}" = set; then
index 31476d8..a9051fc 100644 (file)
@@ -1,4 +1,4 @@
-dnl Process this file with autoconf to produce a configure script.
+dnl Process this file withautoconf to produce a configure script.
 dnl Copyright (c) 2001 IPD, Universität Karlsruhe (TH)
 
 dnl libFIRM Project
@@ -22,6 +22,9 @@ dnl keep track of the environment set by the user
 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
 AC_SUBST(libfirm_conf_env)
 
+dnl check for additional include dirs
+AC_ARG_WITH(includedir, [  --with-includedir=dir add directory to include search path],
+    CPPFLAGS=$CPPFLAGS" -I"$withval, T_FLAG="")
 
 dnl Package options
 dnl ===============