~ubuntu-branches/ubuntu/vivid/esorex/vivid-proposed

« back to all changes in this revision

Viewing changes to acinclude.m4

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2011-11-25 12:08:00 UTC
  • Revision ID: package-import@ubuntu.com-20111125120800-hb8qatpoxkhv0fne
Tags: upstream-3.9.0
ImportĀ upstreamĀ versionĀ 3.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# ESOREX_SET_PREFIX(PREFIX)
 
2
#---------------------------
 
3
AC_DEFUN([ESOREX_SET_PREFIX],
 
4
[
 
5
    unset CDPATH
 
6
    # make $PIPE_HOME the default for the installation
 
7
    AC_PREFIX_DEFAULT($1)
 
8
 
 
9
    if test "x$prefix" = "xNONE"; then
 
10
        prefix=$ac_default_prefix
 
11
        ac_configure_args="$ac_configure_args --prefix $prefix"
 
12
    fi
 
13
 
 
14
    if test "x$exec_prefix" = "xNONE"; then
 
15
        exec_prefix=$prefix
 
16
    fi
 
17
 
 
18
])
 
19
 
 
20
 
 
21
# ESOREX_SET_PATHS
 
22
#------------------
 
23
# Define auxiliary directories of the installed directory tree.
 
24
AC_DEFUN([ESOREX_SET_PATHS],
 
25
[
 
26
 
 
27
    if test -z "$htmldir"; then
 
28
        htmldir='${datadir}/doc/${PACKAGE}/html'
 
29
    fi
 
30
 
 
31
    if test -z "$configdir"; then
 
32
       configdir='${datadir}/${PACKAGE}/config'
 
33
    fi
 
34
 
 
35
    AC_SUBST(htmldir)
 
36
    AC_SUBST(configdir)
 
37
 
 
38
])
 
39
 
 
40
 
 
41
# ESOREX_FUNC_GETOPT
 
42
#--------------------
 
43
# Checks for GNU getopt_long declaration and function.
 
44
AC_DEFUN([ESOREX_FUNC_GETOPT],
 
45
[
 
46
 
 
47
    AH_TEMPLATE([HAVE_GETOPT_LONG_ONLY],
 
48
                [Define if you have the `getopt_long_only' function])
 
49
 
 
50
    ESO_CHECK_FUNC(getopt_long_only, [#include <getopt.h>],
 
51
                   HAVE_GETOPT_LONG_ONLY)
 
52
 
 
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"
 
57
        else
 
58
            GETOPT="getopt.$ac_objext getopt1.$ac_objext"
 
59
        fi
 
60
    fi
 
61
 
 
62
    AC_SUBST(GETOPT)
 
63
 
 
64
])