]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Make autoconf.h available everywhere implicitly using -imacros
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 5 Nov 2012 20:41:51 +0000 (20:41 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 6 Nov 2012 12:13:40 +0000 (12:13 +0000)
Make.inc.in
src/lib/Makefile
src/main/Makefile.in

index b279fcfc2f821c16662b507b62e2d61f09eb240d..a27b7e27338b322afcedd8b2202c0b3116798473 100644 (file)
@@ -28,8 +28,9 @@ datarootdir   = @datarootdir@
 MAKE           = @MAKE@
 CC             = @CC@
 RANLIB         = @RANLIB@
+IMACROS                = -imacros ${top_srcdir}/src/freeradius-devel/autoconf.h
 INCLUDE                = -I${top_srcdir} -I${top_srcdir}/src
-CFLAGS         = $(INCLUDE) @CFLAGS@
+CFLAGS         = $(IMACROS) $(INCLUDE) @CFLAGS@
 CPPFLAGS       = @CPPFLAGS@
 LIBPREFIX      = @LIBPREFIX@
 EXEEXT         = @EXEEXT@
@@ -59,7 +60,7 @@ LIBLTDL               = @LIBLTDL@
 INCLTDL                = @INCLTDL@
 CFLAGS         += $(INCLTDL)
 
-#USE_SHARED_LIBS       = @USE_SHARED_LIBS@
+#USE_SHARED_LIBS = @USE_SHARED_LIBS@
 #USE_STATIC_LIBS = @USE_STATIC_LIBS@
 
 USE_SHARED_LIBS = yes
index 0505abcb75bac8e06616c6e269b0e6b6fc273807..c24110413c07afc60c71c8d6f2260a6b538d6594 100644 (file)
@@ -15,8 +15,8 @@ SRCS          = dict.c filters.c hash.c hmac.c hmacsha1.c isaac.c log.c \
 LT_OBJS                = $(SRCS:.c=.$(LO))
 
 INCLUDES       = ../include/radius.h ../include/libradius.h \
-                 ../include/missing.h ../include/autoconf.h \
-                 ../include/ident.h
+                 ../include/missing.h ../include/ident.h
+
 
 CFLAGS         += -D_LIBRADIUS -I$(top_builddir)/src
 
index dd2642e2a843f627d83a22857b9969c3f5f9bd7c..1a3aeaebe9a5734413413ec05fa731887cfb2745 100644 (file)
@@ -15,8 +15,7 @@ endif
 
 SERVER_OBJS    += $(SERVER_SRCS:.c=.lo)
 
-INCLUDES       = ../include/autoconf.h ../include/conf.h    \
-                 ../include/libradius.h ../include/radius.h \
+INCLUDES       = ../include/conf.h ../include/libradius.h ../include/radius.h \
                  ../include/radiusd.h ../include/ident.h ../include/stats.h
 
 CFLAGS         += -I$(top_builddir)/src