X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=configure.ac;h=94783ec74875e75b085958308691bd91aec8c884;hb=2e4db0d14597fdb0013fb16f24b3f872d1217397;hp=97e191f6b6c4940de19615a4f170aeb1d780ead5;hpb=13283beb698ae90fba9248b25b487d7c79ddd440;p=deb_libnfs.git diff --git a/configure.ac b/configure.ac index 97e191f..94783ec 100644 --- a/configure.ac +++ b/configure.ac @@ -4,16 +4,6 @@ AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign]) AC_CANONICAL_HOST -case $host in - *darwin*) - RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t" - ;; - *) - ;; -esac - -AC_SUBST(RPCGENFLAGS) - # Work around stupid autoconf default cflags. pt 1 SAVE_CFLAGS="x${CFLAGS}" @@ -32,18 +22,6 @@ if test x$HAVE_RPCGEN != xyes; then AC_MSG_ERROR([Can not find required program]) fi -# option: logdir -AC_ARG_WITH([logdir], - [AC_HELP_STRING([--with-logdir=DIR], - [path to log directory [[LOCALSTATEDIR/log]]])], - [LOGDIR=$withval], - [LOGDIR='${localstatedir}/log']) - -#if test ! -d "$LOGDIR"; then -# AC_MSG_ERROR([--with-logdir must specify a path]) -#fi -AC_SUBST(LOGDIR) - #option: examples AC_ARG_ENABLE([examples], [AC_HELP_STRING([--enable-examples], @@ -56,6 +34,23 @@ if test x$ENABLE_EXAMPLES = xyes; then fi AC_SUBST(MAYBE_EXAMPLES) +case $host in + *darwin*) + RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t" + ;; + *solaris*) + AC_CHECK_HEADERS([sys/filio.h]) + if test x$ENABLE_EXAMPLES = xyes; then + AC_CHECK_LIB([socket], [main], , [AC_MSG_ERROR([Can not find required library])]) + AC_CHECK_LIB([nsl], [main], , [AC_MSG_ERROR([Can not find required library])]) + fi + ;; + *) + ;; +esac + +AC_SUBST(RPCGENFLAGS) + #output AC_CONFIG_FILES([Makefile] [include/Makefile]