Changeset 168 for trunk/aclocal.m4
- Timestamp:
- Mar 15, 2008, 10:02:21 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aclocal.m4
r156 r168 1860 1860 ])dnl ACX_PTHREAD 1861 1861 1862 1863 1864 1865 dnl Copyright © 2004 Loic Dachary <loic@senga.org> 1866 dnl 1867 dnl This program is free software; you can redistribute it and/or modify 1868 dnl it under the terms of the GNU General Public License as published by 1869 dnl the Free Software Foundation; either version 2 of the License, or (at 1870 dnl your option) any later version. 1871 dnl 1872 dnl Use ZLIB_HOME instead of option 1873 1874 AC_DEFUN([CHECK_ZLIB],[ 1875 1876 if test "x${ZLIB_HOME}" = "x"; then 1877 ZLIB_HOME=/usr/local 1878 if test ! -f "${ZLIB_HOME}/include/zlib.h" 1879 then 1880 ZLIB_HOME=/usr 1881 fi 1882 fi 1883 1884 zlib_found=no 1885 1886 ZLIB_OLD_LDFLAGS=$LDFLAGS 1887 ZLIB_OLD_CPPFLAGS=$LDFLAGS 1888 if test "x${ZLIB_HOME}" = "x/usr"; then 1889 : 1890 else 1891 LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" 1892 CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" 1893 fi 1894 AC_LANG_SAVE 1895 AC_LANG_C 1896 AC_CHECK_LIB(z, inflateEnd, [zlib_cv_libz=yes], [zlib_cv_libz=no]) 1897 AC_CHECK_HEADER(zlib.h, [zlib_cv_zlib_h=yes], [zlib_cv_zlib_h=no]) 1898 AC_LANG_RESTORE 1899 if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes" 1900 then 1901 # 1902 # If both library and header were found, use them 1903 # 1904 AC_CHECK_LIB(z, inflateEnd) 1905 AC_MSG_CHECKING([zlib in ${ZLIB_HOME}]) 1906 AC_MSG_RESULT(ok) 1907 zlib_found=yes 1908 else 1909 # 1910 # If either header or library was not found, revert and bomb 1911 # 1912 AC_MSG_CHECKING(zlib in ${ZLIB_HOME}) 1913 LDFLAGS="$ZLIB_OLD_LDFLAGS" 1914 CPPFLAGS="$ZLIB_OLD_CPPFLAGS" 1915 AC_MSG_RESULT(failed) 1916 AC_MSG_ERROR([zlib not found in ZLIB_HOME, /usr/local, or /usr]) 1917 fi 1918 1919 ]) 1920 1921 1862 1922 dnl *-*wedit:notab*-* Please keep this as the last line. 1863 1923
Note:
See TracChangeset
for help on using the changeset viewer.