X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=configure.ac;h=9689a1f57a721d7a001fb5bfd872be57cc180329;hb=fc01d2a96189edc0c08fb1d757f83c63077b0516;hp=ca6eead46108d78126204b9426a267bc0191eefc;hpb=6c437065d363dee7f14296e80ae34877e4e1e78c;p=deb_libnfs.git diff --git a/configure.ac b/configure.ac index ca6eead..9689a1f 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_PREREQ(2.50) -AC_INIT([libnfs], [1.0.0]) +AC_INIT([libnfs], [0.0.0]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign]) AC_CANONICAL_HOST @@ -40,12 +40,25 @@ AC_ARG_ENABLE([examples], [Build example programs])], [ENABLE_EXAMPLES=$enableval], [ENABLE_EXAMPLES="no"]) -AM_CONDITIONAL(EXAMPLES, [test x$ENABLE_EXAMPLES = xyes]) -AM_COND_IF(EXAMPLES, - [MAYBE_EXAMPLES="examples"] - [config_examples="examples/Makefile"]) + +if test x$ENABLE_EXAMPLES = xyes; then + MAYBE_EXAMPLES="examples" +fi AC_SUBST(MAYBE_EXAMPLES) +case $host in + *darwin*) + RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t" + ;; + *solaris*) + AC_CHECK_HEADERS([sys/filio.h]) + ;; + *) + ;; +esac + +AC_SUBST(RPCGENFLAGS) + #output AC_CONFIG_FILES([Makefile] [include/Makefile]