Branch: Tag:

2003-12-17

2003-12-17 22:04:50 by Marcus Comstedt <marcus@mc.pp.se>

Use prefix for *-config when cross-compiling.

Rev: src/configure.in:1.756
Rev: src/modules/_Image_FreeType/configure.in:1.12
Rev: src/post_modules/GTK/configure.in:1.46
Rev: src/post_modules/SDL/configure.in:1.7
Rev: src/post_modules/_Image_SVG/configure.in:1.2

1: - AC_REVISION("$Id: configure.in,v 1.755 2003/12/16 19:52:17 grendel Exp $") + AC_REVISION("$Id: configure.in,v 1.756 2003/12/17 22:04:50 marcus Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
686:    FreeBSD*)    # FreeBSD have other naming convention for gtk-config and sdl-config    if test "x${GTK_CONFIG}" == "x"; then -  GTK_CONFIG=`which gtk12-config` +  GTK_CONFIG=`which ${ac_tool_prefix}gtk12-config`    export GTK_CONFIG    fi    if test "x${SDL_CONFIG}" == "x"; then -  SDL_CONFIG=`which sdl11-config` +  SDL_CONFIG=`which ${ac_tool_prefix}sdl11-config`    export SDL_CONFIG    fi    ;;
2765:    AC_MSG_RESULT(yes)    using_threads="yes (freebsd)"    -  AC_PATH_PROG(PTHREAD_CONFIG,pthread-config,no) +  AC_PATH_PROG(PTHREAD_CONFIG,${ac_tool_prefix}pthread-config,no)    if test "x$PTHREAD_CONFIG" = xno ; then    AC_SYS_COMPILER_FLAG(-pthread, pthread, CFLAGS, LIBS="$LIBS -lc_r")    LD_FALLBACK_FLAGS="${LD_FALLBACK_FLAGS-} -lc_r"
2815:    fi       else -  CFLAGS="$CFLAGS `pthread-config --cflags`" -  LIBS="$LIBS `pthread-config --libs`" -  LDFLAGS="$CFLAGS `pthread-config --ldflags`" +  CFLAGS="$CFLAGS `${ac_tool_prefix}pthread-config --cflags`" +  LIBS="$LIBS `${ac_tool_prefix}pthread-config --libs`" +  LDFLAGS="$CFLAGS `${ac_tool_prefix}pthread-config --ldflags`"    fi    fi    ;;