./configure commands C++?

I'm having some trouble understanding something. This is general across building all C++ libraries but the problem I'm having now is with an fltk library. I'm using Windows 7 Pro with a Mingw 64 compiler.

If I use the internal zlib, jpeg, and libpng it configures and builds fine.
But when I want to use my external zlib, jpeg, and libpng I have to use some of the commands provided in the libraries 'configure' file.



This is what I have tried. Let's say I just want to use my own zlib external library.

1
2
3
4
5
./configure --prefix=C:/zlib

./configure --enable-localzlib=no

./configure --disable-localzlib


None of these seem to work and I'm baffled. The error message says that --enable-localzlib and --disable-localzlib commands are not recognized. Would anyone know why? Am I using these commands incorrectly?

The below is a list of the commands provided in the 'configure' file. I'm not sure what I'm doing wrong.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-cygwin         use the Cygwin libraries [default=no]
  --enable-x11            use Cygwin with X11 [default=no]
  --enable-cairoext       use fltk code instrumentation for cairo extended use [default=no]
  --enable-cairo          use lib Cairo [default=no]
  --enable-debug          turn on debugging [default=no]
  --enable-cp936          turn on CP936 [default=no]
  --enable-gl             turn on OpenGL support [default=yes]
  --enable-shared         turn on shared libraries [default=no]
  --enable-threads        enable multi-threading support [default=yes]
  --disable-largefile     omit support for large files
  --enable-localjpeg      use local JPEG library [default=auto]
  --enable-localzlib      use local ZLIB library [default=auto]
  --enable-localpng       use local PNG library  [default=auto]
  --enable-xinerama       turn on Xinerama support [default=yes]
  --enable-xft            turn on Xft support [default=yes]
  --enable-xdbe           turn on Xdbe support [default=yes]
  --enable-xfixes         turn on Xfixes support [default=yes]
  --enable-xcursor        turn on Xcursor support [default=yes]

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-optim="flags"    use custom optimization flags
  --with-archflags="flags"
                          use custom architecture flags
			  (possible Mac OS X values include -arch i386, -arch x86_64, -arch ppc)
  --with-links            make header links for common misspellings [default=no]
  --with-x                use the X Window System
Last edited on
The ./configure file is usually meant for linux/unix.
For windows you usually use CMake. Look out for CMakeLists.txt.

If you really need ./configure you may use the msys environment:

http://mingw.org/wiki/msys

But usually it doesn't work either.
I'm using MSYS.. That's why I'm able to use ./configure
If I want to redirect the configure script to use my own external libraries as dependencies then how do I do this using MSYS on Windows?

I'm using Windows 7 Pro. Mingw 64 compiler.
Topic archived. No new replies allowed.