From 49fb58f70bd1562befc87cd5b0802d1b46f039ea Mon Sep 17 00:00:00 2001 From: imaginos Date: Tue, 24 Aug 2004 21:17:54 +0000 Subject: [PATCH] added solaris support git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@6 726aef4b-f618-498e-8847-2d620e286838 --- configure.in | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index d71fecbc..61925c7e 100644 --- a/configure.in +++ b/configure.in @@ -30,6 +30,8 @@ function appendCXX { if `echo $host_os | grep -qi 'freebsd'`; then appendInc -I/usr/local/include appendLib -L/usr/local/lib -lcompat +elif `echo $host_os | grep -qi 'sol'`; then + appendLib -lsocket -lnsl fi AC_ARG_WITH( openssl, [ --with-openssl=/path/to/openssl], OPENSSL=$withval,) @@ -50,15 +52,25 @@ fi if test "$MODULES" = "yes"; then AC_CHECK_LIB( dl, dlopen, appendCXX -D_MODULES -rdynamic,, ) + MODFLAGS=`echo $CXXFLAGS | sed 's/-rdynamic//g'` + MODTARGET="modules" fi # # Auto detect modules AC_SUBST([CXXFLAGS]) +AC_SUBST([MODFLAGS]) AC_SUBST([INCLUDES]) AC_SUBST([LIBS]) +AC_SUBST([MODULES]) +AC_SUBST([MODTARGET]) AC_CONFIG_FILES([Makefile]) +if test "$MODULES" = "yes"; then + AC_CONFIG_FILES([modules/buildmod]) +fi AC_OUTPUT - +if test -f modules/buildmod; then + chmod 0711 modules/buildmod +fi touch .depend