From owner-freebsd-usb@FreeBSD.ORG Thu Apr 9 21:26:53 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 668FC106564A; Thu, 9 Apr 2009 21:26:53 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by mx1.freebsd.org (Postfix) with ESMTP id 1881F8FC0A; Thu, 9 Apr 2009 21:26:52 +0000 (UTC) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.14.3/8.14.3) with ESMTP id n39LQ9xN095121; Thu, 9 Apr 2009 17:26:09 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200904092126.n39LQ9xN095121@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Thu, 09 Apr 2009 17:26:49 -0400 To: ale@freebsd.org From: Mike Tancsa In-Reply-To: <200904092037.n39KbosY094885@lava.sentex.ca> References: <200904092037.n39KbosY094885@lava.sentex.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: freebsd-usb@freebsd.org Subject: Re: configure error with openct and new libusb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2009 21:26:53 -0000 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"