1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(pgm/Makefile.in)
AM_INIT_AUTOMAKE(styx, 2.0.1)
AM_CONFIG_HEADER(config.h) dnl
dnl Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
AM_PROG_LIBTOOL
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_CHECK_PROG([SED],sed,[$(which sed)])
dnl Checks for libraries.
AC_CHECK_LIB(dl, dlopen)
AC_CHECK_LIB(rt, sem_init)
dnl Checks for typedefs, structures, and compiler characteristics.
if test "x$GCC" = "xyes"
then
CFLAGS="-funsigned-char $CFLAGS"
fi
AC_C_CONST
AC_TYPE_SIZE_T
AC_STRUCT_TM
dnl Checks for header files.
AC_CHECK_HEADERS(net/errno.h sys/errno.h errno.h)
AC_CHECK_HEADERS(sys/fcntl.h fcntl.h)
AC_CHECK_HEADERS(sys/stat.h stat.h)
AC_CHECK_HEADERS(sys/time.h time.h)
AC_CHECK_HEADERS(sys/types.h types.h)
AC_CHECK_HEADERS(sys/unistd.h unistd.h)
AC_CHECK_HEADERS(ctype.h)
AC_CHECK_HEADERS(wchar.h)
AC_CHECK_HEADERS(wctype.h)
AC_CHECK_HEADERS(iconv.h)
AC_CHECK_HEADERS(semaphore.h)
AC_CHECK_HEADERS(malloc.h)
AC_CHECK_HEADERS(memory.h)
AC_CHECK_HEADERS(stdio.h)
AC_CHECK_HEADERS(stdlib.h)
AC_CHECK_HEADERS(string.h strings.h)
AC_CHECK_HEADERS(libc.h)
AC_CHECK_HEADERS(dlfcn.h)
AC_HEADER_DIRENT
AC_CHECK_HEADERS(dir.h direct.h) dnl AC_HEADER_DIRENT only checks for some..
AC_HEADER_STDC
AC_HEADER_TIME
AC_HEADER_STAT
dnl Checks for library functions.
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(getcwd strcspn strdup strerror strstr strchr strrchr index rindex memcpy memcmp)
AC_CHECK_FUNCS(wcsncmp, wcscmp, wcsstr wcschr wcsrchr)
AC_CHECK_FUNCS(vsnprintf)
AC_CHECK_FUNCS(dlerror)
dnl AC_PREFIX_DEFAULT(/usr/local/styx)
AC_CACHE_CHECK( [where to install HTML documents],
[ac_cv_htmldir],[ac_cv_htmldir='$(datadir)/doc'])
htmldir=$ac_cv_htmldir
AC_CACHE_CHECK( [where to install SGML documents],
[ac_cv_sgmldir],[ac_cv_sgmldir='$(datadir)/doc'])
sgmldir=$ac_cv_sgmldir
AC_CACHE_CHECK( [where to install examples],
[ac_cv_sampledir],[ac_cv_sampledir='$(datadir)/examples'])
sampledir=$ac_cv_sampledir
AC_SUBST(htmldir)
AC_SUBST(sgmldir)
AC_SUBST(sampledir)
AC_OUTPUT( Makefile
gen/Makefile
genxml/Makefile
libbase/Makefile
libstyx/Makefile
libutil/Makefile
libxml/Makefile
modstd/Makefile
modext/Makefile
pgm/Makefile
pgmxml/Makefile
inc/Makefile
incxml/Makefile
doc/Makefile
examples/Makefile
examples/example01/Makefile
examples/example01/mx
examples/example02/Makefile
examples/example02/mx
examples/example03/Makefile
examples/example03/mx
examples/example04/Makefile
examples/example04/mx
examples/example05/Makefile
examples/example05/mx
examples/example06/Makefile
examples/example06/mx
examples/example07/Makefile
examples/example07/mx
examples/example08/Makefile
examples/example08/mx
spe/Makefile
spe/xsty.in
spexml/Makefile
spexml/xxml.in
pat/Makefile
libspe/Makefile
)
|