ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/configure
(Generate patch)

Comparing trunk/configure (file contents):
Revision 1486 by gezelter, Thu Dec 24 05:45:30 2009 UTC vs.
Revision 1487 by gezelter, Mon Aug 2 14:22:55 2010 UTC

# Line 613 | Line 613 | OPENBABEL_INC_DIR
613   OPENBABEL_LIB
614   OPENBABEL_LIB_DIR
615   OPENBABEL_INC_DIR
616 CXXCPP
616   USE_QHULL
617   QHULL
618   QHULL_LIB_DIR
619   QHULL_INC_DIR
620 + CXXCPP
621   FFTW_LIBS
622   FFTW_LIB_DIR
623   FFTW_INC_DIR
# Line 7761 | Line 7761 | $as_echo "failed" >&6; }
7761  
7762      fi
7763    fi
7764 + fi
7765 +
7766 + ac_ext=cpp
7767 + ac_cpp='$CXXCPP $CPPFLAGS'
7768 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7771 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7772 + $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7773 + if test -z "$CXXCPP"; then
7774 +  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7775 +  $as_echo_n "(cached) " >&6
7776 + else
7777 +      # Double quotes because CXXCPP needs to be expanded
7778 +    for CXXCPP in "$CXX -E" "/lib/cpp"
7779 +    do
7780 +      ac_preproc_ok=false
7781 + for ac_cxx_preproc_warn_flag in '' yes
7782 + do
7783 +  # Use a header file that comes with gcc, so configuring glibc
7784 +  # with a fresh cross-compiler works.
7785 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7786 +  # <limits.h> exists even on freestanding compilers.
7787 +  # On the NeXT, cc -E runs the code through the compiler's parser,
7788 +  # not just through cpp. "Syntax error" is here to catch this case.
7789 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 + /* end confdefs.h.  */
7791 + #ifdef __STDC__
7792 + # include <limits.h>
7793 + #else
7794 + # include <assert.h>
7795 + #endif
7796 +                     Syntax error
7797 + _ACEOF
7798 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7799 +
7800 + else
7801 +  # Broken: fails on valid input.
7802 + continue
7803 + fi
7804 + rm -f conftest.err conftest.$ac_ext
7805 +
7806 +  # OK, works on sane cases.  Now check whether nonexistent headers
7807 +  # can be detected and how.
7808 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 + /* end confdefs.h.  */
7810 + #include <ac_nonexistent.h>
7811 + _ACEOF
7812 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7813 +  # Broken: success on invalid input.
7814 + continue
7815 + else
7816 +  # Passes both tests.
7817 + ac_preproc_ok=:
7818 + break
7819 + fi
7820 + rm -f conftest.err conftest.$ac_ext
7821 +
7822 + done
7823 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7824 + rm -f conftest.err conftest.$ac_ext
7825 + if $ac_preproc_ok; then :
7826 +  break
7827 + fi
7828 +
7829 +    done
7830 +    ac_cv_prog_CXXCPP=$CXXCPP
7831 +
7832 + fi
7833 +  CXXCPP=$ac_cv_prog_CXXCPP
7834 + else
7835 +  ac_cv_prog_CXXCPP=$CXXCPP
7836   fi
7837 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7838 + $as_echo "$CXXCPP" >&6; }
7839 + ac_preproc_ok=false
7840 + for ac_cxx_preproc_warn_flag in '' yes
7841 + do
7842 +  # Use a header file that comes with gcc, so configuring glibc
7843 +  # with a fresh cross-compiler works.
7844 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7845 +  # <limits.h> exists even on freestanding compilers.
7846 +  # On the NeXT, cc -E runs the code through the compiler's parser,
7847 +  # not just through cpp. "Syntax error" is here to catch this case.
7848 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 + /* end confdefs.h.  */
7850 + #ifdef __STDC__
7851 + # include <limits.h>
7852 + #else
7853 + # include <assert.h>
7854 + #endif
7855 +                     Syntax error
7856 + _ACEOF
7857 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7858  
7859 + else
7860 +  # Broken: fails on valid input.
7861 + continue
7862 + fi
7863 + rm -f conftest.err conftest.$ac_ext
7864 +
7865 +  # OK, works on sane cases.  Now check whether nonexistent headers
7866 +  # can be detected and how.
7867 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 + /* end confdefs.h.  */
7869 + #include <ac_nonexistent.h>
7870 + _ACEOF
7871 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7872 +  # Broken: success on invalid input.
7873 + continue
7874 + else
7875 +  # Passes both tests.
7876 + ac_preproc_ok=:
7877 + break
7878 + fi
7879 + rm -f conftest.err conftest.$ac_ext
7880 +
7881 + done
7882 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7883 + rm -f conftest.err conftest.$ac_ext
7884 + if $ac_preproc_ok; then :
7885 +
7886 + else
7887 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7888 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7889 + as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
7890 + See \`config.log' for more details." "$LINENO" 5; }
7891 + fi
7892 +
7893 + ac_ext=cpp
7894 + ac_cpp='$CXXCPP $CPPFLAGS'
7895 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7896 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7897 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7898 +
7899 +
7900   #
7901   # Handle user hints
7902   #
# Line 7799 | Line 7933 | $as_echo "$as_me: Checking for qhull in ${QHULL_HOME}"
7933          { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for qhull in ${QHULL_HOME}" >&5
7934   $as_echo "$as_me: Checking for qhull in ${QHULL_HOME}" >&6;}
7935  
7936 <        ac_ext=c
7937 < ac_cpp='$CPP $CPPFLAGS'
7938 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936 >        ac_ext=cpp
7937 > ac_cpp='$CXXCPP $CPPFLAGS'
7938 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7941  
7942          QHULL_OLD_LDFLAGS=$LDFLAGS
7943 <        QHULL_OLD_CFLAGS=$CFLAGS
7943 >        QHULL_OLD_CXXFLAGS=$CXXFLAGS
7944          QHULL_OLD_CPPFLAGS=$CPPFLAGS
7945          LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
7946 <        CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
7946 >        CXXFLAGS="$CXXFLAGS -I${QHULL_HOME}/include"
7947          CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
7948 <        ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
7948 >        ac_fn_cxx_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
7949   if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then :
7950    qhull_cv_qhull_h=yes
7951   else
# Line 7852 | Line 7986 | _ACEOF
7986    return 0;
7987   }
7988   _ACEOF
7989 < if ac_fn_c_try_link "$LINENO"; then :
7989 > if ac_fn_cxx_try_link "$LINENO"; then :
7990    ac_cv_lib_qhull_qh_qhull=yes
7991   else
7992    ac_cv_lib_qhull_qh_qhull=no
# Line 7870 | Line 8004 | fi
8004   fi
8005  
8006          LDFLAGS="$QHULL_OLD_LDFLAGS"
8007 <        CFLAGS="$QHULL_OLD_CFLAGS"
8007 >        CXXFLAGS="$QHULL_OLD_CXXFLAGS"
8008          CPPFLAGS="$QHULL_OLD_CPPFLAGS"
8009          ac_ext=c
8010   ac_cpp='$CPP $CPPFLAGS'
# Line 7911 | Line 8045 | $as_echo "$as_me: WARNING: " >&2;}
8045   $as_echo "$as_me: WARNING: " >&2;}
8046          fi
8047      fi
7914 fi
7915
7916
7917
7918
7919
7920 ac_ext=cpp
7921 ac_cpp='$CXXCPP $CPPFLAGS'
7922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7926 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7927 if test -z "$CXXCPP"; then
7928  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7929  $as_echo_n "(cached) " >&6
7930 else
7931      # Double quotes because CXXCPP needs to be expanded
7932    for CXXCPP in "$CXX -E" "/lib/cpp"
7933    do
7934      ac_preproc_ok=false
7935 for ac_cxx_preproc_warn_flag in '' yes
7936 do
7937  # Use a header file that comes with gcc, so configuring glibc
7938  # with a fresh cross-compiler works.
7939  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7940  # <limits.h> exists even on freestanding compilers.
7941  # On the NeXT, cc -E runs the code through the compiler's parser,
7942  # not just through cpp. "Syntax error" is here to catch this case.
7943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h.  */
7945 #ifdef __STDC__
7946 # include <limits.h>
7947 #else
7948 # include <assert.h>
7949 #endif
7950                     Syntax error
7951 _ACEOF
7952 if ac_fn_cxx_try_cpp "$LINENO"; then :
7953
7954 else
7955  # Broken: fails on valid input.
7956 continue
7957 fi
7958 rm -f conftest.err conftest.$ac_ext
7959
7960  # OK, works on sane cases.  Now check whether nonexistent headers
7961  # can be detected and how.
7962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h.  */
7964 #include <ac_nonexistent.h>
7965 _ACEOF
7966 if ac_fn_cxx_try_cpp "$LINENO"; then :
7967  # Broken: success on invalid input.
7968 continue
7969 else
7970  # Passes both tests.
7971 ac_preproc_ok=:
7972 break
7973 fi
7974 rm -f conftest.err conftest.$ac_ext
7975
7976 done
7977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7978 rm -f conftest.err conftest.$ac_ext
7979 if $ac_preproc_ok; then :
7980  break
8048   fi
8049  
7983    done
7984    ac_cv_prog_CXXCPP=$CXXCPP
8050  
7986 fi
7987  CXXCPP=$ac_cv_prog_CXXCPP
7988 else
7989  ac_cv_prog_CXXCPP=$CXXCPP
7990 fi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7992 $as_echo "$CXXCPP" >&6; }
7993 ac_preproc_ok=false
7994 for ac_cxx_preproc_warn_flag in '' yes
7995 do
7996  # Use a header file that comes with gcc, so configuring glibc
7997  # with a fresh cross-compiler works.
7998  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7999  # <limits.h> exists even on freestanding compilers.
8000  # On the NeXT, cc -E runs the code through the compiler's parser,
8001  # not just through cpp. "Syntax error" is here to catch this case.
8002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h.  */
8004 #ifdef __STDC__
8005 # include <limits.h>
8006 #else
8007 # include <assert.h>
8008 #endif
8009                     Syntax error
8010 _ACEOF
8011 if ac_fn_cxx_try_cpp "$LINENO"; then :
8051  
8013 else
8014  # Broken: fails on valid input.
8015 continue
8016 fi
8017 rm -f conftest.err conftest.$ac_ext
8052  
8019  # OK, works on sane cases.  Now check whether nonexistent headers
8020  # can be detected and how.
8021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h.  */
8023 #include <ac_nonexistent.h>
8024 _ACEOF
8025 if ac_fn_cxx_try_cpp "$LINENO"; then :
8026  # Broken: success on invalid input.
8027 continue
8028 else
8029  # Passes both tests.
8030 ac_preproc_ok=:
8031 break
8032 fi
8033 rm -f conftest.err conftest.$ac_ext
8053  
8035 done
8036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8037 rm -f conftest.err conftest.$ac_ext
8038 if $ac_preproc_ok; then :
8039
8040 else
8041  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8043 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
8044 See \`config.log' for more details." "$LINENO" 5; }
8045 fi
8046
8047 ac_ext=cpp
8048 ac_cpp='$CXXCPP $CPPFLAGS'
8049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8052
8053
8054   #
8055   # Handle user hints
8056   #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines