yaozhenx / mscgen

Automatically exported from code.google.com/p/mscgen
GNU General Public License v2.0
0 stars 0 forks source link

--without-freetype has opposite meaning #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure --without-freetype
2. grep USE_ config.h

This should show "/* #undef USE_FREETYPE */" but in fact shows "#define 
USE_FREETYPE 1".

At issue is the meaning of the third argument of AC_ARG_WITH in configure.ac.  
The AC_ARG_WITH macro would default to setting the variable 'with_freetype' 
with the appropriate value (yes/no/other), so it can simply be omitted.

http://www.flameeyes.eu/autotools-mythbuster/autoconf/arguments.html

I'm attaching a simple patch which gives the documented behavior for me.

$ ./configure --without-freetype
...
$ grep USE_ config.h
/* #undef USE_FREETYPE */
$ ./configure --with-freetype
...
$ grep USE_ config.h
#define USE_FREETYPE 1
$ ./configure
...
$ grep USE_ config.h
/* #undef USE_FREETYPE */

Original issue reported on code.google.com by mdavidsa...@gmail.com on 23 Jun 2013 at 9:43

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by Michael....@gmail.com on 24 Jan 2015 at 7:01

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r205.

Original comment by Michael....@gmail.com on 24 Jan 2015 at 7:03