AC_CANONICAL_HOST
AC_ARG_WITH(gcc,
-[ --without-gcc use CC to compile])
+AS_HELP_STRING([--without-gcc],[use CC to compile]))
test -n "$CC" && cc_specified=yes
case ${with_gcc} in
# Build with gd
AC_ARG_WITH([gd],
-[ --with-gd Compile with support for the graphical gd library],
+AS_HELP_STRING([--with-gd],[Compile with support for the graphical gd library]),
[],[with_gd=check])
if ( test "x$with_gd" != "xno" ) ; then
AC_CHECK_HEADERS(gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h)
# Build with LDAP
AC_ARG_WITH([ldap],
-[ --with-ldap Compile with LDAP support],
+AS_HELP_STRING([--with-ldap],[Compile with LDAP support]),
[],[with_ldap=check])
if ( test "x$with_ldap" != "xno" ) ; then
AC_CHECK_HEADERS(ldap.h)
# Build with iconv
AC_ARG_WITH([iconv],
-[ --with-iconv Compile with support for iconv],
+AS_HELP_STRING([--with-iconv],[Compile with support for iconv]),
[],[with_iconv=check])
if ( test "x$with_iconv" != "xno" ) ; then
dnl Check for iconv
dnl Select sarg-php directory
AC_ARG_ENABLE(sargphp,
-[ --enable-sargphp=sargphpdir
- Select sargphpdir as the directory to install sarg-php into ],
+AS_HELP_STRING([--enable-sargphp=sargphpdir],
+[Select sargphpdir as the directory to install sarg-php into]),
[
if test "$enableval" -a "x$enableval" != "xno" ; then
SARGPHPDIR=$enableval
dnl Select fonts dir
AC_ARG_ENABLE(fontdir,
-[ --enable-fontdir=fontdir
- Select fontdir as the directory with the fonts to use in the reports ],
+AS_HELP_STRING([--enable-fontdir=fontdir],
+[Select fontdir as the directory with the fonts to use in the reports]),
[
if test "$enableval" -a "x$enableval" != "xno" ; then
FONTDIR=$enableval
dnl Select images dir
AC_ARG_ENABLE(imagedir,
-[ --enable-imagedir=imagedir
- Select imagedir as the directory with the images to use in the reports ],
+AS_HELP_STRING([--enable-imagedir=imagedir],
+[Select imagedir as the directory with the images to use in the reports]),
[
if test "$enableval"; then
IMAGEDIR=$enableval
dnl Enable extra compile and run time protection
AC_ARG_ENABLE(extraprotection,
-[ --enable-extraprotection
- Enable compile and runtime extra protections ],
+AS_HELP_STRING([--enable-extraprotection],
+[Enable compile and runtime extra protections]),
[
if test "$enableval"; then
CFLAGS="${CFLAGS} -fstack-protector -D_FORTIFY_SOURCE=2"
dnl Enable double check of the data written in the reports
AC_ARG_ENABLE(doublecheck,
-[ --enable-doublecheck
- Make sarg double check the data it manipulates and output a warning if an error is found ],
+AS_HELP_STRING([--enable-doublecheck],
+[Make sarg double check the data it manipulates and output a warning if an error is found]),
[
if test "$enableval"; then
AC_DEFINE(ENABLE_DOUBLE_CHECK_DATA)