summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgs/ijs/autogen.sh133
-rw-r--r--gs/ijs/configure.ac8
2 files changed, 82 insertions, 59 deletions
diff --git a/gs/ijs/autogen.sh b/gs/ijs/autogen.sh
index 3c73b05b9..a2c044738 100755
--- a/gs/ijs/autogen.sh
+++ b/gs/ijs/autogen.sh
@@ -1,7 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2# Run this to generate all the initial makefiles, etc. 2# Run this to generate all the initial makefiles, etc.
3# bits borrowed from all over 3# bits borrowed from all over
4
5package="ijs" 4package="ijs"
6 5
7olddir=`pwd` 6olddir=`pwd`
@@ -29,64 +28,88 @@ echo "checking for autoconf..."
29 DIE=1 28 DIE=1
30} 29}
31 30
32VERSIONGREP="sed -e s/.*[^0-9\.]\([0-9]\.[0-9]\).*/\1/" 31 VERSIONGREP="sed -e s/.*[^0-9\.]\([0-9]\.[0-9]\).*/\1/"
33 32
34# do we need automake? 33# do we need automake?
35(grep "^AM_INIT_AUTOMAKE" "$CONFIG_AC" >/dev/null) && { 34if test "x$USE_OLD" = "xyes" ; then
36 AM_NEEDED=`fgrep AUTOMAKE_OPTIONS Makefile.am | $VERSIONGREP` 35 (grep "^AM_INIT_AUTOMAKE" "$CONFIG_AC" >/dev/null) && {
37 AM_NMAJOR=`echo $AM_NEEDED |cut -d. -f1` 36 AM_NEEDED=`fgrep AUTOMAKE_OPTIONS Makefile.am | $VERSIONGREP`
38 AM_NMINOR=`echo $AM_NEEDED |cut -d. -f2` 37 AM_NMAJOR=`echo $AM_NEEDED |cut -d. -f1`
39 AM_NPATCHLEVEL=`echo $AM_NEEDED |cut -d. -f3` 38 AM_NMINOR=`echo $AM_NEEDED |cut -d. -f2`
40 AM_NVERSION=`expr $AM_NMAJOR '*' 10000 + $AM_NMINOR '*' 100 + 0$AM_NPATCHLEVEL` 39 AM_NPATCHLEVEL=`echo $AM_NEEDED |cut -d. -f3`
41 if test -z $AM_NEEDED; then 40 AM_NVERSION=`expr $AM_NMAJOR '*' 10000 + $AM_NMINOR '*' 100 + 0$AM_NPATCHLEVEL`
42 echo -n "checking for automake... " 41 if test -z $AM_NEEDED; then
43 AUTOMAKE=automake 42 echo -n "checking for automake... "
44 ACLOCAL=aclocal 43 AUTOMAKE=automake
45 if ($AUTOMAKE --version < /dev/null > /dev/null 2>&1); then 44 ACLOCAL=aclocal
46 echo "no" 45 if ($AUTOMAKE --version < /dev/null > /dev/null 2>&1); then
47 AUTOMAKE= 46 echo "no"
47 AUTOMAKE=
48 else
49 echo "yes"
50 fi
51 echo
48 else 52 else
49 echo "yes" 53 echo -n "checking for automake $AM_NEEDED or later... "
54 for am in automake-$AM_NEEDED automake$AM_NEEDED automake; do
55 ($am --version < /dev/null > /dev/null 2>&1) || continue
56 AM_MAJOR=`echo $AM_NEEDED |cut -d. -f1`
57 AM_MINOR=`echo $AM_NEEDED |cut -d. -f2`
58 AM_PATCHLEVEL=`echo $AM_NEEDED |cut -d. -f3`
59 AM_VERSION=`expr $AM_NMAJOR '*' 10000 + $AM_NMINOR '*' 100 + 0$AM_NPATCHLEVEL`
60 if test $AM_VERSION -ge $AM_NVERSION; then
61 AUTOMAKE=$am
62 echo $AUTOMAKE
63 break
64 fi
65 done
66 test -z $AUTOMAKE && echo "no"
67 echo -n "checking for aclocal $AM_NEEDED or later... "
68 for ac in aclocal-$AM_NEEDED aclocal$AM_NEEDED aclocal; do
69 ($ac --version < /dev/null > /dev/null 2>&1) || continue
70 AM_MAJOR=`echo $AM_NEEDED |cut -d. -f1`
71 AM_MINOR=`echo $AM_NEEDED |cut -d. -f2`
72 AM_PATCHLEVEL=`echo $AM_NEEDED |cut -d. -f3`
73 AM_VERSION=`expr $AM_NMAJOR '*' 10000 + $AM_NMINOR '*' 100 + 0$AM_NPATCHLEVEL`
74 if test $AM_VERSION -ge $AM_NVERSION; then
75 ACLOCAL=$ac
76 echo $ACLOCAL
77 break
78 fi
79 done
80 test -z $ACLOCAL && echo "no"
50 fi 81 fi
51 echo 82 test -z $AUTOMAKE || test -z $ACLOCAL && {
52 else 83 echo
53 echo -n "checking for automake $AM_NEEDED or later... " 84 echo "You must have automake installed to compile $package."
54 for am in automake-$AM_NEEDED automake$AM_NEEDED automake; do 85 echo "Download the appropriate package for your distribution,"
55 ($am --version < /dev/null > /dev/null 2>&1) || continue 86 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
56 AM_MAJOR=`echo $AM_NEEDED |cut -d. -f1` 87 exit 1
57 AM_MINOR=`echo $AM_NEEDED |cut -d. -f2` 88 }
58 AM_PATCHLEVEL=`echo $AM_NEEDED |cut -d. -f3`
59 AM_VERSION=`expr $AM_NMAJOR '*' 10000 + $AM_NMINOR '*' 100 + 0$AM_NPATCHLEVEL`
60 if test $AM_VERSION -ge $AM_NVERSION; then
61 AUTOMAKE=$am
62 echo $AUTOMAKE
63 break
64 fi
65 done
66 test -z $AUTOMAKE && echo "no"
67 echo -n "checking for aclocal $AM_NEEDED or later... "
68 for ac in aclocal-$AM_NEEDED aclocal$AM_NEEDED aclocal; do
69 ($ac --version < /dev/null > /dev/null 2>&1) || continue
70 AM_MAJOR=`echo $AM_NEEDED |cut -d. -f1`
71 AM_MINOR=`echo $AM_NEEDED |cut -d. -f2`
72 AM_PATCHLEVEL=`echo $AM_NEEDED |cut -d. -f3`
73 AM_VERSION=`expr $AM_NMAJOR '*' 10000 + $AM_NMINOR '*' 100 + 0$AM_NPATCHLEVEL`
74 if test $AM_VERSION -ge $AM_NVERSION; then
75 ACLOCAL=$ac
76 echo $ACLOCAL
77 break
78 fi
79 done
80 test -z $ACLOCAL && echo "no"
81 fi
82 test -z $AUTOMAKE || test -z $ACLOCAL && {
83 echo
84 echo "You must have automake installed to compile $package."
85 echo "Download the appropriate package for your distribution,"
86 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
87 exit 1
88 } 89 }
89} 90else
91
92 AUTOMAKE=automake
93 ACLOCAL=aclocal
94 AM_VER=`$AUTOMAKE --version | grep "automake (GNU automake)" | sed 's/[^0-9\.]*//g'`
95 AM_MAJ=`echo $AM_VER |cut -d. -f1`
96 AM_MIN=`echo $AM_VER |cut -d. -f2`
97 AM_PAT=`echo $AM_VER |cut -d. -f3`
98
99 AM_NEEDED=`fgrep AUTOMAKE_OPTIONS Makefile.am | $VERSIONGREP`
100 AM_MAJOR_REQ=`echo $AM_NEEDED |cut -d. -f1`
101 AM_MINOR_REQ=`echo $AM_NEEDED |cut -d. -f2`
102
103 echo "checking for automake $AM_NEEDED or later..."
104
105 if [ $AM_MAJ -lt $AM_MAJOR_REQ -o $AM_MIN -lt $AM_MINOR_REQ ] ; then
106 echo
107 echo "You must have automake $AM_NEEDED or better installed to compile $package."
108 echo "Download the appropriate package for your distribution,"
109 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
110 exit 1
111 fi
112fi
90 113
91(grep "^AM_PROG_LIBTOOL" "$CONFIG_AC" >/dev/null) && { 114(grep "^AM_PROG_LIBTOOL" "$CONFIG_AC" >/dev/null) && {
92 echo -n "checking for libtoolize... " 115 echo -n "checking for libtoolize... "
@@ -133,7 +156,7 @@ autoconf
133 156
134cd "$olddir" 157cd "$olddir"
135 158
136conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c 159conf_flags= #"--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
137 160
138echo Running $srcdir/configure $conf_flags "$@" ... 161echo Running $srcdir/configure $conf_flags "$@" ...
139$srcdir/configure $conf_flags "$@" \ 162$srcdir/configure $conf_flags "$@" \
diff --git a/gs/ijs/configure.ac b/gs/ijs/configure.ac
index df0260f9a..6c05a3891 100644
--- a/gs/ijs/configure.ac
+++ b/gs/ijs/configure.ac
@@ -49,9 +49,9 @@ pushdef([IJS_INTERFACE_AGE], [1])
49pushdef([IJS_BINARY_AGE], [0]) 49pushdef([IJS_BINARY_AGE], [0])
50pushdef([IJS_VERSION], IJS_MAJOR_VERSION.IJS_MINOR_VERSION[]IJS_EXTRA_VERSION) 50pushdef([IJS_VERSION], IJS_MAJOR_VERSION.IJS_MINOR_VERSION[]IJS_EXTRA_VERSION)
51 51
52AC_INIT(IJS_NAME, IJS_VERSION, [inkjet-list@linuxprinting.org]) 52AC_INIT([IJS_NAME], [IJS_VERSION])
53AC_PREREQ(2.53) 53AC_PREREQ(2.53)
54AC_CONFIG_SRCDIR(ijs.c) 54AC_CONFIG_SRCDIR([ijs.c])
55AC_REVISION($Revision: 5783 $) 55AC_REVISION($Revision: 5783 $)
56 56
57dnl In the following script, there are a the following variants 57dnl In the following script, there are a the following variants
@@ -84,7 +84,7 @@ popdef([IJS_INTERFACE_AGE])
84popdef([IJS_BINARY_AGE]) 84popdef([IJS_BINARY_AGE])
85 85
86dnl Initialize automake stuff. 86dnl Initialize automake stuff.
87AM_INIT_AUTOMAKE(IJS_NAME, IJS_VERSION) 87AM_INIT_AUTOMAKE
88popdef([IJS_NAME]) 88popdef([IJS_NAME])
89popdef([IJS_VERSION]) 89popdef([IJS_VERSION])
90 90
@@ -151,7 +151,7 @@ AC_SUBST(IJS_VERSION)
151AC_SUBST(ijs_cflags) 151AC_SUBST(ijs_cflags)
152ijs_libs="${IJS_LIBS} ${IJS_DEPLIBS}" 152ijs_libs="${IJS_LIBS} ${IJS_DEPLIBS}"
153AC_SUBST(ijs_libs) 153AC_SUBST(ijs_libs)
154AC_SUBST(INCLUDES) 154AC_SUBST(AM_CPPFLAGS)
155LIBIJS_LIBS="${LIBIJS_LIBS} ${IJS_DEPLIBS}" 155LIBIJS_LIBS="${LIBIJS_LIBS} ${IJS_DEPLIBS}"
156AC_SUBST(LIBIJS_LIBS) 156AC_SUBST(LIBIJS_LIBS)
157 157