X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=aclocal.m4;h=bc5c706013a7a150c2caa5d5a42b5f4407bf055e;hp=65f01c05abb927849b95bc1816b22739539dfb39;hb=bfe753d2dbaed1587556f1dc89bb14066d075c8c;hpb=e2d7d0028f4298dca2b0edaf2dc8ce30518d9218;ds=sidebyside diff --git a/aclocal.m4 b/aclocal.m4 index 65f01c05..bc5c7060 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -28,7 +28,7 @@ dnl*************************************************************************** dnl dnl Author: Thomas E. Dickey 1995-on dnl -dnl $Id: aclocal.m4,v 1.654 2013/03/10 00:23:09 tom Exp $ +dnl $Id: aclocal.m4,v 1.658 2013/03/12 13:40:56 tom Exp $ dnl Macros used in NCURSES auto-configuration script. dnl dnl These macros are maintained separately from NCURSES. The copyright on @@ -3232,7 +3232,28 @@ do if test $cf_dir = c++; then if test "x$with_shared_cxx" != xyes; then - Libs_To_Make='../lib/$(LIBNAME)' + cf_list= + for cf_item in $Libs_To_Make + do + case $cf_item in + *.a) + ;; + *) + cf_item=`echo "$cf_item" | sed -e 's/\.so.*/.a/'` + ;; + esac + for cf_test in $cf_list + do + if test "$cf_test" = "$cf_item" + then + cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'` + cf_item= + break + fi + done + test -n "$cf_item" && cf_list="$cf_list $cf_item" + done + Libs_To_Make="$cf_list" fi fi @@ -3256,7 +3277,15 @@ do CXX_MODEL=$cf_ITEM if test "$CXX_MODEL" = SHARED; then - test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL + case $cf_cv_shlib_version in #(vi + cygdll|mingw) #(vi + test "x$with_shared_cxx" = xno && CF_VERBOSE(overriding CXX_MODEL to SHARED) + with_shared_cxx=yes + ;; + *) + test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL + ;; + esac fi CF_LIB_SUFFIX($cf_item,cf_suffix,cf_depsuf)