/[public]/psiconv/trunk/configure.in
ViewVC logotype

Annotation of /psiconv/trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16 - (hide annotations)
Wed Oct 13 16:08:59 1999 UTC (25 years, 1 month ago) by frodo
File size: 3987 byte(s)
(Frodo) Added ImageMagick detection and configuration. No code to use it yet.

1 frodo 2 dnl Process this file with autoconf to produce a configure script.
2     AC_INIT(psiconv)
3 frodo 15 AM_INIT_AUTOMAKE(psiconv,0.5.0a)
4 frodo 2
5     AM_CONFIG_HEADER(config.h)
6    
7     dnl Checks for programs.
8     AM_PROG_LIBTOOL
9    
10     dnl Checks for libraries.
11 frodo 16 AC_ARG_WITH(imagemagick,
12     [ --with-imagemagick enable ImageMagick (default = yes)],
13     [IMAGEMAGICK=$withval],
14     [IMAGEMAGICK='yes'])
15     if 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
20     fi
21     if test x"$IMAGEMAGICK" = xyes ; then
22     LIB_MAGICK=-lMagick
23     AC_DEFINE(IMAGEMAGICK)
24     else
25     LIB_MAGICK=
26     fi
27     AC_SUBST(LIB_MAGICK)
28 frodo 2
29     dnl Checks for header files.
30     AC_HEADER_STDC
31     AC_CHECK_HEADERS(unistd.h)
32    
33     dnl Checks for typedefs, structures, and compiler characteristics.
34     AC_C_CONST
35     AC_TYPE_SIZE_T
36    
37     dnl Here we check for large enough integer types. This is not quite
38     dnl good enough, but it should work almost always.
39    
40     AC_CHECK_SIZEOF(char,1)
41     AC_CHECK_SIZEOF(short,1)
42     AC_CHECK_SIZEOF(int,2)
43     AC_CHECK_SIZEOF(long,4)
44    
45     AC_MSG_CHECKING(for an 8 bit integer type)
46     if test $ac_cv_sizeof_char -ge 1 ; then
47     INT_8_BIT=char
48     AC_MSG_RESULT(char)
49     elif test $ac_cv_sizeof_short -ge 1 ; then
50     INT_8_BIT=short
51     AC_MSG_RESULT(short)
52     elif test $ac_cv_sizeof_int -ge 1 ; then
53     INT_8_BIT=int
54     AC_MSG_RESULT(int)
55     elif test $ac_cv_sizeof_long -ge 1 ; then
56     INT_8_BIT=long
57     AC_MSG_RESULT(long)
58     else
59     AC_MSG_ERROR(No integer type of at least 8 bits found)
60     fi
61    
62     AC_MSG_CHECKING(for a 16 bit integer type)
63     if test $ac_cv_sizeof_char -ge 2 ; then
64     INT_16_BIT=char
65     AC_MSG_RESULT(char)
66     elif test $ac_cv_sizeof_short -ge 2 ; then
67     INT_16_BIT=short
68     AC_MSG_RESULT(short)
69     elif test $ac_cv_sizeof_int -ge 2 ; then
70     INT_16_BIT=int
71     AC_MSG_RESULT(int)
72     elif test $ac_cv_sizeof_long -ge 2 ; then
73     INT_16_BIT=long
74     AC_MSG_RESULT(long)
75     else
76     AC_MSG_ERROR(No integer type of at least 16 bits found)
77     fi
78    
79     AC_MSG_CHECKING(for a 32 bit integer type)
80     if test $ac_cv_sizeof_char -ge 4 ; then
81     INT_32_BIT=char
82     AC_MSG_RESULT(char)
83     elif test $ac_cv_sizeof_short -ge 4 ; then
84     INT_32_BIT=short
85     AC_MSG_RESULT(short)
86     elif test $ac_cv_sizeof_int -ge 4 ; then
87     INT_32_BIT=int
88     AC_MSG_RESULT(int)
89     elif test $ac_cv_sizeof_long -ge 4 ; then
90     INT_32_BIT=long
91     AC_MSG_RESULT(long)
92     else
93     AC_MSG_ERROR(No integer type of at least 32 bits found)
94     fi
95    
96     AC_SUBST(INT_8_BIT)
97     AC_SUBST(INT_16_BIT)
98     AC_SUBST(INT_32_BIT)
99    
100     dnl Checks for library functions.
101     AC_FUNC_VPRINTF
102     AC_CHECK_FUNCS(strdup)
103     AC_REPLACE_FUNCS(strdup)
104    
105     dnl With and without functions
106     AC_ARG_ENABLE(html-docs,
107     [ --disable-html-docs Disable generation of HTML 3.2 docs (default: on)],
108     [case "${enableval}" in
109     yes) htmldocs=true ;;
110     no) htmldocs=false ;;
111     *) AC_MSG_ERROR(bad value ${enableval} for --enable-html-docs) ;;
112     esac],[htmldocs=true])
113     AM_CONDITIONAL(HTMLDOCS,test x$htmldocs = xtrue)
114    
115     AC_ARG_ENABLE(html4-docs,
116     [ --enable-html4-docs Enable generation of HTML 4 docs (default: off)],
117     [case "${enableval}" in
118     yes) html4docs=true ;;
119     no) html4docs=false ;;
120     *) AC_MSG_ERROR(bad value ${enableval} for --enable-html4-docs) ;;
121     esac],[html4docs=false])
122     AM_CONDITIONAL(HTML4DOCS,test x$html4docs = xtrue)
123    
124     AC_ARG_ENABLE(ascii-docs,
125     [ --enable-ascii-docs Enable generation of ASCII docs (default: off)],
126     [case "${enableval}" in
127     yes) asciidocs=true ;;
128     no) asciidocs=false ;;
129     *) AC_MSG_ERROR(bad value ${enableval} for --enable-ascii-docs) ;;
130     esac],[asciidocs=false])
131     AM_CONDITIONAL(ASCIIDOCS,test x$asciidocs = xtrue)
132    
133 frodo 7 AC_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) ;;
139     esac],[rtfdocs=false])
140     AM_CONDITIONAL(RTFDOCS,test x$rtfdocs = xtrue)
141    
142 frodo 2 AC_OUTPUT([Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile])

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