[PHP-DEV] CVS update: php3 From: rasmus (php-dev <email protected>)
Date: 11/05/98

Date: Thursday November 5, 1998 @ 9:18
Author: rasmus

Update of /repository/php3
In directory asf:/u2/tmp/cvs-serv22953

Modified Files:
        configure.in
Log Message:
Check for -R
Someone please test this on Irix

Index: php3/configure.in
diff -c php3/configure.in:1.271 php3/configure.in:1.272
*** php3/configure.in:1.271 Wed Nov 4 14:10:40 1998
--- php3/configure.in Thu Nov 5 09:18:14 1998
***************
*** 1,4 ****
! dnl $Id: configure.in,v 1.271 1998/11/04 19:10:40 cschneid Exp $
  dnl Process this file with autoconf to produce a configure script.
  
  AC_INIT(main.c)
--- 1,4 ----
! dnl $Id: configure.in,v 1.272 1998/11/05 14:18:14 rasmus Exp $
  dnl Process this file with autoconf to produce a configure script.
  
  AC_INIT(main.c)
***************
*** 36,41 ****
--- 36,67 ----
          CFLAGS=`echo $CFLAGS | sed -e 's/-g//'`
  fi
  
+ dnl check for -R, etc. switch
+ AC_MSG_CHECKING(if compiler supports -R)
+ AC_CACHE_VAL(php_cv_cc_dashr,[
+ SAVE_LIBS="${LIBS}"
+ LIBS="-R /usr/lib ${LIBS}"
+ AC_TRY_LINK([], [], php_cv_cc_dashr=yes, php_cv_cc_dashr=no);
+ LIBS="${SAVE_LIBS}"])
+ AC_MSG_RESULT($php_cv_cc_dashr)
+ if test $php_cv_cc_dashr = "yes"; then
+ ld_runpath_switch="-R"
+ else
+ AC_MSG_CHECKING([if compiler supports -Wl,-rpath,])
+ AC_CACHE_VAL(php_cv_cc_rpath,[
+ SAVE_LIBS="${LIBS}"
+ LIBS="-Wl,-rpath,/usr/lib ${LIBS}"
+ AC_TRY_LINK([], [], php_cv_cc_rpath=yes, php_cv_cc_rpath=no)
+ LIBS="${SAVE_LIBS}"])
+ AC_MSG_RESULT($php_cv_cc_rpath)
+ if test $php_cv_cc_rpath = "yes"; then
+ ld_runpath_switch="-Wl,-rpath,"
+ else
+ dnl something innocuous
+ ld_runpath_switch="-L"
+ fi
+ fi
+
  dnl AC_PROG_INSTALL
  AC_PATH_PROG(PROG_SENDMAIL, sendmail, /usr/lib/sendmail, $PATH /usr/bin /usr/sbin /usr/etc /etc /usr/ucblib)
  if test -n "$PROG_SENDMAIL"; then
***************
*** 886,892 ****
                  fi
             fi
      MYSQL_INCLUDE=-I$MYSQL_INCDIR
! MYSQL_LFLAGS="-R$MYSQL_LIBDIR -L$MYSQL_LIBDIR"
      MYSQL_LIBS=-lmysqlclient
  
      AC_DEFINE(HAVE_MYSQL)
--- 912,918 ----
                  fi
             fi
      MYSQL_INCLUDE=-I$MYSQL_INCDIR
! MYSQL_LFLAGS="${ld_runpath_switch}$MYSQL_LIBDIR -L$MYSQL_LIBDIR"
      MYSQL_LIBS=-lmysqlclient
  
      AC_DEFINE(HAVE_MYSQL)

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>