mirror of https://gitlab.com/QEF/q-e.git
workaround for problem with systems where you can't run interactively
[Gerardo] git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1477 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
parent
2b8623bf74
commit
2221832461
|
@ -1401,10 +1401,23 @@ build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|||
|
||||
|
||||
|
||||
# many HPC systems are configured so that running programs interactively
|
||||
# is disabled: on those systems, AC_PROG_F77 and AC_PROG_CC would fail
|
||||
# because they can't run the compiled executables
|
||||
# to work around that, let's pretend we are cross-compiling even if we aren't
|
||||
if test "$host" = "" -o "$host" = "$build"
|
||||
then
|
||||
# fake cross-compilation
|
||||
# this relies on undocumented Autoconf behavior!!!
|
||||
# (if you know a better way, please tell me)
|
||||
host=$build
|
||||
cross_compiling=maybe
|
||||
fi
|
||||
|
||||
if test "$arch" = ""
|
||||
then
|
||||
# identify architecture
|
||||
case $build in
|
||||
case $host in
|
||||
ia64-*-linux-gnu | x86_64-*-linux-gnu ) arch=linux64 ;;
|
||||
*-pc-linux-gnu ) arch=linux32 ;;
|
||||
*-ibm-aix* ) arch=aix ;;
|
||||
|
@ -1486,7 +1499,7 @@ mac )
|
|||
echo "$as_me: WARNING: unsupported architecture" >&2;}
|
||||
problems="$problems\\
|
||||
unsupported architecture:\\
|
||||
$build\\"
|
||||
$host\\"
|
||||
try_f90="f90"
|
||||
try_ar="ar"
|
||||
try_arflags="ruv"
|
||||
|
@ -1589,7 +1602,7 @@ fi
|
|||
|
||||
|
||||
# Provide some information about the compiler.
|
||||
echo "$as_me:1592:" \
|
||||
echo "$as_me:1605:" \
|
||||
"checking for Fortran 77 compiler version" >&5
|
||||
ac_compiler=`set X $ac_compile; echo $2`
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
||||
|
@ -2127,7 +2140,7 @@ fi
|
|||
|
||||
|
||||
# Provide some information about the compiler.
|
||||
echo "$as_me:2130:" \
|
||||
echo "$as_me:2143:" \
|
||||
"checking for Fortran 77 compiler version" >&5
|
||||
ac_compiler=`set X $ac_compile; echo $2`
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
||||
|
|
17
configure.ac
17
configure.ac
|
@ -36,10 +36,23 @@ if test "$topdir" = "" ; then topdir="`pwd`" ; fi
|
|||
# check system type (no cross-compilation for now)
|
||||
AC_CANONICAL_BUILD
|
||||
|
||||
# many HPC systems are configured so that running programs interactively
|
||||
# is disabled: on those systems, AC_PROG_F77 and AC_PROG_CC would fail
|
||||
# because they can't run the compiled executables
|
||||
# to work around that, let's pretend we are cross-compiling even if we aren't
|
||||
if test "$host" = "" -o "$host" = "$build"
|
||||
then
|
||||
# fake cross-compilation
|
||||
# this relies on undocumented Autoconf behavior!!!
|
||||
# (if you know a better way, please tell me)
|
||||
host=$build
|
||||
cross_compiling=maybe
|
||||
fi
|
||||
|
||||
if test "$arch" = ""
|
||||
then
|
||||
# identify architecture
|
||||
case $build in
|
||||
case $host in
|
||||
ia64-*-linux-gnu | x86_64-*-linux-gnu ) arch=linux64 ;;
|
||||
*-pc-linux-gnu ) arch=linux32 ;;
|
||||
*-ibm-aix* ) arch=aix ;;
|
||||
|
@ -120,7 +133,7 @@ mac )
|
|||
AC_MSG_WARN(unsupported architecture)
|
||||
problems="$problems\\
|
||||
unsupported architecture:\\
|
||||
$build\\"
|
||||
$host\\"
|
||||
try_f90="f90"
|
||||
try_ar="ar"
|
||||
try_arflags="ruv"
|
||||
|
|
|
@ -1401,10 +1401,23 @@ build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|||
|
||||
|
||||
|
||||
# many HPC systems are configured so that running programs interactively
|
||||
# is disabled: on those systems, AC_PROG_F77 and AC_PROG_CC would fail
|
||||
# because they can't run the compiled executables
|
||||
# to work around that, let's pretend we are cross-compiling even if we aren't
|
||||
if test "$host" = "" -o "$host" = "$build"
|
||||
then
|
||||
# fake cross-compilation
|
||||
# this relies on undocumented Autoconf behavior!!!
|
||||
# (if you know a better way, please tell me)
|
||||
host=$build
|
||||
cross_compiling=maybe
|
||||
fi
|
||||
|
||||
if test "$arch" = ""
|
||||
then
|
||||
# identify architecture
|
||||
case $build in
|
||||
case $host in
|
||||
ia64-*-linux-gnu | x86_64-*-linux-gnu ) arch=linux64 ;;
|
||||
*-pc-linux-gnu ) arch=linux32 ;;
|
||||
*-ibm-aix* ) arch=aix ;;
|
||||
|
@ -1486,7 +1499,7 @@ mac )
|
|||
echo "$as_me: WARNING: unsupported architecture" >&2;}
|
||||
problems="$problems\\
|
||||
unsupported architecture:\\
|
||||
$build\\"
|
||||
$host\\"
|
||||
try_f90="f90"
|
||||
try_ar="ar"
|
||||
try_arflags="ruv"
|
||||
|
@ -1589,7 +1602,7 @@ fi
|
|||
|
||||
|
||||
# Provide some information about the compiler.
|
||||
echo "$as_me:1592:" \
|
||||
echo "$as_me:1605:" \
|
||||
"checking for Fortran 77 compiler version" >&5
|
||||
ac_compiler=`set X $ac_compile; echo $2`
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
||||
|
@ -2127,7 +2140,7 @@ fi
|
|||
|
||||
|
||||
# Provide some information about the compiler.
|
||||
echo "$as_me:2130:" \
|
||||
echo "$as_me:2143:" \
|
||||
"checking for Fortran 77 compiler version" >&5
|
||||
ac_compiler=`set X $ac_compile; echo $2`
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
||||
|
|
|
@ -36,10 +36,23 @@ if test "$topdir" = "" ; then topdir="`pwd`" ; fi
|
|||
# check system type (no cross-compilation for now)
|
||||
AC_CANONICAL_BUILD
|
||||
|
||||
# many HPC systems are configured so that running programs interactively
|
||||
# is disabled: on those systems, AC_PROG_F77 and AC_PROG_CC would fail
|
||||
# because they can't run the compiled executables
|
||||
# to work around that, let's pretend we are cross-compiling even if we aren't
|
||||
if test "$host" = "" -o "$host" = "$build"
|
||||
then
|
||||
# fake cross-compilation
|
||||
# this relies on undocumented Autoconf behavior!!!
|
||||
# (if you know a better way, please tell me)
|
||||
host=$build
|
||||
cross_compiling=maybe
|
||||
fi
|
||||
|
||||
if test "$arch" = ""
|
||||
then
|
||||
# identify architecture
|
||||
case $build in
|
||||
case $host in
|
||||
ia64-*-linux-gnu | x86_64-*-linux-gnu ) arch=linux64 ;;
|
||||
*-pc-linux-gnu ) arch=linux32 ;;
|
||||
*-ibm-aix* ) arch=aix ;;
|
||||
|
@ -120,7 +133,7 @@ mac )
|
|||
AC_MSG_WARN(unsupported architecture)
|
||||
problems="$problems\\
|
||||
unsupported architecture:\\
|
||||
$build\\"
|
||||
$host\\"
|
||||
try_f90="f90"
|
||||
try_ar="ar"
|
||||
try_arflags="ruv"
|
||||
|
|
Loading…
Reference in New Issue