]>
Commit | Line | Data |
---|---|---|
0fa5beea MB |
1 | diff -urN SILLY-0.1.0/acinclude.m4 SILLY-0.1.0.new/acinclude.m4 |
2 | --- SILLY-0.1.0/acinclude.m4 2006-08-01 22:12:24.000000000 +0200 | |
3 | +++ SILLY-0.1.0.new/acinclude.m4 2009-08-02 13:33:18.101057009 +0200 | |
4 | @@ -13,6 +13,14 @@ | |
5 | fi], | |
6 | []) | |
7 | ||
8 | +silly_zlib_libdir_name="lib" | |
9 | +AC_ARG_WITH([zlib-libdir], | |
10 | + AC_HELP_STRING([--with-zlib-libdir=DIR], [directory name where is zlib library you want to use]), | |
11 | + [if test "$withval" != no ; then | |
12 | + silly_zlib_libdir_name="$withval" | |
13 | + fi], | |
14 | + []) | |
15 | + | |
16 | dnl search in all path | |
17 | HAVE_ZLIB=no | |
18 | for dir in $silly_zlib_search | |
19 | @@ -20,7 +28,7 @@ | |
20 | if test "$HAVE_ZLIB" = "no" ; then | |
21 | silly_zlib_home="$dir" | |
22 | silly_zlib_cppflags="-I$silly_zlib_home/include" | |
23 | - silly_zlib_ldflags="-L$silly_zlib_home/lib" | |
24 | + silly_zlib_ldflags="-L$silly_zlib_home/$silly_zlib_libdir_name" | |
25 | if test -f "${silly_zlib_home}/include/zlib.h" ; then | |
26 | CPPFLAGS="$silly_zlib_cppflags $silly_zlib_save_CPPFLAGS" | |
27 | LDFALGS="$silly_zlib_ldflags $silly_zlib_save_LDFLAGS" |