From: Nathan D. <nd...@us...> - 2001-07-19 02:34:15
|
Here are the modifications I made to the configure.in file in order to get it to work on my solaris 2.6 box. With these changes it compiled and worked without a problem. * Added a check for whether its compiling on a solaris system * Although the dl library was installed on my system, the configure script could not find it. To fix this: - I added a check for the standard C compiler. Without this, the check for the ld library failed because it was using a default (wrong) value for the C compiler. - I moved the dl library check to after the check for the C compiler so that it would use the compiler found in AC_PROG_CC during the library check The modified configure.in script is included below. Also, the following line in INSTALL should be modified to refer to the SOMELib CVS directory. "cd to the toplevel SOMELib directory (some0-5 if you checked out from CVS)" Thanks, -- Nathan Doss nd...@us... dnl Process this file with autoconf to produce a configure script. AC_INIT() AC_CONFIG_HEADER(config/config.h) AC_PREFIX_DEFAULT(/usr) AC_CANONICAL_HOST dnl define os echo "host_os = \"$host_os\"" platform="nohostplatform" dnl hpux if test "$host_os" = "hpux10.20"; then platform="hpux" AC_DEFINE(USE_SOME_HPUX_SL, 1) fi dnl linux if test "$host_os" = "linux-gnu"; then platform="unix_so" fi if test "$host_os" = "freebsdelf4.2"; then platform="unix_so" fi dnl solaris solaris_os=`echo "$host_os" | sed 's/solaris.*/yes/'` if test "$solaris_os" = "yes"; then platform="unix_so" fi dnl oh no we havent configured for this platform yet if test "$platform" = "nohostplatform"; then echo "I am sorry, platform \"$host_os\" has not been added to our build system yet!" echo "This could mean 2 thing:" echo "1) SOMELib will compile under your platform using a similar platforms build." echo "2) SOMELib will not compile unless you add the platform specific code needed for your platform." echo echo "Please go to http://sourceforge.net/projects/somelib to find out how you can get your platform working with SOMELib!!!" exit -1; fi AC_SUBST(platform) AC_ARG_ENABLE(debug, [ --enable-debug Debugging options], debug=yes, debug=no) AC_SUBST(debug) AC_ARG_ENABLE(verbose, [ --enable-verbose Verbose output], verbose=yes, verbose=no) AC_SUBST(verbose) dnl Checks for programs. AC_PROG_CC CXXFLAGS="$CXXFLAGS " AC_PROG_CXX AC_PROG_INSTALL dnl Checks for libraries. dnl unix_so if test "$platform" = "unix_so"; then dnl check for so loading libs AC_CHECK_LIB(dl, dlopen, HAVE_LIBDL=yes , AC_CHECK_FUNC(dlopen, HAS_DLOPEN=yes, echo "ERROR: Can't find dynamic linking funtionality!!! Please install libdl." ) ) AC_SUBST(HAVE_LIBDL) AC_DEFINE(USE_SOME_UNIX_SO, 1) fi dnl Checks for header files. dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for library functions. AC_OUTPUT(config/config.mk) |