configure error with openct and new libusb
Mike Tancsa
mike at sentex.net
Thu Apr 9 14:26:53 PDT 2009
At 04:38 PM 4/9/2009, Mike Tancsa wrote:
>Hi,
> While trying to build openct on a new box, I got the
> following errors. I was able to build this just a few weeks ago,
> but all of a sudden configure cant find libusb ?
Just to followup on my own post, I was able to compile and get it to
work by removing the test in configure and added -lusb to the main build.
--- configure.orig 2008-07-31 09:03:41.000000000 -0400
+++ configure 2009-04-09 16:58:18.000000000 -0400
@@ -4740,8 +4740,8 @@
;;
esac
-usrlibdir="/usr/lib${libdir##*/lib}"
-usrsbindir="/usr/sbin${libdir##*/sbin}"
+usrlibdir=`eval eval eval eval eval echo "${libdir}" | sed
"s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"`
+usrsbindir=`eval eval eval eval eval echo "${sbindir}" | sed
"s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"`
full_sysconfdir=`eval eval eval eval eval echo "${sysconfdir}" |
sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"`
full_localstatedir=`eval eval eval eval eval echo
"${localstatedir}" | sed "s#NONE#${prefix}#" | sed
"s#NONE#${ac_default_prefix}#"`
@@ -23074,44 +23074,6 @@
{ echo "$as_me:$LINENO: checking for LIBUSB" >&5
echo $ECHO_N "checking for LIBUSB... $ECHO_C" >&6; }
-if test -n "$PKG_CONFIG"; then
- if test -n "$LIBUSB_CFLAGS"; then
- pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors
\"libusb\"") >&5
- ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
-else
- pkg_failed=untried
-fi
-if test -n "$PKG_CONFIG"; then
- if test -n "$LIBUSB_LIBS"; then
- pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors
\"libusb\"") >&5
- ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
-else
- pkg_failed=untried
-fi
-
-
if test $pkg_failed = yes; then
@@ -26369,7 +26331,7 @@
CFLAGS="${CFLAGS} -Wall -Wextra"
fi
-pkgconfigdir="\$(libdir)/pkgconfig"
+pkgconfigdir="\$(prefix)/libdata/pkgconfig"
openctincludedir="\$(includedir)/openct"
More information about the freebsd-usb
mailing list