Permalink
Browse files

Move configure check for The Force to its own file

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@6010 ea778897-0a13-0410-b9d1-a72fbfd435f5
  • Loading branch information...
1 parent 974bb4c commit 7c7bf882638d5700888f271282d44ad8b01d338a @b4n b4n committed Oct 6, 2011
Showing with 19 additions and 14 deletions.
  1. +1 −1 ChangeLog
  2. +1 −13 configure.ac
  3. +17 −0 m4/geany-the-force.m4
View
2 ChangeLog
@@ -5,7 +5,7 @@
* configure.ac, m4/geany-revision.m4, m4/geany-binreloc.m4,
m4/geany-gnu-regex.m4, m4/geany-plugins.m4, m4/geany-i18n.m4,
m4/geany-mingw.m4, m4/geany-socket.m4, m4/geany-vte.m4,
- m4/geany-utils.m4, m4/geany-status.m4:
+ m4/geany-utils.m4, m4/geany-status.m4, m4/geany-the-force.m4:
Extract some configure logic to separate files for better
readability.
View
14 configure.ac
@@ -88,19 +88,7 @@ GEANY_CHECK_MINGW
GEANY_CHECK_SOCKET
GEANY_CHECK_VTE
-
-# just for a laugh (it has absolutely no effect)
-AC_ARG_ENABLE([the-force],
- [AS_HELP_STRING([--enable-the-force],
- [enable if you are Luke Skywalker and the force is with you [default=no]])],
- [be_luke="$enableval"],
- [be_luke="no"])
-AC_MSG_CHECKING([whether the force is with you])
-if test "x$be_luke" = "xyes"; then
- AC_MSG_RESULT([yes])
-else
- AC_MSG_RESULT([no])
-fi
+GEANY_CHECK_THE_FORCE dnl hehe
# i18n
GEANY_I18N
View
17 m4/geany-the-force.m4
@@ -0,0 +1,17 @@
+dnl GEANY_CHECK_THE_FORCE
+dnl just for a laugh (it has absolutely no effect)
+AC_DEFUN([GEANY_CHECK_THE_FORCE],
+[
+ AC_ARG_ENABLE([the-force],
+ [AS_HELP_STRING([--enable-the-force],
+ [enable if you are Luke Skywalker and the force is with you [default=no]])],
+ [be_luke="$enableval"],
+ [be_luke="no"])
+
+ AC_MSG_CHECKING([whether the force is with you])
+ if test "x$be_luke" = "xyes"; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ fi
+])

0 comments on commit 7c7bf88

Please sign in to comment.