Roverok / libnfc

Automatically exported from code.google.com/p/libnfc
GNU Lesser General Public License v3.0
0 stars 0 forks source link

use the provided m4/ directory for aclocal #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
autogen.sh does not use -I m4 when calling aclocal so the
LIBNFC_ARG_WITH_DRIVERS, LIBNFC_CHECK_LIBUSB and LIBNFC_CHECK_PCSC macros
are not expanded on my Mac OS X system and Debian testing system.

Proposed patch (tested on Debian and Mac OS X):
Index: autogen.sh
===================================================================
--- autogen.sh  (revision 389)
+++ autogen.sh  (working copy)
@@ -6,14 +6,15 @@
 touch README

 LIBTOOLIZE=libtoolize
+ACLOCAL_ARGS="-I m4"
 case `uname -s` in
 Darwin)
   LIBTOOLIZE=glibtoolize
-  ACLOCAL_ARGS="-I /opt/local/share/aclocal/"
+  ACLOCAL_ARGS="$ACLOCAL_ARGS -I /opt/local/share/aclocal/"
   #  SKIP_PCSC="1"
   ;;
 FreeBSD)
-  ACLOCAL_ARGS="-I /usr/local/share/aclocal/"
+  ACLOCAL_ARGS="$ACLOCAL_ARGS -I /usr/local/share/aclocal/"
   ;;
 esac

Original issue reported on code.google.com by ludovic....@gmail.com on 17 Apr 2010 at 9:50

GoogleCodeExporter commented 9 years ago
Hello,
Thanks for this report.
Actually you are trying to remove autogen.sh in order to use autoreconf. Could 
you
try to run "autoreconf -vis" instead of "autogen.sh" mainly on Mac OS X (Debian 
is
already confirmed to work.)

Original comment by romu...@libnfc.org on 20 Apr 2010 at 8:53

GoogleCodeExporter commented 9 years ago
$ autoreconf -vis
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
autoreconf: running: /opt/local/bin/autoconf
autoreconf: running: /opt/local/bin/autoheader
autoreconf: running: automake --add-missing --no-force
configure.ac:22: installing `./config.guess'
configure.ac:22: installing `./config.sub'
configure.ac:13: installing `./install-sh'
configure.ac:13: installing `./missing'
examples/Makefile.am: installing `./depcomp'
Makefile.am: installing `./INSTALL'
autoreconf: Leaving directory `.'

OK, "autoreconf -vis" does work for me on Mac OS X Snow Leopard.

Note that I use my own versions of autoconf, automake and libtoolize. The 
versions
included in Snow Leopard where too old for other projects I use.

Original comment by ludovic....@gmail.com on 20 Apr 2010 at 7:27

GoogleCodeExporter commented 9 years ago
Great ! In r401, autogen.sh have been deleted, developers should now use 
"autoreconf
-vis" but i have applied your patch in r400 in case of some users reports 
problems
with autoreconf command.

Thank you Ludovic for your help. (And indirectly, thank you for ACR122 support 
in
libnfc ;) )

PS: I made a mistake in my previous comment: s/Actually you are trying/Actually 
we
are trying/ 

Original comment by romu...@libnfc.org on 20 Apr 2010 at 8:31