[AD] ALLEGRO_LIB_BUILD

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Does anyone know why ALLEGRO_LIB_BUILD is not defined for the debug and 
profile versions of the library?

-- 
Eric Botcazou
--- /home/eric/cvs/allegro/configure.in	Thu Jan 23 10:35:44 2003
+++ allegro/configure.in	Wed Jan 29 08:19:44 2003
@@ -194,15 +194,18 @@
   ALLEGRO_DEBUG_CFLAGS="-g $WFLAGS -DDEBUGMODE"
   ALLEGRO_PROFILE_CFLAGS="-pg $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
   if test "X$allegro_cv_can_use_pipe" = "Xyes"; then
-    CFLAGS="-pipe $CFLAGS"
-    ALLEGRO_DEBUG_CFLAGS="-pipe $ALLEGRO_DEBUG_CFLAGS"
-    ALLEGRO_PROFILE_CFLAGS="-pipe $ALLEGRO_PROFILE_CFLAGS"
+    CFLAGS="$CFLAGS -pipe"
+    ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -pipe"
+    ALLEGRO_PROFILE_CFLAGS="$ALLEGRO_PROFILE_CFLAGS -pipe"
   fi
   if test "$allegro_cv_support_asm" != i386; then
     CFLAGS="$CFLAGS -DALLEGRO_USE_C"
     ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DALLEGRO_USE_C"
     ALLEGRO_PROFILE_CFLAGS="$ALLEGRO_PROFILE_CFLAGS -DALLEGRO_USE_C"
   fi
+  CFLAGS="$CFLAGS -DALLEGRO_LIB_BUILD"
+  ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DALLEGRO_LIB_BUILD"
+  ALLEGRO_PROFILE_CFLAGS="$ALLEGRO_PROFILE_CFLAGS -DALLEGRO_LIB_BUILD"
   ALLEGRO_SFLAGS="-x assembler-with-cpp"
   ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED"
 else
@@ -212,7 +215,6 @@
   ALLEGRO_SFLAGS=
   ALLEGRO_SHAREDLIB_CFLAGS=
 fi
-CFLAGS="$CFLAGS -DALLEGRO_LIB_BUILD"
 
 AC_SUBST(CFLAGS)
 AC_SUBST(ALLEGRO_DEBUG_CFLAGS)


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/