2 AC_CONFIG_HEADER(config.h)
7 AC_CHECK_TOOL(STRIP, strip, true)
12 # Combined check for Microsoft-related bogosities; sets WIN32 if found
15 # vvp32 is by default disabled
17 AC_SUBST(enable_vvp32)
19 AC_CHECK_PROGS(LEX,flex,none)
20 if test "$LEX" = "none"
22 echo "*** Error: No suitable flex found. ***"
23 echo " Please install the 'flex' package."
27 AC_CHECK_PROGS(YACC,bison,none)
28 if test "$YACC" = "none"
30 echo "*** Error: No suitable bison found. ***"
31 echo " Please install the 'bison' package."
38 AC_CHECK_HEADERS(getopt.h malloc.h inttypes.h iosfwd)
40 AC_CHECK_SIZEOF(unsigned long long)
41 AC_CHECK_SIZEOF(unsigned long)
42 AC_CHECK_SIZEOF(unsigned)
44 # For the interactive debugger to work, readline must be installed,
45 # and that in turn requires termcap. check that the libs really do
47 AC_CHECK_LIB(termcap, tputs)
48 AC_CHECK_LIB(readline, readline)
49 AC_CHECK_LIB(history, add_history)
50 AC_CHECK_HEADERS(readline/readline.h readline/history.h)
53 # Look for a dl library to use. First look for the standard dlopen
54 # functions, and failing that look for the HP specific shl_load function.
56 AC_CHECK_HEADERS(dlfcn.h dl.h, break)
59 AC_CHECK_LIB(dl,dlopen,[DLLIB=-ldl])
60 if test -z "$DLLIB" ; then
61 AC_CHECK_LIB(dld,shl_load,[DLLIB=-ldld])
65 # may modify CPPFLAGS and CFLAGS
68 # Processor specific compile flags
71 CPPFLAGS="-mieee $CPPFLAGS"
72 CFLAGS="-mieee $CFLAGS"
76 # Check that these functions exist. They are mostly C99
77 # functions that older compilers may not yet support.
78 AC_CHECK_FUNCS(lround nan)
80 # see how we can give some resource usage stats with -v
81 # Linux does not provide mem stats in rusage, use /proc/self/statm.
83 AC_CHECK_HEADERS(sys/resource.h)
84 case "${host}" in *linux*) AC_DEFINE([LINUX], [1], [Host operating system is Linux.]) ;; esac
86 # Linker option used when compiling the target
91 #######################
92 ## test for underscores. The vpi module loader in vvm needs to know this
93 ## in order to know the name of the start symbol for the .vpi module.
94 #######################
96 AX_C_UNDERSCORES_LEADING
97 AX_C_UNDERSCORES_TRAILING
99 #######################
100 ## end of test for underscores
101 #######################
105 # If not otherwise specified, set the libdir64 variable
106 # to the same as libdir.
107 AC_MSG_CHECKING(for libdir64 path)
108 if test x${libdir64} = x
113 AC_MSG_RESULT(${libdir64})
115 # where to put vpi subdirectories
116 AC_MSG_CHECKING(for VPI subdirectories)
117 if test x${vpidir1} = x
124 AC_MSG_RESULT(${vpidir1} ${vpidir2})