CC'ing to the mailing list. Gabriel - can you take a peek?
Thanks, Brian On 06/01/2015 08:22 AM, Colin Watson wrote: > The other utilities don't use these libraries, and linking with them > (especially ncurses) makes it harder to make use of them in > embedded/recovery environments. > --- > Makefile.am | 2 +- > configure.ac | 4 ++++ > 2 files changed, 5 insertions(+), 1 deletion(-) > > diff --git a/Makefile.am b/Makefile.am > index daae8e5..460d64a 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -15,7 +15,7 @@ sbin_PROGRAMS = iprconfig iprdump iprupdate iprinit iprdbg > dist_sbin_SCRIPTS = iprsos > > iprconfig_SOURCES = iprconfig.c iprconfig.h > -iprconfig_LDADD= libipr.la > +iprconfig_LDADD= libipr.la $(IPRCONFIG_LIBS) > > iprdump_SOURCES = iprdump.c > iprdump_LDADD= libipr.la > diff --git a/configure.ac b/configure.ac > index 47da8fa..db3cf81 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -25,12 +25,16 @@ if test -n ${ncurses_include}; then > fi > > # Check for Libraries. > +save_LIBS="$LIBS" > AC_CHECK_LIB([form], [free_form], [], [AC_ERROR("libform not found.")]) > AC_CHECK_LIB([m], [matherr], [], [AC_ERROR("libm not found.")]) > AC_CHECK_LIB([menu], [new_menu], [], [AC_ERROR("libmenu not found.")]) > AC_CHECK_LIB([panel], [show_panel], [], [AC_ERROR("libpanel not found.")]) > AC_CHECK_LIB([ncurses], [curses_version], [], > [AC_ERROR("libncurses not found.")]) > +IPRCONFIG_LIBS="$LIBS" > +AC_SUBST([IPRCONFIG_LIBS]) > +LIBS="$save_LIBS" > > # Checks for header files. > AC_CHECK_HEADERS([fcntl.h libintl.h locale.h netinet/in.h nl_types.h \ > -- Brian King Power Linux I/O IBM Linux Technology Center ------------------------------------------------------------------------------ _______________________________________________ Iprdd-devel mailing list Iprdd-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iprdd-devel