Skip to content
Snippets Groups Projects
Commit 2870a1c4 authored by Claus-Justus Heine's avatar Claus-Justus Heine
Browse files

User AC_HELP_STRING() for nicer formatting in AC_ARG_WITH and friends.

parent 88bec4db
No related branches found
No related tags found
No related merge requests found
......@@ -48,8 +48,8 @@ else
DEFAULT_LIBDIR=$3
fi
AC_ARG_WITH($1-lib,
[ --with-$1-lib=DIR use $1 library below directory DIR
(default: $3)],
AC_HELP_STRING([ --with-$1-lib=DIR],
[use $1 library below directory DIR (default: $3)]),
[case "$withval" in
yes) AC_MSG_ERROR("option \"--with-$1-lib\" requires an argument")
;;
......@@ -68,8 +68,8 @@ else
DEFAULT_INCDIR=$6
fi
AC_ARG_WITH($1-headers,
[ --with-$1-headers=DIR use $1 include files below directory DIR
(default: $6)],
AC_HELP_STRING([--with-$1-headers=DIR],
[use $1 include files below directory DIR (default: $6)])x,
[case "$withval" in
yes) AC_MSG_ERROR("option \"--with-$1-headers\" requires an argument")
;;
......@@ -124,6 +124,7 @@ fi
fi dnl disable fi
AM_CONDITIONAL(m4_bpatsubst([$1],-,_), test -n "${m4_bpatsubst([$1],-,_)_LIB}")
AC_SUBST(m4_bpatsubst([$1],-,_)_INCLUDE_PATH)
AC_SUBST(m4_bpatsubst([$1],-,_)_LIB_PATH)
AC_SUBST(m4_bpatsubst([$1],-,_)_LIB)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment