File: configure.ac

package info (click to toggle)
grid-packaging-tools 3.2globus2-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,816 kB
  • ctags: 1,621
  • sloc: perl: 19,536; sh: 3,047; makefile: 320; exp: 89
file content (82 lines) | stat: -rw-r--r-- 1,712 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
AC_REVISION($Revision: 1.1.1.1 $)
AC_INIT(gpt, 3.2)
AC_CONFIG_SRCDIR(Makefile.am)
AM_INIT_AUTOMAKE([ no-installman ])


AC_ARG_WITH([perl],
	
AC_HELP_STRING([--with-perl=PATH], [path to perl binary]),
[
	case $withval in
	no)
		echo "--with-perl requires an argument" >&2
		exit 1
		;;
	yes)
		echo "--with-perl requires an argument" >&2
		exit 1
		;;
	*)
                PERL=$withval
                POD2MAN=`echo $PERL | sed 's!bin/perl!bin/pod2man!'`
                if ! test -f $POD2MAN; then
                 POD2MAN=
                fi 
		;;
	esac
],
[
        AC_PATH_PROG(PERL,perl)
        AC_PATH_PROG(POD2MAN,pod2man)
]
)

AC_SUBST(PERL)
AC_SUBST(POD2MAN)


AC_ARG_WITH([perlmoduledir],

AC_HELP_STRING([--with-perlmoduledir=DIR],
[perl module installation directory [[PREFIX/lib/perl]]]),
[
    case $withval in
    no)
        echo "--with-perlmoduledir requires an argument" >&2
        exit 1
        ;;
    yes)
        echo "--with-perlmoduledir requires an argument" >&2
        exit 1
        ;;
    *)
        perlmoduledir=$withval
        ;;
    esac
],
[
    perlmoduledir='${prefix}/lib/perl'
]
)

AC_SUBST(perlmoduledir)


# checking for the GPT_LOCATION
ac_default_prefix=${GPT_LOCATION:-$ac_default_prefix}

AC_PATH_PROGS(TAR, gtar tar)
AC_PATH_PROGS(GUNZIP, gunzip)
AC_PATH_PROGS(GZIP, gzip)
AC_PROG_LN_S

AC_ARG_ENABLE(compat, AC_HELP_STRING([--disable-compat], [disable backward compatibility symlinks]),[],enable_compat="yes")
AC_MSG_NOTICE([Enable backward compatibility symlinks: $enable_compat])
AM_CONDITIONAL([ENABLE_COMPAT],[test "x$enable_compat" = "xyes"])

AC_CONFIG_FILES(Makefile 
        perl/scripts/gpt_version
        perl/GPT/GPTIdentity.pm
        )
AC_OUTPUT()