1
# ESOREX_SET_PREFIX(PREFIX)
2
#---------------------------
3
AC_DEFUN([ESOREX_SET_PREFIX],
6
# make $PIPE_HOME the default for the installation
9
if test "x$prefix" = "xNONE"; then
10
prefix=$ac_default_prefix
11
ac_configure_args="$ac_configure_args --prefix $prefix"
14
if test "x$exec_prefix" = "xNONE"; then
23
# Define auxiliary directories of the installed directory tree.
24
AC_DEFUN([ESOREX_SET_PATHS],
27
if test -z "$htmldir"; then
28
htmldir='${datadir}/doc/${PACKAGE}/html'
31
if test -z "$configdir"; then
32
configdir='${datadir}/${PACKAGE}/config'
43
# Checks for GNU getopt_long declaration and function.
44
AC_DEFUN([ESOREX_FUNC_GETOPT],
47
AH_TEMPLATE([HAVE_GETOPT_LONG_ONLY],
48
[Define if you have the `getopt_long_only' function])
50
ESO_CHECK_FUNC(getopt_long_only, [#include <getopt.h>],
51
HAVE_GETOPT_LONG_ONLY)
53
if test x"$ac_cv_func_getopt_long_only" = xno ||
54
test x"$eso_cv_have_decl_getopt_long_only" = xno; then
55
if test -n "$LIBTOOL"; then
56
GETOPT="getopt.lo getopt1.lo"
58
GETOPT="getopt.$ac_objext getopt1.$ac_objext"