X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=configure.ac;h=309f73fc28fe8134743a832c2abe692c266ff335;hb=3be2733596b0cc976136361c5b20576ffca5bef5;hp=70203ee1594b4b89fa3d20c819c5ed73e1211353;hpb=dabf41528576be84318ce8da010173493c1e1231;p=deb_libnfs.git diff --git a/configure.ac b/configure.ac index 70203ee..309f73f 100644 --- a/configure.ac +++ b/configure.ac @@ -34,10 +34,19 @@ if test x$ENABLE_EXAMPLES = xyes; then fi AC_SUBST(MAYBE_EXAMPLES) +AC_ARG_ENABLE(tirpc, + [AC_HELP_STRING([--enable-tirpc], + [enable use of TI-RPC @<:@default=no@:>@])], + enable_tirpc=$enableval, + enable_tirpc='no') + case $host in *darwin*) RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t" ;; + *cygwin*) + RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t" + ;; *solaris*) AC_CHECK_HEADERS([sys/filio.h]) if test x$ENABLE_EXAMPLES = xyes; then @@ -61,6 +70,12 @@ AC_CHECK_MEMBER([struct sockaddr.sa_len], #include ]) +echo "Use TI-RPC: $enable_tirpc" +if test "$enable_tirpc" = "yes"; then + CFLAGS="${CFLAGS} -I /usr/include/tirpc" + LDFLAGS="${LDFLAGS} -ltirpc" +fi + #output AC_CONFIG_FILES([Makefile] [include/Makefile]