/[monit]/monit/configure.ac
ViewVC logotype

Diff of /monit/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.27 by chopp, Fri Jun 6 10:06:27 2003 UTC revision 1.28 by chopp, Fri Jun 6 12:50:41 2003 UTC
# Line 119  elif test `uname` = "HP-UX" Line 119  elif test `uname` = "HP-UX"
119  then  then
120     ARCH="HPUX"     ARCH="HPUX"
121     CFLAGS="$CFLAGS -D _REENTRANT"     CFLAGS="$CFLAGS -D _REENTRANT"
122  +elif test `uname` = "OpenBSD"  elif test `uname` = "OpenBSD"
123  then  then
124     ARCH="OPENBSD"     ARCH="OPENBSD"
125     CFLAGS="$CFLAGS -D _REENTRANT"     CFLAGS="$CFLAGS -D _REENTRANT"
# Line 146  else Line 146  else
146  fi  fi
147  AC_SUBST(ARCH)  AC_SUBST(ARCH)
148    
149  # Test for kvm libs  # Check if we want to have resource support
150  kvm_libs=""  AC_MSG_CHECKING([for resource support])
151  if test "$test_kvm"  AC_ARG_WITH(resource,
152  then      [  --without-resource      Disable resouce monitoring (default: enabled)],
153          AC_CHECK_LIB([kvm],      [
154               [kvm_open],          dnl Check the withvalue                
155               [kvm_libs="-lkvm"])          if test "x$withval" = "xno" ; then
156          if test "$kvm_libs"              use_resource=0
157          then              AC_MSG_RESULT([disabled])
                 LIBS="$LIBS $kvm_libs"  
158          fi          fi
159            if test "x$withval" = "xyes" ; then
160                use_resource=1
161                AC_MSG_RESULT([enabled])
162            fi
163        ],
164        [
165            use_resource=1
166            AC_MSG_RESULT([enabled])
167        ]
168    )
169    
170    # Settings for resource support
171    if test "$use_resource"; then
172            # Test for kvm libs
173            kvm_libs=""
174            if test "$test_kvm"; then
175                    AC_CHECK_LIB([kvm],
176                         [kvm_open],
177                         [kvm_libs="-lkvm"])
178                    if test "$kvm_libs"
179                    then
180                            LIBS="$LIBS $kvm_libs"
181                    fi
182            fi
183            PROCARCH="$ARCH"
184    else
185            PROCARCH="UNKNOWN"
186  fi  fi
187    
188    AC_SUBST(PROCARCH)
189    
190  # Check for ssl (take from the stunnel project)  # Check for ssl (take from the stunnel project)
191  checkssldir() { :  checkssldir() { :
192      if test -f "$1/include/openssl/ssl.h"; then      if test -f "$1/include/openssl/ssl.h"; then
# Line 193  AC_ARG_WITH(ssl, Line 221  AC_ARG_WITH(ssl,
221      ]      ]
222  )  )
223    
224    
225  # Check for SSL directory (take from the stunnel project)  # Check for SSL directory (take from the stunnel project)
226  if test "$use_ssl" = "1"; then  if test "$use_ssl" = "1"; then
227      AC_MSG_CHECKING([for SSL directory])      AC_MSG_CHECKING([for SSL directory])
# Line 249  if test "$use_ssl" = "1"; then Line 278  if test "$use_ssl" = "1"; then
278  else  else
279      echo "                 SSL support: disabled"      echo "                 SSL support: disabled"
280  fi  fi
281    if test "$use_resource" = "1"; then
282        echo "         resource monitoring: enabled"  
283        echo "               resource code: sysdep_$ARCH.c"
284    else
285        echo "         resource monitoring: disabled"
286        echo "               resource code: sysdep_UNKNOWN.c"
287    fi
288  echo "              Compiler flags: ${CFLAGS}"  echo "              Compiler flags: ${CFLAGS}"
289  echo "                Linker flags: ${LIBS}"  echo "                Linker flags: ${LIBS}"
290  echo "           pid file location: ${piddir}"  echo "           pid file location: ${piddir}"

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26