This repository was archived by the owner on Jan 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
63 lines (53 loc) · 1.62 KB
/
configure.in
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
dnl +--------------------------------------------------------------------------+
dnl | CDStore 0.5 * Command line CD catalogue |
dnl | Copyright (C) 2002-2007 Pozsar Zsolt <[email protected]> |
dnl | configure.in |
dnl | Autoconf input file. |
dnl +--------------------------------------------------------------------------+
AC_INIT(script/cds.in)
AC_CONFIG_AUX_DIR(config)
AC_PREFIX_DEFAULT("/usr/local")
test x"$prefix" = xNONE && prefix="$ac_default_prefix"
AC_PATH_PROG(rm, rm, no)
AC_PATH_PROG(install, install, no)
AC_CHECK_PROGS(make, make make)
AC_CHECK_PROGS(havecdialog,dialog,no)
AC_CHECK_PROGS(havexdialog,Xdialog,no)
version=`cat document/VERSION`
release=`cat document/RELEASE`
debver=$version-$release
test "$release" = '1' && debver=$version
AC_SUBST(version)
AC_SUBST(debver)
AC_SUBST(release)
AC_SUBST(prefix)
AC_SUBST(bindir)
AC_SUBST(sysconfdir)
AC_SUBST(libdir)
AC_SUBST(datadir)
AC_SUBST(install)
AC_SUBST(make)
AC_SUBST(rm)
AC_OUTPUT( Makefile.global \
autopackage/default.apspec \
document/cds.8 \
document/hu/cds-non-utf.8 \
document/hu-UTF8/cds.8 \
package/cdstore.spec.info \
package/control \
script/cds \
script/cdsdialog \
script/xcdsdialog)
chmod 755 script/cds \
script/cdsdialog \
script/xcdsdialog
echo "
Summary
=======
Programme version $version
Programme release $release
Install prefix $prefix
Cdialog $havecdialog
Xdialog $havexdialog
Type '${make} install'.
"