]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
split acinclude.m4 into separate files in m4/
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Thu, 29 Sep 2022 08:44:44 +0000 (09:44 +0100)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Thu, 29 Sep 2022 13:36:00 +0000 (14:36 +0100)
m4/ac_prog_cc_sunpro.m4 [new file with mode: 0644]
m4/vl_lib_readline.m4 [moved from acinclude.m4 with 76% similarity]

diff --git a/m4/ac_prog_cc_sunpro.m4 b/m4/ac_prog_cc_sunpro.m4
new file mode 100644 (file)
index 0000000..0d1f4e7
--- /dev/null
@@ -0,0 +1,18 @@
+dnl Checks to see if this is SUNPro we're building with
+dnl Usage:
+dnl
+dnl   AC_PROG_CC_SUNPRO
+dnl
+AC_DEFUN([AC_PROG_CC_SUNPRO],
+[AC_CACHE_CHECK(whether we are using SUNPro C, ac_cv_prog_suncc,
+[dnl The semicolon is to pacify NeXT's syntax-checking cpp.
+cat > conftest.c <<EOF
+#ifdef __SUNPRO_C
+yes;
+#endif
+EOF
+if AC_TRY_COMMAND(${CC-cc} -E conftest.c) | egrep yes >/dev/null 2>&1; then
+ac_cv_prog_suncc=yes
+else
+ac_cv_prog_suncc=no
+fi])])
similarity index 76%
rename from acinclude.m4
rename to m4/vl_lib_readline.m4
index cbc030269c35fecf1a1f389002529627a2b8b688..25a01723a964b4e618487f744080126a72904eec 100644 (file)
@@ -1,20 +1,3 @@
-dnl Checks to see if this is SUNPro we're building with
-dnl Usage:
-dnl AC_PROG_CC_SUNPRO
-AC_DEFUN([AC_PROG_CC_SUNPRO],
-[AC_CACHE_CHECK(whether we are using SUNPro C, ac_cv_prog_suncc,
-[dnl The semicolon is to pacify NeXT's syntax-checking cpp.
-cat > conftest.c <<EOF
-#ifdef __SUNPRO_C
-yes;
-#endif
-EOF
-if AC_TRY_COMMAND(${CC-cc} -E conftest.c) | egrep yes >/dev/null 2>&1; then
-ac_cv_prog_suncc=yes
-else
-ac_cv_prog_suncc=no
-fi])])
-
 AC_DEFUN([VL_LIB_READLINE], [
 AC_CACHE_CHECK([for a readline compatible library],
                vl_cv_lib_readline, [
@@ -63,5 +46,3 @@ LIBREADLINE_PREFIX=$(brew --prefix readline 2>/dev/null)
 AC_SUBST(LIBREADLINE)
 AC_SUBST(LIBREADLINE_PREFIX)
 ])dnl
-
-AC_INCLUDE(aclocal.m4)