[prev in list] [next in list] [prev in thread] [next in thread]
List: flightgear-devel
Subject: Re: [Flightgear-devel] Re: Fix for compilation error in
From: Mathias =?iso-8859-1?q?Fr=F6hlich?= <Mathias.Froehlich () web ! de>
Date: 2004-01-29 9:13:00
Message-ID: 200401291013.00559.Mathias.Froehlich () web ! de
[Download RAW message or body]
Hi,
> [autoconf problems with truncf]
If I look into config.log, I find the lines
configure:9991: checking for truncf
configure:10041: gcc -o conftest -O2 -march=athlon -msse -mfpmath=sse
-I/home/flightgear/sw/include -I/usr/X1
1R6/include -L/home/flightgear/sw/lib -L/usr/X11R6/lib conftest.c -ldl -lm
-lglut -lGLU -lGL -lXmu -lXt -lS
M -lICE -lXi -lXext -lX11 -ldl -lm >&5
configure:10044: $? = 0
configure:10047: test -s conftest
configure:10050: $? = 0
configure:10061: result: yes
for the truncf check on my machine. What I see here is gcc not g++.
I would guess that this will make the difference.
So moving the test for truncf in between this
AC_LANG_PUSH(C++)
...
AC_LANG_POP
lines might help.
I think that most of these functions which are tested using the C compiler
will actually be used in C++ code. So moving more of these functions out of
the line
AC_CHECK_FUNCS( <many functions ...> truncf )
might be a good idea.
So, at final, does the attached patch help?
Of course autogen.sh and configure have to be executed past patching.
Greetings
Mathias
--
Mathias Fröhlich, email: Mathias.Froehlich@web.de
["configure.patch" (text/x-diff)]
--- configure.ac.orig 2004-01-29 10:07:23.496868234 +0100
+++ configure.ac 2004-01-29 10:07:52.072834221 +0100
@@ -427,6 +427,8 @@
fi
AM_CONDITIONAL(ENABLE_JPEG_SERVER, test "x$ac_cv_header_simgear_screen_jpgfactory_hxx" = "xyes")
+AC_CHECK_FUNCS( [ \
+ truncf ] )
AC_LANG_POP
dnl Check for system installed zlib
@@ -465,7 +467,7 @@
AC_CHECK_FUNCS( [ \
ftime gettimeofday timegm memcpy bcopy mktime strstr rand mkfifo \
random drand48 setitimer getitimer signal GetLocalTime rint getrusage \
- truncf ] )
+ ] )
LIBS=$old_LIBS
AM_CONFIG_HEADER(src/Include/config.h)
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic