Start integrating new build system with "configure"
authorAlan T. DeKok <aland@freeradius.org>
Wed, 25 Jan 2012 17:02:50 +0000 (18:02 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 25 Jan 2012 17:03:26 +0000 (18:03 +0100)
Have the "all.mk" files generated by "configure".

19 files changed:
src/modules/rlm_krb5/all.mk [deleted file]
src/modules/rlm_krb5/all.mk.in [new file with mode: 0644]
src/modules/rlm_krb5/configure
src/modules/rlm_krb5/configure.in
src/modules/rlm_ldap/all.mk [deleted file]
src/modules/rlm_ldap/all.mk.in [new file with mode: 0644]
src/modules/rlm_ldap/configure
src/modules/rlm_ldap/configure.in
src/modules/rlm_pam/all.mk [deleted file]
src/modules/rlm_pam/configure
src/modules/rlm_pam/configure.in
src/modules/rlm_perl/all.mk [deleted file]
src/modules/rlm_perl/all.mk.in [new file with mode: 0644]
src/modules/rlm_perl/configure
src/modules/rlm_perl/configure.in
src/modules/rlm_python/all.mk [deleted file]
src/modules/rlm_python/all.mk.in [new file with mode: 0644]
src/modules/rlm_python/configure
src/modules/rlm_python/configure.in

diff --git a/src/modules/rlm_krb5/all.mk b/src/modules/rlm_krb5/all.mk
deleted file mode 100644 (file)
index 0d51b1c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-TARGET     = rlm_krb5.a
-SOURCES       = rlm_krb5.c
diff --git a/src/modules/rlm_krb5/all.mk.in b/src/modules/rlm_krb5/all.mk.in
new file mode 100644 (file)
index 0000000..ad55f3c
--- /dev/null
@@ -0,0 +1,2 @@
+TARGET         = @targetname@.a
+SOURCES                = rlm_krb5.c
index bdc9c51..7bc5618 100755 (executable)
@@ -4036,7 +4036,7 @@ krb5_cflags="${krb5_h_cflags} $SMART_CFLAGS"
   unset ac_cv_env_LIBS_set
   unset ac_cv_env_LIBS_value
 
-  ac_config_files="$ac_config_files Makefile"
+  ac_config_files="$ac_config_files Makefile all.mk"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
index 2b69b37..65f2e69 100644 (file)
@@ -107,3 +107,4 @@ AC_SUBST(krb5_cflags)
 AC_SUBST(krb5_ldflags)
 AC_SUBST(targetname)
 AC_OUTPUT(Makefile)
+AC_OUTPUT(all.mk)
diff --git a/src/modules/rlm_ldap/all.mk b/src/modules/rlm_ldap/all.mk
deleted file mode 100644 (file)
index 53db5b5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-TARGET     = rlm_ldap.a
-SOURCES       = rlm_ldap.c 
-
-SRC_CFLAGS =    -DHAVE_LDAP_START_TLS -DHAVE_LDAP_INITIALIZE -DLDAP_DEPRECATED -DLDAP_SET_REBIND_PROC_ARGS=3
-TGT_LDLIBS   = -lldap_r 
diff --git a/src/modules/rlm_ldap/all.mk.in b/src/modules/rlm_ldap/all.mk.in
new file mode 100644 (file)
index 0000000..9854a3c
--- /dev/null
@@ -0,0 +1,5 @@
+TARGET         = rlm_ldap.a
+SOURCES                = rlm_ldap.c @edir@
+
+SRC_CFLAGS     = @ldap_cflags@
+TGT_LDLIBS     = @ldap_ldflags@
index 8fc6c38..3bec0f3 100755 (executable)
@@ -3937,7 +3937,7 @@ ldap_cflags="$SMART_CFLAGS -DLDAP_DEPRECATED -DLDAP_SET_REBIND_PROC_ARGS=$ac_cv_
   unset ac_cv_env_LIBS_set
   unset ac_cv_env_LIBS_value
 
-  ac_config_files="$ac_config_files Makefile"
+  ac_config_files="$ac_config_files Makefile all.mk"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
index b998e76..007b3ed 100644 (file)
@@ -179,3 +179,4 @@ AC_SUBST(ldap_ldflags)
 AC_SUBST(ldap_cflags)
 AC_SUBST(targetname)
 AC_OUTPUT(Makefile)
+AC_OUTPUT(all.mk)
diff --git a/src/modules/rlm_pam/all.mk b/src/modules/rlm_pam/all.mk
deleted file mode 100644 (file)
index 8a6455e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-TARGET     = rlm_pam.a
-SOURCES       = rlm_pam.c
index 5098c1a..dd226b4 100755 (executable)
@@ -3546,7 +3546,7 @@ ac_config_headers="$ac_config_headers config.h"
   unset ac_cv_env_LIBS_set
   unset ac_cv_env_LIBS_value
 
-  ac_config_files="$ac_config_files Makefile"
+  ac_config_files="$ac_config_files Makefile all,mk"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
index d4572f2..8faa53e 100644 (file)
@@ -49,3 +49,4 @@ AC_SUBST(pam_cflags)
 AC_SUBST(targetname)
 AC_CONFIG_HEADER(config.h)
 AC_OUTPUT(Makefile)
+AC_OUTPUT(all.mk)
diff --git a/src/modules/rlm_perl/all.mk b/src/modules/rlm_perl/all.mk
deleted file mode 100644 (file)
index 117ade9..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-TARGET      =  rlm_perl.a
-SOURCES        = rlm_perl.c
-
-SRC_CFLAGS  = `perl -MExtUtils::Embed -e ccopts`
-TGT_LDLIBS    = `perl -MExtUtils::Embed -e ldopts`
diff --git a/src/modules/rlm_perl/all.mk.in b/src/modules/rlm_perl/all.mk.in
new file mode 100644 (file)
index 0000000..2fcd156
--- /dev/null
@@ -0,0 +1,5 @@
+TARGET         = @targetname@.a
+SOURCES                = rlm_perl.c
+
+SRC_CFLAGS     = @perl_cflags@
+TGT_LDLIBS     = @perl_ldflags@
index bf1e0f2..71b6759 100755 (executable)
@@ -3387,7 +3387,7 @@ ac_config_headers="$ac_config_headers config.h"
   unset ac_cv_env_LIBS_set
   unset ac_cv_env_LIBS_value
 
-  ac_config_files="$ac_config_files Makefile"
+  ac_config_files="$ac_config_files Makefile all.mk"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
index 51bf9a6..3f9b5ba 100644 (file)
@@ -90,3 +90,4 @@ AC_CONFIG_HEADER(config.h)
 
 AC_SUBST(targetname)
 AC_OUTPUT(Makefile)
+AC_OUTPUT(all.mk)
diff --git a/src/modules/rlm_python/all.mk b/src/modules/rlm_python/all.mk
deleted file mode 100644 (file)
index 7c5c091..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-TARGET     = rlm_python.a
-SOURCES       = rlm_python.c
-
-TGT_LDLIBS   = -L/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config                         -ldl  -lpython2.6 -lm
-SRC_CFLAGS = -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
diff --git a/src/modules/rlm_python/all.mk.in b/src/modules/rlm_python/all.mk.in
new file mode 100644 (file)
index 0000000..ebc8204
--- /dev/null
@@ -0,0 +1,5 @@
+TARGET         = @targetname.a
+SOURCES                = rlm_python.c
+
+TGT_LDLIBS     = @python_ldflags@
+SRC_CFLAGS     = @python_cflags@
index b670192..ee7ad7b 100755 (executable)
@@ -3388,7 +3388,7 @@ fi
   unset ac_cv_env_LIBS_set
   unset ac_cv_env_LIBS_value
 
-  ac_config_files="$ac_config_files Makefile"
+  ac_config_files="$ac_config_files Makefile all.mk"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
index 5e2106e..c72c208 100644 (file)
@@ -115,3 +115,4 @@ AC_SUBST(python_ldflags)
 AC_SUBST(python_cflags)
 AC_SUBST(targetname)
 AC_OUTPUT(Makefile)
+AC_OUTPUT(all.mk)