[cig-commits] [commit] QA: build: Remove Pyre checks. (72cc926)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Mon Jan 20 11:49:50 PST 2014


Repository : ssh://geoshell/specfem2d

On branch  : QA
Link       : https://github.com/geodynamics/specfem2d/compare/28743f19b9f9fdb75d359c135053825c0ffd05b3...5e8aa55e68fd17b6f475fb65531b84195e497aa1

>---------------------------------------------------------------

commit 72cc92685eef6d7186a4a336ba64ad38e60e0e51
Author: Elliott Sales de Andrade <esalesde at physics.utoronto.ca>
Date:   Sat Jan 11 20:58:53 2014 -0500

    build: Remove Pyre checks.
    
    The Pyrized version of the code was removed long ago, so these checks
    don't do anything except change the default targets.


>---------------------------------------------------------------

72cc92685eef6d7186a4a336ba64ad38e60e0e51
 Makefile.in               |  15 +-
 configure                 | 598 +---------------------------------------------
 configure.ac              |  68 ------
 setup/config.h.in         |   4 -
 src/meshfem2D/Makefile.in |   9 +-
 src/specfem2D/Makefile.in |   9 +-
 6 files changed, 18 insertions(+), 685 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index fec2fa1..83b42b7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -46,14 +46,13 @@
 #### targets
 ####
 
-# default targets for the pure Fortran version
- at COND_PYRE_FALSE@DEFAULT = \
- at COND_PYRE_FALSE@	meshfem2D \
- at COND_PYRE_FALSE@	specfem2D \
- at COND_PYRE_FALSE@	convolve_source_timefunction \
- at COND_PYRE_FALSE@	check_quality_external_mesh \
- at COND_PYRE_FALSE@	adj_seismogram \
- at COND_PYRE_FALSE@	$(EMPTY_MACRO)
+DEFAULT = \
+	xmeshfem2D \
+	xspecfem2D \
+	xconvolve_source_timefunction \
+	xcheck_quality_external_mesh \
+	xadj_seismogram \
+	$(EMPTY_MACRO)
 
 default: $(DEFAULT)
 
diff --git a/configure b/configure
index b2c9b7b..dc9ec11 100755
--- a/configure
+++ b/configure
@@ -624,10 +624,6 @@ ac_includes_default="\
 
 ac_subst_vars='LTLIBOBJS
 LIBOBJS
-PYTHON_EGG_LDFLAGS
-PYTHON_EGG_CPPFLAGS
-PYTHON_EGG_CFLAGS
-PYTHONPATH
 LOCAL_PATH_IS_ALSO_GLOBAL
 FLAGS_CHECK
 MPICC
@@ -668,34 +664,10 @@ ac_ct_FC
 LDFLAGS
 FCFLAGS
 FC
-PYTHON_LA_LDFLAGS
-PYTHON_SYSLIBS
-PYTHON_MODLIBS
-PYTHON_LINKFORSHARED
-PYTHON_LIBS
-PYTHON_LIBPL
-PYTHON_LIBP
-PYTHON_LIBDIR
-PYTHON_LDLIBRARY
-PYTHON_LDLAST
-PYTHON_LDFLAGS
-PYTHON_BLDLIBRARY
-PYTHON_INCDIR
-pkgpyexecdir
-pyexecdir
-pkgpythondir
-pythondir
-PYTHON_PLATFORM
-PYTHON_EXEC_PREFIX
-PYTHON_PREFIX
-PYTHON_VERSION
-PYTHON
 CUSTOM_MPI_TYPE
 CUSTOM_REAL
 COND_MPI_FALSE
 COND_MPI_TRUE
-COND_PYRE_FALSE
-COND_PYRE_TRUE
 target_alias
 host_alias
 build_alias
@@ -737,7 +709,6 @@ SHELL'
 ac_subst_files=''
 ac_user_opts='
 enable_option_checking
-with_pyre
 with_mpi
 enable_double_precision
 with_scotch_dir
@@ -747,7 +718,6 @@ with_scotch_libdir
       ac_precious_vars='build_alias
 host_alias
 target_alias
-PYTHON
 FC
 FCFLAGS
 LDFLAGS
@@ -766,8 +736,7 @@ MPIFC
 MPILIBS
 MPICC
 FLAGS_CHECK
-LOCAL_PATH_IS_ALSO_GLOBAL
-PYTHONPATH'
+LOCAL_PATH_IS_ALSO_GLOBAL'
 
 
 # Initialize some variables set by options.
@@ -1387,7 +1356,6 @@ Optional Features:
 Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
-  --with-pyre             build Pyrized version [default=no]
   --with-mpi              build parallel version [default=yes]
   --with-scotch-dir       define the root path to Scotch (e.g. /opt/scotch/)
   --with-scotch-includedir
@@ -1397,7 +1365,6 @@ Optional Packages:
                           /opt/scotch/lib)
 
 Some influential environment variables:
-  PYTHON      the Python interpreter
   FC          Fortran compiler command
   FCFLAGS     Fortran compiler flags
   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
@@ -1428,7 +1395,6 @@ Some influential environment variables:
   LOCAL_PATH_IS_ALSO_GLOBAL
               files on a local path on each node are also seen as global with
               same path [default=true]
-  PYTHONPATH  Python module search path
 
 Use these variables to override the choices made by `configure' or to help
 it to find libraries and programs with nonstandard names/locations.
@@ -2239,23 +2205,6 @@ ac_config_headers="$ac_config_headers setup/config.h"
 # 'configure' options
 
 
-# Check whether --with-pyre was given.
-if test "${with_pyre+set}" = set; then :
-  withval=$with_pyre; want_pyre="$withval"
-else
-  want_pyre=no
-fi
-
- if test "$want_pyre" = yes; then
-  COND_PYRE_TRUE=
-  COND_PYRE_FALSE='#'
-else
-  COND_PYRE_TRUE='#'
-  COND_PYRE_FALSE=
-fi
-
-
-
 # Check whether --with-mpi was given.
 if test "${with_mpi+set}" = set; then :
   withval=$with_mpi; want_mpi="$withval"
@@ -2292,357 +2241,6 @@ fi
 
 # Checks for programs.
 
-if test "$want_pyre" = yes; then
-
-
-
-
-
-
-        if test -n "$PYTHON"; then
-      # If the user set $PYTHON, use it and don't search something else.
-      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.3" >&5
-$as_echo_n "checking whether $PYTHON version is >= 2.3... " >&6; }
-      prog="import sys
-# split strings by '.' and convert to numeric.  Append some zeros
-# because we need at least 4 digits for the hex conversion.
-# map returns an iterator in Python 3.0 and a list in 2.x
-minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
-minverhex = 0
-# xrange is not present in Python 3.0 and range returns an iterator
-for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
-sys.exit(sys.hexversion < minverhex)"
-  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
-   ($PYTHON -c "$prog") >&5 2>&5
-   ac_status=$?
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   (exit $ac_status); }; then :
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
-fi
-      am_display_PYTHON=$PYTHON
-    else
-      # Otherwise, try each interpreter until we find one that satisfies
-      # VERSION.
-      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.3" >&5
-$as_echo_n "checking for a Python interpreter with version >= 2.3... " >&6; }
-if ${am_cv_pathless_PYTHON+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-
-	for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
-	  test "$am_cv_pathless_PYTHON" = none && break
-	  prog="import sys
-# split strings by '.' and convert to numeric.  Append some zeros
-# because we need at least 4 digits for the hex conversion.
-# map returns an iterator in Python 3.0 and a list in 2.x
-minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
-minverhex = 0
-# xrange is not present in Python 3.0 and range returns an iterator
-for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
-sys.exit(sys.hexversion < minverhex)"
-  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
-   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
-   ac_status=$?
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   (exit $ac_status); }; then :
-  break
-fi
-	done
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
-$as_echo "$am_cv_pathless_PYTHON" >&6; }
-      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
-      if test "$am_cv_pathless_PYTHON" = none; then
-	PYTHON=:
-      else
-        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
-set dummy $am_cv_pathless_PYTHON; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_PYTHON+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  case $PYTHON in
-  [\\/]* | ?:[\\/]*)
-  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
-  ;;
-  *)
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-  ;;
-esac
-fi
-PYTHON=$ac_cv_path_PYTHON
-if test -n "$PYTHON"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
-$as_echo "$PYTHON" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-      fi
-      am_display_PYTHON=$am_cv_pathless_PYTHON
-    fi
-
-
-  if test "$PYTHON" = :; then
-      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
-  else
-
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
-$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
-if ${am_cv_python_version+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
-$as_echo "$am_cv_python_version" >&6; }
-  PYTHON_VERSION=$am_cv_python_version
-
-
-
-  PYTHON_PREFIX='${prefix}'
-
-  PYTHON_EXEC_PREFIX='${exec_prefix}'
-
-
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
-$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
-if ${am_cv_python_platform+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
-$as_echo "$am_cv_python_platform" >&6; }
-  PYTHON_PLATFORM=$am_cv_python_platform
-
-
-
-
-            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
-$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
-if ${am_cv_python_pythondir+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test "x$prefix" = xNONE
-     then
-       am_py_prefix=$ac_default_prefix
-     else
-       am_py_prefix=$prefix
-     fi
-     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
-     case $am_cv_python_pythondir in
-     $am_py_prefix*)
-       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
-       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
-       ;;
-     *)
-       case $am_py_prefix in
-         /usr|/System*) ;;
-         *)
-	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
-	  ;;
-       esac
-       ;;
-     esac
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
-$as_echo "$am_cv_python_pythondir" >&6; }
-  pythondir=$am_cv_python_pythondir
-
-
-
-  pkgpythondir=\${pythondir}/$PACKAGE
-
-
-        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
-$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
-if ${am_cv_python_pyexecdir+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test "x$exec_prefix" = xNONE
-     then
-       am_py_exec_prefix=$am_py_prefix
-     else
-       am_py_exec_prefix=$exec_prefix
-     fi
-     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
-     case $am_cv_python_pyexecdir in
-     $am_py_exec_prefix*)
-       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
-       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
-       ;;
-     *)
-       case $am_py_exec_prefix in
-         /usr|/System*) ;;
-         *)
-	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
-	   ;;
-       esac
-       ;;
-     esac
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
-$as_echo "$am_cv_python_pyexecdir" >&6; }
-  pyexecdir=$am_cv_python_pyexecdir
-
-
-
-  pkgpyexecdir=\${pyexecdir}/$PACKAGE
-
-
-
-  fi
-
-
-
-# $Id: cit_python.m4 17971 2011-02-24 17:22:51Z brad $
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $am_display_PYTHON sysconfig" >&5
-$as_echo_n "checking $am_display_PYTHON sysconfig... " >&6; }
-cat >sysconfig.py <<END_OF_PYTHON
-import os, sys
-from distutils import sysconfig
-def cygpath(wpath):
-    s = os.popen('cygpath -u "%s"' % wpath)
-    path = s.read().strip()
-    s.close()
-    return path
-incdir = sysconfig.get_python_inc()
-keys = (
-    'BLDLIBRARY',
-    'LDFLAGS',
-    'LDLAST',
-    'LDLIBRARY',
-    'LIBDIR',
-    'LIBP',
-    'LIBPL',
-    'LIBS',
-    'LINKFORSHARED',
-    'MODLIBS',
-    'SYSLIBS',
-    'LA_LDFLAGS',
-)
-if os.name == "nt":
-    # We are running under Python for Windows (the real one...
-    # not Cygwin Python, under which 'os.name' is 'posix').
-    # We assume that we are still in the Cygwin POSIX environment,
-    # however (this is 'configure', after all); so we convert
-    # all Windows pathnames to POSIX pathnames using 'cygpath'.
-    incdir = cygpath(incdir)
-    vars = {}
-    libs = os.path.join(sys.prefix, "libs")
-    libs = cygpath(libs)
-    version = sysconfig.get_python_version()
-    version = version.replace('.', '')
-    vars['BLDLIBRARY'] = "-L%s -lpython%s" % (libs, version)
-else:
-    vars = sysconfig.get_config_vars()
-    # transform AIX's python.exp
-    vars['LINKFORSHARED'] = vars['LINKFORSHARED'].replace('Modules',vars['LIBPL'])
-    if vars['LDLIBRARY'] == vars['LIBRARY']:
-        # "On systems without shared libraries, LDLIBRARY is the same as LIBRARY"
-        vars['BLDLIBRARY'] = "-L%(LIBPL)s -lpython%(VERSION)s" % vars
-    elif vars['BLDLIBRARY']:
-        #     The 'mpicc' wrapper for LAM/MPI isn't very smart about "-L"
-        # options.  Adding "-L/usr/lib" can cause "-lmpi" to be found in /usr/lib
-        # instead of LAM's 'lib' directory.  Of course, avoiding "-L/usr/lib"
-        # doesn't really fix the problem, but it does make it much less likely;
-        # and "-L/usr/lib" is redundant and potentially problematic anyway.
-        #     Python 2.4 and later puts a symlink to libpython.so in LIBPL
-        # (/usr/lib/python2.x/config), which makes adding "-L$LIBDIR"
-        # (in addition to "-L$LIBPL") completely redundant.
-        #     But we still support Python 2.3, and we prefer shared to static,
-        # so we still add "-L$LIBDIR" when Python is installed in a non-standard
-        # location.  Note that the linker will still prefer shared over static
-        # with only "-L/usr/lib/python2.3/config" on the link line.
-        libdir = ""
-        if vars['LIBDIR'] != "/usr/lib":
-            libdir = "-L%(LIBDIR)s "
-        # Important: on Cygwin, the import library for libpython.dll is
-        # nested inside Python's 'config' directory (see Issue39).  This means
-        # that the linker always needs help finding "-lpython2.x" (in the form
-        # of "-L$LIBPL"), even for the "system" Python installed under /usr.
-        vars['BLDLIBRARY'] = (libdir + "-L%(LIBPL)s -lpython%(VERSION)s") % vars
-    else:
-        # "On Mac OS X frameworks, BLDLIBRARY is blank"
-        # See also Issue39.
-        framework = "%(PYTHONFRAMEWORKDIR)s/Versions/%(VERSION)s/%(PYTHONFRAMEWORK)s" % vars
-        PYTHONFRAMEWORK = vars.get('PYTHONFRAMEWORK', 'Python')
-        vars['LINKFORSHARED'] = vars['LINKFORSHARED'].replace(framework, "-framework " + PYTHONFRAMEWORK)
-        vars['LA_LDFLAGS'] = "-Wl,-framework,%s" % PYTHONFRAMEWORK
-vars['LDFLAGS'] = '' # only causes trouble (e.g., "-arch i386 -arch ppc" on Mac) -- see issue97
-print 'PYTHON_INCDIR="%s"' % incdir
-for key in keys:
-    print 'PYTHON_%s="%s"' % (key, vars.get(key, ''))
-
-END_OF_PYTHON
-eval `$PYTHON sysconfig.py 2>/dev/null`
-if test -n "$PYTHON_INCDIR"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
-$as_echo "ok" >&6; }
-else
-    as_fn_error $? "\"failed
-
-Run '$PYTHON sysconfig.py' to see what went wrong.
-\"" "$LINENO" 5
-fi
-rm -f sysconfig.py
-PYTHON_INCDIR=$PYTHON_INCDIR
-
-PYTHON_BLDLIBRARY=$PYTHON_BLDLIBRARY
-
-PYTHON_LDFLAGS=$PYTHON_LDFLAGS
-
-PYTHON_LDLAST=$PYTHON_LDLAST
-
-PYTHON_LDLIBRARY=$PYTHON_LDLIBRARY
-
-PYTHON_LIBDIR=$PYTHON_LIBDIR
-
-PYTHON_LIBP=$PYTHON_LIBP
-
-PYTHON_LIBPL=$PYTHON_LIBPL
-
-PYTHON_LIBS=$PYTHON_LIBS
-
-PYTHON_LINKFORSHARED=$PYTHON_LINKFORSHARED
-
-PYTHON_MODLIBS=$PYTHON_MODLIBS
-
-PYTHON_SYSLIBS=$PYTHON_SYSLIBS
-
-PYTHON_LA_LDFLAGS=$PYTHON_LA_LDFLAGS
-
-
-fi
-
 # a courtesy to the installed base of users
 if test x"$FC" = x && test x"$F90" != x; then
     FC="$F90"
@@ -6092,98 +5690,8 @@ if test x"$LOCAL_PATH_IS_ALSO_GLOBAL" = x; then
     LOCAL_PATH_IS_ALSO_GLOBAL=true
 fi
 
-
-
-
-
-
-# Checks for Python modules and packages.
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-if test "$want_pyre" = yes; then
-    builddir=`pwd`
-    save_PYTHONPATH="$PYTHONPATH"
-    PYTHONPATH="$builddir/python:$PYTHONPATH"; export PYTHONPATH
-    # Cheap work-around for the inability of merlin/setuptools to control #! line.
-    rm -f pyspecfem2D
-    $as_ln_s $PYTHON pyspecfem2D
-    pyspecfem2D="$builddir/pyspecfem2D"
-    cd $srcdir
-
-    { $as_echo "$as_me:${as_lineno-$LINENO}: downloading missing Python dependencies" >&5
-$as_echo "$as_me: downloading missing Python dependencies" >&6;}
-    if { ac_try='$pyspecfem2D setup.py install_deps -zmxd $builddir/deps >&5 2>&5'
-  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; }; then :
-
-else
-  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot download missing Python dependencies
-See \`config.log' for more details" "$LINENO" 5; }
-fi
-
-    { $as_echo "$as_me:${as_lineno-$LINENO}: building Python dependencies" >&5
-$as_echo "$as_me: building Python dependencies" >&6;}
-    if { ac_try='$pyspecfem2D setup.py develop -H None -f $builddir/deps -s $builddir -d $builddir/python >&5 2>&5'
-  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; }; then :
-
-else
-  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "building Python dependencies
-See \`config.log' for more details" "$LINENO" 5; }
-fi
-
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egg-related flags" >&5
-$as_echo_n "checking for egg-related flags... " >&6; }
-    if { ac_try='$pyspecfem2D setup.py egg_flags >&5 2>&5'
-  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; }; then :
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
-$as_echo "ok" >&6; }
-           . egg-flags.sh
-           rm -f egg-flags.sh
-
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
-$as_echo "failed" >&6; }
-          { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot scan Python eggs for flags
-See \`config.log' for more details" "$LINENO" 5; }
-fi
-
-    cd $builddir
-    rm -f pyspecfem2D
-    PYTHONPATH="$save_PYTHONPATH"
-    PYTHONPATH="${pythondir}:${pyexecdir}${save_PYTHONPATH:+:${save_PYTHONPATH}}"
-
-
-
-
-
-fi
-
-
 # Checks for libraries.
 
-
 # Checks for header files.
 
 if test "$want_mpi" = yes; then
@@ -6264,114 +5772,18 @@ fi
 FC=$cit_fc_save_fc
 FCFLAGS=$cit_fc_save_fcflags
 
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-fi
-
-# Checks for typedefs, structures, and compiler characteristics.
-
-if test "$want_pyre" = yes; then
-    ac_ext=${ac_fc_srcext-f}
-ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
-ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_fc_compiler_gnu
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alternate main to link with Fortran libraries" >&5
-$as_echo_n "checking for alternate main to link with Fortran libraries... " >&6; }
-if ${ac_cv_fc_main+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_fc_m_save_LIBS=$LIBS
- LIBS="cfortran_test.$ac_objext $LIBS"
- ac_fortran_dm_var=FC_DUMMY_MAIN
- ac_cv_fortran_main="main" # default entry point name
- for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
-   ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#ifdef FC_DUMMY_MAIN_EQ_F77
-#  undef F77_DUMMY_MAIN
-#  undef FC_DUMMY_MAIN
-#else
-#  undef $ac_fortran_dm_var
-#endif
-#define main $ac_func
-#ifdef FC_DUMMY_MAIN
-#ifndef FC_DUMMY_MAIN_EQ_F77
-#  ifdef __cplusplus
-     extern "C"
-#  endif
-   int FC_DUMMY_MAIN() { return 1; }
-#endif
-#endif
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  mv conftest.$ac_objext cfortran_test.$ac_objext
-else
-  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot compile a simple C program
-See \`config.log' for more details" "$LINENO" 5; }
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-   ac_ext=${ac_fc_srcext-f}
+ac_ext=${ac_fc_srcext-f}
 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
 
-   cat > conftest.$ac_ext <<_ACEOF
-      subroutine foobar()
-      return
-      end
-_ACEOF
-if ac_fn_fc_try_link "$LINENO"; then :
-  ac_cv_fortran_main=$ac_func; break
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-   rm -f cfortran_test* conftest*
- done
- ac_cv_fc_main=$ac_cv_fortran_main
- rm -f cfortran_test* conftest*
- LIBS=$ac_fc_m_save_LIBS
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_main" >&5
-$as_echo "$ac_cv_fc_main" >&6; }
-
-cat >>confdefs.h <<_ACEOF
-#define FC_MAIN $ac_cv_fc_main
-_ACEOF
-
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 fi
 
+# Checks for typedefs, structures, and compiler characteristics.
 
 # Checks for library functions.
 
-
 ac_config_files="$ac_config_files Makefile src/meshfem2D/Makefile src/specfem2D/Makefile setup/constants.h setup/precision.h src/meshfem2D/scotch_5.1.12b/src/Makefile.inc"
 
 cat >confcache <<\_ACEOF
@@ -6483,10 +5895,6 @@ LIBOBJS=$ac_libobjs
 LTLIBOBJS=$ac_ltlibobjs
 
 
-if test -z "${COND_PYRE_TRUE}" && test -z "${COND_PYRE_FALSE}"; then
-  as_fn_error $? "conditional \"COND_PYRE\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
 if test -z "${COND_MPI_TRUE}" && test -z "${COND_MPI_FALSE}"; then
   as_fn_error $? "conditional \"COND_MPI\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
diff --git a/configure.ac b/configure.ac
index 385c9be..f18ddd7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,13 +16,6 @@ AC_CONFIG_MACRO_DIR([m4])
 
 # 'configure' options
 
-AC_ARG_WITH([pyre],
-    [AC_HELP_STRING([--with-pyre],
-        [build Pyrized version @<:@default=no@:>@])],
-    [want_pyre="$withval"],
-    [want_pyre=no])
-AM_CONDITIONAL([COND_PYRE], [test "$want_pyre" = yes])
-
 AC_ARG_WITH([mpi],
     [AC_HELP_STRING([--with-mpi],
         [build parallel version @<:@default=yes@:>@])],
@@ -48,11 +41,6 @@ AC_SUBST([CUSTOM_MPI_TYPE])
 
 # Checks for programs.
 
-if test "$want_pyre" = yes; then
-    AM_PATH_PYTHON([2.3])
-    CIT_PYTHON_SYSCONFIG
-fi
-
 # a courtesy to the installed base of users
 if test x"$FC" = x && test x"$F90" != x; then
     FC="$F90"
@@ -226,58 +214,8 @@ if test x"$LOCAL_PATH_IS_ALSO_GLOBAL" = x; then
     LOCAL_PATH_IS_ALSO_GLOBAL=true
 fi
 
-AC_ARG_VAR(PYTHON, [Python interpreter])
-AC_ARG_VAR(PYTHONPATH, [Python module search path])
-
-
-
-# Checks for Python modules and packages.
-
-AC_LANG(C)
-if test "$want_pyre" = yes; then
-    builddir=`pwd`
-    save_PYTHONPATH="$PYTHONPATH"
-    PYTHONPATH="$builddir/python:$PYTHONPATH"; export PYTHONPATH
-    # Cheap work-around for the inability of merlin/setuptools to control #! line.
-    rm -f pyspecfem2D
-    $as_ln_s $PYTHON pyspecfem2D
-    pyspecfem2D="$builddir/pyspecfem2D"
-    cd $srcdir
-
-    AC_MSG_NOTICE([downloading missing Python dependencies])
-    AS_IF([AC_TRY_COMMAND([$pyspecfem2D setup.py install_deps -zmxd $builddir/deps >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD])],
-          [],
-          [AC_MSG_FAILURE([cannot download missing Python dependencies])])
-
-    AC_MSG_NOTICE([building Python dependencies])
-    AS_IF([AC_TRY_COMMAND([$pyspecfem2D setup.py develop -H None -f $builddir/deps -s $builddir -d $builddir/python >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD])],
-          [],
-          [AC_MSG_FAILURE([building Python dependencies])])
-
-    AC_MSG_CHECKING([for egg-related flags])
-    AS_IF([AC_TRY_COMMAND([$pyspecfem2D setup.py egg_flags >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD])],
-          [AC_MSG_RESULT(ok)
-           . egg-flags.sh
-           rm -f egg-flags.sh
-          ],
-          [AC_MSG_RESULT(failed)
-          AC_MSG_FAILURE([cannot scan Python eggs for flags])])
-
-    cd $builddir
-    rm -f pyspecfem2D
-    PYTHONPATH="$save_PYTHONPATH"
-    PYTHONPATH="${pythondir}:${pyexecdir}${save_PYTHONPATH:+:${save_PYTHONPATH}}"
-
-    AC_SUBST(PYTHONPATH)
-    AC_SUBST(PYTHON_EGG_CFLAGS)
-    AC_SUBST(PYTHON_EGG_CPPFLAGS)
-    AC_SUBST(PYTHON_EGG_LDFLAGS)
-fi
-
-
 # Checks for libraries.
 
-
 # Checks for header files.
 
 if test "$want_mpi" = yes; then
@@ -288,14 +226,8 @@ fi
 
 # Checks for typedefs, structures, and compiler characteristics.
 
-if test "$want_pyre" = yes; then
-    CIT_FC_MAIN
-fi
-
-
 # Checks for library functions.
 
-
 AC_CONFIG_FILES([
 	Makefile
 	src/meshfem2D/Makefile
diff --git a/setup/config.h.in b/setup/config.h.in
index 2898cf0..dbfc1dc 100644
--- a/setup/config.h.in
+++ b/setup/config.h.in
@@ -14,10 +14,6 @@
 /* As FC_FUNC, but for C identifiers containing underscores. */
 #undef FC_FUNC_
 
-/* Define to alternate name for `main' routine that is called from a `main' in
-   the Fortran libraries. */
-#undef FC_MAIN
-
 /* Define if emmintrin.h */
 #undef HAVE_EMMINTRIN
 
diff --git a/src/meshfem2D/Makefile.in b/src/meshfem2D/Makefile.in
index 3c34c6c..868a52e 100644
--- a/src/meshfem2D/Makefile.in
+++ b/src/meshfem2D/Makefile.in
@@ -85,11 +85,10 @@ SETUP = ../../setup
 #### targets
 ####
 
-# default targets for the pure Fortran version
- at COND_PYRE_FALSE@DEFAULT = \
- at COND_PYRE_FALSE@	meshfem2D \
- at COND_PYRE_FALSE@	check_quality_external_mesh \
- at COND_PYRE_FALSE@	$(EMPTY_MACRO)
+DEFAULT = \
+	xmeshfem2D \
+	xcheck_quality_external_mesh \
+	$(EMPTY_MACRO)
 
 OBJS_MESHFEM2D = \
 	$O/get_node_number.o \
diff --git a/src/specfem2D/Makefile.in b/src/specfem2D/Makefile.in
index 888f8d2..26e1508 100644
--- a/src/specfem2D/Makefile.in
+++ b/src/specfem2D/Makefile.in
@@ -88,11 +88,10 @@ LIBJPEG = ./libjpeg
 #### targets
 ####
 
-# default targets for the pure Fortran version
- at COND_PYRE_FALSE@DEFAULT = \
- at COND_PYRE_FALSE@	specfem2D \
- at COND_PYRE_FALSE@	convolve_source_timefunction \
- at COND_PYRE_FALSE@	$(EMPTY_MACRO)
+DEFAULT = \
+	xspecfem2D \
+	xconvolve_source_timefunction \
+	$(EMPTY_MACRO)
 
 
 OBJS_SPECFEM2D = \



More information about the CIG-COMMITS mailing list