version 1.1, 2000/02/08 21:14:01 |
version 1.4, 2005/03/03 06:48:15 |
|
|
dnl $OpenXM$ |
dnl $OpenXM: OpenXM/src/ox_math/configure.in,v 1.3 2003/03/23 21:56:11 ohara Exp $ |
dnl If you change this file, do not forget to run autoconf and rm .configure_done |
dnl If you change this file, do not forget to run autoconf and rm .configure_done |
|
|
AC_INIT(math2ox.c) |
AC_INIT(math2ox.c) |
|
|
AC_PROG_INSTALL |
AC_PROG_INSTALL |
AC_PATH_XTRA |
AC_PATH_XTRA |
|
|
AC_CHECK_FUNC(socket) |
dnl for Solaris 2.x |
if test "$ac_cv_func_socket" = no ; then |
AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)]) |
AC_CHECK_LIB(socket,socket) |
AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)]) |
fi |
|
AC_CHECK_FUNC(gethostbyname) |
|
if test "$ac_cv_func_gethostbyname" = no ; then |
|
AC_CHECK_LIB(nsl,gethostbyname) |
|
fi |
|
|
|
AC_CANONICAL_HOST |
AC_CANONICAL_SYSTEM |
case "$host_os" in |
case "$host_os" in |
linux*|freebsd*) |
linux*|freebsd*) |
ml_system=Linux |
ml_system=Linux |
|
static_link_flags=-static |
;; |
;; |
osf) |
osf) |
ml_system=DEC-AXP |
ml_system=DEC-AXP |
|
static_link_flags= |
;; |
;; |
solaris2*) |
solaris2*) |
ml_system=Solaris |
ml_system=Solaris |
|
static_link_flags= |
;; |
;; |
*) |
*) |
|
static_link_flags= |
;; |
;; |
esac |
esac |
AC_SUBST(ml_system) |
AC_SUBST(ml_system) |
|
AC_SUBST(static_link_flags) |
|
|
AC_OUTPUT(Makefile) |
AC_OUTPUT(Makefile) |