File: configure.ac

package info (click to toggle)
shtool 2.0.8-9
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 808 kB
  • ctags: 12
  • sloc: perl: 399; makefile: 110; sh: 42
file content (55 lines) | stat: -rw-r--r-- 1,923 bytes parent folder | download | duplicates (3)
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
dnl ##
dnl ##  configure.ac -- Autoconf source for GNU shtool
dnl ##  Copyright (c) 1999-2008 Ralf S. Engelschall <rse@engelschall.com>
dnl ##
dnl ##  This file is part of shtool and free software; you can redistribute
dnl ##  it and/or modify it under the terms of the GNU General Public
dnl ##  License as published by the Free Software Foundation; either version
dnl ##  2 of the License, or (at your option) any later version.
dnl ##
dnl ##  This file 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 GNU
dnl ##  General Public License for more details.
dnl ##
dnl ##  You should have received a copy of the GNU General Public License
dnl ##  along with this program; if not, write to the Free Software
dnl ##  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
dnl ##  USA, or contact Ralf S. Engelschall <rse@engelschall.com>.
dnl ##

AC_PREREQ(2.53)
AC_REVISION($1.0$)
AC_INIT(README)

SHTOOL_VERSION_STR="`sh sh.version -l txt -d long VERSION`"
sh sh.echo -e "Configuring %BGNU shtool%b (Portable Shell Tool), version %B${SHTOOL_VERSION_STR}%b"
echo "Copyright (c) 1994-2008 Ralf S. Engelschall <rse@engelschall.com>"
AC_SUBST(SHTOOL_VERSION_STR)

AC_PREFIX_DEFAULT(/usr/local)
AC_SET_MAKE

AC_MSG_CHECKING(for perl interpreter)
PERL=`sh sh.path -m perl`
AC_SUBST(PERL)
AC_MSG_RESULT($PERL)
if test ".$PERL" = .; then
    echo "$0:Error: no perl interpreter found" 1>&2
    exit 1
fi

AC_MSG_CHECKING(for pod2man conversion tool)
perldir=`sh sh.path -d $PERL`
POD2MAN=`sh sh.path -m -p "${perldir}:${PATH}" pod2man`
AC_SUBST(POD2MAN)
AC_MSG_RESULT($POD2MAN)
if test ".$POD2MAN" = .; then
    echo "$0:Error: no pod2man tool found" 1>&2
    exit 1
fi

AC_CONFIG_FILES(Makefile shtoolize)
AC_CONFIG_COMMANDS([adjustment], [chmod a+x shtoolize])
AC_OUTPUT