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

gEDA-cvs: CVS update: configure.ac



  User: danmc   
  Date: 07/05/04 21:56:09

  Modified:    .        configure.ac
  Log:
  fix up the tests for getopt_long.  The logic sense appears to have
  
  been inverted.  Compiles on solaris again.
  
  
  
  
  Revision  Changes    Path
  1.40      +5 -6      eda/geda/gaf/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/gaf/gnetlist/configure.ac,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -b -r1.39 -r1.40
  --- configure.ac	29 Apr 2007 19:46:00 -0000	1.39
  +++ configure.ac	5 May 2007 01:56:09 -0000	1.40
  @@ -63,20 +63,19 @@
   # Check for getopt_long
   dnl check GNU getopt() - thanks libcmml!
   HAVE_GETOPT_LONG="no"
  +GETOPT_LONG_LIBS=""
   AC_CHECK_FUNC([getopt_long], [HAVE_GETOPT_LONG="yes"])
   if test "x$HAVE_GETOPT_LONG" != xyes ; then
  -        AC_DEFINE(HAVE_GETOPT_LONG, [], [Define to 1 if you have the 'getopt_long' function])
  -        GETOPT_LONG_LIBS=""
  -        AC_SUBST(GETOPT_LONG_LIBS)
  -else 
           dnl FreeBSD has a gnugetopt library
           AC_CHECK_LIB([gnugetopt], [getopt_long], [HAVE_GETOPT_LONG="yes"])
           if test "x$HAVE_GETOPT_LONG" = xyes ; then
  -                AC_DEFINE(HAVE_GETOPT_LONG, [], [Define to 1 if you have the 'getopt_long' function])
                   GETOPT_LONG_LIBS="-lgnugetopt"
  -                AC_SUBST(GETOPT_LONG_LIBS)
           fi
   fi
  +if test "x$HAVE_GETOPT_LONG" = xyes ; then
  +	AC_DEFINE(HAVE_GETOPT_LONG, [], [Define to 1 if you have the 'getopt_long' function])
  +fi
  +AC_SUBST(GETOPT_LONG_LIBS)
   
   
   # 
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs