(file) Return to configure.in CVS log (file) (dir) Up to [RizwankCVS] / testProject

  1 rizwank 1.1 dnl Process this file with autoconf to produce a configure script.
  2             
  3             AC_PREREQ(2.13)
  4             
  5             AC_INIT(src/gsint.h)
  6             AM_INIT_AUTOMAKE(enscript, 1.6.3)
  7             AM_CONFIG_HEADER(config.h)
  8             
  9             AC_REVISION($Revision: 1.59 $)
 10             
 11             AC_PROG_INSTALL
 12             
 13             AC_ARG_WITH(cc,
 14             [  --with-cc(=CC)	  use system's native compiler (or compiler CC)],
 15               if test "X$withval" != "Xno"; then
 16                 if test "X$withval" = "Xyes"; then
 17                   CC='cc'
 18                 else
 19                   CC=$withval
 20                 fi
 21                 CFLAGS="$CFLAGS -I/usr/local/include"
 22 rizwank 1.1     LDFLAGS="$LDFLAGS -L/usr/local/lib"
 23                 echo "using compiler CC=$CC"
 24               fi
 25             )
 26             
 27             if test "X$CC" = "X"; then
 28               AC_PROG_CC
 29             fi
 30             
 31             AC_ISC_POSIX
 32             AM_C_PROTOTYPES
 33             
 34             AC_C_CONST
 35             AC_FUNC_ALLOCA
 36             
 37             AC_STDC_HEADERS
 38             AC_HAVE_HEADERS(string.h stdlib.h unistd.h stdarg.h math.h pwd.h)
 39             AC_HAVE_HEADERS(sys/types.h sys/stat.h)
 40             
 41             dnl Check some functions.
 42             AC_CHECK_FUNCS(strchr)
 43 rizwank 1.1 AC_CHECK_FUNC(strerror, AC_DEFINE(HAVE_STRERROR), [
 44               LIBOBJS="$LIBOBJS strerror.o"
 45             ])
 46             AC_CHECK_FUNC(memmove, AC_DEFINE(HAVE_MEMMOVE), [
 47               LIBOBJS="$LIBOBJS memmove.o"
 48             ])
 49             AC_CHECK_FUNC(memcpy, AC_DEFINE(HAVE_MEMCPY), [
 50               LIBOBJS="$LIBOBJS memcpy.o"
 51             ])
 52             AC_CHECK_FUNC(strtoul, AC_DEFINE(HAVE_STRTOUL), [
 53               LIBOBJS="$LIBOBJS strtoul.o"
 54             ])
 55             
 56             AC_CHECK_FUNC(getcwd, AC_DEFINE(HAVE_GETCWD), [
 57               AC_CHECK_FUNC(getwd, AC_DEFINE(HAVE_GETWD))
 58             ])
 59             
 60             AC_FUNC_VPRINTF
 61             
 62             dnl -lsun is needed on IRIX-4.0 to get the user passwd entry through
 63             dnl the yellow pages / NIS.
 64 rizwank 1.1 AC_CHECK_LIB(sun, main)
 65             
 66             dnl Find out where the gethostname() is.
 67             AC_CHECK_FUNC(gethostname, , [
 68               AC_CHECK_LIB(nsl, gethostname, LIBS="$LIBS -lnsl", [
 69                 AC_CHECK_LIB(socket, gethostname)
 70               ])
 71             ])
 72             
 73             AC_PROG_RANLIB
 74             AC_PROG_YACC
 75             AM_PROG_LEX
 76             
 77             AC_ARG_ENABLE(debug,
 78             [  --enable-debug	  enable debugging], [
 79               echo enabling debugging
 80               if test -n "$GCC"; then
 81                 CFLAGS="$CFLAGS -Wall"
 82               fi
 83             ])
 84             
 85 rizwank 1.1 dnl Define the default output media.
 86             
 87             AC_ARG_WITH(media,
 88             [  --with-media(=MEDIA)	  use output media Letter (MEDIA), default is A4],
 89               if test "X$withval" != "Xno"; then
 90                 if test "X$withval" = "Xyes"; then
 91                   ac_cv_value_media='Letter'
 92                 else
 93                   ac_cv_value_media=$withval
 94                 fi
 95               else
 96                 ac_cv_value_media=${MEDIA-A4}
 97               fi,
 98               ac_cv_value_media=${MEDIA-A4}
 99             )
100             MEDIA=$ac_cv_value_media
101             AC_SUBST(MEDIA)
102             
103             dnl Find the printer spooler command.
104             
105             AC_CHECK_PROG(SPOOLER, lpr, lpr)
106 rizwank 1.1 AC_CHECK_PROG(SPOOLER, lp, lp)
107             
108             dnl user can overwrite this
109             AC_ARG_WITH(spooler,
110             [  --with-spooler=SPOOLER  set the printer spooler command],
111               if test "X$withval" != "Xno"; then
112                 SPOOLER=$withval
113               fi
114             )
115             
116             dnl If SPOOLER is still empty, set it to `lpr'.  After this, we should
117             dnl be able to compile enscript on HURD.
118             if test "X$SPOOLER" = "X"; then
119               SPOOLER=lpr
120             fi
121             
122             dnl The spooler queue param.
123             QUEUEPARAM="-P"
124             AC_ARG_WITH(queue-param,
125             [  --with-queue-param=PARAM  specify the printer spooler queue parameter],
126               if test "X$withval" != "Xno"; then
127 rizwank 1.1     QUEUEPARAM=$withval
128               fi
129             )
130             AC_SUBST(QUEUEPARAM)
131             
132             dnl The PostScript language level.
133             PSLEVEL="2"
134             AC_ARG_WITH(ps-level,
135             [  --with-ps-level=LEVEL   set the PostScript language level to LEVEL],
136               if test "X$withval" != "Xno"; then
137                 PSLEVEL=$withval
138               fi
139             )
140             AC_SUBST(PSLEVEL)
141             
142             dnl Internationalization.
143             ALL_LINGUAS="de es fi fr nl ru sl"
144             AM_GNU_GETTEXT
145             
146             dnl Path separator character.
147             AC_DEFINE_UNQUOTED(PATH_SEPARATOR, ':')
148 rizwank 1.1 AC_DEFINE_UNQUOTED(PATH_SEPARATOR_STR, ":")
149             
150             dnl
151             dnl Scripts
152             dnl
153             
154             dnl diffpp
155             
156             AC_PATH_PROG(PERL, perl)
157             
158             dnl substitutions
159             
160             AC_SUBST(CFLAGS)
161             AC_SUBST(LDFLAGS)
162             AC_SUBST(LIBOBJS)
163             
164             AC_OUTPUT([Makefile \
165             	compat/Makefile \
166             	afm/Makefile \
167             	afmlib/Makefile \
168             	src/Makefile \
169 rizwank 1.1 	src/tests/Makefile \
170             	lib/Makefile \
171             	scripts/Makefile \
172             	intl/Makefile \
173             	po/Makefile.in \
174             	states/Makefile \
175             	states/hl/Makefile \
176             	states/tests/Makefile \
177             	docs/Makefile \
178             	w32/Makefile], [sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile])
179             
180             echo ""
181             
182             echo "Enscript is now configured to your system with the following"
183             echo "user-definable options.  Please, check that they are correct and"
184             echo "match to your system's properties."
185             echo ""
186             echo "Option     Change with configure's option   Current value"
187             echo "---------------------------------------------------------"
188             echo "Media      --with-media=MEDIA               $MEDIA"
189             echo "Spooler    --with-spooler=SPOOLER           $SPOOLER"
190 rizwank 1.1 echo "PS level   --with-ps-level=LEVEL            $PSLEVEL"
191             echo "QueueParam --with-queue-param=PARAM         $QUEUEPARAM"
192             echo ""

Rizwan Kassim
Powered by
ViewCVS 0.9.2