diff options
author | Horst3180 | 2015-08-21 00:05:39 +0200 |
---|---|---|
committer | Horst3180 | 2015-08-21 00:05:39 +0200 |
commit | 0a879aaa77977ddd6dd0591b673ff4624c745032 (patch) | |
tree | f3f326787223fdeecd3ae8e8294f4579e3e9c9ca /m4/arc-enable.m4 | |
parent | 59803702086f0616ef1ce65726497c38d48db761 (diff) | |
download | solarc-firefox-theme-0a879aaa77977ddd6dd0591b673ff4624c745032.tar.gz solarc-firefox-theme-0a879aaa77977ddd6dd0591b673ff4624c745032.tar.xz solarc-firefox-theme-0a879aaa77977ddd6dd0591b673ff4624c745032.zip |
enable installation via autotools
Diffstat (limited to 'm4/arc-enable.m4')
-rw-r--r-- | m4/arc-enable.m4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/m4/arc-enable.m4 b/m4/arc-enable.m4 new file mode 100644 index 0000000..a34e8c1 --- /dev/null +++ b/m4/arc-enable.m4 @@ -0,0 +1,19 @@ +# ARC_ENABLE(VARIABLE, FEATURE, HELP-NAME, DISABLE/ENABLE) +# ----------------------------------------------------------- +AC_DEFUN([ARC_ENABLE], [ + AC_ARG_ENABLE( + [$2], + [AS_HELP_STRING( + [--$4-$2], + [$4 $3 support] + )], + [ENABLE_$1="$enableval"], + [AS_IF( + [test "x$4" = "xdisable"], + [ENABLE_$1="yes"], + [ENABLE_$1="no"] + )] + ) + AM_CONDITIONAL([ENABLE_$1], [test "x$ENABLE_$1" = "xyes"]) + AC_SUBST([ENABLE_$1]) +]) |