diff options
| author | Steven Tamm | 2004-10-08 18:36:47 +0000 |
|---|---|---|
| committer | Steven Tamm | 2004-10-08 18:36:47 +0000 |
| commit | cef11da29920a67e534b01241c47ee379926210e (patch) | |
| tree | 5ae072629c4d1829a3fa703e4f219032fe93be38 | |
| parent | 657f0f9c4e2b7089fcae999a22ac29beeea5914b (diff) | |
| download | emacs-cef11da29920a67e534b01241c47ee379926210e.tar.gz emacs-cef11da29920a67e534b01241c47ee379926210e.zip | |
configure.in (HAVE_MALLOC_MALLOC_H): Test for malloc/malloc.h
configure: Rebuild
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rwxr-xr-x | configure | 147 | ||||
| -rw-r--r-- | configure.in | 3 |
3 files changed, 155 insertions, 0 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-10-08 Steven Tamm <steventamm@mac.com> | ||
| 2 | |||
| 3 | * configure.in (HAVE_MALLOC_MALLOC_H): Test for malloc/malloc.h | ||
| 4 | * configure: Rebuild | ||
| 5 | |||
| 1 | 2004-10-06 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 6 | 2004-10-06 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 2 | 7 | ||
| 3 | * configure.in (HAVE_RANDOM_HEAPSTART): Change AC_MSG_ERROR to | 8 | * configure.in (HAVE_RANDOM_HEAPSTART): Change AC_MSG_ERROR to |
| @@ -12130,6 +12130,153 @@ fi | |||
| 12130 | 12130 | ||
| 12131 | fi | 12131 | fi |
| 12132 | 12132 | ||
| 12133 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then | ||
| 12134 | echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 | ||
| 12135 | echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6 | ||
| 12136 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then | ||
| 12137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 12138 | fi | ||
| 12139 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 | ||
| 12140 | echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6 | ||
| 12141 | else | ||
| 12142 | # Is the header compilable? | ||
| 12143 | echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5 | ||
| 12144 | echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6 | ||
| 12145 | cat >conftest.$ac_ext <<_ACEOF | ||
| 12146 | /* confdefs.h. */ | ||
| 12147 | _ACEOF | ||
| 12148 | cat confdefs.h >>conftest.$ac_ext | ||
| 12149 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 12150 | /* end confdefs.h. */ | ||
| 12151 | $ac_includes_default | ||
| 12152 | #include <malloc/malloc.h> | ||
| 12153 | _ACEOF | ||
| 12154 | rm -f conftest.$ac_objext | ||
| 12155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 12156 | (eval $ac_compile) 2>conftest.er1 | ||
| 12157 | ac_status=$? | ||
| 12158 | grep -v '^ *+' conftest.er1 >conftest.err | ||
| 12159 | rm -f conftest.er1 | ||
| 12160 | cat conftest.err >&5 | ||
| 12161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 12162 | (exit $ac_status); } && | ||
| 12163 | { ac_try='test -z "$ac_c_werror_flag" | ||
| 12164 | || test ! -s conftest.err' | ||
| 12165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 12166 | (eval $ac_try) 2>&5 | ||
| 12167 | ac_status=$? | ||
| 12168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 12169 | (exit $ac_status); }; } && | ||
| 12170 | { ac_try='test -s conftest.$ac_objext' | ||
| 12171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 12172 | (eval $ac_try) 2>&5 | ||
| 12173 | ac_status=$? | ||
| 12174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 12175 | (exit $ac_status); }; }; then | ||
| 12176 | ac_header_compiler=yes | ||
| 12177 | else | ||
| 12178 | echo "$as_me: failed program was:" >&5 | ||
| 12179 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 12180 | |||
| 12181 | ac_header_compiler=no | ||
| 12182 | fi | ||
| 12183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 12184 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
| 12185 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
| 12186 | |||
| 12187 | # Is the header present? | ||
| 12188 | echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5 | ||
| 12189 | echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6 | ||
| 12190 | cat >conftest.$ac_ext <<_ACEOF | ||
| 12191 | /* confdefs.h. */ | ||
| 12192 | _ACEOF | ||
| 12193 | cat confdefs.h >>conftest.$ac_ext | ||
| 12194 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 12195 | /* end confdefs.h. */ | ||
| 12196 | #include <malloc/malloc.h> | ||
| 12197 | _ACEOF | ||
| 12198 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
| 12199 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
| 12200 | ac_status=$? | ||
| 12201 | grep -v '^ *+' conftest.er1 >conftest.err | ||
| 12202 | rm -f conftest.er1 | ||
| 12203 | cat conftest.err >&5 | ||
| 12204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 12205 | (exit $ac_status); } >/dev/null; then | ||
| 12206 | if test -s conftest.err; then | ||
| 12207 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 12208 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
| 12209 | else | ||
| 12210 | ac_cpp_err= | ||
| 12211 | fi | ||
| 12212 | else | ||
| 12213 | ac_cpp_err=yes | ||
| 12214 | fi | ||
| 12215 | if test -z "$ac_cpp_err"; then | ||
| 12216 | ac_header_preproc=yes | ||
| 12217 | else | ||
| 12218 | echo "$as_me: failed program was:" >&5 | ||
| 12219 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 12220 | |||
| 12221 | ac_header_preproc=no | ||
| 12222 | fi | ||
| 12223 | rm -f conftest.err conftest.$ac_ext | ||
| 12224 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
| 12225 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
| 12226 | |||
| 12227 | # So? What about this header? | ||
| 12228 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
| 12229 | yes:no: ) | ||
| 12230 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
| 12231 | echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
| 12232 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5 | ||
| 12233 | echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;} | ||
| 12234 | ac_header_preproc=yes | ||
| 12235 | ;; | ||
| 12236 | no:yes:* ) | ||
| 12237 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5 | ||
| 12238 | echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;} | ||
| 12239 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5 | ||
| 12240 | echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;} | ||
| 12241 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5 | ||
| 12242 | echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;} | ||
| 12243 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
| 12244 | echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
| 12245 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5 | ||
| 12246 | echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;} | ||
| 12247 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5 | ||
| 12248 | echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;} | ||
| 12249 | ( | ||
| 12250 | cat <<\_ASBOX | ||
| 12251 | ## ------------------------------------------ ## | ||
| 12252 | ## Report this to the AC_PACKAGE_NAME lists. ## | ||
| 12253 | ## ------------------------------------------ ## | ||
| 12254 | _ASBOX | ||
| 12255 | ) | | ||
| 12256 | sed "s/^/$as_me: WARNING: /" >&2 | ||
| 12257 | ;; | ||
| 12258 | esac | ||
| 12259 | echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 | ||
| 12260 | echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6 | ||
| 12261 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then | ||
| 12262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 12263 | else | ||
| 12264 | ac_cv_header_malloc_malloc_h=$ac_header_preproc | ||
| 12265 | fi | ||
| 12266 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 | ||
| 12267 | echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6 | ||
| 12268 | |||
| 12269 | fi | ||
| 12270 | if test $ac_cv_header_malloc_malloc_h = yes; then | ||
| 12271 | |||
| 12272 | cat >>confdefs.h <<\_ACEOF | ||
| 12273 | #define HAVE_MALLOC_MALLOC_H 1 | ||
| 12274 | _ACEOF | ||
| 12275 | |||
| 12276 | fi | ||
| 12277 | |||
| 12278 | |||
| 12279 | |||
| 12133 | if test "${HAVE_CARBON}" = "yes"; then | 12280 | if test "${HAVE_CARBON}" = "yes"; then |
| 12134 | 12281 | ||
| 12135 | cat >>confdefs.h <<\_ACEOF | 12282 | cat >>confdefs.h <<\_ACEOF |
diff --git a/configure.in b/configure.in index 4e534a53485..519f826f270 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -2313,6 +2313,9 @@ if test "${with_carbon}" != "no"; then | |||
| 2313 | AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes) | 2313 | AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes) |
| 2314 | fi | 2314 | fi |
| 2315 | 2315 | ||
| 2316 | dnl Check for malloc/malloc.h on darwin | ||
| 2317 | AC_CHECK_HEADER(malloc/malloc.h, AC_DEFINE(HAVE_MALLOC_MALLOC_H, 1, [Define to 1 if you have the <malloc/malloc.h> header file.])) | ||
| 2318 | |||
| 2316 | if test "${HAVE_CARBON}" = "yes"; then | 2319 | if test "${HAVE_CARBON}" = "yes"; then |
| 2317 | AC_DEFINE(HAVE_CARBON, 1, [Define to 1 if you are using the Carbon API on Mac OS X.]) | 2320 | AC_DEFINE(HAVE_CARBON, 1, [Define to 1 if you are using the Carbon API on Mac OS X.]) |
| 2318 | window_system=mac | 2321 | window_system=mac |