Diff for /embedaddon/php/aclocal.m4 between versions 1.1.1.2 and 1.1.1.4

version 1.1.1.2, 2012/05/29 12:34:34 version 1.1.1.4, 2013/10/14 08:02:07
Line 66  AC_DEFUN([PHP_EXPAND_PATH],[ Line 66  AC_DEFUN([PHP_EXPAND_PATH],[
     $2=$1      $2=$1
   else    else
     changequote({,})      changequote({,})
    ep_dir="`echo $1|$SED 's%/*[^/][^/]*/*$%%'`"    ep_dir=`echo $1|$SED 's%/*[^/][^/]*/*$%%'`
     changequote([,])      changequote([,])
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"    ep_realdir=`(cd "$ep_dir" && pwd)`
    $2="$ep_realdir/`basename \"$1\"`"    $2="$ep_realdir"/`basename "$1"`
   fi    fi
 ])  ])
   
Line 984  dnl ---------------------------------------------- Sha Line 984  dnl ---------------------------------------------- Sha
   if test "$3" != "shared" && test "$3" != "yes" && test "$4" = "cli"; then    if test "$3" != "shared" && test "$3" != "yes" && test "$4" = "cli"; then
 dnl ---------------------------------------------- CLI static module  dnl ---------------------------------------------- CLI static module
     [PHP_]translit($1,a-z_-,A-Z__)[_SHARED]=no      [PHP_]translit($1,a-z_-,A-Z__)[_SHARED]=no
       case "$PHP_SAPI" in
         cgi|embed[)]
           PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,)
           EXT_STATIC="$EXT_STATIC $1"
           ;;
         *[)]
         PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,cli)          PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,cli)
        PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,cgi)        ;;
        PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,fpm)    esac
     EXT_CLI_STATIC="$EXT_CLI_STATIC $1"      EXT_CLI_STATIC="$EXT_CLI_STATIC $1"
   fi    fi
   PHP_ADD_BUILD_DIR($ext_builddir)    PHP_ADD_BUILD_DIR($ext_builddir)
Line 1036  You either need to build $1 shared or build $2 statica Line 1042  You either need to build $1 shared or build $2 statica
 build to be successful.  build to be successful.
 ])  ])
   fi    fi
     if test "x$is_it_enabled" = "xno" && test "x$3" != "xtrue"; then
       AC_MSG_ERROR([
   You've configured extension $1, which depends on extension $2,
   but you've either not enabled $2, or have disabled it.
   ])
     fi
   dnl Some systems require that we link $2 to $1 when building    dnl Some systems require that we link $2 to $1 when building
 ])  ])
   
Line 1820  AC_TRY_COMPILE([ Line 1832  AC_TRY_COMPILE([
 ])  ])
   
 dnl -------------------------------------------------------------------------  dnl -------------------------------------------------------------------------
dnl Library/function existance and build sanity checksdnl Library/function existence and build sanity checks
 dnl -------------------------------------------------------------------------  dnl -------------------------------------------------------------------------
   
 dnl  dnl
Line 2308  AC_DEFUN([PHP_SETUP_OPENSSL],[ Line 2320  AC_DEFUN([PHP_SETUP_OPENSSL],[
   test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no    test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
   
   dnl Fallbacks for different configure options    dnl Fallbacks for different configure options
  if test -n "$PHP_OPENSSL" && test "$PHP_OPENSSL" != "no"; then  if test "$PHP_OPENSSL" != "no"; then
     PHP_OPENSSL_DIR=$PHP_OPENSSL      PHP_OPENSSL_DIR=$PHP_OPENSSL
  elif test -n "$PHP_IMAP_SSL" && test "$PHP_IMAP_SSL" != "no"; then  elif test "$PHP_IMAP_SSL" != "no"; then
     PHP_OPENSSL_DIR=$PHP_IMAP_SSL      PHP_OPENSSL_DIR=$PHP_IMAP_SSL
   fi    fi
   
Line 2330  AC_DEFUN([PHP_SETUP_OPENSSL],[ Line 2342  AC_DEFUN([PHP_SETUP_OPENSSL],[
       AC_MSG_ERROR([OpenSSL version 0.9.6 or greater required.])        AC_MSG_ERROR([OpenSSL version 0.9.6 or greater required.])
     fi      fi
   
    if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then    if test -n "$OPENSSL_LIBS"; then
       PHP_EVAL_LIBLINE($OPENSSL_LIBS, $1)        PHP_EVAL_LIBLINE($OPENSSL_LIBS, $1)
       fi
       if test -n "$OPENSSL_INCS"; then
       PHP_EVAL_INCLINE($OPENSSL_INCS)        PHP_EVAL_INCLINE($OPENSSL_INCS)
     fi      fi
   fi    fi
Line 2437  AC_DEFUN([PHP_SETUP_ICONV], [ Line 2451  AC_DEFUN([PHP_SETUP_ICONV], [
   dnl    dnl
   dnl Check libc first if no path is provided in --with-iconv    dnl Check libc first if no path is provided in --with-iconv
   dnl    dnl
   
   if test "$PHP_ICONV" = "yes"; then    if test "$PHP_ICONV" = "yes"; then
       dnl Reset LIBS temporarily as it may have already been included
       dnl -liconv in.
       LIBS_save="$LIBS"
       LIBS=
     AC_CHECK_FUNC(iconv, [      AC_CHECK_FUNC(iconv, [
       found_iconv=yes        found_iconv=yes
     ],[      ],[
Line 2447  AC_DEFUN([PHP_SETUP_ICONV], [ Line 2466  AC_DEFUN([PHP_SETUP_ICONV], [
         found_iconv=yes          found_iconv=yes
       ])        ])
     ])      ])
       LIBS="$LIBS_save"
   fi    fi
   
   dnl    dnl
Line 2905  dnl providerdesc Line 2925  dnl providerdesc
 dnl header-file  dnl header-file
   ac_hdrobj=$2    ac_hdrobj=$2
   
dnl Add providerdesc.o into global objects when neededdnl Add providerdesc.o or .lo into global objects when needed
   case $host_alias in    case $host_alias in
   *freebsd*)    *freebsd*)
     PHP_GLOBAL_OBJS="[$]PHP_GLOBAL_OBJS [$]ac_bdir[$]ac_provsrc.o"      PHP_GLOBAL_OBJS="[$]PHP_GLOBAL_OBJS [$]ac_bdir[$]ac_provsrc.o"
     PHP_LDFLAGS="$PHP_LDFLAGS -lelf"      PHP_LDFLAGS="$PHP_LDFLAGS -lelf"
     ;;      ;;
   *solaris*)    *solaris*)
    PHP_GLOBAL_OBJS="[$]PHP_GLOBAL_OBJS [$]ac_bdir[$]ac_provsrc.o"    PHP_GLOBAL_OBJS="[$]PHP_GLOBAL_OBJS [$]ac_bdir[$]ac_provsrc.lo"
     ;;      ;;
     *linux*)
       PHP_GLOBAL_OBJS="[$]PHP_GLOBAL_OBJS [$]ac_bdir[$]ac_provsrc.lo"
       ;;
   esac    esac
   
 dnl DTrace objects  dnl DTrace objects
Line 2939  dnl DTrace objects Line 2962  dnl DTrace objects
   esac    esac
   
 dnl Generate Makefile.objects entries  dnl Generate Makefile.objects entries
   dnl The empty $ac_provsrc command stops an implicit circular dependency
   dnl in GNU Make which causes the .d file to be overwritten (Bug 61268)
   cat>>Makefile.objects<<EOF    cat>>Makefile.objects<<EOF
   
   $abs_srcdir/$ac_provsrc:;
   
 $ac_bdir[$]ac_hdrobj: $abs_srcdir/$ac_provsrc  $ac_bdir[$]ac_hdrobj: $abs_srcdir/$ac_provsrc
        dtrace -h -C -s $ac_srcdir[$]ac_provsrc -o \$[]@ && \$(SED) -ibak 's,PHP_,DTRACE_,g' \$[]@        CFLAGS="\$(CFLAGS_CLEAN)" dtrace -h -C -s $ac_srcdir[$]ac_provsrc -o \$[]@.bak && \$(SED) -e 's,PHP_,DTRACE_,g' \$[]@.bak > \$[]@
   
 \$(PHP_DTRACE_OBJS): $ac_bdir[$]ac_hdrobj  \$(PHP_DTRACE_OBJS): $ac_bdir[$]ac_hdrobj
   
   EOF
   
     case $host_alias in
     *solaris*|*linux*)
       dtrace_prov_name="`echo $ac_provsrc | $SED -e 's#\(.*\)\/##'`.o"
       dtrace_lib_dir="`echo $ac_bdir[$]ac_provsrc | $SED -e 's#\(.*\)/[^/]*#\1#'`/.libs"
       dtrace_d_obj="`echo $ac_bdir[$]ac_provsrc | $SED -e 's#\(.*\)/\([^/]*\)#\1/.libs/\2#'`.o"
       dtrace_nolib_objs='$(PHP_DTRACE_OBJS:.lo=.o)'
       for ac_lo in $PHP_DTRACE_OBJS; do
         dtrace_lib_objs="[$]dtrace_lib_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`"
       done;
   dnl Always attempt to create both PIC and non-PIC DTrace objects (Bug 63692)
       cat>>Makefile.objects<<EOF
   $ac_bdir[$]ac_provsrc.lo: \$(PHP_DTRACE_OBJS)
           echo "[#] Generated by Makefile for libtool" > \$[]@
           @test -d "$dtrace_lib_dir" || mkdir $dtrace_lib_dir
           if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $dtrace_d_obj -s $abs_srcdir/$ac_provsrc $dtrace_lib_objs 2> /dev/null && test -f "$dtrace_d_obj"; then [\\]
             echo "pic_object=['].libs/$dtrace_prov_name[']" >> \$[]@ [;\\]
           else [\\]
             echo "pic_object='none'" >> \$[]@ [;\\]
           fi
           if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $ac_bdir[$]ac_provsrc.o -s $abs_srcdir/$ac_provsrc $dtrace_nolib_objs 2> /dev/null && test -f "$ac_bdir[$]ac_provsrc.o"; then [\\]
             echo "non_pic_object=[']$dtrace_prov_name[']" >> \$[]@ [;\\]
           else [\\]
             echo "non_pic_object='none'" >> \$[]@ [;\\]
           fi
   
   EOF
   
       ;;
     *)
   cat>>Makefile.objects<<EOF
 $ac_bdir[$]ac_provsrc.o: \$(PHP_DTRACE_OBJS)  $ac_bdir[$]ac_provsrc.o: \$(PHP_DTRACE_OBJS)
        dtrace -G -o \$[]@ -s $abs_srcdir/$ac_provsrc $dtrace_objs        CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o \$[]@ -s $abs_srcdir/$ac_provsrc $dtrace_objs
   
 EOF  EOF
       ;;
     esac
 ])  ])
 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,  ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,
Line 4183  if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec,  Line 4244  if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, 
    test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \     test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
    test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then     test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
   
  # We can hardcode non-existant directories.  # We can hardcode non-existent directories.
   if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&    if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
      # If the only mechanism to avoid hardcoding is shlibpath_var, we       # If the only mechanism to avoid hardcoding is shlibpath_var, we
      # have to relink, otherwise we might link with an installed library       # have to relink, otherwise we might link with an installed library
Line 4485  dgux*) Line 4546  dgux*)
   shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
   ;;    ;;
   
freebsd1.*)freebsd1*)
   dynamic_linker=no    dynamic_linker=no
   ;;    ;;
   
Line 4496  freebsd* | dragonfly*) Line 4557  freebsd* | dragonfly*)
     objformat=`/usr/bin/objformat`      objformat=`/usr/bin/objformat`
   else    else
     case $host_os in      case $host_os in
    freebsd[[123]].*) objformat=aout ;;    freebsd[[123]]*) objformat=aout ;;
     *) objformat=elf ;;      *) objformat=elf ;;
     esac      esac
   fi    fi
Line 6112  case $host_os in Line 6173  case $host_os in
         ;;          ;;
     esac      esac
     ;;      ;;
  freebsd[[12]].*)  freebsd[[12]]*)
     # C++ shared libraries reported to be fairly broken before switch to ELF      # C++ shared libraries reported to be fairly broken before switch to ELF
     _LT_AC_TAGVAR(ld_shlibs, $1)=no      _LT_AC_TAGVAR(ld_shlibs, $1)=no
     ;;      ;;
Line 8795  _LT_EOF Line 8856  _LT_EOF
       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
       ;;        ;;
   
    freebsd1.*)    freebsd1*)
       _LT_AC_TAGVAR(ld_shlibs, $1)=no        _LT_AC_TAGVAR(ld_shlibs, $1)=no
       ;;        ;;
   

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>