5d4ee2ae4f
- Add support for BDB 4.1 [2] - Better handling of postgresql dependency [3] - Add new direct I/O extension [4] PR: 58920 [1], 60541 [2], 61409 [3] Submitted by: Dirk Meyer <dirk.meyer@dinoex.sub.org> [1] [3], Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net> [2], Izzy Kindred <ikindred@cox.net> [4] Approved by: nork (mentor/implicitly)
474 lines
9.7 KiB
Plaintext
474 lines
9.7 KiB
Plaintext
--- configure.orig Mon Dec 22 10:01:56 2003
|
|
+++ configure Sat Jan 24 14:08:52 2004
|
|
@@ -622,6 +622,8 @@
|
|
ac_help="$ac_help
|
|
--enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support."
|
|
ac_help="$ac_help
|
|
+ --enable-gd-lzw-gif GD: Enable LZW-compressed GIF support."
|
|
+ac_help="$ac_help
|
|
--with-gettext[=DIR] Include GNU gettext support."
|
|
ac_help="$ac_help
|
|
--with-gmp[=DIR] Include GNU MP support"
|
|
@@ -23795,6 +23797,10 @@
|
|
THIS_PREFIX=$i
|
|
THIS_INCLUDE=$i/db4/db.h
|
|
break
|
|
+ elif test -f "$i/include/db41/db.h"; then
|
|
+ THIS_PREFIX=$i
|
|
+ THIS_INCLUDE=$i/include/db41/db.h
|
|
+ break
|
|
elif test -f "$i/include/db4/db.h"; then
|
|
THIS_PREFIX=$i
|
|
THIS_INCLUDE=$i/include/db4/db.h
|
|
@@ -23814,7 +23820,7 @@
|
|
fi
|
|
done
|
|
|
|
- for LIB in db-4.1 db-4.0 db-4 db4 db; do
|
|
+ for LIB in db-4.1 db-4.0 db-4 db41 db4 db; do
|
|
if test -f $THIS_PREFIX/lib/lib$LIB.a -o -f $THIS_PREFIX/lib/lib$LIB.$SHLIB_SUFFIX_NAME; then
|
|
|
|
old_LDFLAGS=$LDFLAGS
|
|
@@ -29640,6 +29646,31 @@
|
|
|
|
|
|
|
|
+echo $ac_n "checking whether to enable LZW-compressed GIF support in GD""... $ac_c" 1>&6
|
|
+echo "configure:28220: checking whether to enable LZW-compressed GIF support in GD" >&5
|
|
+# Check whether --enable-gd-lzw-gif or --disable-gd-lzw-gif was given.
|
|
+if test "${enable_gd_lzw_gif+set}" = set; then
|
|
+ enableval="$enable_gd_lzw_gif"
|
|
+ PHP_GD_LZW_GIF=$enableval
|
|
+else
|
|
+
|
|
+ PHP_GD_LZW_GIF=no
|
|
+
|
|
+ if test "$PHP_ENABLE_ALL" && test "no" = "yes"; then
|
|
+ PHP_GD_LZW_GIF=$PHP_ENABLE_ALL
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+
|
|
+ext_output=$PHP_GD_LZW_GIF
|
|
+echo "$ac_t""$ext_output" 1>&6
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -29792,7 +29823,7 @@
|
|
libgd/gd_io_file.c libgd/gd_ss.c libgd/gd_io_ss.c libgd/gd_png.c libgd/gd_jpeg.c \
|
|
libgd/gdxpm.c libgd/gdfontt.c libgd/gdfonts.c libgd/gdfontmb.c libgd/gdfontl.c \
|
|
libgd/gdfontg.c libgd/gdtables.c libgd/gdft.c libgd/gdcache.c libgd/gdkanji.c \
|
|
- libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c libgd/gd_topal.c libgd/gd_gif_in.c \
|
|
+ libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c libgd/gd_topal.c libgd/gd_gif_in.c libgd/gd_biggif_out.c libgd/gd_lzw_out.c libgd/gd_gif_out.c \
|
|
libgd/xbm.c"
|
|
|
|
for ac_func in fabsf floorf
|
|
@@ -29867,6 +29898,11 @@
|
|
fi
|
|
|
|
|
|
+ if test "$PHP_GD_LZW_GIF" = "yes"; then
|
|
+ USE_GD_LZW_GIF=1
|
|
+ fi
|
|
+
|
|
+
|
|
if test "$PHP_JPEG_DIR" != "no"; then
|
|
|
|
for i in $PHP_JPEG_DIR /usr/local /usr; do
|
|
@@ -31580,6 +31616,9 @@
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_GD_BUNDLED 1
|
|
+#define HAVE_GD_GIF_CREATE 1
|
|
+#define HAVE_GD_GIF_CTX 1
|
|
+#define HAVE_GD_GIF_ANIM 1
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
@@ -31634,6 +31673,14 @@
|
|
GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208"
|
|
fi
|
|
|
|
+ if test -n "$USE_GD_LZW_GIF"; then
|
|
+ cat >> confdefs.h <<\EOF
|
|
+#define LZW_LICENCED 1
|
|
+EOF
|
|
+
|
|
+ GDLIB_CFLAGS="$GDLIB_CFLAGS -DLZW_LICENCED"
|
|
+ fi
|
|
+
|
|
else
|
|
|
|
if test "$PHP_GD" != "no"; then
|
|
@@ -35985,6 +36032,137 @@
|
|
esac
|
|
done
|
|
|
|
+ echo $ac_n "checking for gdImageGifAnimBegin in -lgd""... $ac_c" 1>&6
|
|
+echo "configure:32250: checking for gdImageGifAnimBegin in -lgd" >&5
|
|
+ac_lib_var=`echo gd'_'gdImageGifAnimBegin | sed 'y%./+-%__p_%'`
|
|
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ ac_save_LIBS="$LIBS"
|
|
+LIBS="-lgd $LIBS"
|
|
+cat > conftest.$ac_ext <<EOF
|
|
+#line 32258 "configure"
|
|
+#include "confdefs.h"
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char gdImageGifAnimBegin();
|
|
+
|
|
+int main() {
|
|
+gdImageGifAnimBegin()
|
|
+; return 0; }
|
|
+EOF
|
|
+if { (eval echo configure:32269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_lib_$ac_lib_var=yes"
|
|
+else
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_lib_$ac_lib_var=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+LIBS="$ac_save_LIBS"
|
|
+
|
|
+fi
|
|
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+
|
|
+ LDFLAGS=$save_old_LDFLAGS
|
|
+ ext_shared=$save_ext_shared
|
|
+ cat >> confdefs.h <<\EOF
|
|
+#define HAVE_GD_GIF_ANIM 1
|
|
+EOF
|
|
+
|
|
+
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+
|
|
+ LDFLAGS=$save_old_LDFLAGS
|
|
+ ext_shared=$save_ext_shared
|
|
+ unset ac_cv_func_gd
|
|
+
|
|
+
|
|
+fi
|
|
+
|
|
+
|
|
+ save_old_LDFLAGS=$LDFLAGS
|
|
+ ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
|
|
+
|
|
+ save_ext_shared=$ext_shared
|
|
+ ext_shared=yes
|
|
+
|
|
+ for ac_i in $ac_stuff; do
|
|
+ case $ac_i in
|
|
+ -l*)
|
|
+ ac_ii=`echo $ac_i|cut -c 3-`
|
|
+
|
|
+
|
|
+ case $ac_ii in
|
|
+ c|c_r|pthread*) ;;
|
|
+ *)
|
|
+ if test "$ext_shared" = "yes"; then
|
|
+ LDFLAGS="$LDFLAGS -l$ac_ii"
|
|
+ else
|
|
+
|
|
+
|
|
+ case $ac_ii in
|
|
+ c|c_r|pthread*) ;;
|
|
+ *)
|
|
+ LIBS="$LIBS -l$ac_ii"
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+
|
|
+ ;;
|
|
+ -L*)
|
|
+ ac_ii=`echo $ac_i|cut -c 3-`
|
|
+
|
|
+ if test "$ac_ii" != "/usr/lib"; then
|
|
+
|
|
+ if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
|
|
+ ai_p=$ac_ii
|
|
+ else
|
|
+
|
|
+ ep_dir="`echo $ac_ii|sed 's%/*[^/][^/]*/*$%%'`"
|
|
+
|
|
+ ep_realdir="`(cd \"$ep_dir\" && pwd)`"
|
|
+ ai_p="$ep_realdir/`basename \"$ac_ii\"`"
|
|
+ fi
|
|
+
|
|
+
|
|
+ if test "$ext_shared" = "yes"; then
|
|
+ LDFLAGS="$ld_runpath_switch$ai_p -L$ai_p $LDFLAGS"
|
|
+ else
|
|
+
|
|
+
|
|
+
|
|
+ unique=`echo $ai_p|sed 's/[^a-zA-Z0-9]/_/g'`
|
|
+
|
|
+ cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
|
|
+ if test -n "$unique" && test "`eval $cmd`" = "" ; then
|
|
+ eval "LIBPATH$unique=set"
|
|
+
|
|
+ test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
|
|
+ LDFLAGS="$LDFLAGS -L$ai_p"
|
|
+ PHP_RPATHS="$PHP_RPATHS $ai_p"
|
|
+
|
|
+ fi
|
|
+
|
|
+
|
|
+ fi
|
|
+
|
|
+ fi
|
|
+
|
|
+ ;;
|
|
+ esac
|
|
+ done
|
|
+
|
|
echo $ac_n "checking for gdCacheCreate in -lgd""... $ac_c" 1>&6
|
|
echo "configure:35990: checking for gdCacheCreate in -lgd" >&5
|
|
ac_lib_var=`echo gd'_'gdCacheCreate | sed 'y%./+-%__p_%'`
|
|
@@ -60181,6 +60359,102 @@
|
|
|
|
|
|
if test "$ext_shared" = "yes"; then
|
|
+ ORACLE_SHARED_LIBADD="-lwrap $ORACLE_SHARED_LIBADD"
|
|
+ if test -n "$ORACLE_DIR/lib"; then
|
|
+
|
|
+ if test "$ORACLE_DIR/lib" != "/usr/lib"; then
|
|
+
|
|
+ if test -z "$ORACLE_DIR/lib" || echo "$ORACLE_DIR/lib" | grep '^/' >/dev/null ; then
|
|
+ ai_p=$ORACLE_DIR/lib
|
|
+ else
|
|
+
|
|
+ ep_dir="`echo $ORACLE_DIR/lib|sed 's%/*[^/][^/]*/*$%%'`"
|
|
+
|
|
+ ep_realdir="`(cd \"$ep_dir\" && pwd)`"
|
|
+ ai_p="$ep_realdir/`basename \"$ORACLE_DIR/lib\"`"
|
|
+ fi
|
|
+
|
|
+
|
|
+ if test "$ext_shared" = "yes"; then
|
|
+ ORACLE_SHARED_LIBADD="$ld_runpath_switch$ai_p -L$ai_p $ORACLE_SHARED_LIBADD"
|
|
+ else
|
|
+
|
|
+
|
|
+
|
|
+ unique=`echo $ai_p|sed 's/[^a-zA-Z0-9]/_/g'`
|
|
+
|
|
+ cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
|
|
+ if test -n "$unique" && test "`eval $cmd`" = "" ; then
|
|
+ eval "LIBPATH$unique=set"
|
|
+
|
|
+ test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
|
|
+ LDFLAGS="$LDFLAGS -L$ai_p"
|
|
+ PHP_RPATHS="$PHP_RPATHS $ai_p"
|
|
+
|
|
+ fi
|
|
+
|
|
+
|
|
+ fi
|
|
+
|
|
+ fi
|
|
+
|
|
+ fi
|
|
+ else
|
|
+
|
|
+
|
|
+ if test -n "$ORACLE_DIR/lib"; then
|
|
+
|
|
+ if test "$ORACLE_DIR/lib" != "/usr/lib"; then
|
|
+
|
|
+ if test -z "$ORACLE_DIR/lib" || echo "$ORACLE_DIR/lib" | grep '^/' >/dev/null ; then
|
|
+ ai_p=$ORACLE_DIR/lib
|
|
+ else
|
|
+
|
|
+ ep_dir="`echo $ORACLE_DIR/lib|sed 's%/*[^/][^/]*/*$%%'`"
|
|
+
|
|
+ ep_realdir="`(cd \"$ep_dir\" && pwd)`"
|
|
+ ai_p="$ep_realdir/`basename \"$ORACLE_DIR/lib\"`"
|
|
+ fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+ unique=`echo $ai_p|sed 's/[^a-zA-Z0-9]/_/g'`
|
|
+
|
|
+ cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
|
|
+ if test -n "$unique" && test "`eval $cmd`" = "" ; then
|
|
+ eval "LIBPATH$unique=set"
|
|
+
|
|
+ test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
|
|
+ LDFLAGS="$LDFLAGS -L$ai_p"
|
|
+ PHP_RPATHS="$PHP_RPATHS $ai_p"
|
|
+
|
|
+ fi
|
|
+
|
|
+
|
|
+
|
|
+ fi
|
|
+
|
|
+ fi
|
|
+
|
|
+
|
|
+ case wrap in
|
|
+ c|c_r|pthread*) ;;
|
|
+ *)
|
|
+ LIBS="-lwrap $LIBS"
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+ fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+ if test "$ext_shared" = "yes"; then
|
|
ORACLE_SHARED_LIBADD="-lnlsrtl3 $ORACLE_SHARED_LIBADD"
|
|
if test -n "$ORACLE_DIR/lib"; then
|
|
|
|
@@ -79683,29 +79957,6 @@
|
|
else
|
|
|
|
|
|
- case cs in
|
|
- c|c_r|pthread*) ;;
|
|
- *)
|
|
- if test "$ext_shared" = "yes"; then
|
|
- SYBASE_CT_SHARED_LIBADD="-lcs $SYBASE_CT_SHARED_LIBADD"
|
|
- else
|
|
-
|
|
-
|
|
- case cs in
|
|
- c|c_r|pthread*) ;;
|
|
- *)
|
|
- LIBS="-lcs $LIBS"
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- fi
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
-
|
|
-
|
|
case ct in
|
|
c|c_r|pthread*) ;;
|
|
*)
|
|
@@ -79729,52 +79980,7 @@
|
|
|
|
|
|
|
|
- case comn in
|
|
- c|c_r|pthread*) ;;
|
|
- *)
|
|
- if test "$ext_shared" = "yes"; then
|
|
- SYBASE_CT_SHARED_LIBADD="-lcomn $SYBASE_CT_SHARED_LIBADD"
|
|
- else
|
|
-
|
|
-
|
|
- case comn in
|
|
- c|c_r|pthread*) ;;
|
|
- *)
|
|
- LIBS="-lcomn $LIBS"
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- fi
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
-
|
|
-
|
|
- case intl in
|
|
- c|c_r|pthread*) ;;
|
|
- *)
|
|
- if test "$ext_shared" = "yes"; then
|
|
- SYBASE_CT_SHARED_LIBADD="-lintl $SYBASE_CT_SHARED_LIBADD"
|
|
- else
|
|
-
|
|
-
|
|
- case intl in
|
|
- c|c_r|pthread*) ;;
|
|
- *)
|
|
- LIBS="-lintl $LIBS"
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- fi
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
-
|
|
- SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl"
|
|
+ SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct"
|
|
|
|
|
|
save_old_LDFLAGS=$LDFLAGS
|
|
@@ -79909,38 +80115,6 @@
|
|
c|c_r|pthread*) ;;
|
|
*)
|
|
LIBS="-ltcl $LIBS"
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- fi
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
-
|
|
-
|
|
-else
|
|
- echo "$ac_t""no" 1>&6
|
|
-
|
|
- LDFLAGS=$save_old_LDFLAGS
|
|
- ext_shared=$save_ext_shared
|
|
- unset ac_cv_func_tcl
|
|
-
|
|
-
|
|
-
|
|
- case sybtcl in
|
|
- c|c_r|pthread*) ;;
|
|
- *)
|
|
- if test "$ext_shared" = "yes"; then
|
|
- SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD"
|
|
- else
|
|
-
|
|
-
|
|
- case sybtcl in
|
|
- c|c_r|pthread*) ;;
|
|
- *)
|
|
- LIBS="-lsybtcl $LIBS"
|
|
;;
|
|
esac
|
|
|