Clean up htop's configure options.

This commit is contained in:
Hisham Muhammad 2008-03-09 02:16:21 +00:00
parent 93f091c47e
commit fa87ff0251
1 changed files with 34 additions and 27 deletions

View File

@ -148,24 +148,26 @@ AC_DEFUN([PLPA_SET_SYMBOL_PREFIX],[
# Internals # Internals
AC_DEFUN([_PLPA_INTERNAL_SETUP],[ AC_DEFUN([_PLPA_INTERNAL_SETUP],[
AC_ARG_ENABLE([emulate], AC_ARG_ENABLE([plpa_emulate],
AC_HELP_STRING([--enable-emulate], AC_HELP_STRING([--enable-plpa-emulate],
[Emulate __NR_sched_setaffinity and __NR_sched_getaffinity, to allow building on non-Linux systems (for testing)])) [Emulate __NR_sched_setaffinity and __NR_sched_getaffinity, to allow building on non-Linux systems (for testing)]))
if test "$enable_emulate" = "yes"; then if test "$enable_plpa_emulate" = "yes"; then
plpa_emulate=yes plpa_emulate=yes
else else
plpa_emulate=no plpa_emulate=no
fi fi
# Included mode, or standalone? dnl Hisham Muhammad: don't expose flags to htop's configure
AC_ARG_ENABLE([included-mode], dnl
AC_HELP_STRING([--enable-included-mode], dnl # Included mode, or standalone?
[Using --enable-included-mode puts the PLPA into "included" mode. The default is --disable-included-mode, meaning that the PLPA is in "standalone" mode.])) dnl AC_ARG_ENABLE([included-mode],
if test "$enable_included_mode" = "yes"; then dnl AC_HELP_STRING([--enable-included-mode],
dnl [Using --enable-included-mode puts the PLPA into "included" mode. The default is --disable-included-mode, meaning that the PLPA is in "standalone" mode.]))
dnl if test "$enable_included_mode" = "yes"; then
plpa_mode=included plpa_mode=included
else dnl else
plpa_mode=standalone dnl plpa_mode=standalone
fi dnl fi
dnl JMS: No fortran bindings yet dnl JMS: No fortran bindings yet
dnl # Fortran bindings, or no? dnl # Fortran bindings, or no?
@ -178,25 +180,30 @@ dnl else
dnl plpa_fortran=no dnl plpa_fortran=no
dnl fi dnl fi
# Build and install the executables or no? dnl Hisham Muhammad: don't expose flags to htop's configure
AC_ARG_ENABLE([executables], dnl
AC_HELP_STRING([--disable-executables], dnl # Build and install the executables or no?
[Using --disable-executables disables building and installing the PLPA executables])) dnl AC_ARG_ENABLE([executables],
if test "$enable_executables" = "yes" -o "$enable_executables" = ""; then dnl AC_HELP_STRING([--disable-executables],
plpa_executables=yes dnl [Using --disable-executables disables building and installing the PLPA executables]))
else dnl if test "$enable_executables" = "yes" -o "$enable_executables" = ""; then
dnl plpa_executables=yes
dnl else
plpa_executables=no plpa_executables=no
fi dnl fi
# Change the symbol prefix? dnl Hisham Muhammad: don't expose flags to htop's configure
AC_ARG_WITH([plpa-symbol-prefix], dnl
AC_HELP_STRING([--with-plpa-symbol-prefix=STRING], dnl # Change the symbol prefix?
[STRING can be any valid C symbol name. It will be prefixed to all public PLPA symbols. Default: "plpa_"])) dnl AC_ARG_WITH([plpa-symbol-prefix],
if test "$with_plpa_symbol_prefix" = ""; then dnl AC_HELP_STRING([--with-plpa-symbol-prefix=STRING],
dnl [STRING can be any valid C symbol name. It will be prefixed to all public PLPA symbols. Default: "plpa_"]))
dnl if test "$with_plpa_symbol_prefix" = ""; then
plpa_symbol_prefix_value=plpa_ plpa_symbol_prefix_value=plpa_
else dnl else
plpa_symbol_prefix_value=$with_plpa_symbol_prefix dnl plpa_symbol_prefix_value=$with_plpa_symbol_prefix
fi dnl fi
])dnl ])dnl
#----------------------------------------------------------------------- #-----------------------------------------------------------------------