diff --git a/Makefile.in b/Makefile.in index 2b05e4c2e..44289de00 100644 --- a/Makefile.in +++ b/Makefile.in @@ -18,7 +18,7 @@ # 59 Temple Place - Suite 330 # Boston, MA 02111-1307, USA # -#ident "$Id: Makefile.in,v 1.29 1999/11/27 19:07:57 steve Exp $" +#ident "$Id: Makefile.in,v 1.30 1999/11/29 17:02:21 steve Exp $" # # SHELL = /bin/sh @@ -98,7 +98,7 @@ ivl: $O %.o dep/%.d: %.cc @[ -d dep ] || mkdir dep - $(CXX) $(CXXFLAGS) -MD -c $< -o $*.o + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -c $< -o $*.o mv $*.d dep/$*.d diff --git a/configure.in b/configure.in index b0926cbbf..a416d3bae 100644 --- a/configure.in +++ b/configure.in @@ -5,6 +5,7 @@ dnl Checks for programs. AC_PROG_CC AC_PROG_CXX AC_CHECK_TOOL(STRIP, strip, true) +AC_CHECK_HEADERS(getopt.h) AC_PROG_INSTALL AC_OUTPUT(Makefile vpi/Makefile ivlpp/Makefile vvm/Makefile) diff --git a/ivlpp/main.c b/ivlpp/main.c index 42b8f7881..0b78f2e8d 100644 --- a/ivlpp/main.c +++ b/ivlpp/main.c @@ -17,7 +17,7 @@ const char COPYRIGHT[] = * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) -#ident "$Id: main.c,v 1.3 1999/09/05 22:33:18 steve Exp $" +#ident "$Id: main.c,v 1.4 1999/11/29 17:02:21 steve Exp $" #endif const char NOTICE[] = @@ -42,6 +42,9 @@ const char VERSION[] = "$Name: $ $State: Exp $"; # include # include # include +#if defined(HAVE_GETOPT_H) +# include +#endif # include "globals.h" char**include_dir = 0; @@ -140,6 +143,9 @@ int main(int argc, char*argv[]) /* * $Log: main.c,v $ + * Revision 1.4 1999/11/29 17:02:21 steve + * include getopt if present. + * * Revision 1.3 1999/09/05 22:33:18 steve * Take multiple source files on the command line. * diff --git a/main.cc b/main.cc index 68c1c4ea7..e2f09ac68 100644 --- a/main.cc +++ b/main.cc @@ -19,7 +19,7 @@ const char COPYRIGHT[] = * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) -#ident "$Id: main.cc,v 1.25 1999/11/18 03:52:19 steve Exp $" +#ident "$Id: main.cc,v 1.26 1999/11/29 17:02:21 steve Exp $" #endif const char NOTICE[] = @@ -44,6 +44,9 @@ const char NOTICE[] = # include # include # include +#if defined(HAVE_GETOPT_H) +# include +#endif # include "pform.h" # include "netlist.h" # include "target.h" @@ -281,6 +284,9 @@ int main(int argc, char*argv[]) /* * $Log: main.cc,v $ + * Revision 1.26 1999/11/29 17:02:21 steve + * include getopt if present. + * * Revision 1.25 1999/11/18 03:52:19 steve * Turn NetTmp objects into normal local NetNet objects, * and add the nodangle functor to clean up the local