/[public]/psiconv/tags/rel-0-7-0/configure.in
ViewVC logotype

Diff of /psiconv/tags/rel-0-7-0/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2 Revision 19
1dnl Process this file with autoconf to produce a configure script. 1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(psiconv) 2AC_INIT(psiconv)
3AM_INIT_AUTOMAKE(psiconv,0.5.0) 3AM_INIT_AUTOMAKE(psiconv,0.5.0a)
4 4
5AM_CONFIG_HEADER(config.h) 5AM_CONFIG_HEADER(config.h)
6 6
7dnl Checks for programs. 7dnl Checks for programs.
8AM_PROG_LIBTOOL 8AM_PROG_LIBTOOL
9 9
10dnl Checks for libraries. 10dnl Checks for libraries.
11AC_ARG_WITH(imagemagick,
12 [ --with-imagemagick enable ImageMagick (default = yes)],
13 [IMAGEMAGICK=$withval],
14 [IMAGEMAGICK='yes'])
15if test x"$IMAGEMAGICK" != xno ; then
16 AC_CHECK_LIB(Magick,MagickWarning,IMAGEMAGICK=yes,IMAGEMAGICK=no)
17 if test x"$IMAGEMAGICK" = xno ; then
18 AC_MSG_WARN(ImageMagick support disabled!)
19 fi
20fi
21if test x"$IMAGEMAGICK" = xyes ; then
22 LIB_MAGICK=-lMagick
23 AC_DEFINE(IMAGEMAGICK)
24else
25 LIB_MAGICK=
26fi
27AC_SUBST(LIB_MAGICK)
11 28
12dnl Checks for header files. 29dnl Checks for header files.
13AC_HEADER_STDC 30AC_HEADER_STDC
14AC_CHECK_HEADERS(unistd.h) 31AC_CHECK_HEADERS(unistd.h)
15 32
111 no) asciidocs=false ;; 128 no) asciidocs=false ;;
112 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ascii-docs) ;; 129 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ascii-docs) ;;
113esac],[asciidocs=false]) 130esac],[asciidocs=false])
114AM_CONDITIONAL(ASCIIDOCS,test x$asciidocs = xtrue) 131AM_CONDITIONAL(ASCIIDOCS,test x$asciidocs = xtrue)
115 132
133AC_ARG_ENABLE(rtf-docs,
134[ --enable-rtf-docs Enable generation of RTF docs (default: off)],
135[case "${enableval}" in
136 yes) rtfdocs=true ;;
137 no) rtfdocs=false ;;
138 *) AC_MSG_ERROR(bad value ${enableval} for --enable-rtf-docs) ;;
139esac],[rtfdocs=false])
140AM_CONDITIONAL(RTFDOCS,test x$rtfdocs = xtrue)
141
142dnl This is stolen from gnome-libs-1.0.14
143AC_ARG_ENABLE(compile-warnings,
144[ --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings.],
145,enable_compile_warnings=minimum)
146
147AC_MSG_CHECKING(what warning flags to pass to the C compiler)
148warnCFLAGS=
149if test "x$GCC" != xyes; then
150 enable_compile_warnings=no
151fi
152if test "x$enable_compile_warnings" != "xno"; then
153 if test "x$GCC" = "xyes"; then
154 case " $CFLAGS " in
155 *[\ \ ]-Wall[\ \ ]*) ;;
156 *) warnCFLAGS="-Wall -Wunused" ;;
157 esac
158
159 ## -W is not all that useful. And it cannot be controlled
160 ## with individual -Wno-xxx flags, unlike -Wall
161 if test "x$enable_compile_warnings" = "xyes"; then
162 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
163 fi
164 fi
165fi
166AC_MSG_RESULT($warnCFLAGS)
167
168AC_ARG_ENABLE(iso-c,
169 [ --enable-iso-c Try to warn if code is not ISO C ],,
170 enable_iso_c=no)
171
172AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
173complCFLAGS=
174if test "x$enable_iso_c" != "xno"; then
175 if test "x$GCC" = "xyes"; then
176 case " $CFLAGS " in
177 *[\ \ ]-ansi[\ \ ]*) ;;
178 *) complCFLAGS="$complCFLAGS -ansi" ;;
179 esac
180
181 case " $CFLAGS " in
182 *[\ \ ]-pedantic[\ \ ]*) ;;
183 *) complCFLAGS="$complCFLAGS -pedantic" ;;
184 esac
185 fi
186fi
187AC_MSG_RESULT($complCFLAGS)
188if test "x$cflags_set" != "xyes"; then
189 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
190 cflags_set=yes
191 AC_SUBST(cflags_set)
192fi
193
116AC_OUTPUT([Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile]) 194AC_OUTPUT([Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile])

Legend:
Removed from v.2  
changed lines
  Added in v.19

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26