[Liboss-commit] CVS: liboss configure.in,1.4,1.5
Brought to you by:
thesin
|
From: Justin <th...@us...> - 2002-05-09 15:41:23
|
Update of /cvsroot/liboss/liboss
In directory usw-pr-cvs1:/tmp/cvs-serv28203
Modified Files:
configure.in
Log Message:
now sets LDFLAGS and CPPFLAGS to enable dlcompat and uses prefix as search paths as well
Index: configure.in
===================================================================
RCS file: /cvsroot/liboss/liboss/configure.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- configure.in 9 May 2002 14:28:01 -0000 1.4
+++ configure.in 9 May 2002 15:41:20 -0000 1.5
@@ -76,6 +76,11 @@
AC_PROG_RANLIB
AC_PROG_LN_S
+dnl Common flags for all platforms
+CFLAGS="$CFLAGS -I$prefix/include"
+CPPFLAGS="$CPPFLAGS $CFLAGS"
+LDFLAGS="$LDFLAGS -L$prefix/lib"
+
dnl
dnl Libtool
dnl
@@ -105,17 +110,17 @@
dnl debug cflags
dnl
AC_SUBST(DEBUG_CFLAGS)
-DEBUG_CFLAGS="$CFLAGS -g -DDEBUG"
+DEBUG_CFLAGS="-g -DDEBUG"
-#dnl
-#dnl dynamic linker
-#dnl
-#AC_CHECK_LIB(c, dlopen,
-# DYNAMIC_LD_LIBS="",
-# AC_CHECK_LIB(dl, dlopen,
-# DYNAMIC_LD_LIBS="-ldl",
-# AC_MSG_ERROR(dynamic linker needed)))
-#AC_SUBST(DYNAMIC_LD_LIBS)
+dnl
+dnl dynamic linker
+dnl
+AC_CHECK_LIB(c, dlopen,
+ DYNAMIC_LD_LIBS="",
+ AC_CHECK_LIB(dl, dlopen,
+ DYNAMIC_LD_LIBS="-ldl",
+ AC_MSG_ERROR(dynamic linker needed)))
+AC_SUBST(DYNAMIC_LD_LIBS)
dnl
dnl Using or not using -fPIC (override default behavior - system dependent)
@@ -139,12 +144,19 @@
dnl Flags not supported by all *cc* variants
AC_TRY_CFLAGS("-Wall", wall="-Wall", wall="")
+AC_TRY_CFLAGS("-no-cpp-precomp", nocpp="-no-cpp-precomp", nocpp="")
dnl
dnl Some include paths ( !!! DO NOT REMOVE !!! )
dnl
-INCLUDES='-I$(top_srcdir) -I$(top_srcdir)/include -I/System/Library/Frameworks'
+INCLUDES='-I$(top_srcdir) -I$(top_srcdir)/include -F/System/Library/Frameworks/Carbon.frameworks -F/System/Library/Frameworks/Cocoa.framework'
AC_SUBST(INCLUDES)
+
+dnl Common cflags for all platforms
+CFLAGS="$CFLAGS $nocpp $wall"
+CPPFLAGS="$CPPFLAGS $nocpp $wall"
+DEBUG_CFLAGS="$CFLAGS $DEBUG_CFLAGS"
+LDFLAGS="$LDFLAGS"
dnl
dnl Get where .m4 should be installed.
|