[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_TRY_LINK command line problem
From: |
Paul Eggert |
Subject: |
Re: AC_TRY_LINK command line problem |
Date: |
Thu, 11 Jan 2007 23:54:16 -0800 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Yevgen Muntyan <address@hidden> writes:
>>>AC_TRY_LINK puts LDFLAGS before conftest.c on compilation command line...
> For instance for
>
> AC_CHECK_FUNCS([FAMMonitorDirectory FAMOpen],[fam_found=yes],[fam_found=no])
>
> it produces this command line:
>
> gcc -o conftest -g -L/usr/local/gtk/lib -Wl,--as-needed -lfam conftest.c
-lfam belongs in LIBS, not in LDFLAGS. That's your problem, most likely.