I try to configure a product to various platforms with following case:
case $host in
*-sun-solaris*)
CFLAGS=$CFLAGS -DSunOS=1
;;
*-cygwin*)
EXE_EXT=.exe
;;
*apple-darwin*)
#
# MacOS X
# lets try to find the newest installed SDK for compilation
Hi Aarno,
* Aarno Syvänen wrote on Wed, Aug 31, 2005 at 02:45:52PM CEST:
I try to configure a product to various platforms with following case:
case $host in
*snip*
if [[ $DONE = 0 ]]
*snip*
When I check generated configure script, I noticed following:
*snip*
Hello Aarno,
I've already posted my own answer, but this is a comment on Ralf's
answer:
On Wed, Aug 31, 2005 at 03:05:28PM +0200, Ralf Wildenhues wrote:
if [[ $DONE = 0 ]]
...
if [ $DONE = 0 ]
See what's happening?
Ralf, I guess Aarno knows what he is
Hello,
in general, The Autoconf Way is to check for feattures, not for
platform name.
For example:
*-cygwin*)
EXE_EXT=.exe
A variable EXEEXT is provided automatically by Autoconf.
And the detection works also for mingw and all other platforms.
case $host in
*-sun-solaris*)
On Aug 31, 2005, at 3:05 PM, Ralf Wildenhues wrote:
Hi Aarno,
* Aarno Syvänen wrote on Wed, Aug 31, 2005 at 02:45:52PM CEST:
I try to configure a product to various platforms with following
case:
case $host in
*snip*
if [[ $DONE = 0 ]]
*snip*
When I check
Hello,
On Aug 31, 2005, at 3:26 PM, Stepan Kasal wrote:
Hello,
in general, The Autoconf Way is to check for feattures, not for
platform name.
For example:
*-cygwin*)
EXE_EXT=.exe
A variable EXEEXT is provided automatically by Autoconf.
And the detection works also for mingw and
On Wed, 31 Aug 2005, Ralf Wildenhues wrote:
Short story: [ ] are quotation characters within configure.ac files.
That's one reason why many m4 macros use test instead for readability.
The main reason is that some older systems do not have [ as an alias
for test.
--
Thomas E. Dickey
Hello Aarno,
After commenting out AC_CHECK_LIB, all header checks were ok.
you mentioned it, but I missed that.
Really crazy things are:
checking whether we are using the GNU C compiler... no
checking for ANSI C header files... no
[etc.]
I missed that when I read your first mail.
When
Hi Stepan, Aarno, Thomas,
* Stepan Kasal wrote on Wed, Aug 31, 2005 at 03:31:24PM CEST:
On Wed, Aug 31, 2005 at 03:05:28PM +0200, Ralf Wildenhues wrote:
if [[ $DONE = 0 ]]
...
if [ $DONE = 0 ]
See what's happening?
Ralf, I guess Aarno knows what