2003-02-16 03:23:54 +01:00
|
|
|
AC_INIT(Makefile.in)
|
|
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
|
AC_PROG_CXX
|
|
|
|
|
AC_CHECK_TOOL(STRIP, strip, true)
|
|
|
|
|
|
|
|
|
|
AC_EXEEXT
|
|
|
|
|
AC_SUBST(EXEEXT)
|
|
|
|
|
|
2004-02-15 04:17:36 +01:00
|
|
|
# Combined check for Microsoft-related bogosities; sets WIN32 if found
|
|
|
|
|
AX_WIN32
|
|
|
|
|
|
2003-02-16 03:23:54 +01:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS(malloc.h)
|
|
|
|
|
|
|
|
|
|
AC_CHECK_SIZEOF(unsigned long long)
|
|
|
|
|
AC_CHECK_SIZEOF(unsigned long)
|
|
|
|
|
AC_CHECK_SIZEOF(unsigned)
|
|
|
|
|
|
|
|
|
|
# --
|
|
|
|
|
# Look for a dl library to use. First look for the standard dlopen
|
|
|
|
|
# functions, and failing that look for the HP specific shl_load function.
|
|
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS(dlfcn.h dl.h, break)
|
|
|
|
|
|
|
|
|
|
DLLIB=''
|
|
|
|
|
AC_CHECK_LIB(dl,dlopen,[DLLIB=-ldl])
|
|
|
|
|
if test -z "$DLLIB" ; then
|
|
|
|
|
AC_CHECK_LIB(dld,shl_load,[DLLIB=-ldld])
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST(DLLIB)
|
|
|
|
|
|
2004-09-28 00:34:10 +02:00
|
|
|
AX_CPP_PRECOMP
|
2003-02-16 03:23:54 +01:00
|
|
|
|
2007-02-26 20:49:48 +01:00
|
|
|
# Compiler option for position independent code, needed when making shared objects.
|
2004-09-28 00:34:10 +02:00
|
|
|
AX_C_PICFLAG
|
2003-02-16 03:23:54 +01:00
|
|
|
|
2004-09-28 00:34:10 +02:00
|
|
|
# Linker option used when compiling the target
|
|
|
|
|
AX_LD_RDYNAMIC
|
2003-02-16 03:23:54 +01:00
|
|
|
|
2004-09-28 00:34:10 +02:00
|
|
|
# linker options when building a shared library
|
|
|
|
|
AX_LD_SHAREDLIB_OPTS
|
2003-02-16 03:23:54 +01:00
|
|
|
|
2004-03-11 07:06:59 +01:00
|
|
|
AX_LD_EXTRALIBS
|
2003-02-16 03:23:54 +01:00
|
|
|
|
|
|
|
|
#######################
|
|
|
|
|
## test for underscores. The vpi module loader in vvm needs to know this
|
|
|
|
|
## in order to know the name of the start symbol for the .vpi module.
|
|
|
|
|
#######################
|
|
|
|
|
|
2004-01-15 21:52:32 +01:00
|
|
|
AX_C_UNDERSCORES_LEADING
|
|
|
|
|
AX_C_UNDERSCORES_TRAILING
|
2003-02-16 03:23:54 +01:00
|
|
|
|
|
|
|
|
#######################
|
|
|
|
|
## end of test for underscores
|
|
|
|
|
#######################
|
|
|
|
|
|
2004-01-15 21:52:32 +01:00
|
|
|
AX_CPP_IDENT
|
2003-02-16 03:23:54 +01:00
|
|
|
|
|
|
|
|
AC_OUTPUT(Makefile)
|