~ubuntu-branches/ubuntu/maverick/swig1.3/maverick

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-11-10 16:29:56 UTC
  • mfrom: (1.2.8 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20081110162956-xue6itkuqhbza87s
Tags: 1.3.36-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop pike and libchicken-dev from the build-depends 
    (both are universe)
  - Use python2.5 instead of python2.4.
  - use php5
  - Clean Runtime/ as well.
  - debian/Rules (clean): Remove Lib/ocaml/swigp4.ml.
  - drop "--without-mzscheme", we don't have it in our build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
dnl The macros which aren't shipped with the autotools are stored in the
3
3
dnl Tools/config directory in .m4 files.
4
4
 
5
 
AC_INIT([swig],[1.3.35],[http://www.swig.org])
 
5
AC_INIT([swig],[1.3.36],[http://www.swig.org])
6
6
AC_PREREQ(2.58)
7
7
AC_CONFIG_SRCDIR([Source/Swig/swig.h])
8
8
AC_CONFIG_AUX_DIR([Tools/config])
254
254
   *) MZSCHEME_SO=.so;;
255
255
esac
256
256
 
257
 
AC_SUBST(TCL_LDSHARED)
258
 
case $host in
259
 
   *-*-darwin*) TCL_LDSHARED="gcc -dynamiclib -flat_namespace -undefined suppress";;
260
 
   *) TCL_LDSHARED=$LDSHARED;;
261
 
esac
262
 
 
263
 
AC_SUBST(TCL_CXXSHARED)
264
 
case $host in
265
 
   *-*-darwin*) TCL_CXXSHARED="g++ -dynamiclib -flat_namespace -undefined suppress";;
266
 
   *) TCL_CXXSHARED=$TRYLINKINGWITHCXX;;
267
 
esac
268
 
 
269
257
AC_SUBST(LUA_SO)
270
258
case $host in
271
259
   *-*-darwin*) LUA_SO=.so;;
545
533
# Cygwin (Windows) needs the library for dynamic linking
546
534
case $host in
547
535
*-*-cygwin* | *-*-mingw*) TCLDYNAMICLINKING="$TCLLIB";;
 
536
*-*-darwin*) TCLDYNAMICLINKING="-dynamiclib -flat_namespace -undefined suppress";;
548
537
*)TCLDYNAMICLINKING="";;
549
538
esac
550
539
fi
1236
1225
else
1237
1226
 
1238
1227
    if test "x$PHP4BIN" = xyes; then
1239
 
      AC_CHECK_PROGS(PHP4, php5 php php4)
 
1228
      AC_CHECK_PROGS(PHP4, [php5 php])
1240
1229
    else
1241
1230
      PHP4=$PHP4BIN
1242
1231
    fi
1244
1233
    AC_MSG_CHECKING(for PHP header files)
1245
1234
    dnl /usr/bin/php5 -> /usr/bin/php-config5
1246
1235
    case $PHP4 in
1247
 
      *[[45]])
1248
 
        PHP4CONFIG=`echo "$PHP4"|sed 's/\([[45]]\)$/-config\1/'` ;;
 
1236
      *5)
 
1237
        PHP4CONFIG=`echo "$PHP4"|sed 's/5$/-config5/'` ;;
1249
1238
      *)
1250
1239
        PHP4CONFIG=$PHP4-config ;;
1251
1240
    esac
1252
 
    PHP4INC=`$PHP4CONFIG --includes 2>/dev/null`
1253
 
    if test -n "$PHP4INC"; then
1254
 
      AC_MSG_RESULT($PHP4INC)
1255
 
    else
1256
 
      AC_MSG_RESULT(not found)
1257
 
    fi
1258
 
 
 
1241
    php_version=`$PHP4CONFIG --version 2>/dev/null`
 
1242
    case $php_version in
 
1243
    5*) 
 
1244
        PHP4INC=`$PHP4CONFIG --includes 2>/dev/null`
 
1245
        if test -n "$PHP4INC"; then
 
1246
          AC_MSG_RESULT($PHP4INC)
 
1247
        else
 
1248
          AC_MSG_RESULT(not found)
 
1249
        fi
 
1250
        ;;
 
1251
    *)
 
1252
        AC_MSG_RESULT([found PHP $version, but only PHP 5 is supported]) ;;
 
1253
    esac
1259
1254
fi
1260
1255
AC_SUBST(PHP4)
1261
1256
AC_SUBST(PHP4INC)