- Timestamp:
- Jul 29, 2006, 11:07:47 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 5 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.in
r493 r497 15 15 cd - 16 16 # make RpTcl; 17 #make RpPython;18 #make RpPerl;17 make RpPython; 18 make RpPerl; 19 19 20 20 ############################################################################# … … 31 31 ############################################################################# 32 32 33 RpPython: 34 set -x; 35 cd python; \ 36 @PYTHON@ setup.py \ 37 build_ext \ 38 --library-dirs=@prefix@/lib \ 39 --include-dirs=@prefix@/include/core \ 40 install \ 41 --prefix=@prefix@ \ 42 43 RpPerl: 44 set -x; 45 cd perl; \ 46 @PERL@ Makefile.PL PREFIX=@prefix@; \ 47 make; \ 48 make test; \ 49 make install; 50 33 51 clean: 34 52 cd examples/app-fermi/cee; make clean; cd -; 35 53 cd examples/app-fermi/fortran; make clean; cd -; 36 54 cd examples/c-example; make clean; cd -; 55 cd perl; make clean; cd -; 56 cd python; rm -rf build; cd -; 37 57 cd src; make clean; cd -; 38 58 cd src/matlab; make clean; cd -; … … 43 63 cd examples/app-fermi/fortran; make distclean; cd -; 44 64 cd examples/c-example; make distclean; cd -; 65 cd perl; make clean; cd -; 66 cd python; rm -rf build; cd -; 45 67 cd src; make distclean; cd -; 46 68 cd src/matlab; make distclean; cd -; -
trunk/configure
r494 r497 310 310 #endif" 311 311 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 VERSION RP_BASE LIBOBJS LTLIBOBJS'312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 PERL PYTHON pythondir PYTHON_VERSION PYTHON_INCLUDES PYTHON_SITE_PACKAGES VERSION RP_BASE LIBOBJS LTLIBOBJS' 313 313 ac_subst_files='' 314 314 … … 858 858 cat <<\_ACEOF 859 859 860 Optional Packages: 861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 863 --with-perl=DIR Build Perl bindings if found 864 --with-python=DIR Build Python bindings if found 865 860 866 Some influential environment variables: 861 867 CC C compiler command … … 4233 4239 4234 4240 # Provide some information about the compiler. 4235 echo "$as_me:42 35:" \4241 echo "$as_me:4241:" \ 4236 4242 "checking for Fortran 77 compiler version" >&5 4237 4243 ac_compiler=`set X $ac_compile; echo $2` … … 4378 4384 4379 4385 4386 # Check whether --with-perl or --without-perl was given. 4387 if test "${with_perl+set}" = set; then 4388 withval="$with_perl" 4389 4390 fi; 4391 # Extract the first word of "perl", so it can be a program name with args. 4392 set dummy perl; ac_word=$2 4393 echo "$as_me:$LINENO: checking for $ac_word" >&5 4394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4395 if test "${ac_cv_prog_PERL+set}" = set; then 4396 echo $ECHO_N "(cached) $ECHO_C" >&6 4397 else 4398 if test -n "$PERL"; then 4399 ac_cv_prog_PERL="$PERL" # Let the user override the test. 4400 else 4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4402 for as_dir in $PATH 4403 do 4404 IFS=$as_save_IFS 4405 test -z "$as_dir" && as_dir=. 4406 for ac_exec_ext in '' $ac_executable_extensions; do 4407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4408 ac_cv_prog_PERL="perl" 4409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4410 break 2 4411 fi 4412 done 4413 done 4414 4415 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false" 4416 fi 4417 fi 4418 PERL=$ac_cv_prog_PERL 4419 if test -n "$PERL"; then 4420 echo "$as_me:$LINENO: result: $PERL" >&5 4421 echo "${ECHO_T}$PERL" >&6 4422 else 4423 echo "$as_me:$LINENO: result: no" >&5 4424 echo "${ECHO_T}no" >&6 4425 fi 4426 4427 4428 4429 PYTHON= 4430 PYTHON_VERSION= 4431 PYTHON_INCLUDES= 4432 PYTHON_SITE_PACKAGES= 4433 pythondir= 4434 4435 # Check whether --with-python or --without-python was given. 4436 if test "${with_python+set}" = set; then 4437 withval="$with_python" 4438 4439 fi; 4440 if test "$with_python" != "no" ; then 4441 if test -x "$with_python/bin/python" 4442 then 4443 echo Found python in $with_python/bin/python 4444 PYTHON="$with_python/bin/python" 4445 else 4446 if test -x "$with_python" 4447 then 4448 echo Found python in $with_python 4449 PYTHON="$with_python" 4450 else 4451 # Extract the first word of "python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args. 4452 set dummy python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2 4453 echo "$as_me:$LINENO: checking for $ac_word" >&5 4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4455 if test "${ac_cv_path_PYTHON+set}" = set; then 4456 echo $ECHO_N "(cached) $ECHO_C" >&6 4457 else 4458 case $PYTHON in 4459 [\\/]* | ?:[\\/]*) 4460 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 4461 ;; 4462 *) 4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4464 for as_dir in $PATH 4465 do 4466 IFS=$as_save_IFS 4467 test -z "$as_dir" && as_dir=. 4468 for ac_exec_ext in '' $ac_executable_extensions; do 4469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4470 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4472 break 2 4473 fi 4474 done 4475 done 4476 4477 ;; 4478 esac 4479 fi 4480 PYTHON=$ac_cv_path_PYTHON 4481 4482 if test -n "$PYTHON"; then 4483 echo "$as_me:$LINENO: result: $PYTHON" >&5 4484 echo "${ECHO_T}$PYTHON" >&6 4485 else 4486 echo "$as_me:$LINENO: result: no" >&5 4487 echo "${ECHO_T}no" >&6 4488 fi 4489 4490 fi 4491 fi 4492 if test "$PYTHON" != "" 4493 then 4494 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"` 4495 echo Found Python version $PYTHON_VERSION 4496 fi 4497 if test "$PYTHON_VERSION" != "" 4498 then 4499 if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \ 4500 -d $with_python/lib/python$PYTHON_VERSION/site-packages 4501 then 4502 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION 4503 PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages 4504 else 4505 if test -r $prefix/include/python$PYTHON_VERSION/Python.h 4506 then 4507 PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)' 4508 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' 4509 else 4510 if test -r /usr/include/python$PYTHON_VERSION/Python.h 4511 then 4512 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION 4513 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' 4514 else 4515 echo could not find python$PYTHON_VERSION/Python.h 4516 fi 4517 fi 4518 if test ! -d "$PYTHON_SITE_PACKAGES" 4519 then 4520 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"` 4521 fi 4522 fi 4523 fi 4524 if test "$with_python" != "" 4525 then 4526 pythondir='$(PYTHON_SITE_PACKAGES)' 4527 else 4528 pythondir='$(libdir)/python${PYTHON_VERSION}/site-packages' 4529 fi 4530 fi 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4380 4541 RP_BASE=`pwd` 4381 4542 4382 4543 4383 ac_config_files="$ac_config_files Makefile examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/c-example/Makefilesrc/Makefile src/matlab/Makefile src/octave/Makefile test/Makefile gui/apps/rappture"4544 ac_config_files="$ac_config_files Makefile examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/c-example/Makefile perl/Makefile.PL python/setup.py src/Makefile src/matlab/Makefile src/octave/Makefile test/Makefile gui/apps/rappture" 4384 4545 cat >confcache <<\_ACEOF 4385 4546 # This file is a shell script that caches the results of configure … … 4936 5097 "examples/app-fermi/fortran/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/app-fermi/fortran/Makefile" ;; 4937 5098 "examples/c-example/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c-example/Makefile" ;; 5099 "perl/Makefile.PL" ) CONFIG_FILES="$CONFIG_FILES perl/Makefile.PL" ;; 5100 "python/setup.py" ) CONFIG_FILES="$CONFIG_FILES python/setup.py" ;; 4938 5101 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 4939 5102 "src/matlab/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/matlab/Makefile" ;; … … 5041 5204 s,@FFLAGS@,$FFLAGS,;t t 5042 5205 s,@ac_ct_F77@,$ac_ct_F77,;t t 5206 s,@PERL@,$PERL,;t t 5207 s,@PYTHON@,$PYTHON,;t t 5208 s,@pythondir@,$pythondir,;t t 5209 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t 5210 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t 5211 s,@PYTHON_SITE_PACKAGES@,$PYTHON_SITE_PACKAGES,;t t 5043 5212 s,@VERSION@,$VERSION,;t t 5044 5213 s,@RP_BASE@,$RP_BASE,;t t -
trunk/configure.in
r493 r497 35 35 AC_PROG_F77([f77 fort77 g77 f90 xlf xlf90 fl32]) 36 36 37 dnl perl and python check borrowed from 38 dnl http://www.opensource.apple.com/darwinsource/Current/libxslt-8.1/libxslt/configure.in 39 dnl 40 dnl Perl is just needed for generating some data for XSLtmark 41 dnl 42 43 AC_ARG_WITH(perl, [ --with-perl[=DIR] Build Perl bindings if found]) 44 AC_CHECK_PROG(PERL, perl, perl, false) 45 dnl AM_CONDITIONAL(WITH_PERL, test "$PERL" != "false") 46 47 dnl 48 dnl check for python 49 dnl 50 51 PYTHON= 52 PYTHON_VERSION= 53 PYTHON_INCLUDES= 54 PYTHON_SITE_PACKAGES= 55 pythondir= 56 AC_ARG_WITH(python, [ --with-python[=DIR] Build Python bindings if found]) 57 if test "$with_python" != "no" ; then 58 if test -x "$with_python/bin/python" 59 then 60 echo Found python in $with_python/bin/python 61 PYTHON="$with_python/bin/python" 62 else 63 if test -x "$with_python" 64 then 65 echo Found python in $with_python 66 PYTHON="$with_python" 67 else 68 AC_PATH_PROG(PYTHON, python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5) 69 fi 70 fi 71 if test "$PYTHON" != "" 72 then 73 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"` 74 echo Found Python version $PYTHON_VERSION 75 dnl LIBXML2_PYTHON=`$PYTHON -c "try : import libxml2 ; print 1 76 dnl except: print 0"` 77 dnl if test "$LIBXML2_PYTHON" = "1" 78 dnl then 79 dnl echo Found libxml2-python module 80 dnl else 81 dnl echo Warning: Missing libxml2-python 82 dnl fi 83 fi 84 if test "$PYTHON_VERSION" != "" 85 then 86 if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \ 87 -d $with_python/lib/python$PYTHON_VERSION/site-packages 88 then 89 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION 90 PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages 91 else 92 if test -r $prefix/include/python$PYTHON_VERSION/Python.h 93 then 94 PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)' 95 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' 96 else 97 if test -r /usr/include/python$PYTHON_VERSION/Python.h 98 then 99 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION 100 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' 101 else 102 echo could not find python$PYTHON_VERSION/Python.h 103 fi 104 fi 105 if test ! -d "$PYTHON_SITE_PACKAGES" 106 then 107 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"` 108 fi 109 fi 110 fi 111 if test "$with_python" != "" 112 then 113 pythondir='$(PYTHON_SITE_PACKAGES)' 114 else 115 pythondir='$(libdir)/python${PYTHON_VERSION}/site-packages' 116 fi 117 fi 118 dnl AM_CONDITIONAL(WITH_PYTHON, test "$PYTHON_INCLUDES" != "") 119 dnl if test "$PYTHON_INCLUDES" != "" 120 dnl then 121 dnl PYTHON_SUBDIR=python 122 dnl else 123 dnl PYTHON_SUBDIR= 124 dnl fi 125 AC_SUBST(pythondir) 126 dnl AC_SUBST(PYTHON_SUBDIR) 127 128 AC_SUBST(PERL) 129 AC_SUBST(PYTHON) 130 AC_SUBST(PYTHON_VERSION) 131 AC_SUBST(PYTHON_INCLUDES) 132 AC_SUBST(PYTHON_SITE_PACKAGES) 133 37 134 AC_SUBST(VERSION) 38 135 … … 45 142 examples/app-fermi/fortran/Makefile \ 46 143 examples/c-example/Makefile \ 144 perl/Makefile.PL \ 145 python/setup.py \ 47 146 src/Makefile \ 48 147 src/matlab/Makefile \
Note: See TracChangeset
for help on using the changeset viewer.