$OpenBSD: patch-configure_in,v 1.4 2010/01/05 16:36:33 okan Exp $ --- configure.in.orig Wed May 2 16:31:06 2007 +++ configure.in Mon Jan 4 12:14:57 2010 @@ -113,6 +113,11 @@ AC_CHECK_LIB(gd,gdImagePng,[ GLIBS="-lgd -lpng -lz" ],:,[-lgd -lpng -lz ${MATHLIBS}]) +AC_CHECK_LIB(gd,gdImageStringTTF,[ + GDFORM_EXT=png + GLIBS="-lgd -lpng -lz -ljpeg" + ],:,[-lgd -lpng -lz -ljpeg ${MATHLIBS}]) + AC_CHECK_LIB(gd,gdImagePng_jpg,[ GDFORM_EXT=png GLIBS="-lgd -lpng -lz -ljpeg" @@ -128,8 +133,8 @@ if test x$GDFORM_EXT = xgif; then fi AC_CHECK_LIB(gd,gdImageGd,[ - GLIBS="-Wl,-Bstatic ${GLIBS} -Wl,-Bdynamic" - ],:,[-Wl,-Bstatic ${GLIBS} -Wl,-Bdynamic]) + GLIBS="${GLIBS}" + ],:,[${GLIBS}]) if test x$GDFORM_EXT = xpng; then CPPFLAGS="$CPPFLAGS -DGFORM_GD=gdImagePng" @@ -201,18 +206,6 @@ AC_CONFIG_HEADERS(config.h) AC_OUTPUT(Makefile) -echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6 -sleep 1 -echo $ECHO_N ".$ECHO_C" 1>&6 -sleep 1 -echo $ECHO_N ".$ECHO_C" 1>&6 -sleep 1 -echo $ECHO_N ".$ECHO_C" 1>&6 -sleep 1 -echo $ECHO_N ".$ECHO_C" 1>&6 -sleep 1 -AC_MSG_RESULT([ just kidding ;-)]) -sleep 2 echo echo "----------------------------------------------------------------" echo "Config is DONE!"