AC_SUBST(pkg_group)
dnl check if user wants their own C compiler
-test -z "$CC" && AC_PROG_CC
+if test -z "$CC"; then
+ AC_PROG_CC
+fi
cc=$CC
AC_SUBST(cc)
if test -z "$LIBTOOL"; then
AC_PATH_PROG(LIBTOOL, libtool,,/usr/bin)
fi
-if test "$LIBTOOL" = ""; then
+if test -z "$LIBTOOL"; then
echo
echo 'FATAL ERROR: libtool does not seem to be installed.'
echo $pkg_name cannot be built without a working libtool installation.
dnl libtool to build libraries static only?
AC_ARG_ENABLE(shared,
- [ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],,
+[ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],,
enable_shared=yes)
AC_SUBST(enable_shared)
dnl will we be making use of readline?
AC_ARG_ENABLE(readline,
- [ --enable-readline=[yes/no] Enable readline command editing [default=no]],,
+[ --enable-readline=[yes/no] Enable readline command editing [default=no]],,
enable_readline=no)
if test $enable_readline = yes; then
libreadline="-lreadline -lncurses"
dnl will we be making use of gettext?
AC_ARG_ENABLE(gettext,
- [ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],,
+[ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],,
enable_gettext=yes)
AC_SUBST(enable_gettext)
xgettext=$XGETTEXT
AC_SUBST(xgettext)
- if test "$XGETTEXT" = ""; then
+ if test -z "$XGETTEXT"; then
echo
echo 'FATAL ERROR: xgettext does not seem to be installed.'
echo $pkg_name cannot be built without a working gettext installation.
dnl this particular package, but the option is there.
dnl
AC_ARG_ENABLE(shared-uuid,
- [ --enable-shared-uuid=[yes/no] Link shared libuuid [default=no].],
+[ --enable-shared-uuid=[yes/no] Link shared libuuid [default=no].],
libuuid="/usr/lib/libuuid.a"
if test "$enable_shared_uuid" = yes; then
libuuid="-luuid"
], AC_DEFINE(HAVE___PSUNSIGNED_T) AC_MSG_RESULT(yes) , AC_MSG_RESULT(no))
dnl Check type sizes
-if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
+if test "$cross_compiling" = yes -a -z "$ac_cv_sizeof_long"; then
AC_MSG_WARN([Cross compiling; assuming 32bit long and 32bit pointers])
fi
AC_CHECK_SIZEOF(long, 4)
AC_CHECK_SIZEOF(char *, 4)
-test $ac_cv_sizeof_long -eq 4 && AC_DEFINE(HAVE_32BIT_LONG)
-test $ac_cv_sizeof_long -eq 8 && AC_DEFINE(HAVE_64BIT_LONG)
-test $ac_cv_sizeof_char_p -eq 4 && AC_DEFINE(HAVE_32BIT_PTR)
-test $ac_cv_sizeof_char_p -eq 8 && AC_DEFINE(HAVE_64BIT_PTR)
+if test $ac_cv_sizeof_long -eq 4; then
+ AC_DEFINE(HAVE_32BIT_LONG)
+fi
+if test $ac_cv_sizeof_long -eq 8; then
+ AC_DEFINE(HAVE_64BIT_LONG)
+fi
+if test $ac_cv_sizeof_char_p -eq 4; then
+ AC_DEFINE(HAVE_32BIT_PTR)
+fi
+if test $ac_cv_sizeof_char_p -eq 8; then
+ AC_DEFINE(HAVE_64BIT_PTR)
+fi
dnl man pages (source)
dnl also check if man page source is gzipped