Jochen Eisinger wrote:
>
>
> AC_TRY_COMPILE([
> #include <string.h>],[char *c=index(" ",' ')],,CPPFLAGS="${CPPFLAGS}
> -DNEED_STRINGS_H")
>
> and
>
> #ifdef NEED_STRINGS_H
> # include <strings.h>
> #else
> # include <string.h>
> #endif
>
> should work =)
Hi Jochen,
I think this test is not nice because
you do not test for strings.h at all.
Does it work if we include string.h and strings.h if both exist?
If yes I suggest to add "strings.h" to
AC_CHECK_HEADERS(..)
Or we do a AC_TRY_COMPILE([#include <strings.h>...)
Bye
Oliver
-- Homepage: http://www.wolfsburg.de/~rauch sane-umax: http://www.wolfsburg.de/~rauch/sane/sane-umax.html xsane: http://www.wolfsburg.de/~rauch/sane/sane-xsane.html E-Mail: mailto:Oliver.Rauch@Wolfsburg.DE-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Sun Nov 19 2000 - 03:50:55 PST