| OLD | NEW |
| 1 # boost.m4: Locate Boost headers and libraries for autoconf-based projects. | 1 # boost.m4: Locate Boost headers and libraries for autoconf-based projects. |
| 2 # Copyright (C) 2007, 2008, 2009 Benoit Sigoure <tsuna@lrde.epita.fr> | 2 # Copyright (C) 2007, 2008, 2009 Benoit Sigoure <tsuna@lrde.epita.fr> |
| 3 # | 3 # |
| 4 # This program is free software: you can redistribute it and/or modify | 4 # This program is free software: you can redistribute it and/or modify |
| 5 # it under the terms of the GNU General Public License as published by | 5 # it under the terms of the GNU General Public License as published by |
| 6 # the Free Software Foundation, either version 3 of the License, or | 6 # the Free Software Foundation, either version 3 of the License, or |
| 7 # (at your option) any later version. | 7 # (at your option) any later version. |
| 8 # | 8 # |
| 9 # Additional permission under section 7 of the GNU General Public | 9 # Additional permission under section 7 of the GNU General Public |
| 10 # License, version 3 ("GPLv3"): | 10 # License, version 3 ("GPLv3"): |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 AC_LANG_CONFTEST([AC_LANG_SOURCE([[$2]])]) | 60 AC_LANG_CONFTEST([AC_LANG_SOURCE([[$2]])]) |
| 61 AS_IF([dnl eval is necessary to expand ac_cpp. | 61 AS_IF([dnl eval is necessary to expand ac_cpp. |
| 62 dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell. | 62 dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell. |
| 63 dnl Beware of Windows end-of-lines, for instance if we are running | 63 dnl Beware of Windows end-of-lines, for instance if we are running |
| 64 dnl some Windows programs under Wine. In that case, boost/version.hpp | 64 dnl some Windows programs under Wine. In that case, boost/version.hpp |
| 65 dnl is certainly using "\r\n", but the regular Unix shell will only | 65 dnl is certainly using "\r\n", but the regular Unix shell will only |
| 66 dnl strip `\n' with backquotes, not the `\r'. This results in | 66 dnl strip `\n' with backquotes, not the `\r'. This results in |
| 67 dnl boost_cv_lib_version='1_37\r' for instance, which breaks | 67 dnl boost_cv_lib_version='1_37\r' for instance, which breaks |
| 68 dnl everything else. | 68 dnl everything else. |
| 69 dnl Cannot use 'dnl' after [$4] because a trailing dnl may break AC_CACHE_CHECK | 69 dnl Cannot use 'dnl' after [$4] because a trailing dnl may break AC_CACHE_CHECK |
| 70 (eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | | 70 (eval "$ac_cpp $CXXFLAGS conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | |
| 71 tr -d '\r' | | 71 tr -d '\r' | |
| 72 $SED -n -e "$1" >conftest.i 2>&1], | 72 $SED -n -e "$1" >conftest.i 2>&1], |
| 73 [$3], | 73 [$3], |
| 74 [$4]) | 74 [$4]) |
| 75 rm -rf conftest* | 75 rm -rf conftest* |
| 76 ])# AC_EGREP_CPP | 76 ])# AC_EGREP_CPP |
| 77 | 77 |
| 78 | 78 |
| 79 | 79 |
| 80 # BOOST_REQUIRE([VERSION], [ACTION-IF-NOT-FOUND]) | 80 # BOOST_REQUIRE([VERSION], [ACTION-IF-NOT-FOUND]) |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 dnl Delete also the IPA/IPO (Inter Procedural Analysis/Optimization) | 1029 dnl Delete also the IPA/IPO (Inter Procedural Analysis/Optimization) |
| 1030 dnl information created by the PGI compiler (conftest_ipa8_conftest.oo), | 1030 dnl information created by the PGI compiler (conftest_ipa8_conftest.oo), |
| 1031 dnl as it would interfere with the next link command. | 1031 dnl as it would interfere with the next link command. |
| 1032 rm -f core conftest.err conftest_ipa8_conftest.oo \ | 1032 rm -f core conftest.err conftest_ipa8_conftest.oo \ |
| 1033 conftest$ac_exeext m4_ifval([$1], [conftest.$ac_ext])[]dnl | 1033 conftest$ac_exeext m4_ifval([$1], [conftest.$ac_ext])[]dnl |
| 1034 ])# _BOOST_AC_LINK_IFELSE | 1034 ])# _BOOST_AC_LINK_IFELSE |
| 1035 | 1035 |
| 1036 # Local Variables: | 1036 # Local Variables: |
| 1037 # mode: autoconf | 1037 # mode: autoconf |
| 1038 # End: | 1038 # End: |
| OLD | NEW |