aria2/m4/aria2_arg.m4
Tatsuhiro Tsujikawa 01238a1579 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that configure --enable-FEATURE actually disables 
FEATURE.
	* m4/aria2_arg.m4
2008-08-04 14:34:19 +00:00

16 lines
463 B
Plaintext

dnl ARIA2_ARG_WITH(PACKAGE)
dnl wrapper for AC_ARG_WITH with default value 'yes'.
AC_DEFUN([ARIA2_ARG_WITH],
[AC_ARG_WITH([$1],
AC_HELP_STRING([--with-$1], [use $1 if it is installed.]),
[with_$1=$withval], [with_$1=yes])]
)
dnl ARIA2_ARG_ENABLE(FEATURE)
dnl wrapper for AC_ARG_ENABLE with default value 'yes'.
AC_DEFUN([ARIA2_ARG_ENABLE],
[AC_ARG_ENABLE([$1],
AC_HELP_STRING([--enable-$1], [enable $1 support.]),
[enable_$1=$enableval], [enable_$1=yes])]
)