[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: ChangeLog



  User: sdb     
  Date: 06/03/03 14:35:52

  Modified:    .        ChangeLog configure.ac
  Log:
  Changed getopt to getopt_long to enable support for multichar command line
  
  flags.  This follwing up discussion on geda-user.
  
  
  
  
  Revision  Changes    Path
  1.262     +5 -0      eda/geda/devel/gnetlist/ChangeLog
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ChangeLog
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gnetlist/ChangeLog,v
  retrieving revision 1.261
  retrieving revision 1.262
  diff -u -b -r1.261 -r1.262
  --- ChangeLog	2 Mar 2006 17:48:23 -0000	1.261
  +++ ChangeLog	3 Mar 2006 19:35:52 -0000	1.262
  @@ -1,3 +1,8 @@
  +2006-03-03 Stuart Brorson <sdb [AT] cloud9 [DOT] net>
  +	* configure.ac, parsecmd.c: introduced getopt_long to enable
  +	parsing of long command line flags.  Had to change configure.ac
  +	to support looking for getopt.h instead of unistd.h.
  +	
   2006-03-02 Carlos Nieves Onega <cnieves@xxxxxxxxxx>
   
   	* scheme/gnet-drc2.scm: Don't check pintypes of net "NoConnection".
  
  
  
  1.26      +20 -1     eda/geda/devel/gnetlist/configure.ac
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: configure.ac
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gnetlist/configure.ac,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -b -r1.25 -r1.26
  --- configure.ac	22 Jan 2006 13:55:29 -0000	1.25
  +++ configure.ac	3 Mar 2006 19:35:52 -0000	1.26
  @@ -37,6 +37,25 @@
   )
   AC_SUBST(PCBCONFDIR)
   
  +## Added by SDB 3.3.2006
  +# Check for getopt_long
  +dnl check GNU getopt() - thanks libcmml!
  +HAVE_GETOPT_LONG="no"
  +AC_CHECK_FUNC([getopt_long], [HAVE_GETOPT_LONG="yes"])
  +if test "x$HAVE_GETOPT_LONG" != xyes ; then
  +        dnl FreeBSD has a gnugetopt library
  +        AC_CHECK_LIB([gnugetopt], [getopt_long], [HAVE_GETOPT_LONG="yes"])
  +        if test "x$HAVE_GETOPT_LONG" = xyes ; then
  +                GETOPT_LONG_LIBS="-lgnugetopt"
  +                AC_SUBST(GETOPT_LONG_LIBS)
  +        fi
  +fi
  +if test "x$HAVE_GETOPT_LONG" != "xyes"; then
  +        GETOPT_LONG_LIBS=""
  +        AC_SUBST(GETOPT_LONG_LIBS)
  +fi
  +
  +
   # 
   # Command line flags end
   #########################################################################
  @@ -155,7 +174,7 @@
   AC_HEADER_SYS_WAIT
   AC_HEADER_DIRENT
   AC_CHECK_HEADERS(unistd.h string.h strings.h stdlib.h \
  -                 stdarg.h assert.h fcntl.h errno.h)
  +                 stdarg.h assert.h fcntl.h errno.h getopt.h)
   
   # Checks for typedefs, structures, and compiler characteristics.
   AC_C_CONST