X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=configure.in;h=1bd3f217eb8789deb856d7036f80ff7a424dfa3c;hb=6301fc8a35a60b9c93679e686000ca3d594fd574;hp=399776b0e03c0fedea0e466366b089d8b7ab8230;hpb=f657fbc52148437a0cbf42ee90595027926047ad;p=swftools.git diff --git a/configure.in b/configure.in index 399776b..1bd3f21 100644 --- a/configure.in +++ b/configure.in @@ -32,6 +32,18 @@ dnl Checks for programs. dnl Checks for system services AC_EXEEXT +# The following tries to make use of includes and libraries in +# /usr/local, too. Notice: A -I/usr/local/include might break +# things (MingW, cross-compiling etc.) in the same way as -I/usr/include, +# especially on systems which link /usr/local to /usr, so it has yet +# to be seen how useful this is. +if test -d /usr/local/include; then + CPPFLAGS="$CPPFLAGS -I/usr/local/include" +fi +if test -d /usr/local/lib; then + LDFLAGS="$LDFLAGS -L/usr/local/lib" +fi + dnl Checks for libraries. AC_CHECK_LIB(m, sin,, echo "Error: Math library not found."; @@ -60,14 +72,8 @@ AC_SUBST(SYSTEM_BACKTICKS) AC_ARG_PROGRAM -dnl do we need those? -dnl AC_CHECK_LIB(pthread, pthread_create) -dnl AC_CHECK_LIB(X11, XFlush) - dnl Checks for header files. AC_CONFIG_HEADER(config.h) -dnl AC_PATH_X -dnl AC_PATH_XTRA AC_HEADER_DIRENT AC_HEADER_STDC AC_CHECK_HEADERS(zlib.h jpeglib.h t1lib.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h)