-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfigure.in
More file actions
112 lines (82 loc) · 2.93 KB
/
Copy pathconfigure.in
File metadata and controls
112 lines (82 loc) · 2.93 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
dnl Process this file with autoconf to produce a configure script.
AC_INIT([ASIM leap], [0.6], [[email protected]], [leap])
AC_PREREQ(2.59) dnl required autoconf version
AC_CONFIG_SRCDIR([admin/packages/leap])
dnl AC_INIT(admin/packages/leap)
dnl Installation defaults
dnl AC_PREFIX_DEFAULT(/usr/local)
AC_PREFIX_PROGRAM(asimstarter)
AC_CONFIG_AUX_DIR(aux-scripts)
AM_INIT_AUTOMAKE([1.8.3 foreign subdir-objects]) dnl automake version + options
AM_CONFIG_HEADER(include/config.h)
#
# Control perl install
#
AC_ARG_ENABLE([perl-vendor-install],
AC_HELP_STRING([--enable-perl-vendor-install],
[Do a perl vendor install]),
perlinstalldirs=vendor,
perlinstalldirs=site)
#
# --enable-qt4
#
AC_ARG_ENABLE([qt4],
AC_HELP_STRING([--enable-qt4=ARG],
[use qt4 [[ARG=no|yes]] (default=no with system-specific exceptions)]),
asim_cv_enable_qt4=$enableval,
asim_cv_enable_qt4=no)
# Force qt4 for Ubuntu Oneiric or later
if test $asim_cv_enable_qt4 = "no" -a -x /usr/bin/lsb_release -a $(lsb_release -s -i) = "Ubuntu" -a $(lsb_release -s -r | sed 's/\.//') -ge 1110
then
asim_cv_enable_qt4="yes"
fi
AM_CONDITIONAL([ENABLE_PERLQT4], [test "$asim_cv_enable_qt4" = yes])
AC_SUBST(package)
package=leap
dnl Get release tag out of package file.
dnl The tag is assumed to be in a line that looks like: Tag=<tagname>
AC_SUBST(release)
release=`grep '^Tag=' ./admin/packages/$package | sed 's/Tag=//'`
configdir='${sysconfdir}/asim/${release}'
AC_SUBST(configdir)
packagedir='${datadir}/asim/packages'
AC_SUBST(packagedir)
codedir='${packagedir}/${package}/${release}'
AC_SUBST(codedir)
# This is where architecture dependent info is placed
#tooldir='${libexecdir}/asim/${release}'
# For now we always treat the release for tools as HEAD
tooldir='${libexecdir}/asim/HEAD'
AC_SUBST(tooldir)
# directory to install html doxygen documentation
htmldir='${docdir}/html'
AC_SUBST(htmldir)
dnl Checks for programs.
AC_PROG_CC
AC_PROG_LN_S
AC_PROG_INSTALL
dnl Check for scons
AC_CHECK_PROG(have_scons, scons, yes)
if test "X$have_scons" == "X"; then
AC_MSG_ERROR([Scons is needed to build leap programs])
fi
dnl libperl
AC_CONFIG_FILES(libperl/Makefile)
dnl AC_CONFIG_FILES(libperl/Asim/lib/Asim.pm)
# run perl MakeMaker at configure time, not make time,
# to create the makefiles in the libperl tree:
AC_CONFIG_COMMANDS( libperl/Leap/Makefile ,
[cd libperl/Leap; perl Makefile.PL PREFIX=$prefix INSTALLDIRS=$perlinstalldirs; cd ../..],
[prefix=$prefix; perlinstalldirs=$perlinstalldirs ])
# tools top level
AC_CONFIG_FILES(tools/Makefile)
# tools/scripts
AC_CONFIG_FILES(tools/scripts/Makefile)
# tools/scripts
AC_CONFIG_FILES(tools/leap/Makefile)
# tools/scripts
AC_CONFIG_FILES(tools/leap/leap-front-panel/Makefile)
AC_CONFIG_FILES(tools/leap/leap-front-panel-qt3/Makefile)
# docs
AC_CONFIG_FILES(docs/Makefile)
AC_OUTPUT(Makefile)