--- projects/cms/source/idar/configure.in 2003/10/05 12:36:37 1.10 +++ projects/cms/source/idar/configure.in 2004/01/05 15:59:52 1.11 @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. # # configure.in for i-scream idar -# $Id: configure.in,v 1.10 2003/10/05 12:36:37 tdb Exp $ +# $Id: configure.in,v 1.11 2004/01/05 15:59:52 tdb Exp $ # # Change these to change the package name and version @@ -10,7 +10,7 @@ AC_INIT(idar, 1.2, bugs@i-scream.org) AM_INIT_AUTOMAKE(idar, 1.2) # Revision number (automatically updated) -AC_REVISION($Revision: 1.10 $) +AC_REVISION($Revision: 1.11 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -74,25 +74,15 @@ LIBS="$LIBS $XML_LIBS" AC_CANONICAL_HOST # Set things up for different OS's -# We define the name of the OS so the code can act accordingly -# We also need to add the right LDFLAGS +# We need to add the right LDFLAGS case $host_os in solaris2.*) - AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])],[-lnsl -lsocket]) - LIBS="$LIBS -lnsl -lsocket -Wl,-Bstatic -lukcprog -Wl,-Bdynamic" + LIBS="$LIBS -lnsl -lsocket" ;; -freebsd4.*) - AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])]) - LIBS="$LIBS -lukcprog -static" - ;; -linux-gnu) - AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])]) - LIBS="$LIBS -lukcprog -static" - ;; -*) - AC_MSG_ERROR([Cannot build on unknown OS: $host_os]) - ;; esac + +AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])]) +LIBS="$LIBS -lukcprog" # Check for the --with-server-name option AC_ARG_WITH([server-name], [ --with-server-name=NAME default server name (default: i-scream)], [servername=$withval], [servername=[i-scream]])