ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/ihost/configure.in
(Generate patch)

Comparing projects/cms/source/ihost/configure.in (file contents):
Revision 1.20 by tdb, Sat Mar 29 18:40:57 2003 UTC vs.
Revision 1.28 by tdb, Sun Oct 5 12:52:12 2003 UTC

# Line 6 | Line 6
6   #
7  
8   # Change these to change the package name and version
9 < AC_INIT(ihost, 1.5.5, dev@i-scream.org.uk)
10 < AM_INIT_AUTOMAKE(ihost, 1.5.5)
9 > AC_INIT(ihost, 1.5.7, bugs@i-scream.org)
10 > AM_INIT_AUTOMAKE(ihost, 1.5.7)
11  
12   # Revision number (automatically updated)
13   AC_REVISION($Revision$)
# Line 21 | Line 21 | AM_CONFIG_HEADER(config.h)
21   # Checks for programs
22   AC_PROG_CC
23   AC_PROG_INSTALL
24 AC_PROG_RANLIB
24  
25   # User specified libstatgrab prefix
26   AC_ARG_WITH([libstatgrab-prefix],
# Line 62 | Line 61 | AC_FUNC_MALLOC
61   AC_FUNC_REALLOC
62   AC_FUNC_FORK
63   AC_CHECK_FUNCS(strlcat)
64 + AC_CHECK_LIB(statgrab, get_general_stats,[:],[AC_MSG_ERROR([need libstatgrab])])
65  
66   # Figure out details about the host - we need the OS
67   AC_CANONICAL_HOST
# Line 74 | Line 74 | AM_CONDITIONAL(SETGIDKMEM, false)
74   # We also need to add the right LDFLAGS
75   case $host_os in
76   solaris2.*)
77 +        AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])],[-lnsl -lsocket])
78          AC_DEFINE(SOLARIS, , [Building on Solaris 2.x])
79          LIBS="$LIBS -lnsl -lsocket -lkstat -Wl,-Bstatic -lstatgrab -lukcprog -Wl,-Bdynamic"
80          ;;
81   freebsd4.*)
82 +        AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])])
83          AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x])
84 <        LIBS="$LIBS -lkvm -lstatgrab -lukcprog -static"
84 >        LIBS="$LIBS -lstatgrab -lkvm -ldevstat -lukcprog -static"
85          # FreeBSD needs ihost to be setgid kmem
86          AM_CONDITIONAL(SETGIDKMEM, true)
87          ;;
88   linux-gnu)
89 +        AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])])
90          AC_DEFINE(LINUX, , [Building on GNU/Linux])
91          LIBS="$LIBS -lstatgrab -lukcprog -static"
92          ;;
# Line 92 | Line 95 | linux-gnu)
95          ;;
96   esac
97  
95 # Library checks that need to be done after the OS specific stuff
96 AC_CHECK_LIB(statgrab, get_general_stats,[:],[AC_MSG_ERROR([need libstatgrab])])
97 AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])])
98
98   # Check for the --with-pid-file option
99   AC_ARG_WITH([pid-file], [  --with-pid-file=FILE    location of PID file (default: /var/tmp/.ihost.pid)], [pidfile=$withval], [pidfile=[/var/tmp/.ihost.pid]])
100   AC_DEFINE_UNQUOTED([PID_FILE], ["$pidfile"], [Location of PID file])
# Line 107 | Line 106 | AC_DEFINE_UNQUOTED([MAX_UDP_PACKET_SIZE], [$max_udp_si
106   # Check for the --with-log-file option
107   AC_ARG_WITH([log-file], [  --with-log-file=FILE    location of log file (default: /var/log/ihost.log)], [logfile=$withval], [logfile=[/var/log/ihost.log]])
108   AC_DEFINE_UNQUOTED([LOG_FILE], ["$logfile"], [Location of log file])
109 +
110 + # Check for the --with-server-name option
111 + AC_ARG_WITH([server-name], [  --with-server-name=NAME default server name (default: i-scream)], [servername=$withval], [servername=[i-scream]])
112 + AC_DEFINE_UNQUOTED([DEF_SERVER_NAME], ["$servername"], [Default Server Name])
113 +
114 + # Check for the --with-server-port option
115 + AC_ARG_WITH([server-port], [  --with-server-port=PORT default server port (default: 4567)], [serverport=$withval], [serverport=[4567]])
116 + AC_DEFINE_UNQUOTED([DEF_SERVER_PORT], [$serverport], [Default Server Port])
117  
118   # And finish by changing these files
119   AC_CONFIG_FILES([Makefile])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines