4e14f6251756527b08ce882f8ddfd34df37b0731
[packages.git] / lang / php5 / patches / 01-configure_cross.patch
1 --- /tmp/php-5.1.6/configure    2006-08-23 07:55:02.000000000 -0500
2 +++ php-5.1.6/configure 2007-03-04 18:41:24.000000000 -0600
3 @@ -14919,7 +14919,7 @@
4      ac_libs=$LIBS
5      LIBS="$LIBS -ldl"
6      if test "$cross_compiling" = yes; then
7 -  found=no
8 +  found=yes
9  else
10    cat > conftest.$ac_ext <<EOF
11  #line 14926 "configure"
12 @@ -45575,7 +45575,7 @@
13        php_iconv_old_ld="$LDFLAGS"
14        LDFLAGS="-liconv $LDFLAGS"
15        if test "$cross_compiling" = yes; then
16 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
17 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
18  else
19    cat > conftest.$ac_ext <<EOF
20  #line 45582 "configure"
21 @@ -52337,7 +52337,7 @@
22      _SAVE_CPPFLAGS=$CPPFLAGS
23    _SAVE_LDFLAGS=$LDFLAGS
24    CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR"
25 -  LDFLAGS="$LDFLAGS $LDAP_SHARED_LIBADD"
26 +  LDFLAGS="$LDFLAGS $LDAP_SHARED_LIBADD -lsasl2"
27  
28      echo $ac_n "checking for 3 arg ldap_set_rebind_proc""... $ac_c" 1>&6
29  echo "configure:52344: checking for 3 arg ldap_set_rebind_proc" >&5