OSDN Git Service

* configure.in (ac_win_build): Actually want "-DWIN32" with
authorkseitz <kseitz>
Fri, 26 Oct 2001 17:40:36 +0000 (17:40 +0000)
committerkseitz <kseitz>
Fri, 26 Oct 2001 17:40:36 +0000 (17:40 +0000)
cygwin hosts, not just cygwin targets.
* configure: Regenerate.

libgui/ChangeLog
libgui/configure
libgui/configure.in

index 54bb64a..0c957bc 100644 (file)
@@ -1,3 +1,9 @@
+2001-10-26  Keith Seitz  <keiths@redhat.com>
+
+       * configure.in (ac_win_build): Actually want "-DWIN32" with
+       cygwin hosts, not just cygwin targets.
+       * configure: Regenerate.
+
 2001-10-24  Keith Seitz  <keiths@redhat.com>
 
        * configure.in (ac_win_build): Put "-DWIN32" back into LIBGUI_CFLAGS.
index 223dba5..8b2a48d 100755 (executable)
@@ -1960,7 +1960,6 @@ fi
 
 case "${target}" in
 *-*-cygwin*)
-       LIBGUI_CFLAGS="-DWIN32 $LIBGUI_CFLAGS"
         touch ac$$.c
         if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
             case "$LIBGUI_CFLAGS" in
@@ -1971,6 +1970,10 @@ case "${target}" in
         rm -f ac$$.o ac$$.c
         ;;
 esac
+case "${host}" in
+*-*-cygwin*)
+       LIBGUI_CFLAGS="-DWIN32 $LIBGUI_CFLAGS" ;;
+esac
  
 
 tmp="`cd $srcdir/library; pwd`"
@@ -1985,7 +1988,7 @@ fi
 # Find the init.tcl file.
 
 echo $ac_n "checking for init.tcl""... $ac_c" 1>&6
-echo "configure:1989: checking for init.tcl" >&5
+echo "configure:1992: checking for init.tcl" >&5
 if eval "test \"`echo '$''{'ac_cv_c_tcl_libdir'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2020,7 +2023,7 @@ if test "${with_tclconfig+set}" = set; then
 fi
 
     echo $ac_n "checking for Tcl configuration script""... $ac_c" 1>&6
-echo "configure:2024: checking for Tcl configuration script" >&5
+echo "configure:2027: checking for Tcl configuration script" >&5
     if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2112,7 +2115,7 @@ if test "${with_tkconfig+set}" = set; then
 fi
 
     echo $ac_n "checking for Tk configuration script""... $ac_c" 1>&6
-echo "configure:2116: checking for Tk configuration script" >&5
+echo "configure:2119: checking for Tk configuration script" >&5
     if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2192,7 +2195,7 @@ fi
 dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
 no_tcl=true
 echo $ac_n "checking for Tcl headers in the source tree""... $ac_c" 1>&6
-echo "configure:2196: checking for Tcl headers in the source tree" >&5
+echo "configure:2199: checking for Tcl headers in the source tree" >&5
 # Check whether --with-tclinclude or --without-tclinclude was given.
 if test "${with_tclinclude+set}" = set; then
   withval="$with_tclinclude"
@@ -2249,17 +2252,17 @@ if test x"${ac_cv_c_tclh}" = x ; then
    echo "$ac_t""none" 1>&6
    ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for tcl.h""... $ac_c" 1>&6
-echo "configure:2253: checking for tcl.h" >&5
+echo "configure:2256: checking for tcl.h" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2258 "configure"
+#line 2261 "configure"
 #include "confdefs.h"
 #include <tcl.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -2323,7 +2326,7 @@ fi
 dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
 no_tk=true
 echo $ac_n "checking for Tk headers in the source tree""... $ac_c" 1>&6
-echo "configure:2327: checking for Tk headers in the source tree" >&5
+echo "configure:2330: checking for Tk headers in the source tree" >&5
 # Check whether --with-tkinclude or --without-tkinclude was given.
 if test "${with_tkinclude+set}" = set; then
   withval="$with_tkinclude"
index 7885f05..ff76f85 100644 (file)
@@ -63,7 +63,6 @@ fi
 
 case "${target}" in
 *-*-cygwin*)
-       LIBGUI_CFLAGS="-DWIN32 $LIBGUI_CFLAGS"
         touch ac$$.c
         if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
             case "$LIBGUI_CFLAGS" in
@@ -74,6 +73,10 @@ case "${target}" in
         rm -f ac$$.o ac$$.c
         ;;
 esac
+case "${host}" in
+*-*-cygwin*)
+       LIBGUI_CFLAGS="-DWIN32 $LIBGUI_CFLAGS" ;;
+esac
 AC_SUBST(LIBGUI_CFLAGS) 
 
 tmp="`cd $srcdir/library; pwd`"