Changeset 99347


Ignore:
Timestamp:
Nov 3, 2012, 4:41:36 AM (12 years ago)
Author:
ryandesign@…
Message:

ncview: adjust configure patch to better support users who already have netcdf4 installed with openmpi (#33828)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/ncview/files/patch-configure.diff

    r98700 r99347  
    1 --- configure.orig      2012-03-29 21:27:50.000000000 +0200
    2 +++ configure   2012-03-29 21:46:40.000000000 +0200
     1--- configure.orig      2011-07-18 12:14:52.000000000 -0500
     2+++ configure   2012-11-02 23:38:02.000000000 -0500
     3@@ -2035,13 +2035,13 @@
     4   ac_status=$?
     5   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6   (exit $ac_status); }
     7-{ (ac_try="$ac_compiler -V >&5"
     8+{ (ac_try="$ac_compiler -v >&5"
     9 case "(($ac_try" in
     10   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11   *) ac_try_echo=$ac_try;;
     12 esac
     13 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     14-  (eval "$ac_compiler -V >&5") 2>&5
     15+  (eval "$ac_compiler -v >&5") 2>&5
     16   ac_status=$?
     17   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     18   (exit $ac_status); }
    319@@ -8252,7 +8252,7 @@
    420        echo "** Could not find the png.h file, so -frames support will not be included  **"
     
    1935 if test $PNG_INC_PRESENT = yes; then
    2036        if test x$PNG_LIBDIR != x; then
     37@@ -8645,32 +8645,6 @@
     38 if test x$NETCDF_CC_TEST_SAME = xcc; then
     39        NETCDF_CC_TEST_SAME=gcc
     40 fi
     41-if test x$CC_TEST_SAME != x$NETCDF_CC_TEST_SAME; then
     42-       echo "======================================================================"
     43-       echo "Configuration error: You specified that the \"$CC\" C compiler should be"
     44-       echo "used to build ncview, but the netcdf library was compiled with the \"$NETCDF_CC\""
     45-       echo "compiler.  Here is the path where I found the netcdf library:"
     46-       echo "     $NETCDF_LDFLAGS"
     47-       echo "You must use the same compiler for ncview as was used to build the netcdf library!"
     48-       echo " "
     49-       echo "There are two possible ways to fix this."
     50-       echo " "
     51-       echo "1) Download the netcdf library and compile it with the $CC compiler,"
     52-       echo "install it, and try again to build ncview.  NOTE that if you do this,"
     53-       echo "you might have more than one version of the netcdf library on your system,"
     54-       echo "built with differnt compilers, which can get confusing.  If you do this,"
     55-       echo "you will have to specify the path to the (new) version of nc-config"
     56-       echo "that was compiled using the $CC compiler by configuring ncview in a "
     57-       echo "way similar to this:"
     58-       echo " "
     59-       echo "   ./configure --with-nc-config=/path/to/newly/compiled/nc-config"
     60-       echo " "
     61-       echo "2) Configure ncview to use the $NETCDF_CC compiler."
     62-       echo "To do this, set environmental variable CC to $NETCDF_CC"
     63-       echo "and run ./configure again"
     64-       echo "==================================================================="
     65-       exit -1
     66-fi
     67 
     68 #----------------------------------------------------------------------------------
     69 # Construct our RPATH flags.  Idea here is that we have LDFLAGS that might look,
Note: See TracChangeset for help on using the changeset viewer.