Commit d3931ecf authored by Emmanuel Bertin's avatar Emmanuel Bertin
Browse files

Changed the --enable-automatic-flags configure option to --enable-auto-flags.

Added --enable-best-link configure option.
parent 54b951b1
...@@ -918,7 +918,7 @@ SHELL' ...@@ -918,7 +918,7 @@ SHELL'
ac_subst_files='' ac_subst_files=''
ac_user_opts=' ac_user_opts='
enable_option_checking enable_option_checking
enable_automatic_flags enable_auto_flags
enable_icc enable_icc
enable_dependency_tracking enable_dependency_tracking
enable_static enable_static
...@@ -936,6 +936,7 @@ with_fftw_incdir ...@@ -936,6 +936,7 @@ with_fftw_incdir
with_xsl_url with_xsl_url
enable_threads enable_threads
enable_gprof enable_gprof
enable_best_link
' '
ac_precious_vars='build_alias ac_precious_vars='build_alias
host_alias host_alias
...@@ -1582,8 +1583,7 @@ Optional Features: ...@@ -1582,8 +1583,7 @@ Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options --disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-automatic-flags --enable-auto-flags Let the configure script choose the compilation
Let the configure script choose the compilation
flags (off by default) flags (off by default)
--enable-icc Enable special mode for compilation with the Intel --enable-icc Enable special mode for compilation with the Intel
compiler (off by default) compiler (off by default)
...@@ -1600,7 +1600,9 @@ Optional Features: ...@@ -1600,7 +1600,9 @@ Optional Features:
default) default)
--enable-gprof Enable special mode for compilation with the gprof --enable-gprof Enable special mode for compilation with the gprof
profiler (off by default) profiler (off by default)
--enable-static Enable static linking (off by default) --enable-best-link Choose the right combination of static and dynamic
linking to make the executable as portable as
possible (off by default)
   
Optional Packages: Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
...@@ -2616,9 +2618,9 @@ cclist="cc gcc" ...@@ -2616,9 +2618,9 @@ cclist="cc gcc"
# Provide special option for choosing automatically the compilation flags. # Provide special option for choosing automatically the compilation flags.
{ $as_echo "$as_me:$LINENO: checking if compilation flags are set automatically" >&5 { $as_echo "$as_me:$LINENO: checking if compilation flags are set automatically" >&5
$as_echo_n "checking if compilation flags are set automatically... " >&6; } $as_echo_n "checking if compilation flags are set automatically... " >&6; }
# Check whether --enable-automatic-flags was given. # Check whether --enable-auto-flags was given.
if test "${enable_automatic_flags+set}" = set; then if test "${enable_auto_flags+set}" = set; then
enableval=$enable_automatic_flags; use_autoflag="yes" enableval=$enable_auto_flags; use_autoflag="yes"
{ $as_echo "$as_me:$LINENO: result: yes" >&5 { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; } $as_echo "yes" >&6; }
else else
...@@ -5320,7 +5322,7 @@ ia64-*-hpux*) ...@@ -5320,7 +5322,7 @@ ia64-*-hpux*)
;; ;;
*-*-irix6*) *-*-irix6*)
# Find out which ABI we are using. # Find out which ABI we are using.
echo '#line 5323 "configure"' > conftest.$ac_ext echo '#line 5325 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
...@@ -8095,11 +8097,11 @@ else ...@@ -8095,11 +8097,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:8098: $lt_compile\"" >&5) (eval echo "\"\$as_me:8100: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err) (eval "$lt_compile" 2>conftest.err)
ac_status=$? ac_status=$?
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:8102: \$? = $ac_status" >&5 echo "$as_me:8104: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output. # So say no if there are warnings other than the usual output.
...@@ -8385,11 +8387,11 @@ else ...@@ -8385,11 +8387,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:8388: $lt_compile\"" >&5) (eval echo "\"\$as_me:8390: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err) (eval "$lt_compile" 2>conftest.err)
ac_status=$? ac_status=$?
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:8392: \$? = $ac_status" >&5 echo "$as_me:8394: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output. # So say no if there are warnings other than the usual output.
...@@ -8489,11 +8491,11 @@ else ...@@ -8489,11 +8491,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:8492: $lt_compile\"" >&5) (eval echo "\"\$as_me:8494: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err) (eval "$lt_compile" 2>out/conftest.err)
ac_status=$? ac_status=$?
cat out/conftest.err >&5 cat out/conftest.err >&5
echo "$as_me:8496: \$? = $ac_status" >&5 echo "$as_me:8498: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext if (exit $ac_status) && test -s out/conftest2.$ac_objext
then then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
...@@ -10876,7 +10878,7 @@ else ...@@ -10876,7 +10878,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 10879 "configure" #line 10881 "configure"
#include "confdefs.h" #include "confdefs.h"
   
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
...@@ -10976,7 +10978,7 @@ else ...@@ -10976,7 +10978,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 10979 "configure" #line 10981 "configure"
#include "confdefs.h" #include "confdefs.h"
   
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
...@@ -13404,11 +13406,11 @@ else ...@@ -13404,11 +13406,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:13407: $lt_compile\"" >&5) (eval echo "\"\$as_me:13409: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err) (eval "$lt_compile" 2>conftest.err)
ac_status=$? ac_status=$?
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:13411: \$? = $ac_status" >&5 echo "$as_me:13413: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output. # So say no if there are warnings other than the usual output.
...@@ -13508,11 +13510,11 @@ else ...@@ -13508,11 +13510,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:13511: $lt_compile\"" >&5) (eval echo "\"\$as_me:13513: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err) (eval "$lt_compile" 2>out/conftest.err)
ac_status=$? ac_status=$?
cat out/conftest.err >&5 cat out/conftest.err >&5
echo "$as_me:13515: \$? = $ac_status" >&5 echo "$as_me:13517: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext if (exit $ac_status) && test -s out/conftest2.$ac_objext
then then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
...@@ -15072,11 +15074,11 @@ else ...@@ -15072,11 +15074,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:15075: $lt_compile\"" >&5) (eval echo "\"\$as_me:15077: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err) (eval "$lt_compile" 2>conftest.err)
ac_status=$? ac_status=$?
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:15079: \$? = $ac_status" >&5 echo "$as_me:15081: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output. # So say no if there are warnings other than the usual output.
...@@ -15176,11 +15178,11 @@ else ...@@ -15176,11 +15178,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:15179: $lt_compile\"" >&5) (eval echo "\"\$as_me:15181: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err) (eval "$lt_compile" 2>out/conftest.err)
ac_status=$? ac_status=$?
cat out/conftest.err >&5 cat out/conftest.err >&5
echo "$as_me:15183: \$? = $ac_status" >&5 echo "$as_me:15185: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext if (exit $ac_status) && test -s out/conftest2.$ac_objext
then then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
...@@ -17373,11 +17375,11 @@ else ...@@ -17373,11 +17375,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:17376: $lt_compile\"" >&5) (eval echo "\"\$as_me:17378: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err) (eval "$lt_compile" 2>conftest.err)
ac_status=$? ac_status=$?
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:17380: \$? = $ac_status" >&5 echo "$as_me:17382: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output. # So say no if there are warnings other than the usual output.
...@@ -17663,11 +17665,11 @@ else ...@@ -17663,11 +17665,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:17666: $lt_compile\"" >&5) (eval echo "\"\$as_me:17668: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err) (eval "$lt_compile" 2>conftest.err)
ac_status=$? ac_status=$?
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:17670: \$? = $ac_status" >&5 echo "$as_me:17672: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output. # So say no if there are warnings other than the usual output.
...@@ -17767,11 +17769,11 @@ else ...@@ -17767,11 +17769,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:17770: $lt_compile\"" >&5) (eval echo "\"\$as_me:17772: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err) (eval "$lt_compile" 2>out/conftest.err)
ac_status=$? ac_status=$?
cat out/conftest.err >&5 cat out/conftest.err >&5
echo "$as_me:17774: \$? = $ac_status" >&5 echo "$as_me:17776: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext if (exit $ac_status) && test -s out/conftest2.$ac_objext
then then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
...@@ -22993,16 +22995,16 @@ $as_echo "no" >&6; } ...@@ -22993,16 +22995,16 @@ $as_echo "no" >&6; }
fi fi
   
   
# Enable static linking # Enable linking options for making the executable as portable as possible.
{ $as_echo "$as_me:$LINENO: checking static linking" >&5 { $as_echo "$as_me:$LINENO: checking best linking option" >&5
$as_echo_n "checking static linking... " >&6; } $as_echo_n "checking best linking option... " >&6; }
# Check whether --enable-static was given. # Check whether --enable-best-link was given.
if test "${enable_static+set}" = set; then if test "${enable_best_link+set}" = set; then
enableval=$enable_static; use_static="yes" enableval=$enable_best_link; use_best="yes"
{ $as_echo "$as_me:$LINENO: result: yes" >&5 { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; } $as_echo "yes" >&6; }
else else
use_static="no" use_best="no"
{ $as_echo "$as_me:$LINENO: result: no" >&5 { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; } $as_echo "no" >&6; }
fi fi
...@@ -27737,12 +27739,12 @@ if test "$use_gprof" = "yes"; then ...@@ -27737,12 +27739,12 @@ if test "$use_gprof" = "yes"; then
else else
AM_CFLAGS="$AM_CFLAGS -pg" AM_CFLAGS="$AM_CFLAGS -pg"
fi fi
use_static="no" use_best="no"
fi fi
   
# Static linking option # "Best" linking option
if test "$use_static" = "yes"; then if test "$use_best" = "yes"; then
AM_LDFLAGS="-static -shared-libgcc $AM_LDFLAGS" AM_LDFLAGS="-static -shared-libgcc -static-libtool-libs $AM_LDFLAGS"
fi fi
   
   
......
...@@ -34,8 +34,8 @@ cclist="cc gcc" ...@@ -34,8 +34,8 @@ cclist="cc gcc"
# Provide special option for choosing automatically the compilation flags. # Provide special option for choosing automatically the compilation flags.
AC_MSG_CHECKING([if compilation flags are set automatically]) AC_MSG_CHECKING([if compilation flags are set automatically])
AC_ARG_ENABLE(automatic-flags, AC_ARG_ENABLE(auto-flags,
[AC_HELP_STRING([--enable-automatic-flags], [AC_HELP_STRING([--enable-auto-flags],
[Let the configure script choose the compilation flags \ [Let the configure script choose the compilation flags \
(off by default)])], (off by default)])],
use_autoflag="yes" use_autoflag="yes"
...@@ -172,15 +172,15 @@ AC_ARG_ENABLE(gprof, ...@@ -172,15 +172,15 @@ AC_ARG_ENABLE(gprof,
use_gprof="no" use_gprof="no"
AC_MSG_RESULT([no])) AC_MSG_RESULT([no]))
# Enable static linking # Enable linking options for making the executable as portable as possible.
AC_MSG_CHECKING([static linking]) AC_MSG_CHECKING([best linking option])
AC_ARG_ENABLE(static, AC_ARG_ENABLE(best-link,
[AC_HELP_STRING([--enable-static], [AC_HELP_STRING([--enable-best-link],
[Enable static linking \ [Choose the right combination of static and dynamic linking to make \
(off by default)])], the executable as portable as possible (off by default)])],
use_static="yes" use_best="yes"
AC_MSG_RESULT([yes]), AC_MSG_RESULT([yes]),
use_static="no" use_best="no"
AC_MSG_RESULT([no])) AC_MSG_RESULT([no]))
################# Actions to complete in case of multhreading ################ ################# Actions to complete in case of multhreading ################
...@@ -228,12 +228,12 @@ if test "$use_gprof" = "yes"; then ...@@ -228,12 +228,12 @@ if test "$use_gprof" = "yes"; then
else else
AM_CFLAGS="$AM_CFLAGS -pg" AM_CFLAGS="$AM_CFLAGS -pg"
fi fi
use_static="no" use_best="no"
fi fi
# Static linking option # "Best" linking option
if test "$use_static" = "yes"; then if test "$use_best" = "yes"; then
AM_LDFLAGS="-static -shared-libgcc $AM_LDFLAGS" AM_LDFLAGS="-static -shared-libgcc -static-libtool-libs $AM_LDFLAGS"
fi fi
AC_SUBST(AM_CFLAGS) AC_SUBST(AM_CFLAGS)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment