This is the mail archive of the autoconf@gnu.org mailing list for the autoconf project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

autoconf: troubles of AC_FUNC_FNMATCH


Hallo autoconf developers,
I have tried program with AC_FUNC_FNMATCH and I got incorrect result.
So I have traced log and I found following trouble:

If AC_LANG is c++ and c++ is (at least) gcc-2.95.1, the result is error;
it can be fixed on my system by #include <fnmatch.h>, but I don't
know, if it is general include.
Other possible fix is checking for fnmatch using cc in any case.


Log part:

configure:1955: checking for working fnmatch
configure:1973: c++ -o conftest  -O69 -fomit-frame-pointer  -I/usr/games/include  -I/usr/games/include  confte
st.C -lclanlayer2 -lclan -L/usr/X11R6/lib  -L/usr/games/lib 1>&5
configure: In function `int main()':
configure:1970: implicit declaration of function `int fnmatch(...)'
configure: failed program was:
#line 1966 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit(int);
#endif
main() { exit (fnmatch ("a*", "abc", 0) != 0); }


-- 
Stanislav Brabec

#####################################		######################################
Build own GNU-Linux: you can find on		Postavte si GNU-Linux: naleznete na
http://www.penguin.cz/~utx/build.html.en	http://www.penguin.cz/~utx/build.html
ftp://ftp.penguin.cz/pub/users/utx/		ftp://ftp.penguin.cz/pub/users/utx/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]