Re: [PHP-DEV] unspecified symbol: uncompress From: Jani Taskinen (sniper <email protected>)
Date: 12/15/00

nOn Fri, 15 Dec 2000, Sascha Schumann wrote:

>> But I guess this could be checked like this:
>
> Chicken and egg problem. You cannot link against
> libmysqlclient before adding libz, if it contains
> my_compress. If you try, you probably will get unresolved
> symbols which are defined in libz. :)

Assuming the path to zlib is known:

AC_CHECK_LIB(mysqlclient, mysql_init, [
  dnl if it works, no need for adding zlib
  dnl as it is already added, or not needed.
],[
  LIBS="$LIBS -L$zlib_path -lz"
  AC_CHECK_LIB(mysqlclient, mysql_init, [
    dnl if this works, add zlib
  ])
])

Does this make any sense?

--Jani

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>