Annotation of OpenXM/src/ox_pari/configure.ac, Revision 1.1
1.1 ! ohara 1: dnl $OpenXM$
! 2:
! 3: AC_INIT(ox_pari,1.15)
! 4: AC_CONFIG_SRCDIR([ox_pari.c])
! 5: AC_PREREQ(2.69)
! 6: AC_CANONICAL_TARGET
! 7: AM_INIT_AUTOMAKE
! 8: AM_MAINTAINER_MODE
! 9:
! 10: AC_PROG_CC
! 11: AC_PROG_INSTALL
! 12: AC_PATH_XTRA
! 13:
! 14: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
! 15: if test "${ac_cv_prog_cc_g}" = yes; then
! 16: CFLAGS="-g -O"
! 17: else
! 18: CFLAGS="-O"
! 19: fi
! 20: elif test `basename ./"${CC}"` = "icc" ; then
! 21: CFLAGS="-g -O"
! 22: fi
! 23:
! 24: AC_ARG_ENABLE([shared],
! 25: [ --enable-shared enable linking with shared libraries. [[yes]]],
! 26: [],[enable_shared=yes])
! 27:
! 28: if test "${enable_shared:=yes}" != no ; then
! 29: true
! 30: fi
! 31:
! 32: LIBS='-lox -lmpfr -lgmp -lgc -lpari'
! 33: if test "${enable_shared}" = no ; then
! 34: LIBS='${libdir}/libox.a ${libdir}/libmpfr.a ${libdir}/libgmp.a ${libdir}/libgc.a ${libdir}/libpari.a'
! 35: fi
! 36: AC_SUBST([LIBS])
! 37:
! 38: AC_DEFINE([_POSIX_C_SOURCE])
! 39:
! 40: AC_CHECK_FUNCS(sigaction)
! 41: dnl for Solaris 2.x
! 42: AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)])
! 43: AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)])
! 44:
! 45: AC_CHECK_SIZEOF(long)
! 46: AC_CONFIG_FILES([Makefile])
! 47: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>