]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - configure
ncurses 6.0 - patch 20160709
[ncurses.git] / configure
index 6770ce5e09db2053291a40841c23e37d0eaa4f23..b2f191922ed0f6184225e6ba4e3d180fc55e4f26 100755 (executable)
--- a/configure
+++ b/configure
@@ -2189,7 +2189,7 @@ echo "${ECHO_T}broken" >&6
 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
        # humor him...
        cf_flags=`echo "$CC" | sed -e 's/^[^    ]*[     ][      ]*//'`
-       CC=`echo "$CC" | sed -e 's/[    ].*//'`
+       CC=`echo "$CC " | sed -e 's/[   ]-[IUD][^       ][^     ]*//g' -e 's/[  ]*$//'`
 
 cf_fix_cppflags=no
 cf_new_cflags=