Skip to content

Commit

Permalink
Remove the redundant NOT_MINGW conditional. Instead, just use MINGW o…
Browse files Browse the repository at this point in the history
…r !MINGW as appropriate.
  • Loading branch information
kgerickson committed Sep 8, 2015
1 parent 2498f2f commit c681211
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 56 deletions.
15 changes: 0 additions & 15 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,6 @@ D3DLIB
D3D_PACKAGE
CLOCK_GETTIME_LIB
CAMSHR
NOT_MINGW_FALSE
NOT_MINGW_TRUE
DOXYGEN_PAPER_SIZE
DX_COND_latex_FALSE
DX_COND_latex_TRUE
Expand Down Expand Up @@ -13653,15 +13651,6 @@ else
fi
if test "$MINGW" != "yes"; then
NOT_MINGW_TRUE=
NOT_MINGW_FALSE='#'
else
NOT_MINGW_TRUE='#'
NOT_MINGW_FALSE=
fi
Expand Down Expand Up @@ -13987,10 +13976,6 @@ if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NOT_MINGW_TRUE}" && test -z "${NOT_MINGW_FALSE}"; then
as_fn_error $? "conditional \"NOT_MINGW\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
Expand Down
2 changes: 0 additions & 2 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -1023,8 +1023,6 @@ XM_LIBS="-lMrm -lXm"
AC_CHECK_LIB(Xext,XextAddDisplay,LIBXEXT="-lXext",LIBXEXT="")
AC_CHECK_LIB(Xp,XpGetDocumentData,LIBXP="-lXp",LIBXP="")

AM_CONDITIONAL([NOT_MINGW], [test "$MINGW" != "yes"])

AC_SUBST(CAMSHR)
AC_SUBST(CLOCK_GETTIME_LIB)
AC_SUBST(D3D_PACKAGE)
Expand Down
7 changes: 3 additions & 4 deletions javadispatcher/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,13 @@ jDispatcher.jar: classjava.stamp

CLEANFILES = $(CLASSES) jDispatcher.jar

if NOT_MINGW
if MINGW
bin_SCRIPTS = jDispatcherIp.bat jDispatchMonitor.bat jServer.bat
else
bin_SCRIPTS = jDispatcherIp jDispatchMonitor jServer
EXTRA_DIST = jDispatcherIp.template jDispatchMonitor.template jServer.template
else
bin_SCRIPTS = jDispatcherIp.bat jDispatchMonitor.bat jServer.bat
endif


jDispatcherIp jDispatchMonitor jServer: %: %.template
cp $^ $@

6 changes: 3 additions & 3 deletions javadispatcher/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,9 @@ java_JAVA = Action.java ActionServer.java Balancer.java \
dist_java_DATA = jDispatcher.properties
java_DATA = jDispatcher.jar
CLEANFILES = $(CLASSES) jDispatcher.jar
@NOT_MINGW_FALSE@bin_SCRIPTS = jDispatcherIp.bat jDispatchMonitor.bat jServer.bat
@NOT_MINGW_TRUE@bin_SCRIPTS = jDispatcherIp jDispatchMonitor jServer
@NOT_MINGW_TRUE@EXTRA_DIST = jDispatcherIp.template jDispatchMonitor.template jServer.template
@MINGW_FALSE@bin_SCRIPTS = jDispatcherIp jDispatchMonitor jServer
@MINGW_TRUE@bin_SCRIPTS = jDispatcherIp.bat jDispatchMonitor.bat jServer.bat
@MINGW_FALSE@EXTRA_DIST = jDispatcherIp.template jDispatchMonitor.template jServer.template
all: all-am

.SUFFIXES:
Expand Down
6 changes: 3 additions & 3 deletions javascope/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ MINDTERM = $(srcdir)/MindTerm.jar
CLASSPATH_ENV = CLASSPATH=$(MINDTERM)

# Create the shell script that runs the program
if NOT_MINGW
if MINGW
bin_SCRIPTS = jScope.bat
else
bin_SCRIPTS = scripts/jScope
EXTRA_DIST += jScope.template
CLEANFILES += $(bin_SCRIPTS)

$(bin_SCRIPTS): jScope.template
$(INSTALL) -d scripts
$(INSTALL) $< $@
else
bin_SCRIPTS = jScope.bat
endif


Expand Down
14 changes: 7 additions & 7 deletions javascope/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
@NOT_MINGW_TRUE@am__append_1 = jScope.template
@NOT_MINGW_TRUE@am__append_2 = $(bin_SCRIPTS)
@MINGW_FALSE@am__append_1 = jScope.template
@MINGW_FALSE@am__append_2 = $(bin_SCRIPTS)
subdir = javascope
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
Expand Down Expand Up @@ -415,10 +415,10 @@ CLEANFILES = $(java_DATA) $(am__append_2) $(JSCOPE_CLASS) \
$(WAVEDISPLAY_CLASS) $(EXTRA_CLASS)
MINDTERM = $(srcdir)/MindTerm.jar
CLASSPATH_ENV = CLASSPATH=$(MINDTERM)
@NOT_MINGW_FALSE@bin_SCRIPTS = jScope.bat
@MINGW_FALSE@bin_SCRIPTS = scripts/jScope

# Create the shell script that runs the program
@NOT_MINGW_TRUE@bin_SCRIPTS = scripts/jScope
@MINGW_TRUE@bin_SCRIPTS = jScope.bat

# Documentation
dist_docs_DATA = $(DOCS)
Expand Down Expand Up @@ -838,9 +838,9 @@ uninstall-am: uninstall-binSCRIPTS uninstall-dist_docsDATA \
.PRECIOUS: Makefile


@NOT_MINGW_TRUE@$(bin_SCRIPTS): jScope.template
@NOT_MINGW_TRUE@ $(INSTALL) -d scripts
@NOT_MINGW_TRUE@ $(INSTALL) $< $@
@MINGW_FALSE@$(bin_SCRIPTS): jScope.template
@MINGW_FALSE@ $(INSTALL) -d scripts
@MINGW_FALSE@ $(INSTALL) $< $@
$(java_DATA): classjava.stamp
jScope.jar: colors1.tbl
$(MKDIR_P) docs
Expand Down
10 changes: 4 additions & 6 deletions javatraverser/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
EXTRA_DIST = servlet-2_3-fcs-classfiles.zip
CLEANFILES = $(java_DATA)
if NOT_MINGW
CLEANFILES += $(bin_SCRIPTS)
endif

JAVAROOT = $(builddir)
javadir = $(exec_prefix)/java/classes
docsdir = $(exec_prefix)/java/classes/docs

# Create the shell script that runs the program
if NOT_MINGW
if MINGW
bin_SCRIPTS = traverser.bat
else
bin_SCRIPTS = jTraverser
CLEANFILES += $(bin_SCRIPTS)
EXTRA_DIST += jTraverser.template
$(bin_SCRIPTS): $(srcdir)/jTraverser.template
cp $< $@
else
bin_SCRIPTS = traverser.bat
endif

#$(INSTALL) -D $< $@
Expand Down
12 changes: 6 additions & 6 deletions javatraverser/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
@NOT_MINGW_TRUE@am__append_1 = $(bin_SCRIPTS)
@NOT_MINGW_TRUE@am__append_2 = jTraverser.template
@MINGW_FALSE@am__append_1 = $(bin_SCRIPTS)
@MINGW_FALSE@am__append_2 = jTraverser.template
subdir = javatraverser
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
Expand Down Expand Up @@ -429,10 +429,10 @@ CLEANFILES = $(java_DATA) $(am__append_1)
JAVAROOT = $(builddir)
javadir = $(exec_prefix)/java/classes
docsdir = $(exec_prefix)/java/classes/docs
@NOT_MINGW_FALSE@bin_SCRIPTS = traverser.bat
@MINGW_FALSE@bin_SCRIPTS = jTraverser

# Create the shell script that runs the program
@NOT_MINGW_TRUE@bin_SCRIPTS = jTraverser
@MINGW_TRUE@bin_SCRIPTS = traverser.bat

#$(INSTALL) -D $< $@
# Build the class files
Expand Down Expand Up @@ -942,8 +942,8 @@ uninstall-am: uninstall-binSCRIPTS uninstall-javaDATA \

.PRECIOUS: Makefile

@NOT_MINGW_TRUE@$(bin_SCRIPTS): $(srcdir)/jTraverser.template
@NOT_MINGW_TRUE@ cp $< $@
@MINGW_FALSE@$(bin_SCRIPTS): $(srcdir)/jTraverser.template
@MINGW_FALSE@ cp $< $@

TreeServer_Stub.class: classjava.stamp
$(RMIC) TreeServer
Expand Down
3 changes: 1 addition & 2 deletions mdstcpip/zlib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

include ${top_srcdir}/Makefile.inc

if NOT_MINGW
else
if MINGW
EXE=.exe
WIN=.win
DEF=mdsipshr.def
Expand Down
6 changes: 3 additions & 3 deletions mdstcpip/zlib/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,9 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
uiddir = @uiddir@
@NOT_MINGW_FALSE@EXE = .exe
@NOT_MINGW_FALSE@WIN = .win
@NOT_MINGW_FALSE@DEF = mdsipshr.def
@MINGW_TRUE@EXE = .exe
@MINGW_TRUE@WIN = .win
@MINGW_TRUE@DEF = mdsipshr.def
lib = @LIBPRE@
_SOURCES = adler32.c \
compress.c \
Expand Down
2 changes: 1 addition & 1 deletion scripts/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if NOT_MINGW
if !MINGW
dist_bin_SCRIPTS = job_finish
dist_bin_SCRIPTS += job_functions
dist_bin_SCRIPTS += job_output
Expand Down
8 changes: 4 additions & 4 deletions scripts/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,10 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
uiddir = @uiddir@
@NOT_MINGW_TRUE@dist_bin_SCRIPTS = job_finish job_functions job_output \
@NOT_MINGW_TRUE@ job_que job_start job_wait MonitorCpciData.py \
@NOT_MINGW_TRUE@ remote_submit SetMdsplusFileProtection \
@NOT_MINGW_TRUE@ synchronize_unix unix_submit
@MINGW_FALSE@dist_bin_SCRIPTS = job_finish job_functions job_output \
@MINGW_FALSE@ job_que job_start job_wait MonitorCpciData.py \
@MINGW_FALSE@ remote_submit SetMdsplusFileProtection \
@MINGW_FALSE@ synchronize_unix unix_submit
all: all-am

.SUFFIXES:
Expand Down

0 comments on commit c681211

Please sign in to comment.