Re: configure.ac

2003-02-14 Thread Ronald Landheer-Cieslak
On Fri, 14 Feb 2003, Bob Lockie wrote: > When I put the following code in I get a warning. > > if test "x$enable_ogglibs" = xyes; then > dnl Libraries required for reading ogg tags, if not found > 'enable_ogglibs' is disabled > AC_CHECK_LIB(ogg, o

Re: How do I make a portable test??

2003-02-14 Thread Dr. David Kirkby
Eric Siegerman wrote: > > On Fri, Feb 14, 2003 at 02:11:37AM +, Dr. David Kirkby wrote: > > "test: ==: unexpected operator" on a Sun running NetBSD 1.6 > > "==" is indeed unexpected :-) Bourne shell doesn't support it; I > don't believe ksh does either. It looks like a bash extension, > in

Re: How do I make a portable test??

2003-02-14 Thread Dr. David Kirkby
John Burger wrote: > > > From: "Dr. David Kirkby" <[EMAIL PROTECTED]> > > [Much elided] > > > dnl something here generates an error: > > dnl "test: ==: unexpected operator" on a Sun running NetBSD 1.6 > > if test $gsl_inc_count == 0 && test $gsl_lib_count == 0; then > >gsl_not_installed=1 >

Bug report

2003-02-14 Thread Chris Schuit @ Euronet
configure: WARNING: net/if.h: present but cannot be compiled configure: WARNING: net/if.h: check for missing prerequisite headers? configure: WARNING: net/if.h: proceeding with the preprocessor's result configure: WARNING: ## ## configure: WARNING: ## Re

Re: Bug report

2003-02-14 Thread Lars Hecking
Chris Schuit @ Euronet writes: > configure: WARNING: net/if.h: present but cannot be compiled > configure: WARNING: net/if.h: check for missing prerequisite headers? > configure: WARNING: net/if.h: proceeding with the preprocessor's result > configure: WARNING: ## --

Re: configure.ac

2003-02-14 Thread Bob Lockie
On 02/14/03 04:30 Ronald Landheer-Cieslak spoke thusly On Fri, 14 Feb 2003, Bob Lockie wrote: When I put the following code in I get a warning. if test "x$enable_ogglibs" = xyes; then dnl Libraries required for reading ogg tags, if not found 'enable

Re: How do I make a portable test??

2003-02-14 Thread Eric Siegerman
On Fri, Feb 14, 2003 at 09:39:21AM +, Dr. David Kirkby wrote: > Thanks, I assume then in this case I should be using -eq, since I am > comparing the numeric values of something - whether it is 0 or has > been incremented by one or two. Yup. The difference tends to show up in things like this

Shell programming tutorial (was: configure.ac)

2003-02-14 Thread Dan Kegel
Bob Lockie wrote: >>>1. Can anybody point me to a tutorial on shell programming? >> >> Personally, I think the advanced Bash scripting guide is pretty good. >> You can find it at: http://www.tldp.org/LDP/abs/html/ > >I'll check it out. I like "Portable Shell Programming" by Blinn. See http://keg

Library linking problem

2003-02-14 Thread Dr. David Kirkby
I'm trying to do a check to see whether a the GNU Scientific library is present. I hope to do this by checking for two libraries and two headers and if all 4 exist, I can assume the installation is not too broken. A problem occurs on one system (Sun SPARCstation 20 running Debian Linux 3.2, gcc 2

Re: How do I make a portable test??

2003-02-14 Thread Andreas Schwab
Eric Siegerman <[EMAIL PROTECTED]> writes: |> - The shell it found was bash, which supports "=="; if you put |> /bin first in your path (try it temporarily as a test), |> configure would probably find /bin/ksh instead, and the |> "=="'s would produce the familiar diagnostics Since p

Re: How do I make a portable test??

2003-02-14 Thread Thomas E. Dickey
On Fri, 14 Feb 2003, Andreas Schwab wrote: > Eric Siegerman <[EMAIL PROTECTED]> writes: > > |> - The shell it found was bash, which supports "=="; if you put > |> /bin first in your path (try it temporarily as a test), > |> configure would probably find /bin/ksh instead, and the > |>

Re: How do I make a portable test??

2003-02-14 Thread Eric Siegerman
On Fri, Feb 14, 2003 at 02:32:42PM -0500, Thomas E. Dickey wrote: > On Fri, 14 Feb 2003, Andreas Schwab wrote: > > > Eric Siegerman <[EMAIL PROTECTED]> writes: > > > > |> [ksh doesn't support "=="] > > > > Since pdksh supports "==" I'd guess that ksh does too. Yup. Sort of. It's icky. > I do