Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Apr 2009 17:26:49 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        ale@freebsd.org
Cc:        freebsd-usb@freebsd.org
Subject:   Re: configure error with openct and new libusb
Message-ID:  <200904092126.n39LQ9xN095121@lava.sentex.ca>
In-Reply-To: <200904092037.n39KbosY094885@lava.sentex.ca>
References:  <200904092037.n39KbosY094885@lava.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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" 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904092126.n39LQ9xN095121>