1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT(libtasn1, 0.2.12, bug-gnutls@gnu.org)
4 AM_INIT_AUTOMAKE([1.9 gnits])
5 AM_CONFIG_HEADER(config.h)
7 # Library code modified: REVISION++
8 # Interfaces changed/added/removed: CURRENT++ REVISION=0
9 # Interfaces added: AGE++
10 # Interfaces removed: AGE=0
11 AC_SUBST(LT_CURRENT, 2)
12 AC_SUBST(LT_REVISION, 12)
19 dnl Checks for programs.
21 AM_MISSING_PROG(PERL,perl,$missing_dir)
24 *** Detecting compiler options...
29 AC_MSG_CHECKING([whether C99 macros are supported])
37 AC_DEFINE(C99_MACROS, 1, [C99 macros are supported])
41 AC_MSG_WARN([C99 macros are not supported by your compiler. This may
45 if test $ac_cv_c_compiler_gnu != no; then
47 CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wstrict-prototypes"
49 AC_MSG_CHECKING([whether we have GNU assembler])
51 GAS=`as --version < /dev/null|grep GNU`
53 CFLAGS="${CFLAGS} -pipe"
62 *** Detecting C library capabilities...
66 AC_CHECK_HEADERS(getopt.h unistd.h strings.h inttypes.h stdint.h)
67 AC_CHECK_FUNCS(bzero memset memmove bcopy,,)
68 AC_CHECK_FUNCS(getopt_long)
72 *** Detecting system's parameters...
77 AC_CHECK_SIZEOF(unsigned long long, 8)
78 AC_CHECK_SIZEOF(unsigned long int, 4)
79 AC_CHECK_SIZEOF(unsigned int, 4)
80 AC_CHECK_SIZEOF(unsigned short int, 2)
81 AC_CHECK_SIZEOF(unsigned char, 1)
84 *** Detecting options for shared libraries...
88 LIBTASN1_LIBS="-L${libdir} -ltasn1 $LIBS"
89 LIBTASN1_CFLAGS="-I${includedir}"
91 AC_SUBST(LIBTASN1_LIBS)
92 AC_SUBST(LIBTASN1_CFLAGS)
94 AC_CONFIG_COMMANDS([lib/libtasn1.h],[[
95 chmod +x lib/libtasn1-config
101 AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile lib/Makefile \
102 lib/libtasn1-config doc/Makefile doc/reference/Makefile])