-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
117 lines (103 loc) · 3.11 KB
/
configure.ac
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
113
114
115
116
117
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
dnl configure.ac
dnl
dnl Autoconf configuration for the rivendell_install package.
dnl
dnl Use autoconf to process this into a configure script
dnl
dnl (C) Copyright 2016 Fred Gleason <fredg@paravelsystems.com>
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License version 2 as
dnl published by the Free Software Foundation.
dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public
dnl License along with this program; if not, write to the Free Software
dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
dnl
AC_PREREQ([2.69])
AC_INIT([rdfetch],m4_esyscmd_s(cat PACKAGE_VERSION))
AM_INIT_AUTOMAKE
AC_SUBST(RPM_RELEASE,1)
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_CONFIG_MACRO_DIR([m4])
#
# Some Fully Resolved Install Paths
# (for the packaging system and friends)
#
if test ${prefix} = "NONE" ; then
PREFIX=/usr/local
AC_SUBST(LOCAL_PREFIX,/usr/local)
else
PREFIX=${prefix}
AC_SUBST(LOCAL_PREFIX,${prefix})
fi
#
# Basic Compiler Checks
#
AC_PROG_CC
# Rdfetch specifics, we prefer /home/rd/rdfetch/configuration
# for all the rdfetch configuration and notification
# stuff.
AC_SUBST(HOMERD,/home/rd)
AC_SUBST(RDFETCH_TOPDIR,/home/rd/rdfetch)
AC_SUBST(PODGET_DIR_CONFIG,/home/rd/rdfetch/configuration)
AC_SUBST(PODGET_DIR_SESSION,/home/rd/rdfetch/configuration/tmp)
AC_SUBST(PODGET_DIR_LIBRARY,/home/rd/rdfetch/podcasts)
AC_SUBST(PODGET_DIR_LOG,/home/rd/rdfetch/log)
#
# Option Switches
#
AC_ARG_ENABLE(docbook,[ --disable-docbook disable building of documentation],[DOCBOOK_DISABLED=yes],[])
#
# Build DocBook Items?
#
if test -z $DOCBOOK_DISABLED ; then
USING_DOCBOOK=yes
fi
AM_CONDITIONAL([DOCBOOK_AM], [test "$USING_DOCBOOK" = yes])
#
# DocBook
#
if test -z $DOCBOOK_DISABLED ; then
USING_DOCBOOK=yes
fi
AM_CONDITIONAL([DOCBOOK_AM], [test "$USING_DOCBOOK" = yes])
dnl This was from the Rivendell configure.ac;
dnl we expect DOCBOOK_STYLESHEETS to be exported.
dnl if test $DOCBOOK_STYLESHEETS ; then
dnl ln -s $DOCBOOK_STYLESHEETS helpers/docbook
dnl fi
#
# Configure RPM Build
#
AC_CHECK_PROG(RPMBUILD_FOUND,rpmbuild,[yes],[])
if test -z $RPMBUILD_FOUND ; then
AC_SUBST(RPMBUILD,rpm)
else
AC_SUBST(RPMBUILD,rpmbuild)
fi
if test -d /usr/src/redhat ; then
AC_SUBST(VENDOR,redhat)
else
AC_SUBST(VENDOR,suse)
fi
AC_SUBST(RPM_DATESTAMP,`date +%a\ %b\ %d\ %Y`)
AC_CONFIG_FILES([ \
podgetrc \
rdfetch.spec \
README.md \
Makefile])
# These "config files" are actually executable scripts.
AC_CONFIG_FILES([rdfetch],[chmod +x rdfetch])
AC_CONFIG_FILES([podget-wrapper],[chmod +x podget-wrapper])
AC_OUTPUT()
AC_MSG_NOTICE()
AC_MSG_NOTICE(Now enter 'make' to build the software.)
AC_MSG_NOTICE()