Changeset 1087 for trunk/configure.in
- Timestamp:
- Aug 3, 2008, 11:34:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.in
r1082 r1087 51 51 52 52 make_command="" 53 for m in "$MAKE" make gmake gnumake ; do 54 if test "x${m}" != "x" ; then 55 if ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then 53 for m in "$MAKE" make gmake gnumake ; do 54 if test "x${m}" != "x" ; then 55 if ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then 56 56 make_command=$m; break; 57 57 fi … … 121 121 for i in "${with_matlab}/bin/mex" "${with_matlab}" ; do 122 122 if test -x "$i" ; then 123 123 MEX="$i"; break 124 124 fi 125 125 if test "x${MEX}" = "x" ; then 126 126 AC_ERROR([cannot find mex in $with_matlab]) 127 127 fi 128 128 done … … 150 150 for i in "${with_octave}/bin/mkoctfile" "${with_octave}" ; do 151 151 if test -x "$i" ; then 152 152 MEX="$i"; break 153 153 fi 154 154 if test "x${MEX}" = "x" ; then 155 155 AC_ERROR([cannot find mkoctfile in $with_octave]) 156 156 fi 157 157 done … … 170 170 PERL= 171 171 PERL_INCLUDES= 172 PERL_SITE_PACKAGES=173 172 PERL_ARCHLIB= 173 PERL_VERSION= 174 PERL_VERSION_RV= 174 175 if test "$with_perl" != "no" ; then 175 176 AC_MSG_CHECKING([for perl]) … … 181 182 if test "x${PERL}" != "x" ; then 182 183 PERL_ARCHLIB=`${PERL} -MConfig -e 'print $Config{archlib}'` 183 PERL_SITE_PACKAGES='$(libdir)/perl5' 184 PERL_VERSION=`${PERL} -MConfig -e 'print $Config{version}'` 185 PERL_VERSION_RV=`echo ${PERL_VERSION} | cut -d'.' -f1-2` 184 186 fi 185 187 fi … … 187 189 AC_SUBST(PERL) 188 190 AC_SUBST(PERL_INCLUDES) 189 AC_SUBST(PERL_SITE_PACKAGES)190 191 AC_SUBST(PERL_ARCHLIB) 192 AC_SUBST(PERL_VERSION) 193 AC_SUBST(PERL_VERSION_RV) 191 194 192 195 PYTHON="" … … 230 233 else 231 234 if test -r $prefix/include/python$PYTHON_VERSION/Python.h; then 232 233 235 PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)' 236 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' 234 237 else 235 236 237 238 239 240 238 if test -r /usr/include/python$PYTHON_VERSION/Python.h; then 239 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION 240 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' 241 else 242 echo could not find python$PYTHON_VERSION/Python.h 243 fi 241 244 fi 242 245 if test ! -d "$PYTHON_SITE_PACKAGES"; then 243 246 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"` 244 247 fi 245 248 fi … … 253 256 AC_MSG_CHECKING([for python distutils]) 254 257 ${PYTHON} -c "from distutils.core import setup; setup(name='test')" \ 255 258 build build_ext 2>&1 > /dev/null 256 259 if test $? = 0 ; then 257 260 HAVE_PYTHON_DISTUTILS="yes" … … 260 263 fi 261 264 AC_MSG_RESULT([$HAVE_PYTHON_DISTUTILS]) 262 265 263 266 if test "${HAVE_PYTHON_DISTUTILS}" = "yes"; then 264 267 # … … 270 273 print distutils.sysconfig.get_python_inc();"` 271 274 if test -n "${incdir}"; then 272 275 python_path="-I${incdir}" 273 276 fi 274 277 PYTHON_CPPFLAGS=$python_path … … 281 284 AC_MSG_CHECKING([location of site-packages]) 282 285 PYTHON_SITE_DIR="`${PYTHON} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(0);'`" 283 286 284 287 PYTHON_CFLAGS="`$PYTHON -c 'from distutils import sysconfig; flags = [[\"-I\" + sysconfig.get_python_inc(0), \"-I\" + sysconfig.get_python_inc(1), \" \".join(sysconfig.get_config_var(\"CFLAGS\").split())]]; print \" \".join(flags);'`" 285 288 PYTHON_LDFLAGS="`$PYTHON -c 'from distutils import sysconfig; libs = sysconfig.get_config_var(\"LIBS\").split() + sysconfig.get_config_var(\"SYSLIBS\").split(); libs.append(\"-lpython\"+sysconfig.get_config_var(\"VERSION\")); print \" \".join(libs);'`" … … 301 304 RUBY_DEV_PKG="no" 302 305 303 AC_ARG_WITH(ruby, 304 AS_HELP_STRING([--with-ruby=PATH], [absolute path to ruby executable]), 306 AC_ARG_WITH(ruby, 307 AS_HELP_STRING([--with-ruby=PATH], [absolute path to ruby executable]), 305 308 [rappture_with_ruby=$with_val]) 306 if test "${rappture_with_ruby}" != "no" ; then 309 if test "${rappture_with_ruby}" != "no" ; then 307 310 if test "${rappture_with_ruby}" = "yes" ; then 308 311 AC_PATH_PROG(RUBY, ruby) 309 312 else 310 AC_PATH_PROG(RUBY, ruby, 313 AC_PATH_PROG(RUBY, ruby, 311 314 [${rappture_with_ruby}/bin/ruby:${rappture_with_ruby}]) 312 315 fi … … 314 317 AC_SUBST(RUBY) 315 318 319 RUBY_VERSION_RV= 320 RUBY_PLATFORM= 316 321 if test "x${RUBY}" != "x" ; then 317 322 AX_PROG_RUBY_VERSION 323 RUBY_VERSION_RV=`echo ${RUBY_VERSION} | cut -d'.' -f1-2` 324 RUBY_PLATFORM=`ruby -e 'puts RUBY_PLATFORM'` 318 325 ac_mkmf_result=`${RUBY} -r mkmf -e ";" 2>&1` 319 326 if test -z "$ac_mkmf_result"; then … … 323 330 fi 324 331 AC_SUBST(HAVE_RUBY_DEVEL) 332 AC_SUBST(RUBY_VERSION_RV) 333 AC_SUBST(RUBY_PLATFORM) 325 334 326 335 RP_BASE=`pwd` … … 366 375 dnl read Makefile.in and write Makefile 367 376 AC_OUTPUT( [ 368 369 packages/Makefile 370 src/Makefile 371 src/core/Makefile 372 src/core2/Makefile 373 src/objects/Makefile 374 375 376 gui/apps/rappture 377 378 gui/apps/simsim 379 gui/pkgIndex.tcl 380 381 lang/Makefile 382 lang/perl/Makefile 383 lang/perl/Makefile.PL 384 lang/python/Makefile 385 lang/python/setup.py 386 lang/matlab/Makefile 387 lang/octave/Makefile 388 lang/ruby/Makefile 389 lang/ruby/build.rb 390 lang/tcl/Makefile 391 392 lang/tcl/src/Makefile 393 lang/tcl/scripts/Makefile 394 lang/tcl/tests/Makefile 395 lib/Makefile 396 examples/Makefile 397 examples/3D/Makefile 398 examples/app-fermi/Makefile 399 examples/app-fermi/2.0/Makefile 400 examples/app-fermi/cee/Makefile 401 examples/app-fermi/fortran/Makefile 402 examples/app-fermi/matlab/Makefile 403 examples/app-fermi/octave/Makefile 404 examples/app-fermi/perl/Makefile 405 examples/app-fermi/python/Makefile 406 examples/app-fermi/ruby/Makefile 407 examples/app-fermi/tcl/Makefile 408 examples/app-fermi/wrapper/Makefile 409 examples/app-fermi/wrapper/cee/Makefile 410 examples/app-fermi/wrapper/python/Makefile 411 examples/app-fermi/wrapper/tcl/Makefile 412 examples/c-example/Makefile 413 examples/canvas/Makefile 414 examples/demo.bash 415 examples/graph/Makefile 416 examples/zoo/Makefile 417 examples/zoo/binary/Makefile 418 examples/zoo/boolean/Makefile 419 examples/zoo/choice/Makefile 420 examples/zoo/cloud/Makefile 421 examples/zoo/cloud/matlab/Makefile 422 examples/zoo/curve/Makefile 423 examples/zoo/enable/Makefile 424 examples/zoo/field/Makefile 425 examples/zoo/group/Makefile 426 examples/zoo/image/Makefile 427 examples/zoo/image/docs/Makefile 428 examples/zoo/image/examples/Makefile 429 examples/zoo/integer/Makefile 430 examples/zoo/integer2/Makefile 431 examples/zoo/loader/Makefile 432 examples/zoo/loader/examples/Makefile 433 examples/zoo/log/Makefile 434 examples/zoo/note/Makefile 435 examples/zoo/note/docs/Makefile 436 examples/zoo/number/Makefile 437 examples/zoo/number2/Makefile 438 examples/zoo/phase/Makefile 439 examples/zoo/sequence/Makefile 440 examples/zoo/sequence/examples/Makefile 441 examples/zoo/string/Makefile 442 examples/zoo/structure/Makefile 443 examples/zoo/structure/examples/Makefile 444 examples/zoo/table/Makefile 445 test/Makefile 446 test/src/Makefile 377 Makefile 378 packages/Makefile 379 src/Makefile 380 src/core/Makefile 381 src/core2/Makefile 382 src/objects/Makefile 383 gui/Makefile 384 gui/apps/Makefile 385 gui/apps/rappture 386 gui/apps/rappture.env 387 gui/apps/simsim 388 gui/pkgIndex.tcl 389 gui/scripts/Makefile 390 lang/Makefile 391 lang/perl/Makefile 392 lang/perl/Makefile.PL 393 lang/python/Makefile 394 lang/python/setup.py 395 lang/matlab/Makefile 396 lang/octave/Makefile 397 lang/ruby/Makefile 398 lang/ruby/build.rb 399 lang/tcl/Makefile 400 lang/tcl/pkgIndex.tcl 401 lang/tcl/src/Makefile 402 lang/tcl/scripts/Makefile 403 lang/tcl/tests/Makefile 404 lib/Makefile 405 examples/Makefile 406 examples/3D/Makefile 407 examples/app-fermi/Makefile 408 examples/app-fermi/2.0/Makefile 409 examples/app-fermi/cee/Makefile 410 examples/app-fermi/fortran/Makefile 411 examples/app-fermi/matlab/Makefile 412 examples/app-fermi/octave/Makefile 413 examples/app-fermi/perl/Makefile 414 examples/app-fermi/python/Makefile 415 examples/app-fermi/ruby/Makefile 416 examples/app-fermi/tcl/Makefile 417 examples/app-fermi/wrapper/Makefile 418 examples/app-fermi/wrapper/cee/Makefile 419 examples/app-fermi/wrapper/python/Makefile 420 examples/app-fermi/wrapper/tcl/Makefile 421 examples/c-example/Makefile 422 examples/canvas/Makefile 423 examples/demo.bash 424 examples/graph/Makefile 425 examples/zoo/Makefile 426 examples/zoo/binary/Makefile 427 examples/zoo/boolean/Makefile 428 examples/zoo/choice/Makefile 429 examples/zoo/cloud/Makefile 430 examples/zoo/cloud/matlab/Makefile 431 examples/zoo/curve/Makefile 432 examples/zoo/enable/Makefile 433 examples/zoo/field/Makefile 434 examples/zoo/group/Makefile 435 examples/zoo/image/Makefile 436 examples/zoo/image/docs/Makefile 437 examples/zoo/image/examples/Makefile 438 examples/zoo/integer/Makefile 439 examples/zoo/integer2/Makefile 440 examples/zoo/loader/Makefile 441 examples/zoo/loader/examples/Makefile 442 examples/zoo/log/Makefile 443 examples/zoo/note/Makefile 444 examples/zoo/note/docs/Makefile 445 examples/zoo/number/Makefile 446 examples/zoo/number2/Makefile 447 examples/zoo/phase/Makefile 448 examples/zoo/sequence/Makefile 449 examples/zoo/sequence/examples/Makefile 450 examples/zoo/string/Makefile 451 examples/zoo/structure/Makefile 452 examples/zoo/structure/examples/Makefile 453 examples/zoo/table/Makefile 454 test/Makefile 455 test/src/Makefile 447 456 ])
Note: See TracChangeset
for help on using the changeset viewer.